From b2b49895fdb72f5a88c4dd64cc6d8b9f7dce75cb Mon Sep 17 00:00:00 2001 From: DimaAmega Date: Sat, 7 Sep 2024 01:19:20 +0400 Subject: [PATCH] commit UI assets --- src/evidently/nbextension/static/index.js | 82 +++++------ src/evidently/ui/assets/index.html | 4 +- ...py-B2vBgiMr.js => ContentCopy-CTB-bCQn.js} | 2 +- ...JeNogA.js => DashboardContent-DSoVlerH.js} | 124 ++++++++--------- .../static/js/DashboardViewParams-CHXlEHLP.js | 1 - .../static/js/DashboardViewParams-DnRSqG_L.js | 1 + ...vA9GhO.js => DashboardWidgets-Bd_rYhaA.js} | 2 +- .../js/{Edit-BJOpF2nO.js => Edit-ByX95MPl.js} | 2 +- ...-LdZl81St.js => createSvgIcon-63W_9W2b.js} | 2 +- .../{index-DsPNOD6z.js => index-6B-NzMF5.js} | 2 +- .../ui/assets/static/js/index-BrZb1t9C.js | 1 + .../ui/assets/static/js/index-By5ZMnyu.js | 1 + .../{index-DpaWFHTR.js => index-CFjUf3L-.js} | 2 +- .../ui/assets/static/js/index-CIEFkcKx.js | 1 - .../ui/assets/static/js/index-CKJqPvPP.js | 3 - .../{index-D3gH4vx9.js => index-CNFsm67C.js} | 2 +- .../ui/assets/static/js/index-CcLP2flX.js | 1 - .../ui/assets/static/js/index-DU-KQm24.js | 1 + .../ui/assets/static/js/index-DzU7Itgo.js | 1 - .../ui/assets/static/js/index-MyhbAVH4.js | 3 + ...{vendor-t0l2jWQ9.js => vendor-COAUpDWz.js} | 130 +++++++++--------- 21 files changed, 184 insertions(+), 184 deletions(-) rename src/evidently/ui/assets/static/js/{ContentCopy-B2vBgiMr.js => ContentCopy-CTB-bCQn.js} (68%) rename src/evidently/ui/assets/static/js/{DashboardContent-C6JeNogA.js => DashboardContent-DSoVlerH.js} (61%) delete mode 100644 src/evidently/ui/assets/static/js/DashboardViewParams-CHXlEHLP.js create mode 100644 src/evidently/ui/assets/static/js/DashboardViewParams-DnRSqG_L.js rename src/evidently/ui/assets/static/js/{DashboardWidgets-CSvA9GhO.js => DashboardWidgets-Bd_rYhaA.js} (54%) rename src/evidently/ui/assets/static/js/{Edit-BJOpF2nO.js => Edit-ByX95MPl.js} (69%) rename src/evidently/ui/assets/static/js/{createSvgIcon-LdZl81St.js => createSvgIcon-63W_9W2b.js} (86%) rename src/evidently/ui/assets/static/js/{index-DsPNOD6z.js => index-6B-NzMF5.js} (71%) create mode 100644 src/evidently/ui/assets/static/js/index-BrZb1t9C.js create mode 100644 src/evidently/ui/assets/static/js/index-By5ZMnyu.js rename src/evidently/ui/assets/static/js/{index-DpaWFHTR.js => index-CFjUf3L-.js} (84%) delete mode 100644 src/evidently/ui/assets/static/js/index-CIEFkcKx.js delete mode 100644 src/evidently/ui/assets/static/js/index-CKJqPvPP.js rename src/evidently/ui/assets/static/js/{index-D3gH4vx9.js => index-CNFsm67C.js} (69%) delete mode 100644 src/evidently/ui/assets/static/js/index-CcLP2flX.js create mode 100644 src/evidently/ui/assets/static/js/index-DU-KQm24.js delete mode 100644 src/evidently/ui/assets/static/js/index-DzU7Itgo.js create mode 100644 src/evidently/ui/assets/static/js/index-MyhbAVH4.js rename src/evidently/ui/assets/static/js/{vendor-t0l2jWQ9.js => vendor-COAUpDWz.js} (67%) diff --git a/src/evidently/nbextension/static/index.js b/src/evidently/nbextension/static/index.js index ae07eeaccb..a70db055c0 100644 --- a/src/evidently/nbextension/static/index.js +++ b/src/evidently/nbextension/static/index.js @@ -281,7 +281,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann top: 0; } `),mde,(t.vars||t).palette.action.hover)),vde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiSkeleton"}),{animation:l="pulse",className:i,component:o="span",height:a,style:s,variant:u="text",width:c}=r,d=Kt(r,fde),f=Ie({},r,{animation:l,component:o,variant:u,hasChildren:!!d.children}),p=pde(f);return ke.jsx(gde,Ie({as:o,ref:n,className:on(p.root,i),ownerState:f},d,{style:Ie({width:c,height:a},s)}))});function kz(e){return yn("MuiTooltip",e)}const yde=hn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Bl=yde,bde=["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"];function xde(e){return Math.round(e*1e5)/1e5}const wde=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:l,placement:i}=e,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",l&&"touch",`tooltipPlacement${Jt(i.split("-")[0])}`],arrow:["arrow"]};return vn(o,kz,t)},_de=Et(bM,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>Ie({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Bl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Bl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Bl.arrow}`]:Ie({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Bl.arrow}`]:Ie({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Tde=Et("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Jt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>Ie({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:rr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${xde(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Bl.popper}[data-popper-placement*="left"] &`]:Ie({transformOrigin:"right center"},t.isRtl?Ie({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Ie({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Bl.popper}[data-popper-placement*="right"] &`]:Ie({transformOrigin:"left center"},t.isRtl?Ie({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Ie({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Bl.popper}[data-popper-placement*="top"] &`]:Ie({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Bl.popper}[data-popper-placement*="bottom"] &`]:Ie({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),kde=Et("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:rr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let a0=!1,Tw=null,ep={x:0,y:0};function o0(e,t){return n=>{t&&t(n),e(n)}}const Sde=ge.forwardRef(function(t,n){var r,l,i,o,a,s,u,c,d,f,p,m,g,b,v,h,y,w,_;const x=pn({props:t,name:"MuiTooltip"}),{arrow:T=!1,children:k,components:S={},componentsProps:C={},describeChild:M=!1,disableFocusListener:O=!1,disableHoverListener:D=!1,disableInteractive:P=!1,disableTouchListener:E=!1,enterDelay:I=100,enterNextDelay:A=0,enterTouchDelay:F=700,followCursor:j=!1,id:z,leaveDelay:B=0,leaveTouchDelay:N=1500,onClose:R,onOpen:q,open:Y,placement:L="bottom",PopperComponent:W,PopperProps:U={},slotProps:V={},slots:te={},title:ee,TransitionComponent:H=dm,TransitionProps:Z}=x,G=Kt(x,bde),X=ge.isValidElement(k)?k:ke.jsx("span",{children:k}),Q=po(),re=Q.direction==="rtl",[ae,ie]=ge.useState(),[se,he]=ge.useState(null),Se=ge.useRef(!1),Oe=P||j,Pe=ge.useRef(),Me=ge.useRef(),ce=ge.useRef(),we=ge.useRef(),[K,ne]=Zl({controlled:Y,default:!1,name:"Tooltip",state:"open"});let de=K;const _e=Kl(z),ue=ge.useRef(),pe=ge.useCallback(()=>{ue.current!==void 0&&(document.body.style.WebkitUserSelect=ue.current,ue.current=void 0),clearTimeout(we.current)},[]);ge.useEffect(()=>()=>{clearTimeout(Pe.current),clearTimeout(Me.current),clearTimeout(ce.current),pe()},[pe]);const xe=Ye=>{clearTimeout(Tw),a0=!0,ne(!0),q&&!de&&q(Ye)},ye=yo(Ye=>{clearTimeout(Tw),Tw=setTimeout(()=>{a0=!1},800+B),ne(!1),R&&de&&R(Ye),clearTimeout(Pe.current),Pe.current=setTimeout(()=>{Se.current=!1},Q.transitions.duration.shortest)}),Te=Ye=>{Se.current&&Ye.type!=="touchstart"||(ae&&ae.removeAttribute("title"),clearTimeout(Me.current),clearTimeout(ce.current),I||a0&&A?Me.current=setTimeout(()=>{xe(Ye)},a0?A:I):xe(Ye))},Ae=Ye=>{clearTimeout(Me.current),clearTimeout(ce.current),ce.current=setTimeout(()=>{ye(Ye)},B)},{isFocusVisibleRef:Re,onBlur:Le,onFocus:$e,ref:Fe}=FC(),[,Be]=ge.useState(!1),Ue=Ye=>{Le(Ye),Re.current===!1&&(Be(!1),Ae(Ye))},qe=Ye=>{ae||ie(Ye.currentTarget),$e(Ye),Re.current===!0&&(Be(!0),Te(Ye))},Xe=Ye=>{Se.current=!0;const nt=X.props;nt.onTouchStart&&nt.onTouchStart(Ye)},ot=Te,st=Ae,dt=Ye=>{Xe(Ye),clearTimeout(ce.current),clearTimeout(Pe.current),pe(),ue.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",we.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ue.current,Te(Ye)},F)},vt=Ye=>{X.props.onTouchEnd&&X.props.onTouchEnd(Ye),pe(),clearTimeout(ce.current),ce.current=setTimeout(()=>{ye(Ye)},N)};ge.useEffect(()=>{if(!de)return;function Ye(nt){(nt.key==="Escape"||nt.key==="Esc")&&ye(nt)}return document.addEventListener("keydown",Ye),()=>{document.removeEventListener("keydown",Ye)}},[ye,de]);const We=Lr(X.ref,Fe,ie,n);!ee&&ee!==0&&(de=!1);const ze=ge.useRef(),tt=Ye=>{const nt=X.props;nt.onMouseMove&&nt.onMouseMove(Ye),ep={x:Ye.clientX,y:Ye.clientY},ze.current&&ze.current.update()},it={},St=typeof ee=="string";M?(it.title=!de&&St&&!D?ee:null,it["aria-describedby"]=de?_e:null):(it["aria-label"]=St?ee:null,it["aria-labelledby"]=de&&!St?_e:null);const Ze=Ie({},it,G,X.props,{className:on(G.className,X.props.className),onTouchStart:Xe,ref:We},j?{onMouseMove:tt}:{}),ut={};E||(Ze.onTouchStart=dt,Ze.onTouchEnd=vt),D||(Ze.onMouseOver=o0(ot,Ze.onMouseOver),Ze.onMouseLeave=o0(st,Ze.onMouseLeave),Oe||(ut.onMouseOver=ot,ut.onMouseLeave=st)),O||(Ze.onFocus=o0(qe,Ze.onFocus),Ze.onBlur=o0(Ue,Ze.onBlur),Oe||(ut.onFocus=qe,ut.onBlur=Ue));const ht=ge.useMemo(()=>{var Ye;let nt=[{name:"arrow",enabled:!!se,options:{element:se,padding:4}}];return(Ye=U.popperOptions)!=null&&Ye.modifiers&&(nt=nt.concat(U.popperOptions.modifiers)),Ie({},U.popperOptions,{modifiers:nt})},[se,U]),Rt=Ie({},x,{isRtl:re,arrow:T,disableInteractive:Oe,placement:L,PopperComponentProp:W,touch:Se.current}),Ct=wde(Rt),Wt=(r=(l=te.popper)!=null?l:S.Popper)!=null?r:_de,_t=(i=(o=(a=te.transition)!=null?a:S.Transition)!=null?o:H)!=null?i:dm,be=(s=(u=te.tooltip)!=null?u:S.Tooltip)!=null?s:Tde,Ce=(c=(d=te.arrow)!=null?d:S.Arrow)!=null?c:kde,Ge=fh(Wt,Ie({},U,(f=V.popper)!=null?f:C.popper,{className:on(Ct.popper,U==null?void 0:U.className,(p=(m=V.popper)!=null?m:C.popper)==null?void 0:p.className)}),Rt),He=fh(_t,Ie({},Z,(g=V.transition)!=null?g:C.transition),Rt),et=fh(be,Ie({},(b=V.tooltip)!=null?b:C.tooltip,{className:on(Ct.tooltip,(v=(h=V.tooltip)!=null?h:C.tooltip)==null?void 0:v.className)}),Rt),Ke=fh(Ce,Ie({},(y=V.arrow)!=null?y:C.arrow,{className:on(Ct.arrow,(w=(_=V.arrow)!=null?_:C.arrow)==null?void 0:w.className)}),Rt);return ke.jsxs(ge.Fragment,{children:[ge.cloneElement(X,Ze),ke.jsx(Wt,Ie({as:W??bM,placement:L,anchorEl:j?{getBoundingClientRect:()=>({top:ep.y,left:ep.x,right:ep.x,bottom:ep.y,width:0,height:0})}:ae,popperRef:ze,open:ae?de:!1,id:_e,transition:!0},ut,Ge,{popperOptions:ht,children:({TransitionProps:Ye})=>ke.jsx(_t,Ie({timeout:Q.transitions.duration.shorter},Ye,He,{children:ke.jsxs(be,Ie({},et,{children:[ee,T?ke.jsx(Ce,Ie({},Ke,{ref:he})):null]}))}))}))]})}),Cde=Sde,Mde=Object.freeze(Object.defineProperty({__proto__:null,default:Cde,getTooltipUtilityClass:kz,tooltipClasses:Bl},Symbol.toStringTag,{value:"Module"}));function Pde(e){return yn("MuiTab",e)}const fu=hn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Ode=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Ade=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:l,icon:i,label:o,selected:a,disabled:s}=e,u={root:["root",i&&o&&"labelIcon",`textColor${Jt(n)}`,r&&"fullWidth",l&&"wrapped",a&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]};return vn(u,Pde,t)},Dde=Et(Tl,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Jt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>Ie({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${fu.iconWrapper}`]:Ie({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${fu.selected}`]:{opacity:1},[`&.${fu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${fu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${fu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${fu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${fu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),J3=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTab"}),{className:l,disabled:i=!1,disableFocusRipple:o=!1,fullWidth:a,icon:s,iconPosition:u="top",indicator:c,label:d,onChange:f,onClick:p,onFocus:m,selected:g,selectionFollowsFocus:b,textColor:v="inherit",value:h,wrapped:y=!1}=r,w=Kt(r,Ode),_=Ie({},r,{disabled:i,disableFocusRipple:o,selected:g,icon:!!s,iconPosition:u,label:!!d,fullWidth:a,textColor:v,wrapped:y}),x=Ade(_),T=s&&d&&ge.isValidElement(s)?ge.cloneElement(s,{className:on(x.iconWrapper,s.props.className)}):s,k=C=>{!g&&f&&f(C,h),p&&p(C)},S=C=>{b&&!g&&f&&f(C,h),m&&m(C)};return ke.jsxs(Dde,Ie({focusRipple:!o,className:on(x.root,l),ref:n,role:"tab","aria-selected":g,disabled:i,onClick:k,onFocus:S,ownerState:_,tabIndex:g?0:-1},w,{children:[u==="top"||u==="start"?ke.jsxs(ge.Fragment,{children:[T,d]}):ke.jsxs(ge.Fragment,{children:[d,T]}),c]}))}),Sz=ge.createContext();function Cz(e){return yn("MuiTable",e)}const Ede=hn("MuiTable",["root","stickyHeader"]),Rde=Ede,Lde=["className","component","padding","size","stickyHeader"],Ide=e=>{const{classes:t,stickyHeader:n}=e;return vn({root:["root",n&&"stickyHeader"]},Cz,t)},$de=Et("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Ie({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ie({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),B8="table",Nde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTable"}),{className:l,component:i=B8,padding:o="normal",size:a="medium",stickyHeader:s=!1}=r,u=Kt(r,Lde),c=Ie({},r,{component:i,padding:o,size:a,stickyHeader:s}),d=Ide(c),f=ge.useMemo(()=>({padding:o,size:a,stickyHeader:s}),[o,a,s]);return ke.jsx(Sz.Provider,{value:f,children:ke.jsx($de,Ie({as:i,role:i===B8?null:"table",ref:n,className:on(d.root,l),ownerState:c},u))})}),PM=Nde,Fde=Object.freeze(Object.defineProperty({__proto__:null,default:PM,getTableUtilityClass:Cz,tableClasses:Rde},Symbol.toStringTag,{value:"Module"})),Jm=ge.createContext();function Mz(e){return yn("MuiTableBody",e)}const jde=hn("MuiTableBody",["root"]),zde=jde,Bde=["className","component"],Wde=e=>{const{classes:t}=e;return vn({root:["root"]},Mz,t)},qde=Et("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ude={variant:"body"},W8="tbody",Hde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableBody"}),{className:l,component:i=W8}=r,o=Kt(r,Bde),a=Ie({},r,{component:i}),s=Wde(a);return ke.jsx(Jm.Provider,{value:Ude,children:ke.jsx(qde,Ie({className:on(s.root,l),as:i,ref:n,role:i===W8?null:"rowgroup",ownerState:a},o))})}),OM=Hde,Vde=Object.freeze(Object.defineProperty({__proto__:null,default:OM,getTableBodyUtilityClass:Mz,tableBodyClasses:zde},Symbol.toStringTag,{value:"Module"}));function Pz(e){return yn("MuiTableCell",e)}const Gde=hn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Oz=Gde,Yde=["align","className","component","padding","scope","size","sortDirection","variant"],Xde=e=>{const{classes:t,variant:n,align:r,padding:l,size:i,stickyHeader:o}=e,a={root:["root",n,o&&"stickyHeader",r!=="inherit"&&`align${Jt(r)}`,l!=="normal"&&`padding${Jt(l)}`,`size${Jt(i)}`]};return vn(a,Pz,t)},Kde=Et("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Jt(n.size)}`],n.padding!=="normal"&&t[`padding${Jt(n.padding)}`],n.align!=="inherit"&&t[`align${Jt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Ie({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?_l(rr(e.palette.divider,1),.88):wl(rr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Oz.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Zde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableCell"}),{align:l="inherit",className:i,component:o,padding:a,scope:s,size:u,sortDirection:c,variant:d}=r,f=Kt(r,Yde),p=ge.useContext(Sz),m=ge.useContext(Jm),g=m&&m.variant==="head";let b;o?b=o:b=g?"th":"td";let v=s;b==="td"?v=void 0:!v&&g&&(v="col");const h=d||m&&m.variant,y=Ie({},r,{align:l,component:b,padding:a||(p&&p.padding?p.padding:"normal"),size:u||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:h==="head"&&p&&p.stickyHeader,variant:h}),w=Xde(y);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),ke.jsx(Kde,Ie({as:b,ref:n,className:on(w.root,i),"aria-sort":_,scope:v,ownerState:y},f))}),gi=Zde,Qde=Object.freeze(Object.defineProperty({__proto__:null,default:gi,getTableCellUtilityClass:Pz,tableCellClasses:Oz},Symbol.toStringTag,{value:"Module"}));function Jde(e){return yn("MuiTableContainer",e)}hn("MuiTableContainer",["root"]);const efe=["className","component"],tfe=e=>{const{classes:t}=e;return vn({root:["root"]},Jde,t)},nfe=Et("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),rfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableContainer"}),{className:l,component:i="div"}=r,o=Kt(r,efe),a=Ie({},r,{component:i}),s=tfe(a);return ke.jsx(nfe,Ie({ref:n,as:i,className:on(s.root,l),ownerState:a},o))});function Az(e){return yn("MuiTableFooter",e)}const afe=hn("MuiTableFooter",["root"]),ofe=afe,ife=["className","component"],lfe=e=>{const{classes:t}=e;return vn({root:["root"]},Az,t)},sfe=Et("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),ufe={variant:"footer"},q8="tfoot",cfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableFooter"}),{className:l,component:i=q8}=r,o=Kt(r,ife),a=Ie({},r,{component:i}),s=lfe(a);return ke.jsx(Jm.Provider,{value:ufe,children:ke.jsx(sfe,Ie({as:i,className:on(s.root,l),ref:n,role:i===q8?null:"rowgroup",ownerState:a},o))})}),dfe=cfe,ffe=Object.freeze(Object.defineProperty({__proto__:null,default:dfe,getTableFooterUtilityClass:Az,tableFooterClasses:ofe},Symbol.toStringTag,{value:"Module"}));function Dz(e){return yn("MuiTableHead",e)}const pfe=hn("MuiTableHead",["root"]),hfe=pfe,mfe=["className","component"],gfe=e=>{const{classes:t}=e;return vn({root:["root"]},Dz,t)},vfe=Et("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),yfe={variant:"head"},U8="thead",bfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableHead"}),{className:l,component:i=U8}=r,o=Kt(r,mfe),a=Ie({},r,{component:i}),s=gfe(a);return ke.jsx(Jm.Provider,{value:yfe,children:ke.jsx(vfe,Ie({as:i,className:on(s.root,l),ref:n,role:i===U8?null:"rowgroup",ownerState:a},o))})}),AM=bfe,xfe=Object.freeze(Object.defineProperty({__proto__:null,default:AM,getTableHeadUtilityClass:Dz,tableHeadClasses:hfe},Symbol.toStringTag,{value:"Module"}));function Ez(e){return yn("MuiToolbar",e)}const wfe=hn("MuiToolbar",["root","gutters","regular","dense"]),_fe=wfe,Tfe=["className","component","disableGutters","variant"],kfe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return vn({root:["root",!n&&"gutters",r]},Ez,t)},Sfe=Et("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>Ie({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Cfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiToolbar"}),{className:l,component:i="div",disableGutters:o=!1,variant:a="regular"}=r,s=Kt(r,Tfe),u=Ie({},r,{component:i,disableGutters:o,variant:a}),c=kfe(u);return ke.jsx(Sfe,Ie({as:i,className:on(c.root,l),ref:n,ownerState:u},s))}),Rz=Cfe,Mfe=Object.freeze(Object.defineProperty({__proto__:null,default:Rz,getToolbarUtilityClass:Ez,toolbarClasses:_fe},Symbol.toStringTag,{value:"Module"})),ek=Qr(ke.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),tk=Qr(ke.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var H8,V8,G8,Y8,X8,K8,Z8,Q8;const Pfe=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],Ofe=ge.forwardRef(function(t,n){const{backIconButtonProps:r,count:l,getItemAriaLabel:i,nextIconButtonProps:o,onPageChange:a,page:s,rowsPerPage:u,showFirstButton:c,showLastButton:d}=t,f=Kt(t,Pfe),p=po(),m=h=>{a(h,0)},g=h=>{a(h,s-1)},b=h=>{a(h,s+1)},v=h=>{a(h,Math.max(0,Math.ceil(l/u)-1))};return ke.jsxs("div",Ie({ref:n},f,{children:[c&&ke.jsx(mi,{onClick:m,disabled:s===0,"aria-label":i("first",s),title:i("first",s),children:p.direction==="rtl"?H8||(H8=ke.jsx(L8,{})):V8||(V8=ke.jsx(R8,{}))}),ke.jsx(mi,Ie({onClick:g,disabled:s===0,color:"inherit","aria-label":i("previous",s),title:i("previous",s)},r,{children:p.direction==="rtl"?G8||(G8=ke.jsx(tk,{})):Y8||(Y8=ke.jsx(ek,{}))})),ke.jsx(mi,Ie({onClick:b,disabled:l!==-1?s>=Math.ceil(l/u)-1:!1,color:"inherit","aria-label":i("next",s),title:i("next",s)},o,{children:p.direction==="rtl"?X8||(X8=ke.jsx(ek,{})):K8||(K8=ke.jsx(tk,{}))})),d&&ke.jsx(mi,{onClick:v,disabled:s>=Math.ceil(l/u)-1,"aria-label":i("last",s),title:i("last",s),children:p.direction==="rtl"?Z8||(Z8=ke.jsx(R8,{})):Q8||(Q8=ke.jsx(L8,{}))})]}))});function Lz(e){return yn("MuiTablePagination",e)}const Afe=hn("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),wd=Afe;var J8;const Dfe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],Efe=Et(gi,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),Rfe=Et(Rz,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>Ie({[`& .${wd.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${wd.actions}`]:{flexShrink:0,marginLeft:20}})),Lfe=Et("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Ife=Et("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>Ie({},e.typography.body2,{flexShrink:0})),$fe=Et(sb,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>Ie({[`& .${wd.selectIcon}`]:t.selectIcon,[`& .${wd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${wd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Nfe=Et(bz,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Ffe=Et("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>Ie({},e.typography.body2,{flexShrink:0}));function jfe({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function zfe(e){return`Go to ${e} page`}const Bfe=e=>{const{classes:t}=e;return vn({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Lz,t)},Wfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=Ofe,backIconButtonProps:i,className:o,colSpan:a,component:s=gi,count:u,getItemAriaLabel:c=zfe,labelDisplayedRows:d=jfe,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:p,onPageChange:m,onRowsPerPageChange:g,page:b,rowsPerPage:v,rowsPerPageOptions:h=[10,25,50,100],SelectProps:y={},showFirstButton:w=!1,showLastButton:_=!1}=r,x=Kt(r,Dfe),T=r,k=Bfe(T),S=y.native?"option":Nfe;let C;(s===gi||s==="td")&&(C=a||1e3);const M=Kl(y.id),O=Kl(y.labelId),D=()=>u===-1?(b+1)*v:v===-1?u:Math.min(u,(b+1)*v);return ke.jsx(Efe,Ie({colSpan:C,ref:n,as:s,ownerState:T,className:on(k.root,o)},x,{children:ke.jsxs(Rfe,{className:k.toolbar,children:[ke.jsx(Lfe,{className:k.spacer}),h.length>1&&ke.jsx(Ife,{className:k.selectLabel,id:O,children:f}),h.length>1&&ke.jsx($fe,Ie({variant:"standard"},!y.variant&&{input:J8||(J8=ke.jsx(ob,{}))},{value:v,onChange:g,id:M,labelId:O},y,{classes:Ie({},y.classes,{root:on(k.input,k.selectRoot,(y.classes||{}).root),select:on(k.select,(y.classes||{}).select),icon:on(k.selectIcon,(y.classes||{}).icon)}),children:h.map(P=>ge.createElement(S,Ie({},!lm(S)&&{ownerState:T},{className:k.menuItem,key:P.label?P.label:P,value:P.value?P.value:P}),P.label?P.label:P))})),ke.jsx(Ffe,{className:k.displayedRows,children:d({from:u===0?0:b*v+1,to:D(),count:u===-1?-1:u,page:b})}),ke.jsx(l,{className:k.actions,backIconButtonProps:i,count:u,nextIconButtonProps:p,onPageChange:m,page:b,rowsPerPage:v,showFirstButton:w,showLastButton:_,getItemAriaLabel:c})]})}))}),qfe=Wfe,Ufe=Object.freeze(Object.defineProperty({__proto__:null,default:qfe,getTablePaginationUtilityClass:Lz,tablePaginationClasses:wd},Symbol.toStringTag,{value:"Module"}));function Iz(e){return yn("MuiTableRow",e)}const Hfe=hn("MuiTableRow",["root","selected","hover","head","footer"]),nk=Hfe,Vfe=["className","component","hover","selected"],Gfe=e=>{const{classes:t,selected:n,hover:r,head:l,footer:i}=e;return vn({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},Iz,t)},Yfe=Et("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${nk.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),eD="tr",Xfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableRow"}),{className:l,component:i=eD,hover:o=!1,selected:a=!1}=r,s=Kt(r,Vfe),u=ge.useContext(Jm),c=Ie({},r,{component:i,hover:o,selected:a,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),d=Gfe(c);return ke.jsx(Yfe,Ie({as:i,ref:n,className:on(d.root,l),role:i===eD?null:"row",ownerState:c},s))}),pm=Xfe,Kfe=Object.freeze(Object.defineProperty({__proto__:null,default:pm,getTableRowUtilityClass:Iz,tableRowClasses:nk},Symbol.toStringTag,{value:"Module"})),Zfe=Qr(ke.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function $z(e){return yn("MuiTableSortLabel",e)}const Qfe=hn("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),tv=Qfe,Jfe=["active","children","className","direction","hideSortIcon","IconComponent"],epe=e=>{const{classes:t,direction:n,active:r}=e,l={root:["root",r&&"active"],icon:["icon",`iconDirection${Jt(n)}`]};return vn(l,$z,t)},tpe=Et(Tl,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${tv.icon}`]:{opacity:.5}},[`&.${tv.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${tv.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),npe=Et("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${Jt(n.direction)}`]]}})(({theme:e,ownerState:t})=>Ie({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),rpe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableSortLabel"}),{active:l=!1,children:i,className:o,direction:a="asc",hideSortIcon:s=!1,IconComponent:u=Zfe}=r,c=Kt(r,Jfe),d=Ie({},r,{active:l,direction:a,hideSortIcon:s,IconComponent:u}),f=epe(d);return ke.jsxs(tpe,Ie({className:on(f.root,o),component:"span",disableRipple:!0,ownerState:d,ref:n},c,{children:[i,s&&!l?null:ke.jsx(npe,{as:u,className:on(f.icon),ownerState:d})]}))}),ape=rpe,ope=Object.freeze(Object.defineProperty({__proto__:null,default:ape,getTableSortLabelUtilityClass:$z,tableSortLabelClasses:tv},Symbol.toStringTag,{value:"Module"}));function ipe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function lpe(e,t,n,r={},l=()=>{}){const{ease:i=ipe,duration:o=300}=r;let a=null;const s=t[e];let u=!1;const c=()=>{u=!0},d=f=>{if(u){l(new Error("Animation cancelled"));return}a===null&&(a=f);const p=Math.min(1,(f-a)/o);if(t[e]=i(p)*(n-s)+s,p>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(d)};return s===n?(l(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const spe=["onChange"],upe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function cpe(e){const{onChange:t}=e,n=Kt(e,spe),r=ge.useRef(),l=ge.useRef(null),i=()=>{r.current=l.current.offsetHeight-l.current.clientHeight};return no(()=>{const o=Um(()=>{const s=r.current;i(),s!==r.current&&t(r.current)}),a=bl(l.current);return a.addEventListener("resize",o),()=>{o.clear(),a.removeEventListener("resize",o)}},[t]),ge.useEffect(()=>{i(),t(r.current)},[t]),ke.jsx("div",Ie({style:upe,ref:l},n))}function dpe(e){return yn("MuiTabScrollButton",e)}const fpe=hn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ppe=["className","slots","slotProps","direction","orientation","disabled"],hpe=e=>{const{classes:t,orientation:n,disabled:r}=e;return vn({root:["root",n,r&&"disabled"]},dpe,t)},mpe=Et(Tl,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>Ie({width:40,flexShrink:0,opacity:.8,[`&.${fpe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),gpe=ge.forwardRef(function(t,n){var r,l;const i=pn({props:t,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:s={},direction:u}=i,c=Kt(i,ppe),f=po().direction==="rtl",p=Ie({isRtl:f},i),m=hpe(p),g=(r=a.StartScrollButtonIcon)!=null?r:ek,b=(l=a.EndScrollButtonIcon)!=null?l:tk,v=Ui({elementType:g,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),h=Ui({elementType:b,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return ke.jsx(mpe,Ie({component:"div",className:on(m.root,o),ref:n,role:null,ownerState:p,tabIndex:null},c,{children:u==="left"?ke.jsx(g,Ie({},v)):ke.jsx(b,Ie({},h))}))});function vpe(e){return yn("MuiTabs",e)}const nv=hn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ype=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],tD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,nD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,i0=(e,t,n)=>{let r=!1,l=n(e,t);for(;l;){if(l===e.firstChild){if(r)return;r=!0}const i=l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||i)l=n(e,l);else{l.focus();return}}},bpe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:l,scrollableY:i,centered:o,scrollButtonsHideMobile:a,classes:s}=e;return vn({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",l&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},vpe,s)},xpe=Et("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nv.scrollButtons}`]:t.scrollButtons},{[`& .${nv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>Ie({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${nv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),wpe=Et("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>Ie({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),_pe=Et("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>Ie({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Tpe=Et("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>Ie({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),kpe=Et(cpe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),rD={},Nz=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTabs"}),l=po(),i=l.direction==="rtl",{"aria-label":o,"aria-labelledby":a,action:s,centered:u=!1,children:c,className:d,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:m="primary",onChange:g,orientation:b="horizontal",ScrollButtonComponent:v=gpe,scrollButtons:h="auto",selectionFollowsFocus:y,slots:w={},slotProps:_={},TabIndicatorProps:x={},TabScrollButtonProps:T={},textColor:k="primary",value:S,variant:C="standard",visibleScrollbar:M=!1}=r,O=Kt(r,ype),D=C==="scrollable",P=b==="vertical",E=P?"scrollTop":"scrollLeft",I=P?"top":"left",A=P?"bottom":"right",F=P?"clientHeight":"clientWidth",j=P?"height":"width",z=Ie({},r,{component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:b,vertical:P,scrollButtons:h,textColor:k,variant:C,visibleScrollbar:M,fixed:!D,hideScrollbar:D&&!M,scrollableX:D&&!P,scrollableY:D&&P,centered:u&&!D,scrollButtonsHideMobile:!p}),B=bpe(z),N=Ui({elementType:w.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:z}),R=Ui({elementType:w.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:z}),[q,Y]=ge.useState(!1),[L,W]=ge.useState(rD),[U,V]=ge.useState(!1),[te,ee]=ge.useState(!1),[H,Z]=ge.useState(!1),[G,X]=ge.useState({overflow:"hidden",scrollbarWidth:0}),Q=new Map,re=ge.useRef(null),ae=ge.useRef(null),ie=()=>{const ye=re.current;let Te;if(ye){const Re=ye.getBoundingClientRect();Te={clientWidth:ye.clientWidth,scrollLeft:ye.scrollLeft,scrollTop:ye.scrollTop,scrollLeftNormalized:xJ(ye,l.direction),scrollWidth:ye.scrollWidth,top:Re.top,bottom:Re.bottom,left:Re.left,right:Re.right}}let Ae;if(ye&&S!==!1){const Re=ae.current.children;if(Re.length>0){const Le=Re[Q.get(S)];Ae=Le?Le.getBoundingClientRect():null}}return{tabsMeta:Te,tabMeta:Ae}},se=yo(()=>{const{tabsMeta:ye,tabMeta:Te}=ie();let Ae=0,Re;if(P)Re="top",Te&&ye&&(Ae=Te.top-ye.top+ye.scrollTop);else if(Re=i?"right":"left",Te&&ye){const $e=i?ye.scrollLeftNormalized+ye.clientWidth-ye.scrollWidth:ye.scrollLeft;Ae=(i?-1:1)*(Te[Re]-ye[Re]+$e)}const Le={[Re]:Ae,[j]:Te?Te[j]:0};if(isNaN(L[Re])||isNaN(L[j]))W(Le);else{const $e=Math.abs(L[Re]-Le[Re]),Fe=Math.abs(L[j]-Le[j]);($e>=1||Fe>=1)&&W(Le)}}),he=(ye,{animation:Te=!0}={})=>{Te?lpe(E,re.current,ye,{duration:l.transitions.duration.standard}):re.current[E]=ye},Se=ye=>{let Te=re.current[E];P?Te+=ye:(Te+=ye*(i?-1:1),Te*=i&&LF()==="reverse"?-1:1),he(Te)},Oe=()=>{const ye=re.current[F];let Te=0;const Ae=Array.from(ae.current.children);for(let Re=0;Reye){Re===0&&(Te=ye);break}Te+=Le[F]}return Te},Pe=()=>{Se(-1*Oe())},Me=()=>{Se(Oe())},ce=ge.useCallback(ye=>{X({overflow:null,scrollbarWidth:ye})},[]),we=()=>{const ye={};ye.scrollbarSizeListener=D?ke.jsx(kpe,{onChange:ce,className:on(B.scrollableX,B.hideScrollbar)}):null;const Ae=D&&(h==="auto"&&(U||te)||h===!0);return ye.scrollButtonStart=Ae?ke.jsx(v,Ie({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:N},orientation:b,direction:i?"right":"left",onClick:Pe,disabled:!U},T,{className:on(B.scrollButtons,T.className)})):null,ye.scrollButtonEnd=Ae?ke.jsx(v,Ie({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:R},orientation:b,direction:i?"left":"right",onClick:Me,disabled:!te},T,{className:on(B.scrollButtons,T.className)})):null,ye},K=yo(ye=>{const{tabsMeta:Te,tabMeta:Ae}=ie();if(!(!Ae||!Te)){if(Ae[I]Te[A]){const Re=Te[E]+(Ae[A]-Te[A]);he(Re,{animation:ye})}}}),ne=yo(()=>{D&&h!==!1&&Z(!H)});ge.useEffect(()=>{const ye=Um(()=>{re.current&&se()}),Te=bl(re.current);Te.addEventListener("resize",ye);let Ae;return typeof ResizeObserver<"u"&&(Ae=new ResizeObserver(ye),Array.from(ae.current.children).forEach(Re=>{Ae.observe(Re)})),()=>{ye.clear(),Te.removeEventListener("resize",ye),Ae&&Ae.disconnect()}},[se]),ge.useEffect(()=>{const ye=Array.from(ae.current.children),Te=ye.length;if(typeof IntersectionObserver<"u"&&Te>0&&D&&h!==!1){const Ae=ye[0],Re=ye[Te-1],Le={root:re.current,threshold:.99},$e=qe=>{V(!qe[0].isIntersecting)},Fe=new IntersectionObserver($e,Le);Fe.observe(Ae);const Be=qe=>{ee(!qe[0].isIntersecting)},Ue=new IntersectionObserver(Be,Le);return Ue.observe(Re),()=>{Fe.disconnect(),Ue.disconnect()}}},[D,h,H,c==null?void 0:c.length]),ge.useEffect(()=>{Y(!0)},[]),ge.useEffect(()=>{se()}),ge.useEffect(()=>{K(rD!==L)},[K,L]),ge.useImperativeHandle(s,()=>({updateIndicator:se,updateScrollButtons:ne}),[se,ne]);const de=ke.jsx(Tpe,Ie({},x,{className:on(B.indicator,x.className),ownerState:z,style:Ie({},L,x.style)}));let _e=0;const ue=ge.Children.map(c,ye=>{if(!ge.isValidElement(ye))return null;const Te=ye.props.value===void 0?_e:ye.props.value;Q.set(Te,_e);const Ae=Te===S;return _e+=1,ge.cloneElement(ye,Ie({fullWidth:C==="fullWidth",indicator:Ae&&!q&&de,selected:Ae,selectionFollowsFocus:y,onChange:g,textColor:k,value:Te},_e===1&&S===!1&&!ye.props.tabIndex?{tabIndex:0}:{}))}),pe=ye=>{const Te=ae.current,Ae=Aa(Te).activeElement;if(Ae.getAttribute("role")!=="tab")return;let Le=b==="horizontal"?"ArrowLeft":"ArrowUp",$e=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&i&&(Le="ArrowRight",$e="ArrowLeft"),ye.key){case Le:ye.preventDefault(),i0(Te,Ae,nD);break;case $e:ye.preventDefault(),i0(Te,Ae,tD);break;case"Home":ye.preventDefault(),i0(Te,null,tD);break;case"End":ye.preventDefault(),i0(Te,null,nD);break}},xe=we();return ke.jsxs(xpe,Ie({className:on(B.root,d),ownerState:z,ref:n,as:f},O,{children:[xe.scrollButtonStart,xe.scrollbarSizeListener,ke.jsxs(wpe,{className:B.scroller,ownerState:z,style:{overflow:G.overflow,[P?`margin${i?"Left":"Right"}`:"marginBottom"]:M?void 0:-G.scrollbarWidth},ref:re,children:[ke.jsx(_pe,{"aria-label":o,"aria-labelledby":a,"aria-orientation":b==="vertical"?"vertical":null,className:B.flexContainer,ownerState:z,onKeyDown:pe,ref:ae,role:"tablist",children:ue}),q&&de]}),xe.scrollButtonEnd]}))});function Fz(e){return yn("MuiTextField",e)}const Spe=hn("MuiTextField",["root"]),Cpe=Spe,Mpe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ppe={standard:_M,filled:xM,outlined:CM},Ope=e=>{const{classes:t}=e;return vn({root:["root"]},Fz,t)},Ape=Et(Qj,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dpe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTextField"}),{autoComplete:l,autoFocus:i=!1,children:o,className:a,color:s="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:m,id:g,InputLabelProps:b,inputProps:v,InputProps:h,inputRef:y,label:w,maxRows:_,minRows:x,multiline:T=!1,name:k,onBlur:S,onChange:C,onFocus:M,placeholder:O,required:D=!1,rows:P,select:E=!1,SelectProps:I,type:A,value:F,variant:j="outlined"}=r,z=Kt(r,Mpe),B=Ie({},r,{autoFocus:i,color:s,disabled:c,error:d,fullWidth:p,multiline:T,required:D,select:E,variant:j}),N=Ope(B),R={};j==="outlined"&&(b&&typeof b.shrink<"u"&&(R.notched=b.shrink),R.label=w),E&&((!I||!I.native)&&(R.id=void 0),R["aria-describedby"]=void 0);const q=Kl(g),Y=m&&q?`${q}-helper-text`:void 0,L=w&&q?`${q}-label`:void 0,W=Ppe[j],U=ke.jsx(W,Ie({"aria-describedby":Y,autoComplete:l,autoFocus:i,defaultValue:u,fullWidth:p,multiline:T,name:k,rows:P,maxRows:_,minRows:x,type:A,value:F,id:q,inputRef:y,onBlur:S,onChange:C,onFocus:M,placeholder:O,inputProps:v},R,h));return ke.jsxs(Ape,Ie({className:on(N.root,a),disabled:c,error:d,fullWidth:p,ref:n,required:D,color:s,variant:j,ownerState:B},z,{children:[w!=null&&w!==""&&ke.jsx(cz,Ie({htmlFor:q,id:L},b,{children:w})),E?ke.jsx(sb,Ie({"aria-describedby":Y,id:q,labelId:L,value:F,input:U},I,{children:o})):U,m&&ke.jsx(nz,Ie({id:Y},f,{children:m}))]}))}),Epe=Dpe,Rpe=Object.freeze(Object.defineProperty({__proto__:null,default:Epe,getTextFieldUtilityClass:Fz,textFieldClasses:Cpe},Symbol.toStringTag,{value:"Module"})),{transitions:Fc}=es(),Dl="#ed0500",Lpe="#ded5d5",Ipe=es({shape:{borderRadius:5},palette:{primary:{main:Rl[900],light:Rl[200]},secondary:{main:Dl,dark:"#c10400",light:Rl[200]},background:{default:"#fff",paper:"#fff"}},components:{MuiLink:{styleOverrides:{root:{transition:Fc.create("color",{duration:Fc.duration.enteringScreen}),"&:hover":{color:Dl}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:Dl}}},MuiButton:{styleOverrides:{contained:{"&:hover":{background:Rl[800]}},outlined:{"&:hover":{color:Dl,borderColor:Dl,background:"#fff"}},text:{"&:hover":{color:Dl,borderColor:Dl}}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px","&:hover":{background:Rl[200]}}}},MuiIconButton:{styleOverrides:{root:{transition:Fc.create("color",{duration:Fc.duration.enteringScreen}),color:Rl[900],"&:hover":{color:Dl}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:Fc.create("color",{duration:Fc.duration.enteringScreen}),color:Rl[900],"&:hover":{color:Dl},"&.Mui-disabled":{border:"unset",background:Rl[100]}}}},MuiToggleButtonGroup:{defaultProps:{color:"secondary"}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{styleOverrides:{root:{boxShadow:"unset",border:"1px solid",borderColor:Lpe}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}});class $pe{constructor(t){$g(this,"cachedGraphs");$g(this,"cachedWidgets");$g(this,"inner");this.inner=t,this.cachedGraphs=new Map,this.cachedWidgets=new Map}async getAdditionGraphData(t){let n=this.cachedGraphs.get(t);return n!==void 0||(n=await this.inner.getAdditionGraphData(t),this.cachedGraphs.set(t,n)),n}async getAdditionWidgetData(t){let n=this.cachedWidgets.get(t);return n!==void 0||(n=await this.inner.getAdditionWidgetData(t),this.cachedWidgets.set(t,n)),n}}const DM=Je.createContext({getAdditionGraphData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data")),getAdditionWidgetData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data"))});function Npe(e){return new $pe(e)}var rv=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(rv||{});function l0(e){return e.palette.mode==="dark"?_l:wl}function s0(e){return e.palette.mode==="light"?wl:_l}const rk=e=>{const[t,n]=ge.useState({open:!1});return ke.jsxs(nu,{elevation:0,onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),sx:[{color:r=>s0(r)(r.palette.info.main,.6),backgroundColor:r=>l0(r)(r.palette.info.main,.9)},e.data.state==="success"&&{color:r=>s0(r)(r.palette.success.main,.6),backgroundColor:r=>l0(r)(r.palette.success.main,.9)},e.data.state==="warning"&&{color:r=>s0(r)(r.palette.warning.main,.6),backgroundColor:r=>l0(r)(r.palette.warning.main,.9)},e.data.state==="error"&&{color:r=>s0(r)(r.palette.error.main,.6),backgroundColor:r=>l0(r)(r.palette.error.main,.9)}],children:[ke.jsx(dr,{align:"center",variant:"h6",component:"div",children:e.data.value}),ke.jsx(dr,{align:"center",variant:"body1",component:"div",children:e.data.text}),ke.jsx(kM,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??ke.jsx(dr,{padding:1,children:e.data.longText})})]})},jz=e=>ke.jsxs(cM,{severity:e.data.severity,children:[ke.jsx(dM,{children:e.data.title}),e.data.text]}),aD=e=>{const{alertStats:t}=e;return ke.jsx(rk,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:ke.jsx(dr,{sx:{pr:1},children:ke.jsxs("ul",{children:[ke.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),ke.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),ke.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function Fpe(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const jpe=e=>{const{size:t,ItemWrapper:n}=e,r=e.children.alertsPosition??"row",{id:l,title:i,details:o,content:a,alerts:s,alertStats:u,insights:c}=e.children,d=s===void 0?!1:s.length>0,f=c===void 0?!1:c.length>0,p=ke.jsx(ale,{sx:{border:"1px solid",borderColor:"#d6d6d6",borderRadius:"4px"},elevation:0,children:ke.jsx(ule,{children:ke.jsxs(cr,{container:!0,spacing:1,direction:"column",children:[r==="row"?ke.jsxs(cr,{container:!0,spacing:1,item:!0,children:[ke.jsxs(cr,{item:!0,xs:d&&r==="row"?9:12,children:[i?ke.jsx(dr,{fontWeight:500,variant:"h5",children:i}):ke.jsx("div",{}),ke.jsx("div",{children:a}),o?ke.jsx(dr,{variant:"subtitle1",children:o}):ke.jsx("div",{})]}),d?ke.jsx(cr,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:s?ke.jsxs(Je.Fragment,{children:[u?ke.jsx(cr,{item:!0,children:ke.jsx(aD,{alertStats:u})}):ke.jsx("div",{}),s.map(m=>ke.jsx(cr,{item:!0,children:ke.jsx(rk,{data:m})}))]}):ke.jsx("div",{})}):ke.jsx("div",{})]}):ke.jsxs(Je.Fragment,{children:[ke.jsxs(cr,{item:!0,children:[i?ke.jsx(dr,{variant:"h5",children:i}):ke.jsx("div",{}),ke.jsx("div",{children:a}),o?ke.jsx(dr,{variant:"subtitle1",children:o}):ke.jsx("div",{})]}),d?ke.jsx(cr,{item:!0,xs:!0,children:ke.jsx(cr,{container:!0,direction:"row",spacing:1,children:s?ke.jsxs(Je.Fragment,{children:[u?ke.jsx(cr,{item:!0,xs:!0,children:ke.jsx(aD,{alertStats:u})}):ke.jsx("div",{}),s.map(m=>ke.jsx(cr,{item:!0,xs:!0,children:ke.jsx(rk,{data:m})}))]}):ke.jsx("div",{})})}):ke.jsx("div",{})]}),f?c.map(m=>ke.jsx(cr,{item:!0,xs:!0,sm:!0,md:!0,children:ke.jsx(jz,{data:m})})):ke.jsx("div",{})]})})});return ke.jsx(cr,{item:!0,...Fpe(t),children:n?n({id:l,children:p}):p})},oD=e=>ke.jsxs("div",{children:[ke.jsx(dr,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),ke.jsx(dr,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),zpe=e=>ke.jsx(Je.Fragment,{children:e.counters.length===1?ke.jsx(oD,{...e.counters[0]}):ke.jsx(cr,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map((t,n)=>ke.jsx(cr,{item:!0,xs:!0,component:Ia,height:"100%",children:ke.jsx(Ia,{children:ke.jsx(oD,{...t})})},n))})}),Bpe=e=>ke.jsxs("div",{children:[ke.jsxs(Ia,{display:"flex",alignItems:"center",children:[ke.jsx(Ia,{width:"100%",mr:1,children:ke.jsx(fz,{variant:"determinate",value:e.value/e.maxValue*100})}),ke.jsx(Ia,{minWidth:35,children:ke.jsx(dr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),ke.jsx(Ia,{width:"100%",children:ke.jsx(dr,{variant:"body2",color:"textSecondary",children:e.details??""})})]});var zz={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(n,r){e.exports=r()})(self,function(){return function(){var n={98847:function(i,o,a){var s=a(71828),u={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var c in u){var d=c.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");s.addStyleRule(d,u[c])}},98222:function(i,o,a){i.exports=a(82887)},27206:function(i,o,a){i.exports=a(60822)},5224:function(i,o,a){i.exports=a(83832)},59509:function(i,o,a){i.exports=a(72201)},49866:function(i,o,a){i.exports=a(99442)},19548:function(i,o,a){i.exports=a(8729)},61039:function(i,o,a){i.exports=a(14382)},24296:function(i,o,a){i.exports=a(43102)},58872:function(i,o,a){i.exports=a(92165)},65591:function(i,o,a){i.exports=a(36071)},69738:function(i,o,a){i.exports=a(43905)},92650:function(i,o,a){i.exports=a(35902)},73434:function(i,o,a){i.exports=a(94507)},760:function(i,o,a){var s=a(19548);s.register([a(27206),a(5224),a(58872),a(65591),a(69738),a(92650),a(49866),a(25743),a(6197),a(73434),a(54201),a(98222),a(61039),a(24296),a(66398),a(59509)]),i.exports=s},54201:function(i,o,a){i.exports=a(58810)},25743:function(i,o,a){i.exports=a(52979)},66398:function(i,o,a){i.exports=a(32275)},6197:function(i,o,a){i.exports=a(47462)},82884:function(i){i.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(i,o,a){var s=a(82884),u=a(41940),c=a(85555),d=a(44467).templatedArray;a(24695),i.exports=d("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",c.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",c.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:u({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(i,o,a){var s=a(71828),u=a(89298),c=a(92605).draw;function d(p){var m=p._fullLayout;s.filterVisible(m.annotations).forEach(function(g){var b=u.getFromId(p,g.xref),v=u.getFromId(p,g.yref),h=u.getRefType(g.xref),y=u.getRefType(g.yref);g._extremes={},h==="range"&&f(g,b),y==="range"&&f(g,v)})}function f(p,m){var g,b=m._id,v=b.charAt(0),h=p[v],y=p["a"+v],w=p[v+"ref"],_=p["a"+v+"ref"],x=p["_"+v+"padplus"],T=p["_"+v+"padminus"],k={x:1,y:-1}[v]*p[v+"shift"],S=3*p.arrowsize*p.arrowwidth||0,C=S+k,M=S-k,O=3*p.startarrowsize*p.arrowwidth||0,D=O+k,P=O-k;if(_===w){var E=u.findExtremes(m,[m.r2c(h)],{ppadplus:C,ppadminus:M}),I=u.findExtremes(m,[m.r2c(y)],{ppadplus:Math.max(x,D),ppadminus:Math.max(T,P)});g={min:[E.min[0],I.min[0]],max:[E.max[0],I.max[0]]}}else D=y?D+y:D,P=y?P-y:P,g=u.findExtremes(m,[m.r2c(h)],{ppadplus:Math.max(x,C,D),ppadminus:Math.max(T,M,P)});p._extremes[b]=g}i.exports=function(p){var m=p._fullLayout;if(s.filterVisible(m.annotations).length&&p._fullData.length)return s.syncOrAsync([c,d],p)}},44317:function(i,o,a){var s=a(71828),u=a(73972),c=a(44467).arrayEditor;function d(p,m){var g,b,v,h,y,w,_,x=p._fullLayout.annotations,T=[],k=[],S=[],C=(m||[]).length;for(g=0;g0||g.explicitOff.length>0},onClick:function(p,m){var g,b,v=d(p,m),h=v.on,y=v.off.concat(v.explicitOff),w={},_=p._fullLayout.annotations;if(h.length||y.length){for(g=0;g.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var ye=!1,Te=["x","y"],Ae=0;Ae1)&&(Xe===qe?((Ze=ot.r2fraction(C["a"+Ue]))<0||Ze>1)&&(ye=!0):ye=!0),Re=ot._offset+ot.r2p(C[Ue]),Fe=.5}else{var ut=St==="domain";Ue==="x"?($e=C[Ue],Re=ut?ot._offset+ot._length*$e:Re=F.l+F.w*$e):($e=1-C[Ue],Re=ut?ot._offset+ot._length*$e:Re=F.t+F.h*$e),Fe=C.showarrow?.5:$e}if(C.showarrow){it.head=Re;var ht=C["a"+Ue];if(Be=dt*xe(.5,C.xanchor)-vt*xe(.5,C.yanchor),Xe===qe){var Rt=p.getRefType(Xe);Rt==="domain"?(Ue==="y"&&(ht=1-ht),it.tail=ot._offset+ot._length*ht):Rt==="paper"?Ue==="y"?(ht=1-ht,it.tail=F.t+F.h*ht):it.tail=F.l+F.w*ht:it.tail=ot._offset+ot.r2p(ht),Le=Be}else it.tail=Re+ht,Le=Be+ht;it.text=it.tail+Be;var Ct=A[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=d.constrain(it.head,1,Ct-1)),Xe==="pixel"){var Wt=-Math.max(it.tail-3,it.text),_t=Math.min(it.tail+3,it.text)-Ct;Wt>0?(it.tail+=Wt,it.text+=Wt):_t>0&&(it.tail-=_t,it.text-=_t)}it.tail+=tt,it.head+=tt}else Le=Be=We*xe(Fe,ze),it.text=Re+Be;it.text+=tt,Be+=tt,Le+=tt,C["_"+Ue+"padplus"]=We/2+Le,C["_"+Ue+"padminus"]=We/2-Le,C["_"+Ue+"size"]=We,C["_"+Ue+"shift"]=Be}if(ye)ee.remove();else{var be=0,Ce=0;if(C.align!=="left"&&(be=(de-K)*(C.align==="center"?.5:1)),C.valign!=="top"&&(Ce=(_e-ne)*(C.valign==="middle"?.5:1)),ce)Me.select("svg").attr({x:G+be-1,y:G+Ce}).call(g.setClipUrl,Q?q:null,S);else{var Ge=G+Ce-we.top,He=G+be-we.left;se.call(v.positionText,He,Ge).call(g.setClipUrl,Q?q:null,S)}re.select("rect").call(g.setRect,G,G,de,_e),X.call(g.setRect,H/2,H/2,ue-H,pe-H),ee.call(g.setTranslate,Math.round(Y.x.text-ue/2),Math.round(Y.y.text-pe/2)),U.attr({transform:"rotate("+L+","+Y.x.text+","+Y.y.text+")"});var et,Ke=function(Ye,nt){W.selectAll(".annotation-arrow-g").remove();var ct=Y.x.head,yt=Y.y.head,rt=Y.x.tail+Ye,Ft=Y.y.tail+nt,Yt=Y.x.text+Ye,Mt=Y.y.text+nt,jt=d.rotationXYMatrix(L,Yt,Mt),Lt=d.apply2DTransform(jt),gt=d.apply2DTransform2(jt),mt=+X.attr("width"),xt=+X.attr("height"),Ut=Yt-.5*mt,It=Ut+mt,zt=Mt-.5*xt,kt=zt+xt,Ot=[[Ut,zt,Ut,kt],[Ut,kt,It,kt],[It,kt,It,zt],[It,zt,Ut,zt]].map(gt);if(!Ot.reduce(function(dn,gn){return dn^!!d.segmentsIntersect(ct,yt,ct+1e6,yt+1e6,gn[0],gn[1],gn[2],gn[3])},!1)){Ot.forEach(function(dn){var gn=d.segmentsIntersect(rt,Ft,ct,yt,dn[0],dn[1],dn[2],dn[3]);gn&&(rt=gn.x,Ft=gn.y)});var At=C.arrowwidth,Nt=C.arrowcolor,$t=C.arrowside,Bt=W.append("g").style({opacity:m.opacity(Nt)}).classed("annotation-arrow-g",!0),Xt=Bt.append("path").attr("d","M"+rt+","+Ft+"L"+ct+","+yt).style("stroke-width",At+"px").call(m.stroke,m.rgb(Nt));if(_(Xt,$t,C),j.annotationPosition&&Xt.node().parentNode&&!O){var Zt=ct,qt=yt;if(C.standoff){var Ht=Math.sqrt(Math.pow(ct-rt,2)+Math.pow(yt-Ft,2));Zt+=C.standoff*(rt-ct)/Ht,qt+=C.standoff*(Ft-yt)/Ht}var sn,xn,mn=Bt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(rt-Zt)+","+(Ft-qt),transform:f(Zt,qt)}).style("stroke-width",At+6+"px").call(m.stroke,"rgba(0,0,0,0)").call(m.fill,"rgba(0,0,0,0)");y.init({element:mn.node(),gd:S,prepFn:function(){var dn=g.getTranslate(ee);sn=dn.x,xn=dn.y,D&&D.autorange&&B(D._name+".autorange",!0),P&&P.autorange&&B(P._name+".autorange",!0)},moveFn:function(dn,gn){var en=Lt(sn,xn),kn=en[0]+dn,un=en[1]+gn;ee.call(g.setTranslate,kn,un),N("x",T(D,dn,"x",F,C)),N("y",T(P,gn,"y",F,C)),C.axref===C.xref&&N("ax",T(D,dn,"ax",F,C)),C.ayref===C.yref&&N("ay",T(P,gn,"ay",F,C)),Bt.attr("transform",f(dn,gn)),U.attr({transform:"rotate("+L+","+kn+","+un+")"})},doneFn:function(){u.call("_guiRelayout",S,R());var dn=document.querySelector(".js-notes-box-panel");dn&&dn.redraw(dn.selectedObj)}})}}};C.showarrow&&Ke(0,0),V&&y.init({element:ee.node(),gd:S,prepFn:function(){et=U.attr("transform")},moveFn:function(Ye,nt){var ct="pointer";if(C.showarrow)C.axref===C.xref?N("ax",T(D,Ye,"ax",F,C)):N("ax",C.ax+Ye),C.ayref===C.yref?N("ay",T(P,nt,"ay",F.w,C)):N("ay",C.ay+nt),Ke(Ye,nt);else{if(O)return;var yt,rt;if(D)yt=T(D,Ye,"x",F,C);else{var Ft=C._xsize/F.w,Yt=C.x+(C._xshift-C.xshift)/F.w-Ft/2;yt=y.align(Yt+Ye/F.w,Ft,0,1,C.xanchor)}if(P)rt=T(P,nt,"y",F,C);else{var Mt=C._ysize/F.h,jt=C.y-(C._yshift+C.yshift)/F.h-Mt/2;rt=y.align(jt-nt/F.h,Mt,0,1,C.yanchor)}N("x",yt),N("y",rt),D&&P||(ct=y.getCursor(D?.5:yt,P?.5:rt,C.xanchor,C.yanchor))}U.attr({transform:f(Ye,nt)+et}),h(ee,ct)},clickFn:function(Ye,nt){C.captureevents&&S.emit("plotly_clickannotation",he(nt))},doneFn:function(){h(ee),u.call("_guiRelayout",S,R());var Ye=document.querySelector(".js-notes-box-panel");Ye&&Ye.redraw(Ye.selectedObj)}})}}}i.exports={draw:function(S){var C=S._fullLayout;C._infolayer.selectAll(".annotation").remove();for(var M=0;M=0,O=b.indexOf("end")>=0,D=T.backoff*S+v.standoff,P=k.backoff*C+v.startstandoff;if(x.nodeName==="line"){h={x:+g.attr("x1"),y:+g.attr("y1")},y={x:+g.attr("x2"),y:+g.attr("y2")};var E=h.x-y.x,I=h.y-y.y;if(_=(w=Math.atan2(I,E))+Math.PI,D&&P&&D+P>Math.sqrt(E*E+I*I))return void W();if(D){if(D*D>E*E+I*I)return void W();var A=D*Math.cos(w),F=D*Math.sin(w);y.x+=A,y.y+=F,g.attr({x2:y.x,y2:y.y})}if(P){if(P*P>E*E+I*I)return void W();var j=P*Math.cos(w),z=P*Math.sin(w);h.x-=j,h.y-=z,g.attr({x1:h.x,y1:h.y})}}else if(x.nodeName==="path"){var B=x.getTotalLength(),N="";if(B1){v=!0;break}}v?d.fullLayout._infolayer.select(".annotation-"+d.id+'[data-index="'+g+'"]').remove():(b._pdata=u(d.glplot.cameraParams,[f.xaxis.r2l(b.x)*p[0],f.yaxis.r2l(b.y)*p[1],f.zaxis.r2l(b.z)*p[2]]),s(d.graphDiv,b,g,d.id,b._xa,b._ya))}}},2468:function(i,o,a){var s=a(73972),u=a(71828);i.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:a(26997)}}},layoutAttributes:a(26997),handleDefaults:a(20226),includeBasePlot:function(c,d){var f=s.subplotsRegistry.gl3d;if(f)for(var p=f.attrRegex,m=Object.keys(c),g=0;g=0)))return b;if(_===3)y[_]>1&&(y[_]=1);else if(y[_]>=1)return b}var x=Math.round(255*y[0])+", "+Math.round(255*y[1])+", "+Math.round(255*y[2]);return w?"rgba("+x+", "+y[3]+")":"rgb("+x+")"}d.tinyRGB=function(b){var v=b.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},d.rgb=function(b){return d.tinyRGB(s(b))},d.opacity=function(b){return b?s(b).getAlpha():0},d.addOpacity=function(b,v){var h=s(b).toRgb();return"rgba("+Math.round(h.r)+", "+Math.round(h.g)+", "+Math.round(h.b)+", "+v+")"},d.combine=function(b,v){var h=s(b).toRgb();if(h.a===1)return s(b).toRgbString();var y=s(v||m).toRgb(),w=y.a===1?y:{r:255*(1-y.a)+y.r*y.a,g:255*(1-y.a)+y.g*y.a,b:255*(1-y.a)+y.b*y.a},_={r:w.r*(1-h.a)+h.r*h.a,g:w.g*(1-h.a)+h.g*h.a,b:w.b*(1-h.a)+h.b*h.a};return s(_).toRgbString()},d.contrast=function(b,v,h){var y=s(b);return y.getAlpha()!==1&&(y=s(d.combine(b,m))),(y.isDark()?v?y.lighten(v):m:h?y.darken(h):p).toString()},d.stroke=function(b,v){var h=s(v);b.style({stroke:d.tinyRGB(h),"stroke-opacity":h.getAlpha()})},d.fill=function(b,v){var h=s(v);b.style({fill:d.tinyRGB(h),"fill-opacity":h.getAlpha()})},d.clean=function(b){if(b&&typeof b=="object"){var v,h,y,w,_=Object.keys(b);for(v=0;v<_.length;v++)if(w=b[y=_[v]],y.substr(y.length-5)==="color")if(Array.isArray(w))for(h=0;h0?_t>=et:_t<=et));be++)_t>Ye&&_t0?_t>=et:_t<=et));be++)_t>Wt[0]&&_t1){var vt=Math.pow(10,Math.floor(Math.log(dt)/Math.LN10));ot*=vt*m.roundUp(dt/vt,[2,5,10]),(Math.abs(K.start)/K.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=ot}qe.domain=R?[Be+G/se.h,Be+ye-G/se.h]:[Be+Z/se.w,Be+ye-Z/se.w],qe.setScale(),z.attr("transform",g(Math.round(se.l),Math.round(se.t)));var We,ze=z.select("."+P.cbtitleunshift).attr("transform",g(-Math.round(se.l),-Math.round(se.t))),tt=qe.ticklabelposition,it=qe.title.font.size,St=z.select("."+P.cbaxis),Ze=0,ut=0;function ht(Rt,Ct){var Wt={propContainer:qe,propName:B._propPrefix+"title",traceIndex:B._traceIndex,_meta:B._meta,placeholder:ie._dfltTitle.colorbar,containerGroup:z.select("."+P.cbtitle)},_t=Rt.charAt(0)==="h"?Rt.substr(1):"h"+Rt;z.selectAll("."+_t+",."+_t+"-math-group").remove(),w.draw(N,Rt,b(Wt,Ct||{}))}return m.syncOrAsync([c.previousPromises,function(){var Rt,Ct;(R&&Xe||!R&&!Xe)&&(Pe==="top"&&(Rt=Z+se.l+Te*X,Ct=G+se.t+Ae*(1-Be-ye)+3+.75*it),Pe==="bottom"&&(Rt=Z+se.l+Te*X,Ct=G+se.t+Ae*(1-Be)-3-.25*it),Pe==="right"&&(Ct=G+se.t+Ae*Q+3+.75*it,Rt=Z+se.l+Te*Be),ht(qe._id+"title",{attributes:{x:Rt,y:Ct,"text-anchor":R?"start":"middle"}}))},function(){if(!R&&!Xe||R&&Xe){var Rt,Ct=z.select("."+P.cbtitle),Wt=Ct.select("text"),_t=[-U/2,U/2],be=Ct.select(".h"+qe._id+"title-math-group").node(),Ce=15.6;if(Wt.node()&&(Ce=parseInt(Wt.node().style.fontSize,10)*M),be?(Rt=h.bBox(be),ut=Rt.width,(Ze=Rt.height)>Ce&&(_t[1]-=(Ze-Ce)/2)):Wt.node()&&!Wt.classed(P.jsPlaceholder)&&(Rt=h.bBox(Wt.node()),ut=Rt.width,Ze=Rt.height),R){if(Ze){if(Ze+=5,Pe==="top")qe.domain[1]-=Ze/se.h,_t[1]*=-1;else{qe.domain[0]+=Ze/se.h;var Ge=_.lineCount(Wt);_t[1]+=(1-Ge)*Ce}Ct.attr("transform",g(_t[0],_t[1])),qe.setScale()}}else ut&&(Pe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Ct.attr("transform",g(_t[0],_t[1])),qe.setScale())}z.selectAll("."+P.cbfills+",."+P.cblines).attr("transform",R?g(0,Math.round(se.h*(1-qe.domain[1]))):g(Math.round(se.w*qe.domain[0]),0)),St.attr("transform",R?g(0,Math.round(-se.t)):g(Math.round(-se.l),0));var He=z.select("."+P.cbfills).selectAll("rect."+P.cbfill).attr("style","").data(de);He.enter().append("rect").classed(P.cbfill,!0).attr("style",""),He.exit().remove();var et=Me.map(qe.c2p).map(Math.round).sort(function(yt,rt){return yt-rt});He.each(function(yt,rt){var Ft=[rt===0?Me[0]:(de[rt]+de[rt-1])/2,rt===de.length-1?Me[1]:(de[rt]+de[rt+1])/2].map(qe.c2p).map(Math.round);R&&(Ft[1]=m.constrain(Ft[1]+(Ft[1]>Ft[0])?1:-1,et[0],et[1]));var Yt=s.select(this).attr(R?"x":"y",Re).attr(R?"y":"x",s.min(Ft)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(s.max(Ft)-s.min(Ft),2));if(B._fillgradient)h.gradient(Yt,N,B._id,R?"vertical":"horizontalreversed",B._fillgradient,"fill");else{var Mt=we(yt).replace("e-","");Yt.attr("fill",u(Mt).toHexString())}});var Ke=z.select("."+P.cblines).selectAll("path."+P.cbline).data(Se.color&&Se.width?_e:[]);Ke.enter().append("path").classed(P.cbline,!0),Ke.exit().remove(),Ke.each(function(yt){var rt=Re,Ft=Math.round(qe.c2p(yt))+Se.width/2%1;s.select(this).attr("d","M"+(R?rt+","+Ft:Ft+","+rt)+(R?"h":"v")+ue).call(h.lineGroupStyle,Se.width,ce(yt),Se.dash)}),St.selectAll("g."+qe._id+"tick,path").remove();var Ye=Re+ue+(U||0)/2-(B.ticks==="outside"?1:0),nt=f.calcTicks(qe),ct=f.getTickSigns(qe)[2];return f.drawTicks(N,qe,{vals:qe.ticks==="inside"?f.clipEnds(qe,nt):nt,layer:St,path:f.makeTickPath(qe,Ye,ct),transFn:f.makeTransTickFn(qe)}),f.drawLabels(N,qe,{vals:nt,layer:St,transFn:f.makeTransTickLabelFn(qe),labelFns:f.makeLabelFns(qe,Ye)})},function(){if(R&&!Xe||!R&&Xe){var Rt,Ct,Wt=qe.position||0,_t=qe._offset+qe._length/2;if(Pe==="right")Ct=_t,Rt=se.l+Te*Wt+10+it*(qe.showticklabels?1:.5);else if(Rt=_t,Pe==="bottom"&&(Ct=se.t+Ae*Wt+10+(tt.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&B.ticklen||0)),Pe==="top"){var be=Oe.text.split("
").length;Ct=se.t+Ae*Wt+10-ue-M*it*be}ht((R?"h":"v")+qe._id+"title",{avoid:{selection:s.select(N).selectAll("g."+qe._id+"tick"),side:Pe,offsetTop:R?0:se.t,offsetLeft:R?se.l:0,maxShift:R?ie.width:ie.height},attributes:{x:Rt,y:Ct,"text-anchor":"middle"},transform:{rotate:R?-90:0,offset:0}})}},c.previousPromises,function(){var Rt,Ct=ue+U/2;tt.indexOf("inside")===-1&&(Rt=h.bBox(St.node()),Ct+=R?Rt.width:Rt.height),We=ze.select("text");var Wt=0,_t=R&&Pe==="top",be=!R&&Pe==="right",Ce=0;if(We.node()&&!We.classed(P.jsPlaceholder)){var Ge,He=ze.select(".h"+qe._id+"title-math-group").node();He&&(R&&Xe||!R&&!Xe)?(Wt=(Rt=h.bBox(He)).width,Ge=Rt.height):(Wt=(Rt=h.bBox(ze.node())).right-se.l-(R?Re:Ue),Ge=Rt.bottom-se.t-(R?Ue:Re),R||Pe!=="top"||(Ct+=Rt.height,Ce=Rt.height)),be&&(We.attr("transform",g(Wt/2+it/2,0)),Wt*=2),Ct=Math.max(Ct,R?Wt:Ge)}var et=2*(R?Z:G)+Ct+V+U/2,Ke=0;!R&&Oe.text&&H==="bottom"&&Q<=0&&(et+=Ke=et/2,Ce+=Ke),ie._hColorbarMoveTitle=Ke,ie._hColorbarMoveCBTitle=Ce;var Ye=V+U,nt=(R?Re:Ue)-Ye/2-(R?Z:0),ct=(R?Ue:Re)-(R?xe:G+Ce-Ke);z.select("."+P.cbbg).attr("x",nt).attr("y",ct).attr(R?"width":"height",Math.max(et-Ke,2)).attr(R?"height":"width",Math.max(xe+Ye,2)).call(y.fill,te).call(y.stroke,B.bordercolor).style("stroke-width",V);var yt=be?Math.max(Wt-10,0):0;z.selectAll("."+P.cboutline).attr("x",(R?Re:Ue+Z)+yt).attr("y",(R?Ue+G-xe:Re)+(_t?Ze:0)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(xe-(R?2*G+Ze:2*Z+yt),2)).call(y.stroke,B.outlinecolor).style({fill:"none","stroke-width":U});var rt=R?Le*et:0,Ft=R?0:(1-$e)*et-Ce;if(rt=ae?se.l-rt:-rt,Ft=re?se.t-Ft:-Ft,z.attr("transform",g(rt,Ft)),!R&&(V||u(te).getAlpha()&&!u.equals(ie.paper_bgcolor,te))){var Yt=St.selectAll("text"),Mt=Yt[0].length,jt=z.select("."+P.cbbg).node(),Lt=h.bBox(jt),gt=h.getTranslate(z);Yt.each(function($t,Bt){var Xt=Mt-1;if(Bt===0||Bt===Xt){var Zt,qt=h.bBox(this),Ht=h.getTranslate(this);if(Bt===Xt){var sn=qt.right+Ht.x;(Zt=Lt.right+gt.x+Ue-V-2+X-sn)>0&&(Zt=0)}else if(Bt===0){var xn=qt.left+Ht.x;(Zt=Lt.left+gt.x+Ue+V+2-xn)<0&&(Zt=0)}Zt&&(Mt<3?this.setAttribute("transform","translate("+Zt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var mt={},xt=O[ee],Ut=D[ee],It=O[H],zt=D[H],kt=et-ue;R?(Y==="pixels"?(mt.y=Q,mt.t=xe*It,mt.b=xe*zt):(mt.t=mt.b=0,mt.yt=Q+q*It,mt.yb=Q-q*zt),W==="pixels"?(mt.x=X,mt.l=et*xt,mt.r=et*Ut):(mt.l=kt*xt,mt.r=kt*Ut,mt.xl=X-L*xt,mt.xr=X+L*Ut)):(Y==="pixels"?(mt.x=X,mt.l=xe*xt,mt.r=xe*Ut):(mt.l=mt.r=0,mt.xl=X+q*xt,mt.xr=X-q*Ut),W==="pixels"?(mt.y=1-Q,mt.t=et*It,mt.b=et*zt):(mt.t=kt*It,mt.b=kt*zt,mt.yt=Q-L*It,mt.yb=Q+L*zt));var Ot=B.y<.5?"b":"t",At=B.x<.5?"l":"r";N._fullLayout._reservedMargin[B._id]={};var Nt={r:ie.width-nt-rt,l:nt+mt.r,b:ie.height-ct-Ft,t:ct+mt.b};ae&&re?c.autoMargin(N,B._id,mt):ae?N._fullLayout._reservedMargin[B._id][Ot]=Nt[Ot]:re||R?N._fullLayout._reservedMargin[B._id][At]=Nt[At]:N._fullLayout._reservedMargin[B._id][Ot]=Nt[Ot]}],N)}(F,A,E);j&&j.then&&(E._promises||[]).push(j),E._context.edits.colorbarPosition&&function(z,B,N){var R,q,Y,L=B.orientation==="v",W=N._fullLayout._size;p.init({element:z.node(),gd:N,prepFn:function(){R=z.attr("transform"),v(z)},moveFn:function(U,V){z.attr("transform",R+g(U,V)),q=p.align((L?B._uFrac:B._vFrac)+U/W.w,L?B._thickFrac:B._lenFrac,0,1,B.xanchor),Y=p.align((L?B._vFrac:1-B._uFrac)-V/W.h,L?B._lenFrac:B._thickFrac,0,1,B.yanchor);var te=p.getCursor(q,Y,B.xanchor,B.yanchor);v(z,te)},doneFn:function(){if(v(z),q!==void 0&&Y!==void 0){var U={};U[B._propPrefix+"x"]=q,U[B._propPrefix+"y"]=Y,B._traceIndex!==void 0?d.call("_guiRestyle",N,U,B._traceIndex):d.call("_guiRelayout",N,U)}}})}(F,A,E)}),I.exit().each(function(A){c.autoMargin(E,A._id)}).remove(),I.order()}}},76228:function(i,o,a){var s=a(71828);i.exports=function(u){return s.isPlainObject(u.colorbar)}},12311:function(i,o,a){i.exports={moduleType:"component",name:"colorbar",attributes:a(63583),supplyDefaults:a(62499),draw:a(98981).draw,hasColorbar:a(76228)}},50693:function(i,o,a){var s=a(63583),u=a(30587).counter,c=a(78607),d=a(63282).scales;function f(p){return"`"+p+"`"}c(d),i.exports=function(p,m){p=p||"";var g,b=(m=m||{}).cLetter||"c",v=("onlyIfNumerical"in m&&m.onlyIfNumerical,"noScale"in m?m.noScale:p==="marker.line"),h="showScaleDflt"in m?m.showScaleDflt:b==="z",y=typeof m.colorscaleDflt=="string"?d[m.colorscaleDflt]:null,w=m.editTypeOverride||"",_=p?p+".":"";"colorAttr"in m?(g=m.colorAttr,m.colorAttr):f(_+(g={z:"z",c:"color"}[b]));var x=b+"auto",T=b+"min",k=b+"max",S=b+"mid",C={};C[T]=C[k]=void 0;var M={};M[x]=!1;var O={};return g==="color"&&(O.color={valType:"color",arrayOk:!0,editType:w||"style"},m.anim&&(O.color.anim=!0)),O[x]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:C},O[T]={valType:"number",dflt:null,editType:w||"plot",impliedEdits:M},O[k]={valType:"number",dflt:null,editType:w||"plot",impliedEdits:M},O[S]={valType:"number",dflt:null,editType:"calc",impliedEdits:C},O.colorscale={valType:"colorscale",editType:"calc",dflt:y,impliedEdits:{autocolorscale:!1}},O.autocolorscale={valType:"boolean",dflt:m.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},O.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(O.showscale={valType:"boolean",dflt:h,editType:"calc"},O.colorbar=s),m.noColorAxis||(O.coloraxis={valType:"subplotid",regex:u("coloraxis"),dflt:null,editType:"calc"}),O}},78803:function(i,o,a){var s=a(92770),u=a(71828),c=a(52075).extractOpts;i.exports=function(d,f,p){var m,g=d._fullLayout,b=p.vals,v=p.containerStr,h=v?u.nestedProperty(f,v).get():f,y=c(h),w=y.auto!==!1,_=y.min,x=y.max,T=y.mid,k=function(){return u.aggNums(Math.min,null,b)},S=function(){return u.aggNums(Math.max,null,b)};_===void 0?_=k():w&&(_=h._colorAx&&s(_)?Math.min(_,k()):k()),x===void 0?x=S():w&&(x=h._colorAx&&s(x)?Math.max(x,S()):S()),w&&T!==void 0&&(x-T>T-_?_=T-(x-T):x-T=0?g.colorscale.sequential:g.colorscale.sequentialminus,y._sync("colorscale",m))}},33046:function(i,o,a){var s=a(71828),u=a(52075).hasColorscale,c=a(52075).extractOpts;i.exports=function(d,f){function p(w,_){var x=w["_"+_];x!==void 0&&(w[_]=x)}function m(w,_){var x=_.container?s.nestedProperty(w,_.container).get():w;if(x)if(x.coloraxis)x._colorAx=f[x.coloraxis];else{var T=c(x),k=T.auto;(k||T.min===void 0)&&p(x,_.min),(k||T.max===void 0)&&p(x,_.max),T.autocolorscale&&p(x,"colorscale")}}for(var g=0;g=0;k--,S++){var C=_[k];T[S]=[1-C[0],C[1]]}return T}function y(_,x){x=x||{};for(var T=_.domain,k=_.range,S=k.length,C=new Array(S),M=0;M1.3333333333333333-p?f:p}},70461:function(i,o,a){var s=a(71828),u=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];i.exports=function(c,d,f,p){return c=f==="left"?0:f==="center"?1:f==="right"?2:s.constrain(Math.floor(3*c),0,2),d=p==="bottom"?0:p==="middle"?1:p==="top"?2:s.constrain(Math.floor(3*d),0,2),u[d][c]}},64505:function(i,o){o.selectMode=function(a){return a==="lasso"||a==="select"},o.drawMode=function(a){return a==="drawclosedpath"||a==="drawopenpath"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.openMode=function(a){return a==="drawline"||a==="drawopenpath"},o.rectMode=function(a){return a==="select"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.freeMode=function(a){return a==="lasso"||a==="drawclosedpath"||a==="drawopenpath"},o.selectingOrDrawing=function(a){return o.freeMode(a)||o.rectMode(a)}},28569:function(i,o,a){var s=a(48956),u=a(57035),c=a(38520),d=a(71828).removeElement,f=a(85555),p=i.exports={};p.align=a(92807),p.getCursor=a(70461);var m=a(26041);function g(){var v=document.createElement("div");v.className="dragcover";var h=v.style;return h.position="fixed",h.left=0,h.right=0,h.top=0,h.bottom=0,h.zIndex=999999999,h.background="none",document.body.appendChild(v),v}function b(v){return s(v.changedTouches?v.changedTouches[0]:v,document.body)}p.unhover=m.wrapped,p.unhoverRaw=m.raw,p.init=function(v){var h,y,w,_,x,T,k,S,C=v.gd,M=1,O=C._context.doubleClickDelay,D=v.element;C._mouseDownTime||(C._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=E,c?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=E,D.addEventListener("touchstart",E,{passive:!1})):D.ontouchstart=E;var P=v.clampFn||function(F,j,z){return Math.abs(F)O&&(M=Math.max(M-1,1)),C._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(M,T),!S){var j;try{j=new MouseEvent("click",F)}catch{var z=b(F);(j=document.createEvent("MouseEvents")).initMouseEvent("click",F.bubbles,F.cancelable,F.view,F.detail,F.screenX,F.screenY,z[0],z[1],F.ctrlKey,F.altKey,F.shiftKey,F.metaKey,F.button,F.relatedTarget)}k.dispatchEvent(j)}C._dragging=!1,C._dragged=!1}else C._dragged=!1}},p.coverSlip=g},26041:function(i,o,a){var s=a(11086),u=a(79990),c=a(24401).getGraphDiv,d=a(26675),f=i.exports={};f.wrapped=function(p,m,g){(p=c(p))._fullLayout&&u.clear(p._fullLayout._uid+d.HOVERID),f.raw(p,m,g)},f.raw=function(p,m){var g=p._fullLayout,b=p._hoverdata;m||(m={}),m.target&&!p._dragged&&s.triggerHandler(p,"plotly_beforehover",m)===!1||(g._hoverlayer.selectAll("g").remove(),g._hoverlayer.selectAll("line").remove(),g._hoverlayer.selectAll("circle").remove(),p._hoverdata=void 0,m.target&&b&&p.emit("plotly_unhover",{event:m,points:b}))}},79952:function(i,o){o.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},o.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(i,o,a){var s=a(39898),u=a(71828),c=u.numberFormat,d=a(92770),f=a(84267),p=a(73972),m=a(7901),g=a(21081),b=u.strTranslate,v=a(63893),h=a(77922),y=a(18783).LINE_SPACING,w=a(37822).DESELECTDIM,_=a(34098),x=a(39984),T=a(23469).appendArrayPointValue,k=i.exports={};function S(ce,we,K){var ne=we.fillpattern,de=ne&&k.getPatternAttr(ne.shape,0,"");if(de){var _e=k.getPatternAttr(ne.bgcolor,0,null),ue=k.getPatternAttr(ne.fgcolor,0,null),pe=ne.fgopacity,xe=k.getPatternAttr(ne.size,0,8),ye=k.getPatternAttr(ne.solidity,0,.3),Te=we.uid;k.pattern(ce,"point",K,Te,de,xe,ye,void 0,ne.fillmode,_e,ue,pe)}else we.fillcolor&&ce.call(m.fill,we.fillcolor)}k.font=function(ce,we,K,ne){u.isPlainObject(we)&&(ne=we.color,K=we.size,we=we.family),we&&ce.style("font-family",we),K+1&&ce.style("font-size",K+"px"),ne&&ce.call(m.fill,ne)},k.setPosition=function(ce,we,K){ce.attr("x",we).attr("y",K)},k.setSize=function(ce,we,K){ce.attr("width",we).attr("height",K)},k.setRect=function(ce,we,K,ne,de){ce.call(k.setPosition,we,K).call(k.setSize,ne,de)},k.translatePoint=function(ce,we,K,ne){var de=K.c2p(ce.x),_e=ne.c2p(ce.y);return!!(d(de)&&d(_e)&&we.node())&&(we.node().nodeName==="text"?we.attr("x",de).attr("y",_e):we.attr("transform",b(de,_e)),!0)},k.translatePoints=function(ce,we,K){ce.each(function(ne){var de=s.select(this);k.translatePoint(ne,de,we,K)})},k.hideOutsideRangePoint=function(ce,we,K,ne,de,_e){we.attr("display",K.isPtWithinRange(ce,de)&&ne.isPtWithinRange(ce,_e)?null:"none")},k.hideOutsideRangePoints=function(ce,we){if(we._hasClipOnAxisFalse){var K=we.xaxis,ne=we.yaxis;ce.each(function(de){var _e=de[0].trace,ue=_e.xcalendar,pe=_e.ycalendar,xe=p.traceIs(_e,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(xe).each(function(ye){k.hideOutsideRangePoint(ye,s.select(this),K,ne,ue,pe)})})}},k.crispRound=function(ce,we,K){return we&&d(we)?ce._context.staticPlot?we:we<1?1:Math.round(we):K||0},k.singleLineStyle=function(ce,we,K,ne,de){we.style("fill","none");var _e=(((ce||[])[0]||{}).trace||{}).line||{},ue=K||_e.width||0,pe=de||_e.dash||"";m.stroke(we,ne||_e.color),k.dashLine(we,pe,ue)},k.lineGroupStyle=function(ce,we,K,ne){ce.style("fill","none").each(function(de){var _e=(((de||[])[0]||{}).trace||{}).line||{},ue=we||_e.width||0,pe=ne||_e.dash||"";s.select(this).call(m.stroke,K||_e.color).call(k.dashLine,pe,ue)})},k.dashLine=function(ce,we,K){K=+K||0,we=k.dashStyle(we,K),ce.style({"stroke-dasharray":we,"stroke-width":K+"px"})},k.dashStyle=function(ce,we){we=+we||1;var K=Math.max(we,3);return ce==="solid"?ce="":ce==="dot"?ce=K+"px,"+K+"px":ce==="dash"?ce=3*K+"px,"+3*K+"px":ce==="longdash"?ce=5*K+"px,"+5*K+"px":ce==="dashdot"?ce=3*K+"px,"+K+"px,"+K+"px,"+K+"px":ce==="longdashdot"&&(ce=5*K+"px,"+2*K+"px,"+K+"px,"+2*K+"px"),ce},k.singleFillStyle=function(ce,we){var K=s.select(ce.node());S(ce,((K.data()[0]||[])[0]||{}).trace||{},we)},k.fillGroupStyle=function(ce,we){ce.style("stroke-width",0).each(function(K){var ne=s.select(this);K[0].trace&&S(ne,K[0].trace,we)})};var C=a(90998);k.symbolNames=[],k.symbolFuncs=[],k.symbolBackOffs=[],k.symbolNeedLines={},k.symbolNoDot={},k.symbolNoFill={},k.symbolList=[],Object.keys(C).forEach(function(ce){var we=C[ce],K=we.n;k.symbolList.push(K,String(K),ce,K+100,String(K+100),ce+"-open"),k.symbolNames[K]=ce,k.symbolFuncs[K]=we.f,k.symbolBackOffs[K]=we.backoff||0,we.needLine&&(k.symbolNeedLines[K]=!0),we.noDot?k.symbolNoDot[K]=!0:k.symbolList.push(K+200,String(K+200),ce+"-dot",K+300,String(K+300),ce+"-open-dot"),we.noFill&&(k.symbolNoFill[K]=!0)});var M=k.symbolNames.length;function O(ce,we,K,ne){var de=ce%100;return k.symbolFuncs[de](we,K,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}k.symbolNumber=function(ce){if(d(ce))ce=+ce;else if(typeof ce=="string"){var we=0;ce.indexOf("-open")>0&&(we=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(we+=200,ce=ce.replace("-dot","")),(ce=k.symbolNames.indexOf(ce))>=0&&(ce+=we)}return ce%100>=M||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},P={x1:0,x2:0,y1:1,y2:0},E=c("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:P},verticalreversed:{node:"linearGradient",attrs:P,reversed:!0}};k.gradient=function(ce,we,K,ne,de,_e){for(var ue=de.length,pe=I[ne],xe=new Array(ue),ye=0;ye=0&&ce.i===void 0&&(ce.i=_e.i),we.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var xe;xe=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=xe,ne.selectedSizeFn&&(xe=ce.mrc=ne.selectedSizeFn(ce));var ye=k.symbolNumber(ce.mx||ue.symbol)||0;ce.om=ye%200>=100;var Te=Me(ce,K),Ae=G(ce,K);we.attr("d",O(ye,xe,Te,Ae))}var Re,Le,$e,Fe=!1;if(ce.so)$e=pe.outlierwidth,Le=pe.outliercolor,Re=ue.outliercolor;else{var Be=(pe||{}).width;$e=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,Le="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):u.isArrayOrTypedArray(pe.color)?m.defaultLine:pe.color,u.isArrayOrTypedArray(ue.color)&&(Re=m.defaultLine,Fe=!0),Re="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Re=ne.selectedColorFn(ce))}if(ce.om)we.call(m.stroke,Re).style({"stroke-width":($e||1)+"px",fill:"none"});else{we.style("stroke-width",(ce.isBlank?0:$e)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Fe=!0:qe=Ue&&Ue.type,u.isArrayOrTypedArray(qe)&&(qe=qe[0],I[qe]||(qe=0));var Xe=ue.pattern,ot=Xe&&k.getPatternAttr(Xe.shape,ce.i,"");if(qe&&qe!=="none"){var st=ce.mgc;st?Fe=!0:st=Ue.color;var dt=K.uid;Fe&&(dt+="-"+ce.i),k.gradient(we,de,dt,qe,[[0,st],[1,Re]],"fill")}else if(ot){var vt=!1,We=Xe.fgcolor;!We&&_e&&_e.color&&(We=_e.color,vt=!0);var ze=k.getPatternAttr(We,ce.i,_e&&_e.color||null),tt=k.getPatternAttr(Xe.bgcolor,ce.i,null),it=Xe.fgopacity,St=k.getPatternAttr(Xe.size,ce.i,8),Ze=k.getPatternAttr(Xe.solidity,ce.i,.3);vt=vt||ce.mcc||u.isArrayOrTypedArray(Xe.shape)||u.isArrayOrTypedArray(Xe.bgcolor)||u.isArrayOrTypedArray(Xe.fgcolor)||u.isArrayOrTypedArray(Xe.size)||u.isArrayOrTypedArray(Xe.solidity);var ut=K.uid;vt&&(ut+="-"+ce.i),k.pattern(we,"point",de,ut,ot,St,Ze,ce.mcc,Xe.fillmode,tt,ze,it)}else u.isArrayOrTypedArray(Re)?m.fill(we,Re[ce.i]):m.fill(we,Re);$e&&m.stroke(we,Le)}},k.makePointStyleFns=function(ce){var we={},K=ce.marker;return we.markerScale=k.tryColorscale(K,""),we.lineScale=k.tryColorscale(K,"line"),p.traceIs(ce,"symbols")&&(we.ms2mrc=_.isBubble(ce)?x(ce):function(){return(K.size||6)/2}),ce.selectedpoints&&u.extendFlat(we,k.makeSelectedPointStyleFns(ce)),we},k.makeSelectedPointStyleFns=function(ce){var we={},K=ce.selected||{},ne=ce.unselected||{},de=ce.marker||{},_e=K.marker||{},ue=ne.marker||{},pe=de.opacity,xe=_e.opacity,ye=ue.opacity,Te=xe!==void 0,Ae=ye!==void 0;(u.isArrayOrTypedArray(pe)||Te||Ae)&&(we.selectedOpacityFn=function(ot){var st=ot.mo===void 0?de.opacity:ot.mo;return ot.selected?Te?xe:st:Ae?ye:w*st});var Re=de.color,Le=_e.color,$e=ue.color;(Le||$e)&&(we.selectedColorFn=function(ot){var st=ot.mcc||Re;return ot.selected?Le||st:$e||st});var Fe=de.size,Be=_e.size,Ue=ue.size,qe=Be!==void 0,Xe=Ue!==void 0;return p.traceIs(ce,"symbols")&&(qe||Xe)&&(we.selectedSizeFn=function(ot){var st=ot.mrc||Fe/2;return ot.selected?qe?Be/2:st:Xe?Ue/2:st}),we},k.makeSelectedTextStyleFns=function(ce){var we={},K=ce.selected||{},ne=ce.unselected||{},de=ce.textfont||{},_e=K.textfont||{},ue=ne.textfont||{},pe=de.color,xe=_e.color,ye=ue.color;return we.selectedTextColorFn=function(Te){var Ae=Te.tc||pe;return Te.selected?xe||Ae:ye||(xe?Ae:m.addOpacity(Ae,w))},we},k.selectedPointStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var K=k.makeSelectedPointStyleFns(we),ne=we.marker||{},de=[];K.selectedOpacityFn&&de.push(function(_e,ue){_e.style("opacity",K.selectedOpacityFn(ue))}),K.selectedColorFn&&de.push(function(_e,ue){m.fill(_e,K.selectedColorFn(ue))}),K.selectedSizeFn&&de.push(function(_e,ue){var pe=ue.mx||ne.symbol||0,xe=K.selectedSizeFn(ue);_e.attr("d",O(k.symbolNumber(pe),xe,Me(ue,we),G(ue,we))),ue.mrc2=xe}),de.length&&ce.each(function(_e){for(var ue=s.select(this),pe=0;pe0?K:0}function N(ce,we,K){return K&&(ce=U(ce)),we?q(ce[1]):R(ce[0])}function R(ce){var we=s.round(ce,2);return A=we,we}function q(ce){var we=s.round(ce,2);return F=we,we}function Y(ce,we,K,ne){var de=ce[0]-we[0],_e=ce[1]-we[1],ue=K[0]-we[0],pe=K[1]-we[1],xe=Math.pow(de*de+_e*_e,.25),ye=Math.pow(ue*ue+pe*pe,.25),Te=(ye*ye*de-xe*xe*ue)*ne,Ae=(ye*ye*_e-xe*xe*pe)*ne,Re=3*ye*(xe+ye),Le=3*xe*(xe+ye);return[[R(we[0]+(Re&&Te/Re)),q(we[1]+(Re&&Ae/Re))],[R(we[0]-(Le&&Te/Le)),q(we[1]-(Le&&Ae/Le))]]}k.textPointStyle=function(ce,we,K){if(ce.size()){var ne;if(we.selectedpoints){var de=k.makeSelectedTextStyleFns(we);ne=de.selectedTextColorFn}var _e=we.texttemplate,ue=K._fullLayout;ce.each(function(pe){var xe=s.select(this),ye=_e?u.extractOption(pe,we,"txt","texttemplate"):u.extractOption(pe,we,"tx","text");if(ye||ye===0){if(_e){var Te=we._module.formatLabels,Ae=Te?Te(pe,we,ue):{},Re={};T(Re,we,pe.i);var Le=we._meta||{};ye=u.texttemplateString(ye,Ae,ue._d3locale,Re,pe,Le)}var $e=pe.tp||we.textposition,Fe=B(pe,we),Be=ne?ne(pe):pe.tc||we.textfont.color;xe.call(k.font,pe.tf||we.textfont.family,Fe,Be).text(ye).call(v.convertToTspans,K).call(z,$e,Fe,pe.mrc)}else xe.remove()})}},k.selectedTextStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var K=k.makeSelectedTextStyleFns(we);ce.each(function(ne){var de=s.select(this),_e=K.selectedTextColorFn(ne),ue=ne.tp||we.textposition,pe=B(ne,we);m.fill(de,_e);var xe=p.traceIs(we,"bar-like");z(de,ue,pe,ne.mrc2||ne.mrc,xe)})}},k.smoothopen=function(ce,we){if(ce.length<3)return"M"+ce.join("L");var K,ne="M"+ce[0],de=[];for(K=1;K=xe||ot>=Te&&ot<=xe)&&(st<=Ae&&st>=ye||st>=Ae&&st<=ye)&&(ce=[ot,st])}return ce}k.steps=function(ce){var we=L[ce]||W;return function(K){for(var ne="M"+R(K[0][0])+","+q(K[0][1]),de=K.length,_e=1;_e=1e4&&(k.savedBBoxes={},V=0),K&&(k.savedBBoxes[K]=Le),V++,u.extendFlat({},Le)},k.setClipUrl=function(ce,we,K){ce.attr("clip-path",ee(we,K))},k.getTranslate=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(K,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+we[0]||0,y:+we[1]||0}},k.setTranslate=function(ce,we,K){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[ne]("transform")||"";return we=we||0,K=K||0,_e=_e.replace(/(\btranslate\(.*?\);?)/,"").trim(),_e=(_e+=b(we,K)).trim(),ce[de]("transform",_e),_e},k.getScale=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(K,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+we[0]||1,y:+we[1]||1}},k.setScale=function(ce,we,K){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[ne]("transform")||"";return we=we||1,K=K||1,_e=_e.replace(/(\bscale\(.*?\);?)/,"").trim(),_e=(_e+="scale("+we+","+K+")").trim(),ce[de]("transform",_e),_e};var H=/\s*sc.*/;k.setPointGroupScale=function(ce,we,K){if(we=we||1,K=K||1,ce){var ne=we===1&&K===1?"":"scale("+we+","+K+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(H,"");de=(de+=ne).trim(),this.setAttribute("transform",de)})}};var Z=/translate\([^)]*\)\s*$/;function G(ce,we){var K;return ce&&(K=ce.mf),K===void 0&&(K=we.marker&&we.marker.standoff||0),we._geo||we._xA?K:-K}k.setTextPointsScale=function(ce,we,K){ce&&ce.each(function(){var ne,de=s.select(this),_e=de.select("text");if(_e.node()){var ue=parseFloat(_e.attr("x")||0),pe=parseFloat(_e.attr("y")||0),xe=(de.attr("transform")||"").match(Z);ne=we===1&&K===1?[]:[b(ue,pe),"scale("+we+","+K+")",b(-ue,-pe)],xe&&ne.push(xe),de.attr("transform",ne.join(""))}})},k.getMarkerStandoff=G;var X,Q,re,ae,ie,se,he=Math.atan2,Se=Math.cos,Oe=Math.sin;function Pe(ce,we){var K=we[0],ne=we[1];return[K*Se(ce)-ne*Oe(ce),K*Oe(ce)+ne*Se(ce)]}function Me(ce,we){var K,ne,de=ce.ma;de===void 0&&(de=we.marker.angle||0);var _e=we.marker.angleref;if(_e==="previous"||_e==="north"){if(we._geo){var ue=we._geo.project(ce.lonlat);K=ue[0],ne=ue[1]}else{var pe=we._xA,xe=we._yA;if(!pe||!xe)return 90;K=pe.c2p(ce.x),ne=xe.c2p(ce.y)}if(we._geo){var ye,Te=ce.lonlat[0],Ae=ce.lonlat[1],Re=we._geo.project([Te,Ae+1e-5]),Le=we._geo.project([Te+1e-5,Ae]),$e=he(Le[1]-ne,Le[0]-K),Fe=he(Re[1]-ne,Re[0]-K);if(_e==="north")ye=de/180*Math.PI;else if(_e==="previous"){var Be=Te/180*Math.PI,Ue=Ae/180*Math.PI,qe=X/180*Math.PI,Xe=Q/180*Math.PI,ot=qe-Be,st=Se(Xe)*Oe(ot),dt=Oe(Xe)*Se(Ue)-Se(Xe)*Oe(Ue)*Se(ot);ye=-he(st,dt)-Math.PI,X=Te,Q=Ae}var vt=Pe($e,[Se(ye),0]),We=Pe(Fe,[Oe(ye),0]);de=he(vt[1]+We[1],vt[0]+We[0])/Math.PI*180,_e!=="previous"||se===we.uid&&ce.i===ie+1||(de=null)}if(_e==="previous"&&!we._geo)if(se===we.uid&&ce.i===ie+1&&d(K)&&d(ne)){var ze=K-re,tt=ne-ae,it=we.line&&we.line.shape||"",St=it.slice(it.length-1);St==="h"&&(tt=0),St==="v"&&(ze=0),de+=he(tt,ze)/Math.PI*180+90}else de=null}return re=K,ae=ne,ie=ce.i,se=we.uid,de}k.getMarkerAngle=Me},90998:function(i,o,a){var s,u,c,d,f=a(95616),p=a(39898).round,m="M0,0Z",g=Math.sqrt(2),b=Math.sqrt(3),v=Math.PI,h=Math.cos,y=Math.sin;function w(x){return x===null}function _(x,T,k){if(!(x&&x%360!=0||T))return k;if(c===x&&d===T&&s===k)return u;function S(N,R){var q=h(N),Y=y(N),L=R[0],W=R[1]+(T||0);return[L*q-W*Y,L*Y+W*q]}c=x,d=T,s=k;for(var C=x/180*v,M=0,O=0,D=f(k),P="",E=0;E0,y=f._context.staticPlot;p.each(function(w){var _,x=w[0].trace,T=x.error_x||{},k=x.error_y||{};x.ids&&(_=function(O){return O.id});var S=d.hasMarkers(x)&&x.marker.maxdisplayed>0;k.visible||T.visible||(w=[]);var C=s.select(this).selectAll("g.errorbar").data(w,_);if(C.exit().remove(),w.length){T.visible||C.selectAll("path.xerror").remove(),k.visible||C.selectAll("path.yerror").remove(),C.style("opacity",1);var M=C.enter().append("g").classed("errorbar",!0);h&&M.style("opacity",0).transition().duration(g.duration).style("opacity",1),c.setClipUrl(C,m.layerClipId,f),C.each(function(O){var D=s.select(this),P=function(z,B,N){var R={x:B.c2p(z.x),y:N.c2p(z.y)};return z.yh!==void 0&&(R.yh=N.c2p(z.yh),R.ys=N.c2p(z.ys),u(R.ys)||(R.noYS=!0,R.ys=N.c2p(z.ys,!0))),z.xh!==void 0&&(R.xh=B.c2p(z.xh),R.xs=B.c2p(z.xs),u(R.xs)||(R.noXS=!0,R.xs=B.c2p(z.xs,!0))),R}(O,b,v);if(!S||O.vis){var E,I=D.select("path.yerror");if(k.visible&&u(P.x)&&u(P.yh)&&u(P.ys)){var A=k.width;E="M"+(P.x-A)+","+P.yh+"h"+2*A+"m-"+A+",0V"+P.ys,P.noYS||(E+="m-"+A+",0h"+2*A),I.size()?h&&(I=I.transition().duration(g.duration).ease(g.easing)):I=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",E)}else I.remove();var F=D.select("path.xerror");if(T.visible&&u(P.y)&&u(P.xh)&&u(P.xs)){var j=(T.copy_ystyle?k:T).width;E="M"+P.xh+","+(P.y-j)+"v"+2*j+"m0,-"+j+"H"+P.xs,P.noXS||(E+="m0,-"+j+"v"+2*j),F.size()?h&&(F=F.transition().duration(g.duration).ease(g.easing)):F=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("xerror",!0),F.attr("d",E)}else F.remove()}})}})}},62662:function(i,o,a){var s=a(39898),u=a(7901);i.exports=function(c){c.each(function(d){var f=d[0].trace,p=f.error_y||{},m=f.error_x||{},g=s.select(this);g.selectAll("path.yerror").style("stroke-width",p.thickness+"px").call(u.stroke,p.color),m.copy_ystyle&&(m=p),g.selectAll("path.xerror").style("stroke-width",m.thickness+"px").call(u.stroke,m.color)})}},77914:function(i,o,a){var s=a(41940),u=a(528).hoverlabel,c=a(1426).extendFlat;i.exports={hoverlabel:{bgcolor:c({},u.bgcolor,{arrayOk:!0}),bordercolor:c({},u.bordercolor,{arrayOk:!0}),font:s({arrayOk:!0,editType:"none"}),align:c({},u.align,{arrayOk:!0}),namelength:c({},u.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(i,o,a){var s=a(71828),u=a(73972);function c(d,f,p,m){m=m||s.identity,Array.isArray(d)&&(f[0][p]=m(d))}i.exports=function(d){var f=d.calcdata,p=d._fullLayout;function m(y){return function(w){return s.coerceHoverinfo({hoverinfo:w},{_module:y._module},p)}}for(var g=0;g=0&&b.indexde[0]._length||ht<0||ht>_e[0]._length)return y.unhoverRaw(ae,ie)}else ut="xpx"in ie?ie.xpx:de[0]._length/2,ht="ypx"in ie?ie.ypx:_e[0]._length/2;if(ie.pointerX=ut+de[0]._offset,ie.pointerY=ht+_e[0]._offset,Le="xval"in ie?x.flat(Oe,ie.xval):x.p2c(de,ut),$e="yval"in ie?x.flat(Oe,ie.yval):x.p2c(_e,ht),!u(Le[0])||!u($e[0]))return d.warn("Fx.hover failed",ie,ae),y.unhoverRaw(ae,ie)}var Wt=1/0;function _t(en,kn){for(Be=0;Beze&&(tt.splice(0,ze),Wt=tt[0].distance),we&&Re!==0&&tt.length===0){We.distance=Re,We.index=!1;var Bn=qe._module.hoverPoints(We,dt,vt,"closest",{hoverLayer:Pe._hoverlayer});if(Bn&&(Bn=Bn.filter(function(Tr){return Tr.spikeDistance<=Re})),Bn&&Bn.length){var En,Wn=Bn.filter(function(Tr){return Tr.xa.showspikes&&Tr.xa.spikesnap!=="hovered data"});if(Wn.length){var gr=Wn[0];u(gr.x0)&&u(gr.y0)&&(En=Ce(gr),(!St.vLinePoint||St.vLinePoint.spikeDistance>En.spikeDistance)&&(St.vLinePoint=En))}var Va=Bn.filter(function(Tr){return Tr.ya.showspikes&&Tr.ya.spikesnap!=="hovered data"});if(Va.length){var ro=Va[0];u(ro.x0)&&u(ro.y0)&&(En=Ce(ro),(!St.hLinePoint||St.hLinePoint.spikeDistance>En.spikeDistance)&&(St.hLinePoint=En))}}}}}function be(en,kn,un){for(var tn,Fn=null,Rn=1/0,Bn=0;Bn0&&Math.abs(en.distance)Ft-1;Yt--)gt(tt[Yt]);tt=Mt,et()}var mt=ae._hoverdata,xt=[],Ut=te(ae),It=ee(ae);for(Fe=0;Fe1||tt.length>1)||Te==="closest"&&Ze&&tt.length>1,xn=h.combine(Pe.plot_bgcolor||h.background,Pe.paper_bgcolor),mn=B(tt,{gd:ae,hovermode:Te,rotateLabels:sn,bgColor:xn,container:Pe._hoverlayer,outerContainer:Pe._paper.node(),commonLabelOpts:Pe.hoverlabel,hoverdistance:Pe.hoverdistance}),dn=mn.hoverLabels;if(x.isUnifiedHover(Te)||(function(en,kn,un,tn){var Fn,Rn,Bn,En,Wn,gr,Va,ro=kn?"xa":"ya",Tr=kn?"ya":"xa",Ki=0,Jr=1,Cr=en.size(),Gr=new Array(Cr),Ga=0,jn=tn.minX,fn=tn.maxX,Xn=tn.minY,ea=tn.maxY,Un=function(Ln){return Ln*un._invScaleX},Kn=function(Ln){return Ln*un._invScaleY};function Yn(Ln){var ta=Ln[0],Wo=Ln[Ln.length-1];if(Rn=ta.pmin-ta.pos-ta.dp+ta.size,Bn=Wo.pos+Wo.dp+Wo.size-ta.pmax,Rn>.01){for(Wn=Ln.length-1;Wn>=0;Wn--)Ln[Wn].dp+=Rn;Fn=!1}if(!(Bn<.01)){if(Rn<-.01){for(Wn=Ln.length-1;Wn>=0;Wn--)Ln[Wn].dp-=Bn;Fn=!1}if(Fn){var va=0;for(En=0;Enta.pmax&&va++;for(En=Ln.length-1;En>=0&&!(va<=0);En--)(gr=Ln[En]).pos>ta.pmax-1&&(gr.del=!0,va--);for(En=0;En=0;Wn--)Ln[Wn].dp-=Bn;for(En=Ln.length-1;En>=0&&!(va<=0);En--)(gr=Ln[En]).pos+gr.dp+gr.size>ta.pmax&&(gr.del=!0,va--)}}}for(en.each(function(Ln){var ta=Ln[ro],Wo=Ln[Tr],va=ta._id.charAt(0)==="x",hs=ta.range;Ga===0&&hs&&hs[0]>hs[1]!==va&&(Jr=-1);var ms=0,Ml=va?un.width:un.height;if(un.hovermode==="x"||un.hovermode==="y"){var Zi,Di,Pl=R(Ln,kn),Lf=Ln.anchor,Pc=Lf==="end"?-1:1;if(Lf==="middle")Di=(Zi=Ln.crossPos+(va?Kn(Pl.y-Ln.by/2):Un(Ln.bx/2+Ln.tx2width/2)))+(va?Kn(Ln.by):Un(Ln.bx));else if(va)Di=(Zi=Ln.crossPos+Kn(E+Pl.y)-Kn(Ln.by/2-E))+Kn(Ln.by);else{var If=Un(Pc*E+Pl.x),su=If+Un(Pc*Ln.bx);Zi=Ln.crossPos+Math.min(If,su),Di=Ln.crossPos+Math.max(If,su)}va?Xn!==void 0&&ea!==void 0&&Math.min(Di,ea)-Math.max(Zi,Xn)>1&&(Wo.side==="left"?(ms=Wo._mainLinePosition,Ml=un.width):Ml=Wo._mainLinePosition):jn!==void 0&&fn!==void 0&&Math.min(Di,fn)-Math.max(Zi,jn)>1&&(Wo.side==="top"?(ms=Wo._mainLinePosition,Ml=un.height):Ml=Wo._mainLinePosition)}Gr[Ga++]=[{datum:Ln,traceIndex:Ln.trace.index,dp:0,pos:Ln.pos,posref:Ln.posref,size:Ln.by*(va?O:1)/2,pmin:ms,pmax:Ml}]}),Gr.sort(function(Ln,ta){return Ln[0].posref-ta[0].posref||Jr*(ta[0].traceIndex-Ln[0].traceIndex)});!Fn&&Ki<=Cr;){for(Ki++,Fn=!0,En=0;En.01&&Wr.pmin===Yr.pmin&&Wr.pmax===Yr.pmax){for(Wn=la.length-1;Wn>=0;Wn--)la[Wn].dp+=Rn;for(er.push.apply(er,la),Gr.splice(En+1,1),Va=0,Wn=er.length-1;Wn>=0;Wn--)Va+=er[Wn].dp;for(Bn=Va/er.length,Wn=er.length-1;Wn>=0;Wn--)er[Wn].dp-=Bn;Fn=!1}else En++}Gr.forEach(Yn)}for(En=Gr.length-1;En>=0;En--){var ii=Gr[En];for(Wn=ii.length-1;Wn>=0;Wn--){var ko=ii[Wn],Ya=ko.datum;Ya.offset=ko.dp,Ya.del=ko.del}}}(dn,sn,Pe,mn.commonLabelBoundingBox),q(dn,sn,Pe._invScaleX,Pe._invScaleY)),Se&&Se.tagName){var gn=_.getComponentMethod("annotations","hasClickToShow")(ae,xt);b(s.select(Se),gn?"pointer":"")}Se&&!he&&function(en,kn,un){if(!un||un.length!==en._hoverdata.length)return!0;for(var tn=un.length-1;tn>=0;tn--){var Fn=un[tn],Rn=en._hoverdata[tn];if(Fn.curveNumber!==Rn.curveNumber||String(Fn.pointNumber)!==String(Rn.pointNumber)||String(Fn.pointNumbers)!==String(Rn.pointNumbers))return!0}return!1}(ae,0,mt)&&(mt&&ae.emit("plotly_unhover",{event:ie,points:mt}),ae.emit("plotly_hover",{event:ie,points:ae._hoverdata,xaxes:de,yaxes:_e,xvals:Le,yvals:$e}))})(Z,G,X,Q,re)})},o.loneHover=function(Z,G){var X=!0;Array.isArray(Z)||(X=!1,Z=[Z]);var Q=G.gd,re=te(Q),ae=ee(Q),ie=B(Z.map(function(Se){var Oe=Se._x0||Se.x0||Se.x||0,Pe=Se._x1||Se.x1||Se.x||0,Me=Se._y0||Se.y0||Se.y||0,ce=Se._y1||Se.y1||Se.y||0,we=Se.eventData;if(we){var K=Math.min(Oe,Pe),ne=Math.max(Oe,Pe),de=Math.min(Me,ce),_e=Math.max(Me,ce),ue=Se.trace;if(_.traceIs(ue,"gl3d")){var pe=Q._fullLayout[ue.scene]._scene.container,xe=pe.offsetLeft,ye=pe.offsetTop;K+=xe,ne+=xe,de+=ye,_e+=ye}we.bbox={x0:K+ae,x1:ne+ae,y0:de+re,y1:_e+re},G.inOut_bbox&&G.inOut_bbox.push(we.bbox)}else we=!1;return{color:Se.color||h.defaultLine,x0:Se.x0||Se.x||0,x1:Se.x1||Se.x||0,y0:Se.y0||Se.y||0,y1:Se.y1||Se.y||0,xLabel:Se.xLabel,yLabel:Se.yLabel,zLabel:Se.zLabel,text:Se.text,name:Se.name,idealAlign:Se.idealAlign,borderColor:Se.borderColor,fontFamily:Se.fontFamily,fontSize:Se.fontSize,fontColor:Se.fontColor,nameLength:Se.nameLength,textAlign:Se.textAlign,trace:Se.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Se.hovertemplate||!1,hovertemplateLabels:Se.hovertemplateLabels||!1,eventData:we}}),{gd:Q,hovermode:"closest",rotateLabels:!1,bgColor:G.bgColor||h.background,container:s.select(G.container),outerContainer:G.outerContainer||G.container}).hoverLabels,se=0,he=0;return ie.sort(function(Se,Oe){return Se.y0-Oe.y0}).each(function(Se,Oe){var Pe=Se.y0-Se.by/2;Se.offset=Pe-5([\s\S]*)<\/extra>/;function B(Z,G){var X=G.gd,Q=X._fullLayout,re=G.hovermode,ae=G.rotateLabels,ie=G.bgColor,se=G.container,he=G.outerContainer,Se=G.commonLabelOpts||{};if(Z.length===0)return[[]];var Oe=G.fontFamily||T.HOVERFONT,Pe=G.fontSize||T.HOVERFONTSIZE,Me=Z[0],ce=Me.xa,we=Me.ya,K=re.charAt(0),ne=K+"Label",de=Me[ne];if(de===void 0&&ce.type==="multicategory")for(var _e=0;_eQ.width-zt?(mt=Q.width-zt,Ft.attr("d","M"+(zt-E)+",0L"+zt+","+It+E+"v"+It+(2*I+Ut.height)+"H-"+zt+"V"+It+E+"H"+(zt-2*E)+"Z")):Ft.attr("d","M0,0L"+E+","+It+E+"H"+zt+"v"+It+(2*I+Ut.height)+"H-"+zt+"V"+It+E+"H-"+E+"Z"),Be.minX=mt-zt,Be.maxX=mt+zt,ce.side==="top"?(Be.minY=xt-(2*I+Ut.height),Be.maxY=xt-I):(Be.minY=xt+I,Be.maxY=xt+(2*I+Ut.height))}else{var kt,Ot,At;we.side==="right"?(kt="start",Ot=1,At="",mt=ce._offset+ce._length):(kt="end",Ot=-1,At="-",mt=ce._offset),xt=we._offset+(Me.y0+Me.y1)/2,Yt.attr("text-anchor",kt),Ft.attr("d","M0,0L"+At+E+","+E+"V"+(I+Ut.height/2)+"h"+At+(2*I+Ut.width)+"V-"+(I+Ut.height/2)+"H"+At+E+"V-"+E+"Z"),Be.minY=xt-(I+Ut.height/2),Be.maxY=xt+(I+Ut.height/2),we.side==="right"?(Be.minX=mt+E,Be.maxX=mt+E+(2*I+Ut.width)):(Be.minX=mt-E-(2*I+Ut.width),Be.maxX=mt-E);var Nt,$t=Ut.height/2,Bt=pe-Ut.top-$t,Xt="clip"+Q._uid+"commonlabel"+we._id;if(mt=0?ht:Rt+_t=0?Rt:nt+_t=0?Ze:ut+be=0?ut:ct+be=0,rt.idealAlign!=="top"&&sn||!xn?sn?($t+=Xt/2,rt.anchor="start"):rt.anchor="middle":($t-=Xt/2,rt.anchor="end"),rt.crossPos=$t;else{if(rt.pos=$t,sn=Nt+Bt/2+mn<=xe,xn=Nt-Bt/2-mn>=0,rt.idealAlign!=="left"&&sn||!xn)if(sn)Nt+=Bt/2,rt.anchor="start";else{rt.anchor="middle";var dn=mn/2,gn=Nt+dn-xe,en=Nt-dn;gn>0&&(Nt-=gn),en<0&&(Nt+=-en)}else Nt-=Bt/2,rt.anchor="end";rt.crossPos=Nt}It.attr("text-anchor",rt.anchor),kt&&zt.attr("text-anchor",rt.anchor),Ft.attr("transform",f(Nt,$t)+(ae?p(C):""))}),{hoverLabels:yt,commonLabelBoundingBox:Be}}function N(Z,G,X,Q,re,ae){var ie="",se="";Z.nameOverride!==void 0&&(Z.name=Z.nameOverride),Z.name&&(Z.trace._meta&&(Z.name=d.templateString(Z.name,Z.trace._meta)),ie=U(Z.name,Z.nameLength));var he=X.charAt(0),Se=he==="x"?"y":"x";Z.zLabel!==void 0?(Z.xLabel!==void 0&&(se+="x: "+Z.xLabel+"
"),Z.yLabel!==void 0&&(se+="y: "+Z.yLabel+"
"),Z.trace.type!=="choropleth"&&Z.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Z.zLabel)):G&&Z[he+"Label"]===re?se=Z[Se+"Label"]||"":Z.xLabel===void 0?Z.yLabel!==void 0&&Z.trace.type!=="scattercarpet"&&(se=Z.yLabel):se=Z.yLabel===void 0?Z.xLabel:"("+Z.xLabel+", "+Z.yLabel+")",!Z.text&&Z.text!==0||Array.isArray(Z.text)||(se+=(se?"
":"")+Z.text),Z.extraText!==void 0&&(se+=(se?"
":"")+Z.extraText),ae&&se===""&&!Z.hovertemplate&&(ie===""&&ae.remove(),se=ie);var Oe=Z.hovertemplate||!1;if(Oe){var Pe=Z.hovertemplateLabels||Z;Z[he+"Label"]!==re&&(Pe[he+"other"]=Pe[he+"Val"],Pe[he+"otherLabel"]=Pe[he+"Label"]),se=(se=d.hovertemplateString(Oe,Pe,Q._d3locale,Z.eventData[0]||{},Z.trace._meta)).replace(z,function(Me,ce){return ie=U(ce,Z.nameLength),""})}return[se,ie]}function R(Z,G){var X=0,Q=Z.offset;return G&&(Q*=-P,X=Z.offset*D),{x:X,y:Q}}function q(Z,G,X,Q){var re=function(ie){return ie*X},ae=function(ie){return ie*Q};Z.each(function(ie){var se=s.select(this);if(ie.del)return se.remove();var he,Se,Oe,Pe,Me=se.select("text.nums"),ce=ie.anchor,we=ce==="end"?-1:1,K=(Pe=(Oe=(Se={start:1,end:-1,middle:0}[(he=ie).anchor])*(E+I))+Se*(he.txwidth+I),he.anchor==="middle"&&(Oe-=he.tx2width/2,Pe+=he.txwidth/2+I),{alignShift:Se,textShiftX:Oe,text2ShiftX:Pe}),ne=R(ie,G),de=ne.x,_e=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(ie.bx/2+ie.tx2width/2)+","+ae(_e-ie.by/2)+"h"+re(ie.bx)+"v"+ae(ie.by)+"h-"+re(ie.bx)+"Z":"M0,0L"+re(we*E+de)+","+ae(E+_e)+"v"+ae(ie.by/2-E)+"h"+re(we*ie.bx)+"v-"+ae(ie.by)+"H"+re(we*E+de)+"V"+ae(_e-E)+"Z");var pe=de+K.textShiftX,xe=_e+ie.ty0-ie.by/2+I,ye=ie.textAlign||"auto";ye!=="auto"&&(ye==="left"&&ce!=="start"?(Me.attr("text-anchor","start"),pe=ue?-ie.bx/2-ie.tx2width/2+I:-ie.bx-I):ye==="right"&&ce!=="end"&&(Me.attr("text-anchor","end"),pe=ue?ie.bx/2-ie.tx2width/2-I:ie.bx+I)),Me.call(g.positionText,re(pe),ae(xe)),ie.tx2width&&(se.select("text.name").call(g.positionText,re(K.text2ShiftX+K.alignShift*I+de),ae(_e+ie.ty0-ie.by/2+I)),se.select("rect").call(v.setRect,re(K.text2ShiftX+(K.alignShift-1)*ie.tx2width/2+de),ae(_e-ie.by/2-1),re(ie.tx2width),ae(ie.by+2)))})}function Y(Z,G){var X=Z.index,Q=Z.trace||{},re=Z.cd[0],ae=Z.cd[X]||{};function ie(Me){return Me||u(Me)&&Me===0}var se=Array.isArray(X)?function(Me,ce){var we=d.castOption(re,X,Me);return ie(we)?we:d.extractOption({},Q,"",ce)}:function(Me,ce){return d.extractOption(ae,Q,Me,ce)};function he(Me,ce,we){var K=se(ce,we);ie(K)&&(Z[Me]=K)}if(he("hoverinfo","hi","hoverinfo"),he("bgcolor","hbg","hoverlabel.bgcolor"),he("borderColor","hbc","hoverlabel.bordercolor"),he("fontFamily","htf","hoverlabel.font.family"),he("fontSize","hts","hoverlabel.font.size"),he("fontColor","htc","hoverlabel.font.color"),he("nameLength","hnl","hoverlabel.namelength"),he("textAlign","hta","hoverlabel.align"),Z.posref=G==="y"||G==="closest"&&Q.orientation==="h"?Z.xa._offset+(Z.x0+Z.x1)/2:Z.ya._offset+(Z.y0+Z.y1)/2,Z.x0=d.constrain(Z.x0,0,Z.xa._length),Z.x1=d.constrain(Z.x1,0,Z.xa._length),Z.y0=d.constrain(Z.y0,0,Z.ya._length),Z.y1=d.constrain(Z.y1,0,Z.ya._length),Z.xLabelVal!==void 0&&(Z.xLabel="xLabel"in Z?Z.xLabel:w.hoverLabelText(Z.xa,Z.xLabelVal,Q.xhoverformat),Z.xVal=Z.xa.c2d(Z.xLabelVal)),Z.yLabelVal!==void 0&&(Z.yLabel="yLabel"in Z?Z.yLabel:w.hoverLabelText(Z.ya,Z.yLabelVal,Q.yhoverformat),Z.yVal=Z.ya.c2d(Z.yLabelVal)),Z.zLabelVal!==void 0&&Z.zLabel===void 0&&(Z.zLabel=String(Z.zLabelVal)),!(isNaN(Z.xerr)||Z.xa.type==="log"&&Z.xerr<=0)){var Se=w.tickText(Z.xa,Z.xa.c2l(Z.xerr),"hover").text;Z.xerrneg!==void 0?Z.xLabel+=" +"+Se+" / -"+w.tickText(Z.xa,Z.xa.c2l(Z.xerrneg),"hover").text:Z.xLabel+=" ± "+Se,G==="x"&&(Z.distance+=1)}if(!(isNaN(Z.yerr)||Z.ya.type==="log"&&Z.yerr<=0)){var Oe=w.tickText(Z.ya,Z.ya.c2l(Z.yerr),"hover").text;Z.yerrneg!==void 0?Z.yLabel+=" +"+Oe+" / -"+w.tickText(Z.ya,Z.ya.c2l(Z.yerrneg),"hover").text:Z.yLabel+=" ± "+Oe,G==="y"&&(Z.distance+=1)}var Pe=Z.hoverinfo||Z.trace.hoverinfo;return Pe&&Pe!=="all"&&((Pe=Array.isArray(Pe)?Pe:Pe.split("+")).indexOf("x")===-1&&(Z.xLabel=void 0),Pe.indexOf("y")===-1&&(Z.yLabel=void 0),Pe.indexOf("z")===-1&&(Z.zLabel=void 0),Pe.indexOf("text")===-1&&(Z.text=void 0),Pe.indexOf("name")===-1&&(Z.name=void 0)),Z}function L(Z,G,X){var Q,re,ae=X.container,ie=X.fullLayout,se=ie._size,he=X.event,Se=!!G.hLinePoint,Oe=!!G.vLinePoint;if(ae.selectAll(".spikeline").remove(),Oe||Se){var Pe=h.combine(ie.plot_bgcolor,ie.paper_bgcolor);if(Se){var Me,ce,we=G.hLinePoint;Q=we&&we.xa,(re=we&&we.ya).spikesnap==="cursor"?(Me=he.pointerX,ce=he.pointerY):(Me=Q._offset+we.x,ce=re._offset+we.y);var K,ne,de=c.readability(we.color,Pe)<1.5?h.contrast(Pe):we.color,_e=re.spikemode,ue=re.spikethickness,pe=re.spikecolor||de,xe=w.getPxPosition(Z,re);if(_e.indexOf("toaxis")!==-1||_e.indexOf("across")!==-1){if(_e.indexOf("toaxis")!==-1&&(K=xe,ne=Me),_e.indexOf("across")!==-1){var ye=re._counterDomainMin,Te=re._counterDomainMax;re.anchor==="free"&&(ye=Math.min(ye,re.position),Te=Math.max(Te,re.position)),K=se.l+ye*se.w,ne=se.l+Te*se.w}ae.insert("line",":first-child").attr({x1:K,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:pe,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:K,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Pe}).classed("spikeline",!0).classed("crisp",!0)}_e.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:xe+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:pe}).classed("spikeline",!0)}if(Oe){var Ae,Re,Le=G.vLinePoint;Q=Le&&Le.xa,re=Le&&Le.ya,Q.spikesnap==="cursor"?(Ae=he.pointerX,Re=he.pointerY):(Ae=Q._offset+Le.x,Re=re._offset+Le.y);var $e,Fe,Be=c.readability(Le.color,Pe)<1.5?h.contrast(Pe):Le.color,Ue=Q.spikemode,qe=Q.spikethickness,Xe=Q.spikecolor||Be,ot=w.getPxPosition(Z,Q);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&($e=ot,Fe=Re),Ue.indexOf("across")!==-1){var st=Q._counterDomainMin,dt=Q._counterDomainMax;Q.anchor==="free"&&(st=Math.min(st,Q.position),dt=Math.max(dt,Q.position)),$e=se.t+(1-dt)*se.h,Fe=se.t+(1-st)*se.h}ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:$e,y2:Fe,"stroke-width":qe,stroke:Xe,"stroke-dasharray":v.dashStyle(Q.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:$e,y2:Fe,"stroke-width":qe+2,stroke:Pe}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:Ae,cy:ot-(Q.side!=="top"?qe:-qe),r:qe,fill:Xe}).classed("spikeline",!0)}}}function W(Z,G){return!G}function U(Z,G){return g.plainText(Z||"",{len:G,allowedTags:["br","sub","sup","b","i","em"]})}function V(Z,G,X){var Q=G[Z+"a"],re=G[Z+"Val"],ae=G.cd[0];if(Q.type==="category"||Q.type==="multicategory")re=Q._categoriesMap[re];else if(Q.type==="date"){var ie=G.trace[Z+"periodalignment"];if(ie){var se=G.cd[G.index],he=se[Z+"Start"];he===void 0&&(he=se[Z]);var Se=se[Z+"End"];Se===void 0&&(Se=se[Z]);var Oe=Se-he;ie==="end"?re+=Oe:ie==="middle"&&(re+=Oe/2)}re=Q.d2c(re)}return ae&&ae.t&&ae.t.posLetter===Q._id&&(X.boxmode!=="group"&&X.violinmode!=="group"||(re+=ae.t.dPos)),re}function te(Z){return Z.offsetTop+Z.clientTop}function ee(Z){return Z.offsetLeft+Z.clientLeft}function H(Z,G){var X=Z._fullLayout,Q=G.getBoundingClientRect(),re=Q.left,ae=Q.top,ie=re+Q.width,se=ae+Q.height,he=d.apply3DTransform(X._invTransform)(re,ae),Se=d.apply3DTransform(X._invTransform)(ie,se),Oe=he[0],Pe=he[1],Me=Se[0],ce=Se[1];return{x:Oe,y:Pe,width:Me-Oe,height:ce-Pe,top:Math.min(Pe,ce),left:Math.min(Oe,Me),right:Math.max(Oe,Me),bottom:Math.max(Pe,ce)}}},38048:function(i,o,a){var s=a(71828),u=a(7901),c=a(23469).isUnifiedHover;i.exports=function(d,f,p,m){m=m||{};var g=f.legend;function b(v){m.font[v]||(m.font[v]=g?f.legend.font[v]:f.font[v])}f&&c(f.hovermode)&&(m.font||(m.font={}),b("size"),b("family"),b("color"),g?(m.bgcolor||(m.bgcolor=u.combine(f.legend.bgcolor,f.paper_bgcolor)),m.bordercolor||(m.bordercolor=f.legend.bordercolor)):m.bgcolor||(m.bgcolor=f.paper_bgcolor)),p("hoverlabel.bgcolor",m.bgcolor),p("hoverlabel.bordercolor",m.bordercolor),p("hoverlabel.namelength",m.namelength),s.coerceFont(p,"hoverlabel.font",m.font),p("hoverlabel.align",m.align)}},98212:function(i,o,a){var s=a(71828),u=a(528);i.exports=function(c,d){function f(p,m){return d[p]!==void 0?d[p]:s.coerce(c,d,u,p,m)}return f("clickmode"),f("hovermode")}},30211:function(i,o,a){var s=a(39898),u=a(71828),c=a(28569),d=a(23469),f=a(528),p=a(88335);i.exports={moduleType:"component",name:"fx",constants:a(26675),schema:{layout:f},attributes:a(77914),layoutAttributes:f,supplyLayoutGlobalDefaults:a(22774),supplyDefaults:a(54268),supplyLayoutDefaults:a(34938),calc:a(30732),getDistanceFunction:d.getDistanceFunction,getClosest:d.getClosest,inbox:d.inbox,quadrature:d.quadrature,appendArrayPointValue:d.appendArrayPointValue,castHoverOption:function(m,g,b){return u.castOption(m,g,"hoverlabel."+b)},castHoverinfo:function(m,g,b){return u.castOption(m,b,"hoverinfo",function(v){return u.coerceHoverinfo({hoverinfo:v},{_module:m._module},g)})},hover:p.hover,unhover:c.unhover,loneHover:p.loneHover,loneUnhover:function(m){var g=u.isD3Selection(m)?m:s.select(m);g.selectAll("g.hovertext").remove(),g.selectAll(".spikeline").remove()},click:a(75914)}},528:function(i,o,a){var s=a(26675),u=a(41940),c=u({editType:"none"});c.family.dflt=s.HOVERFONT,c.size.dflt=s.HOVERFONTSIZE,i.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:c,grouptitlefont:u({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(i,o,a){var s=a(71828),u=a(528),c=a(98212),d=a(38048);i.exports=function(f,p){function m(h,y){return s.coerce(f,p,u,h,y)}c(f,p)&&(m("hoverdistance"),m("spikedistance")),m("dragmode")==="select"&&m("selectdirection");var g=p._has("mapbox"),b=p._has("geo"),v=p._basePlotModules.length;p.dragmode==="zoom"&&((g||b)&&v===1||g&&b&&v===2)&&(p.dragmode="pan"),d(f,p,m),s.coerceFont(m,"hoverlabel.grouptitlefont",p.hoverlabel.font)}},22774:function(i,o,a){var s=a(71828),u=a(38048),c=a(528);i.exports=function(d,f){u(d,f,function(p,m){return s.coerce(d,f,c,p,m)})}},83312:function(i,o,a){var s=a(71828),u=a(30587).counter,c=a(27670).Y,d=a(85555).idRegex,f=a(44467),p={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[u("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:c({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function m(v,h,y){var w=h[y+"axes"],_=Object.keys((v._splomAxes||{})[y]||{});return Array.isArray(w)?w:_.length?_:void 0}function g(v,h,y,w,_,x){var T=h(v+"gap",y),k=h("domain."+v);h(v+"side",w);for(var S=new Array(_),C=k[0],M=(k[1]-C)/(_-T),O=M*(1-T),D=0;D<_;D++){var P=C+M*D;S[x?_-1-D:D]=[P,P+O]}return S}function b(v,h,y,w,_){var x,T=new Array(y);function k(S,C){h.indexOf(C)!==-1&&w[C]===void 0?(T[S]=C,w[C]=S):T[S]=""}if(Array.isArray(v))for(x=0;x1){k||S||C||z("pattern")==="independent"&&(k=!0),O._hasSubplotGrid=k;var E,I,A=z("roworder")==="top to bottom",F=k?.2:.1,j=k?.3:.1;M&&h._splomGridDflt&&(E=h._splomGridDflt.xside,I=h._splomGridDflt.yside),O._domains={x:g("x",z,F,E,P),y:g("y",z,j,I,D,A)}}else delete h.grid}function z(B,N){return s.coerce(y,O,p,B,N)}},contentDefaults:function(v,h){var y=h.grid;if(y&&y._domains){var w,_,x,T,k,S,C,M=v.grid||{},O=h._subplots,D=y._hasSubplotGrid,P=y.rows,E=y.columns,I=y.pattern==="independent",A=y._axisMap={};if(D){var F=M.subplots||[];S=y.subplots=new Array(P);var j=1;for(w=0;w(b==="legend"?1:0));if(j===!1&&(h[b]=void 0),(j!==!1||w.uirevision)&&(x("uirevision",h.uirevision),j!==!1)){x("borderwidth");var z,B,N,R=x("orientation")==="h",q=x("yref")==="paper",Y=x("xref")==="paper",L="left";if(R?(z=0,s.getComponentMethod("rangeslider","isVisible")(v.xaxis)?q?(B=1.1,N="bottom"):(B=1,N="top"):q?(B=-.1,N="top"):(B=0,N="bottom")):(B=1,N="auto",Y?z=1.02:(z=1,L="right")),u.coerce(w,_,{x:{valType:"number",editType:"legend",min:Y?-2:0,max:Y?3:1,dflt:z}},"x"),u.coerce(w,_,{y:{valType:"number",editType:"legend",min:q?-2:0,max:q?3:1,dflt:B}},"y"),x("traceorder",P),m.isGrouped(h[b])&&x("tracegroupgap"),x("entrywidth"),x("entrywidthmode"),x("itemsizing"),x("itemwidth"),x("itemclick"),x("itemdoubleclick"),x("groupclick"),x("xanchor",L),x("yanchor",N),x("valign"),u.noneOrAll(w,_,["x","y"]),x("title.text")){x("title.side",R?"left":"top");var W=u.extendFlat({},T,{size:u.bigFont(T.size)});u.coerceFont(x,"title.font",W)}}}}i.exports=function(b,v,h){var y,w=h.slice(),_=v.shapes;if(_)for(y=0;y<_.length;y++){var x=_[y];if(x.showlegend){var T={_input:x._input,visible:x.visible,showlegend:x.showlegend,legend:x.legend};w.push(T)}}var k=["legend"];for(y=0;y1)}var Q=W.hiddenlabels||[];if(!(V||W.showlegend&&te.length))return Y.selectAll("."+U).remove(),W._topdefs.select("#"+q).remove(),c.autoMargin(N,U);var re=u.ensureSingle(Y,"g",U,function(ce){V||ce.attr("pointer-events","all")}),ae=u.ensureSingleById(W._topdefs,"clipPath",q,function(ce){ce.append("rect")}),ie=u.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});ie.call(g.stroke,L.bordercolor).call(g.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,he=u.ensureSingle(re,"g","scrollbox"),Se=L.title;L._titleWidth=0,L._titleHeight=0,Se.text?((se=u.ensureSingle(he,"text",U+"titletext")).attr("text-anchor","start").call(m.font,Se.font).text(Se.text),F(se,he,N,L,C)):he.selectAll("."+U+"titletext").remove();var Oe=u.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(h.scrollBarEnterAttrs).call(g.fill,h.scrollBarColor)}),Pe=he.selectAll("g.groups").data(te);Pe.enter().append("g").attr("class","groups"),Pe.exit().remove();var Me=Pe.selectAll("g.traces").data(u.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var we=ce[0].trace;return d.traceIs(we,"pie-like")?Q.indexOf(ce[0].label)!==-1?.5:1:we.visible==="legendonly"?.5:1}).each(function(){s.select(this).call(E,N,L)}).call(k,N,L).each(function(){V||s.select(this).call(A,N,U)}),u.syncOrAsync([c.previousPromises,function(){return function(ce,we,K,ne){var de=ce._fullLayout,_e=B(ne);ne||(ne=de[_e]);var ue=de._size,pe=S.isVertical(ne),xe=S.isGrouped(ne),ye=ne.entrywidthmode==="fraction",Te=ne.borderwidth,Ae=2*Te,Re=h.itemGap,Le=ne.itemwidth+2*Re,$e=2*(Te+Re),Fe=z(ne),Be=ne.y<0||ne.y===0&&Fe==="top",Ue=ne.y>1||ne.y===1&&Fe==="bottom",qe=ne.tracegroupgap,Xe={};ne._maxHeight=Math.max(Be||Ue?de.height/2:ue.h,30);var ot=0;ne._width=0,ne._height=0;var st=function(Ke){var Ye=0,nt=0,ct=Ke.title.side;return ct&&(ct.indexOf("left")!==-1&&(Ye=Ke._titleWidth),ct.indexOf("top")!==-1&&(nt=Ke._titleHeight)),[Ye,nt]}(ne);if(pe)K.each(function(Ke){var Ye=Ke[0].height;m.setTranslate(this,Te+st[0],Te+st[1]+ne._height+Ye/2+Re),ne._height+=Ye,ne._width=Math.max(ne._width,Ke[0].width)}),ot=Le+ne._width,ne._width+=Re+Le+Ae,ne._height+=$e,xe&&(we.each(function(Ke,Ye){m.setTranslate(this,0,Ye*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var dt=j(ne),vt=ne.x<0||ne.x===0&&dt==="right",We=ne.x>1||ne.x===1&&dt==="left",ze=Ue||Be,tt=de.width/2;ne._maxWidth=Math.max(vt?ze&&dt==="left"?ue.l+ue.w:tt:We?ze&&dt==="right"?ue.r+ue.w:tt:ue.w,2*Le);var it=0,St=0;K.each(function(Ke){var Ye=D(Ke,ne,Le);it=Math.max(it,Ye),St+=Ye}),ot=null;var Ze=0;if(xe){var ut=0,ht=0,Rt=0;we.each(function(){var Ke=0,Ye=0;s.select(this).selectAll("g.traces").each(function(ct){var yt=D(ct,ne,Le),rt=ct[0].height;m.setTranslate(this,st[0],st[1]+Te+Re+rt/2+Ye),Ye+=rt,Ke=Math.max(Ke,yt),Xe[ct[0].trace.legendgroup]=Ke});var nt=Ke+Re;ht>0&&nt+Te+ht>ne._maxWidth?(Ze=Math.max(Ze,ht),ht=0,Rt+=ut+qe,ut=Ye):ut=Math.max(ut,Ye),m.setTranslate(this,ht,Rt),ht+=nt}),ne._width=Math.max(Ze,ht)+Te,ne._height=Rt+ut+$e}else{var Ct=K.size(),Wt=St+Ae+(Ct-1)*Re=ne._maxWidth&&(Ze=Math.max(Ze,Ge),be=0,Ce+=_t,ne._height+=_t,_t=0),m.setTranslate(this,st[0]+Te+be,st[1]+Te+Ce+Ye/2+Re),Ge=be+nt+Re,be+=ct,_t=Math.max(_t,Ye)}),Wt?(ne._width=be+Ae,ne._height=_t+$e):(ne._width=Math.max(Ze,Ge)+Ae,ne._height+=_t+$e)}}ne._width=Math.ceil(Math.max(ne._width+st[0],ne._titleWidth+2*(Te+h.titlePad))),ne._height=Math.ceil(Math.max(ne._height+st[1],ne._titleHeight+2*(Te+h.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var He=ce._context.edits,et=He.legendText||He.legendPosition;K.each(function(Ke){var Ye=s.select(this).select("."+_e+"toggle"),nt=Ke[0].height,ct=Ke[0].trace.legendgroup,yt=D(Ke,ne,Le);xe&&ct!==""&&(yt=Xe[ct]);var rt=et?Le:ot||yt;pe||ye||(rt+=Re/2),m.setRect(Ye,0,-nt/2,rt,nt)})}(N,Pe,Me,L)},function(){var ce,we,K,ne,de=W._size,_e=L.borderwidth,ue=L.xref==="paper",pe=L.yref==="paper";if(Se.text&&function(ze,tt,it){if(tt.title.side==="top center"||tt.title.side==="top right"){var St=tt.title.font.size*w,Ze=0,ut=ze.node(),ht=m.bBox(ut).width;tt.title.side==="top center"?Ze=.5*(tt._width-2*it-2*h.titlePad-ht):tt.title.side==="top right"&&(Ze=tt._width-2*it-2*h.titlePad-ht),b.positionText(ze,it+h.titlePad+Ze,it+St)}}(se,L,_e),!V){var xe,ye;xe=ue?de.l+de.w*L.x-_[j(L)]*L._width:W.width*L.x-_[j(L)]*L._width,ye=pe?de.t+de.h*(1-L.y)-_[z(L)]*L._effHeight:W.height*(1-L.y)-_[z(L)]*L._effHeight;var Te=function(ze,tt,it,St){var Ze=ze._fullLayout,ut=Ze[tt],ht=j(ut),Rt=z(ut),Ct=ut.xref==="paper",Wt=ut.yref==="paper";ze._fullLayout._reservedMargin[tt]={};var _t=ut.y<.5?"b":"t",be=ut.x<.5?"l":"r",Ce={r:Ze.width-it,l:it+ut._width,b:Ze.height-St,t:St+ut._effHeight};if(Ct&&Wt)return c.autoMargin(ze,tt,{x:ut.x,y:ut.y,l:ut._width*_[ht],r:ut._width*x[ht],b:ut._effHeight*x[Rt],t:ut._effHeight*_[Rt]});Ct?ze._fullLayout._reservedMargin[tt][_t]=Ce[_t]:Wt||ut.orientation==="v"?ze._fullLayout._reservedMargin[tt][be]=Ce[be]:ze._fullLayout._reservedMargin[tt][_t]=Ce[_t]}(N,U,xe,ye);if(Te)return;if(W.margin.autoexpand){var Ae=xe,Re=ye;xe=ue?u.constrain(xe,0,W.width-L._width):Ae,ye=pe?u.constrain(ye,0,W.height-L._effHeight):Re,xe!==Ae&&u.log("Constrain "+U+".x to make legend fit inside graph"),ye!==Re&&u.log("Constrain "+U+".y to make legend fit inside graph")}m.setTranslate(re,xe,ye)}if(Oe.on(".drag",null),re.on("wheel",null),V||L._height<=L._maxHeight||N._context.staticPlot){var Le=L._effHeight;V&&(Le=L._height),ie.attr({width:L._width-_e,height:Le-_e,x:_e/2,y:_e/2}),m.setTranslate(he,0,0),ae.select("rect").attr({width:L._width-2*_e,height:Le-2*_e,x:_e,y:_e}),m.setClipUrl(he,q,N),m.setRect(Oe,0,0,0,0),delete L._scrollY}else{var $e,Fe,Be,Ue=Math.max(h.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*h.scrollBarMargin,Xe=L._height-L._effHeight,ot=qe/Xe,st=Math.min(L._scrollY||0,Xe);ie.attr({width:L._width-2*_e+h.scrollBarWidth+h.scrollBarMargin,height:L._effHeight-_e,x:_e/2,y:_e/2}),ae.select("rect").attr({width:L._width-2*_e+h.scrollBarWidth+h.scrollBarMargin,height:L._effHeight-2*_e,x:_e,y:_e+st}),m.setClipUrl(he,q,N),We(st,Ue,ot),re.on("wheel",function(){We(st=u.constrain(L._scrollY+s.event.deltaY/qe*Xe,0,Xe),Ue,ot),st!==0&&st!==Xe&&s.event.preventDefault()});var dt=s.behavior.drag().on("dragstart",function(){var ze=s.event.sourceEvent;$e=ze.type==="touchstart"?ze.changedTouches[0].clientY:ze.clientY,Be=st}).on("drag",function(){var ze=s.event.sourceEvent;ze.buttons===2||ze.ctrlKey||(Fe=ze.type==="touchmove"?ze.changedTouches[0].clientY:ze.clientY,st=function(tt,it,St){var Ze=(St-it)/ot+tt;return u.constrain(Ze,0,Xe)}(Be,$e,Fe),We(st,Ue,ot))});Oe.call(dt);var vt=s.behavior.drag().on("dragstart",function(){var ze=s.event.sourceEvent;ze.type==="touchstart"&&($e=ze.changedTouches[0].clientY,Be=st)}).on("drag",function(){var ze=s.event.sourceEvent;ze.type==="touchmove"&&(Fe=ze.changedTouches[0].clientY,st=function(tt,it,St){var Ze=(it-St)/ot+tt;return u.constrain(Ze,0,Xe)}(Be,$e,Fe),We(st,Ue,ot))});he.call(vt)}function We(ze,tt,it){L._scrollY=N._fullLayout[U]._scrollY=ze,m.setTranslate(he,0,-ze),m.setRect(Oe,L._width,h.scrollBarMargin+ze*it,h.scrollBarWidth,tt),ae.select("rect").attr("y",_e+ze)}N._context.edits.legendPosition&&(re.classed("cursor-move",!0),p.init({element:re.node(),gd:N,prepFn:function(){var ze=m.getTranslate(re);K=ze.x,ne=ze.y},moveFn:function(ze,tt){var it=K+ze,St=ne+tt;m.setTranslate(re,it,St),ce=p.align(it,L._width,de.l,de.l+de.w,L.xanchor),we=p.align(St+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&we!==void 0){var ze={};ze[U+".x"]=ce,ze[U+".y"]=we,d.call("_guiRelayout",N,ze)}},clickFn:function(ze,tt){var it=Y.selectAll("g.traces").filter(function(){var St=this.getBoundingClientRect();return tt.clientX>=St.left&&tt.clientX<=St.right&&tt.clientY>=St.top&&tt.clientY<=St.bottom});it.size()>0&&P(N,re,it,ze,tt)}}))}],N)}}function D(N,R,q){var Y=N[0],L=Y.width,W=R.entrywidthmode,U=Y.trace.legendwidth||R.entrywidth;return W==="fraction"?R._maxWidth*U:q+(U||L)}function P(N,R,q,Y,L){var W=q.data()[0][0].trace,U={event:L,node:q.node(),curveNumber:W.index,expandedIndex:W._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};W._group&&(U.group=W._group),d.traceIs(W,"pie-like")&&(U.label=q.datum()[0].label);var V=f.triggerHandler(N,"plotly_legendclick",U);if(Y===1){if(V===!1)return;R._clickTimeout=setTimeout(function(){N._fullLayout&&v(q,N,Y)},N._context.doubleClickDelay)}else Y===2&&(R._clickTimeout&&clearTimeout(R._clickTimeout),N._legendMouseDownTime=0,f.triggerHandler(N,"plotly_legenddoubleclick",U)!==!1&&V!==!1&&v(q,N,Y))}function E(N,R,q){var Y,L,W=B(q),U=N.data()[0][0],V=U.trace,te=d.traceIs(V,"pie-like"),ee=!q._inHover&&R._context.edits.legendText&&!te,H=q._maxNameLength;U.groupTitle?(Y=U.groupTitle.text,L=U.groupTitle.font):(L=q.font,q.entries?Y=U.text:(Y=te?U.label:V.name,V._meta&&(Y=u.templateString(Y,V._meta))));var Z=u.ensureSingle(N,"text",W+"text");Z.attr("text-anchor","start").call(m.font,L).text(ee?I(Y,H):Y);var G=q.itemwidth+2*h.itemGap;b.positionText(Z,G,0),ee?Z.call(b.makeEditable,{gd:R,text:Y}).call(F,N,R,q).on("edit",function(X){this.text(I(X,H)).call(F,N,R,q);var Q=U.trace._fullInput||{},re={};if(d.hasTransform(Q,"groupby")){var ae=d.getTransformIndices(Q,"groupby"),ie=ae[ae.length-1],se=u.keyedContainer(Q,"transforms["+ie+"].styles","target","value.name");se.set(U.trace._group,X),re=se.constructUpdate()}else re.name=X;return Q._isShape?d.call("_guiRelayout",R,"shapes["+V.index+"].name",re.name):d.call("_guiRestyle",R,re,V.index)}):F(Z,N,R,q)}function I(N,R){var q=Math.max(4,R);if(N&&N.trim().length>=q/2)return N;for(var Y=q-(N=N||"").length;Y>0;Y--)N+=" ";return N}function A(N,R,q){var Y,L=R._context.doubleClickDelay,W=1,U=u.ensureSingle(N,"rect",q+"toggle",function(V){R._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(g.fill,"rgba(0,0,0,0)")});R._context.staticPlot||(U.on("mousedown",function(){(Y=new Date().getTime())-R._legendMouseDownTimeL&&(W=Math.max(W-1,1)),P(R,V,N,W,s.event)}}))}function F(N,R,q,Y,L){Y._inHover&&N.attr("data-notex",!0),b.convertToTspans(N,q,function(){(function(W,U,V,te){var ee=W.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var H=W.select("g[class*=math-group]"),Z=H.node(),G=B(V);V||(V=U._fullLayout[G]);var X,Q,re=V.borderwidth,ae=(te===C?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*w;if(Z){var ie=m.bBox(Z);X=ie.height,Q=ie.width,te===C?m.setTranslate(H,re,re+.75*X):m.setTranslate(H,0,.25*X)}else{var se="."+G+(te===C?"title":"")+"text",he=W.select(se),Se=b.lineCount(he),Oe=he.node();if(X=ae*Se,Q=Oe?m.bBox(Oe).width:0,te===C)V.title.side==="left"&&(Q+=2*h.itemGap),b.positionText(he,re+h.titlePad,re+ae);else{var Pe=2*h.itemGap+V.itemwidth;ee.groupTitle&&(Pe=h.itemGap,Q-=V.itemwidth),b.positionText(he,Pe,-ae*((Se-1)/2-.3))}}te===C?(V._titleWidth=Q,V._titleHeight=X):(ee.lineHeight=ae,ee.height=Math.max(X,16)+3,ee.width=Q)}else W.remove()})(R,q,Y,L)})}function j(N){return u.isRightAnchor(N)?"right":u.isCenterAnchor(N)?"center":"left"}function z(N){return u.isBottomAnchor(N)?"bottom":u.isMiddleAnchor(N)?"middle":"top"}function B(N){return N._id||"legend"}i.exports=function(N,R){if(R)O(N,R);else{var q=N._fullLayout,Y=q._legends;q._infolayer.selectAll('[class^="legend"]').each(function(){var U=s.select(this),V=U.attr("class").split(" ")[0];V.match(M)&&Y.indexOf(V)===-1&&U.remove()});for(var L=0;Lj&&(F=j)}I[p][0]._groupMinRank=F,I[p][0]._preGroupSort=p}var z=function(Y,L){return Y.trace.legendrank-L.trace.legendrank||Y._preSort-L._preSort};for(I.forEach(function(Y,L){Y[0]._preGroupSort=L}),I.sort(function(Y,L){return Y[0]._groupMinRank-L[0]._groupMinRank||Y[0]._preGroupSort-L[0]._preGroupSort}),p=0;pk?k:x}i.exports=function(x,T,k){var S=T._fullLayout;k||(k=S.legend);var C=k.itemsizing==="constant",M=k.itemwidth,O=(M+2*h.itemGap)/2,D=d(O,0),P=function(A,F,j,z){var B;if(A+1)B=A;else{if(!(F&&F.width>0))return 0;B=F.width}return C?z:Math.min(B,j)};function E(A,F,j){var z=A[0].trace,B=z.marker||{},N=B.line||{},R=j?z.visible&&z.type===j:u.traceIs(z,"bar"),q=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(R?[A]:[]);q.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),q.exit().remove(),q.each(function(Y){var L=s.select(this),W=Y[0],U=P(W.mlw,B.line,5,2);L.style("stroke-width",U+"px");var V=W.mcc;if(!k._inHover&&"mc"in W){var te=m(B),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),V=f.tryColorscale(B,"")(ee)}var H=V||W.mc||B.color,Z=B.pattern,G=Z&&f.getPatternAttr(Z.shape,0,"");if(G){var X=f.getPatternAttr(Z.bgcolor,0,null),Q=f.getPatternAttr(Z.fgcolor,0,null),re=Z.fgopacity,ae=_(Z.size,8,10),ie=_(Z.solidity,.5,1),se="legend-"+z.uid;L.call(f.pattern,"legend",T,se,G,ae,ie,V,Z.fillmode,X,Q,re)}else L.call(p.fill,H);U&&p.stroke(L,W.mlc||N.color)})}function I(A,F,j){var z=A[0],B=z.trace,N=j?B.visible&&B.type===j:u.traceIs(B,j),R=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(N?[A]:[]);if(R.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),R.exit().remove(),R.size()){var q=B.marker||{},Y=P(v(q.line.width,z.pts),q.line,5,2),L="pieLike",W=c.minExtend(B,{marker:{line:{width:Y}}},L),U=c.minExtend(z,{trace:W},L);b(R,U,W,T)}}x.each(function(A){var F=s.select(this),j=c.ensureSingle(F,"g","layers");j.style("opacity",A[0].trace.opacity);var z=k.valign,B=A[0].lineHeight,N=A[0].height;if(z!=="middle"&&B&&N){var R={top:1,bottom:-1}[z]*(.5*(B-N+3));j.attr("transform",d(0,R))}else j.attr("transform",null);j.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),j.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var q=j.selectAll("g.legendsymbols").data([A]);q.enter().append("g").classed("legendsymbols",!0),q.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var F,j=A[0].trace,z=[];if(j.visible)switch(j.type){case"histogram2d":case"heatmap":z=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmapbox":z=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymapbox":z=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":z=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],F=!1;break;case"streamtube":z=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],F=!1;break;case"surface":z=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],F=!0;break;case"mesh3d":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1}var B=s.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(z);B.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(N,R){var q,Y=s.select(this),L=m(j),W=L.colorscale,U=L.reversescale;if(W){if(!F){var V=W.length;q=R===0?W[U?V-1:0][1]:R===1?W[U?0:V-1][1]:W[Math.floor((V-1)/2)][1]}}else{var te=j.vertexcolor||j.facecolor||j.color;q=c.isArrayOrTypedArray(te)?te[R]||te[0]:te}Y.attr("d",N[0]),q?Y.call(p.fill,q):Y.call(function(ee){if(ee.size()){var H="legendfill-"+j.uid;f.gradient(ee,T,H,y(U,F==="radial"),W,"fill")}})})}).each(function(A){var F=A[0].trace,j=F.type==="waterfall";if(A[0]._distinct&&j){var z=A[0].trace[A[0].dir].marker;return A[0].mc=z.color,A[0].mlw=z.line.width,A[0].mlc=z.line.color,E(A,this,"waterfall")}var B=[];F.visible&&j&&(B=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=s.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(B);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(R){var q=s.select(this),Y=F[R[0]].marker,L=P(void 0,Y.line,5,2);q.attr("d",R[1]).style("stroke-width",L+"px").call(p.fill,Y.color),L&&q.call(p.stroke,Y.line.color)})}).each(function(A){E(A,this,"funnel")}).each(function(A){E(A,this)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendbox").data(F.visible&&u.traceIs(F,"box-violin")?[A]:[]);j.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),j.exit().remove(),j.each(function(){var z=s.select(this);if(F.boxpoints!=="all"&&F.points!=="all"||p.opacity(F.fillcolor)!==0||p.opacity((F.line||{}).color)!==0){var B=P(void 0,F.line,5,2);z.style("stroke-width",B+"px").call(p.fill,F.fillcolor),B&&p.stroke(z,F.line.color)}else{var N=c.minExtend(F,{marker:{size:C?12:c.constrain(F.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});j.call(f.pointStyle,N,T)}})}).each(function(A){I(A,this,"funnelarea")}).each(function(A){I(A,this,"pie")}).each(function(A){var F,j,z=w(A),B=z.showFill,N=z.showLine,R=z.showGradientLine,q=z.showGradientFill,Y=z.anyFill,L=z.anyLine,W=A[0],U=W.trace,V=m(U),te=V.colorscale,ee=V.reversescale,H=g.hasMarkers(U)||!Y?"M5,0":L?"M5,-2":"M5,-3",Z=s.select(this),G=Z.select(".legendfill").selectAll("path").data(B||q?[A]:[]);if(G.enter().append("path").classed("js-fill",!0),G.exit().remove(),G.attr("d",H+"h"+M+"v6h-"+M+"z").call(function(re){if(re.size())if(B)f.fillGroupStyle(re,T);else{var ae="legendfill-"+U.uid;f.gradient(re,T,ae,y(ee),te,"fill")}}),N||R){var X=P(void 0,U.line,10,5);j=c.minExtend(U,{line:{width:X}}),F=[c.minExtend(W,{trace:j})]}var Q=Z.select(".legendlines").selectAll("path").data(N||R?[F]:[]);Q.enter().append("path").classed("js-line",!0),Q.exit().remove(),Q.attr("d",H+(R?"l"+M+",0.0001":"h"+M)).call(N?f.lineGroupStyle:function(re){if(re.size()){var ae="legendline-"+U.uid;f.lineGroupStyle(re),f.gradient(re,T,ae,y(ee),te,"stroke")}})}).each(function(A){var F,j,z=w(A),B=z.anyFill,N=z.anyLine,R=z.showLine,q=z.showMarker,Y=A[0],L=Y.trace,W=!q&&!N&&!B&&g.hasText(L);function U(Q,re,ae,ie){var se=c.nestedProperty(L,Q).get(),he=c.isArrayOrTypedArray(se)&&re?re(se):se;if(C&&he&&ie!==void 0&&(he=ie),ae){if(heae[1])return ae[1]}return he}function V(Q){return Y._distinct&&Y.index&&Q[Y.index]?Q[Y.index]:Q[0]}if(q||W||R){var te={},ee={};if(q){te.mc=U("marker.color",V),te.mx=U("marker.symbol",V),te.mo=U("marker.opacity",c.mean,[.2,1]),te.mlc=U("marker.line.color",V),te.mlw=U("marker.line.width",c.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var H=U("marker.size",c.mean,[2,16],12);te.ms=H,ee.marker.size=H}R&&(ee.line={width:U("line.width",V,[0,10],5)}),W&&(te.tx="Aa",te.tp=U("textposition",V),te.ts=10,te.tc=U("textfont.color",V),te.tf=U("textfont.family",V)),F=[c.minExtend(Y,te)],(j=c.minExtend(L,ee)).selectedpoints=null,j.texttemplate=null}var Z=s.select(this).select("g.legendpoints"),G=Z.selectAll("path.scatterpts").data(q?F:[]);G.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),G.exit().remove(),G.call(f.pointStyle,j,T),q&&(F[0].mrc=3);var X=Z.selectAll("g.pointtext").data(W?F:[]);X.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),X.exit().remove(),X.selectAll("text").call(f.textPointStyle,j,T)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(F.visible&&F.type==="candlestick"?[A,A]:[]);j.enter().append("path").classed("legendcandle",!0).attr("d",function(z,B){return B?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(z,B){var N=s.select(this),R=F[B?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("stroke-width",q+"px").call(p.fill,R.fillcolor),q&&p.stroke(N,R.line.color)})}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(F.visible&&F.type==="ohlc"?[A,A]:[]);j.enter().append("path").classed("legendohlc",!0).attr("d",function(z,B){return B?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(z,B){var N=s.select(this),R=F[B?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("fill","none").call(f.dashLine,R.line.dash,q),q&&p.stroke(N,R.line.color)})})}},42068:function(i,o,a){a(93348),i.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(i,o,a){var s=a(73972),u=a(74875),c=a(41675),d=a(24255),f=a(34031).eraseActiveShape,p=a(71828),m=p._,g=i.exports={};function b(S,C){var M,O,D=C.currentTarget,P=D.getAttribute("data-attr"),E=D.getAttribute("data-val")||!0,I=S._fullLayout,A={},F=c.list(S,null,!0),j=I._cartesianSpikesEnabled;if(P==="zoom"){var z,B=E==="in"?.5:2,N=(1+B)/2,R=(1-B)/2;for(O=0;O1?(H=["toggleHover"],Z=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],H=["hoverClosestGeo"],Z=["resetGeo"]):I?(H=["hoverClosest3d"],Z=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],H=["toggleHover"],Z=["resetViewMapbox"]):z?H=["hoverClosestGl2d"]:F?H=["hoverClosestPie"]:Y?(H=["hoverClosestCartesian","hoverCompareCartesian"],Z=["resetViewSankey"]):H=["toggleHover"],E&&(H=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var he=0;he0)){var T=function(S,C,M){for(var O=M.filter(function(I){return C[I].anchor===S._id}),D=0,P=0;P=Oe.max)he=re[Se+1];else if(se=Oe.pmax)he=re[Se+1];else if(seSe._length||pe+Fe<0)return;Re=ue+Fe,Le=pe+Fe;break;case Me:if($e="col-resize",ue+Fe>Se._length)return;Re=ue+Fe,Le=pe;break;case ce:if($e="col-resize",pe+Fe<0)return;Re=ue,Le=pe+Fe;break;default:$e="ew-resize",Re=_e,Le=_e+Fe}if(Le=0;z--){var B=C.append("path").attr(O).style("opacity",z?.1:D).call(d.stroke,E).call(d.fill,P).call(f.dashLine,z?"solid":A,z?4+I:I);if(y(B,_,k),F){var N=p(_.layout,"selections",k);B.style({cursor:"move"});var R={element:B.node(),plotinfo:S,gd:_,editHelpers:N,isActiveSelection:!0},q=s(M,_);u(q,B,R)}else B.style("pointer-events",z?"all":"none");j[z]=B}var Y=j[0];j[1].node().addEventListener("click",function(){return function(L,W){if(v(L)){var U=+W.node().getAttribute("data-index");if(U>=0){if(U===L._fullLayout._activeSelectionIndex)return void w(L);L._fullLayout._activeSelectionIndex=U,L._fullLayout._deactivateSelection=w,b(L)}}}(_,Y)})}(_._fullLayout._selectionLayer)}function y(_,x,T){var k=T.xref+T.yref;f.setClipUrl(_,"clip"+x._fullLayout._uid+k,x)}function w(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(c(_),delete _._fullLayout._activeSelectionIndex,b(_))}i.exports={draw:b,drawOne:h,activateLastSelection:function(_){if(v(_)){var x=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=x,_._fullLayout._deactivateSelection=w,b(_)}}}},53777:function(i,o,a){var s=a(79952).P,u=a(1426).extendFlat;i.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:u({},s,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(i){i.exports=function(o,a,s){s("newselection.mode"),s("newselection.line.width")&&(s("newselection.line.color"),s("newselection.line.dash")),s("activeselection.fillcolor"),s("activeselection.opacity")}},35855:function(i,o,a){var s=a(64505).selectMode,u=a(51873).clearOutline,c=a(60165),d=c.readPaths,f=c.writePaths,p=c.fixDatesForPaths;i.exports=function(m,g){if(m.length){var b=m[0][0];if(b){var v=b.getAttribute("d"),h=g.gd,y=h._fullLayout.newselection,w=g.plotinfo,_=w.xaxis,x=w.yaxis,T=g.isActiveSelection,k=g.dragmode,S=(h.layout||{}).selections||[];if(!s(k)&&T!==void 0){var C=h._fullLayout._activeSelectionIndex;if(C-1,St=[];if(function(Ct){return Ct&&Array.isArray(Ct)&&Ct[0].hoverOnBox!==!0}(tt)){X(Te,Ae,Fe);var Ze=function(Ct,Wt){var _t,be,Ce=Ct[0],Ge=-1,He=[];for(be=0;be0?function(Ct,Wt){var _t,be,Ce,Ge=[];for(Ce=0;Ce0&&Ge.push(_t);if(Ge.length===1&&Ge[0]===Wt.searchInfo&&(be=Wt.searchInfo.cd[0].trace).selectedpoints.length===Wt.pointNumbers.length){for(Ce=0;Ce1||(be+=Wt.selectedpoints.length)>1))return!1;return be===1}(Ue)&&(dt=se(Ze))){for(Be&&Be.remove(),ze=0;ze=0})($e)&&$e._fullLayout._deactivateShape($e),function(st){return st._fullLayout._activeSelectionIndex>=0}($e)&&$e._fullLayout._deactivateSelection($e);var Fe=$e._fullLayout._zoomlayer,Be=h(Re),Ue=w(Re);if(Be||Ue){var qe,Xe,ot=Fe.selectAll(".select-outline-"+Le.id);ot&&$e._fullLayout._outlining&&(Be&&(qe=O(ot,Te)),qe&&c.call("_guiRelayout",$e,{shapes:qe}),Ue&&!te(Te)&&(Xe=D(ot,Te)),Xe&&($e._fullLayout._noEmitSelectedAtStart=!0,c.call("_guiRelayout",$e,{selections:Xe}).then(function(){Ae&&P($e)})),$e._fullLayout._outlining=!1)}Le.selection={},Le.selection.selectionDefs=Te.selectionDefs=[],Le.selection.mergedPolygons=Te.mergedPolygons=[]}function re(Te){return Te._id}function ae(Te,Ae,Re,Le){if(!Te.calcdata)return[];var $e,Fe,Be,Ue=[],qe=Ae.map(re),Xe=Re.map(re);for(Be=0;Be0?Le[0]:Re;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf($e)>-1}function he(Te,Ae,Re){var Le,$e;for(Le=0;Le-1&&Ae;if(!Fe&&Ae){var Ot=ne(Te,!0);if(Ot.length){var At=Ot[0].xref,Nt=Ot[0].yref;if(At&&Nt){var $t=ue(Ot);pe([j(Te,At,"x"),j(Te,Nt,"y")])(zt,$t)}}Te._fullLayout._noEmitSelectedAtStart?Te._fullLayout._noEmitSelectedAtStart=!1:kt&&xe(Te,zt),dt._reselect=!1}if(!Fe&&dt._deselect){var Bt=dt._deselect;(function(Xt,Zt,qt){for(var Ht=0;Ht=0)vt._fullLayout._deactivateShape(vt);else if(!Xe){var $t=We.clickmode;F.done(It).then(function(){if(F.clear(It),At===2){for(jt.remove(),Ce=0;Ce-1&&ee(Nt,vt,Le.xaxes,Le.yaxes,Le.subplot,Le,jt),$t==="event"&&xe(vt,void 0);p.click(vt,Nt,St.id)}).catch(E.error)}},Le.doneFn=function(){xt.remove(),F.done(It).then(function(){F.clear(It),!ze&&be&&Le.selectionDefs&&(be.subtract=Mt,Le.selectionDefs.push(be),Le.mergedPolygons.length=0,[].push.apply(Le.mergedPolygons,_t)),(ze||Xe)&&Q(Le,ze),Le.doneFnCompleted&&Le.doneFnCompleted(zt),ot&&xe(vt,He)}).catch(E.error)}},clearOutline:k,clearSelectionsCache:Q,selectOnClick:ee}},89827:function(i,o,a){var s=a(50215),u=a(41940),c=a(82196).line,d=a(79952).P,f=a(1426).extendFlat,p=a(44467).templatedArray,m=(a(24695),a(9012)),g=a(5386).R,b=a(37281);i.exports=p("shape",{visible:f({},m.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:f({},m.legend,{editType:"calc+arraydraw"}),legendgroup:f({},m.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:f({},m.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:u({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:f({},m.legendrank,{editType:"calc+arraydraw"}),legendwidth:f({},m.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:f({},s.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:f({},s.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:f({},c.color,{editType:"arraydraw"}),width:f({},c.width,{editType:"calc+arraydraw"}),dash:f({},d,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:g({},{keys:Object.keys(b)}),font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(i,o,a){var s=a(71828),u=a(89298),c=a(21459),d=a(30477);function f(b){return m(b.line.width,b.xsizemode,b.x0,b.x1,b.path,!1)}function p(b){return m(b.line.width,b.ysizemode,b.y0,b.y1,b.path,!0)}function m(b,v,h,y,w,_){var x=b/2,T=_;if(v==="pixel"){var k=w?d.extractPathCoords(w,_?c.paramIsY:c.paramIsX):[h,y],S=s.aggNums(Math.max,null,k),C=s.aggNums(Math.min,null,k),M=C<0?Math.abs(C)+x:x,O=S>0?S+x:x;return{ppad:x,ppadplus:T?M:O,ppadminus:T?O:M}}return{ppad:x}}function g(b,v,h,y,w){var _=b.type==="category"||b.type==="multicategory"?b.r2c:b.d2c;if(v!==void 0)return[_(v),_(h)];if(y){var x,T,k,S,C=1/0,M=-1/0,O=y.match(c.segmentRE);for(b.type==="date"&&(_=d.decodeDate(_)),x=0;xM&&(M=S)));return M>=C?[C,M]:void 0}}i.exports=function(b){var v=b._fullLayout,h=s.filterVisible(v.shapes);if(h.length&&b._fullData.length)for(var y=0;y=re?ae-se:se-ae,-180/Math.PI*Math.atan2(he,Se)}(M,D,O,P):0),A.call(function(re){return re.call(d.font,I).attr({}),c.convertToTspans(re,v),re});var Z=function(re,ae,ie,se,he,Se,Oe){var Pe,Me,ce,we,K=he.label.textposition,ne=he.label.textangle,de=he.label.padding,_e=he.type,ue=Math.PI/180*Se,pe=Math.sin(ue),xe=Math.cos(ue),ye=he.label.xanchor,Te=he.label.yanchor;if(_e==="line"){K==="start"?(Pe=re,Me=ae):K==="end"?(Pe=ie,Me=se):(Pe=(re+ie)/2,Me=(ae+se)/2),ye==="auto"&&(ye=K==="start"?ne==="auto"?ie>re?"left":iere?"right":iere?"right":iere?"left":ie1&&(Pe.length!==2||Pe[1][0]!=="Z")&&(Y===0&&(Pe[0][0]="M"),E[q]=Pe,z(),B())}}()}}function re(he,Se){(function(Oe,Pe){if(E.length)for(var Me=0;MeMe?(K=Oe,ue="y0",ne=Me,pe="y1"):(K=Me,ue="y1",ne=Oe,pe="y0"),ut(_t),Ct(se,ae),function(be,Ce,Ge){var He=Ce.xref,et=Ce.yref,Ke=d.getFromId(Ge,He),Ye=d.getFromId(Ge,et),nt="";He==="paper"||Ke.autorange||(nt+=He),et==="paper"||Ye.autorange||(nt+=et),v.setClipUrl(be,nt?"clip"+Ge._fullLayout._uid+nt:null,Ge)}(re,ae,Q),Ze.moveFn=Ae==="move"?ht:Rt,Ze.altKey=_t.altKey)},doneFn:function(){S(Q)||(w(re),Wt(se),O(re,Q,ae),u.call("_guiRelayout",Q,he.getUpdateObj()))},clickFn:function(){S(Q)||Wt(se)}};function ut(_t){if(S(Q))Ae=null;else if(Be)Ae=_t.target.tagName==="path"?"move":_t.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var be=Ze.element.getBoundingClientRect(),Ce=be.right-be.left,Ge=be.bottom-be.top,He=_t.clientX-be.left,et=_t.clientY-be.top,Ke=!Ue&&Ce>Re&&Ge>Le&&!_t.shiftKey?y.getCursor(He/Ce,1-et/Ge):"move";w(re,Ke),Ae=Ke.split("-")[0]}}function ht(_t,be){if(ae.type==="path"){var Ce=function(et){return et},Ge=Ce,He=Ce;$e?qe("xanchor",ae.xanchor=tt(ce+_t)):(Ge=function(et){return tt(We(et)+_t)},ot&&ot.type==="date"&&(Ge=x.encodeDate(Ge))),Fe?qe("yanchor",ae.yanchor=it(we+be)):(He=function(et){return it(ze(et)+be)},dt&&dt.type==="date"&&(He=x.encodeDate(He))),qe("path",ae.path=D(Te,Ge,He))}else $e?qe("xanchor",ae.xanchor=tt(ce+_t)):(qe("x0",ae.x0=tt(Se+_t)),qe("x1",ae.x1=tt(Pe+_t))),Fe?qe("yanchor",ae.yanchor=it(we+be)):(qe("y0",ae.y0=it(Oe+be)),qe("y1",ae.y1=it(Me+be)));re.attr("d",T(Q,ae)),Ct(se,ae),m(Q,ie,ae,Xe)}function Rt(_t,be){if(Ue){var Ce=function(mt){return mt},Ge=Ce,He=Ce;$e?qe("xanchor",ae.xanchor=tt(ce+_t)):(Ge=function(mt){return tt(We(mt)+_t)},ot&&ot.type==="date"&&(Ge=x.encodeDate(Ge))),Fe?qe("yanchor",ae.yanchor=it(we+be)):(He=function(mt){return it(ze(mt)+be)},dt&&dt.type==="date"&&(He=x.encodeDate(He))),qe("path",ae.path=D(Te,Ge,He))}else if(Be){if(Ae==="resize-over-start-point"){var et=Se+_t,Ke=Fe?Oe-be:Oe+be;qe("x0",ae.x0=$e?et:tt(et)),qe("y0",ae.y0=Fe?Ke:it(Ke))}else if(Ae==="resize-over-end-point"){var Ye=Pe+_t,nt=Fe?Me-be:Me+be;qe("x1",ae.x1=$e?Ye:tt(Ye)),qe("y1",ae.y1=Fe?nt:it(nt))}}else{var ct=function(mt){return Ae.indexOf(mt)!==-1},yt=ct("n"),rt=ct("s"),Ft=ct("w"),Yt=ct("e"),Mt=yt?K+be:K,jt=rt?ne+be:ne,Lt=Ft?de+_t:de,gt=Yt?_e+_t:_e;Fe&&(yt&&(Mt=K-be),rt&&(jt=ne-be)),(!Fe&&jt-Mt>Le||Fe&&Mt-jt>Le)&&(qe(ue,ae[ue]=Fe?Mt:it(Mt)),qe(pe,ae[pe]=Fe?jt:it(jt))),gt-Lt>Re&&(qe(xe,ae[xe]=$e?Lt:tt(Lt)),qe(ye,ae[ye]=$e?gt:tt(gt)))}re.attr("d",T(Q,ae)),Ct(se,ae),m(Q,ie,ae,Xe)}function Ct(_t,be){($e||Fe)&&function(){var Ce=be.type!=="path",Ge=_t.selectAll(".visual-cue").data([0]);Ge.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var He=We($e?be.xanchor:c.midRange(Ce?[be.x0,be.x1]:x.extractPathCoords(be.path,_.paramIsX))),et=ze(Fe?be.yanchor:c.midRange(Ce?[be.y0,be.y1]:x.extractPathCoords(be.path,_.paramIsY)));if(He=x.roundPositionForSharpStrokeRendering(He,1),et=x.roundPositionForSharpStrokeRendering(et,1),$e&&Fe){var Ke="M"+(He-1-1)+","+(et-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ge.attr("d",Ke)}else if($e){var Ye="M"+(He-1-1)+","+(et-9-1)+"v18 h2 v-18 Z";Ge.attr("d",Ye)}else{var nt="M"+(He-9-1)+","+(et-1-1)+"h18 v2 h-18 Z";Ge.attr("d",nt)}}()}function Wt(_t){_t.selectAll(".visual-cue").remove()}y.init(Ze),St.node().onmousemove=ut}(E,Z,F,I,B,ee):F.editable===!0&&Z.style("pointer-events",V||b.opacity(Y)*q<=.5?"stroke":"all");Z.node().addEventListener("click",function(){return function(Q,re){if(C(Q)){var ae=+re.node().getAttribute("data-index");if(ae>=0){if(ae===Q._fullLayout._activeShapeIndex)return void P(Q);Q._fullLayout._activeShapeIndex=ae,Q._fullLayout._deactivateShape=P,k(Q)}}}(E,Z)})}F._input&&F.visible===!0&&(F.layer!=="below"?z(E._fullLayout._shapeUpperLayer):F.xref==="paper"||F.yref==="paper"?z(E._fullLayout._shapeLowerLayer):j._hadPlotinfo?z((j.mainplotinfo||j).shapelayer):z(E._fullLayout._shapeLowerLayer))}function O(E,I,A){var F=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(E,F?"clip"+I._fullLayout._uid+F:null,I)}function D(E,I,A){return E.replace(_.segmentRE,function(F){var j=0,z=F.charAt(0),B=_.paramIsX[z],N=_.paramIsY[z],R=_.numParams[z];return z+F.substr(1).replace(_.paramRE,function(q){return j>=R||(B[j]?q=I(q):N[j]&&(q=A(q)),j++),q})})}function P(E){C(E)&&E._fullLayout._activeShapeIndex>=0&&(g(E),delete E._fullLayout._activeShapeIndex,k(E))}i.exports={draw:k,drawOne:M,eraseActiveShape:function(E){if(C(E)){g(E);var I=E._fullLayout._activeShapeIndex,A=(E.layout||{}).shapes||[];if(I0&&MH&&(G="X"),G});return U>H&&(Z=Z.replace(/[\s,]*X.*/,""),u.log("Ignoring extra params in segment "+W)),V+Z})}(f,m,b);if(f.xsizemode==="pixel"){var M=m(f.xanchor);v=M+f.x0,h=M+f.x1}else v=m(f.x0),h=m(f.x1);if(f.ysizemode==="pixel"){var O=b(f.yanchor);y=O-f.y0,w=O-f.y1}else y=b(f.y0),w=b(f.y1);if(_==="line")return"M"+v+","+y+"L"+h+","+w;if(_==="rect")return"M"+v+","+y+"H"+h+"V"+w+"H"+v+"Z";var D=(v+h)/2,P=(y+w)/2,E=Math.abs(D-v),I=Math.abs(P-y),A="A"+E+","+I,F=D+E+","+P;return"M"+F+A+" 0 1,1 "+D+","+(P-I)+A+" 0 0,1 "+F+"Z"}},89853:function(i,o,a){var s=a(34031);i.exports={moduleType:"component",name:"shapes",layoutAttributes:a(89827),supplyLayoutDefaults:a(84726),supplyDrawNewShapeDefaults:a(45547),includeBasePlot:a(76325)("shapes"),calcAutorange:a(5627),draw:s.draw,drawOne:s.drawOne}},37281:function(i){function o(c,d){return d?d.d2l(c):c}function a(c,d){return d?d.l2d(c):c}function s(c,d){return o(c.x1,d)-o(c.x0,d)}function u(c,d,f){return o(c.y1,f)-o(c.y0,f)}i.exports={x0:function(c){return c.x0},x1:function(c){return c.x1},y0:function(c){return c.y0},y1:function(c){return c.y1},slope:function(c,d,f){return c.type!=="line"?void 0:u(c,0,f)/s(c,d)},dx:s,dy:u,width:function(c,d){return Math.abs(s(c,d))},height:function(c,d,f){return Math.abs(u(c,0,f))},length:function(c,d,f){return c.type!=="line"?void 0:Math.sqrt(Math.pow(s(c,d),2)+Math.pow(u(c,0,f),2))},xcenter:function(c,d){return a((o(c.x1,d)+o(c.x0,d))/2,d)},ycenter:function(c,d,f){return a((o(c.y1,f)+o(c.y0,f))/2,f)}}},75067:function(i,o,a){var s=a(41940),u=a(35025),c=a(1426).extendDeepAll,d=a(30962).overrideAll,f=a(85594),p=a(44467).templatedArray,m=a(98292),g=p("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:g,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:c(u({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:f.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:s({})},font:s({}),activebgcolor:{valType:"color",dflt:m.gripBgActiveColor},bgcolor:{valType:"color",dflt:m.railBgColor},bordercolor:{valType:"color",dflt:m.railBorderColor},borderwidth:{valType:"number",min:0,dflt:m.railBorderWidth},ticklen:{valType:"number",min:0,dflt:m.tickLength},tickcolor:{valType:"color",dflt:m.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:m.minorTickLength}}),"arraydraw","from-root")},98292:function(i){i.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(i,o,a){var s=a(71828),u=a(85501),c=a(75067),d=a(98292).name,f=c.steps;function p(g,b,v){function h(T,k){return s.coerce(g,b,c,T,k)}for(var y=u(g,b,{name:"steps",handleItemDefaults:m}),w=0,_=0;_0&&(U=U.transition().duration(N.transition.duration).ease(N.transition.easing)),U.attr("transform",p(W-.5*b.gripWidth,N._dims.currentValueTotalHeight))}}function A(B,N){var R=B._dims;return R.inputAreaStart+b.stepInset+(R.inputAreaLength-2*b.stepInset)*Math.min(1,Math.max(0,N))}function F(B,N){var R=B._dims;return Math.min(1,Math.max(0,(N-b.stepInset-R.inputAreaStart)/(R.inputAreaLength-2*b.stepInset-2*R.inputAreaStart)))}function j(B,N,R){var q=R._dims,Y=f.ensureSingle(B,"rect",b.railTouchRectClass,function(L){L.call(P,N,B,R).style("pointer-events","all")});Y.attr({width:q.inputAreaLength,height:Math.max(q.inputAreaWidth,b.tickOffset+R.ticklen+q.labelHeight)}).call(c.fill,R.bgcolor).attr("opacity",0),d.setTranslate(Y,0,q.currentValueTotalHeight)}function z(B,N){var R=N._dims,q=R.inputAreaLength-2*b.railInset,Y=f.ensureSingle(B,"rect",b.railRectClass);Y.attr({width:q,height:b.railWidth,rx:b.railRadius,ry:b.railRadius,"shape-rendering":"crispEdges"}).call(c.stroke,N.bordercolor).call(c.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),d.setTranslate(Y,b.railInset,.5*(R.inputAreaWidth-b.railWidth)+R.currentValueTotalHeight)}i.exports=function(B){var N=B._context.staticPlot,R=B._fullLayout,q=function(te,ee){for(var H=te[b.name],Z=[],G=0;G0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),u.autoMargin(B,_(te))}if(Y.enter().append("g").classed(b.containerClassName,!0).style("cursor",N?null:"ew-resize"),Y.exit().each(function(){s.select(this).selectAll("g."+b.groupClassName).each(L)}).remove(),q.length!==0){var W=Y.selectAll("g."+b.groupClassName).data(q,x);W.enter().append("g").classed(b.groupClassName,!0),W.exit().each(L).remove();for(var U=0;U0||Pe<0){var K={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[O.side];Z.attr("transform",p(K[0],K[1]))}}}return U.call(V),Y&&(z?U.on(".opacity",null):(A=0,F=!0,U.text(C).on("mouseover.opacity",function(){s.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){s.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),U.call(b.makeEditable,{gd:w}).on("edit",function(H){M!==void 0?d.call("_guiRestyle",w,S,H,M):d.call("_guiRelayout",w,S,H)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(H){this.text(H||" ").call(b.positionText,D.x,D.y)})),U.classed("js-placeholder",F),E}}},7163:function(i,o,a){var s=a(41940),u=a(22399),c=a(1426).extendFlat,d=a(30962).overrideAll,f=a(35025),p=a(44467).templatedArray,m=p("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:m,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:c(f({editType:"arraydraw"}),{}),font:s({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:u.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(i){i.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(i,o,a){var s=a(71828),u=a(85501),c=a(7163),d=a(75909).name,f=c.buttons;function p(g,b,v){function h(y,w){return s.coerce(g,b,c,y,w)}h("visible",u(g,b,{name:"buttons",handleItemDefaults:m}).length>0)&&(h("active"),h("direction"),h("type"),h("showactive"),h("x"),h("y"),s.noneOrAll(g,b,["x","y"]),h("xanchor"),h("yanchor"),h("pad.t"),h("pad.r"),h("pad.b"),h("pad.l"),s.coerceFont(h,"font",v.font),h("bgcolor",v.paper_bgcolor),h("bordercolor"),h("borderwidth"))}function m(g,b){function v(h,y){return s.coerce(g,b,f,h,y)}v("visible",g.method==="skip"||Array.isArray(g.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}i.exports=function(g,b){u(g,b,{name:d,handleItemDefaults:p})}},13689:function(i,o,a){var s=a(39898),u=a(74875),c=a(7901),d=a(91424),f=a(71828),p=a(63893),m=a(44467).arrayEditor,g=a(18783).LINE_SPACING,b=a(75909),v=a(25849);function h(A){return A._index}function y(A,F){return+A.attr(b.menuIndexAttrName)===F._index}function w(A,F,j,z,B,N,R,q){F.active=R,m(A.layout,b.name,F).applyUpdate("active",R),F.type==="buttons"?x(A,z,null,null,F):F.type==="dropdown"&&(B.attr(b.menuIndexAttrName,"-1"),_(A,z,B,N,F),q||x(A,z,B,N,F))}function _(A,F,j,z,B){var N=f.ensureSingle(F,"g",b.headerClassName,function(U){U.style("pointer-events","all")}),R=B._dims,q=B.active,Y=B.buttons[q]||b.blankHeaderOpts,L={y:B.pad.t,yPad:0,x:B.pad.l,xPad:0,index:0},W={width:R.headerWidth,height:R.headerHeight};N.call(T,B,Y,A).call(E,B,L,W),f.ensureSingle(F,"text",b.headerArrowClassName,function(U){U.attr("text-anchor","end").call(d.font,B.font).text(b.arrowSymbol[B.direction])}).attr({x:R.headerWidth-b.arrowOffsetX+B.pad.l,y:R.headerHeight/2+b.textOffsetY+B.pad.t}),N.on("click",function(){j.call(I,String(y(j,B)?-1:B._index)),x(A,F,j,z,B)}),N.on("mouseover",function(){N.call(M)}),N.on("mouseout",function(){N.call(O,B)}),d.setTranslate(F,R.lx,R.ly)}function x(A,F,j,z,B){j||(j=F).attr("pointer-events","all");var N=function(Z){return+Z.attr(b.menuIndexAttrName)==-1}(j)&&B.type!=="buttons"?[]:B.buttons,R=B.type==="dropdown"?b.dropdownButtonClassName:b.buttonClassName,q=j.selectAll("g."+R).data(f.filterVisible(N)),Y=q.enter().append("g").classed(R,!0),L=q.exit();B.type==="dropdown"?(Y.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var W=0,U=0,V=B._dims,te=["up","down"].indexOf(B.direction)!==-1;B.type==="dropdown"&&(te?U=V.headerHeight+b.gapButtonHeader:W=V.headerWidth+b.gapButtonHeader),B.type==="dropdown"&&B.direction==="up"&&(U=-b.gapButtonHeader+b.gapButton-V.openHeight),B.type==="dropdown"&&B.direction==="left"&&(W=-b.gapButtonHeader+b.gapButton-V.openWidth);var ee={x:V.lx+W+B.pad.l,y:V.ly+U+B.pad.t,yPad:b.gapButton,xPad:b.gapButton,index:0},H={l:ee.x+B.borderwidth,t:ee.y+B.borderwidth};q.each(function(Z,G){var X=s.select(this);X.call(T,B,Z,A).call(E,B,ee),X.on("click",function(){s.event.defaultPrevented||(Z.execute&&(Z.args2&&B.active===G?(w(A,B,0,F,j,z,-1),u.executeAPICommand(A,Z.method,Z.args2)):(w(A,B,0,F,j,z,G),u.executeAPICommand(A,Z.method,Z.args))),A.emit("plotly_buttonclicked",{menu:B,button:Z,active:B.active}))}),X.on("mouseover",function(){X.call(M)}),X.on("mouseout",function(){X.call(O,B),q.call(C,B)})}),q.call(C,B),te?(H.w=Math.max(V.openWidth,V.headerWidth),H.h=ee.y-H.t):(H.w=ee.x-H.l,H.h=Math.max(V.openHeight,V.headerHeight)),H.direction=B.direction,z&&(q.size()?function(Z,G,X,Q,re,ae){var ie,se,he,Se=re.direction,Oe=Se==="up"||Se==="down",Pe=re._dims,Me=re.active;if(Oe)for(se=0,he=0;he0?[0]:[]);if(B.enter().append("g").classed(b.containerClassName,!0).style("cursor","pointer"),B.exit().each(function(){s.select(this).selectAll("g."+b.headerGroupClassName).each(z)}).remove(),j.length!==0){var N=B.selectAll("g."+b.headerGroupClassName).data(j,h);N.enter().append("g").classed(b.headerGroupClassName,!0);for(var R=f.ensureSingle(B,"g",b.dropdownButtonGroupClassName,function(U){U.style("pointer-events","all")}),q=0;qE,F=f.barLength+2*f.barPad,j=f.barWidth+2*f.barPad,z=T,B=S+C;B+j>h&&(B=h-j);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(u.fill,f.barColor),A?(this.hbar=N.attr({rx:f.barRadius,ry:f.barRadius,x:z,y:B,width:F,height:j}),this._hbarXMin=z+F/2,this._hbarTranslateMax=E-F):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var R=C>I,q=f.barWidth+2*f.barPad,Y=f.barLength+2*f.barPad,L=T+k,W=S;L+q>v&&(L=v-q);var U=this.container.selectAll("rect.scrollbar-vertical").data(R?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(u.fill,f.barColor),R?(this.vbar=U.attr({rx:f.barRadius,ry:f.barRadius,x:L,y:W,width:q,height:Y}),this._vbarYMin=W+Y/2,this._vbarTranslateMax=I-Y):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,te=y-.5,ee=R?w+q+.5:w+.5,H=_-.5,Z=A?x+j+.5:x+.5,G=b._topdefs.selectAll("#"+V).data(A||R?[0]:[]);if(G.exit().remove(),G.enter().append("clipPath").attr("id",V).append("rect"),A||R?(this._clipRect=G.select("rect").attr({x:Math.floor(te),y:Math.floor(H),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Z)-Math.floor(H)}),this.container.call(c.setClipUrl,V,this.gd),this.bg.attr({x:T,y:S,width:k,height:C})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),A||R){var X=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(X);var Q=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault(),s.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(Q),R&&this.vbar.on(".drag",null).call(Q)}this.setTranslate(m,g)},f.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},f.prototype._onBoxDrag=function(){var p=this.translateX,m=this.translateY;this.hbar&&(p-=s.event.dx),this.vbar&&(m-=s.event.dy),this.setTranslate(p,m)},f.prototype._onBoxWheel=function(){var p=this.translateX,m=this.translateY;this.hbar&&(p+=s.event.deltaY),this.vbar&&(m+=s.event.deltaY),this.setTranslate(p,m)},f.prototype._onBarDrag=function(){var p=this.translateX,m=this.translateY;if(this.hbar){var g=p+this._hbarXMin,b=g+this._hbarTranslateMax;p=(d.constrain(s.event.x,g,b)-g)/(b-g)*(this.position.w-this._box.w)}if(this.vbar){var v=m+this._vbarYMin,h=v+this._vbarTranslateMax;m=(d.constrain(s.event.y,v,h)-v)/(h-v)*(this.position.h-this._box.h)}this.setTranslate(p,m)},f.prototype.setTranslate=function(p,m){var g=this.position.w-this._box.w,b=this.position.h-this._box.h;if(p=d.constrain(p||0,0,g),m=d.constrain(m||0,0,b),this.translateX=p,this.translateY=m,this.container.call(c.setTranslate,this._box.l-this.position.l-p,this._box.t-this.position.t-m),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+p-.5),y:Math.floor(this.position.t+m-.5)}),this.hbar){var v=p/g;this.hbar.call(c.setTranslate,p+v*this._hbarTranslateMax,m)}if(this.vbar){var h=m/b;this.vbar.call(c.setTranslate,p,m+h*this._vbarTranslateMax)}}},18783:function(i){i.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(i){i.exports={axisRefDescription:function(o,a,s){return["If set to a",o,"axis id (e.g. *"+o+"* or","*"+o+"2*), the `"+o+"` position refers to a",o,"coordinate. If set to *paper*, the `"+o+"`","position refers to the distance from the",a,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",a,"("+s+"). If set to a",o,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",a,"of the domain of that axis: e.g.,","*"+o+"2 domain* refers to the domain of the second",o," axis and a",o,"position of 0.5 refers to the","point between the",a,"and the",s,"of the domain of the","second",o,"axis."].join(" ")}}},31562:function(i){i.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(i){i.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(i){i.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(i){i.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(i,o){o.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],o.STYLE=o.CSS_DECLARATIONS.map(function(a){return a.join(": ")+"; "}).join("")},77922:function(i,o){o.xmlns="http://www.w3.org/2000/xmlns/",o.svg="http://www.w3.org/2000/svg",o.xlink="http://www.w3.org/1999/xlink",o.svgAttrs={xmlns:o.svg,"xmlns:xlink":o.xlink}},8729:function(i,o,a){o.version=a(11506).version,a(7417),a(98847);for(var s=a(73972),u=o.register=s.register,c=a(10641),d=Object.keys(c),f=0;f",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(i,o){o.isLeftAnchor=function(a){return a.xanchor==="left"||a.xanchor==="auto"&&a.x<=.3333333333333333},o.isCenterAnchor=function(a){return a.xanchor==="center"||a.xanchor==="auto"&&a.x>.3333333333333333&&a.x<.6666666666666666},o.isRightAnchor=function(a){return a.xanchor==="right"||a.xanchor==="auto"&&a.x>=.6666666666666666},o.isTopAnchor=function(a){return a.yanchor==="top"||a.yanchor==="auto"&&a.y>=.6666666666666666},o.isMiddleAnchor=function(a){return a.yanchor==="middle"||a.yanchor==="auto"&&a.y>.3333333333333333&&a.y<.6666666666666666},o.isBottomAnchor=function(a){return a.yanchor==="bottom"||a.yanchor==="auto"&&a.y<=.3333333333333333}},26348:function(i,o,a){var s=a(64872),u=s.mod,c=s.modHalf,d=Math.PI,f=2*d;function p(v){return Math.abs(v[1]-v[0])>f-1e-14}function m(v,h){return c(h-v,f)}function g(v,h){if(p(h))return!0;var y,w;h[0](w=u(w,f))&&(w+=f);var _=u(v,f),x=_+f;return _>=y&&_<=w||x>=y&&x<=w}function b(v,h,y,w,_,x,T){_=_||0,x=x||0;var k,S,C,M,O,D=p([y,w]);function P(F,j){return[F*Math.cos(j)+_,x-F*Math.sin(j)]}D?(k=0,S=d,C=f):y=_&&v<=x);var _,x},pathArc:function(v,h,y,w,_){return b(null,v,h,y,w,_,0)},pathSector:function(v,h,y,w,_){return b(null,v,h,y,w,_,1)},pathAnnulus:function(v,h,y,w,_,x){return b(v,h,y,w,_,x,1)}}},73627:function(i,o){var a=Array.isArray,s=ArrayBuffer,u=DataView;function c(p){return s.isView(p)&&!(p instanceof u)}function d(p){return a(p)||c(p)}function f(p,m,g){if(d(p)){if(d(p[0])){for(var b=g,v=0;vx.max?w.set(_):w.set(+y)}},integer:{coerceFunction:function(y,w,_,x){y%1||!s(y)||x.min!==void 0&&yx.max?w.set(_):w.set(+y)}},string:{coerceFunction:function(y,w,_,x){if(typeof y!="string"){var T=typeof y=="number";x.strict!==!0&&T?w.set(String(y)):w.set(_)}else x.noBlank&&!y?w.set(_):w.set(y)}},color:{coerceFunction:function(y,w,_){u(y).isValid()?w.set(y):w.set(_)}},colorlist:{coerceFunction:function(y,w,_){Array.isArray(y)&&y.length&&y.every(function(x){return u(x).isValid()})?w.set(y):w.set(_)}},colorscale:{coerceFunction:function(y,w,_){w.set(d.get(y,_))}},angle:{coerceFunction:function(y,w,_){y==="auto"?w.set("auto"):s(y)?w.set(b(+y,360)):w.set(_)}},subplotid:{coerceFunction:function(y,w,_,x){var T=x.regex||g(_);typeof y=="string"&&T.test(y)?w.set(y):w.set(_)},validateFunction:function(y,w){var _=w.dflt;return y===_||typeof y=="string"&&!!g(_).test(y)}},flaglist:{coerceFunction:function(y,w,_,x){if((x.extras||[]).indexOf(y)===-1)if(typeof y=="string"){for(var T=y.split("+"),k=0;k=s&&N<=u?N:g}if(typeof N!="string"&&typeof N!="number")return g;N=String(N);var W=C(R),U=N.charAt(0);!W||U!=="G"&&U!=="g"||(N=N.substr(1),R="");var V=W&&R.substr(0,7)==="chinese",te=N.match(V?k:T);if(!te)return g;var ee=te[1],H=te[3]||"1",Z=Number(te[5]||1),G=Number(te[7]||0),X=Number(te[9]||0),Q=Number(te[11]||0);if(W){if(ee.length===2)return g;var re;ee=Number(ee);try{var ae=_.getComponentMethod("calendars","getCal")(R);if(V){var ie=H.charAt(H.length-1)==="i";H=parseInt(H,10),re=ae.newDate(ee,ae.toMonthIndex(ee,H,ie),Z)}else re=ae.newDate(ee,Number(H),Z)}catch{return g}return re?(re.toJD()-w)*b+G*v+X*h+Q*y:g}ee=ee.length===2?(Number(ee)+2e3-S)%100+S:Number(ee),H-=1;var se=new Date(Date.UTC(2e3,H,Z,G,X));return se.setUTCFullYear(ee),se.getUTCMonth()!==H||se.getUTCDate()!==Z?g:se.getTime()+Q*y},s=o.MIN_MS=o.dateTime2ms("-9999"),u=o.MAX_MS=o.dateTime2ms("9999-12-31 23:59:59.9999"),o.isDateTime=function(N,R){return o.dateTime2ms(N,R)!==g};var O=90*b,D=3*v,P=5*h;function E(N,R,q,Y,L){if((R||q||Y||L)&&(N+=" "+M(R,2)+":"+M(q,2),(Y||L)&&(N+=":"+M(Y,2),L))){for(var W=4;L%10==0;)W-=1,L/=10;N+="."+M(L,W)}return N}o.ms2DateTime=function(N,R,q){if(typeof N!="number"||!(N>=s&&N<=u))return g;R||(R=0);var Y,L,W,U,V,te,ee=Math.floor(10*p(N+.05,1)),H=Math.round(N-ee/10);if(C(q)){var Z=Math.floor(H/b)+w,G=Math.floor(p(N,b));try{Y=_.getComponentMethod("calendars","getCal")(q).fromJD(Z).formatDate("yyyy-mm-dd")}catch{Y=x("G%Y-%m-%d")(new Date(H))}if(Y.charAt(0)==="-")for(;Y.length<11;)Y="-0"+Y.substr(1);else for(;Y.length<10;)Y="0"+Y;L=R=s+b&&N<=u-b))return g;var R=Math.floor(10*p(N+.05,1)),q=new Date(Math.round(N-R/10));return E(c("%Y-%m-%d")(q),q.getHours(),q.getMinutes(),q.getSeconds(),10*q.getUTCMilliseconds()+R)},o.cleanDate=function(N,R,q){if(N===g)return R;if(o.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(C(q))return f.error("JS Dates and milliseconds are incompatible with world calendars",N),R;if(!(N=o.ms2DateTimeLocal(+N))&&R!==void 0)return R}else if(!o.isDateTime(N,q))return f.error("unrecognized date",N),R;return N};var I=/%\d?f/g,A=/%h/g,F={1:"1",2:"1",3:"2",4:"2"};function j(N,R,q,Y){N=N.replace(I,function(W){var U=Math.min(+W.charAt(1)||6,6);return(R/1e3%1+2).toFixed(U).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(R+.05));if(N=N.replace(A,function(){return F[q("%q")(L)]}),C(Y))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,R,Y)}catch{return"Invalid"}return q(N)(L)}var z=[59,59.9,59.99,59.999,59.9999];o.formatDate=function(N,R,q,Y,L,W){if(L=C(L)&&L,!R)if(q==="y")R=W.year;else if(q==="m")R=W.month;else{if(q!=="d")return function(U,V){var te=p(U+.05,b),ee=M(Math.floor(te/v),2)+":"+M(p(Math.floor(te/h),60),2);if(V!=="M"){d(V)||(V=0);var H=(100+Math.min(p(U/y,60),z[V])).toFixed(V).substr(1);V>0&&(H=H.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+H}return ee}(N,q)+` + ${e.palette.mode==="light"?_l(rr(e.palette.divider,1),.88):wl(rr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Oz.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Zde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableCell"}),{align:l="inherit",className:i,component:o,padding:a,scope:s,size:u,sortDirection:c,variant:d}=r,f=Kt(r,Yde),p=ge.useContext(Sz),m=ge.useContext(Jm),g=m&&m.variant==="head";let b;o?b=o:b=g?"th":"td";let v=s;b==="td"?v=void 0:!v&&g&&(v="col");const h=d||m&&m.variant,y=Ie({},r,{align:l,component:b,padding:a||(p&&p.padding?p.padding:"normal"),size:u||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:h==="head"&&p&&p.stickyHeader,variant:h}),w=Xde(y);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),ke.jsx(Kde,Ie({as:b,ref:n,className:on(w.root,i),"aria-sort":_,scope:v,ownerState:y},f))}),gi=Zde,Qde=Object.freeze(Object.defineProperty({__proto__:null,default:gi,getTableCellUtilityClass:Pz,tableCellClasses:Oz},Symbol.toStringTag,{value:"Module"}));function Jde(e){return yn("MuiTableContainer",e)}hn("MuiTableContainer",["root"]);const efe=["className","component"],tfe=e=>{const{classes:t}=e;return vn({root:["root"]},Jde,t)},nfe=Et("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),rfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableContainer"}),{className:l,component:i="div"}=r,o=Kt(r,efe),a=Ie({},r,{component:i}),s=tfe(a);return ke.jsx(nfe,Ie({ref:n,as:i,className:on(s.root,l),ownerState:a},o))});function Az(e){return yn("MuiTableFooter",e)}const afe=hn("MuiTableFooter",["root"]),ofe=afe,ife=["className","component"],lfe=e=>{const{classes:t}=e;return vn({root:["root"]},Az,t)},sfe=Et("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),ufe={variant:"footer"},q8="tfoot",cfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableFooter"}),{className:l,component:i=q8}=r,o=Kt(r,ife),a=Ie({},r,{component:i}),s=lfe(a);return ke.jsx(Jm.Provider,{value:ufe,children:ke.jsx(sfe,Ie({as:i,className:on(s.root,l),ref:n,role:i===q8?null:"rowgroup",ownerState:a},o))})}),dfe=cfe,ffe=Object.freeze(Object.defineProperty({__proto__:null,default:dfe,getTableFooterUtilityClass:Az,tableFooterClasses:ofe},Symbol.toStringTag,{value:"Module"}));function Dz(e){return yn("MuiTableHead",e)}const pfe=hn("MuiTableHead",["root"]),hfe=pfe,mfe=["className","component"],gfe=e=>{const{classes:t}=e;return vn({root:["root"]},Dz,t)},vfe=Et("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),yfe={variant:"head"},U8="thead",bfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableHead"}),{className:l,component:i=U8}=r,o=Kt(r,mfe),a=Ie({},r,{component:i}),s=gfe(a);return ke.jsx(Jm.Provider,{value:yfe,children:ke.jsx(vfe,Ie({as:i,className:on(s.root,l),ref:n,role:i===U8?null:"rowgroup",ownerState:a},o))})}),AM=bfe,xfe=Object.freeze(Object.defineProperty({__proto__:null,default:AM,getTableHeadUtilityClass:Dz,tableHeadClasses:hfe},Symbol.toStringTag,{value:"Module"}));function Ez(e){return yn("MuiToolbar",e)}const wfe=hn("MuiToolbar",["root","gutters","regular","dense"]),_fe=wfe,Tfe=["className","component","disableGutters","variant"],kfe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return vn({root:["root",!n&&"gutters",r]},Ez,t)},Sfe=Et("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>Ie({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Cfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiToolbar"}),{className:l,component:i="div",disableGutters:o=!1,variant:a="regular"}=r,s=Kt(r,Tfe),u=Ie({},r,{component:i,disableGutters:o,variant:a}),c=kfe(u);return ke.jsx(Sfe,Ie({as:i,className:on(c.root,l),ref:n,ownerState:u},s))}),Rz=Cfe,Mfe=Object.freeze(Object.defineProperty({__proto__:null,default:Rz,getToolbarUtilityClass:Ez,toolbarClasses:_fe},Symbol.toStringTag,{value:"Module"})),ek=Qr(ke.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),tk=Qr(ke.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var H8,V8,G8,Y8,X8,K8,Z8,Q8;const Pfe=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],Ofe=ge.forwardRef(function(t,n){const{backIconButtonProps:r,count:l,getItemAriaLabel:i,nextIconButtonProps:o,onPageChange:a,page:s,rowsPerPage:u,showFirstButton:c,showLastButton:d}=t,f=Kt(t,Pfe),p=po(),m=h=>{a(h,0)},g=h=>{a(h,s-1)},b=h=>{a(h,s+1)},v=h=>{a(h,Math.max(0,Math.ceil(l/u)-1))};return ke.jsxs("div",Ie({ref:n},f,{children:[c&&ke.jsx(mi,{onClick:m,disabled:s===0,"aria-label":i("first",s),title:i("first",s),children:p.direction==="rtl"?H8||(H8=ke.jsx(L8,{})):V8||(V8=ke.jsx(R8,{}))}),ke.jsx(mi,Ie({onClick:g,disabled:s===0,color:"inherit","aria-label":i("previous",s),title:i("previous",s)},r,{children:p.direction==="rtl"?G8||(G8=ke.jsx(tk,{})):Y8||(Y8=ke.jsx(ek,{}))})),ke.jsx(mi,Ie({onClick:b,disabled:l!==-1?s>=Math.ceil(l/u)-1:!1,color:"inherit","aria-label":i("next",s),title:i("next",s)},o,{children:p.direction==="rtl"?X8||(X8=ke.jsx(ek,{})):K8||(K8=ke.jsx(tk,{}))})),d&&ke.jsx(mi,{onClick:v,disabled:s>=Math.ceil(l/u)-1,"aria-label":i("last",s),title:i("last",s),children:p.direction==="rtl"?Z8||(Z8=ke.jsx(R8,{})):Q8||(Q8=ke.jsx(L8,{}))})]}))});function Lz(e){return yn("MuiTablePagination",e)}const Afe=hn("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),wd=Afe;var J8;const Dfe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],Efe=Et(gi,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),Rfe=Et(Rz,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>Ie({[`& .${wd.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${wd.actions}`]:{flexShrink:0,marginLeft:20}})),Lfe=Et("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Ife=Et("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>Ie({},e.typography.body2,{flexShrink:0})),$fe=Et(sb,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>Ie({[`& .${wd.selectIcon}`]:t.selectIcon,[`& .${wd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${wd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Nfe=Et(bz,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Ffe=Et("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>Ie({},e.typography.body2,{flexShrink:0}));function jfe({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function zfe(e){return`Go to ${e} page`}const Bfe=e=>{const{classes:t}=e;return vn({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Lz,t)},Wfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=Ofe,backIconButtonProps:i,className:o,colSpan:a,component:s=gi,count:u,getItemAriaLabel:c=zfe,labelDisplayedRows:d=jfe,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:p,onPageChange:m,onRowsPerPageChange:g,page:b,rowsPerPage:v,rowsPerPageOptions:h=[10,25,50,100],SelectProps:y={},showFirstButton:w=!1,showLastButton:_=!1}=r,x=Kt(r,Dfe),T=r,k=Bfe(T),S=y.native?"option":Nfe;let C;(s===gi||s==="td")&&(C=a||1e3);const M=Kl(y.id),O=Kl(y.labelId),D=()=>u===-1?(b+1)*v:v===-1?u:Math.min(u,(b+1)*v);return ke.jsx(Efe,Ie({colSpan:C,ref:n,as:s,ownerState:T,className:on(k.root,o)},x,{children:ke.jsxs(Rfe,{className:k.toolbar,children:[ke.jsx(Lfe,{className:k.spacer}),h.length>1&&ke.jsx(Ife,{className:k.selectLabel,id:O,children:f}),h.length>1&&ke.jsx($fe,Ie({variant:"standard"},!y.variant&&{input:J8||(J8=ke.jsx(ob,{}))},{value:v,onChange:g,id:M,labelId:O},y,{classes:Ie({},y.classes,{root:on(k.input,k.selectRoot,(y.classes||{}).root),select:on(k.select,(y.classes||{}).select),icon:on(k.selectIcon,(y.classes||{}).icon)}),children:h.map(P=>ge.createElement(S,Ie({},!lm(S)&&{ownerState:T},{className:k.menuItem,key:P.label?P.label:P,value:P.value?P.value:P}),P.label?P.label:P))})),ke.jsx(Ffe,{className:k.displayedRows,children:d({from:u===0?0:b*v+1,to:D(),count:u===-1?-1:u,page:b})}),ke.jsx(l,{className:k.actions,backIconButtonProps:i,count:u,nextIconButtonProps:p,onPageChange:m,page:b,rowsPerPage:v,showFirstButton:w,showLastButton:_,getItemAriaLabel:c})]})}))}),qfe=Wfe,Ufe=Object.freeze(Object.defineProperty({__proto__:null,default:qfe,getTablePaginationUtilityClass:Lz,tablePaginationClasses:wd},Symbol.toStringTag,{value:"Module"}));function Iz(e){return yn("MuiTableRow",e)}const Hfe=hn("MuiTableRow",["root","selected","hover","head","footer"]),nk=Hfe,Vfe=["className","component","hover","selected"],Gfe=e=>{const{classes:t,selected:n,hover:r,head:l,footer:i}=e;return vn({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},Iz,t)},Yfe=Et("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${nk.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),eD="tr",Xfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableRow"}),{className:l,component:i=eD,hover:o=!1,selected:a=!1}=r,s=Kt(r,Vfe),u=ge.useContext(Jm),c=Ie({},r,{component:i,hover:o,selected:a,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),d=Gfe(c);return ke.jsx(Yfe,Ie({as:i,ref:n,className:on(d.root,l),role:i===eD?null:"row",ownerState:c},s))}),pm=Xfe,Kfe=Object.freeze(Object.defineProperty({__proto__:null,default:pm,getTableRowUtilityClass:Iz,tableRowClasses:nk},Symbol.toStringTag,{value:"Module"})),Zfe=Qr(ke.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function $z(e){return yn("MuiTableSortLabel",e)}const Qfe=hn("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),tv=Qfe,Jfe=["active","children","className","direction","hideSortIcon","IconComponent"],epe=e=>{const{classes:t,direction:n,active:r}=e,l={root:["root",r&&"active"],icon:["icon",`iconDirection${Jt(n)}`]};return vn(l,$z,t)},tpe=Et(Tl,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${tv.icon}`]:{opacity:.5}},[`&.${tv.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${tv.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),npe=Et("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${Jt(n.direction)}`]]}})(({theme:e,ownerState:t})=>Ie({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),rpe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableSortLabel"}),{active:l=!1,children:i,className:o,direction:a="asc",hideSortIcon:s=!1,IconComponent:u=Zfe}=r,c=Kt(r,Jfe),d=Ie({},r,{active:l,direction:a,hideSortIcon:s,IconComponent:u}),f=epe(d);return ke.jsxs(tpe,Ie({className:on(f.root,o),component:"span",disableRipple:!0,ownerState:d,ref:n},c,{children:[i,s&&!l?null:ke.jsx(npe,{as:u,className:on(f.icon),ownerState:d})]}))}),ape=rpe,ope=Object.freeze(Object.defineProperty({__proto__:null,default:ape,getTableSortLabelUtilityClass:$z,tableSortLabelClasses:tv},Symbol.toStringTag,{value:"Module"}));function ipe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function lpe(e,t,n,r={},l=()=>{}){const{ease:i=ipe,duration:o=300}=r;let a=null;const s=t[e];let u=!1;const c=()=>{u=!0},d=f=>{if(u){l(new Error("Animation cancelled"));return}a===null&&(a=f);const p=Math.min(1,(f-a)/o);if(t[e]=i(p)*(n-s)+s,p>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(d)};return s===n?(l(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const spe=["onChange"],upe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function cpe(e){const{onChange:t}=e,n=Kt(e,spe),r=ge.useRef(),l=ge.useRef(null),i=()=>{r.current=l.current.offsetHeight-l.current.clientHeight};return no(()=>{const o=Um(()=>{const s=r.current;i(),s!==r.current&&t(r.current)}),a=bl(l.current);return a.addEventListener("resize",o),()=>{o.clear(),a.removeEventListener("resize",o)}},[t]),ge.useEffect(()=>{i(),t(r.current)},[t]),ke.jsx("div",Ie({style:upe,ref:l},n))}function dpe(e){return yn("MuiTabScrollButton",e)}const fpe=hn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ppe=["className","slots","slotProps","direction","orientation","disabled"],hpe=e=>{const{classes:t,orientation:n,disabled:r}=e;return vn({root:["root",n,r&&"disabled"]},dpe,t)},mpe=Et(Tl,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>Ie({width:40,flexShrink:0,opacity:.8,[`&.${fpe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),gpe=ge.forwardRef(function(t,n){var r,l;const i=pn({props:t,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:s={},direction:u}=i,c=Kt(i,ppe),f=po().direction==="rtl",p=Ie({isRtl:f},i),m=hpe(p),g=(r=a.StartScrollButtonIcon)!=null?r:ek,b=(l=a.EndScrollButtonIcon)!=null?l:tk,v=Ui({elementType:g,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),h=Ui({elementType:b,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return ke.jsx(mpe,Ie({component:"div",className:on(m.root,o),ref:n,role:null,ownerState:p,tabIndex:null},c,{children:u==="left"?ke.jsx(g,Ie({},v)):ke.jsx(b,Ie({},h))}))});function vpe(e){return yn("MuiTabs",e)}const nv=hn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ype=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],tD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,nD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,i0=(e,t,n)=>{let r=!1,l=n(e,t);for(;l;){if(l===e.firstChild){if(r)return;r=!0}const i=l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||i)l=n(e,l);else{l.focus();return}}},bpe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:l,scrollableY:i,centered:o,scrollButtonsHideMobile:a,classes:s}=e;return vn({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",l&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},vpe,s)},xpe=Et("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nv.scrollButtons}`]:t.scrollButtons},{[`& .${nv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>Ie({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${nv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),wpe=Et("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>Ie({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),_pe=Et("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>Ie({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Tpe=Et("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>Ie({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),kpe=Et(cpe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),rD={},Nz=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTabs"}),l=po(),i=l.direction==="rtl",{"aria-label":o,"aria-labelledby":a,action:s,centered:u=!1,children:c,className:d,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:m="primary",onChange:g,orientation:b="horizontal",ScrollButtonComponent:v=gpe,scrollButtons:h="auto",selectionFollowsFocus:y,slots:w={},slotProps:_={},TabIndicatorProps:x={},TabScrollButtonProps:T={},textColor:k="primary",value:S,variant:C="standard",visibleScrollbar:M=!1}=r,O=Kt(r,ype),D=C==="scrollable",P=b==="vertical",E=P?"scrollTop":"scrollLeft",I=P?"top":"left",A=P?"bottom":"right",F=P?"clientHeight":"clientWidth",j=P?"height":"width",z=Ie({},r,{component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:b,vertical:P,scrollButtons:h,textColor:k,variant:C,visibleScrollbar:M,fixed:!D,hideScrollbar:D&&!M,scrollableX:D&&!P,scrollableY:D&&P,centered:u&&!D,scrollButtonsHideMobile:!p}),B=bpe(z),N=Ui({elementType:w.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:z}),R=Ui({elementType:w.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:z}),[q,Y]=ge.useState(!1),[L,W]=ge.useState(rD),[U,V]=ge.useState(!1),[te,ee]=ge.useState(!1),[H,Z]=ge.useState(!1),[G,X]=ge.useState({overflow:"hidden",scrollbarWidth:0}),Q=new Map,re=ge.useRef(null),ae=ge.useRef(null),ie=()=>{const ye=re.current;let Te;if(ye){const Re=ye.getBoundingClientRect();Te={clientWidth:ye.clientWidth,scrollLeft:ye.scrollLeft,scrollTop:ye.scrollTop,scrollLeftNormalized:xJ(ye,l.direction),scrollWidth:ye.scrollWidth,top:Re.top,bottom:Re.bottom,left:Re.left,right:Re.right}}let Ae;if(ye&&S!==!1){const Re=ae.current.children;if(Re.length>0){const Le=Re[Q.get(S)];Ae=Le?Le.getBoundingClientRect():null}}return{tabsMeta:Te,tabMeta:Ae}},se=yo(()=>{const{tabsMeta:ye,tabMeta:Te}=ie();let Ae=0,Re;if(P)Re="top",Te&&ye&&(Ae=Te.top-ye.top+ye.scrollTop);else if(Re=i?"right":"left",Te&&ye){const $e=i?ye.scrollLeftNormalized+ye.clientWidth-ye.scrollWidth:ye.scrollLeft;Ae=(i?-1:1)*(Te[Re]-ye[Re]+$e)}const Le={[Re]:Ae,[j]:Te?Te[j]:0};if(isNaN(L[Re])||isNaN(L[j]))W(Le);else{const $e=Math.abs(L[Re]-Le[Re]),Fe=Math.abs(L[j]-Le[j]);($e>=1||Fe>=1)&&W(Le)}}),he=(ye,{animation:Te=!0}={})=>{Te?lpe(E,re.current,ye,{duration:l.transitions.duration.standard}):re.current[E]=ye},Se=ye=>{let Te=re.current[E];P?Te+=ye:(Te+=ye*(i?-1:1),Te*=i&&LF()==="reverse"?-1:1),he(Te)},Oe=()=>{const ye=re.current[F];let Te=0;const Ae=Array.from(ae.current.children);for(let Re=0;Reye){Re===0&&(Te=ye);break}Te+=Le[F]}return Te},Pe=()=>{Se(-1*Oe())},Me=()=>{Se(Oe())},ce=ge.useCallback(ye=>{X({overflow:null,scrollbarWidth:ye})},[]),we=()=>{const ye={};ye.scrollbarSizeListener=D?ke.jsx(kpe,{onChange:ce,className:on(B.scrollableX,B.hideScrollbar)}):null;const Ae=D&&(h==="auto"&&(U||te)||h===!0);return ye.scrollButtonStart=Ae?ke.jsx(v,Ie({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:N},orientation:b,direction:i?"right":"left",onClick:Pe,disabled:!U},T,{className:on(B.scrollButtons,T.className)})):null,ye.scrollButtonEnd=Ae?ke.jsx(v,Ie({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:R},orientation:b,direction:i?"left":"right",onClick:Me,disabled:!te},T,{className:on(B.scrollButtons,T.className)})):null,ye},K=yo(ye=>{const{tabsMeta:Te,tabMeta:Ae}=ie();if(!(!Ae||!Te)){if(Ae[I]Te[A]){const Re=Te[E]+(Ae[A]-Te[A]);he(Re,{animation:ye})}}}),ne=yo(()=>{D&&h!==!1&&Z(!H)});ge.useEffect(()=>{const ye=Um(()=>{re.current&&se()}),Te=bl(re.current);Te.addEventListener("resize",ye);let Ae;return typeof ResizeObserver<"u"&&(Ae=new ResizeObserver(ye),Array.from(ae.current.children).forEach(Re=>{Ae.observe(Re)})),()=>{ye.clear(),Te.removeEventListener("resize",ye),Ae&&Ae.disconnect()}},[se]),ge.useEffect(()=>{const ye=Array.from(ae.current.children),Te=ye.length;if(typeof IntersectionObserver<"u"&&Te>0&&D&&h!==!1){const Ae=ye[0],Re=ye[Te-1],Le={root:re.current,threshold:.99},$e=qe=>{V(!qe[0].isIntersecting)},Fe=new IntersectionObserver($e,Le);Fe.observe(Ae);const Be=qe=>{ee(!qe[0].isIntersecting)},Ue=new IntersectionObserver(Be,Le);return Ue.observe(Re),()=>{Fe.disconnect(),Ue.disconnect()}}},[D,h,H,c==null?void 0:c.length]),ge.useEffect(()=>{Y(!0)},[]),ge.useEffect(()=>{se()}),ge.useEffect(()=>{K(rD!==L)},[K,L]),ge.useImperativeHandle(s,()=>({updateIndicator:se,updateScrollButtons:ne}),[se,ne]);const de=ke.jsx(Tpe,Ie({},x,{className:on(B.indicator,x.className),ownerState:z,style:Ie({},L,x.style)}));let _e=0;const ue=ge.Children.map(c,ye=>{if(!ge.isValidElement(ye))return null;const Te=ye.props.value===void 0?_e:ye.props.value;Q.set(Te,_e);const Ae=Te===S;return _e+=1,ge.cloneElement(ye,Ie({fullWidth:C==="fullWidth",indicator:Ae&&!q&&de,selected:Ae,selectionFollowsFocus:y,onChange:g,textColor:k,value:Te},_e===1&&S===!1&&!ye.props.tabIndex?{tabIndex:0}:{}))}),pe=ye=>{const Te=ae.current,Ae=Aa(Te).activeElement;if(Ae.getAttribute("role")!=="tab")return;let Le=b==="horizontal"?"ArrowLeft":"ArrowUp",$e=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&i&&(Le="ArrowRight",$e="ArrowLeft"),ye.key){case Le:ye.preventDefault(),i0(Te,Ae,nD);break;case $e:ye.preventDefault(),i0(Te,Ae,tD);break;case"Home":ye.preventDefault(),i0(Te,null,tD);break;case"End":ye.preventDefault(),i0(Te,null,nD);break}},xe=we();return ke.jsxs(xpe,Ie({className:on(B.root,d),ownerState:z,ref:n,as:f},O,{children:[xe.scrollButtonStart,xe.scrollbarSizeListener,ke.jsxs(wpe,{className:B.scroller,ownerState:z,style:{overflow:G.overflow,[P?`margin${i?"Left":"Right"}`:"marginBottom"]:M?void 0:-G.scrollbarWidth},ref:re,children:[ke.jsx(_pe,{"aria-label":o,"aria-labelledby":a,"aria-orientation":b==="vertical"?"vertical":null,className:B.flexContainer,ownerState:z,onKeyDown:pe,ref:ae,role:"tablist",children:ue}),q&&de]}),xe.scrollButtonEnd]}))});function Fz(e){return yn("MuiTextField",e)}const Spe=hn("MuiTextField",["root"]),Cpe=Spe,Mpe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ppe={standard:_M,filled:xM,outlined:CM},Ope=e=>{const{classes:t}=e;return vn({root:["root"]},Fz,t)},Ape=Et(Qj,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dpe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTextField"}),{autoComplete:l,autoFocus:i=!1,children:o,className:a,color:s="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:m,id:g,InputLabelProps:b,inputProps:v,InputProps:h,inputRef:y,label:w,maxRows:_,minRows:x,multiline:T=!1,name:k,onBlur:S,onChange:C,onFocus:M,placeholder:O,required:D=!1,rows:P,select:E=!1,SelectProps:I,type:A,value:F,variant:j="outlined"}=r,z=Kt(r,Mpe),B=Ie({},r,{autoFocus:i,color:s,disabled:c,error:d,fullWidth:p,multiline:T,required:D,select:E,variant:j}),N=Ope(B),R={};j==="outlined"&&(b&&typeof b.shrink<"u"&&(R.notched=b.shrink),R.label=w),E&&((!I||!I.native)&&(R.id=void 0),R["aria-describedby"]=void 0);const q=Kl(g),Y=m&&q?`${q}-helper-text`:void 0,L=w&&q?`${q}-label`:void 0,W=Ppe[j],U=ke.jsx(W,Ie({"aria-describedby":Y,autoComplete:l,autoFocus:i,defaultValue:u,fullWidth:p,multiline:T,name:k,rows:P,maxRows:_,minRows:x,type:A,value:F,id:q,inputRef:y,onBlur:S,onChange:C,onFocus:M,placeholder:O,inputProps:v},R,h));return ke.jsxs(Ape,Ie({className:on(N.root,a),disabled:c,error:d,fullWidth:p,ref:n,required:D,color:s,variant:j,ownerState:B},z,{children:[w!=null&&w!==""&&ke.jsx(cz,Ie({htmlFor:q,id:L},b,{children:w})),E?ke.jsx(sb,Ie({"aria-describedby":Y,id:q,labelId:L,value:F,input:U},I,{children:o})):U,m&&ke.jsx(nz,Ie({id:Y},f,{children:m}))]}))}),Epe=Dpe,Rpe=Object.freeze(Object.defineProperty({__proto__:null,default:Epe,getTextFieldUtilityClass:Fz,textFieldClasses:Cpe},Symbol.toStringTag,{value:"Module"})),{transitions:Fc}=es(),Dl="#ed0500",Lpe="#ded5d5",Ipe=es({shape:{borderRadius:5},palette:{primary:{main:Rl[900],light:Rl[200]},secondary:{main:Dl,dark:"#c10400",light:Rl[200]},background:{default:"#fff",paper:"#fff"}},components:{MuiLink:{styleOverrides:{root:{transition:Fc.create("color",{duration:Fc.duration.enteringScreen}),"&:hover":{color:Dl}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:Dl}}},MuiButton:{styleOverrides:{contained:{"&:hover":{background:Rl[800]}},outlined:{"&:hover":{color:Dl,borderColor:Dl,background:"#fff"}},text:{"&:hover":{color:Dl,borderColor:Dl}}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px","&:hover":{background:Rl[200]}}}},MuiIconButton:{styleOverrides:{root:{transition:Fc.create("color",{duration:Fc.duration.enteringScreen}),color:Rl[900],"&:hover":{color:Dl}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:Fc.create("color",{duration:Fc.duration.enteringScreen}),color:Rl[900],"&:hover":{color:Dl},"&.Mui-disabled":{border:"unset",background:Rl[100]}}}},MuiToggleButtonGroup:{defaultProps:{color:"secondary"}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{styleOverrides:{root:{boxShadow:"unset",border:"1px solid",borderColor:Lpe}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}});class $pe{constructor(t){$g(this,"cachedGraphs");$g(this,"cachedWidgets");$g(this,"inner");this.inner=t,this.cachedGraphs=new Map,this.cachedWidgets=new Map}async getAdditionGraphData(t){let n=this.cachedGraphs.get(t);return n!==void 0||(n=await this.inner.getAdditionGraphData(t),this.cachedGraphs.set(t,n)),n}async getAdditionWidgetData(t){let n=this.cachedWidgets.get(t);return n!==void 0||(n=await this.inner.getAdditionWidgetData(t),this.cachedWidgets.set(t,n)),n}}const DM=Je.createContext({getAdditionGraphData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data")),getAdditionWidgetData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data"))});function Npe(e){return new $pe(e)}var rv=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(rv||{}),jz={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(n,r){e.exports=r()})(self,function(){return function(){var n={98847:function(i,o,a){var s=a(71828),u={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var c in u){var d=c.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");s.addStyleRule(d,u[c])}},98222:function(i,o,a){i.exports=a(82887)},27206:function(i,o,a){i.exports=a(60822)},5224:function(i,o,a){i.exports=a(83832)},59509:function(i,o,a){i.exports=a(72201)},49866:function(i,o,a){i.exports=a(99442)},19548:function(i,o,a){i.exports=a(8729)},61039:function(i,o,a){i.exports=a(14382)},24296:function(i,o,a){i.exports=a(43102)},58872:function(i,o,a){i.exports=a(92165)},65591:function(i,o,a){i.exports=a(36071)},69738:function(i,o,a){i.exports=a(43905)},92650:function(i,o,a){i.exports=a(35902)},73434:function(i,o,a){i.exports=a(94507)},760:function(i,o,a){var s=a(19548);s.register([a(27206),a(5224),a(58872),a(65591),a(69738),a(92650),a(49866),a(25743),a(6197),a(73434),a(54201),a(98222),a(61039),a(24296),a(66398),a(59509)]),i.exports=s},54201:function(i,o,a){i.exports=a(58810)},25743:function(i,o,a){i.exports=a(52979)},66398:function(i,o,a){i.exports=a(32275)},6197:function(i,o,a){i.exports=a(47462)},82884:function(i){i.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(i,o,a){var s=a(82884),u=a(41940),c=a(85555),d=a(44467).templatedArray;a(24695),i.exports=d("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",c.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",c.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:u({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(i,o,a){var s=a(71828),u=a(89298),c=a(92605).draw;function d(p){var m=p._fullLayout;s.filterVisible(m.annotations).forEach(function(g){var b=u.getFromId(p,g.xref),v=u.getFromId(p,g.yref),h=u.getRefType(g.xref),y=u.getRefType(g.yref);g._extremes={},h==="range"&&f(g,b),y==="range"&&f(g,v)})}function f(p,m){var g,b=m._id,v=b.charAt(0),h=p[v],y=p["a"+v],w=p[v+"ref"],_=p["a"+v+"ref"],x=p["_"+v+"padplus"],T=p["_"+v+"padminus"],k={x:1,y:-1}[v]*p[v+"shift"],S=3*p.arrowsize*p.arrowwidth||0,C=S+k,M=S-k,O=3*p.startarrowsize*p.arrowwidth||0,D=O+k,P=O-k;if(_===w){var E=u.findExtremes(m,[m.r2c(h)],{ppadplus:C,ppadminus:M}),I=u.findExtremes(m,[m.r2c(y)],{ppadplus:Math.max(x,D),ppadminus:Math.max(T,P)});g={min:[E.min[0],I.min[0]],max:[E.max[0],I.max[0]]}}else D=y?D+y:D,P=y?P-y:P,g=u.findExtremes(m,[m.r2c(h)],{ppadplus:Math.max(x,C,D),ppadminus:Math.max(T,M,P)});p._extremes[b]=g}i.exports=function(p){var m=p._fullLayout;if(s.filterVisible(m.annotations).length&&p._fullData.length)return s.syncOrAsync([c,d],p)}},44317:function(i,o,a){var s=a(71828),u=a(73972),c=a(44467).arrayEditor;function d(p,m){var g,b,v,h,y,w,_,x=p._fullLayout.annotations,T=[],k=[],S=[],C=(m||[]).length;for(g=0;g0||g.explicitOff.length>0},onClick:function(p,m){var g,b,v=d(p,m),h=v.on,y=v.off.concat(v.explicitOff),w={},_=p._fullLayout.annotations;if(h.length||y.length){for(g=0;g.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var ye=!1,Te=["x","y"],Ae=0;Ae1)&&(Xe===qe?((Ze=ot.r2fraction(C["a"+Ue]))<0||Ze>1)&&(ye=!0):ye=!0),Re=ot._offset+ot.r2p(C[Ue]),Fe=.5}else{var ut=St==="domain";Ue==="x"?($e=C[Ue],Re=ut?ot._offset+ot._length*$e:Re=F.l+F.w*$e):($e=1-C[Ue],Re=ut?ot._offset+ot._length*$e:Re=F.t+F.h*$e),Fe=C.showarrow?.5:$e}if(C.showarrow){it.head=Re;var ht=C["a"+Ue];if(Be=dt*xe(.5,C.xanchor)-vt*xe(.5,C.yanchor),Xe===qe){var Rt=p.getRefType(Xe);Rt==="domain"?(Ue==="y"&&(ht=1-ht),it.tail=ot._offset+ot._length*ht):Rt==="paper"?Ue==="y"?(ht=1-ht,it.tail=F.t+F.h*ht):it.tail=F.l+F.w*ht:it.tail=ot._offset+ot.r2p(ht),Le=Be}else it.tail=Re+ht,Le=Be+ht;it.text=it.tail+Be;var Ct=A[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=d.constrain(it.head,1,Ct-1)),Xe==="pixel"){var Wt=-Math.max(it.tail-3,it.text),_t=Math.min(it.tail+3,it.text)-Ct;Wt>0?(it.tail+=Wt,it.text+=Wt):_t>0&&(it.tail-=_t,it.text-=_t)}it.tail+=tt,it.head+=tt}else Le=Be=We*xe(Fe,ze),it.text=Re+Be;it.text+=tt,Be+=tt,Le+=tt,C["_"+Ue+"padplus"]=We/2+Le,C["_"+Ue+"padminus"]=We/2-Le,C["_"+Ue+"size"]=We,C["_"+Ue+"shift"]=Be}if(ye)ee.remove();else{var be=0,Ce=0;if(C.align!=="left"&&(be=(de-K)*(C.align==="center"?.5:1)),C.valign!=="top"&&(Ce=(_e-ne)*(C.valign==="middle"?.5:1)),ce)Me.select("svg").attr({x:G+be-1,y:G+Ce}).call(g.setClipUrl,Q?q:null,S);else{var Ge=G+Ce-we.top,He=G+be-we.left;se.call(v.positionText,He,Ge).call(g.setClipUrl,Q?q:null,S)}re.select("rect").call(g.setRect,G,G,de,_e),X.call(g.setRect,H/2,H/2,ue-H,pe-H),ee.call(g.setTranslate,Math.round(Y.x.text-ue/2),Math.round(Y.y.text-pe/2)),U.attr({transform:"rotate("+L+","+Y.x.text+","+Y.y.text+")"});var et,Ke=function(Ye,nt){W.selectAll(".annotation-arrow-g").remove();var ct=Y.x.head,yt=Y.y.head,rt=Y.x.tail+Ye,Ft=Y.y.tail+nt,Yt=Y.x.text+Ye,Mt=Y.y.text+nt,jt=d.rotationXYMatrix(L,Yt,Mt),Lt=d.apply2DTransform(jt),gt=d.apply2DTransform2(jt),mt=+X.attr("width"),xt=+X.attr("height"),Ut=Yt-.5*mt,It=Ut+mt,zt=Mt-.5*xt,kt=zt+xt,Ot=[[Ut,zt,Ut,kt],[Ut,kt,It,kt],[It,kt,It,zt],[It,zt,Ut,zt]].map(gt);if(!Ot.reduce(function(dn,gn){return dn^!!d.segmentsIntersect(ct,yt,ct+1e6,yt+1e6,gn[0],gn[1],gn[2],gn[3])},!1)){Ot.forEach(function(dn){var gn=d.segmentsIntersect(rt,Ft,ct,yt,dn[0],dn[1],dn[2],dn[3]);gn&&(rt=gn.x,Ft=gn.y)});var At=C.arrowwidth,Nt=C.arrowcolor,$t=C.arrowside,Bt=W.append("g").style({opacity:m.opacity(Nt)}).classed("annotation-arrow-g",!0),Xt=Bt.append("path").attr("d","M"+rt+","+Ft+"L"+ct+","+yt).style("stroke-width",At+"px").call(m.stroke,m.rgb(Nt));if(_(Xt,$t,C),j.annotationPosition&&Xt.node().parentNode&&!O){var Zt=ct,qt=yt;if(C.standoff){var Ht=Math.sqrt(Math.pow(ct-rt,2)+Math.pow(yt-Ft,2));Zt+=C.standoff*(rt-ct)/Ht,qt+=C.standoff*(Ft-yt)/Ht}var sn,xn,mn=Bt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(rt-Zt)+","+(Ft-qt),transform:f(Zt,qt)}).style("stroke-width",At+6+"px").call(m.stroke,"rgba(0,0,0,0)").call(m.fill,"rgba(0,0,0,0)");y.init({element:mn.node(),gd:S,prepFn:function(){var dn=g.getTranslate(ee);sn=dn.x,xn=dn.y,D&&D.autorange&&B(D._name+".autorange",!0),P&&P.autorange&&B(P._name+".autorange",!0)},moveFn:function(dn,gn){var en=Lt(sn,xn),kn=en[0]+dn,un=en[1]+gn;ee.call(g.setTranslate,kn,un),N("x",T(D,dn,"x",F,C)),N("y",T(P,gn,"y",F,C)),C.axref===C.xref&&N("ax",T(D,dn,"ax",F,C)),C.ayref===C.yref&&N("ay",T(P,gn,"ay",F,C)),Bt.attr("transform",f(dn,gn)),U.attr({transform:"rotate("+L+","+kn+","+un+")"})},doneFn:function(){u.call("_guiRelayout",S,R());var dn=document.querySelector(".js-notes-box-panel");dn&&dn.redraw(dn.selectedObj)}})}}};C.showarrow&&Ke(0,0),V&&y.init({element:ee.node(),gd:S,prepFn:function(){et=U.attr("transform")},moveFn:function(Ye,nt){var ct="pointer";if(C.showarrow)C.axref===C.xref?N("ax",T(D,Ye,"ax",F,C)):N("ax",C.ax+Ye),C.ayref===C.yref?N("ay",T(P,nt,"ay",F.w,C)):N("ay",C.ay+nt),Ke(Ye,nt);else{if(O)return;var yt,rt;if(D)yt=T(D,Ye,"x",F,C);else{var Ft=C._xsize/F.w,Yt=C.x+(C._xshift-C.xshift)/F.w-Ft/2;yt=y.align(Yt+Ye/F.w,Ft,0,1,C.xanchor)}if(P)rt=T(P,nt,"y",F,C);else{var Mt=C._ysize/F.h,jt=C.y-(C._yshift+C.yshift)/F.h-Mt/2;rt=y.align(jt-nt/F.h,Mt,0,1,C.yanchor)}N("x",yt),N("y",rt),D&&P||(ct=y.getCursor(D?.5:yt,P?.5:rt,C.xanchor,C.yanchor))}U.attr({transform:f(Ye,nt)+et}),h(ee,ct)},clickFn:function(Ye,nt){C.captureevents&&S.emit("plotly_clickannotation",he(nt))},doneFn:function(){h(ee),u.call("_guiRelayout",S,R());var Ye=document.querySelector(".js-notes-box-panel");Ye&&Ye.redraw(Ye.selectedObj)}})}}}i.exports={draw:function(S){var C=S._fullLayout;C._infolayer.selectAll(".annotation").remove();for(var M=0;M=0,O=b.indexOf("end")>=0,D=T.backoff*S+v.standoff,P=k.backoff*C+v.startstandoff;if(x.nodeName==="line"){h={x:+g.attr("x1"),y:+g.attr("y1")},y={x:+g.attr("x2"),y:+g.attr("y2")};var E=h.x-y.x,I=h.y-y.y;if(_=(w=Math.atan2(I,E))+Math.PI,D&&P&&D+P>Math.sqrt(E*E+I*I))return void W();if(D){if(D*D>E*E+I*I)return void W();var A=D*Math.cos(w),F=D*Math.sin(w);y.x+=A,y.y+=F,g.attr({x2:y.x,y2:y.y})}if(P){if(P*P>E*E+I*I)return void W();var j=P*Math.cos(w),z=P*Math.sin(w);h.x-=j,h.y-=z,g.attr({x1:h.x,y1:h.y})}}else if(x.nodeName==="path"){var B=x.getTotalLength(),N="";if(B1){v=!0;break}}v?d.fullLayout._infolayer.select(".annotation-"+d.id+'[data-index="'+g+'"]').remove():(b._pdata=u(d.glplot.cameraParams,[f.xaxis.r2l(b.x)*p[0],f.yaxis.r2l(b.y)*p[1],f.zaxis.r2l(b.z)*p[2]]),s(d.graphDiv,b,g,d.id,b._xa,b._ya))}}},2468:function(i,o,a){var s=a(73972),u=a(71828);i.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:a(26997)}}},layoutAttributes:a(26997),handleDefaults:a(20226),includeBasePlot:function(c,d){var f=s.subplotsRegistry.gl3d;if(f)for(var p=f.attrRegex,m=Object.keys(c),g=0;g=0)))return b;if(_===3)y[_]>1&&(y[_]=1);else if(y[_]>=1)return b}var x=Math.round(255*y[0])+", "+Math.round(255*y[1])+", "+Math.round(255*y[2]);return w?"rgba("+x+", "+y[3]+")":"rgb("+x+")"}d.tinyRGB=function(b){var v=b.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},d.rgb=function(b){return d.tinyRGB(s(b))},d.opacity=function(b){return b?s(b).getAlpha():0},d.addOpacity=function(b,v){var h=s(b).toRgb();return"rgba("+Math.round(h.r)+", "+Math.round(h.g)+", "+Math.round(h.b)+", "+v+")"},d.combine=function(b,v){var h=s(b).toRgb();if(h.a===1)return s(b).toRgbString();var y=s(v||m).toRgb(),w=y.a===1?y:{r:255*(1-y.a)+y.r*y.a,g:255*(1-y.a)+y.g*y.a,b:255*(1-y.a)+y.b*y.a},_={r:w.r*(1-h.a)+h.r*h.a,g:w.g*(1-h.a)+h.g*h.a,b:w.b*(1-h.a)+h.b*h.a};return s(_).toRgbString()},d.contrast=function(b,v,h){var y=s(b);return y.getAlpha()!==1&&(y=s(d.combine(b,m))),(y.isDark()?v?y.lighten(v):m:h?y.darken(h):p).toString()},d.stroke=function(b,v){var h=s(v);b.style({stroke:d.tinyRGB(h),"stroke-opacity":h.getAlpha()})},d.fill=function(b,v){var h=s(v);b.style({fill:d.tinyRGB(h),"fill-opacity":h.getAlpha()})},d.clean=function(b){if(b&&typeof b=="object"){var v,h,y,w,_=Object.keys(b);for(v=0;v<_.length;v++)if(w=b[y=_[v]],y.substr(y.length-5)==="color")if(Array.isArray(w))for(h=0;h0?_t>=et:_t<=et));be++)_t>Ye&&_t0?_t>=et:_t<=et));be++)_t>Wt[0]&&_t1){var vt=Math.pow(10,Math.floor(Math.log(dt)/Math.LN10));ot*=vt*m.roundUp(dt/vt,[2,5,10]),(Math.abs(K.start)/K.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=ot}qe.domain=R?[Be+G/se.h,Be+ye-G/se.h]:[Be+Z/se.w,Be+ye-Z/se.w],qe.setScale(),z.attr("transform",g(Math.round(se.l),Math.round(se.t)));var We,ze=z.select("."+P.cbtitleunshift).attr("transform",g(-Math.round(se.l),-Math.round(se.t))),tt=qe.ticklabelposition,it=qe.title.font.size,St=z.select("."+P.cbaxis),Ze=0,ut=0;function ht(Rt,Ct){var Wt={propContainer:qe,propName:B._propPrefix+"title",traceIndex:B._traceIndex,_meta:B._meta,placeholder:ie._dfltTitle.colorbar,containerGroup:z.select("."+P.cbtitle)},_t=Rt.charAt(0)==="h"?Rt.substr(1):"h"+Rt;z.selectAll("."+_t+",."+_t+"-math-group").remove(),w.draw(N,Rt,b(Wt,Ct||{}))}return m.syncOrAsync([c.previousPromises,function(){var Rt,Ct;(R&&Xe||!R&&!Xe)&&(Pe==="top"&&(Rt=Z+se.l+Te*X,Ct=G+se.t+Ae*(1-Be-ye)+3+.75*it),Pe==="bottom"&&(Rt=Z+se.l+Te*X,Ct=G+se.t+Ae*(1-Be)-3-.25*it),Pe==="right"&&(Ct=G+se.t+Ae*Q+3+.75*it,Rt=Z+se.l+Te*Be),ht(qe._id+"title",{attributes:{x:Rt,y:Ct,"text-anchor":R?"start":"middle"}}))},function(){if(!R&&!Xe||R&&Xe){var Rt,Ct=z.select("."+P.cbtitle),Wt=Ct.select("text"),_t=[-U/2,U/2],be=Ct.select(".h"+qe._id+"title-math-group").node(),Ce=15.6;if(Wt.node()&&(Ce=parseInt(Wt.node().style.fontSize,10)*M),be?(Rt=h.bBox(be),ut=Rt.width,(Ze=Rt.height)>Ce&&(_t[1]-=(Ze-Ce)/2)):Wt.node()&&!Wt.classed(P.jsPlaceholder)&&(Rt=h.bBox(Wt.node()),ut=Rt.width,Ze=Rt.height),R){if(Ze){if(Ze+=5,Pe==="top")qe.domain[1]-=Ze/se.h,_t[1]*=-1;else{qe.domain[0]+=Ze/se.h;var Ge=_.lineCount(Wt);_t[1]+=(1-Ge)*Ce}Ct.attr("transform",g(_t[0],_t[1])),qe.setScale()}}else ut&&(Pe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Ct.attr("transform",g(_t[0],_t[1])),qe.setScale())}z.selectAll("."+P.cbfills+",."+P.cblines).attr("transform",R?g(0,Math.round(se.h*(1-qe.domain[1]))):g(Math.round(se.w*qe.domain[0]),0)),St.attr("transform",R?g(0,Math.round(-se.t)):g(Math.round(-se.l),0));var He=z.select("."+P.cbfills).selectAll("rect."+P.cbfill).attr("style","").data(de);He.enter().append("rect").classed(P.cbfill,!0).attr("style",""),He.exit().remove();var et=Me.map(qe.c2p).map(Math.round).sort(function(yt,rt){return yt-rt});He.each(function(yt,rt){var Ft=[rt===0?Me[0]:(de[rt]+de[rt-1])/2,rt===de.length-1?Me[1]:(de[rt]+de[rt+1])/2].map(qe.c2p).map(Math.round);R&&(Ft[1]=m.constrain(Ft[1]+(Ft[1]>Ft[0])?1:-1,et[0],et[1]));var Yt=s.select(this).attr(R?"x":"y",Re).attr(R?"y":"x",s.min(Ft)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(s.max(Ft)-s.min(Ft),2));if(B._fillgradient)h.gradient(Yt,N,B._id,R?"vertical":"horizontalreversed",B._fillgradient,"fill");else{var Mt=we(yt).replace("e-","");Yt.attr("fill",u(Mt).toHexString())}});var Ke=z.select("."+P.cblines).selectAll("path."+P.cbline).data(Se.color&&Se.width?_e:[]);Ke.enter().append("path").classed(P.cbline,!0),Ke.exit().remove(),Ke.each(function(yt){var rt=Re,Ft=Math.round(qe.c2p(yt))+Se.width/2%1;s.select(this).attr("d","M"+(R?rt+","+Ft:Ft+","+rt)+(R?"h":"v")+ue).call(h.lineGroupStyle,Se.width,ce(yt),Se.dash)}),St.selectAll("g."+qe._id+"tick,path").remove();var Ye=Re+ue+(U||0)/2-(B.ticks==="outside"?1:0),nt=f.calcTicks(qe),ct=f.getTickSigns(qe)[2];return f.drawTicks(N,qe,{vals:qe.ticks==="inside"?f.clipEnds(qe,nt):nt,layer:St,path:f.makeTickPath(qe,Ye,ct),transFn:f.makeTransTickFn(qe)}),f.drawLabels(N,qe,{vals:nt,layer:St,transFn:f.makeTransTickLabelFn(qe),labelFns:f.makeLabelFns(qe,Ye)})},function(){if(R&&!Xe||!R&&Xe){var Rt,Ct,Wt=qe.position||0,_t=qe._offset+qe._length/2;if(Pe==="right")Ct=_t,Rt=se.l+Te*Wt+10+it*(qe.showticklabels?1:.5);else if(Rt=_t,Pe==="bottom"&&(Ct=se.t+Ae*Wt+10+(tt.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&B.ticklen||0)),Pe==="top"){var be=Oe.text.split("
").length;Ct=se.t+Ae*Wt+10-ue-M*it*be}ht((R?"h":"v")+qe._id+"title",{avoid:{selection:s.select(N).selectAll("g."+qe._id+"tick"),side:Pe,offsetTop:R?0:se.t,offsetLeft:R?se.l:0,maxShift:R?ie.width:ie.height},attributes:{x:Rt,y:Ct,"text-anchor":"middle"},transform:{rotate:R?-90:0,offset:0}})}},c.previousPromises,function(){var Rt,Ct=ue+U/2;tt.indexOf("inside")===-1&&(Rt=h.bBox(St.node()),Ct+=R?Rt.width:Rt.height),We=ze.select("text");var Wt=0,_t=R&&Pe==="top",be=!R&&Pe==="right",Ce=0;if(We.node()&&!We.classed(P.jsPlaceholder)){var Ge,He=ze.select(".h"+qe._id+"title-math-group").node();He&&(R&&Xe||!R&&!Xe)?(Wt=(Rt=h.bBox(He)).width,Ge=Rt.height):(Wt=(Rt=h.bBox(ze.node())).right-se.l-(R?Re:Ue),Ge=Rt.bottom-se.t-(R?Ue:Re),R||Pe!=="top"||(Ct+=Rt.height,Ce=Rt.height)),be&&(We.attr("transform",g(Wt/2+it/2,0)),Wt*=2),Ct=Math.max(Ct,R?Wt:Ge)}var et=2*(R?Z:G)+Ct+V+U/2,Ke=0;!R&&Oe.text&&H==="bottom"&&Q<=0&&(et+=Ke=et/2,Ce+=Ke),ie._hColorbarMoveTitle=Ke,ie._hColorbarMoveCBTitle=Ce;var Ye=V+U,nt=(R?Re:Ue)-Ye/2-(R?Z:0),ct=(R?Ue:Re)-(R?xe:G+Ce-Ke);z.select("."+P.cbbg).attr("x",nt).attr("y",ct).attr(R?"width":"height",Math.max(et-Ke,2)).attr(R?"height":"width",Math.max(xe+Ye,2)).call(y.fill,te).call(y.stroke,B.bordercolor).style("stroke-width",V);var yt=be?Math.max(Wt-10,0):0;z.selectAll("."+P.cboutline).attr("x",(R?Re:Ue+Z)+yt).attr("y",(R?Ue+G-xe:Re)+(_t?Ze:0)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(xe-(R?2*G+Ze:2*Z+yt),2)).call(y.stroke,B.outlinecolor).style({fill:"none","stroke-width":U});var rt=R?Le*et:0,Ft=R?0:(1-$e)*et-Ce;if(rt=ae?se.l-rt:-rt,Ft=re?se.t-Ft:-Ft,z.attr("transform",g(rt,Ft)),!R&&(V||u(te).getAlpha()&&!u.equals(ie.paper_bgcolor,te))){var Yt=St.selectAll("text"),Mt=Yt[0].length,jt=z.select("."+P.cbbg).node(),Lt=h.bBox(jt),gt=h.getTranslate(z);Yt.each(function($t,Bt){var Xt=Mt-1;if(Bt===0||Bt===Xt){var Zt,qt=h.bBox(this),Ht=h.getTranslate(this);if(Bt===Xt){var sn=qt.right+Ht.x;(Zt=Lt.right+gt.x+Ue-V-2+X-sn)>0&&(Zt=0)}else if(Bt===0){var xn=qt.left+Ht.x;(Zt=Lt.left+gt.x+Ue+V+2-xn)<0&&(Zt=0)}Zt&&(Mt<3?this.setAttribute("transform","translate("+Zt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var mt={},xt=O[ee],Ut=D[ee],It=O[H],zt=D[H],kt=et-ue;R?(Y==="pixels"?(mt.y=Q,mt.t=xe*It,mt.b=xe*zt):(mt.t=mt.b=0,mt.yt=Q+q*It,mt.yb=Q-q*zt),W==="pixels"?(mt.x=X,mt.l=et*xt,mt.r=et*Ut):(mt.l=kt*xt,mt.r=kt*Ut,mt.xl=X-L*xt,mt.xr=X+L*Ut)):(Y==="pixels"?(mt.x=X,mt.l=xe*xt,mt.r=xe*Ut):(mt.l=mt.r=0,mt.xl=X+q*xt,mt.xr=X-q*Ut),W==="pixels"?(mt.y=1-Q,mt.t=et*It,mt.b=et*zt):(mt.t=kt*It,mt.b=kt*zt,mt.yt=Q-L*It,mt.yb=Q+L*zt));var Ot=B.y<.5?"b":"t",At=B.x<.5?"l":"r";N._fullLayout._reservedMargin[B._id]={};var Nt={r:ie.width-nt-rt,l:nt+mt.r,b:ie.height-ct-Ft,t:ct+mt.b};ae&&re?c.autoMargin(N,B._id,mt):ae?N._fullLayout._reservedMargin[B._id][Ot]=Nt[Ot]:re||R?N._fullLayout._reservedMargin[B._id][At]=Nt[At]:N._fullLayout._reservedMargin[B._id][Ot]=Nt[Ot]}],N)}(F,A,E);j&&j.then&&(E._promises||[]).push(j),E._context.edits.colorbarPosition&&function(z,B,N){var R,q,Y,L=B.orientation==="v",W=N._fullLayout._size;p.init({element:z.node(),gd:N,prepFn:function(){R=z.attr("transform"),v(z)},moveFn:function(U,V){z.attr("transform",R+g(U,V)),q=p.align((L?B._uFrac:B._vFrac)+U/W.w,L?B._thickFrac:B._lenFrac,0,1,B.xanchor),Y=p.align((L?B._vFrac:1-B._uFrac)-V/W.h,L?B._lenFrac:B._thickFrac,0,1,B.yanchor);var te=p.getCursor(q,Y,B.xanchor,B.yanchor);v(z,te)},doneFn:function(){if(v(z),q!==void 0&&Y!==void 0){var U={};U[B._propPrefix+"x"]=q,U[B._propPrefix+"y"]=Y,B._traceIndex!==void 0?d.call("_guiRestyle",N,U,B._traceIndex):d.call("_guiRelayout",N,U)}}})}(F,A,E)}),I.exit().each(function(A){c.autoMargin(E,A._id)}).remove(),I.order()}}},76228:function(i,o,a){var s=a(71828);i.exports=function(u){return s.isPlainObject(u.colorbar)}},12311:function(i,o,a){i.exports={moduleType:"component",name:"colorbar",attributes:a(63583),supplyDefaults:a(62499),draw:a(98981).draw,hasColorbar:a(76228)}},50693:function(i,o,a){var s=a(63583),u=a(30587).counter,c=a(78607),d=a(63282).scales;function f(p){return"`"+p+"`"}c(d),i.exports=function(p,m){p=p||"";var g,b=(m=m||{}).cLetter||"c",v=("onlyIfNumerical"in m&&m.onlyIfNumerical,"noScale"in m?m.noScale:p==="marker.line"),h="showScaleDflt"in m?m.showScaleDflt:b==="z",y=typeof m.colorscaleDflt=="string"?d[m.colorscaleDflt]:null,w=m.editTypeOverride||"",_=p?p+".":"";"colorAttr"in m?(g=m.colorAttr,m.colorAttr):f(_+(g={z:"z",c:"color"}[b]));var x=b+"auto",T=b+"min",k=b+"max",S=b+"mid",C={};C[T]=C[k]=void 0;var M={};M[x]=!1;var O={};return g==="color"&&(O.color={valType:"color",arrayOk:!0,editType:w||"style"},m.anim&&(O.color.anim=!0)),O[x]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:C},O[T]={valType:"number",dflt:null,editType:w||"plot",impliedEdits:M},O[k]={valType:"number",dflt:null,editType:w||"plot",impliedEdits:M},O[S]={valType:"number",dflt:null,editType:"calc",impliedEdits:C},O.colorscale={valType:"colorscale",editType:"calc",dflt:y,impliedEdits:{autocolorscale:!1}},O.autocolorscale={valType:"boolean",dflt:m.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},O.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(O.showscale={valType:"boolean",dflt:h,editType:"calc"},O.colorbar=s),m.noColorAxis||(O.coloraxis={valType:"subplotid",regex:u("coloraxis"),dflt:null,editType:"calc"}),O}},78803:function(i,o,a){var s=a(92770),u=a(71828),c=a(52075).extractOpts;i.exports=function(d,f,p){var m,g=d._fullLayout,b=p.vals,v=p.containerStr,h=v?u.nestedProperty(f,v).get():f,y=c(h),w=y.auto!==!1,_=y.min,x=y.max,T=y.mid,k=function(){return u.aggNums(Math.min,null,b)},S=function(){return u.aggNums(Math.max,null,b)};_===void 0?_=k():w&&(_=h._colorAx&&s(_)?Math.min(_,k()):k()),x===void 0?x=S():w&&(x=h._colorAx&&s(x)?Math.max(x,S()):S()),w&&T!==void 0&&(x-T>T-_?_=T-(x-T):x-T=0?g.colorscale.sequential:g.colorscale.sequentialminus,y._sync("colorscale",m))}},33046:function(i,o,a){var s=a(71828),u=a(52075).hasColorscale,c=a(52075).extractOpts;i.exports=function(d,f){function p(w,_){var x=w["_"+_];x!==void 0&&(w[_]=x)}function m(w,_){var x=_.container?s.nestedProperty(w,_.container).get():w;if(x)if(x.coloraxis)x._colorAx=f[x.coloraxis];else{var T=c(x),k=T.auto;(k||T.min===void 0)&&p(x,_.min),(k||T.max===void 0)&&p(x,_.max),T.autocolorscale&&p(x,"colorscale")}}for(var g=0;g=0;k--,S++){var C=_[k];T[S]=[1-C[0],C[1]]}return T}function y(_,x){x=x||{};for(var T=_.domain,k=_.range,S=k.length,C=new Array(S),M=0;M1.3333333333333333-p?f:p}},70461:function(i,o,a){var s=a(71828),u=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];i.exports=function(c,d,f,p){return c=f==="left"?0:f==="center"?1:f==="right"?2:s.constrain(Math.floor(3*c),0,2),d=p==="bottom"?0:p==="middle"?1:p==="top"?2:s.constrain(Math.floor(3*d),0,2),u[d][c]}},64505:function(i,o){o.selectMode=function(a){return a==="lasso"||a==="select"},o.drawMode=function(a){return a==="drawclosedpath"||a==="drawopenpath"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.openMode=function(a){return a==="drawline"||a==="drawopenpath"},o.rectMode=function(a){return a==="select"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.freeMode=function(a){return a==="lasso"||a==="drawclosedpath"||a==="drawopenpath"},o.selectingOrDrawing=function(a){return o.freeMode(a)||o.rectMode(a)}},28569:function(i,o,a){var s=a(48956),u=a(57035),c=a(38520),d=a(71828).removeElement,f=a(85555),p=i.exports={};p.align=a(92807),p.getCursor=a(70461);var m=a(26041);function g(){var v=document.createElement("div");v.className="dragcover";var h=v.style;return h.position="fixed",h.left=0,h.right=0,h.top=0,h.bottom=0,h.zIndex=999999999,h.background="none",document.body.appendChild(v),v}function b(v){return s(v.changedTouches?v.changedTouches[0]:v,document.body)}p.unhover=m.wrapped,p.unhoverRaw=m.raw,p.init=function(v){var h,y,w,_,x,T,k,S,C=v.gd,M=1,O=C._context.doubleClickDelay,D=v.element;C._mouseDownTime||(C._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=E,c?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=E,D.addEventListener("touchstart",E,{passive:!1})):D.ontouchstart=E;var P=v.clampFn||function(F,j,z){return Math.abs(F)O&&(M=Math.max(M-1,1)),C._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(M,T),!S){var j;try{j=new MouseEvent("click",F)}catch{var z=b(F);(j=document.createEvent("MouseEvents")).initMouseEvent("click",F.bubbles,F.cancelable,F.view,F.detail,F.screenX,F.screenY,z[0],z[1],F.ctrlKey,F.altKey,F.shiftKey,F.metaKey,F.button,F.relatedTarget)}k.dispatchEvent(j)}C._dragging=!1,C._dragged=!1}else C._dragged=!1}},p.coverSlip=g},26041:function(i,o,a){var s=a(11086),u=a(79990),c=a(24401).getGraphDiv,d=a(26675),f=i.exports={};f.wrapped=function(p,m,g){(p=c(p))._fullLayout&&u.clear(p._fullLayout._uid+d.HOVERID),f.raw(p,m,g)},f.raw=function(p,m){var g=p._fullLayout,b=p._hoverdata;m||(m={}),m.target&&!p._dragged&&s.triggerHandler(p,"plotly_beforehover",m)===!1||(g._hoverlayer.selectAll("g").remove(),g._hoverlayer.selectAll("line").remove(),g._hoverlayer.selectAll("circle").remove(),p._hoverdata=void 0,m.target&&b&&p.emit("plotly_unhover",{event:m,points:b}))}},79952:function(i,o){o.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},o.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(i,o,a){var s=a(39898),u=a(71828),c=u.numberFormat,d=a(92770),f=a(84267),p=a(73972),m=a(7901),g=a(21081),b=u.strTranslate,v=a(63893),h=a(77922),y=a(18783).LINE_SPACING,w=a(37822).DESELECTDIM,_=a(34098),x=a(39984),T=a(23469).appendArrayPointValue,k=i.exports={};function S(ce,we,K){var ne=we.fillpattern,de=ne&&k.getPatternAttr(ne.shape,0,"");if(de){var _e=k.getPatternAttr(ne.bgcolor,0,null),ue=k.getPatternAttr(ne.fgcolor,0,null),pe=ne.fgopacity,xe=k.getPatternAttr(ne.size,0,8),ye=k.getPatternAttr(ne.solidity,0,.3),Te=we.uid;k.pattern(ce,"point",K,Te,de,xe,ye,void 0,ne.fillmode,_e,ue,pe)}else we.fillcolor&&ce.call(m.fill,we.fillcolor)}k.font=function(ce,we,K,ne){u.isPlainObject(we)&&(ne=we.color,K=we.size,we=we.family),we&&ce.style("font-family",we),K+1&&ce.style("font-size",K+"px"),ne&&ce.call(m.fill,ne)},k.setPosition=function(ce,we,K){ce.attr("x",we).attr("y",K)},k.setSize=function(ce,we,K){ce.attr("width",we).attr("height",K)},k.setRect=function(ce,we,K,ne,de){ce.call(k.setPosition,we,K).call(k.setSize,ne,de)},k.translatePoint=function(ce,we,K,ne){var de=K.c2p(ce.x),_e=ne.c2p(ce.y);return!!(d(de)&&d(_e)&&we.node())&&(we.node().nodeName==="text"?we.attr("x",de).attr("y",_e):we.attr("transform",b(de,_e)),!0)},k.translatePoints=function(ce,we,K){ce.each(function(ne){var de=s.select(this);k.translatePoint(ne,de,we,K)})},k.hideOutsideRangePoint=function(ce,we,K,ne,de,_e){we.attr("display",K.isPtWithinRange(ce,de)&&ne.isPtWithinRange(ce,_e)?null:"none")},k.hideOutsideRangePoints=function(ce,we){if(we._hasClipOnAxisFalse){var K=we.xaxis,ne=we.yaxis;ce.each(function(de){var _e=de[0].trace,ue=_e.xcalendar,pe=_e.ycalendar,xe=p.traceIs(_e,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(xe).each(function(ye){k.hideOutsideRangePoint(ye,s.select(this),K,ne,ue,pe)})})}},k.crispRound=function(ce,we,K){return we&&d(we)?ce._context.staticPlot?we:we<1?1:Math.round(we):K||0},k.singleLineStyle=function(ce,we,K,ne,de){we.style("fill","none");var _e=(((ce||[])[0]||{}).trace||{}).line||{},ue=K||_e.width||0,pe=de||_e.dash||"";m.stroke(we,ne||_e.color),k.dashLine(we,pe,ue)},k.lineGroupStyle=function(ce,we,K,ne){ce.style("fill","none").each(function(de){var _e=(((de||[])[0]||{}).trace||{}).line||{},ue=we||_e.width||0,pe=ne||_e.dash||"";s.select(this).call(m.stroke,K||_e.color).call(k.dashLine,pe,ue)})},k.dashLine=function(ce,we,K){K=+K||0,we=k.dashStyle(we,K),ce.style({"stroke-dasharray":we,"stroke-width":K+"px"})},k.dashStyle=function(ce,we){we=+we||1;var K=Math.max(we,3);return ce==="solid"?ce="":ce==="dot"?ce=K+"px,"+K+"px":ce==="dash"?ce=3*K+"px,"+3*K+"px":ce==="longdash"?ce=5*K+"px,"+5*K+"px":ce==="dashdot"?ce=3*K+"px,"+K+"px,"+K+"px,"+K+"px":ce==="longdashdot"&&(ce=5*K+"px,"+2*K+"px,"+K+"px,"+2*K+"px"),ce},k.singleFillStyle=function(ce,we){var K=s.select(ce.node());S(ce,((K.data()[0]||[])[0]||{}).trace||{},we)},k.fillGroupStyle=function(ce,we){ce.style("stroke-width",0).each(function(K){var ne=s.select(this);K[0].trace&&S(ne,K[0].trace,we)})};var C=a(90998);k.symbolNames=[],k.symbolFuncs=[],k.symbolBackOffs=[],k.symbolNeedLines={},k.symbolNoDot={},k.symbolNoFill={},k.symbolList=[],Object.keys(C).forEach(function(ce){var we=C[ce],K=we.n;k.symbolList.push(K,String(K),ce,K+100,String(K+100),ce+"-open"),k.symbolNames[K]=ce,k.symbolFuncs[K]=we.f,k.symbolBackOffs[K]=we.backoff||0,we.needLine&&(k.symbolNeedLines[K]=!0),we.noDot?k.symbolNoDot[K]=!0:k.symbolList.push(K+200,String(K+200),ce+"-dot",K+300,String(K+300),ce+"-open-dot"),we.noFill&&(k.symbolNoFill[K]=!0)});var M=k.symbolNames.length;function O(ce,we,K,ne){var de=ce%100;return k.symbolFuncs[de](we,K,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}k.symbolNumber=function(ce){if(d(ce))ce=+ce;else if(typeof ce=="string"){var we=0;ce.indexOf("-open")>0&&(we=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(we+=200,ce=ce.replace("-dot","")),(ce=k.symbolNames.indexOf(ce))>=0&&(ce+=we)}return ce%100>=M||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},P={x1:0,x2:0,y1:1,y2:0},E=c("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:P},verticalreversed:{node:"linearGradient",attrs:P,reversed:!0}};k.gradient=function(ce,we,K,ne,de,_e){for(var ue=de.length,pe=I[ne],xe=new Array(ue),ye=0;ye=0&&ce.i===void 0&&(ce.i=_e.i),we.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var xe;xe=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=xe,ne.selectedSizeFn&&(xe=ce.mrc=ne.selectedSizeFn(ce));var ye=k.symbolNumber(ce.mx||ue.symbol)||0;ce.om=ye%200>=100;var Te=Me(ce,K),Ae=G(ce,K);we.attr("d",O(ye,xe,Te,Ae))}var Re,Le,$e,Fe=!1;if(ce.so)$e=pe.outlierwidth,Le=pe.outliercolor,Re=ue.outliercolor;else{var Be=(pe||{}).width;$e=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,Le="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):u.isArrayOrTypedArray(pe.color)?m.defaultLine:pe.color,u.isArrayOrTypedArray(ue.color)&&(Re=m.defaultLine,Fe=!0),Re="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Re=ne.selectedColorFn(ce))}if(ce.om)we.call(m.stroke,Re).style({"stroke-width":($e||1)+"px",fill:"none"});else{we.style("stroke-width",(ce.isBlank?0:$e)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Fe=!0:qe=Ue&&Ue.type,u.isArrayOrTypedArray(qe)&&(qe=qe[0],I[qe]||(qe=0));var Xe=ue.pattern,ot=Xe&&k.getPatternAttr(Xe.shape,ce.i,"");if(qe&&qe!=="none"){var st=ce.mgc;st?Fe=!0:st=Ue.color;var dt=K.uid;Fe&&(dt+="-"+ce.i),k.gradient(we,de,dt,qe,[[0,st],[1,Re]],"fill")}else if(ot){var vt=!1,We=Xe.fgcolor;!We&&_e&&_e.color&&(We=_e.color,vt=!0);var ze=k.getPatternAttr(We,ce.i,_e&&_e.color||null),tt=k.getPatternAttr(Xe.bgcolor,ce.i,null),it=Xe.fgopacity,St=k.getPatternAttr(Xe.size,ce.i,8),Ze=k.getPatternAttr(Xe.solidity,ce.i,.3);vt=vt||ce.mcc||u.isArrayOrTypedArray(Xe.shape)||u.isArrayOrTypedArray(Xe.bgcolor)||u.isArrayOrTypedArray(Xe.fgcolor)||u.isArrayOrTypedArray(Xe.size)||u.isArrayOrTypedArray(Xe.solidity);var ut=K.uid;vt&&(ut+="-"+ce.i),k.pattern(we,"point",de,ut,ot,St,Ze,ce.mcc,Xe.fillmode,tt,ze,it)}else u.isArrayOrTypedArray(Re)?m.fill(we,Re[ce.i]):m.fill(we,Re);$e&&m.stroke(we,Le)}},k.makePointStyleFns=function(ce){var we={},K=ce.marker;return we.markerScale=k.tryColorscale(K,""),we.lineScale=k.tryColorscale(K,"line"),p.traceIs(ce,"symbols")&&(we.ms2mrc=_.isBubble(ce)?x(ce):function(){return(K.size||6)/2}),ce.selectedpoints&&u.extendFlat(we,k.makeSelectedPointStyleFns(ce)),we},k.makeSelectedPointStyleFns=function(ce){var we={},K=ce.selected||{},ne=ce.unselected||{},de=ce.marker||{},_e=K.marker||{},ue=ne.marker||{},pe=de.opacity,xe=_e.opacity,ye=ue.opacity,Te=xe!==void 0,Ae=ye!==void 0;(u.isArrayOrTypedArray(pe)||Te||Ae)&&(we.selectedOpacityFn=function(ot){var st=ot.mo===void 0?de.opacity:ot.mo;return ot.selected?Te?xe:st:Ae?ye:w*st});var Re=de.color,Le=_e.color,$e=ue.color;(Le||$e)&&(we.selectedColorFn=function(ot){var st=ot.mcc||Re;return ot.selected?Le||st:$e||st});var Fe=de.size,Be=_e.size,Ue=ue.size,qe=Be!==void 0,Xe=Ue!==void 0;return p.traceIs(ce,"symbols")&&(qe||Xe)&&(we.selectedSizeFn=function(ot){var st=ot.mrc||Fe/2;return ot.selected?qe?Be/2:st:Xe?Ue/2:st}),we},k.makeSelectedTextStyleFns=function(ce){var we={},K=ce.selected||{},ne=ce.unselected||{},de=ce.textfont||{},_e=K.textfont||{},ue=ne.textfont||{},pe=de.color,xe=_e.color,ye=ue.color;return we.selectedTextColorFn=function(Te){var Ae=Te.tc||pe;return Te.selected?xe||Ae:ye||(xe?Ae:m.addOpacity(Ae,w))},we},k.selectedPointStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var K=k.makeSelectedPointStyleFns(we),ne=we.marker||{},de=[];K.selectedOpacityFn&&de.push(function(_e,ue){_e.style("opacity",K.selectedOpacityFn(ue))}),K.selectedColorFn&&de.push(function(_e,ue){m.fill(_e,K.selectedColorFn(ue))}),K.selectedSizeFn&&de.push(function(_e,ue){var pe=ue.mx||ne.symbol||0,xe=K.selectedSizeFn(ue);_e.attr("d",O(k.symbolNumber(pe),xe,Me(ue,we),G(ue,we))),ue.mrc2=xe}),de.length&&ce.each(function(_e){for(var ue=s.select(this),pe=0;pe0?K:0}function N(ce,we,K){return K&&(ce=U(ce)),we?q(ce[1]):R(ce[0])}function R(ce){var we=s.round(ce,2);return A=we,we}function q(ce){var we=s.round(ce,2);return F=we,we}function Y(ce,we,K,ne){var de=ce[0]-we[0],_e=ce[1]-we[1],ue=K[0]-we[0],pe=K[1]-we[1],xe=Math.pow(de*de+_e*_e,.25),ye=Math.pow(ue*ue+pe*pe,.25),Te=(ye*ye*de-xe*xe*ue)*ne,Ae=(ye*ye*_e-xe*xe*pe)*ne,Re=3*ye*(xe+ye),Le=3*xe*(xe+ye);return[[R(we[0]+(Re&&Te/Re)),q(we[1]+(Re&&Ae/Re))],[R(we[0]-(Le&&Te/Le)),q(we[1]-(Le&&Ae/Le))]]}k.textPointStyle=function(ce,we,K){if(ce.size()){var ne;if(we.selectedpoints){var de=k.makeSelectedTextStyleFns(we);ne=de.selectedTextColorFn}var _e=we.texttemplate,ue=K._fullLayout;ce.each(function(pe){var xe=s.select(this),ye=_e?u.extractOption(pe,we,"txt","texttemplate"):u.extractOption(pe,we,"tx","text");if(ye||ye===0){if(_e){var Te=we._module.formatLabels,Ae=Te?Te(pe,we,ue):{},Re={};T(Re,we,pe.i);var Le=we._meta||{};ye=u.texttemplateString(ye,Ae,ue._d3locale,Re,pe,Le)}var $e=pe.tp||we.textposition,Fe=B(pe,we),Be=ne?ne(pe):pe.tc||we.textfont.color;xe.call(k.font,pe.tf||we.textfont.family,Fe,Be).text(ye).call(v.convertToTspans,K).call(z,$e,Fe,pe.mrc)}else xe.remove()})}},k.selectedTextStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var K=k.makeSelectedTextStyleFns(we);ce.each(function(ne){var de=s.select(this),_e=K.selectedTextColorFn(ne),ue=ne.tp||we.textposition,pe=B(ne,we);m.fill(de,_e);var xe=p.traceIs(we,"bar-like");z(de,ue,pe,ne.mrc2||ne.mrc,xe)})}},k.smoothopen=function(ce,we){if(ce.length<3)return"M"+ce.join("L");var K,ne="M"+ce[0],de=[];for(K=1;K=xe||ot>=Te&&ot<=xe)&&(st<=Ae&&st>=ye||st>=Ae&&st<=ye)&&(ce=[ot,st])}return ce}k.steps=function(ce){var we=L[ce]||W;return function(K){for(var ne="M"+R(K[0][0])+","+q(K[0][1]),de=K.length,_e=1;_e=1e4&&(k.savedBBoxes={},V=0),K&&(k.savedBBoxes[K]=Le),V++,u.extendFlat({},Le)},k.setClipUrl=function(ce,we,K){ce.attr("clip-path",ee(we,K))},k.getTranslate=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(K,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+we[0]||0,y:+we[1]||0}},k.setTranslate=function(ce,we,K){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[ne]("transform")||"";return we=we||0,K=K||0,_e=_e.replace(/(\btranslate\(.*?\);?)/,"").trim(),_e=(_e+=b(we,K)).trim(),ce[de]("transform",_e),_e},k.getScale=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(K,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+we[0]||1,y:+we[1]||1}},k.setScale=function(ce,we,K){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[ne]("transform")||"";return we=we||1,K=K||1,_e=_e.replace(/(\bscale\(.*?\);?)/,"").trim(),_e=(_e+="scale("+we+","+K+")").trim(),ce[de]("transform",_e),_e};var H=/\s*sc.*/;k.setPointGroupScale=function(ce,we,K){if(we=we||1,K=K||1,ce){var ne=we===1&&K===1?"":"scale("+we+","+K+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(H,"");de=(de+=ne).trim(),this.setAttribute("transform",de)})}};var Z=/translate\([^)]*\)\s*$/;function G(ce,we){var K;return ce&&(K=ce.mf),K===void 0&&(K=we.marker&&we.marker.standoff||0),we._geo||we._xA?K:-K}k.setTextPointsScale=function(ce,we,K){ce&&ce.each(function(){var ne,de=s.select(this),_e=de.select("text");if(_e.node()){var ue=parseFloat(_e.attr("x")||0),pe=parseFloat(_e.attr("y")||0),xe=(de.attr("transform")||"").match(Z);ne=we===1&&K===1?[]:[b(ue,pe),"scale("+we+","+K+")",b(-ue,-pe)],xe&&ne.push(xe),de.attr("transform",ne.join(""))}})},k.getMarkerStandoff=G;var X,Q,re,ae,ie,se,he=Math.atan2,Se=Math.cos,Oe=Math.sin;function Pe(ce,we){var K=we[0],ne=we[1];return[K*Se(ce)-ne*Oe(ce),K*Oe(ce)+ne*Se(ce)]}function Me(ce,we){var K,ne,de=ce.ma;de===void 0&&(de=we.marker.angle||0);var _e=we.marker.angleref;if(_e==="previous"||_e==="north"){if(we._geo){var ue=we._geo.project(ce.lonlat);K=ue[0],ne=ue[1]}else{var pe=we._xA,xe=we._yA;if(!pe||!xe)return 90;K=pe.c2p(ce.x),ne=xe.c2p(ce.y)}if(we._geo){var ye,Te=ce.lonlat[0],Ae=ce.lonlat[1],Re=we._geo.project([Te,Ae+1e-5]),Le=we._geo.project([Te+1e-5,Ae]),$e=he(Le[1]-ne,Le[0]-K),Fe=he(Re[1]-ne,Re[0]-K);if(_e==="north")ye=de/180*Math.PI;else if(_e==="previous"){var Be=Te/180*Math.PI,Ue=Ae/180*Math.PI,qe=X/180*Math.PI,Xe=Q/180*Math.PI,ot=qe-Be,st=Se(Xe)*Oe(ot),dt=Oe(Xe)*Se(Ue)-Se(Xe)*Oe(Ue)*Se(ot);ye=-he(st,dt)-Math.PI,X=Te,Q=Ae}var vt=Pe($e,[Se(ye),0]),We=Pe(Fe,[Oe(ye),0]);de=he(vt[1]+We[1],vt[0]+We[0])/Math.PI*180,_e!=="previous"||se===we.uid&&ce.i===ie+1||(de=null)}if(_e==="previous"&&!we._geo)if(se===we.uid&&ce.i===ie+1&&d(K)&&d(ne)){var ze=K-re,tt=ne-ae,it=we.line&&we.line.shape||"",St=it.slice(it.length-1);St==="h"&&(tt=0),St==="v"&&(ze=0),de+=he(tt,ze)/Math.PI*180+90}else de=null}return re=K,ae=ne,ie=ce.i,se=we.uid,de}k.getMarkerAngle=Me},90998:function(i,o,a){var s,u,c,d,f=a(95616),p=a(39898).round,m="M0,0Z",g=Math.sqrt(2),b=Math.sqrt(3),v=Math.PI,h=Math.cos,y=Math.sin;function w(x){return x===null}function _(x,T,k){if(!(x&&x%360!=0||T))return k;if(c===x&&d===T&&s===k)return u;function S(N,R){var q=h(N),Y=y(N),L=R[0],W=R[1]+(T||0);return[L*q-W*Y,L*Y+W*q]}c=x,d=T,s=k;for(var C=x/180*v,M=0,O=0,D=f(k),P="",E=0;E0,y=f._context.staticPlot;p.each(function(w){var _,x=w[0].trace,T=x.error_x||{},k=x.error_y||{};x.ids&&(_=function(O){return O.id});var S=d.hasMarkers(x)&&x.marker.maxdisplayed>0;k.visible||T.visible||(w=[]);var C=s.select(this).selectAll("g.errorbar").data(w,_);if(C.exit().remove(),w.length){T.visible||C.selectAll("path.xerror").remove(),k.visible||C.selectAll("path.yerror").remove(),C.style("opacity",1);var M=C.enter().append("g").classed("errorbar",!0);h&&M.style("opacity",0).transition().duration(g.duration).style("opacity",1),c.setClipUrl(C,m.layerClipId,f),C.each(function(O){var D=s.select(this),P=function(z,B,N){var R={x:B.c2p(z.x),y:N.c2p(z.y)};return z.yh!==void 0&&(R.yh=N.c2p(z.yh),R.ys=N.c2p(z.ys),u(R.ys)||(R.noYS=!0,R.ys=N.c2p(z.ys,!0))),z.xh!==void 0&&(R.xh=B.c2p(z.xh),R.xs=B.c2p(z.xs),u(R.xs)||(R.noXS=!0,R.xs=B.c2p(z.xs,!0))),R}(O,b,v);if(!S||O.vis){var E,I=D.select("path.yerror");if(k.visible&&u(P.x)&&u(P.yh)&&u(P.ys)){var A=k.width;E="M"+(P.x-A)+","+P.yh+"h"+2*A+"m-"+A+",0V"+P.ys,P.noYS||(E+="m-"+A+",0h"+2*A),I.size()?h&&(I=I.transition().duration(g.duration).ease(g.easing)):I=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",E)}else I.remove();var F=D.select("path.xerror");if(T.visible&&u(P.y)&&u(P.xh)&&u(P.xs)){var j=(T.copy_ystyle?k:T).width;E="M"+P.xh+","+(P.y-j)+"v"+2*j+"m0,-"+j+"H"+P.xs,P.noXS||(E+="m0,-"+j+"v"+2*j),F.size()?h&&(F=F.transition().duration(g.duration).ease(g.easing)):F=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("xerror",!0),F.attr("d",E)}else F.remove()}})}})}},62662:function(i,o,a){var s=a(39898),u=a(7901);i.exports=function(c){c.each(function(d){var f=d[0].trace,p=f.error_y||{},m=f.error_x||{},g=s.select(this);g.selectAll("path.yerror").style("stroke-width",p.thickness+"px").call(u.stroke,p.color),m.copy_ystyle&&(m=p),g.selectAll("path.xerror").style("stroke-width",m.thickness+"px").call(u.stroke,m.color)})}},77914:function(i,o,a){var s=a(41940),u=a(528).hoverlabel,c=a(1426).extendFlat;i.exports={hoverlabel:{bgcolor:c({},u.bgcolor,{arrayOk:!0}),bordercolor:c({},u.bordercolor,{arrayOk:!0}),font:s({arrayOk:!0,editType:"none"}),align:c({},u.align,{arrayOk:!0}),namelength:c({},u.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(i,o,a){var s=a(71828),u=a(73972);function c(d,f,p,m){m=m||s.identity,Array.isArray(d)&&(f[0][p]=m(d))}i.exports=function(d){var f=d.calcdata,p=d._fullLayout;function m(y){return function(w){return s.coerceHoverinfo({hoverinfo:w},{_module:y._module},p)}}for(var g=0;g=0&&b.indexde[0]._length||ht<0||ht>_e[0]._length)return y.unhoverRaw(ae,ie)}else ut="xpx"in ie?ie.xpx:de[0]._length/2,ht="ypx"in ie?ie.ypx:_e[0]._length/2;if(ie.pointerX=ut+de[0]._offset,ie.pointerY=ht+_e[0]._offset,Le="xval"in ie?x.flat(Oe,ie.xval):x.p2c(de,ut),$e="yval"in ie?x.flat(Oe,ie.yval):x.p2c(_e,ht),!u(Le[0])||!u($e[0]))return d.warn("Fx.hover failed",ie,ae),y.unhoverRaw(ae,ie)}var Wt=1/0;function _t(en,kn){for(Be=0;Beze&&(tt.splice(0,ze),Wt=tt[0].distance),we&&Re!==0&&tt.length===0){We.distance=Re,We.index=!1;var Bn=qe._module.hoverPoints(We,dt,vt,"closest",{hoverLayer:Pe._hoverlayer});if(Bn&&(Bn=Bn.filter(function(Tr){return Tr.spikeDistance<=Re})),Bn&&Bn.length){var En,Wn=Bn.filter(function(Tr){return Tr.xa.showspikes&&Tr.xa.spikesnap!=="hovered data"});if(Wn.length){var gr=Wn[0];u(gr.x0)&&u(gr.y0)&&(En=Ce(gr),(!St.vLinePoint||St.vLinePoint.spikeDistance>En.spikeDistance)&&(St.vLinePoint=En))}var Va=Bn.filter(function(Tr){return Tr.ya.showspikes&&Tr.ya.spikesnap!=="hovered data"});if(Va.length){var ro=Va[0];u(ro.x0)&&u(ro.y0)&&(En=Ce(ro),(!St.hLinePoint||St.hLinePoint.spikeDistance>En.spikeDistance)&&(St.hLinePoint=En))}}}}}function be(en,kn,un){for(var tn,Fn=null,Rn=1/0,Bn=0;Bn0&&Math.abs(en.distance)Ft-1;Yt--)gt(tt[Yt]);tt=Mt,et()}var mt=ae._hoverdata,xt=[],Ut=te(ae),It=ee(ae);for(Fe=0;Fe1||tt.length>1)||Te==="closest"&&Ze&&tt.length>1,xn=h.combine(Pe.plot_bgcolor||h.background,Pe.paper_bgcolor),mn=B(tt,{gd:ae,hovermode:Te,rotateLabels:sn,bgColor:xn,container:Pe._hoverlayer,outerContainer:Pe._paper.node(),commonLabelOpts:Pe.hoverlabel,hoverdistance:Pe.hoverdistance}),dn=mn.hoverLabels;if(x.isUnifiedHover(Te)||(function(en,kn,un,tn){var Fn,Rn,Bn,En,Wn,gr,Va,ro=kn?"xa":"ya",Tr=kn?"ya":"xa",Ki=0,Jr=1,Cr=en.size(),Gr=new Array(Cr),Ga=0,jn=tn.minX,fn=tn.maxX,Xn=tn.minY,ea=tn.maxY,Un=function(Ln){return Ln*un._invScaleX},Kn=function(Ln){return Ln*un._invScaleY};function Yn(Ln){var ta=Ln[0],Wo=Ln[Ln.length-1];if(Rn=ta.pmin-ta.pos-ta.dp+ta.size,Bn=Wo.pos+Wo.dp+Wo.size-ta.pmax,Rn>.01){for(Wn=Ln.length-1;Wn>=0;Wn--)Ln[Wn].dp+=Rn;Fn=!1}if(!(Bn<.01)){if(Rn<-.01){for(Wn=Ln.length-1;Wn>=0;Wn--)Ln[Wn].dp-=Bn;Fn=!1}if(Fn){var va=0;for(En=0;Enta.pmax&&va++;for(En=Ln.length-1;En>=0&&!(va<=0);En--)(gr=Ln[En]).pos>ta.pmax-1&&(gr.del=!0,va--);for(En=0;En=0;Wn--)Ln[Wn].dp-=Bn;for(En=Ln.length-1;En>=0&&!(va<=0);En--)(gr=Ln[En]).pos+gr.dp+gr.size>ta.pmax&&(gr.del=!0,va--)}}}for(en.each(function(Ln){var ta=Ln[ro],Wo=Ln[Tr],va=ta._id.charAt(0)==="x",hs=ta.range;Ga===0&&hs&&hs[0]>hs[1]!==va&&(Jr=-1);var ms=0,Ml=va?un.width:un.height;if(un.hovermode==="x"||un.hovermode==="y"){var Zi,Di,Pl=R(Ln,kn),Lf=Ln.anchor,Pc=Lf==="end"?-1:1;if(Lf==="middle")Di=(Zi=Ln.crossPos+(va?Kn(Pl.y-Ln.by/2):Un(Ln.bx/2+Ln.tx2width/2)))+(va?Kn(Ln.by):Un(Ln.bx));else if(va)Di=(Zi=Ln.crossPos+Kn(E+Pl.y)-Kn(Ln.by/2-E))+Kn(Ln.by);else{var If=Un(Pc*E+Pl.x),su=If+Un(Pc*Ln.bx);Zi=Ln.crossPos+Math.min(If,su),Di=Ln.crossPos+Math.max(If,su)}va?Xn!==void 0&&ea!==void 0&&Math.min(Di,ea)-Math.max(Zi,Xn)>1&&(Wo.side==="left"?(ms=Wo._mainLinePosition,Ml=un.width):Ml=Wo._mainLinePosition):jn!==void 0&&fn!==void 0&&Math.min(Di,fn)-Math.max(Zi,jn)>1&&(Wo.side==="top"?(ms=Wo._mainLinePosition,Ml=un.height):Ml=Wo._mainLinePosition)}Gr[Ga++]=[{datum:Ln,traceIndex:Ln.trace.index,dp:0,pos:Ln.pos,posref:Ln.posref,size:Ln.by*(va?O:1)/2,pmin:ms,pmax:Ml}]}),Gr.sort(function(Ln,ta){return Ln[0].posref-ta[0].posref||Jr*(ta[0].traceIndex-Ln[0].traceIndex)});!Fn&&Ki<=Cr;){for(Ki++,Fn=!0,En=0;En.01&&Wr.pmin===Yr.pmin&&Wr.pmax===Yr.pmax){for(Wn=la.length-1;Wn>=0;Wn--)la[Wn].dp+=Rn;for(er.push.apply(er,la),Gr.splice(En+1,1),Va=0,Wn=er.length-1;Wn>=0;Wn--)Va+=er[Wn].dp;for(Bn=Va/er.length,Wn=er.length-1;Wn>=0;Wn--)er[Wn].dp-=Bn;Fn=!1}else En++}Gr.forEach(Yn)}for(En=Gr.length-1;En>=0;En--){var ii=Gr[En];for(Wn=ii.length-1;Wn>=0;Wn--){var ko=ii[Wn],Ya=ko.datum;Ya.offset=ko.dp,Ya.del=ko.del}}}(dn,sn,Pe,mn.commonLabelBoundingBox),q(dn,sn,Pe._invScaleX,Pe._invScaleY)),Se&&Se.tagName){var gn=_.getComponentMethod("annotations","hasClickToShow")(ae,xt);b(s.select(Se),gn?"pointer":"")}Se&&!he&&function(en,kn,un){if(!un||un.length!==en._hoverdata.length)return!0;for(var tn=un.length-1;tn>=0;tn--){var Fn=un[tn],Rn=en._hoverdata[tn];if(Fn.curveNumber!==Rn.curveNumber||String(Fn.pointNumber)!==String(Rn.pointNumber)||String(Fn.pointNumbers)!==String(Rn.pointNumbers))return!0}return!1}(ae,0,mt)&&(mt&&ae.emit("plotly_unhover",{event:ie,points:mt}),ae.emit("plotly_hover",{event:ie,points:ae._hoverdata,xaxes:de,yaxes:_e,xvals:Le,yvals:$e}))})(Z,G,X,Q,re)})},o.loneHover=function(Z,G){var X=!0;Array.isArray(Z)||(X=!1,Z=[Z]);var Q=G.gd,re=te(Q),ae=ee(Q),ie=B(Z.map(function(Se){var Oe=Se._x0||Se.x0||Se.x||0,Pe=Se._x1||Se.x1||Se.x||0,Me=Se._y0||Se.y0||Se.y||0,ce=Se._y1||Se.y1||Se.y||0,we=Se.eventData;if(we){var K=Math.min(Oe,Pe),ne=Math.max(Oe,Pe),de=Math.min(Me,ce),_e=Math.max(Me,ce),ue=Se.trace;if(_.traceIs(ue,"gl3d")){var pe=Q._fullLayout[ue.scene]._scene.container,xe=pe.offsetLeft,ye=pe.offsetTop;K+=xe,ne+=xe,de+=ye,_e+=ye}we.bbox={x0:K+ae,x1:ne+ae,y0:de+re,y1:_e+re},G.inOut_bbox&&G.inOut_bbox.push(we.bbox)}else we=!1;return{color:Se.color||h.defaultLine,x0:Se.x0||Se.x||0,x1:Se.x1||Se.x||0,y0:Se.y0||Se.y||0,y1:Se.y1||Se.y||0,xLabel:Se.xLabel,yLabel:Se.yLabel,zLabel:Se.zLabel,text:Se.text,name:Se.name,idealAlign:Se.idealAlign,borderColor:Se.borderColor,fontFamily:Se.fontFamily,fontSize:Se.fontSize,fontColor:Se.fontColor,nameLength:Se.nameLength,textAlign:Se.textAlign,trace:Se.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Se.hovertemplate||!1,hovertemplateLabels:Se.hovertemplateLabels||!1,eventData:we}}),{gd:Q,hovermode:"closest",rotateLabels:!1,bgColor:G.bgColor||h.background,container:s.select(G.container),outerContainer:G.outerContainer||G.container}).hoverLabels,se=0,he=0;return ie.sort(function(Se,Oe){return Se.y0-Oe.y0}).each(function(Se,Oe){var Pe=Se.y0-Se.by/2;Se.offset=Pe-5([\s\S]*)<\/extra>/;function B(Z,G){var X=G.gd,Q=X._fullLayout,re=G.hovermode,ae=G.rotateLabels,ie=G.bgColor,se=G.container,he=G.outerContainer,Se=G.commonLabelOpts||{};if(Z.length===0)return[[]];var Oe=G.fontFamily||T.HOVERFONT,Pe=G.fontSize||T.HOVERFONTSIZE,Me=Z[0],ce=Me.xa,we=Me.ya,K=re.charAt(0),ne=K+"Label",de=Me[ne];if(de===void 0&&ce.type==="multicategory")for(var _e=0;_eQ.width-zt?(mt=Q.width-zt,Ft.attr("d","M"+(zt-E)+",0L"+zt+","+It+E+"v"+It+(2*I+Ut.height)+"H-"+zt+"V"+It+E+"H"+(zt-2*E)+"Z")):Ft.attr("d","M0,0L"+E+","+It+E+"H"+zt+"v"+It+(2*I+Ut.height)+"H-"+zt+"V"+It+E+"H-"+E+"Z"),Be.minX=mt-zt,Be.maxX=mt+zt,ce.side==="top"?(Be.minY=xt-(2*I+Ut.height),Be.maxY=xt-I):(Be.minY=xt+I,Be.maxY=xt+(2*I+Ut.height))}else{var kt,Ot,At;we.side==="right"?(kt="start",Ot=1,At="",mt=ce._offset+ce._length):(kt="end",Ot=-1,At="-",mt=ce._offset),xt=we._offset+(Me.y0+Me.y1)/2,Yt.attr("text-anchor",kt),Ft.attr("d","M0,0L"+At+E+","+E+"V"+(I+Ut.height/2)+"h"+At+(2*I+Ut.width)+"V-"+(I+Ut.height/2)+"H"+At+E+"V-"+E+"Z"),Be.minY=xt-(I+Ut.height/2),Be.maxY=xt+(I+Ut.height/2),we.side==="right"?(Be.minX=mt+E,Be.maxX=mt+E+(2*I+Ut.width)):(Be.minX=mt-E-(2*I+Ut.width),Be.maxX=mt-E);var Nt,$t=Ut.height/2,Bt=pe-Ut.top-$t,Xt="clip"+Q._uid+"commonlabel"+we._id;if(mt=0?ht:Rt+_t=0?Rt:nt+_t=0?Ze:ut+be=0?ut:ct+be=0,rt.idealAlign!=="top"&&sn||!xn?sn?($t+=Xt/2,rt.anchor="start"):rt.anchor="middle":($t-=Xt/2,rt.anchor="end"),rt.crossPos=$t;else{if(rt.pos=$t,sn=Nt+Bt/2+mn<=xe,xn=Nt-Bt/2-mn>=0,rt.idealAlign!=="left"&&sn||!xn)if(sn)Nt+=Bt/2,rt.anchor="start";else{rt.anchor="middle";var dn=mn/2,gn=Nt+dn-xe,en=Nt-dn;gn>0&&(Nt-=gn),en<0&&(Nt+=-en)}else Nt-=Bt/2,rt.anchor="end";rt.crossPos=Nt}It.attr("text-anchor",rt.anchor),kt&&zt.attr("text-anchor",rt.anchor),Ft.attr("transform",f(Nt,$t)+(ae?p(C):""))}),{hoverLabels:yt,commonLabelBoundingBox:Be}}function N(Z,G,X,Q,re,ae){var ie="",se="";Z.nameOverride!==void 0&&(Z.name=Z.nameOverride),Z.name&&(Z.trace._meta&&(Z.name=d.templateString(Z.name,Z.trace._meta)),ie=U(Z.name,Z.nameLength));var he=X.charAt(0),Se=he==="x"?"y":"x";Z.zLabel!==void 0?(Z.xLabel!==void 0&&(se+="x: "+Z.xLabel+"
"),Z.yLabel!==void 0&&(se+="y: "+Z.yLabel+"
"),Z.trace.type!=="choropleth"&&Z.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Z.zLabel)):G&&Z[he+"Label"]===re?se=Z[Se+"Label"]||"":Z.xLabel===void 0?Z.yLabel!==void 0&&Z.trace.type!=="scattercarpet"&&(se=Z.yLabel):se=Z.yLabel===void 0?Z.xLabel:"("+Z.xLabel+", "+Z.yLabel+")",!Z.text&&Z.text!==0||Array.isArray(Z.text)||(se+=(se?"
":"")+Z.text),Z.extraText!==void 0&&(se+=(se?"
":"")+Z.extraText),ae&&se===""&&!Z.hovertemplate&&(ie===""&&ae.remove(),se=ie);var Oe=Z.hovertemplate||!1;if(Oe){var Pe=Z.hovertemplateLabels||Z;Z[he+"Label"]!==re&&(Pe[he+"other"]=Pe[he+"Val"],Pe[he+"otherLabel"]=Pe[he+"Label"]),se=(se=d.hovertemplateString(Oe,Pe,Q._d3locale,Z.eventData[0]||{},Z.trace._meta)).replace(z,function(Me,ce){return ie=U(ce,Z.nameLength),""})}return[se,ie]}function R(Z,G){var X=0,Q=Z.offset;return G&&(Q*=-P,X=Z.offset*D),{x:X,y:Q}}function q(Z,G,X,Q){var re=function(ie){return ie*X},ae=function(ie){return ie*Q};Z.each(function(ie){var se=s.select(this);if(ie.del)return se.remove();var he,Se,Oe,Pe,Me=se.select("text.nums"),ce=ie.anchor,we=ce==="end"?-1:1,K=(Pe=(Oe=(Se={start:1,end:-1,middle:0}[(he=ie).anchor])*(E+I))+Se*(he.txwidth+I),he.anchor==="middle"&&(Oe-=he.tx2width/2,Pe+=he.txwidth/2+I),{alignShift:Se,textShiftX:Oe,text2ShiftX:Pe}),ne=R(ie,G),de=ne.x,_e=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(ie.bx/2+ie.tx2width/2)+","+ae(_e-ie.by/2)+"h"+re(ie.bx)+"v"+ae(ie.by)+"h-"+re(ie.bx)+"Z":"M0,0L"+re(we*E+de)+","+ae(E+_e)+"v"+ae(ie.by/2-E)+"h"+re(we*ie.bx)+"v-"+ae(ie.by)+"H"+re(we*E+de)+"V"+ae(_e-E)+"Z");var pe=de+K.textShiftX,xe=_e+ie.ty0-ie.by/2+I,ye=ie.textAlign||"auto";ye!=="auto"&&(ye==="left"&&ce!=="start"?(Me.attr("text-anchor","start"),pe=ue?-ie.bx/2-ie.tx2width/2+I:-ie.bx-I):ye==="right"&&ce!=="end"&&(Me.attr("text-anchor","end"),pe=ue?ie.bx/2-ie.tx2width/2-I:ie.bx+I)),Me.call(g.positionText,re(pe),ae(xe)),ie.tx2width&&(se.select("text.name").call(g.positionText,re(K.text2ShiftX+K.alignShift*I+de),ae(_e+ie.ty0-ie.by/2+I)),se.select("rect").call(v.setRect,re(K.text2ShiftX+(K.alignShift-1)*ie.tx2width/2+de),ae(_e-ie.by/2-1),re(ie.tx2width),ae(ie.by+2)))})}function Y(Z,G){var X=Z.index,Q=Z.trace||{},re=Z.cd[0],ae=Z.cd[X]||{};function ie(Me){return Me||u(Me)&&Me===0}var se=Array.isArray(X)?function(Me,ce){var we=d.castOption(re,X,Me);return ie(we)?we:d.extractOption({},Q,"",ce)}:function(Me,ce){return d.extractOption(ae,Q,Me,ce)};function he(Me,ce,we){var K=se(ce,we);ie(K)&&(Z[Me]=K)}if(he("hoverinfo","hi","hoverinfo"),he("bgcolor","hbg","hoverlabel.bgcolor"),he("borderColor","hbc","hoverlabel.bordercolor"),he("fontFamily","htf","hoverlabel.font.family"),he("fontSize","hts","hoverlabel.font.size"),he("fontColor","htc","hoverlabel.font.color"),he("nameLength","hnl","hoverlabel.namelength"),he("textAlign","hta","hoverlabel.align"),Z.posref=G==="y"||G==="closest"&&Q.orientation==="h"?Z.xa._offset+(Z.x0+Z.x1)/2:Z.ya._offset+(Z.y0+Z.y1)/2,Z.x0=d.constrain(Z.x0,0,Z.xa._length),Z.x1=d.constrain(Z.x1,0,Z.xa._length),Z.y0=d.constrain(Z.y0,0,Z.ya._length),Z.y1=d.constrain(Z.y1,0,Z.ya._length),Z.xLabelVal!==void 0&&(Z.xLabel="xLabel"in Z?Z.xLabel:w.hoverLabelText(Z.xa,Z.xLabelVal,Q.xhoverformat),Z.xVal=Z.xa.c2d(Z.xLabelVal)),Z.yLabelVal!==void 0&&(Z.yLabel="yLabel"in Z?Z.yLabel:w.hoverLabelText(Z.ya,Z.yLabelVal,Q.yhoverformat),Z.yVal=Z.ya.c2d(Z.yLabelVal)),Z.zLabelVal!==void 0&&Z.zLabel===void 0&&(Z.zLabel=String(Z.zLabelVal)),!(isNaN(Z.xerr)||Z.xa.type==="log"&&Z.xerr<=0)){var Se=w.tickText(Z.xa,Z.xa.c2l(Z.xerr),"hover").text;Z.xerrneg!==void 0?Z.xLabel+=" +"+Se+" / -"+w.tickText(Z.xa,Z.xa.c2l(Z.xerrneg),"hover").text:Z.xLabel+=" ± "+Se,G==="x"&&(Z.distance+=1)}if(!(isNaN(Z.yerr)||Z.ya.type==="log"&&Z.yerr<=0)){var Oe=w.tickText(Z.ya,Z.ya.c2l(Z.yerr),"hover").text;Z.yerrneg!==void 0?Z.yLabel+=" +"+Oe+" / -"+w.tickText(Z.ya,Z.ya.c2l(Z.yerrneg),"hover").text:Z.yLabel+=" ± "+Oe,G==="y"&&(Z.distance+=1)}var Pe=Z.hoverinfo||Z.trace.hoverinfo;return Pe&&Pe!=="all"&&((Pe=Array.isArray(Pe)?Pe:Pe.split("+")).indexOf("x")===-1&&(Z.xLabel=void 0),Pe.indexOf("y")===-1&&(Z.yLabel=void 0),Pe.indexOf("z")===-1&&(Z.zLabel=void 0),Pe.indexOf("text")===-1&&(Z.text=void 0),Pe.indexOf("name")===-1&&(Z.name=void 0)),Z}function L(Z,G,X){var Q,re,ae=X.container,ie=X.fullLayout,se=ie._size,he=X.event,Se=!!G.hLinePoint,Oe=!!G.vLinePoint;if(ae.selectAll(".spikeline").remove(),Oe||Se){var Pe=h.combine(ie.plot_bgcolor,ie.paper_bgcolor);if(Se){var Me,ce,we=G.hLinePoint;Q=we&&we.xa,(re=we&&we.ya).spikesnap==="cursor"?(Me=he.pointerX,ce=he.pointerY):(Me=Q._offset+we.x,ce=re._offset+we.y);var K,ne,de=c.readability(we.color,Pe)<1.5?h.contrast(Pe):we.color,_e=re.spikemode,ue=re.spikethickness,pe=re.spikecolor||de,xe=w.getPxPosition(Z,re);if(_e.indexOf("toaxis")!==-1||_e.indexOf("across")!==-1){if(_e.indexOf("toaxis")!==-1&&(K=xe,ne=Me),_e.indexOf("across")!==-1){var ye=re._counterDomainMin,Te=re._counterDomainMax;re.anchor==="free"&&(ye=Math.min(ye,re.position),Te=Math.max(Te,re.position)),K=se.l+ye*se.w,ne=se.l+Te*se.w}ae.insert("line",":first-child").attr({x1:K,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:pe,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:K,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Pe}).classed("spikeline",!0).classed("crisp",!0)}_e.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:xe+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:pe}).classed("spikeline",!0)}if(Oe){var Ae,Re,Le=G.vLinePoint;Q=Le&&Le.xa,re=Le&&Le.ya,Q.spikesnap==="cursor"?(Ae=he.pointerX,Re=he.pointerY):(Ae=Q._offset+Le.x,Re=re._offset+Le.y);var $e,Fe,Be=c.readability(Le.color,Pe)<1.5?h.contrast(Pe):Le.color,Ue=Q.spikemode,qe=Q.spikethickness,Xe=Q.spikecolor||Be,ot=w.getPxPosition(Z,Q);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&($e=ot,Fe=Re),Ue.indexOf("across")!==-1){var st=Q._counterDomainMin,dt=Q._counterDomainMax;Q.anchor==="free"&&(st=Math.min(st,Q.position),dt=Math.max(dt,Q.position)),$e=se.t+(1-dt)*se.h,Fe=se.t+(1-st)*se.h}ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:$e,y2:Fe,"stroke-width":qe,stroke:Xe,"stroke-dasharray":v.dashStyle(Q.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:$e,y2:Fe,"stroke-width":qe+2,stroke:Pe}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:Ae,cy:ot-(Q.side!=="top"?qe:-qe),r:qe,fill:Xe}).classed("spikeline",!0)}}}function W(Z,G){return!G}function U(Z,G){return g.plainText(Z||"",{len:G,allowedTags:["br","sub","sup","b","i","em"]})}function V(Z,G,X){var Q=G[Z+"a"],re=G[Z+"Val"],ae=G.cd[0];if(Q.type==="category"||Q.type==="multicategory")re=Q._categoriesMap[re];else if(Q.type==="date"){var ie=G.trace[Z+"periodalignment"];if(ie){var se=G.cd[G.index],he=se[Z+"Start"];he===void 0&&(he=se[Z]);var Se=se[Z+"End"];Se===void 0&&(Se=se[Z]);var Oe=Se-he;ie==="end"?re+=Oe:ie==="middle"&&(re+=Oe/2)}re=Q.d2c(re)}return ae&&ae.t&&ae.t.posLetter===Q._id&&(X.boxmode!=="group"&&X.violinmode!=="group"||(re+=ae.t.dPos)),re}function te(Z){return Z.offsetTop+Z.clientTop}function ee(Z){return Z.offsetLeft+Z.clientLeft}function H(Z,G){var X=Z._fullLayout,Q=G.getBoundingClientRect(),re=Q.left,ae=Q.top,ie=re+Q.width,se=ae+Q.height,he=d.apply3DTransform(X._invTransform)(re,ae),Se=d.apply3DTransform(X._invTransform)(ie,se),Oe=he[0],Pe=he[1],Me=Se[0],ce=Se[1];return{x:Oe,y:Pe,width:Me-Oe,height:ce-Pe,top:Math.min(Pe,ce),left:Math.min(Oe,Me),right:Math.max(Oe,Me),bottom:Math.max(Pe,ce)}}},38048:function(i,o,a){var s=a(71828),u=a(7901),c=a(23469).isUnifiedHover;i.exports=function(d,f,p,m){m=m||{};var g=f.legend;function b(v){m.font[v]||(m.font[v]=g?f.legend.font[v]:f.font[v])}f&&c(f.hovermode)&&(m.font||(m.font={}),b("size"),b("family"),b("color"),g?(m.bgcolor||(m.bgcolor=u.combine(f.legend.bgcolor,f.paper_bgcolor)),m.bordercolor||(m.bordercolor=f.legend.bordercolor)):m.bgcolor||(m.bgcolor=f.paper_bgcolor)),p("hoverlabel.bgcolor",m.bgcolor),p("hoverlabel.bordercolor",m.bordercolor),p("hoverlabel.namelength",m.namelength),s.coerceFont(p,"hoverlabel.font",m.font),p("hoverlabel.align",m.align)}},98212:function(i,o,a){var s=a(71828),u=a(528);i.exports=function(c,d){function f(p,m){return d[p]!==void 0?d[p]:s.coerce(c,d,u,p,m)}return f("clickmode"),f("hovermode")}},30211:function(i,o,a){var s=a(39898),u=a(71828),c=a(28569),d=a(23469),f=a(528),p=a(88335);i.exports={moduleType:"component",name:"fx",constants:a(26675),schema:{layout:f},attributes:a(77914),layoutAttributes:f,supplyLayoutGlobalDefaults:a(22774),supplyDefaults:a(54268),supplyLayoutDefaults:a(34938),calc:a(30732),getDistanceFunction:d.getDistanceFunction,getClosest:d.getClosest,inbox:d.inbox,quadrature:d.quadrature,appendArrayPointValue:d.appendArrayPointValue,castHoverOption:function(m,g,b){return u.castOption(m,g,"hoverlabel."+b)},castHoverinfo:function(m,g,b){return u.castOption(m,b,"hoverinfo",function(v){return u.coerceHoverinfo({hoverinfo:v},{_module:m._module},g)})},hover:p.hover,unhover:c.unhover,loneHover:p.loneHover,loneUnhover:function(m){var g=u.isD3Selection(m)?m:s.select(m);g.selectAll("g.hovertext").remove(),g.selectAll(".spikeline").remove()},click:a(75914)}},528:function(i,o,a){var s=a(26675),u=a(41940),c=u({editType:"none"});c.family.dflt=s.HOVERFONT,c.size.dflt=s.HOVERFONTSIZE,i.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:c,grouptitlefont:u({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(i,o,a){var s=a(71828),u=a(528),c=a(98212),d=a(38048);i.exports=function(f,p){function m(h,y){return s.coerce(f,p,u,h,y)}c(f,p)&&(m("hoverdistance"),m("spikedistance")),m("dragmode")==="select"&&m("selectdirection");var g=p._has("mapbox"),b=p._has("geo"),v=p._basePlotModules.length;p.dragmode==="zoom"&&((g||b)&&v===1||g&&b&&v===2)&&(p.dragmode="pan"),d(f,p,m),s.coerceFont(m,"hoverlabel.grouptitlefont",p.hoverlabel.font)}},22774:function(i,o,a){var s=a(71828),u=a(38048),c=a(528);i.exports=function(d,f){u(d,f,function(p,m){return s.coerce(d,f,c,p,m)})}},83312:function(i,o,a){var s=a(71828),u=a(30587).counter,c=a(27670).Y,d=a(85555).idRegex,f=a(44467),p={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[u("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:c({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function m(v,h,y){var w=h[y+"axes"],_=Object.keys((v._splomAxes||{})[y]||{});return Array.isArray(w)?w:_.length?_:void 0}function g(v,h,y,w,_,x){var T=h(v+"gap",y),k=h("domain."+v);h(v+"side",w);for(var S=new Array(_),C=k[0],M=(k[1]-C)/(_-T),O=M*(1-T),D=0;D<_;D++){var P=C+M*D;S[x?_-1-D:D]=[P,P+O]}return S}function b(v,h,y,w,_){var x,T=new Array(y);function k(S,C){h.indexOf(C)!==-1&&w[C]===void 0?(T[S]=C,w[C]=S):T[S]=""}if(Array.isArray(v))for(x=0;x1){k||S||C||z("pattern")==="independent"&&(k=!0),O._hasSubplotGrid=k;var E,I,A=z("roworder")==="top to bottom",F=k?.2:.1,j=k?.3:.1;M&&h._splomGridDflt&&(E=h._splomGridDflt.xside,I=h._splomGridDflt.yside),O._domains={x:g("x",z,F,E,P),y:g("y",z,j,I,D,A)}}else delete h.grid}function z(B,N){return s.coerce(y,O,p,B,N)}},contentDefaults:function(v,h){var y=h.grid;if(y&&y._domains){var w,_,x,T,k,S,C,M=v.grid||{},O=h._subplots,D=y._hasSubplotGrid,P=y.rows,E=y.columns,I=y.pattern==="independent",A=y._axisMap={};if(D){var F=M.subplots||[];S=y.subplots=new Array(P);var j=1;for(w=0;w(b==="legend"?1:0));if(j===!1&&(h[b]=void 0),(j!==!1||w.uirevision)&&(x("uirevision",h.uirevision),j!==!1)){x("borderwidth");var z,B,N,R=x("orientation")==="h",q=x("yref")==="paper",Y=x("xref")==="paper",L="left";if(R?(z=0,s.getComponentMethod("rangeslider","isVisible")(v.xaxis)?q?(B=1.1,N="bottom"):(B=1,N="top"):q?(B=-.1,N="top"):(B=0,N="bottom")):(B=1,N="auto",Y?z=1.02:(z=1,L="right")),u.coerce(w,_,{x:{valType:"number",editType:"legend",min:Y?-2:0,max:Y?3:1,dflt:z}},"x"),u.coerce(w,_,{y:{valType:"number",editType:"legend",min:q?-2:0,max:q?3:1,dflt:B}},"y"),x("traceorder",P),m.isGrouped(h[b])&&x("tracegroupgap"),x("entrywidth"),x("entrywidthmode"),x("itemsizing"),x("itemwidth"),x("itemclick"),x("itemdoubleclick"),x("groupclick"),x("xanchor",L),x("yanchor",N),x("valign"),u.noneOrAll(w,_,["x","y"]),x("title.text")){x("title.side",R?"left":"top");var W=u.extendFlat({},T,{size:u.bigFont(T.size)});u.coerceFont(x,"title.font",W)}}}}i.exports=function(b,v,h){var y,w=h.slice(),_=v.shapes;if(_)for(y=0;y<_.length;y++){var x=_[y];if(x.showlegend){var T={_input:x._input,visible:x.visible,showlegend:x.showlegend,legend:x.legend};w.push(T)}}var k=["legend"];for(y=0;y1)}var Q=W.hiddenlabels||[];if(!(V||W.showlegend&&te.length))return Y.selectAll("."+U).remove(),W._topdefs.select("#"+q).remove(),c.autoMargin(N,U);var re=u.ensureSingle(Y,"g",U,function(ce){V||ce.attr("pointer-events","all")}),ae=u.ensureSingleById(W._topdefs,"clipPath",q,function(ce){ce.append("rect")}),ie=u.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});ie.call(g.stroke,L.bordercolor).call(g.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,he=u.ensureSingle(re,"g","scrollbox"),Se=L.title;L._titleWidth=0,L._titleHeight=0,Se.text?((se=u.ensureSingle(he,"text",U+"titletext")).attr("text-anchor","start").call(m.font,Se.font).text(Se.text),F(se,he,N,L,C)):he.selectAll("."+U+"titletext").remove();var Oe=u.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(h.scrollBarEnterAttrs).call(g.fill,h.scrollBarColor)}),Pe=he.selectAll("g.groups").data(te);Pe.enter().append("g").attr("class","groups"),Pe.exit().remove();var Me=Pe.selectAll("g.traces").data(u.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var we=ce[0].trace;return d.traceIs(we,"pie-like")?Q.indexOf(ce[0].label)!==-1?.5:1:we.visible==="legendonly"?.5:1}).each(function(){s.select(this).call(E,N,L)}).call(k,N,L).each(function(){V||s.select(this).call(A,N,U)}),u.syncOrAsync([c.previousPromises,function(){return function(ce,we,K,ne){var de=ce._fullLayout,_e=B(ne);ne||(ne=de[_e]);var ue=de._size,pe=S.isVertical(ne),xe=S.isGrouped(ne),ye=ne.entrywidthmode==="fraction",Te=ne.borderwidth,Ae=2*Te,Re=h.itemGap,Le=ne.itemwidth+2*Re,$e=2*(Te+Re),Fe=z(ne),Be=ne.y<0||ne.y===0&&Fe==="top",Ue=ne.y>1||ne.y===1&&Fe==="bottom",qe=ne.tracegroupgap,Xe={};ne._maxHeight=Math.max(Be||Ue?de.height/2:ue.h,30);var ot=0;ne._width=0,ne._height=0;var st=function(Ke){var Ye=0,nt=0,ct=Ke.title.side;return ct&&(ct.indexOf("left")!==-1&&(Ye=Ke._titleWidth),ct.indexOf("top")!==-1&&(nt=Ke._titleHeight)),[Ye,nt]}(ne);if(pe)K.each(function(Ke){var Ye=Ke[0].height;m.setTranslate(this,Te+st[0],Te+st[1]+ne._height+Ye/2+Re),ne._height+=Ye,ne._width=Math.max(ne._width,Ke[0].width)}),ot=Le+ne._width,ne._width+=Re+Le+Ae,ne._height+=$e,xe&&(we.each(function(Ke,Ye){m.setTranslate(this,0,Ye*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var dt=j(ne),vt=ne.x<0||ne.x===0&&dt==="right",We=ne.x>1||ne.x===1&&dt==="left",ze=Ue||Be,tt=de.width/2;ne._maxWidth=Math.max(vt?ze&&dt==="left"?ue.l+ue.w:tt:We?ze&&dt==="right"?ue.r+ue.w:tt:ue.w,2*Le);var it=0,St=0;K.each(function(Ke){var Ye=D(Ke,ne,Le);it=Math.max(it,Ye),St+=Ye}),ot=null;var Ze=0;if(xe){var ut=0,ht=0,Rt=0;we.each(function(){var Ke=0,Ye=0;s.select(this).selectAll("g.traces").each(function(ct){var yt=D(ct,ne,Le),rt=ct[0].height;m.setTranslate(this,st[0],st[1]+Te+Re+rt/2+Ye),Ye+=rt,Ke=Math.max(Ke,yt),Xe[ct[0].trace.legendgroup]=Ke});var nt=Ke+Re;ht>0&&nt+Te+ht>ne._maxWidth?(Ze=Math.max(Ze,ht),ht=0,Rt+=ut+qe,ut=Ye):ut=Math.max(ut,Ye),m.setTranslate(this,ht,Rt),ht+=nt}),ne._width=Math.max(Ze,ht)+Te,ne._height=Rt+ut+$e}else{var Ct=K.size(),Wt=St+Ae+(Ct-1)*Re=ne._maxWidth&&(Ze=Math.max(Ze,Ge),be=0,Ce+=_t,ne._height+=_t,_t=0),m.setTranslate(this,st[0]+Te+be,st[1]+Te+Ce+Ye/2+Re),Ge=be+nt+Re,be+=ct,_t=Math.max(_t,Ye)}),Wt?(ne._width=be+Ae,ne._height=_t+$e):(ne._width=Math.max(Ze,Ge)+Ae,ne._height+=_t+$e)}}ne._width=Math.ceil(Math.max(ne._width+st[0],ne._titleWidth+2*(Te+h.titlePad))),ne._height=Math.ceil(Math.max(ne._height+st[1],ne._titleHeight+2*(Te+h.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var He=ce._context.edits,et=He.legendText||He.legendPosition;K.each(function(Ke){var Ye=s.select(this).select("."+_e+"toggle"),nt=Ke[0].height,ct=Ke[0].trace.legendgroup,yt=D(Ke,ne,Le);xe&&ct!==""&&(yt=Xe[ct]);var rt=et?Le:ot||yt;pe||ye||(rt+=Re/2),m.setRect(Ye,0,-nt/2,rt,nt)})}(N,Pe,Me,L)},function(){var ce,we,K,ne,de=W._size,_e=L.borderwidth,ue=L.xref==="paper",pe=L.yref==="paper";if(Se.text&&function(ze,tt,it){if(tt.title.side==="top center"||tt.title.side==="top right"){var St=tt.title.font.size*w,Ze=0,ut=ze.node(),ht=m.bBox(ut).width;tt.title.side==="top center"?Ze=.5*(tt._width-2*it-2*h.titlePad-ht):tt.title.side==="top right"&&(Ze=tt._width-2*it-2*h.titlePad-ht),b.positionText(ze,it+h.titlePad+Ze,it+St)}}(se,L,_e),!V){var xe,ye;xe=ue?de.l+de.w*L.x-_[j(L)]*L._width:W.width*L.x-_[j(L)]*L._width,ye=pe?de.t+de.h*(1-L.y)-_[z(L)]*L._effHeight:W.height*(1-L.y)-_[z(L)]*L._effHeight;var Te=function(ze,tt,it,St){var Ze=ze._fullLayout,ut=Ze[tt],ht=j(ut),Rt=z(ut),Ct=ut.xref==="paper",Wt=ut.yref==="paper";ze._fullLayout._reservedMargin[tt]={};var _t=ut.y<.5?"b":"t",be=ut.x<.5?"l":"r",Ce={r:Ze.width-it,l:it+ut._width,b:Ze.height-St,t:St+ut._effHeight};if(Ct&&Wt)return c.autoMargin(ze,tt,{x:ut.x,y:ut.y,l:ut._width*_[ht],r:ut._width*x[ht],b:ut._effHeight*x[Rt],t:ut._effHeight*_[Rt]});Ct?ze._fullLayout._reservedMargin[tt][_t]=Ce[_t]:Wt||ut.orientation==="v"?ze._fullLayout._reservedMargin[tt][be]=Ce[be]:ze._fullLayout._reservedMargin[tt][_t]=Ce[_t]}(N,U,xe,ye);if(Te)return;if(W.margin.autoexpand){var Ae=xe,Re=ye;xe=ue?u.constrain(xe,0,W.width-L._width):Ae,ye=pe?u.constrain(ye,0,W.height-L._effHeight):Re,xe!==Ae&&u.log("Constrain "+U+".x to make legend fit inside graph"),ye!==Re&&u.log("Constrain "+U+".y to make legend fit inside graph")}m.setTranslate(re,xe,ye)}if(Oe.on(".drag",null),re.on("wheel",null),V||L._height<=L._maxHeight||N._context.staticPlot){var Le=L._effHeight;V&&(Le=L._height),ie.attr({width:L._width-_e,height:Le-_e,x:_e/2,y:_e/2}),m.setTranslate(he,0,0),ae.select("rect").attr({width:L._width-2*_e,height:Le-2*_e,x:_e,y:_e}),m.setClipUrl(he,q,N),m.setRect(Oe,0,0,0,0),delete L._scrollY}else{var $e,Fe,Be,Ue=Math.max(h.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*h.scrollBarMargin,Xe=L._height-L._effHeight,ot=qe/Xe,st=Math.min(L._scrollY||0,Xe);ie.attr({width:L._width-2*_e+h.scrollBarWidth+h.scrollBarMargin,height:L._effHeight-_e,x:_e/2,y:_e/2}),ae.select("rect").attr({width:L._width-2*_e+h.scrollBarWidth+h.scrollBarMargin,height:L._effHeight-2*_e,x:_e,y:_e+st}),m.setClipUrl(he,q,N),We(st,Ue,ot),re.on("wheel",function(){We(st=u.constrain(L._scrollY+s.event.deltaY/qe*Xe,0,Xe),Ue,ot),st!==0&&st!==Xe&&s.event.preventDefault()});var dt=s.behavior.drag().on("dragstart",function(){var ze=s.event.sourceEvent;$e=ze.type==="touchstart"?ze.changedTouches[0].clientY:ze.clientY,Be=st}).on("drag",function(){var ze=s.event.sourceEvent;ze.buttons===2||ze.ctrlKey||(Fe=ze.type==="touchmove"?ze.changedTouches[0].clientY:ze.clientY,st=function(tt,it,St){var Ze=(St-it)/ot+tt;return u.constrain(Ze,0,Xe)}(Be,$e,Fe),We(st,Ue,ot))});Oe.call(dt);var vt=s.behavior.drag().on("dragstart",function(){var ze=s.event.sourceEvent;ze.type==="touchstart"&&($e=ze.changedTouches[0].clientY,Be=st)}).on("drag",function(){var ze=s.event.sourceEvent;ze.type==="touchmove"&&(Fe=ze.changedTouches[0].clientY,st=function(tt,it,St){var Ze=(it-St)/ot+tt;return u.constrain(Ze,0,Xe)}(Be,$e,Fe),We(st,Ue,ot))});he.call(vt)}function We(ze,tt,it){L._scrollY=N._fullLayout[U]._scrollY=ze,m.setTranslate(he,0,-ze),m.setRect(Oe,L._width,h.scrollBarMargin+ze*it,h.scrollBarWidth,tt),ae.select("rect").attr("y",_e+ze)}N._context.edits.legendPosition&&(re.classed("cursor-move",!0),p.init({element:re.node(),gd:N,prepFn:function(){var ze=m.getTranslate(re);K=ze.x,ne=ze.y},moveFn:function(ze,tt){var it=K+ze,St=ne+tt;m.setTranslate(re,it,St),ce=p.align(it,L._width,de.l,de.l+de.w,L.xanchor),we=p.align(St+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&we!==void 0){var ze={};ze[U+".x"]=ce,ze[U+".y"]=we,d.call("_guiRelayout",N,ze)}},clickFn:function(ze,tt){var it=Y.selectAll("g.traces").filter(function(){var St=this.getBoundingClientRect();return tt.clientX>=St.left&&tt.clientX<=St.right&&tt.clientY>=St.top&&tt.clientY<=St.bottom});it.size()>0&&P(N,re,it,ze,tt)}}))}],N)}}function D(N,R,q){var Y=N[0],L=Y.width,W=R.entrywidthmode,U=Y.trace.legendwidth||R.entrywidth;return W==="fraction"?R._maxWidth*U:q+(U||L)}function P(N,R,q,Y,L){var W=q.data()[0][0].trace,U={event:L,node:q.node(),curveNumber:W.index,expandedIndex:W._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};W._group&&(U.group=W._group),d.traceIs(W,"pie-like")&&(U.label=q.datum()[0].label);var V=f.triggerHandler(N,"plotly_legendclick",U);if(Y===1){if(V===!1)return;R._clickTimeout=setTimeout(function(){N._fullLayout&&v(q,N,Y)},N._context.doubleClickDelay)}else Y===2&&(R._clickTimeout&&clearTimeout(R._clickTimeout),N._legendMouseDownTime=0,f.triggerHandler(N,"plotly_legenddoubleclick",U)!==!1&&V!==!1&&v(q,N,Y))}function E(N,R,q){var Y,L,W=B(q),U=N.data()[0][0],V=U.trace,te=d.traceIs(V,"pie-like"),ee=!q._inHover&&R._context.edits.legendText&&!te,H=q._maxNameLength;U.groupTitle?(Y=U.groupTitle.text,L=U.groupTitle.font):(L=q.font,q.entries?Y=U.text:(Y=te?U.label:V.name,V._meta&&(Y=u.templateString(Y,V._meta))));var Z=u.ensureSingle(N,"text",W+"text");Z.attr("text-anchor","start").call(m.font,L).text(ee?I(Y,H):Y);var G=q.itemwidth+2*h.itemGap;b.positionText(Z,G,0),ee?Z.call(b.makeEditable,{gd:R,text:Y}).call(F,N,R,q).on("edit",function(X){this.text(I(X,H)).call(F,N,R,q);var Q=U.trace._fullInput||{},re={};if(d.hasTransform(Q,"groupby")){var ae=d.getTransformIndices(Q,"groupby"),ie=ae[ae.length-1],se=u.keyedContainer(Q,"transforms["+ie+"].styles","target","value.name");se.set(U.trace._group,X),re=se.constructUpdate()}else re.name=X;return Q._isShape?d.call("_guiRelayout",R,"shapes["+V.index+"].name",re.name):d.call("_guiRestyle",R,re,V.index)}):F(Z,N,R,q)}function I(N,R){var q=Math.max(4,R);if(N&&N.trim().length>=q/2)return N;for(var Y=q-(N=N||"").length;Y>0;Y--)N+=" ";return N}function A(N,R,q){var Y,L=R._context.doubleClickDelay,W=1,U=u.ensureSingle(N,"rect",q+"toggle",function(V){R._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(g.fill,"rgba(0,0,0,0)")});R._context.staticPlot||(U.on("mousedown",function(){(Y=new Date().getTime())-R._legendMouseDownTimeL&&(W=Math.max(W-1,1)),P(R,V,N,W,s.event)}}))}function F(N,R,q,Y,L){Y._inHover&&N.attr("data-notex",!0),b.convertToTspans(N,q,function(){(function(W,U,V,te){var ee=W.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var H=W.select("g[class*=math-group]"),Z=H.node(),G=B(V);V||(V=U._fullLayout[G]);var X,Q,re=V.borderwidth,ae=(te===C?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*w;if(Z){var ie=m.bBox(Z);X=ie.height,Q=ie.width,te===C?m.setTranslate(H,re,re+.75*X):m.setTranslate(H,0,.25*X)}else{var se="."+G+(te===C?"title":"")+"text",he=W.select(se),Se=b.lineCount(he),Oe=he.node();if(X=ae*Se,Q=Oe?m.bBox(Oe).width:0,te===C)V.title.side==="left"&&(Q+=2*h.itemGap),b.positionText(he,re+h.titlePad,re+ae);else{var Pe=2*h.itemGap+V.itemwidth;ee.groupTitle&&(Pe=h.itemGap,Q-=V.itemwidth),b.positionText(he,Pe,-ae*((Se-1)/2-.3))}}te===C?(V._titleWidth=Q,V._titleHeight=X):(ee.lineHeight=ae,ee.height=Math.max(X,16)+3,ee.width=Q)}else W.remove()})(R,q,Y,L)})}function j(N){return u.isRightAnchor(N)?"right":u.isCenterAnchor(N)?"center":"left"}function z(N){return u.isBottomAnchor(N)?"bottom":u.isMiddleAnchor(N)?"middle":"top"}function B(N){return N._id||"legend"}i.exports=function(N,R){if(R)O(N,R);else{var q=N._fullLayout,Y=q._legends;q._infolayer.selectAll('[class^="legend"]').each(function(){var U=s.select(this),V=U.attr("class").split(" ")[0];V.match(M)&&Y.indexOf(V)===-1&&U.remove()});for(var L=0;Lj&&(F=j)}I[p][0]._groupMinRank=F,I[p][0]._preGroupSort=p}var z=function(Y,L){return Y.trace.legendrank-L.trace.legendrank||Y._preSort-L._preSort};for(I.forEach(function(Y,L){Y[0]._preGroupSort=L}),I.sort(function(Y,L){return Y[0]._groupMinRank-L[0]._groupMinRank||Y[0]._preGroupSort-L[0]._preGroupSort}),p=0;pk?k:x}i.exports=function(x,T,k){var S=T._fullLayout;k||(k=S.legend);var C=k.itemsizing==="constant",M=k.itemwidth,O=(M+2*h.itemGap)/2,D=d(O,0),P=function(A,F,j,z){var B;if(A+1)B=A;else{if(!(F&&F.width>0))return 0;B=F.width}return C?z:Math.min(B,j)};function E(A,F,j){var z=A[0].trace,B=z.marker||{},N=B.line||{},R=j?z.visible&&z.type===j:u.traceIs(z,"bar"),q=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(R?[A]:[]);q.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),q.exit().remove(),q.each(function(Y){var L=s.select(this),W=Y[0],U=P(W.mlw,B.line,5,2);L.style("stroke-width",U+"px");var V=W.mcc;if(!k._inHover&&"mc"in W){var te=m(B),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),V=f.tryColorscale(B,"")(ee)}var H=V||W.mc||B.color,Z=B.pattern,G=Z&&f.getPatternAttr(Z.shape,0,"");if(G){var X=f.getPatternAttr(Z.bgcolor,0,null),Q=f.getPatternAttr(Z.fgcolor,0,null),re=Z.fgopacity,ae=_(Z.size,8,10),ie=_(Z.solidity,.5,1),se="legend-"+z.uid;L.call(f.pattern,"legend",T,se,G,ae,ie,V,Z.fillmode,X,Q,re)}else L.call(p.fill,H);U&&p.stroke(L,W.mlc||N.color)})}function I(A,F,j){var z=A[0],B=z.trace,N=j?B.visible&&B.type===j:u.traceIs(B,j),R=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(N?[A]:[]);if(R.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),R.exit().remove(),R.size()){var q=B.marker||{},Y=P(v(q.line.width,z.pts),q.line,5,2),L="pieLike",W=c.minExtend(B,{marker:{line:{width:Y}}},L),U=c.minExtend(z,{trace:W},L);b(R,U,W,T)}}x.each(function(A){var F=s.select(this),j=c.ensureSingle(F,"g","layers");j.style("opacity",A[0].trace.opacity);var z=k.valign,B=A[0].lineHeight,N=A[0].height;if(z!=="middle"&&B&&N){var R={top:1,bottom:-1}[z]*(.5*(B-N+3));j.attr("transform",d(0,R))}else j.attr("transform",null);j.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),j.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var q=j.selectAll("g.legendsymbols").data([A]);q.enter().append("g").classed("legendsymbols",!0),q.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var F,j=A[0].trace,z=[];if(j.visible)switch(j.type){case"histogram2d":case"heatmap":z=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmapbox":z=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymapbox":z=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":z=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],F=!1;break;case"streamtube":z=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],F=!1;break;case"surface":z=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],F=!0;break;case"mesh3d":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1}var B=s.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(z);B.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(N,R){var q,Y=s.select(this),L=m(j),W=L.colorscale,U=L.reversescale;if(W){if(!F){var V=W.length;q=R===0?W[U?V-1:0][1]:R===1?W[U?0:V-1][1]:W[Math.floor((V-1)/2)][1]}}else{var te=j.vertexcolor||j.facecolor||j.color;q=c.isArrayOrTypedArray(te)?te[R]||te[0]:te}Y.attr("d",N[0]),q?Y.call(p.fill,q):Y.call(function(ee){if(ee.size()){var H="legendfill-"+j.uid;f.gradient(ee,T,H,y(U,F==="radial"),W,"fill")}})})}).each(function(A){var F=A[0].trace,j=F.type==="waterfall";if(A[0]._distinct&&j){var z=A[0].trace[A[0].dir].marker;return A[0].mc=z.color,A[0].mlw=z.line.width,A[0].mlc=z.line.color,E(A,this,"waterfall")}var B=[];F.visible&&j&&(B=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=s.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(B);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(R){var q=s.select(this),Y=F[R[0]].marker,L=P(void 0,Y.line,5,2);q.attr("d",R[1]).style("stroke-width",L+"px").call(p.fill,Y.color),L&&q.call(p.stroke,Y.line.color)})}).each(function(A){E(A,this,"funnel")}).each(function(A){E(A,this)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendbox").data(F.visible&&u.traceIs(F,"box-violin")?[A]:[]);j.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),j.exit().remove(),j.each(function(){var z=s.select(this);if(F.boxpoints!=="all"&&F.points!=="all"||p.opacity(F.fillcolor)!==0||p.opacity((F.line||{}).color)!==0){var B=P(void 0,F.line,5,2);z.style("stroke-width",B+"px").call(p.fill,F.fillcolor),B&&p.stroke(z,F.line.color)}else{var N=c.minExtend(F,{marker:{size:C?12:c.constrain(F.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});j.call(f.pointStyle,N,T)}})}).each(function(A){I(A,this,"funnelarea")}).each(function(A){I(A,this,"pie")}).each(function(A){var F,j,z=w(A),B=z.showFill,N=z.showLine,R=z.showGradientLine,q=z.showGradientFill,Y=z.anyFill,L=z.anyLine,W=A[0],U=W.trace,V=m(U),te=V.colorscale,ee=V.reversescale,H=g.hasMarkers(U)||!Y?"M5,0":L?"M5,-2":"M5,-3",Z=s.select(this),G=Z.select(".legendfill").selectAll("path").data(B||q?[A]:[]);if(G.enter().append("path").classed("js-fill",!0),G.exit().remove(),G.attr("d",H+"h"+M+"v6h-"+M+"z").call(function(re){if(re.size())if(B)f.fillGroupStyle(re,T);else{var ae="legendfill-"+U.uid;f.gradient(re,T,ae,y(ee),te,"fill")}}),N||R){var X=P(void 0,U.line,10,5);j=c.minExtend(U,{line:{width:X}}),F=[c.minExtend(W,{trace:j})]}var Q=Z.select(".legendlines").selectAll("path").data(N||R?[F]:[]);Q.enter().append("path").classed("js-line",!0),Q.exit().remove(),Q.attr("d",H+(R?"l"+M+",0.0001":"h"+M)).call(N?f.lineGroupStyle:function(re){if(re.size()){var ae="legendline-"+U.uid;f.lineGroupStyle(re),f.gradient(re,T,ae,y(ee),te,"stroke")}})}).each(function(A){var F,j,z=w(A),B=z.anyFill,N=z.anyLine,R=z.showLine,q=z.showMarker,Y=A[0],L=Y.trace,W=!q&&!N&&!B&&g.hasText(L);function U(Q,re,ae,ie){var se=c.nestedProperty(L,Q).get(),he=c.isArrayOrTypedArray(se)&&re?re(se):se;if(C&&he&&ie!==void 0&&(he=ie),ae){if(heae[1])return ae[1]}return he}function V(Q){return Y._distinct&&Y.index&&Q[Y.index]?Q[Y.index]:Q[0]}if(q||W||R){var te={},ee={};if(q){te.mc=U("marker.color",V),te.mx=U("marker.symbol",V),te.mo=U("marker.opacity",c.mean,[.2,1]),te.mlc=U("marker.line.color",V),te.mlw=U("marker.line.width",c.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var H=U("marker.size",c.mean,[2,16],12);te.ms=H,ee.marker.size=H}R&&(ee.line={width:U("line.width",V,[0,10],5)}),W&&(te.tx="Aa",te.tp=U("textposition",V),te.ts=10,te.tc=U("textfont.color",V),te.tf=U("textfont.family",V)),F=[c.minExtend(Y,te)],(j=c.minExtend(L,ee)).selectedpoints=null,j.texttemplate=null}var Z=s.select(this).select("g.legendpoints"),G=Z.selectAll("path.scatterpts").data(q?F:[]);G.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),G.exit().remove(),G.call(f.pointStyle,j,T),q&&(F[0].mrc=3);var X=Z.selectAll("g.pointtext").data(W?F:[]);X.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),X.exit().remove(),X.selectAll("text").call(f.textPointStyle,j,T)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(F.visible&&F.type==="candlestick"?[A,A]:[]);j.enter().append("path").classed("legendcandle",!0).attr("d",function(z,B){return B?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(z,B){var N=s.select(this),R=F[B?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("stroke-width",q+"px").call(p.fill,R.fillcolor),q&&p.stroke(N,R.line.color)})}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(F.visible&&F.type==="ohlc"?[A,A]:[]);j.enter().append("path").classed("legendohlc",!0).attr("d",function(z,B){return B?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(z,B){var N=s.select(this),R=F[B?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("fill","none").call(f.dashLine,R.line.dash,q),q&&p.stroke(N,R.line.color)})})}},42068:function(i,o,a){a(93348),i.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(i,o,a){var s=a(73972),u=a(74875),c=a(41675),d=a(24255),f=a(34031).eraseActiveShape,p=a(71828),m=p._,g=i.exports={};function b(S,C){var M,O,D=C.currentTarget,P=D.getAttribute("data-attr"),E=D.getAttribute("data-val")||!0,I=S._fullLayout,A={},F=c.list(S,null,!0),j=I._cartesianSpikesEnabled;if(P==="zoom"){var z,B=E==="in"?.5:2,N=(1+B)/2,R=(1-B)/2;for(O=0;O1?(H=["toggleHover"],Z=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],H=["hoverClosestGeo"],Z=["resetGeo"]):I?(H=["hoverClosest3d"],Z=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],H=["toggleHover"],Z=["resetViewMapbox"]):z?H=["hoverClosestGl2d"]:F?H=["hoverClosestPie"]:Y?(H=["hoverClosestCartesian","hoverCompareCartesian"],Z=["resetViewSankey"]):H=["toggleHover"],E&&(H=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var he=0;he0)){var T=function(S,C,M){for(var O=M.filter(function(I){return C[I].anchor===S._id}),D=0,P=0;P=Oe.max)he=re[Se+1];else if(se=Oe.pmax)he=re[Se+1];else if(seSe._length||pe+Fe<0)return;Re=ue+Fe,Le=pe+Fe;break;case Me:if($e="col-resize",ue+Fe>Se._length)return;Re=ue+Fe,Le=pe;break;case ce:if($e="col-resize",pe+Fe<0)return;Re=ue,Le=pe+Fe;break;default:$e="ew-resize",Re=_e,Le=_e+Fe}if(Le=0;z--){var B=C.append("path").attr(O).style("opacity",z?.1:D).call(d.stroke,E).call(d.fill,P).call(f.dashLine,z?"solid":A,z?4+I:I);if(y(B,_,k),F){var N=p(_.layout,"selections",k);B.style({cursor:"move"});var R={element:B.node(),plotinfo:S,gd:_,editHelpers:N,isActiveSelection:!0},q=s(M,_);u(q,B,R)}else B.style("pointer-events",z?"all":"none");j[z]=B}var Y=j[0];j[1].node().addEventListener("click",function(){return function(L,W){if(v(L)){var U=+W.node().getAttribute("data-index");if(U>=0){if(U===L._fullLayout._activeSelectionIndex)return void w(L);L._fullLayout._activeSelectionIndex=U,L._fullLayout._deactivateSelection=w,b(L)}}}(_,Y)})}(_._fullLayout._selectionLayer)}function y(_,x,T){var k=T.xref+T.yref;f.setClipUrl(_,"clip"+x._fullLayout._uid+k,x)}function w(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(c(_),delete _._fullLayout._activeSelectionIndex,b(_))}i.exports={draw:b,drawOne:h,activateLastSelection:function(_){if(v(_)){var x=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=x,_._fullLayout._deactivateSelection=w,b(_)}}}},53777:function(i,o,a){var s=a(79952).P,u=a(1426).extendFlat;i.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:u({},s,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(i){i.exports=function(o,a,s){s("newselection.mode"),s("newselection.line.width")&&(s("newselection.line.color"),s("newselection.line.dash")),s("activeselection.fillcolor"),s("activeselection.opacity")}},35855:function(i,o,a){var s=a(64505).selectMode,u=a(51873).clearOutline,c=a(60165),d=c.readPaths,f=c.writePaths,p=c.fixDatesForPaths;i.exports=function(m,g){if(m.length){var b=m[0][0];if(b){var v=b.getAttribute("d"),h=g.gd,y=h._fullLayout.newselection,w=g.plotinfo,_=w.xaxis,x=w.yaxis,T=g.isActiveSelection,k=g.dragmode,S=(h.layout||{}).selections||[];if(!s(k)&&T!==void 0){var C=h._fullLayout._activeSelectionIndex;if(C-1,St=[];if(function(Ct){return Ct&&Array.isArray(Ct)&&Ct[0].hoverOnBox!==!0}(tt)){X(Te,Ae,Fe);var Ze=function(Ct,Wt){var _t,be,Ce=Ct[0],Ge=-1,He=[];for(be=0;be0?function(Ct,Wt){var _t,be,Ce,Ge=[];for(Ce=0;Ce0&&Ge.push(_t);if(Ge.length===1&&Ge[0]===Wt.searchInfo&&(be=Wt.searchInfo.cd[0].trace).selectedpoints.length===Wt.pointNumbers.length){for(Ce=0;Ce1||(be+=Wt.selectedpoints.length)>1))return!1;return be===1}(Ue)&&(dt=se(Ze))){for(Be&&Be.remove(),ze=0;ze=0})($e)&&$e._fullLayout._deactivateShape($e),function(st){return st._fullLayout._activeSelectionIndex>=0}($e)&&$e._fullLayout._deactivateSelection($e);var Fe=$e._fullLayout._zoomlayer,Be=h(Re),Ue=w(Re);if(Be||Ue){var qe,Xe,ot=Fe.selectAll(".select-outline-"+Le.id);ot&&$e._fullLayout._outlining&&(Be&&(qe=O(ot,Te)),qe&&c.call("_guiRelayout",$e,{shapes:qe}),Ue&&!te(Te)&&(Xe=D(ot,Te)),Xe&&($e._fullLayout._noEmitSelectedAtStart=!0,c.call("_guiRelayout",$e,{selections:Xe}).then(function(){Ae&&P($e)})),$e._fullLayout._outlining=!1)}Le.selection={},Le.selection.selectionDefs=Te.selectionDefs=[],Le.selection.mergedPolygons=Te.mergedPolygons=[]}function re(Te){return Te._id}function ae(Te,Ae,Re,Le){if(!Te.calcdata)return[];var $e,Fe,Be,Ue=[],qe=Ae.map(re),Xe=Re.map(re);for(Be=0;Be0?Le[0]:Re;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf($e)>-1}function he(Te,Ae,Re){var Le,$e;for(Le=0;Le-1&&Ae;if(!Fe&&Ae){var Ot=ne(Te,!0);if(Ot.length){var At=Ot[0].xref,Nt=Ot[0].yref;if(At&&Nt){var $t=ue(Ot);pe([j(Te,At,"x"),j(Te,Nt,"y")])(zt,$t)}}Te._fullLayout._noEmitSelectedAtStart?Te._fullLayout._noEmitSelectedAtStart=!1:kt&&xe(Te,zt),dt._reselect=!1}if(!Fe&&dt._deselect){var Bt=dt._deselect;(function(Xt,Zt,qt){for(var Ht=0;Ht=0)vt._fullLayout._deactivateShape(vt);else if(!Xe){var $t=We.clickmode;F.done(It).then(function(){if(F.clear(It),At===2){for(jt.remove(),Ce=0;Ce-1&&ee(Nt,vt,Le.xaxes,Le.yaxes,Le.subplot,Le,jt),$t==="event"&&xe(vt,void 0);p.click(vt,Nt,St.id)}).catch(E.error)}},Le.doneFn=function(){xt.remove(),F.done(It).then(function(){F.clear(It),!ze&&be&&Le.selectionDefs&&(be.subtract=Mt,Le.selectionDefs.push(be),Le.mergedPolygons.length=0,[].push.apply(Le.mergedPolygons,_t)),(ze||Xe)&&Q(Le,ze),Le.doneFnCompleted&&Le.doneFnCompleted(zt),ot&&xe(vt,He)}).catch(E.error)}},clearOutline:k,clearSelectionsCache:Q,selectOnClick:ee}},89827:function(i,o,a){var s=a(50215),u=a(41940),c=a(82196).line,d=a(79952).P,f=a(1426).extendFlat,p=a(44467).templatedArray,m=(a(24695),a(9012)),g=a(5386).R,b=a(37281);i.exports=p("shape",{visible:f({},m.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:f({},m.legend,{editType:"calc+arraydraw"}),legendgroup:f({},m.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:f({},m.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:u({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:f({},m.legendrank,{editType:"calc+arraydraw"}),legendwidth:f({},m.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:f({},s.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:f({},s.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:f({},c.color,{editType:"arraydraw"}),width:f({},c.width,{editType:"calc+arraydraw"}),dash:f({},d,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:g({},{keys:Object.keys(b)}),font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(i,o,a){var s=a(71828),u=a(89298),c=a(21459),d=a(30477);function f(b){return m(b.line.width,b.xsizemode,b.x0,b.x1,b.path,!1)}function p(b){return m(b.line.width,b.ysizemode,b.y0,b.y1,b.path,!0)}function m(b,v,h,y,w,_){var x=b/2,T=_;if(v==="pixel"){var k=w?d.extractPathCoords(w,_?c.paramIsY:c.paramIsX):[h,y],S=s.aggNums(Math.max,null,k),C=s.aggNums(Math.min,null,k),M=C<0?Math.abs(C)+x:x,O=S>0?S+x:x;return{ppad:x,ppadplus:T?M:O,ppadminus:T?O:M}}return{ppad:x}}function g(b,v,h,y,w){var _=b.type==="category"||b.type==="multicategory"?b.r2c:b.d2c;if(v!==void 0)return[_(v),_(h)];if(y){var x,T,k,S,C=1/0,M=-1/0,O=y.match(c.segmentRE);for(b.type==="date"&&(_=d.decodeDate(_)),x=0;xM&&(M=S)));return M>=C?[C,M]:void 0}}i.exports=function(b){var v=b._fullLayout,h=s.filterVisible(v.shapes);if(h.length&&b._fullData.length)for(var y=0;y=re?ae-se:se-ae,-180/Math.PI*Math.atan2(he,Se)}(M,D,O,P):0),A.call(function(re){return re.call(d.font,I).attr({}),c.convertToTspans(re,v),re});var Z=function(re,ae,ie,se,he,Se,Oe){var Pe,Me,ce,we,K=he.label.textposition,ne=he.label.textangle,de=he.label.padding,_e=he.type,ue=Math.PI/180*Se,pe=Math.sin(ue),xe=Math.cos(ue),ye=he.label.xanchor,Te=he.label.yanchor;if(_e==="line"){K==="start"?(Pe=re,Me=ae):K==="end"?(Pe=ie,Me=se):(Pe=(re+ie)/2,Me=(ae+se)/2),ye==="auto"&&(ye=K==="start"?ne==="auto"?ie>re?"left":iere?"right":iere?"right":iere?"left":ie1&&(Pe.length!==2||Pe[1][0]!=="Z")&&(Y===0&&(Pe[0][0]="M"),E[q]=Pe,z(),B())}}()}}function re(he,Se){(function(Oe,Pe){if(E.length)for(var Me=0;MeMe?(K=Oe,ue="y0",ne=Me,pe="y1"):(K=Me,ue="y1",ne=Oe,pe="y0"),ut(_t),Ct(se,ae),function(be,Ce,Ge){var He=Ce.xref,et=Ce.yref,Ke=d.getFromId(Ge,He),Ye=d.getFromId(Ge,et),nt="";He==="paper"||Ke.autorange||(nt+=He),et==="paper"||Ye.autorange||(nt+=et),v.setClipUrl(be,nt?"clip"+Ge._fullLayout._uid+nt:null,Ge)}(re,ae,Q),Ze.moveFn=Ae==="move"?ht:Rt,Ze.altKey=_t.altKey)},doneFn:function(){S(Q)||(w(re),Wt(se),O(re,Q,ae),u.call("_guiRelayout",Q,he.getUpdateObj()))},clickFn:function(){S(Q)||Wt(se)}};function ut(_t){if(S(Q))Ae=null;else if(Be)Ae=_t.target.tagName==="path"?"move":_t.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var be=Ze.element.getBoundingClientRect(),Ce=be.right-be.left,Ge=be.bottom-be.top,He=_t.clientX-be.left,et=_t.clientY-be.top,Ke=!Ue&&Ce>Re&&Ge>Le&&!_t.shiftKey?y.getCursor(He/Ce,1-et/Ge):"move";w(re,Ke),Ae=Ke.split("-")[0]}}function ht(_t,be){if(ae.type==="path"){var Ce=function(et){return et},Ge=Ce,He=Ce;$e?qe("xanchor",ae.xanchor=tt(ce+_t)):(Ge=function(et){return tt(We(et)+_t)},ot&&ot.type==="date"&&(Ge=x.encodeDate(Ge))),Fe?qe("yanchor",ae.yanchor=it(we+be)):(He=function(et){return it(ze(et)+be)},dt&&dt.type==="date"&&(He=x.encodeDate(He))),qe("path",ae.path=D(Te,Ge,He))}else $e?qe("xanchor",ae.xanchor=tt(ce+_t)):(qe("x0",ae.x0=tt(Se+_t)),qe("x1",ae.x1=tt(Pe+_t))),Fe?qe("yanchor",ae.yanchor=it(we+be)):(qe("y0",ae.y0=it(Oe+be)),qe("y1",ae.y1=it(Me+be)));re.attr("d",T(Q,ae)),Ct(se,ae),m(Q,ie,ae,Xe)}function Rt(_t,be){if(Ue){var Ce=function(mt){return mt},Ge=Ce,He=Ce;$e?qe("xanchor",ae.xanchor=tt(ce+_t)):(Ge=function(mt){return tt(We(mt)+_t)},ot&&ot.type==="date"&&(Ge=x.encodeDate(Ge))),Fe?qe("yanchor",ae.yanchor=it(we+be)):(He=function(mt){return it(ze(mt)+be)},dt&&dt.type==="date"&&(He=x.encodeDate(He))),qe("path",ae.path=D(Te,Ge,He))}else if(Be){if(Ae==="resize-over-start-point"){var et=Se+_t,Ke=Fe?Oe-be:Oe+be;qe("x0",ae.x0=$e?et:tt(et)),qe("y0",ae.y0=Fe?Ke:it(Ke))}else if(Ae==="resize-over-end-point"){var Ye=Pe+_t,nt=Fe?Me-be:Me+be;qe("x1",ae.x1=$e?Ye:tt(Ye)),qe("y1",ae.y1=Fe?nt:it(nt))}}else{var ct=function(mt){return Ae.indexOf(mt)!==-1},yt=ct("n"),rt=ct("s"),Ft=ct("w"),Yt=ct("e"),Mt=yt?K+be:K,jt=rt?ne+be:ne,Lt=Ft?de+_t:de,gt=Yt?_e+_t:_e;Fe&&(yt&&(Mt=K-be),rt&&(jt=ne-be)),(!Fe&&jt-Mt>Le||Fe&&Mt-jt>Le)&&(qe(ue,ae[ue]=Fe?Mt:it(Mt)),qe(pe,ae[pe]=Fe?jt:it(jt))),gt-Lt>Re&&(qe(xe,ae[xe]=$e?Lt:tt(Lt)),qe(ye,ae[ye]=$e?gt:tt(gt)))}re.attr("d",T(Q,ae)),Ct(se,ae),m(Q,ie,ae,Xe)}function Ct(_t,be){($e||Fe)&&function(){var Ce=be.type!=="path",Ge=_t.selectAll(".visual-cue").data([0]);Ge.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var He=We($e?be.xanchor:c.midRange(Ce?[be.x0,be.x1]:x.extractPathCoords(be.path,_.paramIsX))),et=ze(Fe?be.yanchor:c.midRange(Ce?[be.y0,be.y1]:x.extractPathCoords(be.path,_.paramIsY)));if(He=x.roundPositionForSharpStrokeRendering(He,1),et=x.roundPositionForSharpStrokeRendering(et,1),$e&&Fe){var Ke="M"+(He-1-1)+","+(et-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ge.attr("d",Ke)}else if($e){var Ye="M"+(He-1-1)+","+(et-9-1)+"v18 h2 v-18 Z";Ge.attr("d",Ye)}else{var nt="M"+(He-9-1)+","+(et-1-1)+"h18 v2 h-18 Z";Ge.attr("d",nt)}}()}function Wt(_t){_t.selectAll(".visual-cue").remove()}y.init(Ze),St.node().onmousemove=ut}(E,Z,F,I,B,ee):F.editable===!0&&Z.style("pointer-events",V||b.opacity(Y)*q<=.5?"stroke":"all");Z.node().addEventListener("click",function(){return function(Q,re){if(C(Q)){var ae=+re.node().getAttribute("data-index");if(ae>=0){if(ae===Q._fullLayout._activeShapeIndex)return void P(Q);Q._fullLayout._activeShapeIndex=ae,Q._fullLayout._deactivateShape=P,k(Q)}}}(E,Z)})}F._input&&F.visible===!0&&(F.layer!=="below"?z(E._fullLayout._shapeUpperLayer):F.xref==="paper"||F.yref==="paper"?z(E._fullLayout._shapeLowerLayer):j._hadPlotinfo?z((j.mainplotinfo||j).shapelayer):z(E._fullLayout._shapeLowerLayer))}function O(E,I,A){var F=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(E,F?"clip"+I._fullLayout._uid+F:null,I)}function D(E,I,A){return E.replace(_.segmentRE,function(F){var j=0,z=F.charAt(0),B=_.paramIsX[z],N=_.paramIsY[z],R=_.numParams[z];return z+F.substr(1).replace(_.paramRE,function(q){return j>=R||(B[j]?q=I(q):N[j]&&(q=A(q)),j++),q})})}function P(E){C(E)&&E._fullLayout._activeShapeIndex>=0&&(g(E),delete E._fullLayout._activeShapeIndex,k(E))}i.exports={draw:k,drawOne:M,eraseActiveShape:function(E){if(C(E)){g(E);var I=E._fullLayout._activeShapeIndex,A=(E.layout||{}).shapes||[];if(I0&&MH&&(G="X"),G});return U>H&&(Z=Z.replace(/[\s,]*X.*/,""),u.log("Ignoring extra params in segment "+W)),V+Z})}(f,m,b);if(f.xsizemode==="pixel"){var M=m(f.xanchor);v=M+f.x0,h=M+f.x1}else v=m(f.x0),h=m(f.x1);if(f.ysizemode==="pixel"){var O=b(f.yanchor);y=O-f.y0,w=O-f.y1}else y=b(f.y0),w=b(f.y1);if(_==="line")return"M"+v+","+y+"L"+h+","+w;if(_==="rect")return"M"+v+","+y+"H"+h+"V"+w+"H"+v+"Z";var D=(v+h)/2,P=(y+w)/2,E=Math.abs(D-v),I=Math.abs(P-y),A="A"+E+","+I,F=D+E+","+P;return"M"+F+A+" 0 1,1 "+D+","+(P-I)+A+" 0 0,1 "+F+"Z"}},89853:function(i,o,a){var s=a(34031);i.exports={moduleType:"component",name:"shapes",layoutAttributes:a(89827),supplyLayoutDefaults:a(84726),supplyDrawNewShapeDefaults:a(45547),includeBasePlot:a(76325)("shapes"),calcAutorange:a(5627),draw:s.draw,drawOne:s.drawOne}},37281:function(i){function o(c,d){return d?d.d2l(c):c}function a(c,d){return d?d.l2d(c):c}function s(c,d){return o(c.x1,d)-o(c.x0,d)}function u(c,d,f){return o(c.y1,f)-o(c.y0,f)}i.exports={x0:function(c){return c.x0},x1:function(c){return c.x1},y0:function(c){return c.y0},y1:function(c){return c.y1},slope:function(c,d,f){return c.type!=="line"?void 0:u(c,0,f)/s(c,d)},dx:s,dy:u,width:function(c,d){return Math.abs(s(c,d))},height:function(c,d,f){return Math.abs(u(c,0,f))},length:function(c,d,f){return c.type!=="line"?void 0:Math.sqrt(Math.pow(s(c,d),2)+Math.pow(u(c,0,f),2))},xcenter:function(c,d){return a((o(c.x1,d)+o(c.x0,d))/2,d)},ycenter:function(c,d,f){return a((o(c.y1,f)+o(c.y0,f))/2,f)}}},75067:function(i,o,a){var s=a(41940),u=a(35025),c=a(1426).extendDeepAll,d=a(30962).overrideAll,f=a(85594),p=a(44467).templatedArray,m=a(98292),g=p("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:g,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:c(u({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:f.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:s({})},font:s({}),activebgcolor:{valType:"color",dflt:m.gripBgActiveColor},bgcolor:{valType:"color",dflt:m.railBgColor},bordercolor:{valType:"color",dflt:m.railBorderColor},borderwidth:{valType:"number",min:0,dflt:m.railBorderWidth},ticklen:{valType:"number",min:0,dflt:m.tickLength},tickcolor:{valType:"color",dflt:m.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:m.minorTickLength}}),"arraydraw","from-root")},98292:function(i){i.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(i,o,a){var s=a(71828),u=a(85501),c=a(75067),d=a(98292).name,f=c.steps;function p(g,b,v){function h(T,k){return s.coerce(g,b,c,T,k)}for(var y=u(g,b,{name:"steps",handleItemDefaults:m}),w=0,_=0;_0&&(U=U.transition().duration(N.transition.duration).ease(N.transition.easing)),U.attr("transform",p(W-.5*b.gripWidth,N._dims.currentValueTotalHeight))}}function A(B,N){var R=B._dims;return R.inputAreaStart+b.stepInset+(R.inputAreaLength-2*b.stepInset)*Math.min(1,Math.max(0,N))}function F(B,N){var R=B._dims;return Math.min(1,Math.max(0,(N-b.stepInset-R.inputAreaStart)/(R.inputAreaLength-2*b.stepInset-2*R.inputAreaStart)))}function j(B,N,R){var q=R._dims,Y=f.ensureSingle(B,"rect",b.railTouchRectClass,function(L){L.call(P,N,B,R).style("pointer-events","all")});Y.attr({width:q.inputAreaLength,height:Math.max(q.inputAreaWidth,b.tickOffset+R.ticklen+q.labelHeight)}).call(c.fill,R.bgcolor).attr("opacity",0),d.setTranslate(Y,0,q.currentValueTotalHeight)}function z(B,N){var R=N._dims,q=R.inputAreaLength-2*b.railInset,Y=f.ensureSingle(B,"rect",b.railRectClass);Y.attr({width:q,height:b.railWidth,rx:b.railRadius,ry:b.railRadius,"shape-rendering":"crispEdges"}).call(c.stroke,N.bordercolor).call(c.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),d.setTranslate(Y,b.railInset,.5*(R.inputAreaWidth-b.railWidth)+R.currentValueTotalHeight)}i.exports=function(B){var N=B._context.staticPlot,R=B._fullLayout,q=function(te,ee){for(var H=te[b.name],Z=[],G=0;G0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),u.autoMargin(B,_(te))}if(Y.enter().append("g").classed(b.containerClassName,!0).style("cursor",N?null:"ew-resize"),Y.exit().each(function(){s.select(this).selectAll("g."+b.groupClassName).each(L)}).remove(),q.length!==0){var W=Y.selectAll("g."+b.groupClassName).data(q,x);W.enter().append("g").classed(b.groupClassName,!0),W.exit().each(L).remove();for(var U=0;U0||Pe<0){var K={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[O.side];Z.attr("transform",p(K[0],K[1]))}}}return U.call(V),Y&&(z?U.on(".opacity",null):(A=0,F=!0,U.text(C).on("mouseover.opacity",function(){s.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){s.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),U.call(b.makeEditable,{gd:w}).on("edit",function(H){M!==void 0?d.call("_guiRestyle",w,S,H,M):d.call("_guiRelayout",w,S,H)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(H){this.text(H||" ").call(b.positionText,D.x,D.y)})),U.classed("js-placeholder",F),E}}},7163:function(i,o,a){var s=a(41940),u=a(22399),c=a(1426).extendFlat,d=a(30962).overrideAll,f=a(35025),p=a(44467).templatedArray,m=p("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:m,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:c(f({editType:"arraydraw"}),{}),font:s({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:u.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(i){i.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(i,o,a){var s=a(71828),u=a(85501),c=a(7163),d=a(75909).name,f=c.buttons;function p(g,b,v){function h(y,w){return s.coerce(g,b,c,y,w)}h("visible",u(g,b,{name:"buttons",handleItemDefaults:m}).length>0)&&(h("active"),h("direction"),h("type"),h("showactive"),h("x"),h("y"),s.noneOrAll(g,b,["x","y"]),h("xanchor"),h("yanchor"),h("pad.t"),h("pad.r"),h("pad.b"),h("pad.l"),s.coerceFont(h,"font",v.font),h("bgcolor",v.paper_bgcolor),h("bordercolor"),h("borderwidth"))}function m(g,b){function v(h,y){return s.coerce(g,b,f,h,y)}v("visible",g.method==="skip"||Array.isArray(g.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}i.exports=function(g,b){u(g,b,{name:d,handleItemDefaults:p})}},13689:function(i,o,a){var s=a(39898),u=a(74875),c=a(7901),d=a(91424),f=a(71828),p=a(63893),m=a(44467).arrayEditor,g=a(18783).LINE_SPACING,b=a(75909),v=a(25849);function h(A){return A._index}function y(A,F){return+A.attr(b.menuIndexAttrName)===F._index}function w(A,F,j,z,B,N,R,q){F.active=R,m(A.layout,b.name,F).applyUpdate("active",R),F.type==="buttons"?x(A,z,null,null,F):F.type==="dropdown"&&(B.attr(b.menuIndexAttrName,"-1"),_(A,z,B,N,F),q||x(A,z,B,N,F))}function _(A,F,j,z,B){var N=f.ensureSingle(F,"g",b.headerClassName,function(U){U.style("pointer-events","all")}),R=B._dims,q=B.active,Y=B.buttons[q]||b.blankHeaderOpts,L={y:B.pad.t,yPad:0,x:B.pad.l,xPad:0,index:0},W={width:R.headerWidth,height:R.headerHeight};N.call(T,B,Y,A).call(E,B,L,W),f.ensureSingle(F,"text",b.headerArrowClassName,function(U){U.attr("text-anchor","end").call(d.font,B.font).text(b.arrowSymbol[B.direction])}).attr({x:R.headerWidth-b.arrowOffsetX+B.pad.l,y:R.headerHeight/2+b.textOffsetY+B.pad.t}),N.on("click",function(){j.call(I,String(y(j,B)?-1:B._index)),x(A,F,j,z,B)}),N.on("mouseover",function(){N.call(M)}),N.on("mouseout",function(){N.call(O,B)}),d.setTranslate(F,R.lx,R.ly)}function x(A,F,j,z,B){j||(j=F).attr("pointer-events","all");var N=function(Z){return+Z.attr(b.menuIndexAttrName)==-1}(j)&&B.type!=="buttons"?[]:B.buttons,R=B.type==="dropdown"?b.dropdownButtonClassName:b.buttonClassName,q=j.selectAll("g."+R).data(f.filterVisible(N)),Y=q.enter().append("g").classed(R,!0),L=q.exit();B.type==="dropdown"?(Y.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var W=0,U=0,V=B._dims,te=["up","down"].indexOf(B.direction)!==-1;B.type==="dropdown"&&(te?U=V.headerHeight+b.gapButtonHeader:W=V.headerWidth+b.gapButtonHeader),B.type==="dropdown"&&B.direction==="up"&&(U=-b.gapButtonHeader+b.gapButton-V.openHeight),B.type==="dropdown"&&B.direction==="left"&&(W=-b.gapButtonHeader+b.gapButton-V.openWidth);var ee={x:V.lx+W+B.pad.l,y:V.ly+U+B.pad.t,yPad:b.gapButton,xPad:b.gapButton,index:0},H={l:ee.x+B.borderwidth,t:ee.y+B.borderwidth};q.each(function(Z,G){var X=s.select(this);X.call(T,B,Z,A).call(E,B,ee),X.on("click",function(){s.event.defaultPrevented||(Z.execute&&(Z.args2&&B.active===G?(w(A,B,0,F,j,z,-1),u.executeAPICommand(A,Z.method,Z.args2)):(w(A,B,0,F,j,z,G),u.executeAPICommand(A,Z.method,Z.args))),A.emit("plotly_buttonclicked",{menu:B,button:Z,active:B.active}))}),X.on("mouseover",function(){X.call(M)}),X.on("mouseout",function(){X.call(O,B),q.call(C,B)})}),q.call(C,B),te?(H.w=Math.max(V.openWidth,V.headerWidth),H.h=ee.y-H.t):(H.w=ee.x-H.l,H.h=Math.max(V.openHeight,V.headerHeight)),H.direction=B.direction,z&&(q.size()?function(Z,G,X,Q,re,ae){var ie,se,he,Se=re.direction,Oe=Se==="up"||Se==="down",Pe=re._dims,Me=re.active;if(Oe)for(se=0,he=0;he0?[0]:[]);if(B.enter().append("g").classed(b.containerClassName,!0).style("cursor","pointer"),B.exit().each(function(){s.select(this).selectAll("g."+b.headerGroupClassName).each(z)}).remove(),j.length!==0){var N=B.selectAll("g."+b.headerGroupClassName).data(j,h);N.enter().append("g").classed(b.headerGroupClassName,!0);for(var R=f.ensureSingle(B,"g",b.dropdownButtonGroupClassName,function(U){U.style("pointer-events","all")}),q=0;qE,F=f.barLength+2*f.barPad,j=f.barWidth+2*f.barPad,z=T,B=S+C;B+j>h&&(B=h-j);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(u.fill,f.barColor),A?(this.hbar=N.attr({rx:f.barRadius,ry:f.barRadius,x:z,y:B,width:F,height:j}),this._hbarXMin=z+F/2,this._hbarTranslateMax=E-F):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var R=C>I,q=f.barWidth+2*f.barPad,Y=f.barLength+2*f.barPad,L=T+k,W=S;L+q>v&&(L=v-q);var U=this.container.selectAll("rect.scrollbar-vertical").data(R?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(u.fill,f.barColor),R?(this.vbar=U.attr({rx:f.barRadius,ry:f.barRadius,x:L,y:W,width:q,height:Y}),this._vbarYMin=W+Y/2,this._vbarTranslateMax=I-Y):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,te=y-.5,ee=R?w+q+.5:w+.5,H=_-.5,Z=A?x+j+.5:x+.5,G=b._topdefs.selectAll("#"+V).data(A||R?[0]:[]);if(G.exit().remove(),G.enter().append("clipPath").attr("id",V).append("rect"),A||R?(this._clipRect=G.select("rect").attr({x:Math.floor(te),y:Math.floor(H),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Z)-Math.floor(H)}),this.container.call(c.setClipUrl,V,this.gd),this.bg.attr({x:T,y:S,width:k,height:C})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),A||R){var X=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(X);var Q=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault(),s.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(Q),R&&this.vbar.on(".drag",null).call(Q)}this.setTranslate(m,g)},f.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},f.prototype._onBoxDrag=function(){var p=this.translateX,m=this.translateY;this.hbar&&(p-=s.event.dx),this.vbar&&(m-=s.event.dy),this.setTranslate(p,m)},f.prototype._onBoxWheel=function(){var p=this.translateX,m=this.translateY;this.hbar&&(p+=s.event.deltaY),this.vbar&&(m+=s.event.deltaY),this.setTranslate(p,m)},f.prototype._onBarDrag=function(){var p=this.translateX,m=this.translateY;if(this.hbar){var g=p+this._hbarXMin,b=g+this._hbarTranslateMax;p=(d.constrain(s.event.x,g,b)-g)/(b-g)*(this.position.w-this._box.w)}if(this.vbar){var v=m+this._vbarYMin,h=v+this._vbarTranslateMax;m=(d.constrain(s.event.y,v,h)-v)/(h-v)*(this.position.h-this._box.h)}this.setTranslate(p,m)},f.prototype.setTranslate=function(p,m){var g=this.position.w-this._box.w,b=this.position.h-this._box.h;if(p=d.constrain(p||0,0,g),m=d.constrain(m||0,0,b),this.translateX=p,this.translateY=m,this.container.call(c.setTranslate,this._box.l-this.position.l-p,this._box.t-this.position.t-m),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+p-.5),y:Math.floor(this.position.t+m-.5)}),this.hbar){var v=p/g;this.hbar.call(c.setTranslate,p+v*this._hbarTranslateMax,m)}if(this.vbar){var h=m/b;this.vbar.call(c.setTranslate,p,m+h*this._vbarTranslateMax)}}},18783:function(i){i.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(i){i.exports={axisRefDescription:function(o,a,s){return["If set to a",o,"axis id (e.g. *"+o+"* or","*"+o+"2*), the `"+o+"` position refers to a",o,"coordinate. If set to *paper*, the `"+o+"`","position refers to the distance from the",a,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",a,"("+s+"). If set to a",o,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",a,"of the domain of that axis: e.g.,","*"+o+"2 domain* refers to the domain of the second",o," axis and a",o,"position of 0.5 refers to the","point between the",a,"and the",s,"of the domain of the","second",o,"axis."].join(" ")}}},31562:function(i){i.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(i){i.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(i){i.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(i){i.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(i,o){o.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],o.STYLE=o.CSS_DECLARATIONS.map(function(a){return a.join(": ")+"; "}).join("")},77922:function(i,o){o.xmlns="http://www.w3.org/2000/xmlns/",o.svg="http://www.w3.org/2000/svg",o.xlink="http://www.w3.org/1999/xlink",o.svgAttrs={xmlns:o.svg,"xmlns:xlink":o.xlink}},8729:function(i,o,a){o.version=a(11506).version,a(7417),a(98847);for(var s=a(73972),u=o.register=s.register,c=a(10641),d=Object.keys(c),f=0;f",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(i,o){o.isLeftAnchor=function(a){return a.xanchor==="left"||a.xanchor==="auto"&&a.x<=.3333333333333333},o.isCenterAnchor=function(a){return a.xanchor==="center"||a.xanchor==="auto"&&a.x>.3333333333333333&&a.x<.6666666666666666},o.isRightAnchor=function(a){return a.xanchor==="right"||a.xanchor==="auto"&&a.x>=.6666666666666666},o.isTopAnchor=function(a){return a.yanchor==="top"||a.yanchor==="auto"&&a.y>=.6666666666666666},o.isMiddleAnchor=function(a){return a.yanchor==="middle"||a.yanchor==="auto"&&a.y>.3333333333333333&&a.y<.6666666666666666},o.isBottomAnchor=function(a){return a.yanchor==="bottom"||a.yanchor==="auto"&&a.y<=.3333333333333333}},26348:function(i,o,a){var s=a(64872),u=s.mod,c=s.modHalf,d=Math.PI,f=2*d;function p(v){return Math.abs(v[1]-v[0])>f-1e-14}function m(v,h){return c(h-v,f)}function g(v,h){if(p(h))return!0;var y,w;h[0](w=u(w,f))&&(w+=f);var _=u(v,f),x=_+f;return _>=y&&_<=w||x>=y&&x<=w}function b(v,h,y,w,_,x,T){_=_||0,x=x||0;var k,S,C,M,O,D=p([y,w]);function P(F,j){return[F*Math.cos(j)+_,x-F*Math.sin(j)]}D?(k=0,S=d,C=f):y=_&&v<=x);var _,x},pathArc:function(v,h,y,w,_){return b(null,v,h,y,w,_,0)},pathSector:function(v,h,y,w,_){return b(null,v,h,y,w,_,1)},pathAnnulus:function(v,h,y,w,_,x){return b(v,h,y,w,_,x,1)}}},73627:function(i,o){var a=Array.isArray,s=ArrayBuffer,u=DataView;function c(p){return s.isView(p)&&!(p instanceof u)}function d(p){return a(p)||c(p)}function f(p,m,g){if(d(p)){if(d(p[0])){for(var b=g,v=0;vx.max?w.set(_):w.set(+y)}},integer:{coerceFunction:function(y,w,_,x){y%1||!s(y)||x.min!==void 0&&yx.max?w.set(_):w.set(+y)}},string:{coerceFunction:function(y,w,_,x){if(typeof y!="string"){var T=typeof y=="number";x.strict!==!0&&T?w.set(String(y)):w.set(_)}else x.noBlank&&!y?w.set(_):w.set(y)}},color:{coerceFunction:function(y,w,_){u(y).isValid()?w.set(y):w.set(_)}},colorlist:{coerceFunction:function(y,w,_){Array.isArray(y)&&y.length&&y.every(function(x){return u(x).isValid()})?w.set(y):w.set(_)}},colorscale:{coerceFunction:function(y,w,_){w.set(d.get(y,_))}},angle:{coerceFunction:function(y,w,_){y==="auto"?w.set("auto"):s(y)?w.set(b(+y,360)):w.set(_)}},subplotid:{coerceFunction:function(y,w,_,x){var T=x.regex||g(_);typeof y=="string"&&T.test(y)?w.set(y):w.set(_)},validateFunction:function(y,w){var _=w.dflt;return y===_||typeof y=="string"&&!!g(_).test(y)}},flaglist:{coerceFunction:function(y,w,_,x){if((x.extras||[]).indexOf(y)===-1)if(typeof y=="string"){for(var T=y.split("+"),k=0;k=s&&N<=u?N:g}if(typeof N!="string"&&typeof N!="number")return g;N=String(N);var W=C(R),U=N.charAt(0);!W||U!=="G"&&U!=="g"||(N=N.substr(1),R="");var V=W&&R.substr(0,7)==="chinese",te=N.match(V?k:T);if(!te)return g;var ee=te[1],H=te[3]||"1",Z=Number(te[5]||1),G=Number(te[7]||0),X=Number(te[9]||0),Q=Number(te[11]||0);if(W){if(ee.length===2)return g;var re;ee=Number(ee);try{var ae=_.getComponentMethod("calendars","getCal")(R);if(V){var ie=H.charAt(H.length-1)==="i";H=parseInt(H,10),re=ae.newDate(ee,ae.toMonthIndex(ee,H,ie),Z)}else re=ae.newDate(ee,Number(H),Z)}catch{return g}return re?(re.toJD()-w)*b+G*v+X*h+Q*y:g}ee=ee.length===2?(Number(ee)+2e3-S)%100+S:Number(ee),H-=1;var se=new Date(Date.UTC(2e3,H,Z,G,X));return se.setUTCFullYear(ee),se.getUTCMonth()!==H||se.getUTCDate()!==Z?g:se.getTime()+Q*y},s=o.MIN_MS=o.dateTime2ms("-9999"),u=o.MAX_MS=o.dateTime2ms("9999-12-31 23:59:59.9999"),o.isDateTime=function(N,R){return o.dateTime2ms(N,R)!==g};var O=90*b,D=3*v,P=5*h;function E(N,R,q,Y,L){if((R||q||Y||L)&&(N+=" "+M(R,2)+":"+M(q,2),(Y||L)&&(N+=":"+M(Y,2),L))){for(var W=4;L%10==0;)W-=1,L/=10;N+="."+M(L,W)}return N}o.ms2DateTime=function(N,R,q){if(typeof N!="number"||!(N>=s&&N<=u))return g;R||(R=0);var Y,L,W,U,V,te,ee=Math.floor(10*p(N+.05,1)),H=Math.round(N-ee/10);if(C(q)){var Z=Math.floor(H/b)+w,G=Math.floor(p(N,b));try{Y=_.getComponentMethod("calendars","getCal")(q).fromJD(Z).formatDate("yyyy-mm-dd")}catch{Y=x("G%Y-%m-%d")(new Date(H))}if(Y.charAt(0)==="-")for(;Y.length<11;)Y="-0"+Y.substr(1);else for(;Y.length<10;)Y="0"+Y;L=R=s+b&&N<=u-b))return g;var R=Math.floor(10*p(N+.05,1)),q=new Date(Math.round(N-R/10));return E(c("%Y-%m-%d")(q),q.getHours(),q.getMinutes(),q.getSeconds(),10*q.getUTCMilliseconds()+R)},o.cleanDate=function(N,R,q){if(N===g)return R;if(o.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(C(q))return f.error("JS Dates and milliseconds are incompatible with world calendars",N),R;if(!(N=o.ms2DateTimeLocal(+N))&&R!==void 0)return R}else if(!o.isDateTime(N,q))return f.error("unrecognized date",N),R;return N};var I=/%\d?f/g,A=/%h/g,F={1:"1",2:"1",3:"2",4:"2"};function j(N,R,q,Y){N=N.replace(I,function(W){var U=Math.min(+W.charAt(1)||6,6);return(R/1e3%1+2).toFixed(U).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(R+.05));if(N=N.replace(A,function(){return F[q("%q")(L)]}),C(Y))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,R,Y)}catch{return"Invalid"}return q(N)(L)}var z=[59,59.9,59.99,59.999,59.9999];o.formatDate=function(N,R,q,Y,L,W){if(L=C(L)&&L,!R)if(q==="y")R=W.year;else if(q==="m")R=W.month;else{if(q!=="d")return function(U,V){var te=p(U+.05,b),ee=M(Math.floor(te/v),2)+":"+M(p(Math.floor(te/h),60),2);if(V!=="M"){d(V)||(V=0);var H=(100+Math.min(p(U/y,60),z[V])).toFixed(V).substr(1);V>0&&(H=H.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+H}return ee}(N,q)+` `+j(W.dayMonthYear,N,Y,L);R=W.dayMonth+` `+W.year}return j(R,N,Y,L)};var B=3*b;o.incrementMonth=function(N,R,q){q=C(q)&&q;var Y=p(N,b);if(N=Math.round(N-Y),q)try{var L=Math.round(N/b)+w,W=_.getComponentMethod("calendars","getCal")(q),U=W.fromJD(L);return R%12?W.add(U,R,"m"):W.add(U,R/12,"y"),(U.toJD()-w)*b+Y}catch{f.error("invalid ms "+N+" in calendar "+q)}var V=new Date(N+B);return V.setUTCMonth(V.getUTCMonth()+R)+Y-B},o.findExactDates=function(N,R){for(var q,Y,L=0,W=0,U=0,V=0,te=C(R)&&_.getComponentMethod("calendars","getCal")(R),ee=0;ee1||D<0||D>1?null:{x:m+x*D,y:g+S*D}}function p(m,g,b,v,h){var y=v*m+h*g;if(y<0)return v*v+h*h;if(y>b){var w=v-m,_=h-g;return w*w+_*_}var x=v*g-h*m;return x*x/b}o.segmentsIntersect=f,o.segmentDistance=function(m,g,b,v,h,y,w,_){if(f(m,g,b,v,h,y,w,_))return 0;var x=b-m,T=v-g,k=w-h,S=_-y,C=x*x+T*T,M=k*k+S*S,O=Math.min(p(x,T,C,h-m,y-g),p(x,T,C,w-m,_-g),p(k,S,M,m-h,g-y),p(k,S,M,b-h,v-y));return Math.sqrt(O)},o.getTextLocation=function(m,g,b,v){if(m===u&&v===c||(s={},u=m,c=v),s[b])return s[b];var h=m.getPointAtLength(d(b-v/2,g)),y=m.getPointAtLength(d(b+v/2,g)),w=Math.atan((y.y-h.y)/(y.x-h.x)),_=m.getPointAtLength(d(b,g)),x={x:(4*_.x+h.x+y.x)/6,y:(4*_.y+h.y+y.y)/6,theta:w};return s[b]=x,x},o.clearLocationCache=function(){u=null},o.getVisibleSegment=function(m,g,b){var v,h,y=g.left,w=g.right,_=g.top,x=g.bottom,T=0,k=m.getTotalLength(),S=k;function C(O){var D=m.getPointAtLength(O);O===0?v=D:O===k&&(h=D);var P=D.xw?D.x-w:0,E=D.y<_?_-D.y:D.y>x?D.y-x:0;return Math.sqrt(P*P+E*E)}for(var M=C(T);M;){if((T+=M+b)>S)return;M=C(T)}for(M=C(S);M;){if(T>(S-=M+b))return;M=C(S)}return{min:T,max:S,len:S-T,total:k,isClosed:T===0&&S===k&&Math.abs(v.x-h.x)<.1&&Math.abs(v.y-h.y)<.1}},o.findPointOnPath=function(m,g,b,v){for(var h,y,w,_=(v=v||{}).pathLength||m.getTotalLength(),x=v.tolerance||.001,T=v.iterationLimit||30,k=m.getPointAtLength(0)[b]>m.getPointAtLength(_)[b]?-1:1,S=0,C=0,M=_;S0?M=h:C=h,S++}return y}},23389:function(i){i.exports=function(o){return o}},39240:function(i){i.exports=function(o,a){if(!a)return o;var s=1/Math.abs(a),u=s>1?(s*o+s*a)/s:o+a,c=String(u).length;if(c>16){var d=String(a).length;if(c>=String(o).length+d){var f=parseFloat(u).toPrecision(12);f.indexOf("e+")===-1&&(u=+f)}}return u}},71828:function(i,o,a){var s=a(39898),u=a(84096).g0,c=a(60721).WU,d=a(92770),f=a(50606),p=f.FP_SAFE,m=-p,g=f.BADNUM,b=i.exports={};b.adjustFormat=function(G){return!G||/^\d[.]\df/.test(G)||/[.]\d%/.test(G)?G:G==="0.f"?"~f":/^\d%/.test(G)?"~%":/^\ds/.test(G)?"~s":!/^[~,.0$]/.test(G)&&/[&fps]/.test(G)?"~"+G:G};var v={};b.warnBadFormat=function(G){var X=String(G);v[X]||(v[X]=1,b.warn('encountered bad format: "'+X+'"'))},b.noFormat=function(G){return String(G)},b.numberFormat=function(G){var X;try{X=c(b.adjustFormat(G))}catch{return b.warnBadFormat(G),b.noFormat}return X},b.nestedProperty=a(65487),b.keyedContainer=a(66636),b.relativeAttr=a(6962),b.isPlainObject=a(41965),b.toLogRange=a(58163),b.relinkPrivateKeys=a(51332);var h=a(73627);b.isTypedArray=h.isTypedArray,b.isArrayOrTypedArray=h.isArrayOrTypedArray,b.isArray1D=h.isArray1D,b.ensureArray=h.ensureArray,b.concat=h.concat,b.maxRowLength=h.maxRowLength,b.minRowLength=h.minRowLength;var y=a(64872);b.mod=y.mod,b.modHalf=y.modHalf;var w=a(96554);b.valObjectMeta=w.valObjectMeta,b.coerce=w.coerce,b.coerce2=w.coerce2,b.coerceFont=w.coerceFont,b.coercePattern=w.coercePattern,b.coerceHoverinfo=w.coerceHoverinfo,b.coerceSelectionMarkerOpacity=w.coerceSelectionMarkerOpacity,b.validate=w.validate;var _=a(41631);b.dateTime2ms=_.dateTime2ms,b.isDateTime=_.isDateTime,b.ms2DateTime=_.ms2DateTime,b.ms2DateTimeLocal=_.ms2DateTimeLocal,b.cleanDate=_.cleanDate,b.isJSDate=_.isJSDate,b.formatDate=_.formatDate,b.incrementMonth=_.incrementMonth,b.dateTick0=_.dateTick0,b.dfltRange=_.dfltRange,b.findExactDates=_.findExactDates,b.MIN_MS=_.MIN_MS,b.MAX_MS=_.MAX_MS;var x=a(65888);b.findBin=x.findBin,b.sorterAsc=x.sorterAsc,b.sorterDes=x.sorterDes,b.distinctVals=x.distinctVals,b.roundUp=x.roundUp,b.sort=x.sort,b.findIndexOfMin=x.findIndexOfMin,b.sortObjectKeys=a(78607);var T=a(80038);b.aggNums=T.aggNums,b.len=T.len,b.mean=T.mean,b.median=T.median,b.midRange=T.midRange,b.variance=T.variance,b.stdev=T.stdev,b.interp=T.interp;var k=a(35657);b.init2dArray=k.init2dArray,b.transposeRagged=k.transposeRagged,b.dot=k.dot,b.translationMatrix=k.translationMatrix,b.rotationMatrix=k.rotationMatrix,b.rotationXYMatrix=k.rotationXYMatrix,b.apply3DTransform=k.apply3DTransform,b.apply2DTransform=k.apply2DTransform,b.apply2DTransform2=k.apply2DTransform2,b.convertCssMatrix=k.convertCssMatrix,b.inverseTransformMatrix=k.inverseTransformMatrix;var S=a(26348);b.deg2rad=S.deg2rad,b.rad2deg=S.rad2deg,b.angleDelta=S.angleDelta,b.angleDist=S.angleDist,b.isFullCircle=S.isFullCircle,b.isAngleInsideSector=S.isAngleInsideSector,b.isPtInsideSector=S.isPtInsideSector,b.pathArc=S.pathArc,b.pathSector=S.pathSector,b.pathAnnulus=S.pathAnnulus;var C=a(99863);b.isLeftAnchor=C.isLeftAnchor,b.isCenterAnchor=C.isCenterAnchor,b.isRightAnchor=C.isRightAnchor,b.isTopAnchor=C.isTopAnchor,b.isMiddleAnchor=C.isMiddleAnchor,b.isBottomAnchor=C.isBottomAnchor;var M=a(87642);b.segmentsIntersect=M.segmentsIntersect,b.segmentDistance=M.segmentDistance,b.getTextLocation=M.getTextLocation,b.clearLocationCache=M.clearLocationCache,b.getVisibleSegment=M.getVisibleSegment,b.findPointOnPath=M.findPointOnPath;var O=a(1426);b.extendFlat=O.extendFlat,b.extendDeep=O.extendDeep,b.extendDeepAll=O.extendDeepAll,b.extendDeepNoArrays=O.extendDeepNoArrays;var D=a(47769);b.log=D.log,b.warn=D.warn,b.error=D.error;var P=a(30587);b.counterRegex=P.counter;var E=a(79990);b.throttle=E.throttle,b.throttleDone=E.done,b.clearThrottle=E.clear;var I=a(24401);function A(G){var X={};for(var Q in G)for(var re=G[Q],ae=0;aep||G=X)&&d(G)&&G>=0&&G%1==0},b.noop=a(64213),b.identity=a(23389),b.repeat=function(G,X){for(var Q=new Array(X),re=0;reQ?Math.max(Q,Math.min(X,G)):Math.max(X,Math.min(Q,G))},b.bBoxIntersect=function(G,X,Q){return Q=Q||0,G.left<=X.right+Q&&X.left<=G.right+Q&&G.top<=X.bottom+Q&&X.top<=G.bottom+Q},b.simpleMap=function(G,X,Q,re,ae){for(var ie=G.length,se=new Array(ie),he=0;he=Math.pow(2,Q)?ae>10?(b.warn("randstr failed uniqueness"),Se):G(X,Q,re,(ae||0)+1):Se},b.OptionControl=function(G,X){G||(G={}),X||(X="opt");var Q={optionList:[],_newoption:function(re){re[X]=G,Q[re.name]=re,Q.optionList.push(re)}};return Q["_"+X]=G,Q},b.smooth=function(G,X){if((X=Math.round(X)||0)<2)return G;var Q,re,ae,ie,se=G.length,he=2*se,Se=2*X-1,Oe=new Array(Se),Pe=new Array(se);for(Q=0;Q=he&&(ae-=he*Math.floor(ae/he)),ae<0?ae=-1-ae:ae>=se&&(ae=he-1-ae),ie+=G[ae]*Oe[re];Pe[Q]=ie}return Pe},b.syncOrAsync=function(G,X,Q){var re;function ae(){return b.syncOrAsync(G,X,Q)}for(;G.length;)if((re=(0,G.splice(0,1)[0])(X))&&re.then)return re.then(ae);return Q&&Q(X)},b.stripTrailingSlash=function(G){return G.substr(-1)==="/"?G.substr(0,G.length-1):G},b.noneOrAll=function(G,X,Q){if(G){var re,ae=!1,ie=!0;for(re=0;re0?ae:0})},b.fillArray=function(G,X,Q,re){if(re=re||b.identity,b.isArrayOrTypedArray(G))for(var ae=0;ae1?ae+se[1]:"";if(ie&&(se.length>1||he.length>4||Q))for(;re.test(he);)he=he.replace(re,"$1"+ie+"$2");return he+Se},b.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var q=/^\w*$/;b.templateString=function(G,X){var Q={};return G.replace(b.TEMPLATE_STRING_REGEX,function(re,ae){var ie;return q.test(ae)?ie=X[ae]:(Q[ae]=Q[ae]||b.nestedProperty(X,ae).get,ie=Q[ae]()),b.isValidTextValue(ie)?ie:""})};var Y={max:10,count:0,name:"hovertemplate"};b.hovertemplateString=function(){return te.apply(Y,arguments)};var L={max:10,count:0,name:"texttemplate"};b.texttemplateString=function(){return te.apply(L,arguments)};var W=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,U={max:10,count:0,name:"texttemplate",parseMultDiv:!0};b.texttemplateStringForShapes=function(){return te.apply(U,arguments)};var V=/^[:|\|]/;function te(G,X,Q){var re=this,ae=arguments;X||(X={});var ie={};return G.replace(b.TEMPLATE_STRING_REGEX,function(se,he,Se){var Oe=he==="_xother"||he==="_yother",Pe=he==="_xother_"||he==="_yother_",Me=he==="xother_"||he==="yother_",ce=he==="xother"||he==="yother"||Oe||Me||Pe,we=he;(Oe||Pe)&&(we=we.substring(1)),(Me||Pe)&&(we=we.substring(0,we.length-1));var K,ne,de,_e=null,ue=null;if(re.parseMultDiv){var pe=function(Ae){var Re=Ae.match(W);return Re?{key:Re[1],op:Re[2],number:Number(Re[3])}:{key:Ae,op:null,number:null}}(we);we=pe.key,_e=pe.op,ue=pe.number}if(ce){if((K=X[we])===void 0)return""}else for(de=3;de=48&&se<=57,Oe=he>=48&&he<=57;if(Se&&(re=10*re+se-48),Oe&&(ae=10*ae+he-48),!Se||!Oe){if(re!==ae)return re-ae;if(se!==he)return se-he}}return ae-re};var ee=2e9;b.seedPseudoRandom=function(){ee=2e9},b.pseudoRandom=function(){var G=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-G)<429496729?b.pseudoRandom():ee/4294967296},b.fillText=function(G,X,Q){var re=Array.isArray(Q)?function(se){Q.push(se)}:function(se){Q.text=se},ae=b.extractOption(G,X,"htx","hovertext");if(b.isValidTextValue(ae))return re(ae);var ie=b.extractOption(G,X,"tx","text");return b.isValidTextValue(ie)?re(ie):void 0},b.isValidTextValue=function(G){return G||G===0},b.formatPercent=function(G,X){X=X||0;for(var Q=(Math.round(100*G*Math.pow(10,X))*Math.pow(.1,X)).toFixed(X)+"%",re=0;re1&&(Oe=1):Oe=0,b.strTranslate(ae-Oe*(Q+se),ie-Oe*(re+he))+b.strScale(Oe)+(Se?"rotate("+Se+(X?"":" "+Q+" "+re)+")":"")},b.setTransormAndDisplay=function(G,X){G.attr("transform",b.getTextTransform(X)),G.style("display",X.scale?null:"none")},b.ensureUniformFontSize=function(G,X){var Q=b.extendFlat({},X);return Q.size=Math.max(X.size,G._fullLayout.uniformtext.minsize||0),Q},b.join2=function(G,X,Q){var re=G.length;return re>1?G.slice(0,-1).join(X)+Q+G[re-1]:G.join(X)},b.bigFont=function(G){return Math.round(1.2*G)};var H=b.getFirefoxVersion(),Z=H!==null&&H<86;b.getPositionFromD3Event=function(){return Z?[s.event.layerX,s.event.layerY]:[s.event.offsetX,s.event.offsetY]}},41965:function(i){i.exports=function(o){return window&&window.process&&window.process.versions?Object.prototype.toString.call(o)==="[object Object]":Object.prototype.toString.call(o)==="[object Object]"&&Object.getPrototypeOf(o).hasOwnProperty("hasOwnProperty")}},66636:function(i,o,a){var s=a(65487),u=/^\w*$/;i.exports=function(c,d,f,p){var m,g,b;f=f||"name",p=p||"value";var v={};d&&d.length?(b=s(c,d),g=b.get()):g=c,d=d||"";var h={};if(g)for(m=0;m2)return v[x]=2|v[x],w.set(_,null);if(y){for(m=x;m1){var f=["LOG:"];for(d=0;d1){var p=[];for(d=0;d"),"long")}},c.warn=function(){var d;if(s.logging>0){var f=["WARN:"];for(d=0;d0){var p=[];for(d=0;d"),"stick")}},c.error=function(){var d;if(s.logging>0){var f=["ERROR:"];for(d=0;d0){var p=[];for(d=0;d"),"stick")}}},77310:function(i,o,a){var s=a(39898);i.exports=function(u,c,d){var f=u.selectAll("g."+d.replace(/\s/g,".")).data(c,function(m){return m[0].trace.uid});f.exit().remove(),f.enter().append("g").attr("class",d),f.order();var p=u.classed("rangeplot")?"nodeRangePlot3":"node3";return f.each(function(m){m[0][p]=s.select(this)}),f}},35657:function(i,o,a){var s=a(79576);o.init2dArray=function(u,c){for(var d=new Array(u),f=0;fa/2?o-Math.round(o/a)*a:o}}},65487:function(i,o,a){var s=a(92770),u=a(73627).isArrayOrTypedArray;function c(v,h){return function(){var y,w,_,x,T,k=v;for(x=0;x/g),w=0;wg||S===u||Sv||T&&h(x))}:function(x,T){var k=x[0],S=x[1];if(k===u||kg||S===u||Sv)return!1;var C,M,O,D,P,E=p.length,I=p[0][0],A=p[0][1],F=0;for(C=1;CMath.max(M,I)||S>Math.max(O,A)))if(Sw||Math.abs(s(b,x))>m)return!0;return!1},c.filter=function(d,f){var p=[d[0]],m=0,g=0;function b(v){d.push(v);var h=p.length,y=m;p.splice(g+1);for(var w=y+1;w1&&b(d.pop()),{addPt:b,raw:d,filtered:p}}},45142:function(i,o,a){var s=a(92770),u=a(35791);i.exports=function(c){var d;if(typeof(d=c&&c.hasOwnProperty("userAgent")?c.userAgent:function(){var h;return typeof navigator<"u"&&(h=navigator.userAgent),h&&h.headers&&typeof h.headers["user-agent"]=="string"&&(h=h.headers["user-agent"]),h}())!="string")return!0;var f=u({ua:{headers:{"user-agent":d}},tablet:!0,featureDetect:!1});if(!f){for(var p=d.split(" "),m=1;m-1;g--){var b=p[g];if(b.substr(0,8)==="Version/"){var v=b.substr(8).split(".")[0];if(s(v)&&(v=+v),v>=13)return!0}}}return f}},75138:function(i){i.exports=function(o,a){if(a instanceof RegExp){for(var s=a.toString(),u=0;uu.queueLength&&(d.undoQueue.queue.shift(),d.undoQueue.index--))},startSequence:function(d){d.undoQueue=d.undoQueue||{index:0,queue:[],sequence:!1},d.undoQueue.sequence=!0,d.undoQueue.beginSequence=!0},stopSequence:function(d){d.undoQueue=d.undoQueue||{index:0,queue:[],sequence:!1},d.undoQueue.sequence=!1,d.undoQueue.beginSequence=!1},undo:function(d){var f,p;if(!(d.undoQueue===void 0||isNaN(d.undoQueue.index)||d.undoQueue.index<=0)){for(d.undoQueue.index--,f=d.undoQueue.queue[d.undoQueue.index],d.undoQueue.inSequence=!0,p=0;p=d.undoQueue.queue.length)){for(f=d.undoQueue.queue[d.undoQueue.index],d.undoQueue.inSequence=!0,p=0;ph}function b(v,h){return v>=h}o.findBin=function(v,h,y){if(s(h.start))return y?Math.ceil((v-h.start)/h.size-f)-1:Math.floor((v-h.start)/h.size+f);var w,_,x=0,T=h.length,k=0,S=T>1?(h[T-1]-h[0])/(T-1):1;for(_=S>=0?y?p:m:y?b:g,v+=S*f*(y?-1:1)*(S>=0?1:-1);x90&&u.log("Long binary search..."),x-1},o.sorterAsc=function(v,h){return v-h},o.sorterDes=function(v,h){return h-v},o.distinctVals=function(v){var h,y=v.slice();for(y.sort(o.sorterAsc),h=y.length-1;h>-1&&y[h]===d;h--);for(var w,_=y[h]-y[0]||1,x=_/(h||1)/1e4,T=[],k=0;k<=h;k++){var S=y[k],C=S-w;w===void 0?(T.push(S),w=S):C>x&&(_=Math.min(_,C),T.push(S),w=S)}return{vals:T,minDiff:_}},o.roundUp=function(v,h,y){for(var w,_=0,x=h.length-1,T=0,k=y?0:1,S=y?1:0,C=y?Math.ceil:Math.floor;_0&&(w=1),y&&w)return v.sort(h)}return w?v:v.reverse()},o.findIndexOfMin=function(v,h){h=h||c;for(var y,w=1/0,_=0;_f.length)&&(p=f.length),s(d)||(d=!1),u(f[0])){for(g=new Array(p),m=0;mc.length-1)return c[c.length-1];var f=d%1;return f*c[Math.ceil(d)]+(1-f)*c[Math.floor(d)]}},3883:function(i,o,a){var s=a(32396),u=a(91424),c=a(71828),d=null;i.exports=function(){if(d!==null)return d;d=!1;var f=c.isIE()||c.isSafari()||c.isIOS();if(window.navigator.userAgent&&!f){var p=Array.from(s.CSS_DECLARATIONS).reverse(),m=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof m=="function")d=p.some(function(v){return m.apply(null,v)});else{var g=u.tester.append("image").attr("style",s.STYLE),b=window.getComputedStyle(g.node()).imageRendering;d=p.some(function(v){var h=v[1];return b===h||b===h.toLowerCase()}),g.remove()}}return d}},63893:function(i,o,a){var s=a(39898),u=a(71828),c=u.strTranslate,d=a(77922),f=a(18783).LINE_SPACING,p=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;o.convertToTspans=function(N,R,q){var Y=N.text(),L=!N.attr("data-notex")&&R&&R._context.typesetMath&&typeof MathJax<"u"&&Y.match(p),W=s.select(N.node().parentNode);if(!W.empty()){var U=N.attr("class")?N.attr("class").split(" ")[0]:"text";return U+="-math",W.selectAll("svg."+U).remove(),W.selectAll("g."+U+"-group").remove(),N.style("display",null).attr({"data-unformatted":Y,"data-math":"N"}),L?(R&&R._promises||[]).push(new Promise(function(te){N.style("display","none");var ee=parseInt(N.node().style.fontSize,10),H={fontSize:ee};(function(Z,G,X){var Q,re,ae,ie,se=parseInt((MathJax.version||"").split(".")[0]);if(se===2||se===3){var he=function(){var Oe="math-output-"+u.randstr({},64),Pe=(ie=s.select("body").append("div").attr({id:Oe}).style({visibility:"hidden",position:"absolute","font-size":G.fontSize+"px"}).text(Z.replace(m,"\\lt ").replace(g,"\\gt "))).node();return se===2?MathJax.Hub.Typeset(Pe):MathJax.typeset([Pe])},Se=function(){var Oe=ie.select(se===2?".MathJax_SVG":".MathJax"),Pe=!Oe.empty()&&ie.select("svg").node();if(Pe){var Me,ce=Pe.getBoundingClientRect();Me=se===2?s.select("body").select("#MathJax_SVG_glyphs"):Oe.select("defs"),X(Oe,Me,ce)}else u.log("There was an error in the tex syntax.",Z),X();ie.remove()};se===2?MathJax.Hub.Queue(function(){return re=u.extendDeepAll({},MathJax.Hub.config),ae=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:b},displayAlign:"left"})},function(){if((Q=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},he,Se,function(){if(Q!=="SVG")return MathJax.Hub.setRenderer(Q)},function(){return ae!==void 0&&(MathJax.Hub.processSectionDelay=ae),MathJax.Hub.Config(re)}):se===3&&(re=u.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=b,(Q=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){he(),Se(),Q!=="svg"&&(MathJax.config.startup.output=Q),MathJax.config=re}))}else u.warn("No MathJax version:",MathJax.version)})(L[2],H,function(Z,G,X){W.selectAll("svg."+U).remove(),W.selectAll("g."+U+"-group").remove();var Q=Z&&Z.select("svg");if(!Q||!Q.node())return V(),void te();var re=W.append("g").classed(U+"-group",!0).attr({"pointer-events":"none","data-unformatted":Y,"data-math":"Y"});re.node().appendChild(Q.node()),G&&G.node()&&Q.node().insertBefore(G.node().cloneNode(!0),Q.node().firstChild);var ae=X.width,ie=X.height;Q.attr({class:U,height:ie,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var se=N.node().style.fill||"black",he=Q.select("g");he.attr({fill:se,stroke:se});var Se=he.node().getBoundingClientRect(),Oe=Se.width,Pe=Se.height;(Oe>ae||Pe>ie)&&(Q.style("overflow","hidden"),Oe=(Se=Q.node().getBoundingClientRect()).width,Pe=Se.height);var Me=+N.attr("x"),ce=+N.attr("y"),we=-(ee||N.node().getBoundingClientRect().height)/4;if(U[0]==="y")re.attr({transform:"rotate("+[-90,Me,ce]+")"+c(-Oe/2,we-Pe/2)});else if(U[0]==="l")ce=we-Pe/2;else if(U[0]==="a"&&U.indexOf("atitle")!==0)Me=0,ce=we;else{var K=N.attr("text-anchor");Me-=Oe*(K==="middle"?.5:K==="end"?1:0),ce=ce+we-Pe/2}Q.attr({x:Me,y:ce}),q&&q.call(N,re),te(re)})})):V(),N}function V(){W.empty()||(U=N.attr("class")+"-math",W.select("svg."+U).remove()),N.text("").style("white-space","pre");var te=function(ee,H){H=H.replace(x," ");var Z,G=!1,X=[],Q=-1;function re(){Q++;var ue=document.createElementNS(d.svg,"tspan");s.select(ue).attr({class:"line",dy:Q*f+"em"}),ee.appendChild(ue),Z=ue;var pe=X;if(X=[{node:ue}],pe.length>1)for(var xe=1;xe doesnt match end tag <"+ue+">. Pretending it did match.",H),Z=X[X.length-1].node}else u.log("Ignoring unexpected end tag .",H)}S.test(H)?re():(Z=ee,X=[{node:ee}]);for(var he=H.split(T),Se=0;Se|>|>)/g,b=[["$","$"],["\\(","\\)"]],v={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},h={sub:"0.3em",sup:"-0.6em"},y={sub:"-0.21em",sup:"0.42em"},w="​",_=["http:","https:","mailto:","",void 0,":"],x=o.NEWLINES=/(\r\n?|\n)/g,T=/(<[^<>]*>)/,k=/<(\/?)([^ >]*)(\s+(.*))?>/i,S=//i;o.BR_TAG_ALL=//gi;var C=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,M=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,O=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,D=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function P(N,R){if(!N)return null;var q=N.match(R),Y=q&&(q[3]||q[4]);return Y&&F(Y)}var E=/(^|;)\s*color:/;o.plainText=function(N,R){for(var q=(R=R||{}).len!==void 0&&R.len!==-1?R.len:1/0,Y=R.allowedTags!==void 0?R.allowedTags:["br"],L=N.split(T),W=[],U="",V=0,te=0;te3?W.push(ee.substr(0,X-3)+"..."):W.push(ee.substr(0,X));break}U=""}}return W.join("")};var I={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function F(N){return N.replace(A,function(R,q){return(q.charAt(0)==="#"?function(Y){if(!(Y>1114111)){var L=String.fromCodePoint;if(L)return L(Y);var W=String.fromCharCode;return Y<=65535?W(Y):W(55232+(Y>>10),Y%1024+56320)}}(q.charAt(1)==="x"?parseInt(q.substr(2),16):parseInt(q.substr(1),10)):I[q])||R})}function j(N){var R=encodeURI(decodeURI(N)),q=document.createElement("a"),Y=document.createElement("a");q.href=N,Y.href=R;var L=q.protocol,W=Y.protocol;return _.indexOf(L)!==-1&&_.indexOf(W)!==-1?R:""}function z(N,R,q){var Y,L,W,U=q.horizontalAlign,V=q.verticalAlign||"top",te=N.node().getBoundingClientRect(),ee=R.node().getBoundingClientRect();return L=V==="bottom"?function(){return te.bottom-Y.height}:V==="middle"?function(){return te.top+(te.height-Y.height)/2}:function(){return te.top},W=U==="right"?function(){return te.right-Y.width}:U==="center"?function(){return te.left+(te.width-Y.width)/2}:function(){return te.left},function(){Y=this.node().getBoundingClientRect();var H=W()-ee.left,Z=L()-ee.top,G=q.gd||{};if(q.gd){G._fullLayout._calcInverseTransform(G);var X=u.apply3DTransform(G._fullLayout._invTransform)(H,Z);H=X[0],Z=X[1]}return this.style({top:Z+"px",left:H+"px","z-index":1e3}),this}}o.convertEntities=F,o.sanitizeHTML=function(N){N=N.replace(x," ");for(var R=document.createElement("p"),q=R,Y=[],L=N.split(T),W=0;Wf.ts+c?g():f.timer=setTimeout(function(){g(),f.timer=null},c)},o.done=function(u){var c=a[u];return c&&c.timer?new Promise(function(d){var f=c.onDone;c.onDone=function(){f&&f(),d(),c.onDone=null}}):Promise.resolve()},o.clear=function(u){if(u)s(a[u]),delete a[u];else for(var c in a)o.clear(c)}},58163:function(i,o,a){var s=a(92770);i.exports=function(u,c){if(u>0)return Math.log(u)/Math.LN10;var d=Math.log(Math.min(c[0],c[1]))/Math.LN10;return s(d)||(d=Math.log(Math.max(c[0],c[1]))/Math.LN10-6),d}},37815:function(i){i.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(i){i.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(i,o,a){var s=a(73972);i.exports=function(u){for(var c,d,f=s.layoutArrayContainers,p=s.layoutArrayRegexes,m=u.split("[")[0],g=0;g0&&d.log("Clearing previous rejected promises from queue."),M._promises=[]},o.cleanLayout=function(M){var O,D;M||(M={}),M.xaxis1&&(M.xaxis||(M.xaxis=M.xaxis1),delete M.xaxis1),M.yaxis1&&(M.yaxis||(M.yaxis=M.yaxis1),delete M.yaxis1),M.scene1&&(M.scene||(M.scene=M.scene1),delete M.scene1);var P=(f.subplotsRegistry.cartesian||{}).attrRegex,E=(f.subplotsRegistry.polar||{}).attrRegex,I=(f.subplotsRegistry.ternary||{}).attrRegex,A=(f.subplotsRegistry.gl3d||{}).attrRegex,F=Object.keys(M);for(O=0;O3?(X.x=1.02,X.xanchor="left"):X.x<-2&&(X.x=-.02,X.xanchor="right"),X.y>3?(X.y=1.02,X.yanchor="bottom"):X.y<-2&&(X.y=-.02,X.yanchor="top")),y(M),M.dragmode==="rotate"&&(M.dragmode="orbit"),m.clean(M),M.template&&M.template.layout&&o.cleanLayout(M.template.layout),M},o.cleanData=function(M){for(var O=0;O0)return M.substr(0,O)}o.hasParent=function(M,O){for(var D=S(O);D;){if(D in M)return!0;D=S(D)}return!1};var C=["x","y","z"];o.clearAxisTypes=function(M,O,D){for(var P=0;P1&&c.warn("Full array edits are incompatible with other edits",w);var M=v[""][""];if(m(M))b.set(null);else{if(!Array.isArray(M))return c.warn("Unrecognized full array edit value",w,M),!0;b.set(M)}return!k&&(_(S,C),x(g),!0)}var O,D,P,E,I,A,F,j,z=Object.keys(v).map(Number).sort(d),B=b.get(),N=B||[],R=y(C,w).get(),q=[],Y=-1,L=N.length;for(O=0;ON.length-(F?0:1))c.warn("index out of range",w,P);else if(A!==void 0)I.length>1&&c.warn("Insertion & removal are incompatible with edits to the same index.",w,P),m(A)?q.push(P):F?(A==="add"&&(A={}),N.splice(P,0,A),R&&R.splice(P,0,{})):c.warn("Unrecognized full object edit value",w,P,A),Y===-1&&(Y=P);else for(D=0;D=0;O--)N.splice(q[O],1),R&&R.splice(q[O],1);if(N.length?B||b.set(N):b.set(null),k)return!1;if(_(S,C),T!==u){var W;if(Y===-1)W=z;else{for(L=Math.max(N.length,L),W=[],O=0;O=Y);O++)W.push(P);for(O=Y;O=ue.data.length||Te<-ue.data.length)throw new Error(xe+" must be valid indices for gd.data.");if(pe.indexOf(Te,ye+1)>-1||Te>=0&&pe.indexOf(-ue.data.length+Te)>-1||Te<0&&pe.indexOf(ue.data.length+Te)>-1)throw new Error("each index in "+xe+" must be unique.")}}function R(ue,pe,xe){if(!Array.isArray(ue.data))throw new Error("gd.data must be an array.");if(pe===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(pe)||(pe=[pe]),N(ue,pe,"currentIndices"),xe===void 0||Array.isArray(xe)||(xe=[xe]),xe!==void 0&&N(ue,xe,"newIndices"),xe!==void 0&&pe.length!==xe.length)throw new Error("current and new indices must be of equal length.")}function q(ue,pe,xe,ye,Te){(function(qe,Xe,ot,st){var dt=d.isPlainObject(st);if(!Array.isArray(qe.data))throw new Error("gd.data must be an array");if(!d.isPlainObject(Xe))throw new Error("update must be a key:value object");if(ot===void 0)throw new Error("indices must be an integer or array of integers");for(var vt in N(qe,ot,"indices"),Xe){if(!Array.isArray(Xe[vt])||Xe[vt].length!==ot.length)throw new Error("attribute "+vt+" must be an array of length equal to indices array length");if(dt&&(!(vt in st)||!Array.isArray(st[vt])||st[vt].length!==Xe[vt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ue,pe,xe,ye);for(var Ae=function(qe,Xe,ot,st){var dt,vt,We,ze,tt,it=d.isPlainObject(st),St=[];for(var Ze in Array.isArray(ot)||(ot=[ot]),ot=B(ot,qe.data.length-1),Xe)for(var ut=0;ut-1&&xe.indexOf("grouptitlefont")===-1?Le(xe,xe.replace("titlefont","title.font")):xe.indexOf("titleposition")>-1?Le(xe,xe.replace("titleposition","title.position")):xe.indexOf("titleside")>-1?Le(xe,xe.replace("titleside","title.side")):xe.indexOf("titleoffset")>-1&&Le(xe,xe.replace("titleoffset","title.offset")):Le(xe,xe.replace("title","title.text"));function Le($e,Fe){ue[Fe]=ue[$e],delete ue[$e]}}function H(ue,pe,xe){ue=d.getGraphDiv(ue),O.clearPromiseQueue(ue);var ye={};if(typeof pe=="string")ye[pe]=xe;else{if(!d.isPlainObject(pe))return d.warn("Relayout fail.",pe,xe),Promise.reject();ye=d.extendFlat({},pe)}Object.keys(ye).length&&(ue.changed=!0);var Te=ae(ue,ye),Ae=Te.flags;Ae.calc&&(ue.calcdata=void 0);var Re=[v.previousPromises];Ae.layoutReplot?Re.push(D.layoutReplot):Object.keys(ye).length&&(Z(ue,Ae,Te)||v.supplyDefaults(ue),Ae.legend&&Re.push(D.doLegend),Ae.layoutstyle&&Re.push(D.layoutStyles),Ae.axrange&&G(Re,Te.rangesAltered),Ae.ticks&&Re.push(D.doTicksRelayout),Ae.modebar&&Re.push(D.doModeBar),Ae.camera&&Re.push(D.doCamera),Ae.colorbars&&Re.push(D.doColorBars),Re.push(A)),Re.push(v.rehover,v.redrag,v.reselect),m.add(ue,H,[ue,Te.undoit],H,[ue,Te.redoit]);var Le=d.syncOrAsync(Re,ue);return Le&&Le.then||(Le=Promise.resolve(ue)),Le.then(function(){return ue.emit("plotly_relayout",Te.eventData),ue})}function Z(ue,pe,xe){var ye,Te,Ae=ue._fullLayout;if(!pe.axrange)return!1;for(var Re in pe)if(Re!=="axrange"&&pe[Re])return!1;var Le=function(Xe,ot){return d.coerce(ye,Te,w,Xe,ot)},$e={};for(var Fe in xe.rangesAltered){var Be=h.id2name(Fe);if(ye=ue.layout[Be],Te=Ae[Be],y(ye,Te,Le,$e),Te._matchGroup){for(var Ue in Te._matchGroup)if(Ue!==Fe){var qe=Ae[h.id2name(Ue)];qe.autorange=Te.autorange,qe.range=Te.range.slice(),qe._input.range=Te.range.slice()}}}return!0}function G(ue,pe){var xe=pe?function(ye){var Te=[];for(var Ae in pe){var Re=h.getFromId(ye,Ae);if(Te.push(Ae),(Re.ticklabelposition||"").indexOf("inside")!==-1&&Re._anchorAxis&&Te.push(Re._anchorAxis._id),Re._matchGroup)for(var Le in Re._matchGroup)pe[Le]||Te.push(Le)}return h.draw(ye,Te,{skipTitle:!0})}:function(ye){return h.draw(ye,"redraw")};ue.push(S,D.doAutoRangeAndConstraints,xe,D.drawData,D.finalDraw)}var X=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Q=/^[xyz]axis[0-9]*\.autorange$/,re=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function ae(ue,pe){var xe,ye,Te,Ae=ue.layout,Re=ue._fullLayout,Le=Re._guiEditing,$e=U(Re._preGUI,Le),Fe=Object.keys(pe),Be=h.list(ue),Ue=d.extendDeepAll({},pe),qe={};for(ee(pe),Fe=Object.keys(pe),ye=0;ye0&&typeof ut.parts[Rt]!="string";)Rt--;var Ct=ut.parts[Rt],Wt=ut.parts[Rt-1]+"."+Ct,_t=ut.parts.slice(0,Rt).join("."),be=f(ue.layout,_t).get(),Ce=f(Re,_t).get(),Ge=ut.get();if(ht!==void 0){vt[Ze]=ht,We[Ze]=Ct==="reverse"?ht:W(Ge);var He=b.getLayoutValObject(Re,ut.parts);if(He&&He.impliedEdits&&ht!==null)for(var et in He.impliedEdits)ze(d.relativeAttr(Ze,et),He.impliedEdits[et]);if(["width","height"].indexOf(Ze)!==-1)if(ht){ze("autosize",null);var Ke=Ze==="height"?"width":"height";ze(Ke,Re[Ke])}else Re[Ze]=ue._initialAutoSize[Ze];else if(Ze==="autosize")ze("width",ht?null:Re.width),ze("height",ht?null:Re.height);else if(Wt.match(X))St(Wt),f(Re,_t+"._inputRange").set(null);else if(Wt.match(Q)){St(Wt),f(Re,_t+"._inputRange").set(null);var Ye=f(Re,_t).get();Ye._inputDomain&&(Ye._input.domain=Ye._inputDomain.slice())}else Wt.match(re)&&f(Re,_t+"._inputDomain").set(null);if(Ct==="type"){tt=be;var nt=Ce.type==="linear"&&ht==="log",ct=Ce.type==="log"&&ht==="linear";if(nt||ct){if(tt&&tt.range)if(Ce.autorange)nt&&(tt.range=tt.range[1]>tt.range[0]?[1,2]:[2,1]);else{var yt=tt.range[0],rt=tt.range[1];nt?(yt<=0&&rt<=0&&ze(_t+".autorange",!0),yt<=0?yt=rt/1e6:rt<=0&&(rt=yt/1e6),ze(_t+".range[0]",Math.log(yt)/Math.LN10),ze(_t+".range[1]",Math.log(rt)/Math.LN10)):(ze(_t+".range[0]",Math.pow(10,yt)),ze(_t+".range[1]",Math.pow(10,rt)))}else ze(_t+".autorange",!0);Array.isArray(Re._subplots.polar)&&Re._subplots.polar.length&&Re[ut.parts[0]]&&ut.parts[1]==="radialaxis"&&delete Re[ut.parts[0]]._subplot.viewInitial["radialaxis.range"],g.getComponentMethod("annotations","convertCoords")(ue,Ce,ht,ze),g.getComponentMethod("images","convertCoords")(ue,Ce,ht,ze)}else ze(_t+".autorange",!0),ze(_t+".range",null);f(Re,_t+"._inputRange").set(null)}else if(Ct.match(E)){var Ft=f(Re,Ze).get(),Yt=(ht||{}).type;Yt&&Yt!=="-"||(Yt="linear"),g.getComponentMethod("annotations","convertCoords")(ue,Ft,Yt,ze),g.getComponentMethod("images","convertCoords")(ue,Ft,Yt,ze)}var Mt=M.containerArrayMatch(Ze);if(Mt){xe=Mt.array,ye=Mt.index;var jt=Mt.property,Lt=He||{editType:"calc"};ye!==""&&jt===""&&(M.isAddVal(ht)?We[Ze]=null:M.isRemoveVal(ht)?We[Ze]=(f(Ae,xe).get()||[])[ye]:d.warn("unrecognized full object value",pe)),P.update(dt,Lt),qe[xe]||(qe[xe]={});var gt=qe[xe][ye];gt||(gt=qe[xe][ye]={}),gt[jt]=ht,delete pe[Ze]}else Ct==="reverse"?(be.range?be.range.reverse():(ze(_t+".autorange",!0),be.range=[1,0]),Ce.autorange?dt.calc=!0:dt.plot=!0):(Ze==="dragmode"&&(ht===!1&&Ge!==!1||ht!==!1&&Ge===!1)||Re._has("scatter-like")&&Re._has("regl")&&Ze==="dragmode"&&(ht==="lasso"||ht==="select")&&Ge!=="lasso"&&Ge!=="select"||Re._has("gl2d")?dt.plot=!0:He?P.update(dt,He):dt.calc=!0,ut.set(ht))}}for(xe in qe)M.applyContainerArrayChanges(ue,$e(Ae,xe),qe[xe],dt,$e)||(dt.plot=!0);for(var mt in it){var xt=(tt=h.getFromId(ue,mt))&&tt._constraintGroup;if(xt)for(var Ut in dt.calc=!0,xt)it[Ut]||(h.getFromId(ue,Ut)._constraintShrinkable=!0)}(ie(ue)||pe.height||pe.width)&&(dt.plot=!0);var It=Re.shapes;for(ye=0;ye1;)if(ye.pop(),(xe=f(pe,ye.join(".")+".uirevision").get())!==void 0)return xe;return pe.uirevision}function ce(ue,pe){for(var xe=0;xe=Te.length?Te[0]:Te[Fe]:Te}function Le(Fe){return Array.isArray(Ae)?Fe>=Ae.length?Ae[0]:Ae[Fe]:Ae}function $e(Fe,Be){var Ue=0;return function(){if(Fe&&++Ue===Be)return Fe()}}return ye._frameWaitingCnt===void 0&&(ye._frameWaitingCnt=0),new Promise(function(Fe,Be){function Ue(){ue.emit("plotly_animating"),ye._lastFrameAt=-1/0,ye._timeToNext=0,ye._runningTransitions=0,ye._currentFrame=null;var Ze=function(){ye._animationRaf=window.requestAnimationFrame(Ze),Date.now()-ye._lastFrameAt>ye._timeToNext&&function(){ye._currentFrame&&ye._currentFrame.onComplete&&ye._currentFrame.onComplete();var ut=ye._currentFrame=ye._frameQueue.shift();if(ut){var ht=ut.name?ut.name.toString():null;ue._fullLayout._currentFrame=ht,ye._lastFrameAt=Date.now(),ye._timeToNext=ut.frameOpts.duration,v.transition(ue,ut.frame.data,ut.frame.layout,O.coerceTraceIndices(ue,ut.frame.traces),ut.frameOpts,ut.transitionOpts).then(function(){ut.onComplete&&ut.onComplete()}),ue.emit("plotly_animatingframe",{name:ht,frame:ut.frame,animation:{frame:ut.frameOpts,transition:ut.transitionOpts}})}else ue.emit("plotly_animated"),window.cancelAnimationFrame(ye._animationRaf),ye._animationRaf=null}()};Ze()}var qe,Xe,ot=0;function st(Ze){return Array.isArray(Te)?ot>=Te.length?Ze.transitionOpts=Te[ot]:Ze.transitionOpts=Te[0]:Ze.transitionOpts=Te,ot++,Ze}var dt=[],vt=pe==null,We=Array.isArray(pe);if(vt||We||!d.isPlainObject(pe)){if(vt||["string","number"].indexOf(typeof pe)!==-1)for(qe=0;qe0&&itit)&&St.push(Xe);dt=St}}dt.length>0?function(Ze){if(Ze.length!==0){for(var ut=0;ut=0;ye--)if(d.isPlainObject(pe[ye])){var qe=pe[ye].name,Xe=($e[qe]||Ue[qe]||{}).name,ot=pe[ye].name,st=$e[Xe]||Ue[Xe];Xe&&ot&&typeof ot=="number"&&st&&I<5&&(I++,d.warn('addFrames: overwriting frame "'+($e[Xe]||Ue[Xe]).name+'" with a frame whose name of type "number" also equates to "'+Xe+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),I===5&&d.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Ue[qe]={name:qe},Be.push({frame:v.supplyFrameDefaults(pe[ye]),index:xe&&xe[ye]!==void 0&&xe[ye]!==null?xe[ye]:Fe+ye})}Be.sort(function(Ze,ut){return Ze.index>ut.index?-1:Ze.index=0;ye--){if(typeof(Te=Be[ye].frame).name=="number"&&d.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Te.name)for(;$e[Te.name="frame "+ue._transitionData._counter++];);if($e[Te.name]){for(Ae=0;Ae=0;xe--)ye=pe[xe],Ae.push({type:"delete",index:ye}),Re.unshift({type:"insert",index:ye,value:Te[ye]});var Le=v.modifyFrames,$e=v.modifyFrames,Fe=[ue,Re],Be=[ue,Ae];return m&&m.add(ue,Le,Fe,$e,Be),v.modifyFrames(ue,Ae)},o.addTraces=function ue(pe,xe,ye){pe=d.getGraphDiv(pe);var Te,Ae,Re=[],Le=o.deleteTraces,$e=ue,Fe=[pe,Re],Be=[pe,xe];for(function(Ue,qe,Xe){var ot,st;if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(qe===void 0)throw new Error("traces must be defined.");for(Array.isArray(qe)||(qe=[qe]),ot=0;ot=0&&Be=0&&Be=z.length)return!1;if(E.dimensions===2){if(A++,I.length===A)return E;var B=I[A];if(!C(B))return!1;E=z[j][B]}else E=z[j]}else E=z}}return E}function C(E){return E===Math.round(E)&&E>=0}function M(){var E,I,A={};for(E in b(A,d),s.subplotsRegistry)if((I=s.subplotsRegistry[E]).layoutAttributes)if(Array.isArray(I.attr))for(var F=0;F=B.length)return!1;F=(A=(s.transformsRegistry[B[N].type]||{}).attributes)&&A[I[2]],z=3}else{var R=E._module;if(R||(R=(s.modules[E.type||c.type.dflt]||{})._module),!R)return!1;if(!(F=(A=R.attributes)&&A[j])){var q=R.basePlotModule;q&&q.attributes&&(F=q.attributes[j])}F||(F=c[j])}return S(F,I,z)},o.getLayoutValObject=function(E,I){var A=function(F,j){var z,B,N,R,q=F._basePlotModules;if(q){var Y;for(z=0;z=v&&(b._input||{})._templateitemname;y&&(h=v);var w,_=g+"["+h+"]";function x(){w={},y&&(w[_]={},w[_][c]=y)}function T(S,C){y?s.nestedProperty(w[_],S).set(C):w[_+"."+S]=C}function k(){var S=w;return x(),S}return x(),{modifyBase:function(S,C){w[S]=C},modifyItem:T,getUpdateObj:k,applyUpdate:function(S,C){S&&T(S,C);var M=k();for(var O in M)s.nestedProperty(m,O).set(M[O])}}}},61549:function(i,o,a){var s=a(39898),u=a(73972),c=a(74875),d=a(71828),f=a(63893),p=a(33306),m=a(7901),g=a(91424),b=a(92998),v=a(64168),h=a(89298),y=a(18783),w=a(99082),_=w.enforce,x=w.clean,T=a(71739).doAutoRange,k="start";function S(P,E,I){for(var A=0;A=P[1]||F[1]<=P[0])&&j[0]E[0])return!0}return!1}function C(P){var E,I,A,F,j,z,B=P._fullLayout,N=B._size,R=N.p,q=h.list(P,"",!0);if(B._paperdiv.style({width:P._context.responsive&&B.autosize&&!P._context._hasZeroWidth&&!P.layout.width?"100%":B.width+"px",height:P._context.responsive&&B.autosize&&!P._context._hasZeroHeight&&!P.layout.height?"100%":B.height+"px"}).selectAll(".main-svg").call(g.setSize,B.width,B.height),P._context.setBackground(P,B.paper_bgcolor),o.drawMainTitle(P),v.manage(P),!B._has("cartesian"))return c.previousPromises(P);function Y(Fe,Be,Ue){var qe=Fe._lw/2;return Fe._id.charAt(0)==="x"?Be?Ue==="top"?Be._offset-R-qe:Be._offset+Be._length+R+qe:N.t+N.h*(1-(Fe.position||0))+qe%1:Be?Ue==="right"?Be._offset+Be._length+R+qe:Be._offset-R-qe:N.l+N.w*(Fe.position||0)+qe%1}for(E=0;E.5?"t":"b",ee=Y._fullLayout.margin[te],H=0;return L.yref==="paper"?H=W+L.pad.t+L.pad.b:L.yref==="container"&&(H=function(Z,G,X,Q,re){var ae=0;return X==="middle"&&(ae+=re/2),Z==="t"?(X==="top"&&(ae+=re),ae+=Q-G*Q):(X==="bottom"&&(ae+=re),ae+=G*Q),ae}(te,U,V,Y._fullLayout.height,W)+L.pad.t+L.pad.b),H>ee?H:0}(P,I,R);q>0&&(function(Y,L,W,U){var V="title.automargin",te=Y._fullLayout.title,ee=te.y>.5?"t":"b",H={x:te.x,y:te.y,t:0,b:0},Z={};te.yref==="paper"&&function(G,X,Q,re,ae){var ie=X.yref==="paper"?G._fullLayout._size.h:G._fullLayout.height,se=d.isTopAnchor(X)?re:re-ae,he=Q==="b"?ie-se:se;return!(d.isTopAnchor(X)&&Q==="t"||d.isBottomAnchor(X)&&Q==="b")&&heN?D.push({code:"unused",traceType:A,templateCount:B,dataCount:N}):N>B&&D.push({code:"reused",traceType:A,templateCount:B,dataCount:N})}}else D.push({code:"data"});if(function R(q,Y){for(var L in q)if(L.charAt(0)!=="_"){var W=q[L],U=w(q,L,Y);u(W)?(Array.isArray(q)&&W._template===!1&&W.templateitemname&&D.push({code:"missing",path:U,templateitemname:W.templateitemname}),R(W,U)):Array.isArray(W)&&_(W)&&R(W,U)}}({data:E,layout:P},""),D.length)return D.map(x)}},403:function(i,o,a){var s=a(92770),u=a(72391),c=a(74875),d=a(71828),f=a(25095),p=a(5900),m=a(70942),g=a(11506).version,b={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};i.exports=function(v,h){var y,w,_,x;function T(N){return!(N in h)||d.validate(h[N],b[N])}if(h=h||{},d.isPlainObject(v)?(y=v.data||[],w=v.layout||{},_=v.config||{},x={}):(v=d.getGraphDiv(v),y=d.extendDeep([],v.data),w=d.extendDeep({},v.layout),_=v._context,x=v._fullLayout||{}),!T("width")&&h.width!==null||!T("height")&&h.height!==null)throw new Error("Height and width should be pixel values.");if(!T("format"))throw new Error("Export format is not "+d.join2(b.format.values,", "," or ")+".");var k={};function S(N,R){return d.coerce(h,k,b,N,R)}var C=S("format"),M=S("width"),O=S("height"),D=S("scale"),P=S("setBackground"),E=S("imageDataOnly"),I=document.createElement("div");I.style.position="absolute",I.style.left="-5000px",document.body.appendChild(I);var A=d.extendFlat({},w);M?A.width=M:h.width===null&&s(x.width)&&(A.width=x.width),O?A.height=O:h.height===null&&s(x.height)&&(A.height=x.height);var F=d.extendFlat({},_,{_exportedPlot:!0,staticPlot:!0,setBackground:P}),j=f.getRedrawFunc(I);function z(){return new Promise(function(N){setTimeout(N,f.getDelay(I._fullLayout))})}function B(){return new Promise(function(N,R){var q=p(I,C,D),Y=I._fullLayout.width,L=I._fullLayout.height;function W(){u.purge(I),document.body.removeChild(I)}if(C==="full-json"){var U=c.graphJson(I,!1,"keepdata","object",!0,!0);return U.version=g,U=JSON.stringify(U),W(),N(E?U:f.encodeJSON(U))}if(W(),C==="svg")return N(E?q:f.encodeSVG(q));var V=document.createElement("canvas");V.id=d.randstr(),m({format:C,width:Y,height:L,scale:D,canvas:V,svg:q,promise:!0}).then(N).catch(R)})}return new Promise(function(N,R){u.newPlot(I,y,A,F).then(j).then(z).then(B).then(function(q){N(function(Y){return E?Y.replace(f.IMAGE_URL_PREFIX,""):Y}(q))}).catch(function(q){R(q)})})}},84936:function(i,o,a){var s=a(71828),u=a(74875),c=a(86281),d=a(72075).dfltConfig,f=s.isPlainObject,p=Array.isArray,m=s.isArrayOrTypedArray;function g(T,k,S,C,M,O){O=O||[];for(var D=Object.keys(T),P=0;PF.length&&C.push(h("unused",M,I.concat(F.length)));var q,Y,L,W,U,V=F.length,te=Array.isArray(R);if(te&&(V=Math.min(V,R.length)),j.dimensions===2)for(Y=0;YF[Y].length&&C.push(h("unused",M,I.concat(Y,F[Y].length)));var ee=F[Y].length;for(q=0;q<(te?Math.min(ee,R[Y].length):ee);q++)L=te?R[Y][q]:R,W=A[Y][q],U=F[Y][q],s.validate(W,L)?U!==W&&U!==+W&&C.push(h("dynamic",M,I.concat(Y,q),W,U)):C.push(h("value",M,I.concat(Y,q),W))}else C.push(h("array",M,I.concat(Y),A[Y]));else for(Y=0;Y1&&O.push(h("object","layout"))),u.supplyDefaults(D);for(var P=D._fullData,E=S.length,I=0;I0&&Math.round(w)===w))return{vals:b};h=w}for(var _=m.calendar,x=v==="start",T=v==="end",k=p[g+"period0"],S=c(k,_)||0,C=[],M=[],O=[],D=b.length,P=0;PF;)A=d(A,-h,_);for(;A<=F;)A=d(A,h,_);I=d(A,-h,_)}else{for(A=S+(E=Math.round((F-S)/y))*y;A>F;)A-=y;for(;A<=F;)A+=y;I=A-y}C[P]=x?I:T?A:(I+A)/2,M[P]=I,O[P]=A}return{vals:C,starts:M,ends:O}}},89502:function(i){i.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(i,o,a){var s=a(39898),u=a(92770),c=a(71828),d=a(50606).FP_SAFE,f=a(73972),p=a(91424),m=a(41675),g=m.getFromId,b=m.isLinked;function v(P,E){var I,A,F=[],j=P._fullLayout,z=y(j,E,0),B=y(j,E,1),N=_(P,E),R=N.min,q=N.max;if(R.length===0||q.length===0)return c.simpleMap(E.range,E.r2l);var Y=R[0].val,L=q[0].val;for(I=1;I0&&((G=ie-z(te)-B(ee))>se?X/G>he&&(H=te,Z=ee,he=X/G):X/ie>he&&(H={val:te.val,nopad:1},Z={val:ee.val,nopad:1},he=X/ie));if(Y===L){var Se=Y-1,Oe=Y+1;if(re)if(Y===0)F=[0,1];else{var Pe=(Y>0?q:R).reduce(function(ce,we){return Math.max(ce,B(we))},0),Me=Y/(1-Math.min(.5,Pe/ie));F=Y>0?[0,Me]:[Me,0]}else F=ae?[Math.max(0,Se),Math.max(1,Oe)]:[Se,Oe]}else re?(H.val>=0&&(H={val:0,nopad:1}),Z.val<=0&&(Z={val:0,nopad:1})):ae&&(H.val-he*z(H)<0&&(H={val:0,nopad:1}),Z.val<=0&&(Z={val:1,nopad:1})),he=(Z.val-H.val-h(E,te.val,ee.val))/(ie-z(H)-B(Z)),F=[H.val-he*z(H),Z.val+he*B(Z)];return F=D(F,E),E.limitRange&&E.limitRange(),U&&F.reverse(),c.simpleMap(F,E.l2r||Number)}function h(P,E,I){var A=0;if(P.rangebreaks)for(var F=P.locateBreaks(E,I),j=0;j0?I.ppadplus:I.ppadminus)||I.ppad||0),Q=G((P._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),re=G(I.vpadplus||I.vpad),ae=G(I.vpadminus||I.vpad);if(!H){if(q=1/0,Y=-1/0,ee)for(A=0;A0&&(q=F),F>Y&&F-d&&(q=F),F>Y&&F=he;A--)se(A);return{min:L,max:W,opts:I}},concatExtremes:_};var w=3;function _(P,E,I){var A,F,j,z=E._id,B=P._fullData,N=P._fullLayout,R=[],q=[];function Y(te,ee){for(A=0;A=I&&(R.extrapad||!z)){B=!1;break}F(E,R.val)&&R.pad<=I&&(z||!R.extrapad)&&(P.splice(N,1),N--)}if(B){var q=j&&E===0;P.push({val:E,pad:q?0:I,extrapad:!q&&z})}}function S(P){return u(P)&&Math.abs(P)=E}function O(P,E,I){return E===void 0||I===void 0||(E=P.d2l(E))=N&&(j=N,I=N),z<=N&&(z=N,A=N)}}return I=function(R,q){var Y=q.autorangeoptions;return Y&&Y.minallowed!==void 0&&O(q,Y.minallowed,Y.maxallowed)?Y.minallowed:Y&&Y.clipmin!==void 0&&O(q,Y.clipmin,Y.clipmax)?Math.max(R,q.d2l(Y.clipmin)):R}(I,E),A=function(R,q){var Y=q.autorangeoptions;return Y&&Y.maxallowed!==void 0&&O(q,Y.minallowed,Y.maxallowed)?Y.maxallowed:Y&&Y.clipmax!==void 0&&O(q,Y.clipmin,Y.clipmax)?Math.min(R,q.d2l(Y.clipmax)):R}(A,E),[I,A]}},23074:function(i){i.exports=function(o,a,s){var u,c;if(s){var d=a==="reversed"||a==="min reversed"||a==="max reversed";u=s[d?1:0],c=s[d?0:1]}var f=o("autorangeoptions.minallowed",c===null?u:void 0),p=o("autorangeoptions.maxallowed",u===null?c:void 0);f===void 0&&o("autorangeoptions.clipmin"),p===void 0&&o("autorangeoptions.clipmax"),o("autorangeoptions.include")}},89298:function(i,o,a){var s=a(39898),u=a(92770),c=a(74875),d=a(73972),f=a(71828),p=f.strTranslate,m=a(63893),g=a(92998),b=a(7901),v=a(91424),h=a(13838),y=a(66287),w=a(50606),_=w.ONEMAXYEAR,x=w.ONEAVGYEAR,T=w.ONEMINYEAR,k=w.ONEMAXQUARTER,S=w.ONEAVGQUARTER,C=w.ONEMINQUARTER,M=w.ONEMAXMONTH,O=w.ONEAVGMONTH,D=w.ONEMINMONTH,P=w.ONEWEEK,E=w.ONEDAY,I=E/2,A=w.ONEHOUR,F=w.ONEMIN,j=w.ONESEC,z=w.MINUS_SIGN,B=w.BADNUM,N={K:"zeroline"},R={K:"gridline",L:"path"},q={K:"minor-gridline",L:"path"},Y={K:"tick",L:"path"},L={K:"tick",L:"text"},W={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},U=a(18783),V=U.MID_SHIFT,te=U.CAP_SHIFT,ee=U.LINE_SPACING,H=U.OPPOSITE_SIDE,Z=i.exports={};Z.setConvert=a(21994);var G=a(4322),X=a(41675),Q=X.idSort,re=X.isLinked;Z.id2name=X.id2name,Z.name2id=X.name2id,Z.cleanId=X.cleanId,Z.list=X.list,Z.listIds=X.listIds,Z.getFromId=X.getFromId,Z.getFromTrace=X.getFromTrace;var ae=a(71739);Z.getAutoRange=ae.getAutoRange,Z.findExtremes=ae.findExtremes;var ie=1e-4;function se(be){var Ce=(be[1]-be[0])*ie;return[be[0]-Ce,be[1]+Ce]}Z.coerceRef=function(be,Ce,Ge,He,et,Ke){var Ye=He.charAt(He.length-1),nt=Ge._fullLayout._subplots[Ye+"axis"],ct=He+"ref",yt={};return et||(et=nt[0]||(typeof Ke=="string"?Ke:Ke[0])),Ke||(Ke=et),nt=nt.concat(nt.map(function(rt){return rt+" domain"})),yt[ct]={valType:"enumerated",values:nt.concat(Ke?typeof Ke=="string"?[Ke]:Ke:[]),dflt:et},f.coerce(be,Ce,yt,ct)},Z.getRefType=function(be){return be===void 0?be:be==="paper"?"paper":be==="pixel"?"pixel":/( domain)$/.test(be)?"domain":"range"},Z.coercePosition=function(be,Ce,Ge,He,et,Ke){var Ye,nt;if(Z.getRefType(He)!=="range")Ye=f.ensureNumber,nt=Ge(et,Ke);else{var ct=Z.getFromId(Ce,He);nt=Ge(et,Ke=ct.fraction2r(Ke)),Ye=ct.cleanPos}be[et]=Ye(nt)},Z.cleanPosition=function(be,Ce,Ge){return(Ge==="paper"||Ge==="pixel"?f.ensureNumber:Z.getFromId(Ce,Ge).cleanPos)(be)},Z.redrawComponents=function(be,Ce){Ce=Ce||Z.listIds(be);var Ge=be._fullLayout;function He(et,Ke,Ye,nt){for(var ct=d.getComponentMethod(et,Ke),yt={},rt=0;rtGe&&rt2e-6||((Ge-be._forceTick0)/be._minDtick%1+1.000001)%1>2e-6)&&(be._minDtick=0)):be._minDtick=0},Z.saveRangeInitial=function(be,Ce){for(var Ge=Z.list(be,"",!0),He=!1,et=0;et.3*Bt||Nt(Ut)||Nt(It))){var Xt=xt.dtick/2;gt+=gt+Xt.8){var kt=Number(xt.substr(1));zt.exactYears>.8&&kt%12==0?gt=Z.tickIncrement(gt,"M6","reverse")+1.5*E:zt.exactMonths>.8?gt=Z.tickIncrement(gt,"M1","reverse")+15.5*E:gt-=I;var Ot=Z.tickIncrement(gt,xt);if(Ot<=Ut)return Ot}return gt}(Lt,be,jt,nt,et)),Mt=Lt;Mt<=ct;)Mt=Z.tickIncrement(Mt,jt,!1,et);return{start:Ce.c2r(Lt,0,et),end:Ce.c2r(Mt,0,et),size:jt,_dataSpan:ct-nt}},Z.prepMinorTicks=function(be,Ce,Ge){if(!Ce.minor.dtick){delete be.dtick;var He,et=Ce.dtick&&u(Ce._tmin);if(et){var Ke=Z.tickIncrement(Ce._tmin,Ce.dtick,!0);He=[Ce._tmin,.99*Ke+.01*Ce._tmin]}else{var Ye=f.simpleMap(Ce.range,Ce.r2l);He=[Ye[0],.8*Ye[0]+.2*Ye[1]]}if(be.range=f.simpleMap(He,Ce.l2r),be._isMinor=!0,Z.prepTicks(be,Ge),et){var nt=u(Ce.dtick),ct=u(be.dtick),yt=nt?Ce.dtick:+Ce.dtick.substring(1),rt=ct?be.dtick:+be.dtick.substring(1);nt&&ct?Pe(yt,rt)?yt===2*P&&rt===2*E&&(be.dtick=P):yt===2*P&&rt===3*E?be.dtick=P:yt!==P||(Ce._input.minor||{}).nticks?Me(yt/rt,2.5)?be.dtick=yt/2:be.dtick=yt:be.dtick=E:String(Ce.dtick).charAt(0)==="M"?ct?be.dtick="M1":Pe(yt,rt)?yt>=12&&rt===2&&(be.dtick="M3"):be.dtick=Ce.dtick:String(be.dtick).charAt(0)==="L"?String(Ce.dtick).charAt(0)==="L"?Pe(yt,rt)||(be.dtick=Me(yt/rt,2.5)?Ce.dtick/2:Ce.dtick):be.dtick="D1":be.dtick==="D2"&&+Ce.dtick>1&&(be.dtick=1)}be.range=Ce.range}Ce.minor._tick0Init===void 0&&(be.tick0=Ce.tick0)},Z.prepTicks=function(be,Ce){var Ge=f.simpleMap(be.range,be.r2l,void 0,void 0,Ce);if(be.tickmode==="auto"||!be.dtick){var He,et=be.nticks;et||(be.type==="category"||be.type==="multicategory"?(He=be.tickfont?f.bigFont(be.tickfont.size||12):15,et=be._length/He):(He=be._id.charAt(0)==="y"?40:80,et=f.constrain(be._length/He,4,9)+1),be._name==="radialaxis"&&(et*=2)),be.minor&&be.minor.tickmode!=="array"||be.tickmode==="array"&&(et*=100),be._roughDTick=Math.abs(Ge[1]-Ge[0])/et,Z.autoTicks(be,be._roughDTick),be._minDtick>0&&be.dtick<2*be._minDtick&&(be.dtick=be._minDtick,be.tick0=be.l2r(be._forceTick0))}be.ticklabelmode==="period"&&function(Ke){var Ye;function nt(){return!(u(Ke.dtick)||Ke.dtick.charAt(0)!=="M")}var ct=nt(),yt=Z.getTickFormat(Ke);if(yt){var rt=Ke._dtickInit!==Ke.dtick;/%[fLQsSMX]/.test(yt)||(/%[HI]/.test(yt)?(Ye=A,rt&&!ct&&Ke.dtick=(mt?0:1);xt--){var Ut=!xt;xt?(be._dtickInit=be.dtick,be._tick0Init=be.tick0):(be.minor._dtickInit=be.minor.dtick,be.minor._tick0Init=be.minor.tick0);var It=xt?be:f.extendFlat({},be,be.minor);if(Ut?Z.prepMinorTicks(It,be,Ce):Z.prepTicks(It,Ce),It.tickmode!=="array")if(It.tickmode!=="sync"){var zt=se(ct),kt=zt[0],Ot=zt[1],At=u(It.dtick),Nt=et==="log"&&!(At||It.dtick.charAt(0)==="L"),$t=Z.tickFirst(It,Ce);if(xt){if(be._tmin=$t,$t=Ot:qt<=Ot;qt=Z.tickIncrement(qt,Ht,yt,Ke)){if(xt&&Bt++,It.rangebreaks&&!yt){if(qt=Ft)break}if(Lt.length>Yt||qt===Zt)break;Zt=qt;var sn={value:qt};xt?(Nt&&qt!==(0|qt)&&(sn.simpleLabel=!0),Ye>1&&Bt%Ye&&(sn.skipLabel=!0),Lt.push(sn)):(sn.minor=!0,gt.push(sn))}}else Lt=[],Mt=K(be);else xt?(Lt=[],Mt=ne(be)):(gt=[],jt=ne(be))}if(mt&&!(be.minor.ticks==="inside"&&be.ticks==="outside"||be.minor.ticks==="outside"&&be.ticks==="inside")){for(var xn=Lt.map(function(Tr){return Tr.value}),mn=[],dn=0;dn0?(Ga=Cr-1,jn=Cr):(Ga=Cr,jn=Cr);var fn,Xn=Tr[Ga].value,ea=Tr[jn].value,Un=Math.abs(ea-Xn),Kn=Jr||Un,Yn=0;Kn>=T?Yn=Un>=T&&Un<=_?Un:x:Jr===S&&Kn>=C?Yn=Un>=C&&Un<=k?Un:S:Kn>=D?Yn=Un>=D&&Un<=M?Un:O:Jr===P&&Kn>=P?Yn=P:Kn>=E?Yn=E:Jr===I&&Kn>=I?Yn=I:Jr===A&&Kn>=A&&(Yn=A),Yn>=Un&&(Yn=Un,fn=!0);var er=Gr+Yn;if(Ki.rangebreaks&&Yn>0){for(var la=0,Wr=0;Wr<84;Wr++){var Yr=(Wr+.5)/84;Ki.maskBreaks(Gr*(1-Yr)+Yr*er)!==B&&la++}(Yn*=la/84)||(Tr[Cr].drop=!0),fn&&Un>P&&(Yn=Un)}(Yn>0||Cr===0)&&(Tr[Cr].periodX=Gr+Yn/2)}}(Lt,be,be._definedDelta),be.rangebreaks){var tn=be._id.charAt(0)==="y",Fn=1;be.tickmode==="auto"&&(Fn=be.tickfont?be.tickfont.size:12);var Rn=NaN;for(Ge=Lt.length-1;Ge>-1;Ge--)if(Lt[Ge].drop)Lt.splice(Ge,1);else{Lt[Ge].value=Rt(Lt[Ge].value,be);var Bn=be.c2p(Lt[Ge].value);(tn?Rn>Bn-Fn:RnFt||WnFt&&(En.periodX=Ft),Wn10||He.substr(5)!=="01-01"?be._tickround="d":be._tickround=+Ce.substr(1)%12==0?"y":"m";else if(Ce>=E&&et<=10||Ce>=15*E)be._tickround="d";else if(Ce>=F&&et<=16||Ce>=A)be._tickround="M";else if(Ce>=j&&et<=19||Ce>=F)be._tickround="S";else{var Ke=be.l2r(Ge+Ce).replace(/^-/,"").length;be._tickround=Math.max(et,Ke)-20,be._tickround<0&&(be._tickround=4)}}else if(u(Ce)||Ce.charAt(0)==="L"){var Ye=be.range.map(be.r2d||Number);u(Ce)||(Ce=Number(Ce.substr(1))),be._tickround=2-Math.floor(Math.log(Ce)/Math.LN10+.01);var nt=Math.max(Math.abs(Ye[0]),Math.abs(Ye[1])),ct=Math.floor(Math.log(nt)/Math.LN10+.01),yt=be.minexponent===void 0?3:be.minexponent;Math.abs(ct)>yt&&(Fe(be.exponentformat)&&!Be(ct)?be._tickexponent=3*Math.round((ct-1)/3):be._tickexponent=ct)}else be._tickround=null}function Le(be,Ce,Ge){var He=be.tickfont||{};return{x:Ce,dx:0,dy:0,text:Ge||"",fontSize:He.size,font:He.family,fontColor:He.color}}Z.autoTicks=function(be,Ce,Ge){var He;function et(Ft){return Math.pow(Ft,Math.floor(Math.log(Ce)/Math.LN10))}if(be.type==="date"){be.tick0=f.dateTick0(be.calendar,0);var Ke=2*Ce;if(Ke>x)Ce/=x,He=et(10),be.dtick="M"+12*Ae(Ce,He,de);else if(Ke>O)Ce/=O,be.dtick="M"+Ae(Ce,1,_e);else if(Ke>E){if(be.dtick=Ae(Ce,E,be._hasDayOfWeekBreaks?[1,2,7,14]:pe),!Ge){var Ye=Z.getTickFormat(be),nt=be.ticklabelmode==="period";nt&&(be._rawTick0=be.tick0),/%[uVW]/.test(Ye)?be.tick0=f.dateTick0(be.calendar,2):be.tick0=f.dateTick0(be.calendar,1),nt&&(be._dowTick0=be.tick0)}}else Ke>A?be.dtick=Ae(Ce,A,_e):Ke>F?be.dtick=Ae(Ce,F,ue):Ke>j?be.dtick=Ae(Ce,j,ue):(He=et(10),be.dtick=Ae(Ce,He,de))}else if(be.type==="log"){be.tick0=0;var ct=f.simpleMap(be.range,be.r2l);if(be._isMinor&&(Ce*=1.5),Ce>.7)be.dtick=Math.ceil(Ce);else if(Math.abs(ct[1]-ct[0])<1){var yt=1.5*Math.abs((ct[1]-ct[0])/Ce);Ce=Math.abs(Math.pow(10,ct[1])-Math.pow(10,ct[0]))/yt,He=et(10),be.dtick="L"+Ae(Ce,He,de)}else be.dtick=Ce>.3?"D2":"D1"}else be.type==="category"||be.type==="multicategory"?(be.tick0=0,be.dtick=Math.ceil(Math.max(Ce,1))):ht(be)?(be.tick0=0,He=1,be.dtick=Ae(Ce,He,Te)):(be.tick0=0,He=et(10),be.dtick=Ae(Ce,He,de));if(be.dtick===0&&(be.dtick=1),!u(be.dtick)&&typeof be.dtick!="string"){var rt=be.dtick;throw be.dtick=1,"ax.dtick error: "+String(rt)}},Z.tickIncrement=function(be,Ce,Ge,He){var et=Ge?-1:1;if(u(Ce))return f.increment(be,et*Ce);var Ke=Ce.charAt(0),Ye=et*Number(Ce.substr(1));if(Ke==="M")return f.incrementMonth(be,Ye,He);if(Ke==="L")return Math.log(Math.pow(10,be)+Ye)/Math.LN10;if(Ke==="D"){var nt=Ce==="D2"?ye:xe,ct=be+.01*et,yt=f.roundUp(f.mod(ct,1),nt,Ge);return Math.floor(ct)+Math.log(s.round(Math.pow(10,yt),1))/Math.LN10}throw"unrecognized dtick "+String(Ce)},Z.tickFirst=function(be,Ce){var Ge=be.r2l||Number,He=f.simpleMap(be.range,Ge,void 0,void 0,Ce),et=He[1] ")}else gt._prevDateHead=kt,Ot+="
"+kt;mt.text=Ot}(be,Ke,Ge,nt):ct==="log"?function(gt,mt,xt,Ut,It){var zt=gt.dtick,kt=mt.x,Ot=gt.tickformat,At=typeof zt=="string"&&zt.charAt(0);if(It==="never"&&(It=""),Ut&&At!=="L"&&(zt="L3",At="L"),Ot||At==="L")mt.text=Ue(Math.pow(10,kt),gt,It,Ut);else if(u(zt)||At==="D"&&f.mod(kt+.01,1)<.1){var Nt=Math.round(kt),$t=Math.abs(Nt),Bt=gt.exponentformat;Bt==="power"||Fe(Bt)&&Be(Nt)?(mt.text=Nt===0?1:Nt===1?"10":"10"+(Nt>1?"":z)+$t+"",mt.fontSize*=1.25):(Bt==="e"||Bt==="E")&&$t>2?mt.text="1"+Bt+(Nt>0?"+":z)+$t:(mt.text=Ue(Math.pow(10,kt),gt,"","fakehover"),zt==="D1"&>._id.charAt(0)==="y"&&(mt.dy-=mt.fontSize/6))}else{if(At!=="D")throw"unrecognized dtick "+String(zt);mt.text=String(Math.round(Math.pow(10,f.mod(kt,1)))),mt.fontSize*=.75}if(gt.dtick==="D1"){var Xt=String(mt.text).charAt(0);Xt!=="0"&&Xt!=="1"||(gt._id.charAt(0)==="y"?mt.dx-=mt.fontSize/4:(mt.dy+=mt.fontSize/2,mt.dx+=(gt.range[1]>gt.range[0]?1:-1)*mt.fontSize*(kt<0?.5:.25)))}}(be,Ke,0,nt,Mt):ct==="category"?function(gt,mt){var xt=gt._categories[Math.round(mt.x)];xt===void 0&&(xt=""),mt.text=String(xt)}(be,Ke):ct==="multicategory"?function(gt,mt,xt){var Ut=Math.round(mt.x),It=gt._categories[Ut]||[],zt=It[1]===void 0?"":String(It[1]),kt=It[0]===void 0?"":String(It[0]);xt?mt.text=kt+" - "+zt:(mt.text=zt,mt.text2=kt)}(be,Ke,Ge):ht(be)?function(gt,mt,xt,Ut,It){if(gt.thetaunit!=="radians"||xt)mt.text=Ue(mt.x,gt,It,Ut);else{var zt=mt.x/180;if(zt===0)mt.text="0";else{var kt=function(At){function Nt(Zt,qt){return Math.abs(Zt-qt)<=1e-6}var $t=function(Zt){for(var qt=1;!Nt(Math.round(Zt*qt)/qt,Zt);)qt*=10;return qt}(At),Bt=At*$t,Xt=Math.abs(function Zt(qt,Ht){return Nt(Ht,0)?qt:Zt(Ht,qt%Ht)}(Bt,$t));return[Math.round(Bt/Xt),Math.round($t/Xt)]}(zt);if(kt[1]>=100)mt.text=Ue(f.deg2rad(mt.x),gt,It,Ut);else{var Ot=mt.x<0;kt[1]===1?kt[0]===1?mt.text="π":mt.text=kt[0]+"π":mt.text=["",kt[0],"","⁄","",kt[1],"","π"].join(""),Ot&&(mt.text=z+mt.text)}}}}(be,Ke,Ge,nt,Mt):function(gt,mt,xt,Ut,It){It==="never"?It="":gt.showexponent==="all"&&Math.abs(mt.x/gt.dtick)<1e-6&&(It="hide"),mt.text=Ue(mt.x,gt,It,Ut)}(be,Ke,0,nt,Mt),He||(be.tickprefix&&!Yt(be.showtickprefix)&&(Ke.text=be.tickprefix+Ke.text),be.ticksuffix&&!Yt(be.showticksuffix)&&(Ke.text+=be.ticksuffix)),be.labelalias&&be.labelalias.hasOwnProperty(Ke.text)){var jt=be.labelalias[Ke.text];typeof jt=="string"&&(Ke.text=jt)}if(be.tickson==="boundaries"||be.showdividers){var Lt=function(gt){var mt=be.l2p(gt);return mt>=0&&mt<=be._length?gt:null};Ke.xbnd=[Lt(Ke.x-.5),Lt(Ke.x+be.dtick-.5)]}return Ke},Z.hoverLabelText=function(be,Ce,Ge){Ge&&(be=f.extendFlat({},be,{hoverformat:Ge}));var He=Array.isArray(Ce)?Ce[0]:Ce,et=Array.isArray(Ce)?Ce[1]:void 0;if(et!==void 0&&et!==He)return Z.hoverLabelText(be,He,Ge)+" - "+Z.hoverLabelText(be,et,Ge);var Ke=be.type==="log"&&He<=0,Ye=Z.tickText(be,be.c2l(Ke?-He:He),"hover").text;return Ke?He===0?"0":z+Ye:Ye};var $e=["f","p","n","μ","m","","k","M","G","T"];function Fe(be){return be==="SI"||be==="B"}function Be(be){return be>14||be<-15}function Ue(be,Ce,Ge,He){var et=be<0,Ke=Ce._tickround,Ye=Ge||Ce.exponentformat||"B",nt=Ce._tickexponent,ct=Z.getTickFormat(Ce),yt=Ce.separatethousands;if(He){var rt={exponentformat:Ye,minexponent:Ce.minexponent,dtick:Ce.showexponent==="none"?Ce.dtick:u(be)&&Math.abs(be)||1,range:Ce.showexponent==="none"?Ce.range.map(Ce.r2d):[0,be||1]};Re(rt),Ke=(Number(rt._tickround)||0)+4,nt=rt._tickexponent,Ce.hoverformat&&(ct=Ce.hoverformat)}if(ct)return Ce._numFormat(ct)(be).replace(/-/g,z);var Ft,Yt=Math.pow(10,-Ke)/2;if(Ye==="none"&&(nt=0),(be=Math.abs(be))"+Ft+"":Ye==="B"&&nt===9?be+="B":Fe(Ye)&&(be+=$e[nt/3+5])),et?z+be:be}function qe(be,Ce){if(be){var Ge=Object.keys(W).reduce(function(He,et){return Ce.indexOf(et)!==-1&&W[et].forEach(function(Ke){He[Ke]=1}),He},{});Object.keys(be).forEach(function(He){Ge[He]||(He.length===1?be[He]=0:delete be[He])})}}function Xe(be,Ce){for(var Ge=[],He={},et=0;et1&&Ge=et.min&&be=0,mt=rt(Yt,Mt[1])<=0;return(jt||gt)&&(Lt||mt)}if(be.tickformatstops&&be.tickformatstops.length>0)switch(be.type){case"date":case"linear":for(Ce=0;Ce=Ye(et)))){Ge=He;break}break;case"log":for(Ce=0;Ce=0&&et.unshift(et.splice(yt,1).shift())}});var Ye={false:{left:0,right:0}};return f.syncOrAsync(et.map(function(nt){return function(){if(nt){var ct=Z.getFromId(be,nt);Ge||(Ge={}),Ge.axShifts=Ye,Ge.overlayingShiftedAx=Ke;var yt=Z.drawOne(be,ct,Ge);return ct._shiftPusher&&_t(ct,ct._fullDepth||0,Ye,!0),ct._r=ct.range.slice(),ct._rl=f.simpleMap(ct._r,ct.r2l),yt}}}))},Z.drawOne=function(be,Ce,Ge){var He,et,Ke,Ye=(Ge=Ge||{}).axShifts||{},nt=Ge.overlayingShiftedAx||[];Ce.setScale();var ct=be._fullLayout,yt=Ce._id,rt=yt.charAt(0),Ft=Z.counterLetter(yt),Yt=ct._plots[Ce._mainSubplot];if(Yt){if(Ce._shiftPusher=Ce.autoshift||nt.indexOf(Ce._id)!==-1||nt.indexOf(Ce.overlaying)!==-1,Ce._shiftPusher&Ce.anchor==="free"){var Mt=Ce.linewidth/2||0;Ce.ticks==="inside"&&(Mt+=Ce.ticklen),_t(Ce,Mt,Ye,!0),_t(Ce,Ce.shift||0,Ye,!1)}Ge.skipTitle===!0&&Ce._shift!==void 0||(Ce._shift=function(jn,fn){return jn.autoshift?fn[jn.overlaying][jn.side]:jn.shift||0}(Ce,Ye));var jt=Yt[rt+"axislayer"],Lt=Ce._mainLinePosition,gt=Lt+=Ce._shift,mt=Ce._mainMirrorPosition,xt=Ce._vals=Z.calcTicks(Ce),Ut=[Ce.mirror,gt,mt].join("_");for(He=0;He0?jn.bottom-Yn:0,er))));var la=0,Wr=0;if(Ce._shiftPusher&&(la=Math.max(er,jn.height>0?Un==="l"?Yn-jn.left:jn.right-Yn:0),Ce.title.text!==ct._dfltTitle[rt]&&(Wr=(Ce._titleStandoff||0)+(Ce._titleScoot||0),Un==="l"&&(Wr+=dt(Ce))),Ce._fullDepth=Math.max(la,Wr)),Ce.automargin){fn={x:0,y:0,r:0,l:0,t:0,b:0};var Yr=[0,1],ii=typeof Ce._shift=="number"?Ce._shift:0;if(rt==="x"){if(Un==="b"?fn[Un]=Ce._depth:(fn[Un]=Ce._depth=Math.max(jn.width>0?Yn-jn.top:0,er),Yr.reverse()),jn.width>0){var ko=jn.right-(Ce._offset+Ce._length);ko>0&&(fn.xr=1,fn.r=ko);var Ya=Ce._offset-jn.left;Ya>0&&(fn.xl=0,fn.l=Ya)}}else if(Un==="l"?(Ce._depth=Math.max(jn.height>0?Yn-jn.left:0,er),fn[Un]=Ce._depth-ii):(Ce._depth=Math.max(jn.height>0?jn.right-Yn:0,er),fn[Un]=Ce._depth+ii,Yr.reverse()),jn.height>0){var Ln=jn.bottom-(Ce._offset+Ce._length);Ln>0&&(fn.yb=0,fn.b=Ln);var ta=Ce._offset-jn.top;ta>0&&(fn.yt=1,fn.t=ta)}fn[Ft]=Ce.anchor==="free"?Ce.position:Ce._anchorAxis.domain[Yr[0]],Ce.title.text!==ct._dfltTitle[rt]&&(fn[Un]+=dt(Ce)+(Ce.title.standoff||0)),Ce.mirror&&Ce.anchor!=="free"&&((Xn={x:0,y:0,r:0,l:0,t:0,b:0})[Kn]=Ce.linewidth,Ce.mirror&&Ce.mirror!==!0&&(Xn[Kn]+=er),Ce.mirror===!0||Ce.mirror==="ticks"?Xn[Ft]=Ce._anchorAxis.domain[Yr[1]]:Ce.mirror!=="all"&&Ce.mirror!=="allticks"||(Xn[Ft]=[Ce._counterDomainMin,Ce._counterDomainMax][Yr[1]]))}Gr&&(ea=d.getComponentMethod("rangeslider","autoMarginOpts")(be,Ce)),typeof Ce.automargin=="string"&&(qe(fn,Ce.automargin),qe(Xn,Ce.automargin)),c.autoMargin(be,ze(Ce),fn),c.autoMargin(be,tt(Ce),Xn),c.autoMargin(be,it(Ce),ea)}),f.syncOrAsync(Jr)}}function Ga(jn){var fn=yt+(jn||"tick");return It[fn]||(It[fn]=function(Xn,ea){var Un,Kn,Yn,er;return Xn._selections[ea].size()?(Un=1/0,Kn=-1/0,Yn=1/0,er=-1/0,Xn._selections[ea].each(function(){var la=We(this),Wr=v.bBox(la.node().parentNode);Un=Math.min(Un,Wr.top),Kn=Math.max(Kn,Wr.bottom),Yn=Math.min(Yn,Wr.left),er=Math.max(er,Wr.right)})):(Un=0,Kn=0,Yn=0,er=0),{top:Un,bottom:Kn,left:Yn,right:er,height:Kn-Un,width:er-Yn}}(Ce,fn)),It[fn]}},Z.getTickSigns=function(be,Ce){var Ge=be._id.charAt(0),He={x:"top",y:"right"}[Ge],et=be.side===He?1:-1,Ke=[-1,1,et,-et];return(Ce?(be.minor||{}).ticks:be.ticks)!=="inside"==(Ge==="x")&&(Ke=Ke.map(function(Ye){return-Ye})),be.side&&Ke.push({l:-1,t:-1,r:1,b:1}[be.side.charAt(0)]),Ke},Z.makeTransTickFn=function(be){return be._id.charAt(0)==="x"?function(Ce){return p(be._offset+be.l2p(Ce.x),0)}:function(Ce){return p(0,be._offset+be.l2p(Ce.x))}},Z.makeTransTickLabelFn=function(be){var Ce=function(et){var Ke=et.ticklabelposition||"",Ye=function(mt){return Ke.indexOf(mt)!==-1},nt=Ye("top"),ct=Ye("left"),yt=Ye("right"),rt=Ye("bottom"),Ft=Ye("inside"),Yt=rt||ct||nt||yt;if(!Yt&&!Ft)return[0,0];var Mt=et.side,jt=Yt?(et.tickwidth||0)/2:0,Lt=3,gt=et.tickfont?et.tickfont.size:12;return(rt||nt)&&(jt+=gt*te,Lt+=(et.linewidth||0)/2),(ct||yt)&&(jt+=(et.linewidth||0)/2,Lt+=3),Ft&&Mt==="top"&&(Lt-=gt*(1-te)),(ct||nt)&&(jt=-jt),Mt!=="bottom"&&Mt!=="right"||(Lt=-Lt),[Yt?jt:0,Ft?Lt:0]}(be),Ge=Ce[0],He=Ce[1];return be._id.charAt(0)==="x"?function(et){return p(Ge+be._offset+be.l2p(ot(et)),He)}:function(et){return p(He,Ge+be._offset+be.l2p(ot(et)))}},Z.makeTickPath=function(be,Ce,Ge,He){He||(He={});var et=He.minor;if(et&&!be.minor)return"";var Ke=He.len!==void 0?He.len:et?be.minor.ticklen:be.ticklen,Ye=be._id.charAt(0),nt=(be.linewidth||1)/2;return Ye==="x"?"M0,"+(Ce+nt*Ge)+"v"+Ke*Ge:"M"+(Ce+nt*Ge)+",0h"+Ke*Ge},Z.makeLabelFns=function(be,Ce,Ge){var He=be.ticklabelposition||"",et=function(Bt){return He.indexOf(Bt)!==-1},Ke=et("top"),Ye=et("left"),nt=et("right"),ct=et("bottom")||Ye||Ke||nt,yt=et("inside"),rt=He==="inside"&&be.ticks==="inside"||!yt&&be.ticks==="outside"&&be.tickson!=="boundaries",Ft=0,Yt=0,Mt=rt?be.ticklen:0;if(yt?Mt*=-1:ct&&(Mt=0),rt&&(Ft+=Mt,Ge)){var jt=f.deg2rad(Ge);Ft=Mt*Math.cos(jt)+1,Yt=Mt*Math.sin(jt)}be.showticklabels&&(rt||be.showline)&&(Ft+=.2*be.tickfont.size);var Lt,gt,mt,xt,Ut,It={labelStandoff:Ft+=(be.linewidth||1)/2*(yt?-1:1),labelShift:Yt},zt=0,kt=be.side,Ot=be._id.charAt(0),At=be.tickangle;if(Ot==="x")xt=(Ut=!yt&&kt==="bottom"||yt&&kt==="top")?1:-1,yt&&(xt*=-1),Lt=Yt*xt,gt=Ce+Ft*xt,mt=Ut?1:-.2,Math.abs(At)===90&&(yt?mt+=V:mt=At===-90&&kt==="bottom"?te:At===90&&kt==="top"?V:.5,zt=V/2*(At/90)),It.xFn=function(Bt){return Bt.dx+Lt+zt*Bt.fontSize},It.yFn=function(Bt){return Bt.dy+gt+Bt.fontSize*mt},It.anchorFn=function(Bt,Xt){if(ct){if(Ye)return"end";if(nt)return"start"}return u(Xt)&&Xt!==0&&Xt!==180?Xt*xt<0!==yt?"end":"start":"middle"},It.heightFn=function(Bt,Xt,Zt){return Xt<-60||Xt>60?-.5*Zt:be.side==="top"!==yt?-Zt:0};else if(Ot==="y"){if(xt=(Ut=!yt&&kt==="left"||yt&&kt==="right")?1:-1,yt&&(xt*=-1),Lt=Ft,gt=Yt*xt,mt=0,yt||Math.abs(At)!==90||(mt=At===-90&&kt==="left"||At===90&&kt==="right"?te:.5),yt){var Nt=u(At)?+At:0;if(Nt!==0){var $t=f.deg2rad(Nt);zt=Math.abs(Math.sin($t))*te*xt,mt=0}}It.xFn=function(Bt){return Bt.dx+Ce-(Lt+Bt.fontSize*mt)*xt+zt*Bt.fontSize},It.yFn=function(Bt){return Bt.dy+gt+Bt.fontSize*V},It.anchorFn=function(Bt,Xt){return u(Xt)&&Math.abs(Xt)===90?"middle":Ut?"end":"start"},It.heightFn=function(Bt,Xt,Zt){return be.side==="right"&&(Xt*=-1),Xt<-30?-Zt:Xt<30?-.5*Zt:0}}return It},Z.drawTicks=function(be,Ce,Ge){Ge=Ge||{};var He=Ce._id+"tick",et=[].concat(Ce.minor&&Ce.minor.ticks?Ge.vals.filter(function(Ye){return Ye.minor&&!Ye.noTick}):[]).concat(Ce.ticks?Ge.vals.filter(function(Ye){return!Ye.minor&&!Ye.noTick}):[]),Ke=Ge.layer.selectAll("path."+He).data(et,st);Ke.exit().remove(),Ke.enter().append("path").classed(He,1).classed("ticks",1).classed("crisp",Ge.crisp!==!1).each(function(Ye){return b.stroke(s.select(this),Ye.minor?Ce.minor.tickcolor:Ce.tickcolor)}).style("stroke-width",function(Ye){return v.crispRound(be,Ye.minor?Ce.minor.tickwidth:Ce.tickwidth,1)+"px"}).attr("d",Ge.path).style("display",null),Wt(Ce,[Y]),Ke.attr("transform",Ge.transFn)},Z.drawGrid=function(be,Ce,Ge){if(Ge=Ge||{},Ce.tickmode!=="sync"){var He=Ce._id+"grid",et=Ce.minor&&Ce.minor.showgrid,Ke=et?Ge.vals.filter(function(mt){return mt.minor}):[],Ye=Ce.showgrid?Ge.vals.filter(function(mt){return!mt.minor}):[],nt=Ge.counterAxis;if(nt&&Z.shouldShowZeroLine(be,Ce,nt))for(var ct=Ce.tickmode==="array",yt=0;yt=0;jt--){var Lt=jt?Yt:Mt;if(Lt){var gt=Lt.selectAll("path."+He).data(jt?Ye:Ke,st);gt.exit().remove(),gt.enter().append("path").classed(He,1).classed("crisp",Ge.crisp!==!1),gt.attr("transform",Ge.transFn).attr("d",Ge.path).each(function(mt){return b.stroke(s.select(this),mt.minor?Ce.minor.gridcolor:Ce.gridcolor||"#ddd")}).style("stroke-dasharray",function(mt){return v.dashStyle(mt.minor?Ce.minor.griddash:Ce.griddash,mt.minor?Ce.minor.gridwidth:Ce.gridwidth)}).style("stroke-width",function(mt){return(mt.minor?Ft:Ce._gw)+"px"}).style("display",null),typeof Ge.path=="function"&>.attr("d",Ge.path)}}Wt(Ce,[R,q])}},Z.drawZeroLine=function(be,Ce,Ge){Ge=Ge||Ge;var He=Ce._id+"zl",et=Z.shouldShowZeroLine(be,Ce,Ge.counterAxis),Ke=Ge.layer.selectAll("path."+He).data(et?[{x:0,id:Ce._id}]:[]);Ke.exit().remove(),Ke.enter().append("path").classed(He,1).classed("zl",1).classed("crisp",Ge.crisp!==!1).each(function(){Ge.layer.selectAll("path").sort(function(Ye,nt){return Q(Ye.id,nt.id)})}),Ke.attr("transform",Ge.transFn).attr("d",Ge.path).call(b.stroke,Ce.zerolinecolor||b.defaultLine).style("stroke-width",v.crispRound(be,Ce.zerolinewidth,Ce._gw||1)+"px").style("display",null),Wt(Ce,[N])},Z.drawLabels=function(be,Ce,Ge){Ge=Ge||{};var He=be._fullLayout,et=Ce._id,Ke=et.charAt(0),Ye=Ge.cls||et+"tick",nt=Ge.vals.filter(function(xt){return xt.text}),ct=Ge.labelFns,yt=Ge.secondary?0:Ce.tickangle,rt=(Ce._prevTickAngles||{})[Ye],Ft=Ge.layer.selectAll("g."+Ye).data(Ce.showticklabels?nt:[],st),Yt=[];function Mt(xt,Ut){xt.each(function(It){var zt=s.select(this),kt=zt.select(".text-math-group"),Ot=ct.anchorFn(It,Ut),At=Ge.transFn.call(zt.node(),It)+(u(Ut)&&+Ut!=0?" rotate("+Ut+","+ct.xFn(It)+","+(ct.yFn(It)-It.fontSize/2)+")":""),Nt=m.lineCount(zt),$t=ee*It.fontSize,Bt=ct.heightFn(It,u(Ut)?+Ut:0,(Nt-1)*$t);if(Bt&&(At+=p(0,Bt)),kt.empty()){var Xt=zt.select("text");Xt.attr({transform:At,"text-anchor":Ot}),Xt.style("opacity",1),Ce._adjustTickLabelsOverflow&&Ce._adjustTickLabelsOverflow()}else{var Zt=v.bBox(kt.node()).width*{end:-.5,start:.5}[Ot];kt.attr("transform",At+p(Zt,0))}})}Ft.enter().append("g").classed(Ye,1).append("text").attr("text-anchor","middle").each(function(xt){var Ut=s.select(this),It=be._promises.length;Ut.call(m.positionText,ct.xFn(xt),ct.yFn(xt)).call(v.font,xt.font,xt.fontSize,xt.fontColor).text(xt.text).call(m.convertToTspans,be),be._promises[It]?Yt.push(be._promises.pop().then(function(){Mt(Ut,yt)})):Mt(Ut,yt)}),Wt(Ce,[L]),Ft.exit().remove(),Ge.repositionOnUpdate&&Ft.each(function(xt){s.select(this).select("text").call(m.positionText,ct.xFn(xt),ct.yFn(xt))}),Ce._adjustTickLabelsOverflow=function(){var xt=Ce.ticklabeloverflow;if(xt&&xt!=="allow"){var Ut=xt.indexOf("hide")!==-1,It=Ce._id.charAt(0)==="x",zt=0,kt=It?be._fullLayout.width:be._fullLayout.height;if(xt.indexOf("domain")!==-1){var Ot=f.simpleMap(Ce.range,Ce.r2l);zt=Ce.l2p(Ot[0])+Ce._offset,kt=Ce.l2p(Ot[1])+Ce._offset}var At=Math.min(zt,kt),Nt=Math.max(zt,kt),$t=Ce.side,Bt=1/0,Xt=-1/0;for(var Zt in Ft.each(function(sn){var xn=s.select(this);if(xn.select(".text-math-group").empty()){var mn=v.bBox(xn.node()),dn=0;It?(mn.right>Nt||mn.leftNt||mn.top+(Ce.tickangle?0:sn.fontSize/4)Ce["_visibleLabelMin_"+Ot._id]?Ht.style("display","none"):Nt.K!=="tick"||At||Ht.style("display",null)})})})})},Mt(Ft,rt+1?rt:yt);var jt=null;Ce._selections&&(Ce._selections[Ye]=Ft);var Lt=[function(){return Yt.length&&Promise.all(Yt)}];Ce.automargin&&He._redrawFromAutoMarginCount&&rt===90?(jt=90,Lt.push(function(){Mt(Ft,rt)})):Lt.push(function(){if(Mt(Ft,yt),nt.length&&Ke==="x"&&!u(yt)&&(Ce.type!=="log"||String(Ce.dtick).charAt(0)!=="D")){jt=0;var xt,Ut=0,It=[];if(Ft.each(function(xn){Ut=Math.max(Ut,xn.fontSize);var mn=Ce.l2p(xn.x),dn=We(this),gn=v.bBox(dn.node());It.push({top:0,bottom:10,height:10,left:mn-gn.width/2,right:mn+gn.width/2+2,width:gn.width+2})}),Ce.tickson!=="boundaries"&&!Ce.showdividers||Ge.secondary){var zt=nt.length,kt=Math.abs((nt[zt-1].x-nt[0].x)*Ce._m)/(zt-1),Ot=Ce.ticklabelposition||"",At=function(xn){return Ot.indexOf(xn)!==-1},Nt=At("top"),$t=At("left"),Bt=At("right"),Xt=At("bottom")||$t||Nt||Bt?(Ce.tickwidth||0)+6:0,Zt=kt<2.5*Ut||Ce.type==="multicategory"||Ce._name==="realaxis";for(xt=0;xt1)for(nt=1;nt2*E}(w,h))return"date";var S=y.autotypenumbers!=="strict";return function(C,M){for(var O=C.length,D=b(O),P=0,E=0,I={},A=0;A2*P}(w,S)?"category":function(C,M){for(var O=C.length,D=0;D=2){var I,A,F="";if(E.length===2){for(I=0;I<2;I++)if(A=C(E[I])){F=x;break}}var j=P("pattern",F);if(j===x)for(I=0;I<2;I++)(A=C(E[I]))&&(O.bounds[I]=E[I]=A-1);if(j)for(I=0;I<2;I++)switch(A=E[I],j){case x:if(!s(A)||(A=+A)!==Math.floor(A)||A<0||A>=7)return void(O.enabled=!1);O.bounds[I]=E[I]=A;break;case T:if(!s(A)||(A=+A)<0||A>24)return void(O.enabled=!1);O.bounds[I]=E[I]=A}if(D.autorange===!1){var z=D.range;if(z[0]z[1])return void(O.enabled=!1)}else if(E[0]>z[0]&&E[1]m?1:-1:+(d.substr(1)||1)-+(f.substr(1)||1)},o.ref2id=function(d){return!!/^[xyz]/.test(d)&&d.split(" ")[0]},o.isLinked=function(d,f){return c(f,d._axisMatchGroups)||c(f,d._axisConstraintGroups)}},15258:function(i){i.exports=function(o,a,s,u){if(a.type==="category"){var c,d=o.categoryarray,f=Array.isArray(d)&&d.length>0;f&&(c="array");var p,m=s("categoryorder",c);m==="array"&&(p=s("categoryarray")),f||m!=="array"||(m=a.categoryorder="trace"),m==="trace"?a._initialCategories=[]:m==="array"?a._initialCategories=p.slice():(p=function(g,b){var v,h,y,w=b.dataAttr||g._id.charAt(0),_={};if(b.axData)v=b.axData;else for(v=[],h=0;hC?M.substr(C):O.substr(S))+D:M+O+T*k:D}function _(T,k){for(var S=k._size,C=S.h/S.w,M={},O=Object.keys(T),D=0;Dm*z)||q){for(S=0;SG&&aeH&&(H=ae);E/=(H-ee)/(2*Z),ee=O.l2r(ee),H=O.l2r(H),O.range=O._input.range=U=0?Math.min(ae,.9):1/(1/Math.max(ae,-.3)+3.222))}function U(ae,ie,se,he,Se){return ae.append("path").attr("class","zoombox").style({fill:ie>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",m(se,he)).attr("d",Se+"Z")}function V(ae,ie,se){return ae.append("path").attr("class","zoombox-corners").style({fill:b.background,stroke:b.defaultLine,"stroke-width":1,opacity:0}).attr("transform",m(ie,se)).attr("d","M0,0Z")}function te(ae,ie,se,he,Se,Oe){ae.attr("d",he+"M"+se.l+","+se.t+"v"+se.h+"h"+se.w+"v-"+se.h+"h-"+se.w+"Z"),ee(ae,ie,Se,Oe)}function ee(ae,ie,se,he){se||(ae.transition().style("fill",he>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),ie.transition().style("opacity",1).duration(200))}function H(ae){s.select(ae).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Z(ae){B&&ae.data&&ae._context.showTips&&(u.notifier(u._(ae,"Double-click to zoom back out"),"long"),B=!1)}function G(ae){var ie=Math.floor(Math.min(ae.b-ae.t,ae.r-ae.l,z)/2);return"M"+(ae.l-3.5)+","+(ae.t-.5+ie)+"h3v"+-ie+"h"+ie+"v-3h-"+(ie+3)+"ZM"+(ae.r+3.5)+","+(ae.t-.5+ie)+"h-3v"+-ie+"h"+-ie+"v-3h"+(ie+3)+"ZM"+(ae.r+3.5)+","+(ae.b+.5-ie)+"h-3v"+ie+"h"+-ie+"v3h"+(ie+3)+"ZM"+(ae.l-3.5)+","+(ae.b+.5-ie)+"h3v"+ie+"h"+ie+"v3h-"+(ie+3)+"Z"}function X(ae,ie,se,he,Se){for(var Oe,Pe,Me,ce,we=!1,K={},ne={},de=(Se||{}).xaHash,_e=(Se||{}).yaHash,ue=0;ue=0)At._fullLayout._deactivateShape(At);else{var Nt=At._fullLayout.clickmode;if(H(At),kt!==2||ze||gt(),We)Nt.indexOf("select")>-1&&I(Ot,At,de,_e,ie.id,He),Nt.indexOf("event")>-1&&h.click(At,Ot,ie.id);else if(kt===1&&ze){var $t=Pe?we:ce,Bt=Pe==="s"||Me==="w"?0:1,Xt=$t._name+".range["+Bt+"]",Zt=function(sn,xn){var mn,dn=sn.range[xn],gn=Math.abs(dn-sn.range[1-xn]);return sn.type==="date"?dn:sn.type==="log"?(mn=Math.ceil(Math.max(0,-Math.log(gn)/Math.LN10))+3,c("."+mn+"g")(Math.pow(10,dn))):(mn=Math.floor(Math.log(Math.abs(dn))/Math.LN10)-Math.floor(Math.log(gn)/Math.LN10)+4,c("."+String(mn)+"g")(dn))}($t,Bt),qt="left",Ht="middle";if($t.fixedrange)return;Pe?(Ht=Pe==="n"?"top":"bottom",$t.side==="right"&&(qt="right")):Me==="e"&&(qt="right"),At._context.showAxisRangeEntryBoxes&&s.select(St).call(g.makeEditable,{gd:At,immediate:!0,background:At._fullLayout.paper_bgcolor,text:String(Zt),fill:$t.tickfont?$t.tickfont.color:"#444",horizontalAlign:qt,verticalAlign:Ht}).on("edit",function(sn){var xn=$t.d2r(sn);xn!==void 0&&p.call("_guiRelayout",At,Xt,xn)})}}}function Ye(kt,Ot){if(ae._transitioningWithDuration)return!1;var At=Math.max(0,Math.min(xe,st*kt+Ze)),Nt=Math.max(0,Math.min(ye,dt*Ot+ut)),$t=Math.abs(At-Ze),Bt=Math.abs(Nt-ut);function Xt(){_t="",ht.r=ht.l,ht.t=ht.b,Ce.attr("d","M0,0Z")}if(ht.l=Math.min(Ze,At),ht.r=Math.max(Ze,At),ht.t=Math.min(ut,Nt),ht.b=Math.max(ut,Nt),Te.isSubplotConstrained)$t>z||Bt>z?(_t="xy",$t/xe>Bt/ye?(Bt=$t*ye/xe,ut>Nt?ht.t=ut-Bt:ht.b=ut+Bt):($t=Bt*xe/ye,Ze>At?ht.l=Ze-$t:ht.r=Ze+$t),Ce.attr("d",G(ht))):Xt();else if(Ae.isSubplotConstrained)if($t>z||Bt>z){_t="xy";var Zt=Math.min(ht.l/xe,(ye-ht.b)/ye),qt=Math.max(ht.r/xe,(ye-ht.t)/ye);ht.l=Zt*xe,ht.r=qt*xe,ht.b=(1-Zt)*ye,ht.t=(1-qt)*ye,Ce.attr("d",G(ht))}else Xt();else!Le||Bt0){var Ht;if(Ae.isSubplotConstrained||!Re&&Le.length===1){for(Ht=0;Ht1&&(Nt.maxallowed!==void 0&&Fe===(Nt.range[0]1&&($t.maxallowed!==void 0&&Be===($t.range[0]<$t.range[1]?"n":"s")||$t.minallowed!==void 0&&Be===($t.range[0]<$t.range[1]?"s":"n"))&&(dn=1,en=0),mn||dn){mn||(mn=1),dn||(dn=1);var tn=Nt._offset-gn/mn,Fn=$t._offset-en/dn;At.clipRect.call(v.setTranslate,gn,en).call(v.setScale,mn,dn),At.plot.call(v.setTranslate,tn,Fn).call(v.setScale,1/mn,1/dn),mn===At.xScaleFactor&&dn===At.yScaleFactor||(v.setPointGroupScale(At.zoomScalePts,mn,dn),v.setTextPointsScale(At.zoomScaleTxt,mn,dn)),v.hideOutsideRangePoints(At.clipOnAxisFalseTraces,At),At.xScaleFactor=mn,At.yScaleFactor=dn}}}}function Ut(kt,Ot,At){return kt.fixedrange?0:Fe&&Te.xaHash[kt._id]?Ot:Be&&(Te.isSubplotConstrained?Te.xaHash:Te.yaHash)[kt._id]?At:0}function It(kt,Ot){return Ot?(kt.range=kt._r.slice(),A(kt,Ot),zt(kt,Ot)):0}function zt(kt,Ot,At){return kt._length*(1-Ot)*S[At||kt.constraintoward||"middle"]}return Pe.length*Me.length!=1&&Q(St,function(kt){if(ae._context._scrollZoom.cartesian||ae._fullLayout._enablescrollzoom){if(et(),ae._transitioningWithDuration)return kt.preventDefault(),void kt.stopPropagation();tt(),clearTimeout(rt);var Ot=-kt.deltaY;if(isFinite(Ot)||(Ot=kt.wheelDelta/10),isFinite(Ot)){var At,Nt=Math.exp(-Math.min(Math.max(Ot,-20),20)/200),$t=Yt.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Bt=(kt.clientX-$t.left)/$t.width,Xt=($t.bottom-kt.clientY)/$t.height;if(Fe){for(Me||(Bt=.5),At=0;AtO[1]-.000244140625&&(d.domain=g),u.noneOrAll(c.domain,d.domain,g),d.tickmode==="sync"&&(d.tickmode="auto")}return f("layer"),d}},89426:function(i,o,a){var s=a(59652);i.exports=function(u,c,d,f,p){p||(p={});var m=p.tickSuffixDflt,g=s(u);d("tickprefix")&&d("showtickprefix",g),d("ticksuffix",m)&&d("showticksuffix",g)}},23608:function(i,o,a){var s=a(23074);i.exports=function(u,c,d,f){var p=c._template||{},m=c.type||p.type||"-";d("minallowed"),d("maxallowed");var g,b=d("range"),v=c.getAutorangeDflt(b,f),h=d("autorange",v);!b||(b[0]!==null||b[1]!==null)&&(b[0]!==null&&b[1]!==null||h!=="reversed"&&h!==!0)&&(b[0]===null||h!=="min"&&h!=="max reversed")&&(b[1]===null||h!=="max"&&h!=="min reversed")||(b=void 0,delete c.range,c.autorange=!0,g=!0),g||(h=d("autorange",v=c.getAutorangeDflt(b,f))),h&&(s(d,h,b),m!=="linear"&&m!=="-"||d("rangemode")),c.cleanRange()}},42449:function(i,o,a){var s=a(18783).FROM_BL;i.exports=function(u,c,d){d===void 0&&(d=s[u.constraintoward||"center"]);var f=[u.r2l(u.range[0]),u.r2l(u.range[1])],p=f[0]+(f[1]-f[0])*d;u.range=u._input.range=[u.l2r(p+(f[0]-p)*c),u.l2r(p+(f[1]-p)*c)],u.setScale()}},21994:function(i,o,a){var s=a(39898),u=a(84096).g0,c=a(71828),d=c.numberFormat,f=a(92770),p=c.cleanNumber,m=c.ms2DateTime,g=c.dateTime2ms,b=c.ensureNumber,v=c.isArrayOrTypedArray,h=a(50606),y=h.FP_SAFE,w=h.BADNUM,_=h.LOG_CLIP,x=h.ONEWEEK,T=h.ONEDAY,k=h.ONEHOUR,S=h.ONEMIN,C=h.ONESEC,M=a(41675),O=a(85555),D=O.HOUR_PATTERN,P=O.WEEKDAY_PATTERN;function E(A){return Math.pow(10,A)}function I(A){return A!=null}i.exports=function(A,F){F=F||{};var j=A._id||"x",z=j.charAt(0);function B(X,Q){if(X>0)return Math.log(X)/Math.LN10;if(X<=0&&Q&&A.range&&A.range.length===2){var re=A.range[0],ae=A.range[1];return .5*(re+ae-2*_*Math.abs(re-ae))}return w}function N(X,Q,re,ae){if((ae||{}).msUTC&&f(X))return+X;var ie=g(X,re||A.calendar);if(ie===w){if(!f(X))return w;X=+X;var se=Math.floor(10*c.mod(X+.05,1)),he=Math.round(X-se/10);ie=g(new Date(he))+se/10}return ie}function R(X,Q,re){return m(X,Q,re||A.calendar)}function q(X){return A._categories[Math.round(X)]}function Y(X){if(I(X)){if(A._categoriesMap===void 0&&(A._categoriesMap={}),A._categoriesMap[X]!==void 0)return A._categoriesMap[X];A._categories.push(typeof X=="number"?String(X):X);var Q=A._categories.length-1;return A._categoriesMap[X]=Q,Q}return w}function L(X){if(A._categoriesMap)return A._categoriesMap[X]}function W(X){var Q=L(X);return Q!==void 0?Q:f(X)?+X:void 0}function U(X){return f(X)?+X:L(X)}function V(X,Q,re){return s.round(re+Q*X,2)}function te(X,Q,re){return(X-re)/Q}var ee=function(X){return f(X)?V(X,A._m,A._b):w},H=function(X){return te(X,A._m,A._b)};if(A.rangebreaks){var Z=z==="y";ee=function(X){if(!f(X))return w;var Q=A._rangebreaks.length;if(!Q)return V(X,A._m,A._b);var re=Z;A.range[0]>A.range[1]&&(re=!re);for(var ae=re?-1:1,ie=ae*X,se=0,he=0;heOe)){se=ie<(Se+Oe)/2?he:he+1;break}se=he+1}var Pe=A._B[se]||0;return isFinite(Pe)?V(X,A._m2,Pe):0},H=function(X){var Q=A._rangebreaks.length;if(!Q)return te(X,A._m,A._b);for(var re=0,ae=0;aeA._rangebreaks[ae].pmax&&(re=ae+1);return te(X,A._m2,A._B[re])}}A.c2l=A.type==="log"?B:b,A.l2c=A.type==="log"?E:b,A.l2p=ee,A.p2l=H,A.c2p=A.type==="log"?function(X,Q){return ee(B(X,Q))}:ee,A.p2c=A.type==="log"?function(X){return E(H(X))}:H,["linear","-"].indexOf(A.type)!==-1?(A.d2r=A.r2d=A.d2c=A.r2c=A.d2l=A.r2l=p,A.c2d=A.c2r=A.l2d=A.l2r=b,A.d2p=A.r2p=function(X){return A.l2p(p(X))},A.p2d=A.p2r=H,A.cleanPos=b):A.type==="log"?(A.d2r=A.d2l=function(X,Q){return B(p(X),Q)},A.r2d=A.r2c=function(X){return E(p(X))},A.d2c=A.r2l=p,A.c2d=A.l2r=b,A.c2r=B,A.l2d=E,A.d2p=function(X,Q){return A.l2p(A.d2r(X,Q))},A.p2d=function(X){return E(H(X))},A.r2p=function(X){return A.l2p(p(X))},A.p2r=H,A.cleanPos=b):A.type==="date"?(A.d2r=A.r2d=c.identity,A.d2c=A.r2c=A.d2l=A.r2l=N,A.c2d=A.c2r=A.l2d=A.l2r=R,A.d2p=A.r2p=function(X,Q,re){return A.l2p(N(X,0,re))},A.p2d=A.p2r=function(X,Q,re){return R(H(X),Q,re)},A.cleanPos=function(X){return c.cleanDate(X,w,A.calendar)}):A.type==="category"?(A.d2c=A.d2l=Y,A.r2d=A.c2d=A.l2d=q,A.d2r=A.d2l_noadd=W,A.r2c=function(X){var Q=U(X);return Q!==void 0?Q:A.fraction2r(.5)},A.l2r=A.c2r=b,A.r2l=U,A.d2p=function(X){return A.l2p(A.r2c(X))},A.p2d=function(X){return q(H(X))},A.r2p=A.d2p,A.p2r=H,A.cleanPos=function(X){return typeof X=="string"&&X!==""?X:b(X)}):A.type==="multicategory"&&(A.r2d=A.c2d=A.l2d=q,A.d2r=A.d2l_noadd=W,A.r2c=function(X){var Q=W(X);return Q!==void 0?Q:A.fraction2r(.5)},A.r2c_just_indices=L,A.l2r=A.c2r=b,A.r2l=W,A.d2p=function(X){return A.l2p(A.r2c(X))},A.p2d=function(X){return q(H(X))},A.r2p=A.d2p,A.p2r=H,A.cleanPos=function(X){return Array.isArray(X)||typeof X=="string"&&X!==""?X:b(X)},A.setupMultiCategory=function(X){var Q,re,ae=A._traceIndices,ie=A._matchGroup;if(ie&&A._categories.length===0){for(var se in ie)if(se!==j){var he=F[M.id2name(se)];ae=ae.concat(he._traceIndices)}}var Se=[[0,{}],[0,{}]],Oe=[];for(Q=0;Qhe[1]&&(ae[se?0:1]=re)}},A.cleanRange=function(X,Q){A._cleanRange(X,Q),A.limitRange(X)},A._cleanRange=function(X,Q){Q||(Q={}),X||(X="range");var re,ae,ie=c.nestedProperty(A,X).get();if(ae=(ae=A.type==="date"?c.dfltRange(A.calendar):z==="y"?O.DFLTRANGEY:A._name==="realaxis"?[0,1]:Q.dfltRange||O.DFLTRANGEX).slice(),A.rangemode!=="tozero"&&A.rangemode!=="nonnegative"||(ae[0]=0),ie&&ie.length===2){var se=ie[0]===null,he=ie[1]===null;for(A.type!=="date"||A.autorange||(ie[0]=c.cleanDate(ie[0],w,A.calendar),ie[1]=c.cleanDate(ie[1],w,A.calendar)),re=0;re<2;re++)if(A.type==="date"){if(!c.isDateTime(ie[re],A.calendar)){A[X]=ae;break}if(A.r2l(ie[0])===A.r2l(ie[1])){var Se=c.constrain(A.r2l(ie[0]),c.MIN_MS+1e3,c.MAX_MS-1e3);ie[0]=A.l2r(Se-1e3),ie[1]=A.l2r(Se+1e3);break}}else{if(!f(ie[re])){if(se||he||!f(ie[1-re])){A[X]=ae;break}ie[re]=ie[1-re]*(re?10:.1)}if(ie[re]<-y?ie[re]=-y:ie[re]>y&&(ie[re]=y),ie[0]===ie[1]){var Oe=Math.max(1,Math.abs(1e-6*ie[0]));ie[0]-=Oe,ie[1]+=Oe}}}else c.nestedProperty(A,X).set(ae)},A.setScale=function(X){var Q=F._size;if(A.overlaying){var re=M.getFromId({_fullLayout:F},A.overlaying);A.domain=re.domain}var ae=X&&A._r?"_r":"range",ie=A.calendar;A.cleanRange(ae);var se,he,Se=A.r2l(A[ae][0],ie),Oe=A.r2l(A[ae][1],ie),Pe=z==="y";if(Pe?(A._offset=Q.t+(1-A.domain[1])*Q.h,A._length=Q.h*(A.domain[1]-A.domain[0]),A._m=A._length/(Se-Oe),A._b=-A._m*Oe):(A._offset=Q.l+A.domain[0]*Q.w,A._length=Q.w*(A.domain[1]-A.domain[0]),A._m=A._length/(Oe-Se),A._b=-A._m*Se),A._rangebreaks=[],A._lBreaks=0,A._m2=0,A._B=[],A.rangebreaks&&(A._rangebreaks=A.locateBreaks(Math.min(Se,Oe),Math.max(Se,Oe)),A._rangebreaks.length)){for(se=0;seOe&&(Me=!Me),Me&&A._rangebreaks.reverse();var ce=Me?-1:1;for(A._m2=ce*A._length/(Math.abs(Oe-Se)-A._lBreaks),A._B.push(-A._m2*(Pe?Oe:Se)),se=0;seae&&(ae+=7,ieae&&(ae+=24,ie=re&&ie=re&&X=Ae.min&&(peAe.max&&(Ae.max=xe),ye=!1)}ye&&he.push({min:pe,max:xe})}};for(re=0;reg.duration?(function(){for(var D={},P=0;P rect").call(d.setTranslate,0,0).call(d.setScale,1,1),S.plot.call(d.setTranslate,C._offset,M._offset).call(d.setScale,1,1);var O=S.plot.selectAll(".scatterlayer .trace");O.selectAll(".point").call(d.setPointGroupScale,1,1),O.selectAll(".textpoint").call(d.setTextPointsScale,1,1),O.call(d.hideOutsideRangePoints,S)}function k(S,C){var M=S.plotinfo,O=M.xaxis,D=M.yaxis,P=O._length,E=D._length,I=!!S.xr1,A=!!S.yr1,F=[];if(I){var j=c.simpleMap(S.xr0,O.r2l),z=c.simpleMap(S.xr1,O.r2l),B=j[1]-j[0],N=z[1]-z[0];F[0]=(j[0]*(1-C)+C*z[0]-j[0])/(j[1]-j[0])*P,F[2]=P*(1-C+C*N/B),O.range[0]=O.l2r(j[0]*(1-C)+C*z[0]),O.range[1]=O.l2r(j[1]*(1-C)+C*z[1])}else F[0]=0,F[2]=P;if(A){var R=c.simpleMap(S.yr0,D.r2l),q=c.simpleMap(S.yr1,D.r2l),Y=R[1]-R[0],L=q[1]-q[0];F[1]=(R[1]*(1-C)+C*q[1]-R[1])/(R[0]-R[1])*E,F[3]=E*(1-C+C*L/Y),D.range[0]=O.l2r(R[0]*(1-C)+C*q[0]),D.range[1]=D.l2r(R[1]*(1-C)+C*q[1])}else F[1]=0,F[3]=E;f.drawOne(p,O,{skipTitle:!0}),f.drawOne(p,D,{skipTitle:!0}),f.redrawComponents(p,[O._id,D._id]);var W=I?P/F[2]:1,U=A?E/F[3]:1,V=I?F[0]:0,te=A?F[1]:0,ee=I?F[0]/F[2]*P:0,H=A?F[1]/F[3]*E:0,Z=O._offset-ee,G=D._offset-H;M.clipRect.call(d.setTranslate,V,te).call(d.setScale,1/W,1/U),M.plot.call(d.setTranslate,Z,G).call(d.setScale,W,U),d.setPointGroupScale(M.zoomScalePts,1/W,1/U),d.setTextPointsScale(M.zoomScaleTxt,1/W,1/U)}f.redrawComponents(p)}},951:function(i,o,a){var s=a(73972).traceIs,u=a(4322);function c(f){return{v:"x",h:"y"}[f.orientation||"v"]}function d(f,p){var m=c(f),g=s(f,"box-violin"),b=s(f._fullInput||{},"candlestick");return g&&!b&&p===m&&f[m]===void 0&&f[m+"0"]===void 0}i.exports=function(f,p,m,g){m("autotypenumbers",g.autotypenumbersDflt),m("type",(g.splomStash||{}).type)==="-"&&(function(b,v){if(b.type==="-"){var h,y=b._id,w=y.charAt(0);y.indexOf("scene")!==-1&&(y=w);var _=function(D,P,E){for(var I=0;I0&&(A["_"+E+"axes"]||{})[P]||(A[E+"axis"]||E)===P&&(d(A,E)||(A[E]||[]).length||A[E+"0"]))return A}}(v,y,w);if(_)if(_.type!=="histogram"||w!=={v:"y",h:"x"}[_.orientation||"v"]){var x=w+"calendar",T=_[x],k={noMultiCategory:!s(_,"cartesian")||s(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&w==={h:"x",v:"y"}[_.orientation||"v"]&&(k.noMultiCategory=!0),k.autotypenumbers=b.autotypenumbers,d(_,w)){var S=c(_),C=[];for(h=0;h0?".":"")+h;u.isPlainObject(y)?p(y,g,w,v+1):g(w,h,y)}})}o.manageCommandObserver=function(m,g,b,v){var h={},y=!0;g&&g._commandObserver&&(h=g._commandObserver),h.cache||(h.cache={}),h.lookupTable={};var w=o.hasSimpleAPICommandBindings(m,b,h.lookupTable);if(g&&g._commandObserver){if(w)return h;if(g._commandObserver.remove)return g._commandObserver.remove(),g._commandObserver=null,h}if(w){c(m,w,h.cache),h.check=function(){if(y){var T=c(m,w,h.cache);return T.changed&&v&&h.lookupTable[T.value]!==void 0&&(h.disable(),Promise.resolve(v({value:T.value,type:w.type,prop:w.prop,traces:w.traces,index:h.lookupTable[T.value]})).then(h.enable,h.enable)),T.changed}};for(var _=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],x=0;x<_.length;x++)m._internalOn(_[x],h.check);h.remove=function(){for(var T=0;T<_.length;T++)m._removeInternalListener(_[T],h.check)}}else u.log("Unable to automatically bind plot updates to API command"),h.lookupTable={},h.remove=function(){};return h.disable=function(){y=!1},h.enable=function(){y=!0},g&&(g._commandObserver=h),h},o.hasSimpleAPICommandBindings=function(m,g,b){var v,h,y=g.length;for(v=0;v=W.width-20?(te["text-anchor"]="start",te.x=5):(te["text-anchor"]="end",te.x=W._paper.attr("width")-7),U.attr(te);var ee=U.select(".js-link-to-tool"),H=U.select(".js-link-spacer"),Z=U.select(".js-sourcelinks");L._context.showSources&&L._context.showSources(L),L._context.showLink&&function(G,X){X.text("");var Q=X.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(G._context.linkText+" »");if(G._context.sendData)Q.on("click",function(){C.sendDataToCloud(G)});else{var re=window.location.pathname.split("/"),ae=window.location.search;Q.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+re[2].split(".")[0]+"/"+re[1]+ae})}}(L,ee),H.text(ee.text()&&Z.text()?" - ":"")}},C.sendDataToCloud=function(L){var W=(window.PLOTLYENV||{}).BASE_URL||L._context.plotlyServerURL;if(W){L.emit("plotly_beforeexport");var U=s.select(L).append("div").attr("id","hiddenform").style("display","none"),V=U.append("form").attr({action:W+"/external",method:"post",target:"_blank"});return V.append("input").attr({type:"text",name:"data"}).node().value=C.graphJson(L,!1,"keepdata"),V.node().submit(),U.remove(),L.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],P=["year","month","dayMonth","dayMonthYear"];function E(L,W){var U=L._context.locale;U||(U="en-US");var V=!1,te={};function ee(re){for(var ae=!0,ie=0;ie1&&K.length>1){for(f.getComponentMethod("grid","sizeDefaults")(H,ee),te=0;te15&&K.length>15&&ee.shapes.length===0&&ee.images.length===0,C.linkSubplots(G,ee,Z,V),C.cleanPlot(G,ee,Z,V);var pe=!(!V._has||!V._has("gl2d")),xe=!(!ee._has||!ee._has("gl2d")),ye=!(!V._has||!V._has("cartesian"))||pe,Te=!(!ee._has||!ee._has("cartesian"))||xe;ye&&!Te?V._bgLayer.remove():Te&&!ye&&(ee._shouldCreateBgLayer=!0),V._zoomlayer&&!L._dragging&&y({_fullLayout:V}),function($e,Fe){var Be,Ue=[];Fe.meta&&(Be=Fe._meta={meta:Fe.meta,layout:{meta:Fe.meta}});for(var qe=0;qe<$e.length;qe++){var Xe=$e[qe];Xe.meta?Ue[Xe.index]=Xe._meta={meta:Xe.meta}:Fe.meta&&(Xe._meta={meta:Fe.meta}),Fe.meta&&(Xe._meta.layout={meta:Fe.meta})}Ue.length&&(Be||(Be=Fe._meta={}),Be.data=Ue)}(G,ee),k(ee,V),f.getComponentMethod("colorscale","crossTraceDefaults")(G,ee),ee._preGUI||(ee._preGUI={}),ee._tracePreGUI||(ee._tracePreGUI={});var Ae,Re=ee._tracePreGUI,Le={};for(Ae in Re)Le[Ae]="old";for(te=0;te0){var X=1-2*H;V=Math.round(X*V),te=Math.round(X*te)}}var Q=C.layoutAttributes.width.min,re=C.layoutAttributes.height.min;V1,ie=!W.height&&Math.abs(U.height-te)>1;(ie||ae)&&(ae&&(U.width=V),ie&&(U.height=te)),L._initialAutoSize||(L._initialAutoSize={width:V,height:te}),C.sanitizeMargins(U)},C.supplyLayoutModuleDefaults=function(L,W,U,V){var te,ee,H,Z=f.componentsRegistry,G=W._basePlotModules,X=f.subplotsRegistry.cartesian;for(te in Z)(H=Z[te]).includeBasePlot&&H.includeBasePlot(L,W);for(var Q in G.length||G.push(X),W._has("cartesian")&&(f.getComponentMethod("grid","contentDefaults")(L,W),X.finalizeSubplots(L,W)),W._subplots)W._subplots[Q].sort(g.subplotSort);for(ee=0;ee1&&(U.l/=Se,U.r/=Se)}if(ae){var Oe=(U.t+U.b)/ae;Oe>1&&(U.t/=Oe,U.b/=Oe)}var Pe=U.xl!==void 0?U.xl:U.x,Me=U.xr!==void 0?U.xr:U.x,ce=U.yt!==void 0?U.yt:U.y,we=U.yb!==void 0?U.yb:U.y;ie[W]={l:{val:Pe,size:U.l+he},r:{val:Me,size:U.r+he},b:{val:we,size:U.b+he},t:{val:ce,size:U.t+he}},se[W]=1}else delete ie[W],delete se[W];if(!V._replotting)return C.doAutoMargin(L)}},C.doAutoMargin=function(L){var W=L._fullLayout,U=W.width,V=W.height;W._size||(W._size={}),z(W);var te=W._size,ee=W.margin,H={t:0,b:0,l:0,r:0},Z=g.extendFlat({},te),G=ee.l,X=ee.r,Q=ee.t,re=ee.b,ae=W._pushmargin,ie=W._pushmarginIds,se=W.minreducedwidth,he=W.minreducedheight;if(ee.autoexpand!==!1){for(var Se in ae)ie[Se]||delete ae[Se];var Oe=L._fullLayout._reservedMargin;for(var Pe in Oe)for(var Me in Oe[Pe]){var ce=Oe[Pe][Me];H[Me]=Math.max(H[Me],ce)}for(var we in ae.base={l:{val:0,size:G},r:{val:1,size:X},t:{val:1,size:Q},b:{val:0,size:re}},H){var K=0;for(var ne in ae)ne!=="base"&&d(ae[ne][we].size)&&(K=ae[ne][we].size>K?ae[ne][we].size:K);var de=Math.max(0,ee[we]-K);H[we]=Math.max(0,H[we]-de)}for(var _e in ae){var ue=ae[_e].l||{},pe=ae[_e].b||{},xe=ue.val,ye=ue.size,Te=pe.val,Ae=pe.size,Re=U-H.r-H.l,Le=V-H.t-H.b;for(var $e in ae){if(d(ye)&&ae[$e].r){var Fe=ae[$e].r.val,Be=ae[$e].r.size;if(Fe>xe){var Ue=(ye*Fe+(Be-Re)*xe)/(Fe-xe),qe=(Be*(1-xe)+(ye-Re)*(1-Fe))/(Fe-xe);Ue+qe>G+X&&(G=Ue,X=qe)}}if(d(Ae)&&ae[$e].t){var Xe=ae[$e].t.val,ot=ae[$e].t.size;if(Xe>Te){var st=(Ae*Xe+(ot-Le)*Te)/(Xe-Te),dt=(ot*(1-Te)+(Ae-Le)*(1-Xe))/(Xe-Te);st+dt>re+Q&&(re=st,Q=dt)}}}}}var vt=g.constrain(U-ee.l-ee.r,2,se),We=g.constrain(V-ee.t-ee.b,2,he),ze=Math.max(0,U-vt),tt=Math.max(0,V-We);if(ze){var it=(G+X)/ze;it>1&&(G/=it,X/=it)}if(tt){var St=(re+Q)/tt;St>1&&(re/=St,Q/=St)}if(te.l=Math.round(G)+H.l,te.r=Math.round(X)+H.r,te.t=Math.round(Q)+H.t,te.b=Math.round(re)+H.b,te.p=Math.round(ee.pad),te.w=Math.round(U)-te.l-te.r,te.h=Math.round(V)-te.t-te.b,!W._replotting&&(C.didMarginChange(Z,te)||function(ut){if("_redrawFromAutoMarginCount"in ut._fullLayout)return!1;var ht=h.list(ut,"",!0);for(var Rt in ht)if(ht[Rt].autoshift||ht[Rt].shift)return!0;return!1}(L))){"_redrawFromAutoMarginCount"in W?W._redrawFromAutoMarginCount++:W._redrawFromAutoMarginCount=1;var Ze=3*(1+Object.keys(ie).length);if(W._redrawFromAutoMarginCount0&&(L._transitioningWithDuration=!0),L._transitionData._interruptCallbacks.push(function(){V=!0}),U.redraw&&L._transitionData._interruptCallbacks.push(function(){return f.call("redraw",L)}),L._transitionData._interruptCallbacks.push(function(){L.emit("plotly_transitioninterrupted",[])});var Z=0,G=0;function X(){return Z++,function(){var Q;G++,V||G!==Z||(Q=H,L._transitionData&&(function(re){if(re)for(;re.length;)re.shift()}(L._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(U.redraw)return f.call("redraw",L)}).then(function(){L._transitioning=!1,L._transitioningWithDuration=!1,L.emit("plotly_transitioned",[])}).then(Q)))}}U.runFn(X),setTimeout(X())})}],ee=g.syncOrAsync(te,L);return ee&&ee.then||(ee=Promise.resolve()),ee.then(function(){return L})}C.didMarginChange=function(L,W){for(var U=0;U1)return!0}return!1},C.graphJson=function(L,W,U,V,te,ee){(te&&W&&!L._fullData||te&&!W&&!L._fullLayout)&&C.supplyDefaults(L);var H=te?L._fullData:L.data,Z=te?L._fullLayout:L.layout,G=(L._transitionData||{})._frames;function X(ae,ie){if(typeof ae=="function")return ie?"_function_":null;if(g.isPlainObject(ae)){var se,he={};return Object.keys(ae).sort().forEach(function(Se){if(["_","["].indexOf(Se.charAt(0))===-1)if(typeof ae[Se]!="function"){if(U==="keepdata"){if(Se.substr(Se.length-3)==="src")return}else if(U==="keepstream"){if(typeof(se=ae[Se+"src"])=="string"&&se.indexOf(":")>0&&!g.isPlainObject(ae.stream))return}else if(U!=="keepall"&&typeof(se=ae[Se+"src"])=="string"&&se.indexOf(":")>0)return;he[Se]=X(ae[Se],ie)}else ie&&(he[Se]="_function")}),he}return Array.isArray(ae)?ae.map(function(Se){return X(Se,ie)}):g.isTypedArray(ae)?g.simpleMap(ae,g.identity):g.isJSDate(ae)?g.ms2DateTimeLocal(+ae):ae}var Q={data:(H||[]).map(function(ae){var ie=X(ae);return W&&delete ie.fit,ie})};if(!W&&(Q.layout=X(Z),te)){var re=Z._size;Q.layout.computed={margin:{b:re.b,l:re.l,r:re.r,t:re.t}}}return G&&(Q.frames=X(G)),ee&&(Q.config=X(L._context,!0)),V==="object"?Q:JSON.stringify(Q)},C.modifyFrames=function(L,W){var U,V,te,ee=L._transitionData._frames,H=L._transitionData._frameHash;for(U=0;U=0;ee--)if(we[ee].enabled){U._indexToPoints=we[ee]._indexToPoints;break}V&&V.calc&&(ce=V.calc(L,U))}Array.isArray(ce)&&ce[0]||(ce=[{x:v,y:v}]),ce[0].t||(ce[0].t={}),ce[0].trace=U,X[Pe]=ce}}for(q(H,Z,G),te=0;te0){for(var p=[],m=0;m=D&&(E.min=0,I.min=0,A.min=0,_.aaxis&&delete _.aaxis.min,_.baxis&&delete _.baxis.min,_.caxis&&delete _.caxis.min)}function w(_,x,T,k){var S=v[x._name];function C(I,A){return c.coerce(_,x,S,I,A)}C("uirevision",k.uirevision),x.type="linear";var M=C("color"),O=M!==S.color.dflt?M:T.font.color,D=x._name.charAt(0).toUpperCase(),P="Component "+D,E=C("title.text",P);x._hovertitle=E===P?E:D,c.coerceFont(C,"title.font",{family:T.font.family,size:c.bigFont(T.font.size),color:O}),C("min"),g(_,x,C,"linear"),p(_,x,C,"linear"),f(_,x,C,"linear"),m(_,x,C,{outerTicks:!0}),C("showticklabels")&&(c.coerceFont(C,"tickfont",{family:T.font.family,size:T.font.size,color:O}),C("tickangle"),C("tickformat")),b(_,x,C,{dfltColor:M,bgColor:T.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:S}),C("hoverformat"),C("layer")}i.exports=function(_,x,T){d(_,x,T,{type:"ternary",attributes:v,handleDefaults:y,font:x.font,paper_bgcolor:x.paper_bgcolor})}},64380:function(i,o,a){var s=a(39898),u=a(84267),c=a(73972),d=a(71828),f=d.strTranslate,p=d._,m=a(7901),g=a(91424),b=a(21994),v=a(1426).extendFlat,h=a(74875),y=a(89298),w=a(28569),_=a(30211),x=a(64505),T=x.freeMode,k=x.rectMode,S=a(92998),C=a(47322).prepSelect,M=a(47322).selectOnClick,O=a(47322).clearOutline,D=a(47322).clearSelectionsCache,P=a(85555);function E(q,Y){this.id=q.id,this.graphDiv=q.graphDiv,this.init(Y),this.makeFramework(Y),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}i.exports=E;var I=E.prototype;I.init=function(q){this.container=q._ternarylayer,this.defs=q._defs,this.layoutId=q._uid,this.traceHash={},this.layers={}},I.plot=function(q,Y){var L=this,W=Y[L.id],U=Y._size;L._hasClipOnAxisFalse=!1;for(var V=0;VA*ie?U=(V=ie)*A:V=(U=ae)/A,te=Q*U/ae,ee=re*V/ie,L=Y.l+Y.w*G-U/2,W=Y.t+Y.h*(1-X)-V/2,H.x0=L,H.y0=W,H.w=U,H.h=V,H.sum=se,H.xaxis={type:"linear",range:[he+2*Oe-se,se-he-2*Se],domain:[G-te/2,G+te/2],_id:"x"},b(H.xaxis,H.graphDiv._fullLayout),H.xaxis.setScale(),H.xaxis.isPtWithinRange=function(xe){return xe.a>=H.aaxis.range[0]&&xe.a<=H.aaxis.range[1]&&xe.b>=H.baxis.range[1]&&xe.b<=H.baxis.range[0]&&xe.c>=H.caxis.range[1]&&xe.c<=H.caxis.range[0]},H.yaxis={type:"linear",range:[he,se-Se-Oe],domain:[X-ee/2,X+ee/2],_id:"y"},b(H.yaxis,H.graphDiv._fullLayout),H.yaxis.setScale(),H.yaxis.isPtWithinRange=function(){return!0};var Pe=H.yaxis.domain[0],Me=H.aaxis=v({},q.aaxis,{range:[he,se-Se-Oe],side:"left",tickangle:(+q.aaxis.tickangle||0)-30,domain:[Pe,Pe+ee*A],anchor:"free",position:0,_id:"y",_length:U});b(Me,H.graphDiv._fullLayout),Me.setScale();var ce=H.baxis=v({},q.baxis,{range:[se-he-Oe,Se],side:"bottom",domain:H.xaxis.domain,anchor:"free",position:0,_id:"x",_length:U});b(ce,H.graphDiv._fullLayout),ce.setScale();var we=H.caxis=v({},q.caxis,{range:[se-he-Se,Oe],side:"right",tickangle:(+q.caxis.tickangle||0)+30,domain:[Pe,Pe+ee*A],anchor:"free",position:0,_id:"y",_length:U});b(we,H.graphDiv._fullLayout),we.setScale();var K="M"+L+","+(W+V)+"h"+U+"l-"+U/2+",-"+V+"Z";H.clipDef.select("path").attr("d",K),H.layers.plotbg.select("path").attr("d",K);var ne="M0,"+V+"h"+U+"l-"+U/2+",-"+V+"Z";H.clipDefRelative.select("path").attr("d",ne);var de=f(L,W);H.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",de),H.clipDefRelative.select("path").attr("transform",null);var _e=f(L-ce._offset,W+V);H.layers.baxis.attr("transform",_e),H.layers.bgrid.attr("transform",_e);var ue=f(L+U/2,W)+"rotate(30)"+f(0,-Me._offset);H.layers.aaxis.attr("transform",ue),H.layers.agrid.attr("transform",ue);var pe=f(L+U/2,W)+"rotate(-30)"+f(0,-we._offset);H.layers.caxis.attr("transform",pe),H.layers.cgrid.attr("transform",pe),H.drawAxes(!0),H.layers.aline.select("path").attr("d",Me.showline?"M"+L+","+(W+V)+"l"+U/2+",-"+V:"M0,0").call(m.stroke,Me.linecolor||"#000").style("stroke-width",(Me.linewidth||0)+"px"),H.layers.bline.select("path").attr("d",ce.showline?"M"+L+","+(W+V)+"h"+U:"M0,0").call(m.stroke,ce.linecolor||"#000").style("stroke-width",(ce.linewidth||0)+"px"),H.layers.cline.select("path").attr("d",we.showline?"M"+(L+U/2)+","+W+"l"+U/2+","+V:"M0,0").call(m.stroke,we.linecolor||"#000").style("stroke-width",(we.linewidth||0)+"px"),H.graphDiv._context.staticPlot||H.initInteractions(),g.setClipUrl(H.layers.frontplot,H._hasClipOnAxisFalse?null:H.clipId,H.graphDiv)},I.drawAxes=function(q){var Y=this,L=Y.graphDiv,W=Y.id.substr(7)+"title",U=Y.layers,V=Y.aaxis,te=Y.baxis,ee=Y.caxis;if(Y.drawAx(V),Y.drawAx(te),Y.drawAx(ee),q){var H=Math.max(V.showticklabels?V.tickfont.size/2:0,(ee.showticklabels?.75*ee.tickfont.size:0)+(ee.ticks==="outside"?.87*ee.ticklen:0)),Z=(te.showticklabels?te.tickfont.size:0)+(te.ticks==="outside"?te.ticklen:0)+3;U["a-title"]=S.draw(L,"a"+W,{propContainer:V,propName:Y.id+".aaxis.title",placeholder:p(L,"Click to enter Component A title"),attributes:{x:Y.x0+Y.w/2,y:Y.y0-V.title.font.size/3-H,"text-anchor":"middle"}}),U["b-title"]=S.draw(L,"b"+W,{propContainer:te,propName:Y.id+".baxis.title",placeholder:p(L,"Click to enter Component B title"),attributes:{x:Y.x0-Z,y:Y.y0+Y.h+.83*te.title.font.size+Z,"text-anchor":"middle"}}),U["c-title"]=S.draw(L,"c"+W,{propContainer:ee,propName:Y.id+".caxis.title",placeholder:p(L,"Click to enter Component C title"),attributes:{x:Y.x0+Y.w+Z,y:Y.y0+Y.h+.83*ee.title.font.size+Z,"text-anchor":"middle"}})}},I.drawAx=function(q){var Y,L=this,W=L.graphDiv,U=q._name,V=U.charAt(0),te=q._id,ee=L.layers[U],H=V+"tickLayout",Z=(Y=q).ticks+String(Y.ticklen)+String(Y.showticklabels);L[H]!==Z&&(ee.selectAll("."+te+"tick").remove(),L[H]=Z),q.setScale();var G=y.calcTicks(q),X=y.clipEnds(q,G),Q=y.makeTransTickFn(q),re=y.getTickSigns(q)[2],ae=d.deg2rad(30),ie=re*(q.linewidth||1)/2,se=re*q.ticklen,he=L.w,Se=L.h,Oe=V==="b"?"M0,"+ie+"l"+Math.sin(ae)*se+","+Math.cos(ae)*se:"M"+ie+",0l"+Math.cos(ae)*se+","+-Math.sin(ae)*se,Pe={a:"M0,0l"+Se+",-"+he/2,b:"M0,0l-"+he/2+",-"+Se,c:"M0,0l-"+Se+","+he/2}[V];y.drawTicks(W,q,{vals:q.ticks==="inside"?X:G,layer:ee,path:Oe,transFn:Q,crisp:!1}),y.drawGrid(W,q,{vals:X,layer:L.layers[V+"grid"],path:Pe,transFn:Q,crisp:!1}),y.drawLabels(W,q,{vals:G,layer:ee,transFn:Q,labelFns:y.makeLabelFns(q,0,30)})};var F=P.MINZOOM/2+.87,j="m-0.87,.5h"+F+"v3h-"+(F+5.2)+"l"+(F/2+2.6)+",-"+(.87*F+4.5)+"l2.6,1.5l-"+F/2+","+.87*F+"Z",z="m0.87,.5h-"+F+"v3h"+(F+5.2)+"l-"+(F/2+2.6)+",-"+(.87*F+4.5)+"l-2.6,1.5l"+F/2+","+.87*F+"Z",B="m0,1l"+F/2+","+.87*F+"l2.6,-1.5l-"+(F/2+2.6)+",-"+(.87*F+4.5)+"l-"+(F/2+2.6)+","+(.87*F+4.5)+"l2.6,1.5l"+F/2+",-"+.87*F+"Z",N=!0;function R(q){s.select(q).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}I.clearOutline=function(){D(this.dragOptions),O(this.dragOptions.gd)},I.initInteractions=function(){var q,Y,L,W,U,V,te,ee,H,Z,G,X,Q=this,re=Q.layers.plotbg.select("path").node(),ae=Q.graphDiv,ie=ae._fullLayout._zoomlayer;function se(ne){var de={};return de[Q.id+".aaxis.min"]=ne.a,de[Q.id+".baxis.min"]=ne.b,de[Q.id+".caxis.min"]=ne.c,de}function he(ne,de){var _e=ae._fullLayout.clickmode;R(ae),ne===2&&(ae.emit("plotly_doubleclick",null),c.call("_guiRelayout",ae,se({a:0,b:0,c:0}))),_e.indexOf("select")>-1&&ne===1&&M(de,ae,[Q.xaxis],[Q.yaxis],Q.id,Q.dragOptions),_e.indexOf("event")>-1&&_.click(ae,de,Q.id)}function Se(ne,de){return 1-de/Q.h}function Oe(ne,de){return 1-(ne+(Q.h-de)/Math.sqrt(3))/Q.w}function Pe(ne,de){return(ne-(Q.h-de)/Math.sqrt(3))/Q.w}function Me(ne,de){var _e=L+ne*q,ue=W+de*Y,pe=Math.max(0,Math.min(1,Se(0,W),Se(0,ue))),xe=Math.max(0,Math.min(1,Oe(L,W),Oe(_e,ue))),ye=Math.max(0,Math.min(1,Pe(L,W),Pe(_e,ue))),Te=(pe/2+ye)*Q.w,Ae=(1-pe/2-xe)*Q.w,Re=(Te+Ae)/2,Le=Ae-Te,$e=(1-pe)*Q.h,Fe=$e-Le/A;Le.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),X.transition().style("opacity",1).duration(200),Z=!0),ae.emit("plotly_relayouting",se(te))}function ce(){R(ae),te!==U&&(c.call("_guiRelayout",ae,se(te)),N&&ae.data&&ae._context.showTips&&(d.notifier(p(ae,"Double-click to zoom back out"),"long"),N=!1))}function we(ne,de){var _e=ne/Q.xaxis._m,ue=de/Q.yaxis._m,pe=[(te={a:U.a-ue,b:U.b+(_e+ue)/2,c:U.c-(_e-ue)/2}).a,te.b,te.c].sort(d.sorterAsc),xe=pe.indexOf(te.a),ye=pe.indexOf(te.b),Te=pe.indexOf(te.c);pe[0]<0&&(pe[1]+pe[0]/2<0?(pe[2]+=pe[0]+pe[1],pe[0]=pe[1]=0):(pe[2]+=pe[0]/2,pe[1]+=pe[0]/2,pe[0]=0),te={a:pe[xe],b:pe[ye],c:pe[Te]},de=(U.a-te.a)*Q.yaxis._m,ne=(U.c-te.c-U.b+te.b)*Q.xaxis._m);var Ae=f(Q.x0+ne,Q.y0+de);Q.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ae);var Re=f(-ne,-de);Q.clipDefRelative.select("path").attr("transform",Re),Q.aaxis.range=[te.a,Q.sum-te.b-te.c],Q.baxis.range=[Q.sum-te.a-te.c,te.b],Q.caxis.range=[Q.sum-te.a-te.b,te.c],Q.drawAxes(!1),Q._hasClipOnAxisFalse&&Q.plotContainer.select(".scatterlayer").selectAll(".trace").call(g.hideOutsideRangePoints,Q),ae.emit("plotly_relayouting",se(te))}function K(){c.call("_guiRelayout",ae,se(te))}this.dragOptions={element:re,gd:ae,plotinfo:{id:Q.id,domain:ae._fullLayout[Q.id].domain,xaxis:Q.xaxis,yaxis:Q.yaxis},subplot:Q.id,prepFn:function(ne,de,_e){Q.dragOptions.xaxes=[Q.xaxis],Q.dragOptions.yaxes=[Q.yaxis],q=ae._fullLayout._invScaleX,Y=ae._fullLayout._invScaleY;var ue=Q.dragOptions.dragmode=ae._fullLayout.dragmode;T(ue)?Q.dragOptions.minDrag=1:Q.dragOptions.minDrag=void 0,ue==="zoom"?(Q.dragOptions.moveFn=Me,Q.dragOptions.clickFn=he,Q.dragOptions.doneFn=ce,function(pe,xe,ye){var Te=re.getBoundingClientRect();L=xe-Te.left,W=ye-Te.top,ae._fullLayout._calcInverseTransform(ae);var Ae=ae._fullLayout._invTransform,Re=d.apply3DTransform(Ae)(L,W);L=Re[0],W=Re[1],U={a:Q.aaxis.range[0],b:Q.baxis.range[1],c:Q.caxis.range[1]},te=U,V=Q.aaxis.range[1]-U.a,ee=u(Q.graphDiv._fullLayout[Q.id].bgcolor).getLuminance(),H="M0,"+Q.h+"L"+Q.w/2+", 0L"+Q.w+","+Q.h+"Z",Z=!1,G=ie.append("path").attr("class","zoombox").attr("transform",f(Q.x0,Q.y0)).style({fill:ee>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",H),X=ie.append("path").attr("class","zoombox-corners").attr("transform",f(Q.x0,Q.y0)).style({fill:m.background,stroke:m.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),Q.clearOutline(ae)}(0,de,_e)):ue==="pan"?(Q.dragOptions.moveFn=we,Q.dragOptions.clickFn=he,Q.dragOptions.doneFn=K,U={a:Q.aaxis.range[0],b:Q.baxis.range[1],c:Q.caxis.range[1]},te=U,Q.clearOutline(ae)):(k(ue)||T(ue))&&C(ne,de,_e,Q.dragOptions,ue)}},re.onmousemove=function(ne){_.hover(ae,ne,Q.id),ae._fullLayout._lasthover=re,ae._fullLayout._hoversubplot=Q.id},re.onmouseout=function(ne){ae._dragging||w.unhover(ae,ne)},w.init(this.dragOptions)}},73972:function(i,o,a){var s=a(47769),u=a(64213),c=a(75138),d=a(41965),f=a(24401).addStyleRule,p=a(1426),m=a(9012),g=a(10820),b=p.extendFlat,v=p.extendDeepAll;function h(M){var O=M.name,D=M.categories,P=M.meta;if(o.modules[O])s.log("Type "+O+" already registered");else{o.subplotsRegistry[M.basePlotModule.name]||function(N){var R=N.name;if(o.subplotsRegistry[R])s.log("Plot type "+R+" already registered.");else for(var q in x(N),o.subplotsRegistry[R]=N,o.componentsRegistry)S(q,N.name)}(M.basePlotModule);for(var E={},I=0;I-1&&(w[x[g]].title={text:""});for(g=0;g")!==-1?"":I.html(F).text()});return I.remove(),A}(P)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(g,"'"),u.isIE()&&(P=(P=(P=P.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),P}},75341:function(i,o,a){var s=a(71828);i.exports=function(u,c){for(var d=0;dA+E||!s(I))}for(var j=0;jg))return f}return p!==void 0?p:d.dflt},o.coerceColor=function(d,f,p){return u(f).isValid()?f:p!==void 0?p:d.dflt},o.coerceEnumerated=function(d,f,p){return d.coerceNumber&&(f=+f),d.values.indexOf(f)!==-1?f:p!==void 0?p:d.dflt},o.getValue=function(d,f){var p;return Array.isArray(d)?f0?se+=he:T<0&&(se-=he)}return se}function ee(ie){var se=T,he=ie.b,Se=te(ie);return s.inbox(he-se,Se-se,F+(Se-se)/(Se-he)-1)}var H=v[k+"a"],Z=v[S+"a"];O=Math.abs(H.r2c(H.range[1])-H.r2c(H.range[0]));var G=s.getDistanceFunction(w,C,M,function(ie){return(C(ie)+M(ie))/2});if(s.getClosest(D,G,v),v.index!==!1&&D[v.index].p!==m){B||(L=function(ie){return Math.min(N(ie),ie.p-E.bargroupwidth/2)},W=function(ie){return Math.max(R(ie),ie.p+E.bargroupwidth/2)});var X=D[v.index],Q=P.base?X.b+X.s:X.s;v[S+"0"]=v[S+"1"]=Z.c2p(X[S],!0),v[S+"LabelVal"]=Q;var re=E.extents[E.extents.round(X.p)];v[k+"0"]=H.c2p(I?L(X):re[0],!0),v[k+"1"]=H.c2p(I?W(X):re[1],!0);var ae=X.orig_p!==void 0;return v[k+"LabelVal"]=ae?X.orig_p:X.p,v.labelLabel=p(H,v[k+"LabelVal"],P[k+"hoverformat"]),v.valueLabel=p(Z,v[S+"LabelVal"],P[S+"hoverformat"]),v.baseLabel=p(Z,X.b,P[S+"hoverformat"]),v.spikeDistance=(function(ie){var se=T,he=ie.b,Se=te(ie);return s.inbox(he-se,Se-se,j+(Se-se)/(Se-he)-1)}(X)+function(ie){return U(N(ie),R(ie),j)}(X))/2,v[k+"Spike"]=H.c2p(X.p,!0),d(X,P,v),v.hovertemplate=P.hovertemplate,v}}function b(v,h){var y=h.mcc||v.marker.color,w=h.mlcc||v.marker.line.color,_=f(v,h);return c.opacity(y)?y:c.opacity(w)&&_?w:void 0}i.exports={hoverPoints:function(v,h,y,w,_){var x=g(v,h,y,w,_);if(x){var T=x.cd,k=T[0].trace,S=T[x.index];return x.color=b(k,S),u.getComponentMethod("errorbars","hoverInfo")(S,k,x),[x]}},hoverOnBars:g,getTraceColor:b}},60822:function(i,o,a){i.exports={attributes:a(1486),layoutAttributes:a(43641),supplyDefaults:a(90769).supplyDefaults,crossTraceDefaults:a(90769).crossTraceDefaults,supplyLayoutDefaults:a(13957),calc:a(92290),crossTraceCalc:a(11661).crossTraceCalc,colorbar:a(4898),arraysToCalcdata:a(75341),plot:a(17295).plot,style:a(16688).style,styleOnSelect:a(16688).styleOnSelect,hoverPoints:a(95423).hoverPoints,eventData:a(58065),selectPoints:a(81974),moduleType:"trace",name:"bar",basePlotModule:a(93612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},43641:function(i){i.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},13957:function(i,o,a){var s=a(73972),u=a(89298),c=a(71828),d=a(43641);i.exports=function(f,p,m){function g(k,S){return c.coerce(f,p,d,k,S)}for(var b=!1,v=!1,h=!1,y={},w=g("barmode"),_=0;_0}function I(j){return j==="auto"?0:j}function A(j,z){var B=Math.PI/180*z,N=Math.abs(Math.sin(B)),R=Math.abs(Math.cos(B));return{x:j.width*R+j.height*N,y:j.width*N+j.height*R}}function F(j,z,B,N,R,q){var Y=!!q.isHorizontal,L=!!q.constrained,W=q.angle||0,U=q.anchor||"end",V=U==="end",te=U==="start",ee=((q.leftToRight||0)+1)/2,H=1-ee,Z=R.width,G=R.height,X=Math.abs(z-j),Q=Math.abs(N-B),re=X>2*C&&Q>2*C?C:0;X-=2*re,Q-=2*re;var ae=I(W);W!=="auto"||Z<=X&&G<=Q||!(Z>X||G>Q)||(Z>Q||G>X)&&Z.01?ye:function(Le,$e,Fe){return Fe&&Le===$e?Le:Math.abs(Le-$e)>=2?ye(Le):Le>$e?Math.ceil(Le):Math.floor(Le)};ne=Te(ne,de,re),de=Te(de,ne,re),_e=Te(_e,ue,!re),ue=Te(ue,_e,!re)}var Ae=P(c.ensureSingle(we,"path"),W,R,q);if(Ae.style("vector-effect",U?"none":"non-scaling-stroke").attr("d",isNaN((de-ne)*(ue-_e))||pe&&j._context.staticPlot?"M0,0Z":"M"+ne+","+_e+"V"+ue+"H"+de+"V"+_e+"Z").call(p.setClipUrl,z.layerClipId,j),!W.uniformtext.mode&&ae){var Re=p.makePointStyleFns(H);p.singlePointStyle(Oe,Ae,H,Re,j)}(function(Le,$e,Fe,Be,Ue,qe,Xe,ot,st,dt,vt){var We,ze=$e.xaxis,tt=$e.yaxis,it=Le._fullLayout;function St(Lt,gt,mt){return c.ensureSingle(Lt,"text").text(gt).attr({class:"bartext bartext-"+We,"text-anchor":"middle","data-notex":1}).call(p.font,mt).call(d.convertToTspans,Le)}var Ze=Be[0].trace,ut=Ze.orientation==="h",ht=function(Lt,gt,mt,xt,Ut){var It,zt=gt[0].trace;return It=zt.texttemplate?function(kt,Ot,At,Nt,$t){var Bt=Ot[0].trace,Xt=c.castOption(Bt,At,"texttemplate");if(!Xt)return"";var Zt,qt,Ht,sn,xn=Bt.type==="histogram",mn=Bt.type==="waterfall",dn=Bt.type==="funnel",gn=Bt.orientation==="h";function en(En){return g(sn,sn.c2l(En),!0).text}gn?(Zt="y",qt=$t,Ht="x",sn=Nt):(Zt="x",qt=Nt,Ht="y",sn=$t);var kn,un=Ot[At],tn={};tn.label=un.p,tn.labelLabel=tn[Zt+"Label"]=(kn=un.p,g(qt,qt.c2l(kn),!0).text);var Fn=c.castOption(Bt,un.i,"text");(Fn===0||Fn)&&(tn.text=Fn),tn.value=un.s,tn.valueLabel=tn[Ht+"Label"]=en(un.s);var Rn={};S(Rn,Bt,un.i),(xn||Rn.x===void 0)&&(Rn.x=gn?tn.value:tn.label),(xn||Rn.y===void 0)&&(Rn.y=gn?tn.label:tn.value),(xn||Rn.xLabel===void 0)&&(Rn.xLabel=gn?tn.valueLabel:tn.labelLabel),(xn||Rn.yLabel===void 0)&&(Rn.yLabel=gn?tn.labelLabel:tn.valueLabel),mn&&(tn.delta=+un.rawS||un.s,tn.deltaLabel=en(tn.delta),tn.final=un.v,tn.finalLabel=en(tn.final),tn.initial=tn.final-tn.delta,tn.initialLabel=en(tn.initial)),dn&&(tn.value=un.s,tn.valueLabel=en(tn.value),tn.percentInitial=un.begR,tn.percentInitialLabel=c.formatPercent(un.begR),tn.percentPrevious=un.difR,tn.percentPreviousLabel=c.formatPercent(un.difR),tn.percentTotal=un.sumR,tn.percenTotalLabel=c.formatPercent(un.sumR));var Bn=c.castOption(Bt,un.i,"customdata");return Bn&&(tn.customdata=Bn),c.texttemplateString(Xt,tn,kt._d3locale,Rn,tn,Bt._meta||{})}(Lt,gt,mt,xt,Ut):zt.textinfo?function(kt,Ot,At,Nt){var $t=kt[0].trace,Bt=$t.orientation==="h",Xt=$t.type==="waterfall",Zt=$t.type==="funnel";function qt(Bn){return g(Bt?At:Nt,+Bn,!0).text}var Ht,sn,xn=$t.textinfo,mn=kt[Ot],dn=xn.split("+"),gn=[],en=function(Bn){return dn.indexOf(Bn)!==-1};if(en("label")&&gn.push((sn=kt[Ot].p,g(Bt?Nt:At,sn,!0).text)),en("text")&&((Ht=c.castOption($t,mn.i,"text"))===0||Ht)&&gn.push(Ht),Xt){var kn=+mn.rawS||mn.s,un=mn.v,tn=un-kn;en("initial")&&gn.push(qt(tn)),en("delta")&&gn.push(qt(kn)),en("final")&&gn.push(qt(un))}if(Zt){en("value")&&gn.push(qt(mn.s));var Fn=0;en("percent initial")&&Fn++,en("percent previous")&&Fn++,en("percent total")&&Fn++;var Rn=Fn>1;en("percent initial")&&(Ht=c.formatPercent(mn.begR),Rn&&(Ht+=" of initial"),gn.push(Ht)),en("percent previous")&&(Ht=c.formatPercent(mn.difR),Rn&&(Ht+=" of previous"),gn.push(Ht)),en("percent total")&&(Ht=c.formatPercent(mn.sumR),Rn&&(Ht+=" of total"),gn.push(Ht))}return gn.join("
")}(gt,mt,xt,Ut):w.getValue(zt.text,mt),w.coerceString(T,It)}(it,Be,Ue,ze,tt);We=function(Lt,gt){var mt=w.getValue(Lt.textposition,gt);return w.coerceEnumerated(k,mt)}(Ze,Ue);var Rt=dt.mode==="stack"||dt.mode==="relative",Ct=Be[Ue],Wt=!Rt||Ct._outmost;if(ht&&We!=="none"&&(!Ct.isBlank&&qe!==Xe&&ot!==st||We!=="auto"&&We!=="inside")){var _t=it.font,be=y.getBarColor(Be[Ue],Ze),Ce=y.getInsideTextFont(Ze,Ue,_t,be),Ge=y.getOutsideTextFont(Ze,Ue,_t),He=Fe.datum();ut?ze.type==="log"&&He.s0<=0&&(qe=ze.range[0]0&&nt>0&&(Ye<=yt&&nt<=rt||Ye<=rt&&nt<=yt||(ut?yt>=Ye*(rt/nt):rt>=nt*(yt/Ye)))?We="inside":(We="outside",et.remove(),et=null)):We="inside"),!et){var Ft=(et=St(Fe,ht,ct=c.ensureUniformFontSize(Le,We==="outside"?Ge:Ce))).attr("transform");if(et.attr("transform",""),Ye=(Ke=p.bBox(et.node())).width,nt=Ke.height,et.attr("transform",Ft),Ye<=0||nt<=0)return void et.remove()}var Yt,Mt=Ze.textangle;Yt=We==="outside"?function(Lt,gt,mt,xt,Ut,It){var zt,kt=!!It.isHorizontal,Ot=!!It.constrained,At=It.angle||0,Nt=Ut.width,$t=Ut.height,Bt=Math.abs(gt-Lt),Xt=Math.abs(xt-mt);zt=kt?Xt>2*C?C:0:Bt>2*C?C:0;var Zt=1;Ot&&(Zt=kt?Math.min(1,Xt/$t):Math.min(1,Bt/Nt));var qt=I(At),Ht=A(Ut,qt),sn=(kt?Ht.x:Ht.y)/2,xn=(Ut.left+Ut.right)/2,mn=(Ut.top+Ut.bottom)/2,dn=(Lt+gt)/2,gn=(mt+xt)/2,en=0,kn=0,un=kt?D(gt,Lt):D(mt,xt);return kt?(dn=gt-un*zt,en=un*sn):(gn=xt+un*zt,kn=-un*sn),{textX:xn,textY:mn,targetX:dn,targetY:gn,anchorX:en,anchorY:kn,scale:Zt,rotate:qt}}(qe,Xe,ot,st,Ke,{isHorizontal:ut,constrained:Ze.constraintext==="both"||Ze.constraintext==="outside",angle:Mt}):F(qe,Xe,ot,st,Ke,{isHorizontal:ut,constrained:Ze.constraintext==="both"||Ze.constraintext==="inside",angle:Mt,anchor:Ze.insidetextanchor}),Yt.fontSize=ct.size,v(Ze.type==="histogram"?"bar":Ze.type,Yt,it),Ct.transform=Yt;var jt=P(et,it,dt,vt);c.setTransormAndDisplay(jt,Yt)}else Fe.select("text").remove()})(j,z,we,te,Pe,ne,de,_e,ue,R,q),z.layerClipId&&p.hideOutsideRangePoint(Oe,we.select("text"),Y,L,H.xcalendar,H.ycalendar)});var Se=H.cliponaxis===!1;p.setClipUrl(ee,Se?null:z.layerClipId,j)});m.getComponentMethod("errorbars","plot")(j,V,z,R)},toMoveInsideBar:F}},81974:function(i){function o(a,s,u,c,d){var f=s.c2p(c?a.s0:a.p0,!0),p=s.c2p(c?a.s1:a.p1,!0),m=u.c2p(c?a.p0:a.s0,!0),g=u.c2p(c?a.p1:a.s1,!0);return d?[(f+p)/2,(m+g)/2]:c?[p,(m+g)/2]:[(f+p)/2,g]}i.exports=function(a,s){var u,c=a.cd,d=a.xaxis,f=a.yaxis,p=c[0].trace,m=p.type==="funnel",g=p.orientation==="h",b=[];if(s===!1)for(u=0;u1||P.bargap===0&&P.bargroupgap===0&&!E[0].trace.marker.line.width)&&s.select(this).attr("shape-rendering","crispEdges")}),O.selectAll("g.points").each(function(E){y(s.select(this),E[0].trace,M)}),f.getComponentMethod("errorbars","style")(O)},styleTextPoints:w,styleOnSelect:function(M,O,D){var P=O[0].trace;P.selectedpoints?function(E,I,A){c.selectedPointStyle(E.selectAll("path"),I),function(F,j,z){F.each(function(B){var N,R=s.select(this);if(B.selected){N=d.ensureUniformFontSize(z,_(R,B,j,z));var q=j.selected.textfont&&j.selected.textfont.color;q&&(N.color=q),c.font(R,N)}else c.selectedTextStyle(R,j)})}(E.selectAll("text"),I,A)}(D,P,M):(y(D,P,M),f.getComponentMethod("errorbars","style")(D))},getInsideTextFont:T,getOutsideTextFont:k,getBarColor:C,resizeText:p}},98340:function(i,o,a){var s=a(7901),u=a(52075).hasColorscale,c=a(1586),d=a(71828).coercePattern;i.exports=function(f,p,m,g,b){var v=m("marker.color",g),h=u(f,"marker");h&&c(f,p,b,m,{prefix:"marker.",cLetter:"c"}),m("marker.line.color",s.defaultLine),u(f,"marker.line")&&c(f,p,b,m,{prefix:"marker.line.",cLetter:"c"}),m("marker.line.width"),m("marker.opacity"),d(m,"marker.pattern",v,h),m("selected.marker.color"),m("unselected.marker.color")}},72597:function(i,o,a){var s=a(39898),u=a(71828);function c(d){return"_"+d+"Text_minsize"}i.exports={recordMinTextSize:function(d,f,p){if(p.uniformtext.mode){var m=c(d),g=p.uniformtext.minsize,b=f.scale*f.fontSize;f.hide=bB.uf};if(k._hasPreCompStats){var G=k[O],X=function($e){return M.d2c((k[$e]||[])[S])},Q=1/0,re=-1/0;for(S=0;S=B.q1&&B.q3>=B.med){var ie=X("lowerfence");B.lf=ie!==f&&ie<=B.q1?ie:h(B,R,q);var se=X("upperfence");B.uf=se!==f&&se>=B.q3?se:y(B,R,q);var he=X("mean");B.mean=he!==f?he:q?d.mean(R,q):(B.q1+B.q3)/2;var Se=X("sd");B.sd=he!==f&&Se>=0?Se:q?d.stdev(R,q,B.mean):B.q3-B.q1,B.lo=w(B),B.uo=_(B);var Oe=X("notchspan");Oe=Oe!==f&&Oe>0?Oe:x(B,q),B.ln=B.med-Oe,B.un=B.med+Oe;var Pe=B.lf,Me=B.uf;k.boxpoints&&R.length&&(Pe=Math.min(Pe,R[0]),Me=Math.max(Me,R[q-1])),k.notched&&(Pe=Math.min(Pe,B.ln),Me=Math.max(Me,B.un)),B.min=Pe,B.max=Me}else{var ce;d.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+B.q1,"median = "+B.med,"q3 = "+B.q3].join(` @@ -351,7 +351,7 @@ should equal `).slice(2):` `+U.split(` `).map(function(te){return" "+te}).join(` -`)):U=B.stylize("[Circular]","special")),S(W)){if(L&&Y.match(/^\d+$/))return U;(W=JSON.stringify(""+Y)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(W=W.slice(1,-1),W=B.stylize(W,"name")):(W=W.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),W=B.stylize(W,"string"))}return W+": "+U}function w(B){return Array.isArray(B)}function _(B){return typeof B=="boolean"}function x(B){return B===null}function T(B){return typeof B=="number"}function k(B){return typeof B=="string"}function S(B){return B===void 0}function C(B){return M(B)&&E(B)==="[object RegExp]"}function M(B){return typeof B=="object"&&B!==null}function O(B){return M(B)&&E(B)==="[object Date]"}function D(B){return M(B)&&(E(B)==="[object Error]"||B instanceof Error)}function P(B){return typeof B=="function"}function E(B){return Object.prototype.toString.call(B)}function I(B){return B<10?"0"+B.toString(10):B.toString(10)}o.debuglog=function(B){if(B=B.toUpperCase(),!d[B])if(f.test(B)){var N=s.pid;d[B]=function(){var R=o.format.apply(o,arguments);console.error("%s %d: %s",B,N,R)}}else d[B]=function(){};return d[B]},o.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},o.types=a(4936),o.isArray=w,o.isBoolean=_,o.isNull=x,o.isNullOrUndefined=function(B){return B==null},o.isNumber=T,o.isString=k,o.isSymbol=function(B){return typeof B=="symbol"},o.isUndefined=S,o.isRegExp=C,o.types.isRegExp=C,o.isObject=M,o.isDate=O,o.types.isDate=O,o.isError=D,o.types.isNativeError=D,o.isFunction=P,o.isPrimitive=function(B){return B===null||typeof B=="boolean"||typeof B=="number"||typeof B=="string"||typeof B=="symbol"||B===void 0},o.isBuffer=a(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(B,N){return Object.prototype.hasOwnProperty.call(B,N)}o.log=function(){var B,N;console.log("%s - %s",(N=[I((B=new Date).getHours()),I(B.getMinutes()),I(B.getSeconds())].join(":"),[B.getDate(),A[B.getMonth()],N].join(" ")),o.format.apply(o,arguments))},o.inherits=a(42018),o._extend=function(B,N){if(!N||!M(N))return B;for(var R=Object.keys(N),q=R.length;q--;)B[R[q]]=N[R[q]];return B};var j=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function z(B,N){if(!B){var R=new Error("Promise was rejected with a falsy value");R.reason=B,B=R}return N(B)}o.promisify=function(B){if(typeof B!="function")throw new TypeError('The "original" argument must be of type Function');if(j&&B[j]){var N;if(typeof(N=B[j])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,j,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var R,q,Y=new Promise(function(U,V){R=U,q=V}),L=[],W=0;W"u"?a.g:globalThis,g=u(),b=c("String.prototype.slice"),v={},h=Object.getPrototypeOf;p&&d&&h&&s(g,function(w){if(typeof m[w]=="function"){var _=new m[w];if(Symbol.toStringTag in _){var x=h(_),T=d(x,Symbol.toStringTag);if(!T){var k=h(x);T=d(k,Symbol.toStringTag)}v[w]=T.get}}});var y=a(9187);i.exports=function(w){return!!y(w)&&(p&&Symbol.toStringTag in w?function(_){var x=!1;return s(v,function(T,k){if(!x)try{var S=T.call(_);S===k&&(x=S)}catch{}}),x}(w):b(f(w),8,-1))}},3961:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(h,y){if(typeof h=="string"){var w=h.match(p);return w?w[0]:""}var _=this._validateYear(h),x=h.month(),T=""+this.toChineseMonth(_,x);return y&&T.length<2&&(T="0"+T),this.isIntercalaryMonth(_,x)&&(T+="i"),T},monthNames:function(h){if(typeof h=="string"){var y=h.match(m);return y?y[0]:""}var w=this._validateYear(h),_=h.month(),x=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(w,_)-1];return this.isIntercalaryMonth(w,_)&&(x="闰"+x),x},monthNamesShort:function(h){if(typeof h=="string"){var y=h.match(g);return y?y[0]:""}var w=this._validateYear(h),_=h.month(),x=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(w,_)-1];return this.isIntercalaryMonth(w,_)&&(x="闰"+x),x},parseMonth:function(h,y){h=this._validateYear(h);var w,_=parseInt(y);if(isNaN(_))y[0]==="闰"&&(w=!0,y=y.substring(1)),y[y.length-1]==="月"&&(y=y.substring(0,y.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(y);else{var x=y[y.length-1];w=x==="i"||x==="I"}return this.toMonthIndex(h,_,w)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(h,y){if(h.year&&(h=h.year()),typeof h!="number"||h<1888||h>2111)throw y.replace(/\{0\}/,this.local.name);return h},toMonthIndex:function(h,y,w){var _=this.intercalaryMonth(h);if(w&&y!==_||y<1||y>12)throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!w&&y<=_?y-1:y:y-1},toChineseMonth:function(h,y){h.year&&(y=(h=h.year()).month());var w=this.intercalaryMonth(h);if(y<0||y>(w?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return w?y>13},isIntercalaryMonth:function(h,y){h.year&&(y=(h=h.year()).month());var w=this.intercalaryMonth(h);return!!w&&w===y},leapYear:function(h){return this.intercalaryMonth(h)!==0},weekOfYear:function(h,y,w){var _,x=this._validateYear(h,s.local.invalidyear),T=v[x-v[0]],k=T>>9&4095,S=T>>5&15,C=31&T;(_=c.newDate(k,S,C)).add(4-(_.dayOfWeek()||7),"d");var M=this.toJD(h,y,w)-_.toJD();return 1+Math.floor(M/7)},monthsInYear:function(h){return this.leapYear(h)?13:12},daysInMonth:function(h,y){h.year&&(y=h.month(),h=h.year()),h=this._validateYear(h);var w=b[h-b[0]];if(y>(w>>13?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return w&1<<12-y?30:29},weekDay:function(h,y,w){return(this.dayOfWeek(h,y,w)||7)<6},toJD:function(h,y,w){var _=this._validate(h,T,w,s.local.invalidDate);h=this._validateYear(_.year()),y=_.month(),w=_.day();var x=this.isIntercalaryMonth(h,y),T=this.toChineseMonth(h,y),k=function(S,C,M,O,D){var P,E,I;if(typeof S=="object")E=S,P=C||{};else{var A;if(!(typeof S=="number"&&S>=1888&&S<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof C=="number"&&C>=1&&C<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof M=="number"&&M>=1&&M<=30))throw new Error("Lunar day outside range 1 - 30");typeof O=="object"?(A=!1,P=O):(A=!!O,P={}),E={year:S,month:C,day:M,isIntercalary:A}}I=E.day-1;var F,j=b[E.year-b[0]],z=j>>13;F=z&&(E.month>z||E.isIntercalary)?E.month:E.month-1;for(var B=0;B>9&4095,(N>>5&15)-1,(31&N)+I);return P.year=R.getFullYear(),P.month=1+R.getMonth(),P.day=R.getDate(),P}(h,T,w,x);return c.toJD(k.year,k.month,k.day)},fromJD:function(h){var y=c.fromJD(h),w=function(x,T,k,S){var C,M;if(typeof x=="object")C=x,M=T||{};else{if(!(typeof x=="number"&&x>=1888&&x<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof k=="number"&&k>=1&&k<=31))throw new Error("Solar day outside range 1 - 31");C={year:x,month:T,day:k},M={}}var O=v[C.year-v[0]],D=C.year<<9|C.month<<5|C.day;M.year=D>=O?C.year:C.year-1,O=v[M.year-v[0]];var P,E=new Date(O>>9&4095,(O>>5&15)-1,31&O),I=new Date(C.year,C.month-1,C.day);P=Math.round((I-E)/864e5);var A,F=b[M.year-b[0]];for(A=0;A<13;A++){var j=F&1<<12-A?30:29;if(P>13;return!z||A=2&&g<=6},extraInfo:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return{century:d[Math.floor((g.year()-1)/100)+1]||""}},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return f=g.year()+(g.year()<0?1:0),p=g.month(),(m=g.day())+(p>1?16:0)+(p>2?32*(p-2):0)+400*(f-1)+this.jdEpoch-1},fromJD:function(f){f=Math.floor(f+.5)-Math.floor(this.jdEpoch)-1;var p=Math.floor(f/400)+1;f-=400*(p-1),f+=f>15?16:0;var m=Math.floor(f/32)+1,g=f-32*(m-1)+1;return this.newDate(p<=0?p-1:p,m,g)}});var d={20:"Fruitbat",21:"Anchovy"};s.calendars.discworld=c},37715:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()+(f.year()<0?1:0))%4==3||d%4==-1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),13},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===13&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);return(d=m.year())<0&&d++,m.day()+30*(m.month()-1)+365*(d-1)+Math.floor(d/4)+this.jdEpoch-1},fromJD:function(d){var f=Math.floor(d)+.5-this.jdEpoch,p=Math.floor((f-Math.floor((f+366)/1461))/365)+1;p<=0&&p--,f=Math.floor(d)+.5-this.newDate(p,1,1).toJD();var m=Math.floor(f/30)+1,g=f-30*(m-1)+1;return this.newDate(p,m,g)}}),s.calendars.ethiopian=c},99384:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}function d(f,p){return f-p*Math.floor(f/p)}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this._leapYear(p.year())},_leapYear:function(f){return d(7*(f=f<0?f+1:f)+1,19)<7},monthsInYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),this._leapYear(f.year?f.year():f)?13:12},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){return f=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear).year(),this.toJD(f===-1?1:f+1,7,1)-this.toJD(f,7,1)},daysInMonth:function(f,p){return f.year&&(p=f.month(),f=f.year()),this._validate(f,p,this.minDay,s.local.invalidMonth),p===12&&this.leapYear(f)||p===8&&d(this.daysInYear(f),10)===5?30:p===9&&d(this.daysInYear(f),10)===3?29:this.daysPerMonth[p-1]},weekDay:function(f,p,m){return this.dayOfWeek(f,p,m)!==6},extraInfo:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return{yearType:(this.leapYear(g)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(g)%10-3]}},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);f=g.year(),p=g.month(),m=g.day();var b=f<=0?f+1:f,v=this.jdEpoch+this._delay1(b)+this._delay2(b)+m+1;if(p<7){for(var h=7;h<=this.monthsInYear(f);h++)v+=this.daysInMonth(f,h);for(h=1;h=this.toJD(p===-1?1:p+1,7,1);)p++;for(var m=fthis.toJD(p,m,this.daysInMonth(p,m));)m++;var g=f-this.toJD(p,m,1)+1;return this.newDate(p,m,g)}}),s.calendars.hebrew=c},43805:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(d){return(11*this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year()+14)%30<11},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){return this.leapYear(d)?355:354},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==5},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);return d=m.year(),f=m.month(),d=d<=0?d+1:d,(p=m.day())+Math.ceil(29.5*(f-1))+354*(d-1)+Math.floor((3+11*d)/30)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d)+.5;var f=Math.floor((30*(d-this.jdEpoch)+10646)/10631);f=f<=0?f-1:f;var p=Math.min(12,Math.ceil((d-29-this.toJD(f,1,1))/29.5)+1),m=d-this.toJD(f,p,1)+1;return this.newDate(f,p,m)}}),s.calendars.islamic=c},88874:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()<0?f.year()+1:f.year())%4==0},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(4-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);return d=m.year(),f=m.month(),p=m.day(),d<0&&d++,f<=2&&(d--,f+=12),Math.floor(365.25*(d+4716))+Math.floor(30.6001*(f+1))+p-1524.5},fromJD:function(d){var f=Math.floor(d+.5)+1524,p=Math.floor((f-122.1)/365.25),m=Math.floor(365.25*p),g=Math.floor((f-m)/30.6001),b=g-Math.floor(g<14?1:13),v=p-Math.floor(b>2?4716:4715),h=f-m-Math.floor(30.6001*g);return v<=0&&v--,this.newDate(v,b,h)}}),s.calendars.julian=c},83290:function(i,o,a){var s=a(63489),u=a(56131);function c(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}function d(p,m){return p-m*Math.floor(p/m)}function f(p,m){return d(p-1,m)+1}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),!1},formatYear:function(p){p=this._validate(p,this.minMonth,this.minDay,s.local.invalidYear).year();var m=Math.floor(p/400);return p%=400,p+=p<0?400:0,m+"."+Math.floor(p/20)+"."+p%20},forYear:function(p){if((p=p.split(".")).length<3)throw"Invalid Mayan year";for(var m=0,g=0;g19||g>0&&b<0)throw"Invalid Mayan year";m=20*m+b}return m},monthsInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),18},weekOfYear:function(p,m,g){return this._validate(p,m,g,s.local.invalidDate),0},daysInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),360},daysInMonth:function(p,m){return this._validate(p,m,this.minDay,s.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(p,m,g){return this._validate(p,m,g,s.local.invalidDate).day()},weekDay:function(p,m,g){return this._validate(p,m,g,s.local.invalidDate),!0},extraInfo:function(p,m,g){var b=this._validate(p,m,g,s.local.invalidDate).toJD(),v=this._toHaab(b),h=this._toTzolkin(b);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[h[0]-1],tzolkinDay:h[0],tzolkinTrecena:h[1]}},_toHaab:function(p){var m=d(8+(p-=this.jdEpoch)+340,365);return[Math.floor(m/20)+1,d(m,20)]},_toTzolkin:function(p){return[f(20+(p-=this.jdEpoch),20),f(p+4,13)]},toJD:function(p,m,g){var b=this._validate(p,m,g,s.local.invalidDate);return b.day()+20*b.month()+360*b.year()+this.jdEpoch},fromJD:function(p){p=Math.floor(p)+.5-this.jdEpoch;var m=Math.floor(p/360);p%=360,p+=p<0?360:0;var g=Math.floor(p/20),b=p%20;return this.newDate(m,g,b)}}),s.calendars.mayan=c},29108:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar;var d=s.instance("gregorian");u(c.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return d.leapYear(p.year()+(p.year()<1?1:0)+1469)},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(1-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return(this.dayOfWeek(f,p,m)||7)<6},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidMonth);(f=g.year())<0&&f++;for(var b=g.day(),v=1;v=this.toJD(p+1,1,1);)p++;for(var m=f-Math.floor(this.toJD(p,1,1)+.5)+1,g=1;m>this.daysInMonth(p,g);)m-=this.daysInMonth(p,g),g++;return this.newDate(p,g,m)}}),s.calendars.nanakshahi=c},55422:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(d){return this.daysInYear(d)!==this.daysPerYear},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){if(d=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[d]===void 0)return this.daysPerYear;for(var f=0,p=this.minMonth;p<=12;p++)f+=this.NEPALI_CALENDAR_DATA[d][p];return f},daysInMonth:function(d,f){return d.year&&(f=d.month(),d=d.year()),this._validate(d,f,this.minDay,s.local.invalidMonth),this.NEPALI_CALENDAR_DATA[d]===void 0?this.daysPerMonth[f-1]:this.NEPALI_CALENDAR_DATA[d][f]},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==6},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);d=m.year(),f=m.month(),p=m.day();var g=s.instance(),b=0,v=f,h=d;this._createMissingCalendarData(d);var y=d-(v>9||v===9&&p>=this.NEPALI_CALENDAR_DATA[h][0]?56:57);for(f!==9&&(b=p,v--);v!==9;)v<=0&&(v=12,h--),b+=this.NEPALI_CALENDAR_DATA[h][v],v--;return f===9?(b+=p-this.NEPALI_CALENDAR_DATA[h][0])<0&&(b+=g.daysInYear(y)):b+=this.NEPALI_CALENDAR_DATA[h][9]-this.NEPALI_CALENDAR_DATA[h][0],g.newDate(y,1,1).add(b,"d").toJD()},fromJD:function(d){var f=s.instance().fromJD(d),p=f.year(),m=f.dayOfYear(),g=p+56;this._createMissingCalendarData(g);for(var b=9,v=this.NEPALI_CALENDAR_DATA[g][0],h=this.NEPALI_CALENDAR_DATA[g][b]-v+1;m>h;)++b>12&&(b=1,g++),h+=this.NEPALI_CALENDAR_DATA[g][b];var y=this.NEPALI_CALENDAR_DATA[g][b]-(h-m);return this.newDate(g,b,y)},_createMissingCalendarData:function(d){var f=this.daysPerMonth.slice(0);f.unshift(17);for(var p=d-1;p0?474:473))%2820+474+38)%2816<682},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(-(g.dayOfWeek()+1)%7,"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return this.dayOfWeek(f,p,m)!==5},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);f=g.year(),p=g.month(),m=g.day();var b=f-(f>=0?474:473),v=474+d(b,2820);return m+(p<=7?31*(p-1):30*(p-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(b/2820)+this.jdEpoch-1},fromJD:function(f){var p=(f=Math.floor(f)+.5)-this.toJD(475,1,1),m=Math.floor(p/1029983),g=d(p,1029983),b=2820;if(g!==1029982){var v=Math.floor(g/366),h=d(g,366);b=Math.floor((2134*v+2816*h+2815)/1028522)+v+1}var y=b+2820*m+474;y=y<=0?y-1:y;var w=f-this.toJD(y,1,1)+1,_=w<=186?Math.ceil(w/31):Math.ceil((w-6)/30),x=f-this.toJD(y,_,1)+1;return this.newDate(y,_,x)}}),s.calendars.persian=c,s.calendars.jalali=c},31320:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,m){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return(this.dayOfWeek(f,p,m)||7)<6},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),m=this._g2tYear(p.year());return this.newDate(m,p.month(),p.day())},_t2gYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)},_g2tYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)}}),s.calendars.taiwan=d},51367:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,m){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return(this.dayOfWeek(f,p,m)||7)<6},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),m=this._g2tYear(p.year());return this.newDate(m,p.month(),p.day())},_t2gYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)},_g2tYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)}}),s.calendars.thai=d},21457:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this.daysInYear(p.year())===355},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){for(var p=0,m=1;m<=12;m++)p+=this.daysInMonth(f,m);return p},daysInMonth:function(f,p){for(var m=this._validate(f,p,this.minDay,s.local.invalidMonth).toJD()-24e5+.5,g=0,b=0;bm)return d[g]-d[g-1];g++}return 30},weekDay:function(f,p,m){return this.dayOfWeek(f,p,m)!==5},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate),b=12*(g.year()-1)+g.month()-15292;return g.day()+d[b-1]-1+24e5-.5},fromJD:function(f){for(var p=f-24e5+.5,m=0,g=0;gp);g++)m++;var b=m+15292,v=Math.floor((b-1)/12),h=v+1,y=b-12*v,w=p-d[m-1]+1;return this.newDate(h,y,w)},isValid:function(f,p,m){var g=s.baseCalendar.prototype.isValid.apply(this,arguments);return g&&(g=(f=f.year!=null?f.year:f)>=1276&&f<=1500),g},_validate:function(f,p,m,g){var b=s.baseCalendar.prototype._validate.apply(this,arguments);if(b.year<1276||b.year>1500)throw g.replace(/\{0\}/,this.local.name);return b}}),s.calendars.ummalqura=c;var d=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(i,o,a){var s=a(56131);function u(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function c(g,b,v,h){if(this._calendar=g,this._year=b,this._month=v,this._day=h,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function d(g,b){return"000000".substring(0,b-(g=""+g).length)+g}function f(){this.shortYearCutoff="+10"}function p(g){this.local=this.regionalOptions[g]||this.regionalOptions[""]}s(u.prototype,{instance:function(g,b){g=(g||"gregorian").toLowerCase(),b=b||"";var v=this._localCals[g+"-"+b];if(!v&&this.calendars[g]&&(v=new this.calendars[g](b),this._localCals[g+"-"+b]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,g);return v},newDate:function(g,b,v,h,y){return(h=(g!=null&&g.year?g.calendar():typeof h=="string"?this.instance(h,y):h)||this.instance()).newDate(g,b,v)},substituteDigits:function(g){return function(b){return(b+"").replace(/[0-9]/g,function(v){return g[v]})}},substituteChineseDigits:function(g,b){return function(v){for(var h="",y=0;v>0;){var w=v%10;h=(w===0?"":g[w]+b[y])+h,y++,v=Math.floor(v/10)}return h.indexOf(g[1]+b[1])===0&&(h=h.substr(1)),h||g[0]}}}),s(c.prototype,{newDate:function(g,b,v){return this._calendar.newDate(g??this,b,v)},year:function(g){return arguments.length===0?this._year:this.set(g,"y")},month:function(g){return arguments.length===0?this._month:this.set(g,"m")},day:function(g){return arguments.length===0?this._day:this.set(g,"d")},date:function(g,b,v){if(!this._calendar.isValid(g,b,v))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=g,this._month=b,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(g,b){return this._calendar.add(this,g,b)},set:function(g,b){return this._calendar.set(this,g,b)},compareTo:function(g){if(this._calendar.name!==g._calendar.name)throw(m.local.differentCalendars||m.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,g._calendar.local.name);var b=this._year!==g._year?this._year-g._year:this._month!==g._month?this.monthOfYear()-g.monthOfYear():this._day-g._day;return b===0?0:b<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(g){return this._calendar.fromJD(g)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(g){return this._calendar.fromJSDate(g)},toString:function(){return(this.year()<0?"-":"")+d(Math.abs(this.year()),4)+"-"+d(this.month(),2)+"-"+d(this.day(),2)}}),s(f.prototype,{_validateLevel:0,newDate:function(g,b,v){return g==null?this.today():(g.year&&(this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate),v=g.day(),b=g.month(),g=g.year()),new c(this,g,b,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(g){return this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return(b.year()<0?"-":"")+d(Math.abs(b.year()),4)},monthsInYear:function(g){return this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),12},monthOfYear:function(g,b){var v=this._validate(g,b,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(g,b){var v=(b+this.firstMonth-2*this.minMonth)%this.monthsInYear(g)+this.minMonth;return this._validate(g,v,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth),v},daysInYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return this.leapYear(b)?366:365},dayOfYear:function(g,b,v){var h=this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate);return h.toJD()-this.newDate(h.year(),this.fromMonthOfYear(h.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(g,b,v){var h=this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(h))+2)%this.daysInWeek()},extraInfo:function(g,b,v){return this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate),{}},add:function(g,b,v){return this._validate(g,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate),this._correctAdd(g,this._add(g,b,v),b,v)},_add:function(g,b,v){if(this._validateLevel++,v==="d"||v==="w"){var h=g.toJD()+b*(v==="w"?this.daysInWeek():1),y=g.calendar().fromJD(h);return this._validateLevel--,[y.year(),y.month(),y.day()]}try{var w=g.year()+(v==="y"?b:0),_=g.monthOfYear()+(v==="m"?b:0);y=g.day(),v==="y"?(g.month()!==this.fromMonthOfYear(w,_)&&(_=this.newDate(w,g.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(w)),y=Math.min(y,this.daysInMonth(w,this.fromMonthOfYear(w,_)))):v==="m"&&(function(T){for(;_k-1+T.minMonth;)w++,_-=k,k=T.monthsInYear(w)}(this),y=Math.min(y,this.daysInMonth(w,this.fromMonthOfYear(w,_))));var x=[w,this.fromMonthOfYear(w,_),y];return this._validateLevel--,x}catch(T){throw this._validateLevel--,T}},_correctAdd:function(g,b,v,h){if(!(this.hasYearZero||h!=="y"&&h!=="m"||b[0]!==0&&g.year()>0==b[0]>0)){var y={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[h],w=v<0?-1:1;b=this._add(g,v*y[0]+w*y[1],y[2])}return g.date(b[0],b[1],b[2])},set:function(g,b,v){this._validate(g,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate);var h=v==="y"?b:g.year(),y=v==="m"?b:g.month(),w=v==="d"?b:g.day();return v!=="y"&&v!=="m"||(w=Math.min(w,this.daysInMonth(h,y))),g.date(h,y,w)},isValid:function(g,b,v){this._validateLevel++;var h=this.hasYearZero||g!==0;if(h){var y=this.newDate(g,b,this.minDay);h=b>=this.minMonth&&b-this.minMonth=this.minDay&&v-this.minDay13.5?13:1),k=y-(T>2.5?4716:4715);return k<=0&&k--,this.newDate(k,T,x)},toJSDate:function(g,b,v){var h=this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate),y=new Date(h.year(),h.month()-1,h.day());return y.setHours(0),y.setMinutes(0),y.setSeconds(0),y.setMilliseconds(0),y.setHours(y.getHours()>12?y.getHours()+2:0),y},fromJSDate:function(g){return this.newDate(g.getFullYear(),g.getMonth()+1,g.getDate())}});var m=i.exports=new u;m.cdate=c,m.baseCalendar=f,m.calendars.gregorian=p},94338:function(i,o,a){var s=a(56131),u=a(63489);s(u.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),u.local=u.regionalOptions[""],s(u.cdate.prototype,{formatDate:function(c,d){return typeof c!="string"&&(d=c,c=""),this._calendar.formatDate(c||"",this,d)}}),s(u.baseCalendar.prototype,{UNIX_EPOCH:u.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:u.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(c,d,f){if(typeof c!="string"&&(f=d,d=c,c=""),!d)return"";if(d.calendar()!==this)throw u.local.invalidFormat||u.regionalOptions[""].invalidFormat;c=c||this.local.dateFormat;for(var p,m,g,b=(f=f||{}).dayNamesShort||this.local.dayNamesShort,v=f.dayNames||this.local.dayNames,h=f.monthNumbers||this.local.monthNumbers,y=f.monthNamesShort||this.local.monthNamesShort,w=f.monthNames||this.local.monthNames,_=(f.calculateWeek||this.local.calculateWeek,function(E,I){for(var A=1;P+A1}),x=function(E,I,A,F){var j=""+I;if(_(E,F))for(;j.length1},O=function(N,R){var q=M(N,R),Y=[2,3,q?4:2,q?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+Y+"}"),W=d.substring(F).match(L);if(!W)throw(u.local.missingNumberAt||u.regionalOptions[""].missingNumberAt).replace(/\{0\}/,F);return F+=W[0].length,parseInt(W[0],10)},D=this,P=function(){if(typeof v=="function"){M("m");var N=v.call(D,d.substring(F));return F+=N.length,N}return O("m")},E=function(N,R,q,Y){for(var L=M(N,Y)?q:R,W=0;W-1){x=1,T=k;for(var B=this.daysInMonth(_,x);T>B;B=this.daysInMonth(_,x))x++,T-=B}return w>-1?this.fromJD(w):this.newDate(_,x,T)},determineDate:function(c,d,f,p,m){f&&typeof f!="object"&&(m=p,p=f,f=null),typeof p!="string"&&(m=p,p="");var g=this;return d=d?d.newDate():null,c==null?d:typeof c=="string"?function(b){try{return g.parseDate(p,b,m)}catch{}for(var v=((b=b.toLowerCase()).match(/^c/)&&f?f.newDate():null)||g.today(),h=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,y=h.exec(b);y;)v.add(parseInt(y[1],10),y[2]||"d"),y=h.exec(b);return v}(c):typeof c=="number"?isNaN(c)||c===1/0||c===-1/0?d:g.today().add(c,"d"):g.newDate(c)}})},69862:function(){},40964:function(){},72077:function(i,o,a){var s=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],u=typeof globalThis>"u"?a.g:globalThis;i.exports=function(){for(var c=[],d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(_){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(T){return T.__proto__||Object.getPrototypeOf(T)},b(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],h=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],y=typeof window<"u";function w(_){var x=function(T){c(S,T);var k=f(S);function S(C){var M;return a(this,S),M=k.call(this,C),M.p=Promise.resolve(),M.resizeHandler=null,M.handlers={},M.syncWindowResize=M.syncWindowResize.bind(m(M)),M.syncEventHandlers=M.syncEventHandlers.bind(m(M)),M.attachUpdateEvents=M.attachUpdateEvents.bind(m(M)),M.getRef=M.getRef.bind(m(M)),M.handleUpdate=M.handleUpdate.bind(m(M)),M.figureCallback=M.figureCallback.bind(m(M)),M.updatePlotly=M.updatePlotly.bind(m(M)),M}return u(S,[{key:"updatePlotly",value:function(M,O,D){var P=this;this.p=this.p.then(function(){if(!P.unmounting){if(!P.el)throw new Error("Missing element reference");return _.react(P.el,{data:P.props.data,layout:P.props.layout,config:P.props.config,frames:P.props.frames})}}).then(function(){P.unmounting||(P.syncWindowResize(M),P.syncEventHandlers(),P.figureCallback(O),D&&P.attachUpdateEvents())}).catch(function(E){P.props.onError&&P.props.onError(E)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(M){this.unmounting=!1;var O=M.frames&&M.frames.length?M.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,P=!(M.layout===this.props.layout&&M.data===this.props.data&&M.config===this.props.config&&D===O),E=M.revision!==void 0,I=M.revision!==this.props.revision;!P&&(!E||E&&!I)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&y&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||h.forEach(function(O){M.el.on(O,M.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||h.forEach(function(O){M.el.removeListener(O,M.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(M){if(typeof M=="function"){var O=this.el,D=O.data,P=O.layout,E=this.el._transitionData?this.el._transitionData._frames:null,I={data:D,layout:P,frames:E};M(I,this.el)}}},{key:"syncWindowResize",value:function(M){var O=this;y&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(O.el)},window.addEventListener("resize",this.resizeHandler),M&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(M){this.el=M,this.props.debug&&y&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var M=this;v.forEach(function(O){var D=M.props["on"+O],P=M.handlers[O],E=!!P;D&&!E?M.addEventHandler(O,D):!D&&E?M.removeEventHandler(O):D&&E&&D!==P&&(M.removeEventHandler(O),M.addEventHandler(O,D))})}},{key:"addEventHandler",value:function(M,O){this.handlers[M]=O,this.el.on(this.getPlotlyEventName(M),this.handlers[M])}},{key:"removeEventHandler",value:function(M){this.el.removeListener(this.getPlotlyEventName(M),this.handlers[M]),delete this.handlers[M]}},{key:"getPlotlyEventName",value:function(M){return"plotly_"+M.toLowerCase()}},{key:"render",value:function(){return n.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),S}(n.Component);return x.propTypes={data:r.default.arrayOf(r.default.object),config:r.default.object,layout:r.default.object,frames:r.default.arrayOf(r.default.object),revision:r.default.number,onInitialized:r.default.func,onPurge:r.default.func,onError:r.default.func,onUpdate:r.default.func,debug:r.default.bool,style:r.default.object,className:r.default.string,useResizeHandler:r.default.bool,divId:r.default.string},v.forEach(function(T){x.propTypes["on"+T]=r.default.func}),x.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},x}})(Bz);const Upe=lr(Bz),Wz=Upe(qpe),Hpe=Je.createContext(null),qz=()=>ge.useContext(Hpe),ub=e=>{var i;const t=qz(),n=e.data.some(({type:o})=>o==="histogram"),l=(t==null?void 0:t.isXaxisAsCategorical)&&!n?{type:"category",categoryorder:"category ascending"}:{};return ke.jsx("div",{children:ke.jsx(Wz,{data:e.data,layout:{...e.layout,title:void 0,xaxis:{...(i=e.layout)==null?void 0:i.xaxis,...l}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}})})};class Uz extends Je.Component{render(){return ke.jsx(cr,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}const Hz=()=>ke.jsx("div",{children:"Not implemented"}),Vpe=e=>{const t=e.activeTab===-1?0:e.activeTab;return ke.jsxs("div",{children:[ke.jsx(Nz,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map((n,r)=>ke.jsx(J3,{disabled:n.disabled??!1,label:ke.jsx(Ia,{className:e.tabStyle,children:ke.jsxs(Ia,{display:"flex",sx:{fontSize:"0.875rem"},children:[ke.jsx("span",{children:n.icon}),n.title]})})},r))}),ke.jsx(Ia,{children:e.tabs.map((n,r)=>ke.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==r,children:(e.activeTab===-1?0:e.activeTab)!==r?ke.jsx("div",{}):n.tab},r))})]})},EM=e=>{const[t,n]=ge.useState({activeTab:0});return ke.jsx(Je.Fragment,{children:ke.jsx(Vpe,{activeTab:t.activeTab,onNewTabSelected:(r,l)=>n(i=>({...i,activeTab:l})),tabs:e.tabs})})},Gpe=e=>ke.jsx(EM,{tabs:e.graphs.map(t=>({title:t.title,tab:ke.jsx(ub,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),Ype=e=>ke.jsx(rfe,{children:ke.jsxs(PM,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[ke.jsx(AM,{children:ke.jsxs(pm,{children:[ke.jsx(gi,{children:e.header[0]},-1),e.header.slice(1).map((t,n)=>ke.jsx(gi,{align:"right",children:t},n))]})}),ke.jsx(OM,{children:e.data.map(t=>ke.jsxs(pm,{children:[ke.jsx(gi,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map((n,r)=>ke.jsx(gi,{align:"right",children:n},r))]},t[0]))})]})});var Vz={},Gz={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Gz);var Cn=Gz.exports,kw={exports:{}},iD;function Ir(){return iD||(iD=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r{let t;const n=new Set,r=(s,u)=>{const c=typeof s=="function"?s(t):s;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},l=()=>t,a={setState:r,getState:l,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(Qpe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,l,a),a},Kz=e=>e?fD(e):fD;var Zz={exports:{}},Qz={},Jz={exports:{}},eB={};/** +`)):U=B.stylize("[Circular]","special")),S(W)){if(L&&Y.match(/^\d+$/))return U;(W=JSON.stringify(""+Y)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(W=W.slice(1,-1),W=B.stylize(W,"name")):(W=W.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),W=B.stylize(W,"string"))}return W+": "+U}function w(B){return Array.isArray(B)}function _(B){return typeof B=="boolean"}function x(B){return B===null}function T(B){return typeof B=="number"}function k(B){return typeof B=="string"}function S(B){return B===void 0}function C(B){return M(B)&&E(B)==="[object RegExp]"}function M(B){return typeof B=="object"&&B!==null}function O(B){return M(B)&&E(B)==="[object Date]"}function D(B){return M(B)&&(E(B)==="[object Error]"||B instanceof Error)}function P(B){return typeof B=="function"}function E(B){return Object.prototype.toString.call(B)}function I(B){return B<10?"0"+B.toString(10):B.toString(10)}o.debuglog=function(B){if(B=B.toUpperCase(),!d[B])if(f.test(B)){var N=s.pid;d[B]=function(){var R=o.format.apply(o,arguments);console.error("%s %d: %s",B,N,R)}}else d[B]=function(){};return d[B]},o.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},o.types=a(4936),o.isArray=w,o.isBoolean=_,o.isNull=x,o.isNullOrUndefined=function(B){return B==null},o.isNumber=T,o.isString=k,o.isSymbol=function(B){return typeof B=="symbol"},o.isUndefined=S,o.isRegExp=C,o.types.isRegExp=C,o.isObject=M,o.isDate=O,o.types.isDate=O,o.isError=D,o.types.isNativeError=D,o.isFunction=P,o.isPrimitive=function(B){return B===null||typeof B=="boolean"||typeof B=="number"||typeof B=="string"||typeof B=="symbol"||B===void 0},o.isBuffer=a(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(B,N){return Object.prototype.hasOwnProperty.call(B,N)}o.log=function(){var B,N;console.log("%s - %s",(N=[I((B=new Date).getHours()),I(B.getMinutes()),I(B.getSeconds())].join(":"),[B.getDate(),A[B.getMonth()],N].join(" ")),o.format.apply(o,arguments))},o.inherits=a(42018),o._extend=function(B,N){if(!N||!M(N))return B;for(var R=Object.keys(N),q=R.length;q--;)B[R[q]]=N[R[q]];return B};var j=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function z(B,N){if(!B){var R=new Error("Promise was rejected with a falsy value");R.reason=B,B=R}return N(B)}o.promisify=function(B){if(typeof B!="function")throw new TypeError('The "original" argument must be of type Function');if(j&&B[j]){var N;if(typeof(N=B[j])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,j,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var R,q,Y=new Promise(function(U,V){R=U,q=V}),L=[],W=0;W"u"?a.g:globalThis,g=u(),b=c("String.prototype.slice"),v={},h=Object.getPrototypeOf;p&&d&&h&&s(g,function(w){if(typeof m[w]=="function"){var _=new m[w];if(Symbol.toStringTag in _){var x=h(_),T=d(x,Symbol.toStringTag);if(!T){var k=h(x);T=d(k,Symbol.toStringTag)}v[w]=T.get}}});var y=a(9187);i.exports=function(w){return!!y(w)&&(p&&Symbol.toStringTag in w?function(_){var x=!1;return s(v,function(T,k){if(!x)try{var S=T.call(_);S===k&&(x=S)}catch{}}),x}(w):b(f(w),8,-1))}},3961:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(h,y){if(typeof h=="string"){var w=h.match(p);return w?w[0]:""}var _=this._validateYear(h),x=h.month(),T=""+this.toChineseMonth(_,x);return y&&T.length<2&&(T="0"+T),this.isIntercalaryMonth(_,x)&&(T+="i"),T},monthNames:function(h){if(typeof h=="string"){var y=h.match(m);return y?y[0]:""}var w=this._validateYear(h),_=h.month(),x=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(w,_)-1];return this.isIntercalaryMonth(w,_)&&(x="闰"+x),x},monthNamesShort:function(h){if(typeof h=="string"){var y=h.match(g);return y?y[0]:""}var w=this._validateYear(h),_=h.month(),x=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(w,_)-1];return this.isIntercalaryMonth(w,_)&&(x="闰"+x),x},parseMonth:function(h,y){h=this._validateYear(h);var w,_=parseInt(y);if(isNaN(_))y[0]==="闰"&&(w=!0,y=y.substring(1)),y[y.length-1]==="月"&&(y=y.substring(0,y.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(y);else{var x=y[y.length-1];w=x==="i"||x==="I"}return this.toMonthIndex(h,_,w)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(h,y){if(h.year&&(h=h.year()),typeof h!="number"||h<1888||h>2111)throw y.replace(/\{0\}/,this.local.name);return h},toMonthIndex:function(h,y,w){var _=this.intercalaryMonth(h);if(w&&y!==_||y<1||y>12)throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!w&&y<=_?y-1:y:y-1},toChineseMonth:function(h,y){h.year&&(y=(h=h.year()).month());var w=this.intercalaryMonth(h);if(y<0||y>(w?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return w?y>13},isIntercalaryMonth:function(h,y){h.year&&(y=(h=h.year()).month());var w=this.intercalaryMonth(h);return!!w&&w===y},leapYear:function(h){return this.intercalaryMonth(h)!==0},weekOfYear:function(h,y,w){var _,x=this._validateYear(h,s.local.invalidyear),T=v[x-v[0]],k=T>>9&4095,S=T>>5&15,C=31&T;(_=c.newDate(k,S,C)).add(4-(_.dayOfWeek()||7),"d");var M=this.toJD(h,y,w)-_.toJD();return 1+Math.floor(M/7)},monthsInYear:function(h){return this.leapYear(h)?13:12},daysInMonth:function(h,y){h.year&&(y=h.month(),h=h.year()),h=this._validateYear(h);var w=b[h-b[0]];if(y>(w>>13?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return w&1<<12-y?30:29},weekDay:function(h,y,w){return(this.dayOfWeek(h,y,w)||7)<6},toJD:function(h,y,w){var _=this._validate(h,T,w,s.local.invalidDate);h=this._validateYear(_.year()),y=_.month(),w=_.day();var x=this.isIntercalaryMonth(h,y),T=this.toChineseMonth(h,y),k=function(S,C,M,O,D){var P,E,I;if(typeof S=="object")E=S,P=C||{};else{var A;if(!(typeof S=="number"&&S>=1888&&S<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof C=="number"&&C>=1&&C<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof M=="number"&&M>=1&&M<=30))throw new Error("Lunar day outside range 1 - 30");typeof O=="object"?(A=!1,P=O):(A=!!O,P={}),E={year:S,month:C,day:M,isIntercalary:A}}I=E.day-1;var F,j=b[E.year-b[0]],z=j>>13;F=z&&(E.month>z||E.isIntercalary)?E.month:E.month-1;for(var B=0;B>9&4095,(N>>5&15)-1,(31&N)+I);return P.year=R.getFullYear(),P.month=1+R.getMonth(),P.day=R.getDate(),P}(h,T,w,x);return c.toJD(k.year,k.month,k.day)},fromJD:function(h){var y=c.fromJD(h),w=function(x,T,k,S){var C,M;if(typeof x=="object")C=x,M=T||{};else{if(!(typeof x=="number"&&x>=1888&&x<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof k=="number"&&k>=1&&k<=31))throw new Error("Solar day outside range 1 - 31");C={year:x,month:T,day:k},M={}}var O=v[C.year-v[0]],D=C.year<<9|C.month<<5|C.day;M.year=D>=O?C.year:C.year-1,O=v[M.year-v[0]];var P,E=new Date(O>>9&4095,(O>>5&15)-1,31&O),I=new Date(C.year,C.month-1,C.day);P=Math.round((I-E)/864e5);var A,F=b[M.year-b[0]];for(A=0;A<13;A++){var j=F&1<<12-A?30:29;if(P>13;return!z||A=2&&g<=6},extraInfo:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return{century:d[Math.floor((g.year()-1)/100)+1]||""}},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return f=g.year()+(g.year()<0?1:0),p=g.month(),(m=g.day())+(p>1?16:0)+(p>2?32*(p-2):0)+400*(f-1)+this.jdEpoch-1},fromJD:function(f){f=Math.floor(f+.5)-Math.floor(this.jdEpoch)-1;var p=Math.floor(f/400)+1;f-=400*(p-1),f+=f>15?16:0;var m=Math.floor(f/32)+1,g=f-32*(m-1)+1;return this.newDate(p<=0?p-1:p,m,g)}});var d={20:"Fruitbat",21:"Anchovy"};s.calendars.discworld=c},37715:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()+(f.year()<0?1:0))%4==3||d%4==-1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),13},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===13&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);return(d=m.year())<0&&d++,m.day()+30*(m.month()-1)+365*(d-1)+Math.floor(d/4)+this.jdEpoch-1},fromJD:function(d){var f=Math.floor(d)+.5-this.jdEpoch,p=Math.floor((f-Math.floor((f+366)/1461))/365)+1;p<=0&&p--,f=Math.floor(d)+.5-this.newDate(p,1,1).toJD();var m=Math.floor(f/30)+1,g=f-30*(m-1)+1;return this.newDate(p,m,g)}}),s.calendars.ethiopian=c},99384:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}function d(f,p){return f-p*Math.floor(f/p)}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this._leapYear(p.year())},_leapYear:function(f){return d(7*(f=f<0?f+1:f)+1,19)<7},monthsInYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),this._leapYear(f.year?f.year():f)?13:12},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){return f=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear).year(),this.toJD(f===-1?1:f+1,7,1)-this.toJD(f,7,1)},daysInMonth:function(f,p){return f.year&&(p=f.month(),f=f.year()),this._validate(f,p,this.minDay,s.local.invalidMonth),p===12&&this.leapYear(f)||p===8&&d(this.daysInYear(f),10)===5?30:p===9&&d(this.daysInYear(f),10)===3?29:this.daysPerMonth[p-1]},weekDay:function(f,p,m){return this.dayOfWeek(f,p,m)!==6},extraInfo:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return{yearType:(this.leapYear(g)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(g)%10-3]}},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);f=g.year(),p=g.month(),m=g.day();var b=f<=0?f+1:f,v=this.jdEpoch+this._delay1(b)+this._delay2(b)+m+1;if(p<7){for(var h=7;h<=this.monthsInYear(f);h++)v+=this.daysInMonth(f,h);for(h=1;h=this.toJD(p===-1?1:p+1,7,1);)p++;for(var m=fthis.toJD(p,m,this.daysInMonth(p,m));)m++;var g=f-this.toJD(p,m,1)+1;return this.newDate(p,m,g)}}),s.calendars.hebrew=c},43805:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(d){return(11*this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year()+14)%30<11},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){return this.leapYear(d)?355:354},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==5},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);return d=m.year(),f=m.month(),d=d<=0?d+1:d,(p=m.day())+Math.ceil(29.5*(f-1))+354*(d-1)+Math.floor((3+11*d)/30)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d)+.5;var f=Math.floor((30*(d-this.jdEpoch)+10646)/10631);f=f<=0?f-1:f;var p=Math.min(12,Math.ceil((d-29-this.toJD(f,1,1))/29.5)+1),m=d-this.toJD(f,p,1)+1;return this.newDate(f,p,m)}}),s.calendars.islamic=c},88874:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()<0?f.year()+1:f.year())%4==0},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(4-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);return d=m.year(),f=m.month(),p=m.day(),d<0&&d++,f<=2&&(d--,f+=12),Math.floor(365.25*(d+4716))+Math.floor(30.6001*(f+1))+p-1524.5},fromJD:function(d){var f=Math.floor(d+.5)+1524,p=Math.floor((f-122.1)/365.25),m=Math.floor(365.25*p),g=Math.floor((f-m)/30.6001),b=g-Math.floor(g<14?1:13),v=p-Math.floor(b>2?4716:4715),h=f-m-Math.floor(30.6001*g);return v<=0&&v--,this.newDate(v,b,h)}}),s.calendars.julian=c},83290:function(i,o,a){var s=a(63489),u=a(56131);function c(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}function d(p,m){return p-m*Math.floor(p/m)}function f(p,m){return d(p-1,m)+1}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),!1},formatYear:function(p){p=this._validate(p,this.minMonth,this.minDay,s.local.invalidYear).year();var m=Math.floor(p/400);return p%=400,p+=p<0?400:0,m+"."+Math.floor(p/20)+"."+p%20},forYear:function(p){if((p=p.split(".")).length<3)throw"Invalid Mayan year";for(var m=0,g=0;g19||g>0&&b<0)throw"Invalid Mayan year";m=20*m+b}return m},monthsInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),18},weekOfYear:function(p,m,g){return this._validate(p,m,g,s.local.invalidDate),0},daysInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),360},daysInMonth:function(p,m){return this._validate(p,m,this.minDay,s.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(p,m,g){return this._validate(p,m,g,s.local.invalidDate).day()},weekDay:function(p,m,g){return this._validate(p,m,g,s.local.invalidDate),!0},extraInfo:function(p,m,g){var b=this._validate(p,m,g,s.local.invalidDate).toJD(),v=this._toHaab(b),h=this._toTzolkin(b);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[h[0]-1],tzolkinDay:h[0],tzolkinTrecena:h[1]}},_toHaab:function(p){var m=d(8+(p-=this.jdEpoch)+340,365);return[Math.floor(m/20)+1,d(m,20)]},_toTzolkin:function(p){return[f(20+(p-=this.jdEpoch),20),f(p+4,13)]},toJD:function(p,m,g){var b=this._validate(p,m,g,s.local.invalidDate);return b.day()+20*b.month()+360*b.year()+this.jdEpoch},fromJD:function(p){p=Math.floor(p)+.5-this.jdEpoch;var m=Math.floor(p/360);p%=360,p+=p<0?360:0;var g=Math.floor(p/20),b=p%20;return this.newDate(m,g,b)}}),s.calendars.mayan=c},29108:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar;var d=s.instance("gregorian");u(c.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return d.leapYear(p.year()+(p.year()<1?1:0)+1469)},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(1-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return(this.dayOfWeek(f,p,m)||7)<6},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidMonth);(f=g.year())<0&&f++;for(var b=g.day(),v=1;v=this.toJD(p+1,1,1);)p++;for(var m=f-Math.floor(this.toJD(p,1,1)+.5)+1,g=1;m>this.daysInMonth(p,g);)m-=this.daysInMonth(p,g),g++;return this.newDate(p,g,m)}}),s.calendars.nanakshahi=c},55422:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(d){return this.daysInYear(d)!==this.daysPerYear},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){if(d=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[d]===void 0)return this.daysPerYear;for(var f=0,p=this.minMonth;p<=12;p++)f+=this.NEPALI_CALENDAR_DATA[d][p];return f},daysInMonth:function(d,f){return d.year&&(f=d.month(),d=d.year()),this._validate(d,f,this.minDay,s.local.invalidMonth),this.NEPALI_CALENDAR_DATA[d]===void 0?this.daysPerMonth[f-1]:this.NEPALI_CALENDAR_DATA[d][f]},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==6},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);d=m.year(),f=m.month(),p=m.day();var g=s.instance(),b=0,v=f,h=d;this._createMissingCalendarData(d);var y=d-(v>9||v===9&&p>=this.NEPALI_CALENDAR_DATA[h][0]?56:57);for(f!==9&&(b=p,v--);v!==9;)v<=0&&(v=12,h--),b+=this.NEPALI_CALENDAR_DATA[h][v],v--;return f===9?(b+=p-this.NEPALI_CALENDAR_DATA[h][0])<0&&(b+=g.daysInYear(y)):b+=this.NEPALI_CALENDAR_DATA[h][9]-this.NEPALI_CALENDAR_DATA[h][0],g.newDate(y,1,1).add(b,"d").toJD()},fromJD:function(d){var f=s.instance().fromJD(d),p=f.year(),m=f.dayOfYear(),g=p+56;this._createMissingCalendarData(g);for(var b=9,v=this.NEPALI_CALENDAR_DATA[g][0],h=this.NEPALI_CALENDAR_DATA[g][b]-v+1;m>h;)++b>12&&(b=1,g++),h+=this.NEPALI_CALENDAR_DATA[g][b];var y=this.NEPALI_CALENDAR_DATA[g][b]-(h-m);return this.newDate(g,b,y)},_createMissingCalendarData:function(d){var f=this.daysPerMonth.slice(0);f.unshift(17);for(var p=d-1;p0?474:473))%2820+474+38)%2816<682},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(-(g.dayOfWeek()+1)%7,"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return this.dayOfWeek(f,p,m)!==5},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);f=g.year(),p=g.month(),m=g.day();var b=f-(f>=0?474:473),v=474+d(b,2820);return m+(p<=7?31*(p-1):30*(p-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(b/2820)+this.jdEpoch-1},fromJD:function(f){var p=(f=Math.floor(f)+.5)-this.toJD(475,1,1),m=Math.floor(p/1029983),g=d(p,1029983),b=2820;if(g!==1029982){var v=Math.floor(g/366),h=d(g,366);b=Math.floor((2134*v+2816*h+2815)/1028522)+v+1}var y=b+2820*m+474;y=y<=0?y-1:y;var w=f-this.toJD(y,1,1)+1,_=w<=186?Math.ceil(w/31):Math.ceil((w-6)/30),x=f-this.toJD(y,_,1)+1;return this.newDate(y,_,x)}}),s.calendars.persian=c,s.calendars.jalali=c},31320:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,m){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return(this.dayOfWeek(f,p,m)||7)<6},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),m=this._g2tYear(p.year());return this.newDate(m,p.month(),p.day())},_t2gYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)},_g2tYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)}}),s.calendars.taiwan=d},51367:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,m){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return(this.dayOfWeek(f,p,m)||7)<6},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),m=this._g2tYear(p.year());return this.newDate(m,p.month(),p.day())},_t2gYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)},_g2tYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)}}),s.calendars.thai=d},21457:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this.daysInYear(p.year())===355},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){for(var p=0,m=1;m<=12;m++)p+=this.daysInMonth(f,m);return p},daysInMonth:function(f,p){for(var m=this._validate(f,p,this.minDay,s.local.invalidMonth).toJD()-24e5+.5,g=0,b=0;bm)return d[g]-d[g-1];g++}return 30},weekDay:function(f,p,m){return this.dayOfWeek(f,p,m)!==5},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate),b=12*(g.year()-1)+g.month()-15292;return g.day()+d[b-1]-1+24e5-.5},fromJD:function(f){for(var p=f-24e5+.5,m=0,g=0;gp);g++)m++;var b=m+15292,v=Math.floor((b-1)/12),h=v+1,y=b-12*v,w=p-d[m-1]+1;return this.newDate(h,y,w)},isValid:function(f,p,m){var g=s.baseCalendar.prototype.isValid.apply(this,arguments);return g&&(g=(f=f.year!=null?f.year:f)>=1276&&f<=1500),g},_validate:function(f,p,m,g){var b=s.baseCalendar.prototype._validate.apply(this,arguments);if(b.year<1276||b.year>1500)throw g.replace(/\{0\}/,this.local.name);return b}}),s.calendars.ummalqura=c;var d=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(i,o,a){var s=a(56131);function u(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function c(g,b,v,h){if(this._calendar=g,this._year=b,this._month=v,this._day=h,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function d(g,b){return"000000".substring(0,b-(g=""+g).length)+g}function f(){this.shortYearCutoff="+10"}function p(g){this.local=this.regionalOptions[g]||this.regionalOptions[""]}s(u.prototype,{instance:function(g,b){g=(g||"gregorian").toLowerCase(),b=b||"";var v=this._localCals[g+"-"+b];if(!v&&this.calendars[g]&&(v=new this.calendars[g](b),this._localCals[g+"-"+b]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,g);return v},newDate:function(g,b,v,h,y){return(h=(g!=null&&g.year?g.calendar():typeof h=="string"?this.instance(h,y):h)||this.instance()).newDate(g,b,v)},substituteDigits:function(g){return function(b){return(b+"").replace(/[0-9]/g,function(v){return g[v]})}},substituteChineseDigits:function(g,b){return function(v){for(var h="",y=0;v>0;){var w=v%10;h=(w===0?"":g[w]+b[y])+h,y++,v=Math.floor(v/10)}return h.indexOf(g[1]+b[1])===0&&(h=h.substr(1)),h||g[0]}}}),s(c.prototype,{newDate:function(g,b,v){return this._calendar.newDate(g??this,b,v)},year:function(g){return arguments.length===0?this._year:this.set(g,"y")},month:function(g){return arguments.length===0?this._month:this.set(g,"m")},day:function(g){return arguments.length===0?this._day:this.set(g,"d")},date:function(g,b,v){if(!this._calendar.isValid(g,b,v))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=g,this._month=b,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(g,b){return this._calendar.add(this,g,b)},set:function(g,b){return this._calendar.set(this,g,b)},compareTo:function(g){if(this._calendar.name!==g._calendar.name)throw(m.local.differentCalendars||m.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,g._calendar.local.name);var b=this._year!==g._year?this._year-g._year:this._month!==g._month?this.monthOfYear()-g.monthOfYear():this._day-g._day;return b===0?0:b<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(g){return this._calendar.fromJD(g)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(g){return this._calendar.fromJSDate(g)},toString:function(){return(this.year()<0?"-":"")+d(Math.abs(this.year()),4)+"-"+d(this.month(),2)+"-"+d(this.day(),2)}}),s(f.prototype,{_validateLevel:0,newDate:function(g,b,v){return g==null?this.today():(g.year&&(this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate),v=g.day(),b=g.month(),g=g.year()),new c(this,g,b,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(g){return this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return(b.year()<0?"-":"")+d(Math.abs(b.year()),4)},monthsInYear:function(g){return this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),12},monthOfYear:function(g,b){var v=this._validate(g,b,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(g,b){var v=(b+this.firstMonth-2*this.minMonth)%this.monthsInYear(g)+this.minMonth;return this._validate(g,v,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth),v},daysInYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return this.leapYear(b)?366:365},dayOfYear:function(g,b,v){var h=this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate);return h.toJD()-this.newDate(h.year(),this.fromMonthOfYear(h.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(g,b,v){var h=this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(h))+2)%this.daysInWeek()},extraInfo:function(g,b,v){return this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate),{}},add:function(g,b,v){return this._validate(g,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate),this._correctAdd(g,this._add(g,b,v),b,v)},_add:function(g,b,v){if(this._validateLevel++,v==="d"||v==="w"){var h=g.toJD()+b*(v==="w"?this.daysInWeek():1),y=g.calendar().fromJD(h);return this._validateLevel--,[y.year(),y.month(),y.day()]}try{var w=g.year()+(v==="y"?b:0),_=g.monthOfYear()+(v==="m"?b:0);y=g.day(),v==="y"?(g.month()!==this.fromMonthOfYear(w,_)&&(_=this.newDate(w,g.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(w)),y=Math.min(y,this.daysInMonth(w,this.fromMonthOfYear(w,_)))):v==="m"&&(function(T){for(;_k-1+T.minMonth;)w++,_-=k,k=T.monthsInYear(w)}(this),y=Math.min(y,this.daysInMonth(w,this.fromMonthOfYear(w,_))));var x=[w,this.fromMonthOfYear(w,_),y];return this._validateLevel--,x}catch(T){throw this._validateLevel--,T}},_correctAdd:function(g,b,v,h){if(!(this.hasYearZero||h!=="y"&&h!=="m"||b[0]!==0&&g.year()>0==b[0]>0)){var y={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[h],w=v<0?-1:1;b=this._add(g,v*y[0]+w*y[1],y[2])}return g.date(b[0],b[1],b[2])},set:function(g,b,v){this._validate(g,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate);var h=v==="y"?b:g.year(),y=v==="m"?b:g.month(),w=v==="d"?b:g.day();return v!=="y"&&v!=="m"||(w=Math.min(w,this.daysInMonth(h,y))),g.date(h,y,w)},isValid:function(g,b,v){this._validateLevel++;var h=this.hasYearZero||g!==0;if(h){var y=this.newDate(g,b,this.minDay);h=b>=this.minMonth&&b-this.minMonth=this.minDay&&v-this.minDay13.5?13:1),k=y-(T>2.5?4716:4715);return k<=0&&k--,this.newDate(k,T,x)},toJSDate:function(g,b,v){var h=this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate),y=new Date(h.year(),h.month()-1,h.day());return y.setHours(0),y.setMinutes(0),y.setSeconds(0),y.setMilliseconds(0),y.setHours(y.getHours()>12?y.getHours()+2:0),y},fromJSDate:function(g){return this.newDate(g.getFullYear(),g.getMonth()+1,g.getDate())}});var m=i.exports=new u;m.cdate=c,m.baseCalendar=f,m.calendars.gregorian=p},94338:function(i,o,a){var s=a(56131),u=a(63489);s(u.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),u.local=u.regionalOptions[""],s(u.cdate.prototype,{formatDate:function(c,d){return typeof c!="string"&&(d=c,c=""),this._calendar.formatDate(c||"",this,d)}}),s(u.baseCalendar.prototype,{UNIX_EPOCH:u.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:u.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(c,d,f){if(typeof c!="string"&&(f=d,d=c,c=""),!d)return"";if(d.calendar()!==this)throw u.local.invalidFormat||u.regionalOptions[""].invalidFormat;c=c||this.local.dateFormat;for(var p,m,g,b=(f=f||{}).dayNamesShort||this.local.dayNamesShort,v=f.dayNames||this.local.dayNames,h=f.monthNumbers||this.local.monthNumbers,y=f.monthNamesShort||this.local.monthNamesShort,w=f.monthNames||this.local.monthNames,_=(f.calculateWeek||this.local.calculateWeek,function(E,I){for(var A=1;P+A1}),x=function(E,I,A,F){var j=""+I;if(_(E,F))for(;j.length1},O=function(N,R){var q=M(N,R),Y=[2,3,q?4:2,q?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+Y+"}"),W=d.substring(F).match(L);if(!W)throw(u.local.missingNumberAt||u.regionalOptions[""].missingNumberAt).replace(/\{0\}/,F);return F+=W[0].length,parseInt(W[0],10)},D=this,P=function(){if(typeof v=="function"){M("m");var N=v.call(D,d.substring(F));return F+=N.length,N}return O("m")},E=function(N,R,q,Y){for(var L=M(N,Y)?q:R,W=0;W-1){x=1,T=k;for(var B=this.daysInMonth(_,x);T>B;B=this.daysInMonth(_,x))x++,T-=B}return w>-1?this.fromJD(w):this.newDate(_,x,T)},determineDate:function(c,d,f,p,m){f&&typeof f!="object"&&(m=p,p=f,f=null),typeof p!="string"&&(m=p,p="");var g=this;return d=d?d.newDate():null,c==null?d:typeof c=="string"?function(b){try{return g.parseDate(p,b,m)}catch{}for(var v=((b=b.toLowerCase()).match(/^c/)&&f?f.newDate():null)||g.today(),h=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,y=h.exec(b);y;)v.add(parseInt(y[1],10),y[2]||"d"),y=h.exec(b);return v}(c):typeof c=="number"?isNaN(c)||c===1/0||c===-1/0?d:g.today().add(c,"d"):g.newDate(c)}})},69862:function(){},40964:function(){},72077:function(i,o,a){var s=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],u=typeof globalThis>"u"?a.g:globalThis;i.exports=function(){for(var c=[],d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(_){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(T){return T.__proto__||Object.getPrototypeOf(T)},b(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],h=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],y=typeof window<"u";function w(_){var x=function(T){c(S,T);var k=f(S);function S(C){var M;return a(this,S),M=k.call(this,C),M.p=Promise.resolve(),M.resizeHandler=null,M.handlers={},M.syncWindowResize=M.syncWindowResize.bind(m(M)),M.syncEventHandlers=M.syncEventHandlers.bind(m(M)),M.attachUpdateEvents=M.attachUpdateEvents.bind(m(M)),M.getRef=M.getRef.bind(m(M)),M.handleUpdate=M.handleUpdate.bind(m(M)),M.figureCallback=M.figureCallback.bind(m(M)),M.updatePlotly=M.updatePlotly.bind(m(M)),M}return u(S,[{key:"updatePlotly",value:function(M,O,D){var P=this;this.p=this.p.then(function(){if(!P.unmounting){if(!P.el)throw new Error("Missing element reference");return _.react(P.el,{data:P.props.data,layout:P.props.layout,config:P.props.config,frames:P.props.frames})}}).then(function(){P.unmounting||(P.syncWindowResize(M),P.syncEventHandlers(),P.figureCallback(O),D&&P.attachUpdateEvents())}).catch(function(E){P.props.onError&&P.props.onError(E)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(M){this.unmounting=!1;var O=M.frames&&M.frames.length?M.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,P=!(M.layout===this.props.layout&&M.data===this.props.data&&M.config===this.props.config&&D===O),E=M.revision!==void 0,I=M.revision!==this.props.revision;!P&&(!E||E&&!I)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&y&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||h.forEach(function(O){M.el.on(O,M.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||h.forEach(function(O){M.el.removeListener(O,M.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(M){if(typeof M=="function"){var O=this.el,D=O.data,P=O.layout,E=this.el._transitionData?this.el._transitionData._frames:null,I={data:D,layout:P,frames:E};M(I,this.el)}}},{key:"syncWindowResize",value:function(M){var O=this;y&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(O.el)},window.addEventListener("resize",this.resizeHandler),M&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(M){this.el=M,this.props.debug&&y&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var M=this;v.forEach(function(O){var D=M.props["on"+O],P=M.handlers[O],E=!!P;D&&!E?M.addEventHandler(O,D):!D&&E?M.removeEventHandler(O):D&&E&&D!==P&&(M.removeEventHandler(O),M.addEventHandler(O,D))})}},{key:"addEventHandler",value:function(M,O){this.handlers[M]=O,this.el.on(this.getPlotlyEventName(M),this.handlers[M])}},{key:"removeEventHandler",value:function(M){this.el.removeListener(this.getPlotlyEventName(M),this.handlers[M]),delete this.handlers[M]}},{key:"getPlotlyEventName",value:function(M){return"plotly_"+M.toLowerCase()}},{key:"render",value:function(){return n.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),S}(n.Component);return x.propTypes={data:r.default.arrayOf(r.default.object),config:r.default.object,layout:r.default.object,frames:r.default.arrayOf(r.default.object),revision:r.default.number,onInitialized:r.default.func,onPurge:r.default.func,onError:r.default.func,onUpdate:r.default.func,debug:r.default.bool,style:r.default.object,className:r.default.string,useResizeHandler:r.default.bool,divId:r.default.string},v.forEach(function(T){x.propTypes["on"+T]=r.default.func}),x.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},x}})(zz);const zpe=lr(zz),Bz=zpe(jpe),Bpe=Je.createContext(null),Wz=()=>ge.useContext(Bpe),ub=e=>{var i;const t=Wz(),n=e.data.some(({type:o})=>o==="histogram"),l=(t==null?void 0:t.isXaxisAsCategorical)&&!n?{type:"category",categoryorder:"category ascending"}:{};return ke.jsx("div",{children:ke.jsx(Bz,{data:e.data,layout:{...e.layout,title:void 0,xaxis:{...(i=e.layout)==null?void 0:i.xaxis,...l}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}})})};var qz={},Uz={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Uz);var Cn=Uz.exports,kw={exports:{}},aD;function Ir(){return aD||(aD=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r{let t;const n=new Set,r=(s,u)=>{const c=typeof s=="function"?s(t):s;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},l=()=>t,a={setState:r,getState:l,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(Hpe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,l,a),a},Gz=e=>e?cD(e):cD;var Yz={exports:{}},Xz={},Kz={exports:{}},Zz={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -359,7 +359,7 @@ should equal * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Bd=ge;function Jpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ehe=typeof Object.is=="function"?Object.is:Jpe,the=Bd.useState,nhe=Bd.useEffect,rhe=Bd.useLayoutEffect,ahe=Bd.useDebugValue;function ohe(e,t){var n=t(),r=the({inst:{value:n,getSnapshot:t}}),l=r[0].inst,i=r[1];return rhe(function(){l.value=n,l.getSnapshot=t,Lw(l)&&i({inst:l})},[e,n,t]),nhe(function(){return Lw(l)&&i({inst:l}),e(function(){Lw(l)&&i({inst:l})})},[e]),ahe(n),n}function Lw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ehe(e,n)}catch{return!0}}function ihe(e,t){return t()}var lhe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ihe:ohe;eB.useSyncExternalStore=Bd.useSyncExternalStore!==void 0?Bd.useSyncExternalStore:lhe;Jz.exports=eB;var tB=Jz.exports;/** + */var Bd=ge;function Vpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gpe=typeof Object.is=="function"?Object.is:Vpe,Ype=Bd.useState,Xpe=Bd.useEffect,Kpe=Bd.useLayoutEffect,Zpe=Bd.useDebugValue;function Qpe(e,t){var n=t(),r=Ype({inst:{value:n,getSnapshot:t}}),l=r[0].inst,i=r[1];return Kpe(function(){l.value=n,l.getSnapshot=t,Lw(l)&&i({inst:l})},[e,n,t]),Xpe(function(){return Lw(l)&&i({inst:l}),e(function(){Lw(l)&&i({inst:l})})},[e]),Zpe(n),n}function Lw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gpe(e,n)}catch{return!0}}function Jpe(e,t){return t()}var ehe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Jpe:Qpe;Zz.useSyncExternalStore=Bd.useSyncExternalStore!==void 0?Bd.useSyncExternalStore:ehe;Kz.exports=Zz;var Qz=Kz.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -367,11 +367,11 @@ should equal * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var cb=ge,she=tB;function uhe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var che=typeof Object.is=="function"?Object.is:uhe,dhe=she.useSyncExternalStore,fhe=cb.useRef,phe=cb.useEffect,hhe=cb.useMemo,mhe=cb.useDebugValue;Qz.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var i=fhe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=hhe(function(){function s(p){if(!u){if(u=!0,c=p,p=r(p),l!==void 0&&o.hasValue){var m=o.value;if(l(m,p))return d=m}return d=p}if(m=d,che(c,p))return m;var g=r(p);return l!==void 0&&l(m,g)?m:(c=p,d=g)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return s(t())},f===null?void 0:function(){return s(f())}]},[t,n,r,l]);var a=dhe(e,i[0],i[1]);return phe(function(){o.hasValue=!0,o.value=a},[a]),mhe(a),a};Zz.exports=Qz;var ghe=Zz.exports;const vhe=lr(ghe),{useSyncExternalStoreWithSelector:yhe}=vhe;function nB(e,t=e.getState,n){const r=yhe(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return ge.useDebugValue(r),r}const pD=e=>{const t=typeof e=="function"?Kz(e):e,n=(r,l)=>nB(t,r,l);return Object.assign(n,t),n},rB=e=>e?pD(e):pD;var bhe=e=>rB(e);const xhe=Object.freeze(Object.defineProperty({__proto__:null,create:rB,createStore:Kz,default:bhe,useStore:nB},Symbol.toStringTag,{value:"Module"})),whe=Qn(xhe);var u0={exports:{}},Iw={exports:{}},hD;function _he(){return hD||(hD=1,function(e,t){(function(n,r){e.exports=r()})(Oo,function(){var n=typeof Promise=="function",r=typeof self=="object"?self:Oo,l=typeof Symbol<"u",i=typeof Map<"u",o=typeof Set<"u",a=typeof WeakMap<"u",s=typeof WeakSet<"u",u=typeof DataView<"u",c=l&&typeof Symbol.iterator<"u",d=l&&typeof Symbol.toStringTag<"u",f=o&&typeof Set.prototype.entries=="function",p=i&&typeof Map.prototype.entries=="function",m=f&&Object.getPrototypeOf(new Set().entries()),g=p&&Object.getPrototypeOf(new Map().entries()),b=c&&typeof Array.prototype[Symbol.iterator]=="function",v=b&&Object.getPrototypeOf([][Symbol.iterator]()),h=c&&typeof String.prototype[Symbol.iterator]=="function",y=h&&Object.getPrototypeOf(""[Symbol.iterator]()),w=8,_=-1;function x(T){var k=typeof T;if(k!=="object")return k;if(T===null)return"null";if(T===r)return"global";if(Array.isArray(T)&&(d===!1||!(Symbol.toStringTag in T)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&T===window.location)return"Location";if(typeof window.document=="object"&&T===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&T===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&T===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&T instanceof window.HTMLElement){if(T.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(T.tagName==="TD")return"HTMLTableDataCellElement";if(T.tagName==="TH")return"HTMLTableHeaderCellElement"}}var S=d&&T[Symbol.toStringTag];if(typeof S=="string")return S;var C=Object.getPrototypeOf(T);return C===RegExp.prototype?"RegExp":C===Date.prototype?"Date":n&&C===Promise.prototype?"Promise":o&&C===Set.prototype?"Set":i&&C===Map.prototype?"Map":s&&C===WeakSet.prototype?"WeakSet":a&&C===WeakMap.prototype?"WeakMap":u&&C===DataView.prototype?"DataView":i&&C===g?"Map Iterator":o&&C===m?"Set Iterator":b&&C===v?"Array Iterator":h&&C===y?"String Iterator":C===null?"Object":Object.prototype.toString.call(T).slice(w,_)}return x})}(Iw)),Iw.exports}var mD;function aB(){if(mD)return u0.exports;mD=1;/*! + */var cb=ge,the=Qz;function nhe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rhe=typeof Object.is=="function"?Object.is:nhe,ahe=the.useSyncExternalStore,ohe=cb.useRef,ihe=cb.useEffect,lhe=cb.useMemo,she=cb.useDebugValue;Xz.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var i=ohe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=lhe(function(){function s(p){if(!u){if(u=!0,c=p,p=r(p),l!==void 0&&o.hasValue){var m=o.value;if(l(m,p))return d=m}return d=p}if(m=d,rhe(c,p))return m;var g=r(p);return l!==void 0&&l(m,g)?m:(c=p,d=g)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return s(t())},f===null?void 0:function(){return s(f())}]},[t,n,r,l]);var a=ahe(e,i[0],i[1]);return ihe(function(){o.hasValue=!0,o.value=a},[a]),she(a),a};Yz.exports=Xz;var uhe=Yz.exports;const che=lr(uhe),{useSyncExternalStoreWithSelector:dhe}=che;function Jz(e,t=e.getState,n){const r=dhe(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return ge.useDebugValue(r),r}const dD=e=>{const t=typeof e=="function"?Gz(e):e,n=(r,l)=>Jz(t,r,l);return Object.assign(n,t),n},eB=e=>e?dD(e):dD;var fhe=e=>eB(e);const phe=Object.freeze(Object.defineProperty({__proto__:null,create:eB,createStore:Gz,default:fhe,useStore:Jz},Symbol.toStringTag,{value:"Module"})),hhe=Qn(phe);var l0={exports:{}},Iw={exports:{}},fD;function mhe(){return fD||(fD=1,function(e,t){(function(n,r){e.exports=r()})(Oo,function(){var n=typeof Promise=="function",r=typeof self=="object"?self:Oo,l=typeof Symbol<"u",i=typeof Map<"u",o=typeof Set<"u",a=typeof WeakMap<"u",s=typeof WeakSet<"u",u=typeof DataView<"u",c=l&&typeof Symbol.iterator<"u",d=l&&typeof Symbol.toStringTag<"u",f=o&&typeof Set.prototype.entries=="function",p=i&&typeof Map.prototype.entries=="function",m=f&&Object.getPrototypeOf(new Set().entries()),g=p&&Object.getPrototypeOf(new Map().entries()),b=c&&typeof Array.prototype[Symbol.iterator]=="function",v=b&&Object.getPrototypeOf([][Symbol.iterator]()),h=c&&typeof String.prototype[Symbol.iterator]=="function",y=h&&Object.getPrototypeOf(""[Symbol.iterator]()),w=8,_=-1;function x(T){var k=typeof T;if(k!=="object")return k;if(T===null)return"null";if(T===r)return"global";if(Array.isArray(T)&&(d===!1||!(Symbol.toStringTag in T)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&T===window.location)return"Location";if(typeof window.document=="object"&&T===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&T===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&T===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&T instanceof window.HTMLElement){if(T.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(T.tagName==="TD")return"HTMLTableDataCellElement";if(T.tagName==="TH")return"HTMLTableHeaderCellElement"}}var S=d&&T[Symbol.toStringTag];if(typeof S=="string")return S;var C=Object.getPrototypeOf(T);return C===RegExp.prototype?"RegExp":C===Date.prototype?"Date":n&&C===Promise.prototype?"Promise":o&&C===Set.prototype?"Set":i&&C===Map.prototype?"Map":s&&C===WeakSet.prototype?"WeakSet":a&&C===WeakMap.prototype?"WeakMap":u&&C===DataView.prototype?"DataView":i&&C===g?"Map Iterator":o&&C===m?"Set Iterator":b&&C===v?"Array Iterator":h&&C===y?"String Iterator":C===null?"Object":Object.prototype.toString.call(T).slice(w,_)}return x})}(Iw)),Iw.exports}var pD;function tB(){if(pD)return l0.exports;pD=1;/*! * deep-eql * Copyright(c) 2013 Jake Luer * MIT Licensed - */var e=_he();function t(){this._key="chai/deep-eql__"+Math.random()+Date.now()}t.prototype={get:function(T){return T[this._key]},set:function(T,k){Object.isExtensible(T)&&Object.defineProperty(T,this._key,{value:k,configurable:!0})}};var n=typeof WeakMap=="function"?WeakMap:t;/*! + */var e=mhe();function t(){this._key="chai/deep-eql__"+Math.random()+Date.now()}t.prototype={get:function(T){return T[this._key]},set:function(T,k){Object.isExtensible(T)&&Object.defineProperty(T,this._key,{value:k,configurable:!0})}};var n=typeof WeakMap=="function"?WeakMap:t;/*! * Check to see if the MemoizeMap has recorded a result of the two operands * * @param {Mixed} leftHandOperand @@ -387,7 +387,7 @@ should equal * @param {Boolean} result */function l(x,T,k,S){if(!(!k||w(x)||w(T))){var C=k.get(x);C?C.set(T,S):(C=new n,C.set(T,S),k.set(x,C))}}/*! * Primary Export - */u0.exports=i,u0.exports.MemoizeMap=n;function i(x,T,k){if(k&&k.comparator)return a(x,T,k);var S=o(x,T);return S!==null?S:a(x,T,k)}function o(x,T){return x===T?x!==0||1/x===1/T:x!==x&&T!==T?!0:w(x)||w(T)?!1:null}/*! + */l0.exports=i,l0.exports.MemoizeMap=n;function i(x,T,k){if(k&&k.comparator)return a(x,T,k);var S=o(x,T);return S!==null?S:a(x,T,k)}function o(x,T){return x===T?x!==0||1/x===1/T:x!==x&&T!==T?!0:w(x)||w(T)?!1:null}/*! * The main logic of the `deepEqual` function. * * @param {Mixed} leftHandOperand @@ -471,24 +471,24 @@ should equal * * @param {Mixed} value * @return {Boolean} result - */function w(x){return x===null||typeof x!="object"}function _(x){return x.map(function(k){return typeof k=="symbol"?k.toString():k})}return u0.exports}var $w={},gD;function oB(){return gD||(gD=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={error:"Data could not be retrieved",grouping:{groupedBy:"Grouped By:",placeholder:"Drag headers here to group by"},pagination:{labelDisplayedRows:"{from}-{to} of {count}",labelRowsPerPage:"Rows per page:",labelRows:"rows",firstAriaLabel:"First Page",firstTooltip:"First Page",previousAriaLabel:"Previous Page",previousTooltip:"Previous Page",nextAriaLabel:"Next Page",nextTooltip:"Next Page",lastAriaLabel:"Last Page",lastTooltip:"Last Page"},toolbar:{addRemoveColumns:"Add or remove columns",nRowsSelected:"{0} row(s) selected",showColumnsTitle:"Show Columns",showColumnsAriaLabel:"Show Columns",exportTitle:"Export",exportAriaLabel:"Export",searchTooltip:"Search",searchPlaceholder:"Search",searchAriaLabel:"Search",clearSearchAriaLabel:"Clear Search"},header:{actions:"Actions"},body:{emptyDataSourceMessage:"No records to display",editRow:{saveTooltip:"Save",cancelTooltip:"Cancel",deleteText:"Are you sure you want to delete this row?"},filterRow:{},dateTimePickerLocalization:"Filter",addTooltip:"Add",deleteTooltip:"Delete",editTooltip:"Edit",bulkEditTooltip:"Edit All",bulkEditApprove:"Save all changes",bulkEditCancel:"Discard all changes"}};e.default=t}($w)),$w}var Nw={},vD;function iB(){return vD||(vD=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={idSynonym:"id",actionsColumnIndex:0,addRowPosition:"last",columnsButton:!1,detailPanelType:"multiple",debounceInterval:200,doubleHorizontalScroll:!1,emptyRowsWhenPaging:!0,exportAllData:!1,exportMenu:[],filtering:!1,groupTitle:!1,header:!0,headerSelectionProps:{},hideFilterIcons:!1,loadingType:"overlay",padding:"normal",searchAutoFocus:!1,paging:!0,pageSize:5,pageSizeOptions:[5,10,20],paginationType:"normal",paginationPosition:"bottom",showEmptyDataSourceMessage:!0,showFirstLastPageButtons:!0,showSelectAllCheckbox:!0,showSelectGroupCheckbox:!0,search:!0,showTitle:!0,showTextRowsSelected:!0,showDetailPanelIcon:!0,tableLayout:"auto",tableWidth:"full",toolbarButtonAlignment:"right",searchFieldAlignment:"right",searchFieldStyle:{},searchFieldVariant:"standard",selection:!1,selectionProps:{},maxColumnSort:1,clientSorting:!0,groupChipProps:{},defaultOrderByCollection:[],showColumnSortOrder:!1,keepSortDirectionOnColumnSwitch:!0,toolbar:!0,defaultExpanded:!1,detailPanelColumnAlignment:"left",detailPanelOffset:{left:0,right:0},thirdSortClick:!0,overflowY:"auto",numberOfPagesAround:1,actionsHeaderIndex:0,draggable:!0};e.default=t}(Nw)),Nw}var Fw={},np={},jw={};const The=Qn(pre);var yD;function Ta(){return yD||(yD=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=The}(jw)),jw}var bD;function khe(){if(bD)return np;bD=1;var e=Cn;Object.defineProperty(np,"__esModule",{value:!0}),np.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");return np.default=r,np}var rp={},xD;function She(){if(xD)return rp;xD=1;var e=Cn;Object.defineProperty(rp,"__esModule",{value:!0}),rp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove");return rp.default=r,rp}var ap={},wD;function Che(){if(wD)return ap;wD=1;var e=Cn;Object.defineProperty(ap,"__esModule",{value:!0}),ap.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");return ap.default=r,ap}var op={},_D;function Mhe(){if(_D)return op;_D=1;var e=Cn;Object.defineProperty(op,"__esModule",{value:!0}),op.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");return op.default=r,op}var ip={},TD;function Phe(){if(TD)return ip;TD=1;var e=Cn;Object.defineProperty(ip,"__esModule",{value:!0}),ip.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");return ip.default=r,ip}const RM=Qn(xue);var lp={},kD;function Ohe(){if(kD)return lp;kD=1;var e=Cn;Object.defineProperty(lp,"__esModule",{value:!0}),lp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");return lp.default=r,lp}var sp={},SD;function Ahe(){if(SD)return sp;SD=1;var e=Cn;Object.defineProperty(sp,"__esModule",{value:!0}),sp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");return sp.default=r,sp}var up={},CD;function Dhe(){if(CD)return up;CD=1;var e=Cn;Object.defineProperty(up,"__esModule",{value:!0}),up.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");return up.default=r,up}var cp={},MD;function Ehe(){if(MD)return cp;MD=1;var e=Cn;Object.defineProperty(cp,"__esModule",{value:!0}),cp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList");return cp.default=r,cp}var dp={},PD;function Rhe(){if(PD)return dp;PD=1;var e=Cn;Object.defineProperty(dp,"__esModule",{value:!0}),dp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt");return dp.default=r,dp}var fp={},OD;function Lhe(){if(OD)return fp;OD=1;var e=Cn;Object.defineProperty(fp,"__esModule",{value:!0}),fp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");return fp.default=r,fp}var pp={},AD;function Ihe(){if(AD)return pp;AD=1;var e=Cn;Object.defineProperty(pp,"__esModule",{value:!0}),pp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");return pp.default=r,pp}var hp={},DD;function $he(){if(DD)return hp;DD=1;var e=Cn;Object.defineProperty(hp,"__esModule",{value:!0}),hp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");return hp.default=r,hp}var mp={},ED;function Nhe(){if(ED)return mp;ED=1;var e=Cn;Object.defineProperty(mp,"__esModule",{value:!0}),mp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.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"}),"Clear");return mp.default=r,mp}var gp={},RD;function Fhe(){if(RD)return gp;RD=1;var e=Cn;Object.defineProperty(gp,"__esModule",{value:!0}),gp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");return gp.default=r,gp}var vp={},LD;function jhe(){if(LD)return vp;LD=1;var e=Cn;Object.defineProperty(vp,"__esModule",{value:!0}),vp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"}),"AddBox");return vp.default=r,vp}var ID;function lB(){return ID||(ID=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(khe()),l=t(She()),i=t(Che()),o=t(Mhe()),a=t(Phe()),s=t(RM),u=t(Ohe()),c=t(Ahe()),d=t(Dhe()),f=t(Ehe()),p=t(Rhe()),m=t(Lhe()),g=t(Ihe()),b=t($he()),v=t(Nhe()),h=t(Fhe()),y=t(jhe()),w=t(Ir()),_=T(ge);function x(S){if(typeof WeakMap!="function")return null;var C=new WeakMap,M=new WeakMap;return(x=function(D){return D?M:C})(S)}function T(S,C){if(S&&S.__esModule)return S;if(S===null||n(S)!=="object"&&typeof S!="function")return{default:S};var M=x(C);if(M&&M.has(S))return M.get(S);var O={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in S)if(P!=="default"&&Object.prototype.hasOwnProperty.call(S,P)){var E=D?Object.getOwnPropertyDescriptor(S,P):null;E&&(E.get||E.set)?Object.defineProperty(O,P,E):O[P]=S[P]}return O.default=S,M&&M.set(S,O),O}var k={Add:(0,_.forwardRef)(function(S,C){return _.default.createElement(y.default,(0,w.default)({},S,{ref:C,"data-testid":"add_box"}))}),Check:(0,_.forwardRef)(function(S,C){return _.default.createElement(h.default,(0,w.default)({},S,{ref:C,"data-testid":"check"}))}),Clear:(0,_.forwardRef)(function(S,C){return _.default.createElement(v.default,(0,w.default)({},S,{ref:C,"data-testid":"clear"}))}),Delete:(0,_.forwardRef)(function(S,C){return _.default.createElement(b.default,(0,w.default)({},S,{ref:C,"data-testid":"delete_outline"}))}),DetailPanel:(0,_.forwardRef)(function(S,C){return _.default.createElement(g.default,(0,w.default)({},S,{ref:C,"data-testid":"chevron_right"}))}),Edit:(0,_.forwardRef)(function(S,C){return _.default.createElement(m.default,(0,w.default)({},S,{ref:C,"data-testid":"edit"}))}),Export:(0,_.forwardRef)(function(S,C){return _.default.createElement(p.default,(0,w.default)({},S,{ref:C,"data-testid":"save_alt"}))}),Filter:(0,_.forwardRef)(function(S,C){return _.default.createElement(f.default,(0,w.default)({},S,{ref:C,"data-testid":"filter_list"}))}),FirstPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(d.default,(0,w.default)({},S,{ref:C,"data-testid":"first_page"}))}),LastPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(c.default,(0,w.default)({},S,{ref:C,"data-testid":"last_page"}))}),NextPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(g.default,(0,w.default)({},S,{ref:C,"data-testid":"chevron_right"}))}),PreviousPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(u.default,(0,w.default)({},S,{ref:C,"data-testid":"chevron_left"}))}),ResetSearch:(0,_.forwardRef)(function(S,C){return _.default.createElement(v.default,(0,w.default)({},S,{ref:C,"data-testid":"clear"}))}),Resize:(0,_.forwardRef)(function(S,C){return _.default.createElement(s.default,(0,w.default)({},S,{ref:C,"data-testid":"drag_handle"}),"|")}),Retry:(0,_.forwardRef)(function(S,C){return _.default.createElement(a.default,(0,w.default)({},S,{ref:C,"data-testid":"replay"}))}),Search:(0,_.forwardRef)(function(S,C){return _.default.createElement(o.default,(0,w.default)({},S,{ref:C,"data-testid":"search"}))}),SortArrow:(0,_.forwardRef)(function(S,C){return _.default.createElement(i.default,(0,w.default)({},S,{ref:C,"data-testid":"arrow_downward"}))}),ThirdStateCheck:(0,_.forwardRef)(function(S,C){return _.default.createElement(l.default,(0,w.default)({},S,{ref:C,"data-testid":"remove"}))}),ViewColumn:(0,_.forwardRef)(function(S,C){return _.default.createElement(r.default,(0,w.default)({},S,{ref:C,"data-testid":"view_column"}))})};e.default=k}(Fw)),Fw}var zw,$D;function zhe(){if($D)return zw;$D=1;var e=function(h){return t(h)&&!n(h)};function t(v){return!!v&&typeof v=="object"}function n(v){var h=Object.prototype.toString.call(v);return h==="[object RegExp]"||h==="[object Date]"||i(v)}var r=typeof Symbol=="function"&&Symbol.for,l=r?Symbol.for("react.element"):60103;function i(v){return v.$$typeof===l}function o(v){return Array.isArray(v)?[]:{}}function a(v,h){return h.clone!==!1&&h.isMergeableObject(v)?g(o(v),v,h):v}function s(v,h,y){return v.concat(h).map(function(w){return a(w,y)})}function u(v,h){if(!h.customMerge)return g;var y=h.customMerge(v);return typeof y=="function"?y:g}function c(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(h){return Object.propertyIsEnumerable.call(v,h)}):[]}function d(v){return Object.keys(v).concat(c(v))}function f(v,h){try{return h in v}catch{return!1}}function p(v,h){return f(v,h)&&!(Object.hasOwnProperty.call(v,h)&&Object.propertyIsEnumerable.call(v,h))}function m(v,h,y){var w={};return y.isMergeableObject(v)&&d(v).forEach(function(_){w[_]=a(v[_],y)}),d(h).forEach(function(_){p(v,_)||(f(v,_)&&y.isMergeableObject(h[_])?w[_]=u(_,y)(v[_],h[_],y):w[_]=a(h[_],y))}),w}function g(v,h,y){y=y||{},y.arrayMerge=y.arrayMerge||s,y.isMergeableObject=y.isMergeableObject||e,y.cloneUnlessOtherwiseSpecified=a;var w=Array.isArray(h),_=Array.isArray(v),x=w===_;return x?w?y.arrayMerge(v,h,y):m(v,h,y):a(h,y)}g.all=function(h,y){if(!Array.isArray(h))throw new Error("first argument should be an array");return h.reduce(function(w,_){return g(w,_,y)},{})};var b=g;return zw=b,zw}var ND;function eg(){if(ND)return Ii;ND=1;var e=Cn;Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.useLocalizationStore=Ii.useIconStore=void 0,Ii.useMergeProps=v,Ii.useOptionStore=void 0,Ii.withContext=h;var t=e($a()),n=whe,r=e(ge),l=e(aB()),i=e(oB()),o=e(iB()),a=e(lB()),s=e(Hq());function u(y,w){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(y);w&&(x=x.filter(function(T){return Object.getOwnPropertyDescriptor(y,T).enumerable})),_.push.apply(_,x)}return _}function c(y){for(var w=1;w=0)&&(l[o]=n[o]);return l}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(qw)),qw.exports}var BD;function uf(){return BD||(BD=1,function(e){var t=qhe();function n(r,l){if(r==null)return{};var i=t(r,l),o,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(r,o)&&(i[o]=r[o])}return i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Ww)),Ww.exports}var WD;function Uhe(){return WD||(WD=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Whe),r=t(Ir()),l=t(uf()),i=t(ge),o=["forwardedRef"];function a(u){var c=u.forwardedRef,d=(0,l.default)(u,o);return i.default.createElement(n.default,(0,r.default)({elevation:2},d,{ref:c}))}var s=i.default.forwardRef(function(c,d){return i.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(Bw)),Bw}var Uw={};const fc=Qn(qie);var Hw={exports:{}},qD;function Hhe(){return qD||(qD=1,function(e,t){(function(r,l){e.exports=l(ge)})(Oo,function(n){return function(r){var l={};function i(o){if(l[o])return l[o].exports;var a=l[o]={exports:{},id:o,loaded:!1};return r[o].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}return i.m=r,i.c=l,i.p="",i(0)}([function(r,l,i){Object.defineProperty(l,"__esModule",{value:!0});var o=function(){function m(g,b){for(var v=0;vn.length)&&(r=n.length);for(var l=0,i=new Array(r);l0&&E++,g.hasDetailPanel&&E++,g.isTreeData&&E++,s.default.createElement(o.default,{style:{height:P*(v.paging&&v.emptyRowsWhenPaging?g.pageSize:1)},key:"empty-0"},s.default.createElement(a.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:g.columns.reduce(function(I,A){return A.hidden?I:I+1},E),key:"empty-"},b.emptyDataSourceMessage))}else if(v.emptyRowsWhenPaging)return s.default.createElement(s.default.Fragment,null,(0,i.default)(Array(O)).map(function(I,A){return s.default.createElement(o.default,{style:{height:P},key:"empty-"+A})}),O>0&&s.default.createElement(o.default,{style:{height:1},key:"empty-last1"}))}function _(O){return O.map(function(D,P){if(D.tableData.editing||g.bulkEditOpen)return s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:D,errorState:g.errorState,icons:h,localization:b.editRow,key:"row-"+D.tableData.uuid,mode:g.bulkEditOpen?"bulk":D.tableData.editing,isTreeData:g.isTreeData,detailPanel:g.detailPanel,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,bulkEditChangedRows:g.bulkEditChangedRows,getFieldValue:g.getFieldValue,onBulkEditRowChanged:g.onBulkEditRowChanged,scrollWidth:g.scrollWidth});var E=g.isTreeData?[D.tableData.uuid]:[P+g.pageSize*g.currentPage];return s.default.createElement(g.components.Row,{components:g.components,data:D,index:P,errorState:g.errorState,key:"row-"+D.tableData.uuid,level:0,onRowSelected:g.onRowSelected,actions:g.actions,columns:g.columns,getFieldValue:g.getFieldValue,detailPanel:g.detailPanel,path:E,onToggleDetailPanel:g.onToggleDetailPanel,onRowClick:g.onRowClick,onRowDoubleClick:g.onRowDoubleClick,isTreeData:g.isTreeData,onTreeExpandChanged:g.onTreeExpandChanged,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,hasAnyEditingRow:g.hasAnyEditingRow,treeDataMaxLevel:g.treeDataMaxLevel,cellEditable:g.cellEditable,onCellEditStarted:g.onCellEditStarted,onCellEditFinished:g.onCellEditFinished,onRowEditStarted:g.onRowEditStarted,scrollWidth:g.scrollWidth})})}function x(O,D){return D.map(function(P,E){return s.default.createElement(g.components.GroupRow,{actions:g.actions,cellEditable:g.cellEditable,columns:g.columns,components:g.components,detailPanel:g.detailPanel,getFieldValue:g.getFieldValue,groupData:P,groups:O,hasAnyEditingRow:g.hasAnyEditingRow,icons:h,isTreeData:g.isTreeData,key:P.value==null?""+E:P.value,level:0,localization:b.editRow,onBulkEditRowChanged:g.onBulkEditRowChanged,onCellEditFinished:g.onCellEditFinished,onCellEditStarted:g.onCellEditStarted,onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,onGroupExpandChanged:g.onGroupExpandChanged,onRowClick:g.onRowClick,onGroupSelected:g.onGroupSelected,onRowSelected:g.onRowSelected,onToggleDetailPanel:g.onToggleDetailPanel,onTreeExpandChanged:g.onTreeExpandChanged,path:[E+g.pageSize*g.currentPage],scrollWidth:g.scrollWidth,treeDataMaxLevel:g.treeDataMaxLevel})})}function T(){return g.showAddRow&&s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:g.initialFormData,detailPanel:g.detailPanel,errorState:g.errorState,getFieldValue:g.getFieldValue,icons:h,isTreeData:g.isTreeData,key:"key-add-row",localization:b.editRow,mode:"add",onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,scrollWidth:g.scrollWidth})}var k=g.renderData,S=g.columns.filter(function(O){return O.tableData.groupOrder>-1}).sort(function(O,D){return O.tableData.groupOrder-D.tableData.groupOrder}),C=0;v.paging&&g.pageSize>k.length&&(C=g.pageSize-k.length);var M=s.default.useMemo(function(){return g.renderSummaryRow?function(O){return g.renderSummaryRow(f(f({},O),{},{data:g.data,currentData:g.currentData}))}:void 0},[g.data]);return s.default.createElement(r.default,{ref:g.forwardedRef},v.filtering&&s.default.createElement(g.components.FilterRow,{columns:y,icons:h,hasActions:g.actions.some(function(O){return O.position==="row"||typeof O=="function"}),onFilterChanged:g.onFilterChanged,localization:b.filterRow,hasDetailPanel:!!g.detailPanel,isTreeData:g.isTreeData,scrollWidth:g.scrollWidth,hideFilterIcons:g.options.hideFilterIcons}),v.addRowPosition==="first"&&T(),S.length>0?x(S,k):_(k),v.addRowPosition==="last"&&T(),s.default.createElement(g.components.SummaryRow,{columns:y,renderSummaryRow:M,rowProps:g}),w(C,k))}p.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},p.propTypes={actions:u.default.array,bulkEditChangedRows:u.default.object,bulkEditOpen:u.default.bool,cellEditable:u.default.object,columns:u.default.array.isRequired,components:u.default.object.isRequired,currentPage:u.default.number,data:u.default.array,detailPanel:u.default.oneOfType([u.default.func,u.default.arrayOf(u.default.oneOfType([u.default.object,u.default.func]))]),errorState:u.default.oneOfType([u.default.object,u.default.bool]),forwardedRef:u.default.oneOfType([u.default.func,u.default.object]),getFieldValue:u.default.func.isRequired,hasAnyEditingRow:u.default.bool,hasDetailPanel:u.default.bool.isRequired,initialFormData:u.default.object,isTreeData:u.default.bool.isRequired,onBulkEditRowChanged:u.default.func,onCellEditFinished:u.default.func,onCellEditStarted:u.default.func,onEditingApproved:u.default.func,onEditingCanceled:u.default.func,onFilterChanged:u.default.func,onGroupExpandChanged:u.default.func,onRowClick:u.default.func,onRowDoubleClick:u.default.func,onGroupSelected:u.default.func,onRowSelected:u.default.func,onToggleDetailPanel:u.default.func.isRequired,onTreeExpandChanged:u.default.func.isRequired,pageSize:u.default.number,renderData:u.default.array,renderSummaryRow:u.default.func,scrollWidth:u.default.number.isRequired,selection:u.default.bool.isRequired,showAddRow:u.default.bool,treeDataMaxLevel:u.default.number};var m=s.default.forwardRef(function(b,v){return s.default.createElement(p,(0,n.default)({},b,{forwardedRef:v}))});e.default=m}(Vw)),Vw}var Jw={},e_={exports:{}},QD;function db(){return QD||(QD=1,function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(e_)),e_.exports}var t_={exports:{}},JD;function fb(){return JD||(JD=1,function(e){var t=Xz();function n(l,i){for(var o=0;o1?"s":"")+" required, but only "+t.length+" present")}function Tn(e){_n(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||ns(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ak(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function hb(e,t){_n(2,arguments);var n=Tn(e).getTime(),r=kr(t);return new Date(n+r)}function tme(e,t){_n(2,arguments);var n=kr(t);return hb(e,n*1e3)}var nme=6e4;function rme(e,t){_n(2,arguments);var n=kr(t);return hb(e,n*nme)}var ame=36e5;function ome(e,t){_n(2,arguments);var n=kr(t);return hb(e,n*ame)}function ime(e,t){_n(2,arguments);var n=kr(t),r=n*7;return ak(e,r)}function av(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var l=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var o=i.getDate();return l>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),l),n)}function o7(e,t){_n(2,arguments);var n=kr(t);return av(e,n*12)}function lme(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t);return n.getFullYear()-r.getFullYear()}function Lh(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=n.getTime()-r.getTime();return l<0?-1:l>0?1:l}function sme(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=Lh(n,r),i=Math.abs(lme(n,r));n.setFullYear(1584),r.setFullYear(1584);var o=Lh(n,r)===-l,a=l*(i-Number(o));return a===0?0:a}function ume(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return l*12+i}function ok(e){_n(1,arguments);var t=Tn(e);return t.setHours(23,59,59,999),t}function ik(e){_n(1,arguments);var t=Tn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function cme(e){_n(1,arguments);var t=Tn(e);return ok(t).getTime()===ik(t).getTime()}function pB(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=Lh(n,r),i=Math.abs(ume(n,r)),o;if(i<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-l*i);var a=Lh(n,r)===-l;cme(Tn(e))&&i===1&&Lh(e,r)===1&&(a=!1),o=l*(i-Number(a))}return o===0?0:o}var i7={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},dme="trunc";function tg(e){return e?i7[e]:i7[dme]}function fme(e,t,n){_n(2,arguments);var r=pB(e,t)/3;return tg(void 0)(r)}function oy(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Wd(e){_n(1,arguments);var t=Tn(e);return t.setHours(0,0,0,0),t}var pme=864e5;function hme(e,t){_n(2,arguments);var n=Wd(e),r=Wd(t),l=n.getTime()-oy(n),i=r.getTime()-oy(r);return Math.round((l-i)/pme)}function l7(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function hB(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=l7(n,r),i=Math.abs(hme(n,r));n.setDate(n.getDate()-l*i);var o=+(l7(n,r)===-l),a=l*(i-o);return a===0?0:a}function mme(e,t,n){_n(2,arguments);var r=hB(e,t)/7;return tg(void 0)(r)}var mb=6e4,gb=36e5,gme=1e3;function vb(e,t){return _n(2,arguments),Tn(e).getTime()-Tn(t).getTime()}function vme(e,t,n){_n(2,arguments);var r=vb(e,t)/gb;return tg(void 0)(r)}function yme(e,t,n){_n(2,arguments);var r=vb(e,t)/mb;return tg(void 0)(r)}function bme(e,t,n){_n(2,arguments);var r=vb(e,t)/1e3;return tg(void 0)(r)}function xme(e,t){var n;_n(1,arguments);var r=e||{},l=Tn(r.start),i=Tn(r.end),o=i.getTime();if(!(l.getTime()<=o))throw new RangeError("Invalid interval");var a=[],s=l;s.setHours(0,0,0,0);var u=Number((n=void 0)!==null&&n!==void 0?n:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=o;)a.push(Tn(s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return a}var wme={};function ou(){return wme}function l_(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tn(e),p=f.getDay(),m=(p=l.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Sme(e){_n(1,arguments);var t=vB(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=qd(n);return r}var Cme=6048e5;function yB(e){_n(1,arguments);var t=Tn(e),n=qd(t).getTime()-Sme(t).getTime();return Math.round(n/Cme)+1}function Xu(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tn(e),p=f.getUTCDay(),m=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var g=Xu(m,t),b=new Date(0);b.setUTCFullYear(d,0,p),b.setUTCHours(0,0,0,0);var v=Xu(b,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}function Mme(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&l!==void 0?l:c.firstWeekContainsDate)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=jM(e,t),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var m=Xu(p,t);return m}var Pme=6048e5;function bB(e,t){_n(1,arguments);var n=Tn(e),r=Xu(n,t).getTime()-Mme(n,t).getTime();return Math.round(r/Pme)+1}function tr(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return tr(n==="yy"?l%100:l,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):tr(r+1,2)},d:function(t,n){return tr(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return tr(t.getUTCHours()%12||12,n.length)},H:function(t,n){return tr(t.getUTCHours(),n.length)},m:function(t,n){return tr(t.getUTCMinutes(),n.length)},s:function(t,n){return tr(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,l=t.getUTCMilliseconds(),i=Math.floor(l*Math.pow(10,r-3));return tr(i,n.length)}},jc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ome={G:function(t,n,r){var l=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(l,{width:"abbreviated"});case"GGGGG":return r.era(l,{width:"narrow"});case"GGGG":default:return r.era(l,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var l=t.getUTCFullYear(),i=l>0?l:1-l;return r.ordinalNumber(i,{unit:"year"})}return _s.y(t,n)},Y:function(t,n,r,l){var i=jM(t,l),o=i>0?i:1-i;if(n==="YY"){var a=o%100;return tr(a,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):tr(o,n.length)},R:function(t,n){var r=vB(t);return tr(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return tr(r,n.length)},Q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(l);case"QQ":return tr(l,2);case"Qo":return r.ordinalNumber(l,{unit:"quarter"});case"QQQ":return r.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(l,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(l,{width:"wide",context:"formatting"})}},q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(l);case"qq":return tr(l,2);case"qo":return r.ordinalNumber(l,{unit:"quarter"});case"qqq":return r.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(l,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(l,{width:"wide",context:"standalone"})}},M:function(t,n,r){var l=t.getUTCMonth();switch(n){case"M":case"MM":return _s.M(t,n);case"Mo":return r.ordinalNumber(l+1,{unit:"month"});case"MMM":return r.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(l,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(l,{width:"wide",context:"formatting"})}},L:function(t,n,r){var l=t.getUTCMonth();switch(n){case"L":return String(l+1);case"LL":return tr(l+1,2);case"Lo":return r.ordinalNumber(l+1,{unit:"month"});case"LLL":return r.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(l,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(l,{width:"wide",context:"standalone"})}},w:function(t,n,r,l){var i=bB(t,l);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):tr(i,n.length)},I:function(t,n,r){var l=yB(t);return n==="Io"?r.ordinalNumber(l,{unit:"week"}):tr(l,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):_s.d(t,n)},D:function(t,n,r){var l=kme(t);return n==="Do"?r.ordinalNumber(l,{unit:"dayOfYear"}):tr(l,n.length)},E:function(t,n,r){var l=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(l,{width:"short",context:"formatting"});case"EEEE":default:return r.day(l,{width:"wide",context:"formatting"})}},e:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return tr(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return tr(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var l=t.getUTCDay(),i=l===0?7:l;switch(n){case"i":return String(i);case"ii":return tr(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(l,{width:"short",context:"formatting"});case"iiii":default:return r.day(l,{width:"wide",context:"formatting"})}},a:function(t,n,r){var l=t.getUTCHours(),i=l/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var l=t.getUTCHours(),i;switch(l===12?i=jc.noon:l===0?i=jc.midnight:i=l/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var l=t.getUTCHours(),i;switch(l>=17?i=jc.evening:l>=12?i=jc.afternoon:l>=4?i=jc.morning:i=jc.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var l=t.getUTCHours()%12;return l===0&&(l=12),r.ordinalNumber(l,{unit:"hour"})}return _s.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):_s.H(t,n)},K:function(t,n,r){var l=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(l,{unit:"hour"}):tr(l,n.length)},k:function(t,n,r){var l=t.getUTCHours();return l===0&&(l=24),n==="ko"?r.ordinalNumber(l,{unit:"hour"}):tr(l,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):_s.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):_s.s(t,n)},S:function(t,n){return _s.S(t,n)},X:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return u7(o);case"XXXX":case"XX":return wu(o);case"XXXXX":case"XXX":default:return wu(o,":")}},x:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"x":return u7(o);case"xxxx":case"xx":return wu(o);case"xxxxx":case"xxx":default:return wu(o,":")}},O:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+s7(o,":");case"OOOO":default:return"GMT"+wu(o,":")}},z:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+s7(o,":");case"zzzz":default:return"GMT"+wu(o,":")}},t:function(t,n,r,l){var i=l._originalDate||t,o=Math.floor(i.getTime()/1e3);return tr(o,n.length)},T:function(t,n,r,l){var i=l._originalDate||t,o=i.getTime();return tr(o,n.length)}};function s7(e,t){var n=e>0?"-":"+",r=Math.abs(e),l=Math.floor(r/60),i=r%60;if(i===0)return n+String(l);var o=t;return n+String(l)+o+tr(i,2)}function u7(e,t){if(e%60===0){var n=e>0?"-":"+";return n+tr(Math.abs(e)/60,2)}return wu(e,t)}function wu(e,t){var n=t||"",r=e>0?"-":"+",l=Math.abs(e),i=tr(Math.floor(l/60),2),o=tr(l%60,2);return r+i+n+o}var c7=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},xB=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Ame=function(t,n){var r=t.match(/(P+)(p+)?/)||[],l=r[1],i=r[2];if(!i)return c7(t,n);var o;switch(l){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",c7(l,n)).replace("{{time}}",xB(i,n))},lk={p:xB,P:Ame},Dme=["D","DD"],Eme=["YY","YYYY"];function wB(e){return Dme.indexOf(e)!==-1}function _B(e){return Eme.indexOf(e)!==-1}function iy(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Rme={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Lme=function(t,n,r){var l,i=Rme[t];return typeof i=="string"?l=i:n===1?l=i.one:l=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+l:l+" ago":l};function u_(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Ime={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},$me={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Nme={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fme={date:u_({formats:Ime,defaultWidth:"full"}),time:u_({formats:$me,defaultWidth:"full"}),dateTime:u_({formats:Nme,defaultWidth:"full"})},jme={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zme=function(t,n,r,l){return jme[t]};function yp(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",l;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;l=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;l=e.values[s]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return l[u]}}var Bme={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Wme={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},qme={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ume={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Hme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Vme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Gme=function(t,n){var r=Number(t),l=r%100;if(l>20||l<10)switch(l%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Yme={ordinalNumber:Gme,era:yp({values:Bme,defaultWidth:"wide"}),quarter:yp({values:Wme,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:yp({values:qme,defaultWidth:"wide"}),day:yp({values:Ume,defaultWidth:"wide"}),dayPeriod:yp({values:Hme,defaultWidth:"wide",formattingValues:Vme,defaultFormattingWidth:"wide"})};function bp(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,l=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(l);if(!i)return null;var o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?Kme(a,function(d){return d.test(o)}):Xme(a,function(d){return d.test(o)}),u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(o.length);return{value:u,rest:c}}}function Xme(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Kme(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var l=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var a=t.slice(l.length);return{value:o,rest:a}}}var Qme=/^(\d+)(th|st|nd|rd)?/i,Jme=/\d+/i,ege={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},tge={any:[/^b/i,/^(a|c)/i]},nge={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rge={any:[/1/i,/2/i,/3/i,/4/i]},age={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},oge={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ige={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},lge={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},sge={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},uge={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cge={ordinalNumber:Zme({matchPattern:Qme,parsePattern:Jme,valueCallback:function(t){return parseInt(t,10)}}),era:bp({matchPatterns:ege,defaultMatchWidth:"wide",parsePatterns:tge,defaultParseWidth:"any"}),quarter:bp({matchPatterns:nge,defaultMatchWidth:"wide",parsePatterns:rge,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:bp({matchPatterns:age,defaultMatchWidth:"wide",parsePatterns:oge,defaultParseWidth:"any"}),day:bp({matchPatterns:ige,defaultMatchWidth:"wide",parsePatterns:lge,defaultParseWidth:"any"}),dayPeriod:bp({matchPatterns:sge,defaultMatchWidth:"any",parsePatterns:uge,defaultParseWidth:"any"})},yb={code:"en-US",formatDistance:Lme,formatLong:Fme,formatRelative:zme,localize:Yme,match:cge,options:{weekStartsOn:0,firstWeekContainsDate:1}},dge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fge=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pge=/^'([^]*?)'?$/,hge=/''/g,mge=/[a-zA-Z]/;function TB(e,t,n){var r,l,i,o,a,s,u,c,d,f,p,m,g,b,v,h,y,w;_n(2,arguments);var _=String(t),x=ou(),T=(r=(l=n==null?void 0:n.locale)!==null&&l!==void 0?l:x.locale)!==null&&r!==void 0?r:yb,k=kr((i=(o=(a=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(u=n.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:x.firstWeekContainsDate)!==null&&o!==void 0?o:(d=x.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=kr((p=(m=(g=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(v=n.locale)===null||v===void 0||(h=v.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&g!==void 0?g:x.weekStartsOn)!==null&&m!==void 0?m:(y=x.locale)===null||y===void 0||(w=y.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&p!==void 0?p:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var C=Tn(e);if(!mB(C))throw new RangeError("Invalid time value");var M=oy(C),O=gB(C,M),D={firstWeekContainsDate:k,weekStartsOn:S,locale:T,_originalDate:C},P=_.match(fge).map(function(E){var I=E[0];if(I==="p"||I==="P"){var A=lk[I];return A(E,T.formatLong)}return E}).join("").match(dge).map(function(E){if(E==="''")return"'";var I=E[0];if(I==="'")return gge(E);var A=Ome[I];if(A)return!(n!=null&&n.useAdditionalWeekYearTokens)&&_B(E)&&iy(E,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&wB(E)&&iy(E,t,String(e)),A(O,E,T.localize,D);if(I.match(mge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return E}).join("");return P}function gge(e){var t=e.match(pge);return t?t[1].replace(hge,"'"):e}const vge=Object.freeze(Object.defineProperty({__proto__:null,default:TB},Symbol.toStringTag,{value:"Module"}));function yge(e){_n(1,arguments);var t=Tn(e),n=t.getDate();return n}function bge(e){_n(1,arguments);var t=Tn(e),n=t.getDay();return n}function kB(e){_n(1,arguments);var t=Tn(e),n=t.getFullYear(),r=t.getMonth(),l=new Date(0);return l.setFullYear(n,r+1,0),l.setHours(0,0,0,0),l.getDate()}function xge(e){_n(1,arguments);var t=Tn(e),n=t.getHours();return n}function wge(e){_n(1,arguments);var t=Tn(e),n=t.getMinutes();return n}function _ge(e){_n(1,arguments);var t=Tn(e),n=t.getMonth();return n}function Tge(e){_n(1,arguments);var t=Tn(e),n=t.getSeconds();return n}function kge(e){return _n(1,arguments),Tn(e).getFullYear()}function c0(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t);return n.getTime()>r.getTime()}function zc(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t);return n.getTime()e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}}}function Dge(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function hr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jv(e,t)}function ly(e){return ly=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ly(e)}function Ege(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rge(e,t){if(t&&(ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return An(e)}function mr(e){var t=Ege();return function(){var r=ly(e),l;if(t){var i=ly(this).constructor;l=Reflect.construct(r,arguments,i)}else l=r.apply(this,arguments);return Rge(this,l)}}function sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lge(e,t){if(ns(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ns(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SB(e){var t=Lge(e,"string");return ns(t)==="symbol"?t:String(t)}function Ige(e,t){for(var n=0;n0,r=n?t:1-t,l;if(r<=50)l=e||100;else{var i=r+50,o=Math.floor(i/100)*100,a=e>=i%100;l=e+o-(a?100:0)}return n?l:1-l}function OB(e){return e%400===0||e%4===0&&e%100!==0}var zge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o){var a=l.getUTCFullYear();if(o.isTwoDigitYear){var s=PB(o.year,a);return l.setUTCFullYear(s,0,1),l.setUTCHours(0,0,0,0),l}var u=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(u,0,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Bge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o,a){var s=jM(l,a);if(o.isTwoDigitYear){var u=PB(o.year,s);return l.setUTCFullYear(u,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),Xu(l,a)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(c,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),Xu(l,a)}}]),n}(_r),Wge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Hge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Vge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Gge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r);function Yge(e,t,n){_n(2,arguments);var r=Tn(e),l=kr(t),i=bB(r,n)-l;return r.setUTCDate(r.getUTCDate()-i*7),r}var Xge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o,a){return Xu(Yge(l,o,a),a)}}]),n}(_r);function Kge(e,t){_n(2,arguments);var n=Tn(e),r=kr(t),l=yB(n)-r;return n.setUTCDate(n.getUTCDate()-l*7),n}var Zge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o){return qd(Kge(l,o))}}]),n}(_r),Qge=[31,28,31,30,31,30,31,31,30,31,30,31],Jge=[31,29,31,30,31,30,31,31,30,31,30,31],e0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=Jge[s]:i>=1&&i<=Qge[s]}},{key:"set",value:function(l,i,o){return l.setUTCDate(o),l.setUTCHours(0,0,0,0),l}}]),n}(_r),t0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(l,i,o){return l.setUTCMonth(0,o),l.setUTCHours(0,0,0,0),l}}]),n}(_r);function BM(e,t,n){var r,l,i,o,a,s,u,c;_n(2,arguments);var d=ou(),f=kr((r=(l=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(a=n.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&l!==void 0?l:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Tn(e),m=kr(t),g=p.getUTCDay(),b=m%7,v=(b+7)%7,h=(v=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=BM(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(_r),r0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=BM(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(_r),a0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=BM(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(_r);function o0e(e,t){_n(2,arguments);var n=kr(t);n%7===0&&(n=n-7);var r=1,l=Tn(e),i=l.getUTCDay(),o=n%7,a=(o+7)%7,s=(a=1&&i<=7}},{key:"set",value:function(l,i,o){return l=o0e(l,o),l.setUTCHours(0,0,0,0),l}}]),n}(_r),l0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=12}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):!a&&o===12?l.setUTCHours(0,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(_r),d0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=23}},{key:"set",value:function(l,i,o){return l.setUTCHours(o,0,0,0),l}}]),n}(_r),f0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(_r),p0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=24}},{key:"set",value:function(l,i,o){var a=o<=24?o%24:o;return l.setUTCHours(a,0,0,0),l}}]),n}(_r),h0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCMinutes(o,0,0),l}}]),n}(_r),m0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCSeconds(o,0),l}}]),n}(_r),g0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=kr((m=(g=(b=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(h=r.locale)===null||h===void 0||(y=h.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:k.weekStartsOn)!==null&&g!==void 0?g:(w=k.locale)===null||w===void 0||(_=w.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return x===""?Tn(n):new Date(NaN);var O={firstWeekContainsDate:C,weekStartsOn:M,locale:S},D=[new Fge],P=T.match(T0e).map(function(U){var V=U[0];if(V in lk){var te=lk[V];return te(U,S.formatLong)}return U}).join("").match(_0e),E=[],I=p7(P),A;try{var F=function(){var V=A.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&_B(V)&&iy(V,T,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&wB(V)&&iy(V,T,e);var te=V[0],ee=w0e[te];if(ee){var H=ee.incompatibleTokens;if(Array.isArray(H)){var Z=E.find(function(X){return H.includes(X.token)||X.token===te});if(Z)throw new RangeError("The format string mustn't contain `".concat(Z.fullToken,"` and `").concat(V,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&E.length>0)throw new RangeError("The format string mustn't contain `".concat(V,"` and any other token at the same time"));E.push({token:te,fullToken:V});var G=ee.run(x,V,S.match,O);if(!G)return{v:new Date(NaN)};D.push(G.setter),x=G.rest}else{if(te.match(M0e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(V==="''"?V="'":te==="'"&&(V=O0e(V)),x.indexOf(V)===0)x=x.slice(V.length);else return{v:new Date(NaN)}}};for(I.s();!(A=I.n()).done;){var j=F();if(ns(j)==="object")return j.v}}catch(U){I.e(U)}finally{I.f()}if(x.length>0&&C0e.test(x))return new Date(NaN);var z=D.map(function(U){return U.priority}).sort(function(U,V){return V-U}).filter(function(U,V,te){return te.indexOf(U)===V}).map(function(U){return D.filter(function(V){return V.priority===U}).sort(function(V,te){return te.subPriority-V.subPriority})}).map(function(U){return U[0]}),B=Tn(n);if(isNaN(B.getTime()))return new Date(NaN);var N=gB(B,oy(B)),R={},q=p7(z),Y;try{for(q.s();!(Y=q.n()).done;){var L=Y.value;if(!L.validate(N,O))return new Date(NaN);var W=L.set(N,R,O);Array.isArray(W)?(N=W[0],Dge(R,W[1])):N=W}}catch(U){q.e(U)}finally{q.f()}return N}function O0e(e){return e.match(k0e)[1].replace(S0e,"'")}function A0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setDate(r),n}function D0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setHours(r),n}function E0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setMinutes(r),n}function R0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t),l=n.getFullYear(),i=n.getDate(),o=new Date(0);o.setFullYear(l,r,15),o.setHours(0,0,0,0);var a=kB(o);return n.setMonth(r,Math.min(i,a)),n}function L0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setSeconds(r),n}function I0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function d0(e){_n(1,arguments);var t=Tn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function c_(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tn(e),p=f.getDay(),m=(p2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],p0.timeZoneDelimiter.test(t.date)&&(t.date=e.split(p0.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var l=p0.timezone.exec(r);l?(t.time=r.replace(l[1],""),t.timezone=l[1]):t.time=r}return t}function z0e(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var l=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?l:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function B0e(e,t){if(t===null)return new Date(NaN);var n=e.match($0e);if(!n)return new Date(NaN);var r=!!n[4],l=xp(n[1]),i=xp(n[2])-1,o=xp(n[3]),a=xp(n[4]),s=xp(n[5])-1;if(r)return Y0e(t,a,s)?U0e(t,a,s):new Date(NaN);var u=new Date(0);return!V0e(t,i,o)||!G0e(t,l)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(l,o)),u)}function xp(e){return e?parseInt(e):1}function W0e(e){var t=e.match(N0e);if(!t)return NaN;var n=d_(t[1]),r=d_(t[2]),l=d_(t[3]);return X0e(n,r,l)?n*gb+r*mb+l*1e3:NaN}function d_(e){return e&&parseFloat(e.replace(",","."))||0}function q0e(e){if(e==="Z")return 0;var t=e.match(F0e);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),l=t[3]&&parseInt(t[3])||0;return K0e(r,l)?n*(r*gb+l*mb):NaN}function U0e(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var l=r.getUTCDay()||7,i=(t-1)*7+n+1-l;return r.setUTCDate(r.getUTCDate()+i),r}var H0e=[31,null,31,30,31,30,31,31,30,31,30,31];function DB(e){return e%400===0||e%4===0&&e%100!==0}function V0e(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(H0e[t]||(DB(e)?29:28))}function G0e(e,t){return t>=1&&t<=(DB(e)?366:365)}function Y0e(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function X0e(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function K0e(e,t){return t>=0&&t<=59}const Z0e=Object.freeze(Object.defineProperty({__proto__:null,default:AB},Symbol.toStringTag,{value:"Module"}));function Q0e(e,t){var n,r;_n(1,arguments);var l=Tn(e);if(isNaN(l.getTime()))throw new RangeError("Invalid time value");var i=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),o=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(i!=="extended"&&i!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(o!=="date"&&o!=="time"&&o!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",s="",u=i==="extended"?"-":"",c=i==="extended"?":":"";if(o!=="time"){var d=tr(l.getDate(),2),f=tr(l.getMonth()+1,2),p=tr(l.getFullYear(),4);a="".concat(p).concat(u).concat(f).concat(u).concat(d)}if(o!=="date"){var m=l.getTimezoneOffset();if(m!==0){var g=Math.abs(m),b=tr(Math.floor(g/60),2),v=tr(g%60,2),h=m<0?"+":"-";s="".concat(h).concat(b,":").concat(v)}else s="Z";var y=tr(l.getHours(),2),w=tr(l.getMinutes(),2),_=tr(l.getSeconds(),2),x=a===""?"":"T",T=[y,w,_].join(c);a="".concat(a).concat(x).concat(T).concat(s)}return a}function J0e(e,t){_n(2,arguments);var n=Tn(e).getTime(),r=Tn(t.start).getTime(),l=Tn(t.end).getTime();if(!(r<=l))throw new RangeError("Invalid interval");return n>=r&&n<=l}var sk={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,u){switch(s){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(s,u){switch(s){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},l=function(s,u){var c=s.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return n(s,u);var p;switch(d){case"P":p=u.dateTime({width:"short"});break;case"PP":p=u.dateTime({width:"medium"});break;case"PPP":p=u.dateTime({width:"long"});break;case"PPPP":default:p=u.dateTime({width:"full"});break}return p.replace("{{date}}",n(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:l},o=i;t.default=o,e.exports=t.default})(sk,sk.exports);var eve=sk.exports;const EB=lr(eve),tve={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class nve{constructor({locale:t,formats:n}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var r;return this.locale?/a/.test((r=this.locale.formatLong)===null||r===void 0?void 0:r.time()):!0},this.getFormatHelperText=r=>{var l,i;const o=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,a=this.locale||yb;return(i=(l=r.match(o))===null||l===void 0?void 0:l.map(s=>{const u=s[0];if(u==="p"||u==="P"){const c=EB[u];return c(s,a.formatLong,{})}return s}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&i!==void 0?i:r},this.parseISO=r=>AB(r),this.toISO=r=>Q0e(r,{format:"extended"}),this.getCurrentLocaleCode=()=>{var r;return((r=this.locale)===null||r===void 0?void 0:r.code)||"en-US"},this.addSeconds=(r,l)=>tme(r,l),this.addMinutes=(r,l)=>rme(r,l),this.addHours=(r,l)=>ome(r,l),this.addDays=(r,l)=>ak(r,l),this.addWeeks=(r,l)=>ime(r,l),this.addMonths=(r,l)=>av(r,l),this.addYears=(r,l)=>o7(r,l),this.isValid=r=>mB(this.date(r)),this.getDiff=(r,l,i)=>{var o;const a=(o=this.date(l))!==null&&o!==void 0?o:r;if(!this.isValid(a))return 0;switch(i){case"years":return sme(r,a);case"quarters":return fme(r,a);case"months":return pB(r,a);case"weeks":return mme(r,a);case"days":return hB(r,a);case"hours":return vme(r,a);case"minutes":return yme(r,a);case"seconds":return bme(r,a);default:return vb(r,a)}},this.isAfter=(r,l)=>c0(r,l),this.isBefore=(r,l)=>zc(r,l),this.startOfDay=r=>Wd(r),this.endOfDay=r=>ok(r),this.getHours=r=>xge(r),this.setHours=(r,l)=>D0e(r,l),this.setMinutes=(r,l)=>E0e(r,l),this.getSeconds=r=>Tge(r),this.setSeconds=(r,l)=>L0e(r,l),this.isSameDay=(r,l)=>Cge(r,l),this.isSameMonth=(r,l)=>Pge(r,l),this.isSameYear=(r,l)=>Mge(r,l),this.isSameHour=(r,l)=>Oge(r,l),this.startOfYear=r=>f0(r),this.endOfYear=r=>s_(r),this.startOfMonth=r=>d0(r),this.endOfMonth=r=>ik(r),this.startOfWeek=r=>c_(r,{locale:this.locale}),this.endOfWeek=r=>l_(r,{locale:this.locale}),this.getYear=r=>kge(r),this.setYear=(r,l)=>I0e(r,l),this.date=r=>typeof r>"u"?new Date:r===null?null:new Date(r),this.toJsDate=r=>r,this.parse=(r,l)=>r===""?null:P0e(r,l,new Date,{locale:this.locale}),this.format=(r,l)=>this.formatByString(r,this.formats[l]),this.formatByString=(r,l)=>TB(r,l,{locale:this.locale}),this.isEqual=(r,l)=>r===null&&l===null?!0:Sge(r,l),this.isNull=r=>r===null,this.isAfterDay=(r,l)=>c0(r,ok(l)),this.isBeforeDay=(r,l)=>zc(r,Wd(l)),this.isBeforeYear=(r,l)=>zc(r,f0(l)),this.isAfterYear=(r,l)=>c0(r,s_(l)),this.isWithinRange=(r,[l,i])=>J0e(r,{start:l,end:i}),this.formatNumber=r=>r,this.getMinutes=r=>wge(r),this.getDate=r=>yge(r),this.setDate=(r,l)=>A0e(r,l),this.getMonth=r=>_ge(r),this.getDaysInMonth=r=>kB(r),this.setMonth=(r,l)=>R0e(r,l),this.getMeridiemText=r=>r==="am"?"AM":"PM",this.getNextMonth=r=>av(r,1),this.getPreviousMonth=r=>av(r,-1),this.getMonthArray=r=>{const i=[f0(r)];for(;i.length<12;){const o=i[i.length-1];i.push(this.getNextMonth(o))}return i},this.mergeDateAndTime=(r,l)=>this.setSeconds(this.setMinutes(this.setHours(r,this.getHours(l)),this.getMinutes(l)),this.getSeconds(l)),this.getWeekdays=()=>{const r=new Date;return xme({start:c_(r,{locale:this.locale}),end:l_(r,{locale:this.locale})}).map(l=>this.formatByString(l,"EEEEEE"))},this.getWeekArray=r=>{const l=c_(d0(r),{locale:this.locale}),i=l_(ik(r),{locale:this.locale});let o=0,a=l;const s=[];let u=null;for(;zc(a,i);){const c=Math.floor(o/7);s[c]=s[c]||[];const d=bge(a);u!==d&&(u=d,s[c].push(a),o+=1),a=ak(a,1)}return s},this.getYearRange=(r,l)=>{const i=f0(r),o=s_(l),a=[];let s=i;for(;zc(s,o);)a.push(s),s=o7(s,1);return a},this.locale=t,this.formats=Object.assign({},tve,n)}isBeforeMonth(t,n){return zc(t,d0(n))}isAfterMonth(t,n){return c0(t,d0(n))}}const rve={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class ave extends nve{constructor(...t){super(...t),this.formatTokenMap=rve,this.expandFormat=n=>{const r=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(r).map(l=>{const i=l[0];if(i==="p"||i==="P"){const o=EB[i],a=this.locale||yb;return o(l,a.formatLong,{})}return l}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const ove=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:ave},Symbol.toStringTag,{value:"Module"})),RB=Qn(ove);function LB(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(n)!==-1):e.indexOf(t)!==-1}const IB=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},$B=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?$B(t.shadowRoot):t:null};function ive(e){return yn("PrivatePickersMonth",e)}const uk=hn("PrivatePickersMonth",["root","selected"]),lve=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],sve=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},ive,t)},uve=Et(dr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${uk.selected}`]:t.selected}]})(({theme:e})=>Ie({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${uk.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),h7=()=>{},cve=e=>{const{disabled:t,onSelect:n,selected:r,value:l,tabIndex:i,hasFocus:o,onFocus:a=h7,onBlur:s=h7}=e,u=Kt(e,lve),c=sve(e),d=()=>{n(l)},f=ge.useRef(null);return no(()=>{if(o){var p;(p=f.current)==null||p.focus()}},[o]),ke.jsx(uve,Ie({ref:f,component:"button",type:"button",className:c.root,tabIndex:i,onClick:d,onKeyDown:IB(d),color:r?"primary":void 0,variant:r?"h5":"subtitle1",disabled:t,onFocus:p=>a(p,l),onBlur:p=>s(p,l)},u))},ia=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Ie({},e)}}}}),dve={previousMonth:"Vorige maand",nextMonth:"Volgende maand",openPreviousView:"open vorige view",openNextView:"open volgende view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"jaarweergave is geopend, schakel over naar kalenderweergave":"kalenderweergave is geopend, switch naar jaarweergave",start:"Start",end:"Einde",cancelButtonLabel:"Annuleren",clearButtonLabel:"Resetten",okButtonLabel:"OK",todayButtonLabel:"Vandaag",clockLabelText:(e,t,n)=>`Selecteer ${e}. ${t===null?"Geen tijd geselecteerd":`Geselecteerde tijd is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} uren`,minutesClockNumberText:e=>`${e} minuten`,secondsClockNumberText:e=>`${e} seconden`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies datum, geselecteerde datum is ${t.format(t.date(e),"fullDate")}`:"Kies datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies tijd, geselecteerde tijd is ${t.format(t.date(e),"fullTime")}`:"Kies tijd",timeTableLabel:"kies tijd",dateTableLabel:"kies datum"},fve=ia(dve),pve={previousMonth:"Poprzedni miesiąc",nextMonth:"Następny miesiąc",openPreviousView:"otwórz poprzedni widok",openNextView:"otwórz następny widok",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"otwarty jest widok roku, przełącz na widok kalendarza":"otwarty jest widok kalendarza, przełącz na widok roku",start:"Początek",end:"Koniec",cancelButtonLabel:"Anuluj",clearButtonLabel:"Wyczyść",okButtonLabel:"Zatwierdź",todayButtonLabel:"Dzisiaj",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Nie wybrano czasu":`Wybrany czas to ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} godzin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz datę, obecnie wybrana data to ${t.format(t.date(e),"fullDate")}`:"Wybierz datę",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz czas, obecnie wybrany czas to ${t.format(t.date(e),"fullTime")}`:"Wybierz czas",timeTableLabel:"wybierz czas",dateTableLabel:"wybierz datę"},hve=ia(pve),mve={previousMonth:"Mês anterior",nextMonth:"Próximo mês",openPreviousView:"Abrir próxima seleção",openNextView:"Abrir seleção anterior",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Seleção de ano está aberta, alternando para seleção de calendário":"Seleção de calendários está aberta, alternando para seleção de ano",start:"Início",end:"Fim",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpar",okButtonLabel:"OK",todayButtonLabel:"Hoje",datePickerDefaultToolbarTitle:"Selecione a data",dateTimePickerDefaultToolbarTitle:"Selecione data e hora",timePickerDefaultToolbarTitle:"Selecione a hora",dateRangePickerDefaultToolbarTitle:"Selecione o intervalo entre datas",clockLabelText:(e,t,n)=>`Selecione ${e}. ${t===null?"Hora não selecionada":`Selecionado a hora ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma data, data selecionada ${t.format(t.date(e),"fullDate")}`:"Escolha uma data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma hora, hora selecionada ${t.format(t.date(e),"fullTime")}`:"Escolha uma hora",timeTableLabel:"escolha uma hora",dateTableLabel:"escolha uma data"},gve=ia(mve),vve={previousMonth:"Önceki ay",nextMonth:"Sonraki ay",openPreviousView:"sonraki görünüm",openNextView:"önceki görünüm",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"yıl görünümü açık, takvim görünümüne geç":"takvim görünümü açık, yıl görünümüne geç",inputModeToggleButtonAriaLabel:(e,t)=>e?`metin girişi görünümü açık, şuraya gidin: ${t} görünümü`:`${t} görünüm açık, metin girişi görünümüne gidin`,start:"Başlangıç",end:"Bitiş",cancelButtonLabel:"iptal",clearButtonLabel:"Temizle",okButtonLabel:"Tamam",todayButtonLabel:"Bugün",datePickerDefaultToolbarTitle:"Tarih Seç",dateTimePickerDefaultToolbarTitle:"Tarih & Saat seç",timePickerDefaultToolbarTitle:"Saat seç",dateRangePickerDefaultToolbarTitle:"Tarih aralığı seçin",clockLabelText:(e,t,n)=>`${e} seç. ${t===null?"Zaman seçilmedi":`Seçilen zaman: ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} saat`,minutesClockNumberText:e=>`${e} dakika`,secondsClockNumberText:e=>`${e} saniye`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Tarih seçin, seçilen tarih: ${t.format(e,"fullDate")}`:"Tarih seç",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Saat seçin, seçilen saat: ${t.format(e,"fullTime")}`:"Saat seç",timeTableLabel:"saat seç",dateTableLabel:"tarih seç"},yve=ia(vve),h0={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},m7={calendar:"Kalenderansicht",clock:"Uhransicht"},bve={previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",openPreviousView:"Letzte Ansicht öffnen",openNextView:"Nächste Ansicht öffnen",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Jahresansicht ist geöffnet, zur Kalenderansicht wechseln":"Kalenderansicht ist geöffnet, zur Jahresansicht wechseln",inputModeToggleButtonAriaLabel:(e,t)=>e?`Texteingabeansicht ist geöffnet, zur ${m7[t]} wechseln`:`${m7[t]} ist geöffnet, zur Texteingabeansicht wechseln`,start:"Beginn",end:"Ende",cancelButtonLabel:"Abbrechen",clearButtonLabel:"Löschen",okButtonLabel:"OK",todayButtonLabel:"Heute",datePickerDefaultToolbarTitle:"Datum auswählen",dateTimePickerDefaultToolbarTitle:"Datum & Uhrzeit auswählen",timePickerDefaultToolbarTitle:"Uhrzeit auswählen",dateRangePickerDefaultToolbarTitle:"Datumsbereich auswählen",clockLabelText:(e,t,n)=>{var r;return`${(r=h0[e])!=null?r:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${h0.hours}`,minutesClockNumberText:e=>`${e} ${h0.minutes}`,secondsClockNumberText:e=>`${e} ${h0.seconds}`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Datum auswählen, gewähltes Datum ist ${t.format(t.date(e),"fullDate")}`:"Datum auswählen",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Uhrzeit auswählen, gewählte Uhrzeit ist ${t.format(t.date(e),"fullTime")}`:"Uhrzeit auswählen",timeTableLabel:"Uhrzeit auswählen",dateTableLabel:"Datum auswählen"},xve=ia(bve),wve={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},_ve={previousMonth:"Último mes",nextMonth:"Próximo mes",openPreviousView:"abrir la última vista",openNextView:"abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista del año está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista del año",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista de entrada de texto está abierta, ir a la vista ${t}`:`la vista ${t} está abierta, ir a la vista de entrada de texto`,start:"Empezar",end:"Terminar",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerDefaultToolbarTitle:"Seleccionar fecha",dateTimePickerDefaultToolbarTitle:"Seleccionar fecha & hora",timePickerDefaultToolbarTitle:"Seleccionar hora",dateRangePickerDefaultToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,n)=>`Seleccione ${wve[e]}. ${t===null?"Sin tiempo seleccionado":`El tiempo seleccionado es ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la fecha, la fecha elegida es ${t.format(t.date(e),"fullDate")}`:"Elige la fecha",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la hora, la hora elegido es ${t.format(t.date(e),"fullTime")}`:"Elige la hora",timeTableLabel:"elige la fecha",dateTableLabel:"elige la hora"},Tve=ia(_ve),kve={previousMonth:"ماه گذشته",nextMonth:"ماه آینده",openPreviousView:"نمای قبلی",openNextView:"نمای بعدی",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"نمای سال باز است، رفتن به نمای تقویم":"نمای تقویم باز است، رفتن به نمای سال",inputModeToggleButtonAriaLabel:(e,t)=>e?`نمای ورودی متن باز است، رفتن به نمای ${t}`:`نمای ${t} باز است، رفتن به نمای ورودی متن`,start:"شروع",end:"پایان",cancelButtonLabel:"لغو",clearButtonLabel:"پاک کردن",okButtonLabel:"اوکی",todayButtonLabel:"امروز",datePickerDefaultToolbarTitle:"تاریخ را انتخاب کنید",dateTimePickerDefaultToolbarTitle:"تاریخ و ساعت را انتخاب کنید",timePickerDefaultToolbarTitle:"ساعت را انتخاب کنید",dateRangePickerDefaultToolbarTitle:"محدوده تاریخ را انتخاب کنید",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"هیچ ساعتی انتخاب نشده است":`ساعت انتخاب ${n.format(t,"fullTime")} می باشد`}`,hoursClockNumberText:e=>`${e} ساعت ها`,minutesClockNumberText:e=>`${e} دقیقه ها`,secondsClockNumberText:e=>`${e} ثانیه ها`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`تاریخ را انتخاب کنید، تاریخ انتخاب شده ${t.format(t.date(e),"fullDate")} می باشد`:"تاریخ را انتخاب کنید",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`ساعت را انتخاب کنید، ساعت انتخاب شده ${t.format(t.date(e),"fullTime")} می باشد`:"ساعت را انتخاب کنید",timeTableLabel:"انتخاب تاریخ",dateTableLabel:"انتخاب ساعت"},Sve=ia(kve),Cve={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},g7={calendar:"kalenteri",clock:"kello"},Mve={previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",openPreviousView:"avaa edellinen kuukausi",openNextView:"avaa seuraava kuukausi",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"vuosinäkymä on auki, vaihda kalenterinäkymään":"kalenterinäkymä on auki, vaihda vuosinäkymään",inputModeToggleButtonAriaLabel:(e,t)=>e?`tekstikenttä on auki, mene ${g7[t]}näkymään`:`${g7[t]}näkymä on auki, mene tekstikenttään`,start:"Alku",end:"Loppu",cancelButtonLabel:"Peruuta",clearButtonLabel:"Tyhjennä",okButtonLabel:"OK",todayButtonLabel:"Tänään",datePickerDefaultToolbarTitle:"Valitse päivä",dateTimePickerDefaultToolbarTitle:"Valitse päivä ja aika",timePickerDefaultToolbarTitle:"Valitse aika",dateRangePickerDefaultToolbarTitle:"Valitse aikaväli",clockLabelText:(e,t,n)=>`Valitse ${Cve[e]}. ${t===null?"Ei aikaa valittuna":`Valittu aika on ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} tuntia`,minutesClockNumberText:e=>`${e} minuuttia`,secondsClockNumberText:e=>`${e} sekunttia`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse päivä, valittu päivä on ${t.format(t.date(e),"fullDate")}`:"Valitse päivä",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse aika, valittu aika on ${t.format(t.date(e),"fullTime")}`:"Valitse aika",timeTableLabel:"valitse aika",dateTableLabel:"valitse päivä"},Pve=ia(Mve),Ove={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},v7={calendar:"kalendáře",clock:"času"},Ave={previousMonth:"Další měsíc",nextMonth:"Předchozí month",openPreviousView:"otevřít předchozí zobrazení",openNextView:"otevřít další zobrazení",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"roční zobrazení otevřeno, přepněte do zobrazení kalendáře":"zobrazení kalendáře otevřeno, přepněte do zobrazení roku",inputModeToggleButtonAriaLabel:(e,t)=>e?`Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${v7[t]}`:`Zobrazení ${v7[t]} je otevřené, přepněte do zobrazení textového pole`,start:"Začátek",end:"Konec",cancelButtonLabel:"Zrušit",clearButtonLabel:"Vymazat",okButtonLabel:"Potvrdit",todayButtonLabel:"Dnes",datePickerDefaultToolbarTitle:"Vyberte datum",dateTimePickerDefaultToolbarTitle:"Vyberte datum a čas",timePickerDefaultToolbarTitle:"Vyberte čas",dateRangePickerDefaultToolbarTitle:"Vyberete rozmezí dat",clockLabelText:(e,t,n)=>{var r;return`${(r=Ove[e])!=null?r:e} vybrány. ${t===null?"Není vybrán čas":`Vybraný čas je ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} hodin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané datum, vybrané datum je ${t.format(e,"fullDate")}`:"Vyberte datum",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané čas, vybraný čas je ${t.format(e,"fullTime")}`:"Vyberte čas",timeTableLabel:"vyberte čas",dateTableLabel:"vyberte datum"},Dve=ia(Ave),Eve={hours:"heures",minutes:"minutes",seconds:"secondes"},y7={calendar:"calendrier",clock:"horloge"},Rve={previousMonth:"Mois précédent",nextMonth:"Mois suivant",openPreviousView:"Ouvrir la vue précédente",openNextView:"Ouvrir la vue suivante",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"La vue année est ouverte, ouvrir la vue calendrier":"La vue calendrier est ouverte, ouvrir la vue année",inputModeToggleButtonAriaLabel:(e,t)=>e?`passer du champ text au ${y7[t]}`:`passer du ${y7[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,n)=>`Choix des ${Eve[e]}. ${t===null?"Aucune heure choisie":`L'heure choisie est ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} heures`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} secondes`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir la date, la date sélectionnée est ${t.format(t.date(e),"fullDate")}`:"Choisir la date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir l'heure, l'heure sélectionnée est ${t.format(t.date(e),"fullTime")}`:"Choisir l'heure",timeTableLabel:"choix de l'heure",dateTableLabel:"choix de la date"},Lve=ia(Rve),m0={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},b7={calendar:"naptár",clock:"óra"},Ive={previousMonth:"Előző hónap",nextMonth:"Következő hónap",openPreviousView:"Előző nézet megnyitása",openNextView:"Következő nézet megnyitása",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"az évválasztó már nyitva, váltson a naptárnézetre":"a naptárnézet már nyitva, váltson az évválasztóra",inputModeToggleButtonAriaLabel:(e,t)=>e?`szöveges beviteli nézet aktív, váltás ${b7[t]} nézetre`:`${b7[t]} beviteli nézet aktív, váltás szöveges beviteli nézetre`,start:"Kezdő dátum",end:"Záró dátum",cancelButtonLabel:"Mégse",clearButtonLabel:"Törlés",okButtonLabel:"OK",todayButtonLabel:"Ma",datePickerDefaultToolbarTitle:"Dátum kiválasztása",dateTimePickerDefaultToolbarTitle:"Dátum és idő kiválasztása",timePickerDefaultToolbarTitle:"Idő kiválasztása",dateRangePickerDefaultToolbarTitle:"Dátumhatárok kiválasztása",clockLabelText:(e,t,n)=>{var r;return`${(r=m0[e])!=null?r:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${m0.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${m0.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${m0.seconds.toLowerCase()}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon dátumot, a kiválasztott dátum: ${t.format(e,"fullDate")}`:"Válasszon dátumot",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon időt, a kiválasztott idő: ${t.format(e,"fullTime")}`:"Válasszon időt",timeTableLabel:"válasszon időt",dateTableLabel:"válasszon dátumot"},$ve=ia(Ive),NB={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},FB=NB,Nve=ia(NB),Fve={previousMonth:"Forrige måned",nextMonth:"Neste måned",openPreviousView:"åpne forrige visning",openNextView:"åpne neste visning",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvisning er åpen, bytt til kalendervisning":"kalendervisning er åpen, bytt til årsvisning",start:"Start",end:"Slutt",cancelButtonLabel:"Avbryt",clearButtonLabel:"Fjern",okButtonLabel:"OK",todayButtonLabel:"I dag",clockLabelText:(e,t,n)=>`Velg ${e}. ${t===null?"Ingen tid valgt":`Valgt tid er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timer`,minutesClockNumberText:e=>`${e} minutter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg dato, valgt dato er ${t.format(t.date(e),"fullDate")}`:"Velg dato",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg tid, valgt tid er ${t.format(t.date(e),"fullTime")}`:"Velg tid",timeTableLabel:"velg tid",dateTableLabel:"velg dato"},jve=ia(Fve),zve={previousMonth:"Föregående månad",nextMonth:"Nästa månad",openPreviousView:"öppna föregående vy",openNextView:"öppna nästa vy",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvyn är öppen, byt till kalendervy":"kalendervyn är öppen, byt till årsvy",start:"Start",end:"Slut",cancelButtonLabel:"Avbryt",clearButtonLabel:"Rensa",okButtonLabel:"OK",todayButtonLabel:"Idag",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Ingen tid vald":`Vald tid är ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timmar`,minutesClockNumberText:e=>`${e} minuter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj datum, valt datum är ${t.format(t.date(e),"fullDate")}`:"Välj datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj tid, vald tid är ${t.format(t.date(e),"fullTime")}`:"Välj tid",timeTableLabel:"välj tid",dateTableLabel:"välj datum"},Bve=ia(zve),Wve={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},qve={previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista dell'anno è aperta, passare alla vista del calendario":"la vista dell'calendario è aperta, passare alla vista dell'anno",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista del campo di testo è aperta, passare alla vista ${t}`:`la vista aperta è: ${t}, vai alla vista del campo di testo`,start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerDefaultToolbarTitle:"Seleziona data",dateTimePickerDefaultToolbarTitle:"Seleziona data e orario",timePickerDefaultToolbarTitle:"Seleziona orario",dateRangePickerDefaultToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,n)=>`Seleziona ${Wve[e]}. ${t===null?"Nessun orario selezionato":`L'ora selezionata è ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli la data, la data selezionata è ${t.format(t.date(e),"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli l'ora, l'ora selezionata è ${t.format(t.date(e),"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data"},Uve=ia(qve),Hve={hours:"小时",minutes:"分钟",seconds:"秒"},Vve={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,n)=>`Select ${Hve[e]}. ${t===null?"未选择时间":`已选择${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e}小时`,minutesClockNumberText:e=>`${e}分钟`,secondsClockNumberText:e=>`${e}秒`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择日期,已选择${t.format(t.date(e),"fullDate")}`:"选择日期",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择时间,已选择${t.format(t.date(e),"fullTime")}`:"选择时间",timeTableLabel:"选择时间",dateTableLabel:"选择日期"},Gve=ia(Vve),Yve={hours:"시간을",minutes:"분을",seconds:"초를"},Xve={previousMonth:"이전 달",nextMonth:"다음 달",openPreviousView:"이전 화면 보기",openNextView:"다음 화면 보기",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"연도 선택 화면에서 달력 화면으로 전환하기":"달력 화면에서 연도 선택 화면으로 전환하기",inputModeToggleButtonAriaLabel:(e,t)=>e?`텍스트 입력 화면에서 ${t} 화면으로 전환하기`:`${t} 화면에서 텍스트 입력 화면으로 전환하기`,start:"시작",end:"종료",cancelButtonLabel:"취소",clearButtonLabel:"초기화",okButtonLabel:"확인",todayButtonLabel:"오늘",datePickerDefaultToolbarTitle:"날짜 선택하기",dateTimePickerDefaultToolbarTitle:"날짜 & 시간 선택하기",timePickerDefaultToolbarTitle:"시간 선택하기",dateRangePickerDefaultToolbarTitle:"날짜 범위 선택하기",clockLabelText:(e,t,n)=>`${Yve[e]} 선택하세요. ${t===null?"시간을 선택하지 않았습니다.":`현재 선택된 시간은 ${n.format(t,"fullTime")}입니다.`}`,hoursClockNumberText:e=>`${e}시간`,minutesClockNumberText:e=>`${e}분`,secondsClockNumberText:e=>`${e}초`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`날짜를 선택하세요. 현재 선택된 날짜는 ${t.format(t.date(e),"fullDate")}입니다.`:"날짜를 선택하세요",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`시간을 선택하세요. 현재 선택된 시간은 ${t.format(t.date(e),"fullTime")}입니다.`:"시간을 선택하세요",timeTableLabel:"선택한 시간",dateTableLabel:"선택한 날짜"},Kve=ia(Xve),Zve={previousMonth:"Fyrri mánuður",nextMonth:"Næsti mánuður",openPreviousView:"opna fyrri skoðun",openNextView:"opna næstu skoðun",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"ársskoðun er opin, skipta yfir í dagatalsskoðun":"dagatalsskoðun er opin, skipta yfir í ársskoðun",inputModeToggleButtonAriaLabel:(e,t)=>{const n=t==="calendar"?"dagatals":"klukku";return e?`textainnsláttur er opinn, fara í ${n}skoðun`:`${n}skoðun er opin, opna fyrir textainnslátt`},start:"Upphaf",end:"Endir",cancelButtonLabel:"Hætta við",clearButtonLabel:"Hreinsa",okButtonLabel:"OK",todayButtonLabel:"Í dag",datePickerDefaultToolbarTitle:"Velja dagsetningu",dateTimePickerDefaultToolbarTitle:"Velja dagsetningu og tíma",timePickerDefaultToolbarTitle:"Velja tíma",dateRangePickerDefaultToolbarTitle:"Velja tímabil",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Enginn tími valinn":`Valinn tími er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} klukkustundir`,minutesClockNumberText:e=>`${e} mínútur`,secondsClockNumberText:e=>`${e} sekúndur`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja dagsetningu, valin dagsetning er ${t.format(t.date(e),"fullDate")}`:"Velja dagsetningu",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja tíma, valinn tími er ${t.format(t.date(e),"fullTime")}`:"Velja tíma",timeTableLabel:"velja tíma",dateTableLabel:"velja dagsetningu"},Qve=ia(Zve),g0={hours:"時間",minutes:"分",seconds:"秒"},x7={calendar:"カレンダー表示",clock:"時計表示"},Jve={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${x7[t]}に切り替える`:`${x7[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,n)=>{var r;return`${(r=g0[e])!=null?r:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${n.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${g0.hours}`,minutesClockNumberText:e=>`${e} ${g0.minutes}`,secondsClockNumberText:e=>`${e} ${g0.seconds}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`日付を選択してください。選択した日付は ${t.format(e,"fullDate")} です`:"日付を選択してください",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`時間を選択してください。選択した時間は ${t.format(e,"fullTime")} です`:"時間を選択してください",timeTableLabel:"時間を選択",dateTableLabel:"日付を選択"},eye=ia(Jve),tye={previousMonth:"Попередній місяць",nextMonth:"Наступний місяць",openPreviousView:"відкрити попередній вигляд",openNextView:"відкрити наступний вигляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"річний вигляд відкрито, перейти до календарного вигляду":"календарний вигляд відкрито, перейти до річного вигляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`текстове поле відкрите, перейти до ${t} вигляду`:`${t} вигляд наразі відкрито, перейти до текстового поля`,start:"Початок",end:"Кінець",cancelButtonLabel:"Відміна",clearButtonLabel:"Очистити",okButtonLabel:"OK",todayButtonLabel:"Сьогодні",datePickerDefaultToolbarTitle:"Вибрати дату",dateTimePickerDefaultToolbarTitle:"Вибрати дату і час",timePickerDefaultToolbarTitle:"Вибрати час",dateRangePickerDefaultToolbarTitle:"Вибрати календарний період",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Час не вибраний":`Вибрано час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} годин`,minutesClockNumberText:e=>`${e} хвилин`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть дату, обрана дата ${t.format(e,"fullDate")}`:"Оберіть дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть час, обраний час ${t.format(e,"fullTime")}`:"Оберіть час",timeTableLabel:"оберіть час",dateTableLabel:"оберіть дату"},nye=ia(tye),rye={previousMonth:"پچھلا مہینہ",nextMonth:"اگلا مہینہ",openPreviousView:"پچھلا ویو کھولیں",openNextView:"اگلا ویو کھولیں",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں":"کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں",inputModeToggleButtonAriaLabel:(e,t)=>e?`،ٹیکسٹ ویو کھلا ہے ${t} ویو کھولیں`:`${t} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`,start:"شروع",end:"ختم",cancelButtonLabel:"کینسل",clearButtonLabel:"کلئیر",okButtonLabel:"اوکے",todayButtonLabel:"آج",datePickerDefaultToolbarTitle:"تاریخ منتخب کریں",dateTimePickerDefaultToolbarTitle:"تاریخ اور وقت منتخب کریں",timePickerDefaultToolbarTitle:"وقت منتخب کریں",dateRangePickerDefaultToolbarTitle:"تاریخوں کی رینج منتخب کریں",clockLabelText:(e,t,n)=>`${e} منتخب کریں ${t===null?"کوئی وقت منتخب نہیں":`منتخب وقت ہے ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} گھنٹے`,minutesClockNumberText:e=>`${e} منٹ`,secondsClockNumberText:e=>`${e} سیکنڈ`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${t.format(e,"fullDate")}`:"تاریخ منتخب کریں",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`وقت منتخب کریں، منتخب شدہ وقت ہے ${t.format(e,"fullTime")}`:"وقت منتخب کریں",timeTableLabel:"وقت منتخب کریں",dateTableLabel:"تاریخ منتخب کریں"},aye=ia(rye),f_={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},oye={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${f_[t]}`:`Выгляд ${f_[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,n)=>`Абярыце ${f_[e]}. ${t===null?"Час не абраны":`Абраны час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} гадзін`,minutesClockNumberText:e=>`${e} хвілін`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць дату, абрана дата ${t.format(e,"fullDate")}`:"Абраць дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць час, абрыны час ${t.format(e,"fullTime")}`:"Абраць час",timeTableLabel:"абраць час",dateTableLabel:"абраць дату"},iye=ia(oye),lye={hours:"часы",minutes:"минуты",seconds:"секунды"},w7={calendar:"календарный",clock:"часовой"},sye={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${w7[t]} вид`:`Открыт ${w7[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,n)=>`Выбрать ${lye[e]}. ${t===null?"Время не выбрано":`Выбрано время ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату"},uye=ia(sye),WM=ge.createContext(null);function cye(e){const t=pn({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:r,dateFormats:l,dateLibInstance:i,locale:o,adapterLocale:a,localeText:s}=t,u=ge.useMemo(()=>new r({locale:a??o,formats:l,instance:i}),[r,o,a,l,i]),c=ge.useMemo(()=>({minDate:u.date("1900-01-01T00:00:00.000"),maxDate:u.date("2099-12-31T00:00:00.000")}),[u]),d=ge.useMemo(()=>({utils:u,defaultDates:c,localeText:Ie({},FB,s??{})}),[c,u,s]);return ke.jsx(WM.Provider,{value:d,children:n})}const ng=()=>{const e=ge.useContext(WM);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},Br=()=>ng().utils,rg=()=>ng().defaultDates,Xi=()=>ng().localeText,ag=()=>{const e=Br();return ge.useRef(e.date()).current};function jB(e){return yn("MuiMonthPicker",e)}const dye=hn("MuiMonthPicker",["root"]),Ih=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:l,isDateDisabled:i,utils:o})=>{const a=o.startOfDay(o.date());n&&o.isBefore(l,a)&&(l=a),t&&o.isAfter(r,a)&&(r=a);let s=e,u=e;for(o.isBefore(e,l)&&(s=o.date(l),u=null),o.isAfter(e,r)&&(u&&(u=o.date(r)),s=null);s||u;){if(s&&o.isAfter(s,r)&&(s=null),u&&o.isBefore(u,l)&&(u=null),s){if(!i(s))return s;s=o.addDays(s,1)}if(u){if(!i(u))return u;u=o.addDays(u,-1)}}return null},qM=(e,t)=>{const n=e.date(t);return e.isValid(n)?n:null},Ci=(e,t,n)=>{if(t==null)return n;const r=e.date(t);return e.isValid(r)?r:n},fye=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],pye=e=>{const{classes:t}=e;return vn({root:["root"]},jB,t)};function hye(e,t){const n=Br(),r=rg(),l=pn({props:e,name:t});return Ie({disableFuture:!1,disablePast:!1},l,{minDate:Ci(n,l.minDate,r.minDate),maxDate:Ci(n,l.maxDate,r.maxDate)})}const mye=Et("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),zB=ge.forwardRef(function(t,n){const r=Br(),l=ag(),i=hye(t,"MuiMonthPicker"),{className:o,date:a,disabled:s,disableFuture:u,disablePast:c,maxDate:d,minDate:f,onChange:p,shouldDisableMonth:m,readOnly:g,disableHighlightToday:b,autoFocus:v=!1,onMonthFocus:h,hasFocus:y,onFocusedViewChange:w}=i,_=Kt(i,fye),x=i,T=pye(x),k=Ym(),S=ge.useMemo(()=>a??r.startOfMonth(l),[l,r,a]),C=ge.useMemo(()=>a!=null?r.getMonth(a):b?null:r.getMonth(l),[l,a,r,b]),[M,O]=ge.useState(()=>C||r.getMonth(l)),D=ge.useCallback(R=>{const q=r.startOfMonth(c&&r.isAfter(l,f)?l:f),Y=r.startOfMonth(u&&r.isBefore(l,d)?l:d);return r.isBefore(R,q)||r.isAfter(R,Y)?!0:m?m(R):!1},[u,c,d,f,l,m,r]),P=R=>{if(g)return;const q=r.setMonth(S,R);p(q,"finish")},[E,I]=Zl({name:"MonthPicker",state:"hasFocus",controlled:y,default:v}),A=ge.useCallback(R=>{I(R),w&&w(R)},[I,w]),F=ge.useCallback(R=>{D(r.setMonth(S,R))||(O(R),A(!0),h&&h(R))},[D,r,S,A,h]);ge.useEffect(()=>{O(R=>C!==null&&R!==C?C:R)},[C]);const j=yo(R=>{switch(R.key){case"ArrowUp":F((12+M-3)%12),R.preventDefault();break;case"ArrowDown":F((12+M+3)%12),R.preventDefault();break;case"ArrowLeft":F((12+M+(k.direction==="ltr"?-1:1))%12),R.preventDefault();break;case"ArrowRight":F((12+M+(k.direction==="ltr"?1:-1))%12),R.preventDefault();break}}),z=ge.useCallback((R,q)=>{F(q)},[F]),B=ge.useCallback(()=>{A(!1)},[A]),N=r.getMonth(l);return ke.jsx(mye,Ie({ref:n,className:ma(T.root,o),ownerState:x,onKeyDown:j},_,{children:r.getMonthArray(S).map(R=>{const q=r.getMonth(R),Y=r.format(R,"monthShort"),L=s||D(R);return ke.jsx(cve,{value:q,selected:q===C,tabIndex:q===M&&!L?0:-1,hasFocus:E&&q===M,onSelect:P,onFocus:z,onBlur:B,disabled:L,"aria-current":N===q?"date":void 0,children:Y},Y)})}))});function UM(e,t,n){const{value:r,onError:l}=e,i=ng(),o=ge.useRef(null),a=t({adapter:i,value:r,props:e});return ge.useEffect(()=>{l&&!n(a,o.current)&&l(a,r),o.current=a},[n,l,o,a,r]),a}const HM=({props:e,value:t,adapter:n})=>{const r=n.utils.date(),l=n.utils.date(t),i=Ci(n.utils,e.minDate,n.defaultDates.minDate),o=Ci(n.utils,e.maxDate,n.defaultDates.maxDate);if(l===null)return null;switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(l)):return"shouldDisableDate";case!!(e.disableFuture&&n.utils.isAfterDay(l,r)):return"disableFuture";case!!(e.disablePast&&n.utils.isBeforeDay(l,r)):return"disablePast";case!!(i&&n.utils.isBeforeDay(l,i)):return"minDate";case!!(o&&n.utils.isAfterDay(l,o)):return"maxDate";default:return null}},BB=({shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l})=>{const i=ng();return ge.useCallback(o=>HM({adapter:i,value:o,props:{shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l}})!==null,[i,e,t,n,r,l])},gye=(e,t)=>e===t,VM=e=>UM(e,HM,gye),vye=(e,t,n)=>(r,l)=>{switch(l.type){case"changeMonth":return Ie({},r,{slideDirection:l.direction,currentMonth:l.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Ie({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&l.focusedDay!=null&&n.isSameDay(l.focusedDay,r.focusedDay))return r;const i=l.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,l.focusedDay);return Ie({},r,{focusedDay:l.focusedDay,isMonthSwitchingAnimating:i&&!e&&!l.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(l.focusedDay):r.currentMonth,slideDirection:l.focusedDay!=null&&n.isAfterDay(l.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},yye=({date:e,defaultCalendarMonth:t,disableFuture:n,disablePast:r,disableSwitchToMonthOnDayFocus:l=!1,maxDate:i,minDate:o,onMonthChange:a,reduceAnimations:s,shouldDisableDate:u})=>{var c;const d=ag(),f=Br(),p=ge.useRef(vye(!!s,l,f)).current,[m,g]=ge.useReducer(p,{isMonthSwitchingAnimating:!1,focusedDay:e||d,currentMonth:f.startOfMonth((c=e??t)!=null?c:d),slideDirection:"left"}),b=ge.useCallback(_=>{g(Ie({type:"changeMonth"},_)),a&&a(_.newMonth)},[a]),v=ge.useCallback(_=>{const x=_??d;f.isSameMonth(x,m.currentMonth)||b({newMonth:f.startOfMonth(x),direction:f.isAfterDay(x,m.currentMonth)?"left":"right"})},[m.currentMonth,b,d,f]),h=BB({shouldDisableDate:u,minDate:o,maxDate:i,disableFuture:n,disablePast:r}),y=ge.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),w=ge.useCallback((_,x)=>{h(_)||g({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:x})},[h]);return{calendarState:m,changeMonth:v,changeFocusedDay:w,isDateDisabled:h,onMonthSwitchingAnimationEnd:y,handleChangeMonth:b}},bye=e=>yn("MuiPickersFadeTransitionGroup",e),xye=hn("MuiPickersFadeTransitionGroup",["root"]),wye=e=>{const{classes:t}=e;return vn({root:["root"]},bye,t)},_7=500,_ye=Et(Km,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function WB(e){const t=pn({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:l,transKey:i}=t,o=wye(t);return l?n:ke.jsx(_ye,{className:ma(o.root,r),children:ke.jsx(ib,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:_7,enter:_7/2,exit:0},children:n},i)})}const hm=36,og=2,GM=320,Tye=358;function qB(e){return yn("MuiPickersDay",e)}const hh=hn("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),kye=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],Sye=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:l,disabled:i,outsideCurrentMonth:o,showDaysOutsideCurrentMonth:a,classes:s}=e;return vn({root:["root",t&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&l&&"today",o&&a&&"dayOutsideMonth",o&&!a&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},qB,s)},UB=({theme:e,ownerState:t})=>Ie({},e.typography.caption,{width:hm,height:hm,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${hh.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${hh.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${hh.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${og}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${hh.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),HB=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Cye=Et(Tl,{name:"MuiPickersDay",slot:"Root",overridesResolver:HB})(UB),Mye=Et("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:HB})(({theme:e,ownerState:t})=>Ie({},UB({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),p_=()=>{},Pye=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersDay"}),{autoFocus:l=!1,className:i,day:o,disabled:a=!1,disableHighlightToday:s=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:f,onFocus:p=p_,onBlur:m=p_,onKeyDown:g=p_,onMouseDown:b,outsideCurrentMonth:v,selected:h=!1,showDaysOutsideCurrentMonth:y=!1,children:w,today:_=!1}=r,x=Kt(r,kye),T=Ie({},r,{autoFocus:l,disabled:a,disableHighlightToday:s,disableMargin:u,selected:h,showDaysOutsideCurrentMonth:y,today:_}),k=Sye(T),S=Br(),C=ge.useRef(null),M=Lr(C,n);no(()=>{l&&!a&&!c&&!v&&C.current.focus()},[l,a,c,v]);const O=P=>{b&&b(P),v&&P.preventDefault()},D=P=>{a||f(o,"finish"),v&&P.currentTarget.focus(),d&&d(P)};return v&&!y?ke.jsx(Mye,{className:ma(k.root,k.hiddenDaySpacingFiller,i),ownerState:T,role:x.role}):ke.jsx(Cye,Ie({className:ma(k.root,i),ownerState:T,ref:M,centerRipple:!0,disabled:a,tabIndex:h?0:-1,onKeyDown:P=>g(P,o),onFocus:P=>p(P,o),onBlur:P=>m(P,o),onClick:D,onMouseDown:O},x,{children:w||S.format(o,"dayOfMonth")}))}),Oye=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,VB=ge.memo(Pye,Oye),Aye=e=>yn("PrivatePickersSlideTransition",e),Ka=hn("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Dye=["children","className","reduceAnimations","slideDirection","transKey"],Eye=e=>{const{classes:t}=e;return vn({root:["root"]},Aye,t)},GB=350,Rye=Et(Km,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ka["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ka["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ka.slideEnterActive}`]:t.slideEnterActive},{[`.${Ka.slideExit}`]:t.slideExit},{[`.${Ka["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ka["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:GB,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Ka["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ka["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ka.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ka.slideExit}`]:{transform:"translate(0%)"},[`& .${Ka["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ka["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),Lye=e=>{const{children:t,className:n,reduceAnimations:r,slideDirection:l,transKey:i}=e,o=Kt(e,Dye),a=Eye(e);if(r)return ke.jsx("div",{className:ma(a.root,n),children:t});const s={exit:Ka.slideExit,enterActive:Ka.slideEnterActive,enter:Ka[`slideEnter-${l}`],exitActive:Ka[`slideExitActiveLeft-${l}`]};return ke.jsx(Rye,{className:ma(a.root,n),childFactory:u=>ge.cloneElement(u,{classNames:s}),role:"presentation",children:ke.jsx(sM,Ie({mountOnEnter:!0,unmountOnExit:!0,timeout:GB,classNames:s},o,{children:t}),i)})},Iye=e=>yn("MuiDayPicker",e),$ye=hn("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),Nye=e=>{const{classes:t}=e;return vn({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},Iye,t)},Fye=e=>e.charAt(0).toUpperCase(),YB=(hm+og*2)*6,jye=Et("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),zye=Et(dr,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),Bye=Et("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:YB}),Wye=Et(Lye,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:YB}),qye=Et("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Uye=Et("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${og}px 0`,display:"flex",justifyContent:"center"});function Hye(e){const t=ag(),n=Br(),r=pn({props:e,name:"MuiDayPicker"}),l=Nye(r),{onFocusedDayChange:i,className:o,currentMonth:a,selectedDays:s,disabled:u,disableHighlightToday:c,focusedDay:d,isMonthSwitchingAnimating:f,loading:p,onSelectedDaysChange:m,onMonthSwitchingAnimationEnd:g,readOnly:b,reduceAnimations:v,renderDay:h,renderLoading:y=()=>ke.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:w,slideDirection:_,TransitionProps:x,disablePast:T,disableFuture:k,minDate:S,maxDate:C,shouldDisableDate:M,dayOfWeekFormatter:O=Fye,hasFocus:D,onFocusedViewChange:P,gridLabelId:E}=r,I=BB({shouldDisableDate:M,minDate:S,maxDate:C,disablePast:T,disableFuture:k}),[A,F]=ge.useState(()=>d||t),j=ge.useCallback(H=>{P&&P(H)},[P]),z=ge.useCallback((H,Z="finish")=>{b||m(H,Z)},[m,b]),B=ge.useCallback(H=>{I(H)||(i(H),F(H),j(!0))},[I,i,j]),N=po();function R(H,Z){switch(H.key){case"ArrowUp":B(n.addDays(Z,-7)),H.preventDefault();break;case"ArrowDown":B(n.addDays(Z,7)),H.preventDefault();break;case"ArrowLeft":{const G=n.addDays(Z,N.direction==="ltr"?-1:1),X=N.direction==="ltr"?n.getPreviousMonth(Z):n.getNextMonth(Z),Q=Ih({utils:n,date:G,minDate:N.direction==="ltr"?n.startOfMonth(X):G,maxDate:N.direction==="ltr"?G:n.endOfMonth(X),isDateDisabled:I});B(Q||G),H.preventDefault();break}case"ArrowRight":{const G=n.addDays(Z,N.direction==="ltr"?1:-1),X=N.direction==="ltr"?n.getNextMonth(Z):n.getPreviousMonth(Z),Q=Ih({utils:n,date:G,minDate:N.direction==="ltr"?G:n.startOfMonth(X),maxDate:N.direction==="ltr"?n.endOfMonth(X):G,isDateDisabled:I});B(Q||G),H.preventDefault();break}case"Home":B(n.startOfWeek(Z)),H.preventDefault();break;case"End":B(n.endOfWeek(Z)),H.preventDefault();break;case"PageUp":B(n.getNextMonth(Z)),H.preventDefault();break;case"PageDown":B(n.getPreviousMonth(Z)),H.preventDefault();break}}function q(H,Z){B(Z)}function Y(H,Z){D&&n.isSameDay(A,Z)&&j(!1)}const L=n.getMonth(a),W=s.filter(H=>!!H).map(H=>n.startOfDay(H)),U=L,V=ge.useMemo(()=>ge.createRef(),[U]),te=n.startOfWeek(t),ee=ge.useMemo(()=>{const H=n.startOfMonth(a),Z=n.endOfMonth(a);return I(A)||n.isAfterDay(A,Z)||n.isBeforeDay(A,H)?Ih({utils:n,date:A,minDate:H,maxDate:Z,disablePast:T,disableFuture:k,isDateDisabled:I}):A},[a,k,T,A,I,n]);return ke.jsxs("div",{role:"grid","aria-labelledby":E,children:[ke.jsx(jye,{role:"row",className:l.header,children:n.getWeekdays().map((H,Z)=>{var G;return ke.jsx(zye,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(te,Z),"weekday"),className:l.weekDayLabel,children:(G=O==null?void 0:O(H))!=null?G:H},H+Z.toString())})}),p?ke.jsx(Bye,{className:l.loadingContainer,children:y()}):ke.jsx(Wye,Ie({transKey:U,onExited:g,reduceAnimations:v,slideDirection:_,className:ma(o,l.slideTransition)},x,{nodeRef:V,children:ke.jsx(qye,{ref:V,role:"rowgroup",className:l.monthContainer,children:n.getWeekArray(a).map(H=>ke.jsx(Uye,{role:"row",className:l.weekContainer,children:H.map(Z=>{const G=ee!==null&&n.isSameDay(Z,ee),X=W.some(ae=>n.isSameDay(ae,Z)),Q=n.isSameDay(Z,t),re={key:Z==null?void 0:Z.toString(),day:Z,isAnimating:f,disabled:u||I(Z),autoFocus:D&&G,today:Q,outsideCurrentMonth:n.getMonth(Z)!==L,selected:X,disableHighlightToday:c,showDaysOutsideCurrentMonth:w,onKeyDown:R,onFocus:q,onBlur:Y,onDaySelect:z,tabIndex:G?0:-1,role:"gridcell","aria-selected":X};return Q&&(re["aria-current"]="date"),h?h(Z,W,re):ge.createElement(VB,Ie({},re,{key:re.key}))})},`week-${H[0]}`))})}))]})}function YM({onChange:e,onViewChange:t,openTo:n,view:r,views:l}){var i,o;const[a,s]=Zl({name:"Picker",state:"view",controlled:r,default:n&&Su(l,n)?n:l[0]}),u=(i=l[l.indexOf(a)-1])!=null?i:null,c=(o=l[l.indexOf(a)+1])!=null?o:null,d=ge.useCallback(m=>{s(m),t&&t(m)},[s,t]),f=ge.useCallback(()=>{c&&d(c)},[c,d]);return{handleChangeAndOpenNext:ge.useCallback((m,g)=>{const b=g==="finish";e(m,b&&c?"partial":g),b&&f()},[c,e,f]),nextView:c,previousView:u,openNext:f,openView:a,setOpenView:d}}const Vye=Qr(ke.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Gye=Qr(ke.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Yye=Qr(ke.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),XB=Qr(ke.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),KB=Qr(ke.jsxs(ge.Fragment,{children:[ke.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),ke.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Xye=Qr(ke.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),Kye=Qr(ke.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),Zye=Qr(ke.jsxs(ge.Fragment,{children:[ke.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),ke.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function Qye(e){return yn("MuiPickersArrowSwitcher",e)}hn("MuiPickersArrowSwitcher",["root","spacer","button"]);const Jye=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],e1e=e=>{const{classes:t}=e;return vn({root:["root"],spacer:["spacer"],button:["button"]},Qye,t)},t1e=Et("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),n1e=Et("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),T7=Et(mi,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Ie({},e.hidden&&{visibility:"hidden"})),ZB=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersArrowSwitcher"}),{children:l,className:i,components:o,componentsProps:a,isLeftDisabled:s,isLeftHidden:u,isRightDisabled:c,isRightHidden:d,leftArrowButtonText:f,onLeftClick:p,onRightClick:m,rightArrowButtonText:g}=r,b=Kt(r,Jye),h=po().direction==="rtl",y=(a==null?void 0:a.leftArrowButton)||{},w=(o==null?void 0:o.LeftArrowIcon)||Gye,_=(a==null?void 0:a.rightArrowButton)||{},x=(o==null?void 0:o.RightArrowIcon)||Yye,T=r,k=e1e(T);return ke.jsxs(t1e,Ie({ref:n,className:ma(k.root,i),ownerState:T},b,{children:[ke.jsx(T7,Ie({as:o==null?void 0:o.LeftArrowButton,size:"small","aria-label":f,title:f,disabled:s,edge:"end",onClick:p},y,{className:ma(k.button,y.className),ownerState:Ie({},T,y,{hidden:u}),children:h?ke.jsx(x,{}):ke.jsx(w,{})})),l?ke.jsx(dr,{variant:"subtitle1",component:"span",children:l}):ke.jsx(n1e,{className:k.spacer,ownerState:T}),ke.jsx(T7,Ie({as:o==null?void 0:o.RightArrowButton,size:"small","aria-label":g,title:g,edge:"start",disabled:c,onClick:m},_,{className:ma(k.button,_.className),ownerState:Ie({},T,_,{hidden:d}),children:h?ke.jsx(w,{}):ke.jsx(x,{})}))]}))}),r1e=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,ck=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,a1e=(e,t,n,r)=>{const l=ck(r.getHours(e),t,n);return r.setHours(e,l)},k7=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),QB=(e=!1,t)=>(n,r)=>e?t.isAfter(n,r):k7(n,t)>k7(r,t);function o1e(e,{disableFuture:t,maxDate:n}){const r=Br();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isBefore(l,n)?l:n);return!r.isAfter(i,e)},[t,n,e,r])}function i1e(e,{disablePast:t,minDate:n}){const r=Br();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isAfter(l,n)?l:n);return!r.isBefore(i,e)},[t,n,e,r])}function JB(e,t,n){const r=Br(),l=r1e(e,r),i=ge.useCallback(o=>{const a=e==null?null:a1e(e,o,!!t,r);n(a,"partial")},[t,e,n,r]);return{meridiemMode:l,handleMeridiemChange:i}}const eW=e=>()=>{},l1e=e=>yn("MuiPickersCalendarHeader",e),s1e=hn("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),u1e=e=>{const{classes:t}=e;return vn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},l1e,t)},c1e=Et("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),d1e=Et("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Ie({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),f1e=Et("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),p1e=Et(mi,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),h1e=Et(Vye,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>Ie({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),m1e=eW();function g1e(e){const t=pn({props:e,name:"MuiPickersCalendarHeader"}),{components:n={},componentsProps:r={},currentMonth:l,disabled:i,disableFuture:o,disablePast:a,getViewSwitchingButtonText:s,leftArrowButtonText:u,maxDate:c,minDate:d,onMonthChange:f,onViewChange:p,openView:m,reduceAnimations:g,rightArrowButtonText:b,views:v,labelId:h}=t;m1e({leftArrowButtonText:u,rightArrowButtonText:b,getViewSwitchingButtonText:s});const y=Xi(),w=u??y.previousMonth,_=b??y.nextMonth,x=s??y.calendarViewSwitchingButtonAriaLabel,T=Br(),k=u1e(t),S=r.switchViewButton||{},C=()=>f(T.getNextMonth(l),"left"),M=()=>f(T.getPreviousMonth(l),"right"),O=o1e(l,{disableFuture:o,maxDate:c}),D=i1e(l,{disablePast:a,minDate:d}),P=()=>{if(!(v.length===1||!p||i))if(v.length===2)p(v.find(I=>I!==m)||v[0]);else{const I=v.indexOf(m)!==0?0:1;p(v[I])}};if(v.length===1&&v[0]==="year")return null;const E=t;return ke.jsxs(c1e,{ownerState:E,className:k.root,children:[ke.jsxs(d1e,{role:"presentation",onClick:P,ownerState:E,"aria-live":"polite",className:k.labelContainer,children:[ke.jsx(WB,{reduceAnimations:g,transKey:T.format(l,"monthAndYear"),children:ke.jsx(f1e,{id:h,ownerState:E,className:k.label,children:T.format(l,"monthAndYear")})}),v.length>1&&!i&&ke.jsx(p1e,Ie({size:"small",as:n.SwitchViewButton,"aria-label":x(m),className:k.switchViewButton},S,{children:ke.jsx(h1e,{as:n.SwitchViewIcon,ownerState:E,className:k.switchViewIcon})}))]}),ke.jsx(ib,{in:m==="day",children:ke.jsx(ZB,{leftArrowButtonText:w,rightArrowButtonText:_,components:n,componentsProps:r,onLeftClick:M,onRightClick:C,isLeftDisabled:D,isRightDisabled:O})})]})}const ss=ge.createContext(null);function v1e(e){return yn("PrivatePickersYear",e)}const Eu=hn("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),y1e=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],b1e=e=>{const{wrapperVariant:t,disabled:n,selected:r,classes:l}=e,i={root:["root",t&&`mode${Jt(t)}`],yearButton:["yearButton",n&&"disabled",r&&"selected"]};return vn(i,v1e,l)},x1e=Et("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Eu.modeDesktop}`]:t.modeDesktop},{[`&.${Eu.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Ie({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),w1e=Et("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Eu.disabled}`]:t.disabled},{[`&.${Eu.selected}`]:t.selected}]})(({theme:e})=>Ie({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${Eu.disabled}`]:{color:e.palette.text.secondary},[`&.${Eu.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),S7=()=>{},_1e=ge.forwardRef(function(t,n){const{autoFocus:r,className:l,children:i,disabled:o,onClick:a,onKeyDown:s,value:u,tabIndex:c,onFocus:d=S7,onBlur:f=S7}=t,p=Kt(t,y1e),m=ge.useRef(null),g=Lr(m,n),b=ge.useContext(ss),v=Ie({},t,{wrapperVariant:b}),h=b1e(v);return ge.useEffect(()=>{r&&m.current.focus()},[r]),ke.jsx(x1e,{className:ma(h.root,l),ownerState:v,children:ke.jsx(w1e,Ie({ref:g,disabled:o,type:"button",tabIndex:o?-1:c,onClick:y=>a(y,u),onKeyDown:y=>s(y,u),onFocus:y=>d(y,u),onBlur:y=>f(y,u),className:h.yearButton,ownerState:v},p,{children:i}))})});function tW(e){return yn("MuiYearPicker",e)}const T1e=hn("MuiYearPicker",["root"]),k1e=e=>{const{classes:t}=e;return vn({root:["root"]},tW,t)};function S1e(e,t){const n=Br(),r=rg(),l=pn({props:e,name:t});return Ie({disablePast:!1,disableFuture:!1},l,{minDate:Ci(n,l.minDate,r.minDate),maxDate:Ci(n,l.maxDate,r.maxDate)})}const C1e=Et("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),nW=ge.forwardRef(function(t,n){const r=ag(),l=po(),i=Br(),o=S1e(t,"MuiYearPicker"),{autoFocus:a,className:s,date:u,disabled:c,disableFuture:d,disablePast:f,maxDate:p,minDate:m,onChange:g,readOnly:b,shouldDisableYear:v,disableHighlightToday:h,onYearFocus:y,hasFocus:w,onFocusedViewChange:_}=o,x=o,T=k1e(x),k=ge.useMemo(()=>u??i.startOfYear(r),[r,i,u]),S=ge.useMemo(()=>u!=null?i.getYear(u):h?null:i.getYear(r),[r,u,i,h]),C=ge.useContext(ss),M=ge.useRef(null),[O,D]=ge.useState(()=>S||i.getYear(r)),[P,E]=Zl({name:"YearPicker",state:"hasFocus",controlled:w,default:a}),I=ge.useCallback(W=>{E(W),_&&_(W)},[E,_]),A=ge.useCallback(W=>!!(f&&i.isBeforeYear(W,r)||d&&i.isAfterYear(W,r)||m&&i.isBeforeYear(W,m)||p&&i.isAfterYear(W,p)||v&&v(W)),[d,f,p,m,r,v,i]),F=(W,U,V="finish")=>{if(b)return;const te=i.setYear(k,U);g(te,V)},j=ge.useCallback(W=>{A(i.setYear(k,W))||(D(W),I(!0),y==null||y(W))},[A,i,k,I,y]);ge.useEffect(()=>{D(W=>S!==null&&W!==S?S:W)},[S]);const z=C==="desktop"?4:3,B=ge.useCallback((W,U)=>{switch(W.key){case"ArrowUp":j(U-z),W.preventDefault();break;case"ArrowDown":j(U+z),W.preventDefault();break;case"ArrowLeft":j(U+(l.direction==="ltr"?-1:1)),W.preventDefault();break;case"ArrowRight":j(U+(l.direction==="ltr"?1:-1)),W.preventDefault();break}},[j,l.direction,z]),N=ge.useCallback((W,U)=>{j(U)},[j]),R=ge.useCallback((W,U)=>{O===U&&I(!1)},[O,I]),q=i.getYear(r),Y=ge.useRef(null),L=Lr(n,Y);return ge.useEffect(()=>{if(a||Y.current===null)return;const W=Y.current.querySelector('[tabindex="0"]');if(!W)return;const U=W.offsetHeight,V=W.offsetTop,te=Y.current.clientHeight,ee=Y.current.scrollTop,H=V+U;U>te||V{const U=i.getYear(W),V=U===S;return ke.jsx(_1e,{selected:V,value:U,onClick:F,onKeyDown:B,autoFocus:P&&U===O,ref:V?M:void 0,disabled:c||A(W),tabIndex:U===O?0:-1,onFocus:N,onBlur:R,"aria-current":q===U?"date":void 0,children:i.format(W,"year")},i.format(W,"year"))})})}),XM=Et("div")({overflowX:"hidden",width:GM,maxHeight:Tye,display:"flex",flexDirection:"column",margin:"0 auto"}),M1e=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),rW=e=>yn("MuiCalendarPicker",e),P1e=hn("MuiCalendarPicker",["root","viewTransitionContainer"]),O1e=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"],A1e=e=>{const{classes:t}=e;return vn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},rW,t)};function D1e(e,t){const n=Br(),r=rg(),l=pn({props:e,name:t});return Ie({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:M1e,renderLoading:()=>ke.jsx("span",{children:"..."})},l,{minDate:Ci(n,l.minDate,r.minDate),maxDate:Ci(n,l.maxDate,r.maxDate)})}const E1e=Et(XM,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),R1e=Et(WB,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),aW=ge.forwardRef(function(t,n){const r=Br(),l=Kl(),i=D1e(t,"MuiCalendarPicker"),{autoFocus:o,onViewChange:a,date:s,disableFuture:u,disablePast:c,defaultCalendarMonth:d,onChange:f,onYearChange:p,onMonthChange:m,reduceAnimations:g,shouldDisableDate:b,shouldDisableMonth:v,shouldDisableYear:h,view:y,views:w,openTo:_,className:x,disabled:T,readOnly:k,minDate:S,maxDate:C,disableHighlightToday:M,focusedView:O,onFocusedViewChange:D}=i,P=Kt(i,O1e),{openView:E,setOpenView:I,openNext:A}=YM({view:y,views:w,openTo:_,onChange:f,onViewChange:a}),{calendarState:F,changeFocusedDay:j,changeMonth:z,handleChangeMonth:B,isDateDisabled:N,onMonthSwitchingAnimationEnd:R}=yye({date:s,defaultCalendarMonth:d,reduceAnimations:g,onMonthChange:m,minDate:S,maxDate:C,shouldDisableDate:b,disablePast:c,disableFuture:u}),q=ge.useCallback((ie,se)=>{const he=r.startOfMonth(ie),Se=r.endOfMonth(ie),Oe=N(ie)?Ih({utils:r,date:ie,minDate:r.isBefore(S,he)?he:S,maxDate:r.isAfter(C,Se)?Se:C,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Oe?(f(Oe,se),m==null||m(he)):(A(),z(he)),j(Oe,!0)},[j,u,c,N,C,S,f,m,z,A,r]),Y=ge.useCallback((ie,se)=>{const he=r.startOfYear(ie),Se=r.endOfYear(ie),Oe=N(ie)?Ih({utils:r,date:ie,minDate:r.isBefore(S,he)?he:S,maxDate:r.isAfter(C,Se)?Se:C,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Oe?(f(Oe,se),p==null||p(Oe)):(A(),z(he)),j(Oe,!0)},[j,u,c,N,C,S,f,p,A,r,z]),L=ge.useCallback((ie,se)=>f(s&&ie?r.mergeDateAndTime(ie,s):ie,se),[r,s,f]);ge.useEffect(()=>{s&&z(s)},[s]);const W=i,U=A1e(W),V={disablePast:c,disableFuture:u,maxDate:C,minDate:S},te=T&&s||S,ee=T&&s||C,H={disableHighlightToday:M,readOnly:k,disabled:T},Z=`${l}-grid-label`,[G,X]=Zl({name:"DayPicker",state:"focusedView",controlled:O,default:o?E:null}),Q=G!==null,re=yo(ie=>se=>{if(D){D(ie)(se);return}X(se?ie:he=>he===ie?null:he)}),ae=ge.useRef(E);return ge.useEffect(()=>{ae.current!==E&&(ae.current=E,re(E)(!0))},[E,re]),ke.jsxs(E1e,{ref:n,className:ma(U.root,x),ownerState:W,children:[ke.jsx(g1e,Ie({},P,{views:w,openView:E,currentMonth:F.currentMonth,onViewChange:I,onMonthChange:(ie,se)=>B({newMonth:ie,direction:se}),minDate:te,maxDate:ee,disabled:T,disablePast:c,disableFuture:u,reduceAnimations:g,labelId:Z})),ke.jsx(R1e,{reduceAnimations:g,className:U.viewTransitionContainer,transKey:E,ownerState:W,children:ke.jsxs("div",{children:[E==="year"&&ke.jsx(nW,Ie({},P,V,H,{autoFocus:o,date:s,onChange:Y,shouldDisableYear:h,hasFocus:Q,onFocusedViewChange:re("year")})),E==="month"&&ke.jsx(zB,Ie({},V,H,{autoFocus:o,hasFocus:Q,className:x,date:s,onChange:q,shouldDisableMonth:v,onFocusedViewChange:re("month")})),E==="day"&&ke.jsx(Hye,Ie({},P,F,V,H,{autoFocus:o,onMonthSwitchingAnimationEnd:R,onFocusedDayChange:j,reduceAnimations:g,selectedDays:[s],onSelectedDaysChange:L,shouldDisableDate:b,hasFocus:Q,onFocusedViewChange:re("day"),gridLabelId:Z}))]})})]})}),oW=e=>yn("MuiCalendarPickerSkeleton",e),L1e=hn("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),I1e=["className"],$1e=e=>{const{classes:t}=e;return vn({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},oW,t)},N1e=Et("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),F1e=Et("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${og}px 0`,display:"flex",justifyContent:"center"}),iW=Et(vde,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Ie({margin:`0 ${og}px`},e.day===0&&{visibility:"hidden"}));iW.propTypes={ownerState:le.shape({day:le.number.isRequired}).isRequired};const j1e=[[0,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,0,0,0]];function z1e(e){const t=pn({props:e,name:"MuiCalendarPickerSkeleton"}),{className:n}=t,r=Kt(t,I1e),l=$1e(r);return ke.jsx(N1e,Ie({className:ma(l.root,n)},r,{children:j1e.map((i,o)=>ke.jsx(F1e,{className:l.week,children:i.map((a,s)=>ke.jsx(iW,{variant:"circular",width:hm,height:hm,className:l.daySkeleton,ownerState:{day:a}},s))},o))}))}const Ud=220,Ws=36,mm={x:Ud/2,y:Ud/2},lW={x:mm.x,y:0},B1e=lW.x-mm.x,W1e=lW.y-mm.y,q1e=e=>e*(180/Math.PI),sW=(e,t,n)=>{const r=t-mm.x,l=n-mm.y,i=Math.atan2(B1e,W1e)-Math.atan2(r,l);let o=q1e(i);o=Math.round(o/e)*e,o%=360;const a=Math.floor(o/e)||0,s=r**2+l**2,u=Math.sqrt(s);return{value:a,distance:u}},U1e=(e,t,n=1)=>{const r=n*6;let{value:l}=sW(r,e,t);return l=l*n%60,l},H1e=(e,t,n)=>{const{value:r,distance:l}=sW(30,e,t);let i=r||12;return n?i%=12:l{const{classes:t}=e;return vn({root:["root"],thumb:["thumb"]},V1e,t)},K1e=Et("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Ie({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),Z1e=Et("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Ie({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ws/2}px)`,border:`${(Ws-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function Q1e(e){const t=pn({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:l,value:i}=t,o=Kt(t,Y1e),a=ge.useRef(l);ge.useEffect(()=>{a.current=l},[l]);const s=Ie({},t,{shouldAnimate:a.current!==l}),u=X1e(s),c=()=>{let f=360/(l==="hours"?12:60)*i;return l==="hours"&&i>12&&(f-=360),{height:Math.round((r?.26:.4)*Ud),transform:`rotateZ(${f}deg)`}};return ke.jsx(K1e,Ie({style:c(),className:ma(n,u.root),ownerState:s},o,{children:ke.jsx(Z1e,{ownerState:s,className:u.thumb})}))}function J1e(e){return yn("MuiClock",e)}const ebe=hn("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),tbe=e=>{const{classes:t}=e;return vn({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},J1e,t)},nbe=Et("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),rbe=Et("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),abe=Et("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),obe=Et("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Ie({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),ibe=Et("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),lbe=Et(mi,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Ie({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},t.meridiemMode==="am"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),sbe=Et(mi,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Ie({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function ube(e){const t=pn({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:l,children:i,date:o,getClockLabelText:a,handleMeridiemChange:s,isTimeDisabled:u,meridiemMode:c,minutesStep:d=1,onChange:f,selectedId:p,type:m,value:g,disabled:b,readOnly:v,className:h}=t,y=t,w=Br(),_=ge.useContext(ss),x=ge.useRef(!1),T=tbe(y),k=u(g,m),S=!n&&m==="hours"&&(g<1||g>12),C=(z,B)=>{b||v||u(z,m)||f(z,B)},M=(z,B)=>{let{offsetX:N,offsetY:R}=z;if(N===void 0){const Y=z.target.getBoundingClientRect();N=z.changedTouches[0].clientX-Y.left,R=z.changedTouches[0].clientY-Y.top}const q=m==="seconds"||m==="minutes"?U1e(N,R,d):H1e(N,R,!!n);C(q,B)},O=z=>{x.current=!0,M(z,"shallow")},D=z=>{x.current&&(M(z,"finish"),x.current=!1)},P=z=>{z.buttons>0&&M(z.nativeEvent,"shallow")},E=z=>{x.current&&(x.current=!1),M(z.nativeEvent,"finish")},I=ge.useMemo(()=>m==="hours"?!0:g%5===0,[m,g]),A=m==="minutes"?d:1,F=ge.useRef(null);no(()=>{l&&F.current.focus()},[l]);const j=z=>{if(!x.current)switch(z.key){case"Home":C(0,"partial"),z.preventDefault();break;case"End":C(m==="minutes"?59:23,"partial"),z.preventDefault();break;case"ArrowUp":C(g+A,"partial"),z.preventDefault();break;case"ArrowDown":C(g-A,"partial"),z.preventDefault();break}};return ke.jsxs(nbe,{className:ma(h,T.root),children:[ke.jsxs(rbe,{className:T.clock,children:[ke.jsx(obe,{onTouchMove:O,onTouchEnd:D,onMouseUp:E,onMouseMove:P,ownerState:{disabled:b},className:T.squareMask}),!k&&ke.jsxs(ge.Fragment,{children:[ke.jsx(ibe,{className:T.pin}),o&&ke.jsx(Q1e,{type:m,value:g,isInner:S,hasSelected:I})]}),ke.jsx(abe,{"aria-activedescendant":p,"aria-label":a(m,o,w),ref:F,role:"listbox",onKeyDown:j,tabIndex:0,className:T.wrapper,children:i})]}),n&&(_==="desktop"||r)&&ke.jsxs(ge.Fragment,{children:[ke.jsx(lbe,{onClick:v?void 0:()=>s("am"),disabled:b||c===null,ownerState:y,className:T.amButton,children:ke.jsx(dr,{variant:"caption",children:"AM"})}),ke.jsx(sbe,{disabled:b||c===null,onClick:v?void 0:()=>s("pm"),ownerState:y,className:T.pmButton,children:ke.jsx(dr,{variant:"caption",children:"PM"})})]})]})}function cbe(e){return yn("MuiClockNumber",e)}const mh=hn("MuiClockNumber",["root","selected","disabled"]),dbe=["className","disabled","index","inner","label","selected"],fbe=e=>{const{classes:t,selected:n,disabled:r}=e;return vn({root:["root",n&&"selected",r&&"disabled"]},cbe,t)},pbe=Et("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${mh.disabled}`]:t.disabled},{[`&.${mh.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Ie({height:Ws,width:Ws,position:"absolute",left:`calc((100% - ${Ws}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${mh.selected}`]:{color:e.palette.primary.contrastText},[`&.${mh.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Ie({},e.typography.body2,{color:e.palette.text.secondary})));function uW(e){const t=pn({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:l,inner:i,label:o,selected:a}=t,s=Kt(t,dbe),u=t,c=fbe(u),d=l%12/12*Math.PI*2-Math.PI/2,f=(Ud-Ws-2)/2*(i?.65:1),p=Math.round(Math.cos(d)*f),m=Math.round(Math.sin(d)*f);return ke.jsx(pbe,Ie({className:ma(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":a?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${m+(Ud-Ws)/2}px`},ownerState:u},s,{children:o}))}const hbe=({ampm:e,date:t,getClockNumberText:n,isDisabled:r,selectedId:l,utils:i})=>{const o=t?i.getHours(t):null,a=[],s=e?1:0,u=e?12:23,c=d=>o===null?!1:e?d===12?o===12||o===0:o===d||o-12===d:o===d;for(let d=s;d<=u;d+=1){let f=d.toString();d===0&&(f="00");const p=!e&&(d===0||d>12);f=i.formatNumber(f);const m=c(d);a.push(ke.jsx(uW,{id:m?l:void 0,index:d,inner:p,selected:m,disabled:r(d),label:f,"aria-label":n(f)},d))}return a},C7=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:l})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([o,a],s)=>{const u=o===t;return ke.jsx(uW,{label:a,id:u?l:void 0,index:s+1,inner:!1,disabled:n(o),selected:u,"aria-label":r(a)},o)})};function cW(e){return yn("MuiClockPicker",e)}const mbe=hn("MuiClockPicker",["root","arrowSwitcher"]),gbe=e=>{const{classes:t}=e;return vn({root:["root"],arrowSwitcher:["arrowSwitcher"]},cW,t)},vbe=Et(XM,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),ybe=Et(ZB,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),bbe=eW(),dW=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiClockPicker"}),{ampm:l=!1,ampmInClock:i=!1,autoFocus:o,components:a,componentsProps:s,date:u,disableIgnoringDatePartForTimeValidation:c,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:m,leftArrowButtonText:g,maxTime:b,minTime:v,minutesStep:h=1,rightArrowButtonText:y,shouldDisableTime:w,showViewSwitcher:_,onChange:x,view:T,views:k=["hours","minutes"],openTo:S,onViewChange:C,className:M,disabled:O,readOnly:D}=r;bbe({leftArrowButtonText:g,rightArrowButtonText:y,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:m});const P=Xi(),E=g??P.openPreviousView,I=y??P.openNextView,A=d??P.clockLabelText,F=f??P.hoursClockNumberText,j=p??P.minutesClockNumberText,z=m??P.secondsClockNumberText,{openView:B,setOpenView:N,nextView:R,previousView:q,handleChangeAndOpenNext:Y}=YM({view:T,views:k,openTo:S,onViewChange:C,onChange:x}),L=ag(),W=Br(),U=ge.useMemo(()=>u||W.setSeconds(W.setMinutes(W.setHours(L,0),0),0),[u,L,W]),{meridiemMode:V,handleMeridiemChange:te}=JB(U,l,Y),ee=ge.useCallback((Q,re)=>{const ae=QB(c,W),ie=({start:he,end:Se})=>!(v&&ae(v,Se)||b&&ae(he,b)),se=(he,Se=1)=>he%Se!==0?!1:w?!w(he,re):!0;switch(re){case"hours":{const he=ck(Q,V,l),Se=W.setHours(U,he),Oe=W.setSeconds(W.setMinutes(Se,0),0),Pe=W.setSeconds(W.setMinutes(Se,59),59);return!ie({start:Oe,end:Pe})||!se(he)}case"minutes":{const he=W.setMinutes(U,Q),Se=W.setSeconds(he,0),Oe=W.setSeconds(he,59);return!ie({start:Se,end:Oe})||!se(Q,h)}case"seconds":{const he=W.setSeconds(U,Q);return!ie({start:he,end:he})||!se(Q)}default:throw new Error("not supported")}},[l,U,c,b,V,v,h,w,W]),H=Kl(),Z=ge.useMemo(()=>{switch(B){case"hours":{const Q=(re,ae)=>{const ie=ck(re,V,l);Y(W.setHours(U,ie),ae)};return{onChange:Q,value:W.getHours(U),children:hbe({date:u,utils:W,ampm:l,onChange:Q,getClockNumberText:F,isDisabled:re=>O||ee(re,"hours"),selectedId:H})}}case"minutes":{const Q=W.getMinutes(U),re=(ae,ie)=>{Y(W.setMinutes(U,ae),ie)};return{value:Q,onChange:re,children:C7({utils:W,value:Q,onChange:re,getClockNumberText:j,isDisabled:ae=>O||ee(ae,"minutes"),selectedId:H})}}case"seconds":{const Q=W.getSeconds(U),re=(ae,ie)=>{Y(W.setSeconds(U,ae),ie)};return{value:Q,onChange:re,children:C7({utils:W,value:Q,onChange:re,getClockNumberText:z,isDisabled:ae=>O||ee(ae,"seconds"),selectedId:H})}}default:throw new Error("You must provide the type for ClockView")}},[B,W,u,l,F,j,z,V,Y,U,ee,H,O]),G=r,X=gbe(G);return ke.jsxs(vbe,{ref:n,className:ma(X.root,M),ownerState:G,children:[_&&ke.jsx(ybe,{className:X.arrowSwitcher,leftArrowButtonText:E,rightArrowButtonText:I,components:a,componentsProps:s,onLeftClick:()=>N(q),onRightClick:()=>N(R),isLeftDisabled:!q,isRightDisabled:!R,ownerState:G}),ke.jsx(ube,Ie({autoFocus:o,date:u,ampmInClock:i,type:B,ampm:l,getClockLabelText:A,minutesStep:h,isTimeDisabled:ee,meridiemMode:V,handleMeridiemChange:te,selectedId:H,disabled:O,readOnly:D},Z))]})}),fW=e=>e.length===1&&e[0]==="year",pW=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,xbe=(e,t)=>fW(e)?{inputFormat:t.formats.year}:pW(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function KM(e,t){var n;const r=Br(),l=rg(),i=pn({props:e,name:t}),o=(n=i.views)!=null?n:["year","day"];return Ie({openTo:"day",disableFuture:!1,disablePast:!1},xbe(o,r),i,{views:o,minDate:Ci(r,i.minDate,l.minDate),maxDate:Ci(r,i.maxDate,l.maxDate)})}const ZM={emptyValue:null,getTodayValue:e=>e.date(),parseInput:qM,areValuesEqual:(e,t,n)=>e.isEqual(t,n)};function hW(e){return yn("MuiPickersToolbar",e)}const QM=hn("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),wbe=e=>{const{classes:t,isLandscape:n}=e;return vn({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},hW,t)},_be=Et("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Ie({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),Tbe=Et(cr,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Ie({flex:1},!e.isLandscape&&{alignItems:"center"})),kbe=Et(mi,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${QM.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),Sbe=e=>e==="clock"?ke.jsx(KB,{color:"inherit"}):ke.jsx(XB,{color:"inherit"}),JM=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersToolbar"}),{children:l,className:i,getMobileKeyboardInputViewButtonText:o,isLandscape:a,isMobileKeyboardViewOpen:s,landscapeDirection:u="column",toggleMobileKeyboardView:c,toolbarTitle:d,viewType:f="calendar"}=r,p=r,m=Xi(),g=wbe(p);return ke.jsxs(_be,{ref:n,className:ma(g.root,i),ownerState:p,children:[ke.jsx(dr,{color:"text.secondary",variant:"overline",children:d}),ke.jsxs(Tbe,{container:!0,justifyContent:"space-between",className:g.content,ownerState:p,direction:a?u:"row",alignItems:a?"flex-start":"flex-end",children:[l,ke.jsx(kbe,{onClick:c,className:g.penIconButton,ownerState:p,color:"inherit","aria-label":o?o(s,f):m.inputModeToggleButtonAriaLabel(s,f),children:s?Sbe(f):ke.jsx(Kye,{color:"inherit"})})]})]})});function Cbe(e){return yn("MuiDatePickerToolbar",e)}const Mbe=hn("MuiDatePickerToolbar",["root","title"]),Pbe=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],Obe=e=>{const{classes:t}=e;return vn({root:["root"],title:["title"]},Cbe,t)},Abe=Et(JM,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dbe=Et(dr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Ie({},e.isLandscape&&{margin:"auto 16px auto auto"})),e5=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=r,f=Kt(r,Pbe),p=Br(),m=Xi(),g=Obe(r),b=c??m.datePickerDefaultToolbarTitle,v=ge.useMemo(()=>l?s?p.formatByString(l,s):fW(d)?p.format(l,"year"):pW(d)?p.format(l,"month"):/en/.test(p.getCurrentLocaleCode())?p.format(l,"normalDateWithWeekday"):p.format(l,"normalDate"):u,[l,s,u,p,d]),h=r;return ke.jsx(Abe,Ie({ref:n,toolbarTitle:b,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,isLandscape:i,className:g.root},f,{children:ke.jsx(Dbe,{variant:"h4",align:i?"left":"center",ownerState:h,className:g.title,children:v})}))}),Ebe=["onAccept","onClear","onCancel","onSetToday","actions"],t5=e=>{const{onAccept:t,onClear:n,onCancel:r,onSetToday:l,actions:i}=e,o=Kt(e,Ebe),a=ge.useContext(ss),s=Xi(),u=typeof i=="function"?i(a):i;if(u==null||u.length===0)return null;const c=u==null?void 0:u.map(d=>{switch(d){case"clear":return ke.jsx(ji,{onClick:n,children:s.clearButtonLabel},d);case"cancel":return ke.jsx(ji,{onClick:r,children:s.cancelButtonLabel},d);case"accept":return ke.jsx(ji,{onClick:t,children:s.okButtonLabel},d);case"today":return ke.jsx(ji,{onClick:l,children:s.todayButtonLabel},d);default:return null}});return ke.jsx(ase,Ie({},o,{children:c}))};function Rbe(e){return yn("MuiPickersPopper",e)}hn("MuiPickersPopper",["root","paper"]);const Lbe=["onClick","onTouchStart"],Ibe=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"]},Rbe,t)},$be=Et(bM,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Nbe=Et(nu,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Ie({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function Fbe(e,t){return t.documentElement.clientWidth{if(!e)return;function s(){i.current=!0}return document.addEventListener("mousedown",s,!0),document.addEventListener("touchstart",s,!0),()=>{document.removeEventListener("mousedown",s,!0),document.removeEventListener("touchstart",s,!0),i.current=!1}},[e]);const o=yo(s=>{if(!i.current)return;const u=r.current;r.current=!1;const c=Aa(l.current);if(!l.current||"clientX"in s&&Fbe(s,c))return;if(n.current){n.current=!1;return}let d;s.composedPath?d=s.composedPath().indexOf(l.current)>-1:d=!c.documentElement.contains(s.target)||l.current.contains(s.target),!d&&!u&&t(s)}),a=()=>{r.current=!0};return ge.useEffect(()=>{if(e){const s=Aa(l.current),u=()=>{n.current=!0};return s.addEventListener("touchstart",o),s.addEventListener("touchmove",u),()=>{s.removeEventListener("touchstart",o),s.removeEventListener("touchmove",u)}}},[e,o]),ge.useEffect(()=>{if(e){const s=Aa(l.current);return s.addEventListener("click",o),()=>{s.removeEventListener("click",o),r.current=!1}}},[e,o]),[l,a,a]}function zbe(e){var t;const n=pn({props:e,name:"MuiPickersPopper"}),{anchorEl:r,children:l,containerRef:i=null,onBlur:o,onClose:a,onClear:s,onAccept:u,onCancel:c,onSetToday:d,open:f,PopperProps:p,role:m,TransitionComponent:g=dm,TrapFocusProps:b,PaperProps:v={},components:h,componentsProps:y}=n;ge.useEffect(()=>{function j(z){f&&(z.key==="Escape"||z.key==="Esc")&&a()}return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[a,f]);const w=ge.useRef(null);ge.useEffect(()=>{m!=="tooltip"&&(f?w.current=$B(document):w.current&&w.current instanceof HTMLElement&&setTimeout(()=>{w.current instanceof HTMLElement&&w.current.focus()}))},[f,m]);const[_,x,T]=jbe(f,o??a),k=ge.useRef(null),S=Lr(k,i),C=Lr(S,_),M=n,O=Ibe(M),{onClick:D,onTouchStart:P}=v,E=Kt(v,Lbe),I=j=>{j.key==="Escape"&&(j.stopPropagation(),a())},A=(t=h==null?void 0:h.ActionBar)!=null?t:t5,F=(h==null?void 0:h.PaperContent)||ge.Fragment;return ke.jsx($be,Ie({transition:!0,role:m,open:f,anchorEl:r,onKeyDown:I,className:O.root},p,{children:({TransitionProps:j,placement:z})=>ke.jsx(Ej,Ie({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},b,{children:ke.jsx(g,Ie({},j,{children:ke.jsx(Nbe,Ie({tabIndex:-1,elevation:8,ref:C,onClick:B=>{x(B),D&&D(B)},onTouchStart:B=>{T(B),P&&P(B)},ownerState:Ie({},M,{placement:z}),className:O.paper},E,{children:ke.jsxs(F,Ie({},y==null?void 0:y.paperContent,{children:[l,ke.jsx(A,Ie({onAccept:u,onClear:s,onCancel:c,onSetToday:d,actions:[]},y==null?void 0:y.actionBar))]}))}))}))}))}))}function n5(e){const{children:t,DateInputProps:n,KeyboardDateInputComponent:r,onClear:l,onDismiss:i,onCancel:o,onAccept:a,onSetToday:s,open:u,PopperProps:c,PaperProps:d,TransitionComponent:f,components:p,componentsProps:m}=e,g=ge.useRef(null),b=Lr(n.inputRef,g);return ke.jsxs(ss.Provider,{value:"desktop",children:[ke.jsx(r,Ie({},n,{inputRef:b})),ke.jsx(zbe,{role:"dialog",open:u,anchorEl:g.current,TransitionComponent:f,PopperProps:c,PaperProps:d,onClose:i,onCancel:o,onClear:l,onAccept:a,onSetToday:s,components:p,componentsProps:m,children:t})]})}const Bbe=e=>{const[,t]=ge.useReducer(s=>s+1,0),n=ge.useRef(null),{replace:r,append:l}=e,i=r?r(e.format(e.value)):e.format(e.value),o=ge.useRef(!1),a=s=>{const u=s.target.value;n.current=[u,s.target,u.length>i.length,o.current,i===e.format(u)],t()};return ge.useLayoutEffect(()=>{if(n.current==null)return;let[s,u,c,d,f]=n.current;n.current=null;const p=d&&f,g=s.slice(u.selectionStart).search(e.accept||/\d/g),b=g!==-1?g:0,v=x=>(x.match(e.accept||/\d/g)||[]).join(""),h=v(s.substr(0,u.selectionStart)),y=x=>{let T=0,k=0;for(let S=0;S!==h.length;++S){let C=x.indexOf(h[S],T)+1,M=v(x).indexOf(h[S],k)+1;M-k>1&&(C=T,M=k),k=Math.max(M,k),T=Math.max(T,C)}return T};if(e.mask===!0&&c&&!f){let x=y(s);const T=v(s.substr(x))[0];x=s.indexOf(T,x),s=`${s.substr(0,x)}${s.substr(x+1)}`}let w=e.format(s);l!=null&&u.selectionStart===s.length&&!f&&(c?w=l(w):v(w.slice(-1))===""&&(w=w.slice(0,-1)));const _=r?r(w):w;return i===_?t():e.onChange(_),()=>{let x=y(w);if(e.mask!=null&&(c||d&&!p))for(;w[x]&&v(w[x])==="";)x+=1;u.selectionStart=u.selectionEnd=x+(p?1+b:0)}}),ge.useEffect(()=>{const s=c=>{c.code==="Delete"&&(o.current=!0)},u=c=>{c.code==="Delete"&&(o.current=!1)};return document.addEventListener("keydown",s),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",s),document.removeEventListener("keyup",u)}},[]),{value:n.current!=null?n.current[0]:i,onChange:a}},dk=(e,t,n)=>{const r=e.date(t);return t===null?"":e.isValid(r)?e.formatByString(r,n):""},uy="_",mW="2019-11-21T22:30:00.000",gW="2019-01-01T09:00:00.000";function Wbe(e,t,n,r){if(e)return e;const i=r.formatByString(r.date(gW),t).replace(n,uy),o=r.formatByString(r.date(mW),t).replace(n,"_");return i===o?i:""}function qbe(e,t,n,r){if(!e)return!1;const i=r.formatByString(r.date(gW),t).replace(n,uy),o=r.formatByString(r.date(mW),t).replace(n,"_"),a=o===i&&e===o;return!a&&r.lib,a}const Ube=(e,t)=>n=>{let r=0;return n.split("").map((l,i)=>{if(t.lastIndex=0,r>e.length-1)return"";const o=e[r],a=e[r+1],s=t.test(l)?l:"",u=o===uy?s:o+s;return r+=u.length,i===n.length-1&&a&&a!==uy?u?u+a:"":u}).join("")},Hbe=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:n,ignoreInvalidInputs:r,inputFormat:l,inputProps:i,label:o,mask:a,onChange:s,rawValue:u,readOnly:c,rifmFormatter:d,TextFieldProps:f,validationError:p})=>{const m=Br(),g=m.getFormatHelperText(l),{shouldUseMaskedInput:b,maskToUse:v}=ge.useMemo(()=>{if(n)return{shouldUseMaskedInput:!1,maskToUse:""};const P=Wbe(a,l,e,m);return{shouldUseMaskedInput:qbe(P,l,e,m),maskToUse:P}},[e,n,l,a,m]),h=ge.useMemo(()=>b&&v?Ube(v,e):P=>P,[e,v,b]),y=u===null?null:m.date(u),[w,_]=ge.useState(y),[x,T]=ge.useState(dk(m,u,l)),k=ge.useRef(),S=ge.useRef(m.locale),C=ge.useRef(l);ge.useEffect(()=>{const P=u!==k.current,E=m.locale!==S.current,I=l!==C.current;if(k.current=u,S.current=m.locale,C.current=l,!P&&!E&&!I)return;const A=u===null?null:m.date(u),F=u===null||m.isValid(A);let j=w===null&&A===null;if(w!==null&&A!==null){const B=m.isEqual(w,A);if(B)j=!0;else{const N=Math.abs(m.getDiff(w,A));j=N===0?B:N<1e3}}if(!E&&!I&&(!F||j))return;const z=dk(m,u,l);_(A),T(z)},[m,u,l,w]);const M=P=>{const E=P===""||P===a?"":P;T(E);const I=E===null?null:m.parse(E,l);r&&!m.isValid(I)||(_(I),s(I,E||void 0))},O=Bbe({value:x,onChange:M,format:d||h});return Ie({label:o,disabled:t,error:p,inputProps:Ie({},b?O:{value:x,onChange:P=>{M(P.currentTarget.value)}},{disabled:t,placeholder:g,readOnly:c,type:b?"tel":"text"},i)},f)},Vbe=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],bb=ge.forwardRef(function(t,n){const{className:r,components:l={},disableOpenPicker:i,getOpenDialogAriaText:o,InputAdornmentProps:a,InputProps:s,inputRef:u,openPicker:c,OpenPickerButtonProps:d,renderInput:f}=t,p=Kt(t,Vbe),m=Xi(),g=o??m.openDatePickerDialogue,b=Br(),v=Hbe(p),h=(a==null?void 0:a.position)||"end",y=l.OpenPickerIcon||XB;return f(Ie({ref:n,inputRef:u,className:r},v,{InputProps:Ie({},s,{[`${h}Adornment`]:i?void 0:ke.jsx(sz,Ie({position:h},a,{children:ke.jsx(mi,Ie({edge:h,disabled:p.disabled||p.readOnly,"aria-label":g(p.rawValue,b)},d,{onClick:c,children:ke.jsx(y,{})}))}))})}))});function M7(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Gbe=(e,t)=>{const[n,r]=ge.useState(M7);return no(()=>{const i=()=>{r(M7())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),Su(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Ybe=({autoFocus:e,openView:t})=>{const[n,r]=ge.useState(e?t:null),l=ge.useCallback(i=>o=>{r(o?i:a=>i===a?null:a)},[]);return{focusedView:n,setFocusedView:l}};function Xbe(e){return yn("MuiCalendarOrClockPicker",e)}hn("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const Kbe=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],Zbe=e=>{const{classes:t}=e;return vn({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},Xbe,t)},Qbe=Et("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),Jbe=Et("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Ie({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),exe={fullWidth:!0},P7=e=>e==="year"||e==="month"||e==="day",O7=e=>e==="hours"||e==="minutes"||e==="seconds";function us(e){var t,n;const r=pn({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:l,parsedValue:i,DateInputProps:o,isMobileKeyboardViewOpen:a,onDateChange:s,onViewChange:u,openTo:c,orientation:d,showToolbar:f,toggleMobileKeyboardView:p,ToolbarComponent:m=()=>null,toolbarFormat:g,toolbarPlaceholder:b,toolbarTitle:v,views:h,dateRangeIcon:y,timeIcon:w,hideTabs:_}=r,x=Kt(r,Kbe),T=(t=x.components)==null?void 0:t.Tabs,k=Gbe(h,d),S=ge.useContext(ss),C=Zbe(r),M=f??S!=="desktop",O=!_&&typeof window<"u"&&window.innerHeight>667,D=ge.useCallback((z,B)=>{s(z,S,B)},[s,S]),P=ge.useCallback(z=>{a&&p(),u&&u(z)},[a,u,p]),{openView:E,setOpenView:I,handleChangeAndOpenNext:A}=YM({view:void 0,views:h,openTo:c,onChange:D,onViewChange:P}),{focusedView:F,setFocusedView:j}=Ybe({autoFocus:l,openView:E});return ke.jsxs(Jbe,{ownerState:{isLandscape:k},className:C.root,children:[M&&ke.jsx(m,Ie({},x,{views:h,isLandscape:k,parsedValue:i,onChange:D,setOpenView:I,openView:E,toolbarTitle:v,toolbarFormat:g,toolbarPlaceholder:b,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:p})),O&&!!T&&ke.jsx(T,Ie({dateRangeIcon:y,timeIcon:w,view:E,onChange:I},(n=x.componentsProps)==null?void 0:n.tabs)),ke.jsx(XM,{children:a?ke.jsx(Qbe,{className:C.mobileKeyboardInputView,children:ke.jsx(bb,Ie({},o,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:exe}))}):ke.jsxs(ge.Fragment,{children:[P7(E)&&ke.jsx(aW,Ie({autoFocus:l,date:i,onViewChange:I,onChange:A,view:E,views:h.filter(P7),focusedView:F,onFocusedViewChange:j},x)),O7(E)&&ke.jsx(dW,Ie({},x,{autoFocus:l,date:i,view:E,views:h.filter(O7),onChange:A,onViewChange:I,showViewSwitcher:S==="desktop"}))]})})]})}const txe=({open:e,onOpen:t,onClose:n})=>{const r=ge.useRef(typeof e=="boolean").current,[l,i]=ge.useState(!1);ge.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const o=ge.useCallback(a=>{r||i(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:l,setIsOpen:o}},cs=(e,t)=>{const{onAccept:n,onChange:r,value:l,closeOnSelect:i}=e,o=Br(),{isOpen:a,setIsOpen:s}=txe(e),u=ge.useMemo(()=>t.parseInput(o,l),[t,o,l]),[c,d]=ge.useState(u),[f,p]=ge.useState(()=>({committed:u,draft:u,resetFallback:u})),m=ge.useCallback(x=>{p(T=>{switch(x.action){case"setAll":case"acceptAndClose":return{draft:x.value,committed:x.value,resetFallback:x.value};case"setCommitted":return Ie({},T,{draft:x.value,committed:x.value});case"setDraft":return Ie({},T,{draft:x.value});default:return T}}),(x.forceOnChangeCall||!x.skipOnChangeCall&&!t.areValuesEqual(o,f.committed,x.value))&&r(x.value),x.action==="acceptAndClose"&&(s(!1),n&&!t.areValuesEqual(o,f.resetFallback,x.value)&&n(x.value))},[n,r,s,f,o,t]);ge.useEffect(()=>{o.isValid(u)&&d(u)},[o,u]),ge.useEffect(()=>{a&&m({action:"setAll",value:u,skipOnChangeCall:!0})},[a]),t.areValuesEqual(o,f.committed,u)||m({action:"setCommitted",value:u,skipOnChangeCall:!0});const g=ge.useMemo(()=>({open:a,onClear:()=>{m({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,t.emptyValue)})},onAccept:()=>{m({value:f.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,u)})},onDismiss:()=>{m({value:f.committed,action:"acceptAndClose"})},onCancel:()=>{m({value:f.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{m({value:t.getTodayValue(o),action:"acceptAndClose"})}}),[m,a,o,f,t,l,u]),[b,v]=ge.useState(!1),h=ge.useMemo(()=>({parsedValue:f.draft,isMobileKeyboardViewOpen:b,toggleMobileKeyboardView:()=>v(!b),onDateChange:(x,T,k="partial")=>{switch(k){case"shallow":return m({action:"setDraft",value:x,skipOnChangeCall:!0});case"partial":return m({action:"setDraft",value:x});case"finish":return m(i??T==="desktop"?{value:x,action:"acceptAndClose"}:{value:x,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[m,b,f.draft,i]),y=ge.useCallback((x,T)=>{const k=t.valueReducer?t.valueReducer(o,c,x):x;r(k,T)},[r,t,c,o]),w=ge.useMemo(()=>({onChange:y,open:a,rawValue:l,openPicker:()=>s(!0)}),[y,a,l,s]),_={pickerProps:h,inputProps:w,wrapperProps:g};return ge.useDebugValue(_,()=>({MuiPickerState:{dateState:f,other:_}})),_},nxe=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],vW=ge.forwardRef(function(t,n){const r=KM(t,"MuiDesktopDatePicker"),l=VM(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,ZM),{PopperProps:s,PaperProps:u,ToolbarComponent:c=e5,TransitionComponent:d,components:f,componentsProps:p}=r,m=Kt(r,nxe),g=Ie({},o,m,{components:f,componentsProps:p,ref:n,validationError:l});return ke.jsx(n5,Ie({},a,{DateInputProps:g,KeyboardDateInputComponent:bb,PopperProps:s,PaperProps:u,TransitionComponent:d,components:f,componentsProps:p,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},m))}))}),rxe=Et(Jle)({[`& .${Eh.container}`]:{outline:0},[`& .${Eh.paper}`]:{outline:0,minWidth:GM}}),axe=Et(cse)({"&:first-of-type":{padding:0}}),oxe=e=>{var t;const{children:n,DialogProps:r={},onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:c,componentsProps:d}=e,f=(t=c==null?void 0:c.ActionBar)!=null?t:t5;return ke.jsxs(rxe,Ie({open:u,onClose:o},r,{children:[ke.jsx(axe,{children:n}),ke.jsx(f,Ie({onAccept:l,onClear:i,onCancel:a,onSetToday:s,actions:["cancel","accept"]},d==null?void 0:d.actionBar))]}))},ixe=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function r5(e){const{children:t,DateInputProps:n,DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,PureDateInputComponent:c,components:d,componentsProps:f}=e,p=Kt(e,ixe);return ke.jsxs(ss.Provider,{value:"mobile",children:[ke.jsx(c,Ie({components:d},p,n)),ke.jsx(oxe,{DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:d,componentsProps:f,children:t})]})}const a5=ge.forwardRef(function(t,n){const{disabled:r,getOpenDialogAriaText:l,inputFormat:i,InputProps:o,inputRef:a,label:s,openPicker:u,rawValue:c,renderInput:d,TextFieldProps:f={},validationError:p,className:m}=t,g=Xi(),b=l??g.openDatePickerDialogue,v=Br(),h=ge.useMemo(()=>Ie({},o,{readOnly:!0}),[o]),y=dk(v,c,i),w=yo(_=>{_.stopPropagation(),u()});return d(Ie({label:s,disabled:r,ref:n,inputRef:a,error:p,InputProps:h,className:m},!t.readOnly&&!t.disabled&&{onClick:w},{inputProps:Ie({disabled:r,readOnly:!0,"aria-readonly":!0,"aria-label":b(c,v),value:y},!t.readOnly&&{onClick:w},{onKeyDown:IB(u)})},f))}),lxe=["ToolbarComponent","value","onChange","components","componentsProps"],yW=ge.forwardRef(function(t,n){const r=KM(t,"MuiMobileDatePicker"),l=VM(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,ZM),{ToolbarComponent:s=e5,components:u,componentsProps:c}=r,d=Kt(r,lxe),f=Ie({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return ke.jsx(r5,Ie({},d,a,{DateInputProps:f,PureDateInputComponent:a5,components:u,componentsProps:c,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))}),sxe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],uxe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=Kt(r,sxe);return wM(l,{defaultMatches:!0})?ke.jsx(vW,Ie({ref:n,PopperProps:o,TransitionComponent:a},s)):ke.jsx(yW,Ie({ref:n,DialogProps:i},s))});function o5(e,t){var n,r,l,i,o;const a=pn({props:e,name:t}),s=Br(),u=rg(),c=(n=a.ampm)!=null?n:s.is12HourCycleInCurrentLocale();if(a.orientation!=null&&a.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Ie({ampm:c,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:c?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:c?s.formats.keyboardDateTime12h:s.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(a.minDateTime||a.maxDateTime),disablePast:!1,disableFuture:!1},a,{minDate:Ci(s,(r=a.minDateTime)!=null?r:a.minDate,u.minDate),maxDate:Ci(s,(l=a.maxDateTime)!=null?l:a.maxDate,u.maxDate),minTime:(i=a.minDateTime)!=null?i:a.minTime,maxTime:(o=a.maxDateTime)!=null?o:a.maxTime})}const i5={emptyValue:null,getTodayValue:e=>e.date(),parseInput:qM,areValuesEqual:(e,t,n)=>e.isEqual(t,n)},cxe=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function dxe(e){return yn("PrivatePickersToolbarText",e)}const A7=hn("PrivatePickersToolbarText",["root","selected"]),fxe=["className","selected","value"],pxe=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},dxe,t)},hxe=Et(dr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${A7.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${A7.selected}`]:{color:e.palette.text.primary}})),l5=ge.forwardRef(function(t,n){const{className:r,value:l}=t,i=Kt(t,fxe),o=pxe(t);return ke.jsx(hxe,Ie({ref:n,className:ma(r,o.root),component:"span"},i,{children:l}))}),mxe=["align","className","selected","typographyClassName","value","variant"],gxe=e=>{const{classes:t}=e;return vn({root:["root"]},hW,t)},vxe=Et(ji,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),dl=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersToolbarButton"}),{align:l,className:i,selected:o,typographyClassName:a,value:s,variant:u}=r,c=Kt(r,mxe),d=gxe(r);return ke.jsx(vxe,Ie({variant:"text",ref:n,className:ma(i,d.root)},c,{children:ke.jsx(l5,{align:l,className:a,variant:u,value:s,selected:o})}))});function yxe(e){return yn("MuiDateTimePickerToolbar",e)}const bxe=hn("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),xxe=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],wxe=e=>{const{classes:t}=e;return vn({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},yxe,t)},_xe=Et(JM,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${QM.penIconButton}`]:Ie({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),Txe=Et("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),kxe=Et("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),D7=Et(l5,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function s5(e){const t=pn({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,parsedValue:r,isMobileKeyboardViewOpen:l,openView:i,setOpenView:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=t,f=Kt(t,xxe),p=t,m=Br(),g=Xi(),b=wxe(p),v=c??g.dateTimePickerDefaultToolbarTitle,h=w=>n?m.format(w,"hours12h"):m.format(w,"hours24h"),y=ge.useMemo(()=>r?s?m.formatByString(r,s):m.format(r,"shortDate"):u,[r,s,u,m]);return ke.jsxs(_xe,Ie({toolbarTitle:v,isMobileKeyboardViewOpen:l,toggleMobileKeyboardView:a,className:b.root,viewType:cxe(i)},f,{isLandscape:!1,ownerState:p,children:[ke.jsxs(Txe,{className:b.dateContainer,ownerState:p,children:[d.includes("year")&&ke.jsx(dl,{tabIndex:-1,variant:"subtitle1",onClick:()=>o("year"),selected:i==="year",value:r?m.format(r,"year"):"–"}),d.includes("day")&&ke.jsx(dl,{tabIndex:-1,variant:"h4",onClick:()=>o("day"),selected:i==="day",value:y})]}),ke.jsxs(kxe,{className:b.timeContainer,ownerState:p,children:[d.includes("hours")&&ke.jsx(dl,{variant:"h3",onClick:()=>o("hours"),selected:i==="hours",value:r?h(r):"--"}),d.includes("minutes")&&ke.jsxs(ge.Fragment,{children:[ke.jsx(D7,{variant:"h3",value:":",className:b.separator,ownerState:p}),ke.jsx(dl,{variant:"h3",onClick:()=>o("minutes"),selected:i==="minutes",value:r?m.format(r,"minutes"):"--"})]}),d.includes("seconds")&&ke.jsxs(ge.Fragment,{children:[ke.jsx(D7,{variant:"h3",value:":",className:b.separator,ownerState:p}),ke.jsx(dl,{variant:"h3",onClick:()=>o("seconds"),selected:i==="seconds",value:r?m.format(r,"seconds"):"--"})]})]})]}))}const bW=({adapter:e,value:t,props:n})=>{const{minTime:r,maxTime:l,minutesStep:i,shouldDisableTime:o,disableIgnoringDatePartForTimeValidation:a}=n,s=e.utils.date(t),u=QB(a,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&u(r,s)):return"minTime";case!!(l&&u(s,l)):return"maxTime";case!!(o&&o(e.utils.getHours(s),"hours")):return"shouldDisableTime-hours";case!!(o&&o(e.utils.getMinutes(s),"minutes")):return"shouldDisableTime-minutes";case!!(o&&o(e.utils.getSeconds(s),"seconds")):return"shouldDisableTime-seconds";case!!(i&&e.utils.getMinutes(s)%i!==0):return"minutesStep";default:return null}},Sxe=(e,t)=>e===t,u5=e=>UM(e,bW,Sxe),Cxe=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],Mxe=({props:e,value:t,adapter:n})=>{const{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}=e,s=Kt(e,Cxe),u=HM({adapter:n,value:t,props:{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}});return u!==null?u:bW({adapter:n,value:t,props:s})},Pxe=(e,t)=>e===t;function c5(e){return UM(e,Mxe,Pxe)}function Oxe(e){return yn("MuiDateTimePickerTabs",e)}const Axe=hn("MuiDateTimePickerTabs",["root"]),Dxe=e=>["day","month","year"].includes(e)?"date":"time",Exe=e=>e==="date"?"day":"hours",Rxe=e=>{const{classes:t}=e;return vn({root:["root"]},Oxe,t)},Lxe=Et(Nz,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>Ie({boxShadow:`0 -1px 0 0 inset ${t.palette.divider}`},e.wrapperVariant==="desktop"&&{order:1,boxShadow:`0 1px 0 0 inset ${t.palette.divider}`,[`& .${nv.indicator}`]:{bottom:"auto",top:0}})),xb=function(t){const n=pn({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:r=ke.jsx(Xye,{}),onChange:l,timeIcon:i=ke.jsx(Zye,{}),view:o}=n,a=Xi(),s=ge.useContext(ss),u=Ie({},n,{wrapperVariant:s}),c=Rxe(u),d=(f,p)=>{l(Exe(p))};return ke.jsxs(Lxe,{ownerState:u,variant:"fullWidth",value:Dxe(o),onChange:d,className:c.root,children:[ke.jsx(J3,{value:"date","aria-label":a.dateTableLabel,icon:ke.jsx(ge.Fragment,{children:r})}),ke.jsx(J3,{value:"time","aria-label":a.timeTableLabel,icon:ke.jsx(ge.Fragment,{children:i})})]})},Ixe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],xW=ge.forwardRef(function(t,n){const r=o5(t,"MuiDesktopDateTimePicker"),l=c5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,i5),{PaperProps:s,PopperProps:u,ToolbarComponent:c=s5,TransitionComponent:d,components:f,componentsProps:p,hideTabs:m=!0}=r,g=Kt(r,Ixe),b=ge.useMemo(()=>Ie({Tabs:xb},f),[f]),v=Ie({},o,g,{components:b,componentsProps:p,ref:n,validationError:l});return ke.jsx(n5,Ie({},a,{DateInputProps:v,KeyboardDateInputComponent:bb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:b,componentsProps:p,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:v,components:b,componentsProps:p,hideTabs:m},g))}))}),$xe=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],wW=ge.forwardRef(function(t,n){const r=o5(t,"MuiMobileDateTimePicker"),l=c5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,i5),{ToolbarComponent:s=s5,components:u,componentsProps:c,hideTabs:d=!1}=r,f=Kt(r,$xe),p=ge.useMemo(()=>Ie({Tabs:xb},u),[u]),m=Ie({},o,f,{components:p,componentsProps:c,ref:n,validationError:l});return ke.jsx(r5,Ie({},f,a,{DateInputProps:m,PureDateInputComponent:a5,components:p,componentsProps:c,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:m,components:p,componentsProps:c,hideTabs:d},f))}))}),Nxe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Fxe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=Kt(r,Nxe);return wM(l,{defaultMatches:!0})?ke.jsx(xW,Ie({ref:n,PopperProps:o,TransitionComponent:a},s)):ke.jsx(wW,Ie({ref:n,DialogProps:i},s))});function d5(e,t){var n;const r=pn({props:e,name:t}),l=Br(),i=(n=r.ampm)!=null?n:l.is12HourCycleInCurrentLocale(),a=Xi().openTimePickerDialogue;return Ie({ampm:i,openTo:"hours",views:["hours","minutes"],acceptRegex:i?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:a,inputFormat:i?l.formats.fullTime12h:l.formats.fullTime24h},r,{components:Ie({OpenPickerIcon:KB},r.components)})}const f5={emptyValue:null,parseInput:qM,getTodayValue:e=>e.date(),areValuesEqual:(e,t,n)=>e.isEqual(t,n),valueReducer:(e,t,n)=>!t||!e.isValid(n)?n:e.mergeDateAndTime(t,n)};function jxe(e){return yn("MuiTimePickerToolbar",e)}const _d=hn("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),zxe=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],Bxe=e=>{const{theme:t,isLandscape:n,classes:r}=e,l={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return vn(l,jxe,r)},Wxe=Et(JM,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${QM.penIconButtonLandscape}`]:{marginTop:"auto"}}),qxe=Et(l5,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Uxe=Et("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${_d.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${_d.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>Ie({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"})),Hxe=Et("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${_d.ampmLabel}`]:t.ampmLabel},{[`&.${_d.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Ie({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${_d.ampmLabel}`]:{fontSize:17}}));function p5(e){const t=pn({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,onChange:a,openView:s,setOpenView:u,toggleMobileKeyboardView:c,toolbarTitle:d,views:f,disabled:p,readOnly:m}=t,g=Kt(t,zxe),b=Br(),v=Xi(),h=d??v.timePickerDefaultToolbarTitle,y=po(),w=!!(n&&!r),{meridiemMode:_,handleMeridiemChange:x}=JB(l,n,a),T=M=>n?b.format(M,"hours12h"):b.format(M,"hours24h"),k=t,S=Bxe(Ie({},k,{theme:y})),C=ke.jsx(qxe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:S.separator});return ke.jsxs(Wxe,Ie({viewType:"clock",landscapeDirection:"row",toolbarTitle:h,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:c,ownerState:k,className:S.root},g,{children:[ke.jsxs(Uxe,{className:S.hourMinuteLabel,ownerState:k,children:[Su(f,"hours")&&ke.jsx(dl,{tabIndex:-1,variant:"h3",onClick:()=>u("hours"),selected:s==="hours",value:l?T(l):"--"}),Su(f,["hours","minutes"])&&C,Su(f,"minutes")&&ke.jsx(dl,{tabIndex:-1,variant:"h3",onClick:()=>u("minutes"),selected:s==="minutes",value:l?b.format(l,"minutes"):"--"}),Su(f,["minutes","seconds"])&&C,Su(f,"seconds")&&ke.jsx(dl,{variant:"h3",onClick:()=>u("seconds"),selected:s==="seconds",value:l?b.format(l,"seconds"):"--"})]}),w&&ke.jsxs(Hxe,{className:S.ampmSelection,ownerState:k,children:[ke.jsx(dl,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:S.ampmLabel,value:b.getMeridiemText("am"),onClick:m?void 0:()=>x("am"),disabled:p}),ke.jsx(dl,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:S.ampmLabel,value:b.getMeridiemText("pm"),onClick:m?void 0:()=>x("pm"),disabled:p})]})]}))}const Vxe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],_W=ge.forwardRef(function(t,n){const r=d5(t,"MuiDesktopTimePicker"),l=u5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,f5),{PaperProps:s,PopperProps:u,ToolbarComponent:c=p5,TransitionComponent:d,components:f,componentsProps:p}=r,m=Kt(r,Vxe),g=Ie({},o,m,{components:f,componentsProps:p,ref:n,validationError:l});return ke.jsx(n5,Ie({},a,{DateInputProps:g,KeyboardDateInputComponent:bb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:f,componentsProps:p,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},m))}))}),Gxe=["ToolbarComponent","value","onChange","components","componentsProps"],TW=ge.forwardRef(function(t,n){const r=d5(t,"MuiMobileTimePicker"),l=u5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,f5),{ToolbarComponent:s=p5,components:u,componentsProps:c}=r,d=Kt(r,Gxe),f=Ie({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return ke.jsx(r5,Ie({},d,a,{DateInputProps:f,PureDateInputComponent:a5,components:u,componentsProps:c,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))});function Yxe(e){return yn("MuiPickerStaticWrapper",e)}hn("MuiPickerStaticWrapper",["root","content"]);const Xxe=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],Kxe=e=>{const{classes:t}=e;return vn({root:["root"],content:["content"]},Yxe,t)},Zxe=Et("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),Qxe=Et("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:GM,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function wb(e){var t;const n=pn({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:r,onAccept:l,onClear:i,onCancel:o,onSetToday:a,children:s,components:u,componentsProps:c,className:d}=n,f=Kt(n,Xxe),p=Kxe(n),m=(t=u==null?void 0:u.ActionBar)!=null?t:t5,g=(u==null?void 0:u.PaperContent)||ge.Fragment;return ke.jsx(ss.Provider,{value:r,children:ke.jsxs(Zxe,Ie({className:ma(p.root,d)},f,{children:[ke.jsx(Qxe,{className:p.content,children:ke.jsx(g,Ie({},c==null?void 0:c.paperContent,{children:s}))}),ke.jsx(m,Ie({onAccept:l,onClear:i,onCancel:o,onSetToday:a,actions:r==="desktop"?[]:["cancel","accept"]},c==null?void 0:c.actionBar))]}))})}const Jxe=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],e2e=ge.forwardRef(function(t,n){const r=KM(t,"MuiStaticDatePicker"),{ToolbarComponent:l=e5,displayStaticWrapperAs:i="mobile",components:o,componentsProps:a,className:s}=r,u=Kt(r,Jxe),{pickerProps:c,inputProps:d,wrapperProps:f}=cs(r,ZM),p=VM(r)!==null,m=Ie({},d,u,{ref:n,validationError:p,components:o});return ke.jsx(wb,Ie({displayStaticWrapperAs:i,components:o,componentsProps:a,className:s},f,{children:ke.jsx(us,Ie({},c,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:l,DateInputProps:m,components:o,componentsProps:a},u))}))}),t2e=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],n2e=ge.forwardRef(function(t,n){const r=o5(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=s5,components:o,componentsProps:a,hideTabs:s=l==="desktop",className:u}=r,c=Kt(r,t2e),{pickerProps:d,inputProps:f,wrapperProps:p}=cs(r,i5),m=c5(r)!==null,g=ge.useMemo(()=>Ie({Tabs:xb},o),[o]),b=Ie({},f,c,{ref:n,validationError:m,components:g,componentsProps:a});return ke.jsx(wb,Ie({displayStaticWrapperAs:l,components:g,componentsProps:a,className:u},p,{children:ke.jsx(us,Ie({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:b,components:g,componentsProps:a,hideTabs:s},c))}))}),r2e=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],a2e=ge.forwardRef(function(t,n){const r=d5(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=p5,components:o,componentsProps:a,className:s}=r,u=Kt(r,r2e),c=u5(r)!==null,{pickerProps:d,inputProps:f,wrapperProps:p}=cs(r,f5),m=Ie({},f,u,{ref:n,validationError:c,components:o,componentsProps:a});return ke.jsx(wb,Ie({displayStaticWrapperAs:l,components:o,componentsProps:a,className:s},p,{children:ke.jsx(us,Ie({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:m,components:o,componentsProps:a},u))}))}),o2e=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],i2e=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=Kt(r,o2e);return wM(l,{defaultMatches:!0})?ke.jsx(_W,Ie({ref:n,PopperProps:o,TransitionComponent:a},s)):ke.jsx(TW,Ie({ref:n,DialogProps:i},s))});/** @license MUI X v5.0.20 + */function w(x){return x===null||typeof x!="object"}function _(x){return x.map(function(k){return typeof k=="symbol"?k.toString():k})}return l0.exports}var $w={},hD;function nB(){return hD||(hD=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={error:"Data could not be retrieved",grouping:{groupedBy:"Grouped By:",placeholder:"Drag headers here to group by"},pagination:{labelDisplayedRows:"{from}-{to} of {count}",labelRowsPerPage:"Rows per page:",labelRows:"rows",firstAriaLabel:"First Page",firstTooltip:"First Page",previousAriaLabel:"Previous Page",previousTooltip:"Previous Page",nextAriaLabel:"Next Page",nextTooltip:"Next Page",lastAriaLabel:"Last Page",lastTooltip:"Last Page"},toolbar:{addRemoveColumns:"Add or remove columns",nRowsSelected:"{0} row(s) selected",showColumnsTitle:"Show Columns",showColumnsAriaLabel:"Show Columns",exportTitle:"Export",exportAriaLabel:"Export",searchTooltip:"Search",searchPlaceholder:"Search",searchAriaLabel:"Search",clearSearchAriaLabel:"Clear Search"},header:{actions:"Actions"},body:{emptyDataSourceMessage:"No records to display",editRow:{saveTooltip:"Save",cancelTooltip:"Cancel",deleteText:"Are you sure you want to delete this row?"},filterRow:{},dateTimePickerLocalization:"Filter",addTooltip:"Add",deleteTooltip:"Delete",editTooltip:"Edit",bulkEditTooltip:"Edit All",bulkEditApprove:"Save all changes",bulkEditCancel:"Discard all changes"}};e.default=t}($w)),$w}var Nw={},mD;function rB(){return mD||(mD=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={idSynonym:"id",actionsColumnIndex:0,addRowPosition:"last",columnsButton:!1,detailPanelType:"multiple",debounceInterval:200,doubleHorizontalScroll:!1,emptyRowsWhenPaging:!0,exportAllData:!1,exportMenu:[],filtering:!1,groupTitle:!1,header:!0,headerSelectionProps:{},hideFilterIcons:!1,loadingType:"overlay",padding:"normal",searchAutoFocus:!1,paging:!0,pageSize:5,pageSizeOptions:[5,10,20],paginationType:"normal",paginationPosition:"bottom",showEmptyDataSourceMessage:!0,showFirstLastPageButtons:!0,showSelectAllCheckbox:!0,showSelectGroupCheckbox:!0,search:!0,showTitle:!0,showTextRowsSelected:!0,showDetailPanelIcon:!0,tableLayout:"auto",tableWidth:"full",toolbarButtonAlignment:"right",searchFieldAlignment:"right",searchFieldStyle:{},searchFieldVariant:"standard",selection:!1,selectionProps:{},maxColumnSort:1,clientSorting:!0,groupChipProps:{},defaultOrderByCollection:[],showColumnSortOrder:!1,keepSortDirectionOnColumnSwitch:!0,toolbar:!0,defaultExpanded:!1,detailPanelColumnAlignment:"left",detailPanelOffset:{left:0,right:0},thirdSortClick:!0,overflowY:"auto",numberOfPagesAround:1,actionsHeaderIndex:0,draggable:!0};e.default=t}(Nw)),Nw}var Fw={},np={},jw={};const ghe=Qn(pre);var gD;function Ta(){return gD||(gD=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ghe}(jw)),jw}var vD;function vhe(){if(vD)return np;vD=1;var e=Cn;Object.defineProperty(np,"__esModule",{value:!0}),np.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");return np.default=r,np}var rp={},yD;function yhe(){if(yD)return rp;yD=1;var e=Cn;Object.defineProperty(rp,"__esModule",{value:!0}),rp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove");return rp.default=r,rp}var ap={},bD;function bhe(){if(bD)return ap;bD=1;var e=Cn;Object.defineProperty(ap,"__esModule",{value:!0}),ap.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");return ap.default=r,ap}var op={},xD;function xhe(){if(xD)return op;xD=1;var e=Cn;Object.defineProperty(op,"__esModule",{value:!0}),op.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");return op.default=r,op}var ip={},wD;function whe(){if(wD)return ip;wD=1;var e=Cn;Object.defineProperty(ip,"__esModule",{value:!0}),ip.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");return ip.default=r,ip}const EM=Qn(xue);var lp={},_D;function _he(){if(_D)return lp;_D=1;var e=Cn;Object.defineProperty(lp,"__esModule",{value:!0}),lp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");return lp.default=r,lp}var sp={},TD;function The(){if(TD)return sp;TD=1;var e=Cn;Object.defineProperty(sp,"__esModule",{value:!0}),sp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");return sp.default=r,sp}var up={},kD;function khe(){if(kD)return up;kD=1;var e=Cn;Object.defineProperty(up,"__esModule",{value:!0}),up.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");return up.default=r,up}var cp={},SD;function She(){if(SD)return cp;SD=1;var e=Cn;Object.defineProperty(cp,"__esModule",{value:!0}),cp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList");return cp.default=r,cp}var dp={},CD;function Che(){if(CD)return dp;CD=1;var e=Cn;Object.defineProperty(dp,"__esModule",{value:!0}),dp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt");return dp.default=r,dp}var fp={},MD;function Mhe(){if(MD)return fp;MD=1;var e=Cn;Object.defineProperty(fp,"__esModule",{value:!0}),fp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");return fp.default=r,fp}var pp={},PD;function Phe(){if(PD)return pp;PD=1;var e=Cn;Object.defineProperty(pp,"__esModule",{value:!0}),pp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");return pp.default=r,pp}var hp={},OD;function Ohe(){if(OD)return hp;OD=1;var e=Cn;Object.defineProperty(hp,"__esModule",{value:!0}),hp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");return hp.default=r,hp}var mp={},AD;function Ahe(){if(AD)return mp;AD=1;var e=Cn;Object.defineProperty(mp,"__esModule",{value:!0}),mp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.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"}),"Clear");return mp.default=r,mp}var gp={},DD;function Dhe(){if(DD)return gp;DD=1;var e=Cn;Object.defineProperty(gp,"__esModule",{value:!0}),gp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");return gp.default=r,gp}var vp={},ED;function Ehe(){if(ED)return vp;ED=1;var e=Cn;Object.defineProperty(vp,"__esModule",{value:!0}),vp.default=void 0;var t=e(Ta()),n=ke,r=(0,t.default)((0,n.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"}),"AddBox");return vp.default=r,vp}var RD;function aB(){return RD||(RD=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(vhe()),l=t(yhe()),i=t(bhe()),o=t(xhe()),a=t(whe()),s=t(EM),u=t(_he()),c=t(The()),d=t(khe()),f=t(She()),p=t(Che()),m=t(Mhe()),g=t(Phe()),b=t(Ohe()),v=t(Ahe()),h=t(Dhe()),y=t(Ehe()),w=t(Ir()),_=T(ge);function x(S){if(typeof WeakMap!="function")return null;var C=new WeakMap,M=new WeakMap;return(x=function(D){return D?M:C})(S)}function T(S,C){if(S&&S.__esModule)return S;if(S===null||n(S)!=="object"&&typeof S!="function")return{default:S};var M=x(C);if(M&&M.has(S))return M.get(S);var O={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in S)if(P!=="default"&&Object.prototype.hasOwnProperty.call(S,P)){var E=D?Object.getOwnPropertyDescriptor(S,P):null;E&&(E.get||E.set)?Object.defineProperty(O,P,E):O[P]=S[P]}return O.default=S,M&&M.set(S,O),O}var k={Add:(0,_.forwardRef)(function(S,C){return _.default.createElement(y.default,(0,w.default)({},S,{ref:C,"data-testid":"add_box"}))}),Check:(0,_.forwardRef)(function(S,C){return _.default.createElement(h.default,(0,w.default)({},S,{ref:C,"data-testid":"check"}))}),Clear:(0,_.forwardRef)(function(S,C){return _.default.createElement(v.default,(0,w.default)({},S,{ref:C,"data-testid":"clear"}))}),Delete:(0,_.forwardRef)(function(S,C){return _.default.createElement(b.default,(0,w.default)({},S,{ref:C,"data-testid":"delete_outline"}))}),DetailPanel:(0,_.forwardRef)(function(S,C){return _.default.createElement(g.default,(0,w.default)({},S,{ref:C,"data-testid":"chevron_right"}))}),Edit:(0,_.forwardRef)(function(S,C){return _.default.createElement(m.default,(0,w.default)({},S,{ref:C,"data-testid":"edit"}))}),Export:(0,_.forwardRef)(function(S,C){return _.default.createElement(p.default,(0,w.default)({},S,{ref:C,"data-testid":"save_alt"}))}),Filter:(0,_.forwardRef)(function(S,C){return _.default.createElement(f.default,(0,w.default)({},S,{ref:C,"data-testid":"filter_list"}))}),FirstPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(d.default,(0,w.default)({},S,{ref:C,"data-testid":"first_page"}))}),LastPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(c.default,(0,w.default)({},S,{ref:C,"data-testid":"last_page"}))}),NextPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(g.default,(0,w.default)({},S,{ref:C,"data-testid":"chevron_right"}))}),PreviousPage:(0,_.forwardRef)(function(S,C){return _.default.createElement(u.default,(0,w.default)({},S,{ref:C,"data-testid":"chevron_left"}))}),ResetSearch:(0,_.forwardRef)(function(S,C){return _.default.createElement(v.default,(0,w.default)({},S,{ref:C,"data-testid":"clear"}))}),Resize:(0,_.forwardRef)(function(S,C){return _.default.createElement(s.default,(0,w.default)({},S,{ref:C,"data-testid":"drag_handle"}),"|")}),Retry:(0,_.forwardRef)(function(S,C){return _.default.createElement(a.default,(0,w.default)({},S,{ref:C,"data-testid":"replay"}))}),Search:(0,_.forwardRef)(function(S,C){return _.default.createElement(o.default,(0,w.default)({},S,{ref:C,"data-testid":"search"}))}),SortArrow:(0,_.forwardRef)(function(S,C){return _.default.createElement(i.default,(0,w.default)({},S,{ref:C,"data-testid":"arrow_downward"}))}),ThirdStateCheck:(0,_.forwardRef)(function(S,C){return _.default.createElement(l.default,(0,w.default)({},S,{ref:C,"data-testid":"remove"}))}),ViewColumn:(0,_.forwardRef)(function(S,C){return _.default.createElement(r.default,(0,w.default)({},S,{ref:C,"data-testid":"view_column"}))})};e.default=k}(Fw)),Fw}var zw,LD;function Rhe(){if(LD)return zw;LD=1;var e=function(h){return t(h)&&!n(h)};function t(v){return!!v&&typeof v=="object"}function n(v){var h=Object.prototype.toString.call(v);return h==="[object RegExp]"||h==="[object Date]"||i(v)}var r=typeof Symbol=="function"&&Symbol.for,l=r?Symbol.for("react.element"):60103;function i(v){return v.$$typeof===l}function o(v){return Array.isArray(v)?[]:{}}function a(v,h){return h.clone!==!1&&h.isMergeableObject(v)?g(o(v),v,h):v}function s(v,h,y){return v.concat(h).map(function(w){return a(w,y)})}function u(v,h){if(!h.customMerge)return g;var y=h.customMerge(v);return typeof y=="function"?y:g}function c(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(h){return Object.propertyIsEnumerable.call(v,h)}):[]}function d(v){return Object.keys(v).concat(c(v))}function f(v,h){try{return h in v}catch{return!1}}function p(v,h){return f(v,h)&&!(Object.hasOwnProperty.call(v,h)&&Object.propertyIsEnumerable.call(v,h))}function m(v,h,y){var w={};return y.isMergeableObject(v)&&d(v).forEach(function(_){w[_]=a(v[_],y)}),d(h).forEach(function(_){p(v,_)||(f(v,_)&&y.isMergeableObject(h[_])?w[_]=u(_,y)(v[_],h[_],y):w[_]=a(h[_],y))}),w}function g(v,h,y){y=y||{},y.arrayMerge=y.arrayMerge||s,y.isMergeableObject=y.isMergeableObject||e,y.cloneUnlessOtherwiseSpecified=a;var w=Array.isArray(h),_=Array.isArray(v),x=w===_;return x?w?y.arrayMerge(v,h,y):m(v,h,y):a(h,y)}g.all=function(h,y){if(!Array.isArray(h))throw new Error("first argument should be an array");return h.reduce(function(w,_){return g(w,_,y)},{})};var b=g;return zw=b,zw}var ID;function eg(){if(ID)return Ii;ID=1;var e=Cn;Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.useLocalizationStore=Ii.useIconStore=void 0,Ii.useMergeProps=v,Ii.useOptionStore=void 0,Ii.withContext=h;var t=e($a()),n=hhe,r=e(ge),l=e(tB()),i=e(nB()),o=e(rB()),a=e(aB()),s=e(Wq());function u(y,w){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(y);w&&(x=x.filter(function(T){return Object.getOwnPropertyDescriptor(y,T).enumerable})),_.push.apply(_,x)}return _}function c(y){for(var w=1;w=0)&&(l[o]=n[o]);return l}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(qw)),qw.exports}var jD;function uf(){return jD||(jD=1,function(e){var t=$he();function n(r,l){if(r==null)return{};var i=t(r,l),o,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(r,o)&&(i[o]=r[o])}return i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Ww)),Ww.exports}var zD;function Nhe(){return zD||(zD=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ihe),r=t(Ir()),l=t(uf()),i=t(ge),o=["forwardedRef"];function a(u){var c=u.forwardedRef,d=(0,l.default)(u,o);return i.default.createElement(n.default,(0,r.default)({elevation:2},d,{ref:c}))}var s=i.default.forwardRef(function(c,d){return i.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(Bw)),Bw}var Uw={};const fc=Qn(qie);var Hw={exports:{}},BD;function Fhe(){return BD||(BD=1,function(e,t){(function(r,l){e.exports=l(ge)})(Oo,function(n){return function(r){var l={};function i(o){if(l[o])return l[o].exports;var a=l[o]={exports:{},id:o,loaded:!1};return r[o].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}return i.m=r,i.c=l,i.p="",i(0)}([function(r,l,i){Object.defineProperty(l,"__esModule",{value:!0});var o=function(){function m(g,b){for(var v=0;vn.length)&&(r=n.length);for(var l=0,i=new Array(r);l0&&E++,g.hasDetailPanel&&E++,g.isTreeData&&E++,s.default.createElement(o.default,{style:{height:P*(v.paging&&v.emptyRowsWhenPaging?g.pageSize:1)},key:"empty-0"},s.default.createElement(a.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:g.columns.reduce(function(I,A){return A.hidden?I:I+1},E),key:"empty-"},b.emptyDataSourceMessage))}else if(v.emptyRowsWhenPaging)return s.default.createElement(s.default.Fragment,null,(0,i.default)(Array(O)).map(function(I,A){return s.default.createElement(o.default,{style:{height:P},key:"empty-"+A})}),O>0&&s.default.createElement(o.default,{style:{height:1},key:"empty-last1"}))}function _(O){return O.map(function(D,P){if(D.tableData.editing||g.bulkEditOpen)return s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:D,errorState:g.errorState,icons:h,localization:b.editRow,key:"row-"+D.tableData.uuid,mode:g.bulkEditOpen?"bulk":D.tableData.editing,isTreeData:g.isTreeData,detailPanel:g.detailPanel,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,bulkEditChangedRows:g.bulkEditChangedRows,getFieldValue:g.getFieldValue,onBulkEditRowChanged:g.onBulkEditRowChanged,scrollWidth:g.scrollWidth});var E=g.isTreeData?[D.tableData.uuid]:[P+g.pageSize*g.currentPage];return s.default.createElement(g.components.Row,{components:g.components,data:D,index:P,errorState:g.errorState,key:"row-"+D.tableData.uuid,level:0,onRowSelected:g.onRowSelected,actions:g.actions,columns:g.columns,getFieldValue:g.getFieldValue,detailPanel:g.detailPanel,path:E,onToggleDetailPanel:g.onToggleDetailPanel,onRowClick:g.onRowClick,onRowDoubleClick:g.onRowDoubleClick,isTreeData:g.isTreeData,onTreeExpandChanged:g.onTreeExpandChanged,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,hasAnyEditingRow:g.hasAnyEditingRow,treeDataMaxLevel:g.treeDataMaxLevel,cellEditable:g.cellEditable,onCellEditStarted:g.onCellEditStarted,onCellEditFinished:g.onCellEditFinished,onRowEditStarted:g.onRowEditStarted,scrollWidth:g.scrollWidth})})}function x(O,D){return D.map(function(P,E){return s.default.createElement(g.components.GroupRow,{actions:g.actions,cellEditable:g.cellEditable,columns:g.columns,components:g.components,detailPanel:g.detailPanel,getFieldValue:g.getFieldValue,groupData:P,groups:O,hasAnyEditingRow:g.hasAnyEditingRow,icons:h,isTreeData:g.isTreeData,key:P.value==null?""+E:P.value,level:0,localization:b.editRow,onBulkEditRowChanged:g.onBulkEditRowChanged,onCellEditFinished:g.onCellEditFinished,onCellEditStarted:g.onCellEditStarted,onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,onGroupExpandChanged:g.onGroupExpandChanged,onRowClick:g.onRowClick,onGroupSelected:g.onGroupSelected,onRowSelected:g.onRowSelected,onToggleDetailPanel:g.onToggleDetailPanel,onTreeExpandChanged:g.onTreeExpandChanged,path:[E+g.pageSize*g.currentPage],scrollWidth:g.scrollWidth,treeDataMaxLevel:g.treeDataMaxLevel})})}function T(){return g.showAddRow&&s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:g.initialFormData,detailPanel:g.detailPanel,errorState:g.errorState,getFieldValue:g.getFieldValue,icons:h,isTreeData:g.isTreeData,key:"key-add-row",localization:b.editRow,mode:"add",onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,scrollWidth:g.scrollWidth})}var k=g.renderData,S=g.columns.filter(function(O){return O.tableData.groupOrder>-1}).sort(function(O,D){return O.tableData.groupOrder-D.tableData.groupOrder}),C=0;v.paging&&g.pageSize>k.length&&(C=g.pageSize-k.length);var M=s.default.useMemo(function(){return g.renderSummaryRow?function(O){return g.renderSummaryRow(f(f({},O),{},{data:g.data,currentData:g.currentData}))}:void 0},[g.data]);return s.default.createElement(r.default,{ref:g.forwardedRef},v.filtering&&s.default.createElement(g.components.FilterRow,{columns:y,icons:h,hasActions:g.actions.some(function(O){return O.position==="row"||typeof O=="function"}),onFilterChanged:g.onFilterChanged,localization:b.filterRow,hasDetailPanel:!!g.detailPanel,isTreeData:g.isTreeData,scrollWidth:g.scrollWidth,hideFilterIcons:g.options.hideFilterIcons}),v.addRowPosition==="first"&&T(),S.length>0?x(S,k):_(k),v.addRowPosition==="last"&&T(),s.default.createElement(g.components.SummaryRow,{columns:y,renderSummaryRow:M,rowProps:g}),w(C,k))}p.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},p.propTypes={actions:u.default.array,bulkEditChangedRows:u.default.object,bulkEditOpen:u.default.bool,cellEditable:u.default.object,columns:u.default.array.isRequired,components:u.default.object.isRequired,currentPage:u.default.number,data:u.default.array,detailPanel:u.default.oneOfType([u.default.func,u.default.arrayOf(u.default.oneOfType([u.default.object,u.default.func]))]),errorState:u.default.oneOfType([u.default.object,u.default.bool]),forwardedRef:u.default.oneOfType([u.default.func,u.default.object]),getFieldValue:u.default.func.isRequired,hasAnyEditingRow:u.default.bool,hasDetailPanel:u.default.bool.isRequired,initialFormData:u.default.object,isTreeData:u.default.bool.isRequired,onBulkEditRowChanged:u.default.func,onCellEditFinished:u.default.func,onCellEditStarted:u.default.func,onEditingApproved:u.default.func,onEditingCanceled:u.default.func,onFilterChanged:u.default.func,onGroupExpandChanged:u.default.func,onRowClick:u.default.func,onRowDoubleClick:u.default.func,onGroupSelected:u.default.func,onRowSelected:u.default.func,onToggleDetailPanel:u.default.func.isRequired,onTreeExpandChanged:u.default.func.isRequired,pageSize:u.default.number,renderData:u.default.array,renderSummaryRow:u.default.func,scrollWidth:u.default.number.isRequired,selection:u.default.bool.isRequired,showAddRow:u.default.bool,treeDataMaxLevel:u.default.number};var m=s.default.forwardRef(function(b,v){return s.default.createElement(p,(0,n.default)({},b,{forwardedRef:v}))});e.default=m}(Vw)),Vw}var Jw={},e_={exports:{}},KD;function db(){return KD||(KD=1,function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(e_)),e_.exports}var t_={exports:{}},ZD;function fb(){return ZD||(ZD=1,function(e){var t=Vz();function n(l,i){for(var o=0;o1?"s":"")+" required, but only "+t.length+" present")}function Tn(e){_n(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||ns(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function rk(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function hb(e,t){_n(2,arguments);var n=Tn(e).getTime(),r=kr(t);return new Date(n+r)}function Yhe(e,t){_n(2,arguments);var n=kr(t);return hb(e,n*1e3)}var Xhe=6e4;function Khe(e,t){_n(2,arguments);var n=kr(t);return hb(e,n*Xhe)}var Zhe=36e5;function Qhe(e,t){_n(2,arguments);var n=kr(t);return hb(e,n*Zhe)}function Jhe(e,t){_n(2,arguments);var n=kr(t),r=n*7;return rk(e,r)}function av(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var l=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var o=i.getDate();return l>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),l),n)}function r7(e,t){_n(2,arguments);var n=kr(t);return av(e,n*12)}function eme(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t);return n.getFullYear()-r.getFullYear()}function Lh(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=n.getTime()-r.getTime();return l<0?-1:l>0?1:l}function tme(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=Lh(n,r),i=Math.abs(eme(n,r));n.setFullYear(1584),r.setFullYear(1584);var o=Lh(n,r)===-l,a=l*(i-Number(o));return a===0?0:a}function nme(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return l*12+i}function ak(e){_n(1,arguments);var t=Tn(e);return t.setHours(23,59,59,999),t}function ok(e){_n(1,arguments);var t=Tn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function rme(e){_n(1,arguments);var t=Tn(e);return ak(t).getTime()===ok(t).getTime()}function cB(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=Lh(n,r),i=Math.abs(nme(n,r)),o;if(i<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-l*i);var a=Lh(n,r)===-l;rme(Tn(e))&&i===1&&Lh(e,r)===1&&(a=!1),o=l*(i-Number(a))}return o===0?0:o}var a7={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},ame="trunc";function tg(e){return e?a7[e]:a7[ame]}function ome(e,t,n){_n(2,arguments);var r=cB(e,t)/3;return tg(void 0)(r)}function oy(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Wd(e){_n(1,arguments);var t=Tn(e);return t.setHours(0,0,0,0),t}var ime=864e5;function lme(e,t){_n(2,arguments);var n=Wd(e),r=Wd(t),l=n.getTime()-oy(n),i=r.getTime()-oy(r);return Math.round((l-i)/ime)}function o7(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function dB(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=o7(n,r),i=Math.abs(lme(n,r));n.setDate(n.getDate()-l*i);var o=+(o7(n,r)===-l),a=l*(i-o);return a===0?0:a}function sme(e,t,n){_n(2,arguments);var r=dB(e,t)/7;return tg(void 0)(r)}var mb=6e4,gb=36e5,ume=1e3;function vb(e,t){return _n(2,arguments),Tn(e).getTime()-Tn(t).getTime()}function cme(e,t,n){_n(2,arguments);var r=vb(e,t)/gb;return tg(void 0)(r)}function dme(e,t,n){_n(2,arguments);var r=vb(e,t)/mb;return tg(void 0)(r)}function fme(e,t,n){_n(2,arguments);var r=vb(e,t)/1e3;return tg(void 0)(r)}function pme(e,t){var n;_n(1,arguments);var r=e||{},l=Tn(r.start),i=Tn(r.end),o=i.getTime();if(!(l.getTime()<=o))throw new RangeError("Invalid interval");var a=[],s=l;s.setHours(0,0,0,0);var u=Number((n=void 0)!==null&&n!==void 0?n:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=o;)a.push(Tn(s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return a}var hme={};function ou(){return hme}function l_(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tn(e),p=f.getDay(),m=(p=l.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function yme(e){_n(1,arguments);var t=hB(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=qd(n);return r}var bme=6048e5;function mB(e){_n(1,arguments);var t=Tn(e),n=qd(t).getTime()-yme(t).getTime();return Math.round(n/bme)+1}function Xu(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tn(e),p=f.getUTCDay(),m=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var g=Xu(m,t),b=new Date(0);b.setUTCFullYear(d,0,p),b.setUTCHours(0,0,0,0);var v=Xu(b,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}function xme(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&l!==void 0?l:c.firstWeekContainsDate)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=FM(e,t),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var m=Xu(p,t);return m}var wme=6048e5;function gB(e,t){_n(1,arguments);var n=Tn(e),r=Xu(n,t).getTime()-xme(n,t).getTime();return Math.round(r/wme)+1}function tr(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return tr(n==="yy"?l%100:l,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):tr(r+1,2)},d:function(t,n){return tr(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return tr(t.getUTCHours()%12||12,n.length)},H:function(t,n){return tr(t.getUTCHours(),n.length)},m:function(t,n){return tr(t.getUTCMinutes(),n.length)},s:function(t,n){return tr(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,l=t.getUTCMilliseconds(),i=Math.floor(l*Math.pow(10,r-3));return tr(i,n.length)}},jc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},_me={G:function(t,n,r){var l=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(l,{width:"abbreviated"});case"GGGGG":return r.era(l,{width:"narrow"});case"GGGG":default:return r.era(l,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var l=t.getUTCFullYear(),i=l>0?l:1-l;return r.ordinalNumber(i,{unit:"year"})}return _s.y(t,n)},Y:function(t,n,r,l){var i=FM(t,l),o=i>0?i:1-i;if(n==="YY"){var a=o%100;return tr(a,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):tr(o,n.length)},R:function(t,n){var r=hB(t);return tr(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return tr(r,n.length)},Q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(l);case"QQ":return tr(l,2);case"Qo":return r.ordinalNumber(l,{unit:"quarter"});case"QQQ":return r.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(l,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(l,{width:"wide",context:"formatting"})}},q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(l);case"qq":return tr(l,2);case"qo":return r.ordinalNumber(l,{unit:"quarter"});case"qqq":return r.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(l,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(l,{width:"wide",context:"standalone"})}},M:function(t,n,r){var l=t.getUTCMonth();switch(n){case"M":case"MM":return _s.M(t,n);case"Mo":return r.ordinalNumber(l+1,{unit:"month"});case"MMM":return r.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(l,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(l,{width:"wide",context:"formatting"})}},L:function(t,n,r){var l=t.getUTCMonth();switch(n){case"L":return String(l+1);case"LL":return tr(l+1,2);case"Lo":return r.ordinalNumber(l+1,{unit:"month"});case"LLL":return r.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(l,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(l,{width:"wide",context:"standalone"})}},w:function(t,n,r,l){var i=gB(t,l);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):tr(i,n.length)},I:function(t,n,r){var l=mB(t);return n==="Io"?r.ordinalNumber(l,{unit:"week"}):tr(l,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):_s.d(t,n)},D:function(t,n,r){var l=vme(t);return n==="Do"?r.ordinalNumber(l,{unit:"dayOfYear"}):tr(l,n.length)},E:function(t,n,r){var l=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(l,{width:"short",context:"formatting"});case"EEEE":default:return r.day(l,{width:"wide",context:"formatting"})}},e:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return tr(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return tr(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var l=t.getUTCDay(),i=l===0?7:l;switch(n){case"i":return String(i);case"ii":return tr(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(l,{width:"short",context:"formatting"});case"iiii":default:return r.day(l,{width:"wide",context:"formatting"})}},a:function(t,n,r){var l=t.getUTCHours(),i=l/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var l=t.getUTCHours(),i;switch(l===12?i=jc.noon:l===0?i=jc.midnight:i=l/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var l=t.getUTCHours(),i;switch(l>=17?i=jc.evening:l>=12?i=jc.afternoon:l>=4?i=jc.morning:i=jc.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var l=t.getUTCHours()%12;return l===0&&(l=12),r.ordinalNumber(l,{unit:"hour"})}return _s.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):_s.H(t,n)},K:function(t,n,r){var l=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(l,{unit:"hour"}):tr(l,n.length)},k:function(t,n,r){var l=t.getUTCHours();return l===0&&(l=24),n==="ko"?r.ordinalNumber(l,{unit:"hour"}):tr(l,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):_s.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):_s.s(t,n)},S:function(t,n){return _s.S(t,n)},X:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return l7(o);case"XXXX":case"XX":return wu(o);case"XXXXX":case"XXX":default:return wu(o,":")}},x:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"x":return l7(o);case"xxxx":case"xx":return wu(o);case"xxxxx":case"xxx":default:return wu(o,":")}},O:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+i7(o,":");case"OOOO":default:return"GMT"+wu(o,":")}},z:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+i7(o,":");case"zzzz":default:return"GMT"+wu(o,":")}},t:function(t,n,r,l){var i=l._originalDate||t,o=Math.floor(i.getTime()/1e3);return tr(o,n.length)},T:function(t,n,r,l){var i=l._originalDate||t,o=i.getTime();return tr(o,n.length)}};function i7(e,t){var n=e>0?"-":"+",r=Math.abs(e),l=Math.floor(r/60),i=r%60;if(i===0)return n+String(l);var o=t;return n+String(l)+o+tr(i,2)}function l7(e,t){if(e%60===0){var n=e>0?"-":"+";return n+tr(Math.abs(e)/60,2)}return wu(e,t)}function wu(e,t){var n=t||"",r=e>0?"-":"+",l=Math.abs(e),i=tr(Math.floor(l/60),2),o=tr(l%60,2);return r+i+n+o}var s7=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},vB=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Tme=function(t,n){var r=t.match(/(P+)(p+)?/)||[],l=r[1],i=r[2];if(!i)return s7(t,n);var o;switch(l){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",s7(l,n)).replace("{{time}}",vB(i,n))},ik={p:vB,P:Tme},kme=["D","DD"],Sme=["YY","YYYY"];function yB(e){return kme.indexOf(e)!==-1}function bB(e){return Sme.indexOf(e)!==-1}function iy(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Cme={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Mme=function(t,n,r){var l,i=Cme[t];return typeof i=="string"?l=i:n===1?l=i.one:l=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+l:l+" ago":l};function u_(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Pme={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ome={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ame={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Dme={date:u_({formats:Pme,defaultWidth:"full"}),time:u_({formats:Ome,defaultWidth:"full"}),dateTime:u_({formats:Ame,defaultWidth:"full"})},Eme={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Rme=function(t,n,r,l){return Eme[t]};function yp(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",l;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;l=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;l=e.values[s]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return l[u]}}var Lme={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ime={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},$me={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Nme={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Fme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},jme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},zme=function(t,n){var r=Number(t),l=r%100;if(l>20||l<10)switch(l%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Bme={ordinalNumber:zme,era:yp({values:Lme,defaultWidth:"wide"}),quarter:yp({values:Ime,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:yp({values:$me,defaultWidth:"wide"}),day:yp({values:Nme,defaultWidth:"wide"}),dayPeriod:yp({values:Fme,defaultWidth:"wide",formattingValues:jme,defaultFormattingWidth:"wide"})};function bp(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,l=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(l);if(!i)return null;var o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?qme(a,function(d){return d.test(o)}):Wme(a,function(d){return d.test(o)}),u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(o.length);return{value:u,rest:c}}}function Wme(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function qme(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var l=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var a=t.slice(l.length);return{value:o,rest:a}}}var Hme=/^(\d+)(th|st|nd|rd)?/i,Vme=/\d+/i,Gme={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Yme={any:[/^b/i,/^(a|c)/i]},Xme={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Kme={any:[/1/i,/2/i,/3/i,/4/i]},Zme={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Qme={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Jme={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ege={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},tge={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},nge={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},rge={ordinalNumber:Ume({matchPattern:Hme,parsePattern:Vme,valueCallback:function(t){return parseInt(t,10)}}),era:bp({matchPatterns:Gme,defaultMatchWidth:"wide",parsePatterns:Yme,defaultParseWidth:"any"}),quarter:bp({matchPatterns:Xme,defaultMatchWidth:"wide",parsePatterns:Kme,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:bp({matchPatterns:Zme,defaultMatchWidth:"wide",parsePatterns:Qme,defaultParseWidth:"any"}),day:bp({matchPatterns:Jme,defaultMatchWidth:"wide",parsePatterns:ege,defaultParseWidth:"any"}),dayPeriod:bp({matchPatterns:tge,defaultMatchWidth:"any",parsePatterns:nge,defaultParseWidth:"any"})},yb={code:"en-US",formatDistance:Mme,formatLong:Dme,formatRelative:Rme,localize:Bme,match:rge,options:{weekStartsOn:0,firstWeekContainsDate:1}},age=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oge=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ige=/^'([^]*?)'?$/,lge=/''/g,sge=/[a-zA-Z]/;function xB(e,t,n){var r,l,i,o,a,s,u,c,d,f,p,m,g,b,v,h,y,w;_n(2,arguments);var _=String(t),x=ou(),T=(r=(l=n==null?void 0:n.locale)!==null&&l!==void 0?l:x.locale)!==null&&r!==void 0?r:yb,k=kr((i=(o=(a=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(u=n.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:x.firstWeekContainsDate)!==null&&o!==void 0?o:(d=x.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=kr((p=(m=(g=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(v=n.locale)===null||v===void 0||(h=v.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&g!==void 0?g:x.weekStartsOn)!==null&&m!==void 0?m:(y=x.locale)===null||y===void 0||(w=y.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&p!==void 0?p:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var C=Tn(e);if(!fB(C))throw new RangeError("Invalid time value");var M=oy(C),O=pB(C,M),D={firstWeekContainsDate:k,weekStartsOn:S,locale:T,_originalDate:C},P=_.match(oge).map(function(E){var I=E[0];if(I==="p"||I==="P"){var A=ik[I];return A(E,T.formatLong)}return E}).join("").match(age).map(function(E){if(E==="''")return"'";var I=E[0];if(I==="'")return uge(E);var A=_me[I];if(A)return!(n!=null&&n.useAdditionalWeekYearTokens)&&bB(E)&&iy(E,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&yB(E)&&iy(E,t,String(e)),A(O,E,T.localize,D);if(I.match(sge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return E}).join("");return P}function uge(e){var t=e.match(ige);return t?t[1].replace(lge,"'"):e}const cge=Object.freeze(Object.defineProperty({__proto__:null,default:xB},Symbol.toStringTag,{value:"Module"}));function dge(e){_n(1,arguments);var t=Tn(e),n=t.getDate();return n}function fge(e){_n(1,arguments);var t=Tn(e),n=t.getDay();return n}function wB(e){_n(1,arguments);var t=Tn(e),n=t.getFullYear(),r=t.getMonth(),l=new Date(0);return l.setFullYear(n,r+1,0),l.setHours(0,0,0,0),l.getDate()}function pge(e){_n(1,arguments);var t=Tn(e),n=t.getHours();return n}function hge(e){_n(1,arguments);var t=Tn(e),n=t.getMinutes();return n}function mge(e){_n(1,arguments);var t=Tn(e),n=t.getMonth();return n}function gge(e){_n(1,arguments);var t=Tn(e),n=t.getSeconds();return n}function vge(e){return _n(1,arguments),Tn(e).getFullYear()}function s0(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t);return n.getTime()>r.getTime()}function zc(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t);return n.getTime()e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}}}function kge(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function hr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jv(e,t)}function ly(e){return ly=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ly(e)}function Sge(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cge(e,t){if(t&&(ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return An(e)}function mr(e){var t=Sge();return function(){var r=ly(e),l;if(t){var i=ly(this).constructor;l=Reflect.construct(r,arguments,i)}else l=r.apply(this,arguments);return Cge(this,l)}}function sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mge(e,t){if(ns(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ns(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _B(e){var t=Mge(e,"string");return ns(t)==="symbol"?t:String(t)}function Pge(e,t){for(var n=0;n0,r=n?t:1-t,l;if(r<=50)l=e||100;else{var i=r+50,o=Math.floor(i/100)*100,a=e>=i%100;l=e+o-(a?100:0)}return n?l:1-l}function CB(e){return e%400===0||e%4===0&&e%100!==0}var Rge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o){var a=l.getUTCFullYear();if(o.isTwoDigitYear){var s=SB(o.year,a);return l.setUTCFullYear(s,0,1),l.setUTCHours(0,0,0,0),l}var u=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(u,0,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Lge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o,a){var s=FM(l,a);if(o.isTwoDigitYear){var u=SB(o.year,s);return l.setUTCFullYear(u,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),Xu(l,a)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(c,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),Xu(l,a)}}]),n}(_r),Ige=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Fge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),jge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),zge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r);function Bge(e,t,n){_n(2,arguments);var r=Tn(e),l=kr(t),i=gB(r,n)-l;return r.setUTCDate(r.getUTCDate()-i*7),r}var Wge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o,a){return Xu(Bge(l,o,a),a)}}]),n}(_r);function qge(e,t){_n(2,arguments);var n=Tn(e),r=kr(t),l=mB(n)-r;return n.setUTCDate(n.getUTCDate()-l*7),n}var Uge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o){return qd(qge(l,o))}}]),n}(_r),Hge=[31,28,31,30,31,30,31,31,30,31,30,31],Vge=[31,29,31,30,31,30,31,31,30,31,30,31],Gge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=Vge[s]:i>=1&&i<=Hge[s]}},{key:"set",value:function(l,i,o){return l.setUTCDate(o),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Yge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(l,i,o){return l.setUTCMonth(0,o),l.setUTCHours(0,0,0,0),l}}]),n}(_r);function zM(e,t,n){var r,l,i,o,a,s,u,c;_n(2,arguments);var d=ou(),f=kr((r=(l=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(a=n.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&l!==void 0?l:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Tn(e),m=kr(t),g=p.getUTCDay(),b=m%7,v=(b+7)%7,h=(v=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=zM(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Kge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=zM(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Zge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=zM(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(_r);function Qge(e,t){_n(2,arguments);var n=kr(t);n%7===0&&(n=n-7);var r=1,l=Tn(e),i=l.getUTCDay(),o=n%7,a=(o+7)%7,s=(a=1&&i<=7}},{key:"set",value:function(l,i,o){return l=Qge(l,o),l.setUTCHours(0,0,0,0),l}}]),n}(_r),e0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=12}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):!a&&o===12?l.setUTCHours(0,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(_r),a0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=23}},{key:"set",value:function(l,i,o){return l.setUTCHours(o,0,0,0),l}}]),n}(_r),o0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(_r),i0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=24}},{key:"set",value:function(l,i,o){var a=o<=24?o%24:o;return l.setUTCHours(a,0,0,0),l}}]),n}(_r),l0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCMinutes(o,0,0),l}}]),n}(_r),s0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCSeconds(o,0),l}}]),n}(_r),u0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=kr((m=(g=(b=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(h=r.locale)===null||h===void 0||(y=h.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:k.weekStartsOn)!==null&&g!==void 0?g:(w=k.locale)===null||w===void 0||(_=w.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return x===""?Tn(n):new Date(NaN);var O={firstWeekContainsDate:C,weekStartsOn:M,locale:S},D=[new Dge],P=T.match(g0e).map(function(U){var V=U[0];if(V in ik){var te=ik[V];return te(U,S.formatLong)}return U}).join("").match(m0e),E=[],I=d7(P),A;try{var F=function(){var V=A.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&bB(V)&&iy(V,T,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&yB(V)&&iy(V,T,e);var te=V[0],ee=h0e[te];if(ee){var H=ee.incompatibleTokens;if(Array.isArray(H)){var Z=E.find(function(X){return H.includes(X.token)||X.token===te});if(Z)throw new RangeError("The format string mustn't contain `".concat(Z.fullToken,"` and `").concat(V,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&E.length>0)throw new RangeError("The format string mustn't contain `".concat(V,"` and any other token at the same time"));E.push({token:te,fullToken:V});var G=ee.run(x,V,S.match,O);if(!G)return{v:new Date(NaN)};D.push(G.setter),x=G.rest}else{if(te.match(x0e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(V==="''"?V="'":te==="'"&&(V=_0e(V)),x.indexOf(V)===0)x=x.slice(V.length);else return{v:new Date(NaN)}}};for(I.s();!(A=I.n()).done;){var j=F();if(ns(j)==="object")return j.v}}catch(U){I.e(U)}finally{I.f()}if(x.length>0&&b0e.test(x))return new Date(NaN);var z=D.map(function(U){return U.priority}).sort(function(U,V){return V-U}).filter(function(U,V,te){return te.indexOf(U)===V}).map(function(U){return D.filter(function(V){return V.priority===U}).sort(function(V,te){return te.subPriority-V.subPriority})}).map(function(U){return U[0]}),B=Tn(n);if(isNaN(B.getTime()))return new Date(NaN);var N=pB(B,oy(B)),R={},q=d7(z),Y;try{for(q.s();!(Y=q.n()).done;){var L=Y.value;if(!L.validate(N,O))return new Date(NaN);var W=L.set(N,R,O);Array.isArray(W)?(N=W[0],kge(R,W[1])):N=W}}catch(U){q.e(U)}finally{q.f()}return N}function _0e(e){return e.match(v0e)[1].replace(y0e,"'")}function T0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setDate(r),n}function k0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setHours(r),n}function S0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setMinutes(r),n}function C0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t),l=n.getFullYear(),i=n.getDate(),o=new Date(0);o.setFullYear(l,r,15),o.setHours(0,0,0,0);var a=wB(o);return n.setMonth(r,Math.min(i,a)),n}function M0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setSeconds(r),n}function P0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function u0(e){_n(1,arguments);var t=Tn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function c_(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tn(e),p=f.getDay(),m=(p2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],d0.timeZoneDelimiter.test(t.date)&&(t.date=e.split(d0.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var l=d0.timezone.exec(r);l?(t.time=r.replace(l[1],""),t.timezone=l[1]):t.time=r}return t}function R0e(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var l=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?l:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function L0e(e,t){if(t===null)return new Date(NaN);var n=e.match(O0e);if(!n)return new Date(NaN);var r=!!n[4],l=xp(n[1]),i=xp(n[2])-1,o=xp(n[3]),a=xp(n[4]),s=xp(n[5])-1;if(r)return B0e(t,a,s)?N0e(t,a,s):new Date(NaN);var u=new Date(0);return!j0e(t,i,o)||!z0e(t,l)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(l,o)),u)}function xp(e){return e?parseInt(e):1}function I0e(e){var t=e.match(A0e);if(!t)return NaN;var n=d_(t[1]),r=d_(t[2]),l=d_(t[3]);return W0e(n,r,l)?n*gb+r*mb+l*1e3:NaN}function d_(e){return e&&parseFloat(e.replace(",","."))||0}function $0e(e){if(e==="Z")return 0;var t=e.match(D0e);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),l=t[3]&&parseInt(t[3])||0;return q0e(r,l)?n*(r*gb+l*mb):NaN}function N0e(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var l=r.getUTCDay()||7,i=(t-1)*7+n+1-l;return r.setUTCDate(r.getUTCDate()+i),r}var F0e=[31,null,31,30,31,30,31,31,30,31,30,31];function PB(e){return e%400===0||e%4===0&&e%100!==0}function j0e(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(F0e[t]||(PB(e)?29:28))}function z0e(e,t){return t>=1&&t<=(PB(e)?366:365)}function B0e(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function W0e(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function q0e(e,t){return t>=0&&t<=59}const U0e=Object.freeze(Object.defineProperty({__proto__:null,default:MB},Symbol.toStringTag,{value:"Module"}));function H0e(e,t){var n,r;_n(1,arguments);var l=Tn(e);if(isNaN(l.getTime()))throw new RangeError("Invalid time value");var i=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),o=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(i!=="extended"&&i!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(o!=="date"&&o!=="time"&&o!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",s="",u=i==="extended"?"-":"",c=i==="extended"?":":"";if(o!=="time"){var d=tr(l.getDate(),2),f=tr(l.getMonth()+1,2),p=tr(l.getFullYear(),4);a="".concat(p).concat(u).concat(f).concat(u).concat(d)}if(o!=="date"){var m=l.getTimezoneOffset();if(m!==0){var g=Math.abs(m),b=tr(Math.floor(g/60),2),v=tr(g%60,2),h=m<0?"+":"-";s="".concat(h).concat(b,":").concat(v)}else s="Z";var y=tr(l.getHours(),2),w=tr(l.getMinutes(),2),_=tr(l.getSeconds(),2),x=a===""?"":"T",T=[y,w,_].join(c);a="".concat(a).concat(x).concat(T).concat(s)}return a}function V0e(e,t){_n(2,arguments);var n=Tn(e).getTime(),r=Tn(t.start).getTime(),l=Tn(t.end).getTime();if(!(r<=l))throw new RangeError("Invalid interval");return n>=r&&n<=l}var lk={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,u){switch(s){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(s,u){switch(s){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},l=function(s,u){var c=s.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return n(s,u);var p;switch(d){case"P":p=u.dateTime({width:"short"});break;case"PP":p=u.dateTime({width:"medium"});break;case"PPP":p=u.dateTime({width:"long"});break;case"PPPP":default:p=u.dateTime({width:"full"});break}return p.replace("{{date}}",n(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:l},o=i;t.default=o,e.exports=t.default})(lk,lk.exports);var G0e=lk.exports;const OB=lr(G0e),Y0e={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class X0e{constructor({locale:t,formats:n}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var r;return this.locale?/a/.test((r=this.locale.formatLong)===null||r===void 0?void 0:r.time()):!0},this.getFormatHelperText=r=>{var l,i;const o=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,a=this.locale||yb;return(i=(l=r.match(o))===null||l===void 0?void 0:l.map(s=>{const u=s[0];if(u==="p"||u==="P"){const c=OB[u];return c(s,a.formatLong,{})}return s}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&i!==void 0?i:r},this.parseISO=r=>MB(r),this.toISO=r=>H0e(r,{format:"extended"}),this.getCurrentLocaleCode=()=>{var r;return((r=this.locale)===null||r===void 0?void 0:r.code)||"en-US"},this.addSeconds=(r,l)=>Yhe(r,l),this.addMinutes=(r,l)=>Khe(r,l),this.addHours=(r,l)=>Qhe(r,l),this.addDays=(r,l)=>rk(r,l),this.addWeeks=(r,l)=>Jhe(r,l),this.addMonths=(r,l)=>av(r,l),this.addYears=(r,l)=>r7(r,l),this.isValid=r=>fB(this.date(r)),this.getDiff=(r,l,i)=>{var o;const a=(o=this.date(l))!==null&&o!==void 0?o:r;if(!this.isValid(a))return 0;switch(i){case"years":return tme(r,a);case"quarters":return ome(r,a);case"months":return cB(r,a);case"weeks":return sme(r,a);case"days":return dB(r,a);case"hours":return cme(r,a);case"minutes":return dme(r,a);case"seconds":return fme(r,a);default:return vb(r,a)}},this.isAfter=(r,l)=>s0(r,l),this.isBefore=(r,l)=>zc(r,l),this.startOfDay=r=>Wd(r),this.endOfDay=r=>ak(r),this.getHours=r=>pge(r),this.setHours=(r,l)=>k0e(r,l),this.setMinutes=(r,l)=>S0e(r,l),this.getSeconds=r=>gge(r),this.setSeconds=(r,l)=>M0e(r,l),this.isSameDay=(r,l)=>bge(r,l),this.isSameMonth=(r,l)=>wge(r,l),this.isSameYear=(r,l)=>xge(r,l),this.isSameHour=(r,l)=>_ge(r,l),this.startOfYear=r=>c0(r),this.endOfYear=r=>s_(r),this.startOfMonth=r=>u0(r),this.endOfMonth=r=>ok(r),this.startOfWeek=r=>c_(r,{locale:this.locale}),this.endOfWeek=r=>l_(r,{locale:this.locale}),this.getYear=r=>vge(r),this.setYear=(r,l)=>P0e(r,l),this.date=r=>typeof r>"u"?new Date:r===null?null:new Date(r),this.toJsDate=r=>r,this.parse=(r,l)=>r===""?null:w0e(r,l,new Date,{locale:this.locale}),this.format=(r,l)=>this.formatByString(r,this.formats[l]),this.formatByString=(r,l)=>xB(r,l,{locale:this.locale}),this.isEqual=(r,l)=>r===null&&l===null?!0:yge(r,l),this.isNull=r=>r===null,this.isAfterDay=(r,l)=>s0(r,ak(l)),this.isBeforeDay=(r,l)=>zc(r,Wd(l)),this.isBeforeYear=(r,l)=>zc(r,c0(l)),this.isAfterYear=(r,l)=>s0(r,s_(l)),this.isWithinRange=(r,[l,i])=>V0e(r,{start:l,end:i}),this.formatNumber=r=>r,this.getMinutes=r=>hge(r),this.getDate=r=>dge(r),this.setDate=(r,l)=>T0e(r,l),this.getMonth=r=>mge(r),this.getDaysInMonth=r=>wB(r),this.setMonth=(r,l)=>C0e(r,l),this.getMeridiemText=r=>r==="am"?"AM":"PM",this.getNextMonth=r=>av(r,1),this.getPreviousMonth=r=>av(r,-1),this.getMonthArray=r=>{const i=[c0(r)];for(;i.length<12;){const o=i[i.length-1];i.push(this.getNextMonth(o))}return i},this.mergeDateAndTime=(r,l)=>this.setSeconds(this.setMinutes(this.setHours(r,this.getHours(l)),this.getMinutes(l)),this.getSeconds(l)),this.getWeekdays=()=>{const r=new Date;return pme({start:c_(r,{locale:this.locale}),end:l_(r,{locale:this.locale})}).map(l=>this.formatByString(l,"EEEEEE"))},this.getWeekArray=r=>{const l=c_(u0(r),{locale:this.locale}),i=l_(ok(r),{locale:this.locale});let o=0,a=l;const s=[];let u=null;for(;zc(a,i);){const c=Math.floor(o/7);s[c]=s[c]||[];const d=fge(a);u!==d&&(u=d,s[c].push(a),o+=1),a=rk(a,1)}return s},this.getYearRange=(r,l)=>{const i=c0(r),o=s_(l),a=[];let s=i;for(;zc(s,o);)a.push(s),s=r7(s,1);return a},this.locale=t,this.formats=Object.assign({},Y0e,n)}isBeforeMonth(t,n){return zc(t,u0(n))}isAfterMonth(t,n){return s0(t,u0(n))}}const K0e={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class Z0e extends X0e{constructor(...t){super(...t),this.formatTokenMap=K0e,this.expandFormat=n=>{const r=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(r).map(l=>{const i=l[0];if(i==="p"||i==="P"){const o=OB[i],a=this.locale||yb;return o(l,a.formatLong,{})}return l}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const Q0e=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:Z0e},Symbol.toStringTag,{value:"Module"})),AB=Qn(Q0e);function DB(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(n)!==-1):e.indexOf(t)!==-1}const EB=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},RB=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?RB(t.shadowRoot):t:null};function J0e(e){return yn("PrivatePickersMonth",e)}const sk=hn("PrivatePickersMonth",["root","selected"]),eve=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],tve=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},J0e,t)},nve=Et(dr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${sk.selected}`]:t.selected}]})(({theme:e})=>Ie({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${sk.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),f7=()=>{},rve=e=>{const{disabled:t,onSelect:n,selected:r,value:l,tabIndex:i,hasFocus:o,onFocus:a=f7,onBlur:s=f7}=e,u=Kt(e,eve),c=tve(e),d=()=>{n(l)},f=ge.useRef(null);return no(()=>{if(o){var p;(p=f.current)==null||p.focus()}},[o]),ke.jsx(nve,Ie({ref:f,component:"button",type:"button",className:c.root,tabIndex:i,onClick:d,onKeyDown:EB(d),color:r?"primary":void 0,variant:r?"h5":"subtitle1",disabled:t,onFocus:p=>a(p,l),onBlur:p=>s(p,l)},u))},ia=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Ie({},e)}}}}),ave={previousMonth:"Vorige maand",nextMonth:"Volgende maand",openPreviousView:"open vorige view",openNextView:"open volgende view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"jaarweergave is geopend, schakel over naar kalenderweergave":"kalenderweergave is geopend, switch naar jaarweergave",start:"Start",end:"Einde",cancelButtonLabel:"Annuleren",clearButtonLabel:"Resetten",okButtonLabel:"OK",todayButtonLabel:"Vandaag",clockLabelText:(e,t,n)=>`Selecteer ${e}. ${t===null?"Geen tijd geselecteerd":`Geselecteerde tijd is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} uren`,minutesClockNumberText:e=>`${e} minuten`,secondsClockNumberText:e=>`${e} seconden`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies datum, geselecteerde datum is ${t.format(t.date(e),"fullDate")}`:"Kies datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies tijd, geselecteerde tijd is ${t.format(t.date(e),"fullTime")}`:"Kies tijd",timeTableLabel:"kies tijd",dateTableLabel:"kies datum"},ove=ia(ave),ive={previousMonth:"Poprzedni miesiąc",nextMonth:"Następny miesiąc",openPreviousView:"otwórz poprzedni widok",openNextView:"otwórz następny widok",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"otwarty jest widok roku, przełącz na widok kalendarza":"otwarty jest widok kalendarza, przełącz na widok roku",start:"Początek",end:"Koniec",cancelButtonLabel:"Anuluj",clearButtonLabel:"Wyczyść",okButtonLabel:"Zatwierdź",todayButtonLabel:"Dzisiaj",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Nie wybrano czasu":`Wybrany czas to ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} godzin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz datę, obecnie wybrana data to ${t.format(t.date(e),"fullDate")}`:"Wybierz datę",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz czas, obecnie wybrany czas to ${t.format(t.date(e),"fullTime")}`:"Wybierz czas",timeTableLabel:"wybierz czas",dateTableLabel:"wybierz datę"},lve=ia(ive),sve={previousMonth:"Mês anterior",nextMonth:"Próximo mês",openPreviousView:"Abrir próxima seleção",openNextView:"Abrir seleção anterior",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Seleção de ano está aberta, alternando para seleção de calendário":"Seleção de calendários está aberta, alternando para seleção de ano",start:"Início",end:"Fim",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpar",okButtonLabel:"OK",todayButtonLabel:"Hoje",datePickerDefaultToolbarTitle:"Selecione a data",dateTimePickerDefaultToolbarTitle:"Selecione data e hora",timePickerDefaultToolbarTitle:"Selecione a hora",dateRangePickerDefaultToolbarTitle:"Selecione o intervalo entre datas",clockLabelText:(e,t,n)=>`Selecione ${e}. ${t===null?"Hora não selecionada":`Selecionado a hora ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma data, data selecionada ${t.format(t.date(e),"fullDate")}`:"Escolha uma data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma hora, hora selecionada ${t.format(t.date(e),"fullTime")}`:"Escolha uma hora",timeTableLabel:"escolha uma hora",dateTableLabel:"escolha uma data"},uve=ia(sve),cve={previousMonth:"Önceki ay",nextMonth:"Sonraki ay",openPreviousView:"sonraki görünüm",openNextView:"önceki görünüm",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"yıl görünümü açık, takvim görünümüne geç":"takvim görünümü açık, yıl görünümüne geç",inputModeToggleButtonAriaLabel:(e,t)=>e?`metin girişi görünümü açık, şuraya gidin: ${t} görünümü`:`${t} görünüm açık, metin girişi görünümüne gidin`,start:"Başlangıç",end:"Bitiş",cancelButtonLabel:"iptal",clearButtonLabel:"Temizle",okButtonLabel:"Tamam",todayButtonLabel:"Bugün",datePickerDefaultToolbarTitle:"Tarih Seç",dateTimePickerDefaultToolbarTitle:"Tarih & Saat seç",timePickerDefaultToolbarTitle:"Saat seç",dateRangePickerDefaultToolbarTitle:"Tarih aralığı seçin",clockLabelText:(e,t,n)=>`${e} seç. ${t===null?"Zaman seçilmedi":`Seçilen zaman: ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} saat`,minutesClockNumberText:e=>`${e} dakika`,secondsClockNumberText:e=>`${e} saniye`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Tarih seçin, seçilen tarih: ${t.format(e,"fullDate")}`:"Tarih seç",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Saat seçin, seçilen saat: ${t.format(e,"fullTime")}`:"Saat seç",timeTableLabel:"saat seç",dateTableLabel:"tarih seç"},dve=ia(cve),f0={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},p7={calendar:"Kalenderansicht",clock:"Uhransicht"},fve={previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",openPreviousView:"Letzte Ansicht öffnen",openNextView:"Nächste Ansicht öffnen",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Jahresansicht ist geöffnet, zur Kalenderansicht wechseln":"Kalenderansicht ist geöffnet, zur Jahresansicht wechseln",inputModeToggleButtonAriaLabel:(e,t)=>e?`Texteingabeansicht ist geöffnet, zur ${p7[t]} wechseln`:`${p7[t]} ist geöffnet, zur Texteingabeansicht wechseln`,start:"Beginn",end:"Ende",cancelButtonLabel:"Abbrechen",clearButtonLabel:"Löschen",okButtonLabel:"OK",todayButtonLabel:"Heute",datePickerDefaultToolbarTitle:"Datum auswählen",dateTimePickerDefaultToolbarTitle:"Datum & Uhrzeit auswählen",timePickerDefaultToolbarTitle:"Uhrzeit auswählen",dateRangePickerDefaultToolbarTitle:"Datumsbereich auswählen",clockLabelText:(e,t,n)=>{var r;return`${(r=f0[e])!=null?r:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${f0.hours}`,minutesClockNumberText:e=>`${e} ${f0.minutes}`,secondsClockNumberText:e=>`${e} ${f0.seconds}`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Datum auswählen, gewähltes Datum ist ${t.format(t.date(e),"fullDate")}`:"Datum auswählen",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Uhrzeit auswählen, gewählte Uhrzeit ist ${t.format(t.date(e),"fullTime")}`:"Uhrzeit auswählen",timeTableLabel:"Uhrzeit auswählen",dateTableLabel:"Datum auswählen"},pve=ia(fve),hve={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},mve={previousMonth:"Último mes",nextMonth:"Próximo mes",openPreviousView:"abrir la última vista",openNextView:"abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista del año está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista del año",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista de entrada de texto está abierta, ir a la vista ${t}`:`la vista ${t} está abierta, ir a la vista de entrada de texto`,start:"Empezar",end:"Terminar",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerDefaultToolbarTitle:"Seleccionar fecha",dateTimePickerDefaultToolbarTitle:"Seleccionar fecha & hora",timePickerDefaultToolbarTitle:"Seleccionar hora",dateRangePickerDefaultToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,n)=>`Seleccione ${hve[e]}. ${t===null?"Sin tiempo seleccionado":`El tiempo seleccionado es ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la fecha, la fecha elegida es ${t.format(t.date(e),"fullDate")}`:"Elige la fecha",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la hora, la hora elegido es ${t.format(t.date(e),"fullTime")}`:"Elige la hora",timeTableLabel:"elige la fecha",dateTableLabel:"elige la hora"},gve=ia(mve),vve={previousMonth:"ماه گذشته",nextMonth:"ماه آینده",openPreviousView:"نمای قبلی",openNextView:"نمای بعدی",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"نمای سال باز است، رفتن به نمای تقویم":"نمای تقویم باز است، رفتن به نمای سال",inputModeToggleButtonAriaLabel:(e,t)=>e?`نمای ورودی متن باز است، رفتن به نمای ${t}`:`نمای ${t} باز است، رفتن به نمای ورودی متن`,start:"شروع",end:"پایان",cancelButtonLabel:"لغو",clearButtonLabel:"پاک کردن",okButtonLabel:"اوکی",todayButtonLabel:"امروز",datePickerDefaultToolbarTitle:"تاریخ را انتخاب کنید",dateTimePickerDefaultToolbarTitle:"تاریخ و ساعت را انتخاب کنید",timePickerDefaultToolbarTitle:"ساعت را انتخاب کنید",dateRangePickerDefaultToolbarTitle:"محدوده تاریخ را انتخاب کنید",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"هیچ ساعتی انتخاب نشده است":`ساعت انتخاب ${n.format(t,"fullTime")} می باشد`}`,hoursClockNumberText:e=>`${e} ساعت ها`,minutesClockNumberText:e=>`${e} دقیقه ها`,secondsClockNumberText:e=>`${e} ثانیه ها`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`تاریخ را انتخاب کنید، تاریخ انتخاب شده ${t.format(t.date(e),"fullDate")} می باشد`:"تاریخ را انتخاب کنید",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`ساعت را انتخاب کنید، ساعت انتخاب شده ${t.format(t.date(e),"fullTime")} می باشد`:"ساعت را انتخاب کنید",timeTableLabel:"انتخاب تاریخ",dateTableLabel:"انتخاب ساعت"},yve=ia(vve),bve={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},h7={calendar:"kalenteri",clock:"kello"},xve={previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",openPreviousView:"avaa edellinen kuukausi",openNextView:"avaa seuraava kuukausi",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"vuosinäkymä on auki, vaihda kalenterinäkymään":"kalenterinäkymä on auki, vaihda vuosinäkymään",inputModeToggleButtonAriaLabel:(e,t)=>e?`tekstikenttä on auki, mene ${h7[t]}näkymään`:`${h7[t]}näkymä on auki, mene tekstikenttään`,start:"Alku",end:"Loppu",cancelButtonLabel:"Peruuta",clearButtonLabel:"Tyhjennä",okButtonLabel:"OK",todayButtonLabel:"Tänään",datePickerDefaultToolbarTitle:"Valitse päivä",dateTimePickerDefaultToolbarTitle:"Valitse päivä ja aika",timePickerDefaultToolbarTitle:"Valitse aika",dateRangePickerDefaultToolbarTitle:"Valitse aikaväli",clockLabelText:(e,t,n)=>`Valitse ${bve[e]}. ${t===null?"Ei aikaa valittuna":`Valittu aika on ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} tuntia`,minutesClockNumberText:e=>`${e} minuuttia`,secondsClockNumberText:e=>`${e} sekunttia`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse päivä, valittu päivä on ${t.format(t.date(e),"fullDate")}`:"Valitse päivä",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse aika, valittu aika on ${t.format(t.date(e),"fullTime")}`:"Valitse aika",timeTableLabel:"valitse aika",dateTableLabel:"valitse päivä"},wve=ia(xve),_ve={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},m7={calendar:"kalendáře",clock:"času"},Tve={previousMonth:"Další měsíc",nextMonth:"Předchozí month",openPreviousView:"otevřít předchozí zobrazení",openNextView:"otevřít další zobrazení",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"roční zobrazení otevřeno, přepněte do zobrazení kalendáře":"zobrazení kalendáře otevřeno, přepněte do zobrazení roku",inputModeToggleButtonAriaLabel:(e,t)=>e?`Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${m7[t]}`:`Zobrazení ${m7[t]} je otevřené, přepněte do zobrazení textového pole`,start:"Začátek",end:"Konec",cancelButtonLabel:"Zrušit",clearButtonLabel:"Vymazat",okButtonLabel:"Potvrdit",todayButtonLabel:"Dnes",datePickerDefaultToolbarTitle:"Vyberte datum",dateTimePickerDefaultToolbarTitle:"Vyberte datum a čas",timePickerDefaultToolbarTitle:"Vyberte čas",dateRangePickerDefaultToolbarTitle:"Vyberete rozmezí dat",clockLabelText:(e,t,n)=>{var r;return`${(r=_ve[e])!=null?r:e} vybrány. ${t===null?"Není vybrán čas":`Vybraný čas je ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} hodin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané datum, vybrané datum je ${t.format(e,"fullDate")}`:"Vyberte datum",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané čas, vybraný čas je ${t.format(e,"fullTime")}`:"Vyberte čas",timeTableLabel:"vyberte čas",dateTableLabel:"vyberte datum"},kve=ia(Tve),Sve={hours:"heures",minutes:"minutes",seconds:"secondes"},g7={calendar:"calendrier",clock:"horloge"},Cve={previousMonth:"Mois précédent",nextMonth:"Mois suivant",openPreviousView:"Ouvrir la vue précédente",openNextView:"Ouvrir la vue suivante",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"La vue année est ouverte, ouvrir la vue calendrier":"La vue calendrier est ouverte, ouvrir la vue année",inputModeToggleButtonAriaLabel:(e,t)=>e?`passer du champ text au ${g7[t]}`:`passer du ${g7[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,n)=>`Choix des ${Sve[e]}. ${t===null?"Aucune heure choisie":`L'heure choisie est ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} heures`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} secondes`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir la date, la date sélectionnée est ${t.format(t.date(e),"fullDate")}`:"Choisir la date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir l'heure, l'heure sélectionnée est ${t.format(t.date(e),"fullTime")}`:"Choisir l'heure",timeTableLabel:"choix de l'heure",dateTableLabel:"choix de la date"},Mve=ia(Cve),p0={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},v7={calendar:"naptár",clock:"óra"},Pve={previousMonth:"Előző hónap",nextMonth:"Következő hónap",openPreviousView:"Előző nézet megnyitása",openNextView:"Következő nézet megnyitása",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"az évválasztó már nyitva, váltson a naptárnézetre":"a naptárnézet már nyitva, váltson az évválasztóra",inputModeToggleButtonAriaLabel:(e,t)=>e?`szöveges beviteli nézet aktív, váltás ${v7[t]} nézetre`:`${v7[t]} beviteli nézet aktív, váltás szöveges beviteli nézetre`,start:"Kezdő dátum",end:"Záró dátum",cancelButtonLabel:"Mégse",clearButtonLabel:"Törlés",okButtonLabel:"OK",todayButtonLabel:"Ma",datePickerDefaultToolbarTitle:"Dátum kiválasztása",dateTimePickerDefaultToolbarTitle:"Dátum és idő kiválasztása",timePickerDefaultToolbarTitle:"Idő kiválasztása",dateRangePickerDefaultToolbarTitle:"Dátumhatárok kiválasztása",clockLabelText:(e,t,n)=>{var r;return`${(r=p0[e])!=null?r:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${p0.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${p0.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${p0.seconds.toLowerCase()}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon dátumot, a kiválasztott dátum: ${t.format(e,"fullDate")}`:"Válasszon dátumot",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon időt, a kiválasztott idő: ${t.format(e,"fullTime")}`:"Válasszon időt",timeTableLabel:"válasszon időt",dateTableLabel:"válasszon dátumot"},Ove=ia(Pve),LB={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},IB=LB,Ave=ia(LB),Dve={previousMonth:"Forrige måned",nextMonth:"Neste måned",openPreviousView:"åpne forrige visning",openNextView:"åpne neste visning",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvisning er åpen, bytt til kalendervisning":"kalendervisning er åpen, bytt til årsvisning",start:"Start",end:"Slutt",cancelButtonLabel:"Avbryt",clearButtonLabel:"Fjern",okButtonLabel:"OK",todayButtonLabel:"I dag",clockLabelText:(e,t,n)=>`Velg ${e}. ${t===null?"Ingen tid valgt":`Valgt tid er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timer`,minutesClockNumberText:e=>`${e} minutter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg dato, valgt dato er ${t.format(t.date(e),"fullDate")}`:"Velg dato",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg tid, valgt tid er ${t.format(t.date(e),"fullTime")}`:"Velg tid",timeTableLabel:"velg tid",dateTableLabel:"velg dato"},Eve=ia(Dve),Rve={previousMonth:"Föregående månad",nextMonth:"Nästa månad",openPreviousView:"öppna föregående vy",openNextView:"öppna nästa vy",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvyn är öppen, byt till kalendervy":"kalendervyn är öppen, byt till årsvy",start:"Start",end:"Slut",cancelButtonLabel:"Avbryt",clearButtonLabel:"Rensa",okButtonLabel:"OK",todayButtonLabel:"Idag",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Ingen tid vald":`Vald tid är ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timmar`,minutesClockNumberText:e=>`${e} minuter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj datum, valt datum är ${t.format(t.date(e),"fullDate")}`:"Välj datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj tid, vald tid är ${t.format(t.date(e),"fullTime")}`:"Välj tid",timeTableLabel:"välj tid",dateTableLabel:"välj datum"},Lve=ia(Rve),Ive={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},$ve={previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista dell'anno è aperta, passare alla vista del calendario":"la vista dell'calendario è aperta, passare alla vista dell'anno",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista del campo di testo è aperta, passare alla vista ${t}`:`la vista aperta è: ${t}, vai alla vista del campo di testo`,start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerDefaultToolbarTitle:"Seleziona data",dateTimePickerDefaultToolbarTitle:"Seleziona data e orario",timePickerDefaultToolbarTitle:"Seleziona orario",dateRangePickerDefaultToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,n)=>`Seleziona ${Ive[e]}. ${t===null?"Nessun orario selezionato":`L'ora selezionata è ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli la data, la data selezionata è ${t.format(t.date(e),"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli l'ora, l'ora selezionata è ${t.format(t.date(e),"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data"},Nve=ia($ve),Fve={hours:"小时",minutes:"分钟",seconds:"秒"},jve={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,n)=>`Select ${Fve[e]}. ${t===null?"未选择时间":`已选择${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e}小时`,minutesClockNumberText:e=>`${e}分钟`,secondsClockNumberText:e=>`${e}秒`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择日期,已选择${t.format(t.date(e),"fullDate")}`:"选择日期",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择时间,已选择${t.format(t.date(e),"fullTime")}`:"选择时间",timeTableLabel:"选择时间",dateTableLabel:"选择日期"},zve=ia(jve),Bve={hours:"시간을",minutes:"분을",seconds:"초를"},Wve={previousMonth:"이전 달",nextMonth:"다음 달",openPreviousView:"이전 화면 보기",openNextView:"다음 화면 보기",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"연도 선택 화면에서 달력 화면으로 전환하기":"달력 화면에서 연도 선택 화면으로 전환하기",inputModeToggleButtonAriaLabel:(e,t)=>e?`텍스트 입력 화면에서 ${t} 화면으로 전환하기`:`${t} 화면에서 텍스트 입력 화면으로 전환하기`,start:"시작",end:"종료",cancelButtonLabel:"취소",clearButtonLabel:"초기화",okButtonLabel:"확인",todayButtonLabel:"오늘",datePickerDefaultToolbarTitle:"날짜 선택하기",dateTimePickerDefaultToolbarTitle:"날짜 & 시간 선택하기",timePickerDefaultToolbarTitle:"시간 선택하기",dateRangePickerDefaultToolbarTitle:"날짜 범위 선택하기",clockLabelText:(e,t,n)=>`${Bve[e]} 선택하세요. ${t===null?"시간을 선택하지 않았습니다.":`현재 선택된 시간은 ${n.format(t,"fullTime")}입니다.`}`,hoursClockNumberText:e=>`${e}시간`,minutesClockNumberText:e=>`${e}분`,secondsClockNumberText:e=>`${e}초`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`날짜를 선택하세요. 현재 선택된 날짜는 ${t.format(t.date(e),"fullDate")}입니다.`:"날짜를 선택하세요",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`시간을 선택하세요. 현재 선택된 시간은 ${t.format(t.date(e),"fullTime")}입니다.`:"시간을 선택하세요",timeTableLabel:"선택한 시간",dateTableLabel:"선택한 날짜"},qve=ia(Wve),Uve={previousMonth:"Fyrri mánuður",nextMonth:"Næsti mánuður",openPreviousView:"opna fyrri skoðun",openNextView:"opna næstu skoðun",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"ársskoðun er opin, skipta yfir í dagatalsskoðun":"dagatalsskoðun er opin, skipta yfir í ársskoðun",inputModeToggleButtonAriaLabel:(e,t)=>{const n=t==="calendar"?"dagatals":"klukku";return e?`textainnsláttur er opinn, fara í ${n}skoðun`:`${n}skoðun er opin, opna fyrir textainnslátt`},start:"Upphaf",end:"Endir",cancelButtonLabel:"Hætta við",clearButtonLabel:"Hreinsa",okButtonLabel:"OK",todayButtonLabel:"Í dag",datePickerDefaultToolbarTitle:"Velja dagsetningu",dateTimePickerDefaultToolbarTitle:"Velja dagsetningu og tíma",timePickerDefaultToolbarTitle:"Velja tíma",dateRangePickerDefaultToolbarTitle:"Velja tímabil",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Enginn tími valinn":`Valinn tími er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} klukkustundir`,minutesClockNumberText:e=>`${e} mínútur`,secondsClockNumberText:e=>`${e} sekúndur`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja dagsetningu, valin dagsetning er ${t.format(t.date(e),"fullDate")}`:"Velja dagsetningu",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja tíma, valinn tími er ${t.format(t.date(e),"fullTime")}`:"Velja tíma",timeTableLabel:"velja tíma",dateTableLabel:"velja dagsetningu"},Hve=ia(Uve),h0={hours:"時間",minutes:"分",seconds:"秒"},y7={calendar:"カレンダー表示",clock:"時計表示"},Vve={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${y7[t]}に切り替える`:`${y7[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,n)=>{var r;return`${(r=h0[e])!=null?r:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${n.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${h0.hours}`,minutesClockNumberText:e=>`${e} ${h0.minutes}`,secondsClockNumberText:e=>`${e} ${h0.seconds}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`日付を選択してください。選択した日付は ${t.format(e,"fullDate")} です`:"日付を選択してください",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`時間を選択してください。選択した時間は ${t.format(e,"fullTime")} です`:"時間を選択してください",timeTableLabel:"時間を選択",dateTableLabel:"日付を選択"},Gve=ia(Vve),Yve={previousMonth:"Попередній місяць",nextMonth:"Наступний місяць",openPreviousView:"відкрити попередній вигляд",openNextView:"відкрити наступний вигляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"річний вигляд відкрито, перейти до календарного вигляду":"календарний вигляд відкрито, перейти до річного вигляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`текстове поле відкрите, перейти до ${t} вигляду`:`${t} вигляд наразі відкрито, перейти до текстового поля`,start:"Початок",end:"Кінець",cancelButtonLabel:"Відміна",clearButtonLabel:"Очистити",okButtonLabel:"OK",todayButtonLabel:"Сьогодні",datePickerDefaultToolbarTitle:"Вибрати дату",dateTimePickerDefaultToolbarTitle:"Вибрати дату і час",timePickerDefaultToolbarTitle:"Вибрати час",dateRangePickerDefaultToolbarTitle:"Вибрати календарний період",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Час не вибраний":`Вибрано час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} годин`,minutesClockNumberText:e=>`${e} хвилин`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть дату, обрана дата ${t.format(e,"fullDate")}`:"Оберіть дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть час, обраний час ${t.format(e,"fullTime")}`:"Оберіть час",timeTableLabel:"оберіть час",dateTableLabel:"оберіть дату"},Xve=ia(Yve),Kve={previousMonth:"پچھلا مہینہ",nextMonth:"اگلا مہینہ",openPreviousView:"پچھلا ویو کھولیں",openNextView:"اگلا ویو کھولیں",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں":"کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں",inputModeToggleButtonAriaLabel:(e,t)=>e?`،ٹیکسٹ ویو کھلا ہے ${t} ویو کھولیں`:`${t} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`,start:"شروع",end:"ختم",cancelButtonLabel:"کینسل",clearButtonLabel:"کلئیر",okButtonLabel:"اوکے",todayButtonLabel:"آج",datePickerDefaultToolbarTitle:"تاریخ منتخب کریں",dateTimePickerDefaultToolbarTitle:"تاریخ اور وقت منتخب کریں",timePickerDefaultToolbarTitle:"وقت منتخب کریں",dateRangePickerDefaultToolbarTitle:"تاریخوں کی رینج منتخب کریں",clockLabelText:(e,t,n)=>`${e} منتخب کریں ${t===null?"کوئی وقت منتخب نہیں":`منتخب وقت ہے ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} گھنٹے`,minutesClockNumberText:e=>`${e} منٹ`,secondsClockNumberText:e=>`${e} سیکنڈ`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${t.format(e,"fullDate")}`:"تاریخ منتخب کریں",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`وقت منتخب کریں، منتخب شدہ وقت ہے ${t.format(e,"fullTime")}`:"وقت منتخب کریں",timeTableLabel:"وقت منتخب کریں",dateTableLabel:"تاریخ منتخب کریں"},Zve=ia(Kve),f_={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},Qve={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${f_[t]}`:`Выгляд ${f_[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,n)=>`Абярыце ${f_[e]}. ${t===null?"Час не абраны":`Абраны час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} гадзін`,minutesClockNumberText:e=>`${e} хвілін`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць дату, абрана дата ${t.format(e,"fullDate")}`:"Абраць дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць час, абрыны час ${t.format(e,"fullTime")}`:"Абраць час",timeTableLabel:"абраць час",dateTableLabel:"абраць дату"},Jve=ia(Qve),eye={hours:"часы",minutes:"минуты",seconds:"секунды"},b7={calendar:"календарный",clock:"часовой"},tye={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${b7[t]} вид`:`Открыт ${b7[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,n)=>`Выбрать ${eye[e]}. ${t===null?"Время не выбрано":`Выбрано время ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату"},nye=ia(tye),BM=ge.createContext(null);function rye(e){const t=pn({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:r,dateFormats:l,dateLibInstance:i,locale:o,adapterLocale:a,localeText:s}=t,u=ge.useMemo(()=>new r({locale:a??o,formats:l,instance:i}),[r,o,a,l,i]),c=ge.useMemo(()=>({minDate:u.date("1900-01-01T00:00:00.000"),maxDate:u.date("2099-12-31T00:00:00.000")}),[u]),d=ge.useMemo(()=>({utils:u,defaultDates:c,localeText:Ie({},IB,s??{})}),[c,u,s]);return ke.jsx(BM.Provider,{value:d,children:n})}const ng=()=>{const e=ge.useContext(BM);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},Br=()=>ng().utils,rg=()=>ng().defaultDates,Xi=()=>ng().localeText,ag=()=>{const e=Br();return ge.useRef(e.date()).current};function $B(e){return yn("MuiMonthPicker",e)}const aye=hn("MuiMonthPicker",["root"]),Ih=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:l,isDateDisabled:i,utils:o})=>{const a=o.startOfDay(o.date());n&&o.isBefore(l,a)&&(l=a),t&&o.isAfter(r,a)&&(r=a);let s=e,u=e;for(o.isBefore(e,l)&&(s=o.date(l),u=null),o.isAfter(e,r)&&(u&&(u=o.date(r)),s=null);s||u;){if(s&&o.isAfter(s,r)&&(s=null),u&&o.isBefore(u,l)&&(u=null),s){if(!i(s))return s;s=o.addDays(s,1)}if(u){if(!i(u))return u;u=o.addDays(u,-1)}}return null},WM=(e,t)=>{const n=e.date(t);return e.isValid(n)?n:null},Ci=(e,t,n)=>{if(t==null)return n;const r=e.date(t);return e.isValid(r)?r:n},oye=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],iye=e=>{const{classes:t}=e;return vn({root:["root"]},$B,t)};function lye(e,t){const n=Br(),r=rg(),l=pn({props:e,name:t});return Ie({disableFuture:!1,disablePast:!1},l,{minDate:Ci(n,l.minDate,r.minDate),maxDate:Ci(n,l.maxDate,r.maxDate)})}const sye=Et("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),NB=ge.forwardRef(function(t,n){const r=Br(),l=ag(),i=lye(t,"MuiMonthPicker"),{className:o,date:a,disabled:s,disableFuture:u,disablePast:c,maxDate:d,minDate:f,onChange:p,shouldDisableMonth:m,readOnly:g,disableHighlightToday:b,autoFocus:v=!1,onMonthFocus:h,hasFocus:y,onFocusedViewChange:w}=i,_=Kt(i,oye),x=i,T=iye(x),k=Ym(),S=ge.useMemo(()=>a??r.startOfMonth(l),[l,r,a]),C=ge.useMemo(()=>a!=null?r.getMonth(a):b?null:r.getMonth(l),[l,a,r,b]),[M,O]=ge.useState(()=>C||r.getMonth(l)),D=ge.useCallback(R=>{const q=r.startOfMonth(c&&r.isAfter(l,f)?l:f),Y=r.startOfMonth(u&&r.isBefore(l,d)?l:d);return r.isBefore(R,q)||r.isAfter(R,Y)?!0:m?m(R):!1},[u,c,d,f,l,m,r]),P=R=>{if(g)return;const q=r.setMonth(S,R);p(q,"finish")},[E,I]=Zl({name:"MonthPicker",state:"hasFocus",controlled:y,default:v}),A=ge.useCallback(R=>{I(R),w&&w(R)},[I,w]),F=ge.useCallback(R=>{D(r.setMonth(S,R))||(O(R),A(!0),h&&h(R))},[D,r,S,A,h]);ge.useEffect(()=>{O(R=>C!==null&&R!==C?C:R)},[C]);const j=yo(R=>{switch(R.key){case"ArrowUp":F((12+M-3)%12),R.preventDefault();break;case"ArrowDown":F((12+M+3)%12),R.preventDefault();break;case"ArrowLeft":F((12+M+(k.direction==="ltr"?-1:1))%12),R.preventDefault();break;case"ArrowRight":F((12+M+(k.direction==="ltr"?1:-1))%12),R.preventDefault();break}}),z=ge.useCallback((R,q)=>{F(q)},[F]),B=ge.useCallback(()=>{A(!1)},[A]),N=r.getMonth(l);return ke.jsx(sye,Ie({ref:n,className:ma(T.root,o),ownerState:x,onKeyDown:j},_,{children:r.getMonthArray(S).map(R=>{const q=r.getMonth(R),Y=r.format(R,"monthShort"),L=s||D(R);return ke.jsx(rve,{value:q,selected:q===C,tabIndex:q===M&&!L?0:-1,hasFocus:E&&q===M,onSelect:P,onFocus:z,onBlur:B,disabled:L,"aria-current":N===q?"date":void 0,children:Y},Y)})}))});function qM(e,t,n){const{value:r,onError:l}=e,i=ng(),o=ge.useRef(null),a=t({adapter:i,value:r,props:e});return ge.useEffect(()=>{l&&!n(a,o.current)&&l(a,r),o.current=a},[n,l,o,a,r]),a}const UM=({props:e,value:t,adapter:n})=>{const r=n.utils.date(),l=n.utils.date(t),i=Ci(n.utils,e.minDate,n.defaultDates.minDate),o=Ci(n.utils,e.maxDate,n.defaultDates.maxDate);if(l===null)return null;switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(l)):return"shouldDisableDate";case!!(e.disableFuture&&n.utils.isAfterDay(l,r)):return"disableFuture";case!!(e.disablePast&&n.utils.isBeforeDay(l,r)):return"disablePast";case!!(i&&n.utils.isBeforeDay(l,i)):return"minDate";case!!(o&&n.utils.isAfterDay(l,o)):return"maxDate";default:return null}},FB=({shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l})=>{const i=ng();return ge.useCallback(o=>UM({adapter:i,value:o,props:{shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l}})!==null,[i,e,t,n,r,l])},uye=(e,t)=>e===t,HM=e=>qM(e,UM,uye),cye=(e,t,n)=>(r,l)=>{switch(l.type){case"changeMonth":return Ie({},r,{slideDirection:l.direction,currentMonth:l.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Ie({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&l.focusedDay!=null&&n.isSameDay(l.focusedDay,r.focusedDay))return r;const i=l.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,l.focusedDay);return Ie({},r,{focusedDay:l.focusedDay,isMonthSwitchingAnimating:i&&!e&&!l.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(l.focusedDay):r.currentMonth,slideDirection:l.focusedDay!=null&&n.isAfterDay(l.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},dye=({date:e,defaultCalendarMonth:t,disableFuture:n,disablePast:r,disableSwitchToMonthOnDayFocus:l=!1,maxDate:i,minDate:o,onMonthChange:a,reduceAnimations:s,shouldDisableDate:u})=>{var c;const d=ag(),f=Br(),p=ge.useRef(cye(!!s,l,f)).current,[m,g]=ge.useReducer(p,{isMonthSwitchingAnimating:!1,focusedDay:e||d,currentMonth:f.startOfMonth((c=e??t)!=null?c:d),slideDirection:"left"}),b=ge.useCallback(_=>{g(Ie({type:"changeMonth"},_)),a&&a(_.newMonth)},[a]),v=ge.useCallback(_=>{const x=_??d;f.isSameMonth(x,m.currentMonth)||b({newMonth:f.startOfMonth(x),direction:f.isAfterDay(x,m.currentMonth)?"left":"right"})},[m.currentMonth,b,d,f]),h=FB({shouldDisableDate:u,minDate:o,maxDate:i,disableFuture:n,disablePast:r}),y=ge.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),w=ge.useCallback((_,x)=>{h(_)||g({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:x})},[h]);return{calendarState:m,changeMonth:v,changeFocusedDay:w,isDateDisabled:h,onMonthSwitchingAnimationEnd:y,handleChangeMonth:b}},fye=e=>yn("MuiPickersFadeTransitionGroup",e),pye=hn("MuiPickersFadeTransitionGroup",["root"]),hye=e=>{const{classes:t}=e;return vn({root:["root"]},fye,t)},x7=500,mye=Et(Km,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function jB(e){const t=pn({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:l,transKey:i}=t,o=hye(t);return l?n:ke.jsx(mye,{className:ma(o.root,r),children:ke.jsx(ib,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:x7,enter:x7/2,exit:0},children:n},i)})}const hm=36,og=2,VM=320,gye=358;function zB(e){return yn("MuiPickersDay",e)}const hh=hn("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),vye=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],yye=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:l,disabled:i,outsideCurrentMonth:o,showDaysOutsideCurrentMonth:a,classes:s}=e;return vn({root:["root",t&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&l&&"today",o&&a&&"dayOutsideMonth",o&&!a&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},zB,s)},BB=({theme:e,ownerState:t})=>Ie({},e.typography.caption,{width:hm,height:hm,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${hh.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${hh.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${hh.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${og}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${hh.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),WB=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},bye=Et(Tl,{name:"MuiPickersDay",slot:"Root",overridesResolver:WB})(BB),xye=Et("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:WB})(({theme:e,ownerState:t})=>Ie({},BB({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),p_=()=>{},wye=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersDay"}),{autoFocus:l=!1,className:i,day:o,disabled:a=!1,disableHighlightToday:s=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:f,onFocus:p=p_,onBlur:m=p_,onKeyDown:g=p_,onMouseDown:b,outsideCurrentMonth:v,selected:h=!1,showDaysOutsideCurrentMonth:y=!1,children:w,today:_=!1}=r,x=Kt(r,vye),T=Ie({},r,{autoFocus:l,disabled:a,disableHighlightToday:s,disableMargin:u,selected:h,showDaysOutsideCurrentMonth:y,today:_}),k=yye(T),S=Br(),C=ge.useRef(null),M=Lr(C,n);no(()=>{l&&!a&&!c&&!v&&C.current.focus()},[l,a,c,v]);const O=P=>{b&&b(P),v&&P.preventDefault()},D=P=>{a||f(o,"finish"),v&&P.currentTarget.focus(),d&&d(P)};return v&&!y?ke.jsx(xye,{className:ma(k.root,k.hiddenDaySpacingFiller,i),ownerState:T,role:x.role}):ke.jsx(bye,Ie({className:ma(k.root,i),ownerState:T,ref:M,centerRipple:!0,disabled:a,tabIndex:h?0:-1,onKeyDown:P=>g(P,o),onFocus:P=>p(P,o),onBlur:P=>m(P,o),onClick:D,onMouseDown:O},x,{children:w||S.format(o,"dayOfMonth")}))}),_ye=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,qB=ge.memo(wye,_ye),Tye=e=>yn("PrivatePickersSlideTransition",e),Ka=hn("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),kye=["children","className","reduceAnimations","slideDirection","transKey"],Sye=e=>{const{classes:t}=e;return vn({root:["root"]},Tye,t)},UB=350,Cye=Et(Km,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ka["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ka["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ka.slideEnterActive}`]:t.slideEnterActive},{[`.${Ka.slideExit}`]:t.slideExit},{[`.${Ka["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ka["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:UB,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Ka["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ka["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ka.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ka.slideExit}`]:{transform:"translate(0%)"},[`& .${Ka["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ka["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),Mye=e=>{const{children:t,className:n,reduceAnimations:r,slideDirection:l,transKey:i}=e,o=Kt(e,kye),a=Sye(e);if(r)return ke.jsx("div",{className:ma(a.root,n),children:t});const s={exit:Ka.slideExit,enterActive:Ka.slideEnterActive,enter:Ka[`slideEnter-${l}`],exitActive:Ka[`slideExitActiveLeft-${l}`]};return ke.jsx(Cye,{className:ma(a.root,n),childFactory:u=>ge.cloneElement(u,{classNames:s}),role:"presentation",children:ke.jsx(sM,Ie({mountOnEnter:!0,unmountOnExit:!0,timeout:UB,classNames:s},o,{children:t}),i)})},Pye=e=>yn("MuiDayPicker",e),Oye=hn("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),Aye=e=>{const{classes:t}=e;return vn({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},Pye,t)},Dye=e=>e.charAt(0).toUpperCase(),HB=(hm+og*2)*6,Eye=Et("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Rye=Et(dr,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),Lye=Et("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:HB}),Iye=Et(Mye,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:HB}),$ye=Et("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Nye=Et("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${og}px 0`,display:"flex",justifyContent:"center"});function Fye(e){const t=ag(),n=Br(),r=pn({props:e,name:"MuiDayPicker"}),l=Aye(r),{onFocusedDayChange:i,className:o,currentMonth:a,selectedDays:s,disabled:u,disableHighlightToday:c,focusedDay:d,isMonthSwitchingAnimating:f,loading:p,onSelectedDaysChange:m,onMonthSwitchingAnimationEnd:g,readOnly:b,reduceAnimations:v,renderDay:h,renderLoading:y=()=>ke.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:w,slideDirection:_,TransitionProps:x,disablePast:T,disableFuture:k,minDate:S,maxDate:C,shouldDisableDate:M,dayOfWeekFormatter:O=Dye,hasFocus:D,onFocusedViewChange:P,gridLabelId:E}=r,I=FB({shouldDisableDate:M,minDate:S,maxDate:C,disablePast:T,disableFuture:k}),[A,F]=ge.useState(()=>d||t),j=ge.useCallback(H=>{P&&P(H)},[P]),z=ge.useCallback((H,Z="finish")=>{b||m(H,Z)},[m,b]),B=ge.useCallback(H=>{I(H)||(i(H),F(H),j(!0))},[I,i,j]),N=po();function R(H,Z){switch(H.key){case"ArrowUp":B(n.addDays(Z,-7)),H.preventDefault();break;case"ArrowDown":B(n.addDays(Z,7)),H.preventDefault();break;case"ArrowLeft":{const G=n.addDays(Z,N.direction==="ltr"?-1:1),X=N.direction==="ltr"?n.getPreviousMonth(Z):n.getNextMonth(Z),Q=Ih({utils:n,date:G,minDate:N.direction==="ltr"?n.startOfMonth(X):G,maxDate:N.direction==="ltr"?G:n.endOfMonth(X),isDateDisabled:I});B(Q||G),H.preventDefault();break}case"ArrowRight":{const G=n.addDays(Z,N.direction==="ltr"?1:-1),X=N.direction==="ltr"?n.getNextMonth(Z):n.getPreviousMonth(Z),Q=Ih({utils:n,date:G,minDate:N.direction==="ltr"?G:n.startOfMonth(X),maxDate:N.direction==="ltr"?n.endOfMonth(X):G,isDateDisabled:I});B(Q||G),H.preventDefault();break}case"Home":B(n.startOfWeek(Z)),H.preventDefault();break;case"End":B(n.endOfWeek(Z)),H.preventDefault();break;case"PageUp":B(n.getNextMonth(Z)),H.preventDefault();break;case"PageDown":B(n.getPreviousMonth(Z)),H.preventDefault();break}}function q(H,Z){B(Z)}function Y(H,Z){D&&n.isSameDay(A,Z)&&j(!1)}const L=n.getMonth(a),W=s.filter(H=>!!H).map(H=>n.startOfDay(H)),U=L,V=ge.useMemo(()=>ge.createRef(),[U]),te=n.startOfWeek(t),ee=ge.useMemo(()=>{const H=n.startOfMonth(a),Z=n.endOfMonth(a);return I(A)||n.isAfterDay(A,Z)||n.isBeforeDay(A,H)?Ih({utils:n,date:A,minDate:H,maxDate:Z,disablePast:T,disableFuture:k,isDateDisabled:I}):A},[a,k,T,A,I,n]);return ke.jsxs("div",{role:"grid","aria-labelledby":E,children:[ke.jsx(Eye,{role:"row",className:l.header,children:n.getWeekdays().map((H,Z)=>{var G;return ke.jsx(Rye,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(te,Z),"weekday"),className:l.weekDayLabel,children:(G=O==null?void 0:O(H))!=null?G:H},H+Z.toString())})}),p?ke.jsx(Lye,{className:l.loadingContainer,children:y()}):ke.jsx(Iye,Ie({transKey:U,onExited:g,reduceAnimations:v,slideDirection:_,className:ma(o,l.slideTransition)},x,{nodeRef:V,children:ke.jsx($ye,{ref:V,role:"rowgroup",className:l.monthContainer,children:n.getWeekArray(a).map(H=>ke.jsx(Nye,{role:"row",className:l.weekContainer,children:H.map(Z=>{const G=ee!==null&&n.isSameDay(Z,ee),X=W.some(ae=>n.isSameDay(ae,Z)),Q=n.isSameDay(Z,t),re={key:Z==null?void 0:Z.toString(),day:Z,isAnimating:f,disabled:u||I(Z),autoFocus:D&&G,today:Q,outsideCurrentMonth:n.getMonth(Z)!==L,selected:X,disableHighlightToday:c,showDaysOutsideCurrentMonth:w,onKeyDown:R,onFocus:q,onBlur:Y,onDaySelect:z,tabIndex:G?0:-1,role:"gridcell","aria-selected":X};return Q&&(re["aria-current"]="date"),h?h(Z,W,re):ge.createElement(qB,Ie({},re,{key:re.key}))})},`week-${H[0]}`))})}))]})}function GM({onChange:e,onViewChange:t,openTo:n,view:r,views:l}){var i,o;const[a,s]=Zl({name:"Picker",state:"view",controlled:r,default:n&&Su(l,n)?n:l[0]}),u=(i=l[l.indexOf(a)-1])!=null?i:null,c=(o=l[l.indexOf(a)+1])!=null?o:null,d=ge.useCallback(m=>{s(m),t&&t(m)},[s,t]),f=ge.useCallback(()=>{c&&d(c)},[c,d]);return{handleChangeAndOpenNext:ge.useCallback((m,g)=>{const b=g==="finish";e(m,b&&c?"partial":g),b&&f()},[c,e,f]),nextView:c,previousView:u,openNext:f,openView:a,setOpenView:d}}const jye=Qr(ke.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),zye=Qr(ke.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Bye=Qr(ke.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),VB=Qr(ke.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),GB=Qr(ke.jsxs(ge.Fragment,{children:[ke.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),ke.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Wye=Qr(ke.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),qye=Qr(ke.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),Uye=Qr(ke.jsxs(ge.Fragment,{children:[ke.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),ke.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function Hye(e){return yn("MuiPickersArrowSwitcher",e)}hn("MuiPickersArrowSwitcher",["root","spacer","button"]);const Vye=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],Gye=e=>{const{classes:t}=e;return vn({root:["root"],spacer:["spacer"],button:["button"]},Hye,t)},Yye=Et("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Xye=Et("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),w7=Et(mi,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Ie({},e.hidden&&{visibility:"hidden"})),YB=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersArrowSwitcher"}),{children:l,className:i,components:o,componentsProps:a,isLeftDisabled:s,isLeftHidden:u,isRightDisabled:c,isRightHidden:d,leftArrowButtonText:f,onLeftClick:p,onRightClick:m,rightArrowButtonText:g}=r,b=Kt(r,Vye),h=po().direction==="rtl",y=(a==null?void 0:a.leftArrowButton)||{},w=(o==null?void 0:o.LeftArrowIcon)||zye,_=(a==null?void 0:a.rightArrowButton)||{},x=(o==null?void 0:o.RightArrowIcon)||Bye,T=r,k=Gye(T);return ke.jsxs(Yye,Ie({ref:n,className:ma(k.root,i),ownerState:T},b,{children:[ke.jsx(w7,Ie({as:o==null?void 0:o.LeftArrowButton,size:"small","aria-label":f,title:f,disabled:s,edge:"end",onClick:p},y,{className:ma(k.button,y.className),ownerState:Ie({},T,y,{hidden:u}),children:h?ke.jsx(x,{}):ke.jsx(w,{})})),l?ke.jsx(dr,{variant:"subtitle1",component:"span",children:l}):ke.jsx(Xye,{className:k.spacer,ownerState:T}),ke.jsx(w7,Ie({as:o==null?void 0:o.RightArrowButton,size:"small","aria-label":g,title:g,edge:"start",disabled:c,onClick:m},_,{className:ma(k.button,_.className),ownerState:Ie({},T,_,{hidden:d}),children:h?ke.jsx(w,{}):ke.jsx(x,{})}))]}))}),Kye=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,uk=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Zye=(e,t,n,r)=>{const l=uk(r.getHours(e),t,n);return r.setHours(e,l)},_7=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),XB=(e=!1,t)=>(n,r)=>e?t.isAfter(n,r):_7(n,t)>_7(r,t);function Qye(e,{disableFuture:t,maxDate:n}){const r=Br();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isBefore(l,n)?l:n);return!r.isAfter(i,e)},[t,n,e,r])}function Jye(e,{disablePast:t,minDate:n}){const r=Br();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isAfter(l,n)?l:n);return!r.isBefore(i,e)},[t,n,e,r])}function KB(e,t,n){const r=Br(),l=Kye(e,r),i=ge.useCallback(o=>{const a=e==null?null:Zye(e,o,!!t,r);n(a,"partial")},[t,e,n,r]);return{meridiemMode:l,handleMeridiemChange:i}}const ZB=e=>()=>{},e1e=e=>yn("MuiPickersCalendarHeader",e),t1e=hn("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),n1e=e=>{const{classes:t}=e;return vn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},e1e,t)},r1e=Et("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),a1e=Et("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Ie({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),o1e=Et("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),i1e=Et(mi,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),l1e=Et(jye,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>Ie({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),s1e=ZB();function u1e(e){const t=pn({props:e,name:"MuiPickersCalendarHeader"}),{components:n={},componentsProps:r={},currentMonth:l,disabled:i,disableFuture:o,disablePast:a,getViewSwitchingButtonText:s,leftArrowButtonText:u,maxDate:c,minDate:d,onMonthChange:f,onViewChange:p,openView:m,reduceAnimations:g,rightArrowButtonText:b,views:v,labelId:h}=t;s1e({leftArrowButtonText:u,rightArrowButtonText:b,getViewSwitchingButtonText:s});const y=Xi(),w=u??y.previousMonth,_=b??y.nextMonth,x=s??y.calendarViewSwitchingButtonAriaLabel,T=Br(),k=n1e(t),S=r.switchViewButton||{},C=()=>f(T.getNextMonth(l),"left"),M=()=>f(T.getPreviousMonth(l),"right"),O=Qye(l,{disableFuture:o,maxDate:c}),D=Jye(l,{disablePast:a,minDate:d}),P=()=>{if(!(v.length===1||!p||i))if(v.length===2)p(v.find(I=>I!==m)||v[0]);else{const I=v.indexOf(m)!==0?0:1;p(v[I])}};if(v.length===1&&v[0]==="year")return null;const E=t;return ke.jsxs(r1e,{ownerState:E,className:k.root,children:[ke.jsxs(a1e,{role:"presentation",onClick:P,ownerState:E,"aria-live":"polite",className:k.labelContainer,children:[ke.jsx(jB,{reduceAnimations:g,transKey:T.format(l,"monthAndYear"),children:ke.jsx(o1e,{id:h,ownerState:E,className:k.label,children:T.format(l,"monthAndYear")})}),v.length>1&&!i&&ke.jsx(i1e,Ie({size:"small",as:n.SwitchViewButton,"aria-label":x(m),className:k.switchViewButton},S,{children:ke.jsx(l1e,{as:n.SwitchViewIcon,ownerState:E,className:k.switchViewIcon})}))]}),ke.jsx(ib,{in:m==="day",children:ke.jsx(YB,{leftArrowButtonText:w,rightArrowButtonText:_,components:n,componentsProps:r,onLeftClick:M,onRightClick:C,isLeftDisabled:D,isRightDisabled:O})})]})}const ss=ge.createContext(null);function c1e(e){return yn("PrivatePickersYear",e)}const Eu=hn("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),d1e=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],f1e=e=>{const{wrapperVariant:t,disabled:n,selected:r,classes:l}=e,i={root:["root",t&&`mode${Jt(t)}`],yearButton:["yearButton",n&&"disabled",r&&"selected"]};return vn(i,c1e,l)},p1e=Et("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Eu.modeDesktop}`]:t.modeDesktop},{[`&.${Eu.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Ie({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),h1e=Et("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Eu.disabled}`]:t.disabled},{[`&.${Eu.selected}`]:t.selected}]})(({theme:e})=>Ie({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${Eu.disabled}`]:{color:e.palette.text.secondary},[`&.${Eu.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),T7=()=>{},m1e=ge.forwardRef(function(t,n){const{autoFocus:r,className:l,children:i,disabled:o,onClick:a,onKeyDown:s,value:u,tabIndex:c,onFocus:d=T7,onBlur:f=T7}=t,p=Kt(t,d1e),m=ge.useRef(null),g=Lr(m,n),b=ge.useContext(ss),v=Ie({},t,{wrapperVariant:b}),h=f1e(v);return ge.useEffect(()=>{r&&m.current.focus()},[r]),ke.jsx(p1e,{className:ma(h.root,l),ownerState:v,children:ke.jsx(h1e,Ie({ref:g,disabled:o,type:"button",tabIndex:o?-1:c,onClick:y=>a(y,u),onKeyDown:y=>s(y,u),onFocus:y=>d(y,u),onBlur:y=>f(y,u),className:h.yearButton,ownerState:v},p,{children:i}))})});function QB(e){return yn("MuiYearPicker",e)}const g1e=hn("MuiYearPicker",["root"]),v1e=e=>{const{classes:t}=e;return vn({root:["root"]},QB,t)};function y1e(e,t){const n=Br(),r=rg(),l=pn({props:e,name:t});return Ie({disablePast:!1,disableFuture:!1},l,{minDate:Ci(n,l.minDate,r.minDate),maxDate:Ci(n,l.maxDate,r.maxDate)})}const b1e=Et("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),JB=ge.forwardRef(function(t,n){const r=ag(),l=po(),i=Br(),o=y1e(t,"MuiYearPicker"),{autoFocus:a,className:s,date:u,disabled:c,disableFuture:d,disablePast:f,maxDate:p,minDate:m,onChange:g,readOnly:b,shouldDisableYear:v,disableHighlightToday:h,onYearFocus:y,hasFocus:w,onFocusedViewChange:_}=o,x=o,T=v1e(x),k=ge.useMemo(()=>u??i.startOfYear(r),[r,i,u]),S=ge.useMemo(()=>u!=null?i.getYear(u):h?null:i.getYear(r),[r,u,i,h]),C=ge.useContext(ss),M=ge.useRef(null),[O,D]=ge.useState(()=>S||i.getYear(r)),[P,E]=Zl({name:"YearPicker",state:"hasFocus",controlled:w,default:a}),I=ge.useCallback(W=>{E(W),_&&_(W)},[E,_]),A=ge.useCallback(W=>!!(f&&i.isBeforeYear(W,r)||d&&i.isAfterYear(W,r)||m&&i.isBeforeYear(W,m)||p&&i.isAfterYear(W,p)||v&&v(W)),[d,f,p,m,r,v,i]),F=(W,U,V="finish")=>{if(b)return;const te=i.setYear(k,U);g(te,V)},j=ge.useCallback(W=>{A(i.setYear(k,W))||(D(W),I(!0),y==null||y(W))},[A,i,k,I,y]);ge.useEffect(()=>{D(W=>S!==null&&W!==S?S:W)},[S]);const z=C==="desktop"?4:3,B=ge.useCallback((W,U)=>{switch(W.key){case"ArrowUp":j(U-z),W.preventDefault();break;case"ArrowDown":j(U+z),W.preventDefault();break;case"ArrowLeft":j(U+(l.direction==="ltr"?-1:1)),W.preventDefault();break;case"ArrowRight":j(U+(l.direction==="ltr"?1:-1)),W.preventDefault();break}},[j,l.direction,z]),N=ge.useCallback((W,U)=>{j(U)},[j]),R=ge.useCallback((W,U)=>{O===U&&I(!1)},[O,I]),q=i.getYear(r),Y=ge.useRef(null),L=Lr(n,Y);return ge.useEffect(()=>{if(a||Y.current===null)return;const W=Y.current.querySelector('[tabindex="0"]');if(!W)return;const U=W.offsetHeight,V=W.offsetTop,te=Y.current.clientHeight,ee=Y.current.scrollTop,H=V+U;U>te||V{const U=i.getYear(W),V=U===S;return ke.jsx(m1e,{selected:V,value:U,onClick:F,onKeyDown:B,autoFocus:P&&U===O,ref:V?M:void 0,disabled:c||A(W),tabIndex:U===O?0:-1,onFocus:N,onBlur:R,"aria-current":q===U?"date":void 0,children:i.format(W,"year")},i.format(W,"year"))})})}),YM=Et("div")({overflowX:"hidden",width:VM,maxHeight:gye,display:"flex",flexDirection:"column",margin:"0 auto"}),x1e=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),eW=e=>yn("MuiCalendarPicker",e),w1e=hn("MuiCalendarPicker",["root","viewTransitionContainer"]),_1e=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"],T1e=e=>{const{classes:t}=e;return vn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},eW,t)};function k1e(e,t){const n=Br(),r=rg(),l=pn({props:e,name:t});return Ie({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:x1e,renderLoading:()=>ke.jsx("span",{children:"..."})},l,{minDate:Ci(n,l.minDate,r.minDate),maxDate:Ci(n,l.maxDate,r.maxDate)})}const S1e=Et(YM,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),C1e=Et(jB,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),tW=ge.forwardRef(function(t,n){const r=Br(),l=Kl(),i=k1e(t,"MuiCalendarPicker"),{autoFocus:o,onViewChange:a,date:s,disableFuture:u,disablePast:c,defaultCalendarMonth:d,onChange:f,onYearChange:p,onMonthChange:m,reduceAnimations:g,shouldDisableDate:b,shouldDisableMonth:v,shouldDisableYear:h,view:y,views:w,openTo:_,className:x,disabled:T,readOnly:k,minDate:S,maxDate:C,disableHighlightToday:M,focusedView:O,onFocusedViewChange:D}=i,P=Kt(i,_1e),{openView:E,setOpenView:I,openNext:A}=GM({view:y,views:w,openTo:_,onChange:f,onViewChange:a}),{calendarState:F,changeFocusedDay:j,changeMonth:z,handleChangeMonth:B,isDateDisabled:N,onMonthSwitchingAnimationEnd:R}=dye({date:s,defaultCalendarMonth:d,reduceAnimations:g,onMonthChange:m,minDate:S,maxDate:C,shouldDisableDate:b,disablePast:c,disableFuture:u}),q=ge.useCallback((ie,se)=>{const he=r.startOfMonth(ie),Se=r.endOfMonth(ie),Oe=N(ie)?Ih({utils:r,date:ie,minDate:r.isBefore(S,he)?he:S,maxDate:r.isAfter(C,Se)?Se:C,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Oe?(f(Oe,se),m==null||m(he)):(A(),z(he)),j(Oe,!0)},[j,u,c,N,C,S,f,m,z,A,r]),Y=ge.useCallback((ie,se)=>{const he=r.startOfYear(ie),Se=r.endOfYear(ie),Oe=N(ie)?Ih({utils:r,date:ie,minDate:r.isBefore(S,he)?he:S,maxDate:r.isAfter(C,Se)?Se:C,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Oe?(f(Oe,se),p==null||p(Oe)):(A(),z(he)),j(Oe,!0)},[j,u,c,N,C,S,f,p,A,r,z]),L=ge.useCallback((ie,se)=>f(s&&ie?r.mergeDateAndTime(ie,s):ie,se),[r,s,f]);ge.useEffect(()=>{s&&z(s)},[s]);const W=i,U=T1e(W),V={disablePast:c,disableFuture:u,maxDate:C,minDate:S},te=T&&s||S,ee=T&&s||C,H={disableHighlightToday:M,readOnly:k,disabled:T},Z=`${l}-grid-label`,[G,X]=Zl({name:"DayPicker",state:"focusedView",controlled:O,default:o?E:null}),Q=G!==null,re=yo(ie=>se=>{if(D){D(ie)(se);return}X(se?ie:he=>he===ie?null:he)}),ae=ge.useRef(E);return ge.useEffect(()=>{ae.current!==E&&(ae.current=E,re(E)(!0))},[E,re]),ke.jsxs(S1e,{ref:n,className:ma(U.root,x),ownerState:W,children:[ke.jsx(u1e,Ie({},P,{views:w,openView:E,currentMonth:F.currentMonth,onViewChange:I,onMonthChange:(ie,se)=>B({newMonth:ie,direction:se}),minDate:te,maxDate:ee,disabled:T,disablePast:c,disableFuture:u,reduceAnimations:g,labelId:Z})),ke.jsx(C1e,{reduceAnimations:g,className:U.viewTransitionContainer,transKey:E,ownerState:W,children:ke.jsxs("div",{children:[E==="year"&&ke.jsx(JB,Ie({},P,V,H,{autoFocus:o,date:s,onChange:Y,shouldDisableYear:h,hasFocus:Q,onFocusedViewChange:re("year")})),E==="month"&&ke.jsx(NB,Ie({},V,H,{autoFocus:o,hasFocus:Q,className:x,date:s,onChange:q,shouldDisableMonth:v,onFocusedViewChange:re("month")})),E==="day"&&ke.jsx(Fye,Ie({},P,F,V,H,{autoFocus:o,onMonthSwitchingAnimationEnd:R,onFocusedDayChange:j,reduceAnimations:g,selectedDays:[s],onSelectedDaysChange:L,shouldDisableDate:b,hasFocus:Q,onFocusedViewChange:re("day"),gridLabelId:Z}))]})})]})}),nW=e=>yn("MuiCalendarPickerSkeleton",e),M1e=hn("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),P1e=["className"],O1e=e=>{const{classes:t}=e;return vn({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},nW,t)},A1e=Et("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),D1e=Et("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${og}px 0`,display:"flex",justifyContent:"center"}),rW=Et(vde,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Ie({margin:`0 ${og}px`},e.day===0&&{visibility:"hidden"}));rW.propTypes={ownerState:le.shape({day:le.number.isRequired}).isRequired};const E1e=[[0,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,0,0,0]];function R1e(e){const t=pn({props:e,name:"MuiCalendarPickerSkeleton"}),{className:n}=t,r=Kt(t,P1e),l=O1e(r);return ke.jsx(A1e,Ie({className:ma(l.root,n)},r,{children:E1e.map((i,o)=>ke.jsx(D1e,{className:l.week,children:i.map((a,s)=>ke.jsx(rW,{variant:"circular",width:hm,height:hm,className:l.daySkeleton,ownerState:{day:a}},s))},o))}))}const Ud=220,Ws=36,mm={x:Ud/2,y:Ud/2},aW={x:mm.x,y:0},L1e=aW.x-mm.x,I1e=aW.y-mm.y,$1e=e=>e*(180/Math.PI),oW=(e,t,n)=>{const r=t-mm.x,l=n-mm.y,i=Math.atan2(L1e,I1e)-Math.atan2(r,l);let o=$1e(i);o=Math.round(o/e)*e,o%=360;const a=Math.floor(o/e)||0,s=r**2+l**2,u=Math.sqrt(s);return{value:a,distance:u}},N1e=(e,t,n=1)=>{const r=n*6;let{value:l}=oW(r,e,t);return l=l*n%60,l},F1e=(e,t,n)=>{const{value:r,distance:l}=oW(30,e,t);let i=r||12;return n?i%=12:l{const{classes:t}=e;return vn({root:["root"],thumb:["thumb"]},j1e,t)},q1e=Et("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Ie({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),U1e=Et("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Ie({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ws/2}px)`,border:`${(Ws-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function H1e(e){const t=pn({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:l,value:i}=t,o=Kt(t,B1e),a=ge.useRef(l);ge.useEffect(()=>{a.current=l},[l]);const s=Ie({},t,{shouldAnimate:a.current!==l}),u=W1e(s),c=()=>{let f=360/(l==="hours"?12:60)*i;return l==="hours"&&i>12&&(f-=360),{height:Math.round((r?.26:.4)*Ud),transform:`rotateZ(${f}deg)`}};return ke.jsx(q1e,Ie({style:c(),className:ma(n,u.root),ownerState:s},o,{children:ke.jsx(U1e,{ownerState:s,className:u.thumb})}))}function V1e(e){return yn("MuiClock",e)}const G1e=hn("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),Y1e=e=>{const{classes:t}=e;return vn({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},V1e,t)},X1e=Et("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),K1e=Et("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Z1e=Et("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),Q1e=Et("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Ie({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),J1e=Et("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),ebe=Et(mi,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Ie({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},t.meridiemMode==="am"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),tbe=Et(mi,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Ie({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function nbe(e){const t=pn({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:l,children:i,date:o,getClockLabelText:a,handleMeridiemChange:s,isTimeDisabled:u,meridiemMode:c,minutesStep:d=1,onChange:f,selectedId:p,type:m,value:g,disabled:b,readOnly:v,className:h}=t,y=t,w=Br(),_=ge.useContext(ss),x=ge.useRef(!1),T=Y1e(y),k=u(g,m),S=!n&&m==="hours"&&(g<1||g>12),C=(z,B)=>{b||v||u(z,m)||f(z,B)},M=(z,B)=>{let{offsetX:N,offsetY:R}=z;if(N===void 0){const Y=z.target.getBoundingClientRect();N=z.changedTouches[0].clientX-Y.left,R=z.changedTouches[0].clientY-Y.top}const q=m==="seconds"||m==="minutes"?N1e(N,R,d):F1e(N,R,!!n);C(q,B)},O=z=>{x.current=!0,M(z,"shallow")},D=z=>{x.current&&(M(z,"finish"),x.current=!1)},P=z=>{z.buttons>0&&M(z.nativeEvent,"shallow")},E=z=>{x.current&&(x.current=!1),M(z.nativeEvent,"finish")},I=ge.useMemo(()=>m==="hours"?!0:g%5===0,[m,g]),A=m==="minutes"?d:1,F=ge.useRef(null);no(()=>{l&&F.current.focus()},[l]);const j=z=>{if(!x.current)switch(z.key){case"Home":C(0,"partial"),z.preventDefault();break;case"End":C(m==="minutes"?59:23,"partial"),z.preventDefault();break;case"ArrowUp":C(g+A,"partial"),z.preventDefault();break;case"ArrowDown":C(g-A,"partial"),z.preventDefault();break}};return ke.jsxs(X1e,{className:ma(h,T.root),children:[ke.jsxs(K1e,{className:T.clock,children:[ke.jsx(Q1e,{onTouchMove:O,onTouchEnd:D,onMouseUp:E,onMouseMove:P,ownerState:{disabled:b},className:T.squareMask}),!k&&ke.jsxs(ge.Fragment,{children:[ke.jsx(J1e,{className:T.pin}),o&&ke.jsx(H1e,{type:m,value:g,isInner:S,hasSelected:I})]}),ke.jsx(Z1e,{"aria-activedescendant":p,"aria-label":a(m,o,w),ref:F,role:"listbox",onKeyDown:j,tabIndex:0,className:T.wrapper,children:i})]}),n&&(_==="desktop"||r)&&ke.jsxs(ge.Fragment,{children:[ke.jsx(ebe,{onClick:v?void 0:()=>s("am"),disabled:b||c===null,ownerState:y,className:T.amButton,children:ke.jsx(dr,{variant:"caption",children:"AM"})}),ke.jsx(tbe,{disabled:b||c===null,onClick:v?void 0:()=>s("pm"),ownerState:y,className:T.pmButton,children:ke.jsx(dr,{variant:"caption",children:"PM"})})]})]})}function rbe(e){return yn("MuiClockNumber",e)}const mh=hn("MuiClockNumber",["root","selected","disabled"]),abe=["className","disabled","index","inner","label","selected"],obe=e=>{const{classes:t,selected:n,disabled:r}=e;return vn({root:["root",n&&"selected",r&&"disabled"]},rbe,t)},ibe=Et("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${mh.disabled}`]:t.disabled},{[`&.${mh.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Ie({height:Ws,width:Ws,position:"absolute",left:`calc((100% - ${Ws}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${mh.selected}`]:{color:e.palette.primary.contrastText},[`&.${mh.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Ie({},e.typography.body2,{color:e.palette.text.secondary})));function iW(e){const t=pn({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:l,inner:i,label:o,selected:a}=t,s=Kt(t,abe),u=t,c=obe(u),d=l%12/12*Math.PI*2-Math.PI/2,f=(Ud-Ws-2)/2*(i?.65:1),p=Math.round(Math.cos(d)*f),m=Math.round(Math.sin(d)*f);return ke.jsx(ibe,Ie({className:ma(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":a?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${m+(Ud-Ws)/2}px`},ownerState:u},s,{children:o}))}const lbe=({ampm:e,date:t,getClockNumberText:n,isDisabled:r,selectedId:l,utils:i})=>{const o=t?i.getHours(t):null,a=[],s=e?1:0,u=e?12:23,c=d=>o===null?!1:e?d===12?o===12||o===0:o===d||o-12===d:o===d;for(let d=s;d<=u;d+=1){let f=d.toString();d===0&&(f="00");const p=!e&&(d===0||d>12);f=i.formatNumber(f);const m=c(d);a.push(ke.jsx(iW,{id:m?l:void 0,index:d,inner:p,selected:m,disabled:r(d),label:f,"aria-label":n(f)},d))}return a},k7=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:l})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([o,a],s)=>{const u=o===t;return ke.jsx(iW,{label:a,id:u?l:void 0,index:s+1,inner:!1,disabled:n(o),selected:u,"aria-label":r(a)},o)})};function lW(e){return yn("MuiClockPicker",e)}const sbe=hn("MuiClockPicker",["root","arrowSwitcher"]),ube=e=>{const{classes:t}=e;return vn({root:["root"],arrowSwitcher:["arrowSwitcher"]},lW,t)},cbe=Et(YM,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),dbe=Et(YB,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),fbe=ZB(),sW=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiClockPicker"}),{ampm:l=!1,ampmInClock:i=!1,autoFocus:o,components:a,componentsProps:s,date:u,disableIgnoringDatePartForTimeValidation:c,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:m,leftArrowButtonText:g,maxTime:b,minTime:v,minutesStep:h=1,rightArrowButtonText:y,shouldDisableTime:w,showViewSwitcher:_,onChange:x,view:T,views:k=["hours","minutes"],openTo:S,onViewChange:C,className:M,disabled:O,readOnly:D}=r;fbe({leftArrowButtonText:g,rightArrowButtonText:y,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:m});const P=Xi(),E=g??P.openPreviousView,I=y??P.openNextView,A=d??P.clockLabelText,F=f??P.hoursClockNumberText,j=p??P.minutesClockNumberText,z=m??P.secondsClockNumberText,{openView:B,setOpenView:N,nextView:R,previousView:q,handleChangeAndOpenNext:Y}=GM({view:T,views:k,openTo:S,onViewChange:C,onChange:x}),L=ag(),W=Br(),U=ge.useMemo(()=>u||W.setSeconds(W.setMinutes(W.setHours(L,0),0),0),[u,L,W]),{meridiemMode:V,handleMeridiemChange:te}=KB(U,l,Y),ee=ge.useCallback((Q,re)=>{const ae=XB(c,W),ie=({start:he,end:Se})=>!(v&&ae(v,Se)||b&&ae(he,b)),se=(he,Se=1)=>he%Se!==0?!1:w?!w(he,re):!0;switch(re){case"hours":{const he=uk(Q,V,l),Se=W.setHours(U,he),Oe=W.setSeconds(W.setMinutes(Se,0),0),Pe=W.setSeconds(W.setMinutes(Se,59),59);return!ie({start:Oe,end:Pe})||!se(he)}case"minutes":{const he=W.setMinutes(U,Q),Se=W.setSeconds(he,0),Oe=W.setSeconds(he,59);return!ie({start:Se,end:Oe})||!se(Q,h)}case"seconds":{const he=W.setSeconds(U,Q);return!ie({start:he,end:he})||!se(Q)}default:throw new Error("not supported")}},[l,U,c,b,V,v,h,w,W]),H=Kl(),Z=ge.useMemo(()=>{switch(B){case"hours":{const Q=(re,ae)=>{const ie=uk(re,V,l);Y(W.setHours(U,ie),ae)};return{onChange:Q,value:W.getHours(U),children:lbe({date:u,utils:W,ampm:l,onChange:Q,getClockNumberText:F,isDisabled:re=>O||ee(re,"hours"),selectedId:H})}}case"minutes":{const Q=W.getMinutes(U),re=(ae,ie)=>{Y(W.setMinutes(U,ae),ie)};return{value:Q,onChange:re,children:k7({utils:W,value:Q,onChange:re,getClockNumberText:j,isDisabled:ae=>O||ee(ae,"minutes"),selectedId:H})}}case"seconds":{const Q=W.getSeconds(U),re=(ae,ie)=>{Y(W.setSeconds(U,ae),ie)};return{value:Q,onChange:re,children:k7({utils:W,value:Q,onChange:re,getClockNumberText:z,isDisabled:ae=>O||ee(ae,"seconds"),selectedId:H})}}default:throw new Error("You must provide the type for ClockView")}},[B,W,u,l,F,j,z,V,Y,U,ee,H,O]),G=r,X=ube(G);return ke.jsxs(cbe,{ref:n,className:ma(X.root,M),ownerState:G,children:[_&&ke.jsx(dbe,{className:X.arrowSwitcher,leftArrowButtonText:E,rightArrowButtonText:I,components:a,componentsProps:s,onLeftClick:()=>N(q),onRightClick:()=>N(R),isLeftDisabled:!q,isRightDisabled:!R,ownerState:G}),ke.jsx(nbe,Ie({autoFocus:o,date:u,ampmInClock:i,type:B,ampm:l,getClockLabelText:A,minutesStep:h,isTimeDisabled:ee,meridiemMode:V,handleMeridiemChange:te,selectedId:H,disabled:O,readOnly:D},Z))]})}),uW=e=>e.length===1&&e[0]==="year",cW=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,pbe=(e,t)=>uW(e)?{inputFormat:t.formats.year}:cW(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function XM(e,t){var n;const r=Br(),l=rg(),i=pn({props:e,name:t}),o=(n=i.views)!=null?n:["year","day"];return Ie({openTo:"day",disableFuture:!1,disablePast:!1},pbe(o,r),i,{views:o,minDate:Ci(r,i.minDate,l.minDate),maxDate:Ci(r,i.maxDate,l.maxDate)})}const KM={emptyValue:null,getTodayValue:e=>e.date(),parseInput:WM,areValuesEqual:(e,t,n)=>e.isEqual(t,n)};function dW(e){return yn("MuiPickersToolbar",e)}const ZM=hn("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),hbe=e=>{const{classes:t,isLandscape:n}=e;return vn({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},dW,t)},mbe=Et("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Ie({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),gbe=Et(cr,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Ie({flex:1},!e.isLandscape&&{alignItems:"center"})),vbe=Et(mi,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${ZM.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),ybe=e=>e==="clock"?ke.jsx(GB,{color:"inherit"}):ke.jsx(VB,{color:"inherit"}),QM=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersToolbar"}),{children:l,className:i,getMobileKeyboardInputViewButtonText:o,isLandscape:a,isMobileKeyboardViewOpen:s,landscapeDirection:u="column",toggleMobileKeyboardView:c,toolbarTitle:d,viewType:f="calendar"}=r,p=r,m=Xi(),g=hbe(p);return ke.jsxs(mbe,{ref:n,className:ma(g.root,i),ownerState:p,children:[ke.jsx(dr,{color:"text.secondary",variant:"overline",children:d}),ke.jsxs(gbe,{container:!0,justifyContent:"space-between",className:g.content,ownerState:p,direction:a?u:"row",alignItems:a?"flex-start":"flex-end",children:[l,ke.jsx(vbe,{onClick:c,className:g.penIconButton,ownerState:p,color:"inherit","aria-label":o?o(s,f):m.inputModeToggleButtonAriaLabel(s,f),children:s?ybe(f):ke.jsx(qye,{color:"inherit"})})]})]})});function bbe(e){return yn("MuiDatePickerToolbar",e)}const xbe=hn("MuiDatePickerToolbar",["root","title"]),wbe=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],_be=e=>{const{classes:t}=e;return vn({root:["root"],title:["title"]},bbe,t)},Tbe=Et(QM,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kbe=Et(dr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Ie({},e.isLandscape&&{margin:"auto 16px auto auto"})),JM=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=r,f=Kt(r,wbe),p=Br(),m=Xi(),g=_be(r),b=c??m.datePickerDefaultToolbarTitle,v=ge.useMemo(()=>l?s?p.formatByString(l,s):uW(d)?p.format(l,"year"):cW(d)?p.format(l,"month"):/en/.test(p.getCurrentLocaleCode())?p.format(l,"normalDateWithWeekday"):p.format(l,"normalDate"):u,[l,s,u,p,d]),h=r;return ke.jsx(Tbe,Ie({ref:n,toolbarTitle:b,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,isLandscape:i,className:g.root},f,{children:ke.jsx(kbe,{variant:"h4",align:i?"left":"center",ownerState:h,className:g.title,children:v})}))}),Sbe=["onAccept","onClear","onCancel","onSetToday","actions"],e5=e=>{const{onAccept:t,onClear:n,onCancel:r,onSetToday:l,actions:i}=e,o=Kt(e,Sbe),a=ge.useContext(ss),s=Xi(),u=typeof i=="function"?i(a):i;if(u==null||u.length===0)return null;const c=u==null?void 0:u.map(d=>{switch(d){case"clear":return ke.jsx(ji,{onClick:n,children:s.clearButtonLabel},d);case"cancel":return ke.jsx(ji,{onClick:r,children:s.cancelButtonLabel},d);case"accept":return ke.jsx(ji,{onClick:t,children:s.okButtonLabel},d);case"today":return ke.jsx(ji,{onClick:l,children:s.todayButtonLabel},d);default:return null}});return ke.jsx(ase,Ie({},o,{children:c}))};function Cbe(e){return yn("MuiPickersPopper",e)}hn("MuiPickersPopper",["root","paper"]);const Mbe=["onClick","onTouchStart"],Pbe=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"]},Cbe,t)},Obe=Et(bM,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Abe=Et(nu,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Ie({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function Dbe(e,t){return t.documentElement.clientWidth{if(!e)return;function s(){i.current=!0}return document.addEventListener("mousedown",s,!0),document.addEventListener("touchstart",s,!0),()=>{document.removeEventListener("mousedown",s,!0),document.removeEventListener("touchstart",s,!0),i.current=!1}},[e]);const o=yo(s=>{if(!i.current)return;const u=r.current;r.current=!1;const c=Aa(l.current);if(!l.current||"clientX"in s&&Dbe(s,c))return;if(n.current){n.current=!1;return}let d;s.composedPath?d=s.composedPath().indexOf(l.current)>-1:d=!c.documentElement.contains(s.target)||l.current.contains(s.target),!d&&!u&&t(s)}),a=()=>{r.current=!0};return ge.useEffect(()=>{if(e){const s=Aa(l.current),u=()=>{n.current=!0};return s.addEventListener("touchstart",o),s.addEventListener("touchmove",u),()=>{s.removeEventListener("touchstart",o),s.removeEventListener("touchmove",u)}}},[e,o]),ge.useEffect(()=>{if(e){const s=Aa(l.current);return s.addEventListener("click",o),()=>{s.removeEventListener("click",o),r.current=!1}}},[e,o]),[l,a,a]}function Rbe(e){var t;const n=pn({props:e,name:"MuiPickersPopper"}),{anchorEl:r,children:l,containerRef:i=null,onBlur:o,onClose:a,onClear:s,onAccept:u,onCancel:c,onSetToday:d,open:f,PopperProps:p,role:m,TransitionComponent:g=dm,TrapFocusProps:b,PaperProps:v={},components:h,componentsProps:y}=n;ge.useEffect(()=>{function j(z){f&&(z.key==="Escape"||z.key==="Esc")&&a()}return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[a,f]);const w=ge.useRef(null);ge.useEffect(()=>{m!=="tooltip"&&(f?w.current=RB(document):w.current&&w.current instanceof HTMLElement&&setTimeout(()=>{w.current instanceof HTMLElement&&w.current.focus()}))},[f,m]);const[_,x,T]=Ebe(f,o??a),k=ge.useRef(null),S=Lr(k,i),C=Lr(S,_),M=n,O=Pbe(M),{onClick:D,onTouchStart:P}=v,E=Kt(v,Mbe),I=j=>{j.key==="Escape"&&(j.stopPropagation(),a())},A=(t=h==null?void 0:h.ActionBar)!=null?t:e5,F=(h==null?void 0:h.PaperContent)||ge.Fragment;return ke.jsx(Obe,Ie({transition:!0,role:m,open:f,anchorEl:r,onKeyDown:I,className:O.root},p,{children:({TransitionProps:j,placement:z})=>ke.jsx(Ej,Ie({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},b,{children:ke.jsx(g,Ie({},j,{children:ke.jsx(Abe,Ie({tabIndex:-1,elevation:8,ref:C,onClick:B=>{x(B),D&&D(B)},onTouchStart:B=>{T(B),P&&P(B)},ownerState:Ie({},M,{placement:z}),className:O.paper},E,{children:ke.jsxs(F,Ie({},y==null?void 0:y.paperContent,{children:[l,ke.jsx(A,Ie({onAccept:u,onClear:s,onCancel:c,onSetToday:d,actions:[]},y==null?void 0:y.actionBar))]}))}))}))}))}))}function t5(e){const{children:t,DateInputProps:n,KeyboardDateInputComponent:r,onClear:l,onDismiss:i,onCancel:o,onAccept:a,onSetToday:s,open:u,PopperProps:c,PaperProps:d,TransitionComponent:f,components:p,componentsProps:m}=e,g=ge.useRef(null),b=Lr(n.inputRef,g);return ke.jsxs(ss.Provider,{value:"desktop",children:[ke.jsx(r,Ie({},n,{inputRef:b})),ke.jsx(Rbe,{role:"dialog",open:u,anchorEl:g.current,TransitionComponent:f,PopperProps:c,PaperProps:d,onClose:i,onCancel:o,onClear:l,onAccept:a,onSetToday:s,components:p,componentsProps:m,children:t})]})}const Lbe=e=>{const[,t]=ge.useReducer(s=>s+1,0),n=ge.useRef(null),{replace:r,append:l}=e,i=r?r(e.format(e.value)):e.format(e.value),o=ge.useRef(!1),a=s=>{const u=s.target.value;n.current=[u,s.target,u.length>i.length,o.current,i===e.format(u)],t()};return ge.useLayoutEffect(()=>{if(n.current==null)return;let[s,u,c,d,f]=n.current;n.current=null;const p=d&&f,g=s.slice(u.selectionStart).search(e.accept||/\d/g),b=g!==-1?g:0,v=x=>(x.match(e.accept||/\d/g)||[]).join(""),h=v(s.substr(0,u.selectionStart)),y=x=>{let T=0,k=0;for(let S=0;S!==h.length;++S){let C=x.indexOf(h[S],T)+1,M=v(x).indexOf(h[S],k)+1;M-k>1&&(C=T,M=k),k=Math.max(M,k),T=Math.max(T,C)}return T};if(e.mask===!0&&c&&!f){let x=y(s);const T=v(s.substr(x))[0];x=s.indexOf(T,x),s=`${s.substr(0,x)}${s.substr(x+1)}`}let w=e.format(s);l!=null&&u.selectionStart===s.length&&!f&&(c?w=l(w):v(w.slice(-1))===""&&(w=w.slice(0,-1)));const _=r?r(w):w;return i===_?t():e.onChange(_),()=>{let x=y(w);if(e.mask!=null&&(c||d&&!p))for(;w[x]&&v(w[x])==="";)x+=1;u.selectionStart=u.selectionEnd=x+(p?1+b:0)}}),ge.useEffect(()=>{const s=c=>{c.code==="Delete"&&(o.current=!0)},u=c=>{c.code==="Delete"&&(o.current=!1)};return document.addEventListener("keydown",s),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",s),document.removeEventListener("keyup",u)}},[]),{value:n.current!=null?n.current[0]:i,onChange:a}},ck=(e,t,n)=>{const r=e.date(t);return t===null?"":e.isValid(r)?e.formatByString(r,n):""},uy="_",fW="2019-11-21T22:30:00.000",pW="2019-01-01T09:00:00.000";function Ibe(e,t,n,r){if(e)return e;const i=r.formatByString(r.date(pW),t).replace(n,uy),o=r.formatByString(r.date(fW),t).replace(n,"_");return i===o?i:""}function $be(e,t,n,r){if(!e)return!1;const i=r.formatByString(r.date(pW),t).replace(n,uy),o=r.formatByString(r.date(fW),t).replace(n,"_"),a=o===i&&e===o;return!a&&r.lib,a}const Nbe=(e,t)=>n=>{let r=0;return n.split("").map((l,i)=>{if(t.lastIndex=0,r>e.length-1)return"";const o=e[r],a=e[r+1],s=t.test(l)?l:"",u=o===uy?s:o+s;return r+=u.length,i===n.length-1&&a&&a!==uy?u?u+a:"":u}).join("")},Fbe=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:n,ignoreInvalidInputs:r,inputFormat:l,inputProps:i,label:o,mask:a,onChange:s,rawValue:u,readOnly:c,rifmFormatter:d,TextFieldProps:f,validationError:p})=>{const m=Br(),g=m.getFormatHelperText(l),{shouldUseMaskedInput:b,maskToUse:v}=ge.useMemo(()=>{if(n)return{shouldUseMaskedInput:!1,maskToUse:""};const P=Ibe(a,l,e,m);return{shouldUseMaskedInput:$be(P,l,e,m),maskToUse:P}},[e,n,l,a,m]),h=ge.useMemo(()=>b&&v?Nbe(v,e):P=>P,[e,v,b]),y=u===null?null:m.date(u),[w,_]=ge.useState(y),[x,T]=ge.useState(ck(m,u,l)),k=ge.useRef(),S=ge.useRef(m.locale),C=ge.useRef(l);ge.useEffect(()=>{const P=u!==k.current,E=m.locale!==S.current,I=l!==C.current;if(k.current=u,S.current=m.locale,C.current=l,!P&&!E&&!I)return;const A=u===null?null:m.date(u),F=u===null||m.isValid(A);let j=w===null&&A===null;if(w!==null&&A!==null){const B=m.isEqual(w,A);if(B)j=!0;else{const N=Math.abs(m.getDiff(w,A));j=N===0?B:N<1e3}}if(!E&&!I&&(!F||j))return;const z=ck(m,u,l);_(A),T(z)},[m,u,l,w]);const M=P=>{const E=P===""||P===a?"":P;T(E);const I=E===null?null:m.parse(E,l);r&&!m.isValid(I)||(_(I),s(I,E||void 0))},O=Lbe({value:x,onChange:M,format:d||h});return Ie({label:o,disabled:t,error:p,inputProps:Ie({},b?O:{value:x,onChange:P=>{M(P.currentTarget.value)}},{disabled:t,placeholder:g,readOnly:c,type:b?"tel":"text"},i)},f)},jbe=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],bb=ge.forwardRef(function(t,n){const{className:r,components:l={},disableOpenPicker:i,getOpenDialogAriaText:o,InputAdornmentProps:a,InputProps:s,inputRef:u,openPicker:c,OpenPickerButtonProps:d,renderInput:f}=t,p=Kt(t,jbe),m=Xi(),g=o??m.openDatePickerDialogue,b=Br(),v=Fbe(p),h=(a==null?void 0:a.position)||"end",y=l.OpenPickerIcon||VB;return f(Ie({ref:n,inputRef:u,className:r},v,{InputProps:Ie({},s,{[`${h}Adornment`]:i?void 0:ke.jsx(sz,Ie({position:h},a,{children:ke.jsx(mi,Ie({edge:h,disabled:p.disabled||p.readOnly,"aria-label":g(p.rawValue,b)},d,{onClick:c,children:ke.jsx(y,{})}))}))})}))});function S7(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const zbe=(e,t)=>{const[n,r]=ge.useState(S7);return no(()=>{const i=()=>{r(S7())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),Su(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Bbe=({autoFocus:e,openView:t})=>{const[n,r]=ge.useState(e?t:null),l=ge.useCallback(i=>o=>{r(o?i:a=>i===a?null:a)},[]);return{focusedView:n,setFocusedView:l}};function Wbe(e){return yn("MuiCalendarOrClockPicker",e)}hn("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const qbe=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],Ube=e=>{const{classes:t}=e;return vn({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},Wbe,t)},Hbe=Et("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),Vbe=Et("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Ie({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),Gbe={fullWidth:!0},C7=e=>e==="year"||e==="month"||e==="day",M7=e=>e==="hours"||e==="minutes"||e==="seconds";function us(e){var t,n;const r=pn({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:l,parsedValue:i,DateInputProps:o,isMobileKeyboardViewOpen:a,onDateChange:s,onViewChange:u,openTo:c,orientation:d,showToolbar:f,toggleMobileKeyboardView:p,ToolbarComponent:m=()=>null,toolbarFormat:g,toolbarPlaceholder:b,toolbarTitle:v,views:h,dateRangeIcon:y,timeIcon:w,hideTabs:_}=r,x=Kt(r,qbe),T=(t=x.components)==null?void 0:t.Tabs,k=zbe(h,d),S=ge.useContext(ss),C=Ube(r),M=f??S!=="desktop",O=!_&&typeof window<"u"&&window.innerHeight>667,D=ge.useCallback((z,B)=>{s(z,S,B)},[s,S]),P=ge.useCallback(z=>{a&&p(),u&&u(z)},[a,u,p]),{openView:E,setOpenView:I,handleChangeAndOpenNext:A}=GM({view:void 0,views:h,openTo:c,onChange:D,onViewChange:P}),{focusedView:F,setFocusedView:j}=Bbe({autoFocus:l,openView:E});return ke.jsxs(Vbe,{ownerState:{isLandscape:k},className:C.root,children:[M&&ke.jsx(m,Ie({},x,{views:h,isLandscape:k,parsedValue:i,onChange:D,setOpenView:I,openView:E,toolbarTitle:v,toolbarFormat:g,toolbarPlaceholder:b,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:p})),O&&!!T&&ke.jsx(T,Ie({dateRangeIcon:y,timeIcon:w,view:E,onChange:I},(n=x.componentsProps)==null?void 0:n.tabs)),ke.jsx(YM,{children:a?ke.jsx(Hbe,{className:C.mobileKeyboardInputView,children:ke.jsx(bb,Ie({},o,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:Gbe}))}):ke.jsxs(ge.Fragment,{children:[C7(E)&&ke.jsx(tW,Ie({autoFocus:l,date:i,onViewChange:I,onChange:A,view:E,views:h.filter(C7),focusedView:F,onFocusedViewChange:j},x)),M7(E)&&ke.jsx(sW,Ie({},x,{autoFocus:l,date:i,view:E,views:h.filter(M7),onChange:A,onViewChange:I,showViewSwitcher:S==="desktop"}))]})})]})}const Ybe=({open:e,onOpen:t,onClose:n})=>{const r=ge.useRef(typeof e=="boolean").current,[l,i]=ge.useState(!1);ge.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const o=ge.useCallback(a=>{r||i(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:l,setIsOpen:o}},cs=(e,t)=>{const{onAccept:n,onChange:r,value:l,closeOnSelect:i}=e,o=Br(),{isOpen:a,setIsOpen:s}=Ybe(e),u=ge.useMemo(()=>t.parseInput(o,l),[t,o,l]),[c,d]=ge.useState(u),[f,p]=ge.useState(()=>({committed:u,draft:u,resetFallback:u})),m=ge.useCallback(x=>{p(T=>{switch(x.action){case"setAll":case"acceptAndClose":return{draft:x.value,committed:x.value,resetFallback:x.value};case"setCommitted":return Ie({},T,{draft:x.value,committed:x.value});case"setDraft":return Ie({},T,{draft:x.value});default:return T}}),(x.forceOnChangeCall||!x.skipOnChangeCall&&!t.areValuesEqual(o,f.committed,x.value))&&r(x.value),x.action==="acceptAndClose"&&(s(!1),n&&!t.areValuesEqual(o,f.resetFallback,x.value)&&n(x.value))},[n,r,s,f,o,t]);ge.useEffect(()=>{o.isValid(u)&&d(u)},[o,u]),ge.useEffect(()=>{a&&m({action:"setAll",value:u,skipOnChangeCall:!0})},[a]),t.areValuesEqual(o,f.committed,u)||m({action:"setCommitted",value:u,skipOnChangeCall:!0});const g=ge.useMemo(()=>({open:a,onClear:()=>{m({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,t.emptyValue)})},onAccept:()=>{m({value:f.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,u)})},onDismiss:()=>{m({value:f.committed,action:"acceptAndClose"})},onCancel:()=>{m({value:f.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{m({value:t.getTodayValue(o),action:"acceptAndClose"})}}),[m,a,o,f,t,l,u]),[b,v]=ge.useState(!1),h=ge.useMemo(()=>({parsedValue:f.draft,isMobileKeyboardViewOpen:b,toggleMobileKeyboardView:()=>v(!b),onDateChange:(x,T,k="partial")=>{switch(k){case"shallow":return m({action:"setDraft",value:x,skipOnChangeCall:!0});case"partial":return m({action:"setDraft",value:x});case"finish":return m(i??T==="desktop"?{value:x,action:"acceptAndClose"}:{value:x,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[m,b,f.draft,i]),y=ge.useCallback((x,T)=>{const k=t.valueReducer?t.valueReducer(o,c,x):x;r(k,T)},[r,t,c,o]),w=ge.useMemo(()=>({onChange:y,open:a,rawValue:l,openPicker:()=>s(!0)}),[y,a,l,s]),_={pickerProps:h,inputProps:w,wrapperProps:g};return ge.useDebugValue(_,()=>({MuiPickerState:{dateState:f,other:_}})),_},Xbe=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],hW=ge.forwardRef(function(t,n){const r=XM(t,"MuiDesktopDatePicker"),l=HM(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,KM),{PopperProps:s,PaperProps:u,ToolbarComponent:c=JM,TransitionComponent:d,components:f,componentsProps:p}=r,m=Kt(r,Xbe),g=Ie({},o,m,{components:f,componentsProps:p,ref:n,validationError:l});return ke.jsx(t5,Ie({},a,{DateInputProps:g,KeyboardDateInputComponent:bb,PopperProps:s,PaperProps:u,TransitionComponent:d,components:f,componentsProps:p,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},m))}))}),Kbe=Et(Jle)({[`& .${Eh.container}`]:{outline:0},[`& .${Eh.paper}`]:{outline:0,minWidth:VM}}),Zbe=Et(cse)({"&:first-of-type":{padding:0}}),Qbe=e=>{var t;const{children:n,DialogProps:r={},onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:c,componentsProps:d}=e,f=(t=c==null?void 0:c.ActionBar)!=null?t:e5;return ke.jsxs(Kbe,Ie({open:u,onClose:o},r,{children:[ke.jsx(Zbe,{children:n}),ke.jsx(f,Ie({onAccept:l,onClear:i,onCancel:a,onSetToday:s,actions:["cancel","accept"]},d==null?void 0:d.actionBar))]}))},Jbe=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function n5(e){const{children:t,DateInputProps:n,DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,PureDateInputComponent:c,components:d,componentsProps:f}=e,p=Kt(e,Jbe);return ke.jsxs(ss.Provider,{value:"mobile",children:[ke.jsx(c,Ie({components:d},p,n)),ke.jsx(Qbe,{DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:d,componentsProps:f,children:t})]})}const r5=ge.forwardRef(function(t,n){const{disabled:r,getOpenDialogAriaText:l,inputFormat:i,InputProps:o,inputRef:a,label:s,openPicker:u,rawValue:c,renderInput:d,TextFieldProps:f={},validationError:p,className:m}=t,g=Xi(),b=l??g.openDatePickerDialogue,v=Br(),h=ge.useMemo(()=>Ie({},o,{readOnly:!0}),[o]),y=ck(v,c,i),w=yo(_=>{_.stopPropagation(),u()});return d(Ie({label:s,disabled:r,ref:n,inputRef:a,error:p,InputProps:h,className:m},!t.readOnly&&!t.disabled&&{onClick:w},{inputProps:Ie({disabled:r,readOnly:!0,"aria-readonly":!0,"aria-label":b(c,v),value:y},!t.readOnly&&{onClick:w},{onKeyDown:EB(u)})},f))}),exe=["ToolbarComponent","value","onChange","components","componentsProps"],mW=ge.forwardRef(function(t,n){const r=XM(t,"MuiMobileDatePicker"),l=HM(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,KM),{ToolbarComponent:s=JM,components:u,componentsProps:c}=r,d=Kt(r,exe),f=Ie({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return ke.jsx(n5,Ie({},d,a,{DateInputProps:f,PureDateInputComponent:r5,components:u,componentsProps:c,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))}),txe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],nxe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=Kt(r,txe);return wM(l,{defaultMatches:!0})?ke.jsx(hW,Ie({ref:n,PopperProps:o,TransitionComponent:a},s)):ke.jsx(mW,Ie({ref:n,DialogProps:i},s))});function a5(e,t){var n,r,l,i,o;const a=pn({props:e,name:t}),s=Br(),u=rg(),c=(n=a.ampm)!=null?n:s.is12HourCycleInCurrentLocale();if(a.orientation!=null&&a.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Ie({ampm:c,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:c?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:c?s.formats.keyboardDateTime12h:s.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(a.minDateTime||a.maxDateTime),disablePast:!1,disableFuture:!1},a,{minDate:Ci(s,(r=a.minDateTime)!=null?r:a.minDate,u.minDate),maxDate:Ci(s,(l=a.maxDateTime)!=null?l:a.maxDate,u.maxDate),minTime:(i=a.minDateTime)!=null?i:a.minTime,maxTime:(o=a.maxDateTime)!=null?o:a.maxTime})}const o5={emptyValue:null,getTodayValue:e=>e.date(),parseInput:WM,areValuesEqual:(e,t,n)=>e.isEqual(t,n)},rxe=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function axe(e){return yn("PrivatePickersToolbarText",e)}const P7=hn("PrivatePickersToolbarText",["root","selected"]),oxe=["className","selected","value"],ixe=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},axe,t)},lxe=Et(dr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${P7.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${P7.selected}`]:{color:e.palette.text.primary}})),i5=ge.forwardRef(function(t,n){const{className:r,value:l}=t,i=Kt(t,oxe),o=ixe(t);return ke.jsx(lxe,Ie({ref:n,className:ma(r,o.root),component:"span"},i,{children:l}))}),sxe=["align","className","selected","typographyClassName","value","variant"],uxe=e=>{const{classes:t}=e;return vn({root:["root"]},dW,t)},cxe=Et(ji,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),dl=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersToolbarButton"}),{align:l,className:i,selected:o,typographyClassName:a,value:s,variant:u}=r,c=Kt(r,sxe),d=uxe(r);return ke.jsx(cxe,Ie({variant:"text",ref:n,className:ma(i,d.root)},c,{children:ke.jsx(i5,{align:l,className:a,variant:u,value:s,selected:o})}))});function dxe(e){return yn("MuiDateTimePickerToolbar",e)}const fxe=hn("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),pxe=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],hxe=e=>{const{classes:t}=e;return vn({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},dxe,t)},mxe=Et(QM,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${ZM.penIconButton}`]:Ie({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),gxe=Et("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),vxe=Et("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),O7=Et(i5,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function l5(e){const t=pn({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,parsedValue:r,isMobileKeyboardViewOpen:l,openView:i,setOpenView:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=t,f=Kt(t,pxe),p=t,m=Br(),g=Xi(),b=hxe(p),v=c??g.dateTimePickerDefaultToolbarTitle,h=w=>n?m.format(w,"hours12h"):m.format(w,"hours24h"),y=ge.useMemo(()=>r?s?m.formatByString(r,s):m.format(r,"shortDate"):u,[r,s,u,m]);return ke.jsxs(mxe,Ie({toolbarTitle:v,isMobileKeyboardViewOpen:l,toggleMobileKeyboardView:a,className:b.root,viewType:rxe(i)},f,{isLandscape:!1,ownerState:p,children:[ke.jsxs(gxe,{className:b.dateContainer,ownerState:p,children:[d.includes("year")&&ke.jsx(dl,{tabIndex:-1,variant:"subtitle1",onClick:()=>o("year"),selected:i==="year",value:r?m.format(r,"year"):"–"}),d.includes("day")&&ke.jsx(dl,{tabIndex:-1,variant:"h4",onClick:()=>o("day"),selected:i==="day",value:y})]}),ke.jsxs(vxe,{className:b.timeContainer,ownerState:p,children:[d.includes("hours")&&ke.jsx(dl,{variant:"h3",onClick:()=>o("hours"),selected:i==="hours",value:r?h(r):"--"}),d.includes("minutes")&&ke.jsxs(ge.Fragment,{children:[ke.jsx(O7,{variant:"h3",value:":",className:b.separator,ownerState:p}),ke.jsx(dl,{variant:"h3",onClick:()=>o("minutes"),selected:i==="minutes",value:r?m.format(r,"minutes"):"--"})]}),d.includes("seconds")&&ke.jsxs(ge.Fragment,{children:[ke.jsx(O7,{variant:"h3",value:":",className:b.separator,ownerState:p}),ke.jsx(dl,{variant:"h3",onClick:()=>o("seconds"),selected:i==="seconds",value:r?m.format(r,"seconds"):"--"})]})]})]}))}const gW=({adapter:e,value:t,props:n})=>{const{minTime:r,maxTime:l,minutesStep:i,shouldDisableTime:o,disableIgnoringDatePartForTimeValidation:a}=n,s=e.utils.date(t),u=XB(a,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&u(r,s)):return"minTime";case!!(l&&u(s,l)):return"maxTime";case!!(o&&o(e.utils.getHours(s),"hours")):return"shouldDisableTime-hours";case!!(o&&o(e.utils.getMinutes(s),"minutes")):return"shouldDisableTime-minutes";case!!(o&&o(e.utils.getSeconds(s),"seconds")):return"shouldDisableTime-seconds";case!!(i&&e.utils.getMinutes(s)%i!==0):return"minutesStep";default:return null}},yxe=(e,t)=>e===t,s5=e=>qM(e,gW,yxe),bxe=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],xxe=({props:e,value:t,adapter:n})=>{const{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}=e,s=Kt(e,bxe),u=UM({adapter:n,value:t,props:{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}});return u!==null?u:gW({adapter:n,value:t,props:s})},wxe=(e,t)=>e===t;function u5(e){return qM(e,xxe,wxe)}function _xe(e){return yn("MuiDateTimePickerTabs",e)}const Txe=hn("MuiDateTimePickerTabs",["root"]),kxe=e=>["day","month","year"].includes(e)?"date":"time",Sxe=e=>e==="date"?"day":"hours",Cxe=e=>{const{classes:t}=e;return vn({root:["root"]},_xe,t)},Mxe=Et(Nz,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>Ie({boxShadow:`0 -1px 0 0 inset ${t.palette.divider}`},e.wrapperVariant==="desktop"&&{order:1,boxShadow:`0 1px 0 0 inset ${t.palette.divider}`,[`& .${nv.indicator}`]:{bottom:"auto",top:0}})),xb=function(t){const n=pn({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:r=ke.jsx(Wye,{}),onChange:l,timeIcon:i=ke.jsx(Uye,{}),view:o}=n,a=Xi(),s=ge.useContext(ss),u=Ie({},n,{wrapperVariant:s}),c=Cxe(u),d=(f,p)=>{l(Sxe(p))};return ke.jsxs(Mxe,{ownerState:u,variant:"fullWidth",value:kxe(o),onChange:d,className:c.root,children:[ke.jsx(J3,{value:"date","aria-label":a.dateTableLabel,icon:ke.jsx(ge.Fragment,{children:r})}),ke.jsx(J3,{value:"time","aria-label":a.timeTableLabel,icon:ke.jsx(ge.Fragment,{children:i})})]})},Pxe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],vW=ge.forwardRef(function(t,n){const r=a5(t,"MuiDesktopDateTimePicker"),l=u5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,o5),{PaperProps:s,PopperProps:u,ToolbarComponent:c=l5,TransitionComponent:d,components:f,componentsProps:p,hideTabs:m=!0}=r,g=Kt(r,Pxe),b=ge.useMemo(()=>Ie({Tabs:xb},f),[f]),v=Ie({},o,g,{components:b,componentsProps:p,ref:n,validationError:l});return ke.jsx(t5,Ie({},a,{DateInputProps:v,KeyboardDateInputComponent:bb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:b,componentsProps:p,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:v,components:b,componentsProps:p,hideTabs:m},g))}))}),Oxe=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],yW=ge.forwardRef(function(t,n){const r=a5(t,"MuiMobileDateTimePicker"),l=u5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,o5),{ToolbarComponent:s=l5,components:u,componentsProps:c,hideTabs:d=!1}=r,f=Kt(r,Oxe),p=ge.useMemo(()=>Ie({Tabs:xb},u),[u]),m=Ie({},o,f,{components:p,componentsProps:c,ref:n,validationError:l});return ke.jsx(n5,Ie({},f,a,{DateInputProps:m,PureDateInputComponent:r5,components:p,componentsProps:c,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:m,components:p,componentsProps:c,hideTabs:d},f))}))}),Axe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Dxe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=Kt(r,Axe);return wM(l,{defaultMatches:!0})?ke.jsx(vW,Ie({ref:n,PopperProps:o,TransitionComponent:a},s)):ke.jsx(yW,Ie({ref:n,DialogProps:i},s))});function c5(e,t){var n;const r=pn({props:e,name:t}),l=Br(),i=(n=r.ampm)!=null?n:l.is12HourCycleInCurrentLocale(),a=Xi().openTimePickerDialogue;return Ie({ampm:i,openTo:"hours",views:["hours","minutes"],acceptRegex:i?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:a,inputFormat:i?l.formats.fullTime12h:l.formats.fullTime24h},r,{components:Ie({OpenPickerIcon:GB},r.components)})}const d5={emptyValue:null,parseInput:WM,getTodayValue:e=>e.date(),areValuesEqual:(e,t,n)=>e.isEqual(t,n),valueReducer:(e,t,n)=>!t||!e.isValid(n)?n:e.mergeDateAndTime(t,n)};function Exe(e){return yn("MuiTimePickerToolbar",e)}const _d=hn("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Rxe=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],Lxe=e=>{const{theme:t,isLandscape:n,classes:r}=e,l={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return vn(l,Exe,r)},Ixe=Et(QM,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${ZM.penIconButtonLandscape}`]:{marginTop:"auto"}}),$xe=Et(i5,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Nxe=Et("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${_d.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${_d.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>Ie({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"})),Fxe=Et("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${_d.ampmLabel}`]:t.ampmLabel},{[`&.${_d.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Ie({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${_d.ampmLabel}`]:{fontSize:17}}));function f5(e){const t=pn({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,onChange:a,openView:s,setOpenView:u,toggleMobileKeyboardView:c,toolbarTitle:d,views:f,disabled:p,readOnly:m}=t,g=Kt(t,Rxe),b=Br(),v=Xi(),h=d??v.timePickerDefaultToolbarTitle,y=po(),w=!!(n&&!r),{meridiemMode:_,handleMeridiemChange:x}=KB(l,n,a),T=M=>n?b.format(M,"hours12h"):b.format(M,"hours24h"),k=t,S=Lxe(Ie({},k,{theme:y})),C=ke.jsx($xe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:S.separator});return ke.jsxs(Ixe,Ie({viewType:"clock",landscapeDirection:"row",toolbarTitle:h,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:c,ownerState:k,className:S.root},g,{children:[ke.jsxs(Nxe,{className:S.hourMinuteLabel,ownerState:k,children:[Su(f,"hours")&&ke.jsx(dl,{tabIndex:-1,variant:"h3",onClick:()=>u("hours"),selected:s==="hours",value:l?T(l):"--"}),Su(f,["hours","minutes"])&&C,Su(f,"minutes")&&ke.jsx(dl,{tabIndex:-1,variant:"h3",onClick:()=>u("minutes"),selected:s==="minutes",value:l?b.format(l,"minutes"):"--"}),Su(f,["minutes","seconds"])&&C,Su(f,"seconds")&&ke.jsx(dl,{variant:"h3",onClick:()=>u("seconds"),selected:s==="seconds",value:l?b.format(l,"seconds"):"--"})]}),w&&ke.jsxs(Fxe,{className:S.ampmSelection,ownerState:k,children:[ke.jsx(dl,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:S.ampmLabel,value:b.getMeridiemText("am"),onClick:m?void 0:()=>x("am"),disabled:p}),ke.jsx(dl,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:S.ampmLabel,value:b.getMeridiemText("pm"),onClick:m?void 0:()=>x("pm"),disabled:p})]})]}))}const jxe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],bW=ge.forwardRef(function(t,n){const r=c5(t,"MuiDesktopTimePicker"),l=s5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,d5),{PaperProps:s,PopperProps:u,ToolbarComponent:c=f5,TransitionComponent:d,components:f,componentsProps:p}=r,m=Kt(r,jxe),g=Ie({},o,m,{components:f,componentsProps:p,ref:n,validationError:l});return ke.jsx(t5,Ie({},a,{DateInputProps:g,KeyboardDateInputComponent:bb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:f,componentsProps:p,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},m))}))}),zxe=["ToolbarComponent","value","onChange","components","componentsProps"],xW=ge.forwardRef(function(t,n){const r=c5(t,"MuiMobileTimePicker"),l=s5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,d5),{ToolbarComponent:s=f5,components:u,componentsProps:c}=r,d=Kt(r,zxe),f=Ie({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return ke.jsx(n5,Ie({},d,a,{DateInputProps:f,PureDateInputComponent:r5,components:u,componentsProps:c,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))});function Bxe(e){return yn("MuiPickerStaticWrapper",e)}hn("MuiPickerStaticWrapper",["root","content"]);const Wxe=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],qxe=e=>{const{classes:t}=e;return vn({root:["root"],content:["content"]},Bxe,t)},Uxe=Et("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),Hxe=Et("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:VM,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function wb(e){var t;const n=pn({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:r,onAccept:l,onClear:i,onCancel:o,onSetToday:a,children:s,components:u,componentsProps:c,className:d}=n,f=Kt(n,Wxe),p=qxe(n),m=(t=u==null?void 0:u.ActionBar)!=null?t:e5,g=(u==null?void 0:u.PaperContent)||ge.Fragment;return ke.jsx(ss.Provider,{value:r,children:ke.jsxs(Uxe,Ie({className:ma(p.root,d)},f,{children:[ke.jsx(Hxe,{className:p.content,children:ke.jsx(g,Ie({},c==null?void 0:c.paperContent,{children:s}))}),ke.jsx(m,Ie({onAccept:l,onClear:i,onCancel:o,onSetToday:a,actions:r==="desktop"?[]:["cancel","accept"]},c==null?void 0:c.actionBar))]}))})}const Vxe=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],Gxe=ge.forwardRef(function(t,n){const r=XM(t,"MuiStaticDatePicker"),{ToolbarComponent:l=JM,displayStaticWrapperAs:i="mobile",components:o,componentsProps:a,className:s}=r,u=Kt(r,Vxe),{pickerProps:c,inputProps:d,wrapperProps:f}=cs(r,KM),p=HM(r)!==null,m=Ie({},d,u,{ref:n,validationError:p,components:o});return ke.jsx(wb,Ie({displayStaticWrapperAs:i,components:o,componentsProps:a,className:s},f,{children:ke.jsx(us,Ie({},c,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:l,DateInputProps:m,components:o,componentsProps:a},u))}))}),Yxe=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],Xxe=ge.forwardRef(function(t,n){const r=a5(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=l5,components:o,componentsProps:a,hideTabs:s=l==="desktop",className:u}=r,c=Kt(r,Yxe),{pickerProps:d,inputProps:f,wrapperProps:p}=cs(r,o5),m=u5(r)!==null,g=ge.useMemo(()=>Ie({Tabs:xb},o),[o]),b=Ie({},f,c,{ref:n,validationError:m,components:g,componentsProps:a});return ke.jsx(wb,Ie({displayStaticWrapperAs:l,components:g,componentsProps:a,className:u},p,{children:ke.jsx(us,Ie({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:b,components:g,componentsProps:a,hideTabs:s},c))}))}),Kxe=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],Zxe=ge.forwardRef(function(t,n){const r=c5(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=f5,components:o,componentsProps:a,className:s}=r,u=Kt(r,Kxe),c=s5(r)!==null,{pickerProps:d,inputProps:f,wrapperProps:p}=cs(r,d5),m=Ie({},f,u,{ref:n,validationError:c,components:o,componentsProps:a});return ke.jsx(wb,Ie({displayStaticWrapperAs:l,components:o,componentsProps:a,className:s},p,{children:ke.jsx(us,Ie({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:m,components:o,componentsProps:a},u))}))}),Qxe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Jxe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=Kt(r,Qxe);return wM(l,{defaultMatches:!0})?ke.jsx(bW,Ie({ref:n,PopperProps:o,TransitionComponent:a},s)):ke.jsx(xW,Ie({ref:n,DialogProps:i},s))});/** @license MUI X v5.0.20 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */const l2e=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:aW,CalendarPickerSkeleton:z1e,ClockPicker:dW,DEFAULT_LOCALE:FB,DatePicker:uxe,DateTimePicker:Fxe,DateTimePickerTabs:xb,DesktopDatePicker:vW,DesktopDateTimePicker:xW,DesktopTimePicker:_W,LocalizationProvider:cye,MobileDatePicker:yW,MobileDateTimePicker:wW,MobileTimePicker:TW,MonthPicker:zB,MuiPickersAdapterContext:WM,PickerStaticWrapper:wb,PickersDay:VB,StaticDatePicker:e2e,StaticDateTimePicker:n2e,StaticTimePicker:a2e,TimePicker:i2e,YearPicker:nW,beBY:iye,calendarPickerClasses:P1e,calendarPickerSkeletonClasses:L1e,clockClasses:ebe,clockNumberClasses:mh,clockPickerClasses:mbe,clockPointerClasses:G1e,csCZ:Dve,datePickerToolbarClasses:Mbe,dateTimePickerTabsClasses:Axe,dateTimePickerToolbarClasses:bxe,dayPickerClasses:$ye,deDE:xve,enUS:Nve,esES:Tve,faIR:Sve,fiFI:Pve,frFR:Lve,getCalendarPickerSkeletonUtilityClass:oW,getCalendarPickerUtilityClass:rW,getClockPickerUtilityClass:cW,getMonthPickerUtilityClass:jB,getPickersDayUtilityClass:qB,getYearPickerUtilityClass:tW,huHU:$ve,isIS:Qve,itIT:Uve,jaJP:eye,koKR:Kve,monthPickerClasses:dye,nbNO:jve,nlNL:fve,pickersCalendarHeaderClasses:s1e,pickersDayClasses:hh,pickersFadeTransitionGroupClasses:xye,pickersMonthClasses:uk,pickersSlideTransitionClasses:Ka,pickersYearClasses:Eu,plPL:hve,ptBR:gve,ruRU:uye,svSE:Bve,timePickerToolbarClasses:_d,trTR:yve,ukUA:nye,urPK:aye,yearPickerClasses:T1e,zhCN:Gve},Symbol.toStringTag,{value:"Module"})),kW=Qn(l2e);var E7;function s2e(){return E7||(E7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t(uf()),l=t(db()),i=t(fb()),o=t(LM()),a=t($M()),s=t(NM()),u=t(ge),c=t(pb),d=t(pc),f=t(dB),p=t(FM),m=t(fB),g=t(Qhe),b=t(Jhe),v=t(eme),h=RB,y=kW,w=t(Vr),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],x=["helperText","error"],T=["helperText","error"];function k(O){var D=S();return function(){var E=(0,s.default)(O),I;if(D){var A=(0,s.default)(this).constructor;I=Reflect.construct(E,arguments,A)}else I=E.apply(this,arguments);return(0,a.default)(this,I)}}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var C=function(O){(0,o.default)(P,O);var D=k(P);function P(){return(0,l.default)(this,P),D.apply(this,arguments)}return(0,i.default)(P,[{key:"getProps",value:function(){var I=this.props;I.columnDef,I.rowData,I.onRowDataChange,I.errorState,I.autoFocus,I.onBulkEditRowChanged,I.scrollWidth;var A=(0,r.default)(I,_);return A}},{key:"renderLookupField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,z=(0,r.default)(A,x);return u.default.createElement(m.default,{error:!!j},u.default.createElement(f.default,(0,n.default)({},z,{value:this.props.value===void 0?"":this.props.value,onChange:function(N){return I.props.onChange(N.target.value)},style:{fontSize:13},inputProps:{autoFocus:this.props.autoFocus},SelectDisplayProps:{"aria-label":this.props.columnDef.title}}),Object.keys(this.props.columnDef.lookup).map(function(B){return u.default.createElement(p.default,{key:B,value:B},I.props.columnDef.lookup[B])})),!!F&&u.default.createElement(g.default,null,F))}},{key:"renderBooleanField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,z=(0,r.default)(A,T);return u.default.createElement(m.default,{error:!!j,component:"fieldset"},u.default.createElement(b.default,null,u.default.createElement(v.default,{label:"",control:u.default.createElement(d.default,(0,n.default)({},z,{value:String(this.props.value),checked:!!this.props.value,onChange:function(N){return I.props.onChange(N.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),u.default.createElement(g.default,null,F))}},{key:"renderDateField",value:function(){var I=this.props.columnDef.dateSetting&&this.props.columnDef.dateSetting.format?this.props.columnDef.dateSetting.format:"dd.MM.yyyy";return u.default.createElement(y.LocalizationProvider,{dateAdapter:h.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DatePicker,(0,n.default)({},this.getProps(),{renderInput:function(F){return u.default.createElement(c.default,F)},format:I,value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:h.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.TimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderDateTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:h.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DateTimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"dd.MM.yyyy HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTextField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",fullWidth:!0,type:this.props.columnDef.type==="numeric"?"number":"text",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,value:this.props.value===void 0?"":this.props.value,onChange:function(F){return I.props.onChange(I.props.columnDef.type==="numeric"?F.target.valueAsNumber:F.target.value)},InputProps:{style:{minWidth:50,fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:this.props.columnDef.type==="numeric"?{textAlign:"right"}:{}}}))}},{key:"renderCurrencyField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,type:"number",value:this.props.value===void 0?"":this.props.value,onChange:function(F){var j=F.target.valueAsNumber;return!j&&j!==0&&(j=void 0),I.props.onChange(j)},InputProps:{style:{fontSize:13,textAlign:"right"}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:{textAlign:"right"}},onKeyDown:this.props.onKeyDown}))}},{key:"render",value:function(){var I="ok";return this.props.columnDef.editComponent?I=this.props.columnDef.editComponent(this.props):this.props.columnDef.lookup?I=this.renderLookupField():this.props.columnDef.type==="boolean"?I=this.renderBooleanField():this.props.columnDef.type==="date"?I=this.renderDateField():this.props.columnDef.type==="time"?I=this.renderTimeField():this.props.columnDef.type==="datetime"?I=this.renderDateTimeField():this.props.columnDef.type==="currency"?I=this.renderCurrencyField():I=this.renderTextField(),I}}]),P}(u.default.Component);C.propTypes={value:w.default.any,onChange:w.default.func.isRequired,columnDef:w.default.object.isRequired,locale:w.default.object,rowData:w.default.object,onRowDataChange:w.default.func,errorState:w.default.func,autoFocus:w.default.bool,onBulkEditRowChanged:w.default.func,scrollWidth:w.default.number,onKeyDown:w.default.func};var M=C;e.default=M}(Jw)),Jw}var h_={},v0={},R7;function SW(){if(R7)return v0;R7=1;var e=Cn;Object.defineProperty(v0,"__esModule",{value:!0}),v0.validateInput=i;var t=e($a()),n=e(_a());function r(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);a&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),s.push.apply(s,u)}return s}function l(o){for(var a=1;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var h=function(w){(0,i.default)(x,w);var _=b(x);function x(T){var k;return(0,n.default)(this,x),k=_.call(this,T),(0,s.default)((0,l.default)(k),"getStyle",function(){var S={boxShadow:"2px 0px 15px rgba(125,147,178,.25)",color:"inherit",width:k.props.columnDef.tableData.width,boxSizing:"border-box",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",padding:"0 16px"};return typeof k.props.columnDef.cellStyle=="function"?S=g(g({},S),k.props.columnDef.cellStyle(k.state.value,k.props.rowData)):S=g(g({},S),k.props.columnDef.cellStyle),typeof k.props.cellEditable.cellStyle=="function"?S=g(g({},S),k.props.cellEditable.cellStyle(k.state.value,k.props.rowData,k.props.columnDef)):S=g(g({},S),k.props.cellEditable.cellStyle),S}),(0,s.default)((0,l.default)(k),"handleKeyDown",function(S){S.keyCode===13?k.onApprove():S.keyCode===27&&k.onCancel()}),(0,s.default)((0,l.default)(k),"onApprove",function(){var S=(0,p.validateInput)(k.props.columnDef,k.state.value).isValid;S&&k.setState({isLoading:!0},function(){k.props.cellEditable.onCellEditApproved(k.state.value,k.props.getFieldValue(k.props.rowData,k.props.columnDef),k.props.rowData,k.props.columnDef).then(function(){k.setState({isLoading:!1}),k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}).catch(function(C){k.setState({isLoading:!1})})})}),(0,s.default)((0,l.default)(k),"onCancel",function(){k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}),k.state={errorState:{isValid:!0,helperText:""},isLoading:!1,value:T.getFieldValue(k.props.rowData,k.props.columnDef,!1)},k}return(0,r.default)(x,[{key:"renderActions",value:function(){if(this.state.isLoading)return u.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},u.default.createElement(f.default,{size:20}));var k=[{icon:this.props.icons.Check,tooltip:this.props.localization.saveTooltip,onClick:this.onApprove,disabled:this.state.isLoading||!this.state.errorState.isValid},{icon:this.props.icons.Clear,tooltip:this.props.localization.cancelTooltip,onClick:this.onCancel,disabled:this.state.isLoading}];return u.default.createElement(this.props.components.Actions,{actions:k,components:this.props.components,size:"small"})}},{key:"handleChange",value:function(k){var S=(0,p.validateInput)(this.props.columnDef,k);this.setState({errorState:S,value:k})}},{key:"render",value:function(){var k=this;return u.default.createElement(d.default,{size:this.props.size,style:this.getStyle(),padding:"none"},u.default.createElement("div",{style:{display:"flex",alignItems:"center"}},u.default.createElement("div",{style:{flex:1,marginRight:4}},u.default.createElement(this.props.components.EditField,{columnDef:this.props.columnDef,value:this.state.value,error:!this.state.errorState.isValid,helperText:this.state.errorState.helperText,onChange:function(C){return k.handleChange(C)},onKeyDown:this.handleKeyDown,disabled:this.state.isLoading,rowData:this.props.rowData,autoFocus:!0})),this.renderActions()))}}]),x}(u.default.Component);h.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},h.propTypes={cellEditable:c.default.object.isRequired,columnDef:c.default.object.isRequired,components:c.default.object.isRequired,errorState:c.default.oneOfType([c.default.object,c.default.bool]),icons:c.default.object.isRequired,localization:c.default.object.isRequired,onCellEditFinished:c.default.func.isRequired,rowData:c.default.object.isRequired,size:c.default.string,getFieldValue:c.default.func.isRequired};var y=h;e.default=y}(h_)),h_}var m_={},g_={exports:{}},v_={exports:{}},I7;function c2e(){return I7||(I7=1,function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(v_)),v_.exports}var y_={exports:{}},$7;function d2e(){return $7||($7=1,function(e){function t(n,r){var l=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(l!=null){var i,o,a,s,u=[],c=!0,d=!1;try{if(a=(l=l.call(n)).next,r===0){if(Object(l)!==l)return;c=!1}else for(;!(c=(i=a.call(l)).done)&&(u.push(i.value),u.length!==r);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&l.return!=null&&(s=l.return(),Object(s)!==s))return}finally{if(d)throw o}}return u}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(y_)),y_.exports}var b_={exports:{}},N7;function f2e(){return N7||(N7=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(b_)),b_.exports}var F7;function iu(){return F7||(F7=1,function(e){var t=c2e(),n=d2e(),r=uB(),l=f2e();function i(o,a){return t(o)||n(o,a)||r(o,a)||l()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(g_)),g_.exports}const df=Qn(aae),hc=Qn(Mde);var j7;function p2e(){return j7||(j7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t($a()),l=t(_a()),i=t(iu()),o=t(ge),a=t(Vr),s=t(RM),u=t(df),c=t(hc);function d(g,b){var v=Object.keys(g);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(g);b&&(h=h.filter(function(y){return Object.getOwnPropertyDescriptor(g,y).enumerable})),v.push.apply(v,h)}return v}function f(g){for(var b=1;b0&&i.default.createElement(r.default,{colSpan:a.options.detailPanelOffset.left}),i.default.createElement(r.default,{size:a.size,colSpan:a.renderColumns.length-a.options.detailPanelOffset.left-a.options.detailPanelOffset.right,padding:"none"},i.default.createElement(n.default,{in:d,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){b.current=void 0,g()}},h({rowData:a.data}))))}return y0}var Ea={},W7;function ds(){if(W7)return Ea;W7=1;var e=Cn;Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.widthToNumber=Ea.selectionMaxWidth=Ea.rowActions=Ea.reducePercentsInCalc=Ea.parseFirstLastPageButtons=Ea.elementSize=Ea.baseIconSize=Ea.actionsColumnWidth=void 0;var t=e($a()),n=e(_a());function r(p,m){var g=Object.keys(p);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(p);m&&(b=b.filter(function(v){return Object.getOwnPropertyDescriptor(p,v).enumerable})),g.push.apply(g,b)}return g}function l(p){for(var m=1;m1){var v=b[1];return m.replace(/\d*%/,"".concat(g*(v/100),"px"))}return m.replace(/\d*%/,"".concat(g,"px"))};Ea.reducePercentsInCalc=c;var d=function(m){return typeof m=="number"?m:!m||!m.match(/^\s*\d+(px)?\s*$/)?NaN:Number(m.replace(/px$/,""))};Ea.widthToNumber=d;var f=function(m,g){var b={first:!0,last:!0};return typeof m=="boolean"?b={first:m,last:m}:(0,n.default)(m)==="object"&&(b=l(l({},b),m)),g&&(b={first:b.last,last:b.first}),b};return Ea.parseFirstLastPageButtons=f,Ea}var b0={},q7;function v2e(){if(q7)return b0;q7=1;var e=Cn;Object.defineProperty(b0,"__esModule",{value:!0}),b0.useDoubleClick=n;var t=e(ge);function n(r,l){var i=t.default.useRef(0),o=t.default.useRef(null),a=t.default.useRef(null),s=t.default.useRef(null);t.default.useEffect(function(){a.current=l,s.current=r});var u=function(){clearTimeout(o.current),o.current=null,i.current=0},c=t.default.useCallback(function(d){var f=i.current+1===2,p=o.current;if(p&&f&&(u(),a.current&&a.current(d)),!p){i.current=i.current+1;var m=function(){u(),s.current&&s.current(d)};if(a.current){var g=setTimeout(m,250);o.current=g}else m()}},[]);return c}return b0}var U7;function y2e(){return U7||(U7=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(cf()),l=t(ls),i=t(hc),o=t(df),a=t(pc),s=t(Ir()),u=t(Cl),c=t($a()),d=t(uf()),f=t(ge),p=t(Vr),m=g2e(),g=x(ds()),b=v2e(),v=Db(),h=Yi(),y=["forwardedRef"],w=["data","components","detailPanel","getFieldValue","isTreeData","onRowSelected","onRowEditStarted","onTreeExpandChanged","onToggleDetailPanel","onEditingCanceled","onEditingApproved","hasAnyEditingRow","treeDataMaxLevel","path","actions","errorState","cellEditable","onCellEditStarted","onCellEditFinished","persistEvents","scrollWidth","onRowClick","onRowDoubleClick","columns"];function _(M){if(typeof WeakMap!="function")return null;var O=new WeakMap,D=new WeakMap;return(_=function(E){return E?D:O})(M)}function x(M,O){if(M&&M.__esModule)return M;if(M===null||n(M)!=="object"&&typeof M!="function")return{default:M};var D=_(O);if(D&&D.has(M))return D.get(M);var P={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in M)if(I!=="default"&&Object.prototype.hasOwnProperty.call(M,I)){var A=E?Object.getOwnPropertyDescriptor(M,I):null;A&&(A.get||A.set)?Object.defineProperty(P,I,A):P[I]=M[I]}return P.default=M,D&&D.set(M,P),P}function T(M,O){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(M);O&&(P=P.filter(function(E){return Object.getOwnPropertyDescriptor(M,E).enumerable})),D.push.apply(D,P)}return D}function k(M){for(var O=1;O-1)}).sort(function(Ae,Re){return Ae.tableData.columnOrder-Re.tableData.columnOrder}).map(function(Ae){var Re=D.getFieldValue(D.data,Ae);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Fe){return Fe.tableData.id===Ae.tableData.id}))return f.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:I,localization:P,columnDef:Ae,size:Pe,key:"cell-"+D.data.tableData.id+"-"+Ae.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:H});var Le=Ae.editable!=="never"&&!!D.cellEditable;Le&&D.cellEditable.isCellEditable&&(Le=D.cellEditable.isCellEditable(D.data,Ae));var $e="cell-".concat(D.data.tableData.id,"-").concat(Ae.tableData.id);return f.default.createElement(D.components.Cell,{size:Pe,errorState:D.errorState,columnDef:k({cellStyle:E.cellStyle},Ae),value:Re,key:$e,rowData:D.data,cellEditable:Le,onCellEditStarted:D.onCellEditStarted,scrollWidth:H})});return Te},Pe=g.elementSize(A),Me=W.length*g.baseIconSize(A),ce=function(Te){return f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-actions-column",style:k({width:Me,padding:"0px 5px",boxSizing:"border-box"},E.actionsCellStyle)},f.default.createElement(D.components.Actions,{data:D.data,actions:Te,components:D.components,size:Pe,disabled:D.hasAnyEditingRow}))},we=function(){var Te=E.selectionProps||{};typeof Te=="function"&&(Te=Te(D.data));var Ae=g.selectionMaxWidth(A,D.treeDataMaxLevel)||0,Re=Pe!=="medium"?{padding:"4px"}:void 0;return f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-selection-column",style:{width:Ae}},f.default.createElement(a.default,(0,s.default)({size:Pe,checked:D.data.tableData.checked===!0,onClick:function($e){return $e.stopPropagation()},value:D.data.tableData.id.toString(),onChange:function($e){D.onRowSelected($e,D.path,D.data)},style:Re},Te)))},K=function(Te){return{transform:Te?"rotate(90deg)":"none"}},ne=function(){return E.showDetailPanelIcon?typeof D.detailPanel=="function"?f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-detail-panel-column",style:k({width:42,textAlign:"center"},E.detailPanelColumnStyle)},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Pe,style:k({transition:"all ease 200ms"},K(D.data.tableData.showDetailPanel)),onClick:function(Ae){D.onToggleDetailPanel(D.path,D.detailPanel),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-detail-panel-column"},f.default.createElement("div",{style:k({width:42*D.detailPanel.length,textAlign:"center",display:"flex"},E.detailPanelColumnStyle)},D.detailPanel.map(function(Te,Ae){typeof Te=="function"&&(Te=Te(D.data));var Re=(D.data.tableData.showDetailPanel||"").toString()===Te.render.toString(),Le=f.default.createElement(I.DetailPanel,null),$e=!0;return Re?Te.openIcon?(Le=f.default.createElement(v.MTableCustomIcon,{icon:Te.openIcon,iconProps:Te.iconProps}),$e=!1):Te.icon&&(Le=f.default.createElement(v.MTableCustomIcon,{icon:Te.icon,iconProps:Te.iconProps})):Te.icon&&(Le=f.default.createElement(v.MTableCustomIcon,{icon:Te.icon,iconProps:Te.iconProps}),$e=!1),Le=f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Pe,key:"key-detail-panel-"+Ae,style:k({transition:"all ease 200ms"},K($e&&Re)),disabled:Te.disabled,onClick:function(Be){D.onToggleDetailPanel(D.path,Te.render),Be.stopPropagation()}},Le),Te.tooltip&&(Le=f.default.createElement(i.default,{key:"key-detail-panel-"+Ae,title:Te.tooltip},Le)),Le}))):null},de=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-tree-data-column",style:{width:48+9*(D.treeDataMaxLevel-2)}},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Pe,style:k({transition:"all ease 200ms",marginLeft:D.level*9},K(D.data.tableData.isTreeExpanded)),onClick:function(Ae){D.onTreeExpandChanged(D.path,D.data),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{padding:"none",key:"key-tree-data-column"})},_e=function(Te,Ae){var Re={};return typeof E.rowStyle=="function"?Re=k(k({},Re),E.rowStyle(D.data,Te,Ae,D.hasAnyEditingRow)):E.rowStyle&&(Re=k(k({},Re),E.rowStyle)),(Z||G)&&(Re.cursor="pointer"),D.hasAnyEditingRow&&(Re.opacity=Re.opacity?Re.opacity:.2),Re},ue=Oe();E.selection&&ue.splice(0,0,we());var pe=g.rowActions(D);if(pe.length>0){if(E.actionsColumnIndex===-1)ue.push(ce(pe));else if(E.actionsColumnIndex>=0){var xe=0;E.selection&&(xe=1),ue.splice(E.actionsColumnIndex+xe,0,ce(pe))}}return D.detailPanel&&(E.detailPanelColumnAlignment==="right"?ue.push(ne()):ue.splice(0,0,ne())),D.isTreeData&&ue.splice(0,0,de()),D.columns.filter(function(ye){return ye.tableData.groupOrder>-1}).forEach(function(ye){ue.splice(0,0,f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-group-cell"+ye.tableData.id}))}),f.default.createElement(f.default.Fragment,null,f.default.createElement(l.default,(0,s.default)({ref:O,selected:q},Q,{onClick:function(Te){ee&&Te.persist(),!q&&Se(Te)},hover:!!(Z||G),style:_e(D.index,D.level),"data-testid":"mtablebodyrow"}),ue),f.default.createElement(m.MTableDetailPanel,{options:E,data:D.data,detailPanel:D.detailPanel,renderColumns:ue,size:Pe}),D.data.tableData.childRows&&D.data.tableData.isTreeExpanded&&D.data.tableData.childRows.map(function(ye,Te){return ye.tableData.editing?f.default.createElement(D.components.EditRow,{columns:re,components:D.components,data:ye,icons:I,localization:P,getFieldValue:D.getFieldValue,key:Te,mode:ye.tableData.editing,isTreeData:D.isTreeData,detailPanel:D.detailPanel,onEditingCanceled:N,onEditingApproved:R,errorState:D.errorState}):f.default.createElement(D.components.Row,(0,s.default)({},D,{data:ye,index:Te,key:Te,level:D.level+1,path:[].concat((0,r.default)(D.path),[ye.tableData.uuid]),onEditingCanceled:N,onEditingApproved:R,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:Y,errorState:D.errorState,cellEditable:U,onCellEditStarted:V,onCellEditFinished:te}))}))}S.defaultProps={actions:[],index:0,data:{},path:[],persistEvents:!1},S.propTypes={forwardedRef:p.default.element,actions:p.default.array,index:p.default.number.isRequired,data:p.default.object.isRequired,detailPanel:p.default.oneOfType([p.default.func,p.default.arrayOf(p.default.oneOfType([p.default.object,p.default.func]))]),hasAnyEditingRow:p.default.bool,onRowSelected:p.default.func,path:p.default.arrayOf(p.default.oneOfType([p.default.string,p.default.number])),persistEvents:p.default.bool,treeDataMaxLevel:p.default.number,getFieldValue:p.default.func.isRequired,columns:p.default.array,onToggleDetailPanel:p.default.func.isRequired,onRowClick:p.default.func,onRowDoubleClick:p.default.func,onEditingApproved:p.default.func,onEditingCanceled:p.default.func,errorState:p.default.oneOfType([p.default.object,p.default.bool])};var C=f.default.forwardRef(function(O,D){return f.default.createElement(S,(0,s.default)({},O,{forwardedRef:D}))});e.default=C}(w_)),w_}var __={},Ts={};const b2e=Qn(Z0e);var H7;function x2e(){if(H7)return Ts;H7=1;var e=Cn;Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.getCurrencyValue=i,Ts.getEmptyValue=l,Ts.getRenderValue=o,Ts.isoDateRegex=void 0;var t=e(ge),n=e(b2e),r=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;Ts.isoDateRegex=r;function l(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof a=="function"?s.columnDef.emptyValue(s.rowData):a}function i(a,s){return a!==void 0?new Intl.NumberFormat(a.locale!==void 0?a.locale:"en-US",{style:"currency",currency:a.currencyCode!==void 0?a.currencyCode:"USD",minimumFractionDigits:a.minimumFractionDigits!==void 0?a.minimumFractionDigits:2,maximumFractionDigits:a.maximumFractionDigits!==void 0?a.maximumFractionDigits:2}).format(s!==void 0?s:0):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(s!==void 0?s:0)}function o(a,s,u){var c=a.columnDef.dateSetting&&a.columnDef.dateSetting.locale?a.columnDef.dateSetting.locale:void 0;if(a.columnDef.emptyValue!==void 0&&(a.value===void 0||a.value===null))return l(a.columnDef.emptyValue,a);if(a.rowData===void 0&&a.value&&a.columnDef.groupRender)return a.columnDef.groupRender(a.value);if(a.columnDef.render&&a.rowData)return a.columnDef.render(a.rowData);if(a.columnDef.type==="boolean"){var d={textAlign:"left",verticalAlign:"middle",width:48};return a.value?t.default.createElement(s.Check,{style:d}):t.default.createElement(s.ThirdStateCheck,{style:d})}else{if(a.columnDef.type==="date")return a.value instanceof Date?a.value.toLocaleDateString(c):r.exec(a.value)?(0,n.default)(a.value).toLocaleDateString(c):a.value;if(a.columnDef.type==="time")return a.value instanceof Date?a.value.toLocaleTimeString():r.exec(a.value)?(0,n.default)(a.value).toLocaleTimeString(c):a.value;if(a.columnDef.type==="datetime")return a.value instanceof Date?a.value.toLocaleString():r.exec(a.value)?(0,n.default)(a.value).toLocaleString(c):a.value;if(a.columnDef.type==="currency")return i(a.columnDef.currencySetting,a.value);if(typeof a.value=="boolean")return a.value.toString()}return a.value}return Ts}var ks={},V7;function _b(){if(V7)return ks;V7=1;var e=Cn,t=_a();Object.defineProperty(ks,"__esModule",{value:!0}),ks.getStyle=c,ks.setObjectByKey=ks.selectFromObject=void 0;var n=e($a()),r=i(ds());function l(d){if(typeof WeakMap!="function")return null;var f=new WeakMap,p=new WeakMap;return(l=function(g){return g?p:f})(d)}function i(d,f){if(d&&d.__esModule)return d;if(d===null||t(d)!=="object"&&typeof d!="function")return{default:d};var p=l(f);if(p&&p.has(d))return p.get(d);var m={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in d)if(b!=="default"&&Object.prototype.hasOwnProperty.call(d,b)){var v=g?Object.getOwnPropertyDescriptor(d,b):null;v&&(v.get||v.set)?Object.defineProperty(m,b,v):m[b]=d[b]}return m.default=d,p&&p.set(d,m),m}function o(d,f){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);f&&(m=m.filter(function(g){return Object.getOwnPropertyDescriptor(d,g).enumerable})),p.push.apply(p,m)}return p}function a(d){for(var f=1;f-1)}).sort(function(H,Z){return H.tableData.columnOrder-Z.tableData.columnOrder}).map(function(H,Z){var G=k.getFieldValue(D.data,H,!1),X=function(Oe,Pe){var Me={color:"inherit"};return typeof Oe.cellStyle=="function"?Me=_(_({},Me),Oe.cellStyle(Pe,k.data)):Me=_(_({},Me),Oe.cellStyle),Oe.disableClick&&(Me.cursor="default"),_({},Me)};Z===0&&24+k.level*20;var Q=!1;if(H.editable===void 0&&(Q=!0),H.editable==="always"&&(Q=!0),H.editable==="onAdd"&&k.mode==="add"&&(Q=!0),H.editable==="onUpdate"&&k.mode==="update"&&(Q=!0),typeof H.editable=="function"&&(Q=H.editable(H,k.data)),!H.field||!Q){var re=k.getFieldValue(D.data,H);return a.default.createElement(k.components.Cell,{size:V,icons:S,columnDef:H,value:re,key:H.tableData.id,rowData:k.data,style:X(H,G)})}else{var ae=H.editComponent,ie=(0,l.default)(H,b),se=ae||k.components.EditField,he=(0,g.validateInput)(H,D.data);return te===-1&&(te=Z),a.default.createElement(s.default,{size:V,key:H.tableData.id,align:["numeric"].indexOf(H.type)!==-1?"right":"left",style:X(H,G)},a.default.createElement(se,{key:H.tableData.id,columnDef:ie,autoFocus:te===Z,value:G,error:!he.isValid,helperText:he.helperText,locale:k.localization.dateTimePickerLocalization,rowData:D.data,onChange:function(Oe){var Pe=_({},D.data);(0,f.setObjectByKey)(Pe,H.field,Oe),P({data:Pe}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Pe)},onRowDataChange:function(Oe){P({data:Oe}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Oe)}}))}});return ee}var I=k.columns.every(function(V){var te=(0,g.validateInput)(V,D.data);return te.isValid}),A=function(){I&&k.onEditingApproved(k.mode,D.data,k.data)};function F(){if(k.mode!=="bulk"){var V=m.elementSize(k),te=[{icon:S.Check,tooltip:k.localization.saveTooltip,disabled:!I,onClick:A},{icon:S.Clear,tooltip:k.localization.cancelTooltip,onClick:function(){k.onEditingCanceled(k.mode,k.data)}}];return a.default.createElement(s.default,{size:V,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},C.editCellStyle)},a.default.createElement(k.components.Actions,{data:k.data,actions:te,components:k.components,size:V}))}}function j(){var V={borderBottom:"1px solid red"};return V}var z=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?A():te.keyCode===27&&k.onEditingCanceled(k.mode,k.data)},B=m.elementSize(k),N;if(k.mode==="add"||k.mode==="update"||k.mode==="bulk")N=E();else{var R=k.columns.filter(function(V){return!V.hidden&&!(V.tableData.groupOrder>-1)}).length;N=[a.default.createElement(s.default,{size:B,padding:C.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:R},a.default.createElement(c.default,{variant:"h6"},k.localization.deleteText))]}if(C.selection&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-selection-cell"})),k.isTreeData&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-tree-data-cell"})),C.actionsColumnIndex===-1)N.push(F());else if(C.actionsColumnIndex>=0){var q=0;C.selection&&(q=1),k.isTreeData&&(q=1,C.selection&&N.splice(1,1)),N.splice(C.actionsColumnIndex+q,0,F())}if(k.detailPanel&&C.showDetailPanelIcon!==!1&&k.mode!=="bulk"){var Y=C.detailPanelColumnAlignment,L=Y==="left"?0:N.length;N.splice(L,0,a.default.createElement(s.default,{padding:"none",key:"key-detail-panel-cell"}))}k.columns.filter(function(V){return V.tableData.groupOrder>-1}).forEach(function(V){N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-group-cell"+V.tableData.id}))}),k.detailPanel,k.isTreeData,k.onRowClick,k.onRowSelected,k.onTreeExpandChanged,k.onToggleDetailPanel,k.onEditingApproved,k.onEditingCanceled,k.getFieldValue,k.components,k.columns,k.errorState,k.onBulkEditRowChanged,k.bulkEditChangedRows,k.scrollWidth;var W=k.forwardedRef,U=(0,l.default)(k,v);return a.default.createElement(u.default,(0,r.default)({onKeyDown:z},U,{ref:W,style:j()}),N)}x.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},x.propTypes={actions:d.default.array,index:d.default.number.isRequired,data:d.default.object,detailPanel:d.default.oneOfType([d.default.func,d.default.arrayOf(d.default.oneOfType([d.default.object,d.default.func]))]),onRowSelected:d.default.func,path:d.default.arrayOf(d.default.number),columns:d.default.array,onRowClick:d.default.func,onEditingApproved:d.default.func,onEditingCanceled:d.default.func,localization:d.default.object,getFieldValue:d.default.func,errorState:d.default.oneOfType([d.default.object,d.default.bool]),onBulkEditRowChanged:d.default.func};var T=a.default.forwardRef(function(S,C){return a.default.createElement(x,(0,r.default)({},S,{forwardedRef:C}))});e.default=T}(k_)),k_}var S_={},C_={},pu={},K7;function h5(){if(K7)return pu;K7=1;var e=Cn;Object.defineProperty(pu,"__esModule",{value:!0}),pu.getLocalizedFilterPlaceHolder=pu.getLocalizationData=void 0;var t=e($a()),n=MW();function r(a,s){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);s&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),u.push.apply(u,c)}return u}function l(a){for(var s=1;s-1}),d.default.createElement(a.default,{primary:_.lookup[D]}))})))}var y=d.default.forwardRef(function(_,x){return d.default.createElement(h,(0,r.default)({},_,{forwardedRef:x}))});e.default=y}(M_)),M_}var P_={};const CW=Qn(Due);var J7;function P2e(){return J7||(J7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t(pb),l=t(CW),i=t(hc),o=t(ge),a=h5();function s(c){var d,f,p=c.columnDef,m=c.icons,g=c.localization,b=c.hideFilterIcons,v=c.onFilterChanged,h=c.forwardedRef,y=(0,a.getLocalizationData)(g),w=m.Filter;return o.default.createElement(r.default,{ref:h,style:p.type==="numeric"?{float:(d=p.align)!==null&&d!==void 0?d:"right"}:{float:(f=p.align)!==null&&f!==void 0?f:"left"},type:p.type==="numeric"?"number":"search",value:p.tableData.filterValue||"",placeholder:(0,a.getLocalizedFilterPlaceHolder)(p,g),onChange:function(x){v(p.tableData.id,x.target.value)},inputProps:{"aria-label":"filter data by ".concat(p.title)},InputProps:b||p.hideFilterIcon?void 0:{startAdornment:o.default.createElement(l.default,{position:"start"},o.default.createElement(i.default,{title:y.filterTooltip},o.default.createElement(w,null)))}})}var u=o.default.forwardRef(function(d,f){return o.default.createElement(s,(0,n.default)({},d,{forwardedRef:f}))});e.default=u}(P_)),P_}var O_={},eE;function O2e(){return eE||(eE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t(pc),l=t(ge);function i(a){var s=a.forwardedRef,u=a.columnDef,c=a.onFilterChanged;return l.default.createElement(r.default,{ref:s,inputProps:{"aria-label":"Filter of ".concat(u.title)},indeterminate:u.tableData.filterValue===void 0,checked:u.tableData.filterValue==="checked",onChange:function(){var f;u.tableData.filterValue===void 0?f="checked":u.tableData.filterValue==="checked"&&(f="unchecked"),c(u.tableData.id,f)}})}var o=l.default.forwardRef(function(s,u){return l.default.createElement(i,(0,n.default)({},s,{forwardedRef:u}))});e.default=o}(O_)),O_}var A_={},tE;function A2e(){return tE||(tE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=o(ge);function i(u){if(typeof WeakMap!="function")return null;var c=new WeakMap,d=new WeakMap;return(i=function(p){return p?d:c})(u)}function o(u,c){if(u&&u.__esModule)return u;if(u===null||n(u)!=="object"&&typeof u!="function")return{default:u};var d=i(c);if(d&&d.has(u))return d.get(u);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in u)if(m!=="default"&&Object.prototype.hasOwnProperty.call(u,m)){var g=p?Object.getOwnPropertyDescriptor(u,m):null;g&&(g.get||g.set)?Object.defineProperty(f,m,g):f[m]=u[m]}return f.default=u,d&&d.set(u,f),f}function a(u){var c=u.columnDef,d=u.onFilterChanged,f=u.forwardedRef;return(0,l.createElement)(c.filterComponent,{columnDef:c,onFilterChanged:d,forwardedRef:f})}var s=l.default.forwardRef(function(c,d){return l.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(A_)),A_}var nE;function MW(){return nE||(nE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=b,e.default=void 0;var n=t(ls),r=t(Cl),l=t($a()),i=t(Ir()),o=t(ge),a=t(Vr),s=t(k2e()),u=t(M2e()),c=t(P2e()),d=t(O2e()),f=t(A2e()),p=eg();function m(h,y){var w=Object.keys(h);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(h);y&&(_=_.filter(function(x){return Object.getOwnPropertyDescriptor(h,x).enumerable})),w.push.apply(w,_)}return w}function g(h){for(var y=1;y-1)}).sort(function(k,S){return k.tableData.columnOrder-S.tableData.columnOrder}).map(function(k){return o.default.createElement(r.default,{key:k.tableData.id,style:g(g({},y.filterCellStyle),k.filterCellStyle)},w(k))});if(y.selection&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-selection-column"})),h.hasActions)if(y.actionsColumnIndex===-1)_.push(o.default.createElement(r.default,{key:"key-action-column"}));else{var x=0;h.selection&&(x=1),_.splice(y.actionsColumnIndex+x,0,o.default.createElement(r.default,{key:"key-action-column"}))}if(h.hasDetailPanel&&y.showDetailPanelIcon){var T=y.detailPanelColumnAlignment==="left"?0:_.length;_.splice(T,0,o.default.createElement(r.default,{padding:"none",key:"key-detail-panel-column"}))}return h.isTreeData>0&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-tree-data-filter"})),h.columns.filter(function(k){return k.tableData.groupOrder>-1}).forEach(function(k){_.splice(0,0,o.default.createElement(r.default,{padding:"checkbox",key:"key-group-filter"+k.tableData.id}))}),o.default.createElement(n.default,{id:"m--table--filter--row",ref:h.forwardedRef,style:g({height:10},y.filterRowStyle)},_)}b.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},b.propTypes={columns:a.default.array.isRequired,hasDetailPanel:a.default.bool.isRequired,isTreeData:a.default.bool.isRequired,onFilterChanged:a.default.func.isRequired,hasActions:a.default.bool,localization:a.default.object};var v=o.default.forwardRef(function(y,w){return o.default.createElement(b,(0,i.default)({},y,{forwardedRef:w}))});e.default=v}(S_)),S_}var D_={};const PW=Qn(Mfe),D2e=Qn(kie);function rE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function aE(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Mo(1));return n(OW)(e,t)}if(typeof e!="function")throw new Error(Mo(2));var l=e,i=t,o=[],a=o,s=!1;function u(){a===o&&(a=o.slice())}function c(){if(s)throw new Error(Mo(3));return i}function d(g){if(typeof g!="function")throw new Error(Mo(4));if(s)throw new Error(Mo(5));var b=!0;return u(),a.push(g),function(){if(b){if(s)throw new Error(Mo(6));b=!1,u();var h=a.indexOf(g);a.splice(h,1),o=null}}}function f(g){if(!E2e(g))throw new Error(Mo(7));if(typeof g.type>"u")throw new Error(Mo(8));if(s)throw new Error(Mo(9));try{s=!0,i=l(i,g)}finally{s=!1}for(var b=o=a,v=0;vDW=e,$2e=()=>DW,uE=Symbol.for("react-redux-context"),cE=typeof globalThis<"u"?globalThis:{};function N2e(){var e;if(!ge.createContext)return{};const t=(e=cE[uE])!=null?e:cE[uE]=new Map;let n=t.get(ge.createContext);return n||(n=ge.createContext(null),t.set(ge.createContext,n)),n}const EW=N2e(),F2e=()=>{throw new Error("uSES not initialized!")},j2e=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function z2e(e,t,n,r,{areStatesEqual:l,areOwnPropsEqual:i,areStatePropsEqual:o}){let a=!1,s,u,c,d,f;function p(h,y){return s=h,u=y,c=e(s,u),d=t(r,u),f=n(c,d,u),a=!0,f}function m(){return c=e(s,u),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function g(){return e.dependsOnOwnProps&&(c=e(s,u)),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function b(){const h=e(s,u),y=!o(h,c);return c=h,y&&(f=n(c,d,u)),f}function v(h,y){const w=!i(y,u),_=!l(h,s,y,u);return s=h,u=y,w&&_?m():w?g():_?b():f}return function(y,w){return a?v(y,w):p(y,w)}}function B2e(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:l}=t,i=Kt(t,j2e);const o=n(e,i),a=r(e,i),s=l(e,i);return z2e(o,a,s,e,i)}function W2e(e,t){const n={};for(const r in e){const l=e[r];typeof l=="function"&&(n[r]=(...i)=>t(l(...i)))}return n}function fk(e){return function(n){const r=e(n);function l(){return r}return l.dependsOnOwnProps=!1,l}}function dE(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function RW(e,t){return function(r,{displayName:l}){const i=function(a,s){return i.dependsOnOwnProps?i.mapToProps(a,s):i.mapToProps(a,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(a,s){i.mapToProps=e,i.dependsOnOwnProps=dE(e);let u=i(a,s);return typeof u=="function"&&(i.mapToProps=u,i.dependsOnOwnProps=dE(u),u=i(a,s)),u},i}}function m5(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function q2e(e){return e&&typeof e=="object"?fk(t=>W2e(e,t)):e?typeof e=="function"?RW(e):m5(e,"mapDispatchToProps"):fk(t=>({dispatch:t}))}function U2e(e){return e?typeof e=="function"?RW(e):m5(e,"mapStateToProps"):fk(()=>({}))}function H2e(e,t,n){return Ie({},n,e,t)}function V2e(e){return function(n,{displayName:r,areMergedPropsEqual:l}){let i=!1,o;return function(s,u,c){const d=e(s,u,c);return i?l(d,o)||(o=d):(i=!0,o=d),o}}}function G2e(e){return e?typeof e=="function"?V2e(e):m5(e,"mergeProps"):()=>H2e}function Y2e(){const e=$2e();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],l=t;for(;l;)r.push(l),l=l.next;return r},subscribe(r){let l=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!l||t===null||(l=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const fE={notify(){},get:()=>[]};function LW(e,t){let n,r=fE,l=0,i=!1;function o(g){c();const b=r.subscribe(g);let v=!1;return()=>{v||(v=!0,b(),d())}}function a(){r.notify()}function s(){m.onStateChange&&m.onStateChange()}function u(){return i}function c(){l++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=Y2e())}function d(){l--,n&&l===0&&(n(),n=void 0,r.clear(),r=fE)}function f(){i||(i=!0,c())}function p(){i&&(i=!1,d())}const m={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:s,isSubscribed:u,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}const X2e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cy=X2e?ge.useLayoutEffect:ge.useEffect;function pE(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function R_(e,t){if(pE(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let l=0;l{IW=e},Q2e=[null,null];function J2e(e,t,n){cy(()=>e(...t),n)}function ewe(e,t,n,r,l,i){e.current=r,n.current=!1,l.current&&(l.current=null,i())}function twe(e,t,n,r,l,i,o,a,s,u,c){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!a.current)return;const g=t.getState();let b,v;try{b=r(g,l.current)}catch(h){v=h,f=h}v||(f=null),b===i.current?o.current||u():(i.current=b,s.current=b,o.current=!0,c())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function nwe(e,t){return e===t}function $W(e,t,n,{pure:r,areStatesEqual:l=nwe,areOwnPropsEqual:i=R_,areStatePropsEqual:o=R_,areMergedPropsEqual:a=R_,forwardRef:s=!1,context:u=EW}={}){const c=u,d=U2e(e),f=q2e(t),p=G2e(n),m=!!e;return b=>{const v=b.displayName||b.name||"Component",h=`Connect(${v})`,y={shouldHandleStateChanges:m,displayName:h,wrappedComponentName:v,WrappedComponent:b,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:l,areStatePropsEqual:o,areOwnPropsEqual:i,areMergedPropsEqual:a};function w(T){const[k,S,C]=ge.useMemo(()=>{const{reactReduxForwardedRef:H}=T,Z=Kt(T,K2e);return[T.context,H,Z]},[T]),M=ge.useMemo(()=>k&&k.Consumer&&uJ.isContextConsumer(ge.createElement(k.Consumer,null))?k:c,[k,c]),O=ge.useContext(M),D=!!T.store&&!!T.store.getState&&!!T.store.dispatch,P=!!O&&!!O.store,E=D?T.store:O.store,I=P?O.getServerState:E.getState,A=ge.useMemo(()=>B2e(E.dispatch,y),[E]),[F,j]=ge.useMemo(()=>{if(!m)return Q2e;const H=LW(E,D?void 0:O.subscription),Z=H.notifyNestedSubs.bind(H);return[H,Z]},[E,D,O]),z=ge.useMemo(()=>D?O:Ie({},O,{subscription:F}),[D,O,F]),B=ge.useRef(),N=ge.useRef(C),R=ge.useRef(),q=ge.useRef(!1);ge.useRef(!1);const Y=ge.useRef(!1),L=ge.useRef();cy(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const W=ge.useMemo(()=>()=>R.current&&C===N.current?R.current:A(E.getState(),C),[E,C]),U=ge.useMemo(()=>Z=>F?twe(m,E,F,A,N,B,q,Y,R,j,Z):()=>{},[F]);J2e(ewe,[N,B,q,C,R,j]);let V;try{V=IW(U,W,I?()=>A(I(),C):W)}catch(H){throw L.current&&(H.message+=` + */const e2e=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:tW,CalendarPickerSkeleton:R1e,ClockPicker:sW,DEFAULT_LOCALE:IB,DatePicker:nxe,DateTimePicker:Dxe,DateTimePickerTabs:xb,DesktopDatePicker:hW,DesktopDateTimePicker:vW,DesktopTimePicker:bW,LocalizationProvider:rye,MobileDatePicker:mW,MobileDateTimePicker:yW,MobileTimePicker:xW,MonthPicker:NB,MuiPickersAdapterContext:BM,PickerStaticWrapper:wb,PickersDay:qB,StaticDatePicker:Gxe,StaticDateTimePicker:Xxe,StaticTimePicker:Zxe,TimePicker:Jxe,YearPicker:JB,beBY:Jve,calendarPickerClasses:w1e,calendarPickerSkeletonClasses:M1e,clockClasses:G1e,clockNumberClasses:mh,clockPickerClasses:sbe,clockPointerClasses:z1e,csCZ:kve,datePickerToolbarClasses:xbe,dateTimePickerTabsClasses:Txe,dateTimePickerToolbarClasses:fxe,dayPickerClasses:Oye,deDE:pve,enUS:Ave,esES:gve,faIR:yve,fiFI:wve,frFR:Mve,getCalendarPickerSkeletonUtilityClass:nW,getCalendarPickerUtilityClass:eW,getClockPickerUtilityClass:lW,getMonthPickerUtilityClass:$B,getPickersDayUtilityClass:zB,getYearPickerUtilityClass:QB,huHU:Ove,isIS:Hve,itIT:Nve,jaJP:Gve,koKR:qve,monthPickerClasses:aye,nbNO:Eve,nlNL:ove,pickersCalendarHeaderClasses:t1e,pickersDayClasses:hh,pickersFadeTransitionGroupClasses:pye,pickersMonthClasses:sk,pickersSlideTransitionClasses:Ka,pickersYearClasses:Eu,plPL:lve,ptBR:uve,ruRU:nye,svSE:Lve,timePickerToolbarClasses:_d,trTR:dve,ukUA:Xve,urPK:Zve,yearPickerClasses:g1e,zhCN:zve},Symbol.toStringTag,{value:"Module"})),wW=Qn(e2e);var A7;function t2e(){return A7||(A7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t(uf()),l=t(db()),i=t(fb()),o=t(RM()),a=t(IM()),s=t($M()),u=t(ge),c=t(pb),d=t(pc),f=t(sB),p=t(NM),m=t(uB),g=t(Hhe),b=t(Vhe),v=t(Ghe),h=AB,y=wW,w=t(Vr),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],x=["helperText","error"],T=["helperText","error"];function k(O){var D=S();return function(){var E=(0,s.default)(O),I;if(D){var A=(0,s.default)(this).constructor;I=Reflect.construct(E,arguments,A)}else I=E.apply(this,arguments);return(0,a.default)(this,I)}}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var C=function(O){(0,o.default)(P,O);var D=k(P);function P(){return(0,l.default)(this,P),D.apply(this,arguments)}return(0,i.default)(P,[{key:"getProps",value:function(){var I=this.props;I.columnDef,I.rowData,I.onRowDataChange,I.errorState,I.autoFocus,I.onBulkEditRowChanged,I.scrollWidth;var A=(0,r.default)(I,_);return A}},{key:"renderLookupField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,z=(0,r.default)(A,x);return u.default.createElement(m.default,{error:!!j},u.default.createElement(f.default,(0,n.default)({},z,{value:this.props.value===void 0?"":this.props.value,onChange:function(N){return I.props.onChange(N.target.value)},style:{fontSize:13},inputProps:{autoFocus:this.props.autoFocus},SelectDisplayProps:{"aria-label":this.props.columnDef.title}}),Object.keys(this.props.columnDef.lookup).map(function(B){return u.default.createElement(p.default,{key:B,value:B},I.props.columnDef.lookup[B])})),!!F&&u.default.createElement(g.default,null,F))}},{key:"renderBooleanField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,z=(0,r.default)(A,T);return u.default.createElement(m.default,{error:!!j,component:"fieldset"},u.default.createElement(b.default,null,u.default.createElement(v.default,{label:"",control:u.default.createElement(d.default,(0,n.default)({},z,{value:String(this.props.value),checked:!!this.props.value,onChange:function(N){return I.props.onChange(N.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),u.default.createElement(g.default,null,F))}},{key:"renderDateField",value:function(){var I=this.props.columnDef.dateSetting&&this.props.columnDef.dateSetting.format?this.props.columnDef.dateSetting.format:"dd.MM.yyyy";return u.default.createElement(y.LocalizationProvider,{dateAdapter:h.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DatePicker,(0,n.default)({},this.getProps(),{renderInput:function(F){return u.default.createElement(c.default,F)},format:I,value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:h.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.TimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderDateTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:h.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DateTimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"dd.MM.yyyy HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTextField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",fullWidth:!0,type:this.props.columnDef.type==="numeric"?"number":"text",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,value:this.props.value===void 0?"":this.props.value,onChange:function(F){return I.props.onChange(I.props.columnDef.type==="numeric"?F.target.valueAsNumber:F.target.value)},InputProps:{style:{minWidth:50,fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:this.props.columnDef.type==="numeric"?{textAlign:"right"}:{}}}))}},{key:"renderCurrencyField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,type:"number",value:this.props.value===void 0?"":this.props.value,onChange:function(F){var j=F.target.valueAsNumber;return!j&&j!==0&&(j=void 0),I.props.onChange(j)},InputProps:{style:{fontSize:13,textAlign:"right"}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:{textAlign:"right"}},onKeyDown:this.props.onKeyDown}))}},{key:"render",value:function(){var I="ok";return this.props.columnDef.editComponent?I=this.props.columnDef.editComponent(this.props):this.props.columnDef.lookup?I=this.renderLookupField():this.props.columnDef.type==="boolean"?I=this.renderBooleanField():this.props.columnDef.type==="date"?I=this.renderDateField():this.props.columnDef.type==="time"?I=this.renderTimeField():this.props.columnDef.type==="datetime"?I=this.renderDateTimeField():this.props.columnDef.type==="currency"?I=this.renderCurrencyField():I=this.renderTextField(),I}}]),P}(u.default.Component);C.propTypes={value:w.default.any,onChange:w.default.func.isRequired,columnDef:w.default.object.isRequired,locale:w.default.object,rowData:w.default.object,onRowDataChange:w.default.func,errorState:w.default.func,autoFocus:w.default.bool,onBulkEditRowChanged:w.default.func,scrollWidth:w.default.number,onKeyDown:w.default.func};var M=C;e.default=M}(Jw)),Jw}var h_={},m0={},D7;function _W(){if(D7)return m0;D7=1;var e=Cn;Object.defineProperty(m0,"__esModule",{value:!0}),m0.validateInput=i;var t=e($a()),n=e(_a());function r(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);a&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),s.push.apply(s,u)}return s}function l(o){for(var a=1;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var h=function(w){(0,i.default)(x,w);var _=b(x);function x(T){var k;return(0,n.default)(this,x),k=_.call(this,T),(0,s.default)((0,l.default)(k),"getStyle",function(){var S={boxShadow:"2px 0px 15px rgba(125,147,178,.25)",color:"inherit",width:k.props.columnDef.tableData.width,boxSizing:"border-box",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",padding:"0 16px"};return typeof k.props.columnDef.cellStyle=="function"?S=g(g({},S),k.props.columnDef.cellStyle(k.state.value,k.props.rowData)):S=g(g({},S),k.props.columnDef.cellStyle),typeof k.props.cellEditable.cellStyle=="function"?S=g(g({},S),k.props.cellEditable.cellStyle(k.state.value,k.props.rowData,k.props.columnDef)):S=g(g({},S),k.props.cellEditable.cellStyle),S}),(0,s.default)((0,l.default)(k),"handleKeyDown",function(S){S.keyCode===13?k.onApprove():S.keyCode===27&&k.onCancel()}),(0,s.default)((0,l.default)(k),"onApprove",function(){var S=(0,p.validateInput)(k.props.columnDef,k.state.value).isValid;S&&k.setState({isLoading:!0},function(){k.props.cellEditable.onCellEditApproved(k.state.value,k.props.getFieldValue(k.props.rowData,k.props.columnDef),k.props.rowData,k.props.columnDef).then(function(){k.setState({isLoading:!1}),k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}).catch(function(C){k.setState({isLoading:!1})})})}),(0,s.default)((0,l.default)(k),"onCancel",function(){k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}),k.state={errorState:{isValid:!0,helperText:""},isLoading:!1,value:T.getFieldValue(k.props.rowData,k.props.columnDef,!1)},k}return(0,r.default)(x,[{key:"renderActions",value:function(){if(this.state.isLoading)return u.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},u.default.createElement(f.default,{size:20}));var k=[{icon:this.props.icons.Check,tooltip:this.props.localization.saveTooltip,onClick:this.onApprove,disabled:this.state.isLoading||!this.state.errorState.isValid},{icon:this.props.icons.Clear,tooltip:this.props.localization.cancelTooltip,onClick:this.onCancel,disabled:this.state.isLoading}];return u.default.createElement(this.props.components.Actions,{actions:k,components:this.props.components,size:"small"})}},{key:"handleChange",value:function(k){var S=(0,p.validateInput)(this.props.columnDef,k);this.setState({errorState:S,value:k})}},{key:"render",value:function(){var k=this;return u.default.createElement(d.default,{size:this.props.size,style:this.getStyle(),padding:"none"},u.default.createElement("div",{style:{display:"flex",alignItems:"center"}},u.default.createElement("div",{style:{flex:1,marginRight:4}},u.default.createElement(this.props.components.EditField,{columnDef:this.props.columnDef,value:this.state.value,error:!this.state.errorState.isValid,helperText:this.state.errorState.helperText,onChange:function(C){return k.handleChange(C)},onKeyDown:this.handleKeyDown,disabled:this.state.isLoading,rowData:this.props.rowData,autoFocus:!0})),this.renderActions()))}}]),x}(u.default.Component);h.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},h.propTypes={cellEditable:c.default.object.isRequired,columnDef:c.default.object.isRequired,components:c.default.object.isRequired,errorState:c.default.oneOfType([c.default.object,c.default.bool]),icons:c.default.object.isRequired,localization:c.default.object.isRequired,onCellEditFinished:c.default.func.isRequired,rowData:c.default.object.isRequired,size:c.default.string,getFieldValue:c.default.func.isRequired};var y=h;e.default=y}(h_)),h_}var m_={},g_={exports:{}},v_={exports:{}},R7;function r2e(){return R7||(R7=1,function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(v_)),v_.exports}var y_={exports:{}},L7;function a2e(){return L7||(L7=1,function(e){function t(n,r){var l=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(l!=null){var i,o,a,s,u=[],c=!0,d=!1;try{if(a=(l=l.call(n)).next,r===0){if(Object(l)!==l)return;c=!1}else for(;!(c=(i=a.call(l)).done)&&(u.push(i.value),u.length!==r);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&l.return!=null&&(s=l.return(),Object(s)!==s))return}finally{if(d)throw o}}return u}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(y_)),y_.exports}var b_={exports:{}},I7;function o2e(){return I7||(I7=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(b_)),b_.exports}var $7;function iu(){return $7||($7=1,function(e){var t=r2e(),n=a2e(),r=iB(),l=o2e();function i(o,a){return t(o)||n(o,a)||r(o,a)||l()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(g_)),g_.exports}const df=Qn(aae),hc=Qn(Mde);var N7;function i2e(){return N7||(N7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t($a()),l=t(_a()),i=t(iu()),o=t(ge),a=t(Vr),s=t(EM),u=t(df),c=t(hc);function d(g,b){var v=Object.keys(g);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(g);b&&(h=h.filter(function(y){return Object.getOwnPropertyDescriptor(g,y).enumerable})),v.push.apply(v,h)}return v}function f(g){for(var b=1;b0&&i.default.createElement(r.default,{colSpan:a.options.detailPanelOffset.left}),i.default.createElement(r.default,{size:a.size,colSpan:a.renderColumns.length-a.options.detailPanelOffset.left-a.options.detailPanelOffset.right,padding:"none"},i.default.createElement(n.default,{in:d,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){b.current=void 0,g()}},h({rowData:a.data}))))}return g0}var Ea={},z7;function ds(){if(z7)return Ea;z7=1;var e=Cn;Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.widthToNumber=Ea.selectionMaxWidth=Ea.rowActions=Ea.reducePercentsInCalc=Ea.parseFirstLastPageButtons=Ea.elementSize=Ea.baseIconSize=Ea.actionsColumnWidth=void 0;var t=e($a()),n=e(_a());function r(p,m){var g=Object.keys(p);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(p);m&&(b=b.filter(function(v){return Object.getOwnPropertyDescriptor(p,v).enumerable})),g.push.apply(g,b)}return g}function l(p){for(var m=1;m1){var v=b[1];return m.replace(/\d*%/,"".concat(g*(v/100),"px"))}return m.replace(/\d*%/,"".concat(g,"px"))};Ea.reducePercentsInCalc=c;var d=function(m){return typeof m=="number"?m:!m||!m.match(/^\s*\d+(px)?\s*$/)?NaN:Number(m.replace(/px$/,""))};Ea.widthToNumber=d;var f=function(m,g){var b={first:!0,last:!0};return typeof m=="boolean"?b={first:m,last:m}:(0,n.default)(m)==="object"&&(b=l(l({},b),m)),g&&(b={first:b.last,last:b.first}),b};return Ea.parseFirstLastPageButtons=f,Ea}var v0={},B7;function c2e(){if(B7)return v0;B7=1;var e=Cn;Object.defineProperty(v0,"__esModule",{value:!0}),v0.useDoubleClick=n;var t=e(ge);function n(r,l){var i=t.default.useRef(0),o=t.default.useRef(null),a=t.default.useRef(null),s=t.default.useRef(null);t.default.useEffect(function(){a.current=l,s.current=r});var u=function(){clearTimeout(o.current),o.current=null,i.current=0},c=t.default.useCallback(function(d){var f=i.current+1===2,p=o.current;if(p&&f&&(u(),a.current&&a.current(d)),!p){i.current=i.current+1;var m=function(){u(),s.current&&s.current(d)};if(a.current){var g=setTimeout(m,250);o.current=g}else m()}},[]);return c}return v0}var W7;function d2e(){return W7||(W7=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(cf()),l=t(ls),i=t(hc),o=t(df),a=t(pc),s=t(Ir()),u=t(Cl),c=t($a()),d=t(uf()),f=t(ge),p=t(Vr),m=u2e(),g=x(ds()),b=c2e(),v=Db(),h=Yi(),y=["forwardedRef"],w=["data","components","detailPanel","getFieldValue","isTreeData","onRowSelected","onRowEditStarted","onTreeExpandChanged","onToggleDetailPanel","onEditingCanceled","onEditingApproved","hasAnyEditingRow","treeDataMaxLevel","path","actions","errorState","cellEditable","onCellEditStarted","onCellEditFinished","persistEvents","scrollWidth","onRowClick","onRowDoubleClick","columns"];function _(M){if(typeof WeakMap!="function")return null;var O=new WeakMap,D=new WeakMap;return(_=function(E){return E?D:O})(M)}function x(M,O){if(M&&M.__esModule)return M;if(M===null||n(M)!=="object"&&typeof M!="function")return{default:M};var D=_(O);if(D&&D.has(M))return D.get(M);var P={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in M)if(I!=="default"&&Object.prototype.hasOwnProperty.call(M,I)){var A=E?Object.getOwnPropertyDescriptor(M,I):null;A&&(A.get||A.set)?Object.defineProperty(P,I,A):P[I]=M[I]}return P.default=M,D&&D.set(M,P),P}function T(M,O){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(M);O&&(P=P.filter(function(E){return Object.getOwnPropertyDescriptor(M,E).enumerable})),D.push.apply(D,P)}return D}function k(M){for(var O=1;O-1)}).sort(function(Ae,Re){return Ae.tableData.columnOrder-Re.tableData.columnOrder}).map(function(Ae){var Re=D.getFieldValue(D.data,Ae);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Fe){return Fe.tableData.id===Ae.tableData.id}))return f.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:I,localization:P,columnDef:Ae,size:Pe,key:"cell-"+D.data.tableData.id+"-"+Ae.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:H});var Le=Ae.editable!=="never"&&!!D.cellEditable;Le&&D.cellEditable.isCellEditable&&(Le=D.cellEditable.isCellEditable(D.data,Ae));var $e="cell-".concat(D.data.tableData.id,"-").concat(Ae.tableData.id);return f.default.createElement(D.components.Cell,{size:Pe,errorState:D.errorState,columnDef:k({cellStyle:E.cellStyle},Ae),value:Re,key:$e,rowData:D.data,cellEditable:Le,onCellEditStarted:D.onCellEditStarted,scrollWidth:H})});return Te},Pe=g.elementSize(A),Me=W.length*g.baseIconSize(A),ce=function(Te){return f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-actions-column",style:k({width:Me,padding:"0px 5px",boxSizing:"border-box"},E.actionsCellStyle)},f.default.createElement(D.components.Actions,{data:D.data,actions:Te,components:D.components,size:Pe,disabled:D.hasAnyEditingRow}))},we=function(){var Te=E.selectionProps||{};typeof Te=="function"&&(Te=Te(D.data));var Ae=g.selectionMaxWidth(A,D.treeDataMaxLevel)||0,Re=Pe!=="medium"?{padding:"4px"}:void 0;return f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-selection-column",style:{width:Ae}},f.default.createElement(a.default,(0,s.default)({size:Pe,checked:D.data.tableData.checked===!0,onClick:function($e){return $e.stopPropagation()},value:D.data.tableData.id.toString(),onChange:function($e){D.onRowSelected($e,D.path,D.data)},style:Re},Te)))},K=function(Te){return{transform:Te?"rotate(90deg)":"none"}},ne=function(){return E.showDetailPanelIcon?typeof D.detailPanel=="function"?f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-detail-panel-column",style:k({width:42,textAlign:"center"},E.detailPanelColumnStyle)},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Pe,style:k({transition:"all ease 200ms"},K(D.data.tableData.showDetailPanel)),onClick:function(Ae){D.onToggleDetailPanel(D.path,D.detailPanel),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-detail-panel-column"},f.default.createElement("div",{style:k({width:42*D.detailPanel.length,textAlign:"center",display:"flex"},E.detailPanelColumnStyle)},D.detailPanel.map(function(Te,Ae){typeof Te=="function"&&(Te=Te(D.data));var Re=(D.data.tableData.showDetailPanel||"").toString()===Te.render.toString(),Le=f.default.createElement(I.DetailPanel,null),$e=!0;return Re?Te.openIcon?(Le=f.default.createElement(v.MTableCustomIcon,{icon:Te.openIcon,iconProps:Te.iconProps}),$e=!1):Te.icon&&(Le=f.default.createElement(v.MTableCustomIcon,{icon:Te.icon,iconProps:Te.iconProps})):Te.icon&&(Le=f.default.createElement(v.MTableCustomIcon,{icon:Te.icon,iconProps:Te.iconProps}),$e=!1),Le=f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Pe,key:"key-detail-panel-"+Ae,style:k({transition:"all ease 200ms"},K($e&&Re)),disabled:Te.disabled,onClick:function(Be){D.onToggleDetailPanel(D.path,Te.render),Be.stopPropagation()}},Le),Te.tooltip&&(Le=f.default.createElement(i.default,{key:"key-detail-panel-"+Ae,title:Te.tooltip},Le)),Le}))):null},de=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-tree-data-column",style:{width:48+9*(D.treeDataMaxLevel-2)}},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Pe,style:k({transition:"all ease 200ms",marginLeft:D.level*9},K(D.data.tableData.isTreeExpanded)),onClick:function(Ae){D.onTreeExpandChanged(D.path,D.data),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{padding:"none",key:"key-tree-data-column"})},_e=function(Te,Ae){var Re={};return typeof E.rowStyle=="function"?Re=k(k({},Re),E.rowStyle(D.data,Te,Ae,D.hasAnyEditingRow)):E.rowStyle&&(Re=k(k({},Re),E.rowStyle)),(Z||G)&&(Re.cursor="pointer"),D.hasAnyEditingRow&&(Re.opacity=Re.opacity?Re.opacity:.2),Re},ue=Oe();E.selection&&ue.splice(0,0,we());var pe=g.rowActions(D);if(pe.length>0){if(E.actionsColumnIndex===-1)ue.push(ce(pe));else if(E.actionsColumnIndex>=0){var xe=0;E.selection&&(xe=1),ue.splice(E.actionsColumnIndex+xe,0,ce(pe))}}return D.detailPanel&&(E.detailPanelColumnAlignment==="right"?ue.push(ne()):ue.splice(0,0,ne())),D.isTreeData&&ue.splice(0,0,de()),D.columns.filter(function(ye){return ye.tableData.groupOrder>-1}).forEach(function(ye){ue.splice(0,0,f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-group-cell"+ye.tableData.id}))}),f.default.createElement(f.default.Fragment,null,f.default.createElement(l.default,(0,s.default)({ref:O,selected:q},Q,{onClick:function(Te){ee&&Te.persist(),!q&&Se(Te)},hover:!!(Z||G),style:_e(D.index,D.level),"data-testid":"mtablebodyrow"}),ue),f.default.createElement(m.MTableDetailPanel,{options:E,data:D.data,detailPanel:D.detailPanel,renderColumns:ue,size:Pe}),D.data.tableData.childRows&&D.data.tableData.isTreeExpanded&&D.data.tableData.childRows.map(function(ye,Te){return ye.tableData.editing?f.default.createElement(D.components.EditRow,{columns:re,components:D.components,data:ye,icons:I,localization:P,getFieldValue:D.getFieldValue,key:Te,mode:ye.tableData.editing,isTreeData:D.isTreeData,detailPanel:D.detailPanel,onEditingCanceled:N,onEditingApproved:R,errorState:D.errorState}):f.default.createElement(D.components.Row,(0,s.default)({},D,{data:ye,index:Te,key:Te,level:D.level+1,path:[].concat((0,r.default)(D.path),[ye.tableData.uuid]),onEditingCanceled:N,onEditingApproved:R,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:Y,errorState:D.errorState,cellEditable:U,onCellEditStarted:V,onCellEditFinished:te}))}))}S.defaultProps={actions:[],index:0,data:{},path:[],persistEvents:!1},S.propTypes={forwardedRef:p.default.element,actions:p.default.array,index:p.default.number.isRequired,data:p.default.object.isRequired,detailPanel:p.default.oneOfType([p.default.func,p.default.arrayOf(p.default.oneOfType([p.default.object,p.default.func]))]),hasAnyEditingRow:p.default.bool,onRowSelected:p.default.func,path:p.default.arrayOf(p.default.oneOfType([p.default.string,p.default.number])),persistEvents:p.default.bool,treeDataMaxLevel:p.default.number,getFieldValue:p.default.func.isRequired,columns:p.default.array,onToggleDetailPanel:p.default.func.isRequired,onRowClick:p.default.func,onRowDoubleClick:p.default.func,onEditingApproved:p.default.func,onEditingCanceled:p.default.func,errorState:p.default.oneOfType([p.default.object,p.default.bool])};var C=f.default.forwardRef(function(O,D){return f.default.createElement(S,(0,s.default)({},O,{forwardedRef:D}))});e.default=C}(w_)),w_}var __={},Ts={};const f2e=Qn(U0e);var q7;function p2e(){if(q7)return Ts;q7=1;var e=Cn;Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.getCurrencyValue=i,Ts.getEmptyValue=l,Ts.getRenderValue=o,Ts.isoDateRegex=void 0;var t=e(ge),n=e(f2e),r=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;Ts.isoDateRegex=r;function l(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof a=="function"?s.columnDef.emptyValue(s.rowData):a}function i(a,s){return a!==void 0?new Intl.NumberFormat(a.locale!==void 0?a.locale:"en-US",{style:"currency",currency:a.currencyCode!==void 0?a.currencyCode:"USD",minimumFractionDigits:a.minimumFractionDigits!==void 0?a.minimumFractionDigits:2,maximumFractionDigits:a.maximumFractionDigits!==void 0?a.maximumFractionDigits:2}).format(s!==void 0?s:0):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(s!==void 0?s:0)}function o(a,s,u){var c=a.columnDef.dateSetting&&a.columnDef.dateSetting.locale?a.columnDef.dateSetting.locale:void 0;if(a.columnDef.emptyValue!==void 0&&(a.value===void 0||a.value===null))return l(a.columnDef.emptyValue,a);if(a.rowData===void 0&&a.value&&a.columnDef.groupRender)return a.columnDef.groupRender(a.value);if(a.columnDef.render&&a.rowData)return a.columnDef.render(a.rowData);if(a.columnDef.type==="boolean"){var d={textAlign:"left",verticalAlign:"middle",width:48};return a.value?t.default.createElement(s.Check,{style:d}):t.default.createElement(s.ThirdStateCheck,{style:d})}else{if(a.columnDef.type==="date")return a.value instanceof Date?a.value.toLocaleDateString(c):r.exec(a.value)?(0,n.default)(a.value).toLocaleDateString(c):a.value;if(a.columnDef.type==="time")return a.value instanceof Date?a.value.toLocaleTimeString():r.exec(a.value)?(0,n.default)(a.value).toLocaleTimeString(c):a.value;if(a.columnDef.type==="datetime")return a.value instanceof Date?a.value.toLocaleString():r.exec(a.value)?(0,n.default)(a.value).toLocaleString(c):a.value;if(a.columnDef.type==="currency")return i(a.columnDef.currencySetting,a.value);if(typeof a.value=="boolean")return a.value.toString()}return a.value}return Ts}var ks={},U7;function _b(){if(U7)return ks;U7=1;var e=Cn,t=_a();Object.defineProperty(ks,"__esModule",{value:!0}),ks.getStyle=c,ks.setObjectByKey=ks.selectFromObject=void 0;var n=e($a()),r=i(ds());function l(d){if(typeof WeakMap!="function")return null;var f=new WeakMap,p=new WeakMap;return(l=function(g){return g?p:f})(d)}function i(d,f){if(d&&d.__esModule)return d;if(d===null||t(d)!=="object"&&typeof d!="function")return{default:d};var p=l(f);if(p&&p.has(d))return p.get(d);var m={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in d)if(b!=="default"&&Object.prototype.hasOwnProperty.call(d,b)){var v=g?Object.getOwnPropertyDescriptor(d,b):null;v&&(v.get||v.set)?Object.defineProperty(m,b,v):m[b]=d[b]}return m.default=d,p&&p.set(d,m),m}function o(d,f){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);f&&(m=m.filter(function(g){return Object.getOwnPropertyDescriptor(d,g).enumerable})),p.push.apply(p,m)}return p}function a(d){for(var f=1;f-1)}).sort(function(H,Z){return H.tableData.columnOrder-Z.tableData.columnOrder}).map(function(H,Z){var G=k.getFieldValue(D.data,H,!1),X=function(Oe,Pe){var Me={color:"inherit"};return typeof Oe.cellStyle=="function"?Me=_(_({},Me),Oe.cellStyle(Pe,k.data)):Me=_(_({},Me),Oe.cellStyle),Oe.disableClick&&(Me.cursor="default"),_({},Me)};Z===0&&24+k.level*20;var Q=!1;if(H.editable===void 0&&(Q=!0),H.editable==="always"&&(Q=!0),H.editable==="onAdd"&&k.mode==="add"&&(Q=!0),H.editable==="onUpdate"&&k.mode==="update"&&(Q=!0),typeof H.editable=="function"&&(Q=H.editable(H,k.data)),!H.field||!Q){var re=k.getFieldValue(D.data,H);return a.default.createElement(k.components.Cell,{size:V,icons:S,columnDef:H,value:re,key:H.tableData.id,rowData:k.data,style:X(H,G)})}else{var ae=H.editComponent,ie=(0,l.default)(H,b),se=ae||k.components.EditField,he=(0,g.validateInput)(H,D.data);return te===-1&&(te=Z),a.default.createElement(s.default,{size:V,key:H.tableData.id,align:["numeric"].indexOf(H.type)!==-1?"right":"left",style:X(H,G)},a.default.createElement(se,{key:H.tableData.id,columnDef:ie,autoFocus:te===Z,value:G,error:!he.isValid,helperText:he.helperText,locale:k.localization.dateTimePickerLocalization,rowData:D.data,onChange:function(Oe){var Pe=_({},D.data);(0,f.setObjectByKey)(Pe,H.field,Oe),P({data:Pe}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Pe)},onRowDataChange:function(Oe){P({data:Oe}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Oe)}}))}});return ee}var I=k.columns.every(function(V){var te=(0,g.validateInput)(V,D.data);return te.isValid}),A=function(){I&&k.onEditingApproved(k.mode,D.data,k.data)};function F(){if(k.mode!=="bulk"){var V=m.elementSize(k),te=[{icon:S.Check,tooltip:k.localization.saveTooltip,disabled:!I,onClick:A},{icon:S.Clear,tooltip:k.localization.cancelTooltip,onClick:function(){k.onEditingCanceled(k.mode,k.data)}}];return a.default.createElement(s.default,{size:V,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},C.editCellStyle)},a.default.createElement(k.components.Actions,{data:k.data,actions:te,components:k.components,size:V}))}}function j(){var V={borderBottom:"1px solid red"};return V}var z=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?A():te.keyCode===27&&k.onEditingCanceled(k.mode,k.data)},B=m.elementSize(k),N;if(k.mode==="add"||k.mode==="update"||k.mode==="bulk")N=E();else{var R=k.columns.filter(function(V){return!V.hidden&&!(V.tableData.groupOrder>-1)}).length;N=[a.default.createElement(s.default,{size:B,padding:C.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:R},a.default.createElement(c.default,{variant:"h6"},k.localization.deleteText))]}if(C.selection&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-selection-cell"})),k.isTreeData&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-tree-data-cell"})),C.actionsColumnIndex===-1)N.push(F());else if(C.actionsColumnIndex>=0){var q=0;C.selection&&(q=1),k.isTreeData&&(q=1,C.selection&&N.splice(1,1)),N.splice(C.actionsColumnIndex+q,0,F())}if(k.detailPanel&&C.showDetailPanelIcon!==!1&&k.mode!=="bulk"){var Y=C.detailPanelColumnAlignment,L=Y==="left"?0:N.length;N.splice(L,0,a.default.createElement(s.default,{padding:"none",key:"key-detail-panel-cell"}))}k.columns.filter(function(V){return V.tableData.groupOrder>-1}).forEach(function(V){N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-group-cell"+V.tableData.id}))}),k.detailPanel,k.isTreeData,k.onRowClick,k.onRowSelected,k.onTreeExpandChanged,k.onToggleDetailPanel,k.onEditingApproved,k.onEditingCanceled,k.getFieldValue,k.components,k.columns,k.errorState,k.onBulkEditRowChanged,k.bulkEditChangedRows,k.scrollWidth;var W=k.forwardedRef,U=(0,l.default)(k,v);return a.default.createElement(u.default,(0,r.default)({onKeyDown:z},U,{ref:W,style:j()}),N)}x.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},x.propTypes={actions:d.default.array,index:d.default.number.isRequired,data:d.default.object,detailPanel:d.default.oneOfType([d.default.func,d.default.arrayOf(d.default.oneOfType([d.default.object,d.default.func]))]),onRowSelected:d.default.func,path:d.default.arrayOf(d.default.number),columns:d.default.array,onRowClick:d.default.func,onEditingApproved:d.default.func,onEditingCanceled:d.default.func,localization:d.default.object,getFieldValue:d.default.func,errorState:d.default.oneOfType([d.default.object,d.default.bool]),onBulkEditRowChanged:d.default.func};var T=a.default.forwardRef(function(S,C){return a.default.createElement(x,(0,r.default)({},S,{forwardedRef:C}))});e.default=T}(k_)),k_}var S_={},C_={},pu={},Y7;function p5(){if(Y7)return pu;Y7=1;var e=Cn;Object.defineProperty(pu,"__esModule",{value:!0}),pu.getLocalizedFilterPlaceHolder=pu.getLocalizationData=void 0;var t=e($a()),n=kW();function r(a,s){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);s&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),u.push.apply(u,c)}return u}function l(a){for(var s=1;s-1}),d.default.createElement(a.default,{primary:_.lookup[D]}))})))}var y=d.default.forwardRef(function(_,x){return d.default.createElement(h,(0,r.default)({},_,{forwardedRef:x}))});e.default=y}(M_)),M_}var P_={};const TW=Qn(Due);var Z7;function w2e(){return Z7||(Z7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t(pb),l=t(TW),i=t(hc),o=t(ge),a=p5();function s(c){var d,f,p=c.columnDef,m=c.icons,g=c.localization,b=c.hideFilterIcons,v=c.onFilterChanged,h=c.forwardedRef,y=(0,a.getLocalizationData)(g),w=m.Filter;return o.default.createElement(r.default,{ref:h,style:p.type==="numeric"?{float:(d=p.align)!==null&&d!==void 0?d:"right"}:{float:(f=p.align)!==null&&f!==void 0?f:"left"},type:p.type==="numeric"?"number":"search",value:p.tableData.filterValue||"",placeholder:(0,a.getLocalizedFilterPlaceHolder)(p,g),onChange:function(x){v(p.tableData.id,x.target.value)},inputProps:{"aria-label":"filter data by ".concat(p.title)},InputProps:b||p.hideFilterIcon?void 0:{startAdornment:o.default.createElement(l.default,{position:"start"},o.default.createElement(i.default,{title:y.filterTooltip},o.default.createElement(w,null)))}})}var u=o.default.forwardRef(function(d,f){return o.default.createElement(s,(0,n.default)({},d,{forwardedRef:f}))});e.default=u}(P_)),P_}var O_={},Q7;function _2e(){return Q7||(Q7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t(pc),l=t(ge);function i(a){var s=a.forwardedRef,u=a.columnDef,c=a.onFilterChanged;return l.default.createElement(r.default,{ref:s,inputProps:{"aria-label":"Filter of ".concat(u.title)},indeterminate:u.tableData.filterValue===void 0,checked:u.tableData.filterValue==="checked",onChange:function(){var f;u.tableData.filterValue===void 0?f="checked":u.tableData.filterValue==="checked"&&(f="unchecked"),c(u.tableData.id,f)}})}var o=l.default.forwardRef(function(s,u){return l.default.createElement(i,(0,n.default)({},s,{forwardedRef:u}))});e.default=o}(O_)),O_}var A_={},J7;function T2e(){return J7||(J7=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=o(ge);function i(u){if(typeof WeakMap!="function")return null;var c=new WeakMap,d=new WeakMap;return(i=function(p){return p?d:c})(u)}function o(u,c){if(u&&u.__esModule)return u;if(u===null||n(u)!=="object"&&typeof u!="function")return{default:u};var d=i(c);if(d&&d.has(u))return d.get(u);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in u)if(m!=="default"&&Object.prototype.hasOwnProperty.call(u,m)){var g=p?Object.getOwnPropertyDescriptor(u,m):null;g&&(g.get||g.set)?Object.defineProperty(f,m,g):f[m]=u[m]}return f.default=u,d&&d.set(u,f),f}function a(u){var c=u.columnDef,d=u.onFilterChanged,f=u.forwardedRef;return(0,l.createElement)(c.filterComponent,{columnDef:c,onFilterChanged:d,forwardedRef:f})}var s=l.default.forwardRef(function(c,d){return l.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(A_)),A_}var eE;function kW(){return eE||(eE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=b,e.default=void 0;var n=t(ls),r=t(Cl),l=t($a()),i=t(Ir()),o=t(ge),a=t(Vr),s=t(v2e()),u=t(x2e()),c=t(w2e()),d=t(_2e()),f=t(T2e()),p=eg();function m(h,y){var w=Object.keys(h);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(h);y&&(_=_.filter(function(x){return Object.getOwnPropertyDescriptor(h,x).enumerable})),w.push.apply(w,_)}return w}function g(h){for(var y=1;y-1)}).sort(function(k,S){return k.tableData.columnOrder-S.tableData.columnOrder}).map(function(k){return o.default.createElement(r.default,{key:k.tableData.id,style:g(g({},y.filterCellStyle),k.filterCellStyle)},w(k))});if(y.selection&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-selection-column"})),h.hasActions)if(y.actionsColumnIndex===-1)_.push(o.default.createElement(r.default,{key:"key-action-column"}));else{var x=0;h.selection&&(x=1),_.splice(y.actionsColumnIndex+x,0,o.default.createElement(r.default,{key:"key-action-column"}))}if(h.hasDetailPanel&&y.showDetailPanelIcon){var T=y.detailPanelColumnAlignment==="left"?0:_.length;_.splice(T,0,o.default.createElement(r.default,{padding:"none",key:"key-detail-panel-column"}))}return h.isTreeData>0&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-tree-data-filter"})),h.columns.filter(function(k){return k.tableData.groupOrder>-1}).forEach(function(k){_.splice(0,0,o.default.createElement(r.default,{padding:"checkbox",key:"key-group-filter"+k.tableData.id}))}),o.default.createElement(n.default,{id:"m--table--filter--row",ref:h.forwardedRef,style:g({height:10},y.filterRowStyle)},_)}b.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},b.propTypes={columns:a.default.array.isRequired,hasDetailPanel:a.default.bool.isRequired,isTreeData:a.default.bool.isRequired,onFilterChanged:a.default.func.isRequired,hasActions:a.default.bool,localization:a.default.object};var v=o.default.forwardRef(function(y,w){return o.default.createElement(b,(0,i.default)({},y,{forwardedRef:w}))});e.default=v}(S_)),S_}var D_={};const SW=Qn(Mfe),k2e=Qn(kie);function tE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function nE(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Mo(1));return n(CW)(e,t)}if(typeof e!="function")throw new Error(Mo(2));var l=e,i=t,o=[],a=o,s=!1;function u(){a===o&&(a=o.slice())}function c(){if(s)throw new Error(Mo(3));return i}function d(g){if(typeof g!="function")throw new Error(Mo(4));if(s)throw new Error(Mo(5));var b=!0;return u(),a.push(g),function(){if(b){if(s)throw new Error(Mo(6));b=!1,u();var h=a.indexOf(g);a.splice(h,1),o=null}}}function f(g){if(!S2e(g))throw new Error(Mo(7));if(typeof g.type>"u")throw new Error(Mo(8));if(s)throw new Error(Mo(9));try{s=!0,i=l(i,g)}finally{s=!1}for(var b=o=a,v=0;vPW=e,O2e=()=>PW,lE=Symbol.for("react-redux-context"),sE=typeof globalThis<"u"?globalThis:{};function A2e(){var e;if(!ge.createContext)return{};const t=(e=sE[lE])!=null?e:sE[lE]=new Map;let n=t.get(ge.createContext);return n||(n=ge.createContext(null),t.set(ge.createContext,n)),n}const OW=A2e(),D2e=()=>{throw new Error("uSES not initialized!")},E2e=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function R2e(e,t,n,r,{areStatesEqual:l,areOwnPropsEqual:i,areStatePropsEqual:o}){let a=!1,s,u,c,d,f;function p(h,y){return s=h,u=y,c=e(s,u),d=t(r,u),f=n(c,d,u),a=!0,f}function m(){return c=e(s,u),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function g(){return e.dependsOnOwnProps&&(c=e(s,u)),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function b(){const h=e(s,u),y=!o(h,c);return c=h,y&&(f=n(c,d,u)),f}function v(h,y){const w=!i(y,u),_=!l(h,s,y,u);return s=h,u=y,w&&_?m():w?g():_?b():f}return function(y,w){return a?v(y,w):p(y,w)}}function L2e(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:l}=t,i=Kt(t,E2e);const o=n(e,i),a=r(e,i),s=l(e,i);return R2e(o,a,s,e,i)}function I2e(e,t){const n={};for(const r in e){const l=e[r];typeof l=="function"&&(n[r]=(...i)=>t(l(...i)))}return n}function dk(e){return function(n){const r=e(n);function l(){return r}return l.dependsOnOwnProps=!1,l}}function uE(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function AW(e,t){return function(r,{displayName:l}){const i=function(a,s){return i.dependsOnOwnProps?i.mapToProps(a,s):i.mapToProps(a,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(a,s){i.mapToProps=e,i.dependsOnOwnProps=uE(e);let u=i(a,s);return typeof u=="function"&&(i.mapToProps=u,i.dependsOnOwnProps=uE(u),u=i(a,s)),u},i}}function h5(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function $2e(e){return e&&typeof e=="object"?dk(t=>I2e(e,t)):e?typeof e=="function"?AW(e):h5(e,"mapDispatchToProps"):dk(t=>({dispatch:t}))}function N2e(e){return e?typeof e=="function"?AW(e):h5(e,"mapStateToProps"):dk(()=>({}))}function F2e(e,t,n){return Ie({},n,e,t)}function j2e(e){return function(n,{displayName:r,areMergedPropsEqual:l}){let i=!1,o;return function(s,u,c){const d=e(s,u,c);return i?l(d,o)||(o=d):(i=!0,o=d),o}}}function z2e(e){return e?typeof e=="function"?j2e(e):h5(e,"mergeProps"):()=>F2e}function B2e(){const e=O2e();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],l=t;for(;l;)r.push(l),l=l.next;return r},subscribe(r){let l=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!l||t===null||(l=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const cE={notify(){},get:()=>[]};function DW(e,t){let n,r=cE,l=0,i=!1;function o(g){c();const b=r.subscribe(g);let v=!1;return()=>{v||(v=!0,b(),d())}}function a(){r.notify()}function s(){m.onStateChange&&m.onStateChange()}function u(){return i}function c(){l++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=B2e())}function d(){l--,n&&l===0&&(n(),n=void 0,r.clear(),r=cE)}function f(){i||(i=!0,c())}function p(){i&&(i=!1,d())}const m={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:s,isSubscribed:u,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}const W2e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cy=W2e?ge.useLayoutEffect:ge.useEffect;function dE(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function R_(e,t){if(dE(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let l=0;l{EW=e},H2e=[null,null];function V2e(e,t,n){cy(()=>e(...t),n)}function G2e(e,t,n,r,l,i){e.current=r,n.current=!1,l.current&&(l.current=null,i())}function Y2e(e,t,n,r,l,i,o,a,s,u,c){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!a.current)return;const g=t.getState();let b,v;try{b=r(g,l.current)}catch(h){v=h,f=h}v||(f=null),b===i.current?o.current||u():(i.current=b,s.current=b,o.current=!0,c())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function X2e(e,t){return e===t}function RW(e,t,n,{pure:r,areStatesEqual:l=X2e,areOwnPropsEqual:i=R_,areStatePropsEqual:o=R_,areMergedPropsEqual:a=R_,forwardRef:s=!1,context:u=OW}={}){const c=u,d=N2e(e),f=$2e(t),p=z2e(n),m=!!e;return b=>{const v=b.displayName||b.name||"Component",h=`Connect(${v})`,y={shouldHandleStateChanges:m,displayName:h,wrappedComponentName:v,WrappedComponent:b,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:l,areStatePropsEqual:o,areOwnPropsEqual:i,areMergedPropsEqual:a};function w(T){const[k,S,C]=ge.useMemo(()=>{const{reactReduxForwardedRef:H}=T,Z=Kt(T,q2e);return[T.context,H,Z]},[T]),M=ge.useMemo(()=>k&&k.Consumer&&uJ.isContextConsumer(ge.createElement(k.Consumer,null))?k:c,[k,c]),O=ge.useContext(M),D=!!T.store&&!!T.store.getState&&!!T.store.dispatch,P=!!O&&!!O.store,E=D?T.store:O.store,I=P?O.getServerState:E.getState,A=ge.useMemo(()=>L2e(E.dispatch,y),[E]),[F,j]=ge.useMemo(()=>{if(!m)return H2e;const H=DW(E,D?void 0:O.subscription),Z=H.notifyNestedSubs.bind(H);return[H,Z]},[E,D,O]),z=ge.useMemo(()=>D?O:Ie({},O,{subscription:F}),[D,O,F]),B=ge.useRef(),N=ge.useRef(C),R=ge.useRef(),q=ge.useRef(!1);ge.useRef(!1);const Y=ge.useRef(!1),L=ge.useRef();cy(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const W=ge.useMemo(()=>()=>R.current&&C===N.current?R.current:A(E.getState(),C),[E,C]),U=ge.useMemo(()=>Z=>F?Y2e(m,E,F,A,N,B,q,Y,R,j,Z):()=>{},[F]);V2e(G2e,[N,B,q,C,R,j]);let V;try{V=EW(U,W,I?()=>A(I(),C):W)}catch(H){throw L.current&&(H.message+=` The error may be correlated with this previous error: ${L.current.stack} -`),H}cy(()=>{L.current=void 0,R.current=void 0,B.current=V});const te=ge.useMemo(()=>ge.createElement(b,Ie({},V,{ref:S})),[S,b,V]);return ge.useMemo(()=>m?ge.createElement(M.Provider,{value:z},te):te,[M,te,z])}const x=ge.memo(w);if(x.WrappedComponent=b,x.displayName=w.displayName=h,s){const k=ge.forwardRef(function(C,M){return ge.createElement(x,Ie({},C,{reactReduxForwardedRef:M}))});return k.displayName=h,k.WrappedComponent=b,xA(k,b)}return xA(x,b)}}function rwe({store:e,context:t,children:n,serverState:r,stabilityCheck:l="once",noopCheck:i="once"}){const o=ge.useMemo(()=>{const u=LW(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:l,noopCheck:i}},[e,r,l,i]),a=ge.useMemo(()=>e.getState(),[e]);cy(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,a]);const s=t||EW;return ge.createElement(s.Provider,{value:o},n)}Z2e(tB.useSyncExternalStore);I2e(cc.unstable_batchedUpdates);function awe(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const i=fwe(n,l.options);return e.addEventListener(l.eventName,l.fn,i),function(){e.removeEventListener(l.eventName,l.fn,i)}});return function(){r.forEach(i=>{i()})}}const pwe="Invariant failed";class py extends Error{}py.prototype.toString=function(){return this.message};function bn(e,t){throw new py(pwe)}class hwe extends Je.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=qs,this.onWindowError=t=>{const n=this.getCallbacks();n.isDragging()&&n.tryAbort(),t.error instanceof py&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=vi(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof py){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const mwe=` +`),H}cy(()=>{L.current=void 0,R.current=void 0,B.current=V});const te=ge.useMemo(()=>ge.createElement(b,Ie({},V,{ref:S})),[S,b,V]);return ge.useMemo(()=>m?ge.createElement(M.Provider,{value:z},te):te,[M,te,z])}const x=ge.memo(w);if(x.WrappedComponent=b,x.displayName=w.displayName=h,s){const k=ge.forwardRef(function(C,M){return ge.createElement(x,Ie({},C,{reactReduxForwardedRef:M}))});return k.displayName=h,k.WrappedComponent=b,xA(k,b)}return xA(x,b)}}function K2e({store:e,context:t,children:n,serverState:r,stabilityCheck:l="once",noopCheck:i="once"}){const o=ge.useMemo(()=>{const u=DW(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:l,noopCheck:i}},[e,r,l,i]),a=ge.useMemo(()=>e.getState(),[e]);cy(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,a]);const s=t||OW;return ge.createElement(s.Provider,{value:o},n)}U2e(Qz.useSyncExternalStore);P2e(cc.unstable_batchedUpdates);function Z2e(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const i=owe(n,l.options);return e.addEventListener(l.eventName,l.fn,i),function(){e.removeEventListener(l.eventName,l.fn,i)}});return function(){r.forEach(i=>{i()})}}const iwe="Invariant failed";class py extends Error{}py.prototype.toString=function(){return this.message};function bn(e,t){throw new py(iwe)}class lwe extends Je.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=qs,this.onWindowError=t=>{const n=this.getCallbacks();n.isDragging()&&n.tryAbort(),t.error instanceof py&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=vi(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof py){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const swe=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key -`,hy=e=>e+1,gwe=e=>` +`,hy=e=>e+1,uwe=e=>` You have lifted an item in position ${hy(e.source.index)} -`,BW=(e,t)=>{const n=e.droppableId===t.droppableId,r=hy(e.index),l=hy(t.index);return n?` +`,FW=(e,t)=>{const n=e.droppableId===t.droppableId,r=hy(e.index),l=hy(t.index);return n?` You have moved the item from position ${r} to position ${l} `:` @@ -496,38 +496,38 @@ ${L.current.stack} in list ${e.droppableId} to list ${t.droppableId} in position ${l} - `},WW=(e,t,n)=>t.droppableId===n.droppableId?` + `},jW=(e,t,n)=>t.droppableId===n.droppableId?` The item ${e} has been combined with ${n.draggableId}`:` The item ${e} in list ${t.droppableId} has been combined with ${n.draggableId} in list ${n.droppableId} - `,vwe=e=>{const t=e.destination;if(t)return BW(e.source,t);const n=e.combine;return n?WW(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},gE=e=>` + `,cwe=e=>{const t=e.destination;if(t)return FW(e.source,t);const n=e.combine;return n?jW(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},hE=e=>` The item has returned to its starting position of ${hy(e.index)} -`,ywe=e=>{if(e.reason==="CANCEL")return` +`,dwe=e=>{if(e.reason==="CANCEL")return` Movement cancelled. - ${gE(e.source)} + ${hE(e.source)} `;const t=e.destination,n=e.combine;return t?` You have dropped the item. - ${BW(e.source,t)} + ${FW(e.source,t)} `:n?` You have dropped the item. - ${WW(e.draggableId,e.source,n)} + ${jW(e.draggableId,e.source,n)} `:` The item has been dropped while not over a drop area. - ${gE(e.source)} - `},bwe={dragHandleUsageInstructions:mwe,onDragStart:gwe,onDragUpdate:vwe,onDragEnd:ywe};var ov=bwe;const za={x:0,y:0},Ja=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Go=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Us=(e,t)=>e.x===t.x&&e.y===t.y,ff=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Ku=function(e,t,n){return n===void 0&&(n=0),e==="x"?{x:t,y:n}:{x:n,y:t}},vm=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),vE=(e,t)=>Math.min(...t.map(n=>vm(e,n))),qW=e=>t=>({x:e(t.x),y:e(t.y)});var xwe=(e,t)=>{const n=zi({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n};const ig=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),yE=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],wwe={top:0,right:0,bottom:0,left:0},_we=(e,t)=>t?ig(e,t.scroll.diff.displacement):e,Twe=(e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e,kwe=(e,t)=>t&&t.shouldClipSubject?xwe(t.pageMarginBox,e):zi(e);var Hd=e=>{let{page:t,withPlaceholder:n,axis:r,frame:l}=e;const i=_we(t.marginBox,l),o=Twe(i,r,n),a=kwe(o,l);return{page:t,withPlaceholder:n,active:a}},y5=(e,t)=>{e.frame||bn();const n=e.frame,r=Go(t,n.scroll.initial),l=ff(r),i={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:l},max:n.scroll.max}},o=Hd({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:o}};const UW=ja(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),HW=ja(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),kb=ja(e=>Object.values(e)),Swe=ja(e=>Object.values(e));var pf=ja((e,t)=>Swe(t).filter(r=>e===r.descriptor.droppableId).sort((r,l)=>r.descriptor.index-l.descriptor.index));function b5(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Sb(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Cb=ja((e,t)=>t.filter(n=>n.descriptor.id!==e.descriptor.id)),Cwe=e=>{let{isMovingForward:t,draggable:n,destination:r,insideDestination:l,previousImpact:i}=e;if(!r.isCombineEnabled||!b5(i))return null;function a(m){const g={type:"COMBINE",combine:{draggableId:m,droppableId:r.descriptor.id}};return{...i,at:g}}const s=i.displaced.all,u=s.length?s[0]:null;if(t)return u?a(u):null;const c=Cb(n,l);if(!u){if(!c.length)return null;const m=c[c.length-1];return a(m.descriptor.id)}const d=c.findIndex(m=>m.descriptor.id===u);d===-1&&bn();const f=d-1;if(f<0)return null;const p=c[f];return a(p.descriptor.id)},hf=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const VW={point:za,value:0},ym={invisible:{},visible:{},all:[]},Mwe={displaced:ym,displacedBy:VW,at:null};var Pwe=Mwe,wi=(e,t)=>n=>e<=n&&n<=t,GW=e=>{const t=wi(e.top,e.bottom),n=wi(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;const s=r.tope.bottom,u=r.lefte.right;return s&&u?!0:s&&o||u&&i}},Owe=e=>{const t=wi(e.top,e.bottom),n=wi(e.left,e.right);return r=>t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right)};const x5={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},YW={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var Awe=e=>t=>{const n=wi(t.top,t.bottom),r=wi(t.left,t.right);return l=>e===x5?n(l.top)&&n(l.bottom):r(l.left)&&r(l.right)};const Dwe=(e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:za;return ig(e,n)},Ewe=(e,t,n)=>t.subject.active?n(t.subject.active)(e):!1,Rwe=(e,t,n)=>n(t)(e),w5=e=>{let{target:t,destination:n,viewport:r,withDroppableDisplacement:l,isVisibleThroughFrameFn:i}=e;const o=l?Dwe(t,n):t;return Ewe(o,n,i)&&Rwe(o,r,i)},Lwe=e=>w5({...e,isVisibleThroughFrameFn:GW}),XW=e=>w5({...e,isVisibleThroughFrameFn:Owe}),Iwe=e=>w5({...e,isVisibleThroughFrameFn:Awe(e.destination.axis)}),$we=(e,t,n)=>{if(typeof n=="boolean")return n;if(!t)return!0;const{invisible:r,visible:l}=t;if(r[e])return!1;const i=l[e];return i?i.shouldAnimate:!0};function Nwe(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return zi(g5(n,r))}function bm(e){let{afterDragging:t,destination:n,displacedBy:r,viewport:l,forceShouldAnimate:i,last:o}=e;return t.reduce(function(s,u){const c=Nwe(u,r),d=u.descriptor.id;if(s.all.push(d),!Lwe({target:c,destination:n,viewport:l,withDroppableDisplacement:!0}))return s.invisible[u.descriptor.id]=!0,s;const p=$we(d,o,i),m={draggableId:d,shouldAnimate:p};return s.visible[d]=m,s},{all:[],visible:{},invisible:{}})}function Fwe(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function bE(e){let{insideDestination:t,inHomeList:n,displacedBy:r,destination:l}=e;const i=Fwe(t,{inHomeList:n});return{displaced:ym,displacedBy:r,at:{type:"REORDER",destination:{droppableId:l.descriptor.id,index:i}}}}function my(e){let{draggable:t,insideDestination:n,destination:r,viewport:l,displacedBy:i,last:o,index:a,forceShouldAnimate:s}=e;const u=hf(t,r);if(a==null)return bE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const c=n.find(g=>g.descriptor.index===a);if(!c)return bE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const d=Cb(t,n),f=n.indexOf(c),p=d.slice(f);return{displaced:bm({afterDragging:p,destination:r,displacedBy:i,last:o,viewport:l.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function Xs(e,t){return!!t.effected[e]}var jwe=e=>{let{isMovingForward:t,destination:n,draggables:r,combine:l,afterCritical:i}=e;if(!n.isCombineEnabled)return null;const o=l.draggableId,s=r[o].descriptor.index;return Xs(o,i)?t?s:s-1:t?s+1:s},zwe=e=>{let{isMovingForward:t,isInHomeList:n,insideDestination:r,location:l}=e;if(!r.length)return null;const i=l.index,o=t?i+1:i-1,a=r[0].descriptor.index,s=r[r.length-1].descriptor.index,u=n?s:s+1;return ou?null:o},Bwe=e=>{let{isMovingForward:t,isInHomeList:n,draggable:r,draggables:l,destination:i,insideDestination:o,previousImpact:a,viewport:s,afterCritical:u}=e;const c=a.at;if(c||bn(),c.type==="REORDER"){const f=zwe({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:o});return f==null?null:my({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:f})}const d=jwe({isMovingForward:t,destination:i,displaced:a.displaced,draggables:l,combine:c.combine,afterCritical:u});return d==null?null:my({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:d})},Wwe=e=>{let{displaced:t,afterCritical:n,combineWith:r,displacedBy:l}=e;const i=!!(t.visible[r]||t.invisible[r]);return Xs(r,n)?i?za:ff(l.point):i?l.point:za},qwe=e=>{let{afterCritical:t,impact:n,draggables:r}=e;const l=Sb(n);l||bn();const i=l.draggableId,o=r[i].page.borderBox.center,a=Wwe({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Ja(o,a)};const KW=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,Uwe=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,_5=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,xE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return Ku(t.line,n.marginBox[t.end]+KW(t,r),_5(t,n.marginBox,r))},wE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return Ku(t.line,n.marginBox[t.start]-Uwe(t,r),_5(t,n.marginBox,r))},Hwe=e=>{let{axis:t,moveInto:n,isMoving:r}=e;return Ku(t.line,n.contentBox[t.start]+KW(t,r),_5(t,n.contentBox,r))};var Vwe=e=>{let{impact:t,draggable:n,draggables:r,droppable:l,afterCritical:i}=e;const o=pf(l.descriptor.id,r),a=n.page,s=l.axis;if(!o.length)return Hwe({axis:s,moveInto:l.page,isMoving:a});const{displaced:u,displacedBy:c}=t,d=u.all[0];if(d){const p=r[d];if(Xs(d,i))return wE({axis:s,moveRelativeTo:p.page,isMoving:a});const m=dy(p.page,c.point);return wE({axis:s,moveRelativeTo:m,isMoving:a})}const f=o[o.length-1];if(f.descriptor.id===n.descriptor.id)return a.borderBox.center;if(Xs(f.descriptor.id,i)){const p=dy(f.page,ff(i.displacedBy.point));return xE({axis:s,moveRelativeTo:p,isMoving:a})}return xE({axis:s,moveRelativeTo:f.page,isMoving:a})},pk=(e,t)=>{const n=e.frame;return n?Ja(t,n.scroll.diff.displacement):t};const Gwe=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,afterCritical:i}=e;const o=n.page.borderBox.center,a=t.at;return!r||!a?o:a.type==="REORDER"?Vwe({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:i}):qwe({impact:t,draggables:l,afterCritical:i})};var Mb=e=>{const t=Gwe(e),n=e.droppable;return n?pk(n,t):t},ZW=(e,t)=>{const n=Go(t,e.scroll.initial),r=ff(n);return{frame:zi({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function _E(e,t){return e.map(n=>t[n])}function Ywe(e,t){for(let n=0;n{let{impact:t,viewport:n,destination:r,draggables:l,maxScrollChange:i}=e;const o=ZW(n,Ja(n.scroll.current,i)),a=r.frame?y5(r,Ja(r.frame.scroll.current,i)):r,s=t.displaced,u=bm({afterDragging:_E(s.all,l),destination:r,displacedBy:t.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),c=bm({afterDragging:_E(s.all,l),destination:a,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),d={},f={},p=[s,u,c];return s.all.forEach(g=>{const b=Ywe(g,p);if(b){f[g]=b;return}d[g]=!0}),{...t,displaced:{all:s.all,invisible:d,visible:f}}},Kwe=(e,t)=>Ja(e.scroll.diff.displacement,t),T5=e=>{let{pageBorderBoxCenter:t,draggable:n,viewport:r}=e;const l=Kwe(r,t),i=Go(l,n.page.borderBox.center);return Ja(n.client.borderBox.center,i)},QW=e=>{let{draggable:t,destination:n,newPageBorderBoxCenter:r,viewport:l,withDroppableDisplacement:i,onlyOnMainAxis:o=!1}=e;const a=Go(r,t.page.borderBox.center),u={target:ig(t.page.borderBox,a),destination:n,withDroppableDisplacement:i,viewport:l};return o?Iwe(u):XW(u)},Zwe=e=>{let{isMovingForward:t,draggable:n,destination:r,draggables:l,previousImpact:i,viewport:o,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:u}=e;if(!r.isEnabled)return null;const c=pf(r.descriptor.id,l),d=hf(n,r),f=Cwe({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||Bwe({isMovingForward:t,isInHomeList:d,draggable:n,draggables:l,destination:r,insideDestination:c,previousImpact:i,viewport:o,afterCritical:u});if(!f)return null;const p=Mb({impact:f,draggable:n,droppable:r,draggables:l,afterCritical:u});if(QW({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:T5({pageBorderBoxCenter:p,draggable:n,viewport:o}),impact:f,scrollJumpRequest:null};const g=Go(p,a),b=Xwe({impact:f,viewport:o,destination:r,draggables:l,maxScrollChange:g});return{clientSelection:s,impact:b,scrollJumpRequest:g}};const go=e=>{const t=e.subject.active;return t||bn(),t};var Qwe=e=>{let{isMovingForward:t,pageBorderBoxCenter:n,source:r,droppables:l,viewport:i}=e;const o=r.subject.active;if(!o)return null;const a=r.axis,s=wi(o[a.start],o[a.end]),u=kb(l).filter(d=>d!==r).filter(d=>d.isEnabled).filter(d=>!!d.subject.active).filter(d=>GW(i.frame)(go(d))).filter(d=>{const f=go(d);return t?o[a.crossAxisEnd]{const f=go(d),p=wi(f[a.start],f[a.end]);return s(f[a.start])||s(f[a.end])||p(o[a.start])||p(o[a.end])}).sort((d,f)=>{const p=go(d)[a.crossAxisStart],m=go(f)[a.crossAxisStart];return t?p-m:m-p}).filter((d,f,p)=>go(d)[a.crossAxisStart]===go(p[0])[a.crossAxisStart]);if(!u.length)return null;if(u.length===1)return u[0];const c=u.filter(d=>wi(go(d)[a.start],go(d)[a.end])(n[a.line]));return c.length===1?c[0]:c.length>1?c.sort((d,f)=>go(d)[a.start]-go(f)[a.start])[0]:u.sort((d,f)=>{const p=vE(n,yE(go(d))),m=vE(n,yE(go(f)));return p!==m?p-m:go(d)[a.start]-go(f)[a.start]})[0]};const TE=(e,t)=>{const n=e.page.borderBox.center;return Xs(e.descriptor.id,t)?Go(n,t.displacedBy.point):n},Jwe=(e,t)=>{const n=e.page.borderBox;return Xs(e.descriptor.id,t)?ig(n,ff(t.displacedBy.point)):n};var e_e=e=>{let{pageBorderBoxCenter:t,viewport:n,destination:r,insideDestination:l,afterCritical:i}=e;return l.filter(a=>XW({target:Jwe(a,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})).sort((a,s)=>{const u=vm(t,pk(r,TE(a,i))),c=vm(t,pk(r,TE(s,i)));return u{const r=e.axis;if(e.descriptor.mode==="virtual")return Ku(r.line,t[r.line]);const l=e.subject.page.contentBox[r.size],s=pf(e.descriptor.id,n).reduce((u,c)=>u+c.client.marginBox[r.size],0)+t[r.line]-l;return s<=0?null:Ku(r.line,s)},JW=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),eq=(e,t,n)=>{const r=e.frame;hf(t,e)&&bn(),e.subject.withPlaceholder&&bn();const l=lg(e.axis,t.displaceBy).point,i=t_e(e,l,n),o={placeholderSize:l,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const c=Hd({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame});return{...e,subject:c}}const a=i?Ja(r.scroll.max,i):r.scroll.max,s=JW(r,a),u=Hd({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:s});return{...e,subject:u,frame:s}},n_e=e=>{const t=e.subject.withPlaceholder;t||bn();const n=e.frame;if(!n){const o=Hd({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:o}}const r=t.oldFrameMaxScroll;r||bn();const l=JW(n,r),i=Hd({page:e.subject.page,axis:e.axis,frame:l,withPlaceholder:null});return{...e,subject:i,frame:l}};var r_e=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:n,insideDestination:r,draggable:l,draggables:i,destination:o,viewport:a,afterCritical:s}=e;if(!n){if(r.length)return null;const f={displaced:ym,displacedBy:VW,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},p=Mb({impact:f,draggable:l,droppable:o,draggables:i,afterCritical:s}),m=hf(l,o)?o:eq(o,l,i);return QW({draggable:l,destination:m,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?f:null}const u=t[o.axis.line]<=n.page.borderBox.center[o.axis.line],c=(()=>{const f=n.descriptor.index;return n.descriptor.id===l.descriptor.id||u?f:f+1})(),d=lg(o.axis,l.displaceBy);return my({draggable:l,insideDestination:r,destination:o,viewport:a,displacedBy:d,last:ym,index:c})},a_e=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:n,draggable:r,isOver:l,draggables:i,droppables:o,viewport:a,afterCritical:s}=e;const u=Qwe({isMovingForward:t,pageBorderBoxCenter:n,source:l,droppables:o,viewport:a});if(!u)return null;const c=pf(u.descriptor.id,i),d=e_e({pageBorderBoxCenter:n,viewport:a,destination:u,insideDestination:c,afterCritical:s}),f=r_e({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:c,viewport:a,afterCritical:s});if(!f)return null;const p=Mb({impact:f,draggable:r,droppable:u,draggables:i,afterCritical:s});return{clientSelection:T5({pageBorderBoxCenter:p,draggable:r,viewport:a}),impact:f,scrollJumpRequest:null}},Qo=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const o_e=(e,t)=>{const n=Qo(e);return n?t[n]:null};var i_e=e=>{let{state:t,type:n}=e;const r=o_e(t.impact,t.dimensions.droppables),l=!!r,i=t.dimensions.droppables[t.critical.droppable.id],o=r||i,a=o.axis.direction,s=a==="vertical"&&(n==="MOVE_UP"||n==="MOVE_DOWN")||a==="horizontal"&&(n==="MOVE_LEFT"||n==="MOVE_RIGHT");if(s&&!l)return null;const u=n==="MOVE_DOWN"||n==="MOVE_RIGHT",c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,{draggables:f,droppables:p}=t.dimensions;return s?Zwe({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,destination:o,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):a_e({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,isOver:o,draggables:f,droppables:p,viewport:t.viewport,afterCritical:t.afterCritical})};function _u(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function tq(e){const t=wi(e.top,e.bottom),n=wi(e.left,e.right);return function(l){return t(l.y)&&n(l.x)}}function l_e(e,t){return e.leftt.left&&e.topt.top}function s_e(e){let{pageBorderBox:t,draggable:n,candidates:r}=e;const l=n.page.borderBox.center,i=r.map(o=>{const a=o.axis,s=Ku(o.axis.line,t.center[a.line],o.page.borderBox.center[a.crossAxisLine]);return{id:o.descriptor.id,distance:vm(l,s)}}).sort((o,a)=>a.distance-o.distance);return i[0]?i[0].id:null}function u_e(e){let{pageBorderBox:t,draggable:n,droppables:r}=e;const l=kb(r).filter(i=>{if(!i.isEnabled)return!1;const o=i.subject.active;if(!o||!l_e(t,o))return!1;if(tq(o)(t.center))return!0;const a=i.axis,s=o.center[a.crossAxisLine],u=t[a.crossAxisStart],c=t[a.crossAxisEnd],d=wi(o[a.crossAxisStart],o[a.crossAxisEnd]),f=d(u),p=d(c);return!f&&!p?!0:f?us});return l.length?l.length===1?l[0].descriptor.id:s_e({pageBorderBox:t,draggable:n,candidates:l}):null}const nq=(e,t)=>zi(ig(e,t));var c_e=(e,t)=>{const n=e.frame;return n?nq(t,n.scroll.diff.value):t};function rq(e){let{displaced:t,id:n}=e;return!!(t.visible[n]||t.invisible[n])}function d_e(e){let{draggable:t,closest:n,inHomeList:r}=e;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var f_e=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:n,destination:r,insideDestination:l,last:i,viewport:o,afterCritical:a}=e;const s=r.axis,u=lg(r.axis,n.displaceBy),c=u.value,d=t[s.start],f=t[s.end],m=Cb(n,l).find(b=>{const v=b.descriptor.id,h=b.page.borderBox.center[s.line],y=Xs(v,a),w=rq({displaced:i,id:v});return y?w?f<=h:d{let{draggable:t,pageBorderBoxWithDroppableScroll:n,previousImpact:r,destination:l,insideDestination:i,afterCritical:o}=e;if(!l.isCombineEnabled)return null;const a=l.axis,s=lg(l.axis,t.displaceBy),u=s.value,c=n[a.start],d=n[a.end],p=Cb(t,i).find(g=>{const b=g.descriptor.id,v=g.page.borderBox,y=v[a.size]/p_e,w=Xs(b,o),_=rq({displaced:r.displaced,id:b});return w?_?d>v[a.start]+y&&dv[a.start]-u+y&&cv[a.start]+u+y&&dv[a.start]+y&&c{let{pageOffset:t,draggable:n,draggables:r,droppables:l,previousImpact:i,viewport:o,afterCritical:a}=e;const s=nq(n.page.borderBox,t),u=u_e({pageBorderBox:s,draggable:n,droppables:l});if(!u)return Pwe;const c=l[u],d=pf(c.descriptor.id,r),f=c_e(c,s);return h_e({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:c,insideDestination:d,afterCritical:a})||f_e({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:c,insideDestination:d,last:i.displaced,viewport:o,afterCritical:a})},k5=(e,t)=>({...e,[t.descriptor.id]:t});const m_e=e=>{let{previousImpact:t,impact:n,droppables:r}=e;const l=Qo(t),i=Qo(n);if(!l||l===i)return r;const o=r[l];if(!o.subject.withPlaceholder)return r;const a=n_e(o);return k5(r,a)};var g_e=e=>{let{draggable:t,draggables:n,droppables:r,previousImpact:l,impact:i}=e;const o=m_e({previousImpact:l,impact:i,droppables:r}),a=Qo(i);if(!a)return o;const s=r[a];if(hf(t,s)||s.subject.withPlaceholder)return o;const u=eq(s,t,n);return k5(o,u)},$h=e=>{let{state:t,clientSelection:n,dimensions:r,viewport:l,impact:i,scrollJumpRequest:o}=e;const a=l||t.viewport,s=r||t.dimensions,u=n||t.current.client.selection,c=Go(u,t.initial.client.selection),d={offset:c,selection:u,borderBoxCenter:Ja(t.initial.client.borderBoxCenter,c)},f={selection:Ja(d.selection,a.scroll.current),borderBoxCenter:Ja(d.borderBoxCenter,a.scroll.current),offset:Ja(d.offset,a.scroll.diff.value)},p={client:d,page:f};if(t.phase==="COLLECTING")return{...t,dimensions:s,viewport:a,current:p};const m=s.draggables[t.critical.draggable.id],g=i||aq({pageOffset:f.offset,draggable:m,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:a,afterCritical:t.afterCritical}),b=g_e({draggable:m,impact:g,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return{...t,current:p,dimensions:{draggables:s.draggables,droppables:b},impact:g,viewport:a,scrollJumpRequest:o||null,forceShouldAnimate:o?!1:null}};function v_e(e,t){return e.map(n=>t[n])}var oq=e=>{let{impact:t,viewport:n,draggables:r,destination:l,forceShouldAnimate:i}=e;const o=t.displaced,a=v_e(o.all,r),s=bm({afterDragging:a,destination:l,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:o});return{...t,displaced:s}},iq=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,viewport:i,afterCritical:o}=e;const a=Mb({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:o});return T5({pageBorderBoxCenter:a,draggable:n,viewport:i})},lq=e=>{let{state:t,dimensions:n,viewport:r}=e;t.movementMode!=="SNAP"&&bn();const l=t.impact,i=r||t.viewport,o=n||t.dimensions,{draggables:a,droppables:s}=o,u=a[t.critical.draggable.id],c=Qo(l);c||bn();const d=s[c],f=oq({impact:l,viewport:i,destination:d,draggables:a}),p=iq({impact:f,draggable:u,droppable:d,draggables:a,viewport:i,afterCritical:t.afterCritical});return $h({impact:f,clientSelection:p,state:t,dimensions:o,viewport:i})},y_e=e=>({index:e.index,droppableId:e.droppableId}),sq=e=>{let{draggable:t,home:n,draggables:r,viewport:l}=e;const i=lg(n.axis,t.displaceBy),o=pf(n.descriptor.id,r),a=o.indexOf(t);a===-1&&bn();const s=o.slice(a+1),u=s.reduce((p,m)=>(p[m.descriptor.id]=!0,p),{}),c={inVirtualList:n.descriptor.mode==="virtual",displacedBy:i,effected:u};return{impact:{displaced:bm({afterDragging:s,destination:n,displacedBy:i,last:null,viewport:l.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:y_e(t.descriptor)}},afterCritical:c}},b_e=(e,t)=>({draggables:e.draggables,droppables:k5(e.droppables,t)}),x_e=e=>{let{draggable:t,offset:n,initialWindowScroll:r}=e;const l=dy(t.client,n),i=fy(l,r);return{...t,placeholder:{...t.placeholder,client:l},client:l,page:i}},w_e=e=>{const t=e.frame;return t||bn(),t},__e=e=>{let{additions:t,updatedDroppables:n,viewport:r}=e;const l=r.scroll.diff.value;return t.map(i=>{const o=i.descriptor.droppableId,a=n[o],u=w_e(a).scroll.diff.value,c=Ja(l,u);return x_e({draggable:i,offset:c,initialWindowScroll:r.scroll.initial})})},T_e=e=>{let{state:t,published:n}=e;const r=n.modified.map(h=>{const y=t.dimensions.droppables[h.droppableId];return y5(y,h.scroll)}),l={...t.dimensions.droppables,...UW(r)},i=HW(__e({additions:n.additions,updatedDroppables:l,viewport:t.viewport})),o={...t.dimensions.draggables,...i};n.removals.forEach(h=>{delete o[h]});const a={droppables:l,draggables:o},s=Qo(t.impact),u=s?a.droppables[s]:null,c=a.draggables[t.critical.draggable.id],d=a.droppables[t.critical.droppable.id],{impact:f,afterCritical:p}=sq({draggable:c,home:d,draggables:o,viewport:t.viewport}),m=u&&u.isCombineEnabled?t.impact:f,g=aq({pageOffset:t.current.page.offset,draggable:a.draggables[t.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:m,viewport:t.viewport,afterCritical:p}),b={...t,phase:"DRAGGING",impact:g,onLiftImpact:f,dimensions:a,afterCritical:p,forceShouldAnimate:!1};return t.phase==="COLLECTING"?b:{...b,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const hk=e=>e.movementMode==="SNAP",I_=(e,t,n)=>{const r=b_e(e.dimensions,t);return!hk(e)||n?$h({state:e,dimensions:r}):lq({state:e,dimensions:r})};function $_(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const kE={phase:"IDLE",completed:null,shouldFlush:!1};var k_e=function(e,t){if(e===void 0&&(e=kE),t.type==="FLUSH")return{...kE,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&bn();const{critical:n,clientSelection:r,viewport:l,dimensions:i,movementMode:o}=t.payload,a=i.draggables[n.draggable.id],s=i.droppables[n.droppable.id],u={selection:r,borderBoxCenter:a.client.borderBox.center,offset:za},c={client:u,page:{selection:Ja(u.selection,l.scroll.initial),borderBoxCenter:Ja(u.selection,l.scroll.initial),offset:Ja(u.selection,l.scroll.diff.value)}},d=kb(i.droppables).every(g=>!g.isFixedOnPage),{impact:f,afterCritical:p}=sq({draggable:a,home:s,draggables:i.draggables,viewport:l});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:o,dimensions:i,initial:c,current:c,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:l,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&bn(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||bn(),T_e({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;_u(e)||bn();const{client:n}=t.payload;return Us(n,e.current.client.selection)?e:$h({state:e,clientSelection:n,impact:hk(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return $_(e);_u(e)||bn();const{id:n,newScroll:r}=t.payload,l=e.dimensions.droppables[n];if(!l)return e;const i=y5(l,r);return I_(e,i,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;_u(e)||bn();const{id:n,isEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||bn(),l.isEnabled===r&&bn();const i={...l,isEnabled:r};return I_(e,i,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;_u(e)||bn();const{id:n,isCombineEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||bn(),l.isCombineEnabled===r&&bn();const i={...l,isCombineEnabled:r};return I_(e,i,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;_u(e)||bn(),e.isWindowScrollAllowed||bn();const n=t.payload.newScroll;if(Us(e.viewport.scroll.current,n))return $_(e);const r=ZW(e.viewport,n);return hk(e)?lq({state:e,viewport:r}):$h({state:e,viewport:r})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!_u(e))return e;const n=t.payload.maxScroll;if(Us(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&bn();const n=i_e({state:e,type:t.type});return n?$h({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const n=t.payload.reason;return e.phase!=="COLLECTING"&&bn(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if(t.type==="DROP_ANIMATE"){const{completed:n,dropDuration:r,newHomeClientOffset:l}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||bn(),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:l,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:n}=t.payload;return{phase:"IDLE",completed:n,shouldFlush:!1}}return e};const S_e=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),C_e=e=>({type:"LIFT",payload:e}),M_e=e=>({type:"INITIAL_PUBLISH",payload:e}),P_e=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),O_e=()=>({type:"COLLECTION_STARTING",payload:null}),A_e=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),D_e=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),E_e=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),uq=e=>({type:"MOVE",payload:e}),R_e=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),L_e=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),I_e=()=>({type:"MOVE_UP",payload:null}),$_e=()=>({type:"MOVE_DOWN",payload:null}),N_e=()=>({type:"MOVE_RIGHT",payload:null}),F_e=()=>({type:"MOVE_LEFT",payload:null}),S5=()=>({type:"FLUSH",payload:null}),j_e=e=>({type:"DROP_ANIMATE",payload:e}),C5=e=>({type:"DROP_COMPLETE",payload:e}),cq=e=>({type:"DROP",payload:e}),z_e=e=>({type:"DROP_PENDING",payload:e}),dq=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var B_e=e=>t=>{let{getState:n,dispatch:r}=t;return l=>i=>{if(i.type!=="LIFT"){l(i);return}const{id:o,clientSelection:a,movementMode:s}=i.payload,u=n();u.phase==="DROP_ANIMATING"&&r(C5({completed:u.completed})),n().phase!=="IDLE"&&bn(),r(S5()),r(S_e({draggableId:o,movementMode:s}));const d={draggableId:o,scrollOptions:{shouldPublishImmediately:s==="SNAP"}},{critical:f,dimensions:p,viewport:m}=e.startPublishing(d);r(M_e({critical:f,dimensions:p,clientSelection:a,movementMode:s,viewport:m}))}},W_e=e=>()=>t=>n=>{n.type==="INITIAL_PUBLISH"&&e.dragging(),n.type==="DROP_ANIMATE"&&e.dropping(n.payload.completed.result.reason),(n.type==="FLUSH"||n.type==="DROP_COMPLETE")&&e.resting(),t(n)};const M5={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},xm={opacity:{drop:0,combining:.7},scale:{drop:.75}},fq={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},hu=`${fq.outOfTheWay}s ${M5.outOfTheWay}`,Nh={fluid:`opacity ${hu}`,snap:`transform ${hu}, opacity ${hu}`,drop:e=>{const t=`${e}s ${M5.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${hu}`,placeholder:`height ${hu}, width ${hu}, margin ${hu}`},SE=e=>Us(e,za)?void 0:`translate(${e.x}px, ${e.y}px)`,mk={moveTo:SE,drop:(e,t)=>{const n=SE(e);if(n)return t?`${n} scale(${xm.scale.drop})`:n}},{minDropTime:gk,maxDropTime:pq}=fq,q_e=pq-gk,CE=1500,U_e=.6;var H_e=e=>{let{current:t,destination:n,reason:r}=e;const l=vm(t,n);if(l<=0)return gk;if(l>=CE)return pq;const i=l/CE,o=gk+q_e*i,a=r==="CANCEL"?o*U_e:o;return Number(a.toFixed(2))},V_e=e=>{let{impact:t,draggable:n,dimensions:r,viewport:l,afterCritical:i}=e;const{draggables:o,droppables:a}=r,s=Qo(t),u=s?a[s]:null,c=a[n.descriptor.droppableId],d=iq({impact:t,draggable:n,draggables:o,afterCritical:i,droppable:u||c,viewport:l});return Go(d,n.client.borderBox.center)},G_e=e=>{let{draggables:t,reason:n,lastImpact:r,home:l,viewport:i,onLiftImpact:o}=e;return!r.at||n!=="DROP"?{impact:oq({draggables:t,impact:o,destination:l,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:r.at.type==="REORDER"?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:ym},didDropInsideDroppable:!0}};const Y_e=e=>{let{getState:t,dispatch:n}=e;return r=>l=>{if(l.type!=="DROP"){r(l);return}const i=t(),o=l.payload.reason;if(i.phase==="COLLECTING"){n(z_e({reason:o}));return}if(i.phase==="IDLE")return;i.phase==="DROP_PENDING"&&i.isWaiting&&bn(),i.phase==="DRAGGING"||i.phase==="DROP_PENDING"||bn();const s=i.critical,u=i.dimensions,c=u.draggables[i.critical.draggable.id],{impact:d,didDropInsideDroppable:f}=G_e({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),p=f?b5(d):null,m=f?Sb(d):null,g={index:s.draggable.index,droppableId:s.droppable.id},b={draggableId:c.descriptor.id,type:c.descriptor.type,source:g,reason:o,mode:i.movementMode,destination:p,combine:m},v=V_e({impact:d,draggable:c,dimensions:u,viewport:i.viewport,afterCritical:i.afterCritical}),h={critical:i.critical,afterCritical:i.afterCritical,result:b,impact:d};if(!(!Us(i.current.client.offset,v)||!!b.combine)){n(C5({completed:h}));return}const w=H_e({current:i.current.client.offset,destination:v,reason:o});n(j_e({newHomeClientOffset:v,dropDuration:w,completed:h}))}};var X_e=Y_e,hq=()=>({x:window.pageXOffset,y:window.pageYOffset});function K_e(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function Z_e(e){let{onWindowScroll:t}=e;function n(){t(hq())}const r=gm(n),l=K_e(r);let i=qs;function o(){return i!==qs}function a(){o()&&bn(),i=vi(window,[l])}function s(){o()||bn(),r.cancel(),i(),i=qs}return{start:a,stop:s,isActive:o}}const Q_e=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",J_e=e=>{const t=Z_e({onWindowScroll:n=>{e.dispatch(R_e({newScroll:n}))}});return n=>r=>{!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&Q_e(r)&&t.stop(),n(r)}};var eTe=J_e,tTe=e=>{let t=!1,n=!1;const r=setTimeout(()=>{n=!0}),l=i=>{t||n||(t=!0,e(i),clearTimeout(r))};return l.wasCalled=()=>t,l},nTe=()=>{const e=[],t=l=>{const i=e.findIndex(a=>a.timerId===l);i===-1&&bn();const[o]=e.splice(i,1);o.callback()};return{add:l=>{const i=setTimeout(()=>t(i)),o={timerId:i,callback:l};e.push(o)},flush:()=>{if(!e.length)return;const l=[...e];e.length=0,l.forEach(i=>{clearTimeout(i.timerId),i.callback()})}}};const rTe=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,aTe=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,oTe=(e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r},wp=(e,t)=>{t()},x0=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function N_(e,t,n,r){if(!e){n(r(t));return}const l=tTe(n);e(t,{announce:l}),l.wasCalled()||n(r(t))}var iTe=(e,t)=>{const n=nTe();let r=null;const l=(d,f)=>{r&&bn(),wp("onBeforeCapture",()=>{const p=e().onBeforeCapture;p&&p({draggableId:d,mode:f})})},i=(d,f)=>{r&&bn(),wp("onBeforeDragStart",()=>{const p=e().onBeforeDragStart;p&&p(x0(d,f))})},o=(d,f)=>{r&&bn();const p=x0(d,f);r={mode:f,lastCritical:d,lastLocation:p.source,lastCombine:null},n.add(()=>{wp("onDragStart",()=>N_(e().onDragStart,p,t,ov.onDragStart))})},a=(d,f)=>{const p=b5(f),m=Sb(f);r||bn();const g=!oTe(d,r.lastCritical);g&&(r.lastCritical=d);const b=!rTe(r.lastLocation,p);b&&(r.lastLocation=p);const v=!aTe(r.lastCombine,m);if(v&&(r.lastCombine=m),!g&&!b&&!v)return;const h={...x0(d,r.mode),combine:m,destination:p};n.add(()=>{wp("onDragUpdate",()=>N_(e().onDragUpdate,h,t,ov.onDragUpdate))})},s=()=>{r||bn(),n.flush()},u=d=>{r||bn(),r=null,wp("onDragEnd",()=>N_(e().onDragEnd,d,t,ov.onDragEnd))};return{beforeCapture:l,beforeStart:i,start:o,update:a,flush:s,drop:u,abort:()=>{if(!r)return;const d={...x0(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};u(d)}}},lTe=(e,t)=>{const n=iTe(e,t);return r=>l=>i=>{if(i.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(i.payload.draggableId,i.payload.movementMode);return}if(i.type==="INITIAL_PUBLISH"){const a=i.payload.critical;n.beforeStart(a,i.payload.movementMode),l(i),n.start(a,i.payload.movementMode);return}if(i.type==="DROP_COMPLETE"){const a=i.payload.completed.result;n.flush(),l(i),n.drop(a);return}if(l(i),i.type==="FLUSH"){n.abort();return}const o=r.getState();o.phase==="DRAGGING"&&n.update(o.critical,o.impact)}};const sTe=e=>t=>n=>{if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}const r=e.getState();r.phase!=="DROP_ANIMATING"&&bn(),e.dispatch(C5({completed:r.completed}))};var uTe=sTe;const cTe=e=>{let t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return l=>i=>{if((i.type==="FLUSH"||i.type==="DROP_COMPLETE"||i.type==="DROP_ANIMATION_FINISHED")&&r(),l(i),i.type!=="DROP_ANIMATE")return;const o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(dq())}};n=requestAnimationFrame(()=>{n=null,t=vi(window,[o])})}};var dTe=cTe,fTe=e=>()=>t=>n=>{(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)},pTe=e=>{let t=!1;return()=>n=>r=>{if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;const l=r.payload.completed.result;l.combine&&e.tryShiftRecord(l.draggableId,l.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const hTe=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var mTe=e=>t=>n=>r=>{if(hTe(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);const l=t.getState();l.phase!=="DRAGGING"&&bn(),e.start(l);return}n(r),e.scroll(t.getState())};const gTe=e=>t=>n=>{if(t(n),n.type!=="PUBLISH_WHILE_DRAGGING")return;const r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(cq({reason:r.reason})))};var vTe=gTe;const yTe=AW;var bTe=e=>{let{dimensionMarshal:t,focusMarshal:n,styleMarshal:r,getResponders:l,announce:i,autoScroller:o}=e;return OW(k_e,yTe(R2e(W_e(r),fTe(t),B_e(t),X_e,uTe,dTe,vTe,mTe(o),eTe,pTe(n),lTe(l,i))))};const F_=()=>({additions:{},removals:{},modified:{}});function xTe(e){let{registry:t,callbacks:n}=e,r=F_(),l=null;const i=()=>{l||(n.collectionStarting(),l=requestAnimationFrame(()=>{l=null;const{additions:u,removals:c,modified:d}=r,f=Object.keys(u).map(g=>t.draggable.getById(g).getDimension(za)).sort((g,b)=>g.descriptor.index-b.descriptor.index),p=Object.keys(d).map(g=>{const v=t.droppable.getById(g).callbacks.getScrollWhileDragging();return{droppableId:g,scroll:v}}),m={additions:f,removals:Object.keys(c),modified:p};r=F_(),n.publish(m)}))};return{add:u=>{const c=u.descriptor.id;r.additions[c]=u,r.modified[u.descriptor.droppableId]=!0,r.removals[c]&&delete r.removals[c],i()},remove:u=>{const c=u.descriptor;r.removals[c.id]=!0,r.modified[c.droppableId]=!0,r.additions[c.id]&&delete r.additions[c.id],i()},stop:()=>{l&&(cancelAnimationFrame(l),l=null,r=F_())}}}var mq=e=>{let{scrollHeight:t,scrollWidth:n,height:r,width:l}=e;const i=Go({x:n,y:t},{x:l,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},gq=()=>{const e=document.documentElement;return e||bn(),e},vq=()=>{const e=gq();return mq({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},wTe=()=>{const e=hq(),t=vq(),n=e.y,r=e.x,l=gq(),i=l.clientWidth,o=l.clientHeight,a=r+i,s=n+o;return{frame:zi({top:n,left:r,right:a,bottom:s}),scroll:{initial:e,current:e,max:t,diff:{value:za,displacement:za}}}},_Te=e=>{let{critical:t,scrollOptions:n,registry:r}=e;const l=wTe(),i=l.scroll.current,o=t.droppable,a=r.droppable.getAllByType(o.type).map(d=>d.callbacks.getDimensionAndWatchScroll(i,n)),s=r.draggable.getAllByType(t.draggable.type).map(d=>d.getDimension(i));return{dimensions:{draggables:HW(s),droppables:UW(a)},critical:t,viewport:l}};function ME(e,t,n){return!(n.descriptor.id===t.id||n.descriptor.type!==t.type||e.droppable.getById(n.descriptor.droppableId).descriptor.mode!=="virtual")}var TTe=(e,t)=>{let n=null;const r=xTe({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),l=(f,p)=>{e.droppable.exists(f)||bn(),n&&t.updateDroppableIsEnabled({id:f,isEnabled:p})},i=(f,p)=>{n&&(e.droppable.exists(f)||bn(),t.updateDroppableIsCombineEnabled({id:f,isCombineEnabled:p}))},o=(f,p)=>{n&&(e.droppable.exists(f)||bn(),t.updateDroppableScroll({id:f,newScroll:p}))},a=(f,p)=>{n&&e.droppable.getById(f).callbacks.scroll(p)},s=()=>{if(!n)return;r.stop();const f=n.critical.droppable;e.droppable.getAllByType(f.type).forEach(p=>p.callbacks.dragStopped()),n.unsubscribe(),n=null},u=f=>{n||bn();const p=n.critical.draggable;f.type==="ADDITION"&&ME(e,p,f.value)&&r.add(f.value),f.type==="REMOVAL"&&ME(e,p,f.value)&&r.remove(f.value)};return{updateDroppableIsEnabled:l,updateDroppableIsCombineEnabled:i,scrollDroppable:a,updateDroppableScroll:o,startPublishing:f=>{n&&bn();const p=e.draggable.getById(f.draggableId),m=e.droppable.getById(p.descriptor.droppableId),g={draggable:p.descriptor,droppable:m.descriptor},b=e.subscribe(u);return n={critical:g,unsubscribe:b},_Te({critical:g,registry:e,scrollOptions:f.scrollOptions})},stopPublishing:s}},yq=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",kTe=e=>{window.scrollBy(e.x,e.y)};const STe=ja(e=>kb(e).filter(t=>!(!t.isEnabled||!t.frame))),CTe=(e,t)=>STe(t).find(r=>(r.frame||bn(),tq(r.frame.pageMarginBox)(e)))||null;var MTe=e=>{let{center:t,destination:n,droppables:r}=e;if(n){const i=r[n];return i.frame?i:null}return CTe(t,r)};const wm={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var PTe=function(e,t,n){n===void 0&&(n=()=>wm);const r=n(),l=e[t.size]*r.startFromPercentage,i=e[t.size]*r.maxScrollAtPercentage;return{startScrollingFrom:l,maxScrollValueAt:i}},bq=e=>{let{startOfRange:t,endOfRange:n,current:r}=e;const l=n-t;return l===0?0:(r-t)/l},P5=1,OTe=function(e,t,n){n===void 0&&(n=()=>wm);const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return P5;const i=1-bq({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),o=r.maxPixelScroll*r.ease(i);return Math.ceil(o)},ATe=(e,t,n)=>{const r=n(),l=r.durationDampening.accelerateAt,i=r.durationDampening.stopDampeningAt,o=t,a=i,u=Date.now()-o;if(u>=i)return e;if(u{let{distanceToEdge:t,thresholds:n,dragStartTime:r,shouldUseTimeDampening:l,getAutoScrollerOptions:i}=e;const o=OTe(t,n,i);return o===0?0:l?Math.max(ATe(o,r,i),P5):o},OE=e=>{let{container:t,distanceToEdges:n,dragStartTime:r,axis:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=PTe(t,l,o);return n[l.end]{let{container:t,subject:n,proposedScroll:r}=e;const l=n.height>t.height,i=n.width>t.width;return!i&&!l?r:i&&l?null:{x:i?0:r.x,y:l?0:r.y}};const ETe=qW(e=>e===0?0:e);var xq=e=>{let{dragStartTime:t,container:n,subject:r,center:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a={top:l.y-n.top,right:n.right-l.x,bottom:n.bottom-l.y,left:l.x-n.left},s=OE({container:n,distanceToEdges:a,dragStartTime:t,axis:x5,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),u=OE({container:n,distanceToEdges:a,dragStartTime:t,axis:YW,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),c=ETe({x:u,y:s});if(Us(c,za))return null;const d=DTe({container:n,subject:r,proposedScroll:c});return d?Us(d,za)?null:d:null};const RTe=qW(e=>e===0?0:e>0?1:-1),O5=(()=>{const e=(t,n)=>t<0?t:t>n?t-n:0;return t=>{let{current:n,max:r,change:l}=t;const i=Ja(n,l),o={x:e(i.x,r.x),y:e(i.y,r.y)};return Us(o,za)?null:o}})(),wq=e=>{let{max:t,current:n,change:r}=e;const l={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=RTe(r),o=O5({max:l,current:n,change:i});return!o||i.x!==0&&o.x===0||i.y!==0&&o.y===0},A5=(e,t)=>wq({current:e.scroll.current,max:e.scroll.max,change:t}),LTe=(e,t)=>{if(!A5(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return O5({current:r,max:n,change:t})},D5=(e,t)=>{const n=e.frame;return n?wq({current:n.scroll.current,max:n.scroll.max,change:t}):!1},ITe=(e,t)=>{const n=e.frame;return!n||!D5(e,t)?null:O5({current:n.scroll.current,max:n.scroll.max,change:t})};var $Te=e=>{let{viewport:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=xq({dragStartTime:l,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return a&&A5(t,a)?a:null},NTe=e=>{let{droppable:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=t.frame;if(!a)return null;const s=xq({dragStartTime:l,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return s&&D5(t,s)?s:null},AE=e=>{let{state:t,dragStartTime:n,shouldUseTimeDampening:r,scrollWindow:l,scrollDroppable:i,getAutoScrollerOptions:o}=e;const a=t.current.page.borderBoxCenter,u=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const f=t.viewport,p=$Te({dragStartTime:n,viewport:f,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});if(p){l(p);return}}const c=MTe({center:a,destination:Qo(t.impact),droppables:t.dimensions.droppables});if(!c)return;const d=NTe({dragStartTime:n,droppable:c,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});d&&i(c.descriptor.id,d)},FTe=e=>{let{scrollWindow:t,scrollDroppable:n,getAutoScrollerOptions:r=()=>wm}=e;const l=gm(t),i=gm(n);let o=null;const a=c=>{o||bn();const{shouldUseTimeDampening:d,dragStartTime:f}=o;AE({state:c,scrollWindow:l,scrollDroppable:i,dragStartTime:f,shouldUseTimeDampening:d,getAutoScrollerOptions:r})};return{start:c=>{o&&bn();const d=Date.now();let f=!1;const p=()=>{f=!0};AE({state:c,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:p,scrollDroppable:p,getAutoScrollerOptions:r}),o={dragStartTime:d,shouldUseTimeDampening:f},f&&a(c)},stop:()=>{o&&(l.cancel(),i.cancel(),o=null)},scroll:a}},jTe=e=>{let{move:t,scrollDroppable:n,scrollWindow:r}=e;const l=(s,u)=>{const c=Ja(s.current.client.selection,u);t({client:c})},i=(s,u)=>{if(!D5(s,u))return u;const c=ITe(s,u);if(!c)return n(s.descriptor.id,u),null;const d=Go(u,c);return n(s.descriptor.id,d),Go(u,d)},o=(s,u,c)=>{if(!s||!A5(u,c))return c;const d=LTe(u,c);if(!d)return r(c),null;const f=Go(c,d);return r(f),Go(c,f)};return s=>{const u=s.scrollJumpRequest;if(!u)return;const c=Qo(s.impact);c||bn();const d=i(s.dimensions.droppables[c],u);if(!d)return;const f=s.viewport,p=o(s.isWindowScrollAllowed,f,d);p&&l(s,p)}},zTe=e=>{let{scrollDroppable:t,scrollWindow:n,move:r,getAutoScrollerOptions:l}=e;const i=FTe({scrollWindow:n,scrollDroppable:t,getAutoScrollerOptions:l}),o=jTe({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:u=>{if(!(l().disabled||u.phase!=="DRAGGING")){if(u.movementMode==="FLUID"){i.scroll(u);return}u.scrollJumpRequest&&o(u)}},start:i.start,stop:i.stop}};const Vd="data-rfd",Gd=(()=>{const e=`${Vd}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),vk=(()=>{const e=`${Vd}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),BTe=(()=>{const e=`${Vd}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),DE={contextId:`${Vd}-scroll-container-context-id`},WTe=e=>t=>`[${t}="${e}"]`,_p=(e,t)=>e.map(n=>{const r=n.styles[t];return r?`${n.selector} { ${r} }`:""}).join(" "),qTe="pointer-events: none;";var UTe=e=>{const t=WTe(e),n=(()=>{const a=` + ${hE(e.source)} + `},fwe={dragHandleUsageInstructions:swe,onDragStart:uwe,onDragUpdate:cwe,onDragEnd:dwe};var ov=fwe;const za={x:0,y:0},Ja=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Go=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Us=(e,t)=>e.x===t.x&&e.y===t.y,ff=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Ku=function(e,t,n){return n===void 0&&(n=0),e==="x"?{x:t,y:n}:{x:n,y:t}},vm=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),mE=(e,t)=>Math.min(...t.map(n=>vm(e,n))),zW=e=>t=>({x:e(t.x),y:e(t.y)});var pwe=(e,t)=>{const n=zi({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n};const ig=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),gE=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],hwe={top:0,right:0,bottom:0,left:0},mwe=(e,t)=>t?ig(e,t.scroll.diff.displacement):e,gwe=(e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e,vwe=(e,t)=>t&&t.shouldClipSubject?pwe(t.pageMarginBox,e):zi(e);var Hd=e=>{let{page:t,withPlaceholder:n,axis:r,frame:l}=e;const i=mwe(t.marginBox,l),o=gwe(i,r,n),a=vwe(o,l);return{page:t,withPlaceholder:n,active:a}},v5=(e,t)=>{e.frame||bn();const n=e.frame,r=Go(t,n.scroll.initial),l=ff(r),i={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:l},max:n.scroll.max}},o=Hd({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:o}};const BW=ja(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),WW=ja(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),kb=ja(e=>Object.values(e)),ywe=ja(e=>Object.values(e));var pf=ja((e,t)=>ywe(t).filter(r=>e===r.descriptor.droppableId).sort((r,l)=>r.descriptor.index-l.descriptor.index));function y5(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Sb(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Cb=ja((e,t)=>t.filter(n=>n.descriptor.id!==e.descriptor.id)),bwe=e=>{let{isMovingForward:t,draggable:n,destination:r,insideDestination:l,previousImpact:i}=e;if(!r.isCombineEnabled||!y5(i))return null;function a(m){const g={type:"COMBINE",combine:{draggableId:m,droppableId:r.descriptor.id}};return{...i,at:g}}const s=i.displaced.all,u=s.length?s[0]:null;if(t)return u?a(u):null;const c=Cb(n,l);if(!u){if(!c.length)return null;const m=c[c.length-1];return a(m.descriptor.id)}const d=c.findIndex(m=>m.descriptor.id===u);d===-1&&bn();const f=d-1;if(f<0)return null;const p=c[f];return a(p.descriptor.id)},hf=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const qW={point:za,value:0},ym={invisible:{},visible:{},all:[]},xwe={displaced:ym,displacedBy:qW,at:null};var wwe=xwe,wi=(e,t)=>n=>e<=n&&n<=t,UW=e=>{const t=wi(e.top,e.bottom),n=wi(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;const s=r.tope.bottom,u=r.lefte.right;return s&&u?!0:s&&o||u&&i}},_we=e=>{const t=wi(e.top,e.bottom),n=wi(e.left,e.right);return r=>t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right)};const b5={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},HW={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var Twe=e=>t=>{const n=wi(t.top,t.bottom),r=wi(t.left,t.right);return l=>e===b5?n(l.top)&&n(l.bottom):r(l.left)&&r(l.right)};const kwe=(e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:za;return ig(e,n)},Swe=(e,t,n)=>t.subject.active?n(t.subject.active)(e):!1,Cwe=(e,t,n)=>n(t)(e),x5=e=>{let{target:t,destination:n,viewport:r,withDroppableDisplacement:l,isVisibleThroughFrameFn:i}=e;const o=l?kwe(t,n):t;return Swe(o,n,i)&&Cwe(o,r,i)},Mwe=e=>x5({...e,isVisibleThroughFrameFn:UW}),VW=e=>x5({...e,isVisibleThroughFrameFn:_we}),Pwe=e=>x5({...e,isVisibleThroughFrameFn:Twe(e.destination.axis)}),Owe=(e,t,n)=>{if(typeof n=="boolean")return n;if(!t)return!0;const{invisible:r,visible:l}=t;if(r[e])return!1;const i=l[e];return i?i.shouldAnimate:!0};function Awe(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return zi(m5(n,r))}function bm(e){let{afterDragging:t,destination:n,displacedBy:r,viewport:l,forceShouldAnimate:i,last:o}=e;return t.reduce(function(s,u){const c=Awe(u,r),d=u.descriptor.id;if(s.all.push(d),!Mwe({target:c,destination:n,viewport:l,withDroppableDisplacement:!0}))return s.invisible[u.descriptor.id]=!0,s;const p=Owe(d,o,i),m={draggableId:d,shouldAnimate:p};return s.visible[d]=m,s},{all:[],visible:{},invisible:{}})}function Dwe(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function vE(e){let{insideDestination:t,inHomeList:n,displacedBy:r,destination:l}=e;const i=Dwe(t,{inHomeList:n});return{displaced:ym,displacedBy:r,at:{type:"REORDER",destination:{droppableId:l.descriptor.id,index:i}}}}function my(e){let{draggable:t,insideDestination:n,destination:r,viewport:l,displacedBy:i,last:o,index:a,forceShouldAnimate:s}=e;const u=hf(t,r);if(a==null)return vE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const c=n.find(g=>g.descriptor.index===a);if(!c)return vE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const d=Cb(t,n),f=n.indexOf(c),p=d.slice(f);return{displaced:bm({afterDragging:p,destination:r,displacedBy:i,last:o,viewport:l.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function Xs(e,t){return!!t.effected[e]}var Ewe=e=>{let{isMovingForward:t,destination:n,draggables:r,combine:l,afterCritical:i}=e;if(!n.isCombineEnabled)return null;const o=l.draggableId,s=r[o].descriptor.index;return Xs(o,i)?t?s:s-1:t?s+1:s},Rwe=e=>{let{isMovingForward:t,isInHomeList:n,insideDestination:r,location:l}=e;if(!r.length)return null;const i=l.index,o=t?i+1:i-1,a=r[0].descriptor.index,s=r[r.length-1].descriptor.index,u=n?s:s+1;return ou?null:o},Lwe=e=>{let{isMovingForward:t,isInHomeList:n,draggable:r,draggables:l,destination:i,insideDestination:o,previousImpact:a,viewport:s,afterCritical:u}=e;const c=a.at;if(c||bn(),c.type==="REORDER"){const f=Rwe({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:o});return f==null?null:my({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:f})}const d=Ewe({isMovingForward:t,destination:i,displaced:a.displaced,draggables:l,combine:c.combine,afterCritical:u});return d==null?null:my({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:d})},Iwe=e=>{let{displaced:t,afterCritical:n,combineWith:r,displacedBy:l}=e;const i=!!(t.visible[r]||t.invisible[r]);return Xs(r,n)?i?za:ff(l.point):i?l.point:za},$we=e=>{let{afterCritical:t,impact:n,draggables:r}=e;const l=Sb(n);l||bn();const i=l.draggableId,o=r[i].page.borderBox.center,a=Iwe({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Ja(o,a)};const GW=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,Nwe=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,w5=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,yE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return Ku(t.line,n.marginBox[t.end]+GW(t,r),w5(t,n.marginBox,r))},bE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return Ku(t.line,n.marginBox[t.start]-Nwe(t,r),w5(t,n.marginBox,r))},Fwe=e=>{let{axis:t,moveInto:n,isMoving:r}=e;return Ku(t.line,n.contentBox[t.start]+GW(t,r),w5(t,n.contentBox,r))};var jwe=e=>{let{impact:t,draggable:n,draggables:r,droppable:l,afterCritical:i}=e;const o=pf(l.descriptor.id,r),a=n.page,s=l.axis;if(!o.length)return Fwe({axis:s,moveInto:l.page,isMoving:a});const{displaced:u,displacedBy:c}=t,d=u.all[0];if(d){const p=r[d];if(Xs(d,i))return bE({axis:s,moveRelativeTo:p.page,isMoving:a});const m=dy(p.page,c.point);return bE({axis:s,moveRelativeTo:m,isMoving:a})}const f=o[o.length-1];if(f.descriptor.id===n.descriptor.id)return a.borderBox.center;if(Xs(f.descriptor.id,i)){const p=dy(f.page,ff(i.displacedBy.point));return yE({axis:s,moveRelativeTo:p,isMoving:a})}return yE({axis:s,moveRelativeTo:f.page,isMoving:a})},fk=(e,t)=>{const n=e.frame;return n?Ja(t,n.scroll.diff.displacement):t};const zwe=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,afterCritical:i}=e;const o=n.page.borderBox.center,a=t.at;return!r||!a?o:a.type==="REORDER"?jwe({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:i}):$we({impact:t,draggables:l,afterCritical:i})};var Mb=e=>{const t=zwe(e),n=e.droppable;return n?fk(n,t):t},YW=(e,t)=>{const n=Go(t,e.scroll.initial),r=ff(n);return{frame:zi({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function xE(e,t){return e.map(n=>t[n])}function Bwe(e,t){for(let n=0;n{let{impact:t,viewport:n,destination:r,draggables:l,maxScrollChange:i}=e;const o=YW(n,Ja(n.scroll.current,i)),a=r.frame?v5(r,Ja(r.frame.scroll.current,i)):r,s=t.displaced,u=bm({afterDragging:xE(s.all,l),destination:r,displacedBy:t.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),c=bm({afterDragging:xE(s.all,l),destination:a,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),d={},f={},p=[s,u,c];return s.all.forEach(g=>{const b=Bwe(g,p);if(b){f[g]=b;return}d[g]=!0}),{...t,displaced:{all:s.all,invisible:d,visible:f}}},qwe=(e,t)=>Ja(e.scroll.diff.displacement,t),_5=e=>{let{pageBorderBoxCenter:t,draggable:n,viewport:r}=e;const l=qwe(r,t),i=Go(l,n.page.borderBox.center);return Ja(n.client.borderBox.center,i)},XW=e=>{let{draggable:t,destination:n,newPageBorderBoxCenter:r,viewport:l,withDroppableDisplacement:i,onlyOnMainAxis:o=!1}=e;const a=Go(r,t.page.borderBox.center),u={target:ig(t.page.borderBox,a),destination:n,withDroppableDisplacement:i,viewport:l};return o?Pwe(u):VW(u)},Uwe=e=>{let{isMovingForward:t,draggable:n,destination:r,draggables:l,previousImpact:i,viewport:o,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:u}=e;if(!r.isEnabled)return null;const c=pf(r.descriptor.id,l),d=hf(n,r),f=bwe({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||Lwe({isMovingForward:t,isInHomeList:d,draggable:n,draggables:l,destination:r,insideDestination:c,previousImpact:i,viewport:o,afterCritical:u});if(!f)return null;const p=Mb({impact:f,draggable:n,droppable:r,draggables:l,afterCritical:u});if(XW({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:_5({pageBorderBoxCenter:p,draggable:n,viewport:o}),impact:f,scrollJumpRequest:null};const g=Go(p,a),b=Wwe({impact:f,viewport:o,destination:r,draggables:l,maxScrollChange:g});return{clientSelection:s,impact:b,scrollJumpRequest:g}};const go=e=>{const t=e.subject.active;return t||bn(),t};var Hwe=e=>{let{isMovingForward:t,pageBorderBoxCenter:n,source:r,droppables:l,viewport:i}=e;const o=r.subject.active;if(!o)return null;const a=r.axis,s=wi(o[a.start],o[a.end]),u=kb(l).filter(d=>d!==r).filter(d=>d.isEnabled).filter(d=>!!d.subject.active).filter(d=>UW(i.frame)(go(d))).filter(d=>{const f=go(d);return t?o[a.crossAxisEnd]{const f=go(d),p=wi(f[a.start],f[a.end]);return s(f[a.start])||s(f[a.end])||p(o[a.start])||p(o[a.end])}).sort((d,f)=>{const p=go(d)[a.crossAxisStart],m=go(f)[a.crossAxisStart];return t?p-m:m-p}).filter((d,f,p)=>go(d)[a.crossAxisStart]===go(p[0])[a.crossAxisStart]);if(!u.length)return null;if(u.length===1)return u[0];const c=u.filter(d=>wi(go(d)[a.start],go(d)[a.end])(n[a.line]));return c.length===1?c[0]:c.length>1?c.sort((d,f)=>go(d)[a.start]-go(f)[a.start])[0]:u.sort((d,f)=>{const p=mE(n,gE(go(d))),m=mE(n,gE(go(f)));return p!==m?p-m:go(d)[a.start]-go(f)[a.start]})[0]};const wE=(e,t)=>{const n=e.page.borderBox.center;return Xs(e.descriptor.id,t)?Go(n,t.displacedBy.point):n},Vwe=(e,t)=>{const n=e.page.borderBox;return Xs(e.descriptor.id,t)?ig(n,ff(t.displacedBy.point)):n};var Gwe=e=>{let{pageBorderBoxCenter:t,viewport:n,destination:r,insideDestination:l,afterCritical:i}=e;return l.filter(a=>VW({target:Vwe(a,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})).sort((a,s)=>{const u=vm(t,fk(r,wE(a,i))),c=vm(t,fk(r,wE(s,i)));return u{const r=e.axis;if(e.descriptor.mode==="virtual")return Ku(r.line,t[r.line]);const l=e.subject.page.contentBox[r.size],s=pf(e.descriptor.id,n).reduce((u,c)=>u+c.client.marginBox[r.size],0)+t[r.line]-l;return s<=0?null:Ku(r.line,s)},KW=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),ZW=(e,t,n)=>{const r=e.frame;hf(t,e)&&bn(),e.subject.withPlaceholder&&bn();const l=lg(e.axis,t.displaceBy).point,i=Ywe(e,l,n),o={placeholderSize:l,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const c=Hd({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame});return{...e,subject:c}}const a=i?Ja(r.scroll.max,i):r.scroll.max,s=KW(r,a),u=Hd({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:s});return{...e,subject:u,frame:s}},Xwe=e=>{const t=e.subject.withPlaceholder;t||bn();const n=e.frame;if(!n){const o=Hd({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:o}}const r=t.oldFrameMaxScroll;r||bn();const l=KW(n,r),i=Hd({page:e.subject.page,axis:e.axis,frame:l,withPlaceholder:null});return{...e,subject:i,frame:l}};var Kwe=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:n,insideDestination:r,draggable:l,draggables:i,destination:o,viewport:a,afterCritical:s}=e;if(!n){if(r.length)return null;const f={displaced:ym,displacedBy:qW,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},p=Mb({impact:f,draggable:l,droppable:o,draggables:i,afterCritical:s}),m=hf(l,o)?o:ZW(o,l,i);return XW({draggable:l,destination:m,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?f:null}const u=t[o.axis.line]<=n.page.borderBox.center[o.axis.line],c=(()=>{const f=n.descriptor.index;return n.descriptor.id===l.descriptor.id||u?f:f+1})(),d=lg(o.axis,l.displaceBy);return my({draggable:l,insideDestination:r,destination:o,viewport:a,displacedBy:d,last:ym,index:c})},Zwe=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:n,draggable:r,isOver:l,draggables:i,droppables:o,viewport:a,afterCritical:s}=e;const u=Hwe({isMovingForward:t,pageBorderBoxCenter:n,source:l,droppables:o,viewport:a});if(!u)return null;const c=pf(u.descriptor.id,i),d=Gwe({pageBorderBoxCenter:n,viewport:a,destination:u,insideDestination:c,afterCritical:s}),f=Kwe({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:c,viewport:a,afterCritical:s});if(!f)return null;const p=Mb({impact:f,draggable:r,droppable:u,draggables:i,afterCritical:s});return{clientSelection:_5({pageBorderBoxCenter:p,draggable:r,viewport:a}),impact:f,scrollJumpRequest:null}},Qo=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const Qwe=(e,t)=>{const n=Qo(e);return n?t[n]:null};var Jwe=e=>{let{state:t,type:n}=e;const r=Qwe(t.impact,t.dimensions.droppables),l=!!r,i=t.dimensions.droppables[t.critical.droppable.id],o=r||i,a=o.axis.direction,s=a==="vertical"&&(n==="MOVE_UP"||n==="MOVE_DOWN")||a==="horizontal"&&(n==="MOVE_LEFT"||n==="MOVE_RIGHT");if(s&&!l)return null;const u=n==="MOVE_DOWN"||n==="MOVE_RIGHT",c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,{draggables:f,droppables:p}=t.dimensions;return s?Uwe({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,destination:o,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Zwe({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,isOver:o,draggables:f,droppables:p,viewport:t.viewport,afterCritical:t.afterCritical})};function _u(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function QW(e){const t=wi(e.top,e.bottom),n=wi(e.left,e.right);return function(l){return t(l.y)&&n(l.x)}}function e_e(e,t){return e.leftt.left&&e.topt.top}function t_e(e){let{pageBorderBox:t,draggable:n,candidates:r}=e;const l=n.page.borderBox.center,i=r.map(o=>{const a=o.axis,s=Ku(o.axis.line,t.center[a.line],o.page.borderBox.center[a.crossAxisLine]);return{id:o.descriptor.id,distance:vm(l,s)}}).sort((o,a)=>a.distance-o.distance);return i[0]?i[0].id:null}function n_e(e){let{pageBorderBox:t,draggable:n,droppables:r}=e;const l=kb(r).filter(i=>{if(!i.isEnabled)return!1;const o=i.subject.active;if(!o||!e_e(t,o))return!1;if(QW(o)(t.center))return!0;const a=i.axis,s=o.center[a.crossAxisLine],u=t[a.crossAxisStart],c=t[a.crossAxisEnd],d=wi(o[a.crossAxisStart],o[a.crossAxisEnd]),f=d(u),p=d(c);return!f&&!p?!0:f?us});return l.length?l.length===1?l[0].descriptor.id:t_e({pageBorderBox:t,draggable:n,candidates:l}):null}const JW=(e,t)=>zi(ig(e,t));var r_e=(e,t)=>{const n=e.frame;return n?JW(t,n.scroll.diff.value):t};function eq(e){let{displaced:t,id:n}=e;return!!(t.visible[n]||t.invisible[n])}function a_e(e){let{draggable:t,closest:n,inHomeList:r}=e;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var o_e=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:n,destination:r,insideDestination:l,last:i,viewport:o,afterCritical:a}=e;const s=r.axis,u=lg(r.axis,n.displaceBy),c=u.value,d=t[s.start],f=t[s.end],m=Cb(n,l).find(b=>{const v=b.descriptor.id,h=b.page.borderBox.center[s.line],y=Xs(v,a),w=eq({displaced:i,id:v});return y?w?f<=h:d{let{draggable:t,pageBorderBoxWithDroppableScroll:n,previousImpact:r,destination:l,insideDestination:i,afterCritical:o}=e;if(!l.isCombineEnabled)return null;const a=l.axis,s=lg(l.axis,t.displaceBy),u=s.value,c=n[a.start],d=n[a.end],p=Cb(t,i).find(g=>{const b=g.descriptor.id,v=g.page.borderBox,y=v[a.size]/i_e,w=Xs(b,o),_=eq({displaced:r.displaced,id:b});return w?_?d>v[a.start]+y&&dv[a.start]-u+y&&cv[a.start]+u+y&&dv[a.start]+y&&c{let{pageOffset:t,draggable:n,draggables:r,droppables:l,previousImpact:i,viewport:o,afterCritical:a}=e;const s=JW(n.page.borderBox,t),u=n_e({pageBorderBox:s,draggable:n,droppables:l});if(!u)return wwe;const c=l[u],d=pf(c.descriptor.id,r),f=r_e(c,s);return l_e({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:c,insideDestination:d,afterCritical:a})||o_e({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:c,insideDestination:d,last:i.displaced,viewport:o,afterCritical:a})},T5=(e,t)=>({...e,[t.descriptor.id]:t});const s_e=e=>{let{previousImpact:t,impact:n,droppables:r}=e;const l=Qo(t),i=Qo(n);if(!l||l===i)return r;const o=r[l];if(!o.subject.withPlaceholder)return r;const a=Xwe(o);return T5(r,a)};var u_e=e=>{let{draggable:t,draggables:n,droppables:r,previousImpact:l,impact:i}=e;const o=s_e({previousImpact:l,impact:i,droppables:r}),a=Qo(i);if(!a)return o;const s=r[a];if(hf(t,s)||s.subject.withPlaceholder)return o;const u=ZW(s,t,n);return T5(o,u)},$h=e=>{let{state:t,clientSelection:n,dimensions:r,viewport:l,impact:i,scrollJumpRequest:o}=e;const a=l||t.viewport,s=r||t.dimensions,u=n||t.current.client.selection,c=Go(u,t.initial.client.selection),d={offset:c,selection:u,borderBoxCenter:Ja(t.initial.client.borderBoxCenter,c)},f={selection:Ja(d.selection,a.scroll.current),borderBoxCenter:Ja(d.borderBoxCenter,a.scroll.current),offset:Ja(d.offset,a.scroll.diff.value)},p={client:d,page:f};if(t.phase==="COLLECTING")return{...t,dimensions:s,viewport:a,current:p};const m=s.draggables[t.critical.draggable.id],g=i||tq({pageOffset:f.offset,draggable:m,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:a,afterCritical:t.afterCritical}),b=u_e({draggable:m,impact:g,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return{...t,current:p,dimensions:{draggables:s.draggables,droppables:b},impact:g,viewport:a,scrollJumpRequest:o||null,forceShouldAnimate:o?!1:null}};function c_e(e,t){return e.map(n=>t[n])}var nq=e=>{let{impact:t,viewport:n,draggables:r,destination:l,forceShouldAnimate:i}=e;const o=t.displaced,a=c_e(o.all,r),s=bm({afterDragging:a,destination:l,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:o});return{...t,displaced:s}},rq=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,viewport:i,afterCritical:o}=e;const a=Mb({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:o});return _5({pageBorderBoxCenter:a,draggable:n,viewport:i})},aq=e=>{let{state:t,dimensions:n,viewport:r}=e;t.movementMode!=="SNAP"&&bn();const l=t.impact,i=r||t.viewport,o=n||t.dimensions,{draggables:a,droppables:s}=o,u=a[t.critical.draggable.id],c=Qo(l);c||bn();const d=s[c],f=nq({impact:l,viewport:i,destination:d,draggables:a}),p=rq({impact:f,draggable:u,droppable:d,draggables:a,viewport:i,afterCritical:t.afterCritical});return $h({impact:f,clientSelection:p,state:t,dimensions:o,viewport:i})},d_e=e=>({index:e.index,droppableId:e.droppableId}),oq=e=>{let{draggable:t,home:n,draggables:r,viewport:l}=e;const i=lg(n.axis,t.displaceBy),o=pf(n.descriptor.id,r),a=o.indexOf(t);a===-1&&bn();const s=o.slice(a+1),u=s.reduce((p,m)=>(p[m.descriptor.id]=!0,p),{}),c={inVirtualList:n.descriptor.mode==="virtual",displacedBy:i,effected:u};return{impact:{displaced:bm({afterDragging:s,destination:n,displacedBy:i,last:null,viewport:l.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:d_e(t.descriptor)}},afterCritical:c}},f_e=(e,t)=>({draggables:e.draggables,droppables:T5(e.droppables,t)}),p_e=e=>{let{draggable:t,offset:n,initialWindowScroll:r}=e;const l=dy(t.client,n),i=fy(l,r);return{...t,placeholder:{...t.placeholder,client:l},client:l,page:i}},h_e=e=>{const t=e.frame;return t||bn(),t},m_e=e=>{let{additions:t,updatedDroppables:n,viewport:r}=e;const l=r.scroll.diff.value;return t.map(i=>{const o=i.descriptor.droppableId,a=n[o],u=h_e(a).scroll.diff.value,c=Ja(l,u);return p_e({draggable:i,offset:c,initialWindowScroll:r.scroll.initial})})},g_e=e=>{let{state:t,published:n}=e;const r=n.modified.map(h=>{const y=t.dimensions.droppables[h.droppableId];return v5(y,h.scroll)}),l={...t.dimensions.droppables,...BW(r)},i=WW(m_e({additions:n.additions,updatedDroppables:l,viewport:t.viewport})),o={...t.dimensions.draggables,...i};n.removals.forEach(h=>{delete o[h]});const a={droppables:l,draggables:o},s=Qo(t.impact),u=s?a.droppables[s]:null,c=a.draggables[t.critical.draggable.id],d=a.droppables[t.critical.droppable.id],{impact:f,afterCritical:p}=oq({draggable:c,home:d,draggables:o,viewport:t.viewport}),m=u&&u.isCombineEnabled?t.impact:f,g=tq({pageOffset:t.current.page.offset,draggable:a.draggables[t.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:m,viewport:t.viewport,afterCritical:p}),b={...t,phase:"DRAGGING",impact:g,onLiftImpact:f,dimensions:a,afterCritical:p,forceShouldAnimate:!1};return t.phase==="COLLECTING"?b:{...b,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const pk=e=>e.movementMode==="SNAP",I_=(e,t,n)=>{const r=f_e(e.dimensions,t);return!pk(e)||n?$h({state:e,dimensions:r}):aq({state:e,dimensions:r})};function $_(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const _E={phase:"IDLE",completed:null,shouldFlush:!1};var v_e=function(e,t){if(e===void 0&&(e=_E),t.type==="FLUSH")return{..._E,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&bn();const{critical:n,clientSelection:r,viewport:l,dimensions:i,movementMode:o}=t.payload,a=i.draggables[n.draggable.id],s=i.droppables[n.droppable.id],u={selection:r,borderBoxCenter:a.client.borderBox.center,offset:za},c={client:u,page:{selection:Ja(u.selection,l.scroll.initial),borderBoxCenter:Ja(u.selection,l.scroll.initial),offset:Ja(u.selection,l.scroll.diff.value)}},d=kb(i.droppables).every(g=>!g.isFixedOnPage),{impact:f,afterCritical:p}=oq({draggable:a,home:s,draggables:i.draggables,viewport:l});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:o,dimensions:i,initial:c,current:c,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:l,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&bn(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||bn(),g_e({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;_u(e)||bn();const{client:n}=t.payload;return Us(n,e.current.client.selection)?e:$h({state:e,clientSelection:n,impact:pk(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return $_(e);_u(e)||bn();const{id:n,newScroll:r}=t.payload,l=e.dimensions.droppables[n];if(!l)return e;const i=v5(l,r);return I_(e,i,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;_u(e)||bn();const{id:n,isEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||bn(),l.isEnabled===r&&bn();const i={...l,isEnabled:r};return I_(e,i,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;_u(e)||bn();const{id:n,isCombineEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||bn(),l.isCombineEnabled===r&&bn();const i={...l,isCombineEnabled:r};return I_(e,i,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;_u(e)||bn(),e.isWindowScrollAllowed||bn();const n=t.payload.newScroll;if(Us(e.viewport.scroll.current,n))return $_(e);const r=YW(e.viewport,n);return pk(e)?aq({state:e,viewport:r}):$h({state:e,viewport:r})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!_u(e))return e;const n=t.payload.maxScroll;if(Us(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&bn();const n=Jwe({state:e,type:t.type});return n?$h({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const n=t.payload.reason;return e.phase!=="COLLECTING"&&bn(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if(t.type==="DROP_ANIMATE"){const{completed:n,dropDuration:r,newHomeClientOffset:l}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||bn(),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:l,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:n}=t.payload;return{phase:"IDLE",completed:n,shouldFlush:!1}}return e};const y_e=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),b_e=e=>({type:"LIFT",payload:e}),x_e=e=>({type:"INITIAL_PUBLISH",payload:e}),w_e=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),__e=()=>({type:"COLLECTION_STARTING",payload:null}),T_e=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),k_e=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),S_e=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),iq=e=>({type:"MOVE",payload:e}),C_e=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),M_e=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),P_e=()=>({type:"MOVE_UP",payload:null}),O_e=()=>({type:"MOVE_DOWN",payload:null}),A_e=()=>({type:"MOVE_RIGHT",payload:null}),D_e=()=>({type:"MOVE_LEFT",payload:null}),k5=()=>({type:"FLUSH",payload:null}),E_e=e=>({type:"DROP_ANIMATE",payload:e}),S5=e=>({type:"DROP_COMPLETE",payload:e}),lq=e=>({type:"DROP",payload:e}),R_e=e=>({type:"DROP_PENDING",payload:e}),sq=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var L_e=e=>t=>{let{getState:n,dispatch:r}=t;return l=>i=>{if(i.type!=="LIFT"){l(i);return}const{id:o,clientSelection:a,movementMode:s}=i.payload,u=n();u.phase==="DROP_ANIMATING"&&r(S5({completed:u.completed})),n().phase!=="IDLE"&&bn(),r(k5()),r(y_e({draggableId:o,movementMode:s}));const d={draggableId:o,scrollOptions:{shouldPublishImmediately:s==="SNAP"}},{critical:f,dimensions:p,viewport:m}=e.startPublishing(d);r(x_e({critical:f,dimensions:p,clientSelection:a,movementMode:s,viewport:m}))}},I_e=e=>()=>t=>n=>{n.type==="INITIAL_PUBLISH"&&e.dragging(),n.type==="DROP_ANIMATE"&&e.dropping(n.payload.completed.result.reason),(n.type==="FLUSH"||n.type==="DROP_COMPLETE")&&e.resting(),t(n)};const C5={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},xm={opacity:{drop:0,combining:.7},scale:{drop:.75}},uq={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},hu=`${uq.outOfTheWay}s ${C5.outOfTheWay}`,Nh={fluid:`opacity ${hu}`,snap:`transform ${hu}, opacity ${hu}`,drop:e=>{const t=`${e}s ${C5.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${hu}`,placeholder:`height ${hu}, width ${hu}, margin ${hu}`},TE=e=>Us(e,za)?void 0:`translate(${e.x}px, ${e.y}px)`,hk={moveTo:TE,drop:(e,t)=>{const n=TE(e);if(n)return t?`${n} scale(${xm.scale.drop})`:n}},{minDropTime:mk,maxDropTime:cq}=uq,$_e=cq-mk,kE=1500,N_e=.6;var F_e=e=>{let{current:t,destination:n,reason:r}=e;const l=vm(t,n);if(l<=0)return mk;if(l>=kE)return cq;const i=l/kE,o=mk+$_e*i,a=r==="CANCEL"?o*N_e:o;return Number(a.toFixed(2))},j_e=e=>{let{impact:t,draggable:n,dimensions:r,viewport:l,afterCritical:i}=e;const{draggables:o,droppables:a}=r,s=Qo(t),u=s?a[s]:null,c=a[n.descriptor.droppableId],d=rq({impact:t,draggable:n,draggables:o,afterCritical:i,droppable:u||c,viewport:l});return Go(d,n.client.borderBox.center)},z_e=e=>{let{draggables:t,reason:n,lastImpact:r,home:l,viewport:i,onLiftImpact:o}=e;return!r.at||n!=="DROP"?{impact:nq({draggables:t,impact:o,destination:l,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:r.at.type==="REORDER"?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:ym},didDropInsideDroppable:!0}};const B_e=e=>{let{getState:t,dispatch:n}=e;return r=>l=>{if(l.type!=="DROP"){r(l);return}const i=t(),o=l.payload.reason;if(i.phase==="COLLECTING"){n(R_e({reason:o}));return}if(i.phase==="IDLE")return;i.phase==="DROP_PENDING"&&i.isWaiting&&bn(),i.phase==="DRAGGING"||i.phase==="DROP_PENDING"||bn();const s=i.critical,u=i.dimensions,c=u.draggables[i.critical.draggable.id],{impact:d,didDropInsideDroppable:f}=z_e({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),p=f?y5(d):null,m=f?Sb(d):null,g={index:s.draggable.index,droppableId:s.droppable.id},b={draggableId:c.descriptor.id,type:c.descriptor.type,source:g,reason:o,mode:i.movementMode,destination:p,combine:m},v=j_e({impact:d,draggable:c,dimensions:u,viewport:i.viewport,afterCritical:i.afterCritical}),h={critical:i.critical,afterCritical:i.afterCritical,result:b,impact:d};if(!(!Us(i.current.client.offset,v)||!!b.combine)){n(S5({completed:h}));return}const w=F_e({current:i.current.client.offset,destination:v,reason:o});n(E_e({newHomeClientOffset:v,dropDuration:w,completed:h}))}};var W_e=B_e,dq=()=>({x:window.pageXOffset,y:window.pageYOffset});function q_e(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function U_e(e){let{onWindowScroll:t}=e;function n(){t(dq())}const r=gm(n),l=q_e(r);let i=qs;function o(){return i!==qs}function a(){o()&&bn(),i=vi(window,[l])}function s(){o()||bn(),r.cancel(),i(),i=qs}return{start:a,stop:s,isActive:o}}const H_e=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",V_e=e=>{const t=U_e({onWindowScroll:n=>{e.dispatch(C_e({newScroll:n}))}});return n=>r=>{!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&H_e(r)&&t.stop(),n(r)}};var G_e=V_e,Y_e=e=>{let t=!1,n=!1;const r=setTimeout(()=>{n=!0}),l=i=>{t||n||(t=!0,e(i),clearTimeout(r))};return l.wasCalled=()=>t,l},X_e=()=>{const e=[],t=l=>{const i=e.findIndex(a=>a.timerId===l);i===-1&&bn();const[o]=e.splice(i,1);o.callback()};return{add:l=>{const i=setTimeout(()=>t(i)),o={timerId:i,callback:l};e.push(o)},flush:()=>{if(!e.length)return;const l=[...e];e.length=0,l.forEach(i=>{clearTimeout(i.timerId),i.callback()})}}};const K_e=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,Z_e=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,Q_e=(e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r},wp=(e,t)=>{t()},y0=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function N_(e,t,n,r){if(!e){n(r(t));return}const l=Y_e(n);e(t,{announce:l}),l.wasCalled()||n(r(t))}var J_e=(e,t)=>{const n=X_e();let r=null;const l=(d,f)=>{r&&bn(),wp("onBeforeCapture",()=>{const p=e().onBeforeCapture;p&&p({draggableId:d,mode:f})})},i=(d,f)=>{r&&bn(),wp("onBeforeDragStart",()=>{const p=e().onBeforeDragStart;p&&p(y0(d,f))})},o=(d,f)=>{r&&bn();const p=y0(d,f);r={mode:f,lastCritical:d,lastLocation:p.source,lastCombine:null},n.add(()=>{wp("onDragStart",()=>N_(e().onDragStart,p,t,ov.onDragStart))})},a=(d,f)=>{const p=y5(f),m=Sb(f);r||bn();const g=!Q_e(d,r.lastCritical);g&&(r.lastCritical=d);const b=!K_e(r.lastLocation,p);b&&(r.lastLocation=p);const v=!Z_e(r.lastCombine,m);if(v&&(r.lastCombine=m),!g&&!b&&!v)return;const h={...y0(d,r.mode),combine:m,destination:p};n.add(()=>{wp("onDragUpdate",()=>N_(e().onDragUpdate,h,t,ov.onDragUpdate))})},s=()=>{r||bn(),n.flush()},u=d=>{r||bn(),r=null,wp("onDragEnd",()=>N_(e().onDragEnd,d,t,ov.onDragEnd))};return{beforeCapture:l,beforeStart:i,start:o,update:a,flush:s,drop:u,abort:()=>{if(!r)return;const d={...y0(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};u(d)}}},eTe=(e,t)=>{const n=J_e(e,t);return r=>l=>i=>{if(i.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(i.payload.draggableId,i.payload.movementMode);return}if(i.type==="INITIAL_PUBLISH"){const a=i.payload.critical;n.beforeStart(a,i.payload.movementMode),l(i),n.start(a,i.payload.movementMode);return}if(i.type==="DROP_COMPLETE"){const a=i.payload.completed.result;n.flush(),l(i),n.drop(a);return}if(l(i),i.type==="FLUSH"){n.abort();return}const o=r.getState();o.phase==="DRAGGING"&&n.update(o.critical,o.impact)}};const tTe=e=>t=>n=>{if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}const r=e.getState();r.phase!=="DROP_ANIMATING"&&bn(),e.dispatch(S5({completed:r.completed}))};var nTe=tTe;const rTe=e=>{let t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return l=>i=>{if((i.type==="FLUSH"||i.type==="DROP_COMPLETE"||i.type==="DROP_ANIMATION_FINISHED")&&r(),l(i),i.type!=="DROP_ANIMATE")return;const o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(sq())}};n=requestAnimationFrame(()=>{n=null,t=vi(window,[o])})}};var aTe=rTe,oTe=e=>()=>t=>n=>{(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)},iTe=e=>{let t=!1;return()=>n=>r=>{if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;const l=r.payload.completed.result;l.combine&&e.tryShiftRecord(l.draggableId,l.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const lTe=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var sTe=e=>t=>n=>r=>{if(lTe(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);const l=t.getState();l.phase!=="DRAGGING"&&bn(),e.start(l);return}n(r),e.scroll(t.getState())};const uTe=e=>t=>n=>{if(t(n),n.type!=="PUBLISH_WHILE_DRAGGING")return;const r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(lq({reason:r.reason})))};var cTe=uTe;const dTe=MW;var fTe=e=>{let{dimensionMarshal:t,focusMarshal:n,styleMarshal:r,getResponders:l,announce:i,autoScroller:o}=e;return CW(v_e,dTe(C2e(I_e(r),oTe(t),L_e(t),W_e,nTe,aTe,cTe,sTe(o),G_e,iTe(n),eTe(l,i))))};const F_=()=>({additions:{},removals:{},modified:{}});function pTe(e){let{registry:t,callbacks:n}=e,r=F_(),l=null;const i=()=>{l||(n.collectionStarting(),l=requestAnimationFrame(()=>{l=null;const{additions:u,removals:c,modified:d}=r,f=Object.keys(u).map(g=>t.draggable.getById(g).getDimension(za)).sort((g,b)=>g.descriptor.index-b.descriptor.index),p=Object.keys(d).map(g=>{const v=t.droppable.getById(g).callbacks.getScrollWhileDragging();return{droppableId:g,scroll:v}}),m={additions:f,removals:Object.keys(c),modified:p};r=F_(),n.publish(m)}))};return{add:u=>{const c=u.descriptor.id;r.additions[c]=u,r.modified[u.descriptor.droppableId]=!0,r.removals[c]&&delete r.removals[c],i()},remove:u=>{const c=u.descriptor;r.removals[c.id]=!0,r.modified[c.droppableId]=!0,r.additions[c.id]&&delete r.additions[c.id],i()},stop:()=>{l&&(cancelAnimationFrame(l),l=null,r=F_())}}}var fq=e=>{let{scrollHeight:t,scrollWidth:n,height:r,width:l}=e;const i=Go({x:n,y:t},{x:l,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},pq=()=>{const e=document.documentElement;return e||bn(),e},hq=()=>{const e=pq();return fq({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},hTe=()=>{const e=dq(),t=hq(),n=e.y,r=e.x,l=pq(),i=l.clientWidth,o=l.clientHeight,a=r+i,s=n+o;return{frame:zi({top:n,left:r,right:a,bottom:s}),scroll:{initial:e,current:e,max:t,diff:{value:za,displacement:za}}}},mTe=e=>{let{critical:t,scrollOptions:n,registry:r}=e;const l=hTe(),i=l.scroll.current,o=t.droppable,a=r.droppable.getAllByType(o.type).map(d=>d.callbacks.getDimensionAndWatchScroll(i,n)),s=r.draggable.getAllByType(t.draggable.type).map(d=>d.getDimension(i));return{dimensions:{draggables:WW(s),droppables:BW(a)},critical:t,viewport:l}};function SE(e,t,n){return!(n.descriptor.id===t.id||n.descriptor.type!==t.type||e.droppable.getById(n.descriptor.droppableId).descriptor.mode!=="virtual")}var gTe=(e,t)=>{let n=null;const r=pTe({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),l=(f,p)=>{e.droppable.exists(f)||bn(),n&&t.updateDroppableIsEnabled({id:f,isEnabled:p})},i=(f,p)=>{n&&(e.droppable.exists(f)||bn(),t.updateDroppableIsCombineEnabled({id:f,isCombineEnabled:p}))},o=(f,p)=>{n&&(e.droppable.exists(f)||bn(),t.updateDroppableScroll({id:f,newScroll:p}))},a=(f,p)=>{n&&e.droppable.getById(f).callbacks.scroll(p)},s=()=>{if(!n)return;r.stop();const f=n.critical.droppable;e.droppable.getAllByType(f.type).forEach(p=>p.callbacks.dragStopped()),n.unsubscribe(),n=null},u=f=>{n||bn();const p=n.critical.draggable;f.type==="ADDITION"&&SE(e,p,f.value)&&r.add(f.value),f.type==="REMOVAL"&&SE(e,p,f.value)&&r.remove(f.value)};return{updateDroppableIsEnabled:l,updateDroppableIsCombineEnabled:i,scrollDroppable:a,updateDroppableScroll:o,startPublishing:f=>{n&&bn();const p=e.draggable.getById(f.draggableId),m=e.droppable.getById(p.descriptor.droppableId),g={draggable:p.descriptor,droppable:m.descriptor},b=e.subscribe(u);return n={critical:g,unsubscribe:b},mTe({critical:g,registry:e,scrollOptions:f.scrollOptions})},stopPublishing:s}},mq=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",vTe=e=>{window.scrollBy(e.x,e.y)};const yTe=ja(e=>kb(e).filter(t=>!(!t.isEnabled||!t.frame))),bTe=(e,t)=>yTe(t).find(r=>(r.frame||bn(),QW(r.frame.pageMarginBox)(e)))||null;var xTe=e=>{let{center:t,destination:n,droppables:r}=e;if(n){const i=r[n];return i.frame?i:null}return bTe(t,r)};const wm={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var wTe=function(e,t,n){n===void 0&&(n=()=>wm);const r=n(),l=e[t.size]*r.startFromPercentage,i=e[t.size]*r.maxScrollAtPercentage;return{startScrollingFrom:l,maxScrollValueAt:i}},gq=e=>{let{startOfRange:t,endOfRange:n,current:r}=e;const l=n-t;return l===0?0:(r-t)/l},M5=1,_Te=function(e,t,n){n===void 0&&(n=()=>wm);const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return M5;const i=1-gq({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),o=r.maxPixelScroll*r.ease(i);return Math.ceil(o)},TTe=(e,t,n)=>{const r=n(),l=r.durationDampening.accelerateAt,i=r.durationDampening.stopDampeningAt,o=t,a=i,u=Date.now()-o;if(u>=i)return e;if(u{let{distanceToEdge:t,thresholds:n,dragStartTime:r,shouldUseTimeDampening:l,getAutoScrollerOptions:i}=e;const o=_Te(t,n,i);return o===0?0:l?Math.max(TTe(o,r,i),M5):o},ME=e=>{let{container:t,distanceToEdges:n,dragStartTime:r,axis:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=wTe(t,l,o);return n[l.end]{let{container:t,subject:n,proposedScroll:r}=e;const l=n.height>t.height,i=n.width>t.width;return!i&&!l?r:i&&l?null:{x:i?0:r.x,y:l?0:r.y}};const STe=zW(e=>e===0?0:e);var vq=e=>{let{dragStartTime:t,container:n,subject:r,center:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a={top:l.y-n.top,right:n.right-l.x,bottom:n.bottom-l.y,left:l.x-n.left},s=ME({container:n,distanceToEdges:a,dragStartTime:t,axis:b5,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),u=ME({container:n,distanceToEdges:a,dragStartTime:t,axis:HW,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),c=STe({x:u,y:s});if(Us(c,za))return null;const d=kTe({container:n,subject:r,proposedScroll:c});return d?Us(d,za)?null:d:null};const CTe=zW(e=>e===0?0:e>0?1:-1),P5=(()=>{const e=(t,n)=>t<0?t:t>n?t-n:0;return t=>{let{current:n,max:r,change:l}=t;const i=Ja(n,l),o={x:e(i.x,r.x),y:e(i.y,r.y)};return Us(o,za)?null:o}})(),yq=e=>{let{max:t,current:n,change:r}=e;const l={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=CTe(r),o=P5({max:l,current:n,change:i});return!o||i.x!==0&&o.x===0||i.y!==0&&o.y===0},O5=(e,t)=>yq({current:e.scroll.current,max:e.scroll.max,change:t}),MTe=(e,t)=>{if(!O5(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return P5({current:r,max:n,change:t})},A5=(e,t)=>{const n=e.frame;return n?yq({current:n.scroll.current,max:n.scroll.max,change:t}):!1},PTe=(e,t)=>{const n=e.frame;return!n||!A5(e,t)?null:P5({current:n.scroll.current,max:n.scroll.max,change:t})};var OTe=e=>{let{viewport:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=vq({dragStartTime:l,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return a&&O5(t,a)?a:null},ATe=e=>{let{droppable:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=t.frame;if(!a)return null;const s=vq({dragStartTime:l,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return s&&A5(t,s)?s:null},PE=e=>{let{state:t,dragStartTime:n,shouldUseTimeDampening:r,scrollWindow:l,scrollDroppable:i,getAutoScrollerOptions:o}=e;const a=t.current.page.borderBoxCenter,u=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const f=t.viewport,p=OTe({dragStartTime:n,viewport:f,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});if(p){l(p);return}}const c=xTe({center:a,destination:Qo(t.impact),droppables:t.dimensions.droppables});if(!c)return;const d=ATe({dragStartTime:n,droppable:c,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});d&&i(c.descriptor.id,d)},DTe=e=>{let{scrollWindow:t,scrollDroppable:n,getAutoScrollerOptions:r=()=>wm}=e;const l=gm(t),i=gm(n);let o=null;const a=c=>{o||bn();const{shouldUseTimeDampening:d,dragStartTime:f}=o;PE({state:c,scrollWindow:l,scrollDroppable:i,dragStartTime:f,shouldUseTimeDampening:d,getAutoScrollerOptions:r})};return{start:c=>{o&&bn();const d=Date.now();let f=!1;const p=()=>{f=!0};PE({state:c,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:p,scrollDroppable:p,getAutoScrollerOptions:r}),o={dragStartTime:d,shouldUseTimeDampening:f},f&&a(c)},stop:()=>{o&&(l.cancel(),i.cancel(),o=null)},scroll:a}},ETe=e=>{let{move:t,scrollDroppable:n,scrollWindow:r}=e;const l=(s,u)=>{const c=Ja(s.current.client.selection,u);t({client:c})},i=(s,u)=>{if(!A5(s,u))return u;const c=PTe(s,u);if(!c)return n(s.descriptor.id,u),null;const d=Go(u,c);return n(s.descriptor.id,d),Go(u,d)},o=(s,u,c)=>{if(!s||!O5(u,c))return c;const d=MTe(u,c);if(!d)return r(c),null;const f=Go(c,d);return r(f),Go(c,f)};return s=>{const u=s.scrollJumpRequest;if(!u)return;const c=Qo(s.impact);c||bn();const d=i(s.dimensions.droppables[c],u);if(!d)return;const f=s.viewport,p=o(s.isWindowScrollAllowed,f,d);p&&l(s,p)}},RTe=e=>{let{scrollDroppable:t,scrollWindow:n,move:r,getAutoScrollerOptions:l}=e;const i=DTe({scrollWindow:n,scrollDroppable:t,getAutoScrollerOptions:l}),o=ETe({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:u=>{if(!(l().disabled||u.phase!=="DRAGGING")){if(u.movementMode==="FLUID"){i.scroll(u);return}u.scrollJumpRequest&&o(u)}},start:i.start,stop:i.stop}};const Vd="data-rfd",Gd=(()=>{const e=`${Vd}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),gk=(()=>{const e=`${Vd}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),LTe=(()=>{const e=`${Vd}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),OE={contextId:`${Vd}-scroll-container-context-id`},ITe=e=>t=>`[${t}="${e}"]`,_p=(e,t)=>e.map(n=>{const r=n.styles[t];return r?`${n.selector} { ${r} }`:""}).join(" "),$Te="pointer-events: none;";var NTe=e=>{const t=ITe(e),n=(()=>{const a=` cursor: -webkit-grab; cursor: grab; `;return{selector:t(Gd.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; - `,resting:a,dragging:qTe,dropAnimating:a}}})(),r=(()=>{const a=` + `,resting:a,dragging:$Te,dropAnimating:a}}})(),r=(()=>{const a=` transition: ${Nh.outOfTheWay}; - `;return{selector:t(vk.contextId),styles:{dragging:a,dropAnimating:a,userCancel:a}}})(),l={selector:t(BTe.contextId),styles:{always:"overflow-anchor: none;"}},o=[r,n,l,{selector:"body",styles:{dragging:` + `;return{selector:t(gk.contextId),styles:{dragging:a,dropAnimating:a,userCancel:a}}})(),l={selector:t(LTe.contextId),styles:{always:"overflow-anchor: none;"}},o=[r,n,l,{selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; @@ -535,8 +535,8 @@ ${L.current.stack} -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}}];return{always:_p(o,"always"),resting:_p(o,"resting"),dragging:_p(o,"dragging"),dropAnimating:_p(o,"dropAnimating"),userCancel:_p(o,"userCancel")}};const HTe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ge.useLayoutEffect:ge.useEffect;var Jo=HTe;const j_=()=>{const e=document.querySelector("head");return e||bn(),e},EE=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function VTe(e,t){const n=ir(()=>UTe(e),[e]),r=ge.useRef(null),l=ge.useRef(null),i=Nn(ja(d=>{const f=l.current;f||bn(),f.textContent=d}),[]),o=Nn(d=>{const f=r.current;f||bn(),f.textContent=d},[]);Jo(()=>{!r.current&&!l.current||bn();const d=EE(t),f=EE(t);return r.current=d,l.current=f,d.setAttribute(`${Vd}-always`,e),f.setAttribute(`${Vd}-dynamic`,e),j_().appendChild(d),j_().appendChild(f),o(n.always),i(n.resting),()=>{const p=m=>{const g=m.current;g||bn(),j_().removeChild(g),m.current=null};p(r),p(l)}},[t,o,i,n.always,n.resting,e]);const a=Nn(()=>i(n.dragging),[i,n.dragging]),s=Nn(d=>{if(d==="DROP"){i(n.dropAnimating);return}i(n.userCancel)},[i,n.dropAnimating,n.userCancel]),u=Nn(()=>{l.current&&i(n.resting)},[i,n.resting]);return ir(()=>({dragging:a,dropping:s,resting:u}),[a,s,u])}function _q(e,t){return Array.from(e.querySelectorAll(t))}var Tq=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function Pb(e){return e instanceof Tq(e).HTMLElement}function GTe(e,t){const n=`[${Gd.contextId}="${e}"]`,r=_q(document,n);if(!r.length)return null;const l=r.find(i=>i.getAttribute(Gd.draggableId)===t);return!l||!Pb(l)?null:l}function YTe(e){const t=ge.useRef({}),n=ge.useRef(null),r=ge.useRef(null),l=ge.useRef(!1),i=Nn(function(f,p){const m={id:f,focus:p};return t.current[f]=m,function(){const b=t.current;b[f]!==m&&delete b[f]}},[]),o=Nn(function(f){const p=GTe(e,f);p&&p!==document.activeElement&&p.focus()},[e]),a=Nn(function(f,p){n.current===f&&(n.current=p)},[]),s=Nn(function(){r.current||l.current&&(r.current=requestAnimationFrame(()=>{r.current=null;const f=n.current;f&&o(f)}))},[o]),u=Nn(function(f){n.current=null;const p=document.activeElement;p&&p.getAttribute(Gd.draggableId)===f&&(n.current=f)},[]);return Jo(()=>(l.current=!0,function(){l.current=!1;const f=r.current;f&&cancelAnimationFrame(f)}),[]),ir(()=>({register:i,tryRecordFocus:u,tryRestoreFocusRecorded:s,tryShiftRecord:a}),[i,u,s,a])}function XTe(){const e={draggables:{},droppables:{}},t=[];function n(d){return t.push(d),function(){const p=t.indexOf(d);p!==-1&&t.splice(p,1)}}function r(d){t.length&&t.forEach(f=>f(d))}function l(d){return e.draggables[d]||null}function i(d){const f=l(d);return f||bn(),f}const o={register:d=>{e.draggables[d.descriptor.id]=d,r({type:"ADDITION",value:d})},update:(d,f)=>{const p=e.draggables[f.descriptor.id];p&&p.uniqueId===d.uniqueId&&(delete e.draggables[f.descriptor.id],e.draggables[d.descriptor.id]=d)},unregister:d=>{const f=d.descriptor.id,p=l(f);p&&d.uniqueId===p.uniqueId&&(delete e.draggables[f],e.droppables[d.descriptor.droppableId]&&r({type:"REMOVAL",value:d}))},getById:i,findById:l,exists:d=>!!l(d),getAllByType:d=>Object.values(e.draggables).filter(f=>f.descriptor.type===d)};function a(d){return e.droppables[d]||null}function s(d){const f=a(d);return f||bn(),f}const u={register:d=>{e.droppables[d.descriptor.id]=d},unregister:d=>{const f=a(d.descriptor.id);f&&d.uniqueId===f.uniqueId&&delete e.droppables[d.descriptor.id]},getById:s,findById:a,exists:d=>!!a(d),getAllByType:d=>Object.values(e.droppables).filter(f=>f.descriptor.type===d)};function c(){e.draggables={},e.droppables={},t.length=0}return{draggable:o,droppable:u,subscribe:n,clean:c}}function KTe(){const e=ir(XTe,[]);return ge.useEffect(()=>function(){Je.version.startsWith("16")||Je.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var E5=Je.createContext(null),gy=()=>{const e=document.body;return e||bn(),e};const ZTe={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var QTe=ZTe;const JTe=e=>`rfd-announcement-${e}`;function e3e(e){const t=ir(()=>JTe(e),[e]),n=ge.useRef(null);return ge.useEffect(function(){const i=document.createElement("div");return n.current=i,i.id=t,i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true"),Ie(i.style,QTe),gy().appendChild(i),function(){setTimeout(function(){const s=gy();s.contains(i)&&s.removeChild(i),i===n.current&&(n.current=null)})}},[t]),Nn(l=>{const i=n.current;if(i){i.textContent=l;return}},[])}let kq=0;const Sq={separator:"::"};function t3e(){kq=0}function n3e(e,t){return t===void 0&&(t=Sq),ir(()=>`${e}${t.separator}${kq++}`,[t.separator,e])}function r3e(e,t){t===void 0&&(t=Sq);const n=Je.useId();return ir(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}var R5="useId"in Je?r3e:n3e;function a3e(e){let{contextId:t,uniqueId:n}=e;return`rfd-hidden-text-${t}-${n}`}function o3e(e){let{contextId:t,text:n}=e;const r=R5("hidden-text",{separator:"-"}),l=ir(()=>a3e({contextId:t,uniqueId:r}),[r,t]);return ge.useEffect(function(){const o=document.createElement("div");return o.id=l,o.textContent=n,o.style.display="none",gy().appendChild(o),function(){const s=gy();s.contains(o)&&s.removeChild(o)}},[l,n]),l}var Ob=Je.createContext(null);function Cq(e){const t=ge.useRef(e);return ge.useEffect(()=>{t.current=e}),t}function i3e(){let e=null;function t(){return!!e}function n(o){return o===e}function r(o){e&&bn();const a={abandon:o};return e=a,a}function l(){e||bn(),e=null}function i(){e&&(e.abandon(),l())}return{isClaimed:t,isActive:n,claim:r,release:l,tryAbandon:i}}function _m(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const l3e=9,s3e=13,L5=27,Mq=32,u3e=33,c3e=34,d3e=35,f3e=36,p3e=37,h3e=38,m3e=39,g3e=40,v3e={[s3e]:!0,[l3e]:!0};var Pq=e=>{v3e[e.keyCode]&&e.preventDefault()};const y3e=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(r=>`on${r}`in document)||e})();var Ab=y3e;const Oq=0,RE=5;function b3e(e,t){return Math.abs(t.x-e.x)>=RE||Math.abs(t.y-e.y)>=RE}const LE={type:"IDLE"};function x3e(e){let{cancel:t,completed:n,getPhase:r,setPhase:l}=e;return[{eventName:"mousemove",fn:i=>{const{button:o,clientX:a,clientY:s}=i;if(o!==Oq)return;const u={x:a,y:s},c=r();if(c.type==="DRAGGING"){i.preventDefault(),c.actions.move(u);return}c.type!=="PENDING"&&bn();const d=c.point;if(!b3e(d,u))return;i.preventDefault();const f=c.actions.fluidLift(u);l({type:"DRAGGING",actions:f})}},{eventName:"mouseup",fn:i=>{const o=r();if(o.type!=="DRAGGING"){t();return}i.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:i=>{r().type==="DRAGGING"&&i.preventDefault(),t()}},{eventName:"keydown",fn:i=>{if(r().type==="PENDING"){t();return}if(i.keyCode===L5){i.preventDefault(),t();return}Pq(i)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:i=>{const o=r();if(o.type==="IDLE"&&bn(),o.actions.shouldRespectForcePress()){t();return}i.preventDefault()}},{eventName:Ab,fn:t}]}function Aq(e){const t=ge.useRef(LE),n=ge.useRef(qs),r=ir(()=>({eventName:"mousedown",fn:function(d){if(d.defaultPrevented||d.button!==Oq||d.ctrlKey||d.metaKey||d.shiftKey||d.altKey)return;const f=e.findClosestDraggableId(d);if(!f)return;const p=e.tryGetLock(f,o,{sourceEvent:d});if(!p)return;d.preventDefault();const m={x:d.clientX,y:d.clientY};n.current(),u(p,m)}}),[e]),l=ir(()=>({eventName:"webkitmouseforcewillbegin",fn:c=>{if(c.defaultPrevented)return;const d=e.findClosestDraggableId(c);if(!d)return;const f=e.findOptionsForDraggable(d);f&&(f.shouldRespectForcePress||e.canGetLock(d)&&c.preventDefault())}}),[e]),i=Nn(function(){const d={passive:!1,capture:!0};n.current=vi(window,[l,r],d)},[l,r]),o=Nn(()=>{t.current.type!=="IDLE"&&(t.current=LE,n.current(),i())},[i]),a=Nn(()=>{const c=t.current;o(),c.type==="DRAGGING"&&c.actions.cancel({shouldBlockNextClick:!0}),c.type==="PENDING"&&c.actions.abort()},[o]),s=Nn(function(){const d={capture:!0,passive:!1},f=x3e({cancel:a,completed:o,getPhase:()=>t.current,setPhase:p=>{t.current=p}});n.current=vi(window,f,d)},[a,o]),u=Nn(function(d,f){t.current.type!=="IDLE"&&bn(),t.current={type:"PENDING",point:f,actions:d},s()},[s]);Jo(function(){return i(),function(){n.current()}},[i])}function w3e(){}const _3e={[c3e]:!0,[u3e]:!0,[f3e]:!0,[d3e]:!0};function T3e(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:l=>{if(l.keyCode===L5){l.preventDefault(),n();return}if(l.keyCode===Mq){l.preventDefault(),r();return}if(l.keyCode===g3e){l.preventDefault(),e.moveDown();return}if(l.keyCode===h3e){l.preventDefault(),e.moveUp();return}if(l.keyCode===m3e){l.preventDefault(),e.moveRight();return}if(l.keyCode===p3e){l.preventDefault(),e.moveLeft();return}if(_3e[l.keyCode]){l.preventDefault();return}Pq(l)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Ab,fn:n}]}function Dq(e){const t=ge.useRef(w3e),n=ir(()=>({eventName:"keydown",fn:function(i){if(i.defaultPrevented||i.keyCode!==Mq)return;const o=e.findClosestDraggableId(i);if(!o)return;const a=e.tryGetLock(o,c,{sourceEvent:i});if(!a)return;i.preventDefault();let s=!0;const u=a.snapLift();t.current();function c(){s||bn(),s=!1,t.current(),r()}t.current=vi(window,T3e(u,c),{capture:!0,passive:!1})}}),[e]),r=Nn(function(){const i={passive:!1,capture:!0};t.current=vi(window,[n],i)},[n]);Jo(function(){return r(),function(){t.current()}},[r])}const z_={type:"IDLE"},k3e=120,S3e=.15;function C3e(e){let{cancel:t,getPhase:n}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:r=>{r.preventDefault()}},{eventName:"keydown",fn:r=>{if(n().type!=="DRAGGING"){t();return}r.keyCode===L5&&r.preventDefault(),t()}},{eventName:Ab,fn:t}]}function M3e(e){let{cancel:t,completed:n,getPhase:r}=e;return[{eventName:"touchmove",options:{capture:!1},fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}i.hasMoved=!0;const{clientX:o,clientY:a}=l.touches[0],s={x:o,y:a};l.preventDefault(),i.actions.move(s)}},{eventName:"touchend",fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}l.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:l=>{if(r().type!=="DRAGGING"){t();return}l.preventDefault(),t()}},{eventName:"touchforcechange",fn:l=>{const i=r();i.type==="IDLE"&&bn();const o=l.touches[0];if(!o||!(o.force>=S3e))return;const s=i.actions.shouldRespectForcePress();if(i.type==="PENDING"){s&&t();return}if(s){if(i.hasMoved){l.preventDefault();return}t();return}l.preventDefault()}},{eventName:Ab,fn:t}]}function Eq(e){const t=ge.useRef(z_),n=ge.useRef(qs),r=Nn(function(){return t.current},[]),l=Nn(function(p){t.current=p},[]),i=ir(()=>({eventName:"touchstart",fn:function(p){if(p.defaultPrevented)return;const m=e.findClosestDraggableId(p);if(!m)return;const g=e.tryGetLock(m,a,{sourceEvent:p});if(!g)return;const b=p.touches[0],{clientX:v,clientY:h}=b,y={x:v,y:h};n.current(),d(g,y)}}),[e]),o=Nn(function(){const p={capture:!0,passive:!1};n.current=vi(window,[i],p)},[i]),a=Nn(()=>{const f=t.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),l(z_),n.current(),o())},[o,l]),s=Nn(()=>{const f=t.current;a(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[a]),u=Nn(function(){const p={capture:!0,passive:!1},m={cancel:s,completed:a,getPhase:r},g=vi(window,M3e(m),p),b=vi(window,C3e(m),p);n.current=function(){g(),b()}},[s,r,a]),c=Nn(function(){const p=r();p.type!=="PENDING"&&bn();const m=p.actions.fluidLift(p.point);l({type:"DRAGGING",actions:m,hasMoved:!1})},[r,l]),d=Nn(function(p,m){r().type!=="IDLE"&&bn();const g=setTimeout(c,k3e);l({type:"PENDING",point:m,actions:p,longPressTimerId:g}),u()},[u,r,l,c]);Jo(function(){return o(),function(){n.current();const m=r();m.type==="PENDING"&&(clearTimeout(m.longPressTimerId),l(z_))}},[r,o,l]),Jo(function(){return vi(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const P3e=["input","button","textarea","select","option","optgroup","video","audio"];function Rq(e,t){if(t==null)return!1;if(P3e.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:Rq(e,t.parentElement)}function O3e(e,t){const n=t.target;return Pb(n)?Rq(e,n):!1}var A3e=e=>zi(e.getBoundingClientRect()).center;function D3e(e){return e instanceof Tq(e).Element}const E3e=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(r=>r in Element.prototype)||e})();function Lq(e,t){return e==null?null:e[E3e](t)?e:Lq(e.parentElement,t)}function R3e(e,t){return e.closest?e.closest(t):Lq(e,t)}function L3e(e){return`[${Gd.contextId}="${e}"]`}function I3e(e,t){const n=t.target;if(!D3e(n))return null;const r=L3e(e),l=R3e(n,r);return!l||!Pb(l)?null:l}function $3e(e,t){const n=I3e(e,t);return n?n.getAttribute(Gd.draggableId):null}function N3e(e,t){const n=`[${vk.contextId}="${e}"]`,l=_q(document,n).find(i=>i.getAttribute(vk.id)===t);return!l||!Pb(l)?null:l}function F3e(e){e.preventDefault()}function w0(e){let{expected:t,phase:n,isLockActive:r,shouldWarn:l}=e;return!(!r()||t!==n)}function Iq(e){let{lockAPI:t,store:n,registry:r,draggableId:l}=e;if(t.isClaimed())return!1;const i=r.draggable.findById(l);return!(!i||!i.options.isEnabled||!yq(n.getState(),l))}function j3e(e){let{lockAPI:t,contextId:n,store:r,registry:l,draggableId:i,forceSensorStop:o,sourceEvent:a}=e;if(!Iq({lockAPI:t,store:r,registry:l,draggableId:i}))return null;const u=l.draggable.getById(i),c=N3e(n,u.descriptor.id);if(!c||a&&!u.options.canDragInteractiveElements&&O3e(c,a))return null;const d=t.claim(o||qs);let f="PRE_DRAG";function p(){return u.options.shouldRespectForcePress}function m(){return t.isActive(d)}function g(x,T){w0({expected:x,phase:f,isLockActive:m,shouldWarn:!0})&&r.dispatch(T())}const b=g.bind(null,"DRAGGING");function v(x){function T(){t.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(T(),bn()),r.dispatch(C_e(x.liftActionArgs)),f="DRAGGING";function k(S,C){if(C===void 0&&(C={shouldBlockNextClick:!1}),x.cleanup(),C.shouldBlockNextClick){const M=vi(window,[{eventName:"click",fn:F3e,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(M)}T(),r.dispatch(cq({reason:S}))}return{isActive:()=>w0({expected:"DRAGGING",phase:f,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:p,drop:S=>k("DROP",S),cancel:S=>k("CANCEL",S),...x.actions}}function h(x){const T=gm(S=>{b(()=>uq({client:S}))});return{...v({liftActionArgs:{id:i,clientSelection:x,movementMode:"FLUID"},cleanup:()=>T.cancel(),actions:{move:T}}),move:T}}function y(){const x={moveUp:()=>b(I_e),moveRight:()=>b(N_e),moveDown:()=>b($_e),moveLeft:()=>b(F_e)};return v({liftActionArgs:{id:i,clientSelection:A3e(c),movementMode:"SNAP"},cleanup:qs,actions:x})}function w(){w0({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!0})&&t.release()}return{isActive:()=>w0({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:p,fluidLift:h,snapLift:y,abort:w}}const z3e=[Aq,Dq,Eq];function B3e(e){let{contextId:t,store:n,registry:r,customSensors:l,enableDefaultSensors:i}=e;const o=[...i?z3e:[],...l||[]],a=ge.useState(()=>i3e())[0],s=Nn(function(v,h){_m(v)&&!_m(h)&&a.tryAbandon()},[a]);Jo(function(){let v=n.getState();return n.subscribe(()=>{const y=n.getState();s(v,y),v=y})},[a,n,s]),Jo(()=>a.tryAbandon,[a.tryAbandon]);const u=Nn(b=>Iq({lockAPI:a,registry:r,store:n,draggableId:b}),[a,r,n]),c=Nn((b,v,h)=>j3e({lockAPI:a,registry:r,contextId:t,store:n,draggableId:b,forceSensorStop:v||null,sourceEvent:h&&h.sourceEvent?h.sourceEvent:null}),[t,a,r,n]),d=Nn(b=>$3e(t,b),[t]),f=Nn(b=>{const v=r.draggable.findById(b);return v?v.options:null},[r.draggable]),p=Nn(function(){a.isClaimed()&&(a.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(S5()))},[a,n]),m=Nn(()=>a.isClaimed(),[a]),g=ir(()=>({canGetLock:u,tryGetLock:c,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:m}),[u,c,d,f,p,m]);for(let b=0;b({onBeforeCapture:t=>{const n=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};Je.version.startsWith("16")||Je.version.startsWith("17")?n():cc.flushSync(n)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),q3e=e=>({...wm,...e.autoScrollerOptions,durationDampening:{...wm.durationDampening,...e.autoScrollerOptions}});function Tp(e){return e.current||bn(),e.current}function U3e(e){const{contextId:t,setCallbacks:n,sensors:r,nonce:l,dragHandleUsageInstructions:i}=e,o=ge.useRef(null),a=Cq(e),s=Nn(()=>W3e(a.current),[a]),u=Nn(()=>q3e(a.current),[a]),c=e3e(t),d=o3e({contextId:t,text:i}),f=VTe(t,l),p=Nn(C=>{Tp(o).dispatch(C)},[]),m=ir(()=>sE({publishWhileDragging:P_e,updateDroppableScroll:A_e,updateDroppableIsEnabled:D_e,updateDroppableIsCombineEnabled:E_e,collectionStarting:O_e},p),[p]),g=KTe(),b=ir(()=>TTe(g,m),[g,m]),v=ir(()=>zTe({scrollWindow:kTe,scrollDroppable:b.scrollDroppable,getAutoScrollerOptions:u,...sE({move:uq},p)}),[b.scrollDroppable,p,u]),h=YTe(t),y=ir(()=>bTe({announce:c,autoScroller:v,dimensionMarshal:b,focusMarshal:h,getResponders:s,styleMarshal:f}),[c,v,b,h,s,f]);o.current=y;const w=Nn(()=>{const C=Tp(o);C.getState().phase!=="IDLE"&&C.dispatch(S5())},[]),_=Nn(()=>{const C=Tp(o).getState();return C.phase==="DROP_ANIMATING"?!0:C.phase==="IDLE"?!1:C.isDragging},[]),x=ir(()=>({isDragging:_,tryAbort:w}),[_,w]);n(x);const T=Nn(C=>yq(Tp(o).getState(),C),[]),k=Nn(()=>_u(Tp(o).getState()),[]),S=ir(()=>({marshal:b,focus:h,contextId:t,canLift:T,isMovementAllowed:k,dragHandleUsageInstructionsId:d,registry:g}),[t,b,d,h,T,k,g]);return B3e({contextId:t,store:y,registry:g,customSensors:r||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),ge.useEffect(()=>w,[w]),Je.createElement(Ob.Provider,{value:S},Je.createElement(rwe,{context:E5,store:y},e.children))}let $q=0;function H3e(){$q=0}function V3e(){return ir(()=>`${$q++}`,[])}function G3e(){return Je.useId()}var Y3e="useId"in Je?G3e:V3e;function X3e(){"useId"in Je||(H3e(),t3e())}function K3e(e){const t=Y3e(),n=e.dragHandleUsageInstructions||ov.dragHandleUsageInstructions;return Je.createElement(hwe,null,r=>Je.createElement(U3e,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const IE={dragging:5e3,dropAnimating:4500},Z3e=(e,t)=>t?Nh.drop(t.duration):e?Nh.snap:Nh.fluid,Q3e=(e,t)=>{if(e)return t?xm.opacity.drop:xm.opacity.combining},J3e=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function eke(e){const n=e.dimension.client,{offset:r,combineWith:l,dropping:i}=e,o=!!l,a=J3e(e),s=!!i,u=s?mk.drop(r,o):mk.moveTo(r);return{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:Z3e(a,i),transform:u,opacity:Q3e(o,s),zIndex:s?IE.dropAnimating:IE.dragging,pointerEvents:"none"}}function tke(e){return{transform:mk.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function nke(e){return e.type==="DRAGGING"?eke(e):tke(e)}function rke(e,t,n){n===void 0&&(n=za);const r=window.getComputedStyle(t),l=t.getBoundingClientRect(),i=FW(l,r),o=fy(i,n),a={client:i,tagName:t.tagName.toLowerCase(),display:r.display},s={x:i.marginBox.width,y:i.marginBox.height};return{descriptor:e,placeholder:a,displaceBy:s,client:i,page:o}}function ake(e){const t=R5("draggable"),{descriptor:n,registry:r,getDraggableRef:l,canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}=e,s=ir(()=>({canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}),[i,a,o]),u=Nn(p=>{const m=l();return m||bn(),rke(n,m,p)},[n,l]),c=ir(()=>({uniqueId:t,descriptor:n,options:s,getDimension:u}),[n,u,s,t]),d=ge.useRef(c),f=ge.useRef(!0);Jo(()=>(r.draggable.register(d.current),()=>r.draggable.unregister(d.current)),[r.draggable]),Jo(()=>{if(f.current){f.current=!1;return}const p=d.current;d.current=c,r.draggable.update(c,p)},[c,r.draggable])}var I5=Je.createContext(null);function vy(e){const t=ge.useContext(e);return t||bn(),t}function oke(e){e.preventDefault()}const ike=e=>{const t=ge.useRef(null),n=Nn(function(x){x===void 0&&(x=null),t.current=x},[]),r=Nn(()=>t.current,[]),{contextId:l,dragHandleUsageInstructionsId:i,registry:o}=vy(Ob),{type:a,droppableId:s}=vy(I5),u=ir(()=>({id:e.draggableId,index:e.index,type:a,droppableId:s}),[e.draggableId,e.index,a,s]),{children:c,draggableId:d,isEnabled:f,shouldRespectForcePress:p,canDragInteractiveElements:m,isClone:g,mapped:b,dropAnimationFinished:v}=e;if(!g){const x=ir(()=>({descriptor:u,registry:o,getDraggableRef:r,canDragInteractiveElements:m,shouldRespectForcePress:p,isEnabled:f}),[u,o,r,m,p,f]);ake(x)}const h=ir(()=>f?{tabIndex:0,role:"button","aria-describedby":i,"data-rfd-drag-handle-draggable-id":d,"data-rfd-drag-handle-context-id":l,draggable:!1,onDragStart:oke}:null,[l,i,d,f]),y=Nn(x=>{b.type==="DRAGGING"&&b.dropping&&x.propertyName==="transform"&&(Je.version.startsWith("16")||Je.version.startsWith("17")?v():cc.flushSync(v))},[v,b]),w=ir(()=>{const x=nke(b),T=b.type==="DRAGGING"&&b.dropping?y:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":l,"data-rfd-draggable-id":d,style:x,onTransitionEnd:T},dragHandleProps:h}},[l,h,d,b,y,n]),_=ir(()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}),[u.droppableId,u.id,u.index,u.type]);return Je.createElement(Je.Fragment,null,c(w,b.snapshot,_))};var lke=ike,Nq=(e,t)=>e===t,Fq=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};const ske=e=>e.combine?e.combine.draggableId:null,uke=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function cke(){const e=ja((l,i)=>({x:l,y:i})),t=ja(function(l,i,o,a,s){return o===void 0&&(o=null),a===void 0&&(a=null),s===void 0&&(s=null),{isDragging:!0,isClone:i,isDropAnimating:!!s,dropAnimation:s,mode:l,draggingOver:o,combineWith:a,combineTargetFor:null}}),n=ja(function(l,i,o,a,s,u,c){return s===void 0&&(s=null),u===void 0&&(u=null),c===void 0&&(c=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:u,mode:i,offset:l,dimension:o,forceShouldAnimate:c,snapshot:t(i,a,s,u,null)}}});return(l,i)=>{if(_m(l)){if(l.critical.draggable.id!==i.draggableId)return null;const o=l.current.client.offset,a=l.dimensions.draggables[i.draggableId],s=Qo(l.impact),u=uke(l.impact),c=l.forceShouldAnimate;return n(e(o.x,o.y),l.movementMode,a,i.isClone,s,u,c)}if(l.phase==="DROP_ANIMATING"){const o=l.completed;if(o.result.draggableId!==i.draggableId)return null;const a=i.isClone,s=l.dimensions.draggables[i.draggableId],u=o.result,c=u.mode,d=Fq(u),f=ske(u),m={duration:l.dropDuration,curve:M5.drop,moveTo:l.newHomeClientOffset,opacity:f?xm.opacity.drop:null,scale:f?xm.scale.drop:null};return{mapped:{type:"DRAGGING",offset:l.newHomeClientOffset,dimension:s,dropping:m,draggingOver:d,combineWith:f,mode:c,forceShouldAnimate:null,snapshot:t(c,a,d,f,m)}}}return null}}function jq(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const dke={mapped:{type:"SECONDARY",offset:za,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:jq(null)}};function fke(){const e=ja((o,a)=>({x:o,y:a})),t=ja(jq),n=ja(function(o,a,s){return a===void 0&&(a=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:a,shouldAnimateDisplacement:s,snapshot:t(a)}}}),r=o=>o?n(za,o,!0):null,l=(o,a,s,u)=>{const c=s.displaced.visible[o],d=!!(u.inVirtualList&&u.effected[o]),f=Sb(s),p=f&&f.draggableId===o?a:null;if(!c){if(!d)return r(p);if(s.displaced.invisible[o])return null;const b=ff(u.displacedBy.point),v=e(b.x,b.y);return n(v,p,!0)}if(d)return r(p);const m=s.displacedBy.point,g=e(m.x,m.y);return n(g,p,c.shouldAnimate)};return(o,a)=>{if(_m(o))return o.critical.draggable.id===a.draggableId?null:l(a.draggableId,o.critical.draggable.id,o.impact,o.afterCritical);if(o.phase==="DROP_ANIMATING"){const s=o.completed;return s.result.draggableId===a.draggableId?null:l(a.draggableId,s.result.draggableId,s.impact,s.afterCritical)}return null}}const pke=()=>{const e=cke(),t=fke();return(r,l)=>e(r,l)||t(r,l)||dke},hke={dropAnimationFinished:dq},mke=$W(pke,hke,null,{context:E5,areStatePropsEqual:Nq})(lke);var gke=mke;function zq(e){return vy(I5).isUsingCloneFor===e.draggableId&&!e.isClone?null:Je.createElement(gke,e)}function vke(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,r=!!e.shouldRespectForcePress;return Je.createElement(zq,Ie({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}const Bq=e=>t=>e===t,yke=Bq("scroll"),bke=Bq("auto"),$E=(e,t)=>t(e.overflowX)||t(e.overflowY),xke=e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return $E(n,yke)||$E(n,bke)},wke=()=>!1,Wq=e=>e==null?null:e===document.body?wke()?e:null:e===document.documentElement?null:xke(e)?e:Wq(e.parentElement);var _ke=Wq,yk=e=>({x:e.scrollLeft,y:e.scrollTop});const qq=e=>e?window.getComputedStyle(e).position==="fixed"?!0:qq(e.parentElement):!1;var Tke=e=>{const t=_ke(e),n=qq(e);return{closestScrollable:t,isFixedOnPage:n}},kke=e=>{let{descriptor:t,isEnabled:n,isCombineEnabled:r,isFixedOnPage:l,direction:i,client:o,page:a,closest:s}=e;const u=(()=>{if(!s)return null;const{scrollSize:p,client:m}=s,g=mq({scrollHeight:p.scrollHeight,scrollWidth:p.scrollWidth,height:m.paddingBox.height,width:m.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:m,scrollSize:p,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:g,diff:{value:za,displacement:za}}}})(),c=i==="vertical"?x5:YW,d=Hd({page:a,withPlaceholder:null,axis:c,frame:u});return{descriptor:t,isCombineEnabled:r,isFixedOnPage:l,axis:c,isEnabled:n,client:o,page:a,frame:u,subject:d}};const Ske=(e,t)=>{const n=jW(e);if(!t||e!==t)return n;const r=n.paddingBox.top-t.scrollTop,l=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,o=l+t.scrollWidth,s=g5({top:r,right:o,bottom:i,left:l},n.border);return v5({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})};var Cke=e=>{let{ref:t,descriptor:n,env:r,windowScroll:l,direction:i,isDropDisabled:o,isCombineEnabled:a,shouldClipSubject:s}=e;const u=r.closestScrollable,c=Ske(t,u),d=fy(c,l),f=(()=>{if(!u)return null;const m=jW(u),g={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:m,page:fy(m,l),scroll:yk(u),scrollSize:g,shouldClipSubject:s}})();return kke({descriptor:n,isEnabled:!o,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:d,closest:f})};const Mke={passive:!1},Pke={passive:!0};var NE=e=>e.shouldPublishImmediately?Mke:Pke;const _0=e=>e&&e.env.closestScrollable||null;function Oke(e){const t=ge.useRef(null),n=vy(Ob),r=R5("droppable"),{registry:l,marshal:i}=n,o=Cq(e),a=ir(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),s=ge.useRef(a),u=ir(()=>ja((w,_)=>{t.current||bn();const x={x:w,y:_};i.updateDroppableScroll(a.id,x)}),[a.id,i]),c=Nn(()=>{const w=t.current;return!w||!w.env.closestScrollable?za:yk(w.env.closestScrollable)},[]),d=Nn(()=>{const w=c();u(w.x,w.y)},[c,u]),f=ir(()=>gm(d),[d]),p=Nn(()=>{const w=t.current,_=_0(w);if(w&&_||bn(),w.scrollOptions.shouldPublishImmediately){d();return}f()},[f,d]),m=Nn((w,_)=>{t.current&&bn();const x=o.current,T=x.getDroppableRef();T||bn();const k=Tke(T),S={ref:T,descriptor:a,env:k,scrollOptions:_};t.current=S;const C=Cke({ref:T,descriptor:a,env:k,windowScroll:w,direction:x.direction,isDropDisabled:x.isDropDisabled,isCombineEnabled:x.isCombineEnabled,shouldClipSubject:!x.ignoreContainerClipping}),M=k.closestScrollable;return M&&(M.setAttribute(DE.contextId,n.contextId),M.addEventListener("scroll",p,NE(S.scrollOptions))),C},[n.contextId,a,p,o]),g=Nn(()=>{const w=t.current,_=_0(w);return w&&_||bn(),yk(_)},[]),b=Nn(()=>{const w=t.current;w||bn();const _=_0(w);t.current=null,_&&(f.cancel(),_.removeAttribute(DE.contextId),_.removeEventListener("scroll",p,NE(w.scrollOptions)))},[p,f]),v=Nn(w=>{const _=t.current;_||bn();const x=_0(_);x||bn(),x.scrollTop+=w.y,x.scrollLeft+=w.x},[]),h=ir(()=>({getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:b,scroll:v}),[b,m,g,v]),y=ir(()=>({uniqueId:r,descriptor:a,callbacks:h}),[h,a,r]);Jo(()=>(s.current=y.descriptor,l.droppable.register(y),()=>{t.current&&b(),l.droppable.unregister(y)}),[h,a,b,y,i,l.droppable]),Jo(()=>{t.current&&i.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,i]),Jo(()=>{t.current&&i.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,i])}function B_(){}const FE={width:0,height:0,margin:wwe},Ake=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;return t||r==="close"?FE:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},Dke=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;const l=Ake({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:l.width,height:l.height,marginTop:l.margin.top,marginRight:l.margin.right,marginBottom:l.margin.bottom,marginLeft:l.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:r!=="none"?Nh.placeholder:null}},Eke=e=>{const t=ge.useRef(null),n=Nn(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:r,onTransitionEnd:l,onClose:i,contextId:o}=e,[a,s]=ge.useState(e.animate==="open");ge.useEffect(()=>a?r!=="open"?(n(),s(!1),B_):t.current?B_:(t.current=setTimeout(()=>{t.current=null,s(!1)}),n):B_,[r,a,n]);const u=Nn(d=>{d.propertyName==="height"&&(l(),r==="close"&&i())},[r,i,l]),c=Dke({isAnimatingOpenOnMount:a,animate:e.animate,placeholder:e.placeholder});return Je.createElement(e.placeholder.tagName,{style:c,"data-rfd-placeholder-context-id":o,onTransitionEnd:u,ref:e.innerRef})};var Rke=Je.memo(Eke);class Lke extends Je.PureComponent{constructor(){super(...arguments),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,n){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:n.isVisible?{isVisible:!0,data:n.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const Ike=e=>{const t=ge.useContext(Ob);t||bn();const{contextId:n,isMovementAllowed:r}=t,l=ge.useRef(null),i=ge.useRef(null),{children:o,droppableId:a,type:s,mode:u,direction:c,ignoreContainerClipping:d,isDropDisabled:f,isCombineEnabled:p,snapshot:m,useClone:g,updateViewportMaxScroll:b,getContainerForClone:v}=e,h=Nn(()=>l.current,[]),y=Nn(function(M){M===void 0&&(M=null),l.current=M},[]);Nn(()=>i.current,[]);const w=Nn(function(M){M===void 0&&(M=null),i.current=M},[]),_=Nn(()=>{r()&&b({maxScroll:vq()})},[r,b]);Oke({droppableId:a,type:s,mode:u,direction:c,isDropDisabled:f,isCombineEnabled:p,ignoreContainerClipping:d,getDroppableRef:h});const x=ir(()=>Je.createElement(Lke,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},M=>{let{onClose:O,data:D,animate:P}=M;return Je.createElement(Rke,{placeholder:D,onClose:O,innerRef:w,animate:P,contextId:n,onTransitionEnd:_})}),[n,_,e.placeholder,e.shouldAnimatePlaceholder,w]),T=ir(()=>({innerRef:y,placeholder:x,droppableProps:{"data-rfd-droppable-id":a,"data-rfd-droppable-context-id":n}}),[n,a,x,y]),k=g?g.dragging.draggableId:null,S=ir(()=>({droppableId:a,type:s,isUsingCloneFor:k}),[a,k,s]);function C(){if(!g)return null;const{dragging:M,render:O}=g,D=Je.createElement(zq,{draggableId:M.draggableId,index:M.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(P,E)=>O(P,E,M));return sh.createPortal(D,v())}return Je.createElement(I5.Provider,{value:S},o(T,m),C())};var $ke=Ike;function Nke(){return document.body||bn(),document.body}const jE={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Nke},Uq=e=>{let t={...e},n;for(n in jE)e[n]===void 0&&(t={...t,[n]:jE[n]});return t},W_=(e,t)=>e===t.droppable.type,zE=(e,t)=>t.draggables[e.draggable.id],Fke=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=ja(i=>({draggableId:i.id,type:i.type,source:{index:i.index,droppableId:i.droppableId}})),r=ja((i,o,a,s,u,c)=>{const d=u.descriptor.id;if(u.descriptor.droppableId===i){const m=c?{render:c,dragging:n(u.descriptor)}:null,g={isDraggingOver:a,draggingOverWith:a?d:null,draggingFromThisWith:d,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!1,snapshot:g,useClone:m}}if(!o)return t;if(!s)return e;const p={isDraggingOver:a,draggingOverWith:d,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}});return(i,o)=>{const a=Uq(o),s=a.droppableId,u=a.type,c=!a.isDropDisabled,d=a.renderClone;if(_m(i)){const f=i.critical;if(!W_(u,f))return t;const p=zE(f,i.dimensions),m=Qo(i.impact)===s;return r(s,c,m,m,p,d)}if(i.phase==="DROP_ANIMATING"){const f=i.completed;if(!W_(u,f.critical))return t;const p=zE(f.critical,i.dimensions);return r(s,c,Fq(f.result)===s,Qo(f.impact)===s,p,d)}if(i.phase==="IDLE"&&i.completed&&!i.shouldFlush){const f=i.completed;if(!W_(u,f.critical))return t;const p=Qo(f.impact)===s,m=!!(f.impact.at&&f.impact.at.type==="COMBINE"),g=f.critical.droppable.id===s;return p?m?e:t:g?e:t}return t}},jke={updateViewportMaxScroll:L_e},zke=$W(Fke,jke,(e,t,n)=>({...Uq(n),...e,...t}),{context:E5,areStatePropsEqual:Nq})($ke);var Bke=zke;const Wke=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:K3e,Draggable:vke,Droppable:Bke,resetServerContext:X3e,useKeyboardSensor:Dq,useMouseSensor:Aq,useTouchSensor:Eq},Symbol.toStringTag,{value:"Module"})),$5=Qn(Wke);var BE;function qke(){return BE||(BE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=t(fc),i=t($a()),o=t(PW),a=t(D2e),s=t(Tb),u=t(Vr),c=g(ge),d=$5,f=Yi(),p=eg();function m(w){if(typeof WeakMap!="function")return null;var _=new WeakMap,x=new WeakMap;return(m=function(k){return k?x:_})(w)}function g(w,_){if(w&&w.__esModule)return w;if(w===null||n(w)!=="object"&&typeof w!="function")return{default:w};var x=m(_);if(x&&x.has(w))return x.get(w);var T={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in w)if(S!=="default"&&Object.prototype.hasOwnProperty.call(w,S)){var C=k?Object.getOwnPropertyDescriptor(w,S):null;C&&(C.get||C.set)?Object.defineProperty(T,S,C):T[S]=w[S]}return T.default=w,x&&x.set(w,T),T}function b(w,_){var x=Object.keys(w);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(w);_&&(T=T.filter(function(k){return Object.getOwnPropertyDescriptor(w,k).enumerable})),x.push.apply(x,T)}return x}function v(w){for(var _=1;_0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.groupedBy),w.groupColumns.map(function(O,D){return c.default.createElement(d.Draggable,{key:O.tableData.id.toString(),draggableId:O.tableData.id.toString(),index:D},function(P,E){var I;return c.default.createElement(l.default,(0,r.default)({ref:P.innerRef},P.draggableProps,P.dragHandleProps,{sx:k(E.isDragging,P.draggableProps.style)}),c.default.createElement(a.default,(0,r.default)({},P.dragHandleProps,T.groupChipProps,{onClick:function(){return w.onSortChanged(O)},label:c.default.createElement(l.default,{sx:{display:"flex",alignItems:"center"}},c.default.createElement(l.default,{sx:{float:"left"}},O.title),O.tableData.groupSort&&c.default.createElement(x.SortArrow,{sx:{transition:"300ms ease all",transform:O.tableData.groupSort==="asc"?"rotate(-180deg)":"none",fontSize:18}})),sx:v({boxShadow:"none",textTransform:"none"},(I=T.groupChipProps)!==null&&I!==void 0?I:{}),onDelete:function(){return w.onGroupRemoved(O,D)}})))})}),w.groupColumns.length===0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.placeholder),C.placeholder)}))}h.defaultProps={},h.propTypes={forwardedRef:u.default.element,className:u.default.string,onSortChanged:u.default.func,onGroupRemoved:u.default.func,onGroupChange:u.default.func,persistentGroupingsId:u.default.string};var y=c.default.forwardRef(function(_,x){return c.default.createElement(h,(0,r.default)({},_,{forwardedRef:x}))});e.default=y}(D_)),D_}var q_={},WE;function Uke(){return WE||(WE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t($a()),l=t(iu()),i=t(cf()),o=t(Cl),a=t(ls),s=t(df),u=t(pc),c=t(Vr),d=t(ge),f=Yi();function p(v,h){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);h&&(w=w.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,w)}return y}function m(v){for(var h=1;h0&&_++;var x=v.groups[v.level],T;v.groupData.isExpanded&&(v.groups.length>v.level+1?T=v.groupData.groups.map(function(B,N){return d.default.createElement(v.components.GroupRow,{actions:v.actions,key:B.value||""+N,columns:v.columns,components:v.components,detailPanel:v.detailPanel,getFieldValue:v.getFieldValue,groupData:B,groups:v.groups,level:v.level+1,path:[].concat((0,i.default)(v.path),[N]),onGroupExpandChanged:v.onGroupExpandChanged,onGroupSelected:v.onGroupSelected,onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,isTreeData:v.isTreeData,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}):T=v.groupData.data.map(function(B,N){return B.tableData.editing?d.default.createElement(v.components.EditRow,{columns:v.columns,components:v.components,data:B,path:[].concat((0,i.default)(v.path),[B.tableData.uuid]),localization:v.localization,key:N,mode:B.tableData.editing,isTreeData:v.isTreeData,detailPanel:v.detailPanel,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,getFieldValue:v.getFieldValue,onBulkEditRowChanged:v.onBulkEditRowChanged,scrollWidth:v.scrollWidth}):d.default.createElement(v.components.Row,{actions:v.actions,key:N,columns:v.columns,components:v.components,data:B,detailPanel:v.detailPanel,level:(v.level||0)+1,getFieldValue:v.getFieldValue,path:[].concat((0,i.default)(v.path),[B.tableData.uuid]),onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,isTreeData:v.isTreeData,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}));for(var k=[],S=0;S0&&A!==F,checked:A===F,onChange:function(N,R){return v.onGroupSelected&&v.onGroupSelected(R,v.groupData.path)},style:{marginRight:8}}),d.default.createElement("b",null,M,O)))),T)}g.defaultProps={columns:[],groups:[],level:0},g.propTypes={actions:c.default.array,columns:c.default.arrayOf(c.default.object),components:c.default.object,cellEditable:c.default.object,detailPanel:c.default.oneOfType([c.default.func,c.default.arrayOf(c.default.object)]),forwardedRef:c.default.element,getFieldValue:c.default.func,groupData:c.default.object,groups:c.default.arrayOf(c.default.object),hasAnyEditingRow:c.default.bool,icons:c.default.object,isTreeData:c.default.bool.isRequired,level:c.default.number,localization:c.default.object,onBulkEditRowChanged:c.default.func,onCellEditFinished:c.default.func,onCellEditStarted:c.default.func,onEditingApproved:c.default.func,onEditingCanceled:c.default.func,onGroupExpandChanged:c.default.func,onRowClick:c.default.func,onGroupSelected:c.default.func,onRowSelected:c.default.func,onToggleDetailPanel:c.default.func.isRequired,onTreeExpandChanged:c.default.func.isRequired,path:c.default.arrayOf(c.default.number),scrollWidth:c.default.number.isRequired,treeDataMaxLevel:c.default.number};var b=d.default.forwardRef(function(h,y){return d.default.createElement(g,(0,n.default)({},h,{forwardedRef:y}))});e.default=b}(q_)),q_}var U_={};const Hke=Qn(xfe),Vke=Qn(ope);var qE;function Gke(){return qE||(qE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=k,e.styles=e.default=void 0;var r=t(fc),l=t(hc),i=t(Ir()),o=t($a()),a=t(iu()),s=t(uf()),u=t(ge),c=t(Vr),d=t(Hke),f=t(ls),p=t(Cl),m=t(Vke),g=t(pc),b=$5,v=_(ds()),h=Yi(),y=["onColumnResized","classes","sx","columns"];function w(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(w=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=w(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var z=F?Object.getOwnPropertyDescriptor(P,j):null;z&&(z.get||z.set)?Object.defineProperty(A,j,z):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function x(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function T(P){for(var E=1;E-1)&&!ce.tableData.hiddden}).sort(function(ce,we){return ce.tableData.columnOrder-we.tableData.columnOrder}).map(function(ce,we,K){var ne=ce.align!==void 0?ce.align:["numeric","currency"].indexOf(ce.type)!==-1?"right":"left",de=ce.title;if(B.draggable&&ce.draggable!==!1?de=u.default.createElement(b.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:we,style:{zIndex:99}},function(ue,pe){return u.default.createElement("div",(0,i.default)({ref:ue.innerRef},ue.draggableProps,ue.dragHandleProps,{style:pe.isDragging?ue.draggableProps.style:{position:"relative",minWidth:0,display:"flex",flexDirection:ne==="right"?"row-reverse":void 0}}),ce.sorting!==!1&&j.sorting&&j.allowSorting?u.default.createElement(C,{columnDef:ce,keepSortDirectionOnColumnSwitch:B.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:B.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:B.showColumnSortOrder,sortOrderIndicatorStyle:B.sortOrderIndicatorStyle},ce.title):ce.title)}):ce.sorting!==!1&&j.sorting&&j.allowSorting&&(de=u.default.createElement(C,{columnDef:ce,keepSortDirectionOnColumnSwitch:B.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:B.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:B.showColumnSortOrder,sortOrderIndicatorStyle:B.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(de=u.default.createElement(l.default,{title:ce.tooltip,placement:"bottom"},u.default.createElement("span",null,de))),B.tableLayout==="fixed"&&B.columnResizable&&ce.resizable!==!1&&!(B.tableWidth==="full"&&we===K.length-1)){var _e=N.Resize?N.Resize:function(ue){return u.default.createElement(r.default,(0,i.default)({},ue,{"data-test-id":"drag_handle"}))};de=u.default.createElement(r.default,{sx:M.headerWrap(ne==="right")},u.default.createElement(r.default,{sx:M.headerContent(ne==="right")},de),u.default.createElement("div",null),u.default.createElement(_e,{sx:M.headerResize((W==null?void 0:W.col)&&W.col.tableData.id===ce.tableData.id),onMouseDown:function(pe){return G(pe,ce,we)}}))}return u.default.createElement(p.default,{key:ce.tableData.id,align:ne,sx:M.header,style:ie(ce),size:Me,"aria-label":ce.ariaLabel},de)})}function he(){var Me=v.selectionMaxWidth(T(T({},j),{},{options:B}),j.treeDataMaxLevel);return u.default.createElement(p.default,{padding:"none",key:"key-selection-column",sx:M.header,style:T(T({},B.headerStyle),{},{width:Me})},B.showSelectAllCheckbox&&u.default.createElement(g.default,(0,i.default)({indeterminate:j.selectedCount>0&&j.selectedCount0&&j.selectedCount>=j.dataCount,onChange:function(we,K){return j.onAllSelected&&j.onAllSelected(K)}},B.headerSelectionProps)))}function Se(){return u.default.createElement(p.default,{padding:"none",key:"key-detail-panel-column",sx:M.header,style:B.headerStyle})}var Oe=se();if(B.selection&&Oe.splice(0,0,he()),j.showActionsColumn)if(B.actionsColumnIndex>=0){var Pe=0;B.selection&&(Pe=1),Oe.splice(B.actionsColumnIndex+Pe,0,ae())}else B.actionsColumnIndex===-1&&Oe.push(ae());return j.hasDetailPanel&&B.showDetailPanelIcon&&(B.detailPanelColumnAlignment==="right"?Oe.push(Se()):Oe.splice(0,0,Se())),j.isTreeData>0&&Oe.splice(0,0,u.default.createElement(p.default,{padding:"none",key:"key-tree-data-header",sx:M.header,style:B.headerStyle})),Z.filter(function(Me){return Me.tableData.groupOrder>-1}).forEach(function(Me){Oe.splice(0,0,u.default.createElement(p.default,{padding:"checkbox",key:"key-group-header"+Me.tableData.id,sx:M.header,style:B.headerStyle}))}),u.default.createElement(d.default,{ref:j.forwardedRef,classes:I,sx:A},u.default.createElement(f.default,{sx:M.headerRow},Oe))}var S=function(E,I,A,F,j){return A.tableData.id!==E?j&&I||"asc":I==="asc"?"desc":I==="desc"&&F?"":"asc"};function C(P){var E=P.columnDef,I=P.keepSortDirectionOnColumnSwitch,A=P.icon,F=P.thirdSortClick,j=P.onOrderChange,z=P.children,B=P.orderByCollection,N=P.showColumnSortOrder,R=P.sortOrderIndicatorStyle,q=B.find(function(U){var V=U.orderBy;return V===E.tableData.id}),Y=(q||I)&&q&&q.orderDirection||"asc",L="none";q&&Y==="asc"?L=E.ariaSortAsc||"ascending":q&&Y==="desc"&&(L=E.ariaSortDesc||"descending");var W=q&&q.orderBy;return u.default.createElement(u.default.Fragment,null,u.default.createElement(m.default,{role:"columnheader","aria-sort":L,"aria-label":E.ariaLabel,IconComponent:A,active:!!q,"data-testid":"mtableheader-sortlabel",direction:Y,onClick:function(){var V=S(W,Y,E,F,I);j(E.tableData.id,V,q&&q.sortOrder)}},z),u.default.createElement("span",{style:T(T({},R),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},N&&q?q.sortOrder:""))}k.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},k.propTypes={columns:c.default.array.isRequired,classes:c.default.object,sx:c.default.object,dataCount:c.default.number,hasDetailPanel:c.default.bool.isRequired,selectedCount:c.default.number,onAllSelected:c.default.func,onOrderChange:c.default.func,showActionsColumn:c.default.bool,orderByCollection:c.default.array,showColumnSortOrder:c.default.bool,tooltip:c.default.string,allowSorting:c.default.bool};var M={headerRow:{zIndex:10},header:{top:0},headerWrap:function(E){return{display:"flex",alignItems:"center",position:"relative",left:4}},headerWrapRight:function(E){return{display:"flex",alignItems:"center",pr:E?1:void 0,position:"relative",left:4,justifyContent:"flex-end"}},headerContent:function(E){return{minWidth:0,display:"flex",flex:"1 0 100%",flexDirection:E?"row-reverse":void 0,justifyContent:"flex-start",alignItems:"center",width:"100%",position:"relative"}},headerResize:function(E){return{color:E?"primary.main":"inherit",flex:1,cursor:"col-resize",position:"absolute",height:"100%",width:16,display:"flex",justifyContent:"center",right:-8,zIndex:20}}};e.styles=M;var O=u.default.forwardRef(function(E,I){return u.default.createElement(k,(0,i.default)({},E,{forwardedRef:I}))}),D=u.default.memo(O);e.default=D}(U_)),U_}var H_={};const Yke=Qn(Jie);var UE;function Xke(){return UE||(UE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=t(df),i=t(hc),o=t(fc),a=t(Yke),s=t(Vr),u=t(ge),c=sf,d=m(ds()),f=Yi();function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(T){return T?_:w})(y)}function m(y,w){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(w);if(_&&_.has(y))return _.get(y);var x={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var S=T?Object.getOwnPropertyDescriptor(y,k):null;S&&(S.get||S.set)?Object.defineProperty(x,k,S):x[k]=y[k]}return x.default=y,_&&_.set(y,x),x}function g(y){var w=(0,c.useTheme)(),_=(0,f.useLocalizationStore)().pagination,x=(0,f.useIconStore)(),T=function(Y){y.onPageChange(Y,0)},k=function(Y){y.onPageChange(Y,y.page-1)},S=function(Y){y.onPageChange(Y,y.page+1)},C=function(Y){return function(L){y.onPageChange(L,Y)}},M=function(Y){y.onPageChange(Y,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))};function O(q,Y,L,W){var U=[];W=Math.max(1,Math.min(10,W));for(var V=Math.max(q-W+1,0);V<=Math.min(Y+W-1,L);V++){var te=V===y.page?"contained":"text";U.push(u.default.createElement(a.default,{size:"small",style:{boxShadow:"none",maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px"},disabled:V===y.page,variant:te,onClick:C(V),key:V},V+1))}return u.default.createElement("span",null,U)}var D=y.count,P=y.page,E=y.rowsPerPage,I=y.showFirstLastPageButtons,A=y.numberOfPagesAround,F=Math.ceil(D/E)-1,j=Math.max(P-1,0),z=Math.min(F,P+1),B=d.parseFirstLastPageButtons(I,w.direction==="rtl"),N=B.first,R=B.last;return u.default.createElement(o.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:y.forwardedRef},N&&u.default.createElement(i.default,{title:_.firstTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:T,disabled:P===0,"aria-label":_.firstAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(x.LastPage,null):u.default.createElement(x.FirstPage,null)))),u.default.createElement(i.default,{title:_.previousTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:k,disabled:P===0,"aria-label":_.previousAriaLabel},u.default.createElement(x.PreviousPage,null)))),u.default.createElement(o.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},O(j,z,F,A)),u.default.createElement(i.default,{title:_.nextTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:S,disabled:P>=F,"aria-label":_.nextAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(x.PreviousPage,null):u.default.createElement(x.NextPage,null)))),R&&u.default.createElement(i.default,{title:_.lastTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:M,disabled:P>=Math.ceil(D/E)-1,"aria-label":_.lastAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(x.FirstPage,null):u.default.createElement(x.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,forwardedRef:s.default.func,count:s.default.number,rowsPerPage:s.default.number,numberOfPagesAround:s.default.number,classes:s.default.object,theme:s.default.any,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool])},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(w,_){return u.default.createElement(g,(0,r.default)({},w,{forwardedRef:_}))}),v=b,h=v;e.default=h}(H_)),H_}var V_={},HE;function Kke(){return HE||(HE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=t(fc),i=t(df),o=t(hc),a=t(Tb),s=t(Vr),u=t(ge),c=sf,d=m(ds()),f=eg();function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(T){return T?_:w})(y)}function m(y,w){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(w);if(_&&_.has(y))return _.get(y);var x={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var S=T?Object.getOwnPropertyDescriptor(y,k):null;S&&(S.get||S.set)?Object.defineProperty(x,k,S):x[k]=y[k]}return x.default=y,_&&_.set(y,x),x}function g(y){var w=(0,c.useTheme)(),_=(0,f.useIconStore)(),x=(0,f.useLocalizationStore)().pagination,T=function(j){y.onPageChange(j,0)},k=function(j){y.onPageChange(j,y.page-1)},S=function(j){y.onPageChange(j,y.page+1)},C=function(j){y.onPageChange(j,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))},M=y.count,O=y.page,D=y.rowsPerPage,P=y.showFirstLastPageButtons,E=d.parseFirstLastPageButtons(P,w.direction==="rtl"),I=E.first,A=E.last;return u.default.createElement(l.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:y.forwardedRef},I&&u.default.createElement(o.default,{title:x.firstTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:T,disabled:O===0,"aria-label":x.firstAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(_.LastPage,null):u.default.createElement(_.FirstPage,null)))),u.default.createElement(o.default,{title:x.previousTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:k,disabled:O===0,"aria-label":x.previousAriaLabel},w.direction==="rtl"?u.default.createElement(_.NextPage,null):u.default.createElement(_.PreviousPage,null)))),u.default.createElement(a.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},x.labelDisplayedRows.replace("{from}",y.count===0?0:y.page*y.rowsPerPage+1).replace("{to}",Math.min((y.page+1)*y.rowsPerPage,y.count)).replace("{count}",y.count)),u.default.createElement(o.default,{title:x.nextTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:S,disabled:O>=Math.ceil(M/D)-1,"aria-label":x.nextAriaLabel},w.direction==="rtl"?u.default.createElement(_.PreviousPage,null):u.default.createElement(_.NextPage,null)))),A&&u.default.createElement(o.default,{title:x.lastTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:C,disabled:O>=Math.ceil(M/D)-1,"aria-label":x.lastAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(_.FirstPage,null):u.default.createElement(_.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,count:s.default.number,rowsPerPage:s.default.number,classes:s.default.object,localization:s.default.object,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool]),forwardedRef:s.default.func},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(w,_){return u.default.createElement(g,(0,r.default)({},w,{forwardedRef:_}))}),v=b,h=v;e.default=h}(V_)),V_}var G_={},VE;function Zke(){return VE||(VE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var r=t(ls),l=t(_a()),i=t(cf()),o=t(Cl),a=t($a()),s=m(ge),u=_b(),c=m(ds()),d=Yi(),f=t(Vr);function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(T){return T?_:w})(y)}function m(y,w){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(w);if(_&&_.has(y))return _.get(y);var x={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var S=T?Object.getOwnPropertyDescriptor(y,k):null;S&&(S.get||S.set)?Object.defineProperty(x,k,S):x[k]=y[k]}return x.default=y,_&&_.set(y,x),x}function g(y,w){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(y);w&&(x=x.filter(function(T){return Object.getOwnPropertyDescriptor(y,T).enumerable})),_.push.apply(_,x)}return _}function b(y){for(var w=1;w1&&arguments[1]!==void 0?arguments[1]:1,E=c.elementSize(b(b({},_),{},{options:T})),I=P*c.baseIconSize(b(b({},_),{},{options:T}));return s.createElement(o.default,{key:"placeholder.".concat(D),size:E,padding:"none",style:{width:I,padding:"0px 5px",boxSizing:"border-box"}})}var S=[],C=[],M=0;if(T.selection&&S.push(k(M++)),_.actions&&_.actions.filter(function(D){return D.position==="row"||typeof D=="function"}).length>0){var O=c.rowActions(_).length;T.actionsColumnIndex===-1?C.push(k(M++,O)):T.actionsColumnIndex>=0&&S.push(k(M++,O))}return _.detailPanel&&T.showDetailPanelIcon&&(T.detailPanelColumnAlignment==="right"?C.push(k(M++)):S.push(k(M++))),_.isTreeData&&S.push(k(M++)),s.createElement(r.default,null,S,(0,i.default)(w).sort(function(D,P){return D.tableData.columnOrder-P.tableData.columnOrder}).map(function(D,P){var E=x({index:D.tableData.columnOrder,column:D,columns:w}),I=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",A="",F=(0,u.getStyle)({columnDef:D,scrollWidth:0});return(0,l.default)(E)==="object"&&E!==null?(A=E.value,F=E.style):A=E,s.createElement(o.default,{key:P,style:F,align:I},A)}),C)}v.propTypes={columns:f.default.array,renderSummaryRow:f.default.func};var h=v;e.default=h}(G_)),G_}var Y_={};const Qke=Qn(Mce);var GE;function Jke(){return GE||(GE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=S,e.default=void 0;var r=t(Ir()),l=t($a()),i=t(fc),o=t(iu()),a=t(pc),s=t(CW),u=t(df),c=t(Qke),d=t(FM),f=t(pb),p=t(PW),m=t(hc),g=t(Tb),b=sf,v=t(Vr),h=_(ge),y=Yi();function w(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(w=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=w(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var z=F?Object.getOwnPropertyDescriptor(P,j):null;z&&(z.get||z.set)?Object.defineProperty(A,j,z):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function x(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function T(P){for(var E=1;EPe.tableData.columnOrder?1:-1}),he=O(P.data()),Se=he.map(function(Oe){return se.reduce(function(Pe,Me){var ce;return typeof Me.customExport=="function"?ce=Me.customExport(Oe):ce=P.getFieldValue(Oe,Me),Pe[Me.field]=ce,Pe},{})});return[se,Se]};function G(){return te.search?h.default.createElement(f.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:C.searchField,value:j,onChange:function(se){return H(se.target.value)},placeholder:I.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:h.default.createElement(s.default,{position:"start"},h.default.createElement(m.default,{title:I.searchTooltip},h.default.createElement(V.Search,{fontSize:"small"}))),endAdornment:h.default.createElement(s.default,{position:"end"},h.default.createElement(u.default,{disabled:!j,onClick:function(){return H("")},"aria-label":I.clearSearchAriaLabel},h.default.createElement(V.ResetSearch,{fontSize:"small","aria-label":"clear"}))),style:te.searchFieldStyle,inputProps:{"aria-label":I.searchAriaLabel}}}):null}function X(ie){var se=ie?"toolbarOnSelect":"toolbar";return h.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!ie&&h.default.createElement("span",null,h.default.createElement(m.default,{title:I.showColumnsTitle},h.default.createElement(u.default,{color:"inherit",onClick:function(Se){return U(Se.currentTarget)},"aria-label":I.showColumnsAriaLabel},h.default.createElement(V.ViewColumn,null))),h.default.createElement(c.default,{anchorEl:W,open:!!W,onClose:function(){return U(null)}},h.default.createElement(d.default,{key:"text",disabled:!0,style:{opacity:1,fontWeight:600,fontSize:12}},I.addRemoveColumns),P.columns.map(function(he){var Se=he.hiddenByColumnsButton!==void 0?he.hiddenByColumnsButton:P.columnsHiddenInColumnsButton;return Se?null:h.default.createElement("li",{key:he.tableData.id},h.default.createElement(d.default,{sx:C.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(he.tableData.id),disabled:he.removable===!1},h.default.createElement(a.default,{checked:!he.hidden,id:"column-toggle-".concat(he.tableData.id),onChange:function(){return P.onColumnsChanged(he,!he.hidden)}}),h.default.createElement("span",null,he.title)))}))),te.exportMenu.length>0&&h.default.createElement("span",null,h.default.createElement(m.default,{title:I.exportTitle},h.default.createElement(u.default,{color:"inherit",onClick:function(Se){return q(Se.currentTarget)},"aria-label":I.exportAriaLabel},h.default.createElement(V.Export,null))),h.default.createElement(c.default,{anchorEl:R,open:!!R,onClose:function(){return q(null)}},te.exportMenu.map(function(he,Se){var Oe=Z(),Pe=(0,o.default)(Oe,2),Me=Pe[0],ce=Pe[1];return h.default.createElement(d.default,{key:"".concat(he.label).concat(Se),onClick:function(){he.exportFunc(Me,ce,{searchedData:P.dataManager.searchedData,filteredData:P.dataManager.filteredData,groupedData:P.dataManager.groupedData,selectedData:ee}),q(null)}},he.label)}))),h.default.createElement("span",null,h.default.createElement(P.components.Actions,{actions:P.actions&&P.actions.filter(function(he){return he.position===se}),data:ie?ee:void 0,components:P.components})))}function Q(){return h.default.createElement(i.default,{sx:C.actions},h.default.createElement("div",null,X(ee.length>0)))}function re(ie){var se=typeof ie=="string"?h.default.createElement(g.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},ie):ie;return h.default.createElement(i.default,{sx:C.title},se)}var ae=te.showTextRowsSelected&&ee.length>0?typeof I.nRowsSelected=="function"?I.nRowsSelected(ee.length):I.nRowsSelected.replace("{0}",ee.length):te.showTitle?P.title:null;return h.default.createElement(p.default,{ref:P.forwardedRef,className:P.className,sx:T(T({},C.root),te.showTextRowsSelected&&ee.length>0?C.highlight(E):{})},ae&&re(ae),te.searchFieldAlignment==="left"&&G(),te.toolbarButtonAlignment==="left"&&Q(),h.default.createElement(i.default,{sx:C.spacer}),te.searchFieldAlignment==="right"&&G(),te.toolbarButtonAlignment==="right"&&Q())}S.defaultProps={actions:[],columns:[],columnsHiddenInColumnsButton:!1,searchText:"",originalData:[],title:"No Title!"},S.propTypes={actions:v.default.array,className:v.default.string,columns:v.default.array,components:v.default.object.isRequired,getFieldValue:v.default.func.isRequired,onColumnsChanged:v.default.func.isRequired,dataManager:v.default.object.isRequired,searchText:v.default.string,onSearchChanged:v.default.func.isRequired,originalData:v.default.array,title:v.default.oneOfType([v.default.element,v.default.string]),renderData:v.default.array,data:v.default.oneOfType([v.default.array,v.default.func]),exportAllData:v.default.bool,exportMenu:v.default.arrayOf(v.default.shape({name:v.default.string,handler:v.default.func})),searchAutoFocus:v.default.bool,classes:v.default.object};var C={root:{paddingRight:1,paddingLeft:2},highlight:function(E){return E.palette.mode==="light"?{color:E.palette.secondary.main,backgroundColor:(0,b.lighten)(E.palette.secondary.light,.85)}:{color:E.palette.text.primary,backgroundColor:E.palette.secondary.dark}},spacer:{flex:"1 1 10%"},actions:{color:"text.secondary"},title:{overflow:"hidden"},searchField:{minWidth:150,paddingLeft:2},formControlLabel:{px:1}},M=h.default.forwardRef(function(E,I){return h.default.createElement(S,(0,r.default)({},E,{forwardedRef:I}))});function O(P){for(var E=P;Array.isArray((I=E)===null||I===void 0||(A=I[0])===null||A===void 0?void 0:A.data);){var I,A;E=E.map(function(F){return F.groups.length!==0?F.groups:F.data}).flat()}return E}var D=h.default.memo(M);e.default=D}(Y_)),Y_}var YE;function Db(){return YE||(YE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"MTableCustomIcon",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"MTableScrollbar",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"MTableSummaryRow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return n.default}});var n=t(Kpe()),r=t(Bhe()),l=t(Uhe()),i=t(Vhe()),o=t(Zhe()),a=t(s2e()),s=t(u2e()),u=t(p2e()),c=t(h2e()),d=t(y2e()),f=t(w2e()),p=t(_2e()),m=t(T2e()),g=t(MW()),b=t(qke()),v=t(Uke()),h=t(Gke()),y=t(Xke()),w=t(Kke()),_=t(Zke()),x=t(Jke())}(Cw)),Cw}var XE;function Hq(){return XE||(XE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Xpe),r=Db(),l={Action:r.MTableAction,Actions:r.MTableActions,Body:r.MTableBody,Cell:r.MTableCell,Container:r.Container,EditCell:r.MTableEditCell,EditField:r.MTableEditField,EditRow:r.MTableEditRow,FilterRow:r.MTableFilterRow,Groupbar:r.MTableGroupbar,GroupRow:r.MTableGroupRow,Header:r.MTableHeader,OverlayLoading:r.OverlayLoading,OverlayError:r.OverlayError,Pagination:n.default,Row:r.MTableBodyRow,SummaryRow:r.MTableSummaryRow,Toolbar:r.MTableToolbar};e.default=l}(Sw)),Sw}var KE;function eSe(){if(KE)return tp;KE=1;var e=Cn;Object.defineProperty(tp,"__esModule",{value:!0}),tp.defaultProps=void 0;var t=e(Hq()),n=e(lB()),r=e(oB()),l=e(iB()),i={actions:[],classes:{},columns:[],components:t.default,data:[],icons:n.default,isLoading:!1,title:"Table Title",options:l.default,localization:r.default,style:{}};return tp.defaultProps=i,tp}var kp={},Sp={},ZE;function N5(){if(ZE)return Sp;ZE=1,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.ALL_COLUMNS=void 0;var e="all_columns";return Sp.ALL_COLUMNS=e,Sp}var QE;function tSe(){if(QE)return kp;QE=1;var e=Cn;Object.defineProperty(kp,"__esModule",{value:!0}),kp.propTypes=void 0;var t=e(Vr),n=N5(),r=t.default.shape({current:t.default.element}),l=t.default.shape({classes:t.default.object,innerRef:r}),i={actions:t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]).isRequired,isFreeAction:t.default.bool,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"]),tooltip:t.default.string,onClick:t.default.func.isRequired,onMouseEnter:t.default.func,onMouseLeave:t.default.func,iconProps:t.default.object,disabled:t.default.bool,hidden:t.default.bool}),t.default.shape({action:t.default.func,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"])})])),renderSummaryRow:t.default.func,columns:t.default.arrayOf(t.default.shape({cellStyle:t.default.oneOfType([t.default.object,t.default.func]),currencySetting:t.default.shape({locale:t.default.string,currencyCode:t.default.string,minimumFractionDigits:t.default.number,maximumFractionDigits:t.default.number}),ariaLabel:t.default.string,ariaSortAsc:t.default.oneOf(["ascending","descending","none","other"]),ariaSortDesc:t.default.oneOf(["ascending","descending","none","other"]),draggable:t.default.bool,customFilterAndSearch:t.default.func,customSort:t.default.func,customExport:t.default.func,defaultFilter:t.default.any,defaultSort:t.default.oneOf(["asc","desc"]),editComponent:t.default.oneOfType([t.default.element,t.default.func]),emptyValue:t.default.oneOfType([t.default.string,t.default.node,t.default.func]),export:t.default.bool,field:t.default.oneOfType([t.default.string,t.default.arrayOf(t.default.string)]),filtering:t.default.bool,filterCellStyle:t.default.object,filterPlaceholder:t.default.string,filterComponent:t.default.oneOfType([t.default.element,t.default.func]),grouping:t.default.bool,headerStyle:t.default.object,hidden:t.default.bool,hideFilterIcon:t.default.bool,initialEditValue:t.default.any,lookup:t.default.object,editable:t.default.oneOfType([t.default.func,t.default.oneOf(["always","onUpdate","onAdd","never"])]),removable:t.default.bool,render:t.default.func,searchable:t.default.bool,sorting:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),type:t.default.oneOf(["string","boolean","numeric","date","datetime","time","currency"])})).isRequired,components:t.default.shape({Action:t.default.oneOfType([t.default.element,t.default.func,l]),Actions:t.default.oneOfType([t.default.element,t.default.func,l]),Body:t.default.oneOfType([t.default.element,t.default.func,l]),Cell:t.default.oneOfType([t.default.element,t.default.func,l]),Container:t.default.oneOfType([t.default.element,t.default.func,l]),EditField:t.default.oneOfType([t.default.element,t.default.func,l]),EditRow:t.default.oneOfType([t.default.element,t.default.func,l]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,l]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,l]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,l]),Header:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,l]),Pagination:t.default.oneOfType([t.default.element,t.default.func,l]),Row:t.default.oneOfType([t.default.element,t.default.func,l]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,l])}),data:t.default.oneOfType([t.default.arrayOf(t.default.object),t.default.func]).isRequired,editable:t.default.shape({isEditable:t.default.func,isBulkEditable:t.default.func,isDeletable:t.default.func,onRowAdd:t.default.func,onRowUpdate:t.default.func,onRowDelete:t.default.func,onRowAddCancelled:t.default.func,onRowUpdateCancelled:t.default.func,isEditHidden:t.default.func,isDeleteHidden:t.default.func}),detailPanel:t.default.oneOfType([t.default.func,t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({disabled:t.default.bool,icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),openIcon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),tooltip:t.default.string,render:t.default.func.isRequired})]))]),icons:t.default.shape({Add:t.default.oneOfType([t.default.element,t.default.func,r]),Check:t.default.oneOfType([t.default.element,t.default.func,r]),Clear:t.default.oneOfType([t.default.element,t.default.func,r]),Delete:t.default.oneOfType([t.default.element,t.default.func,r]),DetailPanel:t.default.oneOfType([t.default.element,t.default.func,r]),Edit:t.default.oneOfType([t.default.element,t.default.func,r]),Export:t.default.oneOfType([t.default.element,t.default.func,r]),Filter:t.default.oneOfType([t.default.element,t.default.func,r]),FirstPage:t.default.oneOfType([t.default.element,t.default.func,r]),LastPage:t.default.oneOfType([t.default.element,t.default.func,r]),NextPage:t.default.oneOfType([t.default.element,t.default.func,r]),PreviousPage:t.default.oneOfType([t.default.element,t.default.func,r]),Refresh:t.default.oneOfType([t.default.element,t.default.func,r]),ResetSearch:t.default.oneOfType([t.default.element,t.default.func,r]),Search:t.default.oneOfType([t.default.element,t.default.func,r]),SortArrow:t.default.oneOfType([t.default.element,t.default.func,r]),ThirdStateCheck:t.default.oneOfType([t.default.element,t.default.func,r]),ViewColumn:t.default.oneOfType([t.default.element,t.default.func,r])}),isLoading:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),options:t.default.shape({actionsCellStyle:t.default.object,editCellStyle:t.default.object,idSynonym:t.default.string,detailPanelColumnStyle:t.default.object,actionsColumnIndex:t.default.number,addRowPosition:t.default.oneOf(["first","last"]),columnsButton:t.default.bool,defaultExpanded:t.default.oneOfType([t.default.bool,t.default.func]),debounceInterval:t.default.number,detailPanelType:t.default.oneOf(["single","multiple"]),doubleHorizontalScroll:t.default.bool,emptyRowsWhenPaging:t.default.bool,exportAllData:t.default.bool,exportMenu:t.default.arrayOf(t.default.shape({label:t.default.string,exportFunc:t.default.func})),filtering:t.default.bool,filterCellStyle:t.default.object,filterRowStyle:t.default.object,header:t.default.bool,headerSelectionProps:t.default.object,headerStyle:t.default.object,hideFilterIcons:t.default.bool,initialPage:t.default.number,maxBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),minBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),loadingType:t.default.oneOf(["overlay","linear"]),overflowY:t.default.oneOf(["visible","hidden","scroll","auto","initial","inherit","overlay"]),padding:t.default.oneOf(["normal","dense"]),paging:t.default.bool,pageSize:t.default.number,pageSizeOptions:t.default.arrayOf(t.default.number),paginationType:t.default.oneOf(["normal","stepped"]),paginationPosition:t.default.oneOf(["bottom","top","both"]),persistentGroupingsId:t.default.string,rowStyle:t.default.oneOfType([t.default.object,t.default.func]),search:t.default.bool,searchText:t.default.string,searchDebounceDelay:t.default.number,toolbarButtonAlignment:t.default.oneOf(["left","right"]),searchFieldAlignment:t.default.oneOf(["left","right"]),searchFieldStyle:t.default.object,searchAutoFocus:t.default.bool,searchFieldVariant:t.default.oneOf(["standard","filled","outlined"]),selection:t.default.bool,selectionProps:t.default.oneOfType([t.default.object,t.default.func]),showEmptyDataSourceMessage:t.default.bool,showFirstLastPageButtons:t.default.oneOfType([t.default.object,t.default.bool]),showSelectAllCheckbox:t.default.bool,showSelectGroupCheckbox:t.default.bool,showTitle:t.default.bool,showTextRowsSelected:t.default.bool,sorting:t.default.bool,defaultOrderByCollection:t.default.arrayOf(t.default.shape({orderBy:t.default.number,orderDirection:t.default.string,sortOrder:t.default.number,orderIndex:t.default.number})),maxColumnSort:t.default.oneOf([0,1,2,3,4,5,6,7,8,9,10,n.ALL_COLUMNS]),showColumnSortOrder:t.default.bool,sortOrderIndicatorStyle:t.default.object,keepSortDirectionOnColumnSwitch:t.default.bool,clientSorting:t.default.bool,toolbar:t.default.bool,thirdSortClick:t.default.bool,numberOfPagesAround:t.default.oneOf([1,2,3,4,5,6,7,8,9,10])}),localization:t.default.shape({grouping:t.default.shape({groupedBy:t.default.string,placeholder:t.default.string}),pagination:t.default.object,toolbar:t.default.object,header:t.default.object,body:t.default.object}),initialFormData:t.default.object,onSearchChange:t.default.func,onFilterChange:t.default.func,onColumnDragged:t.default.func,onColumnResized:t.default.func,onGroupRemoved:t.default.func,onGroupChange:t.default.func,onSelectionChange:t.default.func,onRowsPerPageChange:t.default.func,onPageChange:t.default.func,onChangeColumnHidden:t.default.func,onOrderChange:t.default.func,onOrderCollectionChange:t.default.func,onRowClick:t.default.func,onRowDoubleClick:t.default.func,onTreeExpandChange:t.default.func,onQueryChange:t.default.func,onBulkEditOpen:t.default.func,tableRef:t.default.any,style:t.default.object,page:t.default.number,totalCount:t.default.number};return kp.propTypes=i,kp}var X_={};const nSe=Qn(Kue),rSe=Qn(ffe),aSe=Qn(Fde);var K_,JE;function oSe(){if(JE)return K_;JE=1;function e(t,n,r){var l,i,o,a,s;n==null&&(n=100);function u(){var d=Date.now()-a;d=0?l=setTimeout(u,n-d):(l=null,r||(s=t.apply(o,i),o=i=null))}var c=function(){o=this,i=arguments,a=Date.now();var d=r&&!l;return l||(l=setTimeout(u,n)),d&&(s=t.apply(o,i),o=i=null),s};return c.clear=function(){l&&(clearTimeout(l),l=null)},c.flush=function(){l&&(s=t.apply(o,i),o=i=null,clearTimeout(l),l=null)},c}return e.debounce=e,K_=e,K_}var Z_={};const iSe=Qn(vge);var Q_={},Cp={},T0={},eR;function Vq(){if(eR)return T0;eR=1,Object.defineProperty(T0,"__esModule",{value:!0}),T0.default=n;let e;const t=new Uint8Array(16);function n(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return T0}var Bc={},Mp={},Pp={},tR;function lSe(){if(tR)return Pp;tR=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Pp.default=e,Pp}var nR;function Eb(){if(nR)return Mp;nR=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.default=void 0;var e=t(lSe());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){return typeof l=="string"&&e.default.test(l)}var r=n;return Mp.default=r,Mp}var rR;function Rb(){if(rR)return Bc;rR=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.default=void 0,Bc.unsafeStringify=r;var e=t(Eb());function t(o){return o&&o.__esModule?o:{default:o}}const n=[];for(let o=0;o<256;++o)n.push((o+256).toString(16).slice(1));function r(o,a=0){return n[o[a+0]]+n[o[a+1]]+n[o[a+2]]+n[o[a+3]]+"-"+n[o[a+4]]+n[o[a+5]]+"-"+n[o[a+6]]+n[o[a+7]]+"-"+n[o[a+8]]+n[o[a+9]]+"-"+n[o[a+10]]+n[o[a+11]]+n[o[a+12]]+n[o[a+13]]+n[o[a+14]]+n[o[a+15]]}function l(o,a=0){const s=r(o,a);if(!(0,e.default)(s))throw TypeError("Stringified UUID is invalid");return s}var i=l;return Bc.default=i,Bc}var aR;function sSe(){if(aR)return Cp;aR=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.default=void 0;var e=n(Vq()),t=Rb();function n(u){return u&&u.__esModule?u:{default:u}}let r,l,i=0,o=0;function a(u,c,d){let f=c&&d||0;const p=c||new Array(16);u=u||{};let m=u.node||r,g=u.clockseq!==void 0?u.clockseq:l;if(m==null||g==null){const _=u.random||(u.rng||e.default)();m==null&&(m=r=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),g==null&&(g=l=(_[6]<<8|_[7])&16383)}let b=u.msecs!==void 0?u.msecs:Date.now(),v=u.nsecs!==void 0?u.nsecs:o+1;const h=b-i+(v-o)/1e4;if(h<0&&u.clockseq===void 0&&(g=g+1&16383),(h<0||b>i)&&u.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=b,o=v,l=g,b+=122192928e5;const y=((b&268435455)*1e4+v)%4294967296;p[f++]=y>>>24&255,p[f++]=y>>>16&255,p[f++]=y>>>8&255,p[f++]=y&255;const w=b/4294967296*1e4&268435455;p[f++]=w>>>8&255,p[f++]=w&255,p[f++]=w>>>24&15|16,p[f++]=w>>>16&255,p[f++]=g>>>8|128,p[f++]=g&255;for(let _=0;_<6;++_)p[f+_]=m[_];return c||(0,t.unsafeStringify)(p)}var s=a;return Cp.default=s,Cp}var Op={},Ss={},Ap={},oR;function Gq(){if(oR)return Ap;oR=1,Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.default=void 0;var e=t(Eb());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");let i;const o=new Uint8Array(16);return o[0]=(i=parseInt(l.slice(0,8),16))>>>24,o[1]=i>>>16&255,o[2]=i>>>8&255,o[3]=i&255,o[4]=(i=parseInt(l.slice(9,13),16))>>>8,o[5]=i&255,o[6]=(i=parseInt(l.slice(14,18),16))>>>8,o[7]=i&255,o[8]=(i=parseInt(l.slice(19,23),16))>>>8,o[9]=i&255,o[10]=(i=parseInt(l.slice(24,36),16))/1099511627776&255,o[11]=i/4294967296&255,o[12]=i>>>24&255,o[13]=i>>>16&255,o[14]=i>>>8&255,o[15]=i&255,o}var r=n;return Ap.default=r,Ap}var iR;function Yq(){if(iR)return Ss;iR=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.URL=Ss.DNS=void 0,Ss.default=o;var e=Rb(),t=n(Gq());function n(a){return a&&a.__esModule?a:{default:a}}function r(a){a=unescape(encodeURIComponent(a));const s=[];for(let u=0;u>5]>>>v%32&255,y=parseInt(b.charAt(h>>>4&15)+b.charAt(h&15),16);m.push(y)}return m}function n(p){return(p+64>>>9<<4)+14+1}function r(p,m){p[m>>5]|=128<>5]|=(p[b/8]&255)<>16)+(m>>16)+(g>>16)<<16|g&65535}function o(p,m){return p<>>32-m}function a(p,m,g,b,v,h){return i(o(i(i(m,p),i(b,h)),v),g)}function s(p,m,g,b,v,h,y){return a(m&g|~m&b,p,m,v,h,y)}function u(p,m,g,b,v,h,y){return a(m&b|g&~b,p,m,v,h,y)}function c(p,m,g,b,v,h,y){return a(m^g^b,p,m,v,h,y)}function d(p,m,g,b,v,h,y){return a(g^(m|~b),p,m,v,h,y)}var f=e;return Dp.default=f,Dp}var sR;function cSe(){if(sR)return Op;sR=1,Object.defineProperty(Op,"__esModule",{value:!0}),Op.default=void 0;var e=n(Yq()),t=n(uSe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v3",48,t.default);return Op.default=l,Op}var Ep={},Rp={},uR;function dSe(){if(uR)return Rp;uR=1,Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Rp.default=t,Rp}var cR;function fSe(){if(cR)return Ep;cR=1,Object.defineProperty(Ep,"__esModule",{value:!0}),Ep.default=void 0;var e=r(dSe()),t=r(Vq()),n=Rb();function r(o){return o&&o.__esModule?o:{default:o}}function l(o,a,s){if(e.default.randomUUID&&!a&&!o)return e.default.randomUUID();o=o||{};const u=o.random||(o.rng||t.default)();if(u[6]=u[6]&15|64,u[8]=u[8]&63|128,a){s=s||0;for(let c=0;c<16;++c)a[s+c]=u[c];return a}return(0,n.unsafeStringify)(u)}var i=l;return Ep.default=i,Ep}var Lp={},Ip={},dR;function pSe(){if(dR)return Ip;dR=1,Object.defineProperty(Ip,"__esModule",{value:!0}),Ip.default=void 0;function e(l,i,o,a){switch(l){case 0:return i&o^~i&a;case 1:return i^o^a;case 2:return i&o^i&a^o&a;case 3:return i^o^a}}function t(l,i){return l<>>32-i}function n(l){const i=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof l=="string"){const c=unescape(encodeURIComponent(l));l=[];for(let d=0;d>>0;b=g,g=m,m=t(p,30)>>>0,p=f,f=y}o[0]=o[0]+f>>>0,o[1]=o[1]+p>>>0,o[2]=o[2]+m>>>0,o[3]=o[3]+g>>>0,o[4]=o[4]+b>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,o[0]&255,o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,o[1]&255,o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,o[2]&255,o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,o[3]&255,o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,o[4]&255]}var r=n;return Ip.default=r,Ip}var fR;function hSe(){if(fR)return Lp;fR=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.default=void 0;var e=n(Yq()),t=n(pSe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v5",80,t.default);return Lp.default=l,Lp}var $p={},pR;function mSe(){if(pR)return $p;pR=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.default=void 0;var e="00000000-0000-0000-0000-000000000000";return $p.default=e,$p}var Np={},hR;function gSe(){if(hR)return Np;hR=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.default=void 0;var e=t(Eb());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");return parseInt(l.slice(14,15),16)}var r=n;return Np.default=r,Np}var mR;function vSe(){return mR||(mR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=c(sSe()),n=c(cSe()),r=c(fSe()),l=c(hSe()),i=c(mSe()),o=c(gSe()),a=c(Eb()),s=c(Rb()),u=c(Gq());function c(d){return d&&d.__esModule?d:{default:d}}}(Q_)),Q_}var gR;function ySe(){return gR||(gR=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cf()),r=t(db()),l=t(fb()),i=t($a()),o=t(iSe),a=vSe(),s=_b(),u=ds(),c=N5();function d(v,h){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);h&&(w=w.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,w)}return y}function f(v){for(var h=1;h=v.length?{done:!0}:{done:!1,value:v[w++]}},e:function(C){throw C},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,T=!1,k;return{s:function(){y=y.call(v)},n:function(){var C=y.next();return x=C.done,C},e:function(C){T=!0,k=C},f:function(){try{!x&&y.return!=null&&y.return()}finally{if(T)throw k}}}}function m(v,h){if(v){if(typeof v=="string")return g(v,h);var y=Object.prototype.toString.call(v).slice(8,-1);if(y==="Object"&&v.constructor&&(y=v.constructor.name),y==="Map"||y==="Set")return Array.from(v);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return g(v,h)}}function g(v,h){(h==null||h>v.length)&&(h=v.length);for(var y=0,w=new Array(h);y0?k(C.groups):C.data.forEach(function(M){M.tableData.checked!==y&&(M.tableData.checked=M.tableData.disabled?!1:y,h.selectedCount=h.selectedCount+(y?1:-1))})})};T([_])}),(0,i.default)(this,"getOrderByCollection",function(){return h.orderByCollection.filter(function(y){return y.sortOrder})}),(0,i.default)(this,"sortOrderCollection",function(y){return y.sort(function(w,_){return w.sortOrder?_.sortOrder?w.sortOrder-_.sortOrder:-1:1})}),(0,i.default)(this,"startCellEditable",function(y,w){y.tableData.editCellList=[].concat((0,n.default)(y.tableData.editCellList||[]),[w])}),(0,i.default)(this,"finishCellEditable",function(y,w){if(y.tableData.editCellList){var _=y.tableData.editCellList.findIndex(function(x){return x.tableData.id.toString()===w.tableData.id.toString()});_!==-1&&y.tableData.editCellList.splice(_,1)}}),(0,i.default)(this,"clearBulkEditChangedRows",function(){h.bulkEditChangedRows={}}),(0,i.default)(this,"onBulkEditRowChanged",function(y,w){h.bulkEditChangedRows[y.tableData.id]={oldData:y,newData:w}}),(0,i.default)(this,"expandTreeForNodes",function(y){y.forEach(function(w){for(var _=w;h.parentFunc(_,h.data);){var x=h.parentFunc(_,h.data);x&&(x.tableData.isTreeExpanded=!0),_=x}})}),(0,i.default)(this,"findDataByPath",function(y,w){if(h.isDataType("tree")){var _=w.reduce(function(k,S){return k&&k.tableData&&k.tableData.childRows&&k.tableData.childRows.find(function(C){return C&&C.tableData.uuid===S})},{tableData:{childRows:y}});return _}else{var x={groups:y},T=w.reduce(function(k,S){return k.groups.length>0?k.groups[S]:k.data?k.data[S]||k.data.find(function(C){var M;return((M=C.tableData)===null||M===void 0?void 0:M.uuid)===S}):void 0},x);return T}}),(0,i.default)(this,"getFieldValue",function(y,w){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=typeof y[w.field]<"u"?y[w.field]:(0,s.selectFromObject)(y,w.field);return w.lookup&&_&&(x=w.lookup[x]),x}),(0,i.default)(this,"getRenderState",function(){return h.filtered===!1&&h.filterData(),h.searched===!1&&h.searchData(),h.grouped===!1&&h.isDataType("group")&&h.groupData(),h.treefied===!1&&h.isDataType("tree")&&h.treefyData(),h.sorted===!1&&h.sortData(),h.paged===!1&&h.pageData(),{columns:h.columns,currentPage:h.currentPage,data:h.sortedData,lastEditingRow:h.lastEditingRow,orderByCollection:h.orderByCollection,maxColumnSort:h.maxColumnSort,originalData:(0,n.default)(h.data),pageSize:h.pageSize,renderData:h.pagedData,searchText:h.searchText,selectedCount:h.selectedCount,treefiedDataLength:h.treefiedDataLength,treeDataMaxLevel:h.treeDataMaxLevel,groupedDataLength:h.groupedDataLength,tableStyleWidth:h.tableStyleWidth}}),(0,i.default)(this,"filterData",function(){h.searched=h.grouped=h.treefied=h.sorted=h.paged=!1,h.filteredData=(0,n.default)(h.data),h.applyFilters&&h.columns.filter(function(y){return y.tableData.filterValue!==void 0}).forEach(function(y){var w=y.lookup,_=y.type,x=y.tableData;y.customFilterAndSearch?h.filteredData=h.filteredData.filter(function(T){return!!y.customFilterAndSearch(x.filterValue,T,y)}):w?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y,!1);return!x.filterValue||x.filterValue.length===0||x.filterValue.indexOf(k!=null&&k.toString())>-1}):_==="numeric"?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y);return k+""===x.filterValue}):_==="boolean"&&x.filterValue?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y);return k&&x.filterValue==="checked"||!k&&x.filterValue==="unchecked"}):["date","datetime"].includes(_)?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y),S=k?new Date(k):null;if(S&&S.toString()!=="Invalid Date"){var C=x.filterValue,M="",O="";return _==="date"?(M=(0,o.default)(S,"MM/dd/yyyy"),O=(0,o.default)(C,"MM/dd/yyyy")):_==="datetime"&&(M=(0,o.default)(S,"MM/dd/yyyy - HH:mm"),O=(0,o.default)(C,"MM/dd/yyyy - HH:mm")),M===O}return!0}):_==="time"?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y),S=k||null;if(S){var C=x.filterValue,M=(0,o.default)(C,"HH:mm");return S===M}return!0}):h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y);return k!=null&&k.toString().toUpperCase().includes(x.filterValue.toUpperCase())})}),h.filtered=!0}),(0,i.default)(this,"searchData",function(){if(h.grouped=h.treefied=h.sorted=h.paged=!1,h.searchedData=(0,n.default)(h.filteredData),h.searchText&&h.applySearch){var y=h.searchText.trim();h.searchedData=h.searchedData.filter(function(w){return h.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(y,w,_);if(_.field){var x=h.getFieldValue(w,_);if(x)return x.toString().toUpperCase().includes(y.toUpperCase())}return!1})})}h.searched=!0}),(0,i.default)(this,"clearCriteria",function(){h.changeOrder(-1,""),h.changeSearchText("");var y=p(h.columns),w;try{for(y.s();!(w=y.n()).done;){var _=w.value;h.changeFilterValue(_.tableData.id,"")}}catch(x){y.e(x)}finally{y.f()}h.changeSearchText(""),h.changePaging(0)})}return(0,l.default)(v,[{key:"setData",value:function(y,w){var _=this;this.selectedCount=0;var x={};this.data.length!==0&&this.data[0][w]!==void 0&&(x=this.data.reduce(function(T,k){return T[k.tableData.id]=k.tableData,T},{})),this.data=y.map(function(T,k){var S=x[T[w]]||{},C=f(f({index:k,id:T[w]||k,uuid:T.uuid||(0,a.v4)()},S),T.tableData);C.checked&&_.selectedCount++;var M=f(f({},T),{},{tableData:C});return _.lastDetailPanelRow&&_.lastDetailPanelRow.tableData===S&&(_.lastDetailPanelRow=M),_.lastEditingRow&&_.lastEditingRow.tableData===S&&(_.lastEditingRow=M),M}),this.filtered=!1}},{key:"setTableWidth",value:function(y){this.tableWidth=y}},{key:"setColumns",value:function(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=0,T=[];this.columns=y.map(function(C,M){var O,D=(0,u.widthToNumber)(C.width),P=typeof C.width=="number"?C.width+"px":C.width;P&&(isNaN(D)?T.push(P):x+=D);var E=w.find(function(F){var j=F.id;return j===M}),I=(O=_[C.field])!==null&&O!==void 0?O:{},A=f(f(f(f({columnOrder:M,filterValue:C.defaultFilter,groupOrder:C.defaultGroupOrder,groupSort:C.defaultGroupSort||"asc",width:P,initialWidth:P,widthPx:isNaN(D)?void 0:D,additionalWidth:0},I),E?E.tableData:{}),C.tableData),{},{id:M});return C.tableData=A,C});var k=this.columns.filter(function(C){return C.hidden||C.columnDef&&C.columnDef.tableData&&C.columnDef.tableData.width?!1:C.width===void 0}),S=(x!==0?"".concat(x,"px"):"0px")+(T.length>0?" - "+T.join(" - "):"");k.forEach(function(C){C.tableData.width=C.tableData.initialWidth="calc((100% - ".concat(S,") / ").concat(k.length,")")}),this.tableStyleWidth=this.tableWidth==="full"||k.length>0||T.length>0?"100%":x}},{key:"setDefaultExpanded",value:function(y){this.defaultExpanded=y}},{key:"setClientSorting",value:function(y){this.clientSorting=!!y}},{key:"setMaxColumnSort",value:function(y){var w=this.columns.filter(function(_){return _.sorting!==!1}).length;y===c.ALL_COLUMNS?this.maxColumnSort=w:this.maxColumnSort=Math.min(y,w)}},{key:"setOrderByCollection",value:function(){var y=this.getOrderByCollection(),w=this.columns.map(function(_){var x=_.tableData.id,T=y.find(function(k){return k.orderBy===x});return T?f({},T):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});w=this.sortOrderCollection(w),this.orderByCollection=(0,n.default)(w)}},{key:"setDefaultOrderByCollection",value:function(y){this.defaultOrderByCollection=(0,n.default)(y)}},{key:"getDefaultOrderByCollection",value:function(){return this.defaultOrderByCollection}},{key:"changeApplySearch",value:function(y){this.applySearch=y,this.searched=!1}},{key:"changeApplyFilters",value:function(y){this.applyFilters=y,this.filtered=!1}},{key:"changeApplySort",value:function(y){this.applySort=y,this.sorted=!1}},{key:"changePaging",value:function(y){this.paging=y,this.paged=!1}},{key:"changeCurrentPage",value:function(y){this.currentPage=y,this.paged=!1}},{key:"changePageSize",value:function(y){this.pageSize=y,this.paged=!1}},{key:"changeParentFunc",value:function(y){this.parentFunc=y}},{key:"changeFilterValue",value:function(y,w){var _=this.columns.find(function(x){return x.tableData.id===y});_.tableData.filterValue=w,this.filtered=!1}},{key:"changeRowSelected",value:function(y,w){var _=this,x=this.findDataByPath(this.sortedData,w);x.tableData.checked=y,this.selectedCount=this.selectedCount+(y?1:-1);var T=function k(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){C.tableData.checked!==y&&(C.tableData.checked=y,_.selectedCount=_.selectedCount+(y?1:-1)),k(C)})};T(x),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(y,w){var _=this.findDataByPath(this.sortedData,y);(_.tableData.showDetailPanel||"").toString()===w.toString()?_.tableData.showDetailPanel=void 0:_.tableData.showDetailPanel=w,this.detailPanelType==="single"&&this.lastDetailPanelRow&&this.lastDetailPanelRow!==_&&(this.lastDetailPanelRow.tableData.showDetailPanel=void 0),this.lastDetailPanelRow=_}},{key:"changeGroupExpand",value:function(y){var w=this.findDataByPath(this.sortedData,y);w.isExpanded=!w.isExpanded}},{key:"changeSearchText",value:function(y){this.searchText=y,this.searched=!1,this.currentPage=0}},{key:"changeSearchDebounce",value:function(y){this.searchDebounceDelay=y}},{key:"changeRowEditing",value:function(y,w){y?(y.tableData.editing=w,this.lastEditingRow&&this.lastEditingRow!==y&&(this.lastEditingRow.tableData.editing=void 0),w?this.lastEditingRow=y:this.lastEditingRow=void 0):this.lastEditingRow&&(this.lastEditingRow.tableData.editing=void 0,this.lastEditingRow=void 0)}},{key:"changeBulkEditOpen",value:function(y){this.bulkEditOpen=y}},{key:"changeAllSelected",value:function(y,w){var _=0,x=function(C){var M=w instanceof Function?w(C):{disabled:!1};return C.tableData.disabled||M.disabled?!1:y};if(this.isDataType("group")){var T=function S(C){C.forEach(function(M){M.groups.length>0?S(M.groups):M.data.forEach(function(O){O.tableData.checked=x(O),_++})})};T(this.groupedData)}else{var k=function S(C){C.tableData.childRows&&C.tableData.childRows.forEach(function(M){M.tableData.checked=x(C),S(M)})};this.searchedData.forEach(function(S){S.tableData.checked=x(S),k(S)}),_=this.searchedData.length}this.selectedCount=y?_:0}},{key:"changeColumnOrder",value:function(y,w,_){var x=[],T=this.getOrderByCollection();T.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,x=this.orderByCollection.map(function(k){return k.sortOrder?k.sortOrder-=1:k.orderBy===y&&w&&(k.sortOrder=T.length,k.orderDirection=w),k})):x=this.orderByCollection.map(function(k){return k.orderBy===y&&w?(k.orderDirection=w,k.sortOrder=_||T.length+1):!w&&k.orderBy===y?(k.orderDirection=w,k.sortOrder=void 0):!w&&_-1}).sort(function(q,Y){return q.tableData.groupOrder-Y.tableData.groupOrder});if(y.destination.droppableId==="groups"&&y.source.droppableId==="groups"){w=Math.min(y.destination.index,y.source.index);var x=Math.max(y.destination.index,y.source.index);if(_=_.slice(w,x+1),y.destination.index-1})&&(w="group"),y===w}},{key:"sort",value:function(y,w,_){if(_==="numeric")return y-w;if(y!==w){if(!y)return-1;if(!w)return 1}return yw?1:0}},{key:"sortList",value:function(y){if(!this.clientSorting)return y;var w=this.orderByCollection.map(function(S){return S.orderBy}),_=new Map;this.columns.forEach(function(S){var C=S.tableData.id;w.includes(C)&&_.set(C,S)});var x=this.sort,T=this.getFieldValue,k=this.orderByCollection;return y.sort(function S(C,M){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:k,P=D[0],E=P.orderBy,I=P.orderDirection,A=O.get(E),F=0;A.customSort?I==="desc"?F=A.customSort(M,C,"row",I):F=A.customSort(C,M,"row",I):(F=x(T(C,A),T(M,A),A.type),F=I.toLowerCase()==="desc"?F*-1:F);var j=F===0&&D.filter(function(z){return z.sortOrder!==void 0}).length!==1;return j?S(C,M,O,D.slice(1)):F})}},{key:"groupData",value:function(){var y=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var w=(0,n.default)(this.searchedData),_=this.columns.filter(function(T){return T.tableData.groupOrder>-1}).sort(function(T,k){return T.tableData.groupOrder-k.tableData.groupOrder}),x=w.reduce(function(T,k){var S=T;return S=_.reduce(function(C,M){var O=k[M.field]||(0,s.selectFromObject)(k,M.field),D;if(C.groupsIndex[O]!==void 0&&(D=C.groups[C.groupsIndex[O]]),!D){var P=[].concat((0,n.default)(C.path||[]),[O]),E=y.findGroupByGroupPath(y.groupedData,P)||{isExpanded:typeof y.defaultExpanded=="boolean"?y.defaultExpanded:!1};D={value:O,groups:[],groupsIndex:{},data:[],isExpanded:E.isExpanded,path:P},C.groups.push(D),C.groupsIndex[O]=C.groups.length-1}return D},S),S.data.push(k),y.groupedDataLength++,T},{groups:[],groupsIndex:{}});this.groupedData=x.groups,this.grouped=!0,this.rootGroupsIndex=x.groupsIndex}},{key:"treefyData",value:function(){var y=this;this.sorted=this.paged=!1,this.data.forEach(function(k){return k.tableData.childRows=null}),this.treefiedData=[],this.treefiedDataLength=0,this.treeDataMaxLevel=0,(this.searchText||this.columns.some(function(k){return k.tableData.filterValue}))&&(this.data.forEach(function(k){k.tableData.isTreeExpanded=!1}),this.expandTreeForNodes(this.searchedData));var w=function k(S){S.tableData.markedForTreeRemove=!1;var C=y.parentFunc(S,y.data);C?(C.tableData.childRows=C.tableData.childRows||[],C.tableData.childRows.includes(S)||(C.tableData.childRows.push(S),y.treefiedDataLength++),k(C),S.tableData.path=[].concat((0,n.default)(C.tableData.path),[S.tableData.uuid]),y.treeDataMaxLevel=Math.max(y.treeDataMaxLevel,S.tableData.path.length)):y.treefiedData.includes(S)||(y.treefiedData.push(S),y.treefiedDataLength++,S.tableData.path=[S.tableData.uuid])};this.data.forEach(function(k){w(k)});var _=function(S){var C=y.treefiedData;S.tableData.path.forEach(function(M){C.tableData&&C.tableData.childRows&&(C=C.tableData.childRows),Array.isArray(C)&&(C=C.find(function(O){return O.tableData.uuid===M}))}),C.tableData.markedForTreeRemove=!0},x=function k(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){k(C)}),S.tableData.markedForTreeRemove=!1};this.data.forEach(function(k){if(!y.searchText&&!y.columns.some(function(M){return M.tableData.filterValue})&&k.tableData.isTreeExpanded===void 0){var S=typeof y.defaultExpanded=="boolean"?y.defaultExpanded:y.defaultExpanded(k);k.tableData.isTreeExpanded=S}var C=k.tableData.isTreeExpanded;!C&&y.searchedData.indexOf(k)<0&&_(k)}),this.data.forEach(function(k){y.searchedData.indexOf(k)>-1&&x(k)});var T=function k(S){for(var C=S.length-1;C>=0;C--){var M=S[C];M.tableData.childRows&&k(M.tableData.childRows),M.tableData.markedForTreeRemove&&S.splice(C,1)}};T(this.treefiedData),this.treefiedDataLength=this.treefiedData.length,this.treefied=!0}},{key:"sortData",value:function(){var y=this;if(this.paged=!1,this.isDataType("group")){this.sortedData=(0,n.default)(this.groupedData);var w=this.columns.filter(function(S){return S.tableData.groupOrder>-1}).sort(function(S,C){return S.tableData.groupOrder-C.tableData.groupOrder}),_=function(C,M){return M.customSort?C.sort(M.tableData.groupSort==="desc"?function(O,D){return M.customSort(D.value,O.value,"group",M.tableData.groupSort)}:function(O,D){return M.customSort(O.value,D.value,"group",M.tableData.groupSort)}):C.sort(M.tableData.groupSort==="desc"?function(O,D){return y.sort(D.value,O.value,M.type)}:function(O,D){return y.sort(O.value,D.value,M.type)})};this.sortedData=_(this.sortedData,w[0]);var x=function(C){return C.reduce(function(M,O){return M[O.value]=C.findIndex(function(D){return D.value===O.value}),M},{})},T=function S(C,M){C.forEach(function(O){if(O.groups.length>0){var D=w[M];O.groups=_(O.groups,D),O.groupsIndex=x(O.groups),S(O.groups,M+1)}else y.maxColumnSort>0&&y.getOrderByCollection().length>0?O.data=y.sortList(O.data):y.maxColumnSort>0&&(O.data=O.data.sort(function(P,E){return y.data.findIndex(function(I){return I.tableData.id===P.tableData.id})-y.data.findIndex(function(I){return I.tableData.id===E.tableData.id})}))})};T(this.sortedData,1)}else if(this.isDataType("tree")){if(this.sortedData=(0,n.default)(this.treefiedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0){this.sortedData=this.sortList(this.sortedData);var k=function S(C){C.forEach(function(M){M.tableData.childRows&&(M.tableData.childRows=y.sortList(M.tableData.childRows),S(M.tableData.childRows))})};k(this.sortedData)}}else this.isDataType("normal")&&(this.sortedData=(0,n.default)(this.searchedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0&&this.applySort&&(this.sortedData=this.sortList(this.sortedData)));this.sorted=!0}},{key:"pageData",value:function(){if(this.pagedData=(0,n.default)(this.sortedData),this.paging){var y=this.currentPage*this.pageSize,w=y+this.pageSize;this.pagedData=this.pagedData.slice(y,w)}this.paged=!0}}]),v}();e.default=b}(Z_)),Z_}var vR;function bSe(){return vR||(vR=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(nSe),l=t(rSe),i=t(ls),o=t(Ir()),a=t(fc),s=t(cf()),u=t(aSe),c=t(_a()),d=t(iu()),f=t(db()),p=t(fb()),m=t(IM()),g=t(LM()),b=t($M()),v=t(NM()),h=t($a()),y=t(ge),w=oSe(),_=t(aB()),x=M(ds()),T=$5,k=t(ySe()),S=Db();function C(j){if(typeof WeakMap!="function")return null;var z=new WeakMap,B=new WeakMap;return(C=function(R){return R?B:z})(j)}function M(j,z){if(j&&j.__esModule)return j;if(j===null||n(j)!=="object"&&typeof j!="function")return{default:j};var B=C(z);if(B&&B.has(j))return B.get(j);var N={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in j)if(q!=="default"&&Object.prototype.hasOwnProperty.call(j,q)){var Y=R?Object.getOwnPropertyDescriptor(j,q):null;Y&&(Y.get||Y.set)?Object.defineProperty(N,q,Y):N[q]=j[q]}return N.default=j,B&&B.set(j,N),N}function O(j,z){var B=Object.keys(j);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(j);z&&(N=N.filter(function(R){return Object.getOwnPropertyDescriptor(j,R).enumerable})),B.push.apply(B,N)}return B}function D(j){for(var z=1;z"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var I=function(j){(0,g.default)(B,j);var z=P(B);function B(N){var R;(0,f.default)(this,B),R=z.call(this,N),(0,h.default)((0,m.default)(R),"dataManager",new k.default),(0,h.default)((0,m.default)(R),"checkedForFunctions",!1),(0,h.default)((0,m.default)(R),"clearCriteria",function(){R.dataManager.clearCriteria(),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"isRemoteData",function(L){return!Array.isArray((L||R.props).data)}),(0,h.default)((0,m.default)(R),"onAllSelected",function(L){R.dataManager.changeAllSelected(L,R.props.options.selectionProps),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,h.default)((0,m.default)(R),"onGroupSelected",function(L,W){R.dataManager.changeGroupSelected(L,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,h.default)((0,m.default)(R),"onChangeColumnHidden",function(L,W){R.dataManager.changeColumnHidden(L,W),R.setState(R.dataManager.getRenderState(),function(){R.props.onChangeColumnHidden&&R.props.onChangeColumnHidden(L,W)})}),(0,h.default)((0,m.default)(R),"onChangeGroupOrder",function(L){R.dataManager.changeGroupOrder(L.tableData.id),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onChangeOrder",function(L,W,U){R.dataManager.changeColumnOrder(L,W,U);var V=R.dataManager.getOrderByCollection();if(R.isRemoteData()){var te=D({},R.state.query);te.page=0,te.orderBy=R.state.columns.find(function(ee){return ee.tableData.id===L}),te.orderDirection=W,console.warn("Properties orderBy and orderDirection had been deprecated when remote data, please start using orderByCollection instead"),te.orderByCollection=V,R.onQueryChange(te,function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(V)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(V)})}),(0,h.default)((0,m.default)(R),"onPageChange",function(L,W){if(R.isRemoteData()){var U=D({},R.state.query);U.page=W,R.onQueryChange(U,function(){R.props.onPageChange&&R.props.onPageChange(W,U.pageSize)})}else R.dataManager.changeCurrentPage(W),R.setState(R.dataManager.getRenderState(),function(){R.props.onPageChange&&R.props.onPageChange(W,R.state.pageSize)})}),(0,h.default)((0,m.default)(R),"onRowsPerPageChange",function(L){var W=L.target.value;R.dataManager.changePageSize(W);var U=function(){R.props.onPageChange&&R.props.onPageChange(0,W),R.props.onRowsPerPageChange&&R.props.onRowsPerPageChange(W)};if(R.isRemoteData()){var V=D({},R.state.query);V.pageSize=L.target.value,V.page=0,R.onQueryChange(V,U)}else R.dataManager.changeCurrentPage(0),R.setState(R.dataManager.getRenderState(),U)}),(0,h.default)((0,m.default)(R),"onDragEnd",function(L){!L||!L.source||!L.destination||(R.dataManager.changeByDrag(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onColumnDragged&&L.destination.droppableId==="headers"&&L.source.droppableId==="headers"&&R.props.onColumnDragged(L.source.index,L.destination.index)}))}),(0,h.default)((0,m.default)(R),"onGroupExpandChanged",function(L){R.dataManager.changeGroupExpand(L),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onGroupRemoved",function(L,W){var U={combine:null,destination:{droppableId:"headers",index:0},draggableId:L.tableData.id,mode:"FLUID",reason:"DROP",source:{index:W,droppableId:"groups"},type:"DEFAULT"};R.dataManager.changeByDrag(U),R.setState(R.dataManager.getRenderState(),function(){R.props.onGroupRemoved&&R.props.onGroupRemoved(L,W)})}),(0,h.default)((0,m.default)(R),"onEditingApproved",function(L,W,U){L==="add"&&R.props.editable&&R.props.editable.onRowAdd?R.setState({isLoading:!0},function(){R.props.editable.onRowAdd(W).then(function(V){R.setState({isLoading:!1,showAddRow:!1},function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"add"};R.setState({isLoading:!1,errorState:te})})}):L==="update"&&R.props.editable&&R.props.editable.onRowUpdate?R.setState({isLoading:!0},function(){R.props.editable.onRowUpdate(W,U).then(function(V){R.dataManager.changeRowEditing(U),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"update"};R.setState({isLoading:!1,errorState:te})})}):L==="delete"&&R.props.editable&&R.props.editable.onRowDelete?R.setState({isLoading:!0},function(){R.props.editable.onRowDelete(Object.entries(U).reduce(function(V,te){var ee=(0,d.default)(te,2),H=ee[0],Z=ee[1];return H!=="tableData"&&(V[H]=Z),V},{})).then(function(V){R.dataManager.changeRowEditing(U),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"delete"};R.setState({isLoading:!1,errorState:te})})}):L==="bulk"&&R.props.editable&&R.props.editable.onBulkUpdate&&R.setState({isLoading:!0},function(){R.props.editable.onBulkUpdate(R.dataManager.bulkEditChangedRows).then(function(V){R.dataManager.changeBulkEditOpen(!1),R.props.onBulkEditOpen&&R.props.onBulkEditOpen(!1),R.dataManager.clearBulkEditChangedRows(),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"bulk edit"};R.setState({isLoading:!1,errorState:te})})})}),(0,h.default)((0,m.default)(R),"onEditingCanceled",function(L,W){L==="add"?(R.props.editable.onRowAddCancelled&&R.props.editable.onRowAddCancelled(),R.setState({showAddRow:!1})):L==="update"?(R.props.editable.onRowUpdateCancelled&&R.props.editable.onRowUpdateCancelled(),R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState())):L==="delete"&&(R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState()))}),(0,h.default)((0,m.default)(R),"retry",function(){R.onQueryChange(R.state.query)}),(0,h.default)((0,m.default)(R),"onQueryChange",function(L,W){L=D(D(D({},R.state.query),L),{},{error:R.state.errorState}),R.setState({isLoading:!0,errorState:void 0},function(){R.props.data(L).then(function(U){L.totalCount=U.totalCount,L.page=U.page;var V=D(D({},L),{},{totalCount:U.totalCount,page:U.page});R.dataManager.setData(U.data,R.props.options.idSynonym),R.setState(D(D({isLoading:!1,errorState:!1},R.dataManager.getRenderState()),{},{query:V}),function(){W&&W()})}).catch(function(U){var V={message:(0,c.default)(U)==="object"?U.message:U!==void 0?U:R.props.localization.error,errorCause:"query"};R.setState(D({isLoading:!1,errorState:V},R.dataManager.getRenderState()))})})}),(0,h.default)((0,m.default)(R),"onRowSelected",function(L,W,U){R.dataManager.changeRowSelected(L.target.checked,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange(U)})}),(0,h.default)((0,m.default)(R),"onSelectionChange",function(L){if(R.props.onSelectionChange){var W=[],U=function(te){te.forEach(function(ee){ee.tableData.checked&&W.push(ee)})};U(R.state.originalData),R.props.onSelectionChange(W,L)}}),(0,h.default)((0,m.default)(R),"onSearchChangeDebounce",(0,w.debounce)(function(L){if(R.isRemoteData()){var W=D({},R.state.query);W.page=0,W.search=L,R.onQueryChange(W,function(){R.props.onSearchChange&&R.props.onSearchChange(L)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onSearchChange&&R.props.onSearchChange(L)})},R.props.options.debounceInterval)),(0,h.default)((0,m.default)(R),"onFilterChange",function(L,W){R.dataManager.changeFilterValue(L,W),R.setState({},R.onFilterChangeDebounce)}),(0,h.default)((0,m.default)(R),"onFilterChangeDebounce",(0,w.debounce)(function(){if(R.isRemoteData()){var L=D({},R.state.query);L.page=0,L.filters=R.state.columns.filter(function(W){return W.tableData.filterValue}).map(function(W){return{column:W,operator:"=",value:W.tableData.filterValue}}),R.onQueryChange(L,function(){R.props.onFilterChange&&R.props.onFilterChange(L.filters)})}else R.setState(R.dataManager.getRenderState(),function(){if(R.props.onFilterChange){var W=R.state.columns.filter(function(U){return U.tableData.filterValue}).map(function(U){return{column:U,operator:"=",value:U.tableData.filterValue}});R.props.onFilterChange(W)}})},R.props.options.debounceInterval)),(0,h.default)((0,m.default)(R),"onTreeExpandChanged",function(L,W){R.dataManager.changeTreeExpand(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onTreeExpandChange&&R.props.onTreeExpandChange(W,W.tableData.isTreeExpanded)})}),(0,h.default)((0,m.default)(R),"onToggleDetailPanel",function(L,W){R.dataManager.changeDetailPanelVisibility(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onCellEditStarted",function(L,W){R.dataManager.startCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onCellEditFinished",function(L,W){R.dataManager.finishCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onEditRowDataChanged",function(L,W){R.dataManager.setEditRowData(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onColumnResized",function(L,W,U,V){var te=function(Z){return D(D(D({field:Z.field,width:Z.tableData.width,widthPx:Z.tableData.widthPx},Z.id&&{id:Z.id}),Z.minWidth&&{minWidth:Z.minWidth}),Z.maxWidth&&{maxWidth:Z.maxWidth})},ee=R.dataManager.onColumnResized(L,W,U,V);R.setState(R.dataManager.getRenderState(),function(){W===0&&R.props.onColumnResized&&ee.length>0&&R.props.onColumnResized(ee.map(function(H){return te(H)}),R.state.columns.map(function(H){return te(H)}))})}),(0,h.default)((0,m.default)(R),"renderTable",function(L){var W;return y.default.createElement(u.default,{sx:L.sx,style:D(D({},L.options.tableWidth==="variable"&&{width:R.state.tableStyleWidth}),{},{tableLayout:L.options.fixedColumns&&(L.options.fixedColumns.left||L.options.fixedColumns.right)?"fixed":L.options.tableLayout})},L.options.header&&y.default.createElement(L.components.Header,{actions:R.state.actions,columns:R.state.columns,selectedCount:R.state.selectedCount,dataCount:L.parentChildData?R.dataManager.searchedData.length:R.state.columns.some(function(U){return U.tableData.groupOrder>-1})?R.state.groupedDataLength:R.state.data.length,hasDetailPanel:!!L.detailPanel,showActionsColumn:!R.dataManager.bulkEditOpen&&R.state.actions&&R.state.actions.some(function(U){return U.position==="row"||typeof U=="function"}),onAllSelected:R.onAllSelected,onOrderChange:R.onChangeOrder,isTreeData:R.props.parentChildData!==void 0,treeDataMaxLevel:R.state.treeDataMaxLevel,onColumnResized:R.onColumnResized,scrollWidth:R.state.width,sorting:L.options.sorting||R.dataManager.maxColumnSort!==0,allowSorting:R.dataManager.maxColumnSort!==0,orderByCollection:R.dataManager.getOrderByCollection(),tableWidth:(W=L.options.tableWidth)!==null&&W!==void 0?W:"full"}),y.default.createElement(L.components.Body,{actions:R.state.actions,components:R.props.components,renderData:R.state.renderData,data:R.state.data,renderSummaryRow:R.props.renderSummaryRow,currentPage:R.isRemoteData()?0:R.state.currentPage,initialFormData:L.initialFormData,pageSize:R.state.pageSize,columns:R.state.columns,errorState:R.state.errorState,detailPanel:L.detailPanel,options:L.options,getFieldValue:R.dataManager.getFieldValue,isTreeData:R.props.parentChildData!==void 0,onFilterChanged:R.onFilterChange,onRowSelected:R.onRowSelected,onGroupSelected:R.onGroupSelected,onToggleDetailPanel:R.onToggleDetailPanel,onGroupExpandChanged:R.onGroupExpandChanged,onTreeExpandChanged:R.onTreeExpandChanged,onEditingCanceled:R.onEditingCanceled,onEditingApproved:R.onEditingApproved,onRowClick:R.props.onRowClick,onRowDoubleClick:R.props.onRowDoubleClick,showAddRow:R.state.showAddRow,hasAnyEditingRow:!!(R.state.lastEditingRow||R.state.showAddRow),hasDetailPanel:!!L.detailPanel,treeDataMaxLevel:R.state.treeDataMaxLevel,cellEditable:L.cellEditable,onCellEditStarted:R.onCellEditStarted,onCellEditFinished:R.onCellEditFinished,onRowEditStarted:R.onRowEditStarted,bulkEditOpen:R.dataManager.bulkEditOpen,bulkEditChangedRows:R.dataManager.bulkEditChangedRows,onBulkEditRowChanged:R.dataManager.onBulkEditRowChanged,scrollWidth:R.state.width}))}),(0,h.default)((0,m.default)(R),"onRowEditStarted",function(L){var W;(W=R.props.editable)!==null&&W!==void 0&&W.onRowUpdate&&(R.dataManager.changeRowEditing(L,"update"),R.setState(D(D({},R.dataManager.getRenderState()),{},{showAddRow:!1})))}),(0,h.default)((0,m.default)(R),"getColumnsWidth",function(L,W){var U=[],V=x.actionsColumnWidth(L);if(V>0&&(W>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=W)&&U.push(V+"px"),L.options.selection&&W>0){var te=x.selectionMaxWidth(L,R.state.treeDataMaxLevel);U.push(te+"px")}for(var ee=0;ee=0?ee:R.state.columns.length-1-ee];H.tableData&&(typeof H.tableData.width=="number"?U.push(H.tableData.width+"px"):U.push(H.tableData.width))}return"calc("+U.join(" + ")+")"}),(0,h.default)((0,m.default)(R),"getRenderData",function(){return R.props.options.exportAllData?R.state.data:R.state.renderData});var q=R.getProps(N);R.setDataManagerFields(q,!0);var Y=R.dataManager.getRenderState();return R.state=D(D({data:[],errorState:void 0},Y),{},{query:{filters:Y.columns.filter(function(L){return L.tableData.filterValue}).map(function(L){return{column:L,operator:"=",value:L.tableData.filterValue}}),orderBy:Y.columns.find(function(L){return L.tableData.id===Y.orderBy}),orderDirection:Y.orderDirection,orderByCollection:Y.orderByCollection,page:0,pageSize:q.options.pageSize,search:Y.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:q.actions}),R.tableContainerDiv=y.default.createRef(),R}return(0,p.default)(B,[{key:"componentDidMount",value:function(){var R=this;this.setState(D(D({},this.dataManager.getRenderState()),{},{width:this.tableContainerDiv.current.scrollWidth}),function(){R.isRemoteData()&&R.onQueryChange(D(D({},R.state.query),{},{page:R.props.options.initialPage||0})),R.props.onDoubleRowClick!==void 0&&console.warn("Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`"),R.props.options.sorting!==void 0&&console.warn("Property `sorting` has been deprecated, please start using `maxColumnSort` instead. https://github.com/material-table-core/core/pull/619")})}},{key:"setDataManagerFields",value:function(R,q,Y){var L,W=this,U={};if(R.options.persistentGroupingsId&&localStorage){var V=localStorage.getItem("material-table-groupings");V&&(V=JSON.parse(V),V[R.options.persistentGroupingsId]&&V[R.options.persistentGroupingsId].forEach(function(Se){U[Se.field]={groupOrder:Se.groupOrder,groupSort:Se.groupSort,columnOrder:Se.columnOrder}}))}this.dataManager.setTableWidth((L=R.options.tableWidth)!==null&&L!==void 0?L:"full"),this.dataManager.setColumns(R.columns,Y,U),this.dataManager.setDefaultExpanded(R.options.defaultExpanded),this.dataManager.changeRowEditing();var te=R.options,ee=te.clientSorting,H=te.grouping,Z=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(H?1:Z),this.dataManager.setOrderByCollection(),this.isRemoteData(R)?(this.dataManager.changeApplySearch(!1),this.dataManager.changeApplyFilters(!1),this.dataManager.changeApplySort(!1)):(this.dataManager.changeApplySearch(!0),this.dataManager.changeApplyFilters(!0),this.dataManager.changeApplySort(!0),this.dataManager.setData(R.data,R.options.idSynonym));var G=this.dataManager.getDefaultOrderByCollection(),X=R.options.defaultOrderByCollection,Q=[],re="",ae="";if(X&&X.length>0)Q=(0,s.default)(X).slice(0,Z),Q=this.dataManager.sortOrderCollection(Q),re=JSON.stringify(Q),ae=JSON.stringify(G),re!==ae&&this.dataManager.setDefaultOrderByCollection(Q);else{var ie=A(R.columns,Y,this.dataManager.maxColumnSort);Q=(0,s.default)(ie[0]),re=JSON.stringify(Q),ae=JSON.stringify((0,s.default)(ie[1]))}var se=JSON.stringify(this.dataManager.orderByCollection),he=q||!this.isRemoteData()&&Q.length&&re!==ae&&re!==se;he&&Q.length>0&&Z>0&&Q.forEach(function(Se){var Oe=Se.orderBy,Pe=Se.orderDirection,Me=Se.sortOrder;return W.dataManager.changeColumnOrder(Oe,Pe,Me)}),q&&this.dataManager.changeSearchText(R.options.searchText||""),q&&this.dataManager.changeSearchDebounce(R.options.searchDebounceDelay),q&&this.dataManager.changeCurrentPage(R.options.initialPage?R.options.initialPage:0),q&&this.dataManager.changePageSize(R.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:R.options.paging),q&&this.dataManager.changeParentFunc(R.parentChildData),this.dataManager.changeDetailPanelType(R.options.detailPanelType)}},{key:"cleanColumns",value:function(R){return R.map(function(q){var Y=D({},q);return delete Y.tableData,Y})}},{key:"componentDidUpdate",value:function(R){var q=this.cleanColumns(R.columns),Y=this.cleanColumns(this.props.columns),L=!(0,_.default)(q,Y),W=L||!(0,_.default)(R.options,this.props.options);if(this.isRemoteData()||(W=W||!(0,_.default)(R.data,this.props.data)),R.options.pageSize!==this.props.options.pageSize&&this.dataManager.changePageSize(this.props.options.pageSize),W){var U=this.getProps(this.props);this.setDataManagerFields(U,!1,R.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:U.actions}))}var V=this.isRemoteData()?this.state.query.totalCount:this.state.data.length,te=this.isRemoteData()?this.state.query.page:this.state.currentPage,ee=this.isRemoteData()?this.state.query.pageSize:this.state.pageSize;V<=ee*te&&te!==0&&!this.state.isLoading&&this.onPageChange(null,Math.max(0,Math.ceil(V/ee)-1))}},{key:"getProps",value:function(R){var q=this,Y=D({},R||this.props),L=this.props.localization.body;if(Y.options.selection?Y.actions=Y.actions.filter(function(U){return U}).map(function(U){return U.position==="auto"||U.isFreeAction===!1||U.position===void 0&&U.isFreeAction===void 0?typeof U=="function"?{action:U,position:"toolbarOnSelect"}:D(D({},U),{},{position:"toolbarOnSelect"}):U.isFreeAction?typeof U=="function"?{action:U,position:"toolbar"}:D(D({},U),{},{position:"toolbar"}):U}):Y.actions=Y.actions.filter(function(U){return U}).map(function(U){return U.position==="auto"||U.isFreeAction===!1||U.position===void 0&&U.isFreeAction===void 0?typeof U=="function"?{action:U,position:"row"}:D(D({},U),{},{position:"row"}):U.isFreeAction?typeof U=="function"?{action:U,position:"toolbar"}:D(D({},U),{},{position:"toolbar"}):U}),Y.editable){var W;Y.editable.onRowAdd&&Y.actions.push({icon:Y.icons.Add,tooltip:L.addTooltip,position:"toolbar",disabled:!!this.dataManager.lastEditingRow,onClick:function(){q.dataManager.changeRowEditing(),q.state.showAddRow&&q.props.editable.onRowAddCancelled&&q.props.editable.onRowAddCancelled(),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!q.state.showAddRow}))}}),Y.editable.onRowUpdate&&Y.actions.push(function(U){return{icon:Y.icons.Edit,tooltip:Y.editable.editTooltip?Y.editable.editTooltip(U):L.editTooltip,disabled:Y.editable.isEditable&&!Y.editable.isEditable(U),hidden:Y.editable.isEditHidden&&Y.editable.isEditHidden(U),onClick:function(te,ee){q.onRowEditStarted(ee)}}}),Y.editable.onRowDelete&&Y.actions.push(function(U){return{icon:Y.icons.Delete,tooltip:Y.editable.deleteTooltip?Y.editable.deleteTooltip(U):L.deleteTooltip,disabled:Y.editable.isDeletable&&!Y.editable.isDeletable(U),hidden:Y.editable.isDeleteHidden&&Y.editable.isDeleteHidden(U),onClick:function(te,ee){q.dataManager.changeRowEditing(ee,"delete"),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!1}))}}}),Y.editable.onBulkUpdate&&(Y.actions.push({icon:Y.icons.Edit,tooltip:L.bulkEditTooltip,position:"toolbar",hidden:this.dataManager.bulkEditOpen,disabled:Y.isBulkEditable&&Y.isBulkEditable(),onClick:function(){q.dataManager.changeBulkEditOpen(!0),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!0),q.setState(q.dataManager.getRenderState())}}),Y.actions.push({icon:Y.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return q.onEditingApproved("bulk")}}),Y.actions.push({icon:Y.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){q.dataManager.changeBulkEditOpen(!1),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!1),q.dataManager.clearBulkEditChangedRows(),q.setState(q.dataManager.getRenderState())}})),(W=this.state)!==null&&W!==void 0&&W.showAddRow&&Y.editable.onRowAdd&&Y.actions.filter(function(U){return U.position==="row"}).length===0&&Y.actions.push({icon:void 0,position:"row",onClick:function(){},disabled:!0})}return Y}},{key:"renderFooter",value:function(){var R=this.getProps();if(R.options.paging){var q=this.isRemoteData()?Math.min(R.page,Math.floor(R.totalCount/this.state.pageSize)):this.state.currentPage,Y=this.isRemoteData()?R.totalCount:this.state.data.length;return y.default.createElement(u.default,null,y.default.createElement(l.default,{style:{display:"grid"}},y.default.createElement(i.default,{style:{display:"grid"}},y.default.createElement(R.components.Pagination,{sx:{display:"flex",justifyContent:R.options.paginationAlignment?R.options.paginationAlignment:"flex-end",overflowX:"auto","& .MuiTablePagination-displayedRows":{display:"none"}},colSpan:3,count:this.isRemoteData()?this.state.query.totalCount:Y,rowsPerPage:this.state.pageSize,rowsPerPageOptions:R.options.pageSizeOptions,SelectProps:{renderValue:function(W){return y.default.createElement(a.default,{sx:{padding:"0px 5px"}},W+" "+R.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:q,onPageChange:this.onPageChange,onRowsPerPageChange:this.onRowsPerPageChange,ActionsComponent:function(W){return R.options.paginationType==="normal"?y.default.createElement(S.MTablePagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons})):y.default.createElement(S.MTableSteppedPagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons,numberOfPagesAround:R.options.numberOfPagesAround}))},labelRowsPerPage:R.localization.pagination.labelRowsPerPage}))))}}},{key:"render",value:function(){var R=this,q=this.getProps();return y.default.createElement(T.DragDropContext,{onDragEnd:this.onDragEnd,nonce:q.options.cspNonce},y.default.createElement(this.props.components.Container,{style:D({position:"relative"},q.style)},q.options.paginationPosition==="top"||q.options.paginationPosition==="both"?this.renderFooter():null,q.options.toolbar&&y.default.createElement(this.props.components.Toolbar,{actions:q.actions,components:this.props.components,originalData:this.state.originalData,columns:this.state.columns,selectedCount:this.state.selectedCount,getFieldValue:this.dataManager.getFieldValue,data:this.getRenderData,title:q.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),q.options.grouping&&y.default.createElement(this.props.components.Groupbar,{groupColumns:this.state.columns.filter(function(Y){return Y.tableData.groupOrder>-1}).sort(function(Y,L){return Y.tableData.groupOrder-L.tableData.groupOrder}),onSortChanged:this.onChangeGroupOrder,onGroupRemoved:this.onGroupRemoved,onGroupChange:this.props.onGroupChange,persistentGroupingsId:q.options.persistentGroupingsId}),y.default.createElement(S.MTableScrollbar,{double:q.options.doubleHorizontalScroll},y.default.createElement(T.Droppable,{droppableId:"headers",direction:"horizontal"},function(Y,L){var W=R.renderTable(q);return y.default.createElement("div",{ref:Y.innerRef},y.default.createElement("div",{ref:R.tableContainerDiv,style:{maxHeight:q.options.maxBodyHeight,minHeight:q.options.minBodyHeight,overflowY:q.options.overflowY}},R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.right?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,-1*q.options.fixedColumns.right),position:"absolute",top:0,right:0,boxShadow:"-2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white",transform:"translateX(calc(".concat(R.getColumnsWidth(q,-1*q.options.fixedColumns.right)," - 100%))")}},W)):null,y.default.createElement("div",null,W),R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.left?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,q.options.fixedColumns.left),position:"absolute",top:0,left:0,boxShadow:"2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white"},onKeyDown:function(V){V.key==="Tab"&&V.preventDefault()}},W)):null),Y.placeholder)})),(this.state.isLoading||q.isLoading)&&q.options.loadingType==="linear"&&y.default.createElement("div",{style:{position:"relative",width:"100%"}},y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"}},y.default.createElement(r.default,null))),q.options.paginationPosition==="bottom"||q.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||q.isLoading)&&q.options.loadingType==="overlay"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayLoading,{theme:q.theme})),this.state.errorState&&this.state.errorState.errorCause==="query"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayError,{error:this.state.errorState,retry:this.retry,theme:q.theme}))))}}]),B}(y.default.Component);e.default=I;function A(j,z,B){var N=[],R=[];return B>0&&(N=F(j,B)),z&&(R=F(z,B)),[N,R]}function F(j,z){var B=j.filter(function(N){return N.defaultSort&&N.sorting!==!1});return B.slice(0,z).map(function(N,R){return{orderBy:N.tableData?N.tableData.id:j.findIndex(function(q){return q.field===N.field}),orderDirection:N.defaultSort,sortOrder:R+1}})}}(X_)),X_}(function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return c.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return u.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return u.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return u.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return u.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return u.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return u.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return u.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return u.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return u.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return u.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return u.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return u.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return u.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return u.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return s.useLocalizationStore}});var n=t(Ir()),r=t(ge),l=eSe(),i=tSe(),o=t(bSe()),a=sf,s=eg(),u=Db(),c=N5();o.default.defaultProps=l.defaultProps,o.default.propTypes=i.propTypes;var d=(0,s.withContext)(function(f){var p=(0,a.useTheme)(),m=(0,s.useMergeProps)(f),g=m.localization,b=m.options,v=m.components;return r.default.createElement(o.default,(0,n.default)({},f,{theme:p,options:b,components:v,localization:g,ref:f.tableRef}))});e.default=d})(Vz);const xSe=lr(Vz);var F5={},wSe=Cn;Object.defineProperty(F5,"__esModule",{value:!0});var Xq=F5.default=void 0,_Se=wSe(Ta()),TSe=ke,kSe=(0,_Se.default)((0,TSe.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");Xq=F5.default=kSe;const bk=({func:e,children:t})=>{const[n,r]=ge.useState(()=>({status:0,func:e}));return n.status===0&&r(l=>({...l,status:1})),n.status===1&&(r(l=>({...l,status:2})),n.func().then(l=>r(i=>({...i,status:3,result:l}))).catch(()=>r(l=>({...l,status:4})))),ke.jsx(ke.Fragment,{children:n.status===3?t&&t(n.result):n.status===4?ke.jsx(dr,{align:"center",children:"Failed"}):n.status===2?ke.jsx(Ia,{textAlign:"center",children:ke.jsx(Xj,{})}):null})},SSe=e=>ke.jsx(DM.Consumer,{children:t=>ke.jsx(bk,{func:()=>t.getAdditionGraphData(e.graphId),children:n=>ke.jsx(ub,{...n,widgetSize:e.widgetSize})})});var Kq=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(l,i){return l[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),l=this.__entries__[r];return l&&l[1]},t.prototype.set=function(n,r){var l=e(this.__entries__,n);~l?this.__entries__[l][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,l=e(r,n);~l&&r.splice(l,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var l=0,i=this.__entries__;l0},e.prototype.connect_=function(){!xk||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),DSe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!xk||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,l=ASe.some(function(i){return!!~r.indexOf(i)});l&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Zq=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Yd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new zSe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Yd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new BSe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Jq=typeof WeakMap<"u"?new WeakMap:new Kq,eU=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ESe.getInstance(),r=new WSe(t,n,this);Jq.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){eU.prototype[e]=function(){var t;return(t=Jq.get(this))[e].apply(t,arguments)}});var qSe=function(){return typeof yy.ResizeObserver<"u"?yy.ResizeObserver:eU}(),USe=["client","offset","scroll","bounds","margin"];function bR(e){var t=[];return USe.forEach(function(n){e[n]&&t.push(n)}),t}function xR(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var r=e.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(t.indexOf("margin")>-1){var l=getComputedStyle(e);n.margin={top:l?parseInt(l.marginTop):0,right:l?parseInt(l.marginRight):0,bottom:l?parseInt(l.marginBottom):0,left:l?parseInt(l.marginLeft):0}}return n}function HSe(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function VSe(e){return function(t){var n,r;return r=n=function(l){K1(i,l);function i(){for(var a,s=arguments.length,u=new Array(s),c=0;c"u"?Oo:window,k0=["moz","webkit"],Td="AnimationFrame",Xd=Hl["request"+Td],km=Hl["cancel"+Td]||Hl["cancelRequest"+Td];for(var Fp=0;!Xd&&FpT*10&&(O.accumulatedTime=0),O.accumulatedTime===0){O.animationID=null,O.startAnimationIfNecessary();return}var A=(O.accumulatedTime-Math.floor(O.accumulatedTime/T)*T)/T,F=Math.floor(O.accumulatedTime/T),j={},z={},B={},N={};for(var R in P)if(Object.prototype.hasOwnProperty.call(P,R)){var q=P[R];if(typeof q=="number")B[R]=q,N[R]=0,j[R]=q,z[R]=0;else{for(var Y=O.state.lastIdealStyle[R],L=O.state.lastIdealVelocity[R],W=0;WT*10&&(D.accumulatedTime=0),D.accumulatedTime===0){D.animationID=null,D.startAnimationIfNecessary();return}for(var F=(D.accumulatedTime-Math.floor(D.accumulatedTime/T)*T)/T,j=Math.floor(D.accumulatedTime/T),z=[],B=[],N=[],R=[],q=0;qo[h])return-1;if(p>s[h]&&bo[h])return 1;if(m>s[h]&&gS*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}for(var R=(A.accumulatedTime-Math.floor(A.accumulatedTime/S)*S)/S,q=Math.floor(A.accumulatedTime/S),Y=O(A.props.willEnter,A.props.willLeave,A.props.didLeave,A.state.mergedPropsStyles,z,A.state.currentStyles,A.state.currentVelocities,A.state.lastIdealStyles,A.state.lastIdealVelocities),L=Y[0],W=Y[1],U=Y[2],V=Y[3],te=Y[4],ee=0;ee-1}var BCe=zCe,WCe=jb;function qCe(e,t){var n=this.__data__,r=WCe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var UCe=qCe,HCe=MCe,VCe=ICe,GCe=FCe,YCe=BCe,XCe=UCe;function gf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=t4e}var Q5=n4e,r4e=Bb,a4e=Q5;function o4e(e){return e!=null&&a4e(e.length)&&!r4e(e)}var wf=o4e,i4e=wf,l4e=oi;function s4e(e){return l4e(e)&&i4e(e)}var mU=s4e,_y={exports:{}};function u4e(){return!1}var c4e=u4e;_y.exports;(function(e,t){var n=zo,r=c4e,l=t&&!t.nodeType&&t,i=l&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===l,a=o?n.Buffer:void 0,s=a?a.isBuffer:void 0,u=s||r;e.exports=u})(_y,_y.exports);var Yb=_y.exports,d4e=fs,f4e=K5,p4e=oi,h4e="[object Object]",m4e=Function.prototype,g4e=Object.prototype,gU=m4e.toString,v4e=g4e.hasOwnProperty,y4e=gU.call(Object);function b4e(e){if(!p4e(e)||d4e(e)!=h4e)return!1;var t=f4e(e);if(t===null)return!0;var n=v4e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&gU.call(n)==y4e}var J5=b4e;const Mm=lr(J5);var x4e=fs,w4e=Q5,_4e=oi,T4e="[object Arguments]",k4e="[object Array]",S4e="[object Boolean]",C4e="[object Date]",M4e="[object Error]",P4e="[object Function]",O4e="[object Map]",A4e="[object Number]",D4e="[object Object]",E4e="[object RegExp]",R4e="[object Set]",L4e="[object String]",I4e="[object WeakMap]",$4e="[object ArrayBuffer]",N4e="[object DataView]",F4e="[object Float32Array]",j4e="[object Float64Array]",z4e="[object Int8Array]",B4e="[object Int16Array]",W4e="[object Int32Array]",q4e="[object Uint8Array]",U4e="[object Uint8ClampedArray]",H4e="[object Uint16Array]",V4e="[object Uint32Array]",Ur={};Ur[F4e]=Ur[j4e]=Ur[z4e]=Ur[B4e]=Ur[W4e]=Ur[q4e]=Ur[U4e]=Ur[H4e]=Ur[V4e]=!0;Ur[T4e]=Ur[k4e]=Ur[$4e]=Ur[S4e]=Ur[N4e]=Ur[C4e]=Ur[M4e]=Ur[P4e]=Ur[O4e]=Ur[A4e]=Ur[D4e]=Ur[E4e]=Ur[R4e]=Ur[L4e]=Ur[I4e]=!1;function G4e(e){return _4e(e)&&w4e(e.length)&&!!Ur[x4e(e)]}var Y4e=G4e;function X4e(e){return function(t){return e(t)}}var _f=X4e,Ty={exports:{}};Ty.exports;(function(e,t){var n=rU,r=t&&!t.nodeType&&t,l=r&&!0&&e&&!e.nodeType&&e,i=l&&l.exports===r,o=i&&n.process,a=function(){try{var s=l&&l.require&&l.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a})(Ty,Ty.exports);var Xb=Ty.exports,K4e=Y4e,Z4e=_f,IR=Xb,$R=IR&&IR.isTypedArray,Q4e=$R?Z4e($R):K4e,eP=Q4e;function J4e(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var vU=J4e,eOe=Y5,tOe=ug,nOe=Object.prototype,rOe=nOe.hasOwnProperty;function aOe(e,t,n){var r=e[t];(!(rOe.call(e,t)&&tOe(r,n))||n===void 0&&!(t in e))&&eOe(e,t,n)}var tP=aOe,oOe=tP,iOe=Y5;function lOe(e,t,n,r){var l=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=g6e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var wU=b6e,x6e=m6e,w6e=wU,_6e=w6e(x6e),rP=_6e,T6e=yc,k6e=xU,S6e=rP;function C6e(e,t){return S6e(k6e(e,t,T6e),e+"")}var Kb=C6e,M6e=ug,P6e=wf,O6e=cg,A6e=Oi;function D6e(e,t,n){if(!A6e(n))return!1;var r=typeof t;return(r=="number"?P6e(n)&&O6e(t,n.length):r=="string"&&t in n)?M6e(n[t],e):!1}var aP=D6e,E6e=Kb,R6e=aP;function L6e(e){return E6e(function(t,n){var r=-1,l=n.length,i=l>1?n[l-1]:void 0,o=l>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(l--,i):void 0,o&&R6e(n[0],n[1],o)&&(i=l<3?void 0:i,l=1),t=Object(t);++rt?1:e>=t?0:NaN}function lP(e){let t=e,n=e;e.length===1&&(t=(o,a)=>e(o)-a,n=HAe(e));function r(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)<0?s=c+1:u=c}return s}function l(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)>0?u=c:s=c+1}return s}function i(o,a,s,u){s==null&&(s=0),u==null&&(u=o.length);const c=r(o,a,s,u-1);return c>s&&t(o[c-1],a)>-t(o[c],a)?c-1:c}return{left:r,center:i,right:l}}function HAe(e){return(t,n)=>MU(e(t),n)}function VAe(e){return e===null?NaN:+e}const GAe=lP(MU),YAe=GAe.right;lP(VAe).center;var Ek=Math.sqrt(50),Rk=Math.sqrt(10),Lk=Math.sqrt(2);function Ik(e,t,n){var r,l=-1,i,o,a;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0){let s=Math.round(e/a),u=Math.round(t/a);for(s*at&&--u,o=new Array(i=u-s+1);++lt&&--u,o=new Array(i=u-s+1);++l=0?(i>=Ek?10:i>=Rk?5:i>=Lk?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(i>=Ek?10:i>=Rk?5:i>=Lk?2:1)}function $k(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),l=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/l;return i>=Ek?l*=10:i>=Rk?l*=5:i>=Lk&&(l*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?C0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?C0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=QAe.exec(e))?new Yo(t[1],t[2],t[3],1):(t=JAe.exec(e))?new Yo(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=e8e.exec(e))?C0(t[1],t[2],t[3],t[4]):(t=t8e.exec(e))?C0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=n8e.exec(e))?e9(t[1],t[2]/100,t[3]/100,1):(t=r8e.exec(e))?e9(t[1],t[2]/100,t[3]/100,t[4]):YR.hasOwnProperty(e)?ZR(YR[e]):e==="transparent"?new Yo(NaN,NaN,NaN,0):null}function ZR(e){return new Yo(e>>16&255,e>>8&255,e&255,1)}function C0(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yo(e,t,n,r)}function o8e(e){return e instanceof pg||(e=Zu(e)),e?(e=e.rgb(),new Yo(e.r,e.g,e.b,e.opacity)):new Yo}function Qu(e,t,n,r){return arguments.length===1?o8e(e):new Yo(e,t,n,r??1)}function Yo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}uP(Yo,Qu,AU(pg,{brighter:function(e){return e=e==null?ky:Math.pow(ky,e),new Yo(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Pm:Math.pow(Pm,e),new Yo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:QR,formatHex:QR,formatRgb:JR,toString:JR}));function QR(){return"#"+tT(this.r)+tT(this.g)+tT(this.b)}function JR(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function tT(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function e9(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fl(e,t,n,r)}function DU(e){if(e instanceof fl)return new fl(e.h,e.s,e.l,e.opacity);if(e instanceof pg||(e=Zu(e)),!e)return new fl;if(e instanceof fl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,l=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,a=i-l,s=(i+l)/2;return a?(t===i?o=(n-r)/a+(n0&&s<1?0:o,new fl(o,a,s,e.opacity)}function i8e(e,t,n,r){return arguments.length===1?DU(e):new fl(e,t,n,r??1)}function fl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}uP(fl,i8e,AU(pg,{brighter:function(e){return e=e==null?ky:Math.pow(ky,e),new fl(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Pm:Math.pow(Pm,e),new fl(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,l=2*n-r;return new Yo(nT(e>=240?e-240:e+120,l,r),nT(e,l,r),nT(e<120?e+240:e-120,l,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function nT(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const cP=e=>()=>e;function l8e(e,t){return function(n){return e+n*t}}function s8e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function u8e(e){return(e=+e)==1?EU:function(t,n){return n-t?s8e(t,n,e):cP(isNaN(t)?n:t)}}function EU(e,t){var n=t-e;return n?l8e(e,n):cP(isNaN(e)?t:e)}const t9=function e(t){var n=u8e(t);function r(l,i){var o=n((l=Qu(l)).r,(i=Qu(i)).r),a=n(l.g,i.g),s=n(l.b,i.b),u=EU(l.opacity,i.opacity);return function(c){return l.r=o(c),l.g=a(c),l.b=s(c),l.opacity=u(c),l+""}}return r.gamma=e,r}(1);function c8e(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),l;return function(i){for(l=0;ln&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:Sy(r,l)})),n=rT.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function _8e(e,t,n){var r=e[0],l=e[1],i=t[0],o=t[1];return l2?T8e:_8e,s=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(s||(s=a(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(l((u||(u=a(t,e.map(r),Sy)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,x8e),c()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=y8e,c()},d.clamp=function(f){return arguments.length?(o=f?!0:cd,c()):o!==cd},d.interpolate=function(f){return arguments.length?(n=f,c()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,l=p,c()}}function LU(){return RU()(cd,cd)}function k8e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Cy(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Kd(e){return e=Cy(Math.abs(e)),e?e[1]:NaN}function S8e(e,t){return function(n,r){for(var l=n.length,i=[],o=0,a=e[0],s=0;l>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),i.push(n.substring(l-=a,l+a)),!((s+=a+1)>r));)a=e[o=(o+1)%e.length];return i.reverse().join(t)}}function C8e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var M8e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function My(e){if(!(t=M8e.exec(e)))throw new Error("invalid format: "+e);var t;return new pP({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}My.prototype=pP.prototype;function pP(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}pP.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function P8e(e){e:for(var t=e.length,n=1,r=-1,l;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(l+1):e}var IU;function O8e(e,t){var n=Cy(e,t);if(!n)return e+"";var r=n[0],l=n[1],i=l-(IU=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Cy(e,Math.max(0,t+i-1))[0]}function r9(e,t){var n=Cy(e,t);if(!n)return e+"";var r=n[0],l=n[1];return l<0?"0."+new Array(-l).join("0")+r:r.length>l+1?r.slice(0,l+1)+"."+r.slice(l+1):r+new Array(l-r.length+2).join("0")}const a9={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:k8e,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return r9(e*100,t)},r:r9,s:O8e,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function o9(e){return e}var i9=Array.prototype.map,l9=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function A8e(e){var t=e.grouping===void 0||e.thousands===void 0?o9:S8e(i9.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",l=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?o9:C8e(i9.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(d){d=My(d);var f=d.fill,p=d.align,m=d.sign,g=d.symbol,b=d.zero,v=d.width,h=d.comma,y=d.precision,w=d.trim,_=d.type;_==="n"?(h=!0,_="g"):a9[_]||(y===void 0&&(y=12),w=!0,_="g"),(b||f==="0"&&p==="=")&&(b=!0,f="0",p="=");var x=g==="$"?n:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",T=g==="$"?r:/[%p]/.test(_)?o:"",k=a9[_],S=/[defgprs%]/.test(_);y=y===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function C(M){var O=x,D=T,P,E,I;if(_==="c")D=k(M)+D,M="";else{M=+M;var A=M<0||1/M<0;if(M=isNaN(M)?s:k(Math.abs(M),y),w&&(M=P8e(M)),A&&+M==0&&m!=="+"&&(A=!1),O=(A?m==="("?m:a:m==="-"||m==="("?"":m)+O,D=(_==="s"?l9[8+IU/3]:"")+D+(A&&m==="("?")":""),S){for(P=-1,E=M.length;++PI||I>57){D=(I===46?l+M.slice(P+1):M.slice(P))+D,M=M.slice(0,P);break}}}h&&!b&&(M=t(M,1/0));var F=O.length+M.length+D.length,j=F>1)+O+M+D+j.slice(F);break;default:M=j+O+M+D;break}return i(M)}return C.toString=function(){return d+""},C}function c(d,f){var p=u((d=My(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(Kd(f)/3)))*3,g=Math.pow(10,-m),b=l9[8+m/3];return function(v){return p(g*v)+b}}return{format:u,formatPrefix:c}}var M0,Pf,$U;D8e({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function D8e(e){return M0=A8e(e),Pf=M0.format,$U=M0.formatPrefix,M0}function E8e(e){return Math.max(0,-Kd(Math.abs(e)))}function R8e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Kd(t)/3)))*3-Kd(Math.abs(e)))}function L8e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Kd(t)-Kd(e))+1}function I8e(e,t,n,r){var l=$k(e,t,n),i;switch(r=My(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=R8e(l,o))&&(r.precision=i),$U(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=L8e(l,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=E8e(l))&&(r.precision=i-(r.type==="%")*2);break}}return Pf(r)}function $8e(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ik(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var l=t();return I8e(l[0],l[l.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),l=0,i=r.length-1,o=r[l],a=r[i],s,u,c=10;for(a0;){if(u=PU(o,a,n),u===s)return r[l]=o,r[i]=a,t(r);if(u>0)o=Math.floor(o/u)*u,a=Math.ceil(a/u)*u;else if(u<0)o=Math.ceil(o*u)/u,a=Math.floor(a*u)/u;else break;s=u}return e},e}function Ju(){var e=LU();return e.copy=function(){return fP(e,Ju())},Mf.apply(e,arguments),$8e(e)}function NU(e,t){e=e.slice();var n=0,r=e.length-1,l=e[n],i=e[r],o;return i0){for(;f<=p;++f)for(g=1,m=i(f);gc)break;h.push(b)}}else for(;f<=p;++f)for(g=r-1,m=i(f);g>=1;--g)if(b=m*g,!(bc)break;h.push(b)}h.length*20))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return aT.setTime(+i),oT.setTime(+o),e(aT),e(oT),Math.floor(n(aT,oT))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var Py=Wa(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Py.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Wa(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Py};Py.range;const Wl=1e3,yi=Wl*60,ql=yi*60,ec=ql*24,hP=ec*7,d9=ec*30,iT=ec*365;var Iu=Wa(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Wl)},function(e,t){return(t-e)/Wl},function(e){return e.getUTCSeconds()});Iu.range;var mP=Wa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wl)},function(e,t){e.setTime(+e+t*yi)},function(e,t){return(t-e)/yi},function(e){return e.getMinutes()});mP.range;var gP=Wa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wl-e.getMinutes()*yi)},function(e,t){e.setTime(+e+t*ql)},function(e,t){return(t-e)/ql},function(e){return e.getHours()});gP.range;var hg=Wa(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yi)/ec,e=>e.getDate()-1);hg.range;function bc(e){return Wa(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*yi)/hP})}var Qb=bc(0),Oy=bc(1),q8e=bc(2),U8e=bc(3),Zd=bc(4),H8e=bc(5),V8e=bc(6);Qb.range;Oy.range;q8e.range;U8e.range;Zd.range;H8e.range;V8e.range;var vP=Wa(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});vP.range;var as=Wa(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});as.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Wa(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};as.range;var yP=Wa(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*yi)},function(e,t){return(t-e)/yi},function(e){return e.getUTCMinutes()});yP.range;var bP=Wa(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ql)},function(e,t){return(t-e)/ql},function(e){return e.getUTCHours()});bP.range;var mg=Wa(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/ec},function(e){return e.getUTCDate()-1});mg.range;function xc(e){return Wa(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/hP})}var Jb=xc(0),Ay=xc(1),G8e=xc(2),Y8e=xc(3),Qd=xc(4),X8e=xc(5),K8e=xc(6);Jb.range;Ay.range;G8e.range;Y8e.range;Qd.range;X8e.range;K8e.range;var xP=Wa(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});xP.range;var os=Wa(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});os.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Wa(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};os.range;function jU(e,t,n,r,l,i){const o=[[Iu,1,Wl],[Iu,5,5*Wl],[Iu,15,15*Wl],[Iu,30,30*Wl],[i,1,yi],[i,5,5*yi],[i,15,15*yi],[i,30,30*yi],[l,1,ql],[l,3,3*ql],[l,6,6*ql],[l,12,12*ql],[r,1,ec],[r,2,2*ec],[n,1,hP],[t,1,d9],[t,3,3*d9],[e,1,iT]];function a(u,c,d){const f=cb).right(o,f);if(p===o.length)return e.every($k(u/iT,c/iT,d));if(p===0)return Py.every(Math.max($k(u,c,d),1));const[m,g]=o[f/o[p-1][2]53)return null;"w"in H||(H.w=1),"Z"in H?(G=sT(zp(H.y,0,1)),X=G.getUTCDay(),G=X>4||X===0?Ay.ceil(G):Ay(G),G=mg.offset(G,(H.V-1)*7),H.y=G.getUTCFullYear(),H.m=G.getUTCMonth(),H.d=G.getUTCDate()+(H.w+6)%7):(G=lT(zp(H.y,0,1)),X=G.getDay(),G=X>4||X===0?Oy.ceil(G):Oy(G),G=hg.offset(G,(H.V-1)*7),H.y=G.getFullYear(),H.m=G.getMonth(),H.d=G.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),X="Z"in H?sT(zp(H.y,0,1)).getUTCDay():lT(zp(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(X+5)%7:H.w+H.U*7-(X+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,sT(H)):lT(H)}}function k(V,te,ee,H){for(var Z=0,G=te.length,X=ee.length,Q,re;Z=X)return-1;if(Q=te.charCodeAt(Z++),Q===37){if(Q=te.charAt(Z++),re=_[Q in f9?te.charAt(Z++):Q],!re||(H=re(V,ee,H))<0)return-1}else if(Q!=ee.charCodeAt(H++))return-1}return H}function S(V,te,ee){var H=u.exec(te.slice(ee));return H?(V.p=c.get(H[0].toLowerCase()),ee+H[0].length):-1}function C(V,te,ee){var H=p.exec(te.slice(ee));return H?(V.w=m.get(H[0].toLowerCase()),ee+H[0].length):-1}function M(V,te,ee){var H=d.exec(te.slice(ee));return H?(V.w=f.get(H[0].toLowerCase()),ee+H[0].length):-1}function O(V,te,ee){var H=v.exec(te.slice(ee));return H?(V.m=h.get(H[0].toLowerCase()),ee+H[0].length):-1}function D(V,te,ee){var H=g.exec(te.slice(ee));return H?(V.m=b.get(H[0].toLowerCase()),ee+H[0].length):-1}function P(V,te,ee){return k(V,t,te,ee)}function E(V,te,ee){return k(V,n,te,ee)}function I(V,te,ee){return k(V,r,te,ee)}function A(V){return o[V.getDay()]}function F(V){return i[V.getDay()]}function j(V){return s[V.getMonth()]}function z(V){return a[V.getMonth()]}function B(V){return l[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function R(V){return o[V.getUTCDay()]}function q(V){return i[V.getUTCDay()]}function Y(V){return s[V.getUTCMonth()]}function L(V){return a[V.getUTCMonth()]}function W(V){return l[+(V.getUTCHours()>=12)]}function U(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=x(V+="",y);return te.toString=function(){return V},te},parse:function(V){var te=T(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=x(V+="",w);return te.toString=function(){return V},te},utcParse:function(V){var te=T(V+="",!0);return te.toString=function(){return V},te}}}var f9={"-":"",_:" ",0:"0"},qa=/^\s*\d+/,nDe=/^%/,rDe=/[\\^$*+?|[\]().{}]/g;function vr(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i[t.toLowerCase(),n]))}function oDe(e,t,n){var r=qa.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function iDe(e,t,n){var r=qa.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function lDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function sDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function uDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function p9(e,t,n){var r=qa.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function h9(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function cDe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function dDe(e,t,n){var r=qa.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function fDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function m9(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function pDe(e,t,n){var r=qa.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function g9(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function hDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function mDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function gDe(e,t,n){var r=qa.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function vDe(e,t,n){var r=qa.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function yDe(e,t,n){var r=nDe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function bDe(e,t,n){var r=qa.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function xDe(e,t,n){var r=qa.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function v9(e,t){return vr(e.getDate(),t,2)}function wDe(e,t){return vr(e.getHours(),t,2)}function _De(e,t){return vr(e.getHours()%12||12,t,2)}function TDe(e,t){return vr(1+hg.count(as(e),e),t,3)}function zU(e,t){return vr(e.getMilliseconds(),t,3)}function kDe(e,t){return zU(e,t)+"000"}function SDe(e,t){return vr(e.getMonth()+1,t,2)}function CDe(e,t){return vr(e.getMinutes(),t,2)}function MDe(e,t){return vr(e.getSeconds(),t,2)}function PDe(e){var t=e.getDay();return t===0?7:t}function ODe(e,t){return vr(Qb.count(as(e)-1,e),t,2)}function BU(e){var t=e.getDay();return t>=4||t===0?Zd(e):Zd.ceil(e)}function ADe(e,t){return e=BU(e),vr(Zd.count(as(e),e)+(as(e).getDay()===4),t,2)}function DDe(e){return e.getDay()}function EDe(e,t){return vr(Oy.count(as(e)-1,e),t,2)}function RDe(e,t){return vr(e.getFullYear()%100,t,2)}function LDe(e,t){return e=BU(e),vr(e.getFullYear()%100,t,2)}function IDe(e,t){return vr(e.getFullYear()%1e4,t,4)}function $De(e,t){var n=e.getDay();return e=n>=4||n===0?Zd(e):Zd.ceil(e),vr(e.getFullYear()%1e4,t,4)}function NDe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+vr(t/60|0,"0",2)+vr(t%60,"0",2)}function y9(e,t){return vr(e.getUTCDate(),t,2)}function FDe(e,t){return vr(e.getUTCHours(),t,2)}function jDe(e,t){return vr(e.getUTCHours()%12||12,t,2)}function zDe(e,t){return vr(1+mg.count(os(e),e),t,3)}function WU(e,t){return vr(e.getUTCMilliseconds(),t,3)}function BDe(e,t){return WU(e,t)+"000"}function WDe(e,t){return vr(e.getUTCMonth()+1,t,2)}function qDe(e,t){return vr(e.getUTCMinutes(),t,2)}function UDe(e,t){return vr(e.getUTCSeconds(),t,2)}function HDe(e){var t=e.getUTCDay();return t===0?7:t}function VDe(e,t){return vr(Jb.count(os(e)-1,e),t,2)}function qU(e){var t=e.getUTCDay();return t>=4||t===0?Qd(e):Qd.ceil(e)}function GDe(e,t){return e=qU(e),vr(Qd.count(os(e),e)+(os(e).getUTCDay()===4),t,2)}function YDe(e){return e.getUTCDay()}function XDe(e,t){return vr(Ay.count(os(e)-1,e),t,2)}function KDe(e,t){return vr(e.getUTCFullYear()%100,t,2)}function ZDe(e,t){return e=qU(e),vr(e.getUTCFullYear()%100,t,2)}function QDe(e,t){return vr(e.getUTCFullYear()%1e4,t,4)}function JDe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Qd(e):Qd.ceil(e),vr(e.getUTCFullYear()%1e4,t,4)}function e7e(){return"+0000"}function b9(){return"%"}function x9(e){return+e}function w9(e){return Math.floor(+e/1e3)}var Wc,UU,HU;t7e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function t7e(e){return Wc=tDe(e),UU=Wc.format,Wc.parse,HU=Wc.utcFormat,Wc.utcParse,Wc}function n7e(e){return new Date(e)}function r7e(e){return e instanceof Date?+e:+new Date(+e)}function wP(e,t,n,r,l,i,o,a,s,u){var c=LU(),d=c.invert,f=c.domain,p=u(".%L"),m=u(":%S"),g=u("%I:%M"),b=u("%I %p"),v=u("%a %d"),h=u("%b %d"),y=u("%B"),w=u("%Y");function _(x){return(s(x)=1?(n=1,t-1):Math.floor(n*t),l=e[r],i=e[r+1],o=r>0?e[r-1]:2*l-i,a=rn&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:jk(r,l)})),n=uT.lastIndex;return n-1}var CP=B7e;function W7e(e,t,n){for(var r=-1,l=e==null?0:e.length;++r=K7e&&(i=X7e,o=!1,t=new U7e(t));e:for(;++lTu)if(!(Math.abs(c*a-s*u)>Tu)||!l)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-i,p=r-o,m=a*a+s*s,g=f*f+p*p,b=Math.sqrt(m),v=Math.sqrt(d),h=l*Math.tan((Bk-Math.acos((m+d-g)/(2*b*v)))/2),y=h/v,w=h/b;Math.abs(y-1)>Tu&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+l+","+l+",0,0,"+ +(c*f>u*p)+","+(this._x1=e+w*a)+","+(this._y1=t+w*s)}},arc:function(e,t,n,r,l,i){e=+e,t=+t,n=+n,i=!!i;var o=n*Math.cos(r),a=n*Math.sin(r),s=e+o,u=t+a,c=1^i,d=i?r-l:l-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+s+","+u:(Math.abs(this._x1-s)>Tu||Math.abs(this._y1-u)>Tu)&&(this._+="L"+s+","+u),n&&(d<0&&(d=d%Wk+Wk),d>aEe?this._+="A"+n+","+n+",0,1,"+c+","+(e-o)+","+(t-a)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=u):d>Tu&&(this._+="A"+n+","+n+",0,"+ +(d>=Bk)+","+c+","+(this._x1=e+n*Math.cos(l))+","+(this._y1=t+n*Math.sin(l))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function Za(e){return function(){return e}}var T9=1e-12;function rH(e){this._context=e}rH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function OP(e){return new rH(e)}function aH(e){return e[0]}function oH(e){return e[1]}function iH(){var e=aH,t=oH,n=Za(!0),r=null,l=OP,i=null;function o(a){var s,u=a.length,c,d=!1,f;for(r==null&&(i=l(f=PP())),s=0;s<=u;++s)!(s=f;--p)a.point(h[p],y[p]);a.lineEnd(),a.areaEnd()}b&&(h[d]=+e(g,d,c),y[d]=+n(g,d,c),a.point(t?+t(g,d,c):h[d],r?+r(g,d,c):y[d]))}if(v)return a=null,v+""||null}function u(){return iH().defined(l).curve(o).context(i)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Za(+c),t=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Za(+c),s):e},s.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:Za(+c),s):t},s.y=function(c){return arguments.length?(n=typeof c=="function"?c:Za(+c),r=null,s):n},s.y0=function(c){return arguments.length?(n=typeof c=="function"?c:Za(+c),s):n},s.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Za(+c),s):r},s.lineX0=s.lineY0=function(){return u().x(e).y(n)},s.lineY1=function(){return u().x(e).y(r)},s.lineX1=function(){return u().x(t).y(n)},s.defined=function(c){return arguments.length?(l=typeof c=="function"?c:Za(!!c),s):l},s.curve=function(c){return arguments.length?(o=c,i!=null&&(a=o(i)),s):o},s.context=function(c){return arguments.length?(c==null?i=a=null:a=o(i=c),s):i},s}var k9=Array.prototype.slice;function Ks(){}function Ey(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Mx(e){this._context=e}Mx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ey(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iEe(e){return new Mx(e)}function lH(e){this._context=e}lH.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lEe(e){return new lH(e)}function sH(e){this._context=e}sH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function sEe(e){return new sH(e)}function uH(e,t){this._basis=new Mx(e),this._beta=t}uH.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],l=t[0],i=e[n]-r,o=t[n]-l,a=-1,s;++a<=n;)s=a/n,this._basis.point(this._beta*e[a]+(1-this._beta)*(r+s*i),this._beta*t[a]+(1-this._beta)*(l+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const uEe=function e(t){function n(r){return t===1?new Mx(r):new uH(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Ry(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function AP(e,t){this._context=e,this._k=(1-t)/6}AP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ry(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ry(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const cEe=function e(t){function n(r){return new AP(r,t)}return n.tension=function(r){return e(+r)},n}(0);function DP(e,t){this._context=e,this._k=(1-t)/6}DP.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ry(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const dEe=function e(t){function n(r){return new DP(r,t)}return n.tension=function(r){return e(+r)},n}(0);function EP(e,t){this._context=e,this._k=(1-t)/6}EP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ry(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const fEe=function e(t){function n(r){return new EP(r,t)}return n.tension=function(r){return e(+r)},n}(0);function RP(e,t,n){var r=e._x1,l=e._y1,i=e._x2,o=e._y2;if(e._l01_a>T9){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,l=(l*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>T9){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,l,i,o,e._x2,e._y2)}function cH(e,t){this._context=e,this._alpha=t}cH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:RP(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pEe=function e(t){function n(r){return t?new cH(r,t):new AP(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function dH(e,t){this._context=e,this._alpha=t}dH.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:RP(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const hEe=function e(t){function n(r){return t?new dH(r,t):new DP(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function fH(e,t){this._context=e,this._alpha=t}fH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:RP(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const mEe=function e(t){function n(r){return t?new fH(r,t):new EP(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function pH(e){this._context=e}pH.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function gEe(e){return new pH(e)}function S9(e){return e<0?-1:1}function C9(e,t,n){var r=e._x1-e._x0,l=t-e._x1,i=(e._y1-e._y0)/(r||l<0&&-0),o=(n-e._y1)/(l||r<0&&-0),a=(i*l+o*r)/(r+l);return(S9(i)+S9(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(a))||0}function M9(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function cT(e,t,n){var r=e._x0,l=e._y0,i=e._x1,o=e._y1,a=(i-r)/3;e._context.bezierCurveTo(r+a,l+a*t,i-a,o-a*n,i,o)}function Ly(e){this._context=e}Ly.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:cT(this,this._t0,M9(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,cT(this,M9(this,n=C9(this,e,t)),n);break;default:cT(this,this._t0,n=C9(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function hH(e){this._context=new mH(e)}(hH.prototype=Object.create(Ly.prototype)).point=function(e,t){Ly.prototype.point.call(this,t,e)};function mH(e){this._context=e}mH.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,l,i){this._context.bezierCurveTo(t,e,r,n,i,l)}};function vEe(e){return new Ly(e)}function yEe(e){return new hH(e)}function gH(e){this._context=e}gH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=P9(e),l=P9(t),i=0,o=1;o=0;--t)l[t]=(o[t]-l[t+1])/i[t];for(i[n-1]=(e[n]+l[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function xEe(e){return new Px(e,.5)}function wEe(e){return new Px(e,0)}function _Ee(e){return new Px(e,1)}function Jd(e,t){if((o=e.length)>1)for(var n=1,r,l,i=e[t[0]],o,a=i.length;n=0;)n[t]=t;return n}function TEe(e,t){return e[t]}function vH(){var e=Za([]),t=ef,n=Jd,r=TEe;function l(i){var o=e.apply(this,arguments),a,s=i.length,u=o.length,c=new Array(u),d;for(a=0;a0){for(var n,r,l=0,i=e[0].length,o;l0)for(var n,r=0,l,i,o,a,s,u=e[t[0]].length;r0?(l[0]=o,l[1]=o+=i):i<0?(l[1]=a,l[0]=a+=i):(l[0]=0,l[1]=i)}function SEe(e,t){if((l=e.length)>0){for(var n=0,r=e[t[0]],l,i=r.length;n0)||!((i=(l=e[t[0]]).length)>0))){for(var n=0,r=1,l,i,o;ri&&(i=l,n=t);return n}function yH(e){var t=e.map(bH);return ef(e).sort(function(n,r){return t[n]-t[r]})}function bH(e){for(var t=0,n=-1,r=e.length,l;++nh&&(h=u),x=b*b*_,y=Math.max(h/x,x/v),y>w){b-=u;break}w=y}o.push(s={value:b,dice:p1?r:1)},n}(xH);function REe(e,t,n,r,l){var i=e.children,o,a=i.length,s,u=new Array(a+1);for(u[0]=s=o=0;o=f-1){var h=i[d];h.x0=m,h.y0=g,h.x1=b,h.y1=v;return}for(var y=u[d],w=p/2+y,_=d+1,x=f-1;_>>1;u[T]v-g){var C=(m*S+b*k)/p;c(d,_,k,m,g,C,v),c(_,f,S,C,g,b,v)}else{var M=(g*S+v*k)/p;c(d,_,k,m,g,b,M),c(_,f,S,m,M,b,v)}}}function LEe(e,t,n,r,l){(e.depth&1?Ax:Ox)(e,t,n,r,l)}const IEe=function e(t){function n(r,l,i,o,a){if((s=r._squarify)&&s.ratio===t)for(var s,u,c,d,f=-1,p,m=s.length,g=r.value;++f1?r:1)},n}(xH);var dT=new Date,fT=new Date;function Ua(e,t,n,r){function l(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return l.floor=function(i){return e(i=new Date(+i)),i},l.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},l.round=function(i){var o=l(i),a=l.ceil(i);return i-o0))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return dT.setTime(+i),fT.setTime(+o),e(dT),e(fT),Math.floor(n(dT,fT))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var Am=Ua(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Am.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ua(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Am};Am.range;var Iy=1e3,tc=6e4,$y=36e5,_H=864e5,TH=6048e5,Uk=Ua(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Iy)},function(e,t){return(t-e)/Iy},function(e){return e.getUTCSeconds()});Uk.range;var kH=Ua(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Iy)},function(e,t){e.setTime(+e+t*tc)},function(e,t){return(t-e)/tc},function(e){return e.getMinutes()});kH.range;var SH=Ua(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Iy-e.getMinutes()*tc)},function(e,t){e.setTime(+e+t*$y)},function(e,t){return(t-e)/$y},function(e){return e.getHours()});SH.range;var Dx=Ua(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tc)/_H},function(e){return e.getDate()-1});Dx.range;function wc(e){return Ua(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*tc)/TH})}var Ny=wc(0),Dm=wc(1),CH=wc(2),MH=wc(3),nc=wc(4),PH=wc(5),OH=wc(6);Ny.range;Dm.range;CH.range;MH.range;nc.range;PH.range;OH.range;var AH=Ua(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});AH.range;var Zs=Ua(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Zs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ua(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};Zs.range;var DH=Ua(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*tc)},function(e,t){return(t-e)/tc},function(e){return e.getUTCMinutes()});DH.range;var EH=Ua(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*$y)},function(e,t){return(t-e)/$y},function(e){return e.getUTCHours()});EH.range;var Ex=Ua(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/_H},function(e){return e.getUTCDate()-1});Ex.range;function _c(e){return Ua(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/TH})}var Fy=_c(0),Em=_c(1),RH=_c(2),LH=_c(3),rc=_c(4),IH=_c(5),$H=_c(6);Fy.range;Em.range;RH.range;LH.range;rc.range;IH.range;$H.range;var NH=Ua(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});NH.range;var Qs=Ua(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Qs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ua(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};Qs.range;function pT(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function hT(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function qp(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function $Ee(e){var t=e.dateTime,n=e.date,r=e.time,l=e.periods,i=e.days,o=e.shortDays,a=e.months,s=e.shortMonths,u=Up(l),c=Hp(l),d=Up(i),f=Hp(i),p=Up(o),m=Hp(o),g=Up(a),b=Hp(a),v=Up(s),h=Hp(s),y={a:A,A:F,b:j,B:z,c:null,d:L9,e:L9,f:oRe,g:mRe,G:vRe,H:nRe,I:rRe,j:aRe,L:FH,m:iRe,M:lRe,p:B,q:N,Q:N9,s:F9,S:sRe,u:uRe,U:cRe,V:dRe,w:fRe,W:pRe,x:null,X:null,y:hRe,Y:gRe,Z:yRe,"%":$9},w={a:R,A:q,b:Y,B:L,c:null,d:I9,e:I9,f:_Re,g:ERe,G:LRe,H:bRe,I:xRe,j:wRe,L:zH,m:TRe,M:kRe,p:W,q:U,Q:N9,s:F9,S:SRe,u:CRe,U:MRe,V:PRe,w:ORe,W:ARe,x:null,X:null,y:DRe,Y:RRe,Z:IRe,"%":$9},_={a:C,A:M,b:O,B:D,c:P,d:E9,e:E9,f:QEe,g:D9,G:A9,H:R9,I:R9,j:YEe,L:ZEe,m:GEe,M:XEe,p:S,q:VEe,Q:eRe,s:tRe,S:KEe,u:BEe,U:WEe,V:qEe,w:zEe,W:UEe,x:E,X:I,y:D9,Y:A9,Z:HEe,"%":JEe};y.x=x(n,y),y.X=x(r,y),y.c=x(t,y),w.x=x(n,w),w.X=x(r,w),w.c=x(t,w);function x(V,te){return function(ee){var H=[],Z=-1,G=0,X=V.length,Q,re,ae;for(ee instanceof Date||(ee=new Date(+ee));++Z53)return null;"w"in H||(H.w=1),"Z"in H?(G=hT(qp(H.y,0,1)),X=G.getUTCDay(),G=X>4||X===0?Em.ceil(G):Em(G),G=Ex.offset(G,(H.V-1)*7),H.y=G.getUTCFullYear(),H.m=G.getUTCMonth(),H.d=G.getUTCDate()+(H.w+6)%7):(G=pT(qp(H.y,0,1)),X=G.getDay(),G=X>4||X===0?Dm.ceil(G):Dm(G),G=Dx.offset(G,(H.V-1)*7),H.y=G.getFullYear(),H.m=G.getMonth(),H.d=G.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),X="Z"in H?hT(qp(H.y,0,1)).getUTCDay():pT(qp(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(X+5)%7:H.w+H.U*7-(X+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,hT(H)):pT(H)}}function k(V,te,ee,H){for(var Z=0,G=te.length,X=ee.length,Q,re;Z=X)return-1;if(Q=te.charCodeAt(Z++),Q===37){if(Q=te.charAt(Z++),re=_[Q in O9?te.charAt(Z++):Q],!re||(H=re(V,ee,H))<0)return-1}else if(Q!=ee.charCodeAt(H++))return-1}return H}function S(V,te,ee){var H=u.exec(te.slice(ee));return H?(V.p=c[H[0].toLowerCase()],ee+H[0].length):-1}function C(V,te,ee){var H=p.exec(te.slice(ee));return H?(V.w=m[H[0].toLowerCase()],ee+H[0].length):-1}function M(V,te,ee){var H=d.exec(te.slice(ee));return H?(V.w=f[H[0].toLowerCase()],ee+H[0].length):-1}function O(V,te,ee){var H=v.exec(te.slice(ee));return H?(V.m=h[H[0].toLowerCase()],ee+H[0].length):-1}function D(V,te,ee){var H=g.exec(te.slice(ee));return H?(V.m=b[H[0].toLowerCase()],ee+H[0].length):-1}function P(V,te,ee){return k(V,t,te,ee)}function E(V,te,ee){return k(V,n,te,ee)}function I(V,te,ee){return k(V,r,te,ee)}function A(V){return o[V.getDay()]}function F(V){return i[V.getDay()]}function j(V){return s[V.getMonth()]}function z(V){return a[V.getMonth()]}function B(V){return l[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function R(V){return o[V.getUTCDay()]}function q(V){return i[V.getUTCDay()]}function Y(V){return s[V.getUTCMonth()]}function L(V){return a[V.getUTCMonth()]}function W(V){return l[+(V.getUTCHours()>=12)]}function U(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=x(V+="",y);return te.toString=function(){return V},te},parse:function(V){var te=T(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=x(V+="",w);return te.toString=function(){return V},te},utcParse:function(V){var te=T(V+="",!0);return te.toString=function(){return V},te}}}var O9={"-":"",_:" ",0:"0"},Ha=/^\s*\d+/,NEe=/^%/,FEe=/[\\^$*+?|[\]().{}]/g;function yr(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i68?1900:2e3),n+r[0].length):-1}function HEe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function VEe(e,t,n){var r=Ha.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function GEe(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function E9(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function YEe(e,t,n){var r=Ha.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function R9(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function XEe(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function KEe(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ZEe(e,t,n){var r=Ha.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function QEe(e,t,n){var r=Ha.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function JEe(e,t,n){var r=NEe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function eRe(e,t,n){var r=Ha.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function tRe(e,t,n){var r=Ha.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function L9(e,t){return yr(e.getDate(),t,2)}function nRe(e,t){return yr(e.getHours(),t,2)}function rRe(e,t){return yr(e.getHours()%12||12,t,2)}function aRe(e,t){return yr(1+Dx.count(Zs(e),e),t,3)}function FH(e,t){return yr(e.getMilliseconds(),t,3)}function oRe(e,t){return FH(e,t)+"000"}function iRe(e,t){return yr(e.getMonth()+1,t,2)}function lRe(e,t){return yr(e.getMinutes(),t,2)}function sRe(e,t){return yr(e.getSeconds(),t,2)}function uRe(e){var t=e.getDay();return t===0?7:t}function cRe(e,t){return yr(Ny.count(Zs(e)-1,e),t,2)}function jH(e){var t=e.getDay();return t>=4||t===0?nc(e):nc.ceil(e)}function dRe(e,t){return e=jH(e),yr(nc.count(Zs(e),e)+(Zs(e).getDay()===4),t,2)}function fRe(e){return e.getDay()}function pRe(e,t){return yr(Dm.count(Zs(e)-1,e),t,2)}function hRe(e,t){return yr(e.getFullYear()%100,t,2)}function mRe(e,t){return e=jH(e),yr(e.getFullYear()%100,t,2)}function gRe(e,t){return yr(e.getFullYear()%1e4,t,4)}function vRe(e,t){var n=e.getDay();return e=n>=4||n===0?nc(e):nc.ceil(e),yr(e.getFullYear()%1e4,t,4)}function yRe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yr(t/60|0,"0",2)+yr(t%60,"0",2)}function I9(e,t){return yr(e.getUTCDate(),t,2)}function bRe(e,t){return yr(e.getUTCHours(),t,2)}function xRe(e,t){return yr(e.getUTCHours()%12||12,t,2)}function wRe(e,t){return yr(1+Ex.count(Qs(e),e),t,3)}function zH(e,t){return yr(e.getUTCMilliseconds(),t,3)}function _Re(e,t){return zH(e,t)+"000"}function TRe(e,t){return yr(e.getUTCMonth()+1,t,2)}function kRe(e,t){return yr(e.getUTCMinutes(),t,2)}function SRe(e,t){return yr(e.getUTCSeconds(),t,2)}function CRe(e){var t=e.getUTCDay();return t===0?7:t}function MRe(e,t){return yr(Fy.count(Qs(e)-1,e),t,2)}function BH(e){var t=e.getUTCDay();return t>=4||t===0?rc(e):rc.ceil(e)}function PRe(e,t){return e=BH(e),yr(rc.count(Qs(e),e)+(Qs(e).getUTCDay()===4),t,2)}function ORe(e){return e.getUTCDay()}function ARe(e,t){return yr(Em.count(Qs(e)-1,e),t,2)}function DRe(e,t){return yr(e.getUTCFullYear()%100,t,2)}function ERe(e,t){return e=BH(e),yr(e.getUTCFullYear()%100,t,2)}function RRe(e,t){return yr(e.getUTCFullYear()%1e4,t,4)}function LRe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?rc(e):rc.ceil(e),yr(e.getUTCFullYear()%1e4,t,4)}function IRe(){return"+0000"}function $9(){return"%"}function N9(e){return+e}function F9(e){return Math.floor(+e/1e3)}var qc,IP,WH,qH;$Re({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function $Re(e){return qc=$Ee(e),IP=qc.format,WH=qc.parse,qc.utcFormat,qH=qc.utcParse,qc}var Vp={},Gp={},j9;function NRe(){if(j9)return Gp;j9=1,Gp.__esModule=!0,Gp.default=void 0;var e=function(r){if(typeof r=="string")return r;if(r)return r.displayName||r.name||"Component"},t=e;return Gp.default=t,Gp}var z9;function Of(){if(z9)return Vp;z9=1;var e=Cn;Vp.__esModule=!0,Vp.default=void 0;var t=e(NRe()),n=function(i,o){return o+"("+(0,t.default)(i)+")"},r=n;return Vp.default=r,Vp}var ps={},Yp={},B9;function UH(){if(B9)return Yp;B9=1,Yp.__esModule=!0,Yp.default=void 0;var e=function(r,l){return function(i){return i[r]=l,i}},t=e;return Yp.default=t,Yp}var FRe=Cn;ps.__esModule=!0;var $P=ps.default=void 0,jRe=FRe(UH()),zRe=function(t){return(0,jRe.default)("displayName",t)},BRe=zRe;$P=ps.default=BRe;var Xp={},W9;function WRe(){if(W9)return Xp;W9=1;var e=Cn;Xp.__esModule=!0,Xp.default=void 0;var t=ge;e(ps),e(Of());var n=function(i){return function(o){var a=(0,t.createFactory)(o),s=function(c){return a(i(c))};return s}},r=n;return Xp.default=r,Xp}var Rx=Cn;Rx(Ir());Rx(Of());Rx(ps);Rx(WRe());function qRe(e,t){for(var n=-1,r=e==null?0:e.length;++na))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=n&XRe?new HRe:void 0;for(i.set(e,t),i.set(t,e);++d{const e=document.querySelector("head");return e||bn(),e},AE=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function jTe(e,t){const n=ir(()=>NTe(e),[e]),r=ge.useRef(null),l=ge.useRef(null),i=Nn(ja(d=>{const f=l.current;f||bn(),f.textContent=d}),[]),o=Nn(d=>{const f=r.current;f||bn(),f.textContent=d},[]);Jo(()=>{!r.current&&!l.current||bn();const d=AE(t),f=AE(t);return r.current=d,l.current=f,d.setAttribute(`${Vd}-always`,e),f.setAttribute(`${Vd}-dynamic`,e),j_().appendChild(d),j_().appendChild(f),o(n.always),i(n.resting),()=>{const p=m=>{const g=m.current;g||bn(),j_().removeChild(g),m.current=null};p(r),p(l)}},[t,o,i,n.always,n.resting,e]);const a=Nn(()=>i(n.dragging),[i,n.dragging]),s=Nn(d=>{if(d==="DROP"){i(n.dropAnimating);return}i(n.userCancel)},[i,n.dropAnimating,n.userCancel]),u=Nn(()=>{l.current&&i(n.resting)},[i,n.resting]);return ir(()=>({dragging:a,dropping:s,resting:u}),[a,s,u])}function bq(e,t){return Array.from(e.querySelectorAll(t))}var xq=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function Pb(e){return e instanceof xq(e).HTMLElement}function zTe(e,t){const n=`[${Gd.contextId}="${e}"]`,r=bq(document,n);if(!r.length)return null;const l=r.find(i=>i.getAttribute(Gd.draggableId)===t);return!l||!Pb(l)?null:l}function BTe(e){const t=ge.useRef({}),n=ge.useRef(null),r=ge.useRef(null),l=ge.useRef(!1),i=Nn(function(f,p){const m={id:f,focus:p};return t.current[f]=m,function(){const b=t.current;b[f]!==m&&delete b[f]}},[]),o=Nn(function(f){const p=zTe(e,f);p&&p!==document.activeElement&&p.focus()},[e]),a=Nn(function(f,p){n.current===f&&(n.current=p)},[]),s=Nn(function(){r.current||l.current&&(r.current=requestAnimationFrame(()=>{r.current=null;const f=n.current;f&&o(f)}))},[o]),u=Nn(function(f){n.current=null;const p=document.activeElement;p&&p.getAttribute(Gd.draggableId)===f&&(n.current=f)},[]);return Jo(()=>(l.current=!0,function(){l.current=!1;const f=r.current;f&&cancelAnimationFrame(f)}),[]),ir(()=>({register:i,tryRecordFocus:u,tryRestoreFocusRecorded:s,tryShiftRecord:a}),[i,u,s,a])}function WTe(){const e={draggables:{},droppables:{}},t=[];function n(d){return t.push(d),function(){const p=t.indexOf(d);p!==-1&&t.splice(p,1)}}function r(d){t.length&&t.forEach(f=>f(d))}function l(d){return e.draggables[d]||null}function i(d){const f=l(d);return f||bn(),f}const o={register:d=>{e.draggables[d.descriptor.id]=d,r({type:"ADDITION",value:d})},update:(d,f)=>{const p=e.draggables[f.descriptor.id];p&&p.uniqueId===d.uniqueId&&(delete e.draggables[f.descriptor.id],e.draggables[d.descriptor.id]=d)},unregister:d=>{const f=d.descriptor.id,p=l(f);p&&d.uniqueId===p.uniqueId&&(delete e.draggables[f],e.droppables[d.descriptor.droppableId]&&r({type:"REMOVAL",value:d}))},getById:i,findById:l,exists:d=>!!l(d),getAllByType:d=>Object.values(e.draggables).filter(f=>f.descriptor.type===d)};function a(d){return e.droppables[d]||null}function s(d){const f=a(d);return f||bn(),f}const u={register:d=>{e.droppables[d.descriptor.id]=d},unregister:d=>{const f=a(d.descriptor.id);f&&d.uniqueId===f.uniqueId&&delete e.droppables[d.descriptor.id]},getById:s,findById:a,exists:d=>!!a(d),getAllByType:d=>Object.values(e.droppables).filter(f=>f.descriptor.type===d)};function c(){e.draggables={},e.droppables={},t.length=0}return{draggable:o,droppable:u,subscribe:n,clean:c}}function qTe(){const e=ir(WTe,[]);return ge.useEffect(()=>function(){Je.version.startsWith("16")||Je.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var D5=Je.createContext(null),gy=()=>{const e=document.body;return e||bn(),e};const UTe={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var HTe=UTe;const VTe=e=>`rfd-announcement-${e}`;function GTe(e){const t=ir(()=>VTe(e),[e]),n=ge.useRef(null);return ge.useEffect(function(){const i=document.createElement("div");return n.current=i,i.id=t,i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true"),Ie(i.style,HTe),gy().appendChild(i),function(){setTimeout(function(){const s=gy();s.contains(i)&&s.removeChild(i),i===n.current&&(n.current=null)})}},[t]),Nn(l=>{const i=n.current;if(i){i.textContent=l;return}},[])}let wq=0;const _q={separator:"::"};function YTe(){wq=0}function XTe(e,t){return t===void 0&&(t=_q),ir(()=>`${e}${t.separator}${wq++}`,[t.separator,e])}function KTe(e,t){t===void 0&&(t=_q);const n=Je.useId();return ir(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}var E5="useId"in Je?KTe:XTe;function ZTe(e){let{contextId:t,uniqueId:n}=e;return`rfd-hidden-text-${t}-${n}`}function QTe(e){let{contextId:t,text:n}=e;const r=E5("hidden-text",{separator:"-"}),l=ir(()=>ZTe({contextId:t,uniqueId:r}),[r,t]);return ge.useEffect(function(){const o=document.createElement("div");return o.id=l,o.textContent=n,o.style.display="none",gy().appendChild(o),function(){const s=gy();s.contains(o)&&s.removeChild(o)}},[l,n]),l}var Ob=Je.createContext(null);function Tq(e){const t=ge.useRef(e);return ge.useEffect(()=>{t.current=e}),t}function JTe(){let e=null;function t(){return!!e}function n(o){return o===e}function r(o){e&&bn();const a={abandon:o};return e=a,a}function l(){e||bn(),e=null}function i(){e&&(e.abandon(),l())}return{isClaimed:t,isActive:n,claim:r,release:l,tryAbandon:i}}function _m(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const e3e=9,t3e=13,R5=27,kq=32,n3e=33,r3e=34,a3e=35,o3e=36,i3e=37,l3e=38,s3e=39,u3e=40,c3e={[t3e]:!0,[e3e]:!0};var Sq=e=>{c3e[e.keyCode]&&e.preventDefault()};const d3e=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(r=>`on${r}`in document)||e})();var Ab=d3e;const Cq=0,DE=5;function f3e(e,t){return Math.abs(t.x-e.x)>=DE||Math.abs(t.y-e.y)>=DE}const EE={type:"IDLE"};function p3e(e){let{cancel:t,completed:n,getPhase:r,setPhase:l}=e;return[{eventName:"mousemove",fn:i=>{const{button:o,clientX:a,clientY:s}=i;if(o!==Cq)return;const u={x:a,y:s},c=r();if(c.type==="DRAGGING"){i.preventDefault(),c.actions.move(u);return}c.type!=="PENDING"&&bn();const d=c.point;if(!f3e(d,u))return;i.preventDefault();const f=c.actions.fluidLift(u);l({type:"DRAGGING",actions:f})}},{eventName:"mouseup",fn:i=>{const o=r();if(o.type!=="DRAGGING"){t();return}i.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:i=>{r().type==="DRAGGING"&&i.preventDefault(),t()}},{eventName:"keydown",fn:i=>{if(r().type==="PENDING"){t();return}if(i.keyCode===R5){i.preventDefault(),t();return}Sq(i)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:i=>{const o=r();if(o.type==="IDLE"&&bn(),o.actions.shouldRespectForcePress()){t();return}i.preventDefault()}},{eventName:Ab,fn:t}]}function Mq(e){const t=ge.useRef(EE),n=ge.useRef(qs),r=ir(()=>({eventName:"mousedown",fn:function(d){if(d.defaultPrevented||d.button!==Cq||d.ctrlKey||d.metaKey||d.shiftKey||d.altKey)return;const f=e.findClosestDraggableId(d);if(!f)return;const p=e.tryGetLock(f,o,{sourceEvent:d});if(!p)return;d.preventDefault();const m={x:d.clientX,y:d.clientY};n.current(),u(p,m)}}),[e]),l=ir(()=>({eventName:"webkitmouseforcewillbegin",fn:c=>{if(c.defaultPrevented)return;const d=e.findClosestDraggableId(c);if(!d)return;const f=e.findOptionsForDraggable(d);f&&(f.shouldRespectForcePress||e.canGetLock(d)&&c.preventDefault())}}),[e]),i=Nn(function(){const d={passive:!1,capture:!0};n.current=vi(window,[l,r],d)},[l,r]),o=Nn(()=>{t.current.type!=="IDLE"&&(t.current=EE,n.current(),i())},[i]),a=Nn(()=>{const c=t.current;o(),c.type==="DRAGGING"&&c.actions.cancel({shouldBlockNextClick:!0}),c.type==="PENDING"&&c.actions.abort()},[o]),s=Nn(function(){const d={capture:!0,passive:!1},f=p3e({cancel:a,completed:o,getPhase:()=>t.current,setPhase:p=>{t.current=p}});n.current=vi(window,f,d)},[a,o]),u=Nn(function(d,f){t.current.type!=="IDLE"&&bn(),t.current={type:"PENDING",point:f,actions:d},s()},[s]);Jo(function(){return i(),function(){n.current()}},[i])}function h3e(){}const m3e={[r3e]:!0,[n3e]:!0,[o3e]:!0,[a3e]:!0};function g3e(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:l=>{if(l.keyCode===R5){l.preventDefault(),n();return}if(l.keyCode===kq){l.preventDefault(),r();return}if(l.keyCode===u3e){l.preventDefault(),e.moveDown();return}if(l.keyCode===l3e){l.preventDefault(),e.moveUp();return}if(l.keyCode===s3e){l.preventDefault(),e.moveRight();return}if(l.keyCode===i3e){l.preventDefault(),e.moveLeft();return}if(m3e[l.keyCode]){l.preventDefault();return}Sq(l)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Ab,fn:n}]}function Pq(e){const t=ge.useRef(h3e),n=ir(()=>({eventName:"keydown",fn:function(i){if(i.defaultPrevented||i.keyCode!==kq)return;const o=e.findClosestDraggableId(i);if(!o)return;const a=e.tryGetLock(o,c,{sourceEvent:i});if(!a)return;i.preventDefault();let s=!0;const u=a.snapLift();t.current();function c(){s||bn(),s=!1,t.current(),r()}t.current=vi(window,g3e(u,c),{capture:!0,passive:!1})}}),[e]),r=Nn(function(){const i={passive:!1,capture:!0};t.current=vi(window,[n],i)},[n]);Jo(function(){return r(),function(){t.current()}},[r])}const z_={type:"IDLE"},v3e=120,y3e=.15;function b3e(e){let{cancel:t,getPhase:n}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:r=>{r.preventDefault()}},{eventName:"keydown",fn:r=>{if(n().type!=="DRAGGING"){t();return}r.keyCode===R5&&r.preventDefault(),t()}},{eventName:Ab,fn:t}]}function x3e(e){let{cancel:t,completed:n,getPhase:r}=e;return[{eventName:"touchmove",options:{capture:!1},fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}i.hasMoved=!0;const{clientX:o,clientY:a}=l.touches[0],s={x:o,y:a};l.preventDefault(),i.actions.move(s)}},{eventName:"touchend",fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}l.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:l=>{if(r().type!=="DRAGGING"){t();return}l.preventDefault(),t()}},{eventName:"touchforcechange",fn:l=>{const i=r();i.type==="IDLE"&&bn();const o=l.touches[0];if(!o||!(o.force>=y3e))return;const s=i.actions.shouldRespectForcePress();if(i.type==="PENDING"){s&&t();return}if(s){if(i.hasMoved){l.preventDefault();return}t();return}l.preventDefault()}},{eventName:Ab,fn:t}]}function Oq(e){const t=ge.useRef(z_),n=ge.useRef(qs),r=Nn(function(){return t.current},[]),l=Nn(function(p){t.current=p},[]),i=ir(()=>({eventName:"touchstart",fn:function(p){if(p.defaultPrevented)return;const m=e.findClosestDraggableId(p);if(!m)return;const g=e.tryGetLock(m,a,{sourceEvent:p});if(!g)return;const b=p.touches[0],{clientX:v,clientY:h}=b,y={x:v,y:h};n.current(),d(g,y)}}),[e]),o=Nn(function(){const p={capture:!0,passive:!1};n.current=vi(window,[i],p)},[i]),a=Nn(()=>{const f=t.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),l(z_),n.current(),o())},[o,l]),s=Nn(()=>{const f=t.current;a(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[a]),u=Nn(function(){const p={capture:!0,passive:!1},m={cancel:s,completed:a,getPhase:r},g=vi(window,x3e(m),p),b=vi(window,b3e(m),p);n.current=function(){g(),b()}},[s,r,a]),c=Nn(function(){const p=r();p.type!=="PENDING"&&bn();const m=p.actions.fluidLift(p.point);l({type:"DRAGGING",actions:m,hasMoved:!1})},[r,l]),d=Nn(function(p,m){r().type!=="IDLE"&&bn();const g=setTimeout(c,v3e);l({type:"PENDING",point:m,actions:p,longPressTimerId:g}),u()},[u,r,l,c]);Jo(function(){return o(),function(){n.current();const m=r();m.type==="PENDING"&&(clearTimeout(m.longPressTimerId),l(z_))}},[r,o,l]),Jo(function(){return vi(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const w3e=["input","button","textarea","select","option","optgroup","video","audio"];function Aq(e,t){if(t==null)return!1;if(w3e.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:Aq(e,t.parentElement)}function _3e(e,t){const n=t.target;return Pb(n)?Aq(e,n):!1}var T3e=e=>zi(e.getBoundingClientRect()).center;function k3e(e){return e instanceof xq(e).Element}const S3e=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(r=>r in Element.prototype)||e})();function Dq(e,t){return e==null?null:e[S3e](t)?e:Dq(e.parentElement,t)}function C3e(e,t){return e.closest?e.closest(t):Dq(e,t)}function M3e(e){return`[${Gd.contextId}="${e}"]`}function P3e(e,t){const n=t.target;if(!k3e(n))return null;const r=M3e(e),l=C3e(n,r);return!l||!Pb(l)?null:l}function O3e(e,t){const n=P3e(e,t);return n?n.getAttribute(Gd.draggableId):null}function A3e(e,t){const n=`[${gk.contextId}="${e}"]`,l=bq(document,n).find(i=>i.getAttribute(gk.id)===t);return!l||!Pb(l)?null:l}function D3e(e){e.preventDefault()}function b0(e){let{expected:t,phase:n,isLockActive:r,shouldWarn:l}=e;return!(!r()||t!==n)}function Eq(e){let{lockAPI:t,store:n,registry:r,draggableId:l}=e;if(t.isClaimed())return!1;const i=r.draggable.findById(l);return!(!i||!i.options.isEnabled||!mq(n.getState(),l))}function E3e(e){let{lockAPI:t,contextId:n,store:r,registry:l,draggableId:i,forceSensorStop:o,sourceEvent:a}=e;if(!Eq({lockAPI:t,store:r,registry:l,draggableId:i}))return null;const u=l.draggable.getById(i),c=A3e(n,u.descriptor.id);if(!c||a&&!u.options.canDragInteractiveElements&&_3e(c,a))return null;const d=t.claim(o||qs);let f="PRE_DRAG";function p(){return u.options.shouldRespectForcePress}function m(){return t.isActive(d)}function g(x,T){b0({expected:x,phase:f,isLockActive:m,shouldWarn:!0})&&r.dispatch(T())}const b=g.bind(null,"DRAGGING");function v(x){function T(){t.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(T(),bn()),r.dispatch(b_e(x.liftActionArgs)),f="DRAGGING";function k(S,C){if(C===void 0&&(C={shouldBlockNextClick:!1}),x.cleanup(),C.shouldBlockNextClick){const M=vi(window,[{eventName:"click",fn:D3e,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(M)}T(),r.dispatch(lq({reason:S}))}return{isActive:()=>b0({expected:"DRAGGING",phase:f,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:p,drop:S=>k("DROP",S),cancel:S=>k("CANCEL",S),...x.actions}}function h(x){const T=gm(S=>{b(()=>iq({client:S}))});return{...v({liftActionArgs:{id:i,clientSelection:x,movementMode:"FLUID"},cleanup:()=>T.cancel(),actions:{move:T}}),move:T}}function y(){const x={moveUp:()=>b(P_e),moveRight:()=>b(A_e),moveDown:()=>b(O_e),moveLeft:()=>b(D_e)};return v({liftActionArgs:{id:i,clientSelection:T3e(c),movementMode:"SNAP"},cleanup:qs,actions:x})}function w(){b0({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!0})&&t.release()}return{isActive:()=>b0({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:p,fluidLift:h,snapLift:y,abort:w}}const R3e=[Mq,Pq,Oq];function L3e(e){let{contextId:t,store:n,registry:r,customSensors:l,enableDefaultSensors:i}=e;const o=[...i?R3e:[],...l||[]],a=ge.useState(()=>JTe())[0],s=Nn(function(v,h){_m(v)&&!_m(h)&&a.tryAbandon()},[a]);Jo(function(){let v=n.getState();return n.subscribe(()=>{const y=n.getState();s(v,y),v=y})},[a,n,s]),Jo(()=>a.tryAbandon,[a.tryAbandon]);const u=Nn(b=>Eq({lockAPI:a,registry:r,store:n,draggableId:b}),[a,r,n]),c=Nn((b,v,h)=>E3e({lockAPI:a,registry:r,contextId:t,store:n,draggableId:b,forceSensorStop:v||null,sourceEvent:h&&h.sourceEvent?h.sourceEvent:null}),[t,a,r,n]),d=Nn(b=>O3e(t,b),[t]),f=Nn(b=>{const v=r.draggable.findById(b);return v?v.options:null},[r.draggable]),p=Nn(function(){a.isClaimed()&&(a.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(k5()))},[a,n]),m=Nn(()=>a.isClaimed(),[a]),g=ir(()=>({canGetLock:u,tryGetLock:c,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:m}),[u,c,d,f,p,m]);for(let b=0;b({onBeforeCapture:t=>{const n=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};Je.version.startsWith("16")||Je.version.startsWith("17")?n():cc.flushSync(n)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),$3e=e=>({...wm,...e.autoScrollerOptions,durationDampening:{...wm.durationDampening,...e.autoScrollerOptions}});function Tp(e){return e.current||bn(),e.current}function N3e(e){const{contextId:t,setCallbacks:n,sensors:r,nonce:l,dragHandleUsageInstructions:i}=e,o=ge.useRef(null),a=Tq(e),s=Nn(()=>I3e(a.current),[a]),u=Nn(()=>$3e(a.current),[a]),c=GTe(t),d=QTe({contextId:t,text:i}),f=jTe(t,l),p=Nn(C=>{Tp(o).dispatch(C)},[]),m=ir(()=>iE({publishWhileDragging:w_e,updateDroppableScroll:T_e,updateDroppableIsEnabled:k_e,updateDroppableIsCombineEnabled:S_e,collectionStarting:__e},p),[p]),g=qTe(),b=ir(()=>gTe(g,m),[g,m]),v=ir(()=>RTe({scrollWindow:vTe,scrollDroppable:b.scrollDroppable,getAutoScrollerOptions:u,...iE({move:iq},p)}),[b.scrollDroppable,p,u]),h=BTe(t),y=ir(()=>fTe({announce:c,autoScroller:v,dimensionMarshal:b,focusMarshal:h,getResponders:s,styleMarshal:f}),[c,v,b,h,s,f]);o.current=y;const w=Nn(()=>{const C=Tp(o);C.getState().phase!=="IDLE"&&C.dispatch(k5())},[]),_=Nn(()=>{const C=Tp(o).getState();return C.phase==="DROP_ANIMATING"?!0:C.phase==="IDLE"?!1:C.isDragging},[]),x=ir(()=>({isDragging:_,tryAbort:w}),[_,w]);n(x);const T=Nn(C=>mq(Tp(o).getState(),C),[]),k=Nn(()=>_u(Tp(o).getState()),[]),S=ir(()=>({marshal:b,focus:h,contextId:t,canLift:T,isMovementAllowed:k,dragHandleUsageInstructionsId:d,registry:g}),[t,b,d,h,T,k,g]);return L3e({contextId:t,store:y,registry:g,customSensors:r||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),ge.useEffect(()=>w,[w]),Je.createElement(Ob.Provider,{value:S},Je.createElement(K2e,{context:D5,store:y},e.children))}let Rq=0;function F3e(){Rq=0}function j3e(){return ir(()=>`${Rq++}`,[])}function z3e(){return Je.useId()}var B3e="useId"in Je?z3e:j3e;function W3e(){"useId"in Je||(F3e(),YTe())}function q3e(e){const t=B3e(),n=e.dragHandleUsageInstructions||ov.dragHandleUsageInstructions;return Je.createElement(lwe,null,r=>Je.createElement(N3e,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const RE={dragging:5e3,dropAnimating:4500},U3e=(e,t)=>t?Nh.drop(t.duration):e?Nh.snap:Nh.fluid,H3e=(e,t)=>{if(e)return t?xm.opacity.drop:xm.opacity.combining},V3e=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function G3e(e){const n=e.dimension.client,{offset:r,combineWith:l,dropping:i}=e,o=!!l,a=V3e(e),s=!!i,u=s?hk.drop(r,o):hk.moveTo(r);return{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:U3e(a,i),transform:u,opacity:H3e(o,s),zIndex:s?RE.dropAnimating:RE.dragging,pointerEvents:"none"}}function Y3e(e){return{transform:hk.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function X3e(e){return e.type==="DRAGGING"?G3e(e):Y3e(e)}function K3e(e,t,n){n===void 0&&(n=za);const r=window.getComputedStyle(t),l=t.getBoundingClientRect(),i=IW(l,r),o=fy(i,n),a={client:i,tagName:t.tagName.toLowerCase(),display:r.display},s={x:i.marginBox.width,y:i.marginBox.height};return{descriptor:e,placeholder:a,displaceBy:s,client:i,page:o}}function Z3e(e){const t=E5("draggable"),{descriptor:n,registry:r,getDraggableRef:l,canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}=e,s=ir(()=>({canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}),[i,a,o]),u=Nn(p=>{const m=l();return m||bn(),K3e(n,m,p)},[n,l]),c=ir(()=>({uniqueId:t,descriptor:n,options:s,getDimension:u}),[n,u,s,t]),d=ge.useRef(c),f=ge.useRef(!0);Jo(()=>(r.draggable.register(d.current),()=>r.draggable.unregister(d.current)),[r.draggable]),Jo(()=>{if(f.current){f.current=!1;return}const p=d.current;d.current=c,r.draggable.update(c,p)},[c,r.draggable])}var L5=Je.createContext(null);function vy(e){const t=ge.useContext(e);return t||bn(),t}function Q3e(e){e.preventDefault()}const J3e=e=>{const t=ge.useRef(null),n=Nn(function(x){x===void 0&&(x=null),t.current=x},[]),r=Nn(()=>t.current,[]),{contextId:l,dragHandleUsageInstructionsId:i,registry:o}=vy(Ob),{type:a,droppableId:s}=vy(L5),u=ir(()=>({id:e.draggableId,index:e.index,type:a,droppableId:s}),[e.draggableId,e.index,a,s]),{children:c,draggableId:d,isEnabled:f,shouldRespectForcePress:p,canDragInteractiveElements:m,isClone:g,mapped:b,dropAnimationFinished:v}=e;if(!g){const x=ir(()=>({descriptor:u,registry:o,getDraggableRef:r,canDragInteractiveElements:m,shouldRespectForcePress:p,isEnabled:f}),[u,o,r,m,p,f]);Z3e(x)}const h=ir(()=>f?{tabIndex:0,role:"button","aria-describedby":i,"data-rfd-drag-handle-draggable-id":d,"data-rfd-drag-handle-context-id":l,draggable:!1,onDragStart:Q3e}:null,[l,i,d,f]),y=Nn(x=>{b.type==="DRAGGING"&&b.dropping&&x.propertyName==="transform"&&(Je.version.startsWith("16")||Je.version.startsWith("17")?v():cc.flushSync(v))},[v,b]),w=ir(()=>{const x=X3e(b),T=b.type==="DRAGGING"&&b.dropping?y:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":l,"data-rfd-draggable-id":d,style:x,onTransitionEnd:T},dragHandleProps:h}},[l,h,d,b,y,n]),_=ir(()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}),[u.droppableId,u.id,u.index,u.type]);return Je.createElement(Je.Fragment,null,c(w,b.snapshot,_))};var eke=J3e,Lq=(e,t)=>e===t,Iq=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};const tke=e=>e.combine?e.combine.draggableId:null,nke=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function rke(){const e=ja((l,i)=>({x:l,y:i})),t=ja(function(l,i,o,a,s){return o===void 0&&(o=null),a===void 0&&(a=null),s===void 0&&(s=null),{isDragging:!0,isClone:i,isDropAnimating:!!s,dropAnimation:s,mode:l,draggingOver:o,combineWith:a,combineTargetFor:null}}),n=ja(function(l,i,o,a,s,u,c){return s===void 0&&(s=null),u===void 0&&(u=null),c===void 0&&(c=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:u,mode:i,offset:l,dimension:o,forceShouldAnimate:c,snapshot:t(i,a,s,u,null)}}});return(l,i)=>{if(_m(l)){if(l.critical.draggable.id!==i.draggableId)return null;const o=l.current.client.offset,a=l.dimensions.draggables[i.draggableId],s=Qo(l.impact),u=nke(l.impact),c=l.forceShouldAnimate;return n(e(o.x,o.y),l.movementMode,a,i.isClone,s,u,c)}if(l.phase==="DROP_ANIMATING"){const o=l.completed;if(o.result.draggableId!==i.draggableId)return null;const a=i.isClone,s=l.dimensions.draggables[i.draggableId],u=o.result,c=u.mode,d=Iq(u),f=tke(u),m={duration:l.dropDuration,curve:C5.drop,moveTo:l.newHomeClientOffset,opacity:f?xm.opacity.drop:null,scale:f?xm.scale.drop:null};return{mapped:{type:"DRAGGING",offset:l.newHomeClientOffset,dimension:s,dropping:m,draggingOver:d,combineWith:f,mode:c,forceShouldAnimate:null,snapshot:t(c,a,d,f,m)}}}return null}}function $q(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const ake={mapped:{type:"SECONDARY",offset:za,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:$q(null)}};function oke(){const e=ja((o,a)=>({x:o,y:a})),t=ja($q),n=ja(function(o,a,s){return a===void 0&&(a=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:a,shouldAnimateDisplacement:s,snapshot:t(a)}}}),r=o=>o?n(za,o,!0):null,l=(o,a,s,u)=>{const c=s.displaced.visible[o],d=!!(u.inVirtualList&&u.effected[o]),f=Sb(s),p=f&&f.draggableId===o?a:null;if(!c){if(!d)return r(p);if(s.displaced.invisible[o])return null;const b=ff(u.displacedBy.point),v=e(b.x,b.y);return n(v,p,!0)}if(d)return r(p);const m=s.displacedBy.point,g=e(m.x,m.y);return n(g,p,c.shouldAnimate)};return(o,a)=>{if(_m(o))return o.critical.draggable.id===a.draggableId?null:l(a.draggableId,o.critical.draggable.id,o.impact,o.afterCritical);if(o.phase==="DROP_ANIMATING"){const s=o.completed;return s.result.draggableId===a.draggableId?null:l(a.draggableId,s.result.draggableId,s.impact,s.afterCritical)}return null}}const ike=()=>{const e=rke(),t=oke();return(r,l)=>e(r,l)||t(r,l)||ake},lke={dropAnimationFinished:sq},ske=RW(ike,lke,null,{context:D5,areStatePropsEqual:Lq})(eke);var uke=ske;function Nq(e){return vy(L5).isUsingCloneFor===e.draggableId&&!e.isClone?null:Je.createElement(uke,e)}function cke(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,r=!!e.shouldRespectForcePress;return Je.createElement(Nq,Ie({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}const Fq=e=>t=>e===t,dke=Fq("scroll"),fke=Fq("auto"),LE=(e,t)=>t(e.overflowX)||t(e.overflowY),pke=e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return LE(n,dke)||LE(n,fke)},hke=()=>!1,jq=e=>e==null?null:e===document.body?hke()?e:null:e===document.documentElement?null:pke(e)?e:jq(e.parentElement);var mke=jq,vk=e=>({x:e.scrollLeft,y:e.scrollTop});const zq=e=>e?window.getComputedStyle(e).position==="fixed"?!0:zq(e.parentElement):!1;var gke=e=>{const t=mke(e),n=zq(e);return{closestScrollable:t,isFixedOnPage:n}},vke=e=>{let{descriptor:t,isEnabled:n,isCombineEnabled:r,isFixedOnPage:l,direction:i,client:o,page:a,closest:s}=e;const u=(()=>{if(!s)return null;const{scrollSize:p,client:m}=s,g=fq({scrollHeight:p.scrollHeight,scrollWidth:p.scrollWidth,height:m.paddingBox.height,width:m.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:m,scrollSize:p,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:g,diff:{value:za,displacement:za}}}})(),c=i==="vertical"?b5:HW,d=Hd({page:a,withPlaceholder:null,axis:c,frame:u});return{descriptor:t,isCombineEnabled:r,isFixedOnPage:l,axis:c,isEnabled:n,client:o,page:a,frame:u,subject:d}};const yke=(e,t)=>{const n=$W(e);if(!t||e!==t)return n;const r=n.paddingBox.top-t.scrollTop,l=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,o=l+t.scrollWidth,s=m5({top:r,right:o,bottom:i,left:l},n.border);return g5({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})};var bke=e=>{let{ref:t,descriptor:n,env:r,windowScroll:l,direction:i,isDropDisabled:o,isCombineEnabled:a,shouldClipSubject:s}=e;const u=r.closestScrollable,c=yke(t,u),d=fy(c,l),f=(()=>{if(!u)return null;const m=$W(u),g={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:m,page:fy(m,l),scroll:vk(u),scrollSize:g,shouldClipSubject:s}})();return vke({descriptor:n,isEnabled:!o,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:d,closest:f})};const xke={passive:!1},wke={passive:!0};var IE=e=>e.shouldPublishImmediately?xke:wke;const x0=e=>e&&e.env.closestScrollable||null;function _ke(e){const t=ge.useRef(null),n=vy(Ob),r=E5("droppable"),{registry:l,marshal:i}=n,o=Tq(e),a=ir(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),s=ge.useRef(a),u=ir(()=>ja((w,_)=>{t.current||bn();const x={x:w,y:_};i.updateDroppableScroll(a.id,x)}),[a.id,i]),c=Nn(()=>{const w=t.current;return!w||!w.env.closestScrollable?za:vk(w.env.closestScrollable)},[]),d=Nn(()=>{const w=c();u(w.x,w.y)},[c,u]),f=ir(()=>gm(d),[d]),p=Nn(()=>{const w=t.current,_=x0(w);if(w&&_||bn(),w.scrollOptions.shouldPublishImmediately){d();return}f()},[f,d]),m=Nn((w,_)=>{t.current&&bn();const x=o.current,T=x.getDroppableRef();T||bn();const k=gke(T),S={ref:T,descriptor:a,env:k,scrollOptions:_};t.current=S;const C=bke({ref:T,descriptor:a,env:k,windowScroll:w,direction:x.direction,isDropDisabled:x.isDropDisabled,isCombineEnabled:x.isCombineEnabled,shouldClipSubject:!x.ignoreContainerClipping}),M=k.closestScrollable;return M&&(M.setAttribute(OE.contextId,n.contextId),M.addEventListener("scroll",p,IE(S.scrollOptions))),C},[n.contextId,a,p,o]),g=Nn(()=>{const w=t.current,_=x0(w);return w&&_||bn(),vk(_)},[]),b=Nn(()=>{const w=t.current;w||bn();const _=x0(w);t.current=null,_&&(f.cancel(),_.removeAttribute(OE.contextId),_.removeEventListener("scroll",p,IE(w.scrollOptions)))},[p,f]),v=Nn(w=>{const _=t.current;_||bn();const x=x0(_);x||bn(),x.scrollTop+=w.y,x.scrollLeft+=w.x},[]),h=ir(()=>({getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:b,scroll:v}),[b,m,g,v]),y=ir(()=>({uniqueId:r,descriptor:a,callbacks:h}),[h,a,r]);Jo(()=>(s.current=y.descriptor,l.droppable.register(y),()=>{t.current&&b(),l.droppable.unregister(y)}),[h,a,b,y,i,l.droppable]),Jo(()=>{t.current&&i.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,i]),Jo(()=>{t.current&&i.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,i])}function B_(){}const $E={width:0,height:0,margin:hwe},Tke=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;return t||r==="close"?$E:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},kke=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;const l=Tke({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:l.width,height:l.height,marginTop:l.margin.top,marginRight:l.margin.right,marginBottom:l.margin.bottom,marginLeft:l.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:r!=="none"?Nh.placeholder:null}},Ske=e=>{const t=ge.useRef(null),n=Nn(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:r,onTransitionEnd:l,onClose:i,contextId:o}=e,[a,s]=ge.useState(e.animate==="open");ge.useEffect(()=>a?r!=="open"?(n(),s(!1),B_):t.current?B_:(t.current=setTimeout(()=>{t.current=null,s(!1)}),n):B_,[r,a,n]);const u=Nn(d=>{d.propertyName==="height"&&(l(),r==="close"&&i())},[r,i,l]),c=kke({isAnimatingOpenOnMount:a,animate:e.animate,placeholder:e.placeholder});return Je.createElement(e.placeholder.tagName,{style:c,"data-rfd-placeholder-context-id":o,onTransitionEnd:u,ref:e.innerRef})};var Cke=Je.memo(Ske);class Mke extends Je.PureComponent{constructor(){super(...arguments),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,n){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:n.isVisible?{isVisible:!0,data:n.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const Pke=e=>{const t=ge.useContext(Ob);t||bn();const{contextId:n,isMovementAllowed:r}=t,l=ge.useRef(null),i=ge.useRef(null),{children:o,droppableId:a,type:s,mode:u,direction:c,ignoreContainerClipping:d,isDropDisabled:f,isCombineEnabled:p,snapshot:m,useClone:g,updateViewportMaxScroll:b,getContainerForClone:v}=e,h=Nn(()=>l.current,[]),y=Nn(function(M){M===void 0&&(M=null),l.current=M},[]);Nn(()=>i.current,[]);const w=Nn(function(M){M===void 0&&(M=null),i.current=M},[]),_=Nn(()=>{r()&&b({maxScroll:hq()})},[r,b]);_ke({droppableId:a,type:s,mode:u,direction:c,isDropDisabled:f,isCombineEnabled:p,ignoreContainerClipping:d,getDroppableRef:h});const x=ir(()=>Je.createElement(Mke,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},M=>{let{onClose:O,data:D,animate:P}=M;return Je.createElement(Cke,{placeholder:D,onClose:O,innerRef:w,animate:P,contextId:n,onTransitionEnd:_})}),[n,_,e.placeholder,e.shouldAnimatePlaceholder,w]),T=ir(()=>({innerRef:y,placeholder:x,droppableProps:{"data-rfd-droppable-id":a,"data-rfd-droppable-context-id":n}}),[n,a,x,y]),k=g?g.dragging.draggableId:null,S=ir(()=>({droppableId:a,type:s,isUsingCloneFor:k}),[a,k,s]);function C(){if(!g)return null;const{dragging:M,render:O}=g,D=Je.createElement(Nq,{draggableId:M.draggableId,index:M.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(P,E)=>O(P,E,M));return sh.createPortal(D,v())}return Je.createElement(L5.Provider,{value:S},o(T,m),C())};var Oke=Pke;function Ake(){return document.body||bn(),document.body}const NE={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Ake},Bq=e=>{let t={...e},n;for(n in NE)e[n]===void 0&&(t={...t,[n]:NE[n]});return t},W_=(e,t)=>e===t.droppable.type,FE=(e,t)=>t.draggables[e.draggable.id],Dke=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=ja(i=>({draggableId:i.id,type:i.type,source:{index:i.index,droppableId:i.droppableId}})),r=ja((i,o,a,s,u,c)=>{const d=u.descriptor.id;if(u.descriptor.droppableId===i){const m=c?{render:c,dragging:n(u.descriptor)}:null,g={isDraggingOver:a,draggingOverWith:a?d:null,draggingFromThisWith:d,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!1,snapshot:g,useClone:m}}if(!o)return t;if(!s)return e;const p={isDraggingOver:a,draggingOverWith:d,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}});return(i,o)=>{const a=Bq(o),s=a.droppableId,u=a.type,c=!a.isDropDisabled,d=a.renderClone;if(_m(i)){const f=i.critical;if(!W_(u,f))return t;const p=FE(f,i.dimensions),m=Qo(i.impact)===s;return r(s,c,m,m,p,d)}if(i.phase==="DROP_ANIMATING"){const f=i.completed;if(!W_(u,f.critical))return t;const p=FE(f.critical,i.dimensions);return r(s,c,Iq(f.result)===s,Qo(f.impact)===s,p,d)}if(i.phase==="IDLE"&&i.completed&&!i.shouldFlush){const f=i.completed;if(!W_(u,f.critical))return t;const p=Qo(f.impact)===s,m=!!(f.impact.at&&f.impact.at.type==="COMBINE"),g=f.critical.droppable.id===s;return p?m?e:t:g?e:t}return t}},Eke={updateViewportMaxScroll:M_e},Rke=RW(Dke,Eke,(e,t,n)=>({...Bq(n),...e,...t}),{context:D5,areStatePropsEqual:Lq})(Oke);var Lke=Rke;const Ike=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:q3e,Draggable:cke,Droppable:Lke,resetServerContext:W3e,useKeyboardSensor:Pq,useMouseSensor:Mq,useTouchSensor:Oq},Symbol.toStringTag,{value:"Module"})),I5=Qn(Ike);var jE;function $ke(){return jE||(jE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=t(fc),i=t($a()),o=t(SW),a=t(k2e),s=t(Tb),u=t(Vr),c=g(ge),d=I5,f=Yi(),p=eg();function m(w){if(typeof WeakMap!="function")return null;var _=new WeakMap,x=new WeakMap;return(m=function(k){return k?x:_})(w)}function g(w,_){if(w&&w.__esModule)return w;if(w===null||n(w)!=="object"&&typeof w!="function")return{default:w};var x=m(_);if(x&&x.has(w))return x.get(w);var T={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in w)if(S!=="default"&&Object.prototype.hasOwnProperty.call(w,S)){var C=k?Object.getOwnPropertyDescriptor(w,S):null;C&&(C.get||C.set)?Object.defineProperty(T,S,C):T[S]=w[S]}return T.default=w,x&&x.set(w,T),T}function b(w,_){var x=Object.keys(w);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(w);_&&(T=T.filter(function(k){return Object.getOwnPropertyDescriptor(w,k).enumerable})),x.push.apply(x,T)}return x}function v(w){for(var _=1;_0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.groupedBy),w.groupColumns.map(function(O,D){return c.default.createElement(d.Draggable,{key:O.tableData.id.toString(),draggableId:O.tableData.id.toString(),index:D},function(P,E){var I;return c.default.createElement(l.default,(0,r.default)({ref:P.innerRef},P.draggableProps,P.dragHandleProps,{sx:k(E.isDragging,P.draggableProps.style)}),c.default.createElement(a.default,(0,r.default)({},P.dragHandleProps,T.groupChipProps,{onClick:function(){return w.onSortChanged(O)},label:c.default.createElement(l.default,{sx:{display:"flex",alignItems:"center"}},c.default.createElement(l.default,{sx:{float:"left"}},O.title),O.tableData.groupSort&&c.default.createElement(x.SortArrow,{sx:{transition:"300ms ease all",transform:O.tableData.groupSort==="asc"?"rotate(-180deg)":"none",fontSize:18}})),sx:v({boxShadow:"none",textTransform:"none"},(I=T.groupChipProps)!==null&&I!==void 0?I:{}),onDelete:function(){return w.onGroupRemoved(O,D)}})))})}),w.groupColumns.length===0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.placeholder),C.placeholder)}))}h.defaultProps={},h.propTypes={forwardedRef:u.default.element,className:u.default.string,onSortChanged:u.default.func,onGroupRemoved:u.default.func,onGroupChange:u.default.func,persistentGroupingsId:u.default.string};var y=c.default.forwardRef(function(_,x){return c.default.createElement(h,(0,r.default)({},_,{forwardedRef:x}))});e.default=y}(D_)),D_}var q_={},zE;function Nke(){return zE||(zE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t($a()),l=t(iu()),i=t(cf()),o=t(Cl),a=t(ls),s=t(df),u=t(pc),c=t(Vr),d=t(ge),f=Yi();function p(v,h){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);h&&(w=w.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,w)}return y}function m(v){for(var h=1;h0&&_++;var x=v.groups[v.level],T;v.groupData.isExpanded&&(v.groups.length>v.level+1?T=v.groupData.groups.map(function(B,N){return d.default.createElement(v.components.GroupRow,{actions:v.actions,key:B.value||""+N,columns:v.columns,components:v.components,detailPanel:v.detailPanel,getFieldValue:v.getFieldValue,groupData:B,groups:v.groups,level:v.level+1,path:[].concat((0,i.default)(v.path),[N]),onGroupExpandChanged:v.onGroupExpandChanged,onGroupSelected:v.onGroupSelected,onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,isTreeData:v.isTreeData,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}):T=v.groupData.data.map(function(B,N){return B.tableData.editing?d.default.createElement(v.components.EditRow,{columns:v.columns,components:v.components,data:B,path:[].concat((0,i.default)(v.path),[B.tableData.uuid]),localization:v.localization,key:N,mode:B.tableData.editing,isTreeData:v.isTreeData,detailPanel:v.detailPanel,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,getFieldValue:v.getFieldValue,onBulkEditRowChanged:v.onBulkEditRowChanged,scrollWidth:v.scrollWidth}):d.default.createElement(v.components.Row,{actions:v.actions,key:N,columns:v.columns,components:v.components,data:B,detailPanel:v.detailPanel,level:(v.level||0)+1,getFieldValue:v.getFieldValue,path:[].concat((0,i.default)(v.path),[B.tableData.uuid]),onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,isTreeData:v.isTreeData,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}));for(var k=[],S=0;S0&&A!==F,checked:A===F,onChange:function(N,R){return v.onGroupSelected&&v.onGroupSelected(R,v.groupData.path)},style:{marginRight:8}}),d.default.createElement("b",null,M,O)))),T)}g.defaultProps={columns:[],groups:[],level:0},g.propTypes={actions:c.default.array,columns:c.default.arrayOf(c.default.object),components:c.default.object,cellEditable:c.default.object,detailPanel:c.default.oneOfType([c.default.func,c.default.arrayOf(c.default.object)]),forwardedRef:c.default.element,getFieldValue:c.default.func,groupData:c.default.object,groups:c.default.arrayOf(c.default.object),hasAnyEditingRow:c.default.bool,icons:c.default.object,isTreeData:c.default.bool.isRequired,level:c.default.number,localization:c.default.object,onBulkEditRowChanged:c.default.func,onCellEditFinished:c.default.func,onCellEditStarted:c.default.func,onEditingApproved:c.default.func,onEditingCanceled:c.default.func,onGroupExpandChanged:c.default.func,onRowClick:c.default.func,onGroupSelected:c.default.func,onRowSelected:c.default.func,onToggleDetailPanel:c.default.func.isRequired,onTreeExpandChanged:c.default.func.isRequired,path:c.default.arrayOf(c.default.number),scrollWidth:c.default.number.isRequired,treeDataMaxLevel:c.default.number};var b=d.default.forwardRef(function(h,y){return d.default.createElement(g,(0,n.default)({},h,{forwardedRef:y}))});e.default=b}(q_)),q_}var U_={};const Fke=Qn(xfe),jke=Qn(ope);var BE;function zke(){return BE||(BE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=k,e.styles=e.default=void 0;var r=t(fc),l=t(hc),i=t(Ir()),o=t($a()),a=t(iu()),s=t(uf()),u=t(ge),c=t(Vr),d=t(Fke),f=t(ls),p=t(Cl),m=t(jke),g=t(pc),b=I5,v=_(ds()),h=Yi(),y=["onColumnResized","classes","sx","columns"];function w(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(w=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=w(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var z=F?Object.getOwnPropertyDescriptor(P,j):null;z&&(z.get||z.set)?Object.defineProperty(A,j,z):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function x(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function T(P){for(var E=1;E-1)&&!ce.tableData.hiddden}).sort(function(ce,we){return ce.tableData.columnOrder-we.tableData.columnOrder}).map(function(ce,we,K){var ne=ce.align!==void 0?ce.align:["numeric","currency"].indexOf(ce.type)!==-1?"right":"left",de=ce.title;if(B.draggable&&ce.draggable!==!1?de=u.default.createElement(b.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:we,style:{zIndex:99}},function(ue,pe){return u.default.createElement("div",(0,i.default)({ref:ue.innerRef},ue.draggableProps,ue.dragHandleProps,{style:pe.isDragging?ue.draggableProps.style:{position:"relative",minWidth:0,display:"flex",flexDirection:ne==="right"?"row-reverse":void 0}}),ce.sorting!==!1&&j.sorting&&j.allowSorting?u.default.createElement(C,{columnDef:ce,keepSortDirectionOnColumnSwitch:B.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:B.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:B.showColumnSortOrder,sortOrderIndicatorStyle:B.sortOrderIndicatorStyle},ce.title):ce.title)}):ce.sorting!==!1&&j.sorting&&j.allowSorting&&(de=u.default.createElement(C,{columnDef:ce,keepSortDirectionOnColumnSwitch:B.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:B.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:B.showColumnSortOrder,sortOrderIndicatorStyle:B.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(de=u.default.createElement(l.default,{title:ce.tooltip,placement:"bottom"},u.default.createElement("span",null,de))),B.tableLayout==="fixed"&&B.columnResizable&&ce.resizable!==!1&&!(B.tableWidth==="full"&&we===K.length-1)){var _e=N.Resize?N.Resize:function(ue){return u.default.createElement(r.default,(0,i.default)({},ue,{"data-test-id":"drag_handle"}))};de=u.default.createElement(r.default,{sx:M.headerWrap(ne==="right")},u.default.createElement(r.default,{sx:M.headerContent(ne==="right")},de),u.default.createElement("div",null),u.default.createElement(_e,{sx:M.headerResize((W==null?void 0:W.col)&&W.col.tableData.id===ce.tableData.id),onMouseDown:function(pe){return G(pe,ce,we)}}))}return u.default.createElement(p.default,{key:ce.tableData.id,align:ne,sx:M.header,style:ie(ce),size:Me,"aria-label":ce.ariaLabel},de)})}function he(){var Me=v.selectionMaxWidth(T(T({},j),{},{options:B}),j.treeDataMaxLevel);return u.default.createElement(p.default,{padding:"none",key:"key-selection-column",sx:M.header,style:T(T({},B.headerStyle),{},{width:Me})},B.showSelectAllCheckbox&&u.default.createElement(g.default,(0,i.default)({indeterminate:j.selectedCount>0&&j.selectedCount0&&j.selectedCount>=j.dataCount,onChange:function(we,K){return j.onAllSelected&&j.onAllSelected(K)}},B.headerSelectionProps)))}function Se(){return u.default.createElement(p.default,{padding:"none",key:"key-detail-panel-column",sx:M.header,style:B.headerStyle})}var Oe=se();if(B.selection&&Oe.splice(0,0,he()),j.showActionsColumn)if(B.actionsColumnIndex>=0){var Pe=0;B.selection&&(Pe=1),Oe.splice(B.actionsColumnIndex+Pe,0,ae())}else B.actionsColumnIndex===-1&&Oe.push(ae());return j.hasDetailPanel&&B.showDetailPanelIcon&&(B.detailPanelColumnAlignment==="right"?Oe.push(Se()):Oe.splice(0,0,Se())),j.isTreeData>0&&Oe.splice(0,0,u.default.createElement(p.default,{padding:"none",key:"key-tree-data-header",sx:M.header,style:B.headerStyle})),Z.filter(function(Me){return Me.tableData.groupOrder>-1}).forEach(function(Me){Oe.splice(0,0,u.default.createElement(p.default,{padding:"checkbox",key:"key-group-header"+Me.tableData.id,sx:M.header,style:B.headerStyle}))}),u.default.createElement(d.default,{ref:j.forwardedRef,classes:I,sx:A},u.default.createElement(f.default,{sx:M.headerRow},Oe))}var S=function(E,I,A,F,j){return A.tableData.id!==E?j&&I||"asc":I==="asc"?"desc":I==="desc"&&F?"":"asc"};function C(P){var E=P.columnDef,I=P.keepSortDirectionOnColumnSwitch,A=P.icon,F=P.thirdSortClick,j=P.onOrderChange,z=P.children,B=P.orderByCollection,N=P.showColumnSortOrder,R=P.sortOrderIndicatorStyle,q=B.find(function(U){var V=U.orderBy;return V===E.tableData.id}),Y=(q||I)&&q&&q.orderDirection||"asc",L="none";q&&Y==="asc"?L=E.ariaSortAsc||"ascending":q&&Y==="desc"&&(L=E.ariaSortDesc||"descending");var W=q&&q.orderBy;return u.default.createElement(u.default.Fragment,null,u.default.createElement(m.default,{role:"columnheader","aria-sort":L,"aria-label":E.ariaLabel,IconComponent:A,active:!!q,"data-testid":"mtableheader-sortlabel",direction:Y,onClick:function(){var V=S(W,Y,E,F,I);j(E.tableData.id,V,q&&q.sortOrder)}},z),u.default.createElement("span",{style:T(T({},R),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},N&&q?q.sortOrder:""))}k.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},k.propTypes={columns:c.default.array.isRequired,classes:c.default.object,sx:c.default.object,dataCount:c.default.number,hasDetailPanel:c.default.bool.isRequired,selectedCount:c.default.number,onAllSelected:c.default.func,onOrderChange:c.default.func,showActionsColumn:c.default.bool,orderByCollection:c.default.array,showColumnSortOrder:c.default.bool,tooltip:c.default.string,allowSorting:c.default.bool};var M={headerRow:{zIndex:10},header:{top:0},headerWrap:function(E){return{display:"flex",alignItems:"center",position:"relative",left:4}},headerWrapRight:function(E){return{display:"flex",alignItems:"center",pr:E?1:void 0,position:"relative",left:4,justifyContent:"flex-end"}},headerContent:function(E){return{minWidth:0,display:"flex",flex:"1 0 100%",flexDirection:E?"row-reverse":void 0,justifyContent:"flex-start",alignItems:"center",width:"100%",position:"relative"}},headerResize:function(E){return{color:E?"primary.main":"inherit",flex:1,cursor:"col-resize",position:"absolute",height:"100%",width:16,display:"flex",justifyContent:"center",right:-8,zIndex:20}}};e.styles=M;var O=u.default.forwardRef(function(E,I){return u.default.createElement(k,(0,i.default)({},E,{forwardedRef:I}))}),D=u.default.memo(O);e.default=D}(U_)),U_}var H_={};const Bke=Qn(Jie);var WE;function Wke(){return WE||(WE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=t(df),i=t(hc),o=t(fc),a=t(Bke),s=t(Vr),u=t(ge),c=sf,d=m(ds()),f=Yi();function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(T){return T?_:w})(y)}function m(y,w){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(w);if(_&&_.has(y))return _.get(y);var x={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var S=T?Object.getOwnPropertyDescriptor(y,k):null;S&&(S.get||S.set)?Object.defineProperty(x,k,S):x[k]=y[k]}return x.default=y,_&&_.set(y,x),x}function g(y){var w=(0,c.useTheme)(),_=(0,f.useLocalizationStore)().pagination,x=(0,f.useIconStore)(),T=function(Y){y.onPageChange(Y,0)},k=function(Y){y.onPageChange(Y,y.page-1)},S=function(Y){y.onPageChange(Y,y.page+1)},C=function(Y){return function(L){y.onPageChange(L,Y)}},M=function(Y){y.onPageChange(Y,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))};function O(q,Y,L,W){var U=[];W=Math.max(1,Math.min(10,W));for(var V=Math.max(q-W+1,0);V<=Math.min(Y+W-1,L);V++){var te=V===y.page?"contained":"text";U.push(u.default.createElement(a.default,{size:"small",style:{boxShadow:"none",maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px"},disabled:V===y.page,variant:te,onClick:C(V),key:V},V+1))}return u.default.createElement("span",null,U)}var D=y.count,P=y.page,E=y.rowsPerPage,I=y.showFirstLastPageButtons,A=y.numberOfPagesAround,F=Math.ceil(D/E)-1,j=Math.max(P-1,0),z=Math.min(F,P+1),B=d.parseFirstLastPageButtons(I,w.direction==="rtl"),N=B.first,R=B.last;return u.default.createElement(o.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:y.forwardedRef},N&&u.default.createElement(i.default,{title:_.firstTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:T,disabled:P===0,"aria-label":_.firstAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(x.LastPage,null):u.default.createElement(x.FirstPage,null)))),u.default.createElement(i.default,{title:_.previousTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:k,disabled:P===0,"aria-label":_.previousAriaLabel},u.default.createElement(x.PreviousPage,null)))),u.default.createElement(o.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},O(j,z,F,A)),u.default.createElement(i.default,{title:_.nextTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:S,disabled:P>=F,"aria-label":_.nextAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(x.PreviousPage,null):u.default.createElement(x.NextPage,null)))),R&&u.default.createElement(i.default,{title:_.lastTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:M,disabled:P>=Math.ceil(D/E)-1,"aria-label":_.lastAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(x.FirstPage,null):u.default.createElement(x.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,forwardedRef:s.default.func,count:s.default.number,rowsPerPage:s.default.number,numberOfPagesAround:s.default.number,classes:s.default.object,theme:s.default.any,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool])},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(w,_){return u.default.createElement(g,(0,r.default)({},w,{forwardedRef:_}))}),v=b,h=v;e.default=h}(H_)),H_}var V_={},qE;function qke(){return qE||(qE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=t(fc),i=t(df),o=t(hc),a=t(Tb),s=t(Vr),u=t(ge),c=sf,d=m(ds()),f=eg();function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(T){return T?_:w})(y)}function m(y,w){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(w);if(_&&_.has(y))return _.get(y);var x={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var S=T?Object.getOwnPropertyDescriptor(y,k):null;S&&(S.get||S.set)?Object.defineProperty(x,k,S):x[k]=y[k]}return x.default=y,_&&_.set(y,x),x}function g(y){var w=(0,c.useTheme)(),_=(0,f.useIconStore)(),x=(0,f.useLocalizationStore)().pagination,T=function(j){y.onPageChange(j,0)},k=function(j){y.onPageChange(j,y.page-1)},S=function(j){y.onPageChange(j,y.page+1)},C=function(j){y.onPageChange(j,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))},M=y.count,O=y.page,D=y.rowsPerPage,P=y.showFirstLastPageButtons,E=d.parseFirstLastPageButtons(P,w.direction==="rtl"),I=E.first,A=E.last;return u.default.createElement(l.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:y.forwardedRef},I&&u.default.createElement(o.default,{title:x.firstTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:T,disabled:O===0,"aria-label":x.firstAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(_.LastPage,null):u.default.createElement(_.FirstPage,null)))),u.default.createElement(o.default,{title:x.previousTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:k,disabled:O===0,"aria-label":x.previousAriaLabel},w.direction==="rtl"?u.default.createElement(_.NextPage,null):u.default.createElement(_.PreviousPage,null)))),u.default.createElement(a.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},x.labelDisplayedRows.replace("{from}",y.count===0?0:y.page*y.rowsPerPage+1).replace("{to}",Math.min((y.page+1)*y.rowsPerPage,y.count)).replace("{count}",y.count)),u.default.createElement(o.default,{title:x.nextTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:S,disabled:O>=Math.ceil(M/D)-1,"aria-label":x.nextAriaLabel},w.direction==="rtl"?u.default.createElement(_.PreviousPage,null):u.default.createElement(_.NextPage,null)))),A&&u.default.createElement(o.default,{title:x.lastTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:C,disabled:O>=Math.ceil(M/D)-1,"aria-label":x.lastAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(_.FirstPage,null):u.default.createElement(_.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,count:s.default.number,rowsPerPage:s.default.number,classes:s.default.object,localization:s.default.object,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool]),forwardedRef:s.default.func},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(w,_){return u.default.createElement(g,(0,r.default)({},w,{forwardedRef:_}))}),v=b,h=v;e.default=h}(V_)),V_}var G_={},UE;function Uke(){return UE||(UE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var r=t(ls),l=t(_a()),i=t(cf()),o=t(Cl),a=t($a()),s=m(ge),u=_b(),c=m(ds()),d=Yi(),f=t(Vr);function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(T){return T?_:w})(y)}function m(y,w){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(w);if(_&&_.has(y))return _.get(y);var x={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var S=T?Object.getOwnPropertyDescriptor(y,k):null;S&&(S.get||S.set)?Object.defineProperty(x,k,S):x[k]=y[k]}return x.default=y,_&&_.set(y,x),x}function g(y,w){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(y);w&&(x=x.filter(function(T){return Object.getOwnPropertyDescriptor(y,T).enumerable})),_.push.apply(_,x)}return _}function b(y){for(var w=1;w1&&arguments[1]!==void 0?arguments[1]:1,E=c.elementSize(b(b({},_),{},{options:T})),I=P*c.baseIconSize(b(b({},_),{},{options:T}));return s.createElement(o.default,{key:"placeholder.".concat(D),size:E,padding:"none",style:{width:I,padding:"0px 5px",boxSizing:"border-box"}})}var S=[],C=[],M=0;if(T.selection&&S.push(k(M++)),_.actions&&_.actions.filter(function(D){return D.position==="row"||typeof D=="function"}).length>0){var O=c.rowActions(_).length;T.actionsColumnIndex===-1?C.push(k(M++,O)):T.actionsColumnIndex>=0&&S.push(k(M++,O))}return _.detailPanel&&T.showDetailPanelIcon&&(T.detailPanelColumnAlignment==="right"?C.push(k(M++)):S.push(k(M++))),_.isTreeData&&S.push(k(M++)),s.createElement(r.default,null,S,(0,i.default)(w).sort(function(D,P){return D.tableData.columnOrder-P.tableData.columnOrder}).map(function(D,P){var E=x({index:D.tableData.columnOrder,column:D,columns:w}),I=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",A="",F=(0,u.getStyle)({columnDef:D,scrollWidth:0});return(0,l.default)(E)==="object"&&E!==null?(A=E.value,F=E.style):A=E,s.createElement(o.default,{key:P,style:F,align:I},A)}),C)}v.propTypes={columns:f.default.array,renderSummaryRow:f.default.func};var h=v;e.default=h}(G_)),G_}var Y_={};const Hke=Qn(Mce);var HE;function Vke(){return HE||(HE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=S,e.default=void 0;var r=t(Ir()),l=t($a()),i=t(fc),o=t(iu()),a=t(pc),s=t(TW),u=t(df),c=t(Hke),d=t(NM),f=t(pb),p=t(SW),m=t(hc),g=t(Tb),b=sf,v=t(Vr),h=_(ge),y=Yi();function w(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(w=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=w(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var z=F?Object.getOwnPropertyDescriptor(P,j):null;z&&(z.get||z.set)?Object.defineProperty(A,j,z):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function x(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function T(P){for(var E=1;EPe.tableData.columnOrder?1:-1}),he=O(P.data()),Se=he.map(function(Oe){return se.reduce(function(Pe,Me){var ce;return typeof Me.customExport=="function"?ce=Me.customExport(Oe):ce=P.getFieldValue(Oe,Me),Pe[Me.field]=ce,Pe},{})});return[se,Se]};function G(){return te.search?h.default.createElement(f.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:C.searchField,value:j,onChange:function(se){return H(se.target.value)},placeholder:I.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:h.default.createElement(s.default,{position:"start"},h.default.createElement(m.default,{title:I.searchTooltip},h.default.createElement(V.Search,{fontSize:"small"}))),endAdornment:h.default.createElement(s.default,{position:"end"},h.default.createElement(u.default,{disabled:!j,onClick:function(){return H("")},"aria-label":I.clearSearchAriaLabel},h.default.createElement(V.ResetSearch,{fontSize:"small","aria-label":"clear"}))),style:te.searchFieldStyle,inputProps:{"aria-label":I.searchAriaLabel}}}):null}function X(ie){var se=ie?"toolbarOnSelect":"toolbar";return h.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!ie&&h.default.createElement("span",null,h.default.createElement(m.default,{title:I.showColumnsTitle},h.default.createElement(u.default,{color:"inherit",onClick:function(Se){return U(Se.currentTarget)},"aria-label":I.showColumnsAriaLabel},h.default.createElement(V.ViewColumn,null))),h.default.createElement(c.default,{anchorEl:W,open:!!W,onClose:function(){return U(null)}},h.default.createElement(d.default,{key:"text",disabled:!0,style:{opacity:1,fontWeight:600,fontSize:12}},I.addRemoveColumns),P.columns.map(function(he){var Se=he.hiddenByColumnsButton!==void 0?he.hiddenByColumnsButton:P.columnsHiddenInColumnsButton;return Se?null:h.default.createElement("li",{key:he.tableData.id},h.default.createElement(d.default,{sx:C.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(he.tableData.id),disabled:he.removable===!1},h.default.createElement(a.default,{checked:!he.hidden,id:"column-toggle-".concat(he.tableData.id),onChange:function(){return P.onColumnsChanged(he,!he.hidden)}}),h.default.createElement("span",null,he.title)))}))),te.exportMenu.length>0&&h.default.createElement("span",null,h.default.createElement(m.default,{title:I.exportTitle},h.default.createElement(u.default,{color:"inherit",onClick:function(Se){return q(Se.currentTarget)},"aria-label":I.exportAriaLabel},h.default.createElement(V.Export,null))),h.default.createElement(c.default,{anchorEl:R,open:!!R,onClose:function(){return q(null)}},te.exportMenu.map(function(he,Se){var Oe=Z(),Pe=(0,o.default)(Oe,2),Me=Pe[0],ce=Pe[1];return h.default.createElement(d.default,{key:"".concat(he.label).concat(Se),onClick:function(){he.exportFunc(Me,ce,{searchedData:P.dataManager.searchedData,filteredData:P.dataManager.filteredData,groupedData:P.dataManager.groupedData,selectedData:ee}),q(null)}},he.label)}))),h.default.createElement("span",null,h.default.createElement(P.components.Actions,{actions:P.actions&&P.actions.filter(function(he){return he.position===se}),data:ie?ee:void 0,components:P.components})))}function Q(){return h.default.createElement(i.default,{sx:C.actions},h.default.createElement("div",null,X(ee.length>0)))}function re(ie){var se=typeof ie=="string"?h.default.createElement(g.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},ie):ie;return h.default.createElement(i.default,{sx:C.title},se)}var ae=te.showTextRowsSelected&&ee.length>0?typeof I.nRowsSelected=="function"?I.nRowsSelected(ee.length):I.nRowsSelected.replace("{0}",ee.length):te.showTitle?P.title:null;return h.default.createElement(p.default,{ref:P.forwardedRef,className:P.className,sx:T(T({},C.root),te.showTextRowsSelected&&ee.length>0?C.highlight(E):{})},ae&&re(ae),te.searchFieldAlignment==="left"&&G(),te.toolbarButtonAlignment==="left"&&Q(),h.default.createElement(i.default,{sx:C.spacer}),te.searchFieldAlignment==="right"&&G(),te.toolbarButtonAlignment==="right"&&Q())}S.defaultProps={actions:[],columns:[],columnsHiddenInColumnsButton:!1,searchText:"",originalData:[],title:"No Title!"},S.propTypes={actions:v.default.array,className:v.default.string,columns:v.default.array,components:v.default.object.isRequired,getFieldValue:v.default.func.isRequired,onColumnsChanged:v.default.func.isRequired,dataManager:v.default.object.isRequired,searchText:v.default.string,onSearchChanged:v.default.func.isRequired,originalData:v.default.array,title:v.default.oneOfType([v.default.element,v.default.string]),renderData:v.default.array,data:v.default.oneOfType([v.default.array,v.default.func]),exportAllData:v.default.bool,exportMenu:v.default.arrayOf(v.default.shape({name:v.default.string,handler:v.default.func})),searchAutoFocus:v.default.bool,classes:v.default.object};var C={root:{paddingRight:1,paddingLeft:2},highlight:function(E){return E.palette.mode==="light"?{color:E.palette.secondary.main,backgroundColor:(0,b.lighten)(E.palette.secondary.light,.85)}:{color:E.palette.text.primary,backgroundColor:E.palette.secondary.dark}},spacer:{flex:"1 1 10%"},actions:{color:"text.secondary"},title:{overflow:"hidden"},searchField:{minWidth:150,paddingLeft:2},formControlLabel:{px:1}},M=h.default.forwardRef(function(E,I){return h.default.createElement(S,(0,r.default)({},E,{forwardedRef:I}))});function O(P){for(var E=P;Array.isArray((I=E)===null||I===void 0||(A=I[0])===null||A===void 0?void 0:A.data);){var I,A;E=E.map(function(F){return F.groups.length!==0?F.groups:F.data}).flat()}return E}var D=h.default.memo(M);e.default=D}(Y_)),Y_}var VE;function Db(){return VE||(VE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"MTableCustomIcon",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"MTableScrollbar",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"MTableSummaryRow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return n.default}});var n=t(qpe()),r=t(Lhe()),l=t(Nhe()),i=t(jhe()),o=t(Uhe()),a=t(t2e()),s=t(n2e()),u=t(i2e()),c=t(l2e()),d=t(d2e()),f=t(h2e()),p=t(m2e()),m=t(g2e()),g=t(kW()),b=t($ke()),v=t(Nke()),h=t(zke()),y=t(Wke()),w=t(qke()),_=t(Uke()),x=t(Vke())}(Cw)),Cw}var GE;function Wq(){return GE||(GE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Wpe),r=Db(),l={Action:r.MTableAction,Actions:r.MTableActions,Body:r.MTableBody,Cell:r.MTableCell,Container:r.Container,EditCell:r.MTableEditCell,EditField:r.MTableEditField,EditRow:r.MTableEditRow,FilterRow:r.MTableFilterRow,Groupbar:r.MTableGroupbar,GroupRow:r.MTableGroupRow,Header:r.MTableHeader,OverlayLoading:r.OverlayLoading,OverlayError:r.OverlayError,Pagination:n.default,Row:r.MTableBodyRow,SummaryRow:r.MTableSummaryRow,Toolbar:r.MTableToolbar};e.default=l}(Sw)),Sw}var YE;function Gke(){if(YE)return tp;YE=1;var e=Cn;Object.defineProperty(tp,"__esModule",{value:!0}),tp.defaultProps=void 0;var t=e(Wq()),n=e(aB()),r=e(nB()),l=e(rB()),i={actions:[],classes:{},columns:[],components:t.default,data:[],icons:n.default,isLoading:!1,title:"Table Title",options:l.default,localization:r.default,style:{}};return tp.defaultProps=i,tp}var kp={},Sp={},XE;function $5(){if(XE)return Sp;XE=1,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.ALL_COLUMNS=void 0;var e="all_columns";return Sp.ALL_COLUMNS=e,Sp}var KE;function Yke(){if(KE)return kp;KE=1;var e=Cn;Object.defineProperty(kp,"__esModule",{value:!0}),kp.propTypes=void 0;var t=e(Vr),n=$5(),r=t.default.shape({current:t.default.element}),l=t.default.shape({classes:t.default.object,innerRef:r}),i={actions:t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]).isRequired,isFreeAction:t.default.bool,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"]),tooltip:t.default.string,onClick:t.default.func.isRequired,onMouseEnter:t.default.func,onMouseLeave:t.default.func,iconProps:t.default.object,disabled:t.default.bool,hidden:t.default.bool}),t.default.shape({action:t.default.func,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"])})])),renderSummaryRow:t.default.func,columns:t.default.arrayOf(t.default.shape({cellStyle:t.default.oneOfType([t.default.object,t.default.func]),currencySetting:t.default.shape({locale:t.default.string,currencyCode:t.default.string,minimumFractionDigits:t.default.number,maximumFractionDigits:t.default.number}),ariaLabel:t.default.string,ariaSortAsc:t.default.oneOf(["ascending","descending","none","other"]),ariaSortDesc:t.default.oneOf(["ascending","descending","none","other"]),draggable:t.default.bool,customFilterAndSearch:t.default.func,customSort:t.default.func,customExport:t.default.func,defaultFilter:t.default.any,defaultSort:t.default.oneOf(["asc","desc"]),editComponent:t.default.oneOfType([t.default.element,t.default.func]),emptyValue:t.default.oneOfType([t.default.string,t.default.node,t.default.func]),export:t.default.bool,field:t.default.oneOfType([t.default.string,t.default.arrayOf(t.default.string)]),filtering:t.default.bool,filterCellStyle:t.default.object,filterPlaceholder:t.default.string,filterComponent:t.default.oneOfType([t.default.element,t.default.func]),grouping:t.default.bool,headerStyle:t.default.object,hidden:t.default.bool,hideFilterIcon:t.default.bool,initialEditValue:t.default.any,lookup:t.default.object,editable:t.default.oneOfType([t.default.func,t.default.oneOf(["always","onUpdate","onAdd","never"])]),removable:t.default.bool,render:t.default.func,searchable:t.default.bool,sorting:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),type:t.default.oneOf(["string","boolean","numeric","date","datetime","time","currency"])})).isRequired,components:t.default.shape({Action:t.default.oneOfType([t.default.element,t.default.func,l]),Actions:t.default.oneOfType([t.default.element,t.default.func,l]),Body:t.default.oneOfType([t.default.element,t.default.func,l]),Cell:t.default.oneOfType([t.default.element,t.default.func,l]),Container:t.default.oneOfType([t.default.element,t.default.func,l]),EditField:t.default.oneOfType([t.default.element,t.default.func,l]),EditRow:t.default.oneOfType([t.default.element,t.default.func,l]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,l]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,l]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,l]),Header:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,l]),Pagination:t.default.oneOfType([t.default.element,t.default.func,l]),Row:t.default.oneOfType([t.default.element,t.default.func,l]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,l])}),data:t.default.oneOfType([t.default.arrayOf(t.default.object),t.default.func]).isRequired,editable:t.default.shape({isEditable:t.default.func,isBulkEditable:t.default.func,isDeletable:t.default.func,onRowAdd:t.default.func,onRowUpdate:t.default.func,onRowDelete:t.default.func,onRowAddCancelled:t.default.func,onRowUpdateCancelled:t.default.func,isEditHidden:t.default.func,isDeleteHidden:t.default.func}),detailPanel:t.default.oneOfType([t.default.func,t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({disabled:t.default.bool,icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),openIcon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),tooltip:t.default.string,render:t.default.func.isRequired})]))]),icons:t.default.shape({Add:t.default.oneOfType([t.default.element,t.default.func,r]),Check:t.default.oneOfType([t.default.element,t.default.func,r]),Clear:t.default.oneOfType([t.default.element,t.default.func,r]),Delete:t.default.oneOfType([t.default.element,t.default.func,r]),DetailPanel:t.default.oneOfType([t.default.element,t.default.func,r]),Edit:t.default.oneOfType([t.default.element,t.default.func,r]),Export:t.default.oneOfType([t.default.element,t.default.func,r]),Filter:t.default.oneOfType([t.default.element,t.default.func,r]),FirstPage:t.default.oneOfType([t.default.element,t.default.func,r]),LastPage:t.default.oneOfType([t.default.element,t.default.func,r]),NextPage:t.default.oneOfType([t.default.element,t.default.func,r]),PreviousPage:t.default.oneOfType([t.default.element,t.default.func,r]),Refresh:t.default.oneOfType([t.default.element,t.default.func,r]),ResetSearch:t.default.oneOfType([t.default.element,t.default.func,r]),Search:t.default.oneOfType([t.default.element,t.default.func,r]),SortArrow:t.default.oneOfType([t.default.element,t.default.func,r]),ThirdStateCheck:t.default.oneOfType([t.default.element,t.default.func,r]),ViewColumn:t.default.oneOfType([t.default.element,t.default.func,r])}),isLoading:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),options:t.default.shape({actionsCellStyle:t.default.object,editCellStyle:t.default.object,idSynonym:t.default.string,detailPanelColumnStyle:t.default.object,actionsColumnIndex:t.default.number,addRowPosition:t.default.oneOf(["first","last"]),columnsButton:t.default.bool,defaultExpanded:t.default.oneOfType([t.default.bool,t.default.func]),debounceInterval:t.default.number,detailPanelType:t.default.oneOf(["single","multiple"]),doubleHorizontalScroll:t.default.bool,emptyRowsWhenPaging:t.default.bool,exportAllData:t.default.bool,exportMenu:t.default.arrayOf(t.default.shape({label:t.default.string,exportFunc:t.default.func})),filtering:t.default.bool,filterCellStyle:t.default.object,filterRowStyle:t.default.object,header:t.default.bool,headerSelectionProps:t.default.object,headerStyle:t.default.object,hideFilterIcons:t.default.bool,initialPage:t.default.number,maxBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),minBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),loadingType:t.default.oneOf(["overlay","linear"]),overflowY:t.default.oneOf(["visible","hidden","scroll","auto","initial","inherit","overlay"]),padding:t.default.oneOf(["normal","dense"]),paging:t.default.bool,pageSize:t.default.number,pageSizeOptions:t.default.arrayOf(t.default.number),paginationType:t.default.oneOf(["normal","stepped"]),paginationPosition:t.default.oneOf(["bottom","top","both"]),persistentGroupingsId:t.default.string,rowStyle:t.default.oneOfType([t.default.object,t.default.func]),search:t.default.bool,searchText:t.default.string,searchDebounceDelay:t.default.number,toolbarButtonAlignment:t.default.oneOf(["left","right"]),searchFieldAlignment:t.default.oneOf(["left","right"]),searchFieldStyle:t.default.object,searchAutoFocus:t.default.bool,searchFieldVariant:t.default.oneOf(["standard","filled","outlined"]),selection:t.default.bool,selectionProps:t.default.oneOfType([t.default.object,t.default.func]),showEmptyDataSourceMessage:t.default.bool,showFirstLastPageButtons:t.default.oneOfType([t.default.object,t.default.bool]),showSelectAllCheckbox:t.default.bool,showSelectGroupCheckbox:t.default.bool,showTitle:t.default.bool,showTextRowsSelected:t.default.bool,sorting:t.default.bool,defaultOrderByCollection:t.default.arrayOf(t.default.shape({orderBy:t.default.number,orderDirection:t.default.string,sortOrder:t.default.number,orderIndex:t.default.number})),maxColumnSort:t.default.oneOf([0,1,2,3,4,5,6,7,8,9,10,n.ALL_COLUMNS]),showColumnSortOrder:t.default.bool,sortOrderIndicatorStyle:t.default.object,keepSortDirectionOnColumnSwitch:t.default.bool,clientSorting:t.default.bool,toolbar:t.default.bool,thirdSortClick:t.default.bool,numberOfPagesAround:t.default.oneOf([1,2,3,4,5,6,7,8,9,10])}),localization:t.default.shape({grouping:t.default.shape({groupedBy:t.default.string,placeholder:t.default.string}),pagination:t.default.object,toolbar:t.default.object,header:t.default.object,body:t.default.object}),initialFormData:t.default.object,onSearchChange:t.default.func,onFilterChange:t.default.func,onColumnDragged:t.default.func,onColumnResized:t.default.func,onGroupRemoved:t.default.func,onGroupChange:t.default.func,onSelectionChange:t.default.func,onRowsPerPageChange:t.default.func,onPageChange:t.default.func,onChangeColumnHidden:t.default.func,onOrderChange:t.default.func,onOrderCollectionChange:t.default.func,onRowClick:t.default.func,onRowDoubleClick:t.default.func,onTreeExpandChange:t.default.func,onQueryChange:t.default.func,onBulkEditOpen:t.default.func,tableRef:t.default.any,style:t.default.object,page:t.default.number,totalCount:t.default.number};return kp.propTypes=i,kp}var X_={};const Xke=Qn(Kue),Kke=Qn(ffe),Zke=Qn(Fde);var K_,ZE;function Qke(){if(ZE)return K_;ZE=1;function e(t,n,r){var l,i,o,a,s;n==null&&(n=100);function u(){var d=Date.now()-a;d=0?l=setTimeout(u,n-d):(l=null,r||(s=t.apply(o,i),o=i=null))}var c=function(){o=this,i=arguments,a=Date.now();var d=r&&!l;return l||(l=setTimeout(u,n)),d&&(s=t.apply(o,i),o=i=null),s};return c.clear=function(){l&&(clearTimeout(l),l=null)},c.flush=function(){l&&(s=t.apply(o,i),o=i=null,clearTimeout(l),l=null)},c}return e.debounce=e,K_=e,K_}var Z_={};const Jke=Qn(cge);var Q_={},Cp={},w0={},QE;function qq(){if(QE)return w0;QE=1,Object.defineProperty(w0,"__esModule",{value:!0}),w0.default=n;let e;const t=new Uint8Array(16);function n(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return w0}var Bc={},Mp={},Pp={},JE;function eSe(){if(JE)return Pp;JE=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Pp.default=e,Pp}var eR;function Eb(){if(eR)return Mp;eR=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.default=void 0;var e=t(eSe());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){return typeof l=="string"&&e.default.test(l)}var r=n;return Mp.default=r,Mp}var tR;function Rb(){if(tR)return Bc;tR=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.default=void 0,Bc.unsafeStringify=r;var e=t(Eb());function t(o){return o&&o.__esModule?o:{default:o}}const n=[];for(let o=0;o<256;++o)n.push((o+256).toString(16).slice(1));function r(o,a=0){return n[o[a+0]]+n[o[a+1]]+n[o[a+2]]+n[o[a+3]]+"-"+n[o[a+4]]+n[o[a+5]]+"-"+n[o[a+6]]+n[o[a+7]]+"-"+n[o[a+8]]+n[o[a+9]]+"-"+n[o[a+10]]+n[o[a+11]]+n[o[a+12]]+n[o[a+13]]+n[o[a+14]]+n[o[a+15]]}function l(o,a=0){const s=r(o,a);if(!(0,e.default)(s))throw TypeError("Stringified UUID is invalid");return s}var i=l;return Bc.default=i,Bc}var nR;function tSe(){if(nR)return Cp;nR=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.default=void 0;var e=n(qq()),t=Rb();function n(u){return u&&u.__esModule?u:{default:u}}let r,l,i=0,o=0;function a(u,c,d){let f=c&&d||0;const p=c||new Array(16);u=u||{};let m=u.node||r,g=u.clockseq!==void 0?u.clockseq:l;if(m==null||g==null){const _=u.random||(u.rng||e.default)();m==null&&(m=r=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),g==null&&(g=l=(_[6]<<8|_[7])&16383)}let b=u.msecs!==void 0?u.msecs:Date.now(),v=u.nsecs!==void 0?u.nsecs:o+1;const h=b-i+(v-o)/1e4;if(h<0&&u.clockseq===void 0&&(g=g+1&16383),(h<0||b>i)&&u.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=b,o=v,l=g,b+=122192928e5;const y=((b&268435455)*1e4+v)%4294967296;p[f++]=y>>>24&255,p[f++]=y>>>16&255,p[f++]=y>>>8&255,p[f++]=y&255;const w=b/4294967296*1e4&268435455;p[f++]=w>>>8&255,p[f++]=w&255,p[f++]=w>>>24&15|16,p[f++]=w>>>16&255,p[f++]=g>>>8|128,p[f++]=g&255;for(let _=0;_<6;++_)p[f+_]=m[_];return c||(0,t.unsafeStringify)(p)}var s=a;return Cp.default=s,Cp}var Op={},Ss={},Ap={},rR;function Uq(){if(rR)return Ap;rR=1,Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.default=void 0;var e=t(Eb());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");let i;const o=new Uint8Array(16);return o[0]=(i=parseInt(l.slice(0,8),16))>>>24,o[1]=i>>>16&255,o[2]=i>>>8&255,o[3]=i&255,o[4]=(i=parseInt(l.slice(9,13),16))>>>8,o[5]=i&255,o[6]=(i=parseInt(l.slice(14,18),16))>>>8,o[7]=i&255,o[8]=(i=parseInt(l.slice(19,23),16))>>>8,o[9]=i&255,o[10]=(i=parseInt(l.slice(24,36),16))/1099511627776&255,o[11]=i/4294967296&255,o[12]=i>>>24&255,o[13]=i>>>16&255,o[14]=i>>>8&255,o[15]=i&255,o}var r=n;return Ap.default=r,Ap}var aR;function Hq(){if(aR)return Ss;aR=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.URL=Ss.DNS=void 0,Ss.default=o;var e=Rb(),t=n(Uq());function n(a){return a&&a.__esModule?a:{default:a}}function r(a){a=unescape(encodeURIComponent(a));const s=[];for(let u=0;u>5]>>>v%32&255,y=parseInt(b.charAt(h>>>4&15)+b.charAt(h&15),16);m.push(y)}return m}function n(p){return(p+64>>>9<<4)+14+1}function r(p,m){p[m>>5]|=128<>5]|=(p[b/8]&255)<>16)+(m>>16)+(g>>16)<<16|g&65535}function o(p,m){return p<>>32-m}function a(p,m,g,b,v,h){return i(o(i(i(m,p),i(b,h)),v),g)}function s(p,m,g,b,v,h,y){return a(m&g|~m&b,p,m,v,h,y)}function u(p,m,g,b,v,h,y){return a(m&b|g&~b,p,m,v,h,y)}function c(p,m,g,b,v,h,y){return a(m^g^b,p,m,v,h,y)}function d(p,m,g,b,v,h,y){return a(g^(m|~b),p,m,v,h,y)}var f=e;return Dp.default=f,Dp}var iR;function rSe(){if(iR)return Op;iR=1,Object.defineProperty(Op,"__esModule",{value:!0}),Op.default=void 0;var e=n(Hq()),t=n(nSe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v3",48,t.default);return Op.default=l,Op}var Ep={},Rp={},lR;function aSe(){if(lR)return Rp;lR=1,Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Rp.default=t,Rp}var sR;function oSe(){if(sR)return Ep;sR=1,Object.defineProperty(Ep,"__esModule",{value:!0}),Ep.default=void 0;var e=r(aSe()),t=r(qq()),n=Rb();function r(o){return o&&o.__esModule?o:{default:o}}function l(o,a,s){if(e.default.randomUUID&&!a&&!o)return e.default.randomUUID();o=o||{};const u=o.random||(o.rng||t.default)();if(u[6]=u[6]&15|64,u[8]=u[8]&63|128,a){s=s||0;for(let c=0;c<16;++c)a[s+c]=u[c];return a}return(0,n.unsafeStringify)(u)}var i=l;return Ep.default=i,Ep}var Lp={},Ip={},uR;function iSe(){if(uR)return Ip;uR=1,Object.defineProperty(Ip,"__esModule",{value:!0}),Ip.default=void 0;function e(l,i,o,a){switch(l){case 0:return i&o^~i&a;case 1:return i^o^a;case 2:return i&o^i&a^o&a;case 3:return i^o^a}}function t(l,i){return l<>>32-i}function n(l){const i=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof l=="string"){const c=unescape(encodeURIComponent(l));l=[];for(let d=0;d>>0;b=g,g=m,m=t(p,30)>>>0,p=f,f=y}o[0]=o[0]+f>>>0,o[1]=o[1]+p>>>0,o[2]=o[2]+m>>>0,o[3]=o[3]+g>>>0,o[4]=o[4]+b>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,o[0]&255,o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,o[1]&255,o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,o[2]&255,o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,o[3]&255,o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,o[4]&255]}var r=n;return Ip.default=r,Ip}var cR;function lSe(){if(cR)return Lp;cR=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.default=void 0;var e=n(Hq()),t=n(iSe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v5",80,t.default);return Lp.default=l,Lp}var $p={},dR;function sSe(){if(dR)return $p;dR=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.default=void 0;var e="00000000-0000-0000-0000-000000000000";return $p.default=e,$p}var Np={},fR;function uSe(){if(fR)return Np;fR=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.default=void 0;var e=t(Eb());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");return parseInt(l.slice(14,15),16)}var r=n;return Np.default=r,Np}var pR;function cSe(){return pR||(pR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=c(tSe()),n=c(rSe()),r=c(oSe()),l=c(lSe()),i=c(sSe()),o=c(uSe()),a=c(Eb()),s=c(Rb()),u=c(Uq());function c(d){return d&&d.__esModule?d:{default:d}}}(Q_)),Q_}var hR;function dSe(){return hR||(hR=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cf()),r=t(db()),l=t(fb()),i=t($a()),o=t(Jke),a=cSe(),s=_b(),u=ds(),c=$5();function d(v,h){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);h&&(w=w.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,w)}return y}function f(v){for(var h=1;h=v.length?{done:!0}:{done:!1,value:v[w++]}},e:function(C){throw C},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,T=!1,k;return{s:function(){y=y.call(v)},n:function(){var C=y.next();return x=C.done,C},e:function(C){T=!0,k=C},f:function(){try{!x&&y.return!=null&&y.return()}finally{if(T)throw k}}}}function m(v,h){if(v){if(typeof v=="string")return g(v,h);var y=Object.prototype.toString.call(v).slice(8,-1);if(y==="Object"&&v.constructor&&(y=v.constructor.name),y==="Map"||y==="Set")return Array.from(v);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return g(v,h)}}function g(v,h){(h==null||h>v.length)&&(h=v.length);for(var y=0,w=new Array(h);y0?k(C.groups):C.data.forEach(function(M){M.tableData.checked!==y&&(M.tableData.checked=M.tableData.disabled?!1:y,h.selectedCount=h.selectedCount+(y?1:-1))})})};T([_])}),(0,i.default)(this,"getOrderByCollection",function(){return h.orderByCollection.filter(function(y){return y.sortOrder})}),(0,i.default)(this,"sortOrderCollection",function(y){return y.sort(function(w,_){return w.sortOrder?_.sortOrder?w.sortOrder-_.sortOrder:-1:1})}),(0,i.default)(this,"startCellEditable",function(y,w){y.tableData.editCellList=[].concat((0,n.default)(y.tableData.editCellList||[]),[w])}),(0,i.default)(this,"finishCellEditable",function(y,w){if(y.tableData.editCellList){var _=y.tableData.editCellList.findIndex(function(x){return x.tableData.id.toString()===w.tableData.id.toString()});_!==-1&&y.tableData.editCellList.splice(_,1)}}),(0,i.default)(this,"clearBulkEditChangedRows",function(){h.bulkEditChangedRows={}}),(0,i.default)(this,"onBulkEditRowChanged",function(y,w){h.bulkEditChangedRows[y.tableData.id]={oldData:y,newData:w}}),(0,i.default)(this,"expandTreeForNodes",function(y){y.forEach(function(w){for(var _=w;h.parentFunc(_,h.data);){var x=h.parentFunc(_,h.data);x&&(x.tableData.isTreeExpanded=!0),_=x}})}),(0,i.default)(this,"findDataByPath",function(y,w){if(h.isDataType("tree")){var _=w.reduce(function(k,S){return k&&k.tableData&&k.tableData.childRows&&k.tableData.childRows.find(function(C){return C&&C.tableData.uuid===S})},{tableData:{childRows:y}});return _}else{var x={groups:y},T=w.reduce(function(k,S){return k.groups.length>0?k.groups[S]:k.data?k.data[S]||k.data.find(function(C){var M;return((M=C.tableData)===null||M===void 0?void 0:M.uuid)===S}):void 0},x);return T}}),(0,i.default)(this,"getFieldValue",function(y,w){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=typeof y[w.field]<"u"?y[w.field]:(0,s.selectFromObject)(y,w.field);return w.lookup&&_&&(x=w.lookup[x]),x}),(0,i.default)(this,"getRenderState",function(){return h.filtered===!1&&h.filterData(),h.searched===!1&&h.searchData(),h.grouped===!1&&h.isDataType("group")&&h.groupData(),h.treefied===!1&&h.isDataType("tree")&&h.treefyData(),h.sorted===!1&&h.sortData(),h.paged===!1&&h.pageData(),{columns:h.columns,currentPage:h.currentPage,data:h.sortedData,lastEditingRow:h.lastEditingRow,orderByCollection:h.orderByCollection,maxColumnSort:h.maxColumnSort,originalData:(0,n.default)(h.data),pageSize:h.pageSize,renderData:h.pagedData,searchText:h.searchText,selectedCount:h.selectedCount,treefiedDataLength:h.treefiedDataLength,treeDataMaxLevel:h.treeDataMaxLevel,groupedDataLength:h.groupedDataLength,tableStyleWidth:h.tableStyleWidth}}),(0,i.default)(this,"filterData",function(){h.searched=h.grouped=h.treefied=h.sorted=h.paged=!1,h.filteredData=(0,n.default)(h.data),h.applyFilters&&h.columns.filter(function(y){return y.tableData.filterValue!==void 0}).forEach(function(y){var w=y.lookup,_=y.type,x=y.tableData;y.customFilterAndSearch?h.filteredData=h.filteredData.filter(function(T){return!!y.customFilterAndSearch(x.filterValue,T,y)}):w?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y,!1);return!x.filterValue||x.filterValue.length===0||x.filterValue.indexOf(k!=null&&k.toString())>-1}):_==="numeric"?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y);return k+""===x.filterValue}):_==="boolean"&&x.filterValue?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y);return k&&x.filterValue==="checked"||!k&&x.filterValue==="unchecked"}):["date","datetime"].includes(_)?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y),S=k?new Date(k):null;if(S&&S.toString()!=="Invalid Date"){var C=x.filterValue,M="",O="";return _==="date"?(M=(0,o.default)(S,"MM/dd/yyyy"),O=(0,o.default)(C,"MM/dd/yyyy")):_==="datetime"&&(M=(0,o.default)(S,"MM/dd/yyyy - HH:mm"),O=(0,o.default)(C,"MM/dd/yyyy - HH:mm")),M===O}return!0}):_==="time"?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y),S=k||null;if(S){var C=x.filterValue,M=(0,o.default)(C,"HH:mm");return S===M}return!0}):h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y);return k!=null&&k.toString().toUpperCase().includes(x.filterValue.toUpperCase())})}),h.filtered=!0}),(0,i.default)(this,"searchData",function(){if(h.grouped=h.treefied=h.sorted=h.paged=!1,h.searchedData=(0,n.default)(h.filteredData),h.searchText&&h.applySearch){var y=h.searchText.trim();h.searchedData=h.searchedData.filter(function(w){return h.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(y,w,_);if(_.field){var x=h.getFieldValue(w,_);if(x)return x.toString().toUpperCase().includes(y.toUpperCase())}return!1})})}h.searched=!0}),(0,i.default)(this,"clearCriteria",function(){h.changeOrder(-1,""),h.changeSearchText("");var y=p(h.columns),w;try{for(y.s();!(w=y.n()).done;){var _=w.value;h.changeFilterValue(_.tableData.id,"")}}catch(x){y.e(x)}finally{y.f()}h.changeSearchText(""),h.changePaging(0)})}return(0,l.default)(v,[{key:"setData",value:function(y,w){var _=this;this.selectedCount=0;var x={};this.data.length!==0&&this.data[0][w]!==void 0&&(x=this.data.reduce(function(T,k){return T[k.tableData.id]=k.tableData,T},{})),this.data=y.map(function(T,k){var S=x[T[w]]||{},C=f(f({index:k,id:T[w]||k,uuid:T.uuid||(0,a.v4)()},S),T.tableData);C.checked&&_.selectedCount++;var M=f(f({},T),{},{tableData:C});return _.lastDetailPanelRow&&_.lastDetailPanelRow.tableData===S&&(_.lastDetailPanelRow=M),_.lastEditingRow&&_.lastEditingRow.tableData===S&&(_.lastEditingRow=M),M}),this.filtered=!1}},{key:"setTableWidth",value:function(y){this.tableWidth=y}},{key:"setColumns",value:function(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=0,T=[];this.columns=y.map(function(C,M){var O,D=(0,u.widthToNumber)(C.width),P=typeof C.width=="number"?C.width+"px":C.width;P&&(isNaN(D)?T.push(P):x+=D);var E=w.find(function(F){var j=F.id;return j===M}),I=(O=_[C.field])!==null&&O!==void 0?O:{},A=f(f(f(f({columnOrder:M,filterValue:C.defaultFilter,groupOrder:C.defaultGroupOrder,groupSort:C.defaultGroupSort||"asc",width:P,initialWidth:P,widthPx:isNaN(D)?void 0:D,additionalWidth:0},I),E?E.tableData:{}),C.tableData),{},{id:M});return C.tableData=A,C});var k=this.columns.filter(function(C){return C.hidden||C.columnDef&&C.columnDef.tableData&&C.columnDef.tableData.width?!1:C.width===void 0}),S=(x!==0?"".concat(x,"px"):"0px")+(T.length>0?" - "+T.join(" - "):"");k.forEach(function(C){C.tableData.width=C.tableData.initialWidth="calc((100% - ".concat(S,") / ").concat(k.length,")")}),this.tableStyleWidth=this.tableWidth==="full"||k.length>0||T.length>0?"100%":x}},{key:"setDefaultExpanded",value:function(y){this.defaultExpanded=y}},{key:"setClientSorting",value:function(y){this.clientSorting=!!y}},{key:"setMaxColumnSort",value:function(y){var w=this.columns.filter(function(_){return _.sorting!==!1}).length;y===c.ALL_COLUMNS?this.maxColumnSort=w:this.maxColumnSort=Math.min(y,w)}},{key:"setOrderByCollection",value:function(){var y=this.getOrderByCollection(),w=this.columns.map(function(_){var x=_.tableData.id,T=y.find(function(k){return k.orderBy===x});return T?f({},T):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});w=this.sortOrderCollection(w),this.orderByCollection=(0,n.default)(w)}},{key:"setDefaultOrderByCollection",value:function(y){this.defaultOrderByCollection=(0,n.default)(y)}},{key:"getDefaultOrderByCollection",value:function(){return this.defaultOrderByCollection}},{key:"changeApplySearch",value:function(y){this.applySearch=y,this.searched=!1}},{key:"changeApplyFilters",value:function(y){this.applyFilters=y,this.filtered=!1}},{key:"changeApplySort",value:function(y){this.applySort=y,this.sorted=!1}},{key:"changePaging",value:function(y){this.paging=y,this.paged=!1}},{key:"changeCurrentPage",value:function(y){this.currentPage=y,this.paged=!1}},{key:"changePageSize",value:function(y){this.pageSize=y,this.paged=!1}},{key:"changeParentFunc",value:function(y){this.parentFunc=y}},{key:"changeFilterValue",value:function(y,w){var _=this.columns.find(function(x){return x.tableData.id===y});_.tableData.filterValue=w,this.filtered=!1}},{key:"changeRowSelected",value:function(y,w){var _=this,x=this.findDataByPath(this.sortedData,w);x.tableData.checked=y,this.selectedCount=this.selectedCount+(y?1:-1);var T=function k(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){C.tableData.checked!==y&&(C.tableData.checked=y,_.selectedCount=_.selectedCount+(y?1:-1)),k(C)})};T(x),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(y,w){var _=this.findDataByPath(this.sortedData,y);(_.tableData.showDetailPanel||"").toString()===w.toString()?_.tableData.showDetailPanel=void 0:_.tableData.showDetailPanel=w,this.detailPanelType==="single"&&this.lastDetailPanelRow&&this.lastDetailPanelRow!==_&&(this.lastDetailPanelRow.tableData.showDetailPanel=void 0),this.lastDetailPanelRow=_}},{key:"changeGroupExpand",value:function(y){var w=this.findDataByPath(this.sortedData,y);w.isExpanded=!w.isExpanded}},{key:"changeSearchText",value:function(y){this.searchText=y,this.searched=!1,this.currentPage=0}},{key:"changeSearchDebounce",value:function(y){this.searchDebounceDelay=y}},{key:"changeRowEditing",value:function(y,w){y?(y.tableData.editing=w,this.lastEditingRow&&this.lastEditingRow!==y&&(this.lastEditingRow.tableData.editing=void 0),w?this.lastEditingRow=y:this.lastEditingRow=void 0):this.lastEditingRow&&(this.lastEditingRow.tableData.editing=void 0,this.lastEditingRow=void 0)}},{key:"changeBulkEditOpen",value:function(y){this.bulkEditOpen=y}},{key:"changeAllSelected",value:function(y,w){var _=0,x=function(C){var M=w instanceof Function?w(C):{disabled:!1};return C.tableData.disabled||M.disabled?!1:y};if(this.isDataType("group")){var T=function S(C){C.forEach(function(M){M.groups.length>0?S(M.groups):M.data.forEach(function(O){O.tableData.checked=x(O),_++})})};T(this.groupedData)}else{var k=function S(C){C.tableData.childRows&&C.tableData.childRows.forEach(function(M){M.tableData.checked=x(C),S(M)})};this.searchedData.forEach(function(S){S.tableData.checked=x(S),k(S)}),_=this.searchedData.length}this.selectedCount=y?_:0}},{key:"changeColumnOrder",value:function(y,w,_){var x=[],T=this.getOrderByCollection();T.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,x=this.orderByCollection.map(function(k){return k.sortOrder?k.sortOrder-=1:k.orderBy===y&&w&&(k.sortOrder=T.length,k.orderDirection=w),k})):x=this.orderByCollection.map(function(k){return k.orderBy===y&&w?(k.orderDirection=w,k.sortOrder=_||T.length+1):!w&&k.orderBy===y?(k.orderDirection=w,k.sortOrder=void 0):!w&&_-1}).sort(function(q,Y){return q.tableData.groupOrder-Y.tableData.groupOrder});if(y.destination.droppableId==="groups"&&y.source.droppableId==="groups"){w=Math.min(y.destination.index,y.source.index);var x=Math.max(y.destination.index,y.source.index);if(_=_.slice(w,x+1),y.destination.index-1})&&(w="group"),y===w}},{key:"sort",value:function(y,w,_){if(_==="numeric")return y-w;if(y!==w){if(!y)return-1;if(!w)return 1}return yw?1:0}},{key:"sortList",value:function(y){if(!this.clientSorting)return y;var w=this.orderByCollection.map(function(S){return S.orderBy}),_=new Map;this.columns.forEach(function(S){var C=S.tableData.id;w.includes(C)&&_.set(C,S)});var x=this.sort,T=this.getFieldValue,k=this.orderByCollection;return y.sort(function S(C,M){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:k,P=D[0],E=P.orderBy,I=P.orderDirection,A=O.get(E),F=0;A.customSort?I==="desc"?F=A.customSort(M,C,"row",I):F=A.customSort(C,M,"row",I):(F=x(T(C,A),T(M,A),A.type),F=I.toLowerCase()==="desc"?F*-1:F);var j=F===0&&D.filter(function(z){return z.sortOrder!==void 0}).length!==1;return j?S(C,M,O,D.slice(1)):F})}},{key:"groupData",value:function(){var y=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var w=(0,n.default)(this.searchedData),_=this.columns.filter(function(T){return T.tableData.groupOrder>-1}).sort(function(T,k){return T.tableData.groupOrder-k.tableData.groupOrder}),x=w.reduce(function(T,k){var S=T;return S=_.reduce(function(C,M){var O=k[M.field]||(0,s.selectFromObject)(k,M.field),D;if(C.groupsIndex[O]!==void 0&&(D=C.groups[C.groupsIndex[O]]),!D){var P=[].concat((0,n.default)(C.path||[]),[O]),E=y.findGroupByGroupPath(y.groupedData,P)||{isExpanded:typeof y.defaultExpanded=="boolean"?y.defaultExpanded:!1};D={value:O,groups:[],groupsIndex:{},data:[],isExpanded:E.isExpanded,path:P},C.groups.push(D),C.groupsIndex[O]=C.groups.length-1}return D},S),S.data.push(k),y.groupedDataLength++,T},{groups:[],groupsIndex:{}});this.groupedData=x.groups,this.grouped=!0,this.rootGroupsIndex=x.groupsIndex}},{key:"treefyData",value:function(){var y=this;this.sorted=this.paged=!1,this.data.forEach(function(k){return k.tableData.childRows=null}),this.treefiedData=[],this.treefiedDataLength=0,this.treeDataMaxLevel=0,(this.searchText||this.columns.some(function(k){return k.tableData.filterValue}))&&(this.data.forEach(function(k){k.tableData.isTreeExpanded=!1}),this.expandTreeForNodes(this.searchedData));var w=function k(S){S.tableData.markedForTreeRemove=!1;var C=y.parentFunc(S,y.data);C?(C.tableData.childRows=C.tableData.childRows||[],C.tableData.childRows.includes(S)||(C.tableData.childRows.push(S),y.treefiedDataLength++),k(C),S.tableData.path=[].concat((0,n.default)(C.tableData.path),[S.tableData.uuid]),y.treeDataMaxLevel=Math.max(y.treeDataMaxLevel,S.tableData.path.length)):y.treefiedData.includes(S)||(y.treefiedData.push(S),y.treefiedDataLength++,S.tableData.path=[S.tableData.uuid])};this.data.forEach(function(k){w(k)});var _=function(S){var C=y.treefiedData;S.tableData.path.forEach(function(M){C.tableData&&C.tableData.childRows&&(C=C.tableData.childRows),Array.isArray(C)&&(C=C.find(function(O){return O.tableData.uuid===M}))}),C.tableData.markedForTreeRemove=!0},x=function k(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){k(C)}),S.tableData.markedForTreeRemove=!1};this.data.forEach(function(k){if(!y.searchText&&!y.columns.some(function(M){return M.tableData.filterValue})&&k.tableData.isTreeExpanded===void 0){var S=typeof y.defaultExpanded=="boolean"?y.defaultExpanded:y.defaultExpanded(k);k.tableData.isTreeExpanded=S}var C=k.tableData.isTreeExpanded;!C&&y.searchedData.indexOf(k)<0&&_(k)}),this.data.forEach(function(k){y.searchedData.indexOf(k)>-1&&x(k)});var T=function k(S){for(var C=S.length-1;C>=0;C--){var M=S[C];M.tableData.childRows&&k(M.tableData.childRows),M.tableData.markedForTreeRemove&&S.splice(C,1)}};T(this.treefiedData),this.treefiedDataLength=this.treefiedData.length,this.treefied=!0}},{key:"sortData",value:function(){var y=this;if(this.paged=!1,this.isDataType("group")){this.sortedData=(0,n.default)(this.groupedData);var w=this.columns.filter(function(S){return S.tableData.groupOrder>-1}).sort(function(S,C){return S.tableData.groupOrder-C.tableData.groupOrder}),_=function(C,M){return M.customSort?C.sort(M.tableData.groupSort==="desc"?function(O,D){return M.customSort(D.value,O.value,"group",M.tableData.groupSort)}:function(O,D){return M.customSort(O.value,D.value,"group",M.tableData.groupSort)}):C.sort(M.tableData.groupSort==="desc"?function(O,D){return y.sort(D.value,O.value,M.type)}:function(O,D){return y.sort(O.value,D.value,M.type)})};this.sortedData=_(this.sortedData,w[0]);var x=function(C){return C.reduce(function(M,O){return M[O.value]=C.findIndex(function(D){return D.value===O.value}),M},{})},T=function S(C,M){C.forEach(function(O){if(O.groups.length>0){var D=w[M];O.groups=_(O.groups,D),O.groupsIndex=x(O.groups),S(O.groups,M+1)}else y.maxColumnSort>0&&y.getOrderByCollection().length>0?O.data=y.sortList(O.data):y.maxColumnSort>0&&(O.data=O.data.sort(function(P,E){return y.data.findIndex(function(I){return I.tableData.id===P.tableData.id})-y.data.findIndex(function(I){return I.tableData.id===E.tableData.id})}))})};T(this.sortedData,1)}else if(this.isDataType("tree")){if(this.sortedData=(0,n.default)(this.treefiedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0){this.sortedData=this.sortList(this.sortedData);var k=function S(C){C.forEach(function(M){M.tableData.childRows&&(M.tableData.childRows=y.sortList(M.tableData.childRows),S(M.tableData.childRows))})};k(this.sortedData)}}else this.isDataType("normal")&&(this.sortedData=(0,n.default)(this.searchedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0&&this.applySort&&(this.sortedData=this.sortList(this.sortedData)));this.sorted=!0}},{key:"pageData",value:function(){if(this.pagedData=(0,n.default)(this.sortedData),this.paging){var y=this.currentPage*this.pageSize,w=y+this.pageSize;this.pagedData=this.pagedData.slice(y,w)}this.paged=!0}}]),v}();e.default=b}(Z_)),Z_}var mR;function fSe(){return mR||(mR=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Xke),l=t(Kke),i=t(ls),o=t(Ir()),a=t(fc),s=t(cf()),u=t(Zke),c=t(_a()),d=t(iu()),f=t(db()),p=t(fb()),m=t(LM()),g=t(RM()),b=t(IM()),v=t($M()),h=t($a()),y=t(ge),w=Qke(),_=t(tB()),x=M(ds()),T=I5,k=t(dSe()),S=Db();function C(j){if(typeof WeakMap!="function")return null;var z=new WeakMap,B=new WeakMap;return(C=function(R){return R?B:z})(j)}function M(j,z){if(j&&j.__esModule)return j;if(j===null||n(j)!=="object"&&typeof j!="function")return{default:j};var B=C(z);if(B&&B.has(j))return B.get(j);var N={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in j)if(q!=="default"&&Object.prototype.hasOwnProperty.call(j,q)){var Y=R?Object.getOwnPropertyDescriptor(j,q):null;Y&&(Y.get||Y.set)?Object.defineProperty(N,q,Y):N[q]=j[q]}return N.default=j,B&&B.set(j,N),N}function O(j,z){var B=Object.keys(j);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(j);z&&(N=N.filter(function(R){return Object.getOwnPropertyDescriptor(j,R).enumerable})),B.push.apply(B,N)}return B}function D(j){for(var z=1;z"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var I=function(j){(0,g.default)(B,j);var z=P(B);function B(N){var R;(0,f.default)(this,B),R=z.call(this,N),(0,h.default)((0,m.default)(R),"dataManager",new k.default),(0,h.default)((0,m.default)(R),"checkedForFunctions",!1),(0,h.default)((0,m.default)(R),"clearCriteria",function(){R.dataManager.clearCriteria(),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"isRemoteData",function(L){return!Array.isArray((L||R.props).data)}),(0,h.default)((0,m.default)(R),"onAllSelected",function(L){R.dataManager.changeAllSelected(L,R.props.options.selectionProps),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,h.default)((0,m.default)(R),"onGroupSelected",function(L,W){R.dataManager.changeGroupSelected(L,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,h.default)((0,m.default)(R),"onChangeColumnHidden",function(L,W){R.dataManager.changeColumnHidden(L,W),R.setState(R.dataManager.getRenderState(),function(){R.props.onChangeColumnHidden&&R.props.onChangeColumnHidden(L,W)})}),(0,h.default)((0,m.default)(R),"onChangeGroupOrder",function(L){R.dataManager.changeGroupOrder(L.tableData.id),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onChangeOrder",function(L,W,U){R.dataManager.changeColumnOrder(L,W,U);var V=R.dataManager.getOrderByCollection();if(R.isRemoteData()){var te=D({},R.state.query);te.page=0,te.orderBy=R.state.columns.find(function(ee){return ee.tableData.id===L}),te.orderDirection=W,console.warn("Properties orderBy and orderDirection had been deprecated when remote data, please start using orderByCollection instead"),te.orderByCollection=V,R.onQueryChange(te,function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(V)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(V)})}),(0,h.default)((0,m.default)(R),"onPageChange",function(L,W){if(R.isRemoteData()){var U=D({},R.state.query);U.page=W,R.onQueryChange(U,function(){R.props.onPageChange&&R.props.onPageChange(W,U.pageSize)})}else R.dataManager.changeCurrentPage(W),R.setState(R.dataManager.getRenderState(),function(){R.props.onPageChange&&R.props.onPageChange(W,R.state.pageSize)})}),(0,h.default)((0,m.default)(R),"onRowsPerPageChange",function(L){var W=L.target.value;R.dataManager.changePageSize(W);var U=function(){R.props.onPageChange&&R.props.onPageChange(0,W),R.props.onRowsPerPageChange&&R.props.onRowsPerPageChange(W)};if(R.isRemoteData()){var V=D({},R.state.query);V.pageSize=L.target.value,V.page=0,R.onQueryChange(V,U)}else R.dataManager.changeCurrentPage(0),R.setState(R.dataManager.getRenderState(),U)}),(0,h.default)((0,m.default)(R),"onDragEnd",function(L){!L||!L.source||!L.destination||(R.dataManager.changeByDrag(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onColumnDragged&&L.destination.droppableId==="headers"&&L.source.droppableId==="headers"&&R.props.onColumnDragged(L.source.index,L.destination.index)}))}),(0,h.default)((0,m.default)(R),"onGroupExpandChanged",function(L){R.dataManager.changeGroupExpand(L),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onGroupRemoved",function(L,W){var U={combine:null,destination:{droppableId:"headers",index:0},draggableId:L.tableData.id,mode:"FLUID",reason:"DROP",source:{index:W,droppableId:"groups"},type:"DEFAULT"};R.dataManager.changeByDrag(U),R.setState(R.dataManager.getRenderState(),function(){R.props.onGroupRemoved&&R.props.onGroupRemoved(L,W)})}),(0,h.default)((0,m.default)(R),"onEditingApproved",function(L,W,U){L==="add"&&R.props.editable&&R.props.editable.onRowAdd?R.setState({isLoading:!0},function(){R.props.editable.onRowAdd(W).then(function(V){R.setState({isLoading:!1,showAddRow:!1},function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"add"};R.setState({isLoading:!1,errorState:te})})}):L==="update"&&R.props.editable&&R.props.editable.onRowUpdate?R.setState({isLoading:!0},function(){R.props.editable.onRowUpdate(W,U).then(function(V){R.dataManager.changeRowEditing(U),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"update"};R.setState({isLoading:!1,errorState:te})})}):L==="delete"&&R.props.editable&&R.props.editable.onRowDelete?R.setState({isLoading:!0},function(){R.props.editable.onRowDelete(Object.entries(U).reduce(function(V,te){var ee=(0,d.default)(te,2),H=ee[0],Z=ee[1];return H!=="tableData"&&(V[H]=Z),V},{})).then(function(V){R.dataManager.changeRowEditing(U),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"delete"};R.setState({isLoading:!1,errorState:te})})}):L==="bulk"&&R.props.editable&&R.props.editable.onBulkUpdate&&R.setState({isLoading:!0},function(){R.props.editable.onBulkUpdate(R.dataManager.bulkEditChangedRows).then(function(V){R.dataManager.changeBulkEditOpen(!1),R.props.onBulkEditOpen&&R.props.onBulkEditOpen(!1),R.dataManager.clearBulkEditChangedRows(),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"bulk edit"};R.setState({isLoading:!1,errorState:te})})})}),(0,h.default)((0,m.default)(R),"onEditingCanceled",function(L,W){L==="add"?(R.props.editable.onRowAddCancelled&&R.props.editable.onRowAddCancelled(),R.setState({showAddRow:!1})):L==="update"?(R.props.editable.onRowUpdateCancelled&&R.props.editable.onRowUpdateCancelled(),R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState())):L==="delete"&&(R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState()))}),(0,h.default)((0,m.default)(R),"retry",function(){R.onQueryChange(R.state.query)}),(0,h.default)((0,m.default)(R),"onQueryChange",function(L,W){L=D(D(D({},R.state.query),L),{},{error:R.state.errorState}),R.setState({isLoading:!0,errorState:void 0},function(){R.props.data(L).then(function(U){L.totalCount=U.totalCount,L.page=U.page;var V=D(D({},L),{},{totalCount:U.totalCount,page:U.page});R.dataManager.setData(U.data,R.props.options.idSynonym),R.setState(D(D({isLoading:!1,errorState:!1},R.dataManager.getRenderState()),{},{query:V}),function(){W&&W()})}).catch(function(U){var V={message:(0,c.default)(U)==="object"?U.message:U!==void 0?U:R.props.localization.error,errorCause:"query"};R.setState(D({isLoading:!1,errorState:V},R.dataManager.getRenderState()))})})}),(0,h.default)((0,m.default)(R),"onRowSelected",function(L,W,U){R.dataManager.changeRowSelected(L.target.checked,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange(U)})}),(0,h.default)((0,m.default)(R),"onSelectionChange",function(L){if(R.props.onSelectionChange){var W=[],U=function(te){te.forEach(function(ee){ee.tableData.checked&&W.push(ee)})};U(R.state.originalData),R.props.onSelectionChange(W,L)}}),(0,h.default)((0,m.default)(R),"onSearchChangeDebounce",(0,w.debounce)(function(L){if(R.isRemoteData()){var W=D({},R.state.query);W.page=0,W.search=L,R.onQueryChange(W,function(){R.props.onSearchChange&&R.props.onSearchChange(L)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onSearchChange&&R.props.onSearchChange(L)})},R.props.options.debounceInterval)),(0,h.default)((0,m.default)(R),"onFilterChange",function(L,W){R.dataManager.changeFilterValue(L,W),R.setState({},R.onFilterChangeDebounce)}),(0,h.default)((0,m.default)(R),"onFilterChangeDebounce",(0,w.debounce)(function(){if(R.isRemoteData()){var L=D({},R.state.query);L.page=0,L.filters=R.state.columns.filter(function(W){return W.tableData.filterValue}).map(function(W){return{column:W,operator:"=",value:W.tableData.filterValue}}),R.onQueryChange(L,function(){R.props.onFilterChange&&R.props.onFilterChange(L.filters)})}else R.setState(R.dataManager.getRenderState(),function(){if(R.props.onFilterChange){var W=R.state.columns.filter(function(U){return U.tableData.filterValue}).map(function(U){return{column:U,operator:"=",value:U.tableData.filterValue}});R.props.onFilterChange(W)}})},R.props.options.debounceInterval)),(0,h.default)((0,m.default)(R),"onTreeExpandChanged",function(L,W){R.dataManager.changeTreeExpand(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onTreeExpandChange&&R.props.onTreeExpandChange(W,W.tableData.isTreeExpanded)})}),(0,h.default)((0,m.default)(R),"onToggleDetailPanel",function(L,W){R.dataManager.changeDetailPanelVisibility(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onCellEditStarted",function(L,W){R.dataManager.startCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onCellEditFinished",function(L,W){R.dataManager.finishCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onEditRowDataChanged",function(L,W){R.dataManager.setEditRowData(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onColumnResized",function(L,W,U,V){var te=function(Z){return D(D(D({field:Z.field,width:Z.tableData.width,widthPx:Z.tableData.widthPx},Z.id&&{id:Z.id}),Z.minWidth&&{minWidth:Z.minWidth}),Z.maxWidth&&{maxWidth:Z.maxWidth})},ee=R.dataManager.onColumnResized(L,W,U,V);R.setState(R.dataManager.getRenderState(),function(){W===0&&R.props.onColumnResized&&ee.length>0&&R.props.onColumnResized(ee.map(function(H){return te(H)}),R.state.columns.map(function(H){return te(H)}))})}),(0,h.default)((0,m.default)(R),"renderTable",function(L){var W;return y.default.createElement(u.default,{sx:L.sx,style:D(D({},L.options.tableWidth==="variable"&&{width:R.state.tableStyleWidth}),{},{tableLayout:L.options.fixedColumns&&(L.options.fixedColumns.left||L.options.fixedColumns.right)?"fixed":L.options.tableLayout})},L.options.header&&y.default.createElement(L.components.Header,{actions:R.state.actions,columns:R.state.columns,selectedCount:R.state.selectedCount,dataCount:L.parentChildData?R.dataManager.searchedData.length:R.state.columns.some(function(U){return U.tableData.groupOrder>-1})?R.state.groupedDataLength:R.state.data.length,hasDetailPanel:!!L.detailPanel,showActionsColumn:!R.dataManager.bulkEditOpen&&R.state.actions&&R.state.actions.some(function(U){return U.position==="row"||typeof U=="function"}),onAllSelected:R.onAllSelected,onOrderChange:R.onChangeOrder,isTreeData:R.props.parentChildData!==void 0,treeDataMaxLevel:R.state.treeDataMaxLevel,onColumnResized:R.onColumnResized,scrollWidth:R.state.width,sorting:L.options.sorting||R.dataManager.maxColumnSort!==0,allowSorting:R.dataManager.maxColumnSort!==0,orderByCollection:R.dataManager.getOrderByCollection(),tableWidth:(W=L.options.tableWidth)!==null&&W!==void 0?W:"full"}),y.default.createElement(L.components.Body,{actions:R.state.actions,components:R.props.components,renderData:R.state.renderData,data:R.state.data,renderSummaryRow:R.props.renderSummaryRow,currentPage:R.isRemoteData()?0:R.state.currentPage,initialFormData:L.initialFormData,pageSize:R.state.pageSize,columns:R.state.columns,errorState:R.state.errorState,detailPanel:L.detailPanel,options:L.options,getFieldValue:R.dataManager.getFieldValue,isTreeData:R.props.parentChildData!==void 0,onFilterChanged:R.onFilterChange,onRowSelected:R.onRowSelected,onGroupSelected:R.onGroupSelected,onToggleDetailPanel:R.onToggleDetailPanel,onGroupExpandChanged:R.onGroupExpandChanged,onTreeExpandChanged:R.onTreeExpandChanged,onEditingCanceled:R.onEditingCanceled,onEditingApproved:R.onEditingApproved,onRowClick:R.props.onRowClick,onRowDoubleClick:R.props.onRowDoubleClick,showAddRow:R.state.showAddRow,hasAnyEditingRow:!!(R.state.lastEditingRow||R.state.showAddRow),hasDetailPanel:!!L.detailPanel,treeDataMaxLevel:R.state.treeDataMaxLevel,cellEditable:L.cellEditable,onCellEditStarted:R.onCellEditStarted,onCellEditFinished:R.onCellEditFinished,onRowEditStarted:R.onRowEditStarted,bulkEditOpen:R.dataManager.bulkEditOpen,bulkEditChangedRows:R.dataManager.bulkEditChangedRows,onBulkEditRowChanged:R.dataManager.onBulkEditRowChanged,scrollWidth:R.state.width}))}),(0,h.default)((0,m.default)(R),"onRowEditStarted",function(L){var W;(W=R.props.editable)!==null&&W!==void 0&&W.onRowUpdate&&(R.dataManager.changeRowEditing(L,"update"),R.setState(D(D({},R.dataManager.getRenderState()),{},{showAddRow:!1})))}),(0,h.default)((0,m.default)(R),"getColumnsWidth",function(L,W){var U=[],V=x.actionsColumnWidth(L);if(V>0&&(W>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=W)&&U.push(V+"px"),L.options.selection&&W>0){var te=x.selectionMaxWidth(L,R.state.treeDataMaxLevel);U.push(te+"px")}for(var ee=0;ee=0?ee:R.state.columns.length-1-ee];H.tableData&&(typeof H.tableData.width=="number"?U.push(H.tableData.width+"px"):U.push(H.tableData.width))}return"calc("+U.join(" + ")+")"}),(0,h.default)((0,m.default)(R),"getRenderData",function(){return R.props.options.exportAllData?R.state.data:R.state.renderData});var q=R.getProps(N);R.setDataManagerFields(q,!0);var Y=R.dataManager.getRenderState();return R.state=D(D({data:[],errorState:void 0},Y),{},{query:{filters:Y.columns.filter(function(L){return L.tableData.filterValue}).map(function(L){return{column:L,operator:"=",value:L.tableData.filterValue}}),orderBy:Y.columns.find(function(L){return L.tableData.id===Y.orderBy}),orderDirection:Y.orderDirection,orderByCollection:Y.orderByCollection,page:0,pageSize:q.options.pageSize,search:Y.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:q.actions}),R.tableContainerDiv=y.default.createRef(),R}return(0,p.default)(B,[{key:"componentDidMount",value:function(){var R=this;this.setState(D(D({},this.dataManager.getRenderState()),{},{width:this.tableContainerDiv.current.scrollWidth}),function(){R.isRemoteData()&&R.onQueryChange(D(D({},R.state.query),{},{page:R.props.options.initialPage||0})),R.props.onDoubleRowClick!==void 0&&console.warn("Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`"),R.props.options.sorting!==void 0&&console.warn("Property `sorting` has been deprecated, please start using `maxColumnSort` instead. https://github.com/material-table-core/core/pull/619")})}},{key:"setDataManagerFields",value:function(R,q,Y){var L,W=this,U={};if(R.options.persistentGroupingsId&&localStorage){var V=localStorage.getItem("material-table-groupings");V&&(V=JSON.parse(V),V[R.options.persistentGroupingsId]&&V[R.options.persistentGroupingsId].forEach(function(Se){U[Se.field]={groupOrder:Se.groupOrder,groupSort:Se.groupSort,columnOrder:Se.columnOrder}}))}this.dataManager.setTableWidth((L=R.options.tableWidth)!==null&&L!==void 0?L:"full"),this.dataManager.setColumns(R.columns,Y,U),this.dataManager.setDefaultExpanded(R.options.defaultExpanded),this.dataManager.changeRowEditing();var te=R.options,ee=te.clientSorting,H=te.grouping,Z=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(H?1:Z),this.dataManager.setOrderByCollection(),this.isRemoteData(R)?(this.dataManager.changeApplySearch(!1),this.dataManager.changeApplyFilters(!1),this.dataManager.changeApplySort(!1)):(this.dataManager.changeApplySearch(!0),this.dataManager.changeApplyFilters(!0),this.dataManager.changeApplySort(!0),this.dataManager.setData(R.data,R.options.idSynonym));var G=this.dataManager.getDefaultOrderByCollection(),X=R.options.defaultOrderByCollection,Q=[],re="",ae="";if(X&&X.length>0)Q=(0,s.default)(X).slice(0,Z),Q=this.dataManager.sortOrderCollection(Q),re=JSON.stringify(Q),ae=JSON.stringify(G),re!==ae&&this.dataManager.setDefaultOrderByCollection(Q);else{var ie=A(R.columns,Y,this.dataManager.maxColumnSort);Q=(0,s.default)(ie[0]),re=JSON.stringify(Q),ae=JSON.stringify((0,s.default)(ie[1]))}var se=JSON.stringify(this.dataManager.orderByCollection),he=q||!this.isRemoteData()&&Q.length&&re!==ae&&re!==se;he&&Q.length>0&&Z>0&&Q.forEach(function(Se){var Oe=Se.orderBy,Pe=Se.orderDirection,Me=Se.sortOrder;return W.dataManager.changeColumnOrder(Oe,Pe,Me)}),q&&this.dataManager.changeSearchText(R.options.searchText||""),q&&this.dataManager.changeSearchDebounce(R.options.searchDebounceDelay),q&&this.dataManager.changeCurrentPage(R.options.initialPage?R.options.initialPage:0),q&&this.dataManager.changePageSize(R.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:R.options.paging),q&&this.dataManager.changeParentFunc(R.parentChildData),this.dataManager.changeDetailPanelType(R.options.detailPanelType)}},{key:"cleanColumns",value:function(R){return R.map(function(q){var Y=D({},q);return delete Y.tableData,Y})}},{key:"componentDidUpdate",value:function(R){var q=this.cleanColumns(R.columns),Y=this.cleanColumns(this.props.columns),L=!(0,_.default)(q,Y),W=L||!(0,_.default)(R.options,this.props.options);if(this.isRemoteData()||(W=W||!(0,_.default)(R.data,this.props.data)),R.options.pageSize!==this.props.options.pageSize&&this.dataManager.changePageSize(this.props.options.pageSize),W){var U=this.getProps(this.props);this.setDataManagerFields(U,!1,R.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:U.actions}))}var V=this.isRemoteData()?this.state.query.totalCount:this.state.data.length,te=this.isRemoteData()?this.state.query.page:this.state.currentPage,ee=this.isRemoteData()?this.state.query.pageSize:this.state.pageSize;V<=ee*te&&te!==0&&!this.state.isLoading&&this.onPageChange(null,Math.max(0,Math.ceil(V/ee)-1))}},{key:"getProps",value:function(R){var q=this,Y=D({},R||this.props),L=this.props.localization.body;if(Y.options.selection?Y.actions=Y.actions.filter(function(U){return U}).map(function(U){return U.position==="auto"||U.isFreeAction===!1||U.position===void 0&&U.isFreeAction===void 0?typeof U=="function"?{action:U,position:"toolbarOnSelect"}:D(D({},U),{},{position:"toolbarOnSelect"}):U.isFreeAction?typeof U=="function"?{action:U,position:"toolbar"}:D(D({},U),{},{position:"toolbar"}):U}):Y.actions=Y.actions.filter(function(U){return U}).map(function(U){return U.position==="auto"||U.isFreeAction===!1||U.position===void 0&&U.isFreeAction===void 0?typeof U=="function"?{action:U,position:"row"}:D(D({},U),{},{position:"row"}):U.isFreeAction?typeof U=="function"?{action:U,position:"toolbar"}:D(D({},U),{},{position:"toolbar"}):U}),Y.editable){var W;Y.editable.onRowAdd&&Y.actions.push({icon:Y.icons.Add,tooltip:L.addTooltip,position:"toolbar",disabled:!!this.dataManager.lastEditingRow,onClick:function(){q.dataManager.changeRowEditing(),q.state.showAddRow&&q.props.editable.onRowAddCancelled&&q.props.editable.onRowAddCancelled(),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!q.state.showAddRow}))}}),Y.editable.onRowUpdate&&Y.actions.push(function(U){return{icon:Y.icons.Edit,tooltip:Y.editable.editTooltip?Y.editable.editTooltip(U):L.editTooltip,disabled:Y.editable.isEditable&&!Y.editable.isEditable(U),hidden:Y.editable.isEditHidden&&Y.editable.isEditHidden(U),onClick:function(te,ee){q.onRowEditStarted(ee)}}}),Y.editable.onRowDelete&&Y.actions.push(function(U){return{icon:Y.icons.Delete,tooltip:Y.editable.deleteTooltip?Y.editable.deleteTooltip(U):L.deleteTooltip,disabled:Y.editable.isDeletable&&!Y.editable.isDeletable(U),hidden:Y.editable.isDeleteHidden&&Y.editable.isDeleteHidden(U),onClick:function(te,ee){q.dataManager.changeRowEditing(ee,"delete"),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!1}))}}}),Y.editable.onBulkUpdate&&(Y.actions.push({icon:Y.icons.Edit,tooltip:L.bulkEditTooltip,position:"toolbar",hidden:this.dataManager.bulkEditOpen,disabled:Y.isBulkEditable&&Y.isBulkEditable(),onClick:function(){q.dataManager.changeBulkEditOpen(!0),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!0),q.setState(q.dataManager.getRenderState())}}),Y.actions.push({icon:Y.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return q.onEditingApproved("bulk")}}),Y.actions.push({icon:Y.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){q.dataManager.changeBulkEditOpen(!1),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!1),q.dataManager.clearBulkEditChangedRows(),q.setState(q.dataManager.getRenderState())}})),(W=this.state)!==null&&W!==void 0&&W.showAddRow&&Y.editable.onRowAdd&&Y.actions.filter(function(U){return U.position==="row"}).length===0&&Y.actions.push({icon:void 0,position:"row",onClick:function(){},disabled:!0})}return Y}},{key:"renderFooter",value:function(){var R=this.getProps();if(R.options.paging){var q=this.isRemoteData()?Math.min(R.page,Math.floor(R.totalCount/this.state.pageSize)):this.state.currentPage,Y=this.isRemoteData()?R.totalCount:this.state.data.length;return y.default.createElement(u.default,null,y.default.createElement(l.default,{style:{display:"grid"}},y.default.createElement(i.default,{style:{display:"grid"}},y.default.createElement(R.components.Pagination,{sx:{display:"flex",justifyContent:R.options.paginationAlignment?R.options.paginationAlignment:"flex-end",overflowX:"auto","& .MuiTablePagination-displayedRows":{display:"none"}},colSpan:3,count:this.isRemoteData()?this.state.query.totalCount:Y,rowsPerPage:this.state.pageSize,rowsPerPageOptions:R.options.pageSizeOptions,SelectProps:{renderValue:function(W){return y.default.createElement(a.default,{sx:{padding:"0px 5px"}},W+" "+R.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:q,onPageChange:this.onPageChange,onRowsPerPageChange:this.onRowsPerPageChange,ActionsComponent:function(W){return R.options.paginationType==="normal"?y.default.createElement(S.MTablePagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons})):y.default.createElement(S.MTableSteppedPagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons,numberOfPagesAround:R.options.numberOfPagesAround}))},labelRowsPerPage:R.localization.pagination.labelRowsPerPage}))))}}},{key:"render",value:function(){var R=this,q=this.getProps();return y.default.createElement(T.DragDropContext,{onDragEnd:this.onDragEnd,nonce:q.options.cspNonce},y.default.createElement(this.props.components.Container,{style:D({position:"relative"},q.style)},q.options.paginationPosition==="top"||q.options.paginationPosition==="both"?this.renderFooter():null,q.options.toolbar&&y.default.createElement(this.props.components.Toolbar,{actions:q.actions,components:this.props.components,originalData:this.state.originalData,columns:this.state.columns,selectedCount:this.state.selectedCount,getFieldValue:this.dataManager.getFieldValue,data:this.getRenderData,title:q.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),q.options.grouping&&y.default.createElement(this.props.components.Groupbar,{groupColumns:this.state.columns.filter(function(Y){return Y.tableData.groupOrder>-1}).sort(function(Y,L){return Y.tableData.groupOrder-L.tableData.groupOrder}),onSortChanged:this.onChangeGroupOrder,onGroupRemoved:this.onGroupRemoved,onGroupChange:this.props.onGroupChange,persistentGroupingsId:q.options.persistentGroupingsId}),y.default.createElement(S.MTableScrollbar,{double:q.options.doubleHorizontalScroll},y.default.createElement(T.Droppable,{droppableId:"headers",direction:"horizontal"},function(Y,L){var W=R.renderTable(q);return y.default.createElement("div",{ref:Y.innerRef},y.default.createElement("div",{ref:R.tableContainerDiv,style:{maxHeight:q.options.maxBodyHeight,minHeight:q.options.minBodyHeight,overflowY:q.options.overflowY}},R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.right?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,-1*q.options.fixedColumns.right),position:"absolute",top:0,right:0,boxShadow:"-2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white",transform:"translateX(calc(".concat(R.getColumnsWidth(q,-1*q.options.fixedColumns.right)," - 100%))")}},W)):null,y.default.createElement("div",null,W),R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.left?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,q.options.fixedColumns.left),position:"absolute",top:0,left:0,boxShadow:"2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white"},onKeyDown:function(V){V.key==="Tab"&&V.preventDefault()}},W)):null),Y.placeholder)})),(this.state.isLoading||q.isLoading)&&q.options.loadingType==="linear"&&y.default.createElement("div",{style:{position:"relative",width:"100%"}},y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"}},y.default.createElement(r.default,null))),q.options.paginationPosition==="bottom"||q.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||q.isLoading)&&q.options.loadingType==="overlay"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayLoading,{theme:q.theme})),this.state.errorState&&this.state.errorState.errorCause==="query"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayError,{error:this.state.errorState,retry:this.retry,theme:q.theme}))))}}]),B}(y.default.Component);e.default=I;function A(j,z,B){var N=[],R=[];return B>0&&(N=F(j,B)),z&&(R=F(z,B)),[N,R]}function F(j,z){var B=j.filter(function(N){return N.defaultSort&&N.sorting!==!1});return B.slice(0,z).map(function(N,R){return{orderBy:N.tableData?N.tableData.id:j.findIndex(function(q){return q.field===N.field}),orderDirection:N.defaultSort,sortOrder:R+1}})}}(X_)),X_}(function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return c.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return u.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return u.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return u.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return u.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return u.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return u.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return u.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return u.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return u.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return u.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return u.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return u.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return u.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return u.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return s.useLocalizationStore}});var n=t(Ir()),r=t(ge),l=Gke(),i=Yke(),o=t(fSe()),a=sf,s=eg(),u=Db(),c=$5();o.default.defaultProps=l.defaultProps,o.default.propTypes=i.propTypes;var d=(0,s.withContext)(function(f){var p=(0,a.useTheme)(),m=(0,s.useMergeProps)(f),g=m.localization,b=m.options,v=m.components;return r.default.createElement(o.default,(0,n.default)({},f,{theme:p,options:b,components:v,localization:g,ref:f.tableRef}))});e.default=d})(qz);const pSe=lr(qz);var N5={},hSe=Cn;Object.defineProperty(N5,"__esModule",{value:!0});var Vq=N5.default=void 0,mSe=hSe(Ta()),gSe=ke,vSe=(0,mSe.default)((0,gSe.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");Vq=N5.default=vSe;const ySe=e=>{const t=e.activeTab===-1?0:e.activeTab;return ke.jsxs("div",{children:[ke.jsx(Nz,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map(n=>ke.jsx(J3,{disabled:n.disabled??!1,label:ke.jsx(Ia,{className:e.tabStyle,children:ke.jsxs(Ia,{display:"flex",sx:{fontSize:"0.875rem"},children:[ke.jsx("span",{children:n.icon}),n.title]})})}))}),ke.jsx(Ia,{children:e.tabs.map((n,r)=>ke.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==r,children:(e.activeTab===-1?0:e.activeTab)!==r?ke.jsx("div",{}):n.tab}))})]})},F5=e=>{const[t,n]=ge.useState({activeTab:0});return ke.jsx(Je.Fragment,{children:ke.jsx(ySe,{activeTab:t.activeTab,onNewTabSelected:(r,l)=>n(i=>({...i,activeTab:l})),tabs:e.tabs})})},yk=({func:e,children:t})=>{const[n,r]=ge.useState(()=>({status:0,func:e}));return n.status===0&&r(l=>({...l,status:1})),n.status===1&&(r(l=>({...l,status:2})),n.func().then(l=>r(i=>({...i,status:3,result:l}))).catch(()=>r(l=>({...l,status:4})))),ke.jsx(ke.Fragment,{children:n.status===3?t&&n.result&&t(n.result):n.status===4?ke.jsx(dr,{align:"center",children:"Failed"}):n.status===2?ke.jsx(Ia,{textAlign:"center",children:ke.jsx(Xj,{})}):null})},Gq=e=>ke.jsxs(cM,{severity:e.data.severity,children:[ke.jsx(dM,{children:e.data.title}),e.data.text]}),Yq=()=>ke.jsx("div",{children:"Not implemented"}),bSe=e=>e.type??"graph",gR=(e,t,n)=>{switch(bSe(t)){case"graph":{const r=()=>e.getAdditionGraphData(t.id),l=i=>ke.jsx(ub,{...i,widgetSize:n});return ke.jsx(yk,{func:r,children:l})}case"widget":{const r=()=>e.getAdditionWidgetData(t.id),l=i=>_g(t.id,i);return ke.jsx(yk,{func:r,children:l})}default:return ke.jsx(Yq,{})}},j5=e=>ke.jsx(DM.Consumer,{children:t=>ke.jsxs(Ia,{children:[e.details.parts.length>1?ke.jsx(F5,{tabs:e.details.parts.map(n=>({title:n.title,tab:gR(t,n,e.widgetSize)}))}):gR(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?ke.jsx(ke.Fragment,{}):e.details.insights.map(n=>ke.jsx(Gq,{data:n},n.text+n.title+n.severity))]})}),xSe=e=>ke.jsx(DM.Consumer,{children:t=>ke.jsx(yk,{func:()=>t.getAdditionGraphData(e.graphId),children:n=>ke.jsx(ub,{...n,widgetSize:e.widgetSize})})});var bk={exports:{}},xk={exports:{}};(function(e,t){t.__esModule=!0,t.default=n;function n(r){var l={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(l[i]=0);return l}e.exports=t.default})(xk,xk.exports);var z5=xk.exports,wk={exports:{}};(function(e,t){t.__esModule=!0,t.default=n;function n(r){var l={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(l[i]=typeof r[i]=="number"?r[i]:r[i].val);return l}e.exports=t.default})(wk,wk.exports);var Lb=wk.exports,_k={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;var n=[0,0];function r(l,i,o,a,s,u,c){var d=-s*(i-a),f=-u*o,p=d+f,m=o+p*l,g=i+m*l;return Math.abs(m)"u"?Oo:window,_0=["moz","webkit"],Td="AnimationFrame",Yd=Hl["request"+Td],Tm=Hl["cancel"+Td]||Hl["cancelRequest"+Td];for(var Fp=0;!Yd&&Fp<_0.length;Fp++)Yd=Hl[_0[Fp]+"Request"+Td],Tm=Hl[_0[Fp]+"Cancel"+Td]||Hl[_0[Fp]+"CancelRequest"+Td];if(!Yd||!Tm){var J_=0,vR=0,mu=[],TSe=1e3/60;Yd=function(e){if(mu.length===0){var t=_Se(),n=Math.max(0,TSe-(t-J_));J_=n+t,setTimeout(function(){var r=mu.slice(0);mu.length=0;for(var l=0;lT*10&&(O.accumulatedTime=0),O.accumulatedTime===0){O.animationID=null,O.startAnimationIfNecessary();return}var A=(O.accumulatedTime-Math.floor(O.accumulatedTime/T)*T)/T,F=Math.floor(O.accumulatedTime/T),j={},z={},B={},N={};for(var R in P)if(Object.prototype.hasOwnProperty.call(P,R)){var q=P[R];if(typeof q=="number")B[R]=q,N[R]=0,j[R]=q,z[R]=0;else{for(var Y=O.state.lastIdealStyle[R],L=O.state.lastIdealVelocity[R],W=0;WT*10&&(D.accumulatedTime=0),D.accumulatedTime===0){D.animationID=null,D.startAnimationIfNecessary();return}for(var F=(D.accumulatedTime-Math.floor(D.accumulatedTime/T)*T)/T,j=Math.floor(D.accumulatedTime/T),z=[],B=[],N=[],R=[],q=0;qo[h])return-1;if(p>s[h]&&bo[h])return 1;if(m>s[h]&&gS*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}for(var R=(A.accumulatedTime-Math.floor(A.accumulatedTime/S)*S)/S,q=Math.floor(A.accumulatedTime/S),Y=O(A.props.willEnter,A.props.willLeave,A.props.didLeave,A.state.mergedPropsStyles,z,A.state.currentStyles,A.state.currentVelocities,A.state.lastIdealStyles,A.state.lastIdealVelocities),L=Y[0],W=Y[1],U=Y[2],V=Y[3],te=Y[4],ee=0;ee0},e.prototype.connect_=function(){!Ak||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),WSe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ak||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,l=BSe.some(function(i){return!!~r.indexOf(i)});l&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Zq=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Xd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new ZSe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Xd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new QSe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Jq=typeof WeakMap<"u"?new WeakMap:new Kq,eU=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=qSe.getInstance(),r=new JSe(t,n,this);Jq.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){eU.prototype[e]=function(){var t;return(t=Jq.get(this))[e].apply(t,arguments)}});var eCe=function(){return typeof yy.ResizeObserver<"u"?yy.ResizeObserver:eU}(),tCe=["client","offset","scroll","bounds","margin"];function bR(e){var t=[];return tCe.forEach(function(n){e[n]&&t.push(n)}),t}function xR(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var r=e.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(t.indexOf("margin")>-1){var l=getComputedStyle(e);n.margin={top:l?parseInt(l.marginTop):0,right:l?parseInt(l.marginRight):0,bottom:l?parseInt(l.marginBottom):0,left:l?parseInt(l.marginLeft):0}}return n}function nCe(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function rCe(e){return function(t){var n,r;return r=n=function(l){K1(i,l);function i(){for(var a,s=arguments.length,u=new Array(s),c=0;c-1}var $Ce=ICe,NCe=jb;function FCe(e,t){var n=this.__data__,r=NCe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var jCe=FCe,zCe=_Ce,BCe=ACe,WCe=RCe,qCe=$Ce,UCe=jCe;function gf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=KPe}var J5=ZPe,QPe=Bb,JPe=J5;function e4e(e){return e!=null&&JPe(e.length)&&!QPe(e)}var wf=e4e,t4e=wf,n4e=oi;function r4e(e){return n4e(e)&&t4e(e)}var hU=r4e,_y={exports:{}};function a4e(){return!1}var o4e=a4e;_y.exports;(function(e,t){var n=zo,r=o4e,l=t&&!t.nodeType&&t,i=l&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===l,a=o?n.Buffer:void 0,s=a?a.isBuffer:void 0,u=s||r;e.exports=u})(_y,_y.exports);var Yb=_y.exports,i4e=fs,l4e=Z5,s4e=oi,u4e="[object Object]",c4e=Function.prototype,d4e=Object.prototype,mU=c4e.toString,f4e=d4e.hasOwnProperty,p4e=mU.call(Object);function h4e(e){if(!s4e(e)||i4e(e)!=u4e)return!1;var t=l4e(e);if(t===null)return!0;var n=f4e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&mU.call(n)==p4e}var eP=h4e;const Mm=lr(eP);var m4e=fs,g4e=J5,v4e=oi,y4e="[object Arguments]",b4e="[object Array]",x4e="[object Boolean]",w4e="[object Date]",_4e="[object Error]",T4e="[object Function]",k4e="[object Map]",S4e="[object Number]",C4e="[object Object]",M4e="[object RegExp]",P4e="[object Set]",O4e="[object String]",A4e="[object WeakMap]",D4e="[object ArrayBuffer]",E4e="[object DataView]",R4e="[object Float32Array]",L4e="[object Float64Array]",I4e="[object Int8Array]",$4e="[object Int16Array]",N4e="[object Int32Array]",F4e="[object Uint8Array]",j4e="[object Uint8ClampedArray]",z4e="[object Uint16Array]",B4e="[object Uint32Array]",Ur={};Ur[R4e]=Ur[L4e]=Ur[I4e]=Ur[$4e]=Ur[N4e]=Ur[F4e]=Ur[j4e]=Ur[z4e]=Ur[B4e]=!0;Ur[y4e]=Ur[b4e]=Ur[D4e]=Ur[x4e]=Ur[E4e]=Ur[w4e]=Ur[_4e]=Ur[T4e]=Ur[k4e]=Ur[S4e]=Ur[C4e]=Ur[M4e]=Ur[P4e]=Ur[O4e]=Ur[A4e]=!1;function W4e(e){return v4e(e)&&g4e(e.length)&&!!Ur[m4e(e)]}var q4e=W4e;function U4e(e){return function(t){return e(t)}}var _f=U4e,Ty={exports:{}};Ty.exports;(function(e,t){var n=nU,r=t&&!t.nodeType&&t,l=r&&!0&&e&&!e.nodeType&&e,i=l&&l.exports===r,o=i&&n.process,a=function(){try{var s=l&&l.require&&l.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a})(Ty,Ty.exports);var Xb=Ty.exports,H4e=q4e,V4e=_f,LR=Xb,IR=LR&&LR.isTypedArray,G4e=IR?V4e(IR):H4e,tP=G4e;function Y4e(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var gU=Y4e,X4e=X5,K4e=ug,Z4e=Object.prototype,Q4e=Z4e.hasOwnProperty;function J4e(e,t,n){var r=e[t];(!(Q4e.call(e,t)&&K4e(r,n))||n===void 0&&!(t in e))&&X4e(e,t,n)}var nP=J4e,eOe=nP,tOe=X5;function nOe(e,t,n,r){var l=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=d6e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var xU=h6e,m6e=c6e,g6e=xU,v6e=g6e(m6e),aP=v6e,y6e=yc,b6e=bU,x6e=aP;function w6e(e,t){return x6e(b6e(e,t,y6e),e+"")}var Kb=w6e,_6e=ug,T6e=wf,k6e=cg,S6e=Oi;function C6e(e,t,n){if(!S6e(n))return!1;var r=typeof t;return(r=="number"?T6e(n)&&k6e(t,n.length):r=="string"&&t in n)?_6e(n[t],e):!1}var oP=C6e,M6e=Kb,P6e=oP;function O6e(e){return M6e(function(t,n){var r=-1,l=n.length,i=l>1?n[l-1]:void 0,o=l>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(l--,i):void 0,o&&P6e(n[0],n[1],o)&&(i=l<3?void 0:i,l=1),t=Object(t);++rt?1:e>=t?0:NaN}function sP(e){let t=e,n=e;e.length===1&&(t=(o,a)=>e(o)-a,n=zAe(e));function r(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)<0?s=c+1:u=c}return s}function l(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)>0?u=c:s=c+1}return s}function i(o,a,s,u){s==null&&(s=0),u==null&&(u=o.length);const c=r(o,a,s,u-1);return c>s&&t(o[c-1],a)>-t(o[c],a)?c-1:c}return{left:r,center:i,right:l}}function zAe(e){return(t,n)=>CU(e(t),n)}function BAe(e){return e===null?NaN:+e}const WAe=sP(CU),qAe=WAe.right;sP(BAe).center;var Dk=Math.sqrt(50),Ek=Math.sqrt(10),Rk=Math.sqrt(2);function Lk(e,t,n){var r,l=-1,i,o,a;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0){let s=Math.round(e/a),u=Math.round(t/a);for(s*at&&--u,o=new Array(i=u-s+1);++lt&&--u,o=new Array(i=u-s+1);++l=0?(i>=Dk?10:i>=Ek?5:i>=Rk?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(i>=Dk?10:i>=Ek?5:i>=Rk?2:1)}function Ik(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),l=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/l;return i>=Dk?l*=10:i>=Ek?l*=5:i>=Rk&&(l*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?k0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?k0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=GAe.exec(e))?new Yo(t[1],t[2],t[3],1):(t=YAe.exec(e))?new Yo(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=XAe.exec(e))?k0(t[1],t[2],t[3],t[4]):(t=KAe.exec(e))?k0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ZAe.exec(e))?JR(t[1],t[2]/100,t[3]/100,1):(t=QAe.exec(e))?JR(t[1],t[2]/100,t[3]/100,t[4]):GR.hasOwnProperty(e)?KR(GR[e]):e==="transparent"?new Yo(NaN,NaN,NaN,0):null}function KR(e){return new Yo(e>>16&255,e>>8&255,e&255,1)}function k0(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yo(e,t,n,r)}function e8e(e){return e instanceof pg||(e=Zu(e)),e?(e=e.rgb(),new Yo(e.r,e.g,e.b,e.opacity)):new Yo}function Qu(e,t,n,r){return arguments.length===1?e8e(e):new Yo(e,t,n,r??1)}function Yo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}cP(Yo,Qu,OU(pg,{brighter:function(e){return e=e==null?ky:Math.pow(ky,e),new Yo(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Pm:Math.pow(Pm,e),new Yo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ZR,formatHex:ZR,formatRgb:QR,toString:QR}));function ZR(){return"#"+tT(this.r)+tT(this.g)+tT(this.b)}function QR(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function tT(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function JR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fl(e,t,n,r)}function AU(e){if(e instanceof fl)return new fl(e.h,e.s,e.l,e.opacity);if(e instanceof pg||(e=Zu(e)),!e)return new fl;if(e instanceof fl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,l=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,a=i-l,s=(i+l)/2;return a?(t===i?o=(n-r)/a+(n0&&s<1?0:o,new fl(o,a,s,e.opacity)}function t8e(e,t,n,r){return arguments.length===1?AU(e):new fl(e,t,n,r??1)}function fl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}cP(fl,t8e,OU(pg,{brighter:function(e){return e=e==null?ky:Math.pow(ky,e),new fl(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Pm:Math.pow(Pm,e),new fl(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,l=2*n-r;return new Yo(nT(e>=240?e-240:e+120,l,r),nT(e,l,r),nT(e<120?e+240:e-120,l,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function nT(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const dP=e=>()=>e;function n8e(e,t){return function(n){return e+n*t}}function r8e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function a8e(e){return(e=+e)==1?DU:function(t,n){return n-t?r8e(t,n,e):dP(isNaN(t)?n:t)}}function DU(e,t){var n=t-e;return n?n8e(e,n):dP(isNaN(e)?t:e)}const e9=function e(t){var n=a8e(t);function r(l,i){var o=n((l=Qu(l)).r,(i=Qu(i)).r),a=n(l.g,i.g),s=n(l.b,i.b),u=DU(l.opacity,i.opacity);return function(c){return l.r=o(c),l.g=a(c),l.b=s(c),l.opacity=u(c),l+""}}return r.gamma=e,r}(1);function o8e(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),l;return function(i){for(l=0;ln&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:Sy(r,l)})),n=rT.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function v8e(e,t,n){var r=e[0],l=e[1],i=t[0],o=t[1];return l2?y8e:v8e,s=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(s||(s=a(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(l((u||(u=a(t,e.map(r),Sy)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,m8e),c()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=p8e,c()},d.clamp=function(f){return arguments.length?(o=f?!0:cd,c()):o!==cd},d.interpolate=function(f){return arguments.length?(n=f,c()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,l=p,c()}}function RU(){return EU()(cd,cd)}function b8e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Cy(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Kd(e){return e=Cy(Math.abs(e)),e?e[1]:NaN}function x8e(e,t){return function(n,r){for(var l=n.length,i=[],o=0,a=e[0],s=0;l>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),i.push(n.substring(l-=a,l+a)),!((s+=a+1)>r));)a=e[o=(o+1)%e.length];return i.reverse().join(t)}}function w8e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var _8e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function My(e){if(!(t=_8e.exec(e)))throw new Error("invalid format: "+e);var t;return new hP({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}My.prototype=hP.prototype;function hP(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}hP.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function T8e(e){e:for(var t=e.length,n=1,r=-1,l;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(l+1):e}var LU;function k8e(e,t){var n=Cy(e,t);if(!n)return e+"";var r=n[0],l=n[1],i=l-(LU=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Cy(e,Math.max(0,t+i-1))[0]}function n9(e,t){var n=Cy(e,t);if(!n)return e+"";var r=n[0],l=n[1];return l<0?"0."+new Array(-l).join("0")+r:r.length>l+1?r.slice(0,l+1)+"."+r.slice(l+1):r+new Array(l-r.length+2).join("0")}const r9={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:b8e,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return n9(e*100,t)},r:n9,s:k8e,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function a9(e){return e}var o9=Array.prototype.map,i9=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function S8e(e){var t=e.grouping===void 0||e.thousands===void 0?a9:x8e(o9.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",l=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?a9:w8e(o9.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(d){d=My(d);var f=d.fill,p=d.align,m=d.sign,g=d.symbol,b=d.zero,v=d.width,h=d.comma,y=d.precision,w=d.trim,_=d.type;_==="n"?(h=!0,_="g"):r9[_]||(y===void 0&&(y=12),w=!0,_="g"),(b||f==="0"&&p==="=")&&(b=!0,f="0",p="=");var x=g==="$"?n:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",T=g==="$"?r:/[%p]/.test(_)?o:"",k=r9[_],S=/[defgprs%]/.test(_);y=y===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function C(M){var O=x,D=T,P,E,I;if(_==="c")D=k(M)+D,M="";else{M=+M;var A=M<0||1/M<0;if(M=isNaN(M)?s:k(Math.abs(M),y),w&&(M=T8e(M)),A&&+M==0&&m!=="+"&&(A=!1),O=(A?m==="("?m:a:m==="-"||m==="("?"":m)+O,D=(_==="s"?i9[8+LU/3]:"")+D+(A&&m==="("?")":""),S){for(P=-1,E=M.length;++PI||I>57){D=(I===46?l+M.slice(P+1):M.slice(P))+D,M=M.slice(0,P);break}}}h&&!b&&(M=t(M,1/0));var F=O.length+M.length+D.length,j=F>1)+O+M+D+j.slice(F);break;default:M=j+O+M+D;break}return i(M)}return C.toString=function(){return d+""},C}function c(d,f){var p=u((d=My(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(Kd(f)/3)))*3,g=Math.pow(10,-m),b=i9[8+m/3];return function(v){return p(g*v)+b}}return{format:u,formatPrefix:c}}var S0,Pf,IU;C8e({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function C8e(e){return S0=S8e(e),Pf=S0.format,IU=S0.formatPrefix,S0}function M8e(e){return Math.max(0,-Kd(Math.abs(e)))}function P8e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Kd(t)/3)))*3-Kd(Math.abs(e)))}function O8e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Kd(t)-Kd(e))+1}function A8e(e,t,n,r){var l=Ik(e,t,n),i;switch(r=My(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=P8e(l,o))&&(r.precision=i),IU(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=O8e(l,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=M8e(l))&&(r.precision=i-(r.type==="%")*2);break}}return Pf(r)}function D8e(e){var t=e.domain;return e.ticks=function(n){var r=t();return Lk(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var l=t();return A8e(l[0],l[l.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),l=0,i=r.length-1,o=r[l],a=r[i],s,u,c=10;for(a0;){if(u=MU(o,a,n),u===s)return r[l]=o,r[i]=a,t(r);if(u>0)o=Math.floor(o/u)*u,a=Math.ceil(a/u)*u;else if(u<0)o=Math.ceil(o*u)/u,a=Math.floor(a*u)/u;else break;s=u}return e},e}function Ju(){var e=RU();return e.copy=function(){return pP(e,Ju())},Mf.apply(e,arguments),D8e(e)}function $U(e,t){e=e.slice();var n=0,r=e.length-1,l=e[n],i=e[r],o;return i0){for(;f<=p;++f)for(g=1,m=i(f);gc)break;h.push(b)}}else for(;f<=p;++f)for(g=r-1,m=i(f);g>=1;--g)if(b=m*g,!(bc)break;h.push(b)}h.length*20))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return aT.setTime(+i),oT.setTime(+o),e(aT),e(oT),Math.floor(n(aT,oT))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var Py=Wa(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Py.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Wa(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Py};Py.range;const Wl=1e3,yi=Wl*60,ql=yi*60,ec=ql*24,mP=ec*7,c9=ec*30,iT=ec*365;var Iu=Wa(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Wl)},function(e,t){return(t-e)/Wl},function(e){return e.getUTCSeconds()});Iu.range;var gP=Wa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wl)},function(e,t){e.setTime(+e+t*yi)},function(e,t){return(t-e)/yi},function(e){return e.getMinutes()});gP.range;var vP=Wa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wl-e.getMinutes()*yi)},function(e,t){e.setTime(+e+t*ql)},function(e,t){return(t-e)/ql},function(e){return e.getHours()});vP.range;var hg=Wa(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yi)/ec,e=>e.getDate()-1);hg.range;function bc(e){return Wa(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*yi)/mP})}var Qb=bc(0),Oy=bc(1),F8e=bc(2),j8e=bc(3),Zd=bc(4),z8e=bc(5),B8e=bc(6);Qb.range;Oy.range;F8e.range;j8e.range;Zd.range;z8e.range;B8e.range;var yP=Wa(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});yP.range;var as=Wa(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});as.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Wa(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};as.range;var bP=Wa(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*yi)},function(e,t){return(t-e)/yi},function(e){return e.getUTCMinutes()});bP.range;var xP=Wa(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ql)},function(e,t){return(t-e)/ql},function(e){return e.getUTCHours()});xP.range;var mg=Wa(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/ec},function(e){return e.getUTCDate()-1});mg.range;function xc(e){return Wa(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/mP})}var Jb=xc(0),Ay=xc(1),W8e=xc(2),q8e=xc(3),Qd=xc(4),U8e=xc(5),H8e=xc(6);Jb.range;Ay.range;W8e.range;q8e.range;Qd.range;U8e.range;H8e.range;var wP=Wa(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});wP.range;var os=Wa(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});os.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Wa(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};os.range;function FU(e,t,n,r,l,i){const o=[[Iu,1,Wl],[Iu,5,5*Wl],[Iu,15,15*Wl],[Iu,30,30*Wl],[i,1,yi],[i,5,5*yi],[i,15,15*yi],[i,30,30*yi],[l,1,ql],[l,3,3*ql],[l,6,6*ql],[l,12,12*ql],[r,1,ec],[r,2,2*ec],[n,1,mP],[t,1,c9],[t,3,3*c9],[e,1,iT]];function a(u,c,d){const f=cb).right(o,f);if(p===o.length)return e.every(Ik(u/iT,c/iT,d));if(p===0)return Py.every(Math.max(Ik(u,c,d),1));const[m,g]=o[f/o[p-1][2]53)return null;"w"in H||(H.w=1),"Z"in H?(G=sT(zp(H.y,0,1)),X=G.getUTCDay(),G=X>4||X===0?Ay.ceil(G):Ay(G),G=mg.offset(G,(H.V-1)*7),H.y=G.getUTCFullYear(),H.m=G.getUTCMonth(),H.d=G.getUTCDate()+(H.w+6)%7):(G=lT(zp(H.y,0,1)),X=G.getDay(),G=X>4||X===0?Oy.ceil(G):Oy(G),G=hg.offset(G,(H.V-1)*7),H.y=G.getFullYear(),H.m=G.getMonth(),H.d=G.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),X="Z"in H?sT(zp(H.y,0,1)).getUTCDay():lT(zp(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(X+5)%7:H.w+H.U*7-(X+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,sT(H)):lT(H)}}function k(V,te,ee,H){for(var Z=0,G=te.length,X=ee.length,Q,re;Z=X)return-1;if(Q=te.charCodeAt(Z++),Q===37){if(Q=te.charAt(Z++),re=_[Q in d9?te.charAt(Z++):Q],!re||(H=re(V,ee,H))<0)return-1}else if(Q!=ee.charCodeAt(H++))return-1}return H}function S(V,te,ee){var H=u.exec(te.slice(ee));return H?(V.p=c.get(H[0].toLowerCase()),ee+H[0].length):-1}function C(V,te,ee){var H=p.exec(te.slice(ee));return H?(V.w=m.get(H[0].toLowerCase()),ee+H[0].length):-1}function M(V,te,ee){var H=d.exec(te.slice(ee));return H?(V.w=f.get(H[0].toLowerCase()),ee+H[0].length):-1}function O(V,te,ee){var H=v.exec(te.slice(ee));return H?(V.m=h.get(H[0].toLowerCase()),ee+H[0].length):-1}function D(V,te,ee){var H=g.exec(te.slice(ee));return H?(V.m=b.get(H[0].toLowerCase()),ee+H[0].length):-1}function P(V,te,ee){return k(V,t,te,ee)}function E(V,te,ee){return k(V,n,te,ee)}function I(V,te,ee){return k(V,r,te,ee)}function A(V){return o[V.getDay()]}function F(V){return i[V.getDay()]}function j(V){return s[V.getMonth()]}function z(V){return a[V.getMonth()]}function B(V){return l[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function R(V){return o[V.getUTCDay()]}function q(V){return i[V.getUTCDay()]}function Y(V){return s[V.getUTCMonth()]}function L(V){return a[V.getUTCMonth()]}function W(V){return l[+(V.getUTCHours()>=12)]}function U(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=x(V+="",y);return te.toString=function(){return V},te},parse:function(V){var te=T(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=x(V+="",w);return te.toString=function(){return V},te},utcParse:function(V){var te=T(V+="",!0);return te.toString=function(){return V},te}}}var d9={"-":"",_:" ",0:"0"},qa=/^\s*\d+/,Z8e=/^%/,Q8e=/[\\^$*+?|[\]().{}]/g;function vr(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i[t.toLowerCase(),n]))}function eDe(e,t,n){var r=qa.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function tDe(e,t,n){var r=qa.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function nDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function rDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function aDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function f9(e,t,n){var r=qa.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function p9(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function oDe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function iDe(e,t,n){var r=qa.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function lDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function h9(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function sDe(e,t,n){var r=qa.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function m9(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function uDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function cDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function dDe(e,t,n){var r=qa.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function fDe(e,t,n){var r=qa.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function pDe(e,t,n){var r=Z8e.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function hDe(e,t,n){var r=qa.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function mDe(e,t,n){var r=qa.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function g9(e,t){return vr(e.getDate(),t,2)}function gDe(e,t){return vr(e.getHours(),t,2)}function vDe(e,t){return vr(e.getHours()%12||12,t,2)}function yDe(e,t){return vr(1+hg.count(as(e),e),t,3)}function jU(e,t){return vr(e.getMilliseconds(),t,3)}function bDe(e,t){return jU(e,t)+"000"}function xDe(e,t){return vr(e.getMonth()+1,t,2)}function wDe(e,t){return vr(e.getMinutes(),t,2)}function _De(e,t){return vr(e.getSeconds(),t,2)}function TDe(e){var t=e.getDay();return t===0?7:t}function kDe(e,t){return vr(Qb.count(as(e)-1,e),t,2)}function zU(e){var t=e.getDay();return t>=4||t===0?Zd(e):Zd.ceil(e)}function SDe(e,t){return e=zU(e),vr(Zd.count(as(e),e)+(as(e).getDay()===4),t,2)}function CDe(e){return e.getDay()}function MDe(e,t){return vr(Oy.count(as(e)-1,e),t,2)}function PDe(e,t){return vr(e.getFullYear()%100,t,2)}function ODe(e,t){return e=zU(e),vr(e.getFullYear()%100,t,2)}function ADe(e,t){return vr(e.getFullYear()%1e4,t,4)}function DDe(e,t){var n=e.getDay();return e=n>=4||n===0?Zd(e):Zd.ceil(e),vr(e.getFullYear()%1e4,t,4)}function EDe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+vr(t/60|0,"0",2)+vr(t%60,"0",2)}function v9(e,t){return vr(e.getUTCDate(),t,2)}function RDe(e,t){return vr(e.getUTCHours(),t,2)}function LDe(e,t){return vr(e.getUTCHours()%12||12,t,2)}function IDe(e,t){return vr(1+mg.count(os(e),e),t,3)}function BU(e,t){return vr(e.getUTCMilliseconds(),t,3)}function $De(e,t){return BU(e,t)+"000"}function NDe(e,t){return vr(e.getUTCMonth()+1,t,2)}function FDe(e,t){return vr(e.getUTCMinutes(),t,2)}function jDe(e,t){return vr(e.getUTCSeconds(),t,2)}function zDe(e){var t=e.getUTCDay();return t===0?7:t}function BDe(e,t){return vr(Jb.count(os(e)-1,e),t,2)}function WU(e){var t=e.getUTCDay();return t>=4||t===0?Qd(e):Qd.ceil(e)}function WDe(e,t){return e=WU(e),vr(Qd.count(os(e),e)+(os(e).getUTCDay()===4),t,2)}function qDe(e){return e.getUTCDay()}function UDe(e,t){return vr(Ay.count(os(e)-1,e),t,2)}function HDe(e,t){return vr(e.getUTCFullYear()%100,t,2)}function VDe(e,t){return e=WU(e),vr(e.getUTCFullYear()%100,t,2)}function GDe(e,t){return vr(e.getUTCFullYear()%1e4,t,4)}function YDe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Qd(e):Qd.ceil(e),vr(e.getUTCFullYear()%1e4,t,4)}function XDe(){return"+0000"}function y9(){return"%"}function b9(e){return+e}function x9(e){return Math.floor(+e/1e3)}var Wc,qU,UU;KDe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function KDe(e){return Wc=K8e(e),qU=Wc.format,Wc.parse,UU=Wc.utcFormat,Wc.utcParse,Wc}function ZDe(e){return new Date(e)}function QDe(e){return e instanceof Date?+e:+new Date(+e)}function _P(e,t,n,r,l,i,o,a,s,u){var c=RU(),d=c.invert,f=c.domain,p=u(".%L"),m=u(":%S"),g=u("%I:%M"),b=u("%I %p"),v=u("%a %d"),h=u("%b %d"),y=u("%B"),w=u("%Y");function _(x){return(s(x)=1?(n=1,t-1):Math.floor(n*t),l=e[r],i=e[r+1],o=r>0?e[r-1]:2*l-i,a=rn&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:Fk(r,l)})),n=uT.lastIndex;return n-1}var MP=$7e;function N7e(e,t,n){for(var r=-1,l=e==null?0:e.length;++r=H7e&&(i=U7e,o=!1,t=new j7e(t));e:for(;++lTu)if(!(Math.abs(c*a-s*u)>Tu)||!l)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-i,p=r-o,m=a*a+s*s,g=f*f+p*p,b=Math.sqrt(m),v=Math.sqrt(d),h=l*Math.tan((zk-Math.acos((m+d-g)/(2*b*v)))/2),y=h/v,w=h/b;Math.abs(y-1)>Tu&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+l+","+l+",0,0,"+ +(c*f>u*p)+","+(this._x1=e+w*a)+","+(this._y1=t+w*s)}},arc:function(e,t,n,r,l,i){e=+e,t=+t,n=+n,i=!!i;var o=n*Math.cos(r),a=n*Math.sin(r),s=e+o,u=t+a,c=1^i,d=i?r-l:l-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+s+","+u:(Math.abs(this._x1-s)>Tu||Math.abs(this._y1-u)>Tu)&&(this._+="L"+s+","+u),n&&(d<0&&(d=d%Bk+Bk),d>J7e?this._+="A"+n+","+n+",0,1,"+c+","+(e-o)+","+(t-a)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=u):d>Tu&&(this._+="A"+n+","+n+",0,"+ +(d>=zk)+","+c+","+(this._x1=e+n*Math.cos(l))+","+(this._y1=t+n*Math.sin(l))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function Za(e){return function(){return e}}var _9=1e-12;function nH(e){this._context=e}nH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function AP(e){return new nH(e)}function rH(e){return e[0]}function aH(e){return e[1]}function oH(){var e=rH,t=aH,n=Za(!0),r=null,l=AP,i=null;function o(a){var s,u=a.length,c,d=!1,f;for(r==null&&(i=l(f=OP())),s=0;s<=u;++s)!(s=f;--p)a.point(h[p],y[p]);a.lineEnd(),a.areaEnd()}b&&(h[d]=+e(g,d,c),y[d]=+n(g,d,c),a.point(t?+t(g,d,c):h[d],r?+r(g,d,c):y[d]))}if(v)return a=null,v+""||null}function u(){return oH().defined(l).curve(o).context(i)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Za(+c),t=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Za(+c),s):e},s.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:Za(+c),s):t},s.y=function(c){return arguments.length?(n=typeof c=="function"?c:Za(+c),r=null,s):n},s.y0=function(c){return arguments.length?(n=typeof c=="function"?c:Za(+c),s):n},s.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Za(+c),s):r},s.lineX0=s.lineY0=function(){return u().x(e).y(n)},s.lineY1=function(){return u().x(e).y(r)},s.lineX1=function(){return u().x(t).y(n)},s.defined=function(c){return arguments.length?(l=typeof c=="function"?c:Za(!!c),s):l},s.curve=function(c){return arguments.length?(o=c,i!=null&&(a=o(i)),s):o},s.context=function(c){return arguments.length?(c==null?i=a=null:a=o(i=c),s):i},s}var T9=Array.prototype.slice;function Ks(){}function Ey(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Mx(e){this._context=e}Mx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ey(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tEe(e){return new Mx(e)}function iH(e){this._context=e}iH.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nEe(e){return new iH(e)}function lH(e){this._context=e}lH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rEe(e){return new lH(e)}function sH(e,t){this._basis=new Mx(e),this._beta=t}sH.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],l=t[0],i=e[n]-r,o=t[n]-l,a=-1,s;++a<=n;)s=a/n,this._basis.point(this._beta*e[a]+(1-this._beta)*(r+s*i),this._beta*t[a]+(1-this._beta)*(l+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const aEe=function e(t){function n(r){return t===1?new Mx(r):new sH(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Ry(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function DP(e,t){this._context=e,this._k=(1-t)/6}DP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ry(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ry(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const oEe=function e(t){function n(r){return new DP(r,t)}return n.tension=function(r){return e(+r)},n}(0);function EP(e,t){this._context=e,this._k=(1-t)/6}EP.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ry(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const iEe=function e(t){function n(r){return new EP(r,t)}return n.tension=function(r){return e(+r)},n}(0);function RP(e,t){this._context=e,this._k=(1-t)/6}RP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ry(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const lEe=function e(t){function n(r){return new RP(r,t)}return n.tension=function(r){return e(+r)},n}(0);function LP(e,t,n){var r=e._x1,l=e._y1,i=e._x2,o=e._y2;if(e._l01_a>_9){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,l=(l*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>_9){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,l,i,o,e._x2,e._y2)}function uH(e,t){this._context=e,this._alpha=t}uH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:LP(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const sEe=function e(t){function n(r){return t?new uH(r,t):new DP(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function cH(e,t){this._context=e,this._alpha=t}cH.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:LP(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const uEe=function e(t){function n(r){return t?new cH(r,t):new EP(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function dH(e,t){this._context=e,this._alpha=t}dH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:LP(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const cEe=function e(t){function n(r){return t?new dH(r,t):new RP(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function fH(e){this._context=e}fH.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function dEe(e){return new fH(e)}function k9(e){return e<0?-1:1}function S9(e,t,n){var r=e._x1-e._x0,l=t-e._x1,i=(e._y1-e._y0)/(r||l<0&&-0),o=(n-e._y1)/(l||r<0&&-0),a=(i*l+o*r)/(r+l);return(k9(i)+k9(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(a))||0}function C9(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function cT(e,t,n){var r=e._x0,l=e._y0,i=e._x1,o=e._y1,a=(i-r)/3;e._context.bezierCurveTo(r+a,l+a*t,i-a,o-a*n,i,o)}function Ly(e){this._context=e}Ly.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:cT(this,this._t0,C9(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,cT(this,C9(this,n=S9(this,e,t)),n);break;default:cT(this,this._t0,n=S9(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function pH(e){this._context=new hH(e)}(pH.prototype=Object.create(Ly.prototype)).point=function(e,t){Ly.prototype.point.call(this,t,e)};function hH(e){this._context=e}hH.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,l,i){this._context.bezierCurveTo(t,e,r,n,i,l)}};function fEe(e){return new Ly(e)}function pEe(e){return new pH(e)}function mH(e){this._context=e}mH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=M9(e),l=M9(t),i=0,o=1;o=0;--t)l[t]=(o[t]-l[t+1])/i[t];for(i[n-1]=(e[n]+l[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function mEe(e){return new Px(e,.5)}function gEe(e){return new Px(e,0)}function vEe(e){return new Px(e,1)}function Jd(e,t){if((o=e.length)>1)for(var n=1,r,l,i=e[t[0]],o,a=i.length;n=0;)n[t]=t;return n}function yEe(e,t){return e[t]}function gH(){var e=Za([]),t=ef,n=Jd,r=yEe;function l(i){var o=e.apply(this,arguments),a,s=i.length,u=o.length,c=new Array(u),d;for(a=0;a0){for(var n,r,l=0,i=e[0].length,o;l0)for(var n,r=0,l,i,o,a,s,u=e[t[0]].length;r0?(l[0]=o,l[1]=o+=i):i<0?(l[1]=a,l[0]=a+=i):(l[0]=0,l[1]=i)}function xEe(e,t){if((l=e.length)>0){for(var n=0,r=e[t[0]],l,i=r.length;n0)||!((i=(l=e[t[0]]).length)>0))){for(var n=0,r=1,l,i,o;ri&&(i=l,n=t);return n}function vH(e){var t=e.map(yH);return ef(e).sort(function(n,r){return t[n]-t[r]})}function yH(e){for(var t=0,n=-1,r=e.length,l;++nh&&(h=u),x=b*b*_,y=Math.max(h/x,x/v),y>w){b-=u;break}w=y}o.push(s={value:b,dice:p1?r:1)},n}(bH);function PEe(e,t,n,r,l){var i=e.children,o,a=i.length,s,u=new Array(a+1);for(u[0]=s=o=0;o=f-1){var h=i[d];h.x0=m,h.y0=g,h.x1=b,h.y1=v;return}for(var y=u[d],w=p/2+y,_=d+1,x=f-1;_>>1;u[T]v-g){var C=(m*S+b*k)/p;c(d,_,k,m,g,C,v),c(_,f,S,C,g,b,v)}else{var M=(g*S+v*k)/p;c(d,_,k,m,g,b,M),c(_,f,S,m,M,b,v)}}}function OEe(e,t,n,r,l){(e.depth&1?Ax:Ox)(e,t,n,r,l)}const AEe=function e(t){function n(r,l,i,o,a){if((s=r._squarify)&&s.ratio===t)for(var s,u,c,d,f=-1,p,m=s.length,g=r.value;++f1?r:1)},n}(bH);var dT=new Date,fT=new Date;function Ua(e,t,n,r){function l(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return l.floor=function(i){return e(i=new Date(+i)),i},l.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},l.round=function(i){var o=l(i),a=l.ceil(i);return i-o0))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return dT.setTime(+i),fT.setTime(+o),e(dT),e(fT),Math.floor(n(dT,fT))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var Am=Ua(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Am.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ua(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Am};Am.range;var Iy=1e3,tc=6e4,$y=36e5,wH=864e5,_H=6048e5,qk=Ua(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Iy)},function(e,t){return(t-e)/Iy},function(e){return e.getUTCSeconds()});qk.range;var TH=Ua(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Iy)},function(e,t){e.setTime(+e+t*tc)},function(e,t){return(t-e)/tc},function(e){return e.getMinutes()});TH.range;var kH=Ua(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Iy-e.getMinutes()*tc)},function(e,t){e.setTime(+e+t*$y)},function(e,t){return(t-e)/$y},function(e){return e.getHours()});kH.range;var Dx=Ua(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tc)/wH},function(e){return e.getDate()-1});Dx.range;function wc(e){return Ua(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*tc)/_H})}var Ny=wc(0),Dm=wc(1),SH=wc(2),CH=wc(3),nc=wc(4),MH=wc(5),PH=wc(6);Ny.range;Dm.range;SH.range;CH.range;nc.range;MH.range;PH.range;var OH=Ua(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});OH.range;var Zs=Ua(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Zs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ua(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};Zs.range;var AH=Ua(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*tc)},function(e,t){return(t-e)/tc},function(e){return e.getUTCMinutes()});AH.range;var DH=Ua(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*$y)},function(e,t){return(t-e)/$y},function(e){return e.getUTCHours()});DH.range;var Ex=Ua(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/wH},function(e){return e.getUTCDate()-1});Ex.range;function _c(e){return Ua(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/_H})}var Fy=_c(0),Em=_c(1),EH=_c(2),RH=_c(3),rc=_c(4),LH=_c(5),IH=_c(6);Fy.range;Em.range;EH.range;RH.range;rc.range;LH.range;IH.range;var $H=Ua(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});$H.range;var Qs=Ua(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Qs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ua(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};Qs.range;function pT(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function hT(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function qp(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function DEe(e){var t=e.dateTime,n=e.date,r=e.time,l=e.periods,i=e.days,o=e.shortDays,a=e.months,s=e.shortMonths,u=Up(l),c=Hp(l),d=Up(i),f=Hp(i),p=Up(o),m=Hp(o),g=Up(a),b=Hp(a),v=Up(s),h=Hp(s),y={a:A,A:F,b:j,B:z,c:null,d:R9,e:R9,f:eRe,g:cRe,G:fRe,H:ZEe,I:QEe,j:JEe,L:NH,m:tRe,M:nRe,p:B,q:N,Q:$9,s:N9,S:rRe,u:aRe,U:oRe,V:iRe,w:lRe,W:sRe,x:null,X:null,y:uRe,Y:dRe,Z:pRe,"%":I9},w={a:R,A:q,b:Y,B:L,c:null,d:L9,e:L9,f:vRe,g:MRe,G:ORe,H:hRe,I:mRe,j:gRe,L:jH,m:yRe,M:bRe,p:W,q:U,Q:$9,s:N9,S:xRe,u:wRe,U:_Re,V:TRe,w:kRe,W:SRe,x:null,X:null,y:CRe,Y:PRe,Z:ARe,"%":I9},_={a:C,A:M,b:O,B:D,c:P,d:D9,e:D9,f:GEe,g:A9,G:O9,H:E9,I:E9,j:qEe,L:VEe,m:WEe,M:UEe,p:S,q:BEe,Q:XEe,s:KEe,S:HEe,u:$Ee,U:NEe,V:FEe,w:IEe,W:jEe,x:E,X:I,y:A9,Y:O9,Z:zEe,"%":YEe};y.x=x(n,y),y.X=x(r,y),y.c=x(t,y),w.x=x(n,w),w.X=x(r,w),w.c=x(t,w);function x(V,te){return function(ee){var H=[],Z=-1,G=0,X=V.length,Q,re,ae;for(ee instanceof Date||(ee=new Date(+ee));++Z53)return null;"w"in H||(H.w=1),"Z"in H?(G=hT(qp(H.y,0,1)),X=G.getUTCDay(),G=X>4||X===0?Em.ceil(G):Em(G),G=Ex.offset(G,(H.V-1)*7),H.y=G.getUTCFullYear(),H.m=G.getUTCMonth(),H.d=G.getUTCDate()+(H.w+6)%7):(G=pT(qp(H.y,0,1)),X=G.getDay(),G=X>4||X===0?Dm.ceil(G):Dm(G),G=Dx.offset(G,(H.V-1)*7),H.y=G.getFullYear(),H.m=G.getMonth(),H.d=G.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),X="Z"in H?hT(qp(H.y,0,1)).getUTCDay():pT(qp(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(X+5)%7:H.w+H.U*7-(X+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,hT(H)):pT(H)}}function k(V,te,ee,H){for(var Z=0,G=te.length,X=ee.length,Q,re;Z=X)return-1;if(Q=te.charCodeAt(Z++),Q===37){if(Q=te.charAt(Z++),re=_[Q in P9?te.charAt(Z++):Q],!re||(H=re(V,ee,H))<0)return-1}else if(Q!=ee.charCodeAt(H++))return-1}return H}function S(V,te,ee){var H=u.exec(te.slice(ee));return H?(V.p=c[H[0].toLowerCase()],ee+H[0].length):-1}function C(V,te,ee){var H=p.exec(te.slice(ee));return H?(V.w=m[H[0].toLowerCase()],ee+H[0].length):-1}function M(V,te,ee){var H=d.exec(te.slice(ee));return H?(V.w=f[H[0].toLowerCase()],ee+H[0].length):-1}function O(V,te,ee){var H=v.exec(te.slice(ee));return H?(V.m=h[H[0].toLowerCase()],ee+H[0].length):-1}function D(V,te,ee){var H=g.exec(te.slice(ee));return H?(V.m=b[H[0].toLowerCase()],ee+H[0].length):-1}function P(V,te,ee){return k(V,t,te,ee)}function E(V,te,ee){return k(V,n,te,ee)}function I(V,te,ee){return k(V,r,te,ee)}function A(V){return o[V.getDay()]}function F(V){return i[V.getDay()]}function j(V){return s[V.getMonth()]}function z(V){return a[V.getMonth()]}function B(V){return l[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function R(V){return o[V.getUTCDay()]}function q(V){return i[V.getUTCDay()]}function Y(V){return s[V.getUTCMonth()]}function L(V){return a[V.getUTCMonth()]}function W(V){return l[+(V.getUTCHours()>=12)]}function U(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=x(V+="",y);return te.toString=function(){return V},te},parse:function(V){var te=T(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=x(V+="",w);return te.toString=function(){return V},te},utcParse:function(V){var te=T(V+="",!0);return te.toString=function(){return V},te}}}var P9={"-":"",_:" ",0:"0"},Ha=/^\s*\d+/,EEe=/^%/,REe=/[\\^$*+?|[\]().{}]/g;function yr(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i68?1900:2e3),n+r[0].length):-1}function zEe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function BEe(e,t,n){var r=Ha.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function WEe(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function D9(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function qEe(e,t,n){var r=Ha.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function E9(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function UEe(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function HEe(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function VEe(e,t,n){var r=Ha.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function GEe(e,t,n){var r=Ha.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function YEe(e,t,n){var r=EEe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function XEe(e,t,n){var r=Ha.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function KEe(e,t,n){var r=Ha.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function R9(e,t){return yr(e.getDate(),t,2)}function ZEe(e,t){return yr(e.getHours(),t,2)}function QEe(e,t){return yr(e.getHours()%12||12,t,2)}function JEe(e,t){return yr(1+Dx.count(Zs(e),e),t,3)}function NH(e,t){return yr(e.getMilliseconds(),t,3)}function eRe(e,t){return NH(e,t)+"000"}function tRe(e,t){return yr(e.getMonth()+1,t,2)}function nRe(e,t){return yr(e.getMinutes(),t,2)}function rRe(e,t){return yr(e.getSeconds(),t,2)}function aRe(e){var t=e.getDay();return t===0?7:t}function oRe(e,t){return yr(Ny.count(Zs(e)-1,e),t,2)}function FH(e){var t=e.getDay();return t>=4||t===0?nc(e):nc.ceil(e)}function iRe(e,t){return e=FH(e),yr(nc.count(Zs(e),e)+(Zs(e).getDay()===4),t,2)}function lRe(e){return e.getDay()}function sRe(e,t){return yr(Dm.count(Zs(e)-1,e),t,2)}function uRe(e,t){return yr(e.getFullYear()%100,t,2)}function cRe(e,t){return e=FH(e),yr(e.getFullYear()%100,t,2)}function dRe(e,t){return yr(e.getFullYear()%1e4,t,4)}function fRe(e,t){var n=e.getDay();return e=n>=4||n===0?nc(e):nc.ceil(e),yr(e.getFullYear()%1e4,t,4)}function pRe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yr(t/60|0,"0",2)+yr(t%60,"0",2)}function L9(e,t){return yr(e.getUTCDate(),t,2)}function hRe(e,t){return yr(e.getUTCHours(),t,2)}function mRe(e,t){return yr(e.getUTCHours()%12||12,t,2)}function gRe(e,t){return yr(1+Ex.count(Qs(e),e),t,3)}function jH(e,t){return yr(e.getUTCMilliseconds(),t,3)}function vRe(e,t){return jH(e,t)+"000"}function yRe(e,t){return yr(e.getUTCMonth()+1,t,2)}function bRe(e,t){return yr(e.getUTCMinutes(),t,2)}function xRe(e,t){return yr(e.getUTCSeconds(),t,2)}function wRe(e){var t=e.getUTCDay();return t===0?7:t}function _Re(e,t){return yr(Fy.count(Qs(e)-1,e),t,2)}function zH(e){var t=e.getUTCDay();return t>=4||t===0?rc(e):rc.ceil(e)}function TRe(e,t){return e=zH(e),yr(rc.count(Qs(e),e)+(Qs(e).getUTCDay()===4),t,2)}function kRe(e){return e.getUTCDay()}function SRe(e,t){return yr(Em.count(Qs(e)-1,e),t,2)}function CRe(e,t){return yr(e.getUTCFullYear()%100,t,2)}function MRe(e,t){return e=zH(e),yr(e.getUTCFullYear()%100,t,2)}function PRe(e,t){return yr(e.getUTCFullYear()%1e4,t,4)}function ORe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?rc(e):rc.ceil(e),yr(e.getUTCFullYear()%1e4,t,4)}function ARe(){return"+0000"}function I9(){return"%"}function $9(e){return+e}function N9(e){return Math.floor(+e/1e3)}var qc,$P,BH,WH;DRe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function DRe(e){return qc=DEe(e),$P=qc.format,BH=qc.parse,qc.utcFormat,WH=qc.utcParse,qc}var Vp={},Gp={},F9;function ERe(){if(F9)return Gp;F9=1,Gp.__esModule=!0,Gp.default=void 0;var e=function(r){if(typeof r=="string")return r;if(r)return r.displayName||r.name||"Component"},t=e;return Gp.default=t,Gp}var j9;function Of(){if(j9)return Vp;j9=1;var e=Cn;Vp.__esModule=!0,Vp.default=void 0;var t=e(ERe()),n=function(i,o){return o+"("+(0,t.default)(i)+")"},r=n;return Vp.default=r,Vp}var ps={},Yp={},z9;function qH(){if(z9)return Yp;z9=1,Yp.__esModule=!0,Yp.default=void 0;var e=function(r,l){return function(i){return i[r]=l,i}},t=e;return Yp.default=t,Yp}var RRe=Cn;ps.__esModule=!0;var NP=ps.default=void 0,LRe=RRe(qH()),IRe=function(t){return(0,LRe.default)("displayName",t)},$Re=IRe;NP=ps.default=$Re;var Xp={},B9;function NRe(){if(B9)return Xp;B9=1;var e=Cn;Xp.__esModule=!0,Xp.default=void 0;var t=ge;e(ps),e(Of());var n=function(i){return function(o){var a=(0,t.createFactory)(o),s=function(c){return a(i(c))};return s}},r=n;return Xp.default=r,Xp}var Rx=Cn;Rx(Ir());Rx(Of());Rx(ps);Rx(NRe());function FRe(e,t){for(var n=-1,r=e==null?0:e.length;++na))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=n&URe?new zRe:void 0;for(i.set(e,t),i.set(t,e);++d1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(e$e,`{ +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=nV,t.componentWillReceiveProps=rV),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=aV;var a=t.componentDidUpdate;t.componentDidUpdate=function(u,c,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;a.call(this,u,c,f)}}return e}const ILe=Object.freeze(Object.defineProperty({__proto__:null,polyfill:LLe},Symbol.toStringTag,{value:"Module"})),$Le=Qn(ILe);var Kp={},iL;function NLe(){if(iL)return Kp;iL=1,Kp.__esModule=!0,Kp.default=void 0;var e=function(r,l){for(var i={},o=0;o1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(XIe,`{ /* [wrapped with `+t+`] */ -`)}var n$e=t$e;function r$e(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&h.reverse(),c&&s0&&n(a)?t>1?TV(a,t-1,n,r,l):EFe(l,a):r||(l[l.length]=a)}return l}var HP=TV,LFe=HP;function IFe(e){var t=e==null?0:e.length;return t?LFe(e,1):[]}var $Fe=IFe,NFe=$Fe,FFe=xU,jFe=rP;function zFe(e){return jFe(FFe(e,void 0,NFe),e+"")}var kV=zFe,BFe=MFe,WFe=kV,qFe=WFe(function(e,t){return e==null?{}:BFe(e,t)}),UFe=qFe;const HFe=lr(UFe);var $u=function(){};function ac(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return ge.useMemo(function(){var l=yje({},Zk,r);return{margin:l,innerWidth:t-l.left-l.right,innerHeight:n-l.top-l.bottom,outerWidth:t,outerHeight:n}},[t,n,r.top,r.right,r.bottom,r.left])},xje=function(t){return ge.useMemo(function(){return MV(CV,t)},[t])},wje=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?IP(t.slice("5")):Pf(t):function(n){return n}},Rm=function(t){return ge.useMemo(function(){return wje(t)},[t])},GP=ge.createContext(),_je={},AV=function(t){var n=t.theme,r=n===void 0?_je:n,l=t.children,i=xje(r);return Je.createElement(GP.Provider,{value:i},l)};AV.propTypes={children:le.node.isRequired,theme:le.object};var ka=function(){return ge.useContext(GP)};function iv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?iv=function(n){return typeof n}:iv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},iv(e)}function Qk(){return Qk=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function Cje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mje(e,t){for(var n=0;n"u"||s[u].value!==this.newInters[u].value)&&(this.newInters[u]=s[u],this.stepValues[u]=this.currentStepValues[u]+1,this.stepInterpolators[u]=this.newInters[u].interpolator(this.oldValues[u],this.newInters[u].value)),s[u]=zn(this.stepValues[u],this.newInters[u].config));return Je.createElement(rs,Qk({},a,{style:s}),function(c){var d={};for(var f in c)if(r.stepValues[f]){r.currentStepValues[f]=c[f];var p=r.currentStepValues[f]-r.stepValues[f]+1;r.oldValues[f]=d[f]=r.stepInterpolators[f](p)}return o(Tje({},c,d))})}}]),t}(ge.PureComponent);Cu(zx,"propTypes",{children:le.func.isRequired,style:le.func.isRequired});var DV=ge.createContext(),Bx=function(t){var n=t.children,r=t.animate,l=t.stiffness,i=t.damping,o=ge.useMemo(function(){return{animate:r,springConfig:{stiffness:l,damping:i}}},[r,l,i]);return Je.createElement(DV.Provider,{value:o},n)};Bx.propTypes={children:le.node.isRequired,animate:le.bool.isRequired,stiffness:le.number.isRequired,damping:le.number.isRequired};Bx.defaultProps={animate:!0,stiffness:90,damping:15};var Bo=function(){return ge.useContext(DV)};function Eje(e){for(var t=1;t0&&o>0;return Je.createElement(Tm,{bounds:!0,onResize:function(u){r.setState({dimensions:u.bounds})}},function(s){var u=s.measureRef;return Je.createElement("div",{ref:u,style:{width:"100%",height:"100%"}},a&&r.props.children({width:i,height:o}))})}}]),t}(ge.Component);RV(qx,"propTypes",{children:le.func.isRequired});var LV=function(t){var n=t.id,r=t.colors;return Je.createElement("linearGradient",{id:n,x1:0,x2:0,y1:0,y2:1},r.map(function(l){var i=l.offset,o=l.color,a=l.opacity;return Je.createElement("stop",{key:i,offset:"".concat(i,"%"),stopColor:o,stopOpacity:a!==void 0?a:1})}))};LV.propTypes={id:le.string.isRequired,colors:le.arrayOf(le.shape({offset:le.number.isRequired,color:le.string.isRequired})).isRequired};var IV={linearGradient:LV},Ux=ge.memo(function(e){var t=e.id,n=e.background,r=e.color,l=e.size,i=e.padding,o=e.stagger,a=l+i,s=l/2,u=i/2;return o===!0&&(a=l*2+i*2),Je.createElement("pattern",{id:t,width:a,height:a,patternUnits:"userSpaceOnUse"},Je.createElement("rect",{width:a,height:a,fill:n}),Je.createElement("circle",{cx:u+s,cy:u+s,r:s,fill:r}),o&&Je.createElement("circle",{cx:i*1.5+l+s,cy:i*1.5+l+s,r:s,fill:r}))});Ux.displayName="PatternDots";Ux.propTypes={id:le.string.isRequired,color:le.string.isRequired,background:le.string.isRequired,size:le.number.isRequired,padding:le.number.isRequired,stagger:le.bool.isRequired};Ux.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var rS=function(t){return t*Math.PI/180},Hje=function(t){return 180*t/Math.PI},Vje=function(t,n){return{x:Math.cos(t)*n,y:Math.sin(t)*n}},Gje=function(t){var n=t%360;return n<0&&(n+=360),n},Yje={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Hx=ge.memo(function(e){var t=e.id,n=e.spacing,r=e.rotation,l=e.background,i=e.color,o=e.lineWidth,a=Math.round(r)%360,s=Math.abs(n);a>180?a=a-360:a>90?a=a-180:a<-180?a=a+360:a<-90&&(a=a+180);var u=s,c=s,d;return a===0?d=` +`)}var ZIe=KIe;function QIe(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&h.reverse(),c&&s0&&n(a)?t>1?_V(a,t-1,n,r,l):MFe(l,a):r||(l[l.length]=a)}return l}var VP=_V,OFe=VP;function AFe(e){var t=e==null?0:e.length;return t?OFe(e,1):[]}var DFe=AFe,EFe=DFe,RFe=bU,LFe=aP;function IFe(e){return LFe(RFe(e,void 0,EFe),e+"")}var TV=IFe,$Fe=_Fe,NFe=TV,FFe=NFe(function(e,t){return e==null?{}:$Fe(e,t)}),jFe=FFe;const zFe=lr(jFe);var $u=function(){};function ac(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return ge.useMemo(function(){var l=pje({},Kk,r);return{margin:l,innerWidth:t-l.left-l.right,innerHeight:n-l.top-l.bottom,outerWidth:t,outerHeight:n}},[t,n,r.top,r.right,r.bottom,r.left])},mje=function(t){return ge.useMemo(function(){return CV(SV,t)},[t])},gje=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?$P(t.slice("5")):Pf(t):function(n){return n}},Rm=function(t){return ge.useMemo(function(){return gje(t)},[t])},YP=ge.createContext(),vje={},OV=function(t){var n=t.theme,r=n===void 0?vje:n,l=t.children,i=mje(r);return Je.createElement(YP.Provider,{value:i},l)};OV.propTypes={children:le.node.isRequired,theme:le.object};var ka=function(){return ge.useContext(YP)};function iv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?iv=function(n){return typeof n}:iv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},iv(e)}function Zk(){return Zk=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function wje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _je(e,t){for(var n=0;n"u"||s[u].value!==this.newInters[u].value)&&(this.newInters[u]=s[u],this.stepValues[u]=this.currentStepValues[u]+1,this.stepInterpolators[u]=this.newInters[u].interpolator(this.oldValues[u],this.newInters[u].value)),s[u]=zn(this.stepValues[u],this.newInters[u].config));return Je.createElement(rs,Zk({},a,{style:s}),function(c){var d={};for(var f in c)if(r.stepValues[f]){r.currentStepValues[f]=c[f];var p=r.currentStepValues[f]-r.stepValues[f]+1;r.oldValues[f]=d[f]=r.stepInterpolators[f](p)}return o(yje({},c,d))})}}]),t}(ge.PureComponent);Cu(zx,"propTypes",{children:le.func.isRequired,style:le.func.isRequired});var AV=ge.createContext(),Bx=function(t){var n=t.children,r=t.animate,l=t.stiffness,i=t.damping,o=ge.useMemo(function(){return{animate:r,springConfig:{stiffness:l,damping:i}}},[r,l,i]);return Je.createElement(AV.Provider,{value:o},n)};Bx.propTypes={children:le.node.isRequired,animate:le.bool.isRequired,stiffness:le.number.isRequired,damping:le.number.isRequired};Bx.defaultProps={animate:!0,stiffness:90,damping:15};var Bo=function(){return ge.useContext(AV)};function Mje(e){for(var t=1;t0&&o>0;return Je.createElement(km,{bounds:!0,onResize:function(u){r.setState({dimensions:u.bounds})}},function(s){var u=s.measureRef;return Je.createElement("div",{ref:u,style:{width:"100%",height:"100%"}},a&&r.props.children({width:i,height:o}))})}}]),t}(ge.Component);EV(qx,"propTypes",{children:le.func.isRequired});var RV=function(t){var n=t.id,r=t.colors;return Je.createElement("linearGradient",{id:n,x1:0,x2:0,y1:0,y2:1},r.map(function(l){var i=l.offset,o=l.color,a=l.opacity;return Je.createElement("stop",{key:i,offset:"".concat(i,"%"),stopColor:o,stopOpacity:a!==void 0?a:1})}))};RV.propTypes={id:le.string.isRequired,colors:le.arrayOf(le.shape({offset:le.number.isRequired,color:le.string.isRequired})).isRequired};var LV={linearGradient:RV},Ux=ge.memo(function(e){var t=e.id,n=e.background,r=e.color,l=e.size,i=e.padding,o=e.stagger,a=l+i,s=l/2,u=i/2;return o===!0&&(a=l*2+i*2),Je.createElement("pattern",{id:t,width:a,height:a,patternUnits:"userSpaceOnUse"},Je.createElement("rect",{width:a,height:a,fill:n}),Je.createElement("circle",{cx:u+s,cy:u+s,r:s,fill:r}),o&&Je.createElement("circle",{cx:i*1.5+l+s,cy:i*1.5+l+s,r:s,fill:r}))});Ux.displayName="PatternDots";Ux.propTypes={id:le.string.isRequired,color:le.string.isRequired,background:le.string.isRequired,size:le.number.isRequired,padding:le.number.isRequired,stagger:le.bool.isRequired};Ux.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var nS=function(t){return t*Math.PI/180},zje=function(t){return 180*t/Math.PI},Bje=function(t,n){return{x:Math.cos(t)*n,y:Math.sin(t)*n}},Wje=function(t){var n=t%360;return n<0&&(n+=360),n},qje={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Hx=ge.memo(function(e){var t=e.id,n=e.spacing,r=e.rotation,l=e.background,i=e.color,o=e.lineWidth,a=Math.round(r)%360,s=Math.abs(n);a>180?a=a-360:a>90?a=a-180:a<-180?a=a+360:a<-90&&(a=a+180);var u=s,c=s,d;return a===0?d=` M 0 0 L `.concat(u,` 0 M 0 `).concat(c," L ").concat(u," ").concat(c,` `):a===90?d=` M 0 0 L 0 `.concat(c,` M `).concat(u," 0 L ").concat(u," ").concat(c,` - `):(u=Math.abs(s/Math.sin(rS(a))),c=s/Math.sin(rS(90-a)),a>0?d=` + `):(u=Math.abs(s/Math.sin(nS(a))),c=s/Math.sin(nS(90-a)),a>0?d=` M 0 `.concat(-c," L ").concat(u*2," ").concat(c,` M `).concat(-u," ").concat(-c," L ").concat(u," ").concat(c,` M `).concat(-u," 0 L ").concat(u," ").concat(c*2,` @@ -560,29 +560,29 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat M `.concat(-u," ").concat(c," L ").concat(u," ").concat(-c,` M `).concat(-u," ").concat(c*2," L ").concat(u*2," ").concat(-c,` M 0 `).concat(c*2," L ").concat(u*2,` 0 - `)),Je.createElement("pattern",{id:t,width:u,height:c,patternUnits:"userSpaceOnUse"},Je.createElement("rect",{width:u,height:c,fill:l,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),Je.createElement("path",{d,strokeWidth:o,stroke:i,strokeLinecap:"square"}))});Hx.displayName="PatternLines";Hx.propTypes={id:le.string.isRequired,spacing:le.number.isRequired,rotation:le.number.isRequired,background:le.string.isRequired,color:le.string.isRequired,lineWidth:le.number.isRequired};Hx.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var Vx=ge.memo(function(e){var t=e.id,n=e.background,r=e.color,l=e.size,i=e.padding,o=e.stagger,a=l+i,s=i/2;return o===!0&&(a=l*2+i*2),Je.createElement("pattern",{id:t,width:a,height:a,patternUnits:"userSpaceOnUse"},Je.createElement("rect",{width:a,height:a,fill:n}),Je.createElement("rect",{x:s,y:s,width:l,height:l,fill:r}),o&&Je.createElement("rect",{x:i*1.5+l,y:i*1.5+l,width:l,height:l,fill:r}))});Vx.displayName="PatternSquares";Vx.propTypes={id:le.string.isRequired,color:le.string.isRequired,background:le.string.isRequired,size:le.number.isRequired,padding:le.number.isRequired,stagger:le.bool.isRequired};Vx.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var $V={patternDots:Ux,patternLines:Hx,patternSquares:Vx};function Xje(e,t){if(e==null)return{};var n=Kje(e,t),r,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function NV(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,n=t===void 0?"theme":t,r=e.destKey,l=r===void 0?"theme":r;return Tc(Ix(IL({},n,le.object)),so([n],function(i){return IL({},l,MV(CV,i[n]))}))};function sv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sv=function(n){return typeof n}:sv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sv(e)}function oze(e,t){if(e==null)return{};var n=ize(e,t),r,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ize(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function lze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sze(e,t){for(var n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=l.dataKey,o=l.colorKey,a=o===void 0?"color":o,s=l.targetKey,u=s===void 0?"fill":s,c=[],d={};return t.length&&n.length&&(c=mze(t),n.forEach(function(f){for(var p=function(v){var h=r[v],y=h.id,w=h.match;if(wze(w,f,i)){var _=t.find(function(P){var E=P.id;return E===y});if(_){if(xze.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var x=Hs(f,a),T=_.background,k=_.color,S=y;_.background==="inherit"&&(S="".concat(S,".bg.").concat(x),T=x),_.color==="inherit"&&(S="".concat(S,".fg.").concat(x),k=x),Ru(f,u,"url(#".concat(S,")")),d[S]||(c.push(TT({},_,{id:S,background:T,color:k})),d[S]=1)}else Ru(f,u,"url(#".concat(y,")"));else if(bze.includes(_.type)){var C=_.colors.map(function(P){var E=P.color;return E});if(C.includes("inherit")){var M=Hs(f,a),O=y,D=TT({},_,{colors:_.colors.map(function(P,E){return P.color!=="inherit"?P:(O="".concat(O,".").concat(E,".").concat(M),TT({},P,{color:P.color==="inherit"?M:P.color}))})});D.id=O,Ru(f,u,"url(#".concat(O,")")),d[O]||(c.push(D),d[O]=1)}else Ru(f,u,"url(#".concat(y,")"))}}return"break"}},m=0;m-1}function Zze(e,t){var n=this.__data__,r=Yx(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Ef.prototype.clear=Gze;Ef.prototype.delete=Yze;Ef.prototype.get=Xze;Ef.prototype.has=Kze;Ef.prototype.set=Zze;function Sc(e){var t=-1,n=e?e.length:0;for(this.clear();++t11))throw new Error("Invalid size '".concat(t.size,"' for diverging color scheme '").concat(t.scheme,"', must be between 3~11"));var s=Lu(uv[t.scheme][t.size||11]),u=function(p){return s(r(p))};return u.scale=s,u}if(NBe(t.scheme)){if(t.size!==void 0&&(t.size<3||t.size>9))throw new Error("Invalid size '".concat(t.size,"' for sequential color scheme '").concat(t.scheme,"', must be between 3~9"));var c=Lu(uv[t.scheme][t.size||9]),d=function(p){return c(r(p))};return d.scale=c,d}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},lG=function(t,n){return ge.useMemo(function(){return iG(t,n)},[t,n])};function jBe(e,t){return WBe(e)||BBe(e,t)||zBe()}function zBe(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function BBe(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var n=[],r=!0,l=!1,i=void 0;try{for(var o=e[Symbol.iterator](),a;!(r=(a=o.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(s){l=!0,i=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(l)throw i}}return n}}function WBe(e){if(Array.isArray(e))return e}var cv=function(t,n){if(typeof t=="function")return function(f){return t(f)};if(nG(t)){if(t.theme!==void 0){if(n===void 0)throw new Error("Unable to use color from theme as no theme was provided");var r=Wy(n,t.theme);if(r===void 0)throw new Error("Color from theme is undefined at path: '".concat(t.theme,"'"));return function(){return r}}if(t.from!==void 0){var l=function(p){return Wy(p,t.from)};if(Array.isArray(t.modifiers)){var i=[],o=!0,a=!1,s=void 0;try{for(var u=function(){var p=d.value,m=jBe(p,2),g=m[0],b=m[1];if(g==="brighter")i.push(function(v){return v.brighter(b)});else if(g==="darker")i.push(function(v){return v.darker(b)});else if(g==="opacity")i.push(function(v){return v.opacity=b,v});else throw new Error("Invalid color modifier: '".concat(g,"', must be one of: 'brighter', 'darker', 'opacity'"))},c=t.modifiers[Symbol.iterator](),d;!(o=(d=c.next()).done);o=!0)u()}catch(f){a=!0,s=f}finally{try{!o&&c.return!=null&&c.return()}finally{if(a)throw s}}return i.length===0?l:function(f){return i.reduce(function(p,m){return m(p)},Qu(l(f))).toString()}}return l}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return t}},qy=function(t,n){return ge.useMemo(function(){return cv(t,n)},[t,n])},n4=le.oneOfType([le.func,le.arrayOf(le.string),le.shape({scheme:le.oneOf(FBe).isRequired,size:le.number}),le.shape({datum:le.string.isRequired}),le.string]),qBe=le.oneOfType([le.func,le.string]),ST=le.oneOfType([le.string,le.func,le.shape({theme:le.string.isRequired}),le.shape({from:le.string.isRequired,modifiers:le.arrayOf(le.array)})]),UBe=fs,HBe=oi,VBe="[object Number]";function GBe(e){return typeof e=="number"||HBe(e)&&UBe(e)==VBe}var YBe=GBe;const Kx=lr(YBe);function XBe(e){for(var t=1;t0?(v=f.align.right,h=f.baseline.center):(l==="after"&&s>0||l==="before"&&s<0)&&(v=f.align.left,h=f.baseline.center)):(b=function(_){return{x:0,y:p(_)}},m.lineX=o*(l==="after"?1:-1),g.textX=(o+a)*(l==="after"?1:-1),l==="after"?v=f.align.left:v=f.align.right);var y=d.map(function(w){return XBe({key:w,value:w},b(w),m,g)});return{ticks:y,textAlign:v,textBaseline:h}},fG=function(t,n){if(!t||typeof t=="function")return t;if(n.type==="time"){var r=IP(t);return function(l){return r(new Date(l))}}return Pf(t)},sS=function(t){var n=t.width,r=t.height,l=t.scale,i=t.axis,o=t.values,a=Array.isArray(o)?o:void 0,s=Kx(o)?o:void 0,u=a||cG(l,s),c=l.bandwidth?sG(l):l,d;return i==="x"?d=u.map(function(f){return{key:"".concat(f),x1:c(f),x2:c(f),y1:0,y2:r}}):i==="y"&&(d=u.map(function(f){return{key:"".concat(f),x1:0,x2:n,y1:c(f),y2:c(f)}})),d},pG={ticksPosition:le.oneOf(["before","after"]),tickValues:le.oneOfType([le.number,le.arrayOf(le.oneOfType([le.number,le.string,le.instanceOf(Date)])),le.string]),tickSize:le.number,tickPadding:le.number,tickRotation:le.number,format:le.oneOfType([le.func,le.string]),renderTick:le.func,legend:le.node,legendPosition:le.oneOf(["start","middle","end"]),legendOffset:le.number},co=le.shape(pG);function uS(){return uS=Object.assign||function(e){for(var t=1;t0&&(t.lineWidth=k.axis.domain.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.domain.line.stroke,t.beginPath(),t.moveTo(0,0),t.lineTo(r==="x"?u:0,r==="x"?0:u),t.stroke()),C.forEach(function(A){k.axis.ticks.line.strokeWidth>0&&(t.lineWidth=k.axis.ticks.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.ticks.line.stroke,t.beginPath(),t.moveTo(A.x,A.y),t.lineTo(A.x+A.lineX,A.y+A.lineY),t.stroke());var F=h!==void 0?h(A.value):A.value;t.save(),t.translate(A.x+A.textX,A.y+A.textY),t.rotate(WL(v)),t.fillStyle=k.axis.ticks.text.fill,t.fillText(F,0,0),t.restore()}),y!==void 0){var D=0,P=0,E=0,I;r==="y"?(E=-90,D=T,_==="start"?(I="start",P=u):_==="middle"?(I="center",P=u/2):_==="end"&&(I="end")):(P=T,_==="start"?I="start":_==="middle"?(I="center",D=u/2):_==="end"&&(I="end",D=u)),t.translate(D,P),t.rotate(WL(E)),t.font="".concat(k.axis.legend.text.fontWeight?"".concat(k.axis.legend.text.fontWeight," "):"").concat(k.axis.legend.text.fontSize,"px ").concat(k.axis.legend.text.fontFamily),t.fillStyle=k.axis.legend.text.fill,t.textAlign=I,t.textBaseline="middle",t.fillText(y,0,0)}t.restore()},uWe=["top","right","bottom","left"],s4=function(t,n){var r=n.xScale,l=n.yScale,i=n.width,o=n.height,a=n.top,s=n.right,u=n.bottom,c=n.left,d=n.theme,f={top:a,right:s,bottom:u,left:c};uWe.forEach(function(p){var m=f[p];if(!m)return null;var g=p==="top"||p==="bottom",b=p==="top"||p==="left"?"before":"after",v=g?r:l,h=fG(m.format,v);sWe(t,iWe({},m,{axis:g?"x":"y",x:p==="right"?i:0,y:p==="bottom"?o:0,scale:v,format:h,length:g?i:o,ticksPosition:b,theme:d}))})},tf=function(t,n){var r=n.width,l=n.height,i=n.scale,o=n.axis,a=n.values,s=sS({width:r,height:l,scale:i,axis:o,values:a});s.forEach(function(u){t.beginPath(),t.moveTo(u.x1,u.y1),t.lineTo(u.x2,u.y2),t.stroke()})},Zx="row",Qx="column",u4="top",c4="top-right",d4="right",f4="bottom-right",p4="bottom",h4="bottom-left",m4="left",vG="top-left",g4="center",Jx="left-to-right",e2="right-to-left",t2="top-to-bottom",n2="bottom-to-top";function cWe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function $V(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,n=t===void 0?"theme":t,r=e.destKey,l=r===void 0?"theme":r;return Tc(Ix(LL({},n,le.object)),so([n],function(i){return LL({},l,CV(SV,i[n]))}))};function sv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sv=function(n){return typeof n}:sv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sv(e)}function eze(e,t){if(e==null)return{};var n=tze(e,t),r,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tze(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function nze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rze(e,t){for(var n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=l.dataKey,o=l.colorKey,a=o===void 0?"color":o,s=l.targetKey,u=s===void 0?"fill":s,c=[],d={};return t.length&&n.length&&(c=cze(t),n.forEach(function(f){for(var p=function(v){var h=r[v],y=h.id,w=h.match;if(gze(w,f,i)){var _=t.find(function(P){var E=P.id;return E===y});if(_){if(mze.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var x=Hs(f,a),T=_.background,k=_.color,S=y;_.background==="inherit"&&(S="".concat(S,".bg.").concat(x),T=x),_.color==="inherit"&&(S="".concat(S,".fg.").concat(x),k=x),Ru(f,u,"url(#".concat(S,")")),d[S]||(c.push(TT({},_,{id:S,background:T,color:k})),d[S]=1)}else Ru(f,u,"url(#".concat(y,")"));else if(hze.includes(_.type)){var C=_.colors.map(function(P){var E=P.color;return E});if(C.includes("inherit")){var M=Hs(f,a),O=y,D=TT({},_,{colors:_.colors.map(function(P,E){return P.color!=="inherit"?P:(O="".concat(O,".").concat(E,".").concat(M),TT({},P,{color:P.color==="inherit"?M:P.color}))})});D.id=O,Ru(f,u,"url(#".concat(O,")")),d[O]||(c.push(D),d[O]=1)}else Ru(f,u,"url(#".concat(y,")"))}}return"break"}},m=0;m0?(v=f.align.right,h=f.baseline.center):(l==="after"&&s>0||l==="before"&&s<0)&&(v=f.align.left,h=f.baseline.center)):(b=function(_){return{x:0,y:p(_)}},m.lineX=o*(l==="after"?1:-1),g.textX=(o+a)*(l==="after"?1:-1),l==="after"?v=f.align.left:v=f.align.right);var y=d.map(function(w){return _ze({key:w,value:w},b(w),m,g)});return{ticks:y,textAlign:v,textBaseline:h}},XV=function(t,n){if(!t||typeof t=="function")return t;if(n.type==="time"){var r=$P(t);return function(l){return r(new Date(l))}}return Pf(t)},lS=function(t){var n=t.width,r=t.height,l=t.scale,i=t.axis,o=t.values,a=Array.isArray(o)?o:void 0,s=Yx(o)?o:void 0,u=a||GV(l,s),c=l.bandwidth?HV(l):l,d;return i==="x"?d=u.map(function(f){return{key:"".concat(f),x1:c(f),x2:c(f),y1:0,y2:r}}):i==="y"&&(d=u.map(function(f){return{key:"".concat(f),x1:0,x2:n,y1:c(f),y2:c(f)}})),d},KV={ticksPosition:le.oneOf(["before","after"]),tickValues:le.oneOfType([le.number,le.arrayOf(le.oneOfType([le.number,le.string,le.instanceOf(Date)])),le.string]),tickSize:le.number,tickPadding:le.number,tickRotation:le.number,format:le.oneOfType([le.func,le.string]),renderTick:le.func,legend:le.node,legendPosition:le.oneOf(["start","middle","end"]),legendOffset:le.number},co=le.shape(KV);function sS(){return sS=Object.assign||function(e){for(var t=1;t0&&(t.lineWidth=k.axis.domain.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.domain.line.stroke,t.beginPath(),t.moveTo(0,0),t.lineTo(r==="x"?u:0,r==="x"?0:u),t.stroke()),C.forEach(function(A){k.axis.ticks.line.strokeWidth>0&&(t.lineWidth=k.axis.ticks.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.ticks.line.stroke,t.beginPath(),t.moveTo(A.x,A.y),t.lineTo(A.x+A.lineX,A.y+A.lineY),t.stroke());var F=h!==void 0?h(A.value):A.value;t.save(),t.translate(A.x+A.textX,A.y+A.textY),t.rotate(NL(v)),t.fillStyle=k.axis.ticks.text.fill,t.fillText(F,0,0),t.restore()}),y!==void 0){var D=0,P=0,E=0,I;r==="y"?(E=-90,D=T,_==="start"?(I="start",P=u):_==="middle"?(I="center",P=u/2):_==="end"&&(I="end")):(P=T,_==="start"?I="start":_==="middle"?(I="center",D=u/2):_==="end"&&(I="end",D=u)),t.translate(D,P),t.rotate(NL(E)),t.font="".concat(k.axis.legend.text.fontWeight?"".concat(k.axis.legend.text.fontWeight," "):"").concat(k.axis.legend.text.fontSize,"px ").concat(k.axis.legend.text.fontFamily),t.fillStyle=k.axis.legend.text.fill,t.textAlign=I,t.textBaseline="middle",t.fillText(y,0,0)}t.restore()},$ze=["top","right","bottom","left"],a4=function(t,n){var r=n.xScale,l=n.yScale,i=n.width,o=n.height,a=n.top,s=n.right,u=n.bottom,c=n.left,d=n.theme,f={top:a,right:s,bottom:u,left:c};$ze.forEach(function(p){var m=f[p];if(!m)return null;var g=p==="top"||p==="bottom",b=p==="top"||p==="left"?"before":"after",v=g?r:l,h=XV(m.format,v);Ize(t,Rze({},m,{axis:g?"x":"y",x:p==="right"?i:0,y:p==="bottom"?o:0,scale:v,format:h,length:g?i:o,ticksPosition:b,theme:d}))})},tf=function(t,n){var r=n.width,l=n.height,i=n.scale,o=n.axis,a=n.values,s=lS({width:r,height:l,scale:i,axis:o,values:a});s.forEach(function(u){t.beginPath(),t.moveTo(u.x1,u.y1),t.lineTo(u.x2,u.y2),t.stroke()})},Xx="row",Kx="column",o4="top",i4="top-right",l4="right",s4="bottom-right",u4="bottom",c4="bottom-left",d4="left",eG="top-left",f4="center",Zx="left-to-right",Qx="right-to-left",Jx="top-to-bottom",e2="bottom-to-top";function Nze(e){for(var t=1;t0){var R=w.filter(function(Y){var L=Y.on;return L==="hover"}),q=R.reduce(function(Y,L){return mv({},Y,L.style)},{});k(q)}h!==void 0&&h(o,N)},[h,o,w]),O=ge.useCallback(function(){if(w.length>0){var N=w.filter(function(q){var Y=q.on;return Y!=="hover"}),R=N.reduce(function(q,Y){return mv({},q,Y.style)},{});k(R)}y!==void 0&&y(o,event)},[y,o,w]),D=bG({direction:a,justify:s,symbolSize:T.symbolSize||p,symbolSpacing:m,width:l,height:i}),P=D.symbolX,E=D.symbolY,I=D.labelX,A=D.labelY,F=D.labelAnchor,j=D.labelAlignment,z=[v,h,y].some(function(N){return N!==void 0}),B;return Cm(f)?B=f:B=HWe[f],Je.createElement("g",{transform:"translate(".concat(n,",").concat(r,")"),style:{opacity:T.itemOpacity!==void 0?T.itemOpacity:d}},Je.createElement("rect",{width:l,height:i,fill:T.itemBackground||c,style:{cursor:z?"pointer":"auto"},onClick:C,onMouseEnter:M,onMouseLeave:O}),Je.createElement(B,{id:o.id,x:P,y:E,size:T.symbolSize||p,fill:o.fill||o.color,borderWidth:T.symbolBorderWidth!==void 0?T.symbolBorderWidth:g,borderColor:T.symbolBorderColor||b}),Je.createElement("text",{textAnchor:F,style:mv({},S.legends.text,{fill:T.itemTextColor||u,dominantBaseline:j,pointerEvents:"none",userSelect:"none"}),x:I,y:A},o.label))};Rs.displayName="LegendSvgItem";Rs.propTypes=mv({data:o2.isRequired,x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired,textColor:le.string,background:le.string,opacity:le.number,direction:le.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:le.bool.isRequired},r2,a2);Rs.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};function VWe(e){for(var t=1;t=lqe){var u=t?null:oqe(e);if(u)return iqe(u);o=!1,l=aqe,s=new tqe}else s=t?[]:a;e:for(;++rt||i&&o&&s&&!a&&!u||r&&o&&s||!n&&s||!l)return 1;if(!r&&!i&&!u&&e=a)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var PUe=MUe,PT=Zb,OUe=fg,AUe=P4,DUe=wUe,EUe=TUe,RUe=_f,LUe=PUe,IUe=yc,$Ue=_o;function NUe(e,t,n){t.length?t=PT(t,function(i){return $Ue(i)?function(o){return OUe(o,i.length===1?i[0]:i)}:i}):t=[IUe];var r=-1;t=PT(t,RUe(AUe));var l=DUe(e,function(i,o,a){var s=PT(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return EUe(l,function(i,o){return LUe(i,o,n)})}var FUe=NUe,jUe=HP,zUe=FUe,BUe=Kb,VL=aP,WUe=BUe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&VL(e,t[0],t[1])?t=[]:n>2&&VL(t[0],t[1],t[2])&&(t=[t[0]]),zUe(e,jUe(t,1),[])}),qUe=WUe;const UUe=lr(qUe);var HUe=fs,VUe=oi,GUe="[object Date]";function YUe(e){return VUe(e)&&HUe(e)==GUe}var XUe=YUe,KUe=XUe,ZUe=_f,GL=Xb,YL=GL&&GL.isDate,QUe=YL?ZUe(YL):KUe,JUe=QUe;const eHe=lr(JUe);var tHe=function(t,n,r,l){var i=t.axis,o=t.min,a=o===void 0?0:o,s=t.max,u=s===void 0?"auto":s,c=t.stacked,d=c===void 0?!1:c,f=t.reverse,p=f===void 0?!1:f,m=n[i],g=i==="x"?r:l,b=a;a==="auto"&&(b=d===!0?m.minStacked:m.min);var v=u;u==="auto"&&(v=d===!0?m.maxStacked:m.max);var h=Ju().rangeRound(i==="x"?[0,g]:[g,0]);return p===!0?h.domain([v,b]):h.domain([b,v]),h.type="linear",h.stacked=d,h},nHe={type:le.oneOf(["linear"]).isRequired,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number]),stacked:le.bool,reverse:le.bool},rHe=function(t,n,r,l){var i=t.axis,o=t.base,a=o===void 0?10:o,s=t.min,u=s===void 0?"auto":s,c=t.max,d=c===void 0?"auto":c,f=n[i],p=i==="x"?r:l,m=f.all.some(function(w){return w===0}),g,b=!1;if(f.all.forEach(function(w){b!==!0&&(g===void 0?g=Math.sign(w):Math.sign(w)!==g&&(b=!0))}),m||b)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join(` -`));var v=u;u==="auto"&&(v=f.min);var h=d;d==="auto"&&(h=f.max);var y=FU().domain([v,h]).rangeRound(i==="x"?[0,p]:[p,0]).base(a).nice();return y.type="log",y},aHe={type:le.oneOf(["log"]).isRequired,base:le.number,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number])},oHe=function(t,n,r,l){var i=t.axis,o=n[i],a=i==="x"?r:l,s=KAe().range([0,a]).domain(o.all);return s.type="point",s},iHe={type:le.oneOf(["point"]).isRequired},El;function gu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O4="millisecond",PG="second",OG="minute",AG="hour",DG="day",EG="month",RG="year",lHe=[O4,PG,OG,AG,DG,EG,RG],Uc=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],sHe=(El={},gu(El,O4,[]),gu(El,PG,Uc.slice(0,1)),gu(El,OG,Uc.slice(0,2)),gu(El,AG,Uc.slice(0,3)),gu(El,DG,Uc.slice(0,4)),gu(El,EG,Uc.slice(0,5)),gu(El,RG,Uc.slice(0,6)),El),uHe=function(t){return function(n){return sHe[t].forEach(function(r){r(n)}),n}},LG=function(t){var n=t.format,r=n===void 0?"native":n,l=t.precision,i=l===void 0?"millisecond":l,o=t.useUTC,a=o===void 0?!0:o,s=uHe(i);if(r==="native")return function(c){return s(c)};var u=a?qH(r):WH(r);return function(c){return s(u(c))}},cHe=function(t,n,r,l){var i=t.axis,o=t.format,a=o===void 0?"native":o,s=t.precision,u=s===void 0?O4:s,c=t.min,d=c===void 0?"auto":c,f=t.max,p=f===void 0?"auto":f,m=t.useUTC,g=m===void 0?!0:m,b=n[i],v=i==="x"?r:l,h=LG({format:a,precision:u,useUTC:g}),y=d;d==="auto"?y=b.min:a!=="native"&&(y=h(d));var w=p;p==="auto"?w=b.max:a!=="native"&&(w=h(p));var _=g?o7e():a7e();return _.domain([y,w]).range([0,v]),_.type="time",_.useUTC=g,_},dHe={type:le.oneOf(["time"]).isRequired,format:le.string,precision:le.oneOf(lHe)};function Hy(e){return hHe(e)||pHe(e)||fHe()}function fHe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function pHe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function hHe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},i=l.getValue,o=i===void 0?function(p){return p.data[n]}:i,a=l.setValue,s=a===void 0?function(p,m){p.data[n]=m}:a;if(r.type==="linear")t.forEach(function(p){p.data.forEach(function(m){s(m,o(m)===null?null:parseFloat(o(m)))})});else if(r.type==="time"&&r.format!=="native"){var u=LG(r);t.forEach(function(p){p.data.forEach(function(m){s(m,o(m)===null?null:u(o(m)))})})}var c=[];t.forEach(function(p){p.data.forEach(function(m){c.push(o(m))})});var d,f;return r.type==="linear"?(c=UL(c),c=UUe(c,function(p){return p}),d=Math.min.apply(Math,Hy(c)),f=Math.max.apply(Math,Hy(c))):r.type==="time"?(c=$m(c,function(p){return p.getTime()}),c=c.slice(0).sort(function(p,m){return m-p}).reverse(),d=c[0],f=$n(c)):(c=UL(c),d=c[0],f=$n(c)),{all:c,min:d,max:f}},$G=function(t,n,r,l){var i=gHe(t),o=[];r[i].all.forEach(function(a){var s=eHe(a)?yHe:vHe,u=[];l.forEach(function(c){var d=c.data.find(function(g){return s(g.data[i],a)}),f=null,p=null;if(d!==void 0){if(f=d.data[t],f!==null){var m=$n(u);m===void 0?p=f:m!==null&&(p=m+f)}d.data["".concat(t,"Stacked")]=p}u.push(p),o.push(p)})}),o=o.filter(function(a){return a!==null}),r[t].minStacked=Math.min.apply(Math,Hy(o)),r[t].maxStacked=Math.max.apply(Math,Hy(o))},xHe=function(t,n,r){return $G("x",t,n,r)},wHe=function(t,n,r){return $G("y",t,n,r)},Vy=le.oneOfType([le.shape(nHe),le.shape(iHe),le.shape(dHe),le.shape(aHe)]);const ZL=Math.pow(2,-52),O0=new Uint32Array(512);class Gy{static from(t,n=CHe,r=MHe){const l=t.length,i=new Float64Array(l*2);for(let o=0;o>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:l,_hullHash:i}=this,o=t.length>>1;let a=1/0,s=1/0,u=-1/0,c=-1/0;for(let C=0;Cu&&(u=M),O>c&&(c=O),this._ids[C]=C}const d=(a+u)/2,f=(s+c)/2;let p=1/0,m,g,b;for(let C=0;C0&&(g=C,p=M)}let y=t[2*g],w=t[2*g+1],_=1/0;for(let C=0;CD&&(C[M++]=P,D=this._dists[P])}this.hull=C.subarray(0,M),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(A0(v,h,y,w,x,T)){const C=g,M=y,O=w;g=b,y=x,w=T,b=C,x=M,T=O}const k=SHe(v,h,y,w,x,T);this._cx=k.x,this._cy=k.y;for(let C=0;C0&&Math.abs(P-M)<=ZL&&Math.abs(E-O)<=ZL||(M=P,O=E,D===m||D===g||D===b))continue;let I=0;for(let B=0,N=this._hashKey(P,E);B0?3-n:1+n)/4}function OT(e,t,n,r){const l=e-n,i=t-r;return l*l+i*i}function AT(e,t,n,r,l,i){const o=(r-t)*(l-e),a=(n-e)*(i-t);return Math.abs(o-a)>=33306690738754716e-32*Math.abs(o+a)?o-a:0}function A0(e,t,n,r,l,i){return(AT(l,i,e,t,n,r)||AT(e,t,n,r,l,i)||AT(n,r,l,i,e,t))<0}function THe(e,t,n,r,l,i,o,a){const s=e-o,u=t-a,c=n-o,d=r-a,f=l-o,p=i-a,m=s*s+u*u,g=c*c+d*d,b=f*f+p*p;return s*(d*b-g*p)-u*(c*b-g*f)+m*(c*p-d*f)<0}function kHe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=(u*c-a*d)*f,m=(o*d-s*c)*f;return p*p+m*m}function SHe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=e+(u*c-a*d)*f,m=t+(o*d-s*c)*f;return{x:p,y:m}}function dd(e,t,n,r){if(r-n<=20)for(let l=n+1;l<=r;l++){const i=e[l],o=t[i];let a=l-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=i}else{const l=n+r>>1;let i=n+1,o=r;eh(e,l,i),t[e[n]]>t[e[r]]&&eh(e,n,r),t[e[i]]>t[e[r]]&&eh(e,i,r),t[e[n]]>t[e[i]]&&eh(e,n,i);const a=e[i],s=t[a];for(;;){do i++;while(t[e[i]]s);if(o=o-n?(dd(e,t,i,r),dd(e,t,n,o-1)):(dd(e,t,n,o-1),dd(e,t,i,r))}}function eh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function CHe(e){return e[0]}function MHe(e){return e[1]}const QL=1e-6;class Nu{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const l=t+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${l},${i}`:(Math.abs(this._x1-l)>QL||Math.abs(this._y1-i)>QL)&&(this._+="L"+l+","+i),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=l},${this._y1=i}`)}rect(t,n,r,l){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+l}h${-r}Z`}value(){return this._||null}}class xS{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}let PHe=class{constructor(t,[n,r,l,i]=[0,0,960,500]){if(!((l=+l)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=l,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:l}=this,i=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let p=0,m=0,g=r.length,b,v;p1;)i-=2;for(let o=2;o4)for(let o=0;o0){if(n>=this.ymax)return null;(o=(this.ymax-n)/l)0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)this.xmax?2:0)|(nthis.ymax?8:0)}};const OHe=2*Math.PI,Hc=Math.pow;function AHe(e){return e[0]}function DHe(e){return e[1]}function EHe(e){const{triangles:t,coords:n}=e;for(let r=0;r1e-10)return!1}return!0}function RHe(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class s2{static from(t,n=AHe,r=DHe,l){return new s2("length"in t?LHe(t,n,r,l):Float64Array.from(IHe(t,n,r,l)))}constructor(t){this._delaunator=new Gy(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&EHe(t)){this.collinear=Int32Array.from({length:n.length/2},(f,p)=>p).sort((f,p)=>n[2*f]-n[2*p]||n[2*f+1]-n[2*p+1]);const s=this.collinear[0],u=this.collinear[this.collinear.length-1],c=[n[2*s],n[2*s+1],n[2*u],n[2*u+1]],d=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let f=0,p=n.length/2;f0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=l[0],this.triangles[1]=l[1],this.triangles[2]=l[1],o[l[0]]=1,l.length===2&&(o[l[1]]=0))}voronoi(t){return new PHe(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:l,halfedges:i,triangles:o,collinear:a}=this;if(a){const d=a.indexOf(t);d>0&&(yield a[d-1]),d=0&&i!==r&&i!==l;)r=i;return i}_step(t,n,r){const{inedges:l,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:u}=this;if(l[t]===-1||!u.length)return(t+1)%(u.length>>1);let c=t,d=Hc(n-u[t*2],2)+Hc(r-u[t*2+1],2);const f=l[t];let p=f;do{let m=s[p];const g=Hc(n-u[m*2],2)+Hc(r-u[m*2+1],2);if(g0&&(de.lineWidth=U.grid.line.strokeWidth,de.strokeStyle=U.grid.line.stroke,T&&tf(de,{width:q,height:Y,scale:re,axis:"x",values:k}),S&&tf(de,{width:q,height:Y,scale:ae,axis:"y",values:C})),_e==="axes"&&s4(de,{xScale:re,yScale:ae,width:q,height:Y,top:M,right:O,bottom:D,left:P,theme:U}),_e==="areas"&&g===!0&&(de.save(),de.globalAlpha=v,X.context(de),Q.forEach(function(pe){de.fillStyle=pe.color,de.beginPath(),X(pe.data.map(function(xe){return xe.position})),de.fill()}),de.restore()),_e==="lines"&&(G.context(de),Q.forEach(function(pe){de.strokeStyle=pe.color,de.lineWidth=m,de.beginPath(),G(pe.data.map(function(xe){return xe.position})),de.stroke()})),_e==="points"&&h===!0&&y>0&&ie.forEach(function(pe){de.fillStyle=pe.color,de.beginPath(),de.arc(pe.x,pe.y,y/2,0,2*Math.PI),de.fill(),_>0&&(de.strokeStyle=pe.borderColor,de.lineWidth=_,de.stroke())}),_e==="mesh"&&A===!0&&(FG(de,Se),ee&&jG(de,Se,ee.index)),_e==="legends"){var ue=Q.map(function(pe){return{id:pe.id,label:pe.id,color:pe.color}}).reverse();E.forEach(function(pe){M4(de,kVe({},pe,{data:pe.data||ue,containerWidth:q,containerHeight:Y,theme:U}))})}})},[B,L,W,f,U,G,Q,re,ae,T,k,S,C,M,O,D,P,E,ie,h,y,ee]);var Oe=ge.useCallback(function(de){var _e=Lm(B.current,de),ue=aI(_e,2),pe=ue[0],xe=ue[1];if(!ZP(R.left,R.top,q,Y,pe,xe))return null;var ye=he.find(pe-R.left,xe-R.top);return ie[ye]},[B,R,q,Y,he]),Pe=mf(),Me=Pe.showTooltipFromEvent,ce=Pe.hideTooltip,we=ge.useCallback(function(de){var _e=Oe(de);H(_e),_e?Me(Je.createElement(z,{point:_e}),de):ce()},[Oe,H,Me,ce,z]),K=ge.useCallback(function(de){ce(),H(null),ee&&F&&F(ee,de)},[ce,H,F]),ne=ge.useCallback(function(de){if(j){var _e=Oe(de);_e&&j(_e,de)}},[Oe,j]);return Je.createElement("canvas",{ref:B,width:L*i,height:W*i,style:{width:L,height:W,cursor:I?"auto":"normal"},onMouseEnter:I?we:void 0,onMouseMove:I?we:void 0,onMouseLeave:I?K:void 0,onClick:I?ne:void 0})};R4.propTypes=JHe;R4.defaultProps=eVe;var OVe=Gx(R4);function TS(){return TS=Object.assign||function(e){for(var t=1;tke.jsx(Ia,{sx:{maxWidth:200,height:50},children:ke.jsx(AVe,{data:[{id:"1",data:e.data[e.xField].map((t,n)=>({x:t,y:e.data[e.yField][n]}))}],margin:{top:0,right:0,bottom:0,left:0},xScale:{type:"linear",min:0,max:25},axisTop:null,colors:[e.color],axisRight:null,enableGridX:!1,enableGridY:!1})}),EVe=DVe;var RVe=MG;function LVe(e,t){var n=[];return RVe(e,function(r,l,i){t(r,l,i)&&n.push(r)}),n}var IVe=LVe,$Ve=GH,NVe=IVe,FVe=P4,jVe=_o;function zVe(e,t){var n=jVe(e)?$Ve:NVe;return n(e,FVe(t))}var BVe=zVe;const WVe=lr(BVe);var qVe=Tf,UVe=gg;function HVe(e,t){return e&&qVe(t,UVe(t),e)}var VVe=HVe,GVe=Tf,YVe=dg;function XVe(e,t){return e&&GVe(t,YVe(t),e)}var KVe=XVe,ZVe=Tf,QVe=jP;function JVe(e,t){return ZVe(e,QVe(e),t)}var eGe=JVe,tGe=FP,nGe=K5,rGe=jP,aGe=YH,oGe=Object.getOwnPropertySymbols,iGe=oGe?function(e){for(var t=[];e;)tGe(t,rGe(e)),e=nGe(e);return t}:aGe,JG=iGe,lGe=Tf,sGe=JG;function uGe(e,t){return lGe(e,sGe(e),t)}var cGe=uGe,dGe=VH,fGe=JG,pGe=dg;function hGe(e){return dGe(e,pGe,fGe)}var eY=hGe,mGe=Object.prototype,gGe=mGe.hasOwnProperty;function vGe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&gGe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var yGe=vGe,bGe=X5;function xGe(e,t){var n=t?bGe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var wGe=xGe,_Ge=/\w*$/;function TGe(e){var t=new e.constructor(e.source,_Ge.exec(e));return t.lastIndex=e.lastIndex,t}var kGe=TGe,oI=vf,iI=oI?oI.prototype:void 0,lI=iI?iI.valueOf:void 0;function SGe(e){return lI?Object(lI.call(e)):{}}var CGe=SGe,MGe=X5,PGe=wGe,OGe=kGe,AGe=CGe,DGe=dU,EGe="[object Boolean]",RGe="[object Date]",LGe="[object Map]",IGe="[object Number]",$Ge="[object RegExp]",NGe="[object Set]",FGe="[object String]",jGe="[object Symbol]",zGe="[object ArrayBuffer]",BGe="[object DataView]",WGe="[object Float32Array]",qGe="[object Float64Array]",UGe="[object Int8Array]",HGe="[object Int16Array]",VGe="[object Int32Array]",GGe="[object Uint8Array]",YGe="[object Uint8ClampedArray]",XGe="[object Uint16Array]",KGe="[object Uint32Array]";function ZGe(e,t,n){var r=e.constructor;switch(t){case zGe:return MGe(e);case EGe:case RGe:return new r(+e);case BGe:return PGe(e,n);case WGe:case qGe:case UGe:case HGe:case VGe:case GGe:case YGe:case XGe:case KGe:return DGe(e,n);case LGe:return new r;case IGe:case FGe:return new r(e);case $Ge:return OGe(e);case NGe:return new r;case jGe:return AGe(e)}}var QGe=ZGe,JGe=Lx,eYe=oi,tYe="[object Map]";function nYe(e){return eYe(e)&&JGe(e)==tYe}var rYe=nYe,aYe=rYe,oYe=_f,sI=Xb,uI=sI&&sI.isMap,iYe=uI?oYe(uI):aYe,lYe=iYe,sYe=Lx,uYe=oi,cYe="[object Set]";function dYe(e){return uYe(e)&&sYe(e)==cYe}var fYe=dYe,pYe=fYe,hYe=_f,cI=Xb,dI=cI&&cI.isSet,mYe=dI?hYe(dI):pYe,gYe=mYe,vYe=Ub,yYe=mV,bYe=tP,xYe=VVe,wYe=KVe,_Ye=uU,TYe=Hb,kYe=eGe,SYe=cGe,CYe=XH,MYe=eY,PYe=Lx,OYe=yGe,AYe=QGe,DYe=pU,EYe=_o,RYe=Yb,LYe=lYe,IYe=Oi,$Ye=gYe,NYe=gg,FYe=dg,jYe=1,zYe=2,BYe=4,tY="[object Arguments]",WYe="[object Array]",qYe="[object Boolean]",UYe="[object Date]",HYe="[object Error]",nY="[object Function]",VYe="[object GeneratorFunction]",GYe="[object Map]",YYe="[object Number]",rY="[object Object]",XYe="[object RegExp]",KYe="[object Set]",ZYe="[object String]",QYe="[object Symbol]",JYe="[object WeakMap]",eXe="[object ArrayBuffer]",tXe="[object DataView]",nXe="[object Float32Array]",rXe="[object Float64Array]",aXe="[object Int8Array]",oXe="[object Int16Array]",iXe="[object Int32Array]",lXe="[object Uint8Array]",sXe="[object Uint8ClampedArray]",uXe="[object Uint16Array]",cXe="[object Uint32Array]",Nr={};Nr[tY]=Nr[WYe]=Nr[eXe]=Nr[tXe]=Nr[qYe]=Nr[UYe]=Nr[nXe]=Nr[rXe]=Nr[aXe]=Nr[oXe]=Nr[iXe]=Nr[GYe]=Nr[YYe]=Nr[rY]=Nr[XYe]=Nr[KYe]=Nr[ZYe]=Nr[QYe]=Nr[lXe]=Nr[sXe]=Nr[uXe]=Nr[cXe]=!0;Nr[HYe]=Nr[nY]=Nr[JYe]=!1;function gv(e,t,n,r,l,i){var o,a=t&jYe,s=t&zYe,u=t&BYe;if(n&&(o=l?n(e,r,l,i):n(e)),o!==void 0)return o;if(!IYe(e))return e;var c=EYe(e);if(c){if(o=OYe(e),!a)return TYe(e,o)}else{var d=PYe(e),f=d==nY||d==VYe;if(RYe(e))return _Ye(e,a);if(d==rY||d==tY||f&&!l){if(o=s||f?{}:DYe(e),!a)return s?SYe(e,wYe(o,e)):kYe(e,xYe(o,e))}else{if(!Nr[d])return l?e:{};o=AYe(e,d,a)}}i||(i=new vYe);var p=i.get(e);if(p)return p;i.set(e,o),$Ye(e)?e.forEach(function(b){o.add(gv(b,t,n,b,e,i))}):LYe(e)&&e.forEach(function(b,v){o.set(v,gv(b,t,n,v,e,i))});var m=u?s?MYe:CYe:s?FYe:NYe,g=c?void 0:m(e);return yYe(g||e,function(b,v){g&&(v=b,b=e[v]),bYe(o,v,gv(b,t,n,v,e,i))}),o}var dXe=gv;function fXe(e,t,n){var r=-1,l=e.length;t<0&&(t=-t>l?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(l);++r1),i}),DXe(e,LXe(e),n),r&&(n=PXe(n,IXe|$Xe|NXe,EXe));for(var l=t.length;l--;)OXe(n,t[l]);return n}),jXe=FXe;const aY=lr(jXe);var zXe=le.shape({match:le.oneOfType([le.func,le.object]).isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number,noteTextOffset:le.number,note:le.oneOfType([le.node,le.func]).isRequired,offset:le.number}),Yy={noteWidth:120,noteTextOffset:8,animate:!0,motionStiffness:90,motionDamping:13};function BXe(e){for(var t=1;t180?(_-=d,T-=d):T+=d,{points:[[b,v],[m,g],[T,k]],text:[_,x],angle:h+90}},oY=function(t){var n=t.items,r=t.annotations,l=t.getPosition,i=t.getDimensions;return ge.useMemo(function(){return UXe({items:n,annotations:r,getPosition:l,getDimensions:i})},[n,r,l,i])},GXe=function(t){var n=t.type,r=t.containerWidth,l=t.containerHeight,i=t.x,o=t.y,a=t.size,s=t.width,u=t.height,c=t.noteX,d=t.noteY,f=t.noteWidth,p=t.noteTextOffset;return ge.useMemo(function(){return VXe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p})},[n,r,l,i,o,a,s,u,c,d,f,p])};function YXe(e){for(var t=1;t0&&Je.createElement("text",{x:n,y:r,style:YXe({},i.annotations.text,{strokeLinejoin:"round",strokeWidth:i.annotations.text.outlineWidth*2,stroke:i.annotations.text.outlineColor})},l),Je.createElement("text",{x:n,y:r,style:aY(i.annotations.text,["outlineWidth","outlineColor"])},l))});Nm.displayName="AnnotationNote";Nm.propTypes={datum:le.object.isRequired,x:le.number.isRequired,y:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};Nm.defaultProps={};function KXe(e){for(var t=1;t0&&Je.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:fI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Je.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.outline}))}):Je.createElement(Je.Fragment,null,l.annotations.outline.outlineWidth>0&&Je.createElement("circle",{cx:t,cy:n,r:r/2,style:fI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Je.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.outline}))});L4.displayName="CircleAnnotationOutline";L4.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};function pI(e){for(var t=1;t0&&Je.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:pI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Je.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.symbol}))}):Je.createElement(Je.Fragment,null,l.annotations.outline.outlineWidth>0&&Je.createElement("circle",{cx:t,cy:n,r:r/2,style:pI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Je.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.symbol}))});p2.displayName="DotAnnotationOutline";p2.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};p2.defaultProps={size:4};function hI(e){for(var t=1;t0&&Je.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:hI({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Je.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:i.annotations.outline}))}):Je.createElement(Je.Fragment,null,i.annotations.outline.outlineWidth>0&&Je.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:hI({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Je.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:i.annotations.outline}))});I4.displayName="RectAnnotationOutline";I4.propTypes={x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired};var bg=ge.memo(function(e){var t=e.datum,n=e.type,r=e.containerWidth,l=e.containerHeight,i=e.x,o=e.y,a=e.size,s=e.width,u=e.height,c=e.noteX,d=e.noteY,f=e.noteWidth,p=e.noteTextOffset,m=e.note,g=Bo(),b=g.animate,v=g.springConfig,h=GXe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p});return Je.createElement(Je.Fragment,null,Je.createElement(Fm,{points:h.points,isOutline:!0}),n==="circle"&&Je.createElement(L4,{x:i,y:o,size:a}),n==="dot"&&Je.createElement(p2,{x:i,y:o,size:a}),n==="rect"&&Je.createElement(I4,{x:i,y:o,width:s,height:u}),Je.createElement(Fm,{points:h.points}),!b&&Je.createElement(Nm,{x:h.text[0],y:h.text[1],note:m}),b&&Je.createElement(rs,{style:{x:zn(h.text[0],v),y:zn(h.text[1],v)}},function(y){return Je.createElement(Nm,{datum:t,x:y.x,y:y.y,note:m})}))});bg.displayName="Annotation";bg.propTypes={datum:le.object.isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,containerWidth:le.number.isRequired,containerHeight:le.number.isRequired,x:le.number.isRequired,y:le.number.isRequired,size:le.number,width:le.number,height:le.number,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number.isRequired,noteTextOffset:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};bg.defaultProps={noteWidth:Yy.noteWidth,noteTextOffset:Yy.noteTextOffset};function tKe(e){for(var t=1;tke.jsx(Ia,{sx:{maxWidth:200,height:50},children:ke.jsx(SKe,{data:[{id:"1",data:e.data[e.xField].map((t,n)=>({x:t,y:e.data[e.yField][n]}))}],margin:{top:3,right:3,bottom:3,left:3},xScale:{type:"linear",min:0,max:1e3},nodeSize:4,colors:[e.color],useMesh:!1,axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),DKe=AKe;var EKe=kf;function RKe(e,t,n){for(var r=-1,l=e.length;++rt}var WKe=BKe,qKe=vY,UKe=WKe,HKe=yc;function VKe(e){return e&&e.length?qKe(e,HKe,UKe):void 0}var GKe=VKe;const bY=lr(GKe);var YKe=Math.ceil,XKe=Math.max;function KKe(e,t,n,r){for(var l=-1,i=XKe(YKe((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++l]=e,e+=n;return o}var ZKe=KKe,QKe=ZKe,JKe=aP,DT=xV;function eZe(e){return function(t,n,r){return r&&typeof r!="number"&&JKe(t,n,r)&&(n=r=void 0),t=DT(t),n===void 0?(n=t,t=0):n=DT(n),r=r===void 0?t0&&(s=0)),Ju().rangeRound(i).domain([s,a])},pZe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=g2(n,r,[0,s],f),b=a?[0,u]:[u,0],v=wY(n,l,i,o,b),h=(g.bandwidth()-m*(l.length-1))/l.length,y=v(0),w=function(k){return k>0?v(k):y},_=function(k,S){return k>0?y-S:v(k)-y};a&&(w=function(k){return k<0?v(k):y},_=function(k,S){return k<0?y-S:v(k)-y});var x=[];return h>0&&l.forEach(function(T,k){xY(g.domain().length).forEach(function(S){var C=g(r(n[S]))+h*k+m*k,M=w(n[S][T]),O=_(n[S][T],M);if(h>0&&O>0){var D={id:T,value:n[S][T],index:S,indexValue:r(n[S]),data:n[S]};x.push({key:"".concat(T,".").concat(D.indexValue),data:D,x:C,y:M,width:h,height:O,color:c(D)})}})}),{xScale:g,yScale:v,bars:x}},hZe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=a?[s,0]:[0,s],b=wY(n,l,i,o,g),v=g2(n,r,[u,0],f),h=(v.bandwidth()-m*(l.length-1))/l.length,y=b(0),w=function(k){return k>0?y:b(k)},_=function(k,S){return k>0?b(k)-y:y-S};a&&(w=function(k){return k<0?y:b(k)},_=function(k,S){return k<0?b(k)-y:y-S});var x=[];return h>0&&l.forEach(function(T,k){xY(v.domain().length).forEach(function(S){var C=w(n[S][T]),M=v(r(n[S]))+h*k+m*k,O=_(n[S][T],C);if(O>0){var D={id:T,value:n[S][T],index:S,indexValue:r(n[S]),data:n[S]};x.push({key:"".concat(T,".").concat(D.indexValue),data:D,x:C,y:M,width:O,height:h,color:c(D)})}})}),{xScale:b,yScale:v,bars:x}},_Y=function(t){return t.layout==="vertical"?pZe(t):hZe(t)},TY=function(t,n,r,l){var i=uZe(t,2),o=n;o==="auto"&&(o=yY(i));var a=r;return a==="auto"&&(a=bY(i)),Ju().rangeRound(l).domain([o,a])},mZe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=vH().keys(l).offset(LP)(n),b=g2(n,r,[0,s],f),v=a?[0,u]:[u,0],h=TY(g,i,o,v),y=[],w=b.bandwidth(),_=function(k){return h(k[1])},x=function(k,S){return h(k[0])-S};return a&&(_=function(k){return h(k[0])},x=function(k,S){return h(k[1])-S}),w>0&&g.forEach(function(T){b.domain().forEach(function(k,S){var C=T[S],M=b(r(C.data)),O=_(C),D=x(C,O);if(m>0&&(O+=m*.5,D-=m),D>0){var P={id:T.key,value:C.data[T.key],index:S,indexValue:k,data:C.data};y.push({key:"".concat(T.key,".").concat(k),data:P,x:M,y:O,width:w,height:D,color:c(P)})}})}),{xScale:b,yScale:h,bars:y}},gZe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=vH().keys(l).offset(LP)(n),b=a?[s,0]:[0,s],v=TY(g,i,o,b),h=g2(n,r,[u,0],f),y=[],w=h.bandwidth(),_=function(k){return v(k[0])},x=function(k,S){return v(k[1])-S};return a&&(_=function(k){return v(k[1])},x=function(k,S){return v(k[0])-S}),w>0&&g.forEach(function(T){h.domain().forEach(function(k,S){var C=T[S],M=h(r(C.data)),O={id:T.key,value:C.data[T.key],index:S,indexValue:k,data:C.data},D=_(C),P=x(C,D);m>0&&(D+=m*.5,P-=m),P>0&&y.push({key:"".concat(T.key,".").concat(k),data:O,x:D,y:M,width:P,height:w,color:c(O)})})}),{xScale:v,yScale:h,bars:y}},kY=function(t){return t.layout==="vertical"?mZe(t):gZe(t)},vZe=function(t,n,r,l,i){var o=$m(t.map(function(a){return{id:a.data.id,label:a.data.id,color:a.color,fill:a.data.fill}}),function(a){var s=a.id;return s});return(n==="vertical"&&l==="stacked"&&r==="column"&&i!==!0||n==="horizontal"&&l==="stacked"&&i===!0)&&o.reverse(),o},yZe=function(t){return $m(t.map(function(n){return{id:n.data.indexValue,label:n.data.indexValue,color:n.color,fill:n.data.fill}}),function(n){var r=n.id;return r})},bZe=function(t){var n=t.from,r=t.bars,l=t.layout,i=t.direction,o=t.groupMode,a=t.reverse;return n==="indexes"?yZe(r):vZe(r,l,i,o,a)};function PS(e){for(var t=1;t0&&ce0&&we0&&(this.ctx.lineWidth=S.grid.line.strokeWidth,this.ctx.strokeStyle=S.grid.line.stroke,P&&tf(this.ctx,{width:c,height:d,scale:j.xScale,axis:"x",values:E}),I&&tf(this.ctx,{width:c,height:d,scale:j.yScale,axis:"y",values:A})),this.ctx.strokeStyle="#dddddd";var z=$m(j.bars.map(function(N){return{id:N.data.id,label:N.data.id,color:N.color,fill:N.data.fill}}).reverse(),function(N){var R=N.id;return R}),B=$m(j.bars.map(function(N){return{id:N.data.indexValue,label:N.data.indexValue,color:N.color,fill:N.data.fill}}),function(N){var R=N.id;return R});D.forEach(function(N){var R;if(N.dataFrom==="keys"?R=z:N.dataFrom==="indexes"&&(R=B),R===void 0)return null;M4(l.ctx,bI({},N,{data:R,containerWidth:c,containerHeight:d,itemTextColor:"#999",symbolSize:16,theme:S}))}),s4(this.ctx,{xScale:j.xScale,yScale:j.yScale,width:c,height:d,top:_,right:x,bottom:T,left:k,theme:S}),j.bars.forEach(function(N){var R=N.x,q=N.y,Y=N.color,L=N.width,W=N.height;l.ctx.fillStyle=Y,M>0&&(l.ctx.strokeStyle=O(N),l.ctx.lineWidth=M),l.ctx.beginPath(),l.ctx.rect(R,q,L,W),l.ctx.fill(),M>0&&l.ctx.stroke()})}},{key:"render",value:function(){var r=this,l=this.props,i=l.outerWidth,o=l.outerHeight,a=l.pixelRatio,s=l.isInteractive,u=l.theme;return Je.createElement(Wx,{isInteractive:s,theme:u,animate:!1},function(c){var d=c.showTooltip,f=c.hideTooltip;return Je.createElement("canvas",{ref:function(m){r.surface=m},width:i*a,height:o*a,style:{width:i,height:o},onMouseEnter:r.handleMouseHover(d,f),onMouseMove:r.handleMouseHover(d,f),onMouseLeave:r.handleMouseLeave(f),onClick:r.handleClick})})}}]),t}(ge.Component);AY.propTypes=CY;var FZe=$P("BarCanvas")(MY(AY));function ES(){return ES=Object.assign||function(e){for(var t=1;tke.jsx(Ia,{sx:{maxWidth:200,height:50},children:ke.jsx(jZe,{data:e.data[e.xField].map((t,n)=>({id:t,x:e.data[e.yField][n]})),margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),BZe=zZe,WZe=e=>e.type??"graph",_I=(e,t,n)=>{switch(WZe(t)){case"graph":{const r=()=>e.getAdditionGraphData(t.id),l=i=>ke.jsx(ub,{...i,widgetSize:n});return ke.jsx(bk,{func:r,children:l})}case"widget":{const r=()=>e.getAdditionWidgetData(t.id),l=i=>_g(t.id,i);return ke.jsx(bk,{func:r,children:l})}default:return ke.jsx(Hz,{})}},F4=e=>ke.jsx(DM.Consumer,{children:t=>ke.jsxs(Ia,{children:[e.details.parts.length>1?ke.jsx(EM,{tabs:e.details.parts.map(n=>({title:n.title,tab:_I(t,n,e.widgetSize)}))}):_I(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?ke.jsx(ke.Fragment,{}):e.details.insights.map(n=>ke.jsx(jz,{data:n}))]})}),qZe=new Map([["line",(e,t)=>t[e.field]?ke.jsx(EVe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):ke.jsx("div",{})],["scatter",(e,t)=>t[e.field]?ke.jsx(DKe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):ke.jsx("div",{})],["histogram",(e,t)=>t[e.field]?ke.jsx(BZe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):ke.jsx("div",{})]]),TI=e=>e.map(t=>({def:t,gen:qZe.get(t.type??"string")})).map(({def:t,gen:n})=>n?{...t,type:void 0,render:r=>n(t,r)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),UZe=e=>{const[t,n]=ge.useState({open:!1,anchorEl:void 0});return ke.jsxs(Ia,{sx:{width:50},onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),children:[ke.jsx(Xq,{}),ke.jsx(kM,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:ke.jsx(dr,{p:1,children:e.longText})})]})},HZe=e=>{const{columns:t,data:n}=e,r={search:!0,showTitle:!1,pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42},emptyRowsWhenPaging:!1};return ke.jsx(Je.Fragment,{children:ke.jsx(xSe,{columns:e.showInfoColumn??!1?[...TI(t),{title:"Info",render:l=>{var i,o,a;return ke.jsx(Je.Fragment,{children:(i=l.details)!=null&&i.insights?ke.jsx(UZe,{longText:`${(o=l.details)==null?void 0:o.insights[0].title}: ${(a=l.details)==null?void 0:a.insights[0].text}`}):ke.jsx("div",{})})},width:50}]:[...TI(t)],data:n,detailPanel:({rowData:l})=>l.graphId?ke.jsx(SSe,{graphId:l.graphId,widgetSize:e.widgetSize}):l.details?ke.jsx(F4,{details:l.details,widgetSize:e.widgetSize}):null,options:r})})},VZe=e=>ke.jsx(EM,{tabs:e.tabs.map(t=>({title:t.title,tab:_g(e.id+"1",t.widget)}))});var j4={},GZe=Cn;Object.defineProperty(j4,"__esModule",{value:!0});var DY=j4.default=void 0,YZe=GZe(Ta()),XZe=ke,KZe=(0,YZe.default)((0,XZe.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"}),"ExpandLessSharp");DY=j4.default=KZe;var z4={},ZZe=Cn;Object.defineProperty(z4,"__esModule",{value:!0});var EY=z4.default=void 0,QZe=ZZe(Ta()),JZe=ke,eQe=(0,QZe.default)((0,JZe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"}),"ExpandMoreSharp");EY=z4.default=eQe;const tQe=e=>{var a,s;const[t,n]=ge.useState(!1),r=qz(),l=(a=e.graph)==null?void 0:a.data.some(({type:u})=>u==="histogram"),o=(r==null?void 0:r.isXaxisAsCategorical)&&!l?{type:"category",categoryorder:"category ascending"}:{};return ke.jsx(Je.Fragment,{children:ke.jsxs(cr,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[ke.jsxs(cr,{item:!0,xs:2,children:[ke.jsx(dr,{variant:"h5",children:e.header}),ke.jsx(dr,{variant:"subtitle1",children:e.description})]}),ke.jsx(cr,{item:!0,xs:e.graph===void 0?10:5,children:ke.jsxs(PM,{children:[ke.jsx(AM,{children:ke.jsxs(pm,{children:[ke.jsx(gi,{}),e.metricsValuesHeaders.map((u,c)=>ke.jsx(gi,{children:u},u+c))]})}),ke.jsx(OM,{children:e.metrics.map((u,c)=>ke.jsxs(pm,{children:[ke.jsx(gi,{children:u.label}),u.values.map((d,f)=>ke.jsx(gi,{children:d},String(d)+f))]},u.label+c))})]})}),e.graph===void 0?ke.jsx(ke.Fragment,{}):ke.jsx(cr,{item:!0,xs:5,children:ke.jsx(Wz,{data:e.graph.data,layout:{...e.graph.layout,title:void 0,xaxis:{...(s=e.graph.layout)==null?void 0:s.xaxis,...o}},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?ke.jsx(ke.Fragment,{}):ke.jsxs(ke.Fragment,{children:[ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(ji,{variant:"outlined",startIcon:t?ke.jsx(DY,{}):ke.jsx(EY,{}),onClick:()=>n(u=>!u),children:"Details"})}),ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(Z1,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:ke.jsx(F4,{details:e.details,widgetSize:e.widgetSize})})})]})]})})};var B4={},nQe=Cn;Object.defineProperty(B4,"__esModule",{value:!0});var RY=B4.default=void 0,rQe=nQe(Ta()),aQe=ke,oQe=(0,rQe.default)((0,aQe.jsx)("path",{d:"m14 7-5 5 5 5V7z"}),"ArrowLeft");RY=B4.default=oQe;var W4={},iQe=Cn;Object.defineProperty(W4,"__esModule",{value:!0});var LY=W4.default=void 0,lQe=iQe(Ta()),sQe=ke,uQe=(0,lQe.default)((0,sQe.jsx)("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");LY=W4.default=uQe;const cQe=e=>{const[t,n]=Je.useState({page:0}),r=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return ke.jsxs(Uz,{children:[r.map((l,i)=>_g(`wi_${i}`,l)),ke.jsxs(cr,{item:!0,xs:12,children:[ke.jsx(ji,{startIcon:ke.jsx(RY,{}),disabled:t.page===0,onClick:()=>n(l=>({page:l.page-1})),children:"Previous"}),ke.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),ke.jsx(ji,{endIcon:ke.jsx(LY,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>n(l=>({page:l.page+1})),children:"Next"})]})]})};function dQe(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const fQe=/[ \t\n\f\r]/g;function pQe(e){return typeof e=="object"?e.type==="text"?kI(e.value):!1:kI(e)}function kI(e){return e.replace(fQe,"")===""}class xg{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}xg.prototype.property={};xg.prototype.normal={};xg.prototype.space=null;function IY(e,t){const n={},r={};let l=-1;for(;++l4&&n.slice(0,4)==="data"&&yQe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(CI,_Qe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!CI.test(i)){let o=i.replace(bQe,wQe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}l=q4}return new l(r,t)}function wQe(e){return"-"+e.toLowerCase()}function _Qe(e){return e.charAt(1).toUpperCase()}const TQe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},kQe=IY([FY,NY,BY,WY,gQe],"html"),qY=IY([FY,NY,BY,WY,vQe],"svg");function SQe(e){return e.join(" ").trim()}var U4={exports:{}},MI=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,CQe=/\n/g,MQe=/^\s*/,PQe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,OQe=/^:\s*/,AQe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,DQe=/^[;\s]*/,EQe=/^\s+|\s+$/g,RQe=` -`,PI="/",OI="*",Mu="",LQe="comment",IQe="declaration",$Qe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function l(m){var g=m.match(CQe);g&&(n+=g.length);var b=m.lastIndexOf(RQe);r=~b?m.length-b:r+m.length}function i(){var m={line:n,column:r};return function(g){return g.position=new o(m),u(),g}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(m){var g=new Error(t.source+":"+n+":"+r+": "+m);if(g.reason=m,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function s(m){var g=m.exec(e);if(g){var b=g[0];return l(b),e=e.slice(b.length),g}}function u(){s(MQe)}function c(m){var g;for(m=m||[];g=d();)g!==!1&&m.push(g);return m}function d(){var m=i();if(!(PI!=e.charAt(0)||OI!=e.charAt(1))){for(var g=2;Mu!=e.charAt(g)&&(OI!=e.charAt(g)||PI!=e.charAt(g+1));)++g;if(g+=2,Mu===e.charAt(g-1))return a("End of comment missing");var b=e.slice(2,g-2);return r+=2,l(b),e=e.slice(g),r+=2,m({type:LQe,comment:b})}}function f(){var m=i(),g=s(PQe);if(g){if(d(),!s(OQe))return a("property missing ':'");var b=s(AQe),v=m({type:IQe,property:AI(g[0].replace(MI,Mu)),value:b?AI(b[0].replace(MI,Mu)):Mu});return s(DQe),v}}function p(){var m=[];c(m);for(var g;g=f();)g!==!1&&(m.push(g),c(m));return m}return u(),p()};function AI(e){return e?e.replace(EQe,Mu):Mu}var NQe=$Qe;function UY(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,l=NQe(e),i=typeof t=="function",o,a,s=0,u=l.length;s0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function zQe(e){const t=H4(e),n=HY(e);if(t&&n)return{start:t,end:n}}function Fh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?DI(e.position):"start"in e||"end"in e?DI(e):"line"in e||"column"in e?IS(e):""}function IS(e){return EI(e&&e.line)+":"+EI(e&&e.column)}function DI(e){return IS(e&&e.start)+"-"+IS(e&&e.end)}function EI(e){return e&&typeof e=="number"?e:1}class To extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?l=t:!i.cause&&t&&(o=!0,l=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=a?a.line:void 0,this.name=Fh(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}To.prototype.file="";To.prototype.name="";To.prototype.reason="";To.prototype.message="";To.prototype.stack="";To.prototype.column=void 0;To.prototype.line=void 0;To.prototype.ancestors=void 0;To.prototype.cause=void 0;To.prototype.fatal=void 0;To.prototype.place=void 0;To.prototype.ruleId=void 0;To.prototype.source=void 0;const V4={}.hasOwnProperty,BQe=new Map,WQe=/[A-Z]/g,qQe=/-([a-z])/g,UQe=new Set(["table","tbody","thead","tfoot","tr"]),HQe=new Set(["td","th"]);function VQe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=YQe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=GQe(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?qY:kQe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=GY(l,e,void 0);return i&&typeof i!="string"?i:l.create(e,l.Fragment,{children:i||void 0},void 0)}function GY(e,t,n){if(t.type==="element"||t.type==="root"){const r=e.schema;let l=r;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=qY,e.schema=l),e.ancestors.push(t);let i=XQe(e,t);const o=KQe(e,e.ancestors);let a=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(i&&UQe.has(t.tagName)&&(i=i.filter(function(s){return typeof s=="string"?!pQe(s):!0})),V4.call(e.components,t.tagName)){const s=t.tagName;a=e.components[s],typeof a!="string"&&a!==e.Fragment&&e.passNode&&(o.node=t)}else a=t.tagName;if(i.length>0){const s=i.length>1?i:i[0];s&&(o.children=s)}return e.schema=r,e.create(t,a,o,n)}if(t.type==="text")return t.value}function GQe(e,t,n){return r;function r(l,i,o,a){const u=Array.isArray(o.children)?n:t;return a?u(i,o,a):u(i,o)}}function YQe(e,t){return n;function n(r,l,i,o){const a=Array.isArray(i.children),s=H4(r);return t(l,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function XQe(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:BQe;for(;++r-1&&e.test(String.fromCharCode(n))}}const sJe={'"':"quot","&":"amp","<":"lt",">":"gt"};function uJe(e){return e.replace(/["&<>]/g,t);function t(n){return"&"+sJe[n]+";"}}function cJe(e,t){const n=uJe(Mc(e||""));if(!t)return n;const r=n.indexOf(":"),l=n.indexOf("?"),i=n.indexOf("#"),o=n.indexOf("/");return r<0||o>-1&&r>o||l>-1&&r>l||i>-1&&r>i||t.test(n.slice(0,r))?n:""}function Mc(e){const t=[];let n=-1,r=0,l=0;for(;++n55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(o=String.fromCharCode(i,a),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}const dJe={};function fJe(e,t){const n=dJe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return XY(e,r,l)}function XY(e,t,n){if(pJe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return RI(e.children,t,n)}return Array.isArray(e)?RI(e,t,n):""}function RI(e,t,n){const r=[];let l=-1;for(;++ll?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(Sl(e,e.length,0,t),e):t}const II={}.hasOwnProperty;function hJe(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}function Cd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function zr(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return wr(s)?(e.enter(n),a(s)):t(s)}function a(s){return wr(s)&&i++o))return;const T=t.events.length;let k=T,S,C;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(S){C=t.events[k][1].end;break}S=!0}for(v(r),x=T;xy;){const _=n[w];t.containerState=_[1],_[0].exit.call(t,e)}n.length=y}function h(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function wJe(e,t,n){return zr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function NI(e){if(e===null||$o(e)||lJe(e))return 1;if(iJe(e))return 2}function Y4(e,t,n){const r=[];let l=-1;for(;++l1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);FI(d,-s),FI(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},a.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=pi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=pi(u,[["enter",l,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=pi(u,Y4(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=pi(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=pi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Sl(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&wr(x)?zr(e,h,"linePrefix",i+1)(x):h(x)}function h(x){return x===null||Vn(x)?e.check(jI,g,w)(x):(e.enter("codeFlowValue"),y(x))}function y(x){return x===null||Vn(x)?(e.exit("codeFlowValue"),h(x)):(e.consume(x),y)}function w(x){return e.exit("codeFenced"),t(x)}function _(x,T,k){let S=0;return C;function C(E){return x.enter("lineEnding"),x.consume(E),x.exit("lineEnding"),M}function M(E){return x.enter("codeFencedFence"),wr(E)?zr(x,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):O(E)}function O(E){return E===a?(x.enter("codeFencedFenceSequence"),D(E)):k(E)}function D(E){return E===a?(S++,x.consume(E),D):S>=o?(x.exit("codeFencedFenceSequence"),wr(E)?zr(x,P,"whitespace")(E):P(E)):k(E)}function P(E){return E===null||Vn(E)?(x.exit("codeFencedFence"),T(E)):k(E)}}}function RJe(e,t,n){const r=this;return l;function l(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const LT={name:"codeIndented",tokenize:IJe},LJe={tokenize:$Je,partial:!0};function IJe(e,t,n){const r=this;return l;function l(u){return e.enter("codeIndented"),zr(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):Vn(u)?e.attempt(LJe,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||Vn(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function $Je(e,t,n){const r=this;return l;function l(o){return r.parser.lazy[r.now().line]?n(o):Vn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):zr(e,i,"linePrefix",5)(o)}function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):Vn(o)?l(o):n(o)}}const NJe={name:"codeText",tokenize:zJe,resolve:FJe,previous:jJe};function FJe(e){let t=e.length-4,n=3,r,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function tX(e,t,n,r,l,i,o,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(v),e.exit(i),f):v===null||v===32||v===41||$S(v)?n(v):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(v))}function f(v){return v===62?(e.enter(i),e.consume(v),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(a),f(v)):v===null||v===60||Vn(v)?n(v):(e.consume(v),v===92?m:p)}function m(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function g(v){return!c&&(v===null||v===41||$o(v))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(v)):c999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(i),e.enter(l),e.consume(p),e.exit(l),e.exit(r),t):Vn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||Vn(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!wr(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),a++,d):d(p)}}function rX(e,t,n,r,l,i){let o;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(l),e.consume(f),e.exit(l),o=f===40?41:f,s):n(f)}function s(f){return f===o?(e.enter(l),e.consume(f),e.exit(l),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),s(o)):f===null?n(f):Vn(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),zr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||Vn(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(e.consume(f),c):c(f)}}function jh(e,t){let n;return r;function r(l){return Vn(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):wr(l)?zr(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const GJe={name:"definition",tokenize:XJe},YJe={tokenize:KJe,partial:!0};function XJe(e,t,n){const r=this;let l;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return nX.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return l=Cd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return $o(p)?jh(e,u)(p):u(p)}function u(p){return tX(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(YJe,d,d)(p)}function d(p){return wr(p)?zr(e,f,"whitespace")(p):f(p)}function f(p){return p===null||Vn(p)?(e.exit("definition"),r.parser.defined.push(l),t(p)):n(p)}}function KJe(e,t,n){return r;function r(a){return $o(a)?jh(e,l)(a):n(a)}function l(a){return rX(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return wr(a)?zr(e,o,"whitespace")(a):o(a)}function o(a){return a===null||Vn(a)?t(a):n(a)}}const ZJe={name:"hardBreakEscape",tokenize:QJe};function QJe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return Vn(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const JJe={name:"headingAtx",tokenize:tet,resolve:eet};function eet(e,t){let n=e.length-2,r=3,l,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Sl(e,r,n-r+1,[["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t]])),e}function tet(e,t,n){let r=0;return l;function l(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||$o(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||Vn(c)?(e.exit("atxHeading"),t(c)):wr(c)?zr(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||$o(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const net=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],BI=["pre","script","style","textarea"],ret={name:"htmlFlow",tokenize:set,resolveTo:iet,concrete:!0},aet={tokenize:cet,partial:!0},oet={tokenize:uet,partial:!0};function iet(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function set(e,t,n){const r=this;let l,i,o,a,s;return u;function u(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),d}function d(R){return R===33?(e.consume(R),f):R===47?(e.consume(R),i=!0,g):R===63?(e.consume(R),l=3,r.interrupt?t:z):pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function f(R){return R===45?(e.consume(R),l=2,p):R===91?(e.consume(R),l=5,a=0,m):pl(R)?(e.consume(R),l=4,r.interrupt?t:z):n(R)}function p(R){return R===45?(e.consume(R),r.interrupt?t:z):n(R)}function m(R){const q="CDATA[";return R===q.charCodeAt(a++)?(e.consume(R),a===q.length?r.interrupt?t:O:m):n(R)}function g(R){return pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function b(R){if(R===null||R===47||R===62||$o(R)){const q=R===47,Y=o.toLowerCase();return!q&&!i&&BI.includes(Y)?(l=1,r.interrupt?t(R):O(R)):net.includes(o.toLowerCase())?(l=6,q?(e.consume(R),v):r.interrupt?t(R):O(R)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?h(R):y(R))}return R===45||Xo(R)?(e.consume(R),o+=String.fromCharCode(R),b):n(R)}function v(R){return R===62?(e.consume(R),r.interrupt?t:O):n(R)}function h(R){return wr(R)?(e.consume(R),h):C(R)}function y(R){return R===47?(e.consume(R),C):R===58||R===95||pl(R)?(e.consume(R),w):wr(R)?(e.consume(R),y):C(R)}function w(R){return R===45||R===46||R===58||R===95||Xo(R)?(e.consume(R),w):_(R)}function _(R){return R===61?(e.consume(R),x):wr(R)?(e.consume(R),_):y(R)}function x(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),s=R,T):wr(R)?(e.consume(R),x):k(R)}function T(R){return R===s?(e.consume(R),s=null,S):R===null||Vn(R)?n(R):(e.consume(R),T)}function k(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||$o(R)?_(R):(e.consume(R),k)}function S(R){return R===47||R===62||wr(R)?y(R):n(R)}function C(R){return R===62?(e.consume(R),M):n(R)}function M(R){return R===null||Vn(R)?O(R):wr(R)?(e.consume(R),M):n(R)}function O(R){return R===45&&l===2?(e.consume(R),I):R===60&&l===1?(e.consume(R),A):R===62&&l===4?(e.consume(R),B):R===63&&l===3?(e.consume(R),z):R===93&&l===5?(e.consume(R),j):Vn(R)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(aet,N,D)(R)):R===null||Vn(R)?(e.exit("htmlFlowData"),D(R)):(e.consume(R),O)}function D(R){return e.check(oet,P,N)(R)}function P(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),E}function E(R){return R===null||Vn(R)?D(R):(e.enter("htmlFlowData"),O(R))}function I(R){return R===45?(e.consume(R),z):O(R)}function A(R){return R===47?(e.consume(R),o="",F):O(R)}function F(R){if(R===62){const q=o.toLowerCase();return BI.includes(q)?(e.consume(R),B):O(R)}return pl(R)&&o.length<8?(e.consume(R),o+=String.fromCharCode(R),F):O(R)}function j(R){return R===93?(e.consume(R),z):O(R)}function z(R){return R===62?(e.consume(R),B):R===45&&l===2?(e.consume(R),z):O(R)}function B(R){return R===null||Vn(R)?(e.exit("htmlFlowData"),N(R)):(e.consume(R),B)}function N(R){return e.exit("htmlFlow"),t(R)}}function uet(e,t,n){const r=this;return l;function l(o){return Vn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function cet(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(v2,t,n)}}const det={name:"htmlText",tokenize:fet};function fet(e,t,n){const r=this;let l,i,o;return a;function a(z){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(z),s}function s(z){return z===33?(e.consume(z),u):z===47?(e.consume(z),_):z===63?(e.consume(z),y):pl(z)?(e.consume(z),k):n(z)}function u(z){return z===45?(e.consume(z),c):z===91?(e.consume(z),i=0,m):pl(z)?(e.consume(z),h):n(z)}function c(z){return z===45?(e.consume(z),p):n(z)}function d(z){return z===null?n(z):z===45?(e.consume(z),f):Vn(z)?(o=d,A(z)):(e.consume(z),d)}function f(z){return z===45?(e.consume(z),p):d(z)}function p(z){return z===62?I(z):z===45?f(z):d(z)}function m(z){const B="CDATA[";return z===B.charCodeAt(i++)?(e.consume(z),i===B.length?g:m):n(z)}function g(z){return z===null?n(z):z===93?(e.consume(z),b):Vn(z)?(o=g,A(z)):(e.consume(z),g)}function b(z){return z===93?(e.consume(z),v):g(z)}function v(z){return z===62?I(z):z===93?(e.consume(z),v):g(z)}function h(z){return z===null||z===62?I(z):Vn(z)?(o=h,A(z)):(e.consume(z),h)}function y(z){return z===null?n(z):z===63?(e.consume(z),w):Vn(z)?(o=y,A(z)):(e.consume(z),y)}function w(z){return z===62?I(z):y(z)}function _(z){return pl(z)?(e.consume(z),x):n(z)}function x(z){return z===45||Xo(z)?(e.consume(z),x):T(z)}function T(z){return Vn(z)?(o=T,A(z)):wr(z)?(e.consume(z),T):I(z)}function k(z){return z===45||Xo(z)?(e.consume(z),k):z===47||z===62||$o(z)?S(z):n(z)}function S(z){return z===47?(e.consume(z),I):z===58||z===95||pl(z)?(e.consume(z),C):Vn(z)?(o=S,A(z)):wr(z)?(e.consume(z),S):I(z)}function C(z){return z===45||z===46||z===58||z===95||Xo(z)?(e.consume(z),C):M(z)}function M(z){return z===61?(e.consume(z),O):Vn(z)?(o=M,A(z)):wr(z)?(e.consume(z),M):S(z)}function O(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),l=z,D):Vn(z)?(o=O,A(z)):wr(z)?(e.consume(z),O):(e.consume(z),P)}function D(z){return z===l?(e.consume(z),l=void 0,E):z===null?n(z):Vn(z)?(o=D,A(z)):(e.consume(z),D)}function P(z){return z===null||z===34||z===39||z===60||z===61||z===96?n(z):z===47||z===62||$o(z)?S(z):(e.consume(z),P)}function E(z){return z===47||z===62||$o(z)?S(z):n(z)}function I(z){return z===62?(e.consume(z),e.exit("htmlTextData"),e.exit("htmlText"),t):n(z)}function A(z){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),F}function F(z){return wr(z)?zr(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):j(z)}function j(z){return e.enter("htmlTextData"),o(z)}}const X4={name:"labelEnd",tokenize:yet,resolveTo:vet,resolveAll:get},pet={tokenize:bet},het={tokenize:xet},met={tokenize:wet};function get(e){let t=-1;for(;++t=3&&(u===null||Vn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===l?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),wr(u)?zr(e,a,"whitespace")(u):a(u))}}const Co={name:"list",tokenize:Det,continuation:{tokenize:Eet},exit:Let},Oet={tokenize:Iet,partial:!0},Aet={tokenize:Ret,partial:!0};function Det(e,t,n){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,o=0;return a;function a(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:NS(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(xv,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return NS(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(v2,r.interrupt?n:c,e.attempt(Oet,f,d))}function c(p){return r.containerState.initialBlankLine=!0,i++,f(p)}function d(p){return wr(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Eet(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(v2,l,i);function l(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,zr(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!wr(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Aet,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,zr(e,e.attempt(Co,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Ret(e,t,n){const r=this;return zr(e,l,"listItemIndent",r.containerState.size+1);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function Let(e){e.exit(this.containerState.type)}function Iet(e,t,n){const r=this;return zr(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(i){const o=r.events[r.events.length-1];return!wr(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const WI={name:"setextUnderline",tokenize:Net,resolveTo:$et};function $et(e,t){let n=e.length,r,l,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[l][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[l][1].type="setextHeadingText",i?(e.splice(l,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function Net(e,t,n){const r=this;let l;return i;function i(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),l=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===l?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),wr(u)?zr(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||Vn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Fet={tokenize:jet};function jet(e){const t=this,n=e.attempt(v2,r,e.attempt(this.parser.constructs.flowInitial,l,zr(e,e.attempt(this.parser.constructs.flow,l,e.attempt(WJe,l)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const zet={resolveAll:oX()},Bet=aX("string"),Wet=aX("text");function aX(e){return{tokenize:t,resolveAll:oX(e==="text"?qet:void 0)};function t(n){const r=this,l=this.parser.constructs[e],i=n.attempt(l,o,a);return o;function o(c){return u(c)?i(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const d=l[c];let f=-1;if(d)for(;++f-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}i>0&&o.push(e[l].slice(0,i))}return o}function Vet(e,t){let n=-1;const r=[];let l;for(;++n0){var R=w.filter(function(Y){var L=Y.on;return L==="hover"}),q=R.reduce(function(Y,L){return pv({},Y,L.style)},{});k(q)}h!==void 0&&h(o,N)},[h,o,w]),O=ge.useCallback(function(){if(w.length>0){var N=w.filter(function(q){var Y=q.on;return Y!=="hover"}),R=N.reduce(function(q,Y){return pv({},q,Y.style)},{});k(R)}y!==void 0&&y(o,event)},[y,o,w]),D=nG({direction:a,justify:s,symbolSize:T.symbolSize||p,symbolSpacing:m,width:l,height:i}),P=D.symbolX,E=D.symbolY,I=D.labelX,A=D.labelY,F=D.labelAnchor,j=D.labelAlignment,z=[v,h,y].some(function(N){return N!==void 0}),B;return Cm(f)?B=f:B=yBe[f],Je.createElement("g",{transform:"translate(".concat(n,",").concat(r,")"),style:{opacity:T.itemOpacity!==void 0?T.itemOpacity:d}},Je.createElement("rect",{width:l,height:i,fill:T.itemBackground||c,style:{cursor:z?"pointer":"auto"},onClick:C,onMouseEnter:M,onMouseLeave:O}),Je.createElement(B,{id:o.id,x:P,y:E,size:T.symbolSize||p,fill:o.fill||o.color,borderWidth:T.symbolBorderWidth!==void 0?T.symbolBorderWidth:g,borderColor:T.symbolBorderColor||b}),Je.createElement("text",{textAnchor:F,style:pv({},S.legends.text,{fill:T.itemTextColor||u,dominantBaseline:j,pointerEvents:"none",userSelect:"none"}),x:I,y:A},o.label))};Rs.displayName="LegendSvgItem";Rs.propTypes=pv({data:r2.isRequired,x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired,textColor:le.string,background:le.string,opacity:le.number,direction:le.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:le.bool.isRequired},t2,n2);Rs.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};function bBe(e){for(var t=1;tt}var RBe=EBe,LBe=lG,IBe=RBe,$Be=yc;function NBe(e){return e&&e.length?LBe(e,$Be,IBe):void 0}var FBe=NBe;const uG=lr(FBe);var jBe=Math.ceil,zBe=Math.max;function BBe(e,t,n,r){for(var l=-1,i=zBe(jBe((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++l]=e,e+=n;return o}var WBe=BBe,qBe=WBe,UBe=oP,ST=bV;function HBe(e){return function(t,n,r){return r&&typeof r!="number"&&UBe(t,n,r)&&(n=r=void 0),t=ST(t),n===void 0?(n=t,t=0):n=ST(n),r=r===void 0?t=aqe){var u=t?null:nqe(e);if(u)return rqe(u);o=!1,l=tqe,s=new QWe}else s=t?[]:a;e:for(;++r-1}function Uqe(e,t){var n=this.__data__,r=s2(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Ef.prototype.clear=zqe;Ef.prototype.delete=Bqe;Ef.prototype.get=Wqe;Ef.prototype.has=qqe;Ef.prototype.set=Uqe;function Sc(e){var t=-1,n=e?e.length:0;for(this.clear();++t11))throw new Error("Invalid size '".concat(t.size,"' for diverging color scheme '").concat(t.scheme,"', must be between 3~11"));var s=Lu(hv[t.scheme][t.size||11]),u=function(p){return s(r(p))};return u.scale=s,u}if(AUe(t.scheme)){if(t.size!==void 0&&(t.size<3||t.size>9))throw new Error("Invalid size '".concat(t.size,"' for sequential color scheme '").concat(t.scheme,"', must be between 3~9"));var c=Lu(hv[t.scheme][t.size||9]),d=function(p){return c(r(p))};return d.scale=c,d}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},OG=function(t,n){return ge.useMemo(function(){return PG(t,n)},[t,n])};function EUe(e,t){return IUe(e)||LUe(e,t)||RUe()}function RUe(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function LUe(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var n=[],r=!0,l=!1,i=void 0;try{for(var o=e[Symbol.iterator](),a;!(r=(a=o.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(s){l=!0,i=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(l)throw i}}return n}}function IUe(e){if(Array.isArray(e))return e}var mv=function(t,n){if(typeof t=="function")return function(f){return t(f)};if(kG(t)){if(t.theme!==void 0){if(n===void 0)throw new Error("Unable to use color from theme as no theme was provided");var r=qy(n,t.theme);if(r===void 0)throw new Error("Color from theme is undefined at path: '".concat(t.theme,"'"));return function(){return r}}if(t.from!==void 0){var l=function(p){return qy(p,t.from)};if(Array.isArray(t.modifiers)){var i=[],o=!0,a=!1,s=void 0;try{for(var u=function(){var p=d.value,m=EUe(p,2),g=m[0],b=m[1];if(g==="brighter")i.push(function(v){return v.brighter(b)});else if(g==="darker")i.push(function(v){return v.darker(b)});else if(g==="opacity")i.push(function(v){return v.opacity=b,v});else throw new Error("Invalid color modifier: '".concat(g,"', must be one of: 'brighter', 'darker', 'opacity'"))},c=t.modifiers[Symbol.iterator](),d;!(o=(d=c.next()).done);o=!0)u()}catch(f){a=!0,s=f}finally{try{!o&&c.return!=null&&c.return()}finally{if(a)throw s}}return i.length===0?l:function(f){return i.reduce(function(p,m){return m(p)},Qu(l(f))).toString()}}return l}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return t}},Uy=function(t,n){return ge.useMemo(function(){return mv(t,n)},[t,n])},O4=le.oneOfType([le.func,le.arrayOf(le.string),le.shape({scheme:le.oneOf(DUe).isRequired,size:le.number}),le.shape({datum:le.string.isRequired}),le.string]),$Ue=le.oneOfType([le.func,le.string]),PT=le.oneOfType([le.string,le.func,le.shape({theme:le.string.isRequired}),le.shape({from:le.string.isRequired,modifiers:le.arrayOf(le.array)})]),NUe=lU,FUe=gg;function jUe(e,t){return e&&NUe(e,t,FUe)}var zUe=jUe,BUe=wf;function WUe(e,t){return function(n,r){if(n==null)return n;if(!BUe(n))return e(n,r);for(var l=n.length,i=t?l:-1,o=Object(n);(t?i--:++il?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(l);++r1),i}),HGe(e,YGe(e),n),r&&(n=WGe(n,XGe|KGe|ZGe,VGe));for(var l=t.length;l--;)qGe(n,t[l]);return n}),JGe=QGe;const $G=lr(JGe);var eYe=le.shape({match:le.oneOfType([le.func,le.object]).isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number,noteTextOffset:le.number,note:le.oneOfType([le.node,le.func]).isRequired,offset:le.number}),Hy={noteWidth:120,noteTextOffset:8,animate:!0,motionStiffness:90,motionDamping:13};function tYe(e){for(var t=1;t180?(_-=d,T-=d):T+=d,{points:[[b,v],[m,g],[T,k]],text:[_,x],angle:h+90}},NG=function(t){var n=t.items,r=t.annotations,l=t.getPosition,i=t.getDimensions;return ge.useMemo(function(){return aYe({items:n,annotations:r,getPosition:l,getDimensions:i})},[n,r,l,i])},lYe=function(t){var n=t.type,r=t.containerWidth,l=t.containerHeight,i=t.x,o=t.y,a=t.size,s=t.width,u=t.height,c=t.noteX,d=t.noteY,f=t.noteWidth,p=t.noteTextOffset;return ge.useMemo(function(){return iYe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p})},[n,r,l,i,o,a,s,u,c,d,f,p])};function sYe(e){for(var t=1;t0&&Je.createElement("text",{x:n,y:r,style:sYe({},i.annotations.text,{strokeLinejoin:"round",strokeWidth:i.annotations.text.outlineWidth*2,stroke:i.annotations.text.outlineColor})},l),Je.createElement("text",{x:n,y:r,style:$G(i.annotations.text,["outlineWidth","outlineColor"])},l))});Nm.displayName="AnnotationNote";Nm.propTypes={datum:le.object.isRequired,x:le.number.isRequired,y:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};Nm.defaultProps={};function cYe(e){for(var t=1;t0&&Je.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:ZL({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Je.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.outline}))}):Je.createElement(Je.Fragment,null,l.annotations.outline.outlineWidth>0&&Je.createElement("circle",{cx:t,cy:n,r:r/2,style:ZL({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Je.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.outline}))});A4.displayName="CircleAnnotationOutline";A4.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};function QL(e){for(var t=1;t0&&Je.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:QL({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Je.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.symbol}))}):Je.createElement(Je.Fragment,null,l.annotations.outline.outlineWidth>0&&Je.createElement("circle",{cx:t,cy:n,r:r/2,style:QL({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Je.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.symbol}))});c2.displayName="DotAnnotationOutline";c2.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};c2.defaultProps={size:4};function JL(e){for(var t=1;t0&&Je.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:JL({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Je.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:i.annotations.outline}))}):Je.createElement(Je.Fragment,null,i.annotations.outline.outlineWidth>0&&Je.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:JL({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Je.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:i.annotations.outline}))});D4.displayName="RectAnnotationOutline";D4.propTypes={x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired};var bg=ge.memo(function(e){var t=e.datum,n=e.type,r=e.containerWidth,l=e.containerHeight,i=e.x,o=e.y,a=e.size,s=e.width,u=e.height,c=e.noteX,d=e.noteY,f=e.noteWidth,p=e.noteTextOffset,m=e.note,g=Bo(),b=g.animate,v=g.springConfig,h=lYe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p});return Je.createElement(Je.Fragment,null,Je.createElement(Fm,{points:h.points,isOutline:!0}),n==="circle"&&Je.createElement(A4,{x:i,y:o,size:a}),n==="dot"&&Je.createElement(c2,{x:i,y:o,size:a}),n==="rect"&&Je.createElement(D4,{x:i,y:o,width:s,height:u}),Je.createElement(Fm,{points:h.points}),!b&&Je.createElement(Nm,{x:h.text[0],y:h.text[1],note:m}),b&&Je.createElement(rs,{style:{x:zn(h.text[0],v),y:zn(h.text[1],v)}},function(y){return Je.createElement(Nm,{datum:t,x:y.x,y:y.y,note:m})}))});bg.displayName="Annotation";bg.propTypes={datum:le.object.isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,containerWidth:le.number.isRequired,containerHeight:le.number.isRequired,x:le.number.isRequired,y:le.number.isRequired,size:le.number,width:le.number,height:le.number,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number.isRequired,noteTextOffset:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};bg.defaultProps={noteWidth:Hy.noteWidth,noteTextOffset:Hy.noteTextOffset};var d2=function(t,n,r,l){return uP().rangeRound(r).domain(t.map(n)).padding(l)};function eI(e){return vYe(e)||gYe(e)||mYe()}function mYe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function gYe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function vYe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&(s=0)),Ju().rangeRound(i).domain([s,a])},yYe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=d2(n,r,[0,s],f),b=a?[0,u]:[u,0],v=FG(n,l,i,o,b),h=(g.bandwidth()-m*(l.length-1))/l.length,y=v(0),w=function(k){return k>0?v(k):y},_=function(k,S){return k>0?y-S:v(k)-y};a&&(w=function(k){return k<0?v(k):y},_=function(k,S){return k<0?y-S:v(k)-y});var x=[];return h>0&&l.forEach(function(T,k){cG(g.domain().length).forEach(function(S){var C=g(r(n[S]))+h*k+m*k,M=w(n[S][T]),O=_(n[S][T],M);if(h>0&&O>0){var D={id:T,value:n[S][T],index:S,indexValue:r(n[S]),data:n[S]};x.push({key:"".concat(T,".").concat(D.indexValue),data:D,x:C,y:M,width:h,height:O,color:c(D)})}})}),{xScale:g,yScale:v,bars:x}},bYe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=a?[s,0]:[0,s],b=FG(n,l,i,o,g),v=d2(n,r,[u,0],f),h=(v.bandwidth()-m*(l.length-1))/l.length,y=b(0),w=function(k){return k>0?y:b(k)},_=function(k,S){return k>0?b(k)-y:y-S};a&&(w=function(k){return k<0?y:b(k)},_=function(k,S){return k<0?b(k)-y:y-S});var x=[];return h>0&&l.forEach(function(T,k){cG(v.domain().length).forEach(function(S){var C=w(n[S][T]),M=v(r(n[S]))+h*k+m*k,O=_(n[S][T],C);if(O>0){var D={id:T,value:n[S][T],index:S,indexValue:r(n[S]),data:n[S]};x.push({key:"".concat(T,".").concat(D.indexValue),data:D,x:C,y:M,width:O,height:h,color:c(D)})}})}),{xScale:b,yScale:v,bars:x}},jG=function(t){return t.layout==="vertical"?yYe(t):bYe(t)},zG=function(t,n,r,l){var i=eWe(t,2),o=n;o==="auto"&&(o=sG(i));var a=r;return a==="auto"&&(a=uG(i)),Ju().rangeRound(l).domain([o,a])},xYe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=gH().keys(l).offset(IP)(n),b=d2(n,r,[0,s],f),v=a?[0,u]:[u,0],h=zG(g,i,o,v),y=[],w=b.bandwidth(),_=function(k){return h(k[1])},x=function(k,S){return h(k[0])-S};return a&&(_=function(k){return h(k[0])},x=function(k,S){return h(k[1])-S}),w>0&&g.forEach(function(T){b.domain().forEach(function(k,S){var C=T[S],M=b(r(C.data)),O=_(C),D=x(C,O);if(m>0&&(O+=m*.5,D-=m),D>0){var P={id:T.key,value:C.data[T.key],index:S,indexValue:k,data:C.data};y.push({key:"".concat(T.key,".").concat(k),data:P,x:M,y:O,width:w,height:D,color:c(P)})}})}),{xScale:b,yScale:h,bars:y}},wYe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=gH().keys(l).offset(IP)(n),b=a?[s,0]:[0,s],v=zG(g,i,o,b),h=d2(n,r,[u,0],f),y=[],w=h.bandwidth(),_=function(k){return v(k[0])},x=function(k,S){return v(k[1])-S};return a&&(_=function(k){return v(k[1])},x=function(k,S){return v(k[0])-S}),w>0&&g.forEach(function(T){h.domain().forEach(function(k,S){var C=T[S],M=h(r(C.data)),O={id:T.key,value:C.data[T.key],index:S,indexValue:k,data:C.data},D=_(C),P=x(C,D);m>0&&(D+=m*.5,P-=m),P>0&&y.push({key:"".concat(T.key,".").concat(k),data:O,x:D,y:M,width:P,height:w,color:c(O)})})}),{xScale:v,yScale:h,bars:y}},BG=function(t){return t.layout==="vertical"?xYe(t):wYe(t)},_Ye=function(t,n,r,l,i){var o=Im(t.map(function(a){return{id:a.data.id,label:a.data.id,color:a.color,fill:a.data.fill}}),function(a){var s=a.id;return s});return(n==="vertical"&&l==="stacked"&&r==="column"&&i!==!0||n==="horizontal"&&l==="stacked"&&i===!0)&&o.reverse(),o},TYe=function(t){return Im(t.map(function(n){return{id:n.data.indexValue,label:n.data.indexValue,color:n.color,fill:n.data.fill}}),function(n){var r=n.id;return r})},kYe=function(t){var n=t.from,r=t.bars,l=t.layout,i=t.direction,o=t.groupMode,a=t.reverse;return n==="indexes"?TYe(r):_Ye(r,l,i,o,a)};function bS(e){for(var t=1;t0&&ce0&&we0&&(this.ctx.lineWidth=S.grid.line.strokeWidth,this.ctx.strokeStyle=S.grid.line.stroke,P&&tf(this.ctx,{width:c,height:d,scale:j.xScale,axis:"x",values:E}),I&&tf(this.ctx,{width:c,height:d,scale:j.yScale,axis:"y",values:A})),this.ctx.strokeStyle="#dddddd";var z=Im(j.bars.map(function(N){return{id:N.data.id,label:N.data.id,color:N.color,fill:N.data.fill}}).reverse(),function(N){var R=N.id;return R}),B=Im(j.bars.map(function(N){return{id:N.data.indexValue,label:N.data.indexValue,color:N.color,fill:N.data.fill}}),function(N){var R=N.id;return R});D.forEach(function(N){var R;if(N.dataFrom==="keys"?R=z:N.dataFrom==="indexes"&&(R=B),R===void 0)return null;T4(l.ctx,nI({},N,{data:R,containerWidth:c,containerHeight:d,itemTextColor:"#999",symbolSize:16,theme:S}))}),a4(this.ctx,{xScale:j.xScale,yScale:j.yScale,width:c,height:d,top:_,right:x,bottom:T,left:k,theme:S}),j.bars.forEach(function(N){var R=N.x,q=N.y,Y=N.color,L=N.width,W=N.height;l.ctx.fillStyle=Y,M>0&&(l.ctx.strokeStyle=O(N),l.ctx.lineWidth=M),l.ctx.beginPath(),l.ctx.rect(R,q,L,W),l.ctx.fill(),M>0&&l.ctx.stroke()})}},{key:"render",value:function(){var r=this,l=this.props,i=l.outerWidth,o=l.outerHeight,a=l.pixelRatio,s=l.isInteractive,u=l.theme;return Je.createElement(Wx,{isInteractive:s,theme:u,animate:!1},function(c){var d=c.showTooltip,f=c.hideTooltip;return Je.createElement("canvas",{ref:function(m){r.surface=m},width:i*a,height:o*a,style:{width:i,height:o},onMouseEnter:r.handleMouseHover(d,f),onMouseMove:r.handleMouseHover(d,f),onMouseLeave:r.handleMouseLeave(f),onClick:r.handleClick})})}}]),t}(ge.Component);GG.propTypes=qG;var qYe=NP("BarCanvas")(UG(GG));function TS(){return TS=Object.assign||function(e){for(var t=1;tke.jsx(Ia,{sx:{maxWidth:200,height:50},children:ke.jsx(UYe,{data:e.data[e.xField].map((t,n)=>({id:t,x:e.data[e.yField][n]})),margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),VYe=HYe;var GYe=pG;function YYe(e){return e&&e.length?GYe(e):[]}var XYe=YYe;const oI=lr(XYe);var KYe=AG,ZYe=wf;function QYe(e,t){var n=-1,r=ZYe(e)?Array(e.length):[];return KYe(e,function(l,i,o){r[++n]=t(l,i,o)}),r}var JYe=QYe;function eXe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var tXe=eXe,iI=kf;function nXe(e,t){if(e!==t){var n=e!==void 0,r=e===null,l=e===e,i=iI(e),o=t!==void 0,a=t===null,s=t===t,u=iI(t);if(!a&&!u&&!i&&e>t||i&&o&&s&&!a&&!u||r&&o&&s||!n&&s||!l)return 1;if(!r&&!i&&!u&&e=a)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var iXe=oXe,OT=Zb,lXe=fg,sXe=k4,uXe=JYe,cXe=tXe,dXe=_f,fXe=iXe,pXe=yc,hXe=_o;function mXe(e,t,n){t.length?t=OT(t,function(i){return hXe(i)?function(o){return lXe(o,i.length===1?i[0]:i)}:i}):t=[pXe];var r=-1;t=OT(t,dXe(sXe));var l=uXe(e,function(i,o,a){var s=OT(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return cXe(l,function(i,o){return fXe(i,o,n)})}var gXe=mXe,vXe=VP,yXe=gXe,bXe=Kb,lI=oP,xXe=bXe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&lI(e,t[0],t[1])?t=[]:n>2&&lI(t[0],t[1],t[2])&&(t=[t[0]]),yXe(e,vXe(t,1),[])}),wXe=xXe;const _Xe=lr(wXe);var TXe=fs,kXe=oi,SXe="[object Date]";function CXe(e){return kXe(e)&&TXe(e)==SXe}var MXe=CXe,PXe=MXe,OXe=_f,sI=Xb,uI=sI&&sI.isDate,AXe=uI?OXe(uI):PXe,DXe=AXe;const EXe=lr(DXe);var RXe=function(t,n,r,l){var i=t.axis,o=t.min,a=o===void 0?0:o,s=t.max,u=s===void 0?"auto":s,c=t.stacked,d=c===void 0?!1:c,f=t.reverse,p=f===void 0?!1:f,m=n[i],g=i==="x"?r:l,b=a;a==="auto"&&(b=d===!0?m.minStacked:m.min);var v=u;u==="auto"&&(v=d===!0?m.maxStacked:m.max);var h=Ju().rangeRound(i==="x"?[0,g]:[g,0]);return p===!0?h.domain([v,b]):h.domain([b,v]),h.type="linear",h.stacked=d,h},LXe={type:le.oneOf(["linear"]).isRequired,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number]),stacked:le.bool,reverse:le.bool},IXe=function(t,n,r,l){var i=t.axis,o=t.base,a=o===void 0?10:o,s=t.min,u=s===void 0?"auto":s,c=t.max,d=c===void 0?"auto":c,f=n[i],p=i==="x"?r:l,m=f.all.some(function(w){return w===0}),g,b=!1;if(f.all.forEach(function(w){b!==!0&&(g===void 0?g=Math.sign(w):Math.sign(w)!==g&&(b=!0))}),m||b)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join(` +`));var v=u;u==="auto"&&(v=f.min);var h=d;d==="auto"&&(h=f.max);var y=NU().domain([v,h]).rangeRound(i==="x"?[0,p]:[p,0]).base(a).nice();return y.type="log",y},$Xe={type:le.oneOf(["log"]).isRequired,base:le.number,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number])},NXe=function(t,n,r,l){var i=t.axis,o=n[i],a=i==="x"?r:l,s=HAe().range([0,a]).domain(o.all);return s.type="point",s},FXe={type:le.oneOf(["point"]).isRequired},El;function gu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E4="millisecond",YG="second",XG="minute",KG="hour",ZG="day",QG="month",JG="year",jXe=[E4,YG,XG,KG,ZG,QG,JG],Uc=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],zXe=(El={},gu(El,E4,[]),gu(El,YG,Uc.slice(0,1)),gu(El,XG,Uc.slice(0,2)),gu(El,KG,Uc.slice(0,3)),gu(El,ZG,Uc.slice(0,4)),gu(El,QG,Uc.slice(0,5)),gu(El,JG,Uc.slice(0,6)),El),BXe=function(t){return function(n){return zXe[t].forEach(function(r){r(n)}),n}},eY=function(t){var n=t.format,r=n===void 0?"native":n,l=t.precision,i=l===void 0?"millisecond":l,o=t.useUTC,a=o===void 0?!0:o,s=BXe(i);if(r==="native")return function(c){return s(c)};var u=a?WH(r):BH(r);return function(c){return s(u(c))}},WXe=function(t,n,r,l){var i=t.axis,o=t.format,a=o===void 0?"native":o,s=t.precision,u=s===void 0?E4:s,c=t.min,d=c===void 0?"auto":c,f=t.max,p=f===void 0?"auto":f,m=t.useUTC,g=m===void 0?!0:m,b=n[i],v=i==="x"?r:l,h=eY({format:a,precision:u,useUTC:g}),y=d;d==="auto"?y=b.min:a!=="native"&&(y=h(d));var w=p;p==="auto"?w=b.max:a!=="native"&&(w=h(p));var _=g?e7e():JDe();return _.domain([y,w]).range([0,v]),_.type="time",_.useUTC=g,_},qXe={type:le.oneOf(["time"]).isRequired,format:le.string,precision:le.oneOf(jXe)};function Gy(e){return VXe(e)||HXe(e)||UXe()}function UXe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function HXe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function VXe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},i=l.getValue,o=i===void 0?function(p){return p.data[n]}:i,a=l.setValue,s=a===void 0?function(p,m){p.data[n]=m}:a;if(r.type==="linear")t.forEach(function(p){p.data.forEach(function(m){s(m,o(m)===null?null:parseFloat(o(m)))})});else if(r.type==="time"&&r.format!=="native"){var u=eY(r);t.forEach(function(p){p.data.forEach(function(m){s(m,o(m)===null?null:u(o(m)))})})}var c=[];t.forEach(function(p){p.data.forEach(function(m){c.push(o(m))})});var d,f;return r.type==="linear"?(c=oI(c),c=_Xe(c,function(p){return p}),d=Math.min.apply(Math,Gy(c)),f=Math.max.apply(Math,Gy(c))):r.type==="time"?(c=Im(c,function(p){return p.getTime()}),c=c.slice(0).sort(function(p,m){return m-p}).reverse(),d=c[0],f=$n(c)):(c=oI(c),d=c[0],f=$n(c)),{all:c,min:d,max:f}},nY=function(t,n,r,l){var i=YXe(t),o=[];r[i].all.forEach(function(a){var s=EXe(a)?KXe:XXe,u=[];l.forEach(function(c){var d=c.data.find(function(g){return s(g.data[i],a)}),f=null,p=null;if(d!==void 0){if(f=d.data[t],f!==null){var m=$n(u);m===void 0?p=f:m!==null&&(p=m+f)}d.data["".concat(t,"Stacked")]=p}u.push(p),o.push(p)})}),o=o.filter(function(a){return a!==null}),r[t].minStacked=Math.min.apply(Math,Gy(o)),r[t].maxStacked=Math.max.apply(Math,Gy(o))},QXe=function(t,n,r){return nY("x",t,n,r)},JXe=function(t,n,r){return nY("y",t,n,r)},Yy=le.oneOfType([le.shape(LXe),le.shape(FXe),le.shape(qXe),le.shape($Xe)]);const fI=Math.pow(2,-52),P0=new Uint32Array(512);class Xy{static from(t,n=aKe,r=oKe){const l=t.length,i=new Float64Array(l*2);for(let o=0;o>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:l,_hullHash:i}=this,o=t.length>>1;let a=1/0,s=1/0,u=-1/0,c=-1/0;for(let C=0;Cu&&(u=M),O>c&&(c=O),this._ids[C]=C}const d=(a+u)/2,f=(s+c)/2;let p=1/0,m,g,b;for(let C=0;C0&&(g=C,p=M)}let y=t[2*g],w=t[2*g+1],_=1/0;for(let C=0;CD&&(C[M++]=P,D=this._dists[P])}this.hull=C.subarray(0,M),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(O0(v,h,y,w,x,T)){const C=g,M=y,O=w;g=b,y=x,w=T,b=C,x=M,T=O}const k=rKe(v,h,y,w,x,T);this._cx=k.x,this._cy=k.y;for(let C=0;C0&&Math.abs(P-M)<=fI&&Math.abs(E-O)<=fI||(M=P,O=E,D===m||D===g||D===b))continue;let I=0;for(let B=0,N=this._hashKey(P,E);B0?3-n:1+n)/4}function AT(e,t,n,r){const l=e-n,i=t-r;return l*l+i*i}function DT(e,t,n,r,l,i){const o=(r-t)*(l-e),a=(n-e)*(i-t);return Math.abs(o-a)>=33306690738754716e-32*Math.abs(o+a)?o-a:0}function O0(e,t,n,r,l,i){return(DT(l,i,e,t,n,r)||DT(e,t,n,r,l,i)||DT(n,r,l,i,e,t))<0}function tKe(e,t,n,r,l,i,o,a){const s=e-o,u=t-a,c=n-o,d=r-a,f=l-o,p=i-a,m=s*s+u*u,g=c*c+d*d,b=f*f+p*p;return s*(d*b-g*p)-u*(c*b-g*f)+m*(c*p-d*f)<0}function nKe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=(u*c-a*d)*f,m=(o*d-s*c)*f;return p*p+m*m}function rKe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=e+(u*c-a*d)*f,m=t+(o*d-s*c)*f;return{x:p,y:m}}function dd(e,t,n,r){if(r-n<=20)for(let l=n+1;l<=r;l++){const i=e[l],o=t[i];let a=l-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=i}else{const l=n+r>>1;let i=n+1,o=r;th(e,l,i),t[e[n]]>t[e[r]]&&th(e,n,r),t[e[i]]>t[e[r]]&&th(e,i,r),t[e[n]]>t[e[i]]&&th(e,n,i);const a=e[i],s=t[a];for(;;){do i++;while(t[e[i]]s);if(o=o-n?(dd(e,t,i,r),dd(e,t,n,o-1)):(dd(e,t,n,o-1),dd(e,t,i,r))}}function th(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function aKe(e){return e[0]}function oKe(e){return e[1]}const pI=1e-6;class Nu{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const l=t+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${l},${i}`:(Math.abs(this._x1-l)>pI||Math.abs(this._y1-i)>pI)&&(this._+="L"+l+","+i),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=l},${this._y1=i}`)}rect(t,n,r,l){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+l}h${-r}Z`}value(){return this._||null}}class kS{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}let iKe=class{constructor(t,[n,r,l,i]=[0,0,960,500]){if(!((l=+l)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=l,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:l}=this,i=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let p=0,m=0,g=r.length,b,v;p1;)i-=2;for(let o=2;o4)for(let o=0;o0){if(n>=this.ymax)return null;(o=(this.ymax-n)/l)0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)this.xmax?2:0)|(nthis.ymax?8:0)}};const lKe=2*Math.PI,Hc=Math.pow;function sKe(e){return e[0]}function uKe(e){return e[1]}function cKe(e){const{triangles:t,coords:n}=e;for(let r=0;r1e-10)return!1}return!0}function dKe(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class f2{static from(t,n=sKe,r=uKe,l){return new f2("length"in t?fKe(t,n,r,l):Float64Array.from(pKe(t,n,r,l)))}constructor(t){this._delaunator=new Xy(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&cKe(t)){this.collinear=Int32Array.from({length:n.length/2},(f,p)=>p).sort((f,p)=>n[2*f]-n[2*p]||n[2*f+1]-n[2*p+1]);const s=this.collinear[0],u=this.collinear[this.collinear.length-1],c=[n[2*s],n[2*s+1],n[2*u],n[2*u+1]],d=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let f=0,p=n.length/2;f0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=l[0],this.triangles[1]=l[1],this.triangles[2]=l[1],o[l[0]]=1,l.length===2&&(o[l[1]]=0))}voronoi(t){return new iKe(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:l,halfedges:i,triangles:o,collinear:a}=this;if(a){const d=a.indexOf(t);d>0&&(yield a[d-1]),d=0&&i!==r&&i!==l;)r=i;return i}_step(t,n,r){const{inedges:l,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:u}=this;if(l[t]===-1||!u.length)return(t+1)%(u.length>>1);let c=t,d=Hc(n-u[t*2],2)+Hc(r-u[t*2+1],2);const f=l[t];let p=f;do{let m=s[p];const g=Hc(n-u[m*2],2)+Hc(r-u[m*2+1],2);if(g0&&(de.lineWidth=U.grid.line.strokeWidth,de.strokeStyle=U.grid.line.stroke,T&&tf(de,{width:q,height:Y,scale:re,axis:"x",values:k}),S&&tf(de,{width:q,height:Y,scale:ae,axis:"y",values:C})),_e==="axes"&&a4(de,{xScale:re,yScale:ae,width:q,height:Y,top:M,right:O,bottom:D,left:P,theme:U}),_e==="areas"&&g===!0&&(de.save(),de.globalAlpha=v,X.context(de),Q.forEach(function(pe){de.fillStyle=pe.color,de.beginPath(),X(pe.data.map(function(xe){return xe.position})),de.fill()}),de.restore()),_e==="lines"&&(G.context(de),Q.forEach(function(pe){de.strokeStyle=pe.color,de.lineWidth=m,de.beginPath(),G(pe.data.map(function(xe){return xe.position})),de.stroke()})),_e==="points"&&h===!0&&y>0&&ie.forEach(function(pe){de.fillStyle=pe.color,de.beginPath(),de.arc(pe.x,pe.y,y/2,0,2*Math.PI),de.fill(),_>0&&(de.strokeStyle=pe.borderColor,de.lineWidth=_,de.stroke())}),_e==="mesh"&&A===!0&&(aY(de,Se),ee&&oY(de,Se,ee.index)),_e==="legends"){var ue=Q.map(function(pe){return{id:pe.id,label:pe.id,color:pe.color}}).reverse();E.forEach(function(pe){T4(de,ZKe({},pe,{data:pe.data||ue,containerWidth:q,containerHeight:Y,theme:U}))})}})},[B,L,W,f,U,G,Q,re,ae,T,k,S,C,M,O,D,P,E,ie,h,y,ee]);var Oe=ge.useCallback(function(de){var _e=Lm(B.current,de),ue=yI(_e,2),pe=ue[0],xe=ue[1];if(!QP(R.left,R.top,q,Y,pe,xe))return null;var ye=he.find(pe-R.left,xe-R.top);return ie[ye]},[B,R,q,Y,he]),Pe=mf(),Me=Pe.showTooltipFromEvent,ce=Pe.hideTooltip,we=ge.useCallback(function(de){var _e=Oe(de);H(_e),_e?Me(Je.createElement(z,{point:_e}),de):ce()},[Oe,H,Me,ce,z]),K=ge.useCallback(function(de){ce(),H(null),ee&&F&&F(ee,de)},[ce,H,F]),ne=ge.useCallback(function(de){if(j){var _e=Oe(de);_e&&j(_e,de)}},[Oe,j]);return Je.createElement("canvas",{ref:B,width:L*i,height:W*i,style:{width:L,height:W,cursor:I?"auto":"normal"},onMouseEnter:I?we:void 0,onMouseMove:I?we:void 0,onMouseLeave:I?K:void 0,onClick:I?ne:void 0})};$4.propTypes=CKe;$4.defaultProps=MKe;var nZe=Gx($4);function MS(){return MS=Object.assign||function(e){for(var t=1;tke.jsx(Ia,{sx:{maxWidth:200,height:50},children:ke.jsx(rZe,{data:[{id:"1",data:e.data[e.xField].map((t,n)=>({x:t,y:e.data[e.yField][n]}))}],margin:{top:0,right:0,bottom:0,left:0},xScale:{type:"linear",min:0,max:25},axisTop:null,colors:[e.color],axisRight:null,enableGridX:!1,enableGridY:!1})}),oZe=aZe;function iZe(e){for(var t=1;tke.jsx(Ia,{sx:{maxWidth:200,height:50},children:ke.jsx(AZe,{data:[{id:"1",data:e.data[e.xField].map((t,n)=>({x:t,y:e.data[e.yField][n]}))}],margin:{top:3,right:3,bottom:3,left:3},xScale:{type:"linear",min:0,max:1e3},nodeSize:4,colors:[e.color],useMesh:!1,axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),$Ze=IZe,NZe=new Map([["line",(e,t)=>t[e.field]?ke.jsx(oZe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):ke.jsx("div",{})],["scatter",(e,t)=>t[e.field]?ke.jsx($Ze,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):ke.jsx("div",{})],["histogram",(e,t)=>t[e.field]?ke.jsx(VYe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):ke.jsx("div",{})]]),wI=e=>e.map(t=>({def:t,gen:NZe.get(t.type??"string")})).map(({def:t,gen:n})=>n?{...t,type:void 0,render:r=>n(t,r)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),FZe=e=>{const[t,n]=ge.useState({open:!1,anchorEl:void 0});return ke.jsxs(Ia,{sx:{width:50},onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),children:[ke.jsx(Vq,{}),ke.jsx(kM,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:ke.jsx(dr,{p:1,children:e.longText})})]})},jZe=e=>{const{columns:t,data:n}=e,r={search:!0,showTitle:!1,pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42},emptyRowsWhenPaging:!1};return ke.jsx(Je.Fragment,{children:ke.jsx(pSe,{columns:e.showInfoColumn??!1?[...wI(t),{title:"Info",render:l=>{var i,o,a;return ke.jsx(Je.Fragment,{children:(i=l.details)!=null&&i.insights?ke.jsx(FZe,{longText:`${(o=l.details)==null?void 0:o.insights[0].title}: ${(a=l.details)==null?void 0:a.insights[0].text}`}):ke.jsx("div",{})})},width:50}]:[...wI(t)],data:n,detailPanel:({rowData:l})=>l.graphId?ke.jsx(xSe,{graphId:l.graphId,widgetSize:e.widgetSize}):l.details?ke.jsx(j5,{details:l.details,widgetSize:e.widgetSize}):null,options:r})})},_I=e=>ke.jsxs("div",{children:[ke.jsx(dr,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),ke.jsx(dr,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),zZe=e=>ke.jsx(Je.Fragment,{children:e.counters.length===1?ke.jsx(_I,{...e.counters[0]}):ke.jsx(cr,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map(t=>ke.jsx(cr,{item:!0,xs:!0,component:Ia,height:"100%",children:ke.jsx(Ia,{children:ke.jsx(_I,{...t})})},t.label+t.value))})}),BZe=e=>ke.jsxs("div",{children:[ke.jsxs(Ia,{display:"flex",alignItems:"center",children:[ke.jsx(Ia,{width:"100%",mr:1,children:ke.jsx(fz,{variant:"determinate",value:e.value/e.maxValue*100})}),ke.jsx(Ia,{minWidth:35,children:ke.jsx(dr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),ke.jsx(Ia,{width:"100%",children:ke.jsx(dr,{variant:"body2",color:"textSecondary",children:e.details??""})})]});var j4={},WZe=Cn;Object.defineProperty(j4,"__esModule",{value:!0});var AY=j4.default=void 0,qZe=WZe(Ta()),UZe=ke,HZe=(0,qZe.default)((0,UZe.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"}),"ExpandLessSharp");AY=j4.default=HZe;var z4={},VZe=Cn;Object.defineProperty(z4,"__esModule",{value:!0});var DY=z4.default=void 0,GZe=VZe(Ta()),YZe=ke,XZe=(0,GZe.default)((0,YZe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"}),"ExpandMoreSharp");DY=z4.default=XZe;const KZe=e=>{var a,s;const[t,n]=ge.useState(!1),r=Wz(),l=(a=e.graph)==null?void 0:a.data.some(({type:u})=>u==="histogram"),o=(r==null?void 0:r.isXaxisAsCategorical)&&!l?{type:"category",categoryorder:"category ascending"}:{};return ke.jsx(Je.Fragment,{children:ke.jsxs(cr,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[ke.jsxs(cr,{item:!0,xs:2,children:[ke.jsx(dr,{variant:"h5",children:e.header}),ke.jsx(dr,{variant:"subtitle1",children:e.description})]}),ke.jsx(cr,{item:!0,xs:e.graph===void 0?10:5,children:ke.jsxs(PM,{children:[ke.jsx(AM,{children:ke.jsxs(pm,{children:[ke.jsx(gi,{}),e.metricsValuesHeaders.map(u=>ke.jsx(gi,{children:u}))]})}),ke.jsx(OM,{children:e.metrics.map(u=>ke.jsxs(pm,{children:[ke.jsx(gi,{children:u.label}),u.values.map(c=>ke.jsx(gi,{children:c}))]}))})]})}),e.graph===void 0?ke.jsx(ke.Fragment,{}):ke.jsx(cr,{item:!0,xs:5,children:ke.jsx(Bz,{data:e.graph.data,layout:{...e.graph.layout,title:void 0,xaxis:{...(s=e.graph.layout)==null?void 0:s.xaxis,...o}},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?ke.jsx(ke.Fragment,{}):ke.jsxs(ke.Fragment,{children:[ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(ji,{variant:"outlined",startIcon:t?ke.jsx(AY,{}):ke.jsx(DY,{}),onClick:()=>n(u=>!u),children:"Details"})}),ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(Z1,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:ke.jsx(j5,{details:e.details,widgetSize:e.widgetSize})})})]})]})})},ZZe=e=>ke.jsx(F5,{tabs:e.graphs.map(t=>({title:t.title,tab:ke.jsx(ub,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),QZe=e=>ke.jsx(F5,{tabs:e.tabs.map(t=>({title:t.title,tab:_g(`${e.id}1`,t.widget)}))}),JZe=e=>ke.jsx(rfe,{children:ke.jsxs(PM,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[ke.jsx(AM,{children:ke.jsxs(pm,{children:[ke.jsx(gi,{children:e.header[0]},-1),e.header.slice(1).map(t=>ke.jsx(gi,{align:"right",children:t},t))]})}),ke.jsx(OM,{children:e.data.map(t=>ke.jsxs(pm,{children:[ke.jsx(gi,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map(n=>ke.jsx(gi,{align:"right",children:n},n))]},t[0]))})]})});function eQe(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const tQe=/[ \t\n\f\r]/g;function nQe(e){return typeof e=="object"?e.type==="text"?TI(e.value):!1:TI(e)}function TI(e){return e.replace(tQe,"")===""}class xg{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}xg.prototype.property={};xg.prototype.normal={};xg.prototype.space=null;function EY(e,t){const n={},r={};let l=-1;for(;++l4&&n.slice(0,4)==="data"&&lQe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(SI,dQe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!SI.test(i)){let o=i.replace(sQe,cQe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}l=B4}return new l(r,t)}function cQe(e){return"-"+e.toLowerCase()}function dQe(e){return e.charAt(1).toUpperCase()}const fQe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},pQe=EY([IY,LY,FY,jY,oQe],"html"),zY=EY([IY,LY,FY,jY,iQe],"svg");function hQe(e){return e.join(" ").trim()}var W4={exports:{}},CI=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,mQe=/\n/g,gQe=/^\s*/,vQe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,yQe=/^:\s*/,bQe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,xQe=/^[;\s]*/,wQe=/^\s+|\s+$/g,_Qe=` +`,MI="/",PI="*",Mu="",TQe="comment",kQe="declaration",SQe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function l(m){var g=m.match(mQe);g&&(n+=g.length);var b=m.lastIndexOf(_Qe);r=~b?m.length-b:r+m.length}function i(){var m={line:n,column:r};return function(g){return g.position=new o(m),u(),g}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(m){var g=new Error(t.source+":"+n+":"+r+": "+m);if(g.reason=m,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function s(m){var g=m.exec(e);if(g){var b=g[0];return l(b),e=e.slice(b.length),g}}function u(){s(gQe)}function c(m){var g;for(m=m||[];g=d();)g!==!1&&m.push(g);return m}function d(){var m=i();if(!(MI!=e.charAt(0)||PI!=e.charAt(1))){for(var g=2;Mu!=e.charAt(g)&&(PI!=e.charAt(g)||MI!=e.charAt(g+1));)++g;if(g+=2,Mu===e.charAt(g-1))return a("End of comment missing");var b=e.slice(2,g-2);return r+=2,l(b),e=e.slice(g),r+=2,m({type:TQe,comment:b})}}function f(){var m=i(),g=s(vQe);if(g){if(d(),!s(yQe))return a("property missing ':'");var b=s(bQe),v=m({type:kQe,property:OI(g[0].replace(CI,Mu)),value:b?OI(b[0].replace(CI,Mu)):Mu});return s(xQe),v}}function p(){var m=[];c(m);for(var g;g=f();)g!==!1&&(m.push(g),c(m));return m}return u(),p()};function OI(e){return e?e.replace(wQe,Mu):Mu}var CQe=SQe;function BY(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,l=CQe(e),i=typeof t=="function",o,a,s=0,u=l.length;s0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function OQe(e){const t=q4(e),n=WY(e);if(t&&n)return{start:t,end:n}}function Fh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?AI(e.position):"start"in e||"end"in e?AI(e):"line"in e||"column"in e?LS(e):""}function LS(e){return DI(e&&e.line)+":"+DI(e&&e.column)}function AI(e){return LS(e&&e.start)+"-"+LS(e&&e.end)}function DI(e){return e&&typeof e=="number"?e:1}class To extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?l=t:!i.cause&&t&&(o=!0,l=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=a?a.line:void 0,this.name=Fh(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}To.prototype.file="";To.prototype.name="";To.prototype.reason="";To.prototype.message="";To.prototype.stack="";To.prototype.column=void 0;To.prototype.line=void 0;To.prototype.ancestors=void 0;To.prototype.cause=void 0;To.prototype.fatal=void 0;To.prototype.place=void 0;To.prototype.ruleId=void 0;To.prototype.source=void 0;const U4={}.hasOwnProperty,AQe=new Map,DQe=/[A-Z]/g,EQe=/-([a-z])/g,RQe=new Set(["table","tbody","thead","tfoot","tr"]),LQe=new Set(["td","th"]);function IQe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=NQe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=$Qe(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?zY:pQe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=UY(l,e,void 0);return i&&typeof i!="string"?i:l.create(e,l.Fragment,{children:i||void 0},void 0)}function UY(e,t,n){if(t.type==="element"||t.type==="root"){const r=e.schema;let l=r;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=zY,e.schema=l),e.ancestors.push(t);let i=FQe(e,t);const o=jQe(e,e.ancestors);let a=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(i&&RQe.has(t.tagName)&&(i=i.filter(function(s){return typeof s=="string"?!nQe(s):!0})),U4.call(e.components,t.tagName)){const s=t.tagName;a=e.components[s],typeof a!="string"&&a!==e.Fragment&&e.passNode&&(o.node=t)}else a=t.tagName;if(i.length>0){const s=i.length>1?i:i[0];s&&(o.children=s)}return e.schema=r,e.create(t,a,o,n)}if(t.type==="text")return t.value}function $Qe(e,t,n){return r;function r(l,i,o,a){const u=Array.isArray(o.children)?n:t;return a?u(i,o,a):u(i,o)}}function NQe(e,t){return n;function n(r,l,i,o){const a=Array.isArray(i.children),s=q4(r);return t(l,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function FQe(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:AQe;for(;++r-1&&e.test(String.fromCharCode(n))}}const ZQe={'"':"quot","&":"amp","<":"lt",">":"gt"};function QQe(e){return e.replace(/["&<>]/g,t);function t(n){return"&"+ZQe[n]+";"}}function JQe(e,t){const n=QQe(Mc(e||""));if(!t)return n;const r=n.indexOf(":"),l=n.indexOf("?"),i=n.indexOf("#"),o=n.indexOf("/");return r<0||o>-1&&r>o||l>-1&&r>l||i>-1&&r>i||t.test(n.slice(0,r))?n:""}function Mc(e){const t=[];let n=-1,r=0,l=0;for(;++n55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(o=String.fromCharCode(i,a),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}const eJe={};function tJe(e,t){const n=eJe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return VY(e,r,l)}function VY(e,t,n){if(nJe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return EI(e.children,t,n)}return Array.isArray(e)?EI(e,t,n):""}function EI(e,t,n){const r=[];let l=-1;for(;++ll?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(Sl(e,e.length,0,t),e):t}const LI={}.hasOwnProperty;function rJe(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}function Cd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function zr(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return wr(s)?(e.enter(n),a(s)):t(s)}function a(s){return wr(s)&&i++o))return;const T=t.events.length;let k=T,S,C;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(S){C=t.events[k][1].end;break}S=!0}for(v(r),x=T;xy;){const _=n[w];t.containerState=_[1],_[0].exit.call(t,e)}n.length=y}function h(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function cJe(e,t,n){return zr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $I(e){if(e===null||$o(e)||KQe(e))return 1;if(XQe(e))return 2}function V4(e,t,n){const r=[];let l=-1;for(;++l1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);NI(d,-s),NI(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},a.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=pi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=pi(u,[["enter",l,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=pi(u,V4(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=pi(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=pi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Sl(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&wr(x)?zr(e,h,"linePrefix",i+1)(x):h(x)}function h(x){return x===null||Vn(x)?e.check(FI,g,w)(x):(e.enter("codeFlowValue"),y(x))}function y(x){return x===null||Vn(x)?(e.exit("codeFlowValue"),h(x)):(e.consume(x),y)}function w(x){return e.exit("codeFenced"),t(x)}function _(x,T,k){let S=0;return C;function C(E){return x.enter("lineEnding"),x.consume(E),x.exit("lineEnding"),M}function M(E){return x.enter("codeFencedFence"),wr(E)?zr(x,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):O(E)}function O(E){return E===a?(x.enter("codeFencedFenceSequence"),D(E)):k(E)}function D(E){return E===a?(S++,x.consume(E),D):S>=o?(x.exit("codeFencedFenceSequence"),wr(E)?zr(x,P,"whitespace")(E):P(E)):k(E)}function P(E){return E===null||Vn(E)?(x.exit("codeFencedFence"),T(E)):k(E)}}}function _Je(e,t,n){const r=this;return l;function l(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const LT={name:"codeIndented",tokenize:kJe},TJe={tokenize:SJe,partial:!0};function kJe(e,t,n){const r=this;return l;function l(u){return e.enter("codeIndented"),zr(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):Vn(u)?e.attempt(TJe,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||Vn(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function SJe(e,t,n){const r=this;return l;function l(o){return r.parser.lazy[r.now().line]?n(o):Vn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):zr(e,i,"linePrefix",5)(o)}function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):Vn(o)?l(o):n(o)}}const CJe={name:"codeText",tokenize:OJe,resolve:MJe,previous:PJe};function MJe(e){let t=e.length-4,n=3,r,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function QY(e,t,n,r,l,i,o,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(v),e.exit(i),f):v===null||v===32||v===41||IS(v)?n(v):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(v))}function f(v){return v===62?(e.enter(i),e.consume(v),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(a),f(v)):v===null||v===60||Vn(v)?n(v):(e.consume(v),v===92?m:p)}function m(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function g(v){return!c&&(v===null||v===41||$o(v))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(v)):c999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(i),e.enter(l),e.consume(p),e.exit(l),e.exit(r),t):Vn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||Vn(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!wr(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),a++,d):d(p)}}function eX(e,t,n,r,l,i){let o;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(l),e.consume(f),e.exit(l),o=f===40?41:f,s):n(f)}function s(f){return f===o?(e.enter(l),e.consume(f),e.exit(l),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),s(o)):f===null?n(f):Vn(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),zr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||Vn(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(e.consume(f),c):c(f)}}function jh(e,t){let n;return r;function r(l){return Vn(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):wr(l)?zr(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const $Je={name:"definition",tokenize:FJe},NJe={tokenize:jJe,partial:!0};function FJe(e,t,n){const r=this;let l;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return JY.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return l=Cd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return $o(p)?jh(e,u)(p):u(p)}function u(p){return QY(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(NJe,d,d)(p)}function d(p){return wr(p)?zr(e,f,"whitespace")(p):f(p)}function f(p){return p===null||Vn(p)?(e.exit("definition"),r.parser.defined.push(l),t(p)):n(p)}}function jJe(e,t,n){return r;function r(a){return $o(a)?jh(e,l)(a):n(a)}function l(a){return eX(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return wr(a)?zr(e,o,"whitespace")(a):o(a)}function o(a){return a===null||Vn(a)?t(a):n(a)}}const zJe={name:"hardBreakEscape",tokenize:BJe};function BJe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return Vn(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const WJe={name:"headingAtx",tokenize:UJe,resolve:qJe};function qJe(e,t){let n=e.length-2,r=3,l,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Sl(e,r,n-r+1,[["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t]])),e}function UJe(e,t,n){let r=0;return l;function l(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||$o(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||Vn(c)?(e.exit("atxHeading"),t(c)):wr(c)?zr(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||$o(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const HJe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],zI=["pre","script","style","textarea"],VJe={name:"htmlFlow",tokenize:KJe,resolveTo:XJe,concrete:!0},GJe={tokenize:QJe,partial:!0},YJe={tokenize:ZJe,partial:!0};function XJe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function KJe(e,t,n){const r=this;let l,i,o,a,s;return u;function u(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),d}function d(R){return R===33?(e.consume(R),f):R===47?(e.consume(R),i=!0,g):R===63?(e.consume(R),l=3,r.interrupt?t:z):pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function f(R){return R===45?(e.consume(R),l=2,p):R===91?(e.consume(R),l=5,a=0,m):pl(R)?(e.consume(R),l=4,r.interrupt?t:z):n(R)}function p(R){return R===45?(e.consume(R),r.interrupt?t:z):n(R)}function m(R){const q="CDATA[";return R===q.charCodeAt(a++)?(e.consume(R),a===q.length?r.interrupt?t:O:m):n(R)}function g(R){return pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function b(R){if(R===null||R===47||R===62||$o(R)){const q=R===47,Y=o.toLowerCase();return!q&&!i&&zI.includes(Y)?(l=1,r.interrupt?t(R):O(R)):HJe.includes(o.toLowerCase())?(l=6,q?(e.consume(R),v):r.interrupt?t(R):O(R)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?h(R):y(R))}return R===45||Xo(R)?(e.consume(R),o+=String.fromCharCode(R),b):n(R)}function v(R){return R===62?(e.consume(R),r.interrupt?t:O):n(R)}function h(R){return wr(R)?(e.consume(R),h):C(R)}function y(R){return R===47?(e.consume(R),C):R===58||R===95||pl(R)?(e.consume(R),w):wr(R)?(e.consume(R),y):C(R)}function w(R){return R===45||R===46||R===58||R===95||Xo(R)?(e.consume(R),w):_(R)}function _(R){return R===61?(e.consume(R),x):wr(R)?(e.consume(R),_):y(R)}function x(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),s=R,T):wr(R)?(e.consume(R),x):k(R)}function T(R){return R===s?(e.consume(R),s=null,S):R===null||Vn(R)?n(R):(e.consume(R),T)}function k(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||$o(R)?_(R):(e.consume(R),k)}function S(R){return R===47||R===62||wr(R)?y(R):n(R)}function C(R){return R===62?(e.consume(R),M):n(R)}function M(R){return R===null||Vn(R)?O(R):wr(R)?(e.consume(R),M):n(R)}function O(R){return R===45&&l===2?(e.consume(R),I):R===60&&l===1?(e.consume(R),A):R===62&&l===4?(e.consume(R),B):R===63&&l===3?(e.consume(R),z):R===93&&l===5?(e.consume(R),j):Vn(R)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(GJe,N,D)(R)):R===null||Vn(R)?(e.exit("htmlFlowData"),D(R)):(e.consume(R),O)}function D(R){return e.check(YJe,P,N)(R)}function P(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),E}function E(R){return R===null||Vn(R)?D(R):(e.enter("htmlFlowData"),O(R))}function I(R){return R===45?(e.consume(R),z):O(R)}function A(R){return R===47?(e.consume(R),o="",F):O(R)}function F(R){if(R===62){const q=o.toLowerCase();return zI.includes(q)?(e.consume(R),B):O(R)}return pl(R)&&o.length<8?(e.consume(R),o+=String.fromCharCode(R),F):O(R)}function j(R){return R===93?(e.consume(R),z):O(R)}function z(R){return R===62?(e.consume(R),B):R===45&&l===2?(e.consume(R),z):O(R)}function B(R){return R===null||Vn(R)?(e.exit("htmlFlowData"),N(R)):(e.consume(R),B)}function N(R){return e.exit("htmlFlow"),t(R)}}function ZJe(e,t,n){const r=this;return l;function l(o){return Vn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function QJe(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(v2,t,n)}}const JJe={name:"htmlText",tokenize:eet};function eet(e,t,n){const r=this;let l,i,o;return a;function a(z){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(z),s}function s(z){return z===33?(e.consume(z),u):z===47?(e.consume(z),_):z===63?(e.consume(z),y):pl(z)?(e.consume(z),k):n(z)}function u(z){return z===45?(e.consume(z),c):z===91?(e.consume(z),i=0,m):pl(z)?(e.consume(z),h):n(z)}function c(z){return z===45?(e.consume(z),p):n(z)}function d(z){return z===null?n(z):z===45?(e.consume(z),f):Vn(z)?(o=d,A(z)):(e.consume(z),d)}function f(z){return z===45?(e.consume(z),p):d(z)}function p(z){return z===62?I(z):z===45?f(z):d(z)}function m(z){const B="CDATA[";return z===B.charCodeAt(i++)?(e.consume(z),i===B.length?g:m):n(z)}function g(z){return z===null?n(z):z===93?(e.consume(z),b):Vn(z)?(o=g,A(z)):(e.consume(z),g)}function b(z){return z===93?(e.consume(z),v):g(z)}function v(z){return z===62?I(z):z===93?(e.consume(z),v):g(z)}function h(z){return z===null||z===62?I(z):Vn(z)?(o=h,A(z)):(e.consume(z),h)}function y(z){return z===null?n(z):z===63?(e.consume(z),w):Vn(z)?(o=y,A(z)):(e.consume(z),y)}function w(z){return z===62?I(z):y(z)}function _(z){return pl(z)?(e.consume(z),x):n(z)}function x(z){return z===45||Xo(z)?(e.consume(z),x):T(z)}function T(z){return Vn(z)?(o=T,A(z)):wr(z)?(e.consume(z),T):I(z)}function k(z){return z===45||Xo(z)?(e.consume(z),k):z===47||z===62||$o(z)?S(z):n(z)}function S(z){return z===47?(e.consume(z),I):z===58||z===95||pl(z)?(e.consume(z),C):Vn(z)?(o=S,A(z)):wr(z)?(e.consume(z),S):I(z)}function C(z){return z===45||z===46||z===58||z===95||Xo(z)?(e.consume(z),C):M(z)}function M(z){return z===61?(e.consume(z),O):Vn(z)?(o=M,A(z)):wr(z)?(e.consume(z),M):S(z)}function O(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),l=z,D):Vn(z)?(o=O,A(z)):wr(z)?(e.consume(z),O):(e.consume(z),P)}function D(z){return z===l?(e.consume(z),l=void 0,E):z===null?n(z):Vn(z)?(o=D,A(z)):(e.consume(z),D)}function P(z){return z===null||z===34||z===39||z===60||z===61||z===96?n(z):z===47||z===62||$o(z)?S(z):(e.consume(z),P)}function E(z){return z===47||z===62||$o(z)?S(z):n(z)}function I(z){return z===62?(e.consume(z),e.exit("htmlTextData"),e.exit("htmlText"),t):n(z)}function A(z){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),F}function F(z){return wr(z)?zr(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):j(z)}function j(z){return e.enter("htmlTextData"),o(z)}}const G4={name:"labelEnd",tokenize:iet,resolveTo:oet,resolveAll:aet},tet={tokenize:set},net={tokenize:uet},ret={tokenize:cet};function aet(e){let t=-1;for(;++t=3&&(u===null||Vn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===l?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),wr(u)?zr(e,a,"whitespace")(u):a(u))}}const Co={name:"list",tokenize:bet,continuation:{tokenize:xet},exit:_et},vet={tokenize:Tet,partial:!0},yet={tokenize:wet,partial:!0};function bet(e,t,n){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,o=0;return a;function a(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:$S(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(xv,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return $S(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(v2,r.interrupt?n:c,e.attempt(vet,f,d))}function c(p){return r.containerState.initialBlankLine=!0,i++,f(p)}function d(p){return wr(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function xet(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(v2,l,i);function l(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,zr(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!wr(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(yet,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,zr(e,e.attempt(Co,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function wet(e,t,n){const r=this;return zr(e,l,"listItemIndent",r.containerState.size+1);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function _et(e){e.exit(this.containerState.type)}function Tet(e,t,n){const r=this;return zr(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(i){const o=r.events[r.events.length-1];return!wr(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const BI={name:"setextUnderline",tokenize:Cet,resolveTo:ket};function ket(e,t){let n=e.length,r,l,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[l][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[l][1].type="setextHeadingText",i?(e.splice(l,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function Cet(e,t,n){const r=this;let l;return i;function i(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),l=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===l?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),wr(u)?zr(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||Vn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Met={tokenize:Pet};function Pet(e){const t=this,n=e.attempt(v2,r,e.attempt(this.parser.constructs.flowInitial,l,zr(e,e.attempt(this.parser.constructs.flow,l,e.attempt(DJe,l)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Oet={resolveAll:nX()},Aet=tX("string"),Det=tX("text");function tX(e){return{tokenize:t,resolveAll:nX(e==="text"?Eet:void 0)};function t(n){const r=this,l=this.parser.constructs[e],i=n.attempt(l,o,a);return o;function o(c){return u(c)?i(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const d=l[c];let f=-1;if(d)for(;++f-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}i>0&&o.push(e[l].slice(0,i))}return o}function Iet(e,t){let n=-1;const r=[];let l;for(;++n0){const de=we.tokenStack[we.tokenStack.length-1];(de[1]||UI).call(we,void 0,de[0])}for(ce.position={start:Cs(Me.length>0?Me[0][1].start:{line:1,column:1,offset:0}),end:Cs(Me.length>0?Me[Me.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function btt(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xtt(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function sX(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=e.all(t),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const o=l[l.length-1];return o&&o.type==="text"?o.value+=r:l.push({type:"text",value:r}),l}function wtt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return sX(e,t);const l={src:Mc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)}function _tt(e,t){const n={src:Mc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ttt(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ktt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return sX(e,t);const l={href:Mc(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Stt(e,t){const n={href:Mc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ctt(e,t,n){const r=e.all(t),l=n?Mtt(n):uX(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a0){const de=we.tokenStack[we.tokenStack.length-1];(de[1]||qI).call(we,void 0,de[0])}for(ce.position={start:Cs(Me.length>0?Me[0][1].start:{line:1,column:1,offset:0}),end:Cs(Me.length>0?Me[Me.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function stt(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function utt(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function oX(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=e.all(t),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const o=l[l.length-1];return o&&o.type==="text"?o.value+=r:l.push({type:"text",value:r}),l}function ctt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oX(e,t);const l={src:Mc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)}function dtt(e,t){const n={src:Mc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function ftt(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ptt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oX(e,t);const l={href:Mc(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function htt(e,t){const n={href:Mc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mtt(e,t,n){const r=e.all(t),l=n?gtt(n):iX(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a1}function Ptt(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=H4(t.children[1]),s=HY(t.children[t.children.length-1]);a&&s&&(o.position={start:a,end:s}),l.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)}function Rtt(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const u=[];for(;++s0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(GI(t.slice(l),l>0,!1)),i.join("")}function GI(e,t,n){let r=0,l=e.length;if(t){let i=e.codePointAt(r);for(;i===HI||i===VI;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(l-1);for(;i===HI||i===VI;)l--,i=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function $tt(e,t){const n={type:"text",value:Itt(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Ntt(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ftt={blockquote:ptt,break:htt,code:mtt,delete:gtt,emphasis:vtt,footnoteReference:ytt,heading:btt,html:xtt,imageReference:wtt,image:_tt,inlineCode:Ttt,linkReference:ktt,link:Stt,listItem:Ctt,list:Ptt,paragraph:Ott,root:Att,strong:Dtt,table:Ett,tableCell:Ltt,tableRow:Rtt,text:$tt,thematicBreak:Ntt,toml:E0,yaml:E0,definition:E0,footnoteDefinition:E0};function E0(){}const cX=-1,y2=0,Ky=1,Zy=2,K4=3,Z4=4,Q4=5,J4=6,dX=7,fX=8,YI=typeof self=="object"?self:globalThis,jtt=(e,t)=>{const n=(l,i)=>(e.set(i,l),l),r=l=>{if(e.has(l))return e.get(l);const[i,o]=t[l];switch(i){case y2:case cX:return n(o,l);case Ky:{const a=n([],l);for(const s of o)a.push(r(s));return a}case Zy:{const a=n({},l);for(const[s,u]of o)a[r(s)]=r(u);return a}case K4:return n(new Date(o),l);case Z4:{const{source:a,flags:s}=o;return n(new RegExp(a,s),l)}case Q4:{const a=n(new Map,l);for(const[s,u]of o)a.set(r(s),r(u));return a}case J4:{const a=n(new Set,l);for(const s of o)a.add(r(s));return a}case dX:{const{name:a,message:s}=o;return n(new YI[a](s),l)}case fX:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l)}return n(new YI[i](o),l)};return r},XI=e=>jtt(new Map,e)(0),Vc="",{toString:ztt}={},{keys:Btt}=Object,rh=e=>{const t=typeof e;if(t!=="object"||!e)return[y2,t];const n=ztt.call(e).slice(8,-1);switch(n){case"Array":return[Ky,Vc];case"Object":return[Zy,Vc];case"Date":return[K4,Vc];case"RegExp":return[Z4,Vc];case"Map":return[Q4,Vc];case"Set":return[J4,Vc]}return n.includes("Array")?[Ky,n]:n.includes("Error")?[dX,n]:[Zy,n]},R0=([e,t])=>e===y2&&(t==="function"||t==="symbol"),Wtt=(e,t,n,r)=>{const l=(o,a)=>{const s=r.push(o)-1;return n.set(a,s),s},i=o=>{if(n.has(o))return n.get(o);let[a,s]=rh(o);switch(a){case y2:{let c=o;switch(s){case"bigint":a=fX,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return l([cX],o)}return l([a,c],o)}case Ky:{if(s)return l([s,[...o]],o);const c=[],d=l([a,c],o);for(const f of o)c.push(i(f));return d}case Zy:{if(s)switch(s){case"BigInt":return l([s,o.toString()],o);case"Boolean":case"Number":case"String":return l([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],d=l([a,c],o);for(const f of Btt(o))(e||!R0(rh(o[f])))&&c.push([i(f),i(o[f])]);return d}case K4:return l([a,o.toISOString()],o);case Z4:{const{source:c,flags:d}=o;return l([a,{source:c,flags:d}],o)}case Q4:{const c=[],d=l([a,c],o);for(const[f,p]of o)(e||!(R0(rh(f))||R0(rh(p))))&&c.push([i(f),i(p)]);return d}case J4:{const c=[],d=l([a,c],o);for(const f of o)(e||!R0(rh(f)))&&c.push(i(f));return d}}const{message:u}=o;return l([a,{name:s,message:u}],o)};return i},KI=(e,{json:t,lossy:n}={})=>{const r=[];return Wtt(!(t||n),!!t,new Map,r)(e),r},Qy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?XI(KI(e,t)):structuredClone(e):(e,t)=>XI(KI(e,t));function qtt(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Utt(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Htt(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||qtt,r=e.options.footnoteBackLabel||Utt,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s0&&m.push({type:"text",value:" "});let h=typeof n=="string"?n:n(s,p);typeof h=="string"&&(h={type:"text",value:h}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(h)?h:[h]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const h=b.children[b.children.length-1];h&&h.type==="text"?h.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...m)}else c.push(...m);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,v),a.push(v)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Qy(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:` +`});const u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)}function gtt(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function vtt(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=q4(t.children[1]),s=WY(t.children[t.children.length-1]);a&&s&&(o.position={start:a,end:s}),l.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)}function _tt(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const u=[];for(;++s0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(VI(t.slice(l),l>0,!1)),i.join("")}function VI(e,t,n){let r=0,l=e.length;if(t){let i=e.codePointAt(r);for(;i===UI||i===HI;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(l-1);for(;i===UI||i===HI;)l--,i=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function Stt(e,t){const n={type:"text",value:ktt(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Ctt(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Mtt={blockquote:ntt,break:rtt,code:att,delete:ott,emphasis:itt,footnoteReference:ltt,heading:stt,html:utt,imageReference:ctt,image:dtt,inlineCode:ftt,linkReference:ptt,link:htt,listItem:mtt,list:vtt,paragraph:ytt,root:btt,strong:xtt,table:wtt,tableCell:Ttt,tableRow:_tt,text:Stt,thematicBreak:Ctt,toml:A0,yaml:A0,definition:A0,footnoteDefinition:A0};function A0(){}const lX=-1,y2=0,Ky=1,Zy=2,Y4=3,X4=4,K4=5,Z4=6,sX=7,uX=8,GI=typeof self=="object"?self:globalThis,Ptt=(e,t)=>{const n=(l,i)=>(e.set(i,l),l),r=l=>{if(e.has(l))return e.get(l);const[i,o]=t[l];switch(i){case y2:case lX:return n(o,l);case Ky:{const a=n([],l);for(const s of o)a.push(r(s));return a}case Zy:{const a=n({},l);for(const[s,u]of o)a[r(s)]=r(u);return a}case Y4:return n(new Date(o),l);case X4:{const{source:a,flags:s}=o;return n(new RegExp(a,s),l)}case K4:{const a=n(new Map,l);for(const[s,u]of o)a.set(r(s),r(u));return a}case Z4:{const a=n(new Set,l);for(const s of o)a.add(r(s));return a}case sX:{const{name:a,message:s}=o;return n(new GI[a](s),l)}case uX:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l)}return n(new GI[i](o),l)};return r},YI=e=>Ptt(new Map,e)(0),Vc="",{toString:Ott}={},{keys:Att}=Object,rh=e=>{const t=typeof e;if(t!=="object"||!e)return[y2,t];const n=Ott.call(e).slice(8,-1);switch(n){case"Array":return[Ky,Vc];case"Object":return[Zy,Vc];case"Date":return[Y4,Vc];case"RegExp":return[X4,Vc];case"Map":return[K4,Vc];case"Set":return[Z4,Vc]}return n.includes("Array")?[Ky,n]:n.includes("Error")?[sX,n]:[Zy,n]},D0=([e,t])=>e===y2&&(t==="function"||t==="symbol"),Dtt=(e,t,n,r)=>{const l=(o,a)=>{const s=r.push(o)-1;return n.set(a,s),s},i=o=>{if(n.has(o))return n.get(o);let[a,s]=rh(o);switch(a){case y2:{let c=o;switch(s){case"bigint":a=uX,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return l([lX],o)}return l([a,c],o)}case Ky:{if(s)return l([s,[...o]],o);const c=[],d=l([a,c],o);for(const f of o)c.push(i(f));return d}case Zy:{if(s)switch(s){case"BigInt":return l([s,o.toString()],o);case"Boolean":case"Number":case"String":return l([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],d=l([a,c],o);for(const f of Att(o))(e||!D0(rh(o[f])))&&c.push([i(f),i(o[f])]);return d}case Y4:return l([a,o.toISOString()],o);case X4:{const{source:c,flags:d}=o;return l([a,{source:c,flags:d}],o)}case K4:{const c=[],d=l([a,c],o);for(const[f,p]of o)(e||!(D0(rh(f))||D0(rh(p))))&&c.push([i(f),i(p)]);return d}case Z4:{const c=[],d=l([a,c],o);for(const f of o)(e||!D0(rh(f)))&&c.push(i(f));return d}}const{message:u}=o;return l([a,{name:s,message:u}],o)};return i},XI=(e,{json:t,lossy:n}={})=>{const r=[];return Dtt(!(t||n),!!t,new Map,r)(e),r},Qy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?YI(XI(e,t)):structuredClone(e):(e,t)=>YI(XI(e,t));function Ett(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Rtt(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ltt(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ett,r=e.options.footnoteBackLabel||Rtt,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s0&&m.push({type:"text",value:" "});let h=typeof n=="string"?n:n(s,p);typeof h=="string"&&(h={type:"text",value:h}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(h)?h:[h]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const h=b.children[b.children.length-1];h&&h.type==="text"?h.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...m)}else c.push(...m);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,v),a.push(v)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Qy(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:` -`}]}}const pX=function(e){if(e==null)return Xtt;if(typeof e=="function")return b2(e);if(typeof e=="object")return Array.isArray(e)?Vtt(e):Gtt(e);if(typeof e=="string")return Ytt(e);throw new Error("Expected function, string, or object as test")};function Vtt(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let p=hX,m,g,b;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=ent(n(s,c)),p[0]===ZI))return p;if("children"in s&&s.children){const v=s;if(v.children&&p[0]!==Qtt)for(g=(r?v.children.length:-1)+o,b=c.concat(v);g>-1&&g":""))+")"})}return f;function f(){let p=dX,m,g,b;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=qtt(n(s,c)),p[0]===KI))return p;if("children"in s&&s.children){const v=s;if(v.children&&p[0]!==Btt)for(g=(r?v.children.length:-1)+o,b=c.concat(v);g>-1&&g0&&n.push({type:"text",value:` -`}),n}function QI(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function JI(e,t){const n=nnt(e,t),r=n.one(e,void 0),l=Htt(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&i.children.push({type:"text",value:` -`},l),i}function lnt(e,t){return e&&"run"in e?async function(n,r){const l=JI(n,t);await e.run(l,r)}:function(n){return JI(n,t||e)}}function e$(e){if(e)throw e}var wv=Object.prototype.hasOwnProperty,gX=Object.prototype.toString,t$=Object.defineProperty,n$=Object.getOwnPropertyDescriptor,r$=function(t){return typeof Array.isArray=="function"?Array.isArray(t):gX.call(t)==="[object Array]"},a$=function(t){if(!t||gX.call(t)!=="[object Object]")return!1;var n=wv.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&wv.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var l;for(l in t);return typeof l>"u"||wv.call(t,l)},o$=function(t,n){t$&&n.name==="__proto__"?t$(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},i$=function(t,n){if(n==="__proto__")if(wv.call(t,n)){if(n$)return n$(t,n).value}else return;return t[n]},snt=function e(){var t,n,r,l,i,o,a=arguments[0],s=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});so.length;let s;a&&o.push(l);try{s=e.apply(this,o)}catch(u){const c=u;if(a&&n)throw c;return l(c)}a||(s instanceof Promise?s.then(i,l):s instanceof Error?l(s):i(s))}function l(o,...a){n||(n=!0,t(o,...a))}function i(o){l(null,o)}}const al={basename:dnt,dirname:fnt,extname:pnt,join:hnt,sep:"/"};function dnt(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');wg(e);let n=0,r=-1,l=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else r<0&&(i=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else o<0&&(i=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(r=l):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function fnt(e){if(wg(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function pnt(e){wg(e);let t=e.length,n=-1,r=0,l=-1,i=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?l<0?l=t:i!==1&&(i=1):l>-1&&(i=-1)}return l<0||n<0||i===0||i===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function hnt(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function gnt(e,t){let n="",r=0,l=-1,i=0,o=-1,a,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),l=o,i=0;continue}}else if(n.length>0){n="",r=0,l=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,o):n=e.slice(l+1,o),r=o-l-1;l=o,i=0}else a===46&&i>-1?i++:i=-1}return n}function wg(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const vnt={cwd:ynt};function ynt(){return"/"}function BS(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function bnt(e){if(typeof e=="string")e=new URL(e);else if(!BS(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return xnt(e)}function xnt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...m]=c;const g=r[f][1];zS(g)&&zS(p)&&(p=$T(!0,g,p)),r[f]=[u,p,...m]}}}}const knt=new eO().freeze();function zT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function BT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function WT(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function s$(e){if(!zS(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function u$(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function L0(e){return Snt(e)?e:new vX(e)}function Snt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Cnt(e){return typeof e=="string"||Mnt(e)}function Mnt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const c$={}.hasOwnProperty,Pnt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",d$=[],f$={allowDangerousHtml:!0},Ont=/^(https?|ircs?|mailto|xmpp)$/i,Ant=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function yX(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",l=e.className,i=e.components,o=e.disallowedElements,a=e.rehypePlugins||d$,s=e.remarkPlugins||d$,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...f$}:f$,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Dnt,p=knt().use(ftt).use(s).use(lnt,u).use(a),m=new vX;typeof r=="string"&&(m.value=r);for(const h of Ant)Object.hasOwn(e,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+Pnt+h.id,void 0);const g=p.parse(m);let b=p.runSync(g,m);return l&&(b={type:"element",tagName:"div",properties:{className:l},children:b.type==="root"?b.children:[b]}),mX(b,v),VQe(b,{Fragment:ke.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ke.jsx,jsxs:ke.jsxs,passKeys:!0,passNode:!0});function v(h,y,w){if(h.type==="raw"&&w&&typeof y=="number")return c?w.children.splice(y,1):w.children[y]={type:"text",value:h.value},y;if(h.type==="element"){let _;for(_ in RT)if(c$.call(RT,_)&&c$.call(h.properties,_)){const x=h.properties[_],T=RT[_];(T===null||T.includes(h.tagName))&&(h.properties[_]=f(String(x||""),_,h))}}if(h.type==="element"){let _=t?!t.includes(h.tagName):o?o.includes(h.tagName):!1;if(!_&&n&&typeof y=="number"&&(_=!n(h,y,w)),_&&w&&typeof y=="number")return d&&h.children?w.children.splice(y,1,...h.children):w.children.splice(y,1),y}}}function Dnt(e){return cJe(e,Ont)}const Ent=e=>ke.jsx(ke.Fragment,{children:ke.jsx(yX,{children:e.text})}),p$=["unknown","success","warning","fail"],bX=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},xX=({title:e,description:t,state:n,details:r})=>{const[l,i]=ge.useState({active:!1}),o=r!=null&&r.parts.length>0;return p$.includes(n)||(console.error(`unexpected state: ${n} (expected one of [${p$.join(", ")}])`),n="unknown"),ke.jsx(ke.Fragment,{children:ke.jsxs(Ia,{children:[ke.jsxs(cM,{severity:bX(n),action:o?ke.jsx(ji,{onClick:()=>i(a=>({active:!a.active})),color:"inherit",size:"small",children:"Details"}):null,children:[ke.jsx(dM,{children:e}),ke.jsx(yX,{children:t})]}),o?ke.jsx(Z1,{in:l.active,mountOnEnter:!0,unmountOnExit:!0,children:ke.jsx(Ia,{style:{padding:"2px"},children:ke.jsx(F4,{details:r,widgetSize:2})})}):ke.jsx(ke.Fragment,{})]})})},Rnt=({type:e,availableTypes:t,onChange:n})=>ke.jsx(ke.Fragment,{children:ke.jsx(sb,{variant:"standard",value:e,onChange:r=>n(r.target.value),native:!0,children:t.map(r=>ke.jsx("option",{value:r.id,children:r.title},r.id))})}),Lnt=({groupInfo:e,tests:t})=>{const[n,r]=ge.useState({active:!1});return ke.jsx(ke.Fragment,{children:ke.jsxs(Ia,{mt:2,px:2,children:[ke.jsxs(cM,{severity:bX(e.severity??"unknown"),icon:!1,action:ke.jsx(ji,{onClick:()=>r(l=>({active:!l.active})),color:"inherit",size:"small",children:n.active?"Hide":"Show"}),children:[ke.jsx(dM,{children:e.title}),e.description]}),ke.jsx(Z1,{in:n.active,mountOnEnter:!0,unmountOnExit:!0,children:ke.jsx(cr,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map((l,i)=>ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(xX,{...l})},i))})})]})})},Int=({type:e,groupsInfo:t,tests:n})=>{function r(a){if(a==="status")return[t.find(c=>c.id===a).values,c=>c.state];const s=t.find(c=>c.id===a);if(s===void 0)throw"unexpected type";return[s.values.find(c=>c.id=="no group")!==void 0?s.values:[...s.values,{id:"no group",title:"No Group",sortIndex:-1,description:"No group of this type was provided"}],c=>c.groups[a]??"no group"]}const[l,i]=r(e),o=n.reduce((a,s)=>(a.set(i(s),[...a.get(i(s))??[],s]),a),new Map);return ke.jsx(ke.Fragment,{children:ke.jsx(cr,{container:!0,spacing:2,children:Array.from(o.entries()).map(([a,s])=>[l.find(u=>u.id===a)??{id:a,title:a},s]).sort((a,s)=>(a[0].sortIndex??0)-(s[0].sortIndex??0)).map(([a,s],u)=>ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(Lnt,{groupInfo:a,tests:s})},`test_${u}`))})})},$nt=[{id:"none",title:"All tests",values:[]},{id:"status",title:"By test status",values:[{id:"success",title:"Passed tests",sortIndex:3,description:"",severity:"success"},{id:"fail",title:"Failed tests",sortIndex:1,description:"",severity:"fail"},{id:"warning",title:"Failed non-critical tests",sortIndex:2,description:"",severity:"warning"},{id:"error",title:"Tests with execution errors",sortIndex:2,description:"",severity:"error"}]}],Nnt=({tests:e,testGroupTypes:t})=>{const[n,r]=Je.useState({group_type:"none"}),l=[];for(let o=0;oc===u)===-1&&l.push(u)}const i=[...$nt,...(t??[]).filter(o=>l.findIndex(a=>a===o.id)!==-1)];return ke.jsx(ke.Fragment,{children:ke.jsxs(cr,{container:!0,spacing:2,children:[ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(Rnt,{type:n.group_type,availableTypes:i,onChange:o=>r({group_type:o})})}),ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(cr,{container:!0,spacing:2,children:n.group_type==="none"?e.map((o,a)=>ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(xX,{...o})},`test_${a}`)):ke.jsx(Int,{type:n.group_type,groupsInfo:i,tests:e})})})]})})};function Fnt(e){return e===rv.Small?3:e===rv.Medium?6:(e===rv.Big,12)}function _g(e,t,n){let r=ke.jsx(Hz,{});if(t.type==="counter")r=ke.jsx(zpe,{...t.params});else if(t.type==="percent")r=ke.jsx(Bpe,{...t.params});else if(t.type==="big_graph")r=ke.jsx(ub,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")r=ke.jsx(Gpe,{...t.params,widgetSize:t.size});else if(t.type==="tabs")r=ke.jsx(VZe,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")r=ke.jsx(Ype,{...t.params});else if(t.type==="big_table")r=ke.jsx(HZe,{...t.params,widgetSize:t.size});else if(t.type==="group")r=ke.jsx(Uz,{children:t.widgets.map((l,i)=>_g(`wi_${i}`,l))});else if(t.type==="rich_data")r=ke.jsx(tQe,{...t.params,widgetSize:t.size});else if(t.type==="list"){const l=t;r=ke.jsx(cQe,{widgets:l.widgets,pageSize:l.pageSize,widgetSize:t.size})}else t.type==="text"?r=ke.jsx(Ent,{...t.params}):t.type==="test_suite"&&(r=ke.jsx(Nnt,{...t.params}));return ke.jsx(jpe,{size:Fnt(t.size),ItemWrapper:n,children:{...t,content:r}},e)}const jnt=({widgets:e,ItemWrapper:t})=>ke.jsx(ke.Fragment,{children:e.length>0&&e.map((n,r)=>ke.jsx(Je.Fragment,{children:_g(`wi_${r}`,n,t)},n.id))}),znt=({widgets:e,ItemWrapper:t})=>e.length===0?ke.jsx(dr,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):ke.jsx(ke.Fragment,{children:ke.jsx(cr,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:ke.jsx(jnt,{widgets:e,ItemWrapper:t})})});function Bnt({dashboard:{widgets:e},additionalGraphs:t}){return ke.jsx(DM.Provider,{value:Npe({getAdditionGraphData:n=>{const r=t.get(n);return r?Promise.resolve(r):Promise.reject("No graph found")},getAdditionWidgetData:n=>{const r=t.get(n);return r?Promise.resolve(r):Promise.reject("No graph found")}}),children:ke.jsx(znt,{widgets:e})})}function Wnt(e,t,n){UT.createRoot(document.getElementById(n)).render(ke.jsx(Je.StrictMode,{children:ke.jsx(bj,{theme:Ipe,children:ke.jsx(Bnt,{dashboard:e,additionalGraphs:t})})}))}window.drawDashboard=Wnt; +`}),n}function ZI(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function QI(e,t){const n=Htt(e,t),r=n.one(e,void 0),l=Ltt(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&i.children.push({type:"text",value:` +`},l),i}function Ktt(e,t){return e&&"run"in e?async function(n,r){const l=QI(n,t);await e.run(l,r)}:function(n){return QI(n,t||e)}}function JI(e){if(e)throw e}var wv=Object.prototype.hasOwnProperty,pX=Object.prototype.toString,e$=Object.defineProperty,t$=Object.getOwnPropertyDescriptor,n$=function(t){return typeof Array.isArray=="function"?Array.isArray(t):pX.call(t)==="[object Array]"},r$=function(t){if(!t||pX.call(t)!=="[object Object]")return!1;var n=wv.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&wv.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var l;for(l in t);return typeof l>"u"||wv.call(t,l)},a$=function(t,n){e$&&n.name==="__proto__"?e$(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},o$=function(t,n){if(n==="__proto__")if(wv.call(t,n)){if(t$)return t$(t,n).value}else return;return t[n]},Ztt=function e(){var t,n,r,l,i,o,a=arguments[0],s=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});so.length;let s;a&&o.push(l);try{s=e.apply(this,o)}catch(u){const c=u;if(a&&n)throw c;return l(c)}a||(s instanceof Promise?s.then(i,l):s instanceof Error?l(s):i(s))}function l(o,...a){n||(n=!0,t(o,...a))}function i(o){l(null,o)}}const al={basename:ent,dirname:tnt,extname:nnt,join:rnt,sep:"/"};function ent(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');wg(e);let n=0,r=-1,l=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else r<0&&(i=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else o<0&&(i=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(r=l):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function tnt(e){if(wg(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function nnt(e){wg(e);let t=e.length,n=-1,r=0,l=-1,i=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?l<0?l=t:i!==1&&(i=1):l>-1&&(i=-1)}return l<0||n<0||i===0||i===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function rnt(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ont(e,t){let n="",r=0,l=-1,i=0,o=-1,a,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),l=o,i=0;continue}}else if(n.length>0){n="",r=0,l=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,o):n=e.slice(l+1,o),r=o-l-1;l=o,i=0}else a===46&&i>-1?i++:i=-1}return n}function wg(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const int={cwd:lnt};function lnt(){return"/"}function zS(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function snt(e){if(typeof e=="string")e=new URL(e);else if(!zS(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return unt(e)}function unt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...m]=c;const g=r[f][1];jS(g)&&jS(p)&&(p=$T(!0,g,p)),r[f]=[u,p,...m]}}}}const pnt=new Q4().freeze();function zT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function BT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function WT(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function l$(e){if(!jS(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function s$(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function E0(e){return hnt(e)?e:new hX(e)}function hnt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mnt(e){return typeof e=="string"||gnt(e)}function gnt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const u$={}.hasOwnProperty,vnt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",c$=[],d$={allowDangerousHtml:!0},ynt=/^(https?|ircs?|mailto|xmpp)$/i,bnt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function mX(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",l=e.className,i=e.components,o=e.disallowedElements,a=e.rehypePlugins||c$,s=e.remarkPlugins||c$,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...d$}:d$,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||xnt,p=pnt().use(ttt).use(s).use(Ktt,u).use(a),m=new hX;typeof r=="string"&&(m.value=r);for(const h of bnt)Object.hasOwn(e,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+vnt+h.id,void 0);const g=p.parse(m);let b=p.runSync(g,m);return l&&(b={type:"element",tagName:"div",properties:{className:l},children:b.type==="root"?b.children:[b]}),fX(b,v),IQe(b,{Fragment:ke.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ke.jsx,jsxs:ke.jsxs,passKeys:!0,passNode:!0});function v(h,y,w){if(h.type==="raw"&&w&&typeof y=="number")return c?w.children.splice(y,1):w.children[y]={type:"text",value:h.value},y;if(h.type==="element"){let _;for(_ in RT)if(u$.call(RT,_)&&u$.call(h.properties,_)){const x=h.properties[_],T=RT[_];(T===null||T.includes(h.tagName))&&(h.properties[_]=f(String(x||""),_,h))}}if(h.type==="element"){let _=t?!t.includes(h.tagName):o?o.includes(h.tagName):!1;if(!_&&n&&typeof y=="number"&&(_=!n(h,y,w)),_&&w&&typeof y=="number")return d&&h.children?w.children.splice(y,1,...h.children):w.children.splice(y,1),y}}}function xnt(e){return JQe(e,ynt)}const f$=["unknown","success","warning","fail"],gX=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},vX=({title:e,description:t,state:n,details:r})=>{const[l,i]=ge.useState({active:!1}),o=r!=null&&r.parts.length>0;return f$.includes(n)||(console.error(`unexpected state: ${n} (expected one of [${f$.join(", ")}])`),n="unknown"),ke.jsx(ke.Fragment,{children:ke.jsxs(Ia,{children:[ke.jsxs(cM,{severity:gX(n),action:o?ke.jsx(ji,{onClick:()=>i(a=>({active:!a.active})),color:"inherit",size:"small",children:"Details"}):null,children:[ke.jsx(dM,{children:e}),ke.jsx(mX,{children:t})]}),o?ke.jsx(Z1,{in:l.active,mountOnEnter:!0,unmountOnExit:!0,children:ke.jsx(Ia,{style:{padding:"2px"},children:ke.jsx(j5,{details:r,widgetSize:2})})}):ke.jsx(ke.Fragment,{})]})})},wnt=({type:e,availableTypes:t,onChange:n})=>ke.jsx(ke.Fragment,{children:ke.jsx(sb,{variant:"standard",value:e,onChange:r=>n(r.target.value),native:!0,children:t.map(r=>ke.jsx("option",{value:r.id,children:r.title},r.id))})}),_nt=({groupInfo:e,tests:t})=>{const[n,r]=ge.useState({active:!1});return ke.jsx(ke.Fragment,{children:ke.jsxs(Ia,{mt:2,px:2,children:[ke.jsxs(cM,{severity:gX(e.severity??"unknown"),icon:!1,action:ke.jsx(ji,{onClick:()=>r(l=>({active:!l.active})),color:"inherit",size:"small",children:n.active?"Hide":"Show"}),children:[ke.jsx(dM,{children:e.title}),e.description]}),ke.jsx(Z1,{in:n.active,mountOnEnter:!0,unmountOnExit:!0,children:ke.jsx(cr,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map(l=>ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(vX,{...l})}))})})]})})},Tnt=({type:e,groupsInfo:t,tests:n})=>{function r(a){if(a==="status")return[t.find(c=>c.id===a).values,c=>c.state];const s=t.find(c=>c.id===a);if(s===void 0)throw"unexpected type";return[s.values.find(c=>c.id==="no group")!==void 0?s.values:[...s.values,{id:"no group",title:"No Group",sortIndex:-1,description:"No group of this type was provided"}],c=>c.groups[a]??"no group"]}const[l,i]=r(e),o=n.reduce((a,s)=>(a.set(i(s),[...a.get(i(s))??[],s]),a),new Map);return ke.jsx(ke.Fragment,{children:ke.jsx(cr,{container:!0,spacing:2,children:Array.from(o.entries()).map(([a,s])=>[l.find(u=>u.id===a)??{id:a,title:a},s]).sort((a,s)=>(a[0].sortIndex??0)-(s[0].sortIndex??0)).map(([a,s])=>ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(_nt,{groupInfo:a,tests:s})}))})})},knt=[{id:"none",title:"All tests",values:[]},{id:"status",title:"By test status",values:[{id:"success",title:"Passed tests",sortIndex:3,description:"",severity:"success"},{id:"fail",title:"Failed tests",sortIndex:1,description:"",severity:"fail"},{id:"warning",title:"Failed non-critical tests",sortIndex:2,description:"",severity:"warning"},{id:"error",title:"Tests with execution errors",sortIndex:2,description:"",severity:"error"}]}],Snt=({tests:e,testGroupTypes:t})=>{const[n,r]=Je.useState({group_type:"none"}),l=[];for(let o=0;oc===u)===-1&&l.push(u)}const i=[...knt,...(t??[]).filter(o=>l.findIndex(a=>a===o.id)!==-1)];return ke.jsx(ke.Fragment,{children:ke.jsxs(cr,{container:!0,spacing:2,children:[ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(wnt,{type:n.group_type,availableTypes:i,onChange:o=>r({group_type:o})})}),ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(cr,{container:!0,spacing:2,children:n.group_type==="none"?e.map(o=>ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(vX,{...o})},o.title+o.description)):ke.jsx(Tnt,{type:n.group_type,groupsInfo:i,tests:e})})})]})})},Cnt=e=>ke.jsx(ke.Fragment,{children:ke.jsx(mX,{children:e.text})});function R0(e){return e.palette.mode==="dark"?_l:wl}function L0(e){return e.palette.mode==="light"?wl:_l}const BS=e=>{const[t,n]=ge.useState({open:!1});return ke.jsxs(nu,{elevation:0,onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),sx:[{color:r=>L0(r)(r.palette.info.main,.6),backgroundColor:r=>R0(r)(r.palette.info.main,.9)},e.data.state==="success"&&{color:r=>L0(r)(r.palette.success.main,.6),backgroundColor:r=>R0(r)(r.palette.success.main,.9)},e.data.state==="warning"&&{color:r=>L0(r)(r.palette.warning.main,.6),backgroundColor:r=>R0(r)(r.palette.warning.main,.9)},e.data.state==="error"&&{color:r=>L0(r)(r.palette.error.main,.6),backgroundColor:r=>R0(r)(r.palette.error.main,.9)}],children:[ke.jsx(dr,{align:"center",variant:"h6",component:"div",children:e.data.value}),ke.jsx(dr,{align:"center",variant:"body1",component:"div",children:e.data.text}),ke.jsx(kM,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??ke.jsx(dr,{padding:1,children:e.data.longText})})]})},p$=e=>{const{alertStats:t}=e;return ke.jsx(BS,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:ke.jsx(dr,{sx:{pr:1},children:ke.jsxs("ul",{children:[ke.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),ke.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),ke.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function Mnt(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const Pnt=e=>{const{size:t,ItemWrapper:n}=e,r=e.children.alertsPosition??"row",{id:l,title:i,details:o,content:a,alerts:s,alertStats:u,insights:c}=e.children,d=s===void 0?!1:s.length>0,f=c===void 0?!1:c.length>0,p=ke.jsx(ale,{sx:{border:"1px solid",borderColor:"#d6d6d6",borderRadius:"4px"},elevation:0,children:ke.jsx(ule,{children:ke.jsxs(cr,{container:!0,spacing:1,direction:"column",children:[r==="row"?ke.jsxs(cr,{container:!0,spacing:1,item:!0,children:[ke.jsxs(cr,{item:!0,xs:d&&r==="row"?9:12,children:[i?ke.jsx(dr,{fontWeight:500,variant:"h5",children:i}):ke.jsx("div",{}),ke.jsx("div",{children:a}),o?ke.jsx(dr,{variant:"subtitle1",children:o}):ke.jsx("div",{})]}),d?ke.jsx(cr,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:s?ke.jsxs(Je.Fragment,{children:[u?ke.jsx(cr,{item:!0,children:ke.jsx(p$,{alertStats:u})}):ke.jsx("div",{}),s.map(m=>ke.jsx(cr,{item:!0,children:ke.jsx(BS,{data:m})}))]}):ke.jsx("div",{})}):ke.jsx("div",{})]}):ke.jsxs(Je.Fragment,{children:[ke.jsxs(cr,{item:!0,children:[i?ke.jsx(dr,{variant:"h5",children:i}):ke.jsx("div",{}),ke.jsx("div",{children:a}),o?ke.jsx(dr,{variant:"subtitle1",children:o}):ke.jsx("div",{})]}),d?ke.jsx(cr,{item:!0,xs:!0,children:ke.jsx(cr,{container:!0,direction:"row",spacing:1,children:s?ke.jsxs(Je.Fragment,{children:[u?ke.jsx(cr,{item:!0,xs:!0,children:ke.jsx(p$,{alertStats:u})}):ke.jsx("div",{}),s.map(m=>ke.jsx(cr,{item:!0,xs:!0,children:ke.jsx(BS,{data:m})}))]}):ke.jsx("div",{})})}):ke.jsx("div",{})]}),f?c==null?void 0:c.map(m=>ke.jsx(cr,{item:!0,xs:!0,sm:!0,md:!0,children:ke.jsx(Gq,{data:m})})):ke.jsx("div",{})]})})});return ke.jsx(cr,{item:!0,...Mnt(t),children:n?n({id:l,children:p}):p})};class yX extends Je.Component{render(){return ke.jsx(cr,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}var J4={},Ont=Cn;Object.defineProperty(J4,"__esModule",{value:!0});var bX=J4.default=void 0,Ant=Ont(Ta()),Dnt=ke,Ent=(0,Ant.default)((0,Dnt.jsx)("path",{d:"m14 7-5 5 5 5V7z"}),"ArrowLeft");bX=J4.default=Ent;var eO={},Rnt=Cn;Object.defineProperty(eO,"__esModule",{value:!0});var xX=eO.default=void 0,Lnt=Rnt(Ta()),Int=ke,$nt=(0,Lnt.default)((0,Int.jsx)("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");xX=eO.default=$nt;const Nnt=e=>{const[t,n]=Je.useState({page:0}),r=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return ke.jsxs(yX,{children:[r.map((l,i)=>_g(`wi_${i}`,l)),ke.jsxs(cr,{item:!0,xs:12,children:[ke.jsx(ji,{startIcon:ke.jsx(bX,{}),disabled:t.page===0,onClick:()=>n(l=>({page:l.page-1})),children:"Previous"}),ke.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),ke.jsx(ji,{endIcon:ke.jsx(xX,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>n(l=>({page:l.page+1})),children:"Next"})]})]})};function Fnt(e){return e===rv.Small?3:e===rv.Medium?6:(e===rv.Big,12)}function _g(e,t,n){let r=ke.jsx(Yq,{});if(t.type==="counter")r=ke.jsx(zZe,{...t.params});else if(t.type==="percent")r=ke.jsx(BZe,{...t.params});else if(t.type==="big_graph")r=ke.jsx(ub,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")r=ke.jsx(ZZe,{...t.params,widgetSize:t.size});else if(t.type==="tabs")r=ke.jsx(QZe,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")r=ke.jsx(JZe,{...t.params});else if(t.type==="big_table")r=ke.jsx(jZe,{...t.params,widgetSize:t.size});else if(t.type==="group")r=ke.jsx(yX,{children:t.widgets.map((l,i)=>_g(`wi_${i}`,l))});else if(t.type==="rich_data")r=ke.jsx(KZe,{...t.params,widgetSize:t.size});else if(t.type==="list"){const l=t;r=ke.jsx(Nnt,{widgets:l.widgets,pageSize:l.pageSize,widgetSize:t.size})}else t.type==="text"?r=ke.jsx(Cnt,{...t.params}):t.type==="test_suite"&&(r=ke.jsx(Snt,{...t.params}));return ke.jsx(Pnt,{size:Fnt(t.size),ItemWrapper:n,children:{...t,content:r}},e)}const jnt=({widgets:e,ItemWrapper:t})=>ke.jsx(ke.Fragment,{children:e.length>0&&e.map((n,r)=>ke.jsx(Je.Fragment,{children:_g(`wi_${r}`,n,t)},n.id))}),znt=({widgets:e,ItemWrapper:t})=>e.length===0?ke.jsx(dr,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):ke.jsx(ke.Fragment,{children:ke.jsx(cr,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:ke.jsx(jnt,{widgets:e,ItemWrapper:t})})});function Bnt({dashboard:{widgets:e},additionalGraphs:t}){return ke.jsx(DM.Provider,{value:Npe({getAdditionGraphData:n=>{const r=t.get(n);return r?Promise.resolve(r):Promise.reject("No graph found")},getAdditionWidgetData:n=>{const r=t.get(n);return r?Promise.resolve(r):Promise.reject("No graph found")}}),children:ke.jsx(znt,{widgets:e})})}function Wnt(e,t,n){const r=document.getElementById(n);r&&UT.createRoot(r).render(ke.jsx(Je.StrictMode,{children:ke.jsx(bj,{theme:Ipe,children:ke.jsx(Bnt,{dashboard:e,additionalGraphs:t})})}))}window.drawDashboard=Wnt; diff --git a/src/evidently/ui/assets/index.html b/src/evidently/ui/assets/index.html index c806a187ad..dfa261d2c0 100644 --- a/src/evidently/ui/assets/index.html +++ b/src/evidently/ui/assets/index.html @@ -11,8 +11,8 @@ content="Evidently - ML Monitoring Demo. Hosted example to monitor the performance of a demand forecasting model on a toy dataset." /> Evidently - ML Monitoring Demo - - + + diff --git a/src/evidently/ui/assets/static/js/ContentCopy-B2vBgiMr.js b/src/evidently/ui/assets/static/js/ContentCopy-CTB-bCQn.js similarity index 68% rename from src/evidently/ui/assets/static/js/ContentCopy-B2vBgiMr.js rename to src/evidently/ui/assets/static/js/ContentCopy-CTB-bCQn.js index b460b9229e..4b57dfe57b 100644 --- a/src/evidently/ui/assets/static/js/ContentCopy-B2vBgiMr.js +++ b/src/evidently/ui/assets/static/js/ContentCopy-CTB-bCQn.js @@ -1 +1 @@ -import{r as t,i as r}from"./createSvgIcon-LdZl81St.js";import{j as a}from"./vendor-t0l2jWQ9.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=o(t()),i=a,n=(0,v.default)((0,i.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");u=e.default=n;export{u as d}; +import{r as t,i as r}from"./createSvgIcon-63W_9W2b.js";import{j as a}from"./vendor-COAUpDWz.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=o(t()),i=a,n=(0,v.default)((0,i.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");u=e.default=n;export{u as d}; diff --git a/src/evidently/ui/assets/static/js/DashboardContent-C6JeNogA.js b/src/evidently/ui/assets/static/js/DashboardContent-DSoVlerH.js similarity index 61% rename from src/evidently/ui/assets/static/js/DashboardContent-C6JeNogA.js rename to src/evidently/ui/assets/static/js/DashboardContent-DSoVlerH.js index 8a205cde57..42815df86f 100644 --- a/src/evidently/ui/assets/static/js/DashboardContent-C6JeNogA.js +++ b/src/evidently/ui/assets/static/js/DashboardContent-DSoVlerH.js @@ -1,17 +1,17 @@ -var JD=Object.defineProperty;var QD=(e,t,r)=>t in e?JD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Lc=(e,t,r)=>(QD(e,typeof t!="symbol"?t+"":t,r),r);import{r as $e,j as je,a1 as Z5,T as Cr,ao as K5,ap as J5,aq as Q5,A as dy,a as hy,ar as e9,as as t9,G as Jn,R as et,B as Qr,Q as n9,at as ir,au as Or,_ as eS,$ as S0,av as r9,ag as tS,ah as nS,ai as Af,aj as Hi,al as rS,aw as qn,ax as a9,ay as i9,az as o9,aA as Ma,aB as l9,aC as s9,aD as u9,aE as c9,aF as f9,aG as d9,aH as h9,aI as p9,aJ as g9,aK as m9,aL as v9,aM as y9,aN as b9,aO as x9,aP as w9,aQ as xn,aR as _r,aS as Tr,aT as _n,aU as Gt,aV as Pf,aW as Vn,aX as Md,aY as yr,aZ as fr,a_ as _9,a$ as Sd,b0 as Cd,b1 as aS,b2 as iS,b3 as T9,b4 as xl,b5 as k9,a6 as Od,b6 as no,I as Fl,b7 as M9,b8 as oS,b9 as S9,ba as oe,W as di,bb as C9,ab as O9,bc as A9,bd as lg,ac as P9,be as D9,bf as E9,bg as B2,bh as R9,bi as py,bj as L9,bk as I9,bl as F9,bm as N9,bn as j9,bo as $9,bp as B9,bq as z9,br as q9,bs as W9,bt as z2,bu as U9,bv as gy,h as H9,bw as V9,bx as Y9,by as G9,bz as X9,bA as Z9,bB as K9,bC as J9,bD as Q9,bE as eE,bF as tE,s as my,q as nE}from"./vendor-t0l2jWQ9.js";import{u as lS}from"./DashboardViewParams-CHXlEHLP.js";import{i as vn,r as Xr}from"./createSvgIcon-LdZl81St.js";import{E as rE}from"./Edit-BJOpF2nO.js";var cf=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(cf||{});function Ic(e){return e.palette.mode==="dark"?J5:Q5}function Fc(e){return e.palette.mode==="light"?Q5:J5}const C0=e=>{const[t,r]=$e.useState({open:!1});return je.jsxs(Z5,{elevation:0,onClick:i=>r(c=>({open:!c.open,anchorEl:i.currentTarget})),sx:[{color:i=>Fc(i)(i.palette.info.main,.6),backgroundColor:i=>Ic(i)(i.palette.info.main,.9)},e.data.state==="success"&&{color:i=>Fc(i)(i.palette.success.main,.6),backgroundColor:i=>Ic(i)(i.palette.success.main,.9)},e.data.state==="warning"&&{color:i=>Fc(i)(i.palette.warning.main,.6),backgroundColor:i=>Ic(i)(i.palette.warning.main,.9)},e.data.state==="error"&&{color:i=>Fc(i)(i.palette.error.main,.6),backgroundColor:i=>Ic(i)(i.palette.error.main,.9)}],children:[je.jsx(Cr,{align:"center",variant:"h6",component:"div",children:e.data.value}),je.jsx(Cr,{align:"center",variant:"body1",component:"div",children:e.data.text}),je.jsx(K5,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??je.jsx(Cr,{padding:1,children:e.data.longText})})]})},sS=e=>je.jsxs(dy,{severity:e.data.severity,children:[je.jsx(hy,{children:e.data.title}),e.data.text]}),q2=e=>{const{alertStats:t}=e;return je.jsx(C0,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:je.jsx(Cr,{sx:{pr:1},children:je.jsxs("ul",{children:[je.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),je.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),je.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function aE(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const iE=e=>{const{size:t,ItemWrapper:r}=e,i=e.children.alertsPosition??"row",{id:c,title:o,details:a,content:n,alerts:l,alertStats:f,insights:s}=e.children,u=l===void 0?!1:l.length>0,d=s===void 0?!1:s.length>0,h=je.jsx(e9,{sx:{border:"1px solid",borderColor:"#d6d6d6",borderRadius:"4px"},elevation:0,children:je.jsx(t9,{children:je.jsxs(Jn,{container:!0,spacing:1,direction:"column",children:[i==="row"?je.jsxs(Jn,{container:!0,spacing:1,item:!0,children:[je.jsxs(Jn,{item:!0,xs:u&&i==="row"?9:12,children:[o?je.jsx(Cr,{fontWeight:500,variant:"h5",children:o}):je.jsx("div",{}),je.jsx("div",{children:n}),a?je.jsx(Cr,{variant:"subtitle1",children:a}):je.jsx("div",{})]}),u?je.jsx(Jn,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:l?je.jsxs(et.Fragment,{children:[f?je.jsx(Jn,{item:!0,children:je.jsx(q2,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,children:je.jsx(C0,{data:p})}))]}):je.jsx("div",{})}):je.jsx("div",{})]}):je.jsxs(et.Fragment,{children:[je.jsxs(Jn,{item:!0,children:[o?je.jsx(Cr,{variant:"h5",children:o}):je.jsx("div",{}),je.jsx("div",{children:n}),a?je.jsx(Cr,{variant:"subtitle1",children:a}):je.jsx("div",{})]}),u?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(Jn,{container:!0,direction:"row",spacing:1,children:l?je.jsxs(et.Fragment,{children:[f?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(q2,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(C0,{data:p})}))]}):je.jsx("div",{})})}):je.jsx("div",{})]}),d?s.map(p=>je.jsx(Jn,{item:!0,xs:!0,sm:!0,md:!0,children:je.jsx(sS,{data:p})})):je.jsx("div",{})]})})});return je.jsx(Jn,{item:!0,...aE(t),children:r?r({id:c,children:h}):h})},W2=e=>je.jsxs("div",{children:[je.jsx(Cr,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),je.jsx(Cr,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),oE=e=>je.jsx(et.Fragment,{children:e.counters.length===1?je.jsx(W2,{...e.counters[0]}):je.jsx(Jn,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map((t,r)=>je.jsx(Jn,{item:!0,xs:!0,component:Qr,height:"100%",children:je.jsx(Qr,{children:je.jsx(W2,{...t})})},r))})}),lE=e=>je.jsxs("div",{children:[je.jsxs(Qr,{display:"flex",alignItems:"center",children:[je.jsx(Qr,{width:"100%",mr:1,children:je.jsx(n9,{variant:"determinate",value:e.value/e.maxValue*100})}),je.jsx(Qr,{minWidth:35,children:je.jsx(Cr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),je.jsx(Qr,{width:"100%",children:je.jsx(Cr,{variant:"body2",color:"textSecondary",children:e.details??""})})]});var uS={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(r,i){e.exports=i()})(self,function(){return function(){var r={98847:function(o,a,n){var l=n(71828),f={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var s in f){var u=s.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");l.addStyleRule(u,f[s])}},98222:function(o,a,n){o.exports=n(82887)},27206:function(o,a,n){o.exports=n(60822)},5224:function(o,a,n){o.exports=n(83832)},59509:function(o,a,n){o.exports=n(72201)},49866:function(o,a,n){o.exports=n(99442)},19548:function(o,a,n){o.exports=n(8729)},61039:function(o,a,n){o.exports=n(14382)},24296:function(o,a,n){o.exports=n(43102)},58872:function(o,a,n){o.exports=n(92165)},65591:function(o,a,n){o.exports=n(36071)},69738:function(o,a,n){o.exports=n(43905)},92650:function(o,a,n){o.exports=n(35902)},73434:function(o,a,n){o.exports=n(94507)},760:function(o,a,n){var l=n(19548);l.register([n(27206),n(5224),n(58872),n(65591),n(69738),n(92650),n(49866),n(25743),n(6197),n(73434),n(54201),n(98222),n(61039),n(24296),n(66398),n(59509)]),o.exports=l},54201:function(o,a,n){o.exports=n(58810)},25743:function(o,a,n){o.exports=n(52979)},66398:function(o,a,n){o.exports=n(32275)},6197:function(o,a,n){o.exports=n(47462)},82884:function(o){o.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(o,a,n){var l=n(82884),f=n(41940),s=n(85555),u=n(44467).templatedArray;n(24695),o.exports=u("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",s.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",s.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:f({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(o,a,n){var l=n(71828),f=n(89298),s=n(92605).draw;function u(h){var p=h._fullLayout;l.filterVisible(p.annotations).forEach(function(m){var y=f.getFromId(h,m.xref),v=f.getFromId(h,m.yref),g=f.getRefType(m.xref),b=f.getRefType(m.yref);m._extremes={},g==="range"&&d(m,y),b==="range"&&d(m,v)})}function d(h,p){var m,y=p._id,v=y.charAt(0),g=h[v],b=h["a"+v],x=h[v+"ref"],_=h["a"+v+"ref"],w=h["_"+v+"padplus"],k=h["_"+v+"padminus"],T={x:1,y:-1}[v]*h[v+"shift"],M=3*h.arrowsize*h.arrowwidth||0,S=M+T,C=M-T,P=3*h.startarrowsize*h.arrowwidth||0,D=P+T,O=P-T;if(_===x){var R=f.findExtremes(p,[p.r2c(g)],{ppadplus:S,ppadminus:C}),F=f.findExtremes(p,[p.r2c(b)],{ppadplus:Math.max(w,D),ppadminus:Math.max(k,O)});m={min:[R.min[0],F.min[0]],max:[R.max[0],F.max[0]]}}else D=b?D+b:D,O=b?O-b:O,m=f.findExtremes(p,[p.r2c(g)],{ppadplus:Math.max(w,S,D),ppadminus:Math.max(k,C,O)});h._extremes[y]=m}o.exports=function(h){var p=h._fullLayout;if(l.filterVisible(p.annotations).length&&h._fullData.length)return l.syncOrAsync([s,u],h)}},44317:function(o,a,n){var l=n(71828),f=n(73972),s=n(44467).arrayEditor;function u(h,p){var m,y,v,g,b,x,_,w=h._fullLayout.annotations,k=[],T=[],M=[],S=(p||[]).length;for(m=0;m0||m.explicitOff.length>0},onClick:function(h,p){var m,y,v=u(h,p),g=v.on,b=v.off.concat(v.explicitOff),x={},_=h._fullLayout.annotations;if(g.length||b.length){for(m=0;m.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var we=!1,ke=["x","y"],Ae=0;Ae1)&&(Ye===qe?((Je=at.r2fraction(S["a"+Ue]))<0||Je>1)&&(we=!0):we=!0),Ee=at._offset+at.r2p(S[Ue]),Ie=.5}else{var ut=kt==="domain";Ue==="x"?(Re=S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.l+z.w*Re):(Re=1-S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.t+z.h*Re),Ie=S.showarrow?.5:Re}if(S.showarrow){it.head=Ee;var pt=S["a"+Ue];if(Be=ct*be(.5,S.xanchor)-bt*be(.5,S.yanchor),Ye===qe){var It=h.getRefType(Ye);It==="domain"?(Ue==="y"&&(pt=1-pt),it.tail=at._offset+at._length*pt):It==="paper"?Ue==="y"?(pt=1-pt,it.tail=z.t+z.h*pt):it.tail=z.l+z.w*pt:it.tail=at._offset+at.r2p(pt),De=Be}else it.tail=Ee+pt,De=Be+pt;it.text=it.tail+Be;var Mt=A[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=u.constrain(it.head,1,Mt-1)),Ye==="pixel"){var zt=-Math.max(it.tail-3,it.text),wt=Math.min(it.tail+3,it.text)-Mt;zt>0?(it.tail+=zt,it.text+=zt):wt>0&&(it.tail-=wt,it.text-=wt)}it.tail+=Qe,it.head+=Qe}else De=Be=ze*be(Ie,Ne),it.text=Ee+Be;it.text+=Qe,Be+=Qe,De+=Qe,S["_"+Ue+"padplus"]=ze/2+De,S["_"+Ue+"padminus"]=ze/2-De,S["_"+Ue+"size"]=ze,S["_"+Ue+"shift"]=Be}if(we)ee.remove();else{var ve=0,_e=0;if(S.align!=="left"&&(ve=(de-J)*(S.align==="center"?.5:1)),S.valign!=="top"&&(_e=(xe-ne)*(S.valign==="middle"?.5:1)),ce)Me.select("svg").attr({x:Y+ve-1,y:Y+_e}).call(m.setClipUrl,X?W:null,M);else{var Ve=Y+_e-ye.top,We=Y+ve-ye.left;se.call(v.positionText,We,Ve).call(m.setClipUrl,X?W:null,M)}re.select("rect").call(m.setRect,Y,Y,de,xe),Z.call(m.setRect,U/2,U/2,ue-U,ge-U),ee.call(m.setTranslate,Math.round(G.x.text-ue/2),Math.round(G.y.text-ge/2)),H.attr({transform:"rotate("+L+","+G.x.text+","+G.y.text+")"});var Ze,Ge=function(Ke,nt){q.selectAll(".annotation-arrow-g").remove();var st=G.x.head,mt=G.y.head,tt=G.x.tail+Ke,Ft=G.y.tail+nt,Vt=G.x.text+Ke,St=G.y.text+nt,Nt=u.rotationXYMatrix(L,Vt,St),Dt=u.apply2DTransform(Nt),gt=u.apply2DTransform2(Nt),ht=+Z.attr("width"),yt=+Z.attr("height"),qt=Vt-.5*ht,Et=qt+ht,jt=St-.5*yt,Tt=jt+yt,Ot=[[qt,jt,qt,Tt],[qt,Tt,Et,Tt],[Et,Tt,Et,jt],[Et,jt,qt,jt]].map(gt);if(!Ot.reduce(function(an,sn){return an^!!u.segmentsIntersect(st,mt,st+1e6,mt+1e6,sn[0],sn[1],sn[2],sn[3])},!1)){Ot.forEach(function(an){var sn=u.segmentsIntersect(tt,Ft,st,mt,an[0],an[1],an[2],an[3]);sn&&(tt=sn.x,Ft=sn.y)});var At=S.arrowwidth,Lt=S.arrowcolor,Rt=S.arrowside,$t=q.append("g").style({opacity:p.opacity(Lt)}).classed("annotation-arrow-g",!0),Yt=$t.append("path").attr("d","M"+tt+","+Ft+"L"+st+","+mt).style("stroke-width",At+"px").call(p.stroke,p.rgb(Lt));if(_(Yt,Rt,S),B.annotationPosition&&Yt.node().parentNode&&!P){var Xt=st,Bt=mt;if(S.standoff){var Wt=Math.sqrt(Math.pow(st-tt,2)+Math.pow(mt-Ft,2));Xt+=S.standoff*(tt-st)/Wt,Bt+=S.standoff*(Ft-mt)/Wt}var tn,cn,ln=$t.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(tt-Xt)+","+(Ft-Bt),transform:d(Xt,Bt)}).style("stroke-width",At+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)");b.init({element:ln.node(),gd:M,prepFn:function(){var an=m.getTranslate(ee);tn=an.x,cn=an.y,D&&D.autorange&&j(D._name+".autorange",!0),O&&O.autorange&&j(O._name+".autorange",!0)},moveFn:function(an,sn){var Zt=Dt(tn,cn),pn=Zt[0]+an,nn=Zt[1]+sn;ee.call(m.setTranslate,pn,nn),N("x",k(D,an,"x",z,S)),N("y",k(O,sn,"y",z,S)),S.axref===S.xref&&N("ax",k(D,an,"ax",z,S)),S.ayref===S.yref&&N("ay",k(O,sn,"ay",z,S)),$t.attr("transform",d(an,sn)),H.attr({transform:"rotate("+L+","+pn+","+nn+")"})},doneFn:function(){f.call("_guiRelayout",M,E());var an=document.querySelector(".js-notes-box-panel");an&&an.redraw(an.selectedObj)}})}}};S.showarrow&&Ge(0,0),V&&b.init({element:ee.node(),gd:M,prepFn:function(){Ze=H.attr("transform")},moveFn:function(Ke,nt){var st="pointer";if(S.showarrow)S.axref===S.xref?N("ax",k(D,Ke,"ax",z,S)):N("ax",S.ax+Ke),S.ayref===S.yref?N("ay",k(O,nt,"ay",z.w,S)):N("ay",S.ay+nt),Ge(Ke,nt);else{if(P)return;var mt,tt;if(D)mt=k(D,Ke,"x",z,S);else{var Ft=S._xsize/z.w,Vt=S.x+(S._xshift-S.xshift)/z.w-Ft/2;mt=b.align(Vt+Ke/z.w,Ft,0,1,S.xanchor)}if(O)tt=k(O,nt,"y",z,S);else{var St=S._ysize/z.h,Nt=S.y-(S._yshift+S.yshift)/z.h-St/2;tt=b.align(Nt-nt/z.h,St,0,1,S.yanchor)}N("x",mt),N("y",tt),D&&O||(st=b.getCursor(D?.5:mt,O?.5:tt,S.xanchor,S.yanchor))}H.attr({transform:d(Ke,nt)+Ze}),g(ee,st)},clickFn:function(Ke,nt){S.captureevents&&M.emit("plotly_clickannotation",pe(nt))},doneFn:function(){g(ee),f.call("_guiRelayout",M,E());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}}o.exports={draw:function(M){var S=M._fullLayout;S._infolayer.selectAll(".annotation").remove();for(var C=0;C=0,P=y.indexOf("end")>=0,D=k.backoff*M+v.standoff,O=T.backoff*S+v.startstandoff;if(w.nodeName==="line"){g={x:+m.attr("x1"),y:+m.attr("y1")},b={x:+m.attr("x2"),y:+m.attr("y2")};var R=g.x-b.x,F=g.y-b.y;if(_=(x=Math.atan2(F,R))+Math.PI,D&&O&&D+O>Math.sqrt(R*R+F*F))return void q();if(D){if(D*D>R*R+F*F)return void q();var A=D*Math.cos(x),z=D*Math.sin(x);b.x+=A,b.y+=z,m.attr({x2:b.x,y2:b.y})}if(O){if(O*O>R*R+F*F)return void q();var B=O*Math.cos(x),$=O*Math.sin(x);g.x-=B,g.y-=$,m.attr({x1:g.x,y1:g.y})}}else if(w.nodeName==="path"){var j=w.getTotalLength(),N="";if(j1){v=!0;break}}v?u.fullLayout._infolayer.select(".annotation-"+u.id+'[data-index="'+m+'"]').remove():(y._pdata=f(u.glplot.cameraParams,[d.xaxis.r2l(y.x)*h[0],d.yaxis.r2l(y.y)*h[1],d.zaxis.r2l(y.z)*h[2]]),l(u.graphDiv,y,m,u.id,y._xa,y._ya))}}},2468:function(o,a,n){var l=n(73972),f=n(71828);o.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(26997)}}},layoutAttributes:n(26997),handleDefaults:n(20226),includeBasePlot:function(s,u){var d=l.subplotsRegistry.gl3d;if(d)for(var h=d.attrRegex,p=Object.keys(s),m=0;m=0)))return y;if(_===3)b[_]>1&&(b[_]=1);else if(b[_]>=1)return y}var w=Math.round(255*b[0])+", "+Math.round(255*b[1])+", "+Math.round(255*b[2]);return x?"rgba("+w+", "+b[3]+")":"rgb("+w+")"}u.tinyRGB=function(y){var v=y.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},u.rgb=function(y){return u.tinyRGB(l(y))},u.opacity=function(y){return y?l(y).getAlpha():0},u.addOpacity=function(y,v){var g=l(y).toRgb();return"rgba("+Math.round(g.r)+", "+Math.round(g.g)+", "+Math.round(g.b)+", "+v+")"},u.combine=function(y,v){var g=l(y).toRgb();if(g.a===1)return l(y).toRgbString();var b=l(v||p).toRgb(),x=b.a===1?b:{r:255*(1-b.a)+b.r*b.a,g:255*(1-b.a)+b.g*b.a,b:255*(1-b.a)+b.b*b.a},_={r:x.r*(1-g.a)+g.r*g.a,g:x.g*(1-g.a)+g.g*g.a,b:x.b*(1-g.a)+g.b*g.a};return l(_).toRgbString()},u.contrast=function(y,v,g){var b=l(y);return b.getAlpha()!==1&&(b=l(u.combine(y,p))),(b.isDark()?v?b.lighten(v):p:g?b.darken(g):h).toString()},u.stroke=function(y,v){var g=l(v);y.style({stroke:u.tinyRGB(g),"stroke-opacity":g.getAlpha()})},u.fill=function(y,v){var g=l(v);y.style({fill:u.tinyRGB(g),"fill-opacity":g.getAlpha()})},u.clean=function(y){if(y&&typeof y=="object"){var v,g,b,x,_=Object.keys(y);for(v=0;v<_.length;v++)if(x=y[b=_[v]],b.substr(b.length-5)==="color")if(Array.isArray(x))for(g=0;g0?wt>=Ze:wt<=Ze));ve++)wt>Ke&&wt0?wt>=Ze:wt<=Ze));ve++)wt>zt[0]&&wt1){var bt=Math.pow(10,Math.floor(Math.log(ct)/Math.LN10));at*=bt*p.roundUp(ct/bt,[2,5,10]),(Math.abs(J.start)/J.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=at}qe.domain=E?[Be+Y/se.h,Be+we-Y/se.h]:[Be+Q/se.w,Be+we-Q/se.w],qe.setScale(),$.attr("transform",m(Math.round(se.l),Math.round(se.t)));var ze,Ne=$.select("."+O.cbtitleunshift).attr("transform",m(-Math.round(se.l),-Math.round(se.t))),Qe=qe.ticklabelposition,it=qe.title.font.size,kt=$.select("."+O.cbaxis),Je=0,ut=0;function pt(It,Mt){var zt={propContainer:qe,propName:j._propPrefix+"title",traceIndex:j._traceIndex,_meta:j._meta,placeholder:le._dfltTitle.colorbar,containerGroup:$.select("."+O.cbtitle)},wt=It.charAt(0)==="h"?It.substr(1):"h"+It;$.selectAll("."+wt+",."+wt+"-math-group").remove(),x.draw(N,It,y(zt,Mt||{}))}return p.syncOrAsync([s.previousPromises,function(){var It,Mt;(E&&Ye||!E&&!Ye)&&(Oe==="top"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be-we)+3+.75*it),Oe==="bottom"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be)-3-.25*it),Oe==="right"&&(Mt=Y+se.t+Ae*X+3+.75*it,It=Q+se.l+ke*Be),pt(qe._id+"title",{attributes:{x:It,y:Mt,"text-anchor":E?"start":"middle"}}))},function(){if(!E&&!Ye||E&&Ye){var It,Mt=$.select("."+O.cbtitle),zt=Mt.select("text"),wt=[-H/2,H/2],ve=Mt.select(".h"+qe._id+"title-math-group").node(),_e=15.6;if(zt.node()&&(_e=parseInt(zt.node().style.fontSize,10)*C),ve?(It=g.bBox(ve),ut=It.width,(Je=It.height)>_e&&(wt[1]-=(Je-_e)/2)):zt.node()&&!zt.classed(O.jsPlaceholder)&&(It=g.bBox(zt.node()),ut=It.width,Je=It.height),E){if(Je){if(Je+=5,Oe==="top")qe.domain[1]-=Je/se.h,wt[1]*=-1;else{qe.domain[0]+=Je/se.h;var Ve=_.lineCount(zt);wt[1]+=(1-Ve)*_e}Mt.attr("transform",m(wt[0],wt[1])),qe.setScale()}}else ut&&(Oe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Mt.attr("transform",m(wt[0],wt[1])),qe.setScale())}$.selectAll("."+O.cbfills+",."+O.cblines).attr("transform",E?m(0,Math.round(se.h*(1-qe.domain[1]))):m(Math.round(se.w*qe.domain[0]),0)),kt.attr("transform",E?m(0,Math.round(-se.t)):m(Math.round(-se.l),0));var We=$.select("."+O.cbfills).selectAll("rect."+O.cbfill).attr("style","").data(de);We.enter().append("rect").classed(O.cbfill,!0).attr("style",""),We.exit().remove();var Ze=Me.map(qe.c2p).map(Math.round).sort(function(mt,tt){return mt-tt});We.each(function(mt,tt){var Ft=[tt===0?Me[0]:(de[tt]+de[tt-1])/2,tt===de.length-1?Me[1]:(de[tt]+de[tt+1])/2].map(qe.c2p).map(Math.round);E&&(Ft[1]=p.constrain(Ft[1]+(Ft[1]>Ft[0])?1:-1,Ze[0],Ze[1]));var Vt=l.select(this).attr(E?"x":"y",Ee).attr(E?"y":"x",l.min(Ft)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(l.max(Ft)-l.min(Ft),2));if(j._fillgradient)g.gradient(Vt,N,j._id,E?"vertical":"horizontalreversed",j._fillgradient,"fill");else{var St=ye(mt).replace("e-","");Vt.attr("fill",f(St).toHexString())}});var Ge=$.select("."+O.cblines).selectAll("path."+O.cbline).data(Te.color&&Te.width?xe:[]);Ge.enter().append("path").classed(O.cbline,!0),Ge.exit().remove(),Ge.each(function(mt){var tt=Ee,Ft=Math.round(qe.c2p(mt))+Te.width/2%1;l.select(this).attr("d","M"+(E?tt+","+Ft:Ft+","+tt)+(E?"h":"v")+ue).call(g.lineGroupStyle,Te.width,ce(mt),Te.dash)}),kt.selectAll("g."+qe._id+"tick,path").remove();var Ke=Ee+ue+(H||0)/2-(j.ticks==="outside"?1:0),nt=d.calcTicks(qe),st=d.getTickSigns(qe)[2];return d.drawTicks(N,qe,{vals:qe.ticks==="inside"?d.clipEnds(qe,nt):nt,layer:kt,path:d.makeTickPath(qe,Ke,st),transFn:d.makeTransTickFn(qe)}),d.drawLabels(N,qe,{vals:nt,layer:kt,transFn:d.makeTransTickLabelFn(qe),labelFns:d.makeLabelFns(qe,Ke)})},function(){if(E&&!Ye||!E&&Ye){var It,Mt,zt=qe.position||0,wt=qe._offset+qe._length/2;if(Oe==="right")Mt=wt,It=se.l+ke*zt+10+it*(qe.showticklabels?1:.5);else if(It=wt,Oe==="bottom"&&(Mt=se.t+Ae*zt+10+(Qe.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&j.ticklen||0)),Oe==="top"){var ve=Se.text.split("
").length;Mt=se.t+Ae*zt+10-ue-C*it*ve}pt((E?"h":"v")+qe._id+"title",{avoid:{selection:l.select(N).selectAll("g."+qe._id+"tick"),side:Oe,offsetTop:E?0:se.t,offsetLeft:E?se.l:0,maxShift:E?le.width:le.height},attributes:{x:It,y:Mt,"text-anchor":"middle"},transform:{rotate:E?-90:0,offset:0}})}},s.previousPromises,function(){var It,Mt=ue+H/2;Qe.indexOf("inside")===-1&&(It=g.bBox(kt.node()),Mt+=E?It.width:It.height),ze=Ne.select("text");var zt=0,wt=E&&Oe==="top",ve=!E&&Oe==="right",_e=0;if(ze.node()&&!ze.classed(O.jsPlaceholder)){var Ve,We=Ne.select(".h"+qe._id+"title-math-group").node();We&&(E&&Ye||!E&&!Ye)?(zt=(It=g.bBox(We)).width,Ve=It.height):(zt=(It=g.bBox(Ne.node())).right-se.l-(E?Ee:Ue),Ve=It.bottom-se.t-(E?Ue:Ee),E||Oe!=="top"||(Mt+=It.height,_e=It.height)),ve&&(ze.attr("transform",m(zt/2+it/2,0)),zt*=2),Mt=Math.max(Mt,E?zt:Ve)}var Ze=2*(E?Q:Y)+Mt+V+H/2,Ge=0;!E&&Se.text&&U==="bottom"&&X<=0&&(Ze+=Ge=Ze/2,_e+=Ge),le._hColorbarMoveTitle=Ge,le._hColorbarMoveCBTitle=_e;var Ke=V+H,nt=(E?Ee:Ue)-Ke/2-(E?Q:0),st=(E?Ue:Ee)-(E?be:Y+_e-Ge);$.select("."+O.cbbg).attr("x",nt).attr("y",st).attr(E?"width":"height",Math.max(Ze-Ge,2)).attr(E?"height":"width",Math.max(be+Ke,2)).call(b.fill,te).call(b.stroke,j.bordercolor).style("stroke-width",V);var mt=ve?Math.max(zt-10,0):0;$.selectAll("."+O.cboutline).attr("x",(E?Ee:Ue+Q)+mt).attr("y",(E?Ue+Y-be:Ee)+(wt?Je:0)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(be-(E?2*Y+Je:2*Q+mt),2)).call(b.stroke,j.outlinecolor).style({fill:"none","stroke-width":H});var tt=E?De*Ze:0,Ft=E?0:(1-Re)*Ze-_e;if(tt=ie?se.l-tt:-tt,Ft=re?se.t-Ft:-Ft,$.attr("transform",m(tt,Ft)),!E&&(V||f(te).getAlpha()&&!f.equals(le.paper_bgcolor,te))){var Vt=kt.selectAll("text"),St=Vt[0].length,Nt=$.select("."+O.cbbg).node(),Dt=g.bBox(Nt),gt=g.getTranslate($);Vt.each(function(Rt,$t){var Yt=St-1;if($t===0||$t===Yt){var Xt,Bt=g.bBox(this),Wt=g.getTranslate(this);if($t===Yt){var tn=Bt.right+Wt.x;(Xt=Dt.right+gt.x+Ue-V-2+Z-tn)>0&&(Xt=0)}else if($t===0){var cn=Bt.left+Wt.x;(Xt=Dt.left+gt.x+Ue+V+2-cn)<0&&(Xt=0)}Xt&&(St<3?this.setAttribute("transform","translate("+Xt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ht={},yt=P[ee],qt=D[ee],Et=P[U],jt=D[U],Tt=Ze-ue;E?(G==="pixels"?(ht.y=X,ht.t=be*Et,ht.b=be*jt):(ht.t=ht.b=0,ht.yt=X+W*Et,ht.yb=X-W*jt),q==="pixels"?(ht.x=Z,ht.l=Ze*yt,ht.r=Ze*qt):(ht.l=Tt*yt,ht.r=Tt*qt,ht.xl=Z-L*yt,ht.xr=Z+L*qt)):(G==="pixels"?(ht.x=Z,ht.l=be*yt,ht.r=be*qt):(ht.l=ht.r=0,ht.xl=Z+W*yt,ht.xr=Z-W*qt),q==="pixels"?(ht.y=1-X,ht.t=Ze*Et,ht.b=Ze*jt):(ht.t=Tt*Et,ht.b=Tt*jt,ht.yt=X-L*Et,ht.yb=X+L*jt));var Ot=j.y<.5?"b":"t",At=j.x<.5?"l":"r";N._fullLayout._reservedMargin[j._id]={};var Lt={r:le.width-nt-tt,l:nt+ht.r,b:le.height-st-Ft,t:st+ht.b};ie&&re?s.autoMargin(N,j._id,ht):ie?N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]:re||E?N._fullLayout._reservedMargin[j._id][At]=Lt[At]:N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]}],N)}(z,A,R);B&&B.then&&(R._promises||[]).push(B),R._context.edits.colorbarPosition&&function($,j,N){var E,W,G,L=j.orientation==="v",q=N._fullLayout._size;h.init({element:$.node(),gd:N,prepFn:function(){E=$.attr("transform"),v($)},moveFn:function(H,V){$.attr("transform",E+m(H,V)),W=h.align((L?j._uFrac:j._vFrac)+H/q.w,L?j._thickFrac:j._lenFrac,0,1,j.xanchor),G=h.align((L?j._vFrac:1-j._uFrac)-V/q.h,L?j._lenFrac:j._thickFrac,0,1,j.yanchor);var te=h.getCursor(W,G,j.xanchor,j.yanchor);v($,te)},doneFn:function(){if(v($),W!==void 0&&G!==void 0){var H={};H[j._propPrefix+"x"]=W,H[j._propPrefix+"y"]=G,j._traceIndex!==void 0?u.call("_guiRestyle",N,H,j._traceIndex):u.call("_guiRelayout",N,H)}}})}(z,A,R)}),F.exit().each(function(A){s.autoMargin(R,A._id)}).remove(),F.order()}}},76228:function(o,a,n){var l=n(71828);o.exports=function(f){return l.isPlainObject(f.colorbar)}},12311:function(o,a,n){o.exports={moduleType:"component",name:"colorbar",attributes:n(63583),supplyDefaults:n(62499),draw:n(98981).draw,hasColorbar:n(76228)}},50693:function(o,a,n){var l=n(63583),f=n(30587).counter,s=n(78607),u=n(63282).scales;function d(h){return"`"+h+"`"}s(u),o.exports=function(h,p){h=h||"";var m,y=(p=p||{}).cLetter||"c",v=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:h==="marker.line"),g="showScaleDflt"in p?p.showScaleDflt:y==="z",b=typeof p.colorscaleDflt=="string"?u[p.colorscaleDflt]:null,x=p.editTypeOverride||"",_=h?h+".":"";"colorAttr"in p?(m=p.colorAttr,p.colorAttr):d(_+(m={z:"z",c:"color"}[y]));var w=y+"auto",k=y+"min",T=y+"max",M=y+"mid",S={};S[k]=S[T]=void 0;var C={};C[w]=!1;var P={};return m==="color"&&(P.color={valType:"color",arrayOk:!0,editType:x||"style"},p.anim&&(P.color.anim=!0)),P[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:S},P[k]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[T]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:S},P.colorscale={valType:"colorscale",editType:"calc",dflt:b,impliedEdits:{autocolorscale:!1}},P.autocolorscale={valType:"boolean",dflt:p.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},P.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(P.showscale={valType:"boolean",dflt:g,editType:"calc"},P.colorbar=l),p.noColorAxis||(P.coloraxis={valType:"subplotid",regex:f("coloraxis"),dflt:null,editType:"calc"}),P}},78803:function(o,a,n){var l=n(92770),f=n(71828),s=n(52075).extractOpts;o.exports=function(u,d,h){var p,m=u._fullLayout,y=h.vals,v=h.containerStr,g=v?f.nestedProperty(d,v).get():d,b=s(g),x=b.auto!==!1,_=b.min,w=b.max,k=b.mid,T=function(){return f.aggNums(Math.min,null,y)},M=function(){return f.aggNums(Math.max,null,y)};_===void 0?_=T():x&&(_=g._colorAx&&l(_)?Math.min(_,T()):T()),w===void 0?w=M():x&&(w=g._colorAx&&l(w)?Math.max(w,M()):M()),x&&k!==void 0&&(w-k>k-_?_=k-(w-k):w-k=0?m.colorscale.sequential:m.colorscale.sequentialminus,b._sync("colorscale",p))}},33046:function(o,a,n){var l=n(71828),f=n(52075).hasColorscale,s=n(52075).extractOpts;o.exports=function(u,d){function h(x,_){var w=x["_"+_];w!==void 0&&(x[_]=w)}function p(x,_){var w=_.container?l.nestedProperty(x,_.container).get():x;if(w)if(w.coloraxis)w._colorAx=d[w.coloraxis];else{var k=s(w),T=k.auto;(T||k.min===void 0)&&h(w,_.min),(T||k.max===void 0)&&h(w,_.max),k.autocolorscale&&h(w,"colorscale")}}for(var m=0;m=0;T--,M++){var S=_[T];k[M]=[1-S[0],S[1]]}return k}function b(_,w){w=w||{};for(var k=_.domain,T=_.range,M=T.length,S=new Array(M),C=0;C1.3333333333333333-h?d:h}},70461:function(o,a,n){var l=n(71828),f=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];o.exports=function(s,u,d,h){return s=d==="left"?0:d==="center"?1:d==="right"?2:l.constrain(Math.floor(3*s),0,2),u=h==="bottom"?0:h==="middle"?1:h==="top"?2:l.constrain(Math.floor(3*u),0,2),f[u][s]}},64505:function(o,a){a.selectMode=function(n){return n==="lasso"||n==="select"},a.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.openMode=function(n){return n==="drawline"||n==="drawopenpath"},a.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},a.selectingOrDrawing=function(n){return a.freeMode(n)||a.rectMode(n)}},28569:function(o,a,n){var l=n(48956),f=n(57035),s=n(38520),u=n(71828).removeElement,d=n(85555),h=o.exports={};h.align=n(92807),h.getCursor=n(70461);var p=n(26041);function m(){var v=document.createElement("div");v.className="dragcover";var g=v.style;return g.position="fixed",g.left=0,g.right=0,g.top=0,g.bottom=0,g.zIndex=999999999,g.background="none",document.body.appendChild(v),v}function y(v){return l(v.changedTouches?v.changedTouches[0]:v,document.body)}h.unhover=p.wrapped,h.unhoverRaw=p.raw,h.init=function(v){var g,b,x,_,w,k,T,M,S=v.gd,C=1,P=S._context.doubleClickDelay,D=v.element;S._mouseDownTime||(S._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=R,s?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=R,D.addEventListener("touchstart",R,{passive:!1})):D.ontouchstart=R;var O=v.clampFn||function(z,B,$){return Math.abs(z)<$&&(z=0),Math.abs(B)<$&&(B=0),[z,B]};function R(z){S._dragged=!1,S._dragging=!0;var B=y(z);g=B[0],b=B[1],T=z.target,k=z,M=z.buttons===2||z.ctrlKey,z.clientX===void 0&&z.clientY===void 0&&(z.clientX=g,z.clientY=b),(x=new Date().getTime())-S._mouseDownTimeP&&(C=Math.max(C-1,1)),S._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(C,k),!M){var B;try{B=new MouseEvent("click",z)}catch{var $=y(z);(B=document.createEvent("MouseEvents")).initMouseEvent("click",z.bubbles,z.cancelable,z.view,z.detail,z.screenX,z.screenY,$[0],$[1],z.ctrlKey,z.altKey,z.shiftKey,z.metaKey,z.button,z.relatedTarget)}T.dispatchEvent(B)}S._dragging=!1,S._dragged=!1}else S._dragged=!1}},h.coverSlip=m},26041:function(o,a,n){var l=n(11086),f=n(79990),s=n(24401).getGraphDiv,u=n(26675),d=o.exports={};d.wrapped=function(h,p,m){(h=s(h))._fullLayout&&f.clear(h._fullLayout._uid+u.HOVERID),d.raw(h,p,m)},d.raw=function(h,p){var m=h._fullLayout,y=h._hoverdata;p||(p={}),p.target&&!h._dragged&&l.triggerHandler(h,"plotly_beforehover",p)===!1||(m._hoverlayer.selectAll("g").remove(),m._hoverlayer.selectAll("line").remove(),m._hoverlayer.selectAll("circle").remove(),h._hoverdata=void 0,p.target&&y&&h.emit("plotly_unhover",{event:p,points:y}))}},79952:function(o,a){a.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},a.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(o,a,n){var l=n(39898),f=n(71828),s=f.numberFormat,u=n(92770),d=n(84267),h=n(73972),p=n(7901),m=n(21081),y=f.strTranslate,v=n(63893),g=n(77922),b=n(18783).LINE_SPACING,x=n(37822).DESELECTDIM,_=n(34098),w=n(39984),k=n(23469).appendArrayPointValue,T=o.exports={};function M(ce,ye,J){var ne=ye.fillpattern,de=ne&&T.getPatternAttr(ne.shape,0,"");if(de){var xe=T.getPatternAttr(ne.bgcolor,0,null),ue=T.getPatternAttr(ne.fgcolor,0,null),ge=ne.fgopacity,be=T.getPatternAttr(ne.size,0,8),we=T.getPatternAttr(ne.solidity,0,.3),ke=ye.uid;T.pattern(ce,"point",J,ke,de,be,we,void 0,ne.fillmode,xe,ue,ge)}else ye.fillcolor&&ce.call(p.fill,ye.fillcolor)}T.font=function(ce,ye,J,ne){f.isPlainObject(ye)&&(ne=ye.color,J=ye.size,ye=ye.family),ye&&ce.style("font-family",ye),J+1&&ce.style("font-size",J+"px"),ne&&ce.call(p.fill,ne)},T.setPosition=function(ce,ye,J){ce.attr("x",ye).attr("y",J)},T.setSize=function(ce,ye,J){ce.attr("width",ye).attr("height",J)},T.setRect=function(ce,ye,J,ne,de){ce.call(T.setPosition,ye,J).call(T.setSize,ne,de)},T.translatePoint=function(ce,ye,J,ne){var de=J.c2p(ce.x),xe=ne.c2p(ce.y);return!!(u(de)&&u(xe)&&ye.node())&&(ye.node().nodeName==="text"?ye.attr("x",de).attr("y",xe):ye.attr("transform",y(de,xe)),!0)},T.translatePoints=function(ce,ye,J){ce.each(function(ne){var de=l.select(this);T.translatePoint(ne,de,ye,J)})},T.hideOutsideRangePoint=function(ce,ye,J,ne,de,xe){ye.attr("display",J.isPtWithinRange(ce,de)&&ne.isPtWithinRange(ce,xe)?null:"none")},T.hideOutsideRangePoints=function(ce,ye){if(ye._hasClipOnAxisFalse){var J=ye.xaxis,ne=ye.yaxis;ce.each(function(de){var xe=de[0].trace,ue=xe.xcalendar,ge=xe.ycalendar,be=h.traceIs(xe,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(be).each(function(we){T.hideOutsideRangePoint(we,l.select(this),J,ne,ue,ge)})})}},T.crispRound=function(ce,ye,J){return ye&&u(ye)?ce._context.staticPlot?ye:ye<1?1:Math.round(ye):J||0},T.singleLineStyle=function(ce,ye,J,ne,de){ye.style("fill","none");var xe=(((ce||[])[0]||{}).trace||{}).line||{},ue=J||xe.width||0,ge=de||xe.dash||"";p.stroke(ye,ne||xe.color),T.dashLine(ye,ge,ue)},T.lineGroupStyle=function(ce,ye,J,ne){ce.style("fill","none").each(function(de){var xe=(((de||[])[0]||{}).trace||{}).line||{},ue=ye||xe.width||0,ge=ne||xe.dash||"";l.select(this).call(p.stroke,J||xe.color).call(T.dashLine,ge,ue)})},T.dashLine=function(ce,ye,J){J=+J||0,ye=T.dashStyle(ye,J),ce.style({"stroke-dasharray":ye,"stroke-width":J+"px"})},T.dashStyle=function(ce,ye){ye=+ye||1;var J=Math.max(ye,3);return ce==="solid"?ce="":ce==="dot"?ce=J+"px,"+J+"px":ce==="dash"?ce=3*J+"px,"+3*J+"px":ce==="longdash"?ce=5*J+"px,"+5*J+"px":ce==="dashdot"?ce=3*J+"px,"+J+"px,"+J+"px,"+J+"px":ce==="longdashdot"&&(ce=5*J+"px,"+2*J+"px,"+J+"px,"+2*J+"px"),ce},T.singleFillStyle=function(ce,ye){var J=l.select(ce.node());M(ce,((J.data()[0]||[])[0]||{}).trace||{},ye)},T.fillGroupStyle=function(ce,ye){ce.style("stroke-width",0).each(function(J){var ne=l.select(this);J[0].trace&&M(ne,J[0].trace,ye)})};var S=n(90998);T.symbolNames=[],T.symbolFuncs=[],T.symbolBackOffs=[],T.symbolNeedLines={},T.symbolNoDot={},T.symbolNoFill={},T.symbolList=[],Object.keys(S).forEach(function(ce){var ye=S[ce],J=ye.n;T.symbolList.push(J,String(J),ce,J+100,String(J+100),ce+"-open"),T.symbolNames[J]=ce,T.symbolFuncs[J]=ye.f,T.symbolBackOffs[J]=ye.backoff||0,ye.needLine&&(T.symbolNeedLines[J]=!0),ye.noDot?T.symbolNoDot[J]=!0:T.symbolList.push(J+200,String(J+200),ce+"-dot",J+300,String(J+300),ce+"-open-dot"),ye.noFill&&(T.symbolNoFill[J]=!0)});var C=T.symbolNames.length;function P(ce,ye,J,ne){var de=ce%100;return T.symbolFuncs[de](ye,J,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}T.symbolNumber=function(ce){if(u(ce))ce=+ce;else if(typeof ce=="string"){var ye=0;ce.indexOf("-open")>0&&(ye=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(ye+=200,ce=ce.replace("-dot","")),(ce=T.symbolNames.indexOf(ce))>=0&&(ce+=ye)}return ce%100>=C||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},O={x1:0,x2:0,y1:1,y2:0},R=s("~f"),F={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:O},verticalreversed:{node:"linearGradient",attrs:O,reversed:!0}};T.gradient=function(ce,ye,J,ne,de,xe){for(var ue=de.length,ge=F[ne],be=new Array(ue),we=0;we=0&&ce.i===void 0&&(ce.i=xe.i),ye.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var be;be=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=be,ne.selectedSizeFn&&(be=ce.mrc=ne.selectedSizeFn(ce));var we=T.symbolNumber(ce.mx||ue.symbol)||0;ce.om=we%200>=100;var ke=Me(ce,J),Ae=Y(ce,J);ye.attr("d",P(we,be,ke,Ae))}var Ee,De,Re,Ie=!1;if(ce.so)Re=ge.outlierwidth,De=ge.outliercolor,Ee=ue.outliercolor;else{var Be=(ge||{}).width;Re=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,De="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):f.isArrayOrTypedArray(ge.color)?p.defaultLine:ge.color,f.isArrayOrTypedArray(ue.color)&&(Ee=p.defaultLine,Ie=!0),Ee="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Ee=ne.selectedColorFn(ce))}if(ce.om)ye.call(p.stroke,Ee).style({"stroke-width":(Re||1)+"px",fill:"none"});else{ye.style("stroke-width",(ce.isBlank?0:Re)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Ie=!0:qe=Ue&&Ue.type,f.isArrayOrTypedArray(qe)&&(qe=qe[0],F[qe]||(qe=0));var Ye=ue.pattern,at=Ye&&T.getPatternAttr(Ye.shape,ce.i,"");if(qe&&qe!=="none"){var lt=ce.mgc;lt?Ie=!0:lt=Ue.color;var ct=J.uid;Ie&&(ct+="-"+ce.i),T.gradient(ye,de,ct,qe,[[0,lt],[1,Ee]],"fill")}else if(at){var bt=!1,ze=Ye.fgcolor;!ze&&xe&&xe.color&&(ze=xe.color,bt=!0);var Ne=T.getPatternAttr(ze,ce.i,xe&&xe.color||null),Qe=T.getPatternAttr(Ye.bgcolor,ce.i,null),it=Ye.fgopacity,kt=T.getPatternAttr(Ye.size,ce.i,8),Je=T.getPatternAttr(Ye.solidity,ce.i,.3);bt=bt||ce.mcc||f.isArrayOrTypedArray(Ye.shape)||f.isArrayOrTypedArray(Ye.bgcolor)||f.isArrayOrTypedArray(Ye.fgcolor)||f.isArrayOrTypedArray(Ye.size)||f.isArrayOrTypedArray(Ye.solidity);var ut=J.uid;bt&&(ut+="-"+ce.i),T.pattern(ye,"point",de,ut,at,kt,Je,ce.mcc,Ye.fillmode,Qe,Ne,it)}else f.isArrayOrTypedArray(Ee)?p.fill(ye,Ee[ce.i]):p.fill(ye,Ee);Re&&p.stroke(ye,De)}},T.makePointStyleFns=function(ce){var ye={},J=ce.marker;return ye.markerScale=T.tryColorscale(J,""),ye.lineScale=T.tryColorscale(J,"line"),h.traceIs(ce,"symbols")&&(ye.ms2mrc=_.isBubble(ce)?w(ce):function(){return(J.size||6)/2}),ce.selectedpoints&&f.extendFlat(ye,T.makeSelectedPointStyleFns(ce)),ye},T.makeSelectedPointStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.marker||{},xe=J.marker||{},ue=ne.marker||{},ge=de.opacity,be=xe.opacity,we=ue.opacity,ke=be!==void 0,Ae=we!==void 0;(f.isArrayOrTypedArray(ge)||ke||Ae)&&(ye.selectedOpacityFn=function(at){var lt=at.mo===void 0?de.opacity:at.mo;return at.selected?ke?be:lt:Ae?we:x*lt});var Ee=de.color,De=xe.color,Re=ue.color;(De||Re)&&(ye.selectedColorFn=function(at){var lt=at.mcc||Ee;return at.selected?De||lt:Re||lt});var Ie=de.size,Be=xe.size,Ue=ue.size,qe=Be!==void 0,Ye=Ue!==void 0;return h.traceIs(ce,"symbols")&&(qe||Ye)&&(ye.selectedSizeFn=function(at){var lt=at.mrc||Ie/2;return at.selected?qe?Be/2:lt:Ye?Ue/2:lt}),ye},T.makeSelectedTextStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.textfont||{},xe=J.textfont||{},ue=ne.textfont||{},ge=de.color,be=xe.color,we=ue.color;return ye.selectedTextColorFn=function(ke){var Ae=ke.tc||ge;return ke.selected?be||Ae:we||(be?Ae:p.addOpacity(Ae,x))},ye},T.selectedPointStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedPointStyleFns(ye),ne=ye.marker||{},de=[];J.selectedOpacityFn&&de.push(function(xe,ue){xe.style("opacity",J.selectedOpacityFn(ue))}),J.selectedColorFn&&de.push(function(xe,ue){p.fill(xe,J.selectedColorFn(ue))}),J.selectedSizeFn&&de.push(function(xe,ue){var ge=ue.mx||ne.symbol||0,be=J.selectedSizeFn(ue);xe.attr("d",P(T.symbolNumber(ge),be,Me(ue,ye),Y(ue,ye))),ue.mrc2=be}),de.length&&ce.each(function(xe){for(var ue=l.select(this),ge=0;ge0?J:0}function N(ce,ye,J){return J&&(ce=H(ce)),ye?W(ce[1]):E(ce[0])}function E(ce){var ye=l.round(ce,2);return A=ye,ye}function W(ce){var ye=l.round(ce,2);return z=ye,ye}function G(ce,ye,J,ne){var de=ce[0]-ye[0],xe=ce[1]-ye[1],ue=J[0]-ye[0],ge=J[1]-ye[1],be=Math.pow(de*de+xe*xe,.25),we=Math.pow(ue*ue+ge*ge,.25),ke=(we*we*de-be*be*ue)*ne,Ae=(we*we*xe-be*be*ge)*ne,Ee=3*we*(be+we),De=3*be*(be+we);return[[E(ye[0]+(Ee&&ke/Ee)),W(ye[1]+(Ee&&Ae/Ee))],[E(ye[0]-(De&&ke/De)),W(ye[1]-(De&&Ae/De))]]}T.textPointStyle=function(ce,ye,J){if(ce.size()){var ne;if(ye.selectedpoints){var de=T.makeSelectedTextStyleFns(ye);ne=de.selectedTextColorFn}var xe=ye.texttemplate,ue=J._fullLayout;ce.each(function(ge){var be=l.select(this),we=xe?f.extractOption(ge,ye,"txt","texttemplate"):f.extractOption(ge,ye,"tx","text");if(we||we===0){if(xe){var ke=ye._module.formatLabels,Ae=ke?ke(ge,ye,ue):{},Ee={};k(Ee,ye,ge.i);var De=ye._meta||{};we=f.texttemplateString(we,Ae,ue._d3locale,Ee,ge,De)}var Re=ge.tp||ye.textposition,Ie=j(ge,ye),Be=ne?ne(ge):ge.tc||ye.textfont.color;be.call(T.font,ge.tf||ye.textfont.family,Ie,Be).text(we).call(v.convertToTspans,J).call($,Re,Ie,ge.mrc)}else be.remove()})}},T.selectedTextStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedTextStyleFns(ye);ce.each(function(ne){var de=l.select(this),xe=J.selectedTextColorFn(ne),ue=ne.tp||ye.textposition,ge=j(ne,ye);p.fill(de,xe);var be=h.traceIs(ye,"bar-like");$(de,ue,ge,ne.mrc2||ne.mrc,be)})}},T.smoothopen=function(ce,ye){if(ce.length<3)return"M"+ce.join("L");var J,ne="M"+ce[0],de=[];for(J=1;J=be||at>=ke&&at<=be)&&(lt<=Ae&<>=we||lt>=Ae&<<=we)&&(ce=[at,lt])}return ce}T.steps=function(ce){var ye=L[ce]||q;return function(J){for(var ne="M"+E(J[0][0])+","+W(J[0][1]),de=J.length,xe=1;xe=1e4&&(T.savedBBoxes={},V=0),J&&(T.savedBBoxes[J]=De),V++,f.extendFlat({},De)},T.setClipUrl=function(ce,ye,J){ce.attr("clip-path",ee(ye,J))},T.getTranslate=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||0,y:+ye[1]||0}},T.setTranslate=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||0,J=J||0,xe=xe.replace(/(\btranslate\(.*?\);?)/,"").trim(),xe=(xe+=y(ye,J)).trim(),ce[de]("transform",xe),xe},T.getScale=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||1,y:+ye[1]||1}},T.setScale=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||1,J=J||1,xe=xe.replace(/(\bscale\(.*?\);?)/,"").trim(),xe=(xe+="scale("+ye+","+J+")").trim(),ce[de]("transform",xe),xe};var U=/\s*sc.*/;T.setPointGroupScale=function(ce,ye,J){if(ye=ye||1,J=J||1,ce){var ne=ye===1&&J===1?"":"scale("+ye+","+J+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(U,"");de=(de+=ne).trim(),this.setAttribute("transform",de)})}};var Q=/translate\([^)]*\)\s*$/;function Y(ce,ye){var J;return ce&&(J=ce.mf),J===void 0&&(J=ye.marker&&ye.marker.standoff||0),ye._geo||ye._xA?J:-J}T.setTextPointsScale=function(ce,ye,J){ce&&ce.each(function(){var ne,de=l.select(this),xe=de.select("text");if(xe.node()){var ue=parseFloat(xe.attr("x")||0),ge=parseFloat(xe.attr("y")||0),be=(de.attr("transform")||"").match(Q);ne=ye===1&&J===1?[]:[y(ue,ge),"scale("+ye+","+J+")",y(-ue,-ge)],be&&ne.push(be),de.attr("transform",ne.join(""))}})},T.getMarkerStandoff=Y;var Z,X,re,ie,le,se,pe=Math.atan2,Te=Math.cos,Se=Math.sin;function Oe(ce,ye){var J=ye[0],ne=ye[1];return[J*Te(ce)-ne*Se(ce),J*Se(ce)+ne*Te(ce)]}function Me(ce,ye){var J,ne,de=ce.ma;de===void 0&&(de=ye.marker.angle||0);var xe=ye.marker.angleref;if(xe==="previous"||xe==="north"){if(ye._geo){var ue=ye._geo.project(ce.lonlat);J=ue[0],ne=ue[1]}else{var ge=ye._xA,be=ye._yA;if(!ge||!be)return 90;J=ge.c2p(ce.x),ne=be.c2p(ce.y)}if(ye._geo){var we,ke=ce.lonlat[0],Ae=ce.lonlat[1],Ee=ye._geo.project([ke,Ae+1e-5]),De=ye._geo.project([ke+1e-5,Ae]),Re=pe(De[1]-ne,De[0]-J),Ie=pe(Ee[1]-ne,Ee[0]-J);if(xe==="north")we=de/180*Math.PI;else if(xe==="previous"){var Be=ke/180*Math.PI,Ue=Ae/180*Math.PI,qe=Z/180*Math.PI,Ye=X/180*Math.PI,at=qe-Be,lt=Te(Ye)*Se(at),ct=Se(Ye)*Te(Ue)-Te(Ye)*Se(Ue)*Te(at);we=-pe(lt,ct)-Math.PI,Z=ke,X=Ae}var bt=Oe(Re,[Te(we),0]),ze=Oe(Ie,[Se(we),0]);de=pe(bt[1]+ze[1],bt[0]+ze[0])/Math.PI*180,xe!=="previous"||se===ye.uid&&ce.i===le+1||(de=null)}if(xe==="previous"&&!ye._geo)if(se===ye.uid&&ce.i===le+1&&u(J)&&u(ne)){var Ne=J-re,Qe=ne-ie,it=ye.line&&ye.line.shape||"",kt=it.slice(it.length-1);kt==="h"&&(Qe=0),kt==="v"&&(Ne=0),de+=pe(Qe,Ne)/Math.PI*180+90}else de=null}return re=J,ie=ne,le=ce.i,se=ye.uid,de}T.getMarkerAngle=Me},90998:function(o,a,n){var l,f,s,u,d=n(95616),h=n(39898).round,p="M0,0Z",m=Math.sqrt(2),y=Math.sqrt(3),v=Math.PI,g=Math.cos,b=Math.sin;function x(w){return w===null}function _(w,k,T){if(!(w&&w%360!=0||k))return T;if(s===w&&u===k&&l===T)return f;function M(N,E){var W=g(N),G=b(N),L=E[0],q=E[1]+(k||0);return[L*W-q*G,L*G+q*W]}s=w,u=k,l=T;for(var S=w/180*v,C=0,P=0,D=d(T),O="",R=0;R0,b=d._context.staticPlot;h.each(function(x){var _,w=x[0].trace,k=w.error_x||{},T=w.error_y||{};w.ids&&(_=function(P){return P.id});var M=u.hasMarkers(w)&&w.marker.maxdisplayed>0;T.visible||k.visible||(x=[]);var S=l.select(this).selectAll("g.errorbar").data(x,_);if(S.exit().remove(),x.length){k.visible||S.selectAll("path.xerror").remove(),T.visible||S.selectAll("path.yerror").remove(),S.style("opacity",1);var C=S.enter().append("g").classed("errorbar",!0);g&&C.style("opacity",0).transition().duration(m.duration).style("opacity",1),s.setClipUrl(S,p.layerClipId,d),S.each(function(P){var D=l.select(this),O=function($,j,N){var E={x:j.c2p($.x),y:N.c2p($.y)};return $.yh!==void 0&&(E.yh=N.c2p($.yh),E.ys=N.c2p($.ys),f(E.ys)||(E.noYS=!0,E.ys=N.c2p($.ys,!0))),$.xh!==void 0&&(E.xh=j.c2p($.xh),E.xs=j.c2p($.xs),f(E.xs)||(E.noXS=!0,E.xs=j.c2p($.xs,!0))),E}(P,y,v);if(!M||P.vis){var R,F=D.select("path.yerror");if(T.visible&&f(O.x)&&f(O.yh)&&f(O.ys)){var A=T.width;R="M"+(O.x-A)+","+O.yh+"h"+2*A+"m-"+A+",0V"+O.ys,O.noYS||(R+="m-"+A+",0h"+2*A),F.size()?g&&(F=F.transition().duration(m.duration).ease(m.easing)):F=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("yerror",!0),F.attr("d",R)}else F.remove();var z=D.select("path.xerror");if(k.visible&&f(O.y)&&f(O.xh)&&f(O.xs)){var B=(k.copy_ystyle?T:k).width;R="M"+O.xh+","+(O.y-B)+"v"+2*B+"m0,-"+B+"H"+O.xs,O.noXS||(R+="m0,-"+B+"v"+2*B),z.size()?g&&(z=z.transition().duration(m.duration).ease(m.easing)):z=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("xerror",!0),z.attr("d",R)}else z.remove()}})}})}},62662:function(o,a,n){var l=n(39898),f=n(7901);o.exports=function(s){s.each(function(u){var d=u[0].trace,h=d.error_y||{},p=d.error_x||{},m=l.select(this);m.selectAll("path.yerror").style("stroke-width",h.thickness+"px").call(f.stroke,h.color),p.copy_ystyle&&(p=h),m.selectAll("path.xerror").style("stroke-width",p.thickness+"px").call(f.stroke,p.color)})}},77914:function(o,a,n){var l=n(41940),f=n(528).hoverlabel,s=n(1426).extendFlat;o.exports={hoverlabel:{bgcolor:s({},f.bgcolor,{arrayOk:!0}),bordercolor:s({},f.bordercolor,{arrayOk:!0}),font:l({arrayOk:!0,editType:"none"}),align:s({},f.align,{arrayOk:!0}),namelength:s({},f.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(o,a,n){var l=n(71828),f=n(73972);function s(u,d,h,p){p=p||l.identity,Array.isArray(u)&&(d[0][h]=p(u))}o.exports=function(u){var d=u.calcdata,h=u._fullLayout;function p(b){return function(x){return l.coerceHoverinfo({hoverinfo:x},{_module:b._module},h)}}for(var m=0;m=0&&y.indexde[0]._length||pt<0||pt>xe[0]._length)return b.unhoverRaw(ie,le)}else ut="xpx"in le?le.xpx:de[0]._length/2,pt="ypx"in le?le.ypx:xe[0]._length/2;if(le.pointerX=ut+de[0]._offset,le.pointerY=pt+xe[0]._offset,De="xval"in le?w.flat(Se,le.xval):w.p2c(de,ut),Re="yval"in le?w.flat(Se,le.yval):w.p2c(xe,pt),!f(De[0])||!f(Re[0]))return u.warn("Fx.hover failed",le,ie),b.unhoverRaw(ie,le)}var zt=1/0;function wt(Zt,pn){for(Be=0;BeNe&&(Qe.splice(0,Ne),zt=Qe[0].distance),ye&&Ee!==0&&Qe.length===0){ze.distance=Ee,ze.index=!1;var Dn=qe._module.hoverPoints(ze,ct,bt,"closest",{hoverLayer:Oe._hoverlayer});if(Dn&&(Dn=Dn.filter(function(lr){return lr.spikeDistance<=Ee})),Dn&&Dn.length){var wn,En=Dn.filter(function(lr){return lr.xa.showspikes&&lr.xa.spikesnap!=="hovered data"});if(En.length){var tr=En[0];f(tr.x0)&&f(tr.y0)&&(wn=_e(tr),(!kt.vLinePoint||kt.vLinePoint.spikeDistance>wn.spikeDistance)&&(kt.vLinePoint=wn))}var oa=Dn.filter(function(lr){return lr.ya.showspikes&&lr.ya.spikesnap!=="hovered data"});if(oa.length){var da=oa[0];f(da.x0)&&f(da.y0)&&(wn=_e(da),(!kt.hLinePoint||kt.hLinePoint.spikeDistance>wn.spikeDistance)&&(kt.hLinePoint=wn))}}}}}function ve(Zt,pn,nn){for(var Kt,On=null,Tn=1/0,Dn=0;Dn0&&Math.abs(Zt.distance)Ft-1;Vt--)gt(Qe[Vt]);Qe=St,Ze()}var ht=ie._hoverdata,yt=[],qt=te(ie),Et=ee(ie);for(Ie=0;Ie1||Qe.length>1)||ke==="closest"&&Je&&Qe.length>1,cn=g.combine(Oe.plot_bgcolor||g.background,Oe.paper_bgcolor),ln=j(Qe,{gd:ie,hovermode:ke,rotateLabels:tn,bgColor:cn,container:Oe._hoverlayer,outerContainer:Oe._paper.node(),commonLabelOpts:Oe.hoverlabel,hoverdistance:Oe.hoverdistance}),an=ln.hoverLabels;if(w.isUnifiedHover(ke)||(function(Zt,pn,nn,Kt){var On,Tn,Dn,wn,En,tr,oa,da=pn?"xa":"ya",lr=pn?"ya":"xa",ti=0,Ar=1,ur=Zt.size(),kr=new Array(ur),la=0,An=Kt.minX,on=Kt.maxX,$n=Kt.minY,Pr=Kt.maxY,Ln=function(kn){return kn*nn._invScaleX},Bn=function(kn){return kn*nn._invScaleY};function jn(kn){var Dr=kn[0],Aa=kn[kn.length-1];if(Tn=Dr.pmin-Dr.pos-Dr.dp+Dr.size,Dn=Aa.pos+Aa.dp+Aa.size-Dr.pmax,Tn>.01){for(En=kn.length-1;En>=0;En--)kn[En].dp+=Tn;On=!1}if(!(Dn<.01)){if(Tn<-.01){for(En=kn.length-1;En>=0;En--)kn[En].dp-=Dn;On=!1}if(On){var Br=0;for(wn=0;wnDr.pmax&&Br++;for(wn=kn.length-1;wn>=0&&!(Br<=0);wn--)(tr=kn[wn]).pos>Dr.pmax-1&&(tr.del=!0,Br--);for(wn=0;wn=0;En--)kn[En].dp-=Dn;for(wn=kn.length-1;wn>=0&&!(Br<=0);wn--)(tr=kn[wn]).pos+tr.dp+tr.size>Dr.pmax&&(tr.del=!0,Br--)}}}for(Zt.each(function(kn){var Dr=kn[da],Aa=kn[lr],Br=Dr._id.charAt(0)==="x",Fi=Dr.range;la===0&&Fi&&Fi[0]>Fi[1]!==Br&&(Ar=-1);var Ni=0,mi=Br?nn.width:nn.height;if(nn.hovermode==="x"||nn.hovermode==="y"){var ni,Ga,vi=E(kn,pn),us=kn.anchor,nl=us==="end"?-1:1;if(us==="middle")Ga=(ni=kn.crossPos+(Br?Bn(vi.y-kn.by/2):Ln(kn.bx/2+kn.tx2width/2)))+(Br?Bn(kn.by):Ln(kn.bx));else if(Br)Ga=(ni=kn.crossPos+Bn(R+vi.y)-Bn(kn.by/2-R))+Bn(kn.by);else{var cs=Ln(nl*R+vi.x),oo=cs+Ln(nl*kn.bx);ni=kn.crossPos+Math.min(cs,oo),Ga=kn.crossPos+Math.max(cs,oo)}Br?$n!==void 0&&Pr!==void 0&&Math.min(Ga,Pr)-Math.max(ni,$n)>1&&(Aa.side==="left"?(Ni=Aa._mainLinePosition,mi=nn.width):mi=Aa._mainLinePosition):An!==void 0&&on!==void 0&&Math.min(Ga,on)-Math.max(ni,An)>1&&(Aa.side==="top"?(Ni=Aa._mainLinePosition,mi=nn.height):mi=Aa._mainLinePosition)}kr[la++]=[{datum:kn,traceIndex:kn.trace.index,dp:0,pos:kn.pos,posref:kn.posref,size:kn.by*(Br?P:1)/2,pmin:Ni,pmax:mi}]}),kr.sort(function(kn,Dr){return kn[0].posref-Dr[0].posref||Ar*(Dr[0].traceIndex-kn[0].traceIndex)});!On&&ti<=ur;){for(ti++,On=!0,wn=0;wn.01&&xr.pmin===Mr.pmin&&xr.pmax===Mr.pmax){for(En=Lr.length-1;En>=0;En--)Lr[En].dp+=Tn;for(Un.push.apply(Un,Lr),kr.splice(wn+1,1),oa=0,En=Un.length-1;En>=0;En--)oa+=Un[En].dp;for(Dn=oa/Un.length,En=Un.length-1;En>=0;En--)Un[En].dp-=Dn;On=!1}else wn++}kr.forEach(jn)}for(wn=kr.length-1;wn>=0;wn--){var Na=kr[wn];for(En=Na.length-1;En>=0;En--){var wa=Na[En],sa=wa.datum;sa.offset=wa.dp,sa.del=wa.del}}}(an,tn,Oe,ln.commonLabelBoundingBox),W(an,tn,Oe._invScaleX,Oe._invScaleY)),Te&&Te.tagName){var sn=_.getComponentMethod("annotations","hasClickToShow")(ie,yt);y(l.select(Te),sn?"pointer":"")}Te&&!pe&&function(Zt,pn,nn){if(!nn||nn.length!==Zt._hoverdata.length)return!0;for(var Kt=nn.length-1;Kt>=0;Kt--){var On=nn[Kt],Tn=Zt._hoverdata[Kt];if(On.curveNumber!==Tn.curveNumber||String(On.pointNumber)!==String(Tn.pointNumber)||String(On.pointNumbers)!==String(Tn.pointNumbers))return!0}return!1}(ie,0,ht)&&(ht&&ie.emit("plotly_unhover",{event:le,points:ht}),ie.emit("plotly_hover",{event:le,points:ie._hoverdata,xaxes:de,yaxes:xe,xvals:De,yvals:Re}))})(Q,Y,Z,X,re)})},a.loneHover=function(Q,Y){var Z=!0;Array.isArray(Q)||(Z=!1,Q=[Q]);var X=Y.gd,re=te(X),ie=ee(X),le=j(Q.map(function(Te){var Se=Te._x0||Te.x0||Te.x||0,Oe=Te._x1||Te.x1||Te.x||0,Me=Te._y0||Te.y0||Te.y||0,ce=Te._y1||Te.y1||Te.y||0,ye=Te.eventData;if(ye){var J=Math.min(Se,Oe),ne=Math.max(Se,Oe),de=Math.min(Me,ce),xe=Math.max(Me,ce),ue=Te.trace;if(_.traceIs(ue,"gl3d")){var ge=X._fullLayout[ue.scene]._scene.container,be=ge.offsetLeft,we=ge.offsetTop;J+=be,ne+=be,de+=we,xe+=we}ye.bbox={x0:J+ie,x1:ne+ie,y0:de+re,y1:xe+re},Y.inOut_bbox&&Y.inOut_bbox.push(ye.bbox)}else ye=!1;return{color:Te.color||g.defaultLine,x0:Te.x0||Te.x||0,x1:Te.x1||Te.x||0,y0:Te.y0||Te.y||0,y1:Te.y1||Te.y||0,xLabel:Te.xLabel,yLabel:Te.yLabel,zLabel:Te.zLabel,text:Te.text,name:Te.name,idealAlign:Te.idealAlign,borderColor:Te.borderColor,fontFamily:Te.fontFamily,fontSize:Te.fontSize,fontColor:Te.fontColor,nameLength:Te.nameLength,textAlign:Te.textAlign,trace:Te.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Te.hovertemplate||!1,hovertemplateLabels:Te.hovertemplateLabels||!1,eventData:ye}}),{gd:X,hovermode:"closest",rotateLabels:!1,bgColor:Y.bgColor||g.background,container:l.select(Y.container),outerContainer:Y.outerContainer||Y.container}).hoverLabels,se=0,pe=0;return le.sort(function(Te,Se){return Te.y0-Se.y0}).each(function(Te,Se){var Oe=Te.y0-Te.by/2;Te.offset=Oe-5([\s\S]*)<\/extra>/;function j(Q,Y){var Z=Y.gd,X=Z._fullLayout,re=Y.hovermode,ie=Y.rotateLabels,le=Y.bgColor,se=Y.container,pe=Y.outerContainer,Te=Y.commonLabelOpts||{};if(Q.length===0)return[[]];var Se=Y.fontFamily||k.HOVERFONT,Oe=Y.fontSize||k.HOVERFONTSIZE,Me=Q[0],ce=Me.xa,ye=Me.ya,J=re.charAt(0),ne=J+"Label",de=Me[ne];if(de===void 0&&ce.type==="multicategory")for(var xe=0;xeX.width-jt?(ht=X.width-jt,Ft.attr("d","M"+(jt-R)+",0L"+jt+","+Et+R+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H"+(jt-2*R)+"Z")):Ft.attr("d","M0,0L"+R+","+Et+R+"H"+jt+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H-"+R+"Z"),Be.minX=ht-jt,Be.maxX=ht+jt,ce.side==="top"?(Be.minY=yt-(2*F+qt.height),Be.maxY=yt-F):(Be.minY=yt+F,Be.maxY=yt+(2*F+qt.height))}else{var Tt,Ot,At;ye.side==="right"?(Tt="start",Ot=1,At="",ht=ce._offset+ce._length):(Tt="end",Ot=-1,At="-",ht=ce._offset),yt=ye._offset+(Me.y0+Me.y1)/2,Vt.attr("text-anchor",Tt),Ft.attr("d","M0,0L"+At+R+","+R+"V"+(F+qt.height/2)+"h"+At+(2*F+qt.width)+"V-"+(F+qt.height/2)+"H"+At+R+"V-"+R+"Z"),Be.minY=yt-(F+qt.height/2),Be.maxY=yt+(F+qt.height/2),ye.side==="right"?(Be.minX=ht+R,Be.maxX=ht+R+(2*F+qt.width)):(Be.minX=ht-R-(2*F+qt.width),Be.maxX=ht-R);var Lt,Rt=qt.height/2,$t=ge-qt.top-Rt,Yt="clip"+X._uid+"commonlabel"+ye._id;if(ht=0?pt:It+wt=0?It:nt+wt=0?Je:ut+ve=0?ut:st+ve=0,tt.idealAlign!=="top"&&tn||!cn?tn?(Rt+=Yt/2,tt.anchor="start"):tt.anchor="middle":(Rt-=Yt/2,tt.anchor="end"),tt.crossPos=Rt;else{if(tt.pos=Rt,tn=Lt+$t/2+ln<=be,cn=Lt-$t/2-ln>=0,tt.idealAlign!=="left"&&tn||!cn)if(tn)Lt+=$t/2,tt.anchor="start";else{tt.anchor="middle";var an=ln/2,sn=Lt+an-be,Zt=Lt-an;sn>0&&(Lt-=sn),Zt<0&&(Lt+=-Zt)}else Lt-=$t/2,tt.anchor="end";tt.crossPos=Lt}Et.attr("text-anchor",tt.anchor),Tt&&jt.attr("text-anchor",tt.anchor),Ft.attr("transform",d(Lt,Rt)+(ie?h(S):""))}),{hoverLabels:mt,commonLabelBoundingBox:Be}}function N(Q,Y,Z,X,re,ie){var le="",se="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=u.templateString(Q.name,Q.trace._meta)),le=H(Q.name,Q.nameLength));var pe=Z.charAt(0),Te=pe==="x"?"y":"x";Q.zLabel!==void 0?(Q.xLabel!==void 0&&(se+="x: "+Q.xLabel+"
"),Q.yLabel!==void 0&&(se+="y: "+Q.yLabel+"
"),Q.trace.type!=="choropleth"&&Q.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Q.zLabel)):Y&&Q[pe+"Label"]===re?se=Q[Te+"Label"]||"":Q.xLabel===void 0?Q.yLabel!==void 0&&Q.trace.type!=="scattercarpet"&&(se=Q.yLabel):se=Q.yLabel===void 0?Q.xLabel:"("+Q.xLabel+", "+Q.yLabel+")",!Q.text&&Q.text!==0||Array.isArray(Q.text)||(se+=(se?"
":"")+Q.text),Q.extraText!==void 0&&(se+=(se?"
":"")+Q.extraText),ie&&se===""&&!Q.hovertemplate&&(le===""&&ie.remove(),se=le);var Se=Q.hovertemplate||!1;if(Se){var Oe=Q.hovertemplateLabels||Q;Q[pe+"Label"]!==re&&(Oe[pe+"other"]=Oe[pe+"Val"],Oe[pe+"otherLabel"]=Oe[pe+"Label"]),se=(se=u.hovertemplateString(Se,Oe,X._d3locale,Q.eventData[0]||{},Q.trace._meta)).replace($,function(Me,ce){return le=H(ce,Q.nameLength),""})}return[se,le]}function E(Q,Y){var Z=0,X=Q.offset;return Y&&(X*=-O,Z=Q.offset*D),{x:Z,y:X}}function W(Q,Y,Z,X){var re=function(le){return le*Z},ie=function(le){return le*X};Q.each(function(le){var se=l.select(this);if(le.del)return se.remove();var pe,Te,Se,Oe,Me=se.select("text.nums"),ce=le.anchor,ye=ce==="end"?-1:1,J=(Oe=(Se=(Te={start:1,end:-1,middle:0}[(pe=le).anchor])*(R+F))+Te*(pe.txwidth+F),pe.anchor==="middle"&&(Se-=pe.tx2width/2,Oe+=pe.txwidth/2+F),{alignShift:Te,textShiftX:Se,text2ShiftX:Oe}),ne=E(le,Y),de=ne.x,xe=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(le.bx/2+le.tx2width/2)+","+ie(xe-le.by/2)+"h"+re(le.bx)+"v"+ie(le.by)+"h-"+re(le.bx)+"Z":"M0,0L"+re(ye*R+de)+","+ie(R+xe)+"v"+ie(le.by/2-R)+"h"+re(ye*le.bx)+"v-"+ie(le.by)+"H"+re(ye*R+de)+"V"+ie(xe-R)+"Z");var ge=de+J.textShiftX,be=xe+le.ty0-le.by/2+F,we=le.textAlign||"auto";we!=="auto"&&(we==="left"&&ce!=="start"?(Me.attr("text-anchor","start"),ge=ue?-le.bx/2-le.tx2width/2+F:-le.bx-F):we==="right"&&ce!=="end"&&(Me.attr("text-anchor","end"),ge=ue?le.bx/2-le.tx2width/2-F:le.bx+F)),Me.call(m.positionText,re(ge),ie(be)),le.tx2width&&(se.select("text.name").call(m.positionText,re(J.text2ShiftX+J.alignShift*F+de),ie(xe+le.ty0-le.by/2+F)),se.select("rect").call(v.setRect,re(J.text2ShiftX+(J.alignShift-1)*le.tx2width/2+de),ie(xe-le.by/2-1),re(le.tx2width),ie(le.by+2)))})}function G(Q,Y){var Z=Q.index,X=Q.trace||{},re=Q.cd[0],ie=Q.cd[Z]||{};function le(Me){return Me||f(Me)&&Me===0}var se=Array.isArray(Z)?function(Me,ce){var ye=u.castOption(re,Z,Me);return le(ye)?ye:u.extractOption({},X,"",ce)}:function(Me,ce){return u.extractOption(ie,X,Me,ce)};function pe(Me,ce,ye){var J=se(ce,ye);le(J)&&(Q[Me]=J)}if(pe("hoverinfo","hi","hoverinfo"),pe("bgcolor","hbg","hoverlabel.bgcolor"),pe("borderColor","hbc","hoverlabel.bordercolor"),pe("fontFamily","htf","hoverlabel.font.family"),pe("fontSize","hts","hoverlabel.font.size"),pe("fontColor","htc","hoverlabel.font.color"),pe("nameLength","hnl","hoverlabel.namelength"),pe("textAlign","hta","hoverlabel.align"),Q.posref=Y==="y"||Y==="closest"&&X.orientation==="h"?Q.xa._offset+(Q.x0+Q.x1)/2:Q.ya._offset+(Q.y0+Q.y1)/2,Q.x0=u.constrain(Q.x0,0,Q.xa._length),Q.x1=u.constrain(Q.x1,0,Q.xa._length),Q.y0=u.constrain(Q.y0,0,Q.ya._length),Q.y1=u.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:x.hoverLabelText(Q.xa,Q.xLabelVal,X.xhoverformat),Q.xVal=Q.xa.c2d(Q.xLabelVal)),Q.yLabelVal!==void 0&&(Q.yLabel="yLabel"in Q?Q.yLabel:x.hoverLabelText(Q.ya,Q.yLabelVal,X.yhoverformat),Q.yVal=Q.ya.c2d(Q.yLabelVal)),Q.zLabelVal!==void 0&&Q.zLabel===void 0&&(Q.zLabel=String(Q.zLabelVal)),!(isNaN(Q.xerr)||Q.xa.type==="log"&&Q.xerr<=0)){var Te=x.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+Te+" / -"+x.tickText(Q.xa,Q.xa.c2l(Q.xerrneg),"hover").text:Q.xLabel+=" ± "+Te,Y==="x"&&(Q.distance+=1)}if(!(isNaN(Q.yerr)||Q.ya.type==="log"&&Q.yerr<=0)){var Se=x.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Se+" / -"+x.tickText(Q.ya,Q.ya.c2l(Q.yerrneg),"hover").text:Q.yLabel+=" ± "+Se,Y==="y"&&(Q.distance+=1)}var Oe=Q.hoverinfo||Q.trace.hoverinfo;return Oe&&Oe!=="all"&&((Oe=Array.isArray(Oe)?Oe:Oe.split("+")).indexOf("x")===-1&&(Q.xLabel=void 0),Oe.indexOf("y")===-1&&(Q.yLabel=void 0),Oe.indexOf("z")===-1&&(Q.zLabel=void 0),Oe.indexOf("text")===-1&&(Q.text=void 0),Oe.indexOf("name")===-1&&(Q.name=void 0)),Q}function L(Q,Y,Z){var X,re,ie=Z.container,le=Z.fullLayout,se=le._size,pe=Z.event,Te=!!Y.hLinePoint,Se=!!Y.vLinePoint;if(ie.selectAll(".spikeline").remove(),Se||Te){var Oe=g.combine(le.plot_bgcolor,le.paper_bgcolor);if(Te){var Me,ce,ye=Y.hLinePoint;X=ye&&ye.xa,(re=ye&&ye.ya).spikesnap==="cursor"?(Me=pe.pointerX,ce=pe.pointerY):(Me=X._offset+ye.x,ce=re._offset+ye.y);var J,ne,de=s.readability(ye.color,Oe)<1.5?g.contrast(Oe):ye.color,xe=re.spikemode,ue=re.spikethickness,ge=re.spikecolor||de,be=x.getPxPosition(Q,re);if(xe.indexOf("toaxis")!==-1||xe.indexOf("across")!==-1){if(xe.indexOf("toaxis")!==-1&&(J=be,ne=Me),xe.indexOf("across")!==-1){var we=re._counterDomainMin,ke=re._counterDomainMax;re.anchor==="free"&&(we=Math.min(we,re.position),ke=Math.max(ke,re.position)),J=se.l+we*se.w,ne=se.l+ke*se.w}ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:ge,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}xe.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:be+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:ge}).classed("spikeline",!0)}if(Se){var Ae,Ee,De=Y.vLinePoint;X=De&&De.xa,re=De&&De.ya,X.spikesnap==="cursor"?(Ae=pe.pointerX,Ee=pe.pointerY):(Ae=X._offset+De.x,Ee=re._offset+De.y);var Re,Ie,Be=s.readability(De.color,Oe)<1.5?g.contrast(Oe):De.color,Ue=X.spikemode,qe=X.spikethickness,Ye=X.spikecolor||Be,at=x.getPxPosition(Q,X);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&(Re=at,Ie=Ee),Ue.indexOf("across")!==-1){var lt=X._counterDomainMin,ct=X._counterDomainMax;X.anchor==="free"&&(lt=Math.min(lt,X.position),ct=Math.max(ct,X.position)),Re=se.t+(1-ct)*se.h,Ie=se.t+(1-lt)*se.h}ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe,stroke:Ye,"stroke-dasharray":v.dashStyle(X.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:Ae,cy:at-(X.side!=="top"?qe:-qe),r:qe,fill:Ye}).classed("spikeline",!0)}}}function q(Q,Y){return!Y}function H(Q,Y){return m.plainText(Q||"",{len:Y,allowedTags:["br","sub","sup","b","i","em"]})}function V(Q,Y,Z){var X=Y[Q+"a"],re=Y[Q+"Val"],ie=Y.cd[0];if(X.type==="category"||X.type==="multicategory")re=X._categoriesMap[re];else if(X.type==="date"){var le=Y.trace[Q+"periodalignment"];if(le){var se=Y.cd[Y.index],pe=se[Q+"Start"];pe===void 0&&(pe=se[Q]);var Te=se[Q+"End"];Te===void 0&&(Te=se[Q]);var Se=Te-pe;le==="end"?re+=Se:le==="middle"&&(re+=Se/2)}re=X.d2c(re)}return ie&&ie.t&&ie.t.posLetter===X._id&&(Z.boxmode!=="group"&&Z.violinmode!=="group"||(re+=ie.t.dPos)),re}function te(Q){return Q.offsetTop+Q.clientTop}function ee(Q){return Q.offsetLeft+Q.clientLeft}function U(Q,Y){var Z=Q._fullLayout,X=Y.getBoundingClientRect(),re=X.left,ie=X.top,le=re+X.width,se=ie+X.height,pe=u.apply3DTransform(Z._invTransform)(re,ie),Te=u.apply3DTransform(Z._invTransform)(le,se),Se=pe[0],Oe=pe[1],Me=Te[0],ce=Te[1];return{x:Se,y:Oe,width:Me-Se,height:ce-Oe,top:Math.min(Oe,ce),left:Math.min(Se,Me),right:Math.max(Se,Me),bottom:Math.max(Oe,ce)}}},38048:function(o,a,n){var l=n(71828),f=n(7901),s=n(23469).isUnifiedHover;o.exports=function(u,d,h,p){p=p||{};var m=d.legend;function y(v){p.font[v]||(p.font[v]=m?d.legend.font[v]:d.font[v])}d&&s(d.hovermode)&&(p.font||(p.font={}),y("size"),y("family"),y("color"),m?(p.bgcolor||(p.bgcolor=f.combine(d.legend.bgcolor,d.paper_bgcolor)),p.bordercolor||(p.bordercolor=d.legend.bordercolor)):p.bgcolor||(p.bgcolor=d.paper_bgcolor)),h("hoverlabel.bgcolor",p.bgcolor),h("hoverlabel.bordercolor",p.bordercolor),h("hoverlabel.namelength",p.namelength),l.coerceFont(h,"hoverlabel.font",p.font),h("hoverlabel.align",p.align)}},98212:function(o,a,n){var l=n(71828),f=n(528);o.exports=function(s,u){function d(h,p){return u[h]!==void 0?u[h]:l.coerce(s,u,f,h,p)}return d("clickmode"),d("hovermode")}},30211:function(o,a,n){var l=n(39898),f=n(71828),s=n(28569),u=n(23469),d=n(528),h=n(88335);o.exports={moduleType:"component",name:"fx",constants:n(26675),schema:{layout:d},attributes:n(77914),layoutAttributes:d,supplyLayoutGlobalDefaults:n(22774),supplyDefaults:n(54268),supplyLayoutDefaults:n(34938),calc:n(30732),getDistanceFunction:u.getDistanceFunction,getClosest:u.getClosest,inbox:u.inbox,quadrature:u.quadrature,appendArrayPointValue:u.appendArrayPointValue,castHoverOption:function(p,m,y){return f.castOption(p,m,"hoverlabel."+y)},castHoverinfo:function(p,m,y){return f.castOption(p,y,"hoverinfo",function(v){return f.coerceHoverinfo({hoverinfo:v},{_module:p._module},m)})},hover:h.hover,unhover:s.unhover,loneHover:h.loneHover,loneUnhover:function(p){var m=f.isD3Selection(p)?p:l.select(p);m.selectAll("g.hovertext").remove(),m.selectAll(".spikeline").remove()},click:n(75914)}},528:function(o,a,n){var l=n(26675),f=n(41940),s=f({editType:"none"});s.family.dflt=l.HOVERFONT,s.size.dflt=l.HOVERFONTSIZE,o.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:s,grouptitlefont:f({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(o,a,n){var l=n(71828),f=n(528),s=n(98212),u=n(38048);o.exports=function(d,h){function p(g,b){return l.coerce(d,h,f,g,b)}s(d,h)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var m=h._has("mapbox"),y=h._has("geo"),v=h._basePlotModules.length;h.dragmode==="zoom"&&((m||y)&&v===1||m&&y&&v===2)&&(h.dragmode="pan"),u(d,h,p),l.coerceFont(p,"hoverlabel.grouptitlefont",h.hoverlabel.font)}},22774:function(o,a,n){var l=n(71828),f=n(38048),s=n(528);o.exports=function(u,d){f(u,d,function(h,p){return l.coerce(u,d,s,h,p)})}},83312:function(o,a,n){var l=n(71828),f=n(30587).counter,s=n(27670).Y,u=n(85555).idRegex,d=n(44467),h={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[f("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[u.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[u.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:s({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function p(v,g,b){var x=g[b+"axes"],_=Object.keys((v._splomAxes||{})[b]||{});return Array.isArray(x)?x:_.length?_:void 0}function m(v,g,b,x,_,w){var k=g(v+"gap",b),T=g("domain."+v);g(v+"side",x);for(var M=new Array(_),S=T[0],C=(T[1]-S)/(_-k),P=C*(1-k),D=0;D<_;D++){var O=S+C*D;M[w?_-1-D:D]=[O,O+P]}return M}function y(v,g,b,x,_){var w,k=new Array(b);function T(M,S){g.indexOf(S)!==-1&&x[S]===void 0?(k[M]=S,x[S]=M):k[M]=""}if(Array.isArray(v))for(w=0;w1){T||M||S||$("pattern")==="independent"&&(T=!0),P._hasSubplotGrid=T;var R,F,A=$("roworder")==="top to bottom",z=T?.2:.1,B=T?.3:.1;C&&g._splomGridDflt&&(R=g._splomGridDflt.xside,F=g._splomGridDflt.yside),P._domains={x:m("x",$,z,R,O),y:m("y",$,B,F,D,A)}}else delete g.grid}function $(j,N){return l.coerce(b,P,h,j,N)}},contentDefaults:function(v,g){var b=g.grid;if(b&&b._domains){var x,_,w,k,T,M,S,C=v.grid||{},P=g._subplots,D=b._hasSubplotGrid,O=b.rows,R=b.columns,F=b.pattern==="independent",A=b._axisMap={};if(D){var z=C.subplots||[];M=b.subplots=new Array(O);var B=1;for(x=0;x(y==="legend"?1:0));if(B===!1&&(g[y]=void 0),(B!==!1||x.uirevision)&&(w("uirevision",g.uirevision),B!==!1)){w("borderwidth");var $,j,N,E=w("orientation")==="h",W=w("yref")==="paper",G=w("xref")==="paper",L="left";if(E?($=0,l.getComponentMethod("rangeslider","isVisible")(v.xaxis)?W?(j=1.1,N="bottom"):(j=1,N="top"):W?(j=-.1,N="top"):(j=0,N="bottom")):(j=1,N="auto",G?$=1.02:($=1,L="right")),f.coerce(x,_,{x:{valType:"number",editType:"legend",min:G?-2:0,max:G?3:1,dflt:$}},"x"),f.coerce(x,_,{y:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:j}},"y"),w("traceorder",O),p.isGrouped(g[y])&&w("tracegroupgap"),w("entrywidth"),w("entrywidthmode"),w("itemsizing"),w("itemwidth"),w("itemclick"),w("itemdoubleclick"),w("groupclick"),w("xanchor",L),w("yanchor",N),w("valign"),f.noneOrAll(x,_,["x","y"]),w("title.text")){w("title.side",E?"left":"top");var q=f.extendFlat({},k,{size:f.bigFont(k.size)});f.coerceFont(w,"title.font",q)}}}}o.exports=function(y,v,g){var b,x=g.slice(),_=v.shapes;if(_)for(b=0;b<_.length;b++){var w=_[b];if(w.showlegend){var k={_input:w._input,visible:w.visible,showlegend:w.showlegend,legend:w.legend};x.push(k)}}var T=["legend"];for(b=0;b1)}var X=q.hiddenlabels||[];if(!(V||q.showlegend&&te.length))return G.selectAll("."+H).remove(),q._topdefs.select("#"+W).remove(),s.autoMargin(N,H);var re=f.ensureSingle(G,"g",H,function(ce){V||ce.attr("pointer-events","all")}),ie=f.ensureSingleById(q._topdefs,"clipPath",W,function(ce){ce.append("rect")}),le=f.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});le.call(m.stroke,L.bordercolor).call(m.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,pe=f.ensureSingle(re,"g","scrollbox"),Te=L.title;L._titleWidth=0,L._titleHeight=0,Te.text?((se=f.ensureSingle(pe,"text",H+"titletext")).attr("text-anchor","start").call(p.font,Te.font).text(Te.text),z(se,pe,N,L,S)):pe.selectAll("."+H+"titletext").remove();var Se=f.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(g.scrollBarEnterAttrs).call(m.fill,g.scrollBarColor)}),Oe=pe.selectAll("g.groups").data(te);Oe.enter().append("g").attr("class","groups"),Oe.exit().remove();var Me=Oe.selectAll("g.traces").data(f.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var ye=ce[0].trace;return u.traceIs(ye,"pie-like")?X.indexOf(ce[0].label)!==-1?.5:1:ye.visible==="legendonly"?.5:1}).each(function(){l.select(this).call(R,N,L)}).call(T,N,L).each(function(){V||l.select(this).call(A,N,H)}),f.syncOrAsync([s.previousPromises,function(){return function(ce,ye,J,ne){var de=ce._fullLayout,xe=j(ne);ne||(ne=de[xe]);var ue=de._size,ge=M.isVertical(ne),be=M.isGrouped(ne),we=ne.entrywidthmode==="fraction",ke=ne.borderwidth,Ae=2*ke,Ee=g.itemGap,De=ne.itemwidth+2*Ee,Re=2*(ke+Ee),Ie=$(ne),Be=ne.y<0||ne.y===0&&Ie==="top",Ue=ne.y>1||ne.y===1&&Ie==="bottom",qe=ne.tracegroupgap,Ye={};ne._maxHeight=Math.max(Be||Ue?de.height/2:ue.h,30);var at=0;ne._width=0,ne._height=0;var lt=function(Ge){var Ke=0,nt=0,st=Ge.title.side;return st&&(st.indexOf("left")!==-1&&(Ke=Ge._titleWidth),st.indexOf("top")!==-1&&(nt=Ge._titleHeight)),[Ke,nt]}(ne);if(ge)J.each(function(Ge){var Ke=Ge[0].height;p.setTranslate(this,ke+lt[0],ke+lt[1]+ne._height+Ke/2+Ee),ne._height+=Ke,ne._width=Math.max(ne._width,Ge[0].width)}),at=De+ne._width,ne._width+=Ee+De+Ae,ne._height+=Re,be&&(ye.each(function(Ge,Ke){p.setTranslate(this,0,Ke*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var ct=B(ne),bt=ne.x<0||ne.x===0&&ct==="right",ze=ne.x>1||ne.x===1&&ct==="left",Ne=Ue||Be,Qe=de.width/2;ne._maxWidth=Math.max(bt?Ne&&ct==="left"?ue.l+ue.w:Qe:ze?Ne&&ct==="right"?ue.r+ue.w:Qe:ue.w,2*De);var it=0,kt=0;J.each(function(Ge){var Ke=D(Ge,ne,De);it=Math.max(it,Ke),kt+=Ke}),at=null;var Je=0;if(be){var ut=0,pt=0,It=0;ye.each(function(){var Ge=0,Ke=0;l.select(this).selectAll("g.traces").each(function(st){var mt=D(st,ne,De),tt=st[0].height;p.setTranslate(this,lt[0],lt[1]+ke+Ee+tt/2+Ke),Ke+=tt,Ge=Math.max(Ge,mt),Ye[st[0].trace.legendgroup]=Ge});var nt=Ge+Ee;pt>0&&nt+ke+pt>ne._maxWidth?(Je=Math.max(Je,pt),pt=0,It+=ut+qe,ut=Ke):ut=Math.max(ut,Ke),p.setTranslate(this,pt,It),pt+=nt}),ne._width=Math.max(Je,pt)+ke,ne._height=It+ut+Re}else{var Mt=J.size(),zt=kt+Ae+(Mt-1)*Ee=ne._maxWidth&&(Je=Math.max(Je,Ve),ve=0,_e+=wt,ne._height+=wt,wt=0),p.setTranslate(this,lt[0]+ke+ve,lt[1]+ke+_e+Ke/2+Ee),Ve=ve+nt+Ee,ve+=st,wt=Math.max(wt,Ke)}),zt?(ne._width=ve+Ae,ne._height=wt+Re):(ne._width=Math.max(Je,Ve)+Ae,ne._height+=wt+Re)}}ne._width=Math.ceil(Math.max(ne._width+lt[0],ne._titleWidth+2*(ke+g.titlePad))),ne._height=Math.ceil(Math.max(ne._height+lt[1],ne._titleHeight+2*(ke+g.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var We=ce._context.edits,Ze=We.legendText||We.legendPosition;J.each(function(Ge){var Ke=l.select(this).select("."+xe+"toggle"),nt=Ge[0].height,st=Ge[0].trace.legendgroup,mt=D(Ge,ne,De);be&&st!==""&&(mt=Ye[st]);var tt=Ze?De:at||mt;ge||we||(tt+=Ee/2),p.setRect(Ke,0,-nt/2,tt,nt)})}(N,Oe,Me,L)},function(){var ce,ye,J,ne,de=q._size,xe=L.borderwidth,ue=L.xref==="paper",ge=L.yref==="paper";if(Te.text&&function(Ne,Qe,it){if(Qe.title.side==="top center"||Qe.title.side==="top right"){var kt=Qe.title.font.size*x,Je=0,ut=Ne.node(),pt=p.bBox(ut).width;Qe.title.side==="top center"?Je=.5*(Qe._width-2*it-2*g.titlePad-pt):Qe.title.side==="top right"&&(Je=Qe._width-2*it-2*g.titlePad-pt),y.positionText(Ne,it+g.titlePad+Je,it+kt)}}(se,L,xe),!V){var be,we;be=ue?de.l+de.w*L.x-_[B(L)]*L._width:q.width*L.x-_[B(L)]*L._width,we=ge?de.t+de.h*(1-L.y)-_[$(L)]*L._effHeight:q.height*(1-L.y)-_[$(L)]*L._effHeight;var ke=function(Ne,Qe,it,kt){var Je=Ne._fullLayout,ut=Je[Qe],pt=B(ut),It=$(ut),Mt=ut.xref==="paper",zt=ut.yref==="paper";Ne._fullLayout._reservedMargin[Qe]={};var wt=ut.y<.5?"b":"t",ve=ut.x<.5?"l":"r",_e={r:Je.width-it,l:it+ut._width,b:Je.height-kt,t:kt+ut._effHeight};if(Mt&&zt)return s.autoMargin(Ne,Qe,{x:ut.x,y:ut.y,l:ut._width*_[pt],r:ut._width*w[pt],b:ut._effHeight*w[It],t:ut._effHeight*_[It]});Mt?Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]:zt||ut.orientation==="v"?Ne._fullLayout._reservedMargin[Qe][ve]=_e[ve]:Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]}(N,H,be,we);if(ke)return;if(q.margin.autoexpand){var Ae=be,Ee=we;be=ue?f.constrain(be,0,q.width-L._width):Ae,we=ge?f.constrain(we,0,q.height-L._effHeight):Ee,be!==Ae&&f.log("Constrain "+H+".x to make legend fit inside graph"),we!==Ee&&f.log("Constrain "+H+".y to make legend fit inside graph")}p.setTranslate(re,be,we)}if(Se.on(".drag",null),re.on("wheel",null),V||L._height<=L._maxHeight||N._context.staticPlot){var De=L._effHeight;V&&(De=L._height),le.attr({width:L._width-xe,height:De-xe,x:xe/2,y:xe/2}),p.setTranslate(pe,0,0),ie.select("rect").attr({width:L._width-2*xe,height:De-2*xe,x:xe,y:xe}),p.setClipUrl(pe,W,N),p.setRect(Se,0,0,0,0),delete L._scrollY}else{var Re,Ie,Be,Ue=Math.max(g.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*g.scrollBarMargin,Ye=L._height-L._effHeight,at=qe/Ye,lt=Math.min(L._scrollY||0,Ye);le.attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-xe,x:xe/2,y:xe/2}),ie.select("rect").attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-2*xe,x:xe,y:xe+lt}),p.setClipUrl(pe,W,N),ze(lt,Ue,at),re.on("wheel",function(){ze(lt=f.constrain(L._scrollY+l.event.deltaY/qe*Ye,0,Ye),Ue,at),lt!==0&<!==Ye&&l.event.preventDefault()});var ct=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Re=Ne.type==="touchstart"?Ne.changedTouches[0].clientY:Ne.clientY,Be=lt}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ie=Ne.type==="touchmove"?Ne.changedTouches[0].clientY:Ne.clientY,lt=function(Qe,it,kt){var Je=(kt-it)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});Se.call(ct);var bt=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Ne.type==="touchstart"&&(Re=Ne.changedTouches[0].clientY,Be=lt)}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.type==="touchmove"&&(Ie=Ne.changedTouches[0].clientY,lt=function(Qe,it,kt){var Je=(it-kt)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});pe.call(bt)}function ze(Ne,Qe,it){L._scrollY=N._fullLayout[H]._scrollY=Ne,p.setTranslate(pe,0,-Ne),p.setRect(Se,L._width,g.scrollBarMargin+Ne*it,g.scrollBarWidth,Qe),ie.select("rect").attr("y",xe+Ne)}N._context.edits.legendPosition&&(re.classed("cursor-move",!0),h.init({element:re.node(),gd:N,prepFn:function(){var Ne=p.getTranslate(re);J=Ne.x,ne=Ne.y},moveFn:function(Ne,Qe){var it=J+Ne,kt=ne+Qe;p.setTranslate(re,it,kt),ce=h.align(it,L._width,de.l,de.l+de.w,L.xanchor),ye=h.align(kt+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&ye!==void 0){var Ne={};Ne[H+".x"]=ce,Ne[H+".y"]=ye,u.call("_guiRelayout",N,Ne)}},clickFn:function(Ne,Qe){var it=G.selectAll("g.traces").filter(function(){var kt=this.getBoundingClientRect();return Qe.clientX>=kt.left&&Qe.clientX<=kt.right&&Qe.clientY>=kt.top&&Qe.clientY<=kt.bottom});it.size()>0&&O(N,re,it,Ne,Qe)}}))}],N)}}function D(N,E,W){var G=N[0],L=G.width,q=E.entrywidthmode,H=G.trace.legendwidth||E.entrywidth;return q==="fraction"?E._maxWidth*H:W+(H||L)}function O(N,E,W,G,L){var q=W.data()[0][0].trace,H={event:L,node:W.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};q._group&&(H.group=q._group),u.traceIs(q,"pie-like")&&(H.label=W.datum()[0].label);var V=d.triggerHandler(N,"plotly_legendclick",H);if(G===1){if(V===!1)return;E._clickTimeout=setTimeout(function(){N._fullLayout&&v(W,N,G)},N._context.doubleClickDelay)}else G===2&&(E._clickTimeout&&clearTimeout(E._clickTimeout),N._legendMouseDownTime=0,d.triggerHandler(N,"plotly_legenddoubleclick",H)!==!1&&V!==!1&&v(W,N,G))}function R(N,E,W){var G,L,q=j(W),H=N.data()[0][0],V=H.trace,te=u.traceIs(V,"pie-like"),ee=!W._inHover&&E._context.edits.legendText&&!te,U=W._maxNameLength;H.groupTitle?(G=H.groupTitle.text,L=H.groupTitle.font):(L=W.font,W.entries?G=H.text:(G=te?H.label:V.name,V._meta&&(G=f.templateString(G,V._meta))));var Q=f.ensureSingle(N,"text",q+"text");Q.attr("text-anchor","start").call(p.font,L).text(ee?F(G,U):G);var Y=W.itemwidth+2*g.itemGap;y.positionText(Q,Y,0),ee?Q.call(y.makeEditable,{gd:E,text:G}).call(z,N,E,W).on("edit",function(Z){this.text(F(Z,U)).call(z,N,E,W);var X=H.trace._fullInput||{},re={};if(u.hasTransform(X,"groupby")){var ie=u.getTransformIndices(X,"groupby"),le=ie[ie.length-1],se=f.keyedContainer(X,"transforms["+le+"].styles","target","value.name");se.set(H.trace._group,Z),re=se.constructUpdate()}else re.name=Z;return X._isShape?u.call("_guiRelayout",E,"shapes["+V.index+"].name",re.name):u.call("_guiRestyle",E,re,V.index)}):z(Q,N,E,W)}function F(N,E){var W=Math.max(4,E);if(N&&N.trim().length>=W/2)return N;for(var G=W-(N=N||"").length;G>0;G--)N+=" ";return N}function A(N,E,W){var G,L=E._context.doubleClickDelay,q=1,H=f.ensureSingle(N,"rect",W+"toggle",function(V){E._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(m.fill,"rgba(0,0,0,0)")});E._context.staticPlot||(H.on("mousedown",function(){(G=new Date().getTime())-E._legendMouseDownTimeL&&(q=Math.max(q-1,1)),O(E,V,N,q,l.event)}}))}function z(N,E,W,G,L){G._inHover&&N.attr("data-notex",!0),y.convertToTspans(N,W,function(){(function(q,H,V,te){var ee=q.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var U=q.select("g[class*=math-group]"),Q=U.node(),Y=j(V);V||(V=H._fullLayout[Y]);var Z,X,re=V.borderwidth,ie=(te===S?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*x;if(Q){var le=p.bBox(Q);Z=le.height,X=le.width,te===S?p.setTranslate(U,re,re+.75*Z):p.setTranslate(U,0,.25*Z)}else{var se="."+Y+(te===S?"title":"")+"text",pe=q.select(se),Te=y.lineCount(pe),Se=pe.node();if(Z=ie*Te,X=Se?p.bBox(Se).width:0,te===S)V.title.side==="left"&&(X+=2*g.itemGap),y.positionText(pe,re+g.titlePad,re+ie);else{var Oe=2*g.itemGap+V.itemwidth;ee.groupTitle&&(Oe=g.itemGap,X-=V.itemwidth),y.positionText(pe,Oe,-ie*((Te-1)/2-.3))}}te===S?(V._titleWidth=X,V._titleHeight=Z):(ee.lineHeight=ie,ee.height=Math.max(Z,16)+3,ee.width=X)}else q.remove()})(E,W,G,L)})}function B(N){return f.isRightAnchor(N)?"right":f.isCenterAnchor(N)?"center":"left"}function $(N){return f.isBottomAnchor(N)?"bottom":f.isMiddleAnchor(N)?"middle":"top"}function j(N){return N._id||"legend"}o.exports=function(N,E){if(E)P(N,E);else{var W=N._fullLayout,G=W._legends;W._infolayer.selectAll('[class^="legend"]').each(function(){var H=l.select(this),V=H.attr("class").split(" ")[0];V.match(C)&&G.indexOf(V)===-1&&H.remove()});for(var L=0;LB&&(z=B)}F[h][0]._groupMinRank=z,F[h][0]._preGroupSort=h}var $=function(G,L){return G.trace.legendrank-L.trace.legendrank||G._preSort-L._preSort};for(F.forEach(function(G,L){G[0]._preGroupSort=L}),F.sort(function(G,L){return G[0]._groupMinRank-L[0]._groupMinRank||G[0]._preGroupSort-L[0]._preGroupSort}),h=0;hT?T:w}o.exports=function(w,k,T){var M=k._fullLayout;T||(T=M.legend);var S=T.itemsizing==="constant",C=T.itemwidth,P=(C+2*g.itemGap)/2,D=u(P,0),O=function(A,z,B,$){var j;if(A+1)j=A;else{if(!(z&&z.width>0))return 0;j=z.width}return S?$:Math.min(j,B)};function R(A,z,B){var $=A[0].trace,j=$.marker||{},N=j.line||{},E=B?$.visible&&$.type===B:f.traceIs($,"bar"),W=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(E?[A]:[]);W.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),W.exit().remove(),W.each(function(G){var L=l.select(this),q=G[0],H=O(q.mlw,j.line,5,2);L.style("stroke-width",H+"px");var V=q.mcc;if(!T._inHover&&"mc"in q){var te=p(j),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),V=d.tryColorscale(j,"")(ee)}var U=V||q.mc||j.color,Q=j.pattern,Y=Q&&d.getPatternAttr(Q.shape,0,"");if(Y){var Z=d.getPatternAttr(Q.bgcolor,0,null),X=d.getPatternAttr(Q.fgcolor,0,null),re=Q.fgopacity,ie=_(Q.size,8,10),le=_(Q.solidity,.5,1),se="legend-"+$.uid;L.call(d.pattern,"legend",k,se,Y,ie,le,V,Q.fillmode,Z,X,re)}else L.call(h.fill,U);H&&h.stroke(L,q.mlc||N.color)})}function F(A,z,B){var $=A[0],j=$.trace,N=B?j.visible&&j.type===B:f.traceIs(j,B),E=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(N?[A]:[]);if(E.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),E.exit().remove(),E.size()){var W=j.marker||{},G=O(v(W.line.width,$.pts),W.line,5,2),L="pieLike",q=s.minExtend(j,{marker:{line:{width:G}}},L),H=s.minExtend($,{trace:q},L);y(E,H,q,k)}}w.each(function(A){var z=l.select(this),B=s.ensureSingle(z,"g","layers");B.style("opacity",A[0].trace.opacity);var $=T.valign,j=A[0].lineHeight,N=A[0].height;if($!=="middle"&&j&&N){var E={top:1,bottom:-1}[$]*(.5*(j-N+3));B.attr("transform",u(0,E))}else B.attr("transform",null);B.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),B.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var W=B.selectAll("g.legendsymbols").data([A]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var z,B=A[0].trace,$=[];if(B.visible)switch(B.type){case"histogram2d":case"heatmap":$=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":$=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":$=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":$=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],z=!1;break;case"streamtube":$=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],z=!1;break;case"surface":$=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],z=!0;break;case"mesh3d":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1}var j=l.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data($);j.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(N,E){var W,G=l.select(this),L=p(B),q=L.colorscale,H=L.reversescale;if(q){if(!z){var V=q.length;W=E===0?q[H?V-1:0][1]:E===1?q[H?0:V-1][1]:q[Math.floor((V-1)/2)][1]}}else{var te=B.vertexcolor||B.facecolor||B.color;W=s.isArrayOrTypedArray(te)?te[E]||te[0]:te}G.attr("d",N[0]),W?G.call(h.fill,W):G.call(function(ee){if(ee.size()){var U="legendfill-"+B.uid;d.gradient(ee,k,U,b(H,z==="radial"),q,"fill")}})})}).each(function(A){var z=A[0].trace,B=z.type==="waterfall";if(A[0]._distinct&&B){var $=A[0].trace[A[0].dir].marker;return A[0].mc=$.color,A[0].mlw=$.line.width,A[0].mlc=$.line.color,R(A,this,"waterfall")}var j=[];z.visible&&B&&(j=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=l.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(j);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(E){var W=l.select(this),G=z[E[0]].marker,L=O(void 0,G.line,5,2);W.attr("d",E[1]).style("stroke-width",L+"px").call(h.fill,G.color),L&&W.call(h.stroke,G.line.color)})}).each(function(A){R(A,this,"funnel")}).each(function(A){R(A,this)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendbox").data(z.visible&&f.traceIs(z,"box-violin")?[A]:[]);B.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),B.exit().remove(),B.each(function(){var $=l.select(this);if(z.boxpoints!=="all"&&z.points!=="all"||h.opacity(z.fillcolor)!==0||h.opacity((z.line||{}).color)!==0){var j=O(void 0,z.line,5,2);$.style("stroke-width",j+"px").call(h.fill,z.fillcolor),j&&h.stroke($,z.line.color)}else{var N=s.minExtend(z,{marker:{size:S?12:s.constrain(z.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});B.call(d.pointStyle,N,k)}})}).each(function(A){F(A,this,"funnelarea")}).each(function(A){F(A,this,"pie")}).each(function(A){var z,B,$=x(A),j=$.showFill,N=$.showLine,E=$.showGradientLine,W=$.showGradientFill,G=$.anyFill,L=$.anyLine,q=A[0],H=q.trace,V=p(H),te=V.colorscale,ee=V.reversescale,U=m.hasMarkers(H)||!G?"M5,0":L?"M5,-2":"M5,-3",Q=l.select(this),Y=Q.select(".legendfill").selectAll("path").data(j||W?[A]:[]);if(Y.enter().append("path").classed("js-fill",!0),Y.exit().remove(),Y.attr("d",U+"h"+C+"v6h-"+C+"z").call(function(re){if(re.size())if(j)d.fillGroupStyle(re,k);else{var ie="legendfill-"+H.uid;d.gradient(re,k,ie,b(ee),te,"fill")}}),N||E){var Z=O(void 0,H.line,10,5);B=s.minExtend(H,{line:{width:Z}}),z=[s.minExtend(q,{trace:B})]}var X=Q.select(".legendlines").selectAll("path").data(N||E?[z]:[]);X.enter().append("path").classed("js-line",!0),X.exit().remove(),X.attr("d",U+(E?"l"+C+",0.0001":"h"+C)).call(N?d.lineGroupStyle:function(re){if(re.size()){var ie="legendline-"+H.uid;d.lineGroupStyle(re),d.gradient(re,k,ie,b(ee),te,"stroke")}})}).each(function(A){var z,B,$=x(A),j=$.anyFill,N=$.anyLine,E=$.showLine,W=$.showMarker,G=A[0],L=G.trace,q=!W&&!N&&!j&&m.hasText(L);function H(X,re,ie,le){var se=s.nestedProperty(L,X).get(),pe=s.isArrayOrTypedArray(se)&&re?re(se):se;if(S&&pe&&le!==void 0&&(pe=le),ie){if(peie[1])return ie[1]}return pe}function V(X){return G._distinct&&G.index&&X[G.index]?X[G.index]:X[0]}if(W||q||E){var te={},ee={};if(W){te.mc=H("marker.color",V),te.mx=H("marker.symbol",V),te.mo=H("marker.opacity",s.mean,[.2,1]),te.mlc=H("marker.line.color",V),te.mlw=H("marker.line.width",s.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var U=H("marker.size",s.mean,[2,16],12);te.ms=U,ee.marker.size=U}E&&(ee.line={width:H("line.width",V,[0,10],5)}),q&&(te.tx="Aa",te.tp=H("textposition",V),te.ts=10,te.tc=H("textfont.color",V),te.tf=H("textfont.family",V)),z=[s.minExtend(G,te)],(B=s.minExtend(L,ee)).selectedpoints=null,B.texttemplate=null}var Q=l.select(this).select("g.legendpoints"),Y=Q.selectAll("path.scatterpts").data(W?z:[]);Y.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),Y.exit().remove(),Y.call(d.pointStyle,B,k),W&&(z[0].mrc=3);var Z=Q.selectAll("g.pointtext").data(q?z:[]);Z.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),Z.exit().remove(),Z.selectAll("text").call(d.textPointStyle,B,k)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(z.visible&&z.type==="candlestick"?[A,A]:[]);B.enter().append("path").classed("legendcandle",!0).attr("d",function($,j){return j?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("stroke-width",W+"px").call(h.fill,E.fillcolor),W&&h.stroke(N,E.line.color)})}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(z.visible&&z.type==="ohlc"?[A,A]:[]);B.enter().append("path").classed("legendohlc",!0).attr("d",function($,j){return j?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("fill","none").call(d.dashLine,E.line.dash,W),W&&h.stroke(N,E.line.color)})})}},42068:function(o,a,n){n(93348),o.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(o,a,n){var l=n(73972),f=n(74875),s=n(41675),u=n(24255),d=n(34031).eraseActiveShape,h=n(71828),p=h._,m=o.exports={};function y(M,S){var C,P,D=S.currentTarget,O=D.getAttribute("data-attr"),R=D.getAttribute("data-val")||!0,F=M._fullLayout,A={},z=s.list(M,null,!0),B=F._cartesianSpikesEnabled;if(O==="zoom"){var $,j=R==="in"?.5:2,N=(1+j)/2,E=(1-j)/2;for(P=0;P1?(U=["toggleHover"],Q=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],U=["hoverClosestGeo"],Q=["resetGeo"]):F?(U=["hoverClosest3d"],Q=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],U=["toggleHover"],Q=["resetViewMapbox"]):$?U=["hoverClosestGl2d"]:z?U=["hoverClosestPie"]:G?(U=["hoverClosestCartesian","hoverCompareCartesian"],Q=["resetViewSankey"]):U=["toggleHover"],R&&(U=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var pe=0;pe0)){var k=function(M,S,C){for(var P=C.filter(function(F){return S[F].anchor===M._id}),D=0,O=0;O=Se.max)pe=re[Te+1];else if(se=Se.pmax)pe=re[Te+1];else if(seTe._length||ge+Ie<0)return;Ee=ue+Ie,De=ge+Ie;break;case Me:if(Re="col-resize",ue+Ie>Te._length)return;Ee=ue+Ie,De=ge;break;case ce:if(Re="col-resize",ge+Ie<0)return;Ee=ue,De=ge+Ie;break;default:Re="ew-resize",Ee=xe,De=xe+Ie}if(De=0;$--){var j=S.append("path").attr(P).style("opacity",$?.1:D).call(u.stroke,R).call(u.fill,O).call(d.dashLine,$?"solid":A,$?4+F:F);if(b(j,_,T),z){var N=h(_.layout,"selections",T);j.style({cursor:"move"});var E={element:j.node(),plotinfo:M,gd:_,editHelpers:N,isActiveSelection:!0},W=l(C,_);f(W,j,E)}else j.style("pointer-events",$?"all":"none");B[$]=j}var G=B[0];B[1].node().addEventListener("click",function(){return function(L,q){if(v(L)){var H=+q.node().getAttribute("data-index");if(H>=0){if(H===L._fullLayout._activeSelectionIndex)return void x(L);L._fullLayout._activeSelectionIndex=H,L._fullLayout._deactivateSelection=x,y(L)}}}(_,G)})}(_._fullLayout._selectionLayer)}function b(_,w,k){var T=k.xref+k.yref;d.setClipUrl(_,"clip"+w._fullLayout._uid+T,w)}function x(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(s(_),delete _._fullLayout._activeSelectionIndex,y(_))}o.exports={draw:y,drawOne:g,activateLastSelection:function(_){if(v(_)){var w=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=w,_._fullLayout._deactivateSelection=x,y(_)}}}},53777:function(o,a,n){var l=n(79952).P,f=n(1426).extendFlat;o.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:f({},l,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(o){o.exports=function(a,n,l){l("newselection.mode"),l("newselection.line.width")&&(l("newselection.line.color"),l("newselection.line.dash")),l("activeselection.fillcolor"),l("activeselection.opacity")}},35855:function(o,a,n){var l=n(64505).selectMode,f=n(51873).clearOutline,s=n(60165),u=s.readPaths,d=s.writePaths,h=s.fixDatesForPaths;o.exports=function(p,m){if(p.length){var y=p[0][0];if(y){var v=y.getAttribute("d"),g=m.gd,b=g._fullLayout.newselection,x=m.plotinfo,_=x.xaxis,w=x.yaxis,k=m.isActiveSelection,T=m.dragmode,M=(g.layout||{}).selections||[];if(!l(T)&&k!==void 0){var S=g._fullLayout._activeSelectionIndex;if(S-1,kt=[];if(function(Mt){return Mt&&Array.isArray(Mt)&&Mt[0].hoverOnBox!==!0}(Qe)){Z(ke,Ae,Ie);var Je=function(Mt,zt){var wt,ve,_e=Mt[0],Ve=-1,We=[];for(ve=0;ve0?function(Mt,zt){var wt,ve,_e,Ve=[];for(_e=0;_e0&&Ve.push(wt);if(Ve.length===1&&Ve[0]===zt.searchInfo&&(ve=zt.searchInfo.cd[0].trace).selectedpoints.length===zt.pointNumbers.length){for(_e=0;_e1||(ve+=zt.selectedpoints.length)>1))return!1;return ve===1}(Ue)&&(ct=se(Je))){for(Be&&Be.remove(),Ne=0;Ne=0})(Re)&&Re._fullLayout._deactivateShape(Re),function(lt){return lt._fullLayout._activeSelectionIndex>=0}(Re)&&Re._fullLayout._deactivateSelection(Re);var Ie=Re._fullLayout._zoomlayer,Be=g(Ee),Ue=x(Ee);if(Be||Ue){var qe,Ye,at=Ie.selectAll(".select-outline-"+De.id);at&&Re._fullLayout._outlining&&(Be&&(qe=P(at,ke)),qe&&s.call("_guiRelayout",Re,{shapes:qe}),Ue&&!te(ke)&&(Ye=D(at,ke)),Ye&&(Re._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",Re,{selections:Ye}).then(function(){Ae&&O(Re)})),Re._fullLayout._outlining=!1)}De.selection={},De.selection.selectionDefs=ke.selectionDefs=[],De.selection.mergedPolygons=ke.mergedPolygons=[]}function re(ke){return ke._id}function ie(ke,Ae,Ee,De){if(!ke.calcdata)return[];var Re,Ie,Be,Ue=[],qe=Ae.map(re),Ye=Ee.map(re);for(Be=0;Be0?De[0]:Ee;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf(Re)>-1}function pe(ke,Ae,Ee){var De,Re;for(De=0;De-1&&Ae;if(!Ie&&Ae){var Ot=ne(ke,!0);if(Ot.length){var At=Ot[0].xref,Lt=Ot[0].yref;if(At&&Lt){var Rt=ue(Ot);ge([B(ke,At,"x"),B(ke,Lt,"y")])(jt,Rt)}}ke._fullLayout._noEmitSelectedAtStart?ke._fullLayout._noEmitSelectedAtStart=!1:Tt&&be(ke,jt),ct._reselect=!1}if(!Ie&&ct._deselect){var $t=ct._deselect;(function(Yt,Xt,Bt){for(var Wt=0;Wt=0)bt._fullLayout._deactivateShape(bt);else if(!Ye){var Rt=ze.clickmode;z.done(Et).then(function(){if(z.clear(Et),At===2){for(Nt.remove(),_e=0;_e-1&&ee(Lt,bt,De.xaxes,De.yaxes,De.subplot,De,Nt),Rt==="event"&&be(bt,void 0);h.click(bt,Lt,kt.id)}).catch(R.error)}},De.doneFn=function(){yt.remove(),z.done(Et).then(function(){z.clear(Et),!Ne&&ve&&De.selectionDefs&&(ve.subtract=St,De.selectionDefs.push(ve),De.mergedPolygons.length=0,[].push.apply(De.mergedPolygons,wt)),(Ne||Ye)&&X(De,Ne),De.doneFnCompleted&&De.doneFnCompleted(jt),at&&be(bt,We)}).catch(R.error)}},clearOutline:T,clearSelectionsCache:X,selectOnClick:ee}},89827:function(o,a,n){var l=n(50215),f=n(41940),s=n(82196).line,u=n(79952).P,d=n(1426).extendFlat,h=n(44467).templatedArray,p=(n(24695),n(9012)),m=n(5386).R,y=n(37281);o.exports=h("shape",{visible:d({},p.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:d({},p.legend,{editType:"calc+arraydraw"}),legendgroup:d({},p.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:d({},p.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:f({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:d({},p.legendrank,{editType:"calc+arraydraw"}),legendwidth:d({},p.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:d({},l.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:d({},l.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:d({},s.color,{editType:"arraydraw"}),width:d({},s.width,{editType:"calc+arraydraw"}),dash:d({},u,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:m({},{keys:Object.keys(y)}),font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(o,a,n){var l=n(71828),f=n(89298),s=n(21459),u=n(30477);function d(y){return p(y.line.width,y.xsizemode,y.x0,y.x1,y.path,!1)}function h(y){return p(y.line.width,y.ysizemode,y.y0,y.y1,y.path,!0)}function p(y,v,g,b,x,_){var w=y/2,k=_;if(v==="pixel"){var T=x?u.extractPathCoords(x,_?s.paramIsY:s.paramIsX):[g,b],M=l.aggNums(Math.max,null,T),S=l.aggNums(Math.min,null,T),C=S<0?Math.abs(S)+w:w,P=M>0?M+w:w;return{ppad:w,ppadplus:k?C:P,ppadminus:k?P:C}}return{ppad:w}}function m(y,v,g,b,x){var _=y.type==="category"||y.type==="multicategory"?y.r2c:y.d2c;if(v!==void 0)return[_(v),_(g)];if(b){var w,k,T,M,S=1/0,C=-1/0,P=b.match(s.segmentRE);for(y.type==="date"&&(_=u.decodeDate(_)),w=0;wC&&(C=M)));return C>=S?[S,C]:void 0}}o.exports=function(y){var v=y._fullLayout,g=l.filterVisible(v.shapes);if(g.length&&y._fullData.length)for(var b=0;b=re?ie-se:se-ie,-180/Math.PI*Math.atan2(pe,Te)}(C,D,P,O):0),A.call(function(re){return re.call(u.font,F).attr({}),s.convertToTspans(re,v),re});var Q=function(re,ie,le,se,pe,Te,Se){var Oe,Me,ce,ye,J=pe.label.textposition,ne=pe.label.textangle,de=pe.label.padding,xe=pe.type,ue=Math.PI/180*Te,ge=Math.sin(ue),be=Math.cos(ue),we=pe.label.xanchor,ke=pe.label.yanchor;if(xe==="line"){J==="start"?(Oe=re,Me=ie):J==="end"?(Oe=le,Me=se):(Oe=(re+le)/2,Me=(ie+se)/2),we==="auto"&&(we=J==="start"?ne==="auto"?le>re?"left":lere?"right":lere?"right":lere?"left":le1&&(Oe.length!==2||Oe[1][0]!=="Z")&&(G===0&&(Oe[0][0]="M"),R[W]=Oe,$(),j())}}()}}function re(pe,Te){(function(Se,Oe){if(R.length)for(var Me=0;MeMe?(J=Se,ue="y0",ne=Me,ge="y1"):(J=Me,ue="y1",ne=Se,ge="y0"),ut(wt),Mt(se,ie),function(ve,_e,Ve){var We=_e.xref,Ze=_e.yref,Ge=u.getFromId(Ve,We),Ke=u.getFromId(Ve,Ze),nt="";We==="paper"||Ge.autorange||(nt+=We),Ze==="paper"||Ke.autorange||(nt+=Ze),v.setClipUrl(ve,nt?"clip"+Ve._fullLayout._uid+nt:null,Ve)}(re,ie,X),Je.moveFn=Ae==="move"?pt:It,Je.altKey=wt.altKey)},doneFn:function(){M(X)||(x(re),zt(se),P(re,X,ie),f.call("_guiRelayout",X,pe.getUpdateObj()))},clickFn:function(){M(X)||zt(se)}};function ut(wt){if(M(X))Ae=null;else if(Be)Ae=wt.target.tagName==="path"?"move":wt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ve=Je.element.getBoundingClientRect(),_e=ve.right-ve.left,Ve=ve.bottom-ve.top,We=wt.clientX-ve.left,Ze=wt.clientY-ve.top,Ge=!Ue&&_e>Ee&&Ve>De&&!wt.shiftKey?b.getCursor(We/_e,1-Ze/Ve):"move";x(re,Ge),Ae=Ge.split("-")[0]}}function pt(wt,ve){if(ie.type==="path"){var _e=function(Ze){return Ze},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(Ze){return Qe(ze(Ze)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(Ze){return it(Ne(Ze)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(qe("x0",ie.x0=Qe(Te+wt)),qe("x1",ie.x1=Qe(Oe+wt))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(qe("y0",ie.y0=it(Se+ve)),qe("y1",ie.y1=it(Me+ve)));re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function It(wt,ve){if(Ue){var _e=function(ht){return ht},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(ht){return Qe(ze(ht)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(ht){return it(Ne(ht)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else if(Be){if(Ae==="resize-over-start-point"){var Ze=Te+wt,Ge=Ie?Se-ve:Se+ve;qe("x0",ie.x0=Re?Ze:Qe(Ze)),qe("y0",ie.y0=Ie?Ge:it(Ge))}else if(Ae==="resize-over-end-point"){var Ke=Oe+wt,nt=Ie?Me-ve:Me+ve;qe("x1",ie.x1=Re?Ke:Qe(Ke)),qe("y1",ie.y1=Ie?nt:it(nt))}}else{var st=function(ht){return Ae.indexOf(ht)!==-1},mt=st("n"),tt=st("s"),Ft=st("w"),Vt=st("e"),St=mt?J+ve:J,Nt=tt?ne+ve:ne,Dt=Ft?de+wt:de,gt=Vt?xe+wt:xe;Ie&&(mt&&(St=J-ve),tt&&(Nt=ne-ve)),(!Ie&&Nt-St>De||Ie&&St-Nt>De)&&(qe(ue,ie[ue]=Ie?St:it(St)),qe(ge,ie[ge]=Ie?Nt:it(Nt))),gt-Dt>Ee&&(qe(be,ie[be]=Re?Dt:Qe(Dt)),qe(we,ie[we]=Re?gt:Qe(gt)))}re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function Mt(wt,ve){(Re||Ie)&&function(){var _e=ve.type!=="path",Ve=wt.selectAll(".visual-cue").data([0]);Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var We=ze(Re?ve.xanchor:s.midRange(_e?[ve.x0,ve.x1]:w.extractPathCoords(ve.path,_.paramIsX))),Ze=Ne(Ie?ve.yanchor:s.midRange(_e?[ve.y0,ve.y1]:w.extractPathCoords(ve.path,_.paramIsY)));if(We=w.roundPositionForSharpStrokeRendering(We,1),Ze=w.roundPositionForSharpStrokeRendering(Ze,1),Re&&Ie){var Ge="M"+(We-1-1)+","+(Ze-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",Ge)}else if(Re){var Ke="M"+(We-1-1)+","+(Ze-9-1)+"v18 h2 v-18 Z";Ve.attr("d",Ke)}else{var nt="M"+(We-9-1)+","+(Ze-1-1)+"h18 v2 h-18 Z";Ve.attr("d",nt)}}()}function zt(wt){wt.selectAll(".visual-cue").remove()}b.init(Je),kt.node().onmousemove=ut}(R,Q,z,F,j,ee):z.editable===!0&&Q.style("pointer-events",V||y.opacity(G)*W<=.5?"stroke":"all");Q.node().addEventListener("click",function(){return function(X,re){if(S(X)){var ie=+re.node().getAttribute("data-index");if(ie>=0){if(ie===X._fullLayout._activeShapeIndex)return void O(X);X._fullLayout._activeShapeIndex=ie,X._fullLayout._deactivateShape=O,T(X)}}}(R,Q)})}z._input&&z.visible===!0&&(z.layer!=="below"?$(R._fullLayout._shapeUpperLayer):z.xref==="paper"||z.yref==="paper"?$(R._fullLayout._shapeLowerLayer):B._hadPlotinfo?$((B.mainplotinfo||B).shapelayer):$(R._fullLayout._shapeLowerLayer))}function P(R,F,A){var z=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(R,z?"clip"+F._fullLayout._uid+z:null,F)}function D(R,F,A){return R.replace(_.segmentRE,function(z){var B=0,$=z.charAt(0),j=_.paramIsX[$],N=_.paramIsY[$],E=_.numParams[$];return $+z.substr(1).replace(_.paramRE,function(W){return B>=E||(j[B]?W=F(W):N[B]&&(W=A(W)),B++),W})})}function O(R){S(R)&&R._fullLayout._activeShapeIndex>=0&&(m(R),delete R._fullLayout._activeShapeIndex,T(R))}o.exports={draw:T,drawOne:C,eraseActiveShape:function(R){if(S(R)){m(R);var F=R._fullLayout._activeShapeIndex,A=(R.layout||{}).shapes||[];if(F0&&CU&&(Y="X"),Y});return H>U&&(Q=Q.replace(/[\s,]*X.*/,""),f.log("Ignoring extra params in segment "+q)),V+Q})}(d,p,y);if(d.xsizemode==="pixel"){var C=p(d.xanchor);v=C+d.x0,g=C+d.x1}else v=p(d.x0),g=p(d.x1);if(d.ysizemode==="pixel"){var P=y(d.yanchor);b=P-d.y0,x=P-d.y1}else b=y(d.y0),x=y(d.y1);if(_==="line")return"M"+v+","+b+"L"+g+","+x;if(_==="rect")return"M"+v+","+b+"H"+g+"V"+x+"H"+v+"Z";var D=(v+g)/2,O=(b+x)/2,R=Math.abs(D-v),F=Math.abs(O-b),A="A"+R+","+F,z=D+R+","+O;return"M"+z+A+" 0 1,1 "+D+","+(O-F)+A+" 0 0,1 "+z+"Z"}},89853:function(o,a,n){var l=n(34031);o.exports={moduleType:"component",name:"shapes",layoutAttributes:n(89827),supplyLayoutDefaults:n(84726),supplyDrawNewShapeDefaults:n(45547),includeBasePlot:n(76325)("shapes"),calcAutorange:n(5627),draw:l.draw,drawOne:l.drawOne}},37281:function(o){function a(s,u){return u?u.d2l(s):s}function n(s,u){return u?u.l2d(s):s}function l(s,u){return a(s.x1,u)-a(s.x0,u)}function f(s,u,d){return a(s.y1,d)-a(s.y0,d)}o.exports={x0:function(s){return s.x0},x1:function(s){return s.x1},y0:function(s){return s.y0},y1:function(s){return s.y1},slope:function(s,u,d){return s.type!=="line"?void 0:f(s,0,d)/l(s,u)},dx:l,dy:f,width:function(s,u){return Math.abs(l(s,u))},height:function(s,u,d){return Math.abs(f(s,0,d))},length:function(s,u,d){return s.type!=="line"?void 0:Math.sqrt(Math.pow(l(s,u),2)+Math.pow(f(s,0,d),2))},xcenter:function(s,u){return n((a(s.x1,u)+a(s.x0,u))/2,u)},ycenter:function(s,u,d){return n((a(s.y1,d)+a(s.y0,d))/2,d)}}},75067:function(o,a,n){var l=n(41940),f=n(35025),s=n(1426).extendDeepAll,u=n(30962).overrideAll,d=n(85594),h=n(44467).templatedArray,p=n(98292),m=h("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});o.exports=u(h("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:m,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:s(f({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:d.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:l({})},font:l({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},98292:function(o){o.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(o,a,n){var l=n(71828),f=n(85501),s=n(75067),u=n(98292).name,d=s.steps;function h(m,y,v){function g(k,T){return l.coerce(m,y,s,k,T)}for(var b=f(m,y,{name:"steps",handleItemDefaults:p}),x=0,_=0;_0&&(H=H.transition().duration(N.transition.duration).ease(N.transition.easing)),H.attr("transform",h(q-.5*y.gripWidth,N._dims.currentValueTotalHeight))}}function A(j,N){var E=j._dims;return E.inputAreaStart+y.stepInset+(E.inputAreaLength-2*y.stepInset)*Math.min(1,Math.max(0,N))}function z(j,N){var E=j._dims;return Math.min(1,Math.max(0,(N-y.stepInset-E.inputAreaStart)/(E.inputAreaLength-2*y.stepInset-2*E.inputAreaStart)))}function B(j,N,E){var W=E._dims,G=d.ensureSingle(j,"rect",y.railTouchRectClass,function(L){L.call(O,N,j,E).style("pointer-events","all")});G.attr({width:W.inputAreaLength,height:Math.max(W.inputAreaWidth,y.tickOffset+E.ticklen+W.labelHeight)}).call(s.fill,E.bgcolor).attr("opacity",0),u.setTranslate(G,0,W.currentValueTotalHeight)}function $(j,N){var E=N._dims,W=E.inputAreaLength-2*y.railInset,G=d.ensureSingle(j,"rect",y.railRectClass);G.attr({width:W,height:y.railWidth,rx:y.railRadius,ry:y.railRadius,"shape-rendering":"crispEdges"}).call(s.stroke,N.bordercolor).call(s.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),u.setTranslate(G,y.railInset,.5*(E.inputAreaWidth-y.railWidth)+E.currentValueTotalHeight)}o.exports=function(j){var N=j._context.staticPlot,E=j._fullLayout,W=function(te,ee){for(var U=te[y.name],Q=[],Y=0;Y0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),f.autoMargin(j,_(te))}if(G.enter().append("g").classed(y.containerClassName,!0).style("cursor",N?null:"ew-resize"),G.exit().each(function(){l.select(this).selectAll("g."+y.groupClassName).each(L)}).remove(),W.length!==0){var q=G.selectAll("g."+y.groupClassName).data(W,w);q.enter().append("g").classed(y.groupClassName,!0),q.exit().each(L).remove();for(var H=0;H0||Oe<0){var J={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[P.side];Q.attr("transform",h(J[0],J[1]))}}}return H.call(V),G&&($?H.on(".opacity",null):(A=0,z=!0,H.text(S).on("mouseover.opacity",function(){l.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){l.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(y.makeEditable,{gd:x}).on("edit",function(U){C!==void 0?u.call("_guiRestyle",x,M,U,C):u.call("_guiRelayout",x,M,U)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(U){this.text(U||" ").call(y.positionText,D.x,D.y)})),H.classed("js-placeholder",z),R}}},7163:function(o,a,n){var l=n(41940),f=n(22399),s=n(1426).extendFlat,u=n(30962).overrideAll,d=n(35025),h=n(44467).templatedArray,p=h("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});o.exports=u(h("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:s(d({editType:"arraydraw"}),{}),font:l({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:f.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(o){o.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(o,a,n){var l=n(71828),f=n(85501),s=n(7163),u=n(75909).name,d=s.buttons;function h(m,y,v){function g(b,x){return l.coerce(m,y,s,b,x)}g("visible",f(m,y,{name:"buttons",handleItemDefaults:p}).length>0)&&(g("active"),g("direction"),g("type"),g("showactive"),g("x"),g("y"),l.noneOrAll(m,y,["x","y"]),g("xanchor"),g("yanchor"),g("pad.t"),g("pad.r"),g("pad.b"),g("pad.l"),l.coerceFont(g,"font",v.font),g("bgcolor",v.paper_bgcolor),g("bordercolor"),g("borderwidth"))}function p(m,y){function v(g,b){return l.coerce(m,y,d,g,b)}v("visible",m.method==="skip"||Array.isArray(m.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}o.exports=function(m,y){f(m,y,{name:u,handleItemDefaults:h})}},13689:function(o,a,n){var l=n(39898),f=n(74875),s=n(7901),u=n(91424),d=n(71828),h=n(63893),p=n(44467).arrayEditor,m=n(18783).LINE_SPACING,y=n(75909),v=n(25849);function g(A){return A._index}function b(A,z){return+A.attr(y.menuIndexAttrName)===z._index}function x(A,z,B,$,j,N,E,W){z.active=E,p(A.layout,y.name,z).applyUpdate("active",E),z.type==="buttons"?w(A,$,null,null,z):z.type==="dropdown"&&(j.attr(y.menuIndexAttrName,"-1"),_(A,$,j,N,z),W||w(A,$,j,N,z))}function _(A,z,B,$,j){var N=d.ensureSingle(z,"g",y.headerClassName,function(H){H.style("pointer-events","all")}),E=j._dims,W=j.active,G=j.buttons[W]||y.blankHeaderOpts,L={y:j.pad.t,yPad:0,x:j.pad.l,xPad:0,index:0},q={width:E.headerWidth,height:E.headerHeight};N.call(k,j,G,A).call(R,j,L,q),d.ensureSingle(z,"text",y.headerArrowClassName,function(H){H.attr("text-anchor","end").call(u.font,j.font).text(y.arrowSymbol[j.direction])}).attr({x:E.headerWidth-y.arrowOffsetX+j.pad.l,y:E.headerHeight/2+y.textOffsetY+j.pad.t}),N.on("click",function(){B.call(F,String(b(B,j)?-1:j._index)),w(A,z,B,$,j)}),N.on("mouseover",function(){N.call(C)}),N.on("mouseout",function(){N.call(P,j)}),u.setTranslate(z,E.lx,E.ly)}function w(A,z,B,$,j){B||(B=z).attr("pointer-events","all");var N=function(Q){return+Q.attr(y.menuIndexAttrName)==-1}(B)&&j.type!=="buttons"?[]:j.buttons,E=j.type==="dropdown"?y.dropdownButtonClassName:y.buttonClassName,W=B.selectAll("g."+E).data(d.filterVisible(N)),G=W.enter().append("g").classed(E,!0),L=W.exit();j.type==="dropdown"?(G.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var q=0,H=0,V=j._dims,te=["up","down"].indexOf(j.direction)!==-1;j.type==="dropdown"&&(te?H=V.headerHeight+y.gapButtonHeader:q=V.headerWidth+y.gapButtonHeader),j.type==="dropdown"&&j.direction==="up"&&(H=-y.gapButtonHeader+y.gapButton-V.openHeight),j.type==="dropdown"&&j.direction==="left"&&(q=-y.gapButtonHeader+y.gapButton-V.openWidth);var ee={x:V.lx+q+j.pad.l,y:V.ly+H+j.pad.t,yPad:y.gapButton,xPad:y.gapButton,index:0},U={l:ee.x+j.borderwidth,t:ee.y+j.borderwidth};W.each(function(Q,Y){var Z=l.select(this);Z.call(k,j,Q,A).call(R,j,ee),Z.on("click",function(){l.event.defaultPrevented||(Q.execute&&(Q.args2&&j.active===Y?(x(A,j,0,z,B,$,-1),f.executeAPICommand(A,Q.method,Q.args2)):(x(A,j,0,z,B,$,Y),f.executeAPICommand(A,Q.method,Q.args))),A.emit("plotly_buttonclicked",{menu:j,button:Q,active:j.active}))}),Z.on("mouseover",function(){Z.call(C)}),Z.on("mouseout",function(){Z.call(P,j),W.call(S,j)})}),W.call(S,j),te?(U.w=Math.max(V.openWidth,V.headerWidth),U.h=ee.y-U.t):(U.w=ee.x-U.l,U.h=Math.max(V.openHeight,V.headerHeight)),U.direction=j.direction,$&&(W.size()?function(Q,Y,Z,X,re,ie){var le,se,pe,Te=re.direction,Se=Te==="up"||Te==="down",Oe=re._dims,Me=re.active;if(Se)for(se=0,pe=0;pe0?[0]:[]);if(j.enter().append("g").classed(y.containerClassName,!0).style("cursor","pointer"),j.exit().each(function(){l.select(this).selectAll("g."+y.headerGroupClassName).each($)}).remove(),B.length!==0){var N=j.selectAll("g."+y.headerGroupClassName).data(B,g);N.enter().append("g").classed(y.headerGroupClassName,!0);for(var E=d.ensureSingle(j,"g",y.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),W=0;WR,z=d.barLength+2*d.barPad,B=d.barWidth+2*d.barPad,$=k,j=M+S;j+B>g&&(j=g-B);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(f.fill,d.barColor),A?(this.hbar=N.attr({rx:d.barRadius,ry:d.barRadius,x:$,y:j,width:z,height:B}),this._hbarXMin=$+z/2,this._hbarTranslateMax=R-z):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=S>F,W=d.barWidth+2*d.barPad,G=d.barLength+2*d.barPad,L=k+T,q=M;L+W>v&&(L=v-W);var H=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(f.fill,d.barColor),E?(this.vbar=H.attr({rx:d.barRadius,ry:d.barRadius,x:L,y:q,width:W,height:G}),this._vbarYMin=q+G/2,this._vbarTranslateMax=F-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,te=b-.5,ee=E?x+W+.5:x+.5,U=_-.5,Q=A?w+B+.5:w+.5,Y=y._topdefs.selectAll("#"+V).data(A||E?[0]:[]);if(Y.exit().remove(),Y.enter().append("clipPath").attr("id",V).append("rect"),A||E?(this._clipRect=Y.select("rect").attr({x:Math.floor(te),y:Math.floor(U),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Q)-Math.floor(U)}),this.container.call(s.setClipUrl,V,this.gd),this.bg.attr({x:k,y:M,width:T,height:S})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),A||E){var Z=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Z);var X=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault(),l.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(X),E&&this.vbar.on(".drag",null).call(X)}this.setTranslate(p,m)},d.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},d.prototype._onBoxDrag=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h-=l.event.dx),this.vbar&&(p-=l.event.dy),this.setTranslate(h,p)},d.prototype._onBoxWheel=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h+=l.event.deltaY),this.vbar&&(p+=l.event.deltaY),this.setTranslate(h,p)},d.prototype._onBarDrag=function(){var h=this.translateX,p=this.translateY;if(this.hbar){var m=h+this._hbarXMin,y=m+this._hbarTranslateMax;h=(u.constrain(l.event.x,m,y)-m)/(y-m)*(this.position.w-this._box.w)}if(this.vbar){var v=p+this._vbarYMin,g=v+this._vbarTranslateMax;p=(u.constrain(l.event.y,v,g)-v)/(g-v)*(this.position.h-this._box.h)}this.setTranslate(h,p)},d.prototype.setTranslate=function(h,p){var m=this.position.w-this._box.w,y=this.position.h-this._box.h;if(h=u.constrain(h||0,0,m),p=u.constrain(p||0,0,y),this.translateX=h,this.translateY=p,this.container.call(s.setTranslate,this._box.l-this.position.l-h,this._box.t-this.position.t-p),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+h-.5),y:Math.floor(this.position.t+p-.5)}),this.hbar){var v=h/m;this.hbar.call(s.setTranslate,h+v*this._hbarTranslateMax,p)}if(this.vbar){var g=p/y;this.vbar.call(s.setTranslate,h,p+g*this._vbarTranslateMax)}}},18783:function(o){o.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(o){o.exports={axisRefDescription:function(a,n,l){return["If set to a",a,"axis id (e.g. *"+a+"* or","*"+a+"2*), the `"+a+"` position refers to a",a,"coordinate. If set to *paper*, the `"+a+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+l+"). If set to a",a,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+a+"2 domain* refers to the domain of the second",a," axis and a",a,"position of 0.5 refers to the","point between the",n,"and the",l,"of the domain of the","second",a,"axis."].join(" ")}}},31562:function(o){o.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(o){o.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(o){o.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(o){o.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(o,a){a.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],a.STYLE=a.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},77922:function(o,a){a.xmlns="http://www.w3.org/2000/xmlns/",a.svg="http://www.w3.org/2000/svg",a.xlink="http://www.w3.org/1999/xlink",a.svgAttrs={xmlns:a.svg,"xmlns:xlink":a.xlink}},8729:function(o,a,n){a.version=n(11506).version,n(7417),n(98847);for(var l=n(73972),f=a.register=l.register,s=n(10641),u=Object.keys(s),d=0;d",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(o,a){a.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},a.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},a.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},a.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},a.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},a.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},26348:function(o,a,n){var l=n(64872),f=l.mod,s=l.modHalf,u=Math.PI,d=2*u;function h(v){return Math.abs(v[1]-v[0])>d-1e-14}function p(v,g){return s(g-v,d)}function m(v,g){if(h(g))return!0;var b,x;g[0](x=f(x,d))&&(x+=d);var _=f(v,d),w=_+d;return _>=b&&_<=x||w>=b&&w<=x}function y(v,g,b,x,_,w,k){_=_||0,w=w||0;var T,M,S,C,P,D=h([b,x]);function O(z,B){return[z*Math.cos(B)+_,w-z*Math.sin(B)]}D?(T=0,M=u,S=d):b=_&&v<=w);var _,w},pathArc:function(v,g,b,x,_){return y(null,v,g,b,x,_,0)},pathSector:function(v,g,b,x,_){return y(null,v,g,b,x,_,1)},pathAnnulus:function(v,g,b,x,_,w){return y(v,g,b,x,_,w,1)}}},73627:function(o,a){var n=Array.isArray,l=ArrayBuffer,f=DataView;function s(h){return l.isView(h)&&!(h instanceof f)}function u(h){return n(h)||s(h)}function d(h,p,m){if(u(h)){if(u(h[0])){for(var y=m,v=0;vw.max?x.set(_):x.set(+b)}},integer:{coerceFunction:function(b,x,_,w){b%1||!l(b)||w.min!==void 0&&bw.max?x.set(_):x.set(+b)}},string:{coerceFunction:function(b,x,_,w){if(typeof b!="string"){var k=typeof b=="number";w.strict!==!0&&k?x.set(String(b)):x.set(_)}else w.noBlank&&!b?x.set(_):x.set(b)}},color:{coerceFunction:function(b,x,_){f(b).isValid()?x.set(b):x.set(_)}},colorlist:{coerceFunction:function(b,x,_){Array.isArray(b)&&b.length&&b.every(function(w){return f(w).isValid()})?x.set(b):x.set(_)}},colorscale:{coerceFunction:function(b,x,_){x.set(u.get(b,_))}},angle:{coerceFunction:function(b,x,_){b==="auto"?x.set("auto"):l(b)?x.set(y(+b,360)):x.set(_)}},subplotid:{coerceFunction:function(b,x,_,w){var k=w.regex||m(_);typeof b=="string"&&k.test(b)?x.set(b):x.set(_)},validateFunction:function(b,x){var _=x.dflt;return b===_||typeof b=="string"&&!!m(_).test(b)}},flaglist:{coerceFunction:function(b,x,_,w){if((w.extras||[]).indexOf(b)===-1)if(typeof b=="string"){for(var k=b.split("+"),T=0;T=l&&N<=f?N:m}if(typeof N!="string"&&typeof N!="number")return m;N=String(N);var q=S(E),H=N.charAt(0);!q||H!=="G"&&H!=="g"||(N=N.substr(1),E="");var V=q&&E.substr(0,7)==="chinese",te=N.match(V?T:k);if(!te)return m;var ee=te[1],U=te[3]||"1",Q=Number(te[5]||1),Y=Number(te[7]||0),Z=Number(te[9]||0),X=Number(te[11]||0);if(q){if(ee.length===2)return m;var re;ee=Number(ee);try{var ie=_.getComponentMethod("calendars","getCal")(E);if(V){var le=U.charAt(U.length-1)==="i";U=parseInt(U,10),re=ie.newDate(ee,ie.toMonthIndex(ee,U,le),Q)}else re=ie.newDate(ee,Number(U),Q)}catch{return m}return re?(re.toJD()-x)*y+Y*v+Z*g+X*b:m}ee=ee.length===2?(Number(ee)+2e3-M)%100+M:Number(ee),U-=1;var se=new Date(Date.UTC(2e3,U,Q,Y,Z));return se.setUTCFullYear(ee),se.getUTCMonth()!==U||se.getUTCDate()!==Q?m:se.getTime()+X*b},l=a.MIN_MS=a.dateTime2ms("-9999"),f=a.MAX_MS=a.dateTime2ms("9999-12-31 23:59:59.9999"),a.isDateTime=function(N,E){return a.dateTime2ms(N,E)!==m};var P=90*y,D=3*v,O=5*g;function R(N,E,W,G,L){if((E||W||G||L)&&(N+=" "+C(E,2)+":"+C(W,2),(G||L)&&(N+=":"+C(G,2),L))){for(var q=4;L%10==0;)q-=1,L/=10;N+="."+C(L,q)}return N}a.ms2DateTime=function(N,E,W){if(typeof N!="number"||!(N>=l&&N<=f))return m;E||(E=0);var G,L,q,H,V,te,ee=Math.floor(10*h(N+.05,1)),U=Math.round(N-ee/10);if(S(W)){var Q=Math.floor(U/y)+x,Y=Math.floor(h(N,y));try{G=_.getComponentMethod("calendars","getCal")(W).fromJD(Q).formatDate("yyyy-mm-dd")}catch{G=w("G%Y-%m-%d")(new Date(U))}if(G.charAt(0)==="-")for(;G.length<11;)G="-0"+G.substr(1);else for(;G.length<10;)G="0"+G;L=E=l+y&&N<=f-y))return m;var E=Math.floor(10*h(N+.05,1)),W=new Date(Math.round(N-E/10));return R(s("%Y-%m-%d")(W),W.getHours(),W.getMinutes(),W.getSeconds(),10*W.getUTCMilliseconds()+E)},a.cleanDate=function(N,E,W){if(N===m)return E;if(a.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(S(W))return d.error("JS Dates and milliseconds are incompatible with world calendars",N),E;if(!(N=a.ms2DateTimeLocal(+N))&&E!==void 0)return E}else if(!a.isDateTime(N,W))return d.error("unrecognized date",N),E;return N};var F=/%\d?f/g,A=/%h/g,z={1:"1",2:"1",3:"2",4:"2"};function B(N,E,W,G){N=N.replace(F,function(q){var H=Math.min(+q.charAt(1)||6,6);return(E/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(E+.05));if(N=N.replace(A,function(){return z[W("%q")(L)]}),S(G))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,E,G)}catch{return"Invalid"}return W(N)(L)}var $=[59,59.9,59.99,59.999,59.9999];a.formatDate=function(N,E,W,G,L,q){if(L=S(L)&&L,!E)if(W==="y")E=q.year;else if(W==="m")E=q.month;else{if(W!=="d")return function(H,V){var te=h(H+.05,y),ee=C(Math.floor(te/v),2)+":"+C(h(Math.floor(te/g),60),2);if(V!=="M"){u(V)||(V=0);var U=(100+Math.min(h(H/b,60),$[V])).toFixed(V).substr(1);V>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+U}return ee}(N,W)+` +var JD=Object.defineProperty;var QD=(e,t,r)=>t in e?JD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Lc=(e,t,r)=>(QD(e,typeof t!="symbol"?t+"":t,r),r);import{an as ir,r as $e,ao as Or,j as je,ap as qn,aq as e9,ar as t9,as as n9,at as Ma,au as r9,av as a9,aw as i9,ax as o9,ay as l9,az as s9,aA as u9,aB as c9,aC as f9,aD as d9,aE as h9,aF as p9,aG as g9,aH as m9,aI as v9,aJ as xn,aK as _r,aL as Tr,aM as _n,T as Cr,aN as Gt,aO as Af,aP as Vn,aQ as Md,aR as yr,aS as fr,aT as y9,aU as Sd,aV as Cd,aW as Z5,aX as K5,aY as b9,aZ as xl,a_ as x9,a5 as Od,a$ as no,I as Fl,b0 as w9,b1 as J5,b2 as _9,b3 as oe,G as Jn,W as di,b4 as T9,aa as k9,a1 as Q5,b5 as M9,b6 as lg,ab as S9,b7 as C9,b8 as O9,b9 as B2,ba as A9,bb as dy,_ as eS,bc as P9,$ as S0,bd as D9,be as E9,bf as R9,bg as L9,bh as I9,bi as F9,bj as N9,bk as j9,bl as $9,bm as z2,bn as B9,bo as hy,h as z9,R as et,bp as q9,bq as W9,br as U9,bs as H9,bt as V9,bu as Y9,bv as G9,bw as X9,B as Qr,bx as Z9,A as py,a as gy,by as K9,bz as tS,Q as J9,af as nS,ag as rS,ah as Pf,ai as Hi,ak as aS,s as my,bA as Q9,q as eE,bB as iS,bC as oS,bD as tE,bE as nE}from"./vendor-COAUpDWz.js";import{u as lS}from"./DashboardViewParams-DnRSqG_L.js";import{i as vn,r as Xr}from"./createSvgIcon-63W_9W2b.js";import{E as rE}from"./Edit-ByX95MPl.js";var cf=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(cf||{}),sS={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(r,i){e.exports=i()})(self,function(){return function(){var r={98847:function(o,a,n){var l=n(71828),f={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var s in f){var c=s.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");l.addStyleRule(c,f[s])}},98222:function(o,a,n){o.exports=n(82887)},27206:function(o,a,n){o.exports=n(60822)},5224:function(o,a,n){o.exports=n(83832)},59509:function(o,a,n){o.exports=n(72201)},49866:function(o,a,n){o.exports=n(99442)},19548:function(o,a,n){o.exports=n(8729)},61039:function(o,a,n){o.exports=n(14382)},24296:function(o,a,n){o.exports=n(43102)},58872:function(o,a,n){o.exports=n(92165)},65591:function(o,a,n){o.exports=n(36071)},69738:function(o,a,n){o.exports=n(43905)},92650:function(o,a,n){o.exports=n(35902)},73434:function(o,a,n){o.exports=n(94507)},760:function(o,a,n){var l=n(19548);l.register([n(27206),n(5224),n(58872),n(65591),n(69738),n(92650),n(49866),n(25743),n(6197),n(73434),n(54201),n(98222),n(61039),n(24296),n(66398),n(59509)]),o.exports=l},54201:function(o,a,n){o.exports=n(58810)},25743:function(o,a,n){o.exports=n(52979)},66398:function(o,a,n){o.exports=n(32275)},6197:function(o,a,n){o.exports=n(47462)},82884:function(o){o.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(o,a,n){var l=n(82884),f=n(41940),s=n(85555),c=n(44467).templatedArray;n(24695),o.exports=c("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",s.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",s.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:f({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(o,a,n){var l=n(71828),f=n(89298),s=n(92605).draw;function c(h){var p=h._fullLayout;l.filterVisible(p.annotations).forEach(function(m){var y=f.getFromId(h,m.xref),v=f.getFromId(h,m.yref),g=f.getRefType(m.xref),b=f.getRefType(m.yref);m._extremes={},g==="range"&&d(m,y),b==="range"&&d(m,v)})}function d(h,p){var m,y=p._id,v=y.charAt(0),g=h[v],b=h["a"+v],x=h[v+"ref"],_=h["a"+v+"ref"],w=h["_"+v+"padplus"],k=h["_"+v+"padminus"],T={x:1,y:-1}[v]*h[v+"shift"],M=3*h.arrowsize*h.arrowwidth||0,S=M+T,C=M-T,P=3*h.startarrowsize*h.arrowwidth||0,D=P+T,O=P-T;if(_===x){var R=f.findExtremes(p,[p.r2c(g)],{ppadplus:S,ppadminus:C}),F=f.findExtremes(p,[p.r2c(b)],{ppadplus:Math.max(w,D),ppadminus:Math.max(k,O)});m={min:[R.min[0],F.min[0]],max:[R.max[0],F.max[0]]}}else D=b?D+b:D,O=b?O-b:O,m=f.findExtremes(p,[p.r2c(g)],{ppadplus:Math.max(w,S,D),ppadminus:Math.max(k,C,O)});h._extremes[y]=m}o.exports=function(h){var p=h._fullLayout;if(l.filterVisible(p.annotations).length&&h._fullData.length)return l.syncOrAsync([s,c],h)}},44317:function(o,a,n){var l=n(71828),f=n(73972),s=n(44467).arrayEditor;function c(h,p){var m,y,v,g,b,x,_,w=h._fullLayout.annotations,k=[],T=[],M=[],S=(p||[]).length;for(m=0;m0||m.explicitOff.length>0},onClick:function(h,p){var m,y,v=c(h,p),g=v.on,b=v.off.concat(v.explicitOff),x={},_=h._fullLayout.annotations;if(g.length||b.length){for(m=0;m.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var we=!1,ke=["x","y"],Ae=0;Ae1)&&(Ye===qe?((Je=at.r2fraction(S["a"+Ue]))<0||Je>1)&&(we=!0):we=!0),Ee=at._offset+at.r2p(S[Ue]),Ie=.5}else{var ut=kt==="domain";Ue==="x"?(Re=S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.l+z.w*Re):(Re=1-S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.t+z.h*Re),Ie=S.showarrow?.5:Re}if(S.showarrow){it.head=Ee;var pt=S["a"+Ue];if(Be=ct*be(.5,S.xanchor)-bt*be(.5,S.yanchor),Ye===qe){var It=h.getRefType(Ye);It==="domain"?(Ue==="y"&&(pt=1-pt),it.tail=at._offset+at._length*pt):It==="paper"?Ue==="y"?(pt=1-pt,it.tail=z.t+z.h*pt):it.tail=z.l+z.w*pt:it.tail=at._offset+at.r2p(pt),De=Be}else it.tail=Ee+pt,De=Be+pt;it.text=it.tail+Be;var Mt=A[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=c.constrain(it.head,1,Mt-1)),Ye==="pixel"){var zt=-Math.max(it.tail-3,it.text),wt=Math.min(it.tail+3,it.text)-Mt;zt>0?(it.tail+=zt,it.text+=zt):wt>0&&(it.tail-=wt,it.text-=wt)}it.tail+=Qe,it.head+=Qe}else De=Be=ze*be(Ie,Ne),it.text=Ee+Be;it.text+=Qe,Be+=Qe,De+=Qe,S["_"+Ue+"padplus"]=ze/2+De,S["_"+Ue+"padminus"]=ze/2-De,S["_"+Ue+"size"]=ze,S["_"+Ue+"shift"]=Be}if(we)ee.remove();else{var ve=0,_e=0;if(S.align!=="left"&&(ve=(de-J)*(S.align==="center"?.5:1)),S.valign!=="top"&&(_e=(xe-ne)*(S.valign==="middle"?.5:1)),ce)Me.select("svg").attr({x:Y+ve-1,y:Y+_e}).call(m.setClipUrl,X?W:null,M);else{var Ve=Y+_e-ye.top,We=Y+ve-ye.left;se.call(v.positionText,We,Ve).call(m.setClipUrl,X?W:null,M)}re.select("rect").call(m.setRect,Y,Y,de,xe),Z.call(m.setRect,U/2,U/2,ue-U,ge-U),ee.call(m.setTranslate,Math.round(G.x.text-ue/2),Math.round(G.y.text-ge/2)),H.attr({transform:"rotate("+L+","+G.x.text+","+G.y.text+")"});var Ze,Ge=function(Ke,nt){q.selectAll(".annotation-arrow-g").remove();var st=G.x.head,mt=G.y.head,tt=G.x.tail+Ke,Ft=G.y.tail+nt,Vt=G.x.text+Ke,St=G.y.text+nt,Nt=c.rotationXYMatrix(L,Vt,St),Dt=c.apply2DTransform(Nt),gt=c.apply2DTransform2(Nt),ht=+Z.attr("width"),yt=+Z.attr("height"),qt=Vt-.5*ht,Et=qt+ht,jt=St-.5*yt,Tt=jt+yt,Ot=[[qt,jt,qt,Tt],[qt,Tt,Et,Tt],[Et,Tt,Et,jt],[Et,jt,qt,jt]].map(gt);if(!Ot.reduce(function(an,sn){return an^!!c.segmentsIntersect(st,mt,st+1e6,mt+1e6,sn[0],sn[1],sn[2],sn[3])},!1)){Ot.forEach(function(an){var sn=c.segmentsIntersect(tt,Ft,st,mt,an[0],an[1],an[2],an[3]);sn&&(tt=sn.x,Ft=sn.y)});var At=S.arrowwidth,Lt=S.arrowcolor,Rt=S.arrowside,$t=q.append("g").style({opacity:p.opacity(Lt)}).classed("annotation-arrow-g",!0),Yt=$t.append("path").attr("d","M"+tt+","+Ft+"L"+st+","+mt).style("stroke-width",At+"px").call(p.stroke,p.rgb(Lt));if(_(Yt,Rt,S),B.annotationPosition&&Yt.node().parentNode&&!P){var Xt=st,Bt=mt;if(S.standoff){var Wt=Math.sqrt(Math.pow(st-tt,2)+Math.pow(mt-Ft,2));Xt+=S.standoff*(tt-st)/Wt,Bt+=S.standoff*(Ft-mt)/Wt}var tn,cn,ln=$t.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(tt-Xt)+","+(Ft-Bt),transform:d(Xt,Bt)}).style("stroke-width",At+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)");b.init({element:ln.node(),gd:M,prepFn:function(){var an=m.getTranslate(ee);tn=an.x,cn=an.y,D&&D.autorange&&j(D._name+".autorange",!0),O&&O.autorange&&j(O._name+".autorange",!0)},moveFn:function(an,sn){var Zt=Dt(tn,cn),pn=Zt[0]+an,nn=Zt[1]+sn;ee.call(m.setTranslate,pn,nn),N("x",k(D,an,"x",z,S)),N("y",k(O,sn,"y",z,S)),S.axref===S.xref&&N("ax",k(D,an,"ax",z,S)),S.ayref===S.yref&&N("ay",k(O,sn,"ay",z,S)),$t.attr("transform",d(an,sn)),H.attr({transform:"rotate("+L+","+pn+","+nn+")"})},doneFn:function(){f.call("_guiRelayout",M,E());var an=document.querySelector(".js-notes-box-panel");an&&an.redraw(an.selectedObj)}})}}};S.showarrow&&Ge(0,0),V&&b.init({element:ee.node(),gd:M,prepFn:function(){Ze=H.attr("transform")},moveFn:function(Ke,nt){var st="pointer";if(S.showarrow)S.axref===S.xref?N("ax",k(D,Ke,"ax",z,S)):N("ax",S.ax+Ke),S.ayref===S.yref?N("ay",k(O,nt,"ay",z.w,S)):N("ay",S.ay+nt),Ge(Ke,nt);else{if(P)return;var mt,tt;if(D)mt=k(D,Ke,"x",z,S);else{var Ft=S._xsize/z.w,Vt=S.x+(S._xshift-S.xshift)/z.w-Ft/2;mt=b.align(Vt+Ke/z.w,Ft,0,1,S.xanchor)}if(O)tt=k(O,nt,"y",z,S);else{var St=S._ysize/z.h,Nt=S.y-(S._yshift+S.yshift)/z.h-St/2;tt=b.align(Nt-nt/z.h,St,0,1,S.yanchor)}N("x",mt),N("y",tt),D&&O||(st=b.getCursor(D?.5:mt,O?.5:tt,S.xanchor,S.yanchor))}H.attr({transform:d(Ke,nt)+Ze}),g(ee,st)},clickFn:function(Ke,nt){S.captureevents&&M.emit("plotly_clickannotation",pe(nt))},doneFn:function(){g(ee),f.call("_guiRelayout",M,E());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}}o.exports={draw:function(M){var S=M._fullLayout;S._infolayer.selectAll(".annotation").remove();for(var C=0;C=0,P=y.indexOf("end")>=0,D=k.backoff*M+v.standoff,O=T.backoff*S+v.startstandoff;if(w.nodeName==="line"){g={x:+m.attr("x1"),y:+m.attr("y1")},b={x:+m.attr("x2"),y:+m.attr("y2")};var R=g.x-b.x,F=g.y-b.y;if(_=(x=Math.atan2(F,R))+Math.PI,D&&O&&D+O>Math.sqrt(R*R+F*F))return void q();if(D){if(D*D>R*R+F*F)return void q();var A=D*Math.cos(x),z=D*Math.sin(x);b.x+=A,b.y+=z,m.attr({x2:b.x,y2:b.y})}if(O){if(O*O>R*R+F*F)return void q();var B=O*Math.cos(x),$=O*Math.sin(x);g.x-=B,g.y-=$,m.attr({x1:g.x,y1:g.y})}}else if(w.nodeName==="path"){var j=w.getTotalLength(),N="";if(j1){v=!0;break}}v?c.fullLayout._infolayer.select(".annotation-"+c.id+'[data-index="'+m+'"]').remove():(y._pdata=f(c.glplot.cameraParams,[d.xaxis.r2l(y.x)*h[0],d.yaxis.r2l(y.y)*h[1],d.zaxis.r2l(y.z)*h[2]]),l(c.graphDiv,y,m,c.id,y._xa,y._ya))}}},2468:function(o,a,n){var l=n(73972),f=n(71828);o.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(26997)}}},layoutAttributes:n(26997),handleDefaults:n(20226),includeBasePlot:function(s,c){var d=l.subplotsRegistry.gl3d;if(d)for(var h=d.attrRegex,p=Object.keys(s),m=0;m=0)))return y;if(_===3)b[_]>1&&(b[_]=1);else if(b[_]>=1)return y}var w=Math.round(255*b[0])+", "+Math.round(255*b[1])+", "+Math.round(255*b[2]);return x?"rgba("+w+", "+b[3]+")":"rgb("+w+")"}c.tinyRGB=function(y){var v=y.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},c.rgb=function(y){return c.tinyRGB(l(y))},c.opacity=function(y){return y?l(y).getAlpha():0},c.addOpacity=function(y,v){var g=l(y).toRgb();return"rgba("+Math.round(g.r)+", "+Math.round(g.g)+", "+Math.round(g.b)+", "+v+")"},c.combine=function(y,v){var g=l(y).toRgb();if(g.a===1)return l(y).toRgbString();var b=l(v||p).toRgb(),x=b.a===1?b:{r:255*(1-b.a)+b.r*b.a,g:255*(1-b.a)+b.g*b.a,b:255*(1-b.a)+b.b*b.a},_={r:x.r*(1-g.a)+g.r*g.a,g:x.g*(1-g.a)+g.g*g.a,b:x.b*(1-g.a)+g.b*g.a};return l(_).toRgbString()},c.contrast=function(y,v,g){var b=l(y);return b.getAlpha()!==1&&(b=l(c.combine(y,p))),(b.isDark()?v?b.lighten(v):p:g?b.darken(g):h).toString()},c.stroke=function(y,v){var g=l(v);y.style({stroke:c.tinyRGB(g),"stroke-opacity":g.getAlpha()})},c.fill=function(y,v){var g=l(v);y.style({fill:c.tinyRGB(g),"fill-opacity":g.getAlpha()})},c.clean=function(y){if(y&&typeof y=="object"){var v,g,b,x,_=Object.keys(y);for(v=0;v<_.length;v++)if(x=y[b=_[v]],b.substr(b.length-5)==="color")if(Array.isArray(x))for(g=0;g0?wt>=Ze:wt<=Ze));ve++)wt>Ke&&wt0?wt>=Ze:wt<=Ze));ve++)wt>zt[0]&&wt1){var bt=Math.pow(10,Math.floor(Math.log(ct)/Math.LN10));at*=bt*p.roundUp(ct/bt,[2,5,10]),(Math.abs(J.start)/J.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=at}qe.domain=E?[Be+Y/se.h,Be+we-Y/se.h]:[Be+Q/se.w,Be+we-Q/se.w],qe.setScale(),$.attr("transform",m(Math.round(se.l),Math.round(se.t)));var ze,Ne=$.select("."+O.cbtitleunshift).attr("transform",m(-Math.round(se.l),-Math.round(se.t))),Qe=qe.ticklabelposition,it=qe.title.font.size,kt=$.select("."+O.cbaxis),Je=0,ut=0;function pt(It,Mt){var zt={propContainer:qe,propName:j._propPrefix+"title",traceIndex:j._traceIndex,_meta:j._meta,placeholder:le._dfltTitle.colorbar,containerGroup:$.select("."+O.cbtitle)},wt=It.charAt(0)==="h"?It.substr(1):"h"+It;$.selectAll("."+wt+",."+wt+"-math-group").remove(),x.draw(N,It,y(zt,Mt||{}))}return p.syncOrAsync([s.previousPromises,function(){var It,Mt;(E&&Ye||!E&&!Ye)&&(Oe==="top"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be-we)+3+.75*it),Oe==="bottom"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be)-3-.25*it),Oe==="right"&&(Mt=Y+se.t+Ae*X+3+.75*it,It=Q+se.l+ke*Be),pt(qe._id+"title",{attributes:{x:It,y:Mt,"text-anchor":E?"start":"middle"}}))},function(){if(!E&&!Ye||E&&Ye){var It,Mt=$.select("."+O.cbtitle),zt=Mt.select("text"),wt=[-H/2,H/2],ve=Mt.select(".h"+qe._id+"title-math-group").node(),_e=15.6;if(zt.node()&&(_e=parseInt(zt.node().style.fontSize,10)*C),ve?(It=g.bBox(ve),ut=It.width,(Je=It.height)>_e&&(wt[1]-=(Je-_e)/2)):zt.node()&&!zt.classed(O.jsPlaceholder)&&(It=g.bBox(zt.node()),ut=It.width,Je=It.height),E){if(Je){if(Je+=5,Oe==="top")qe.domain[1]-=Je/se.h,wt[1]*=-1;else{qe.domain[0]+=Je/se.h;var Ve=_.lineCount(zt);wt[1]+=(1-Ve)*_e}Mt.attr("transform",m(wt[0],wt[1])),qe.setScale()}}else ut&&(Oe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Mt.attr("transform",m(wt[0],wt[1])),qe.setScale())}$.selectAll("."+O.cbfills+",."+O.cblines).attr("transform",E?m(0,Math.round(se.h*(1-qe.domain[1]))):m(Math.round(se.w*qe.domain[0]),0)),kt.attr("transform",E?m(0,Math.round(-se.t)):m(Math.round(-se.l),0));var We=$.select("."+O.cbfills).selectAll("rect."+O.cbfill).attr("style","").data(de);We.enter().append("rect").classed(O.cbfill,!0).attr("style",""),We.exit().remove();var Ze=Me.map(qe.c2p).map(Math.round).sort(function(mt,tt){return mt-tt});We.each(function(mt,tt){var Ft=[tt===0?Me[0]:(de[tt]+de[tt-1])/2,tt===de.length-1?Me[1]:(de[tt]+de[tt+1])/2].map(qe.c2p).map(Math.round);E&&(Ft[1]=p.constrain(Ft[1]+(Ft[1]>Ft[0])?1:-1,Ze[0],Ze[1]));var Vt=l.select(this).attr(E?"x":"y",Ee).attr(E?"y":"x",l.min(Ft)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(l.max(Ft)-l.min(Ft),2));if(j._fillgradient)g.gradient(Vt,N,j._id,E?"vertical":"horizontalreversed",j._fillgradient,"fill");else{var St=ye(mt).replace("e-","");Vt.attr("fill",f(St).toHexString())}});var Ge=$.select("."+O.cblines).selectAll("path."+O.cbline).data(Te.color&&Te.width?xe:[]);Ge.enter().append("path").classed(O.cbline,!0),Ge.exit().remove(),Ge.each(function(mt){var tt=Ee,Ft=Math.round(qe.c2p(mt))+Te.width/2%1;l.select(this).attr("d","M"+(E?tt+","+Ft:Ft+","+tt)+(E?"h":"v")+ue).call(g.lineGroupStyle,Te.width,ce(mt),Te.dash)}),kt.selectAll("g."+qe._id+"tick,path").remove();var Ke=Ee+ue+(H||0)/2-(j.ticks==="outside"?1:0),nt=d.calcTicks(qe),st=d.getTickSigns(qe)[2];return d.drawTicks(N,qe,{vals:qe.ticks==="inside"?d.clipEnds(qe,nt):nt,layer:kt,path:d.makeTickPath(qe,Ke,st),transFn:d.makeTransTickFn(qe)}),d.drawLabels(N,qe,{vals:nt,layer:kt,transFn:d.makeTransTickLabelFn(qe),labelFns:d.makeLabelFns(qe,Ke)})},function(){if(E&&!Ye||!E&&Ye){var It,Mt,zt=qe.position||0,wt=qe._offset+qe._length/2;if(Oe==="right")Mt=wt,It=se.l+ke*zt+10+it*(qe.showticklabels?1:.5);else if(It=wt,Oe==="bottom"&&(Mt=se.t+Ae*zt+10+(Qe.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&j.ticklen||0)),Oe==="top"){var ve=Se.text.split("
").length;Mt=se.t+Ae*zt+10-ue-C*it*ve}pt((E?"h":"v")+qe._id+"title",{avoid:{selection:l.select(N).selectAll("g."+qe._id+"tick"),side:Oe,offsetTop:E?0:se.t,offsetLeft:E?se.l:0,maxShift:E?le.width:le.height},attributes:{x:It,y:Mt,"text-anchor":"middle"},transform:{rotate:E?-90:0,offset:0}})}},s.previousPromises,function(){var It,Mt=ue+H/2;Qe.indexOf("inside")===-1&&(It=g.bBox(kt.node()),Mt+=E?It.width:It.height),ze=Ne.select("text");var zt=0,wt=E&&Oe==="top",ve=!E&&Oe==="right",_e=0;if(ze.node()&&!ze.classed(O.jsPlaceholder)){var Ve,We=Ne.select(".h"+qe._id+"title-math-group").node();We&&(E&&Ye||!E&&!Ye)?(zt=(It=g.bBox(We)).width,Ve=It.height):(zt=(It=g.bBox(Ne.node())).right-se.l-(E?Ee:Ue),Ve=It.bottom-se.t-(E?Ue:Ee),E||Oe!=="top"||(Mt+=It.height,_e=It.height)),ve&&(ze.attr("transform",m(zt/2+it/2,0)),zt*=2),Mt=Math.max(Mt,E?zt:Ve)}var Ze=2*(E?Q:Y)+Mt+V+H/2,Ge=0;!E&&Se.text&&U==="bottom"&&X<=0&&(Ze+=Ge=Ze/2,_e+=Ge),le._hColorbarMoveTitle=Ge,le._hColorbarMoveCBTitle=_e;var Ke=V+H,nt=(E?Ee:Ue)-Ke/2-(E?Q:0),st=(E?Ue:Ee)-(E?be:Y+_e-Ge);$.select("."+O.cbbg).attr("x",nt).attr("y",st).attr(E?"width":"height",Math.max(Ze-Ge,2)).attr(E?"height":"width",Math.max(be+Ke,2)).call(b.fill,te).call(b.stroke,j.bordercolor).style("stroke-width",V);var mt=ve?Math.max(zt-10,0):0;$.selectAll("."+O.cboutline).attr("x",(E?Ee:Ue+Q)+mt).attr("y",(E?Ue+Y-be:Ee)+(wt?Je:0)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(be-(E?2*Y+Je:2*Q+mt),2)).call(b.stroke,j.outlinecolor).style({fill:"none","stroke-width":H});var tt=E?De*Ze:0,Ft=E?0:(1-Re)*Ze-_e;if(tt=ie?se.l-tt:-tt,Ft=re?se.t-Ft:-Ft,$.attr("transform",m(tt,Ft)),!E&&(V||f(te).getAlpha()&&!f.equals(le.paper_bgcolor,te))){var Vt=kt.selectAll("text"),St=Vt[0].length,Nt=$.select("."+O.cbbg).node(),Dt=g.bBox(Nt),gt=g.getTranslate($);Vt.each(function(Rt,$t){var Yt=St-1;if($t===0||$t===Yt){var Xt,Bt=g.bBox(this),Wt=g.getTranslate(this);if($t===Yt){var tn=Bt.right+Wt.x;(Xt=Dt.right+gt.x+Ue-V-2+Z-tn)>0&&(Xt=0)}else if($t===0){var cn=Bt.left+Wt.x;(Xt=Dt.left+gt.x+Ue+V+2-cn)<0&&(Xt=0)}Xt&&(St<3?this.setAttribute("transform","translate("+Xt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ht={},yt=P[ee],qt=D[ee],Et=P[U],jt=D[U],Tt=Ze-ue;E?(G==="pixels"?(ht.y=X,ht.t=be*Et,ht.b=be*jt):(ht.t=ht.b=0,ht.yt=X+W*Et,ht.yb=X-W*jt),q==="pixels"?(ht.x=Z,ht.l=Ze*yt,ht.r=Ze*qt):(ht.l=Tt*yt,ht.r=Tt*qt,ht.xl=Z-L*yt,ht.xr=Z+L*qt)):(G==="pixels"?(ht.x=Z,ht.l=be*yt,ht.r=be*qt):(ht.l=ht.r=0,ht.xl=Z+W*yt,ht.xr=Z-W*qt),q==="pixels"?(ht.y=1-X,ht.t=Ze*Et,ht.b=Ze*jt):(ht.t=Tt*Et,ht.b=Tt*jt,ht.yt=X-L*Et,ht.yb=X+L*jt));var Ot=j.y<.5?"b":"t",At=j.x<.5?"l":"r";N._fullLayout._reservedMargin[j._id]={};var Lt={r:le.width-nt-tt,l:nt+ht.r,b:le.height-st-Ft,t:st+ht.b};ie&&re?s.autoMargin(N,j._id,ht):ie?N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]:re||E?N._fullLayout._reservedMargin[j._id][At]=Lt[At]:N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]}],N)}(z,A,R);B&&B.then&&(R._promises||[]).push(B),R._context.edits.colorbarPosition&&function($,j,N){var E,W,G,L=j.orientation==="v",q=N._fullLayout._size;h.init({element:$.node(),gd:N,prepFn:function(){E=$.attr("transform"),v($)},moveFn:function(H,V){$.attr("transform",E+m(H,V)),W=h.align((L?j._uFrac:j._vFrac)+H/q.w,L?j._thickFrac:j._lenFrac,0,1,j.xanchor),G=h.align((L?j._vFrac:1-j._uFrac)-V/q.h,L?j._lenFrac:j._thickFrac,0,1,j.yanchor);var te=h.getCursor(W,G,j.xanchor,j.yanchor);v($,te)},doneFn:function(){if(v($),W!==void 0&&G!==void 0){var H={};H[j._propPrefix+"x"]=W,H[j._propPrefix+"y"]=G,j._traceIndex!==void 0?c.call("_guiRestyle",N,H,j._traceIndex):c.call("_guiRelayout",N,H)}}})}(z,A,R)}),F.exit().each(function(A){s.autoMargin(R,A._id)}).remove(),F.order()}}},76228:function(o,a,n){var l=n(71828);o.exports=function(f){return l.isPlainObject(f.colorbar)}},12311:function(o,a,n){o.exports={moduleType:"component",name:"colorbar",attributes:n(63583),supplyDefaults:n(62499),draw:n(98981).draw,hasColorbar:n(76228)}},50693:function(o,a,n){var l=n(63583),f=n(30587).counter,s=n(78607),c=n(63282).scales;function d(h){return"`"+h+"`"}s(c),o.exports=function(h,p){h=h||"";var m,y=(p=p||{}).cLetter||"c",v=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:h==="marker.line"),g="showScaleDflt"in p?p.showScaleDflt:y==="z",b=typeof p.colorscaleDflt=="string"?c[p.colorscaleDflt]:null,x=p.editTypeOverride||"",_=h?h+".":"";"colorAttr"in p?(m=p.colorAttr,p.colorAttr):d(_+(m={z:"z",c:"color"}[y]));var w=y+"auto",k=y+"min",T=y+"max",M=y+"mid",S={};S[k]=S[T]=void 0;var C={};C[w]=!1;var P={};return m==="color"&&(P.color={valType:"color",arrayOk:!0,editType:x||"style"},p.anim&&(P.color.anim=!0)),P[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:S},P[k]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[T]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:S},P.colorscale={valType:"colorscale",editType:"calc",dflt:b,impliedEdits:{autocolorscale:!1}},P.autocolorscale={valType:"boolean",dflt:p.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},P.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(P.showscale={valType:"boolean",dflt:g,editType:"calc"},P.colorbar=l),p.noColorAxis||(P.coloraxis={valType:"subplotid",regex:f("coloraxis"),dflt:null,editType:"calc"}),P}},78803:function(o,a,n){var l=n(92770),f=n(71828),s=n(52075).extractOpts;o.exports=function(c,d,h){var p,m=c._fullLayout,y=h.vals,v=h.containerStr,g=v?f.nestedProperty(d,v).get():d,b=s(g),x=b.auto!==!1,_=b.min,w=b.max,k=b.mid,T=function(){return f.aggNums(Math.min,null,y)},M=function(){return f.aggNums(Math.max,null,y)};_===void 0?_=T():x&&(_=g._colorAx&&l(_)?Math.min(_,T()):T()),w===void 0?w=M():x&&(w=g._colorAx&&l(w)?Math.max(w,M()):M()),x&&k!==void 0&&(w-k>k-_?_=k-(w-k):w-k=0?m.colorscale.sequential:m.colorscale.sequentialminus,b._sync("colorscale",p))}},33046:function(o,a,n){var l=n(71828),f=n(52075).hasColorscale,s=n(52075).extractOpts;o.exports=function(c,d){function h(x,_){var w=x["_"+_];w!==void 0&&(x[_]=w)}function p(x,_){var w=_.container?l.nestedProperty(x,_.container).get():x;if(w)if(w.coloraxis)w._colorAx=d[w.coloraxis];else{var k=s(w),T=k.auto;(T||k.min===void 0)&&h(w,_.min),(T||k.max===void 0)&&h(w,_.max),k.autocolorscale&&h(w,"colorscale")}}for(var m=0;m=0;T--,M++){var S=_[T];k[M]=[1-S[0],S[1]]}return k}function b(_,w){w=w||{};for(var k=_.domain,T=_.range,M=T.length,S=new Array(M),C=0;C1.3333333333333333-h?d:h}},70461:function(o,a,n){var l=n(71828),f=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];o.exports=function(s,c,d,h){return s=d==="left"?0:d==="center"?1:d==="right"?2:l.constrain(Math.floor(3*s),0,2),c=h==="bottom"?0:h==="middle"?1:h==="top"?2:l.constrain(Math.floor(3*c),0,2),f[c][s]}},64505:function(o,a){a.selectMode=function(n){return n==="lasso"||n==="select"},a.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.openMode=function(n){return n==="drawline"||n==="drawopenpath"},a.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},a.selectingOrDrawing=function(n){return a.freeMode(n)||a.rectMode(n)}},28569:function(o,a,n){var l=n(48956),f=n(57035),s=n(38520),c=n(71828).removeElement,d=n(85555),h=o.exports={};h.align=n(92807),h.getCursor=n(70461);var p=n(26041);function m(){var v=document.createElement("div");v.className="dragcover";var g=v.style;return g.position="fixed",g.left=0,g.right=0,g.top=0,g.bottom=0,g.zIndex=999999999,g.background="none",document.body.appendChild(v),v}function y(v){return l(v.changedTouches?v.changedTouches[0]:v,document.body)}h.unhover=p.wrapped,h.unhoverRaw=p.raw,h.init=function(v){var g,b,x,_,w,k,T,M,S=v.gd,C=1,P=S._context.doubleClickDelay,D=v.element;S._mouseDownTime||(S._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=R,s?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=R,D.addEventListener("touchstart",R,{passive:!1})):D.ontouchstart=R;var O=v.clampFn||function(z,B,$){return Math.abs(z)<$&&(z=0),Math.abs(B)<$&&(B=0),[z,B]};function R(z){S._dragged=!1,S._dragging=!0;var B=y(z);g=B[0],b=B[1],T=z.target,k=z,M=z.buttons===2||z.ctrlKey,z.clientX===void 0&&z.clientY===void 0&&(z.clientX=g,z.clientY=b),(x=new Date().getTime())-S._mouseDownTimeP&&(C=Math.max(C-1,1)),S._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(C,k),!M){var B;try{B=new MouseEvent("click",z)}catch{var $=y(z);(B=document.createEvent("MouseEvents")).initMouseEvent("click",z.bubbles,z.cancelable,z.view,z.detail,z.screenX,z.screenY,$[0],$[1],z.ctrlKey,z.altKey,z.shiftKey,z.metaKey,z.button,z.relatedTarget)}T.dispatchEvent(B)}S._dragging=!1,S._dragged=!1}else S._dragged=!1}},h.coverSlip=m},26041:function(o,a,n){var l=n(11086),f=n(79990),s=n(24401).getGraphDiv,c=n(26675),d=o.exports={};d.wrapped=function(h,p,m){(h=s(h))._fullLayout&&f.clear(h._fullLayout._uid+c.HOVERID),d.raw(h,p,m)},d.raw=function(h,p){var m=h._fullLayout,y=h._hoverdata;p||(p={}),p.target&&!h._dragged&&l.triggerHandler(h,"plotly_beforehover",p)===!1||(m._hoverlayer.selectAll("g").remove(),m._hoverlayer.selectAll("line").remove(),m._hoverlayer.selectAll("circle").remove(),h._hoverdata=void 0,p.target&&y&&h.emit("plotly_unhover",{event:p,points:y}))}},79952:function(o,a){a.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},a.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(o,a,n){var l=n(39898),f=n(71828),s=f.numberFormat,c=n(92770),d=n(84267),h=n(73972),p=n(7901),m=n(21081),y=f.strTranslate,v=n(63893),g=n(77922),b=n(18783).LINE_SPACING,x=n(37822).DESELECTDIM,_=n(34098),w=n(39984),k=n(23469).appendArrayPointValue,T=o.exports={};function M(ce,ye,J){var ne=ye.fillpattern,de=ne&&T.getPatternAttr(ne.shape,0,"");if(de){var xe=T.getPatternAttr(ne.bgcolor,0,null),ue=T.getPatternAttr(ne.fgcolor,0,null),ge=ne.fgopacity,be=T.getPatternAttr(ne.size,0,8),we=T.getPatternAttr(ne.solidity,0,.3),ke=ye.uid;T.pattern(ce,"point",J,ke,de,be,we,void 0,ne.fillmode,xe,ue,ge)}else ye.fillcolor&&ce.call(p.fill,ye.fillcolor)}T.font=function(ce,ye,J,ne){f.isPlainObject(ye)&&(ne=ye.color,J=ye.size,ye=ye.family),ye&&ce.style("font-family",ye),J+1&&ce.style("font-size",J+"px"),ne&&ce.call(p.fill,ne)},T.setPosition=function(ce,ye,J){ce.attr("x",ye).attr("y",J)},T.setSize=function(ce,ye,J){ce.attr("width",ye).attr("height",J)},T.setRect=function(ce,ye,J,ne,de){ce.call(T.setPosition,ye,J).call(T.setSize,ne,de)},T.translatePoint=function(ce,ye,J,ne){var de=J.c2p(ce.x),xe=ne.c2p(ce.y);return!!(c(de)&&c(xe)&&ye.node())&&(ye.node().nodeName==="text"?ye.attr("x",de).attr("y",xe):ye.attr("transform",y(de,xe)),!0)},T.translatePoints=function(ce,ye,J){ce.each(function(ne){var de=l.select(this);T.translatePoint(ne,de,ye,J)})},T.hideOutsideRangePoint=function(ce,ye,J,ne,de,xe){ye.attr("display",J.isPtWithinRange(ce,de)&&ne.isPtWithinRange(ce,xe)?null:"none")},T.hideOutsideRangePoints=function(ce,ye){if(ye._hasClipOnAxisFalse){var J=ye.xaxis,ne=ye.yaxis;ce.each(function(de){var xe=de[0].trace,ue=xe.xcalendar,ge=xe.ycalendar,be=h.traceIs(xe,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(be).each(function(we){T.hideOutsideRangePoint(we,l.select(this),J,ne,ue,ge)})})}},T.crispRound=function(ce,ye,J){return ye&&c(ye)?ce._context.staticPlot?ye:ye<1?1:Math.round(ye):J||0},T.singleLineStyle=function(ce,ye,J,ne,de){ye.style("fill","none");var xe=(((ce||[])[0]||{}).trace||{}).line||{},ue=J||xe.width||0,ge=de||xe.dash||"";p.stroke(ye,ne||xe.color),T.dashLine(ye,ge,ue)},T.lineGroupStyle=function(ce,ye,J,ne){ce.style("fill","none").each(function(de){var xe=(((de||[])[0]||{}).trace||{}).line||{},ue=ye||xe.width||0,ge=ne||xe.dash||"";l.select(this).call(p.stroke,J||xe.color).call(T.dashLine,ge,ue)})},T.dashLine=function(ce,ye,J){J=+J||0,ye=T.dashStyle(ye,J),ce.style({"stroke-dasharray":ye,"stroke-width":J+"px"})},T.dashStyle=function(ce,ye){ye=+ye||1;var J=Math.max(ye,3);return ce==="solid"?ce="":ce==="dot"?ce=J+"px,"+J+"px":ce==="dash"?ce=3*J+"px,"+3*J+"px":ce==="longdash"?ce=5*J+"px,"+5*J+"px":ce==="dashdot"?ce=3*J+"px,"+J+"px,"+J+"px,"+J+"px":ce==="longdashdot"&&(ce=5*J+"px,"+2*J+"px,"+J+"px,"+2*J+"px"),ce},T.singleFillStyle=function(ce,ye){var J=l.select(ce.node());M(ce,((J.data()[0]||[])[0]||{}).trace||{},ye)},T.fillGroupStyle=function(ce,ye){ce.style("stroke-width",0).each(function(J){var ne=l.select(this);J[0].trace&&M(ne,J[0].trace,ye)})};var S=n(90998);T.symbolNames=[],T.symbolFuncs=[],T.symbolBackOffs=[],T.symbolNeedLines={},T.symbolNoDot={},T.symbolNoFill={},T.symbolList=[],Object.keys(S).forEach(function(ce){var ye=S[ce],J=ye.n;T.symbolList.push(J,String(J),ce,J+100,String(J+100),ce+"-open"),T.symbolNames[J]=ce,T.symbolFuncs[J]=ye.f,T.symbolBackOffs[J]=ye.backoff||0,ye.needLine&&(T.symbolNeedLines[J]=!0),ye.noDot?T.symbolNoDot[J]=!0:T.symbolList.push(J+200,String(J+200),ce+"-dot",J+300,String(J+300),ce+"-open-dot"),ye.noFill&&(T.symbolNoFill[J]=!0)});var C=T.symbolNames.length;function P(ce,ye,J,ne){var de=ce%100;return T.symbolFuncs[de](ye,J,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}T.symbolNumber=function(ce){if(c(ce))ce=+ce;else if(typeof ce=="string"){var ye=0;ce.indexOf("-open")>0&&(ye=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(ye+=200,ce=ce.replace("-dot","")),(ce=T.symbolNames.indexOf(ce))>=0&&(ce+=ye)}return ce%100>=C||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},O={x1:0,x2:0,y1:1,y2:0},R=s("~f"),F={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:O},verticalreversed:{node:"linearGradient",attrs:O,reversed:!0}};T.gradient=function(ce,ye,J,ne,de,xe){for(var ue=de.length,ge=F[ne],be=new Array(ue),we=0;we=0&&ce.i===void 0&&(ce.i=xe.i),ye.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var be;be=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=be,ne.selectedSizeFn&&(be=ce.mrc=ne.selectedSizeFn(ce));var we=T.symbolNumber(ce.mx||ue.symbol)||0;ce.om=we%200>=100;var ke=Me(ce,J),Ae=Y(ce,J);ye.attr("d",P(we,be,ke,Ae))}var Ee,De,Re,Ie=!1;if(ce.so)Re=ge.outlierwidth,De=ge.outliercolor,Ee=ue.outliercolor;else{var Be=(ge||{}).width;Re=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,De="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):f.isArrayOrTypedArray(ge.color)?p.defaultLine:ge.color,f.isArrayOrTypedArray(ue.color)&&(Ee=p.defaultLine,Ie=!0),Ee="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Ee=ne.selectedColorFn(ce))}if(ce.om)ye.call(p.stroke,Ee).style({"stroke-width":(Re||1)+"px",fill:"none"});else{ye.style("stroke-width",(ce.isBlank?0:Re)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Ie=!0:qe=Ue&&Ue.type,f.isArrayOrTypedArray(qe)&&(qe=qe[0],F[qe]||(qe=0));var Ye=ue.pattern,at=Ye&&T.getPatternAttr(Ye.shape,ce.i,"");if(qe&&qe!=="none"){var lt=ce.mgc;lt?Ie=!0:lt=Ue.color;var ct=J.uid;Ie&&(ct+="-"+ce.i),T.gradient(ye,de,ct,qe,[[0,lt],[1,Ee]],"fill")}else if(at){var bt=!1,ze=Ye.fgcolor;!ze&&xe&&xe.color&&(ze=xe.color,bt=!0);var Ne=T.getPatternAttr(ze,ce.i,xe&&xe.color||null),Qe=T.getPatternAttr(Ye.bgcolor,ce.i,null),it=Ye.fgopacity,kt=T.getPatternAttr(Ye.size,ce.i,8),Je=T.getPatternAttr(Ye.solidity,ce.i,.3);bt=bt||ce.mcc||f.isArrayOrTypedArray(Ye.shape)||f.isArrayOrTypedArray(Ye.bgcolor)||f.isArrayOrTypedArray(Ye.fgcolor)||f.isArrayOrTypedArray(Ye.size)||f.isArrayOrTypedArray(Ye.solidity);var ut=J.uid;bt&&(ut+="-"+ce.i),T.pattern(ye,"point",de,ut,at,kt,Je,ce.mcc,Ye.fillmode,Qe,Ne,it)}else f.isArrayOrTypedArray(Ee)?p.fill(ye,Ee[ce.i]):p.fill(ye,Ee);Re&&p.stroke(ye,De)}},T.makePointStyleFns=function(ce){var ye={},J=ce.marker;return ye.markerScale=T.tryColorscale(J,""),ye.lineScale=T.tryColorscale(J,"line"),h.traceIs(ce,"symbols")&&(ye.ms2mrc=_.isBubble(ce)?w(ce):function(){return(J.size||6)/2}),ce.selectedpoints&&f.extendFlat(ye,T.makeSelectedPointStyleFns(ce)),ye},T.makeSelectedPointStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.marker||{},xe=J.marker||{},ue=ne.marker||{},ge=de.opacity,be=xe.opacity,we=ue.opacity,ke=be!==void 0,Ae=we!==void 0;(f.isArrayOrTypedArray(ge)||ke||Ae)&&(ye.selectedOpacityFn=function(at){var lt=at.mo===void 0?de.opacity:at.mo;return at.selected?ke?be:lt:Ae?we:x*lt});var Ee=de.color,De=xe.color,Re=ue.color;(De||Re)&&(ye.selectedColorFn=function(at){var lt=at.mcc||Ee;return at.selected?De||lt:Re||lt});var Ie=de.size,Be=xe.size,Ue=ue.size,qe=Be!==void 0,Ye=Ue!==void 0;return h.traceIs(ce,"symbols")&&(qe||Ye)&&(ye.selectedSizeFn=function(at){var lt=at.mrc||Ie/2;return at.selected?qe?Be/2:lt:Ye?Ue/2:lt}),ye},T.makeSelectedTextStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.textfont||{},xe=J.textfont||{},ue=ne.textfont||{},ge=de.color,be=xe.color,we=ue.color;return ye.selectedTextColorFn=function(ke){var Ae=ke.tc||ge;return ke.selected?be||Ae:we||(be?Ae:p.addOpacity(Ae,x))},ye},T.selectedPointStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedPointStyleFns(ye),ne=ye.marker||{},de=[];J.selectedOpacityFn&&de.push(function(xe,ue){xe.style("opacity",J.selectedOpacityFn(ue))}),J.selectedColorFn&&de.push(function(xe,ue){p.fill(xe,J.selectedColorFn(ue))}),J.selectedSizeFn&&de.push(function(xe,ue){var ge=ue.mx||ne.symbol||0,be=J.selectedSizeFn(ue);xe.attr("d",P(T.symbolNumber(ge),be,Me(ue,ye),Y(ue,ye))),ue.mrc2=be}),de.length&&ce.each(function(xe){for(var ue=l.select(this),ge=0;ge0?J:0}function N(ce,ye,J){return J&&(ce=H(ce)),ye?W(ce[1]):E(ce[0])}function E(ce){var ye=l.round(ce,2);return A=ye,ye}function W(ce){var ye=l.round(ce,2);return z=ye,ye}function G(ce,ye,J,ne){var de=ce[0]-ye[0],xe=ce[1]-ye[1],ue=J[0]-ye[0],ge=J[1]-ye[1],be=Math.pow(de*de+xe*xe,.25),we=Math.pow(ue*ue+ge*ge,.25),ke=(we*we*de-be*be*ue)*ne,Ae=(we*we*xe-be*be*ge)*ne,Ee=3*we*(be+we),De=3*be*(be+we);return[[E(ye[0]+(Ee&&ke/Ee)),W(ye[1]+(Ee&&Ae/Ee))],[E(ye[0]-(De&&ke/De)),W(ye[1]-(De&&Ae/De))]]}T.textPointStyle=function(ce,ye,J){if(ce.size()){var ne;if(ye.selectedpoints){var de=T.makeSelectedTextStyleFns(ye);ne=de.selectedTextColorFn}var xe=ye.texttemplate,ue=J._fullLayout;ce.each(function(ge){var be=l.select(this),we=xe?f.extractOption(ge,ye,"txt","texttemplate"):f.extractOption(ge,ye,"tx","text");if(we||we===0){if(xe){var ke=ye._module.formatLabels,Ae=ke?ke(ge,ye,ue):{},Ee={};k(Ee,ye,ge.i);var De=ye._meta||{};we=f.texttemplateString(we,Ae,ue._d3locale,Ee,ge,De)}var Re=ge.tp||ye.textposition,Ie=j(ge,ye),Be=ne?ne(ge):ge.tc||ye.textfont.color;be.call(T.font,ge.tf||ye.textfont.family,Ie,Be).text(we).call(v.convertToTspans,J).call($,Re,Ie,ge.mrc)}else be.remove()})}},T.selectedTextStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedTextStyleFns(ye);ce.each(function(ne){var de=l.select(this),xe=J.selectedTextColorFn(ne),ue=ne.tp||ye.textposition,ge=j(ne,ye);p.fill(de,xe);var be=h.traceIs(ye,"bar-like");$(de,ue,ge,ne.mrc2||ne.mrc,be)})}},T.smoothopen=function(ce,ye){if(ce.length<3)return"M"+ce.join("L");var J,ne="M"+ce[0],de=[];for(J=1;J=be||at>=ke&&at<=be)&&(lt<=Ae&<>=we||lt>=Ae&<<=we)&&(ce=[at,lt])}return ce}T.steps=function(ce){var ye=L[ce]||q;return function(J){for(var ne="M"+E(J[0][0])+","+W(J[0][1]),de=J.length,xe=1;xe=1e4&&(T.savedBBoxes={},V=0),J&&(T.savedBBoxes[J]=De),V++,f.extendFlat({},De)},T.setClipUrl=function(ce,ye,J){ce.attr("clip-path",ee(ye,J))},T.getTranslate=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||0,y:+ye[1]||0}},T.setTranslate=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||0,J=J||0,xe=xe.replace(/(\btranslate\(.*?\);?)/,"").trim(),xe=(xe+=y(ye,J)).trim(),ce[de]("transform",xe),xe},T.getScale=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||1,y:+ye[1]||1}},T.setScale=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||1,J=J||1,xe=xe.replace(/(\bscale\(.*?\);?)/,"").trim(),xe=(xe+="scale("+ye+","+J+")").trim(),ce[de]("transform",xe),xe};var U=/\s*sc.*/;T.setPointGroupScale=function(ce,ye,J){if(ye=ye||1,J=J||1,ce){var ne=ye===1&&J===1?"":"scale("+ye+","+J+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(U,"");de=(de+=ne).trim(),this.setAttribute("transform",de)})}};var Q=/translate\([^)]*\)\s*$/;function Y(ce,ye){var J;return ce&&(J=ce.mf),J===void 0&&(J=ye.marker&&ye.marker.standoff||0),ye._geo||ye._xA?J:-J}T.setTextPointsScale=function(ce,ye,J){ce&&ce.each(function(){var ne,de=l.select(this),xe=de.select("text");if(xe.node()){var ue=parseFloat(xe.attr("x")||0),ge=parseFloat(xe.attr("y")||0),be=(de.attr("transform")||"").match(Q);ne=ye===1&&J===1?[]:[y(ue,ge),"scale("+ye+","+J+")",y(-ue,-ge)],be&&ne.push(be),de.attr("transform",ne.join(""))}})},T.getMarkerStandoff=Y;var Z,X,re,ie,le,se,pe=Math.atan2,Te=Math.cos,Se=Math.sin;function Oe(ce,ye){var J=ye[0],ne=ye[1];return[J*Te(ce)-ne*Se(ce),J*Se(ce)+ne*Te(ce)]}function Me(ce,ye){var J,ne,de=ce.ma;de===void 0&&(de=ye.marker.angle||0);var xe=ye.marker.angleref;if(xe==="previous"||xe==="north"){if(ye._geo){var ue=ye._geo.project(ce.lonlat);J=ue[0],ne=ue[1]}else{var ge=ye._xA,be=ye._yA;if(!ge||!be)return 90;J=ge.c2p(ce.x),ne=be.c2p(ce.y)}if(ye._geo){var we,ke=ce.lonlat[0],Ae=ce.lonlat[1],Ee=ye._geo.project([ke,Ae+1e-5]),De=ye._geo.project([ke+1e-5,Ae]),Re=pe(De[1]-ne,De[0]-J),Ie=pe(Ee[1]-ne,Ee[0]-J);if(xe==="north")we=de/180*Math.PI;else if(xe==="previous"){var Be=ke/180*Math.PI,Ue=Ae/180*Math.PI,qe=Z/180*Math.PI,Ye=X/180*Math.PI,at=qe-Be,lt=Te(Ye)*Se(at),ct=Se(Ye)*Te(Ue)-Te(Ye)*Se(Ue)*Te(at);we=-pe(lt,ct)-Math.PI,Z=ke,X=Ae}var bt=Oe(Re,[Te(we),0]),ze=Oe(Ie,[Se(we),0]);de=pe(bt[1]+ze[1],bt[0]+ze[0])/Math.PI*180,xe!=="previous"||se===ye.uid&&ce.i===le+1||(de=null)}if(xe==="previous"&&!ye._geo)if(se===ye.uid&&ce.i===le+1&&c(J)&&c(ne)){var Ne=J-re,Qe=ne-ie,it=ye.line&&ye.line.shape||"",kt=it.slice(it.length-1);kt==="h"&&(Qe=0),kt==="v"&&(Ne=0),de+=pe(Qe,Ne)/Math.PI*180+90}else de=null}return re=J,ie=ne,le=ce.i,se=ye.uid,de}T.getMarkerAngle=Me},90998:function(o,a,n){var l,f,s,c,d=n(95616),h=n(39898).round,p="M0,0Z",m=Math.sqrt(2),y=Math.sqrt(3),v=Math.PI,g=Math.cos,b=Math.sin;function x(w){return w===null}function _(w,k,T){if(!(w&&w%360!=0||k))return T;if(s===w&&c===k&&l===T)return f;function M(N,E){var W=g(N),G=b(N),L=E[0],q=E[1]+(k||0);return[L*W-q*G,L*G+q*W]}s=w,c=k,l=T;for(var S=w/180*v,C=0,P=0,D=d(T),O="",R=0;R0,b=d._context.staticPlot;h.each(function(x){var _,w=x[0].trace,k=w.error_x||{},T=w.error_y||{};w.ids&&(_=function(P){return P.id});var M=c.hasMarkers(w)&&w.marker.maxdisplayed>0;T.visible||k.visible||(x=[]);var S=l.select(this).selectAll("g.errorbar").data(x,_);if(S.exit().remove(),x.length){k.visible||S.selectAll("path.xerror").remove(),T.visible||S.selectAll("path.yerror").remove(),S.style("opacity",1);var C=S.enter().append("g").classed("errorbar",!0);g&&C.style("opacity",0).transition().duration(m.duration).style("opacity",1),s.setClipUrl(S,p.layerClipId,d),S.each(function(P){var D=l.select(this),O=function($,j,N){var E={x:j.c2p($.x),y:N.c2p($.y)};return $.yh!==void 0&&(E.yh=N.c2p($.yh),E.ys=N.c2p($.ys),f(E.ys)||(E.noYS=!0,E.ys=N.c2p($.ys,!0))),$.xh!==void 0&&(E.xh=j.c2p($.xh),E.xs=j.c2p($.xs),f(E.xs)||(E.noXS=!0,E.xs=j.c2p($.xs,!0))),E}(P,y,v);if(!M||P.vis){var R,F=D.select("path.yerror");if(T.visible&&f(O.x)&&f(O.yh)&&f(O.ys)){var A=T.width;R="M"+(O.x-A)+","+O.yh+"h"+2*A+"m-"+A+",0V"+O.ys,O.noYS||(R+="m-"+A+",0h"+2*A),F.size()?g&&(F=F.transition().duration(m.duration).ease(m.easing)):F=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("yerror",!0),F.attr("d",R)}else F.remove();var z=D.select("path.xerror");if(k.visible&&f(O.y)&&f(O.xh)&&f(O.xs)){var B=(k.copy_ystyle?T:k).width;R="M"+O.xh+","+(O.y-B)+"v"+2*B+"m0,-"+B+"H"+O.xs,O.noXS||(R+="m0,-"+B+"v"+2*B),z.size()?g&&(z=z.transition().duration(m.duration).ease(m.easing)):z=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("xerror",!0),z.attr("d",R)}else z.remove()}})}})}},62662:function(o,a,n){var l=n(39898),f=n(7901);o.exports=function(s){s.each(function(c){var d=c[0].trace,h=d.error_y||{},p=d.error_x||{},m=l.select(this);m.selectAll("path.yerror").style("stroke-width",h.thickness+"px").call(f.stroke,h.color),p.copy_ystyle&&(p=h),m.selectAll("path.xerror").style("stroke-width",p.thickness+"px").call(f.stroke,p.color)})}},77914:function(o,a,n){var l=n(41940),f=n(528).hoverlabel,s=n(1426).extendFlat;o.exports={hoverlabel:{bgcolor:s({},f.bgcolor,{arrayOk:!0}),bordercolor:s({},f.bordercolor,{arrayOk:!0}),font:l({arrayOk:!0,editType:"none"}),align:s({},f.align,{arrayOk:!0}),namelength:s({},f.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(o,a,n){var l=n(71828),f=n(73972);function s(c,d,h,p){p=p||l.identity,Array.isArray(c)&&(d[0][h]=p(c))}o.exports=function(c){var d=c.calcdata,h=c._fullLayout;function p(b){return function(x){return l.coerceHoverinfo({hoverinfo:x},{_module:b._module},h)}}for(var m=0;m=0&&y.indexde[0]._length||pt<0||pt>xe[0]._length)return b.unhoverRaw(ie,le)}else ut="xpx"in le?le.xpx:de[0]._length/2,pt="ypx"in le?le.ypx:xe[0]._length/2;if(le.pointerX=ut+de[0]._offset,le.pointerY=pt+xe[0]._offset,De="xval"in le?w.flat(Se,le.xval):w.p2c(de,ut),Re="yval"in le?w.flat(Se,le.yval):w.p2c(xe,pt),!f(De[0])||!f(Re[0]))return c.warn("Fx.hover failed",le,ie),b.unhoverRaw(ie,le)}var zt=1/0;function wt(Zt,pn){for(Be=0;BeNe&&(Qe.splice(0,Ne),zt=Qe[0].distance),ye&&Ee!==0&&Qe.length===0){ze.distance=Ee,ze.index=!1;var Dn=qe._module.hoverPoints(ze,ct,bt,"closest",{hoverLayer:Oe._hoverlayer});if(Dn&&(Dn=Dn.filter(function(lr){return lr.spikeDistance<=Ee})),Dn&&Dn.length){var wn,En=Dn.filter(function(lr){return lr.xa.showspikes&&lr.xa.spikesnap!=="hovered data"});if(En.length){var tr=En[0];f(tr.x0)&&f(tr.y0)&&(wn=_e(tr),(!kt.vLinePoint||kt.vLinePoint.spikeDistance>wn.spikeDistance)&&(kt.vLinePoint=wn))}var oa=Dn.filter(function(lr){return lr.ya.showspikes&&lr.ya.spikesnap!=="hovered data"});if(oa.length){var da=oa[0];f(da.x0)&&f(da.y0)&&(wn=_e(da),(!kt.hLinePoint||kt.hLinePoint.spikeDistance>wn.spikeDistance)&&(kt.hLinePoint=wn))}}}}}function ve(Zt,pn,nn){for(var Kt,On=null,Tn=1/0,Dn=0;Dn0&&Math.abs(Zt.distance)Ft-1;Vt--)gt(Qe[Vt]);Qe=St,Ze()}var ht=ie._hoverdata,yt=[],qt=te(ie),Et=ee(ie);for(Ie=0;Ie1||Qe.length>1)||ke==="closest"&&Je&&Qe.length>1,cn=g.combine(Oe.plot_bgcolor||g.background,Oe.paper_bgcolor),ln=j(Qe,{gd:ie,hovermode:ke,rotateLabels:tn,bgColor:cn,container:Oe._hoverlayer,outerContainer:Oe._paper.node(),commonLabelOpts:Oe.hoverlabel,hoverdistance:Oe.hoverdistance}),an=ln.hoverLabels;if(w.isUnifiedHover(ke)||(function(Zt,pn,nn,Kt){var On,Tn,Dn,wn,En,tr,oa,da=pn?"xa":"ya",lr=pn?"ya":"xa",ti=0,Ar=1,ur=Zt.size(),kr=new Array(ur),la=0,An=Kt.minX,on=Kt.maxX,$n=Kt.minY,Pr=Kt.maxY,Ln=function(kn){return kn*nn._invScaleX},Bn=function(kn){return kn*nn._invScaleY};function jn(kn){var Dr=kn[0],Aa=kn[kn.length-1];if(Tn=Dr.pmin-Dr.pos-Dr.dp+Dr.size,Dn=Aa.pos+Aa.dp+Aa.size-Dr.pmax,Tn>.01){for(En=kn.length-1;En>=0;En--)kn[En].dp+=Tn;On=!1}if(!(Dn<.01)){if(Tn<-.01){for(En=kn.length-1;En>=0;En--)kn[En].dp-=Dn;On=!1}if(On){var Br=0;for(wn=0;wnDr.pmax&&Br++;for(wn=kn.length-1;wn>=0&&!(Br<=0);wn--)(tr=kn[wn]).pos>Dr.pmax-1&&(tr.del=!0,Br--);for(wn=0;wn=0;En--)kn[En].dp-=Dn;for(wn=kn.length-1;wn>=0&&!(Br<=0);wn--)(tr=kn[wn]).pos+tr.dp+tr.size>Dr.pmax&&(tr.del=!0,Br--)}}}for(Zt.each(function(kn){var Dr=kn[da],Aa=kn[lr],Br=Dr._id.charAt(0)==="x",Fi=Dr.range;la===0&&Fi&&Fi[0]>Fi[1]!==Br&&(Ar=-1);var Ni=0,mi=Br?nn.width:nn.height;if(nn.hovermode==="x"||nn.hovermode==="y"){var ni,Ga,vi=E(kn,pn),us=kn.anchor,nl=us==="end"?-1:1;if(us==="middle")Ga=(ni=kn.crossPos+(Br?Bn(vi.y-kn.by/2):Ln(kn.bx/2+kn.tx2width/2)))+(Br?Bn(kn.by):Ln(kn.bx));else if(Br)Ga=(ni=kn.crossPos+Bn(R+vi.y)-Bn(kn.by/2-R))+Bn(kn.by);else{var cs=Ln(nl*R+vi.x),oo=cs+Ln(nl*kn.bx);ni=kn.crossPos+Math.min(cs,oo),Ga=kn.crossPos+Math.max(cs,oo)}Br?$n!==void 0&&Pr!==void 0&&Math.min(Ga,Pr)-Math.max(ni,$n)>1&&(Aa.side==="left"?(Ni=Aa._mainLinePosition,mi=nn.width):mi=Aa._mainLinePosition):An!==void 0&&on!==void 0&&Math.min(Ga,on)-Math.max(ni,An)>1&&(Aa.side==="top"?(Ni=Aa._mainLinePosition,mi=nn.height):mi=Aa._mainLinePosition)}kr[la++]=[{datum:kn,traceIndex:kn.trace.index,dp:0,pos:kn.pos,posref:kn.posref,size:kn.by*(Br?P:1)/2,pmin:Ni,pmax:mi}]}),kr.sort(function(kn,Dr){return kn[0].posref-Dr[0].posref||Ar*(Dr[0].traceIndex-kn[0].traceIndex)});!On&&ti<=ur;){for(ti++,On=!0,wn=0;wn.01&&xr.pmin===Mr.pmin&&xr.pmax===Mr.pmax){for(En=Lr.length-1;En>=0;En--)Lr[En].dp+=Tn;for(Un.push.apply(Un,Lr),kr.splice(wn+1,1),oa=0,En=Un.length-1;En>=0;En--)oa+=Un[En].dp;for(Dn=oa/Un.length,En=Un.length-1;En>=0;En--)Un[En].dp-=Dn;On=!1}else wn++}kr.forEach(jn)}for(wn=kr.length-1;wn>=0;wn--){var Na=kr[wn];for(En=Na.length-1;En>=0;En--){var wa=Na[En],sa=wa.datum;sa.offset=wa.dp,sa.del=wa.del}}}(an,tn,Oe,ln.commonLabelBoundingBox),W(an,tn,Oe._invScaleX,Oe._invScaleY)),Te&&Te.tagName){var sn=_.getComponentMethod("annotations","hasClickToShow")(ie,yt);y(l.select(Te),sn?"pointer":"")}Te&&!pe&&function(Zt,pn,nn){if(!nn||nn.length!==Zt._hoverdata.length)return!0;for(var Kt=nn.length-1;Kt>=0;Kt--){var On=nn[Kt],Tn=Zt._hoverdata[Kt];if(On.curveNumber!==Tn.curveNumber||String(On.pointNumber)!==String(Tn.pointNumber)||String(On.pointNumbers)!==String(Tn.pointNumbers))return!0}return!1}(ie,0,ht)&&(ht&&ie.emit("plotly_unhover",{event:le,points:ht}),ie.emit("plotly_hover",{event:le,points:ie._hoverdata,xaxes:de,yaxes:xe,xvals:De,yvals:Re}))})(Q,Y,Z,X,re)})},a.loneHover=function(Q,Y){var Z=!0;Array.isArray(Q)||(Z=!1,Q=[Q]);var X=Y.gd,re=te(X),ie=ee(X),le=j(Q.map(function(Te){var Se=Te._x0||Te.x0||Te.x||0,Oe=Te._x1||Te.x1||Te.x||0,Me=Te._y0||Te.y0||Te.y||0,ce=Te._y1||Te.y1||Te.y||0,ye=Te.eventData;if(ye){var J=Math.min(Se,Oe),ne=Math.max(Se,Oe),de=Math.min(Me,ce),xe=Math.max(Me,ce),ue=Te.trace;if(_.traceIs(ue,"gl3d")){var ge=X._fullLayout[ue.scene]._scene.container,be=ge.offsetLeft,we=ge.offsetTop;J+=be,ne+=be,de+=we,xe+=we}ye.bbox={x0:J+ie,x1:ne+ie,y0:de+re,y1:xe+re},Y.inOut_bbox&&Y.inOut_bbox.push(ye.bbox)}else ye=!1;return{color:Te.color||g.defaultLine,x0:Te.x0||Te.x||0,x1:Te.x1||Te.x||0,y0:Te.y0||Te.y||0,y1:Te.y1||Te.y||0,xLabel:Te.xLabel,yLabel:Te.yLabel,zLabel:Te.zLabel,text:Te.text,name:Te.name,idealAlign:Te.idealAlign,borderColor:Te.borderColor,fontFamily:Te.fontFamily,fontSize:Te.fontSize,fontColor:Te.fontColor,nameLength:Te.nameLength,textAlign:Te.textAlign,trace:Te.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Te.hovertemplate||!1,hovertemplateLabels:Te.hovertemplateLabels||!1,eventData:ye}}),{gd:X,hovermode:"closest",rotateLabels:!1,bgColor:Y.bgColor||g.background,container:l.select(Y.container),outerContainer:Y.outerContainer||Y.container}).hoverLabels,se=0,pe=0;return le.sort(function(Te,Se){return Te.y0-Se.y0}).each(function(Te,Se){var Oe=Te.y0-Te.by/2;Te.offset=Oe-5([\s\S]*)<\/extra>/;function j(Q,Y){var Z=Y.gd,X=Z._fullLayout,re=Y.hovermode,ie=Y.rotateLabels,le=Y.bgColor,se=Y.container,pe=Y.outerContainer,Te=Y.commonLabelOpts||{};if(Q.length===0)return[[]];var Se=Y.fontFamily||k.HOVERFONT,Oe=Y.fontSize||k.HOVERFONTSIZE,Me=Q[0],ce=Me.xa,ye=Me.ya,J=re.charAt(0),ne=J+"Label",de=Me[ne];if(de===void 0&&ce.type==="multicategory")for(var xe=0;xeX.width-jt?(ht=X.width-jt,Ft.attr("d","M"+(jt-R)+",0L"+jt+","+Et+R+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H"+(jt-2*R)+"Z")):Ft.attr("d","M0,0L"+R+","+Et+R+"H"+jt+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H-"+R+"Z"),Be.minX=ht-jt,Be.maxX=ht+jt,ce.side==="top"?(Be.minY=yt-(2*F+qt.height),Be.maxY=yt-F):(Be.minY=yt+F,Be.maxY=yt+(2*F+qt.height))}else{var Tt,Ot,At;ye.side==="right"?(Tt="start",Ot=1,At="",ht=ce._offset+ce._length):(Tt="end",Ot=-1,At="-",ht=ce._offset),yt=ye._offset+(Me.y0+Me.y1)/2,Vt.attr("text-anchor",Tt),Ft.attr("d","M0,0L"+At+R+","+R+"V"+(F+qt.height/2)+"h"+At+(2*F+qt.width)+"V-"+(F+qt.height/2)+"H"+At+R+"V-"+R+"Z"),Be.minY=yt-(F+qt.height/2),Be.maxY=yt+(F+qt.height/2),ye.side==="right"?(Be.minX=ht+R,Be.maxX=ht+R+(2*F+qt.width)):(Be.minX=ht-R-(2*F+qt.width),Be.maxX=ht-R);var Lt,Rt=qt.height/2,$t=ge-qt.top-Rt,Yt="clip"+X._uid+"commonlabel"+ye._id;if(ht=0?pt:It+wt=0?It:nt+wt=0?Je:ut+ve=0?ut:st+ve=0,tt.idealAlign!=="top"&&tn||!cn?tn?(Rt+=Yt/2,tt.anchor="start"):tt.anchor="middle":(Rt-=Yt/2,tt.anchor="end"),tt.crossPos=Rt;else{if(tt.pos=Rt,tn=Lt+$t/2+ln<=be,cn=Lt-$t/2-ln>=0,tt.idealAlign!=="left"&&tn||!cn)if(tn)Lt+=$t/2,tt.anchor="start";else{tt.anchor="middle";var an=ln/2,sn=Lt+an-be,Zt=Lt-an;sn>0&&(Lt-=sn),Zt<0&&(Lt+=-Zt)}else Lt-=$t/2,tt.anchor="end";tt.crossPos=Lt}Et.attr("text-anchor",tt.anchor),Tt&&jt.attr("text-anchor",tt.anchor),Ft.attr("transform",d(Lt,Rt)+(ie?h(S):""))}),{hoverLabels:mt,commonLabelBoundingBox:Be}}function N(Q,Y,Z,X,re,ie){var le="",se="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=c.templateString(Q.name,Q.trace._meta)),le=H(Q.name,Q.nameLength));var pe=Z.charAt(0),Te=pe==="x"?"y":"x";Q.zLabel!==void 0?(Q.xLabel!==void 0&&(se+="x: "+Q.xLabel+"
"),Q.yLabel!==void 0&&(se+="y: "+Q.yLabel+"
"),Q.trace.type!=="choropleth"&&Q.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Q.zLabel)):Y&&Q[pe+"Label"]===re?se=Q[Te+"Label"]||"":Q.xLabel===void 0?Q.yLabel!==void 0&&Q.trace.type!=="scattercarpet"&&(se=Q.yLabel):se=Q.yLabel===void 0?Q.xLabel:"("+Q.xLabel+", "+Q.yLabel+")",!Q.text&&Q.text!==0||Array.isArray(Q.text)||(se+=(se?"
":"")+Q.text),Q.extraText!==void 0&&(se+=(se?"
":"")+Q.extraText),ie&&se===""&&!Q.hovertemplate&&(le===""&&ie.remove(),se=le);var Se=Q.hovertemplate||!1;if(Se){var Oe=Q.hovertemplateLabels||Q;Q[pe+"Label"]!==re&&(Oe[pe+"other"]=Oe[pe+"Val"],Oe[pe+"otherLabel"]=Oe[pe+"Label"]),se=(se=c.hovertemplateString(Se,Oe,X._d3locale,Q.eventData[0]||{},Q.trace._meta)).replace($,function(Me,ce){return le=H(ce,Q.nameLength),""})}return[se,le]}function E(Q,Y){var Z=0,X=Q.offset;return Y&&(X*=-O,Z=Q.offset*D),{x:Z,y:X}}function W(Q,Y,Z,X){var re=function(le){return le*Z},ie=function(le){return le*X};Q.each(function(le){var se=l.select(this);if(le.del)return se.remove();var pe,Te,Se,Oe,Me=se.select("text.nums"),ce=le.anchor,ye=ce==="end"?-1:1,J=(Oe=(Se=(Te={start:1,end:-1,middle:0}[(pe=le).anchor])*(R+F))+Te*(pe.txwidth+F),pe.anchor==="middle"&&(Se-=pe.tx2width/2,Oe+=pe.txwidth/2+F),{alignShift:Te,textShiftX:Se,text2ShiftX:Oe}),ne=E(le,Y),de=ne.x,xe=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(le.bx/2+le.tx2width/2)+","+ie(xe-le.by/2)+"h"+re(le.bx)+"v"+ie(le.by)+"h-"+re(le.bx)+"Z":"M0,0L"+re(ye*R+de)+","+ie(R+xe)+"v"+ie(le.by/2-R)+"h"+re(ye*le.bx)+"v-"+ie(le.by)+"H"+re(ye*R+de)+"V"+ie(xe-R)+"Z");var ge=de+J.textShiftX,be=xe+le.ty0-le.by/2+F,we=le.textAlign||"auto";we!=="auto"&&(we==="left"&&ce!=="start"?(Me.attr("text-anchor","start"),ge=ue?-le.bx/2-le.tx2width/2+F:-le.bx-F):we==="right"&&ce!=="end"&&(Me.attr("text-anchor","end"),ge=ue?le.bx/2-le.tx2width/2-F:le.bx+F)),Me.call(m.positionText,re(ge),ie(be)),le.tx2width&&(se.select("text.name").call(m.positionText,re(J.text2ShiftX+J.alignShift*F+de),ie(xe+le.ty0-le.by/2+F)),se.select("rect").call(v.setRect,re(J.text2ShiftX+(J.alignShift-1)*le.tx2width/2+de),ie(xe-le.by/2-1),re(le.tx2width),ie(le.by+2)))})}function G(Q,Y){var Z=Q.index,X=Q.trace||{},re=Q.cd[0],ie=Q.cd[Z]||{};function le(Me){return Me||f(Me)&&Me===0}var se=Array.isArray(Z)?function(Me,ce){var ye=c.castOption(re,Z,Me);return le(ye)?ye:c.extractOption({},X,"",ce)}:function(Me,ce){return c.extractOption(ie,X,Me,ce)};function pe(Me,ce,ye){var J=se(ce,ye);le(J)&&(Q[Me]=J)}if(pe("hoverinfo","hi","hoverinfo"),pe("bgcolor","hbg","hoverlabel.bgcolor"),pe("borderColor","hbc","hoverlabel.bordercolor"),pe("fontFamily","htf","hoverlabel.font.family"),pe("fontSize","hts","hoverlabel.font.size"),pe("fontColor","htc","hoverlabel.font.color"),pe("nameLength","hnl","hoverlabel.namelength"),pe("textAlign","hta","hoverlabel.align"),Q.posref=Y==="y"||Y==="closest"&&X.orientation==="h"?Q.xa._offset+(Q.x0+Q.x1)/2:Q.ya._offset+(Q.y0+Q.y1)/2,Q.x0=c.constrain(Q.x0,0,Q.xa._length),Q.x1=c.constrain(Q.x1,0,Q.xa._length),Q.y0=c.constrain(Q.y0,0,Q.ya._length),Q.y1=c.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:x.hoverLabelText(Q.xa,Q.xLabelVal,X.xhoverformat),Q.xVal=Q.xa.c2d(Q.xLabelVal)),Q.yLabelVal!==void 0&&(Q.yLabel="yLabel"in Q?Q.yLabel:x.hoverLabelText(Q.ya,Q.yLabelVal,X.yhoverformat),Q.yVal=Q.ya.c2d(Q.yLabelVal)),Q.zLabelVal!==void 0&&Q.zLabel===void 0&&(Q.zLabel=String(Q.zLabelVal)),!(isNaN(Q.xerr)||Q.xa.type==="log"&&Q.xerr<=0)){var Te=x.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+Te+" / -"+x.tickText(Q.xa,Q.xa.c2l(Q.xerrneg),"hover").text:Q.xLabel+=" ± "+Te,Y==="x"&&(Q.distance+=1)}if(!(isNaN(Q.yerr)||Q.ya.type==="log"&&Q.yerr<=0)){var Se=x.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Se+" / -"+x.tickText(Q.ya,Q.ya.c2l(Q.yerrneg),"hover").text:Q.yLabel+=" ± "+Se,Y==="y"&&(Q.distance+=1)}var Oe=Q.hoverinfo||Q.trace.hoverinfo;return Oe&&Oe!=="all"&&((Oe=Array.isArray(Oe)?Oe:Oe.split("+")).indexOf("x")===-1&&(Q.xLabel=void 0),Oe.indexOf("y")===-1&&(Q.yLabel=void 0),Oe.indexOf("z")===-1&&(Q.zLabel=void 0),Oe.indexOf("text")===-1&&(Q.text=void 0),Oe.indexOf("name")===-1&&(Q.name=void 0)),Q}function L(Q,Y,Z){var X,re,ie=Z.container,le=Z.fullLayout,se=le._size,pe=Z.event,Te=!!Y.hLinePoint,Se=!!Y.vLinePoint;if(ie.selectAll(".spikeline").remove(),Se||Te){var Oe=g.combine(le.plot_bgcolor,le.paper_bgcolor);if(Te){var Me,ce,ye=Y.hLinePoint;X=ye&&ye.xa,(re=ye&&ye.ya).spikesnap==="cursor"?(Me=pe.pointerX,ce=pe.pointerY):(Me=X._offset+ye.x,ce=re._offset+ye.y);var J,ne,de=s.readability(ye.color,Oe)<1.5?g.contrast(Oe):ye.color,xe=re.spikemode,ue=re.spikethickness,ge=re.spikecolor||de,be=x.getPxPosition(Q,re);if(xe.indexOf("toaxis")!==-1||xe.indexOf("across")!==-1){if(xe.indexOf("toaxis")!==-1&&(J=be,ne=Me),xe.indexOf("across")!==-1){var we=re._counterDomainMin,ke=re._counterDomainMax;re.anchor==="free"&&(we=Math.min(we,re.position),ke=Math.max(ke,re.position)),J=se.l+we*se.w,ne=se.l+ke*se.w}ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:ge,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}xe.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:be+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:ge}).classed("spikeline",!0)}if(Se){var Ae,Ee,De=Y.vLinePoint;X=De&&De.xa,re=De&&De.ya,X.spikesnap==="cursor"?(Ae=pe.pointerX,Ee=pe.pointerY):(Ae=X._offset+De.x,Ee=re._offset+De.y);var Re,Ie,Be=s.readability(De.color,Oe)<1.5?g.contrast(Oe):De.color,Ue=X.spikemode,qe=X.spikethickness,Ye=X.spikecolor||Be,at=x.getPxPosition(Q,X);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&(Re=at,Ie=Ee),Ue.indexOf("across")!==-1){var lt=X._counterDomainMin,ct=X._counterDomainMax;X.anchor==="free"&&(lt=Math.min(lt,X.position),ct=Math.max(ct,X.position)),Re=se.t+(1-ct)*se.h,Ie=se.t+(1-lt)*se.h}ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe,stroke:Ye,"stroke-dasharray":v.dashStyle(X.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:Ae,cy:at-(X.side!=="top"?qe:-qe),r:qe,fill:Ye}).classed("spikeline",!0)}}}function q(Q,Y){return!Y}function H(Q,Y){return m.plainText(Q||"",{len:Y,allowedTags:["br","sub","sup","b","i","em"]})}function V(Q,Y,Z){var X=Y[Q+"a"],re=Y[Q+"Val"],ie=Y.cd[0];if(X.type==="category"||X.type==="multicategory")re=X._categoriesMap[re];else if(X.type==="date"){var le=Y.trace[Q+"periodalignment"];if(le){var se=Y.cd[Y.index],pe=se[Q+"Start"];pe===void 0&&(pe=se[Q]);var Te=se[Q+"End"];Te===void 0&&(Te=se[Q]);var Se=Te-pe;le==="end"?re+=Se:le==="middle"&&(re+=Se/2)}re=X.d2c(re)}return ie&&ie.t&&ie.t.posLetter===X._id&&(Z.boxmode!=="group"&&Z.violinmode!=="group"||(re+=ie.t.dPos)),re}function te(Q){return Q.offsetTop+Q.clientTop}function ee(Q){return Q.offsetLeft+Q.clientLeft}function U(Q,Y){var Z=Q._fullLayout,X=Y.getBoundingClientRect(),re=X.left,ie=X.top,le=re+X.width,se=ie+X.height,pe=c.apply3DTransform(Z._invTransform)(re,ie),Te=c.apply3DTransform(Z._invTransform)(le,se),Se=pe[0],Oe=pe[1],Me=Te[0],ce=Te[1];return{x:Se,y:Oe,width:Me-Se,height:ce-Oe,top:Math.min(Oe,ce),left:Math.min(Se,Me),right:Math.max(Se,Me),bottom:Math.max(Oe,ce)}}},38048:function(o,a,n){var l=n(71828),f=n(7901),s=n(23469).isUnifiedHover;o.exports=function(c,d,h,p){p=p||{};var m=d.legend;function y(v){p.font[v]||(p.font[v]=m?d.legend.font[v]:d.font[v])}d&&s(d.hovermode)&&(p.font||(p.font={}),y("size"),y("family"),y("color"),m?(p.bgcolor||(p.bgcolor=f.combine(d.legend.bgcolor,d.paper_bgcolor)),p.bordercolor||(p.bordercolor=d.legend.bordercolor)):p.bgcolor||(p.bgcolor=d.paper_bgcolor)),h("hoverlabel.bgcolor",p.bgcolor),h("hoverlabel.bordercolor",p.bordercolor),h("hoverlabel.namelength",p.namelength),l.coerceFont(h,"hoverlabel.font",p.font),h("hoverlabel.align",p.align)}},98212:function(o,a,n){var l=n(71828),f=n(528);o.exports=function(s,c){function d(h,p){return c[h]!==void 0?c[h]:l.coerce(s,c,f,h,p)}return d("clickmode"),d("hovermode")}},30211:function(o,a,n){var l=n(39898),f=n(71828),s=n(28569),c=n(23469),d=n(528),h=n(88335);o.exports={moduleType:"component",name:"fx",constants:n(26675),schema:{layout:d},attributes:n(77914),layoutAttributes:d,supplyLayoutGlobalDefaults:n(22774),supplyDefaults:n(54268),supplyLayoutDefaults:n(34938),calc:n(30732),getDistanceFunction:c.getDistanceFunction,getClosest:c.getClosest,inbox:c.inbox,quadrature:c.quadrature,appendArrayPointValue:c.appendArrayPointValue,castHoverOption:function(p,m,y){return f.castOption(p,m,"hoverlabel."+y)},castHoverinfo:function(p,m,y){return f.castOption(p,y,"hoverinfo",function(v){return f.coerceHoverinfo({hoverinfo:v},{_module:p._module},m)})},hover:h.hover,unhover:s.unhover,loneHover:h.loneHover,loneUnhover:function(p){var m=f.isD3Selection(p)?p:l.select(p);m.selectAll("g.hovertext").remove(),m.selectAll(".spikeline").remove()},click:n(75914)}},528:function(o,a,n){var l=n(26675),f=n(41940),s=f({editType:"none"});s.family.dflt=l.HOVERFONT,s.size.dflt=l.HOVERFONTSIZE,o.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:s,grouptitlefont:f({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(o,a,n){var l=n(71828),f=n(528),s=n(98212),c=n(38048);o.exports=function(d,h){function p(g,b){return l.coerce(d,h,f,g,b)}s(d,h)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var m=h._has("mapbox"),y=h._has("geo"),v=h._basePlotModules.length;h.dragmode==="zoom"&&((m||y)&&v===1||m&&y&&v===2)&&(h.dragmode="pan"),c(d,h,p),l.coerceFont(p,"hoverlabel.grouptitlefont",h.hoverlabel.font)}},22774:function(o,a,n){var l=n(71828),f=n(38048),s=n(528);o.exports=function(c,d){f(c,d,function(h,p){return l.coerce(c,d,s,h,p)})}},83312:function(o,a,n){var l=n(71828),f=n(30587).counter,s=n(27670).Y,c=n(85555).idRegex,d=n(44467),h={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[f("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[c.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[c.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:s({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function p(v,g,b){var x=g[b+"axes"],_=Object.keys((v._splomAxes||{})[b]||{});return Array.isArray(x)?x:_.length?_:void 0}function m(v,g,b,x,_,w){var k=g(v+"gap",b),T=g("domain."+v);g(v+"side",x);for(var M=new Array(_),S=T[0],C=(T[1]-S)/(_-k),P=C*(1-k),D=0;D<_;D++){var O=S+C*D;M[w?_-1-D:D]=[O,O+P]}return M}function y(v,g,b,x,_){var w,k=new Array(b);function T(M,S){g.indexOf(S)!==-1&&x[S]===void 0?(k[M]=S,x[S]=M):k[M]=""}if(Array.isArray(v))for(w=0;w1){T||M||S||$("pattern")==="independent"&&(T=!0),P._hasSubplotGrid=T;var R,F,A=$("roworder")==="top to bottom",z=T?.2:.1,B=T?.3:.1;C&&g._splomGridDflt&&(R=g._splomGridDflt.xside,F=g._splomGridDflt.yside),P._domains={x:m("x",$,z,R,O),y:m("y",$,B,F,D,A)}}else delete g.grid}function $(j,N){return l.coerce(b,P,h,j,N)}},contentDefaults:function(v,g){var b=g.grid;if(b&&b._domains){var x,_,w,k,T,M,S,C=v.grid||{},P=g._subplots,D=b._hasSubplotGrid,O=b.rows,R=b.columns,F=b.pattern==="independent",A=b._axisMap={};if(D){var z=C.subplots||[];M=b.subplots=new Array(O);var B=1;for(x=0;x(y==="legend"?1:0));if(B===!1&&(g[y]=void 0),(B!==!1||x.uirevision)&&(w("uirevision",g.uirevision),B!==!1)){w("borderwidth");var $,j,N,E=w("orientation")==="h",W=w("yref")==="paper",G=w("xref")==="paper",L="left";if(E?($=0,l.getComponentMethod("rangeslider","isVisible")(v.xaxis)?W?(j=1.1,N="bottom"):(j=1,N="top"):W?(j=-.1,N="top"):(j=0,N="bottom")):(j=1,N="auto",G?$=1.02:($=1,L="right")),f.coerce(x,_,{x:{valType:"number",editType:"legend",min:G?-2:0,max:G?3:1,dflt:$}},"x"),f.coerce(x,_,{y:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:j}},"y"),w("traceorder",O),p.isGrouped(g[y])&&w("tracegroupgap"),w("entrywidth"),w("entrywidthmode"),w("itemsizing"),w("itemwidth"),w("itemclick"),w("itemdoubleclick"),w("groupclick"),w("xanchor",L),w("yanchor",N),w("valign"),f.noneOrAll(x,_,["x","y"]),w("title.text")){w("title.side",E?"left":"top");var q=f.extendFlat({},k,{size:f.bigFont(k.size)});f.coerceFont(w,"title.font",q)}}}}o.exports=function(y,v,g){var b,x=g.slice(),_=v.shapes;if(_)for(b=0;b<_.length;b++){var w=_[b];if(w.showlegend){var k={_input:w._input,visible:w.visible,showlegend:w.showlegend,legend:w.legend};x.push(k)}}var T=["legend"];for(b=0;b1)}var X=q.hiddenlabels||[];if(!(V||q.showlegend&&te.length))return G.selectAll("."+H).remove(),q._topdefs.select("#"+W).remove(),s.autoMargin(N,H);var re=f.ensureSingle(G,"g",H,function(ce){V||ce.attr("pointer-events","all")}),ie=f.ensureSingleById(q._topdefs,"clipPath",W,function(ce){ce.append("rect")}),le=f.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});le.call(m.stroke,L.bordercolor).call(m.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,pe=f.ensureSingle(re,"g","scrollbox"),Te=L.title;L._titleWidth=0,L._titleHeight=0,Te.text?((se=f.ensureSingle(pe,"text",H+"titletext")).attr("text-anchor","start").call(p.font,Te.font).text(Te.text),z(se,pe,N,L,S)):pe.selectAll("."+H+"titletext").remove();var Se=f.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(g.scrollBarEnterAttrs).call(m.fill,g.scrollBarColor)}),Oe=pe.selectAll("g.groups").data(te);Oe.enter().append("g").attr("class","groups"),Oe.exit().remove();var Me=Oe.selectAll("g.traces").data(f.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var ye=ce[0].trace;return c.traceIs(ye,"pie-like")?X.indexOf(ce[0].label)!==-1?.5:1:ye.visible==="legendonly"?.5:1}).each(function(){l.select(this).call(R,N,L)}).call(T,N,L).each(function(){V||l.select(this).call(A,N,H)}),f.syncOrAsync([s.previousPromises,function(){return function(ce,ye,J,ne){var de=ce._fullLayout,xe=j(ne);ne||(ne=de[xe]);var ue=de._size,ge=M.isVertical(ne),be=M.isGrouped(ne),we=ne.entrywidthmode==="fraction",ke=ne.borderwidth,Ae=2*ke,Ee=g.itemGap,De=ne.itemwidth+2*Ee,Re=2*(ke+Ee),Ie=$(ne),Be=ne.y<0||ne.y===0&&Ie==="top",Ue=ne.y>1||ne.y===1&&Ie==="bottom",qe=ne.tracegroupgap,Ye={};ne._maxHeight=Math.max(Be||Ue?de.height/2:ue.h,30);var at=0;ne._width=0,ne._height=0;var lt=function(Ge){var Ke=0,nt=0,st=Ge.title.side;return st&&(st.indexOf("left")!==-1&&(Ke=Ge._titleWidth),st.indexOf("top")!==-1&&(nt=Ge._titleHeight)),[Ke,nt]}(ne);if(ge)J.each(function(Ge){var Ke=Ge[0].height;p.setTranslate(this,ke+lt[0],ke+lt[1]+ne._height+Ke/2+Ee),ne._height+=Ke,ne._width=Math.max(ne._width,Ge[0].width)}),at=De+ne._width,ne._width+=Ee+De+Ae,ne._height+=Re,be&&(ye.each(function(Ge,Ke){p.setTranslate(this,0,Ke*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var ct=B(ne),bt=ne.x<0||ne.x===0&&ct==="right",ze=ne.x>1||ne.x===1&&ct==="left",Ne=Ue||Be,Qe=de.width/2;ne._maxWidth=Math.max(bt?Ne&&ct==="left"?ue.l+ue.w:Qe:ze?Ne&&ct==="right"?ue.r+ue.w:Qe:ue.w,2*De);var it=0,kt=0;J.each(function(Ge){var Ke=D(Ge,ne,De);it=Math.max(it,Ke),kt+=Ke}),at=null;var Je=0;if(be){var ut=0,pt=0,It=0;ye.each(function(){var Ge=0,Ke=0;l.select(this).selectAll("g.traces").each(function(st){var mt=D(st,ne,De),tt=st[0].height;p.setTranslate(this,lt[0],lt[1]+ke+Ee+tt/2+Ke),Ke+=tt,Ge=Math.max(Ge,mt),Ye[st[0].trace.legendgroup]=Ge});var nt=Ge+Ee;pt>0&&nt+ke+pt>ne._maxWidth?(Je=Math.max(Je,pt),pt=0,It+=ut+qe,ut=Ke):ut=Math.max(ut,Ke),p.setTranslate(this,pt,It),pt+=nt}),ne._width=Math.max(Je,pt)+ke,ne._height=It+ut+Re}else{var Mt=J.size(),zt=kt+Ae+(Mt-1)*Ee=ne._maxWidth&&(Je=Math.max(Je,Ve),ve=0,_e+=wt,ne._height+=wt,wt=0),p.setTranslate(this,lt[0]+ke+ve,lt[1]+ke+_e+Ke/2+Ee),Ve=ve+nt+Ee,ve+=st,wt=Math.max(wt,Ke)}),zt?(ne._width=ve+Ae,ne._height=wt+Re):(ne._width=Math.max(Je,Ve)+Ae,ne._height+=wt+Re)}}ne._width=Math.ceil(Math.max(ne._width+lt[0],ne._titleWidth+2*(ke+g.titlePad))),ne._height=Math.ceil(Math.max(ne._height+lt[1],ne._titleHeight+2*(ke+g.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var We=ce._context.edits,Ze=We.legendText||We.legendPosition;J.each(function(Ge){var Ke=l.select(this).select("."+xe+"toggle"),nt=Ge[0].height,st=Ge[0].trace.legendgroup,mt=D(Ge,ne,De);be&&st!==""&&(mt=Ye[st]);var tt=Ze?De:at||mt;ge||we||(tt+=Ee/2),p.setRect(Ke,0,-nt/2,tt,nt)})}(N,Oe,Me,L)},function(){var ce,ye,J,ne,de=q._size,xe=L.borderwidth,ue=L.xref==="paper",ge=L.yref==="paper";if(Te.text&&function(Ne,Qe,it){if(Qe.title.side==="top center"||Qe.title.side==="top right"){var kt=Qe.title.font.size*x,Je=0,ut=Ne.node(),pt=p.bBox(ut).width;Qe.title.side==="top center"?Je=.5*(Qe._width-2*it-2*g.titlePad-pt):Qe.title.side==="top right"&&(Je=Qe._width-2*it-2*g.titlePad-pt),y.positionText(Ne,it+g.titlePad+Je,it+kt)}}(se,L,xe),!V){var be,we;be=ue?de.l+de.w*L.x-_[B(L)]*L._width:q.width*L.x-_[B(L)]*L._width,we=ge?de.t+de.h*(1-L.y)-_[$(L)]*L._effHeight:q.height*(1-L.y)-_[$(L)]*L._effHeight;var ke=function(Ne,Qe,it,kt){var Je=Ne._fullLayout,ut=Je[Qe],pt=B(ut),It=$(ut),Mt=ut.xref==="paper",zt=ut.yref==="paper";Ne._fullLayout._reservedMargin[Qe]={};var wt=ut.y<.5?"b":"t",ve=ut.x<.5?"l":"r",_e={r:Je.width-it,l:it+ut._width,b:Je.height-kt,t:kt+ut._effHeight};if(Mt&&zt)return s.autoMargin(Ne,Qe,{x:ut.x,y:ut.y,l:ut._width*_[pt],r:ut._width*w[pt],b:ut._effHeight*w[It],t:ut._effHeight*_[It]});Mt?Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]:zt||ut.orientation==="v"?Ne._fullLayout._reservedMargin[Qe][ve]=_e[ve]:Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]}(N,H,be,we);if(ke)return;if(q.margin.autoexpand){var Ae=be,Ee=we;be=ue?f.constrain(be,0,q.width-L._width):Ae,we=ge?f.constrain(we,0,q.height-L._effHeight):Ee,be!==Ae&&f.log("Constrain "+H+".x to make legend fit inside graph"),we!==Ee&&f.log("Constrain "+H+".y to make legend fit inside graph")}p.setTranslate(re,be,we)}if(Se.on(".drag",null),re.on("wheel",null),V||L._height<=L._maxHeight||N._context.staticPlot){var De=L._effHeight;V&&(De=L._height),le.attr({width:L._width-xe,height:De-xe,x:xe/2,y:xe/2}),p.setTranslate(pe,0,0),ie.select("rect").attr({width:L._width-2*xe,height:De-2*xe,x:xe,y:xe}),p.setClipUrl(pe,W,N),p.setRect(Se,0,0,0,0),delete L._scrollY}else{var Re,Ie,Be,Ue=Math.max(g.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*g.scrollBarMargin,Ye=L._height-L._effHeight,at=qe/Ye,lt=Math.min(L._scrollY||0,Ye);le.attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-xe,x:xe/2,y:xe/2}),ie.select("rect").attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-2*xe,x:xe,y:xe+lt}),p.setClipUrl(pe,W,N),ze(lt,Ue,at),re.on("wheel",function(){ze(lt=f.constrain(L._scrollY+l.event.deltaY/qe*Ye,0,Ye),Ue,at),lt!==0&<!==Ye&&l.event.preventDefault()});var ct=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Re=Ne.type==="touchstart"?Ne.changedTouches[0].clientY:Ne.clientY,Be=lt}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ie=Ne.type==="touchmove"?Ne.changedTouches[0].clientY:Ne.clientY,lt=function(Qe,it,kt){var Je=(kt-it)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});Se.call(ct);var bt=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Ne.type==="touchstart"&&(Re=Ne.changedTouches[0].clientY,Be=lt)}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.type==="touchmove"&&(Ie=Ne.changedTouches[0].clientY,lt=function(Qe,it,kt){var Je=(it-kt)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});pe.call(bt)}function ze(Ne,Qe,it){L._scrollY=N._fullLayout[H]._scrollY=Ne,p.setTranslate(pe,0,-Ne),p.setRect(Se,L._width,g.scrollBarMargin+Ne*it,g.scrollBarWidth,Qe),ie.select("rect").attr("y",xe+Ne)}N._context.edits.legendPosition&&(re.classed("cursor-move",!0),h.init({element:re.node(),gd:N,prepFn:function(){var Ne=p.getTranslate(re);J=Ne.x,ne=Ne.y},moveFn:function(Ne,Qe){var it=J+Ne,kt=ne+Qe;p.setTranslate(re,it,kt),ce=h.align(it,L._width,de.l,de.l+de.w,L.xanchor),ye=h.align(kt+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&ye!==void 0){var Ne={};Ne[H+".x"]=ce,Ne[H+".y"]=ye,c.call("_guiRelayout",N,Ne)}},clickFn:function(Ne,Qe){var it=G.selectAll("g.traces").filter(function(){var kt=this.getBoundingClientRect();return Qe.clientX>=kt.left&&Qe.clientX<=kt.right&&Qe.clientY>=kt.top&&Qe.clientY<=kt.bottom});it.size()>0&&O(N,re,it,Ne,Qe)}}))}],N)}}function D(N,E,W){var G=N[0],L=G.width,q=E.entrywidthmode,H=G.trace.legendwidth||E.entrywidth;return q==="fraction"?E._maxWidth*H:W+(H||L)}function O(N,E,W,G,L){var q=W.data()[0][0].trace,H={event:L,node:W.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};q._group&&(H.group=q._group),c.traceIs(q,"pie-like")&&(H.label=W.datum()[0].label);var V=d.triggerHandler(N,"plotly_legendclick",H);if(G===1){if(V===!1)return;E._clickTimeout=setTimeout(function(){N._fullLayout&&v(W,N,G)},N._context.doubleClickDelay)}else G===2&&(E._clickTimeout&&clearTimeout(E._clickTimeout),N._legendMouseDownTime=0,d.triggerHandler(N,"plotly_legenddoubleclick",H)!==!1&&V!==!1&&v(W,N,G))}function R(N,E,W){var G,L,q=j(W),H=N.data()[0][0],V=H.trace,te=c.traceIs(V,"pie-like"),ee=!W._inHover&&E._context.edits.legendText&&!te,U=W._maxNameLength;H.groupTitle?(G=H.groupTitle.text,L=H.groupTitle.font):(L=W.font,W.entries?G=H.text:(G=te?H.label:V.name,V._meta&&(G=f.templateString(G,V._meta))));var Q=f.ensureSingle(N,"text",q+"text");Q.attr("text-anchor","start").call(p.font,L).text(ee?F(G,U):G);var Y=W.itemwidth+2*g.itemGap;y.positionText(Q,Y,0),ee?Q.call(y.makeEditable,{gd:E,text:G}).call(z,N,E,W).on("edit",function(Z){this.text(F(Z,U)).call(z,N,E,W);var X=H.trace._fullInput||{},re={};if(c.hasTransform(X,"groupby")){var ie=c.getTransformIndices(X,"groupby"),le=ie[ie.length-1],se=f.keyedContainer(X,"transforms["+le+"].styles","target","value.name");se.set(H.trace._group,Z),re=se.constructUpdate()}else re.name=Z;return X._isShape?c.call("_guiRelayout",E,"shapes["+V.index+"].name",re.name):c.call("_guiRestyle",E,re,V.index)}):z(Q,N,E,W)}function F(N,E){var W=Math.max(4,E);if(N&&N.trim().length>=W/2)return N;for(var G=W-(N=N||"").length;G>0;G--)N+=" ";return N}function A(N,E,W){var G,L=E._context.doubleClickDelay,q=1,H=f.ensureSingle(N,"rect",W+"toggle",function(V){E._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(m.fill,"rgba(0,0,0,0)")});E._context.staticPlot||(H.on("mousedown",function(){(G=new Date().getTime())-E._legendMouseDownTimeL&&(q=Math.max(q-1,1)),O(E,V,N,q,l.event)}}))}function z(N,E,W,G,L){G._inHover&&N.attr("data-notex",!0),y.convertToTspans(N,W,function(){(function(q,H,V,te){var ee=q.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var U=q.select("g[class*=math-group]"),Q=U.node(),Y=j(V);V||(V=H._fullLayout[Y]);var Z,X,re=V.borderwidth,ie=(te===S?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*x;if(Q){var le=p.bBox(Q);Z=le.height,X=le.width,te===S?p.setTranslate(U,re,re+.75*Z):p.setTranslate(U,0,.25*Z)}else{var se="."+Y+(te===S?"title":"")+"text",pe=q.select(se),Te=y.lineCount(pe),Se=pe.node();if(Z=ie*Te,X=Se?p.bBox(Se).width:0,te===S)V.title.side==="left"&&(X+=2*g.itemGap),y.positionText(pe,re+g.titlePad,re+ie);else{var Oe=2*g.itemGap+V.itemwidth;ee.groupTitle&&(Oe=g.itemGap,X-=V.itemwidth),y.positionText(pe,Oe,-ie*((Te-1)/2-.3))}}te===S?(V._titleWidth=X,V._titleHeight=Z):(ee.lineHeight=ie,ee.height=Math.max(Z,16)+3,ee.width=X)}else q.remove()})(E,W,G,L)})}function B(N){return f.isRightAnchor(N)?"right":f.isCenterAnchor(N)?"center":"left"}function $(N){return f.isBottomAnchor(N)?"bottom":f.isMiddleAnchor(N)?"middle":"top"}function j(N){return N._id||"legend"}o.exports=function(N,E){if(E)P(N,E);else{var W=N._fullLayout,G=W._legends;W._infolayer.selectAll('[class^="legend"]').each(function(){var H=l.select(this),V=H.attr("class").split(" ")[0];V.match(C)&&G.indexOf(V)===-1&&H.remove()});for(var L=0;LB&&(z=B)}F[h][0]._groupMinRank=z,F[h][0]._preGroupSort=h}var $=function(G,L){return G.trace.legendrank-L.trace.legendrank||G._preSort-L._preSort};for(F.forEach(function(G,L){G[0]._preGroupSort=L}),F.sort(function(G,L){return G[0]._groupMinRank-L[0]._groupMinRank||G[0]._preGroupSort-L[0]._preGroupSort}),h=0;hT?T:w}o.exports=function(w,k,T){var M=k._fullLayout;T||(T=M.legend);var S=T.itemsizing==="constant",C=T.itemwidth,P=(C+2*g.itemGap)/2,D=c(P,0),O=function(A,z,B,$){var j;if(A+1)j=A;else{if(!(z&&z.width>0))return 0;j=z.width}return S?$:Math.min(j,B)};function R(A,z,B){var $=A[0].trace,j=$.marker||{},N=j.line||{},E=B?$.visible&&$.type===B:f.traceIs($,"bar"),W=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(E?[A]:[]);W.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),W.exit().remove(),W.each(function(G){var L=l.select(this),q=G[0],H=O(q.mlw,j.line,5,2);L.style("stroke-width",H+"px");var V=q.mcc;if(!T._inHover&&"mc"in q){var te=p(j),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),V=d.tryColorscale(j,"")(ee)}var U=V||q.mc||j.color,Q=j.pattern,Y=Q&&d.getPatternAttr(Q.shape,0,"");if(Y){var Z=d.getPatternAttr(Q.bgcolor,0,null),X=d.getPatternAttr(Q.fgcolor,0,null),re=Q.fgopacity,ie=_(Q.size,8,10),le=_(Q.solidity,.5,1),se="legend-"+$.uid;L.call(d.pattern,"legend",k,se,Y,ie,le,V,Q.fillmode,Z,X,re)}else L.call(h.fill,U);H&&h.stroke(L,q.mlc||N.color)})}function F(A,z,B){var $=A[0],j=$.trace,N=B?j.visible&&j.type===B:f.traceIs(j,B),E=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(N?[A]:[]);if(E.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),E.exit().remove(),E.size()){var W=j.marker||{},G=O(v(W.line.width,$.pts),W.line,5,2),L="pieLike",q=s.minExtend(j,{marker:{line:{width:G}}},L),H=s.minExtend($,{trace:q},L);y(E,H,q,k)}}w.each(function(A){var z=l.select(this),B=s.ensureSingle(z,"g","layers");B.style("opacity",A[0].trace.opacity);var $=T.valign,j=A[0].lineHeight,N=A[0].height;if($!=="middle"&&j&&N){var E={top:1,bottom:-1}[$]*(.5*(j-N+3));B.attr("transform",c(0,E))}else B.attr("transform",null);B.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),B.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var W=B.selectAll("g.legendsymbols").data([A]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var z,B=A[0].trace,$=[];if(B.visible)switch(B.type){case"histogram2d":case"heatmap":$=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":$=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":$=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":$=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],z=!1;break;case"streamtube":$=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],z=!1;break;case"surface":$=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],z=!0;break;case"mesh3d":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1}var j=l.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data($);j.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(N,E){var W,G=l.select(this),L=p(B),q=L.colorscale,H=L.reversescale;if(q){if(!z){var V=q.length;W=E===0?q[H?V-1:0][1]:E===1?q[H?0:V-1][1]:q[Math.floor((V-1)/2)][1]}}else{var te=B.vertexcolor||B.facecolor||B.color;W=s.isArrayOrTypedArray(te)?te[E]||te[0]:te}G.attr("d",N[0]),W?G.call(h.fill,W):G.call(function(ee){if(ee.size()){var U="legendfill-"+B.uid;d.gradient(ee,k,U,b(H,z==="radial"),q,"fill")}})})}).each(function(A){var z=A[0].trace,B=z.type==="waterfall";if(A[0]._distinct&&B){var $=A[0].trace[A[0].dir].marker;return A[0].mc=$.color,A[0].mlw=$.line.width,A[0].mlc=$.line.color,R(A,this,"waterfall")}var j=[];z.visible&&B&&(j=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=l.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(j);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(E){var W=l.select(this),G=z[E[0]].marker,L=O(void 0,G.line,5,2);W.attr("d",E[1]).style("stroke-width",L+"px").call(h.fill,G.color),L&&W.call(h.stroke,G.line.color)})}).each(function(A){R(A,this,"funnel")}).each(function(A){R(A,this)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendbox").data(z.visible&&f.traceIs(z,"box-violin")?[A]:[]);B.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),B.exit().remove(),B.each(function(){var $=l.select(this);if(z.boxpoints!=="all"&&z.points!=="all"||h.opacity(z.fillcolor)!==0||h.opacity((z.line||{}).color)!==0){var j=O(void 0,z.line,5,2);$.style("stroke-width",j+"px").call(h.fill,z.fillcolor),j&&h.stroke($,z.line.color)}else{var N=s.minExtend(z,{marker:{size:S?12:s.constrain(z.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});B.call(d.pointStyle,N,k)}})}).each(function(A){F(A,this,"funnelarea")}).each(function(A){F(A,this,"pie")}).each(function(A){var z,B,$=x(A),j=$.showFill,N=$.showLine,E=$.showGradientLine,W=$.showGradientFill,G=$.anyFill,L=$.anyLine,q=A[0],H=q.trace,V=p(H),te=V.colorscale,ee=V.reversescale,U=m.hasMarkers(H)||!G?"M5,0":L?"M5,-2":"M5,-3",Q=l.select(this),Y=Q.select(".legendfill").selectAll("path").data(j||W?[A]:[]);if(Y.enter().append("path").classed("js-fill",!0),Y.exit().remove(),Y.attr("d",U+"h"+C+"v6h-"+C+"z").call(function(re){if(re.size())if(j)d.fillGroupStyle(re,k);else{var ie="legendfill-"+H.uid;d.gradient(re,k,ie,b(ee),te,"fill")}}),N||E){var Z=O(void 0,H.line,10,5);B=s.minExtend(H,{line:{width:Z}}),z=[s.minExtend(q,{trace:B})]}var X=Q.select(".legendlines").selectAll("path").data(N||E?[z]:[]);X.enter().append("path").classed("js-line",!0),X.exit().remove(),X.attr("d",U+(E?"l"+C+",0.0001":"h"+C)).call(N?d.lineGroupStyle:function(re){if(re.size()){var ie="legendline-"+H.uid;d.lineGroupStyle(re),d.gradient(re,k,ie,b(ee),te,"stroke")}})}).each(function(A){var z,B,$=x(A),j=$.anyFill,N=$.anyLine,E=$.showLine,W=$.showMarker,G=A[0],L=G.trace,q=!W&&!N&&!j&&m.hasText(L);function H(X,re,ie,le){var se=s.nestedProperty(L,X).get(),pe=s.isArrayOrTypedArray(se)&&re?re(se):se;if(S&&pe&&le!==void 0&&(pe=le),ie){if(peie[1])return ie[1]}return pe}function V(X){return G._distinct&&G.index&&X[G.index]?X[G.index]:X[0]}if(W||q||E){var te={},ee={};if(W){te.mc=H("marker.color",V),te.mx=H("marker.symbol",V),te.mo=H("marker.opacity",s.mean,[.2,1]),te.mlc=H("marker.line.color",V),te.mlw=H("marker.line.width",s.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var U=H("marker.size",s.mean,[2,16],12);te.ms=U,ee.marker.size=U}E&&(ee.line={width:H("line.width",V,[0,10],5)}),q&&(te.tx="Aa",te.tp=H("textposition",V),te.ts=10,te.tc=H("textfont.color",V),te.tf=H("textfont.family",V)),z=[s.minExtend(G,te)],(B=s.minExtend(L,ee)).selectedpoints=null,B.texttemplate=null}var Q=l.select(this).select("g.legendpoints"),Y=Q.selectAll("path.scatterpts").data(W?z:[]);Y.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),Y.exit().remove(),Y.call(d.pointStyle,B,k),W&&(z[0].mrc=3);var Z=Q.selectAll("g.pointtext").data(q?z:[]);Z.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),Z.exit().remove(),Z.selectAll("text").call(d.textPointStyle,B,k)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(z.visible&&z.type==="candlestick"?[A,A]:[]);B.enter().append("path").classed("legendcandle",!0).attr("d",function($,j){return j?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("stroke-width",W+"px").call(h.fill,E.fillcolor),W&&h.stroke(N,E.line.color)})}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(z.visible&&z.type==="ohlc"?[A,A]:[]);B.enter().append("path").classed("legendohlc",!0).attr("d",function($,j){return j?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("fill","none").call(d.dashLine,E.line.dash,W),W&&h.stroke(N,E.line.color)})})}},42068:function(o,a,n){n(93348),o.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(o,a,n){var l=n(73972),f=n(74875),s=n(41675),c=n(24255),d=n(34031).eraseActiveShape,h=n(71828),p=h._,m=o.exports={};function y(M,S){var C,P,D=S.currentTarget,O=D.getAttribute("data-attr"),R=D.getAttribute("data-val")||!0,F=M._fullLayout,A={},z=s.list(M,null,!0),B=F._cartesianSpikesEnabled;if(O==="zoom"){var $,j=R==="in"?.5:2,N=(1+j)/2,E=(1-j)/2;for(P=0;P1?(U=["toggleHover"],Q=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],U=["hoverClosestGeo"],Q=["resetGeo"]):F?(U=["hoverClosest3d"],Q=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],U=["toggleHover"],Q=["resetViewMapbox"]):$?U=["hoverClosestGl2d"]:z?U=["hoverClosestPie"]:G?(U=["hoverClosestCartesian","hoverCompareCartesian"],Q=["resetViewSankey"]):U=["toggleHover"],R&&(U=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var pe=0;pe0)){var k=function(M,S,C){for(var P=C.filter(function(F){return S[F].anchor===M._id}),D=0,O=0;O=Se.max)pe=re[Te+1];else if(se=Se.pmax)pe=re[Te+1];else if(seTe._length||ge+Ie<0)return;Ee=ue+Ie,De=ge+Ie;break;case Me:if(Re="col-resize",ue+Ie>Te._length)return;Ee=ue+Ie,De=ge;break;case ce:if(Re="col-resize",ge+Ie<0)return;Ee=ue,De=ge+Ie;break;default:Re="ew-resize",Ee=xe,De=xe+Ie}if(De=0;$--){var j=S.append("path").attr(P).style("opacity",$?.1:D).call(c.stroke,R).call(c.fill,O).call(d.dashLine,$?"solid":A,$?4+F:F);if(b(j,_,T),z){var N=h(_.layout,"selections",T);j.style({cursor:"move"});var E={element:j.node(),plotinfo:M,gd:_,editHelpers:N,isActiveSelection:!0},W=l(C,_);f(W,j,E)}else j.style("pointer-events",$?"all":"none");B[$]=j}var G=B[0];B[1].node().addEventListener("click",function(){return function(L,q){if(v(L)){var H=+q.node().getAttribute("data-index");if(H>=0){if(H===L._fullLayout._activeSelectionIndex)return void x(L);L._fullLayout._activeSelectionIndex=H,L._fullLayout._deactivateSelection=x,y(L)}}}(_,G)})}(_._fullLayout._selectionLayer)}function b(_,w,k){var T=k.xref+k.yref;d.setClipUrl(_,"clip"+w._fullLayout._uid+T,w)}function x(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(s(_),delete _._fullLayout._activeSelectionIndex,y(_))}o.exports={draw:y,drawOne:g,activateLastSelection:function(_){if(v(_)){var w=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=w,_._fullLayout._deactivateSelection=x,y(_)}}}},53777:function(o,a,n){var l=n(79952).P,f=n(1426).extendFlat;o.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:f({},l,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(o){o.exports=function(a,n,l){l("newselection.mode"),l("newselection.line.width")&&(l("newselection.line.color"),l("newselection.line.dash")),l("activeselection.fillcolor"),l("activeselection.opacity")}},35855:function(o,a,n){var l=n(64505).selectMode,f=n(51873).clearOutline,s=n(60165),c=s.readPaths,d=s.writePaths,h=s.fixDatesForPaths;o.exports=function(p,m){if(p.length){var y=p[0][0];if(y){var v=y.getAttribute("d"),g=m.gd,b=g._fullLayout.newselection,x=m.plotinfo,_=x.xaxis,w=x.yaxis,k=m.isActiveSelection,T=m.dragmode,M=(g.layout||{}).selections||[];if(!l(T)&&k!==void 0){var S=g._fullLayout._activeSelectionIndex;if(S-1,kt=[];if(function(Mt){return Mt&&Array.isArray(Mt)&&Mt[0].hoverOnBox!==!0}(Qe)){Z(ke,Ae,Ie);var Je=function(Mt,zt){var wt,ve,_e=Mt[0],Ve=-1,We=[];for(ve=0;ve0?function(Mt,zt){var wt,ve,_e,Ve=[];for(_e=0;_e0&&Ve.push(wt);if(Ve.length===1&&Ve[0]===zt.searchInfo&&(ve=zt.searchInfo.cd[0].trace).selectedpoints.length===zt.pointNumbers.length){for(_e=0;_e1||(ve+=zt.selectedpoints.length)>1))return!1;return ve===1}(Ue)&&(ct=se(Je))){for(Be&&Be.remove(),Ne=0;Ne=0})(Re)&&Re._fullLayout._deactivateShape(Re),function(lt){return lt._fullLayout._activeSelectionIndex>=0}(Re)&&Re._fullLayout._deactivateSelection(Re);var Ie=Re._fullLayout._zoomlayer,Be=g(Ee),Ue=x(Ee);if(Be||Ue){var qe,Ye,at=Ie.selectAll(".select-outline-"+De.id);at&&Re._fullLayout._outlining&&(Be&&(qe=P(at,ke)),qe&&s.call("_guiRelayout",Re,{shapes:qe}),Ue&&!te(ke)&&(Ye=D(at,ke)),Ye&&(Re._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",Re,{selections:Ye}).then(function(){Ae&&O(Re)})),Re._fullLayout._outlining=!1)}De.selection={},De.selection.selectionDefs=ke.selectionDefs=[],De.selection.mergedPolygons=ke.mergedPolygons=[]}function re(ke){return ke._id}function ie(ke,Ae,Ee,De){if(!ke.calcdata)return[];var Re,Ie,Be,Ue=[],qe=Ae.map(re),Ye=Ee.map(re);for(Be=0;Be0?De[0]:Ee;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf(Re)>-1}function pe(ke,Ae,Ee){var De,Re;for(De=0;De-1&&Ae;if(!Ie&&Ae){var Ot=ne(ke,!0);if(Ot.length){var At=Ot[0].xref,Lt=Ot[0].yref;if(At&&Lt){var Rt=ue(Ot);ge([B(ke,At,"x"),B(ke,Lt,"y")])(jt,Rt)}}ke._fullLayout._noEmitSelectedAtStart?ke._fullLayout._noEmitSelectedAtStart=!1:Tt&&be(ke,jt),ct._reselect=!1}if(!Ie&&ct._deselect){var $t=ct._deselect;(function(Yt,Xt,Bt){for(var Wt=0;Wt=0)bt._fullLayout._deactivateShape(bt);else if(!Ye){var Rt=ze.clickmode;z.done(Et).then(function(){if(z.clear(Et),At===2){for(Nt.remove(),_e=0;_e-1&&ee(Lt,bt,De.xaxes,De.yaxes,De.subplot,De,Nt),Rt==="event"&&be(bt,void 0);h.click(bt,Lt,kt.id)}).catch(R.error)}},De.doneFn=function(){yt.remove(),z.done(Et).then(function(){z.clear(Et),!Ne&&ve&&De.selectionDefs&&(ve.subtract=St,De.selectionDefs.push(ve),De.mergedPolygons.length=0,[].push.apply(De.mergedPolygons,wt)),(Ne||Ye)&&X(De,Ne),De.doneFnCompleted&&De.doneFnCompleted(jt),at&&be(bt,We)}).catch(R.error)}},clearOutline:T,clearSelectionsCache:X,selectOnClick:ee}},89827:function(o,a,n){var l=n(50215),f=n(41940),s=n(82196).line,c=n(79952).P,d=n(1426).extendFlat,h=n(44467).templatedArray,p=(n(24695),n(9012)),m=n(5386).R,y=n(37281);o.exports=h("shape",{visible:d({},p.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:d({},p.legend,{editType:"calc+arraydraw"}),legendgroup:d({},p.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:d({},p.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:f({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:d({},p.legendrank,{editType:"calc+arraydraw"}),legendwidth:d({},p.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:d({},l.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:d({},l.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:d({},s.color,{editType:"arraydraw"}),width:d({},s.width,{editType:"calc+arraydraw"}),dash:d({},c,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:m({},{keys:Object.keys(y)}),font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(o,a,n){var l=n(71828),f=n(89298),s=n(21459),c=n(30477);function d(y){return p(y.line.width,y.xsizemode,y.x0,y.x1,y.path,!1)}function h(y){return p(y.line.width,y.ysizemode,y.y0,y.y1,y.path,!0)}function p(y,v,g,b,x,_){var w=y/2,k=_;if(v==="pixel"){var T=x?c.extractPathCoords(x,_?s.paramIsY:s.paramIsX):[g,b],M=l.aggNums(Math.max,null,T),S=l.aggNums(Math.min,null,T),C=S<0?Math.abs(S)+w:w,P=M>0?M+w:w;return{ppad:w,ppadplus:k?C:P,ppadminus:k?P:C}}return{ppad:w}}function m(y,v,g,b,x){var _=y.type==="category"||y.type==="multicategory"?y.r2c:y.d2c;if(v!==void 0)return[_(v),_(g)];if(b){var w,k,T,M,S=1/0,C=-1/0,P=b.match(s.segmentRE);for(y.type==="date"&&(_=c.decodeDate(_)),w=0;wC&&(C=M)));return C>=S?[S,C]:void 0}}o.exports=function(y){var v=y._fullLayout,g=l.filterVisible(v.shapes);if(g.length&&y._fullData.length)for(var b=0;b=re?ie-se:se-ie,-180/Math.PI*Math.atan2(pe,Te)}(C,D,P,O):0),A.call(function(re){return re.call(c.font,F).attr({}),s.convertToTspans(re,v),re});var Q=function(re,ie,le,se,pe,Te,Se){var Oe,Me,ce,ye,J=pe.label.textposition,ne=pe.label.textangle,de=pe.label.padding,xe=pe.type,ue=Math.PI/180*Te,ge=Math.sin(ue),be=Math.cos(ue),we=pe.label.xanchor,ke=pe.label.yanchor;if(xe==="line"){J==="start"?(Oe=re,Me=ie):J==="end"?(Oe=le,Me=se):(Oe=(re+le)/2,Me=(ie+se)/2),we==="auto"&&(we=J==="start"?ne==="auto"?le>re?"left":lere?"right":lere?"right":lere?"left":le1&&(Oe.length!==2||Oe[1][0]!=="Z")&&(G===0&&(Oe[0][0]="M"),R[W]=Oe,$(),j())}}()}}function re(pe,Te){(function(Se,Oe){if(R.length)for(var Me=0;MeMe?(J=Se,ue="y0",ne=Me,ge="y1"):(J=Me,ue="y1",ne=Se,ge="y0"),ut(wt),Mt(se,ie),function(ve,_e,Ve){var We=_e.xref,Ze=_e.yref,Ge=c.getFromId(Ve,We),Ke=c.getFromId(Ve,Ze),nt="";We==="paper"||Ge.autorange||(nt+=We),Ze==="paper"||Ke.autorange||(nt+=Ze),v.setClipUrl(ve,nt?"clip"+Ve._fullLayout._uid+nt:null,Ve)}(re,ie,X),Je.moveFn=Ae==="move"?pt:It,Je.altKey=wt.altKey)},doneFn:function(){M(X)||(x(re),zt(se),P(re,X,ie),f.call("_guiRelayout",X,pe.getUpdateObj()))},clickFn:function(){M(X)||zt(se)}};function ut(wt){if(M(X))Ae=null;else if(Be)Ae=wt.target.tagName==="path"?"move":wt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ve=Je.element.getBoundingClientRect(),_e=ve.right-ve.left,Ve=ve.bottom-ve.top,We=wt.clientX-ve.left,Ze=wt.clientY-ve.top,Ge=!Ue&&_e>Ee&&Ve>De&&!wt.shiftKey?b.getCursor(We/_e,1-Ze/Ve):"move";x(re,Ge),Ae=Ge.split("-")[0]}}function pt(wt,ve){if(ie.type==="path"){var _e=function(Ze){return Ze},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(Ze){return Qe(ze(Ze)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(Ze){return it(Ne(Ze)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(qe("x0",ie.x0=Qe(Te+wt)),qe("x1",ie.x1=Qe(Oe+wt))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(qe("y0",ie.y0=it(Se+ve)),qe("y1",ie.y1=it(Me+ve)));re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function It(wt,ve){if(Ue){var _e=function(ht){return ht},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(ht){return Qe(ze(ht)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(ht){return it(Ne(ht)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else if(Be){if(Ae==="resize-over-start-point"){var Ze=Te+wt,Ge=Ie?Se-ve:Se+ve;qe("x0",ie.x0=Re?Ze:Qe(Ze)),qe("y0",ie.y0=Ie?Ge:it(Ge))}else if(Ae==="resize-over-end-point"){var Ke=Oe+wt,nt=Ie?Me-ve:Me+ve;qe("x1",ie.x1=Re?Ke:Qe(Ke)),qe("y1",ie.y1=Ie?nt:it(nt))}}else{var st=function(ht){return Ae.indexOf(ht)!==-1},mt=st("n"),tt=st("s"),Ft=st("w"),Vt=st("e"),St=mt?J+ve:J,Nt=tt?ne+ve:ne,Dt=Ft?de+wt:de,gt=Vt?xe+wt:xe;Ie&&(mt&&(St=J-ve),tt&&(Nt=ne-ve)),(!Ie&&Nt-St>De||Ie&&St-Nt>De)&&(qe(ue,ie[ue]=Ie?St:it(St)),qe(ge,ie[ge]=Ie?Nt:it(Nt))),gt-Dt>Ee&&(qe(be,ie[be]=Re?Dt:Qe(Dt)),qe(we,ie[we]=Re?gt:Qe(gt)))}re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function Mt(wt,ve){(Re||Ie)&&function(){var _e=ve.type!=="path",Ve=wt.selectAll(".visual-cue").data([0]);Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var We=ze(Re?ve.xanchor:s.midRange(_e?[ve.x0,ve.x1]:w.extractPathCoords(ve.path,_.paramIsX))),Ze=Ne(Ie?ve.yanchor:s.midRange(_e?[ve.y0,ve.y1]:w.extractPathCoords(ve.path,_.paramIsY)));if(We=w.roundPositionForSharpStrokeRendering(We,1),Ze=w.roundPositionForSharpStrokeRendering(Ze,1),Re&&Ie){var Ge="M"+(We-1-1)+","+(Ze-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",Ge)}else if(Re){var Ke="M"+(We-1-1)+","+(Ze-9-1)+"v18 h2 v-18 Z";Ve.attr("d",Ke)}else{var nt="M"+(We-9-1)+","+(Ze-1-1)+"h18 v2 h-18 Z";Ve.attr("d",nt)}}()}function zt(wt){wt.selectAll(".visual-cue").remove()}b.init(Je),kt.node().onmousemove=ut}(R,Q,z,F,j,ee):z.editable===!0&&Q.style("pointer-events",V||y.opacity(G)*W<=.5?"stroke":"all");Q.node().addEventListener("click",function(){return function(X,re){if(S(X)){var ie=+re.node().getAttribute("data-index");if(ie>=0){if(ie===X._fullLayout._activeShapeIndex)return void O(X);X._fullLayout._activeShapeIndex=ie,X._fullLayout._deactivateShape=O,T(X)}}}(R,Q)})}z._input&&z.visible===!0&&(z.layer!=="below"?$(R._fullLayout._shapeUpperLayer):z.xref==="paper"||z.yref==="paper"?$(R._fullLayout._shapeLowerLayer):B._hadPlotinfo?$((B.mainplotinfo||B).shapelayer):$(R._fullLayout._shapeLowerLayer))}function P(R,F,A){var z=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(R,z?"clip"+F._fullLayout._uid+z:null,F)}function D(R,F,A){return R.replace(_.segmentRE,function(z){var B=0,$=z.charAt(0),j=_.paramIsX[$],N=_.paramIsY[$],E=_.numParams[$];return $+z.substr(1).replace(_.paramRE,function(W){return B>=E||(j[B]?W=F(W):N[B]&&(W=A(W)),B++),W})})}function O(R){S(R)&&R._fullLayout._activeShapeIndex>=0&&(m(R),delete R._fullLayout._activeShapeIndex,T(R))}o.exports={draw:T,drawOne:C,eraseActiveShape:function(R){if(S(R)){m(R);var F=R._fullLayout._activeShapeIndex,A=(R.layout||{}).shapes||[];if(F0&&CU&&(Y="X"),Y});return H>U&&(Q=Q.replace(/[\s,]*X.*/,""),f.log("Ignoring extra params in segment "+q)),V+Q})}(d,p,y);if(d.xsizemode==="pixel"){var C=p(d.xanchor);v=C+d.x0,g=C+d.x1}else v=p(d.x0),g=p(d.x1);if(d.ysizemode==="pixel"){var P=y(d.yanchor);b=P-d.y0,x=P-d.y1}else b=y(d.y0),x=y(d.y1);if(_==="line")return"M"+v+","+b+"L"+g+","+x;if(_==="rect")return"M"+v+","+b+"H"+g+"V"+x+"H"+v+"Z";var D=(v+g)/2,O=(b+x)/2,R=Math.abs(D-v),F=Math.abs(O-b),A="A"+R+","+F,z=D+R+","+O;return"M"+z+A+" 0 1,1 "+D+","+(O-F)+A+" 0 0,1 "+z+"Z"}},89853:function(o,a,n){var l=n(34031);o.exports={moduleType:"component",name:"shapes",layoutAttributes:n(89827),supplyLayoutDefaults:n(84726),supplyDrawNewShapeDefaults:n(45547),includeBasePlot:n(76325)("shapes"),calcAutorange:n(5627),draw:l.draw,drawOne:l.drawOne}},37281:function(o){function a(s,c){return c?c.d2l(s):s}function n(s,c){return c?c.l2d(s):s}function l(s,c){return a(s.x1,c)-a(s.x0,c)}function f(s,c,d){return a(s.y1,d)-a(s.y0,d)}o.exports={x0:function(s){return s.x0},x1:function(s){return s.x1},y0:function(s){return s.y0},y1:function(s){return s.y1},slope:function(s,c,d){return s.type!=="line"?void 0:f(s,0,d)/l(s,c)},dx:l,dy:f,width:function(s,c){return Math.abs(l(s,c))},height:function(s,c,d){return Math.abs(f(s,0,d))},length:function(s,c,d){return s.type!=="line"?void 0:Math.sqrt(Math.pow(l(s,c),2)+Math.pow(f(s,0,d),2))},xcenter:function(s,c){return n((a(s.x1,c)+a(s.x0,c))/2,c)},ycenter:function(s,c,d){return n((a(s.y1,d)+a(s.y0,d))/2,d)}}},75067:function(o,a,n){var l=n(41940),f=n(35025),s=n(1426).extendDeepAll,c=n(30962).overrideAll,d=n(85594),h=n(44467).templatedArray,p=n(98292),m=h("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});o.exports=c(h("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:m,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:s(f({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:d.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:l({})},font:l({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},98292:function(o){o.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(o,a,n){var l=n(71828),f=n(85501),s=n(75067),c=n(98292).name,d=s.steps;function h(m,y,v){function g(k,T){return l.coerce(m,y,s,k,T)}for(var b=f(m,y,{name:"steps",handleItemDefaults:p}),x=0,_=0;_0&&(H=H.transition().duration(N.transition.duration).ease(N.transition.easing)),H.attr("transform",h(q-.5*y.gripWidth,N._dims.currentValueTotalHeight))}}function A(j,N){var E=j._dims;return E.inputAreaStart+y.stepInset+(E.inputAreaLength-2*y.stepInset)*Math.min(1,Math.max(0,N))}function z(j,N){var E=j._dims;return Math.min(1,Math.max(0,(N-y.stepInset-E.inputAreaStart)/(E.inputAreaLength-2*y.stepInset-2*E.inputAreaStart)))}function B(j,N,E){var W=E._dims,G=d.ensureSingle(j,"rect",y.railTouchRectClass,function(L){L.call(O,N,j,E).style("pointer-events","all")});G.attr({width:W.inputAreaLength,height:Math.max(W.inputAreaWidth,y.tickOffset+E.ticklen+W.labelHeight)}).call(s.fill,E.bgcolor).attr("opacity",0),c.setTranslate(G,0,W.currentValueTotalHeight)}function $(j,N){var E=N._dims,W=E.inputAreaLength-2*y.railInset,G=d.ensureSingle(j,"rect",y.railRectClass);G.attr({width:W,height:y.railWidth,rx:y.railRadius,ry:y.railRadius,"shape-rendering":"crispEdges"}).call(s.stroke,N.bordercolor).call(s.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),c.setTranslate(G,y.railInset,.5*(E.inputAreaWidth-y.railWidth)+E.currentValueTotalHeight)}o.exports=function(j){var N=j._context.staticPlot,E=j._fullLayout,W=function(te,ee){for(var U=te[y.name],Q=[],Y=0;Y0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),f.autoMargin(j,_(te))}if(G.enter().append("g").classed(y.containerClassName,!0).style("cursor",N?null:"ew-resize"),G.exit().each(function(){l.select(this).selectAll("g."+y.groupClassName).each(L)}).remove(),W.length!==0){var q=G.selectAll("g."+y.groupClassName).data(W,w);q.enter().append("g").classed(y.groupClassName,!0),q.exit().each(L).remove();for(var H=0;H0||Oe<0){var J={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[P.side];Q.attr("transform",h(J[0],J[1]))}}}return H.call(V),G&&($?H.on(".opacity",null):(A=0,z=!0,H.text(S).on("mouseover.opacity",function(){l.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){l.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(y.makeEditable,{gd:x}).on("edit",function(U){C!==void 0?c.call("_guiRestyle",x,M,U,C):c.call("_guiRelayout",x,M,U)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(U){this.text(U||" ").call(y.positionText,D.x,D.y)})),H.classed("js-placeholder",z),R}}},7163:function(o,a,n){var l=n(41940),f=n(22399),s=n(1426).extendFlat,c=n(30962).overrideAll,d=n(35025),h=n(44467).templatedArray,p=h("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});o.exports=c(h("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:s(d({editType:"arraydraw"}),{}),font:l({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:f.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(o){o.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(o,a,n){var l=n(71828),f=n(85501),s=n(7163),c=n(75909).name,d=s.buttons;function h(m,y,v){function g(b,x){return l.coerce(m,y,s,b,x)}g("visible",f(m,y,{name:"buttons",handleItemDefaults:p}).length>0)&&(g("active"),g("direction"),g("type"),g("showactive"),g("x"),g("y"),l.noneOrAll(m,y,["x","y"]),g("xanchor"),g("yanchor"),g("pad.t"),g("pad.r"),g("pad.b"),g("pad.l"),l.coerceFont(g,"font",v.font),g("bgcolor",v.paper_bgcolor),g("bordercolor"),g("borderwidth"))}function p(m,y){function v(g,b){return l.coerce(m,y,d,g,b)}v("visible",m.method==="skip"||Array.isArray(m.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}o.exports=function(m,y){f(m,y,{name:c,handleItemDefaults:h})}},13689:function(o,a,n){var l=n(39898),f=n(74875),s=n(7901),c=n(91424),d=n(71828),h=n(63893),p=n(44467).arrayEditor,m=n(18783).LINE_SPACING,y=n(75909),v=n(25849);function g(A){return A._index}function b(A,z){return+A.attr(y.menuIndexAttrName)===z._index}function x(A,z,B,$,j,N,E,W){z.active=E,p(A.layout,y.name,z).applyUpdate("active",E),z.type==="buttons"?w(A,$,null,null,z):z.type==="dropdown"&&(j.attr(y.menuIndexAttrName,"-1"),_(A,$,j,N,z),W||w(A,$,j,N,z))}function _(A,z,B,$,j){var N=d.ensureSingle(z,"g",y.headerClassName,function(H){H.style("pointer-events","all")}),E=j._dims,W=j.active,G=j.buttons[W]||y.blankHeaderOpts,L={y:j.pad.t,yPad:0,x:j.pad.l,xPad:0,index:0},q={width:E.headerWidth,height:E.headerHeight};N.call(k,j,G,A).call(R,j,L,q),d.ensureSingle(z,"text",y.headerArrowClassName,function(H){H.attr("text-anchor","end").call(c.font,j.font).text(y.arrowSymbol[j.direction])}).attr({x:E.headerWidth-y.arrowOffsetX+j.pad.l,y:E.headerHeight/2+y.textOffsetY+j.pad.t}),N.on("click",function(){B.call(F,String(b(B,j)?-1:j._index)),w(A,z,B,$,j)}),N.on("mouseover",function(){N.call(C)}),N.on("mouseout",function(){N.call(P,j)}),c.setTranslate(z,E.lx,E.ly)}function w(A,z,B,$,j){B||(B=z).attr("pointer-events","all");var N=function(Q){return+Q.attr(y.menuIndexAttrName)==-1}(B)&&j.type!=="buttons"?[]:j.buttons,E=j.type==="dropdown"?y.dropdownButtonClassName:y.buttonClassName,W=B.selectAll("g."+E).data(d.filterVisible(N)),G=W.enter().append("g").classed(E,!0),L=W.exit();j.type==="dropdown"?(G.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var q=0,H=0,V=j._dims,te=["up","down"].indexOf(j.direction)!==-1;j.type==="dropdown"&&(te?H=V.headerHeight+y.gapButtonHeader:q=V.headerWidth+y.gapButtonHeader),j.type==="dropdown"&&j.direction==="up"&&(H=-y.gapButtonHeader+y.gapButton-V.openHeight),j.type==="dropdown"&&j.direction==="left"&&(q=-y.gapButtonHeader+y.gapButton-V.openWidth);var ee={x:V.lx+q+j.pad.l,y:V.ly+H+j.pad.t,yPad:y.gapButton,xPad:y.gapButton,index:0},U={l:ee.x+j.borderwidth,t:ee.y+j.borderwidth};W.each(function(Q,Y){var Z=l.select(this);Z.call(k,j,Q,A).call(R,j,ee),Z.on("click",function(){l.event.defaultPrevented||(Q.execute&&(Q.args2&&j.active===Y?(x(A,j,0,z,B,$,-1),f.executeAPICommand(A,Q.method,Q.args2)):(x(A,j,0,z,B,$,Y),f.executeAPICommand(A,Q.method,Q.args))),A.emit("plotly_buttonclicked",{menu:j,button:Q,active:j.active}))}),Z.on("mouseover",function(){Z.call(C)}),Z.on("mouseout",function(){Z.call(P,j),W.call(S,j)})}),W.call(S,j),te?(U.w=Math.max(V.openWidth,V.headerWidth),U.h=ee.y-U.t):(U.w=ee.x-U.l,U.h=Math.max(V.openHeight,V.headerHeight)),U.direction=j.direction,$&&(W.size()?function(Q,Y,Z,X,re,ie){var le,se,pe,Te=re.direction,Se=Te==="up"||Te==="down",Oe=re._dims,Me=re.active;if(Se)for(se=0,pe=0;pe0?[0]:[]);if(j.enter().append("g").classed(y.containerClassName,!0).style("cursor","pointer"),j.exit().each(function(){l.select(this).selectAll("g."+y.headerGroupClassName).each($)}).remove(),B.length!==0){var N=j.selectAll("g."+y.headerGroupClassName).data(B,g);N.enter().append("g").classed(y.headerGroupClassName,!0);for(var E=d.ensureSingle(j,"g",y.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),W=0;WR,z=d.barLength+2*d.barPad,B=d.barWidth+2*d.barPad,$=k,j=M+S;j+B>g&&(j=g-B);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(f.fill,d.barColor),A?(this.hbar=N.attr({rx:d.barRadius,ry:d.barRadius,x:$,y:j,width:z,height:B}),this._hbarXMin=$+z/2,this._hbarTranslateMax=R-z):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=S>F,W=d.barWidth+2*d.barPad,G=d.barLength+2*d.barPad,L=k+T,q=M;L+W>v&&(L=v-W);var H=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(f.fill,d.barColor),E?(this.vbar=H.attr({rx:d.barRadius,ry:d.barRadius,x:L,y:q,width:W,height:G}),this._vbarYMin=q+G/2,this._vbarTranslateMax=F-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,te=b-.5,ee=E?x+W+.5:x+.5,U=_-.5,Q=A?w+B+.5:w+.5,Y=y._topdefs.selectAll("#"+V).data(A||E?[0]:[]);if(Y.exit().remove(),Y.enter().append("clipPath").attr("id",V).append("rect"),A||E?(this._clipRect=Y.select("rect").attr({x:Math.floor(te),y:Math.floor(U),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Q)-Math.floor(U)}),this.container.call(s.setClipUrl,V,this.gd),this.bg.attr({x:k,y:M,width:T,height:S})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),A||E){var Z=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Z);var X=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault(),l.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(X),E&&this.vbar.on(".drag",null).call(X)}this.setTranslate(p,m)},d.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},d.prototype._onBoxDrag=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h-=l.event.dx),this.vbar&&(p-=l.event.dy),this.setTranslate(h,p)},d.prototype._onBoxWheel=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h+=l.event.deltaY),this.vbar&&(p+=l.event.deltaY),this.setTranslate(h,p)},d.prototype._onBarDrag=function(){var h=this.translateX,p=this.translateY;if(this.hbar){var m=h+this._hbarXMin,y=m+this._hbarTranslateMax;h=(c.constrain(l.event.x,m,y)-m)/(y-m)*(this.position.w-this._box.w)}if(this.vbar){var v=p+this._vbarYMin,g=v+this._vbarTranslateMax;p=(c.constrain(l.event.y,v,g)-v)/(g-v)*(this.position.h-this._box.h)}this.setTranslate(h,p)},d.prototype.setTranslate=function(h,p){var m=this.position.w-this._box.w,y=this.position.h-this._box.h;if(h=c.constrain(h||0,0,m),p=c.constrain(p||0,0,y),this.translateX=h,this.translateY=p,this.container.call(s.setTranslate,this._box.l-this.position.l-h,this._box.t-this.position.t-p),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+h-.5),y:Math.floor(this.position.t+p-.5)}),this.hbar){var v=h/m;this.hbar.call(s.setTranslate,h+v*this._hbarTranslateMax,p)}if(this.vbar){var g=p/y;this.vbar.call(s.setTranslate,h,p+g*this._vbarTranslateMax)}}},18783:function(o){o.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(o){o.exports={axisRefDescription:function(a,n,l){return["If set to a",a,"axis id (e.g. *"+a+"* or","*"+a+"2*), the `"+a+"` position refers to a",a,"coordinate. If set to *paper*, the `"+a+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+l+"). If set to a",a,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+a+"2 domain* refers to the domain of the second",a," axis and a",a,"position of 0.5 refers to the","point between the",n,"and the",l,"of the domain of the","second",a,"axis."].join(" ")}}},31562:function(o){o.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(o){o.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(o){o.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(o){o.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(o,a){a.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],a.STYLE=a.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},77922:function(o,a){a.xmlns="http://www.w3.org/2000/xmlns/",a.svg="http://www.w3.org/2000/svg",a.xlink="http://www.w3.org/1999/xlink",a.svgAttrs={xmlns:a.svg,"xmlns:xlink":a.xlink}},8729:function(o,a,n){a.version=n(11506).version,n(7417),n(98847);for(var l=n(73972),f=a.register=l.register,s=n(10641),c=Object.keys(s),d=0;d",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(o,a){a.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},a.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},a.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},a.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},a.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},a.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},26348:function(o,a,n){var l=n(64872),f=l.mod,s=l.modHalf,c=Math.PI,d=2*c;function h(v){return Math.abs(v[1]-v[0])>d-1e-14}function p(v,g){return s(g-v,d)}function m(v,g){if(h(g))return!0;var b,x;g[0](x=f(x,d))&&(x+=d);var _=f(v,d),w=_+d;return _>=b&&_<=x||w>=b&&w<=x}function y(v,g,b,x,_,w,k){_=_||0,w=w||0;var T,M,S,C,P,D=h([b,x]);function O(z,B){return[z*Math.cos(B)+_,w-z*Math.sin(B)]}D?(T=0,M=c,S=d):b=_&&v<=w);var _,w},pathArc:function(v,g,b,x,_){return y(null,v,g,b,x,_,0)},pathSector:function(v,g,b,x,_){return y(null,v,g,b,x,_,1)},pathAnnulus:function(v,g,b,x,_,w){return y(v,g,b,x,_,w,1)}}},73627:function(o,a){var n=Array.isArray,l=ArrayBuffer,f=DataView;function s(h){return l.isView(h)&&!(h instanceof f)}function c(h){return n(h)||s(h)}function d(h,p,m){if(c(h)){if(c(h[0])){for(var y=m,v=0;vw.max?x.set(_):x.set(+b)}},integer:{coerceFunction:function(b,x,_,w){b%1||!l(b)||w.min!==void 0&&bw.max?x.set(_):x.set(+b)}},string:{coerceFunction:function(b,x,_,w){if(typeof b!="string"){var k=typeof b=="number";w.strict!==!0&&k?x.set(String(b)):x.set(_)}else w.noBlank&&!b?x.set(_):x.set(b)}},color:{coerceFunction:function(b,x,_){f(b).isValid()?x.set(b):x.set(_)}},colorlist:{coerceFunction:function(b,x,_){Array.isArray(b)&&b.length&&b.every(function(w){return f(w).isValid()})?x.set(b):x.set(_)}},colorscale:{coerceFunction:function(b,x,_){x.set(c.get(b,_))}},angle:{coerceFunction:function(b,x,_){b==="auto"?x.set("auto"):l(b)?x.set(y(+b,360)):x.set(_)}},subplotid:{coerceFunction:function(b,x,_,w){var k=w.regex||m(_);typeof b=="string"&&k.test(b)?x.set(b):x.set(_)},validateFunction:function(b,x){var _=x.dflt;return b===_||typeof b=="string"&&!!m(_).test(b)}},flaglist:{coerceFunction:function(b,x,_,w){if((w.extras||[]).indexOf(b)===-1)if(typeof b=="string"){for(var k=b.split("+"),T=0;T=l&&N<=f?N:m}if(typeof N!="string"&&typeof N!="number")return m;N=String(N);var q=S(E),H=N.charAt(0);!q||H!=="G"&&H!=="g"||(N=N.substr(1),E="");var V=q&&E.substr(0,7)==="chinese",te=N.match(V?T:k);if(!te)return m;var ee=te[1],U=te[3]||"1",Q=Number(te[5]||1),Y=Number(te[7]||0),Z=Number(te[9]||0),X=Number(te[11]||0);if(q){if(ee.length===2)return m;var re;ee=Number(ee);try{var ie=_.getComponentMethod("calendars","getCal")(E);if(V){var le=U.charAt(U.length-1)==="i";U=parseInt(U,10),re=ie.newDate(ee,ie.toMonthIndex(ee,U,le),Q)}else re=ie.newDate(ee,Number(U),Q)}catch{return m}return re?(re.toJD()-x)*y+Y*v+Z*g+X*b:m}ee=ee.length===2?(Number(ee)+2e3-M)%100+M:Number(ee),U-=1;var se=new Date(Date.UTC(2e3,U,Q,Y,Z));return se.setUTCFullYear(ee),se.getUTCMonth()!==U||se.getUTCDate()!==Q?m:se.getTime()+X*b},l=a.MIN_MS=a.dateTime2ms("-9999"),f=a.MAX_MS=a.dateTime2ms("9999-12-31 23:59:59.9999"),a.isDateTime=function(N,E){return a.dateTime2ms(N,E)!==m};var P=90*y,D=3*v,O=5*g;function R(N,E,W,G,L){if((E||W||G||L)&&(N+=" "+C(E,2)+":"+C(W,2),(G||L)&&(N+=":"+C(G,2),L))){for(var q=4;L%10==0;)q-=1,L/=10;N+="."+C(L,q)}return N}a.ms2DateTime=function(N,E,W){if(typeof N!="number"||!(N>=l&&N<=f))return m;E||(E=0);var G,L,q,H,V,te,ee=Math.floor(10*h(N+.05,1)),U=Math.round(N-ee/10);if(S(W)){var Q=Math.floor(U/y)+x,Y=Math.floor(h(N,y));try{G=_.getComponentMethod("calendars","getCal")(W).fromJD(Q).formatDate("yyyy-mm-dd")}catch{G=w("G%Y-%m-%d")(new Date(U))}if(G.charAt(0)==="-")for(;G.length<11;)G="-0"+G.substr(1);else for(;G.length<10;)G="0"+G;L=E=l+y&&N<=f-y))return m;var E=Math.floor(10*h(N+.05,1)),W=new Date(Math.round(N-E/10));return R(s("%Y-%m-%d")(W),W.getHours(),W.getMinutes(),W.getSeconds(),10*W.getUTCMilliseconds()+E)},a.cleanDate=function(N,E,W){if(N===m)return E;if(a.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(S(W))return d.error("JS Dates and milliseconds are incompatible with world calendars",N),E;if(!(N=a.ms2DateTimeLocal(+N))&&E!==void 0)return E}else if(!a.isDateTime(N,W))return d.error("unrecognized date",N),E;return N};var F=/%\d?f/g,A=/%h/g,z={1:"1",2:"1",3:"2",4:"2"};function B(N,E,W,G){N=N.replace(F,function(q){var H=Math.min(+q.charAt(1)||6,6);return(E/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(E+.05));if(N=N.replace(A,function(){return z[W("%q")(L)]}),S(G))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,E,G)}catch{return"Invalid"}return W(N)(L)}var $=[59,59.9,59.99,59.999,59.9999];a.formatDate=function(N,E,W,G,L,q){if(L=S(L)&&L,!E)if(W==="y")E=q.year;else if(W==="m")E=q.month;else{if(W!=="d")return function(H,V){var te=h(H+.05,y),ee=C(Math.floor(te/v),2)+":"+C(h(Math.floor(te/g),60),2);if(V!=="M"){c(V)||(V=0);var U=(100+Math.min(h(H/b,60),$[V])).toFixed(V).substr(1);V>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+U}return ee}(N,W)+` `+B(q.dayMonthYear,N,G,L);E=q.dayMonth+` -`+q.year}return B(E,N,G,L)};var j=3*y;a.incrementMonth=function(N,E,W){W=S(W)&&W;var G=h(N,y);if(N=Math.round(N-G),W)try{var L=Math.round(N/y)+x,q=_.getComponentMethod("calendars","getCal")(W),H=q.fromJD(L);return E%12?q.add(H,E,"m"):q.add(H,E/12,"y"),(H.toJD()-x)*y+G}catch{d.error("invalid ms "+N+" in calendar "+W)}var V=new Date(N+j);return V.setUTCMonth(V.getUTCMonth()+E)+G-j},a.findExactDates=function(N,E){for(var W,G,L=0,q=0,H=0,V=0,te=S(E)&&_.getComponentMethod("calendars","getCal")(E),ee=0;ee1||D<0||D>1?null:{x:p+w*D,y:m+M*D}}function h(p,m,y,v,g){var b=v*p+g*m;if(b<0)return v*v+g*g;if(b>y){var x=v-p,_=g-m;return x*x+_*_}var w=v*m-g*p;return w*w/y}a.segmentsIntersect=d,a.segmentDistance=function(p,m,y,v,g,b,x,_){if(d(p,m,y,v,g,b,x,_))return 0;var w=y-p,k=v-m,T=x-g,M=_-b,S=w*w+k*k,C=T*T+M*M,P=Math.min(h(w,k,S,g-p,b-m),h(w,k,S,x-p,_-m),h(T,M,C,p-g,m-b),h(T,M,C,y-g,v-b));return Math.sqrt(P)},a.getTextLocation=function(p,m,y,v){if(p===f&&v===s||(l={},f=p,s=v),l[y])return l[y];var g=p.getPointAtLength(u(y-v/2,m)),b=p.getPointAtLength(u(y+v/2,m)),x=Math.atan((b.y-g.y)/(b.x-g.x)),_=p.getPointAtLength(u(y,m)),w={x:(4*_.x+g.x+b.x)/6,y:(4*_.y+g.y+b.y)/6,theta:x};return l[y]=w,w},a.clearLocationCache=function(){f=null},a.getVisibleSegment=function(p,m,y){var v,g,b=m.left,x=m.right,_=m.top,w=m.bottom,k=0,T=p.getTotalLength(),M=T;function S(P){var D=p.getPointAtLength(P);P===0?v=D:P===T&&(g=D);var O=D.xx?D.x-x:0,R=D.y<_?_-D.y:D.y>w?D.y-w:0;return Math.sqrt(O*O+R*R)}for(var C=S(k);C;){if((k+=C+y)>M)return;C=S(k)}for(C=S(M);C;){if(k>(M-=C+y))return;C=S(M)}return{min:k,max:M,len:M-k,total:T,isClosed:k===0&&M===T&&Math.abs(v.x-g.x)<.1&&Math.abs(v.y-g.y)<.1}},a.findPointOnPath=function(p,m,y,v){for(var g,b,x,_=(v=v||{}).pathLength||p.getTotalLength(),w=v.tolerance||.001,k=v.iterationLimit||30,T=p.getPointAtLength(0)[y]>p.getPointAtLength(_)[y]?-1:1,M=0,S=0,C=_;M0?C=g:S=g,M++}return b}},23389:function(o){o.exports=function(a){return a}},39240:function(o){o.exports=function(a,n){if(!n)return a;var l=1/Math.abs(n),f=l>1?(l*a+l*n)/l:a+n,s=String(f).length;if(s>16){var u=String(n).length;if(s>=String(a).length+u){var d=parseFloat(f).toPrecision(12);d.indexOf("e+")===-1&&(f=+d)}}return f}},71828:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(60721).WU,u=n(92770),d=n(50606),h=d.FP_SAFE,p=-h,m=d.BADNUM,y=o.exports={};y.adjustFormat=function(Y){return!Y||/^\d[.]\df/.test(Y)||/[.]\d%/.test(Y)?Y:Y==="0.f"?"~f":/^\d%/.test(Y)?"~%":/^\ds/.test(Y)?"~s":!/^[~,.0$]/.test(Y)&&/[&fps]/.test(Y)?"~"+Y:Y};var v={};y.warnBadFormat=function(Y){var Z=String(Y);v[Z]||(v[Z]=1,y.warn('encountered bad format: "'+Z+'"'))},y.noFormat=function(Y){return String(Y)},y.numberFormat=function(Y){var Z;try{Z=s(y.adjustFormat(Y))}catch{return y.warnBadFormat(Y),y.noFormat}return Z},y.nestedProperty=n(65487),y.keyedContainer=n(66636),y.relativeAttr=n(6962),y.isPlainObject=n(41965),y.toLogRange=n(58163),y.relinkPrivateKeys=n(51332);var g=n(73627);y.isTypedArray=g.isTypedArray,y.isArrayOrTypedArray=g.isArrayOrTypedArray,y.isArray1D=g.isArray1D,y.ensureArray=g.ensureArray,y.concat=g.concat,y.maxRowLength=g.maxRowLength,y.minRowLength=g.minRowLength;var b=n(64872);y.mod=b.mod,y.modHalf=b.modHalf;var x=n(96554);y.valObjectMeta=x.valObjectMeta,y.coerce=x.coerce,y.coerce2=x.coerce2,y.coerceFont=x.coerceFont,y.coercePattern=x.coercePattern,y.coerceHoverinfo=x.coerceHoverinfo,y.coerceSelectionMarkerOpacity=x.coerceSelectionMarkerOpacity,y.validate=x.validate;var _=n(41631);y.dateTime2ms=_.dateTime2ms,y.isDateTime=_.isDateTime,y.ms2DateTime=_.ms2DateTime,y.ms2DateTimeLocal=_.ms2DateTimeLocal,y.cleanDate=_.cleanDate,y.isJSDate=_.isJSDate,y.formatDate=_.formatDate,y.incrementMonth=_.incrementMonth,y.dateTick0=_.dateTick0,y.dfltRange=_.dfltRange,y.findExactDates=_.findExactDates,y.MIN_MS=_.MIN_MS,y.MAX_MS=_.MAX_MS;var w=n(65888);y.findBin=w.findBin,y.sorterAsc=w.sorterAsc,y.sorterDes=w.sorterDes,y.distinctVals=w.distinctVals,y.roundUp=w.roundUp,y.sort=w.sort,y.findIndexOfMin=w.findIndexOfMin,y.sortObjectKeys=n(78607);var k=n(80038);y.aggNums=k.aggNums,y.len=k.len,y.mean=k.mean,y.median=k.median,y.midRange=k.midRange,y.variance=k.variance,y.stdev=k.stdev,y.interp=k.interp;var T=n(35657);y.init2dArray=T.init2dArray,y.transposeRagged=T.transposeRagged,y.dot=T.dot,y.translationMatrix=T.translationMatrix,y.rotationMatrix=T.rotationMatrix,y.rotationXYMatrix=T.rotationXYMatrix,y.apply3DTransform=T.apply3DTransform,y.apply2DTransform=T.apply2DTransform,y.apply2DTransform2=T.apply2DTransform2,y.convertCssMatrix=T.convertCssMatrix,y.inverseTransformMatrix=T.inverseTransformMatrix;var M=n(26348);y.deg2rad=M.deg2rad,y.rad2deg=M.rad2deg,y.angleDelta=M.angleDelta,y.angleDist=M.angleDist,y.isFullCircle=M.isFullCircle,y.isAngleInsideSector=M.isAngleInsideSector,y.isPtInsideSector=M.isPtInsideSector,y.pathArc=M.pathArc,y.pathSector=M.pathSector,y.pathAnnulus=M.pathAnnulus;var S=n(99863);y.isLeftAnchor=S.isLeftAnchor,y.isCenterAnchor=S.isCenterAnchor,y.isRightAnchor=S.isRightAnchor,y.isTopAnchor=S.isTopAnchor,y.isMiddleAnchor=S.isMiddleAnchor,y.isBottomAnchor=S.isBottomAnchor;var C=n(87642);y.segmentsIntersect=C.segmentsIntersect,y.segmentDistance=C.segmentDistance,y.getTextLocation=C.getTextLocation,y.clearLocationCache=C.clearLocationCache,y.getVisibleSegment=C.getVisibleSegment,y.findPointOnPath=C.findPointOnPath;var P=n(1426);y.extendFlat=P.extendFlat,y.extendDeep=P.extendDeep,y.extendDeepAll=P.extendDeepAll,y.extendDeepNoArrays=P.extendDeepNoArrays;var D=n(47769);y.log=D.log,y.warn=D.warn,y.error=D.error;var O=n(30587);y.counterRegex=O.counter;var R=n(79990);y.throttle=R.throttle,y.throttleDone=R.done,y.clearThrottle=R.clear;var F=n(24401);function A(Y){var Z={};for(var X in Y)for(var re=Y[X],ie=0;ieh||Y=Z)&&u(Y)&&Y>=0&&Y%1==0},y.noop=n(64213),y.identity=n(23389),y.repeat=function(Y,Z){for(var X=new Array(Z),re=0;reX?Math.max(X,Math.min(Z,Y)):Math.max(Z,Math.min(X,Y))},y.bBoxIntersect=function(Y,Z,X){return X=X||0,Y.left<=Z.right+X&&Z.left<=Y.right+X&&Y.top<=Z.bottom+X&&Z.top<=Y.bottom+X},y.simpleMap=function(Y,Z,X,re,ie){for(var le=Y.length,se=new Array(le),pe=0;pe=Math.pow(2,X)?ie>10?(y.warn("randstr failed uniqueness"),Te):Y(Z,X,re,(ie||0)+1):Te},y.OptionControl=function(Y,Z){Y||(Y={}),Z||(Z="opt");var X={optionList:[],_newoption:function(re){re[Z]=Y,X[re.name]=re,X.optionList.push(re)}};return X["_"+Z]=Y,X},y.smooth=function(Y,Z){if((Z=Math.round(Z)||0)<2)return Y;var X,re,ie,le,se=Y.length,pe=2*se,Te=2*Z-1,Se=new Array(Te),Oe=new Array(se);for(X=0;X=pe&&(ie-=pe*Math.floor(ie/pe)),ie<0?ie=-1-ie:ie>=se&&(ie=pe-1-ie),le+=Y[ie]*Se[re];Oe[X]=le}return Oe},y.syncOrAsync=function(Y,Z,X){var re;function ie(){return y.syncOrAsync(Y,Z,X)}for(;Y.length;)if((re=(0,Y.splice(0,1)[0])(Z))&&re.then)return re.then(ie);return X&&X(Z)},y.stripTrailingSlash=function(Y){return Y.substr(-1)==="/"?Y.substr(0,Y.length-1):Y},y.noneOrAll=function(Y,Z,X){if(Y){var re,ie=!1,le=!0;for(re=0;re0?ie:0})},y.fillArray=function(Y,Z,X,re){if(re=re||y.identity,y.isArrayOrTypedArray(Y))for(var ie=0;ie1?ie+se[1]:"";if(le&&(se.length>1||pe.length>4||X))for(;re.test(pe);)pe=pe.replace(re,"$1"+le+"$2");return pe+Te},y.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var W=/^\w*$/;y.templateString=function(Y,Z){var X={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(re,ie){var le;return W.test(ie)?le=Z[ie]:(X[ie]=X[ie]||y.nestedProperty(Z,ie).get,le=X[ie]()),y.isValidTextValue(le)?le:""})};var G={max:10,count:0,name:"hovertemplate"};y.hovertemplateString=function(){return te.apply(G,arguments)};var L={max:10,count:0,name:"texttemplate"};y.texttemplateString=function(){return te.apply(L,arguments)};var q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,H={max:10,count:0,name:"texttemplate",parseMultDiv:!0};y.texttemplateStringForShapes=function(){return te.apply(H,arguments)};var V=/^[:|\|]/;function te(Y,Z,X){var re=this,ie=arguments;Z||(Z={});var le={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(se,pe,Te){var Se=pe==="_xother"||pe==="_yother",Oe=pe==="_xother_"||pe==="_yother_",Me=pe==="xother_"||pe==="yother_",ce=pe==="xother"||pe==="yother"||Se||Me||Oe,ye=pe;(Se||Oe)&&(ye=ye.substring(1)),(Me||Oe)&&(ye=ye.substring(0,ye.length-1));var J,ne,de,xe=null,ue=null;if(re.parseMultDiv){var ge=function(Ae){var Ee=Ae.match(q);return Ee?{key:Ee[1],op:Ee[2],number:Number(Ee[3])}:{key:Ae,op:null,number:null}}(ye);ye=ge.key,xe=ge.op,ue=ge.number}if(ce){if((J=Z[ye])===void 0)return""}else for(de=3;de=48&&se<=57,Se=pe>=48&&pe<=57;if(Te&&(re=10*re+se-48),Se&&(ie=10*ie+pe-48),!Te||!Se){if(re!==ie)return re-ie;if(se!==pe)return se-pe}}return ie-re};var ee=2e9;y.seedPseudoRandom=function(){ee=2e9},y.pseudoRandom=function(){var Y=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-Y)<429496729?y.pseudoRandom():ee/4294967296},y.fillText=function(Y,Z,X){var re=Array.isArray(X)?function(se){X.push(se)}:function(se){X.text=se},ie=y.extractOption(Y,Z,"htx","hovertext");if(y.isValidTextValue(ie))return re(ie);var le=y.extractOption(Y,Z,"tx","text");return y.isValidTextValue(le)?re(le):void 0},y.isValidTextValue=function(Y){return Y||Y===0},y.formatPercent=function(Y,Z){Z=Z||0;for(var X=(Math.round(100*Y*Math.pow(10,Z))*Math.pow(.1,Z)).toFixed(Z)+"%",re=0;re1&&(Se=1):Se=0,y.strTranslate(ie-Se*(X+se),le-Se*(re+pe))+y.strScale(Se)+(Te?"rotate("+Te+(Z?"":" "+X+" "+re)+")":"")},y.setTransormAndDisplay=function(Y,Z){Y.attr("transform",y.getTextTransform(Z)),Y.style("display",Z.scale?null:"none")},y.ensureUniformFontSize=function(Y,Z){var X=y.extendFlat({},Z);return X.size=Math.max(Z.size,Y._fullLayout.uniformtext.minsize||0),X},y.join2=function(Y,Z,X){var re=Y.length;return re>1?Y.slice(0,-1).join(Z)+X+Y[re-1]:Y.join(Z)},y.bigFont=function(Y){return Math.round(1.2*Y)};var U=y.getFirefoxVersion(),Q=U!==null&&U<86;y.getPositionFromD3Event=function(){return Q?[l.event.layerX,l.event.layerY]:[l.event.offsetX,l.event.offsetY]}},41965:function(o){o.exports=function(a){return window&&window.process&&window.process.versions?Object.prototype.toString.call(a)==="[object Object]":Object.prototype.toString.call(a)==="[object Object]"&&Object.getPrototypeOf(a).hasOwnProperty("hasOwnProperty")}},66636:function(o,a,n){var l=n(65487),f=/^\w*$/;o.exports=function(s,u,d,h){var p,m,y;d=d||"name",h=h||"value";var v={};u&&u.length?(y=l(s,u),m=y.get()):m=s,u=u||"";var g={};if(m)for(p=0;p2)return v[w]=2|v[w],x.set(_,null);if(b){for(p=w;p1){var d=["LOG:"];for(u=0;u1){var h=[];for(u=0;u"),"long")}},s.warn=function(){var u;if(l.logging>0){var d=["WARN:"];for(u=0;u0){var h=[];for(u=0;u"),"stick")}},s.error=function(){var u;if(l.logging>0){var d=["ERROR:"];for(u=0;u0){var h=[];for(u=0;u"),"stick")}}},77310:function(o,a,n){var l=n(39898);o.exports=function(f,s,u){var d=f.selectAll("g."+u.replace(/\s/g,".")).data(s,function(p){return p[0].trace.uid});d.exit().remove(),d.enter().append("g").attr("class",u),d.order();var h=f.classed("rangeplot")?"nodeRangePlot3":"node3";return d.each(function(p){p[0][h]=l.select(this)}),d}},35657:function(o,a,n){var l=n(79576);a.init2dArray=function(f,s){for(var u=new Array(f),d=0;dn/2?a-Math.round(a/n)*n:a}}},65487:function(o,a,n){var l=n(92770),f=n(73627).isArrayOrTypedArray;function s(v,g){return function(){var b,x,_,w,k,T=v;for(w=0;w/g),x=0;xm||M===f||Mv||k&&g(w))}:function(w,k){var T=w[0],M=w[1];if(T===f||Tm||M===f||Mv)return!1;var S,C,P,D,O,R=h.length,F=h[0][0],A=h[0][1],z=0;for(S=1;SMath.max(C,F)||M>Math.max(P,A)))if(Mx||Math.abs(l(y,w))>p)return!0;return!1},s.filter=function(u,d){var h=[u[0]],p=0,m=0;function y(v){u.push(v);var g=h.length,b=p;h.splice(m+1);for(var x=b+1;x1&&y(u.pop()),{addPt:y,raw:u,filtered:h}}},45142:function(o,a,n){var l=n(92770),f=n(35791);o.exports=function(s){var u;if(typeof(u=s&&s.hasOwnProperty("userAgent")?s.userAgent:function(){var g;return typeof navigator<"u"&&(g=navigator.userAgent),g&&g.headers&&typeof g.headers["user-agent"]=="string"&&(g=g.headers["user-agent"]),g}())!="string")return!0;var d=f({ua:{headers:{"user-agent":u}},tablet:!0,featureDetect:!1});if(!d){for(var h=u.split(" "),p=1;p-1;m--){var y=h[m];if(y.substr(0,8)==="Version/"){var v=y.substr(8).split(".")[0];if(l(v)&&(v=+v),v>=13)return!0}}}return d}},75138:function(o){o.exports=function(a,n){if(n instanceof RegExp){for(var l=n.toString(),f=0;ff.queueLength&&(u.undoQueue.queue.shift(),u.undoQueue.index--))},startSequence:function(u){u.undoQueue=u.undoQueue||{index:0,queue:[],sequence:!1},u.undoQueue.sequence=!0,u.undoQueue.beginSequence=!0},stopSequence:function(u){u.undoQueue=u.undoQueue||{index:0,queue:[],sequence:!1},u.undoQueue.sequence=!1,u.undoQueue.beginSequence=!1},undo:function(u){var d,h;if(!(u.undoQueue===void 0||isNaN(u.undoQueue.index)||u.undoQueue.index<=0)){for(u.undoQueue.index--,d=u.undoQueue.queue[u.undoQueue.index],u.undoQueue.inSequence=!0,h=0;h=u.undoQueue.queue.length)){for(d=u.undoQueue.queue[u.undoQueue.index],u.undoQueue.inSequence=!0,h=0;hg}function y(v,g){return v>=g}a.findBin=function(v,g,b){if(l(g.start))return b?Math.ceil((v-g.start)/g.size-d)-1:Math.floor((v-g.start)/g.size+d);var x,_,w=0,k=g.length,T=0,M=k>1?(g[k-1]-g[0])/(k-1):1;for(_=M>=0?b?h:p:b?y:m,v+=M*d*(b?-1:1)*(M>=0?1:-1);w90&&f.log("Long binary search..."),w-1},a.sorterAsc=function(v,g){return v-g},a.sorterDes=function(v,g){return g-v},a.distinctVals=function(v){var g,b=v.slice();for(b.sort(a.sorterAsc),g=b.length-1;g>-1&&b[g]===u;g--);for(var x,_=b[g]-b[0]||1,w=_/(g||1)/1e4,k=[],T=0;T<=g;T++){var M=b[T],S=M-x;x===void 0?(k.push(M),x=M):S>w&&(_=Math.min(_,S),k.push(M),x=M)}return{vals:k,minDiff:_}},a.roundUp=function(v,g,b){for(var x,_=0,w=g.length-1,k=0,T=b?0:1,M=b?1:0,S=b?Math.ceil:Math.floor;_0&&(x=1),b&&x)return v.sort(g)}return x?v:v.reverse()},a.findIndexOfMin=function(v,g){g=g||s;for(var b,x=1/0,_=0;_d.length)&&(h=d.length),l(u)||(u=!1),f(d[0])){for(m=new Array(h),p=0;ps.length-1)return s[s.length-1];var d=u%1;return d*s[Math.ceil(u)]+(1-d)*s[Math.floor(u)]}},3883:function(o,a,n){var l=n(32396),f=n(91424),s=n(71828),u=null;o.exports=function(){if(u!==null)return u;u=!1;var d=s.isIE()||s.isSafari()||s.isIOS();if(window.navigator.userAgent&&!d){var h=Array.from(l.CSS_DECLARATIONS).reverse(),p=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof p=="function")u=h.some(function(v){return p.apply(null,v)});else{var m=f.tester.append("image").attr("style",l.STYLE),y=window.getComputedStyle(m.node()).imageRendering;u=h.some(function(v){var g=v[1];return y===g||y===g.toLowerCase()}),m.remove()}}return u}},63893:function(o,a,n){var l=n(39898),f=n(71828),s=f.strTranslate,u=n(77922),d=n(18783).LINE_SPACING,h=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;a.convertToTspans=function(N,E,W){var G=N.text(),L=!N.attr("data-notex")&&E&&E._context.typesetMath&&typeof MathJax<"u"&&G.match(h),q=l.select(N.node().parentNode);if(!q.empty()){var H=N.attr("class")?N.attr("class").split(" ")[0]:"text";return H+="-math",q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove(),N.style("display",null).attr({"data-unformatted":G,"data-math":"N"}),L?(E&&E._promises||[]).push(new Promise(function(te){N.style("display","none");var ee=parseInt(N.node().style.fontSize,10),U={fontSize:ee};(function(Q,Y,Z){var X,re,ie,le,se=parseInt((MathJax.version||"").split(".")[0]);if(se===2||se===3){var pe=function(){var Se="math-output-"+f.randstr({},64),Oe=(le=l.select("body").append("div").attr({id:Se}).style({visibility:"hidden",position:"absolute","font-size":Y.fontSize+"px"}).text(Q.replace(p,"\\lt ").replace(m,"\\gt "))).node();return se===2?MathJax.Hub.Typeset(Oe):MathJax.typeset([Oe])},Te=function(){var Se=le.select(se===2?".MathJax_SVG":".MathJax"),Oe=!Se.empty()&&le.select("svg").node();if(Oe){var Me,ce=Oe.getBoundingClientRect();Me=se===2?l.select("body").select("#MathJax_SVG_glyphs"):Se.select("defs"),Z(Se,Me,ce)}else f.log("There was an error in the tex syntax.",Q),Z();le.remove()};se===2?MathJax.Hub.Queue(function(){return re=f.extendDeepAll({},MathJax.Hub.config),ie=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:y},displayAlign:"left"})},function(){if((X=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},pe,Te,function(){if(X!=="SVG")return MathJax.Hub.setRenderer(X)},function(){return ie!==void 0&&(MathJax.Hub.processSectionDelay=ie),MathJax.Hub.Config(re)}):se===3&&(re=f.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=y,(X=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){pe(),Te(),X!=="svg"&&(MathJax.config.startup.output=X),MathJax.config=re}))}else f.warn("No MathJax version:",MathJax.version)})(L[2],U,function(Q,Y,Z){q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove();var X=Q&&Q.select("svg");if(!X||!X.node())return V(),void te();var re=q.append("g").classed(H+"-group",!0).attr({"pointer-events":"none","data-unformatted":G,"data-math":"Y"});re.node().appendChild(X.node()),Y&&Y.node()&&X.node().insertBefore(Y.node().cloneNode(!0),X.node().firstChild);var ie=Z.width,le=Z.height;X.attr({class:H,height:le,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var se=N.node().style.fill||"black",pe=X.select("g");pe.attr({fill:se,stroke:se});var Te=pe.node().getBoundingClientRect(),Se=Te.width,Oe=Te.height;(Se>ie||Oe>le)&&(X.style("overflow","hidden"),Se=(Te=X.node().getBoundingClientRect()).width,Oe=Te.height);var Me=+N.attr("x"),ce=+N.attr("y"),ye=-(ee||N.node().getBoundingClientRect().height)/4;if(H[0]==="y")re.attr({transform:"rotate("+[-90,Me,ce]+")"+s(-Se/2,ye-Oe/2)});else if(H[0]==="l")ce=ye-Oe/2;else if(H[0]==="a"&&H.indexOf("atitle")!==0)Me=0,ce=ye;else{var J=N.attr("text-anchor");Me-=Se*(J==="middle"?.5:J==="end"?1:0),ce=ce+ye-Oe/2}X.attr({x:Me,y:ce}),W&&W.call(N,re),te(re)})})):V(),N}function V(){q.empty()||(H=N.attr("class")+"-math",q.select("svg."+H).remove()),N.text("").style("white-space","pre");var te=function(ee,U){U=U.replace(w," ");var Q,Y=!1,Z=[],X=-1;function re(){X++;var ue=document.createElementNS(u.svg,"tspan");l.select(ue).attr({class:"line",dy:X*d+"em"}),ee.appendChild(ue),Q=ue;var ge=Z;if(Z=[{node:ue}],ge.length>1)for(var be=1;be doesnt match end tag <"+ue+">. Pretending it did match.",U),Q=Z[Z.length-1].node}else f.log("Ignoring unexpected end tag .",U)}M.test(U)?re():(Q=ee,Z=[{node:ee}]);for(var pe=U.split(k),Te=0;Te|>|>)/g,y=[["$","$"],["\\(","\\)"]],v={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},g={sub:"0.3em",sup:"-0.6em"},b={sub:"-0.21em",sup:"0.42em"},x="​",_=["http:","https:","mailto:","",void 0,":"],w=a.NEWLINES=/(\r\n?|\n)/g,k=/(<[^<>]*>)/,T=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=//i;a.BR_TAG_ALL=//gi;var S=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,C=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,P=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,D=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function O(N,E){if(!N)return null;var W=N.match(E),G=W&&(W[3]||W[4]);return G&&z(G)}var R=/(^|;)\s*color:/;a.plainText=function(N,E){for(var W=(E=E||{}).len!==void 0&&E.len!==-1?E.len:1/0,G=E.allowedTags!==void 0?E.allowedTags:["br"],L=N.split(k),q=[],H="",V=0,te=0;te3?q.push(ee.substr(0,Z-3)+"..."):q.push(ee.substr(0,Z));break}H=""}}return q.join("")};var F={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function z(N){return N.replace(A,function(E,W){return(W.charAt(0)==="#"?function(G){if(!(G>1114111)){var L=String.fromCodePoint;if(L)return L(G);var q=String.fromCharCode;return G<=65535?q(G):q(55232+(G>>10),G%1024+56320)}}(W.charAt(1)==="x"?parseInt(W.substr(2),16):parseInt(W.substr(1),10)):F[W])||E})}function B(N){var E=encodeURI(decodeURI(N)),W=document.createElement("a"),G=document.createElement("a");W.href=N,G.href=E;var L=W.protocol,q=G.protocol;return _.indexOf(L)!==-1&&_.indexOf(q)!==-1?E:""}function $(N,E,W){var G,L,q,H=W.horizontalAlign,V=W.verticalAlign||"top",te=N.node().getBoundingClientRect(),ee=E.node().getBoundingClientRect();return L=V==="bottom"?function(){return te.bottom-G.height}:V==="middle"?function(){return te.top+(te.height-G.height)/2}:function(){return te.top},q=H==="right"?function(){return te.right-G.width}:H==="center"?function(){return te.left+(te.width-G.width)/2}:function(){return te.left},function(){G=this.node().getBoundingClientRect();var U=q()-ee.left,Q=L()-ee.top,Y=W.gd||{};if(W.gd){Y._fullLayout._calcInverseTransform(Y);var Z=f.apply3DTransform(Y._fullLayout._invTransform)(U,Q);U=Z[0],Q=Z[1]}return this.style({top:Q+"px",left:U+"px","z-index":1e3}),this}}a.convertEntities=z,a.sanitizeHTML=function(N){N=N.replace(w," ");for(var E=document.createElement("p"),W=E,G=[],L=N.split(k),q=0;qd.ts+s?m():d.timer=setTimeout(function(){m(),d.timer=null},s)},a.done=function(f){var s=n[f];return s&&s.timer?new Promise(function(u){var d=s.onDone;s.onDone=function(){d&&d(),u(),s.onDone=null}}):Promise.resolve()},a.clear=function(f){if(f)l(n[f]),delete n[f];else for(var s in n)a.clear(s)}},58163:function(o,a,n){var l=n(92770);o.exports=function(f,s){if(f>0)return Math.log(f)/Math.LN10;var u=Math.log(Math.min(s[0],s[1]))/Math.LN10;return l(u)||(u=Math.log(Math.max(s[0],s[1]))/Math.LN10-6),u}},37815:function(o){o.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(o){o.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(o,a,n){var l=n(73972);o.exports=function(f){for(var s,u,d=l.layoutArrayContainers,h=l.layoutArrayRegexes,p=f.split("[")[0],m=0;m0&&u.log("Clearing previous rejected promises from queue."),C._promises=[]},a.cleanLayout=function(C){var P,D;C||(C={}),C.xaxis1&&(C.xaxis||(C.xaxis=C.xaxis1),delete C.xaxis1),C.yaxis1&&(C.yaxis||(C.yaxis=C.yaxis1),delete C.yaxis1),C.scene1&&(C.scene||(C.scene=C.scene1),delete C.scene1);var O=(d.subplotsRegistry.cartesian||{}).attrRegex,R=(d.subplotsRegistry.polar||{}).attrRegex,F=(d.subplotsRegistry.ternary||{}).attrRegex,A=(d.subplotsRegistry.gl3d||{}).attrRegex,z=Object.keys(C);for(P=0;P3?(Z.x=1.02,Z.xanchor="left"):Z.x<-2&&(Z.x=-.02,Z.xanchor="right"),Z.y>3?(Z.y=1.02,Z.yanchor="bottom"):Z.y<-2&&(Z.y=-.02,Z.yanchor="top")),b(C),C.dragmode==="rotate"&&(C.dragmode="orbit"),p.clean(C),C.template&&C.template.layout&&a.cleanLayout(C.template.layout),C},a.cleanData=function(C){for(var P=0;P0)return C.substr(0,P)}a.hasParent=function(C,P){for(var D=M(P);D;){if(D in C)return!0;D=M(D)}return!1};var S=["x","y","z"];a.clearAxisTypes=function(C,P,D){for(var O=0;O1&&s.warn("Full array edits are incompatible with other edits",x);var C=v[""][""];if(p(C))y.set(null);else{if(!Array.isArray(C))return s.warn("Unrecognized full array edit value",x,C),!0;y.set(C)}return!T&&(_(M,S),w(m),!0)}var P,D,O,R,F,A,z,B,$=Object.keys(v).map(Number).sort(u),j=y.get(),N=j||[],E=b(S,x).get(),W=[],G=-1,L=N.length;for(P=0;P<$.length;P++)if(R=v[O=$[P]],F=Object.keys(R),A=R[""],z=h(A),O<0||O>N.length-(z?0:1))s.warn("index out of range",x,O);else if(A!==void 0)F.length>1&&s.warn("Insertion & removal are incompatible with edits to the same index.",x,O),p(A)?W.push(O):z?(A==="add"&&(A={}),N.splice(O,0,A),E&&E.splice(O,0,{})):s.warn("Unrecognized full object edit value",x,O,A),G===-1&&(G=O);else for(D=0;D=0;P--)N.splice(W[P],1),E&&E.splice(W[P],1);if(N.length?j||y.set(N):y.set(null),T)return!1;if(_(M,S),k!==f){var q;if(G===-1)q=$;else{for(L=Math.max(N.length,L),q=[],P=0;P<$.length&&!((O=$[P])>=G);P++)q.push(O);for(P=G;P=ue.data.length||ke<-ue.data.length)throw new Error(be+" must be valid indices for gd.data.");if(ge.indexOf(ke,we+1)>-1||ke>=0&&ge.indexOf(-ue.data.length+ke)>-1||ke<0&&ge.indexOf(ue.data.length+ke)>-1)throw new Error("each index in "+be+" must be unique.")}}function E(ue,ge,be){if(!Array.isArray(ue.data))throw new Error("gd.data must be an array.");if(ge===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(ge)||(ge=[ge]),N(ue,ge,"currentIndices"),be===void 0||Array.isArray(be)||(be=[be]),be!==void 0&&N(ue,be,"newIndices"),be!==void 0&&ge.length!==be.length)throw new Error("current and new indices must be of equal length.")}function W(ue,ge,be,we,ke){(function(qe,Ye,at,lt){var ct=u.isPlainObject(lt);if(!Array.isArray(qe.data))throw new Error("gd.data must be an array");if(!u.isPlainObject(Ye))throw new Error("update must be a key:value object");if(at===void 0)throw new Error("indices must be an integer or array of integers");for(var bt in N(qe,at,"indices"),Ye){if(!Array.isArray(Ye[bt])||Ye[bt].length!==at.length)throw new Error("attribute "+bt+" must be an array of length equal to indices array length");if(ct&&(!(bt in lt)||!Array.isArray(lt[bt])||lt[bt].length!==Ye[bt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ue,ge,be,we);for(var Ae=function(qe,Ye,at,lt){var ct,bt,ze,Ne,Qe,it=u.isPlainObject(lt),kt=[];for(var Je in Array.isArray(at)||(at=[at]),at=j(at,qe.data.length-1),Ye)for(var ut=0;ut-1&&be.indexOf("grouptitlefont")===-1?De(be,be.replace("titlefont","title.font")):be.indexOf("titleposition")>-1?De(be,be.replace("titleposition","title.position")):be.indexOf("titleside")>-1?De(be,be.replace("titleside","title.side")):be.indexOf("titleoffset")>-1&&De(be,be.replace("titleoffset","title.offset")):De(be,be.replace("title","title.text"));function De(Re,Ie){ue[Ie]=ue[Re],delete ue[Re]}}function U(ue,ge,be){ue=u.getGraphDiv(ue),P.clearPromiseQueue(ue);var we={};if(typeof ge=="string")we[ge]=be;else{if(!u.isPlainObject(ge))return u.warn("Relayout fail.",ge,be),Promise.reject();we=u.extendFlat({},ge)}Object.keys(we).length&&(ue.changed=!0);var ke=ie(ue,we),Ae=ke.flags;Ae.calc&&(ue.calcdata=void 0);var Ee=[v.previousPromises];Ae.layoutReplot?Ee.push(D.layoutReplot):Object.keys(we).length&&(Q(ue,Ae,ke)||v.supplyDefaults(ue),Ae.legend&&Ee.push(D.doLegend),Ae.layoutstyle&&Ee.push(D.layoutStyles),Ae.axrange&&Y(Ee,ke.rangesAltered),Ae.ticks&&Ee.push(D.doTicksRelayout),Ae.modebar&&Ee.push(D.doModeBar),Ae.camera&&Ee.push(D.doCamera),Ae.colorbars&&Ee.push(D.doColorBars),Ee.push(A)),Ee.push(v.rehover,v.redrag,v.reselect),p.add(ue,U,[ue,ke.undoit],U,[ue,ke.redoit]);var De=u.syncOrAsync(Ee,ue);return De&&De.then||(De=Promise.resolve(ue)),De.then(function(){return ue.emit("plotly_relayout",ke.eventData),ue})}function Q(ue,ge,be){var we,ke,Ae=ue._fullLayout;if(!ge.axrange)return!1;for(var Ee in ge)if(Ee!=="axrange"&&ge[Ee])return!1;var De=function(Ye,at){return u.coerce(we,ke,x,Ye,at)},Re={};for(var Ie in be.rangesAltered){var Be=g.id2name(Ie);if(we=ue.layout[Be],ke=Ae[Be],b(we,ke,De,Re),ke._matchGroup){for(var Ue in ke._matchGroup)if(Ue!==Ie){var qe=Ae[g.id2name(Ue)];qe.autorange=ke.autorange,qe.range=ke.range.slice(),qe._input.range=ke.range.slice()}}}return!0}function Y(ue,ge){var be=ge?function(we){var ke=[];for(var Ae in ge){var Ee=g.getFromId(we,Ae);if(ke.push(Ae),(Ee.ticklabelposition||"").indexOf("inside")!==-1&&Ee._anchorAxis&&ke.push(Ee._anchorAxis._id),Ee._matchGroup)for(var De in Ee._matchGroup)ge[De]||ke.push(De)}return g.draw(we,ke,{skipTitle:!0})}:function(we){return g.draw(we,"redraw")};ue.push(M,D.doAutoRangeAndConstraints,be,D.drawData,D.finalDraw)}var Z=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,X=/^[xyz]axis[0-9]*\.autorange$/,re=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function ie(ue,ge){var be,we,ke,Ae=ue.layout,Ee=ue._fullLayout,De=Ee._guiEditing,Re=H(Ee._preGUI,De),Ie=Object.keys(ge),Be=g.list(ue),Ue=u.extendDeepAll({},ge),qe={};for(ee(ge),Ie=Object.keys(ge),we=0;we0&&typeof ut.parts[It]!="string";)It--;var Mt=ut.parts[It],zt=ut.parts[It-1]+"."+Mt,wt=ut.parts.slice(0,It).join("."),ve=d(ue.layout,wt).get(),_e=d(Ee,wt).get(),Ve=ut.get();if(pt!==void 0){bt[Je]=pt,ze[Je]=Mt==="reverse"?pt:q(Ve);var We=y.getLayoutValObject(Ee,ut.parts);if(We&&We.impliedEdits&&pt!==null)for(var Ze in We.impliedEdits)Ne(u.relativeAttr(Je,Ze),We.impliedEdits[Ze]);if(["width","height"].indexOf(Je)!==-1)if(pt){Ne("autosize",null);var Ge=Je==="height"?"width":"height";Ne(Ge,Ee[Ge])}else Ee[Je]=ue._initialAutoSize[Je];else if(Je==="autosize")Ne("width",pt?null:Ee.width),Ne("height",pt?null:Ee.height);else if(zt.match(Z))kt(zt),d(Ee,wt+"._inputRange").set(null);else if(zt.match(X)){kt(zt),d(Ee,wt+"._inputRange").set(null);var Ke=d(Ee,wt).get();Ke._inputDomain&&(Ke._input.domain=Ke._inputDomain.slice())}else zt.match(re)&&d(Ee,wt+"._inputDomain").set(null);if(Mt==="type"){Qe=ve;var nt=_e.type==="linear"&&pt==="log",st=_e.type==="log"&&pt==="linear";if(nt||st){if(Qe&&Qe.range)if(_e.autorange)nt&&(Qe.range=Qe.range[1]>Qe.range[0]?[1,2]:[2,1]);else{var mt=Qe.range[0],tt=Qe.range[1];nt?(mt<=0&&tt<=0&&Ne(wt+".autorange",!0),mt<=0?mt=tt/1e6:tt<=0&&(tt=mt/1e6),Ne(wt+".range[0]",Math.log(mt)/Math.LN10),Ne(wt+".range[1]",Math.log(tt)/Math.LN10)):(Ne(wt+".range[0]",Math.pow(10,mt)),Ne(wt+".range[1]",Math.pow(10,tt)))}else Ne(wt+".autorange",!0);Array.isArray(Ee._subplots.polar)&&Ee._subplots.polar.length&&Ee[ut.parts[0]]&&ut.parts[1]==="radialaxis"&&delete Ee[ut.parts[0]]._subplot.viewInitial["radialaxis.range"],m.getComponentMethod("annotations","convertCoords")(ue,_e,pt,Ne),m.getComponentMethod("images","convertCoords")(ue,_e,pt,Ne)}else Ne(wt+".autorange",!0),Ne(wt+".range",null);d(Ee,wt+"._inputRange").set(null)}else if(Mt.match(R)){var Ft=d(Ee,Je).get(),Vt=(pt||{}).type;Vt&&Vt!=="-"||(Vt="linear"),m.getComponentMethod("annotations","convertCoords")(ue,Ft,Vt,Ne),m.getComponentMethod("images","convertCoords")(ue,Ft,Vt,Ne)}var St=C.containerArrayMatch(Je);if(St){be=St.array,we=St.index;var Nt=St.property,Dt=We||{editType:"calc"};we!==""&&Nt===""&&(C.isAddVal(pt)?ze[Je]=null:C.isRemoveVal(pt)?ze[Je]=(d(Ae,be).get()||[])[we]:u.warn("unrecognized full object value",ge)),O.update(ct,Dt),qe[be]||(qe[be]={});var gt=qe[be][we];gt||(gt=qe[be][we]={}),gt[Nt]=pt,delete ge[Je]}else Mt==="reverse"?(ve.range?ve.range.reverse():(Ne(wt+".autorange",!0),ve.range=[1,0]),_e.autorange?ct.calc=!0:ct.plot=!0):(Je==="dragmode"&&(pt===!1&&Ve!==!1||pt!==!1&&Ve===!1)||Ee._has("scatter-like")&&Ee._has("regl")&&Je==="dragmode"&&(pt==="lasso"||pt==="select")&&Ve!=="lasso"&&Ve!=="select"||Ee._has("gl2d")?ct.plot=!0:We?O.update(ct,We):ct.calc=!0,ut.set(pt))}}for(be in qe)C.applyContainerArrayChanges(ue,Re(Ae,be),qe[be],ct,Re)||(ct.plot=!0);for(var ht in it){var yt=(Qe=g.getFromId(ue,ht))&&Qe._constraintGroup;if(yt)for(var qt in ct.calc=!0,yt)it[qt]||(g.getFromId(ue,qt)._constraintShrinkable=!0)}(le(ue)||ge.height||ge.width)&&(ct.plot=!0);var Et=Ee.shapes;for(we=0;we1;)if(we.pop(),(be=d(ge,we.join(".")+".uirevision").get())!==void 0)return be;return ge.uirevision}function ce(ue,ge){for(var be=0;be=ke.length?ke[0]:ke[Ie]:ke}function De(Ie){return Array.isArray(Ae)?Ie>=Ae.length?Ae[0]:Ae[Ie]:Ae}function Re(Ie,Be){var Ue=0;return function(){if(Ie&&++Ue===Be)return Ie()}}return we._frameWaitingCnt===void 0&&(we._frameWaitingCnt=0),new Promise(function(Ie,Be){function Ue(){ue.emit("plotly_animating"),we._lastFrameAt=-1/0,we._timeToNext=0,we._runningTransitions=0,we._currentFrame=null;var Je=function(){we._animationRaf=window.requestAnimationFrame(Je),Date.now()-we._lastFrameAt>we._timeToNext&&function(){we._currentFrame&&we._currentFrame.onComplete&&we._currentFrame.onComplete();var ut=we._currentFrame=we._frameQueue.shift();if(ut){var pt=ut.name?ut.name.toString():null;ue._fullLayout._currentFrame=pt,we._lastFrameAt=Date.now(),we._timeToNext=ut.frameOpts.duration,v.transition(ue,ut.frame.data,ut.frame.layout,P.coerceTraceIndices(ue,ut.frame.traces),ut.frameOpts,ut.transitionOpts).then(function(){ut.onComplete&&ut.onComplete()}),ue.emit("plotly_animatingframe",{name:pt,frame:ut.frame,animation:{frame:ut.frameOpts,transition:ut.transitionOpts}})}else ue.emit("plotly_animated"),window.cancelAnimationFrame(we._animationRaf),we._animationRaf=null}()};Je()}var qe,Ye,at=0;function lt(Je){return Array.isArray(ke)?at>=ke.length?Je.transitionOpts=ke[at]:Je.transitionOpts=ke[0]:Je.transitionOpts=ke,at++,Je}var ct=[],bt=ge==null,ze=Array.isArray(ge);if(bt||ze||!u.isPlainObject(ge)){if(bt||["string","number"].indexOf(typeof ge)!==-1)for(qe=0;qe0&&itit)&&kt.push(Ye);ct=kt}}ct.length>0?function(Je){if(Je.length!==0){for(var ut=0;ut=0;we--)if(u.isPlainObject(ge[we])){var qe=ge[we].name,Ye=(Re[qe]||Ue[qe]||{}).name,at=ge[we].name,lt=Re[Ye]||Ue[Ye];Ye&&at&&typeof at=="number"&<&&F<5&&(F++,u.warn('addFrames: overwriting frame "'+(Re[Ye]||Ue[Ye]).name+'" with a frame whose name of type "number" also equates to "'+Ye+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),F===5&&u.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Ue[qe]={name:qe},Be.push({frame:v.supplyFrameDefaults(ge[we]),index:be&&be[we]!==void 0&&be[we]!==null?be[we]:Ie+we})}Be.sort(function(Je,ut){return Je.index>ut.index?-1:Je.index=0;we--){if(typeof(ke=Be[we].frame).name=="number"&&u.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!ke.name)for(;Re[ke.name="frame "+ue._transitionData._counter++];);if(Re[ke.name]){for(Ae=0;Ae=0;be--)we=ge[be],Ae.push({type:"delete",index:we}),Ee.unshift({type:"insert",index:we,value:ke[we]});var De=v.modifyFrames,Re=v.modifyFrames,Ie=[ue,Ee],Be=[ue,Ae];return p&&p.add(ue,De,Ie,Re,Be),v.modifyFrames(ue,Ae)},a.addTraces=function ue(ge,be,we){ge=u.getGraphDiv(ge);var ke,Ae,Ee=[],De=a.deleteTraces,Re=ue,Ie=[ge,Ee],Be=[ge,be];for(function(Ue,qe,Ye){var at,lt;if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(qe===void 0)throw new Error("traces must be defined.");for(Array.isArray(qe)||(qe=[qe]),at=0;at=0&&Be=0&&Be=$.length)return!1;if(R.dimensions===2){if(A++,F.length===A)return R;var j=F[A];if(!S(j))return!1;R=$[B][j]}else R=$[B]}else R=$}}return R}function S(R){return R===Math.round(R)&&R>=0}function C(){var R,F,A={};for(R in y(A,u),l.subplotsRegistry)if((F=l.subplotsRegistry[R]).layoutAttributes)if(Array.isArray(F.attr))for(var z=0;z=j.length)return!1;z=(A=(l.transformsRegistry[j[N].type]||{}).attributes)&&A[F[2]],$=3}else{var E=R._module;if(E||(E=(l.modules[R.type||s.type.dflt]||{})._module),!E)return!1;if(!(z=(A=E.attributes)&&A[B])){var W=E.basePlotModule;W&&W.attributes&&(z=W.attributes[B])}z||(z=s[B])}return M(z,F,$)},a.getLayoutValObject=function(R,F){var A=function(z,B){var $,j,N,E,W=z._basePlotModules;if(W){var G;for($=0;$=v&&(y._input||{})._templateitemname;b&&(g=v);var x,_=m+"["+g+"]";function w(){x={},b&&(x[_]={},x[_][s]=b)}function k(M,S){b?l.nestedProperty(x[_],M).set(S):x[_+"."+M]=S}function T(){var M=x;return w(),M}return w(),{modifyBase:function(M,S){x[M]=S},modifyItem:k,getUpdateObj:T,applyUpdate:function(M,S){M&&k(M,S);var C=T();for(var P in C)l.nestedProperty(p,P).set(C[P])}}}},61549:function(o,a,n){var l=n(39898),f=n(73972),s=n(74875),u=n(71828),d=n(63893),h=n(33306),p=n(7901),m=n(91424),y=n(92998),v=n(64168),g=n(89298),b=n(18783),x=n(99082),_=x.enforce,w=x.clean,k=n(71739).doAutoRange,T="start";function M(O,R,F){for(var A=0;A=O[1]||z[1]<=O[0])&&B[0]R[0])return!0}return!1}function S(O){var R,F,A,z,B,$,j=O._fullLayout,N=j._size,E=N.p,W=g.list(O,"",!0);if(j._paperdiv.style({width:O._context.responsive&&j.autosize&&!O._context._hasZeroWidth&&!O.layout.width?"100%":j.width+"px",height:O._context.responsive&&j.autosize&&!O._context._hasZeroHeight&&!O.layout.height?"100%":j.height+"px"}).selectAll(".main-svg").call(m.setSize,j.width,j.height),O._context.setBackground(O,j.paper_bgcolor),a.drawMainTitle(O),v.manage(O),!j._has("cartesian"))return s.previousPromises(O);function G(Ie,Be,Ue){var qe=Ie._lw/2;return Ie._id.charAt(0)==="x"?Be?Ue==="top"?Be._offset-E-qe:Be._offset+Be._length+E+qe:N.t+N.h*(1-(Ie.position||0))+qe%1:Be?Ue==="right"?Be._offset+Be._length+E+qe:Be._offset-E-qe:N.l+N.w*(Ie.position||0)+qe%1}for(R=0;R.5?"t":"b",ee=G._fullLayout.margin[te],U=0;return L.yref==="paper"?U=q+L.pad.t+L.pad.b:L.yref==="container"&&(U=function(Q,Y,Z,X,re){var ie=0;return Z==="middle"&&(ie+=re/2),Q==="t"?(Z==="top"&&(ie+=re),ie+=X-Y*X):(Z==="bottom"&&(ie+=re),ie+=Y*X),ie}(te,H,V,G._fullLayout.height,q)+L.pad.t+L.pad.b),U>ee?U:0}(O,F,E);W>0&&(function(G,L,q,H){var V="title.automargin",te=G._fullLayout.title,ee=te.y>.5?"t":"b",U={x:te.x,y:te.y,t:0,b:0},Q={};te.yref==="paper"&&function(Y,Z,X,re,ie){var le=Z.yref==="paper"?Y._fullLayout._size.h:Y._fullLayout.height,se=u.isTopAnchor(Z)?re:re-ie,pe=X==="b"?le-se:se;return!(u.isTopAnchor(Z)&&X==="t"||u.isBottomAnchor(Z)&&X==="b")&&peN?D.push({code:"unused",traceType:A,templateCount:j,dataCount:N}):N>j&&D.push({code:"reused",traceType:A,templateCount:j,dataCount:N})}}else D.push({code:"data"});if(function E(W,G){for(var L in W)if(L.charAt(0)!=="_"){var q=W[L],H=x(W,L,G);f(q)?(Array.isArray(W)&&q._template===!1&&q.templateitemname&&D.push({code:"missing",path:H,templateitemname:q.templateitemname}),E(q,H)):Array.isArray(q)&&_(q)&&E(q,H)}}({data:R,layout:O},""),D.length)return D.map(w)}},403:function(o,a,n){var l=n(92770),f=n(72391),s=n(74875),u=n(71828),d=n(25095),h=n(5900),p=n(70942),m=n(11506).version,y={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};o.exports=function(v,g){var b,x,_,w;function k(N){return!(N in g)||u.validate(g[N],y[N])}if(g=g||{},u.isPlainObject(v)?(b=v.data||[],x=v.layout||{},_=v.config||{},w={}):(v=u.getGraphDiv(v),b=u.extendDeep([],v.data),x=u.extendDeep({},v.layout),_=v._context,w=v._fullLayout||{}),!k("width")&&g.width!==null||!k("height")&&g.height!==null)throw new Error("Height and width should be pixel values.");if(!k("format"))throw new Error("Export format is not "+u.join2(y.format.values,", "," or ")+".");var T={};function M(N,E){return u.coerce(g,T,y,N,E)}var S=M("format"),C=M("width"),P=M("height"),D=M("scale"),O=M("setBackground"),R=M("imageDataOnly"),F=document.createElement("div");F.style.position="absolute",F.style.left="-5000px",document.body.appendChild(F);var A=u.extendFlat({},x);C?A.width=C:g.width===null&&l(w.width)&&(A.width=w.width),P?A.height=P:g.height===null&&l(w.height)&&(A.height=w.height);var z=u.extendFlat({},_,{_exportedPlot:!0,staticPlot:!0,setBackground:O}),B=d.getRedrawFunc(F);function $(){return new Promise(function(N){setTimeout(N,d.getDelay(F._fullLayout))})}function j(){return new Promise(function(N,E){var W=h(F,S,D),G=F._fullLayout.width,L=F._fullLayout.height;function q(){f.purge(F),document.body.removeChild(F)}if(S==="full-json"){var H=s.graphJson(F,!1,"keepdata","object",!0,!0);return H.version=m,H=JSON.stringify(H),q(),N(R?H:d.encodeJSON(H))}if(q(),S==="svg")return N(R?W:d.encodeSVG(W));var V=document.createElement("canvas");V.id=u.randstr(),p({format:S,width:G,height:L,scale:D,canvas:V,svg:W,promise:!0}).then(N).catch(E)})}return new Promise(function(N,E){f.newPlot(F,b,A,z).then(B).then($).then(j).then(function(W){N(function(G){return R?G.replace(d.IMAGE_URL_PREFIX,""):G}(W))}).catch(function(W){E(W)})})}},84936:function(o,a,n){var l=n(71828),f=n(74875),s=n(86281),u=n(72075).dfltConfig,d=l.isPlainObject,h=Array.isArray,p=l.isArrayOrTypedArray;function m(k,T,M,S,C,P){P=P||[];for(var D=Object.keys(k),O=0;Oz.length&&S.push(g("unused",C,F.concat(z.length)));var W,G,L,q,H,V=z.length,te=Array.isArray(E);if(te&&(V=Math.min(V,E.length)),B.dimensions===2)for(G=0;Gz[G].length&&S.push(g("unused",C,F.concat(G,z[G].length)));var ee=z[G].length;for(W=0;W<(te?Math.min(ee,E[G].length):ee);W++)L=te?E[G][W]:E,q=A[G][W],H=z[G][W],l.validate(q,L)?H!==q&&H!==+q&&S.push(g("dynamic",C,F.concat(G,W),q,H)):S.push(g("value",C,F.concat(G,W),q))}else S.push(g("array",C,F.concat(G),A[G]));else for(G=0;G1&&P.push(g("object","layout"))),f.supplyDefaults(D);for(var O=D._fullData,R=M.length,F=0;F0&&Math.round(x)===x))return{vals:y};g=x}for(var _=p.calendar,w=v==="start",k=v==="end",T=h[m+"period0"],M=s(T,_)||0,S=[],C=[],P=[],D=y.length,O=0;Oz;)A=u(A,-g,_);for(;A<=z;)A=u(A,g,_);F=u(A,-g,_)}else{for(A=M+(R=Math.round((z-M)/b))*b;A>z;)A-=b;for(;A<=z;)A+=b;F=A-b}S[O]=w?F:k?A:(F+A)/2,C[O]=F,P[O]=A}return{vals:S,starts:C,ends:P}}},89502:function(o){o.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(o,a,n){var l=n(39898),f=n(92770),s=n(71828),u=n(50606).FP_SAFE,d=n(73972),h=n(91424),p=n(41675),m=p.getFromId,y=p.isLinked;function v(O,R){var F,A,z=[],B=O._fullLayout,$=b(B,R,0),j=b(B,R,1),N=_(O,R),E=N.min,W=N.max;if(E.length===0||W.length===0)return s.simpleMap(R.range,R.r2l);var G=E[0].val,L=W[0].val;for(F=1;F0&&((Y=le-$(te)-j(ee))>se?Z/Y>pe&&(U=te,Q=ee,pe=Z/Y):Z/le>pe&&(U={val:te.val,nopad:1},Q={val:ee.val,nopad:1},pe=Z/le));if(G===L){var Te=G-1,Se=G+1;if(re)if(G===0)z=[0,1];else{var Oe=(G>0?W:E).reduce(function(ce,ye){return Math.max(ce,j(ye))},0),Me=G/(1-Math.min(.5,Oe/le));z=G>0?[0,Me]:[Me,0]}else z=ie?[Math.max(0,Te),Math.max(1,Se)]:[Te,Se]}else re?(U.val>=0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:0,nopad:1})):ie&&(U.val-pe*$(U)<0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:1,nopad:1})),pe=(Q.val-U.val-g(R,te.val,ee.val))/(le-$(U)-j(Q)),z=[U.val-pe*$(U),Q.val+pe*j(Q)];return z=D(z,R),R.limitRange&&R.limitRange(),H&&z.reverse(),s.simpleMap(z,R.l2r||Number)}function g(O,R,F){var A=0;if(O.rangebreaks)for(var z=O.locateBreaks(R,F),B=0;B0?F.ppadplus:F.ppadminus)||F.ppad||0),X=Y((O._m>0?F.ppadminus:F.ppadplus)||F.ppad||0),re=Y(F.vpadplus||F.vpad),ie=Y(F.vpadminus||F.vpad);if(!U){if(W=1/0,G=-1/0,ee)for(A=0;A0&&(W=z),z>G&&z-u&&(W=z),z>G&&z=pe;A--)se(A);return{min:L,max:q,opts:F}},concatExtremes:_};var x=3;function _(O,R,F){var A,z,B,$=R._id,j=O._fullData,N=O._fullLayout,E=[],W=[];function G(te,ee){for(A=0;A=F&&(E.extrapad||!$)){j=!1;break}z(R,E.val)&&E.pad<=F&&($||!E.extrapad)&&(O.splice(N,1),N--)}if(j){var W=B&&R===0;O.push({val:R,pad:W?0:F,extrapad:!W&&$})}}function M(O){return f(O)&&Math.abs(O)=R}function P(O,R,F){return R===void 0||F===void 0||(R=O.d2l(R))=N&&(B=N,F=N),$<=N&&($=N,A=N)}}return F=function(E,W){var G=W.autorangeoptions;return G&&G.minallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.minallowed:G&&G.clipmin!==void 0&&P(W,G.clipmin,G.clipmax)?Math.max(E,W.d2l(G.clipmin)):E}(F,R),A=function(E,W){var G=W.autorangeoptions;return G&&G.maxallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.maxallowed:G&&G.clipmax!==void 0&&P(W,G.clipmin,G.clipmax)?Math.min(E,W.d2l(G.clipmax)):E}(A,R),[F,A]}},23074:function(o){o.exports=function(a,n,l){var f,s;if(l){var u=n==="reversed"||n==="min reversed"||n==="max reversed";f=l[u?1:0],s=l[u?0:1]}var d=a("autorangeoptions.minallowed",s===null?f:void 0),h=a("autorangeoptions.maxallowed",f===null?s:void 0);d===void 0&&a("autorangeoptions.clipmin"),h===void 0&&a("autorangeoptions.clipmax"),a("autorangeoptions.include")}},89298:function(o,a,n){var l=n(39898),f=n(92770),s=n(74875),u=n(73972),d=n(71828),h=d.strTranslate,p=n(63893),m=n(92998),y=n(7901),v=n(91424),g=n(13838),b=n(66287),x=n(50606),_=x.ONEMAXYEAR,w=x.ONEAVGYEAR,k=x.ONEMINYEAR,T=x.ONEMAXQUARTER,M=x.ONEAVGQUARTER,S=x.ONEMINQUARTER,C=x.ONEMAXMONTH,P=x.ONEAVGMONTH,D=x.ONEMINMONTH,O=x.ONEWEEK,R=x.ONEDAY,F=R/2,A=x.ONEHOUR,z=x.ONEMIN,B=x.ONESEC,$=x.MINUS_SIGN,j=x.BADNUM,N={K:"zeroline"},E={K:"gridline",L:"path"},W={K:"minor-gridline",L:"path"},G={K:"tick",L:"path"},L={K:"tick",L:"text"},q={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},H=n(18783),V=H.MID_SHIFT,te=H.CAP_SHIFT,ee=H.LINE_SPACING,U=H.OPPOSITE_SIDE,Q=o.exports={};Q.setConvert=n(21994);var Y=n(4322),Z=n(41675),X=Z.idSort,re=Z.isLinked;Q.id2name=Z.id2name,Q.name2id=Z.name2id,Q.cleanId=Z.cleanId,Q.list=Z.list,Q.listIds=Z.listIds,Q.getFromId=Z.getFromId,Q.getFromTrace=Z.getFromTrace;var ie=n(71739);Q.getAutoRange=ie.getAutoRange,Q.findExtremes=ie.findExtremes;var le=1e-4;function se(ve){var _e=(ve[1]-ve[0])*le;return[ve[0]-_e,ve[1]+_e]}Q.coerceRef=function(ve,_e,Ve,We,Ze,Ge){var Ke=We.charAt(We.length-1),nt=Ve._fullLayout._subplots[Ke+"axis"],st=We+"ref",mt={};return Ze||(Ze=nt[0]||(typeof Ge=="string"?Ge:Ge[0])),Ge||(Ge=Ze),nt=nt.concat(nt.map(function(tt){return tt+" domain"})),mt[st]={valType:"enumerated",values:nt.concat(Ge?typeof Ge=="string"?[Ge]:Ge:[]),dflt:Ze},d.coerce(ve,_e,mt,st)},Q.getRefType=function(ve){return ve===void 0?ve:ve==="paper"?"paper":ve==="pixel"?"pixel":/( domain)$/.test(ve)?"domain":"range"},Q.coercePosition=function(ve,_e,Ve,We,Ze,Ge){var Ke,nt;if(Q.getRefType(We)!=="range")Ke=d.ensureNumber,nt=Ve(Ze,Ge);else{var st=Q.getFromId(_e,We);nt=Ve(Ze,Ge=st.fraction2r(Ge)),Ke=st.cleanPos}ve[Ze]=Ke(nt)},Q.cleanPosition=function(ve,_e,Ve){return(Ve==="paper"||Ve==="pixel"?d.ensureNumber:Q.getFromId(_e,Ve).cleanPos)(ve)},Q.redrawComponents=function(ve,_e){_e=_e||Q.listIds(ve);var Ve=ve._fullLayout;function We(Ze,Ge,Ke,nt){for(var st=u.getComponentMethod(Ze,Ge),mt={},tt=0;tt<_e.length;tt++)for(var Ft=Ve[Q.id2name(_e[tt])][Ke],Vt=0;VtVe&&tt2e-6||((Ve-ve._forceTick0)/ve._minDtick%1+1.000001)%1>2e-6)&&(ve._minDtick=0)):ve._minDtick=0},Q.saveRangeInitial=function(ve,_e){for(var Ve=Q.list(ve,"",!0),We=!1,Ze=0;Ze.3*$t||Lt(qt)||Lt(Et))){var Yt=yt.dtick/2;gt+=gt+Yt.8){var Tt=Number(yt.substr(1));jt.exactYears>.8&&Tt%12==0?gt=Q.tickIncrement(gt,"M6","reverse")+1.5*R:jt.exactMonths>.8?gt=Q.tickIncrement(gt,"M1","reverse")+15.5*R:gt-=F;var Ot=Q.tickIncrement(gt,yt);if(Ot<=qt)return Ot}return gt}(Dt,ve,Nt,nt,Ze)),St=Dt;St<=st;)St=Q.tickIncrement(St,Nt,!1,Ze);return{start:_e.c2r(Dt,0,Ze),end:_e.c2r(St,0,Ze),size:Nt,_dataSpan:st-nt}},Q.prepMinorTicks=function(ve,_e,Ve){if(!_e.minor.dtick){delete ve.dtick;var We,Ze=_e.dtick&&f(_e._tmin);if(Ze){var Ge=Q.tickIncrement(_e._tmin,_e.dtick,!0);We=[_e._tmin,.99*Ge+.01*_e._tmin]}else{var Ke=d.simpleMap(_e.range,_e.r2l);We=[Ke[0],.8*Ke[0]+.2*Ke[1]]}if(ve.range=d.simpleMap(We,_e.l2r),ve._isMinor=!0,Q.prepTicks(ve,Ve),Ze){var nt=f(_e.dtick),st=f(ve.dtick),mt=nt?_e.dtick:+_e.dtick.substring(1),tt=st?ve.dtick:+ve.dtick.substring(1);nt&&st?Oe(mt,tt)?mt===2*O&&tt===2*R&&(ve.dtick=O):mt===2*O&&tt===3*R?ve.dtick=O:mt!==O||(_e._input.minor||{}).nticks?Me(mt/tt,2.5)?ve.dtick=mt/2:ve.dtick=mt:ve.dtick=R:String(_e.dtick).charAt(0)==="M"?st?ve.dtick="M1":Oe(mt,tt)?mt>=12&&tt===2&&(ve.dtick="M3"):ve.dtick=_e.dtick:String(ve.dtick).charAt(0)==="L"?String(_e.dtick).charAt(0)==="L"?Oe(mt,tt)||(ve.dtick=Me(mt/tt,2.5)?_e.dtick/2:_e.dtick):ve.dtick="D1":ve.dtick==="D2"&&+_e.dtick>1&&(ve.dtick=1)}ve.range=_e.range}_e.minor._tick0Init===void 0&&(ve.tick0=_e.tick0)},Q.prepTicks=function(ve,_e){var Ve=d.simpleMap(ve.range,ve.r2l,void 0,void 0,_e);if(ve.tickmode==="auto"||!ve.dtick){var We,Ze=ve.nticks;Ze||(ve.type==="category"||ve.type==="multicategory"?(We=ve.tickfont?d.bigFont(ve.tickfont.size||12):15,Ze=ve._length/We):(We=ve._id.charAt(0)==="y"?40:80,Ze=d.constrain(ve._length/We,4,9)+1),ve._name==="radialaxis"&&(Ze*=2)),ve.minor&&ve.minor.tickmode!=="array"||ve.tickmode==="array"&&(Ze*=100),ve._roughDTick=Math.abs(Ve[1]-Ve[0])/Ze,Q.autoTicks(ve,ve._roughDTick),ve._minDtick>0&&ve.dtick<2*ve._minDtick&&(ve.dtick=ve._minDtick,ve.tick0=ve.l2r(ve._forceTick0))}ve.ticklabelmode==="period"&&function(Ge){var Ke;function nt(){return!(f(Ge.dtick)||Ge.dtick.charAt(0)!=="M")}var st=nt(),mt=Q.getTickFormat(Ge);if(mt){var tt=Ge._dtickInit!==Ge.dtick;/%[fLQsSMX]/.test(mt)||(/%[HI]/.test(mt)?(Ke=A,tt&&!st&&Ge.dtick=(ht?0:1);yt--){var qt=!yt;yt?(ve._dtickInit=ve.dtick,ve._tick0Init=ve.tick0):(ve.minor._dtickInit=ve.minor.dtick,ve.minor._tick0Init=ve.minor.tick0);var Et=yt?ve:d.extendFlat({},ve,ve.minor);if(qt?Q.prepMinorTicks(Et,ve,_e):Q.prepTicks(Et,_e),Et.tickmode!=="array")if(Et.tickmode!=="sync"){var jt=se(st),Tt=jt[0],Ot=jt[1],At=f(Et.dtick),Lt=Ze==="log"&&!(At||Et.dtick.charAt(0)==="L"),Rt=Q.tickFirst(Et,_e);if(yt){if(ve._tmin=Rt,Rt=Ot:Bt<=Ot;Bt=Q.tickIncrement(Bt,Wt,mt,Ge)){if(yt&&$t++,Et.rangebreaks&&!mt){if(Bt=Ft)break}if(Dt.length>Vt||Bt===Xt)break;Xt=Bt;var tn={value:Bt};yt?(Lt&&Bt!==(0|Bt)&&(tn.simpleLabel=!0),Ke>1&&$t%Ke&&(tn.skipLabel=!0),Dt.push(tn)):(tn.minor=!0,gt.push(tn))}}else Dt=[],St=J(ve);else yt?(Dt=[],St=ne(ve)):(gt=[],Nt=ne(ve))}if(ht&&!(ve.minor.ticks==="inside"&&ve.ticks==="outside"||ve.minor.ticks==="outside"&&ve.ticks==="inside")){for(var cn=Dt.map(function(lr){return lr.value}),ln=[],an=0;an0?(la=ur-1,An=ur):(la=ur,An=ur);var on,$n=lr[la].value,Pr=lr[An].value,Ln=Math.abs(Pr-$n),Bn=Ar||Ln,jn=0;Bn>=k?jn=Ln>=k&&Ln<=_?Ln:w:Ar===M&&Bn>=S?jn=Ln>=S&&Ln<=T?Ln:M:Bn>=D?jn=Ln>=D&&Ln<=C?Ln:P:Ar===O&&Bn>=O?jn=O:Bn>=R?jn=R:Ar===F&&Bn>=F?jn=F:Ar===A&&Bn>=A&&(jn=A),jn>=Ln&&(jn=Ln,on=!0);var Un=kr+jn;if(ti.rangebreaks&&jn>0){for(var Lr=0,xr=0;xr<84;xr++){var Mr=(xr+.5)/84;ti.maskBreaks(kr*(1-Mr)+Mr*Un)!==j&&Lr++}(jn*=Lr/84)||(lr[ur].drop=!0),on&&Ln>O&&(jn=Ln)}(jn>0||ur===0)&&(lr[ur].periodX=kr+jn/2)}}(Dt,ve,ve._definedDelta),ve.rangebreaks){var Kt=ve._id.charAt(0)==="y",On=1;ve.tickmode==="auto"&&(On=ve.tickfont?ve.tickfont.size:12);var Tn=NaN;for(Ve=Dt.length-1;Ve>-1;Ve--)if(Dt[Ve].drop)Dt.splice(Ve,1);else{Dt[Ve].value=It(Dt[Ve].value,ve);var Dn=ve.c2p(Dt[Ve].value);(Kt?Tn>Dn-On:TnFt||EnFt&&(wn.periodX=Ft),En10||We.substr(5)!=="01-01"?ve._tickround="d":ve._tickround=+_e.substr(1)%12==0?"y":"m";else if(_e>=R&&Ze<=10||_e>=15*R)ve._tickround="d";else if(_e>=z&&Ze<=16||_e>=A)ve._tickround="M";else if(_e>=B&&Ze<=19||_e>=z)ve._tickround="S";else{var Ge=ve.l2r(Ve+_e).replace(/^-/,"").length;ve._tickround=Math.max(Ze,Ge)-20,ve._tickround<0&&(ve._tickround=4)}}else if(f(_e)||_e.charAt(0)==="L"){var Ke=ve.range.map(ve.r2d||Number);f(_e)||(_e=Number(_e.substr(1))),ve._tickround=2-Math.floor(Math.log(_e)/Math.LN10+.01);var nt=Math.max(Math.abs(Ke[0]),Math.abs(Ke[1])),st=Math.floor(Math.log(nt)/Math.LN10+.01),mt=ve.minexponent===void 0?3:ve.minexponent;Math.abs(st)>mt&&(Ie(ve.exponentformat)&&!Be(st)?ve._tickexponent=3*Math.round((st-1)/3):ve._tickexponent=st)}else ve._tickround=null}function De(ve,_e,Ve){var We=ve.tickfont||{};return{x:_e,dx:0,dy:0,text:Ve||"",fontSize:We.size,font:We.family,fontColor:We.color}}Q.autoTicks=function(ve,_e,Ve){var We;function Ze(Ft){return Math.pow(Ft,Math.floor(Math.log(_e)/Math.LN10))}if(ve.type==="date"){ve.tick0=d.dateTick0(ve.calendar,0);var Ge=2*_e;if(Ge>w)_e/=w,We=Ze(10),ve.dtick="M"+12*Ae(_e,We,de);else if(Ge>P)_e/=P,ve.dtick="M"+Ae(_e,1,xe);else if(Ge>R){if(ve.dtick=Ae(_e,R,ve._hasDayOfWeekBreaks?[1,2,7,14]:ge),!Ve){var Ke=Q.getTickFormat(ve),nt=ve.ticklabelmode==="period";nt&&(ve._rawTick0=ve.tick0),/%[uVW]/.test(Ke)?ve.tick0=d.dateTick0(ve.calendar,2):ve.tick0=d.dateTick0(ve.calendar,1),nt&&(ve._dowTick0=ve.tick0)}}else Ge>A?ve.dtick=Ae(_e,A,xe):Ge>z?ve.dtick=Ae(_e,z,ue):Ge>B?ve.dtick=Ae(_e,B,ue):(We=Ze(10),ve.dtick=Ae(_e,We,de))}else if(ve.type==="log"){ve.tick0=0;var st=d.simpleMap(ve.range,ve.r2l);if(ve._isMinor&&(_e*=1.5),_e>.7)ve.dtick=Math.ceil(_e);else if(Math.abs(st[1]-st[0])<1){var mt=1.5*Math.abs((st[1]-st[0])/_e);_e=Math.abs(Math.pow(10,st[1])-Math.pow(10,st[0]))/mt,We=Ze(10),ve.dtick="L"+Ae(_e,We,de)}else ve.dtick=_e>.3?"D2":"D1"}else ve.type==="category"||ve.type==="multicategory"?(ve.tick0=0,ve.dtick=Math.ceil(Math.max(_e,1))):pt(ve)?(ve.tick0=0,We=1,ve.dtick=Ae(_e,We,ke)):(ve.tick0=0,We=Ze(10),ve.dtick=Ae(_e,We,de));if(ve.dtick===0&&(ve.dtick=1),!f(ve.dtick)&&typeof ve.dtick!="string"){var tt=ve.dtick;throw ve.dtick=1,"ax.dtick error: "+String(tt)}},Q.tickIncrement=function(ve,_e,Ve,We){var Ze=Ve?-1:1;if(f(_e))return d.increment(ve,Ze*_e);var Ge=_e.charAt(0),Ke=Ze*Number(_e.substr(1));if(Ge==="M")return d.incrementMonth(ve,Ke,We);if(Ge==="L")return Math.log(Math.pow(10,ve)+Ke)/Math.LN10;if(Ge==="D"){var nt=_e==="D2"?we:be,st=ve+.01*Ze,mt=d.roundUp(d.mod(st,1),nt,Ve);return Math.floor(st)+Math.log(l.round(Math.pow(10,mt),1))/Math.LN10}throw"unrecognized dtick "+String(_e)},Q.tickFirst=function(ve,_e){var Ve=ve.r2l||Number,We=d.simpleMap(ve.range,Ve,void 0,void 0,_e),Ze=We[1] ")}else gt._prevDateHead=Tt,Ot+="
"+Tt;ht.text=Ot}(ve,Ge,Ve,nt):st==="log"?function(gt,ht,yt,qt,Et){var jt=gt.dtick,Tt=ht.x,Ot=gt.tickformat,At=typeof jt=="string"&&jt.charAt(0);if(Et==="never"&&(Et=""),qt&&At!=="L"&&(jt="L3",At="L"),Ot||At==="L")ht.text=Ue(Math.pow(10,Tt),gt,Et,qt);else if(f(jt)||At==="D"&&d.mod(Tt+.01,1)<.1){var Lt=Math.round(Tt),Rt=Math.abs(Lt),$t=gt.exponentformat;$t==="power"||Ie($t)&&Be(Lt)?(ht.text=Lt===0?1:Lt===1?"10":"10"+(Lt>1?"":$)+Rt+"",ht.fontSize*=1.25):($t==="e"||$t==="E")&&Rt>2?ht.text="1"+$t+(Lt>0?"+":$)+Rt:(ht.text=Ue(Math.pow(10,Tt),gt,"","fakehover"),jt==="D1"&>._id.charAt(0)==="y"&&(ht.dy-=ht.fontSize/6))}else{if(At!=="D")throw"unrecognized dtick "+String(jt);ht.text=String(Math.round(Math.pow(10,d.mod(Tt,1)))),ht.fontSize*=.75}if(gt.dtick==="D1"){var Yt=String(ht.text).charAt(0);Yt!=="0"&&Yt!=="1"||(gt._id.charAt(0)==="y"?ht.dx-=ht.fontSize/4:(ht.dy+=ht.fontSize/2,ht.dx+=(gt.range[1]>gt.range[0]?1:-1)*ht.fontSize*(Tt<0?.5:.25)))}}(ve,Ge,0,nt,St):st==="category"?function(gt,ht){var yt=gt._categories[Math.round(ht.x)];yt===void 0&&(yt=""),ht.text=String(yt)}(ve,Ge):st==="multicategory"?function(gt,ht,yt){var qt=Math.round(ht.x),Et=gt._categories[qt]||[],jt=Et[1]===void 0?"":String(Et[1]),Tt=Et[0]===void 0?"":String(Et[0]);yt?ht.text=Tt+" - "+jt:(ht.text=jt,ht.text2=Tt)}(ve,Ge,Ve):pt(ve)?function(gt,ht,yt,qt,Et){if(gt.thetaunit!=="radians"||yt)ht.text=Ue(ht.x,gt,Et,qt);else{var jt=ht.x/180;if(jt===0)ht.text="0";else{var Tt=function(At){function Lt(Xt,Bt){return Math.abs(Xt-Bt)<=1e-6}var Rt=function(Xt){for(var Bt=1;!Lt(Math.round(Xt*Bt)/Bt,Xt);)Bt*=10;return Bt}(At),$t=At*Rt,Yt=Math.abs(function Xt(Bt,Wt){return Lt(Wt,0)?Bt:Xt(Wt,Bt%Wt)}($t,Rt));return[Math.round($t/Yt),Math.round(Rt/Yt)]}(jt);if(Tt[1]>=100)ht.text=Ue(d.deg2rad(ht.x),gt,Et,qt);else{var Ot=ht.x<0;Tt[1]===1?Tt[0]===1?ht.text="π":ht.text=Tt[0]+"π":ht.text=["",Tt[0],"","⁄","",Tt[1],"","π"].join(""),Ot&&(ht.text=$+ht.text)}}}}(ve,Ge,Ve,nt,St):function(gt,ht,yt,qt,Et){Et==="never"?Et="":gt.showexponent==="all"&&Math.abs(ht.x/gt.dtick)<1e-6&&(Et="hide"),ht.text=Ue(ht.x,gt,Et,qt)}(ve,Ge,0,nt,St),We||(ve.tickprefix&&!Vt(ve.showtickprefix)&&(Ge.text=ve.tickprefix+Ge.text),ve.ticksuffix&&!Vt(ve.showticksuffix)&&(Ge.text+=ve.ticksuffix)),ve.labelalias&&ve.labelalias.hasOwnProperty(Ge.text)){var Nt=ve.labelalias[Ge.text];typeof Nt=="string"&&(Ge.text=Nt)}if(ve.tickson==="boundaries"||ve.showdividers){var Dt=function(gt){var ht=ve.l2p(gt);return ht>=0&&ht<=ve._length?gt:null};Ge.xbnd=[Dt(Ge.x-.5),Dt(Ge.x+ve.dtick-.5)]}return Ge},Q.hoverLabelText=function(ve,_e,Ve){Ve&&(ve=d.extendFlat({},ve,{hoverformat:Ve}));var We=Array.isArray(_e)?_e[0]:_e,Ze=Array.isArray(_e)?_e[1]:void 0;if(Ze!==void 0&&Ze!==We)return Q.hoverLabelText(ve,We,Ve)+" - "+Q.hoverLabelText(ve,Ze,Ve);var Ge=ve.type==="log"&&We<=0,Ke=Q.tickText(ve,ve.c2l(Ge?-We:We),"hover").text;return Ge?We===0?"0":$+Ke:Ke};var Re=["f","p","n","μ","m","","k","M","G","T"];function Ie(ve){return ve==="SI"||ve==="B"}function Be(ve){return ve>14||ve<-15}function Ue(ve,_e,Ve,We){var Ze=ve<0,Ge=_e._tickround,Ke=Ve||_e.exponentformat||"B",nt=_e._tickexponent,st=Q.getTickFormat(_e),mt=_e.separatethousands;if(We){var tt={exponentformat:Ke,minexponent:_e.minexponent,dtick:_e.showexponent==="none"?_e.dtick:f(ve)&&Math.abs(ve)||1,range:_e.showexponent==="none"?_e.range.map(_e.r2d):[0,ve||1]};Ee(tt),Ge=(Number(tt._tickround)||0)+4,nt=tt._tickexponent,_e.hoverformat&&(st=_e.hoverformat)}if(st)return _e._numFormat(st)(ve).replace(/-/g,$);var Ft,Vt=Math.pow(10,-Ge)/2;if(Ke==="none"&&(nt=0),(ve=Math.abs(ve))"+Ft+"":Ke==="B"&&nt===9?ve+="B":Ie(Ke)&&(ve+=Re[nt/3+5])),Ze?$+ve:ve}function qe(ve,_e){if(ve){var Ve=Object.keys(q).reduce(function(We,Ze){return _e.indexOf(Ze)!==-1&&q[Ze].forEach(function(Ge){We[Ge]=1}),We},{});Object.keys(ve).forEach(function(We){Ve[We]||(We.length===1?ve[We]=0:delete ve[We])})}}function Ye(ve,_e){for(var Ve=[],We={},Ze=0;Ze<_e.length;Ze++){var Ge=_e[Ze];We[Ge.text2]?We[Ge.text2].push(Ge.x):We[Ge.text2]=[Ge.x]}for(var Ke in We)Ve.push(De(ve,d.interp(We[Ke],.5),Ke));return Ve}function at(ve){return ve.periodX!==void 0?ve.periodX:ve.x}function lt(ve){return[ve.text,ve.x,ve.axInfo,ve.font,ve.fontSize,ve.fontColor].join("_")}function ct(ve){var _e=ve.title.font.size,Ve=(ve.title.text.match(p.BR_TAG_ALL)||[]).length;return ve.title.hasOwnProperty("standoff")?Ve?_e*(te+Ve*ee):_e*te:Ve?_e*(Ve+1)*ee:_e}function bt(ve,_e){var Ve=ve.l2p(_e);return Ve>1&&Ve=Ze.min&&ve=0,ht=tt(Vt,St[1])<=0;return(Nt||gt)&&(Dt||ht)}if(ve.tickformatstops&&ve.tickformatstops.length>0)switch(ve.type){case"date":case"linear":for(_e=0;_e=Ke(Ze)))){Ve=We;break}break;case"log":for(_e=0;_e=0&&Ze.unshift(Ze.splice(mt,1).shift())}});var Ke={false:{left:0,right:0}};return d.syncOrAsync(Ze.map(function(nt){return function(){if(nt){var st=Q.getFromId(ve,nt);Ve||(Ve={}),Ve.axShifts=Ke,Ve.overlayingShiftedAx=Ge;var mt=Q.drawOne(ve,st,Ve);return st._shiftPusher&&wt(st,st._fullDepth||0,Ke,!0),st._r=st.range.slice(),st._rl=d.simpleMap(st._r,st.r2l),mt}}}))},Q.drawOne=function(ve,_e,Ve){var We,Ze,Ge,Ke=(Ve=Ve||{}).axShifts||{},nt=Ve.overlayingShiftedAx||[];_e.setScale();var st=ve._fullLayout,mt=_e._id,tt=mt.charAt(0),Ft=Q.counterLetter(mt),Vt=st._plots[_e._mainSubplot];if(Vt){if(_e._shiftPusher=_e.autoshift||nt.indexOf(_e._id)!==-1||nt.indexOf(_e.overlaying)!==-1,_e._shiftPusher&_e.anchor==="free"){var St=_e.linewidth/2||0;_e.ticks==="inside"&&(St+=_e.ticklen),wt(_e,St,Ke,!0),wt(_e,_e.shift||0,Ke,!1)}Ve.skipTitle===!0&&_e._shift!==void 0||(_e._shift=function(An,on){return An.autoshift?on[An.overlaying][An.side]:An.shift||0}(_e,Ke));var Nt=Vt[tt+"axislayer"],Dt=_e._mainLinePosition,gt=Dt+=_e._shift,ht=_e._mainMirrorPosition,yt=_e._vals=Q.calcTicks(_e),qt=[_e.mirror,gt,ht].join("_");for(We=0;We0?An.bottom-jn:0,Un))));var Lr=0,xr=0;if(_e._shiftPusher&&(Lr=Math.max(Un,An.height>0?Ln==="l"?jn-An.left:An.right-jn:0),_e.title.text!==st._dfltTitle[tt]&&(xr=(_e._titleStandoff||0)+(_e._titleScoot||0),Ln==="l"&&(xr+=ct(_e))),_e._fullDepth=Math.max(Lr,xr)),_e.automargin){on={x:0,y:0,r:0,l:0,t:0,b:0};var Mr=[0,1],Na=typeof _e._shift=="number"?_e._shift:0;if(tt==="x"){if(Ln==="b"?on[Ln]=_e._depth:(on[Ln]=_e._depth=Math.max(An.width>0?jn-An.top:0,Un),Mr.reverse()),An.width>0){var wa=An.right-(_e._offset+_e._length);wa>0&&(on.xr=1,on.r=wa);var sa=_e._offset-An.left;sa>0&&(on.xl=0,on.l=sa)}}else if(Ln==="l"?(_e._depth=Math.max(An.height>0?jn-An.left:0,Un),on[Ln]=_e._depth-Na):(_e._depth=Math.max(An.height>0?An.right-jn:0,Un),on[Ln]=_e._depth+Na,Mr.reverse()),An.height>0){var kn=An.bottom-(_e._offset+_e._length);kn>0&&(on.yb=0,on.b=kn);var Dr=_e._offset-An.top;Dr>0&&(on.yt=1,on.t=Dr)}on[Ft]=_e.anchor==="free"?_e.position:_e._anchorAxis.domain[Mr[0]],_e.title.text!==st._dfltTitle[tt]&&(on[Ln]+=ct(_e)+(_e.title.standoff||0)),_e.mirror&&_e.anchor!=="free"&&(($n={x:0,y:0,r:0,l:0,t:0,b:0})[Bn]=_e.linewidth,_e.mirror&&_e.mirror!==!0&&($n[Bn]+=Un),_e.mirror===!0||_e.mirror==="ticks"?$n[Ft]=_e._anchorAxis.domain[Mr[1]]:_e.mirror!=="all"&&_e.mirror!=="allticks"||($n[Ft]=[_e._counterDomainMin,_e._counterDomainMax][Mr[1]]))}kr&&(Pr=u.getComponentMethod("rangeslider","autoMarginOpts")(ve,_e)),typeof _e.automargin=="string"&&(qe(on,_e.automargin),qe($n,_e.automargin)),s.autoMargin(ve,Ne(_e),on),s.autoMargin(ve,Qe(_e),$n),s.autoMargin(ve,it(_e),Pr)}),d.syncOrAsync(Ar)}}function la(An){var on=mt+(An||"tick");return Et[on]||(Et[on]=function($n,Pr){var Ln,Bn,jn,Un;return $n._selections[Pr].size()?(Ln=1/0,Bn=-1/0,jn=1/0,Un=-1/0,$n._selections[Pr].each(function(){var Lr=ze(this),xr=v.bBox(Lr.node().parentNode);Ln=Math.min(Ln,xr.top),Bn=Math.max(Bn,xr.bottom),jn=Math.min(jn,xr.left),Un=Math.max(Un,xr.right)})):(Ln=0,Bn=0,jn=0,Un=0),{top:Ln,bottom:Bn,left:jn,right:Un,height:Bn-Ln,width:Un-jn}}(_e,on)),Et[on]}},Q.getTickSigns=function(ve,_e){var Ve=ve._id.charAt(0),We={x:"top",y:"right"}[Ve],Ze=ve.side===We?1:-1,Ge=[-1,1,Ze,-Ze];return(_e?(ve.minor||{}).ticks:ve.ticks)!=="inside"==(Ve==="x")&&(Ge=Ge.map(function(Ke){return-Ke})),ve.side&&Ge.push({l:-1,t:-1,r:1,b:1}[ve.side.charAt(0)]),Ge},Q.makeTransTickFn=function(ve){return ve._id.charAt(0)==="x"?function(_e){return h(ve._offset+ve.l2p(_e.x),0)}:function(_e){return h(0,ve._offset+ve.l2p(_e.x))}},Q.makeTransTickLabelFn=function(ve){var _e=function(Ze){var Ge=Ze.ticklabelposition||"",Ke=function(ht){return Ge.indexOf(ht)!==-1},nt=Ke("top"),st=Ke("left"),mt=Ke("right"),tt=Ke("bottom"),Ft=Ke("inside"),Vt=tt||st||nt||mt;if(!Vt&&!Ft)return[0,0];var St=Ze.side,Nt=Vt?(Ze.tickwidth||0)/2:0,Dt=3,gt=Ze.tickfont?Ze.tickfont.size:12;return(tt||nt)&&(Nt+=gt*te,Dt+=(Ze.linewidth||0)/2),(st||mt)&&(Nt+=(Ze.linewidth||0)/2,Dt+=3),Ft&&St==="top"&&(Dt-=gt*(1-te)),(st||nt)&&(Nt=-Nt),St!=="bottom"&&St!=="right"||(Dt=-Dt),[Vt?Nt:0,Ft?Dt:0]}(ve),Ve=_e[0],We=_e[1];return ve._id.charAt(0)==="x"?function(Ze){return h(Ve+ve._offset+ve.l2p(at(Ze)),We)}:function(Ze){return h(We,Ve+ve._offset+ve.l2p(at(Ze)))}},Q.makeTickPath=function(ve,_e,Ve,We){We||(We={});var Ze=We.minor;if(Ze&&!ve.minor)return"";var Ge=We.len!==void 0?We.len:Ze?ve.minor.ticklen:ve.ticklen,Ke=ve._id.charAt(0),nt=(ve.linewidth||1)/2;return Ke==="x"?"M0,"+(_e+nt*Ve)+"v"+Ge*Ve:"M"+(_e+nt*Ve)+",0h"+Ge*Ve},Q.makeLabelFns=function(ve,_e,Ve){var We=ve.ticklabelposition||"",Ze=function($t){return We.indexOf($t)!==-1},Ge=Ze("top"),Ke=Ze("left"),nt=Ze("right"),st=Ze("bottom")||Ke||Ge||nt,mt=Ze("inside"),tt=We==="inside"&&ve.ticks==="inside"||!mt&&ve.ticks==="outside"&&ve.tickson!=="boundaries",Ft=0,Vt=0,St=tt?ve.ticklen:0;if(mt?St*=-1:st&&(St=0),tt&&(Ft+=St,Ve)){var Nt=d.deg2rad(Ve);Ft=St*Math.cos(Nt)+1,Vt=St*Math.sin(Nt)}ve.showticklabels&&(tt||ve.showline)&&(Ft+=.2*ve.tickfont.size);var Dt,gt,ht,yt,qt,Et={labelStandoff:Ft+=(ve.linewidth||1)/2*(mt?-1:1),labelShift:Vt},jt=0,Tt=ve.side,Ot=ve._id.charAt(0),At=ve.tickangle;if(Ot==="x")yt=(qt=!mt&&Tt==="bottom"||mt&&Tt==="top")?1:-1,mt&&(yt*=-1),Dt=Vt*yt,gt=_e+Ft*yt,ht=qt?1:-.2,Math.abs(At)===90&&(mt?ht+=V:ht=At===-90&&Tt==="bottom"?te:At===90&&Tt==="top"?V:.5,jt=V/2*(At/90)),Et.xFn=function($t){return $t.dx+Dt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*ht},Et.anchorFn=function($t,Yt){if(st){if(Ke)return"end";if(nt)return"start"}return f(Yt)&&Yt!==0&&Yt!==180?Yt*yt<0!==mt?"end":"start":"middle"},Et.heightFn=function($t,Yt,Xt){return Yt<-60||Yt>60?-.5*Xt:ve.side==="top"!==mt?-Xt:0};else if(Ot==="y"){if(yt=(qt=!mt&&Tt==="left"||mt&&Tt==="right")?1:-1,mt&&(yt*=-1),Dt=Ft,gt=Vt*yt,ht=0,mt||Math.abs(At)!==90||(ht=At===-90&&Tt==="left"||At===90&&Tt==="right"?te:.5),mt){var Lt=f(At)?+At:0;if(Lt!==0){var Rt=d.deg2rad(Lt);jt=Math.abs(Math.sin(Rt))*te*yt,ht=0}}Et.xFn=function($t){return $t.dx+_e-(Dt+$t.fontSize*ht)*yt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*V},Et.anchorFn=function($t,Yt){return f(Yt)&&Math.abs(Yt)===90?"middle":qt?"end":"start"},Et.heightFn=function($t,Yt,Xt){return ve.side==="right"&&(Yt*=-1),Yt<-30?-Xt:Yt<30?-.5*Xt:0}}return Et},Q.drawTicks=function(ve,_e,Ve){Ve=Ve||{};var We=_e._id+"tick",Ze=[].concat(_e.minor&&_e.minor.ticks?Ve.vals.filter(function(Ke){return Ke.minor&&!Ke.noTick}):[]).concat(_e.ticks?Ve.vals.filter(function(Ke){return!Ke.minor&&!Ke.noTick}):[]),Ge=Ve.layer.selectAll("path."+We).data(Ze,lt);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("ticks",1).classed("crisp",Ve.crisp!==!1).each(function(Ke){return y.stroke(l.select(this),Ke.minor?_e.minor.tickcolor:_e.tickcolor)}).style("stroke-width",function(Ke){return v.crispRound(ve,Ke.minor?_e.minor.tickwidth:_e.tickwidth,1)+"px"}).attr("d",Ve.path).style("display",null),zt(_e,[G]),Ge.attr("transform",Ve.transFn)},Q.drawGrid=function(ve,_e,Ve){if(Ve=Ve||{},_e.tickmode!=="sync"){var We=_e._id+"grid",Ze=_e.minor&&_e.minor.showgrid,Ge=Ze?Ve.vals.filter(function(ht){return ht.minor}):[],Ke=_e.showgrid?Ve.vals.filter(function(ht){return!ht.minor}):[],nt=Ve.counterAxis;if(nt&&Q.shouldShowZeroLine(ve,_e,nt))for(var st=_e.tickmode==="array",mt=0;mt=0;Nt--){var Dt=Nt?Vt:St;if(Dt){var gt=Dt.selectAll("path."+We).data(Nt?Ke:Ge,lt);gt.exit().remove(),gt.enter().append("path").classed(We,1).classed("crisp",Ve.crisp!==!1),gt.attr("transform",Ve.transFn).attr("d",Ve.path).each(function(ht){return y.stroke(l.select(this),ht.minor?_e.minor.gridcolor:_e.gridcolor||"#ddd")}).style("stroke-dasharray",function(ht){return v.dashStyle(ht.minor?_e.minor.griddash:_e.griddash,ht.minor?_e.minor.gridwidth:_e.gridwidth)}).style("stroke-width",function(ht){return(ht.minor?Ft:_e._gw)+"px"}).style("display",null),typeof Ve.path=="function"&>.attr("d",Ve.path)}}zt(_e,[E,W])}},Q.drawZeroLine=function(ve,_e,Ve){Ve=Ve||Ve;var We=_e._id+"zl",Ze=Q.shouldShowZeroLine(ve,_e,Ve.counterAxis),Ge=Ve.layer.selectAll("path."+We).data(Ze?[{x:0,id:_e._id}]:[]);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("zl",1).classed("crisp",Ve.crisp!==!1).each(function(){Ve.layer.selectAll("path").sort(function(Ke,nt){return X(Ke.id,nt.id)})}),Ge.attr("transform",Ve.transFn).attr("d",Ve.path).call(y.stroke,_e.zerolinecolor||y.defaultLine).style("stroke-width",v.crispRound(ve,_e.zerolinewidth,_e._gw||1)+"px").style("display",null),zt(_e,[N])},Q.drawLabels=function(ve,_e,Ve){Ve=Ve||{};var We=ve._fullLayout,Ze=_e._id,Ge=Ze.charAt(0),Ke=Ve.cls||Ze+"tick",nt=Ve.vals.filter(function(yt){return yt.text}),st=Ve.labelFns,mt=Ve.secondary?0:_e.tickangle,tt=(_e._prevTickAngles||{})[Ke],Ft=Ve.layer.selectAll("g."+Ke).data(_e.showticklabels?nt:[],lt),Vt=[];function St(yt,qt){yt.each(function(Et){var jt=l.select(this),Tt=jt.select(".text-math-group"),Ot=st.anchorFn(Et,qt),At=Ve.transFn.call(jt.node(),Et)+(f(qt)&&+qt!=0?" rotate("+qt+","+st.xFn(Et)+","+(st.yFn(Et)-Et.fontSize/2)+")":""),Lt=p.lineCount(jt),Rt=ee*Et.fontSize,$t=st.heightFn(Et,f(qt)?+qt:0,(Lt-1)*Rt);if($t&&(At+=h(0,$t)),Tt.empty()){var Yt=jt.select("text");Yt.attr({transform:At,"text-anchor":Ot}),Yt.style("opacity",1),_e._adjustTickLabelsOverflow&&_e._adjustTickLabelsOverflow()}else{var Xt=v.bBox(Tt.node()).width*{end:-.5,start:.5}[Ot];Tt.attr("transform",At+h(Xt,0))}})}Ft.enter().append("g").classed(Ke,1).append("text").attr("text-anchor","middle").each(function(yt){var qt=l.select(this),Et=ve._promises.length;qt.call(p.positionText,st.xFn(yt),st.yFn(yt)).call(v.font,yt.font,yt.fontSize,yt.fontColor).text(yt.text).call(p.convertToTspans,ve),ve._promises[Et]?Vt.push(ve._promises.pop().then(function(){St(qt,mt)})):St(qt,mt)}),zt(_e,[L]),Ft.exit().remove(),Ve.repositionOnUpdate&&Ft.each(function(yt){l.select(this).select("text").call(p.positionText,st.xFn(yt),st.yFn(yt))}),_e._adjustTickLabelsOverflow=function(){var yt=_e.ticklabeloverflow;if(yt&&yt!=="allow"){var qt=yt.indexOf("hide")!==-1,Et=_e._id.charAt(0)==="x",jt=0,Tt=Et?ve._fullLayout.width:ve._fullLayout.height;if(yt.indexOf("domain")!==-1){var Ot=d.simpleMap(_e.range,_e.r2l);jt=_e.l2p(Ot[0])+_e._offset,Tt=_e.l2p(Ot[1])+_e._offset}var At=Math.min(jt,Tt),Lt=Math.max(jt,Tt),Rt=_e.side,$t=1/0,Yt=-1/0;for(var Xt in Ft.each(function(tn){var cn=l.select(this);if(cn.select(".text-math-group").empty()){var ln=v.bBox(cn.node()),an=0;Et?(ln.right>Lt||ln.leftLt||ln.top+(_e.tickangle?0:tn.fontSize/4)_e["_visibleLabelMin_"+Ot._id]?Wt.style("display","none"):Lt.K!=="tick"||At||Wt.style("display",null)})})})})},St(Ft,tt+1?tt:mt);var Nt=null;_e._selections&&(_e._selections[Ke]=Ft);var Dt=[function(){return Vt.length&&Promise.all(Vt)}];_e.automargin&&We._redrawFromAutoMarginCount&&tt===90?(Nt=90,Dt.push(function(){St(Ft,tt)})):Dt.push(function(){if(St(Ft,mt),nt.length&&Ge==="x"&&!f(mt)&&(_e.type!=="log"||String(_e.dtick).charAt(0)!=="D")){Nt=0;var yt,qt=0,Et=[];if(Ft.each(function(cn){qt=Math.max(qt,cn.fontSize);var ln=_e.l2p(cn.x),an=ze(this),sn=v.bBox(an.node());Et.push({top:0,bottom:10,height:10,left:ln-sn.width/2,right:ln+sn.width/2+2,width:sn.width+2})}),_e.tickson!=="boundaries"&&!_e.showdividers||Ve.secondary){var jt=nt.length,Tt=Math.abs((nt[jt-1].x-nt[0].x)*_e._m)/(jt-1),Ot=_e.ticklabelposition||"",At=function(cn){return Ot.indexOf(cn)!==-1},Lt=At("top"),Rt=At("left"),$t=At("right"),Yt=At("bottom")||Rt||Lt||$t?(_e.tickwidth||0)+6:0,Xt=Tt<2.5*qt||_e.type==="multicategory"||_e._name==="realaxis";for(yt=0;yt1)for(nt=1;nt2*R}(x,g))return"date";var M=b.autotypenumbers!=="strict";return function(S,C){for(var P=S.length,D=y(P),O=0,R=0,F={},A=0;A2*O}(x,M)?"category":function(S,C){for(var P=S.length,D=0;D=2){var F,A,z="";if(R.length===2){for(F=0;F<2;F++)if(A=S(R[F])){z=w;break}}var B=O("pattern",z);if(B===w)for(F=0;F<2;F++)(A=S(R[F]))&&(P.bounds[F]=R[F]=A-1);if(B)for(F=0;F<2;F++)switch(A=R[F],B){case w:if(!l(A)||(A=+A)!==Math.floor(A)||A<0||A>=7)return void(P.enabled=!1);P.bounds[F]=R[F]=A;break;case k:if(!l(A)||(A=+A)<0||A>24)return void(P.enabled=!1);P.bounds[F]=R[F]=A}if(D.autorange===!1){var $=D.range;if($[0]<$[1]){if(R[0]<$[0]&&R[1]>$[1])return void(P.enabled=!1)}else if(R[0]>$[0]&&R[1]<$[1])return void(P.enabled=!1)}}else{var j=O("values");if(!j||!j.length)return void(P.enabled=!1);O("dvalue")}}}o.exports=function(C,P,D,O,R){var F,A=O.letter,z=O.font||{},B=O.splomStash||{},$=D("visible",!O.visibleDflt),j=P._template||{},N=P.type||j.type||"-";N==="date"&&(f.getComponentMethod("calendars","handleDefaults")(C,P,"calendar",O.calendar),O.noTicklabelmode||(F=D("ticklabelmode")));var E="";O.noTicklabelposition&&N!=="multicategory"||(E=s.coerce(C,P,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:F==="period"?["outside","inside"]:A==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),O.noTicklabeloverflow||D("ticklabeloverflow",E.indexOf("inside")!==-1?"hide past domain":N==="category"||N==="multicategory"?"allow":"hide past div"),_(P,R),x(C,P,D,O),g(C,P,D,O),N==="category"||O.noHover||D("hoverformat");var W=D("color"),G=W!==h.color.dflt?W:z.color,L=B.label||R._dfltTitle[A];if(v(C,P,D,N,O),!$)return P;D("title.text",L),s.coerceFont(D,"title.font",{family:z.family,size:s.bigFont(z.size),color:G}),p(C,P,D,N);var q=O.hasMinor;if(q&&(u.newContainer(P,"minor"),p(C,P,D,N,{isMinor:!0})),y(C,P,D,N,O),m(C,P,D,O),q){var H=O.isMinor;O.isMinor=!0,m(C,P,D,O),O.isMinor=H}b(C,P,D,{dfltColor:W,bgColor:O.bgColor,showGrid:O.showGrid,hasMinor:q,attributes:h}),!q||P.minor.ticks||P.minor.showgrid||delete P.minor,(P.showline||P.ticks)&&D("mirror");var V,te=N==="multicategory";if(O.noTickson||N!=="category"&&!te||!P.ticks&&!P.showgrid||(te&&(V="boundaries"),D("tickson",V)==="boundaries"&&delete P.ticklabelposition),te&&D("showdividers")&&(D("dividercolor"),D("dividerwidth")),N==="date")if(d(C,P,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:T}),P.rangebreaks.length){for(var ee=0;eep?1:-1:+(u.substr(1)||1)-+(d.substr(1)||1)},a.ref2id=function(u){return!!/^[xyz]/.test(u)&&u.split(" ")[0]},a.isLinked=function(u,d){return s(d,u._axisMatchGroups)||s(d,u._axisConstraintGroups)}},15258:function(o){o.exports=function(a,n,l,f){if(n.type==="category"){var s,u=a.categoryarray,d=Array.isArray(u)&&u.length>0;d&&(s="array");var h,p=l("categoryorder",s);p==="array"&&(h=l("categoryarray")),d||p!=="array"||(p=n.categoryorder="trace"),p==="trace"?n._initialCategories=[]:p==="array"?n._initialCategories=h.slice():(h=function(m,y){var v,g,b,x=y.dataAttr||m._id.charAt(0),_={};if(y.axData)v=y.axData;else for(v=[],g=0;gS?C.substr(S):P.substr(M))+D:C+P+k*T:D}function _(k,T){for(var M=T._size,S=M.h/M.w,C={},P=Object.keys(k),D=0;Dp*$)||W){for(M=0;MY&&ieU&&(U=ie);R/=(U-ee)/(2*Q),ee=P.l2r(ee),U=P.l2r(U),P.range=P._input.range=H=0?Math.min(ie,.9):1/(1/Math.max(ie,-.3)+3.222))}function H(ie,le,se,pe,Te){return ie.append("path").attr("class","zoombox").style({fill:le>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",p(se,pe)).attr("d",Te+"Z")}function V(ie,le,se){return ie.append("path").attr("class","zoombox-corners").style({fill:y.background,stroke:y.defaultLine,"stroke-width":1,opacity:0}).attr("transform",p(le,se)).attr("d","M0,0Z")}function te(ie,le,se,pe,Te,Se){ie.attr("d",pe+"M"+se.l+","+se.t+"v"+se.h+"h"+se.w+"v-"+se.h+"h-"+se.w+"Z"),ee(ie,le,Te,Se)}function ee(ie,le,se,pe){se||(ie.transition().style("fill",pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),le.transition().style("opacity",1).duration(200))}function U(ie){l.select(ie).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Q(ie){j&&ie.data&&ie._context.showTips&&(f.notifier(f._(ie,"Double-click to zoom back out"),"long"),j=!1)}function Y(ie){var le=Math.floor(Math.min(ie.b-ie.t,ie.r-ie.l,$)/2);return"M"+(ie.l-3.5)+","+(ie.t-.5+le)+"h3v"+-le+"h"+le+"v-3h-"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.t-.5+le)+"h-3v"+-le+"h"+-le+"v-3h"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.b+.5-le)+"h-3v"+le+"h"+-le+"v3h"+(le+3)+"ZM"+(ie.l-3.5)+","+(ie.b+.5-le)+"h3v"+le+"h"+le+"v3h-"+(le+3)+"Z"}function Z(ie,le,se,pe,Te){for(var Se,Oe,Me,ce,ye=!1,J={},ne={},de=(Te||{}).xaHash,xe=(Te||{}).yaHash,ue=0;ue=0)At._fullLayout._deactivateShape(At);else{var Lt=At._fullLayout.clickmode;if(U(At),Tt!==2||Ne||gt(),ze)Lt.indexOf("select")>-1&&F(Ot,At,de,xe,le.id,We),Lt.indexOf("event")>-1&&g.click(At,Ot,le.id);else if(Tt===1&&Ne){var Rt=Oe?ye:ce,$t=Oe==="s"||Me==="w"?0:1,Yt=Rt._name+".range["+$t+"]",Xt=function(tn,cn){var ln,an=tn.range[cn],sn=Math.abs(an-tn.range[1-cn]);return tn.type==="date"?an:tn.type==="log"?(ln=Math.ceil(Math.max(0,-Math.log(sn)/Math.LN10))+3,s("."+ln+"g")(Math.pow(10,an))):(ln=Math.floor(Math.log(Math.abs(an))/Math.LN10)-Math.floor(Math.log(sn)/Math.LN10)+4,s("."+String(ln)+"g")(an))}(Rt,$t),Bt="left",Wt="middle";if(Rt.fixedrange)return;Oe?(Wt=Oe==="n"?"top":"bottom",Rt.side==="right"&&(Bt="right")):Me==="e"&&(Bt="right"),At._context.showAxisRangeEntryBoxes&&l.select(kt).call(m.makeEditable,{gd:At,immediate:!0,background:At._fullLayout.paper_bgcolor,text:String(Xt),fill:Rt.tickfont?Rt.tickfont.color:"#444",horizontalAlign:Bt,verticalAlign:Wt}).on("edit",function(tn){var cn=Rt.d2r(tn);cn!==void 0&&h.call("_guiRelayout",At,Yt,cn)})}}}function Ke(Tt,Ot){if(ie._transitioningWithDuration)return!1;var At=Math.max(0,Math.min(be,lt*Tt+Je)),Lt=Math.max(0,Math.min(we,ct*Ot+ut)),Rt=Math.abs(At-Je),$t=Math.abs(Lt-ut);function Yt(){wt="",pt.r=pt.l,pt.t=pt.b,_e.attr("d","M0,0Z")}if(pt.l=Math.min(Je,At),pt.r=Math.max(Je,At),pt.t=Math.min(ut,Lt),pt.b=Math.max(ut,Lt),ke.isSubplotConstrained)Rt>$||$t>$?(wt="xy",Rt/be>$t/we?($t=Rt*we/be,ut>Lt?pt.t=ut-$t:pt.b=ut+$t):(Rt=$t*be/we,Je>At?pt.l=Je-Rt:pt.r=Je+Rt),_e.attr("d",Y(pt))):Yt();else if(Ae.isSubplotConstrained)if(Rt>$||$t>$){wt="xy";var Xt=Math.min(pt.l/be,(we-pt.b)/we),Bt=Math.max(pt.r/be,(we-pt.t)/we);pt.l=Xt*be,pt.r=Bt*be,pt.b=(1-Xt)*we,pt.t=(1-Bt)*we,_e.attr("d",Y(pt))}else Yt();else!De||$t0){var Wt;if(Ae.isSubplotConstrained||!Ee&&De.length===1){for(Wt=0;Wt1&&(Lt.maxallowed!==void 0&&Ie===(Lt.range[0]1&&(Rt.maxallowed!==void 0&&Be===(Rt.range[0]P[1]-.000244140625&&(u.domain=m),f.noneOrAll(s.domain,u.domain,m),u.tickmode==="sync"&&(u.tickmode="auto")}return d("layer"),u}},89426:function(o,a,n){var l=n(59652);o.exports=function(f,s,u,d,h){h||(h={});var p=h.tickSuffixDflt,m=l(f);u("tickprefix")&&u("showtickprefix",m),u("ticksuffix",p)&&u("showticksuffix",m)}},23608:function(o,a,n){var l=n(23074);o.exports=function(f,s,u,d){var h=s._template||{},p=s.type||h.type||"-";u("minallowed"),u("maxallowed");var m,y=u("range"),v=s.getAutorangeDflt(y,d),g=u("autorange",v);!y||(y[0]!==null||y[1]!==null)&&(y[0]!==null&&y[1]!==null||g!=="reversed"&&g!==!0)&&(y[0]===null||g!=="min"&&g!=="max reversed")&&(y[1]===null||g!=="max"&&g!=="min reversed")||(y=void 0,delete s.range,s.autorange=!0,m=!0),m||(g=u("autorange",v=s.getAutorangeDflt(y,d))),g&&(l(u,g,y),p!=="linear"&&p!=="-"||u("rangemode")),s.cleanRange()}},42449:function(o,a,n){var l=n(18783).FROM_BL;o.exports=function(f,s,u){u===void 0&&(u=l[f.constraintoward||"center"]);var d=[f.r2l(f.range[0]),f.r2l(f.range[1])],h=d[0]+(d[1]-d[0])*u;f.range=f._input.range=[f.l2r(h+(d[0]-h)*s),f.l2r(h+(d[1]-h)*s)],f.setScale()}},21994:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(71828),u=s.numberFormat,d=n(92770),h=s.cleanNumber,p=s.ms2DateTime,m=s.dateTime2ms,y=s.ensureNumber,v=s.isArrayOrTypedArray,g=n(50606),b=g.FP_SAFE,x=g.BADNUM,_=g.LOG_CLIP,w=g.ONEWEEK,k=g.ONEDAY,T=g.ONEHOUR,M=g.ONEMIN,S=g.ONESEC,C=n(41675),P=n(85555),D=P.HOUR_PATTERN,O=P.WEEKDAY_PATTERN;function R(A){return Math.pow(10,A)}function F(A){return A!=null}o.exports=function(A,z){z=z||{};var B=A._id||"x",$=B.charAt(0);function j(Z,X){if(Z>0)return Math.log(Z)/Math.LN10;if(Z<=0&&X&&A.range&&A.range.length===2){var re=A.range[0],ie=A.range[1];return .5*(re+ie-2*_*Math.abs(re-ie))}return x}function N(Z,X,re,ie){if((ie||{}).msUTC&&d(Z))return+Z;var le=m(Z,re||A.calendar);if(le===x){if(!d(Z))return x;Z=+Z;var se=Math.floor(10*s.mod(Z+.05,1)),pe=Math.round(Z-se/10);le=m(new Date(pe))+se/10}return le}function E(Z,X,re){return p(Z,X,re||A.calendar)}function W(Z){return A._categories[Math.round(Z)]}function G(Z){if(F(Z)){if(A._categoriesMap===void 0&&(A._categoriesMap={}),A._categoriesMap[Z]!==void 0)return A._categoriesMap[Z];A._categories.push(typeof Z=="number"?String(Z):Z);var X=A._categories.length-1;return A._categoriesMap[Z]=X,X}return x}function L(Z){if(A._categoriesMap)return A._categoriesMap[Z]}function q(Z){var X=L(Z);return X!==void 0?X:d(Z)?+Z:void 0}function H(Z){return d(Z)?+Z:L(Z)}function V(Z,X,re){return l.round(re+X*Z,2)}function te(Z,X,re){return(Z-re)/X}var ee=function(Z){return d(Z)?V(Z,A._m,A._b):x},U=function(Z){return te(Z,A._m,A._b)};if(A.rangebreaks){var Q=$==="y";ee=function(Z){if(!d(Z))return x;var X=A._rangebreaks.length;if(!X)return V(Z,A._m,A._b);var re=Q;A.range[0]>A.range[1]&&(re=!re);for(var ie=re?-1:1,le=ie*Z,se=0,pe=0;peSe)){se=le<(Te+Se)/2?pe:pe+1;break}se=pe+1}var Oe=A._B[se]||0;return isFinite(Oe)?V(Z,A._m2,Oe):0},U=function(Z){var X=A._rangebreaks.length;if(!X)return te(Z,A._m,A._b);for(var re=0,ie=0;ieA._rangebreaks[ie].pmax&&(re=ie+1);return te(Z,A._m2,A._B[re])}}A.c2l=A.type==="log"?j:y,A.l2c=A.type==="log"?R:y,A.l2p=ee,A.p2l=U,A.c2p=A.type==="log"?function(Z,X){return ee(j(Z,X))}:ee,A.p2c=A.type==="log"?function(Z){return R(U(Z))}:U,["linear","-"].indexOf(A.type)!==-1?(A.d2r=A.r2d=A.d2c=A.r2c=A.d2l=A.r2l=h,A.c2d=A.c2r=A.l2d=A.l2r=y,A.d2p=A.r2p=function(Z){return A.l2p(h(Z))},A.p2d=A.p2r=U,A.cleanPos=y):A.type==="log"?(A.d2r=A.d2l=function(Z,X){return j(h(Z),X)},A.r2d=A.r2c=function(Z){return R(h(Z))},A.d2c=A.r2l=h,A.c2d=A.l2r=y,A.c2r=j,A.l2d=R,A.d2p=function(Z,X){return A.l2p(A.d2r(Z,X))},A.p2d=function(Z){return R(U(Z))},A.r2p=function(Z){return A.l2p(h(Z))},A.p2r=U,A.cleanPos=y):A.type==="date"?(A.d2r=A.r2d=s.identity,A.d2c=A.r2c=A.d2l=A.r2l=N,A.c2d=A.c2r=A.l2d=A.l2r=E,A.d2p=A.r2p=function(Z,X,re){return A.l2p(N(Z,0,re))},A.p2d=A.p2r=function(Z,X,re){return E(U(Z),X,re)},A.cleanPos=function(Z){return s.cleanDate(Z,x,A.calendar)}):A.type==="category"?(A.d2c=A.d2l=G,A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=H(Z);return X!==void 0?X:A.fraction2r(.5)},A.l2r=A.c2r=y,A.r2l=H,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return typeof Z=="string"&&Z!==""?Z:y(Z)}):A.type==="multicategory"&&(A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=q(Z);return X!==void 0?X:A.fraction2r(.5)},A.r2c_just_indices=L,A.l2r=A.c2r=y,A.r2l=q,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return Array.isArray(Z)||typeof Z=="string"&&Z!==""?Z:y(Z)},A.setupMultiCategory=function(Z){var X,re,ie=A._traceIndices,le=A._matchGroup;if(le&&A._categories.length===0){for(var se in le)if(se!==B){var pe=z[C.id2name(se)];ie=ie.concat(pe._traceIndices)}}var Te=[[0,{}],[0,{}]],Se=[];for(X=0;Xpe[1]&&(ie[se?0:1]=re)}},A.cleanRange=function(Z,X){A._cleanRange(Z,X),A.limitRange(Z)},A._cleanRange=function(Z,X){X||(X={}),Z||(Z="range");var re,ie,le=s.nestedProperty(A,Z).get();if(ie=(ie=A.type==="date"?s.dfltRange(A.calendar):$==="y"?P.DFLTRANGEY:A._name==="realaxis"?[0,1]:X.dfltRange||P.DFLTRANGEX).slice(),A.rangemode!=="tozero"&&A.rangemode!=="nonnegative"||(ie[0]=0),le&&le.length===2){var se=le[0]===null,pe=le[1]===null;for(A.type!=="date"||A.autorange||(le[0]=s.cleanDate(le[0],x,A.calendar),le[1]=s.cleanDate(le[1],x,A.calendar)),re=0;re<2;re++)if(A.type==="date"){if(!s.isDateTime(le[re],A.calendar)){A[Z]=ie;break}if(A.r2l(le[0])===A.r2l(le[1])){var Te=s.constrain(A.r2l(le[0]),s.MIN_MS+1e3,s.MAX_MS-1e3);le[0]=A.l2r(Te-1e3),le[1]=A.l2r(Te+1e3);break}}else{if(!d(le[re])){if(se||pe||!d(le[1-re])){A[Z]=ie;break}le[re]=le[1-re]*(re?10:.1)}if(le[re]<-b?le[re]=-b:le[re]>b&&(le[re]=b),le[0]===le[1]){var Se=Math.max(1,Math.abs(1e-6*le[0]));le[0]-=Se,le[1]+=Se}}}else s.nestedProperty(A,Z).set(ie)},A.setScale=function(Z){var X=z._size;if(A.overlaying){var re=C.getFromId({_fullLayout:z},A.overlaying);A.domain=re.domain}var ie=Z&&A._r?"_r":"range",le=A.calendar;A.cleanRange(ie);var se,pe,Te=A.r2l(A[ie][0],le),Se=A.r2l(A[ie][1],le),Oe=$==="y";if(Oe?(A._offset=X.t+(1-A.domain[1])*X.h,A._length=X.h*(A.domain[1]-A.domain[0]),A._m=A._length/(Te-Se),A._b=-A._m*Se):(A._offset=X.l+A.domain[0]*X.w,A._length=X.w*(A.domain[1]-A.domain[0]),A._m=A._length/(Se-Te),A._b=-A._m*Te),A._rangebreaks=[],A._lBreaks=0,A._m2=0,A._B=[],A.rangebreaks&&(A._rangebreaks=A.locateBreaks(Math.min(Te,Se),Math.max(Te,Se)),A._rangebreaks.length)){for(se=0;seSe&&(Me=!Me),Me&&A._rangebreaks.reverse();var ce=Me?-1:1;for(A._m2=ce*A._length/(Math.abs(Se-Te)-A._lBreaks),A._B.push(-A._m2*(Oe?Se:Te)),se=0;seie&&(ie+=7,leie&&(ie+=24,le=re&&le=re&&Z=Ae.min&&(geAe.max&&(Ae.max=be),we=!1)}we&&pe.push({min:ge,max:be})}};for(re=0;rem.duration?(function(){for(var D={},O=0;O rect").call(u.setTranslate,0,0).call(u.setScale,1,1),M.plot.call(u.setTranslate,S._offset,C._offset).call(u.setScale,1,1);var P=M.plot.selectAll(".scatterlayer .trace");P.selectAll(".point").call(u.setPointGroupScale,1,1),P.selectAll(".textpoint").call(u.setTextPointsScale,1,1),P.call(u.hideOutsideRangePoints,M)}function T(M,S){var C=M.plotinfo,P=C.xaxis,D=C.yaxis,O=P._length,R=D._length,F=!!M.xr1,A=!!M.yr1,z=[];if(F){var B=s.simpleMap(M.xr0,P.r2l),$=s.simpleMap(M.xr1,P.r2l),j=B[1]-B[0],N=$[1]-$[0];z[0]=(B[0]*(1-S)+S*$[0]-B[0])/(B[1]-B[0])*O,z[2]=O*(1-S+S*N/j),P.range[0]=P.l2r(B[0]*(1-S)+S*$[0]),P.range[1]=P.l2r(B[1]*(1-S)+S*$[1])}else z[0]=0,z[2]=O;if(A){var E=s.simpleMap(M.yr0,D.r2l),W=s.simpleMap(M.yr1,D.r2l),G=E[1]-E[0],L=W[1]-W[0];z[1]=(E[1]*(1-S)+S*W[1]-E[1])/(E[0]-E[1])*R,z[3]=R*(1-S+S*L/G),D.range[0]=P.l2r(E[0]*(1-S)+S*W[0]),D.range[1]=D.l2r(E[1]*(1-S)+S*W[1])}else z[1]=0,z[3]=R;d.drawOne(h,P,{skipTitle:!0}),d.drawOne(h,D,{skipTitle:!0}),d.redrawComponents(h,[P._id,D._id]);var q=F?O/z[2]:1,H=A?R/z[3]:1,V=F?z[0]:0,te=A?z[1]:0,ee=F?z[0]/z[2]*O:0,U=A?z[1]/z[3]*R:0,Q=P._offset-ee,Y=D._offset-U;C.clipRect.call(u.setTranslate,V,te).call(u.setScale,1/q,1/H),C.plot.call(u.setTranslate,Q,Y).call(u.setScale,q,H),u.setPointGroupScale(C.zoomScalePts,1/q,1/H),u.setTextPointsScale(C.zoomScaleTxt,1/q,1/H)}d.redrawComponents(h)}},951:function(o,a,n){var l=n(73972).traceIs,f=n(4322);function s(d){return{v:"x",h:"y"}[d.orientation||"v"]}function u(d,h){var p=s(d),m=l(d,"box-violin"),y=l(d._fullInput||{},"candlestick");return m&&!y&&h===p&&d[p]===void 0&&d[p+"0"]===void 0}o.exports=function(d,h,p,m){p("autotypenumbers",m.autotypenumbersDflt),p("type",(m.splomStash||{}).type)==="-"&&(function(y,v){if(y.type==="-"){var g,b=y._id,x=b.charAt(0);b.indexOf("scene")!==-1&&(b=x);var _=function(D,O,R){for(var F=0;F0&&(A["_"+R+"axes"]||{})[O]||(A[R+"axis"]||R)===O&&(u(A,R)||(A[R]||[]).length||A[R+"0"]))return A}}(v,b,x);if(_)if(_.type!=="histogram"||x!=={v:"y",h:"x"}[_.orientation||"v"]){var w=x+"calendar",k=_[w],T={noMultiCategory:!l(_,"cartesian")||l(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&x==={h:"x",v:"y"}[_.orientation||"v"]&&(T.noMultiCategory=!0),T.autotypenumbers=y.autotypenumbers,u(_,x)){var M=s(_),S=[];for(g=0;g0?".":"")+g;f.isPlainObject(b)?h(b,m,x,v+1):m(x,g,b)}})}a.manageCommandObserver=function(p,m,y,v){var g={},b=!0;m&&m._commandObserver&&(g=m._commandObserver),g.cache||(g.cache={}),g.lookupTable={};var x=a.hasSimpleAPICommandBindings(p,y,g.lookupTable);if(m&&m._commandObserver){if(x)return g;if(m._commandObserver.remove)return m._commandObserver.remove(),m._commandObserver=null,g}if(x){s(p,x,g.cache),g.check=function(){if(b){var k=s(p,x,g.cache);return k.changed&&v&&g.lookupTable[k.value]!==void 0&&(g.disable(),Promise.resolve(v({value:k.value,type:x.type,prop:x.prop,traces:x.traces,index:g.lookupTable[k.value]})).then(g.enable,g.enable)),k.changed}};for(var _=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],w=0;w<_.length;w++)p._internalOn(_[w],g.check);g.remove=function(){for(var k=0;k<_.length;k++)p._removeInternalListener(_[k],g.check)}}else f.log("Unable to automatically bind plot updates to API command"),g.lookupTable={},g.remove=function(){};return g.disable=function(){b=!1},g.enable=function(){b=!0},m&&(m._commandObserver=g),g},a.hasSimpleAPICommandBindings=function(p,m,y){var v,g,b=m.length;for(v=0;v=q.width-20?(te["text-anchor"]="start",te.x=5):(te["text-anchor"]="end",te.x=q._paper.attr("width")-7),H.attr(te);var ee=H.select(".js-link-to-tool"),U=H.select(".js-link-spacer"),Q=H.select(".js-sourcelinks");L._context.showSources&&L._context.showSources(L),L._context.showLink&&function(Y,Z){Z.text("");var X=Z.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(Y._context.linkText+" »");if(Y._context.sendData)X.on("click",function(){S.sendDataToCloud(Y)});else{var re=window.location.pathname.split("/"),ie=window.location.search;X.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+re[2].split(".")[0]+"/"+re[1]+ie})}}(L,ee),U.text(ee.text()&&Q.text()?" - ":"")}},S.sendDataToCloud=function(L){var q=(window.PLOTLYENV||{}).BASE_URL||L._context.plotlyServerURL;if(q){L.emit("plotly_beforeexport");var H=l.select(L).append("div").attr("id","hiddenform").style("display","none"),V=H.append("form").attr({action:q+"/external",method:"post",target:"_blank"});return V.append("input").attr({type:"text",name:"data"}).node().value=S.graphJson(L,!1,"keepdata"),V.node().submit(),H.remove(),L.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],O=["year","month","dayMonth","dayMonthYear"];function R(L,q){var H=L._context.locale;H||(H="en-US");var V=!1,te={};function ee(re){for(var ie=!0,le=0;le1&&J.length>1){for(d.getComponentMethod("grid","sizeDefaults")(U,ee),te=0;te15&&J.length>15&&ee.shapes.length===0&&ee.images.length===0,S.linkSubplots(Y,ee,Q,V),S.cleanPlot(Y,ee,Q,V);var ge=!(!V._has||!V._has("gl2d")),be=!(!ee._has||!ee._has("gl2d")),we=!(!V._has||!V._has("cartesian"))||ge,ke=!(!ee._has||!ee._has("cartesian"))||be;we&&!ke?V._bgLayer.remove():ke&&!we&&(ee._shouldCreateBgLayer=!0),V._zoomlayer&&!L._dragging&&b({_fullLayout:V}),function(Re,Ie){var Be,Ue=[];Ie.meta&&(Be=Ie._meta={meta:Ie.meta,layout:{meta:Ie.meta}});for(var qe=0;qe0){var Z=1-2*U;V=Math.round(Z*V),te=Math.round(Z*te)}}var X=S.layoutAttributes.width.min,re=S.layoutAttributes.height.min;V1,le=!q.height&&Math.abs(H.height-te)>1;(le||ie)&&(ie&&(H.width=V),le&&(H.height=te)),L._initialAutoSize||(L._initialAutoSize={width:V,height:te}),S.sanitizeMargins(H)},S.supplyLayoutModuleDefaults=function(L,q,H,V){var te,ee,U,Q=d.componentsRegistry,Y=q._basePlotModules,Z=d.subplotsRegistry.cartesian;for(te in Q)(U=Q[te]).includeBasePlot&&U.includeBasePlot(L,q);for(var X in Y.length||Y.push(Z),q._has("cartesian")&&(d.getComponentMethod("grid","contentDefaults")(L,q),Z.finalizeSubplots(L,q)),q._subplots)q._subplots[X].sort(m.subplotSort);for(ee=0;ee1&&(H.l/=Te,H.r/=Te)}if(ie){var Se=(H.t+H.b)/ie;Se>1&&(H.t/=Se,H.b/=Se)}var Oe=H.xl!==void 0?H.xl:H.x,Me=H.xr!==void 0?H.xr:H.x,ce=H.yt!==void 0?H.yt:H.y,ye=H.yb!==void 0?H.yb:H.y;le[q]={l:{val:Oe,size:H.l+pe},r:{val:Me,size:H.r+pe},b:{val:ye,size:H.b+pe},t:{val:ce,size:H.t+pe}},se[q]=1}else delete le[q],delete se[q];if(!V._replotting)return S.doAutoMargin(L)}},S.doAutoMargin=function(L){var q=L._fullLayout,H=q.width,V=q.height;q._size||(q._size={}),$(q);var te=q._size,ee=q.margin,U={t:0,b:0,l:0,r:0},Q=m.extendFlat({},te),Y=ee.l,Z=ee.r,X=ee.t,re=ee.b,ie=q._pushmargin,le=q._pushmarginIds,se=q.minreducedwidth,pe=q.minreducedheight;if(ee.autoexpand!==!1){for(var Te in ie)le[Te]||delete ie[Te];var Se=L._fullLayout._reservedMargin;for(var Oe in Se)for(var Me in Se[Oe]){var ce=Se[Oe][Me];U[Me]=Math.max(U[Me],ce)}for(var ye in ie.base={l:{val:0,size:Y},r:{val:1,size:Z},t:{val:1,size:X},b:{val:0,size:re}},U){var J=0;for(var ne in ie)ne!=="base"&&u(ie[ne][ye].size)&&(J=ie[ne][ye].size>J?ie[ne][ye].size:J);var de=Math.max(0,ee[ye]-J);U[ye]=Math.max(0,U[ye]-de)}for(var xe in ie){var ue=ie[xe].l||{},ge=ie[xe].b||{},be=ue.val,we=ue.size,ke=ge.val,Ae=ge.size,Ee=H-U.r-U.l,De=V-U.t-U.b;for(var Re in ie){if(u(we)&&ie[Re].r){var Ie=ie[Re].r.val,Be=ie[Re].r.size;if(Ie>be){var Ue=(we*Ie+(Be-Ee)*be)/(Ie-be),qe=(Be*(1-be)+(we-Ee)*(1-Ie))/(Ie-be);Ue+qe>Y+Z&&(Y=Ue,Z=qe)}}if(u(Ae)&&ie[Re].t){var Ye=ie[Re].t.val,at=ie[Re].t.size;if(Ye>ke){var lt=(Ae*Ye+(at-De)*ke)/(Ye-ke),ct=(at*(1-ke)+(Ae-De)*(1-Ye))/(Ye-ke);lt+ct>re+X&&(re=lt,X=ct)}}}}}var bt=m.constrain(H-ee.l-ee.r,2,se),ze=m.constrain(V-ee.t-ee.b,2,pe),Ne=Math.max(0,H-bt),Qe=Math.max(0,V-ze);if(Ne){var it=(Y+Z)/Ne;it>1&&(Y/=it,Z/=it)}if(Qe){var kt=(re+X)/Qe;kt>1&&(re/=kt,X/=kt)}if(te.l=Math.round(Y)+U.l,te.r=Math.round(Z)+U.r,te.t=Math.round(X)+U.t,te.b=Math.round(re)+U.b,te.p=Math.round(ee.pad),te.w=Math.round(H)-te.l-te.r,te.h=Math.round(V)-te.t-te.b,!q._replotting&&(S.didMarginChange(Q,te)||function(ut){if("_redrawFromAutoMarginCount"in ut._fullLayout)return!1;var pt=g.list(ut,"",!0);for(var It in pt)if(pt[It].autoshift||pt[It].shift)return!0;return!1}(L))){"_redrawFromAutoMarginCount"in q?q._redrawFromAutoMarginCount++:q._redrawFromAutoMarginCount=1;var Je=3*(1+Object.keys(le).length);if(q._redrawFromAutoMarginCount0&&(L._transitioningWithDuration=!0),L._transitionData._interruptCallbacks.push(function(){V=!0}),H.redraw&&L._transitionData._interruptCallbacks.push(function(){return d.call("redraw",L)}),L._transitionData._interruptCallbacks.push(function(){L.emit("plotly_transitioninterrupted",[])});var Q=0,Y=0;function Z(){return Q++,function(){var X;Y++,V||Y!==Q||(X=U,L._transitionData&&(function(re){if(re)for(;re.length;)re.shift()}(L._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(H.redraw)return d.call("redraw",L)}).then(function(){L._transitioning=!1,L._transitioningWithDuration=!1,L.emit("plotly_transitioned",[])}).then(X)))}}H.runFn(Z),setTimeout(Z())})}],ee=m.syncOrAsync(te,L);return ee&&ee.then||(ee=Promise.resolve()),ee.then(function(){return L})}S.didMarginChange=function(L,q){for(var H=0;H1)return!0}return!1},S.graphJson=function(L,q,H,V,te,ee){(te&&q&&!L._fullData||te&&!q&&!L._fullLayout)&&S.supplyDefaults(L);var U=te?L._fullData:L.data,Q=te?L._fullLayout:L.layout,Y=(L._transitionData||{})._frames;function Z(ie,le){if(typeof ie=="function")return le?"_function_":null;if(m.isPlainObject(ie)){var se,pe={};return Object.keys(ie).sort().forEach(function(Te){if(["_","["].indexOf(Te.charAt(0))===-1)if(typeof ie[Te]!="function"){if(H==="keepdata"){if(Te.substr(Te.length-3)==="src")return}else if(H==="keepstream"){if(typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0&&!m.isPlainObject(ie.stream))return}else if(H!=="keepall"&&typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0)return;pe[Te]=Z(ie[Te],le)}else le&&(pe[Te]="_function")}),pe}return Array.isArray(ie)?ie.map(function(Te){return Z(Te,le)}):m.isTypedArray(ie)?m.simpleMap(ie,m.identity):m.isJSDate(ie)?m.ms2DateTimeLocal(+ie):ie}var X={data:(U||[]).map(function(ie){var le=Z(ie);return q&&delete le.fit,le})};if(!q&&(X.layout=Z(Q),te)){var re=Q._size;X.layout.computed={margin:{b:re.b,l:re.l,r:re.r,t:re.t}}}return Y&&(X.frames=Z(Y)),ee&&(X.config=Z(L._context,!0)),V==="object"?X:JSON.stringify(X)},S.modifyFrames=function(L,q){var H,V,te,ee=L._transitionData._frames,U=L._transitionData._frameHash;for(H=0;H=0;ee--)if(ye[ee].enabled){H._indexToPoints=ye[ee]._indexToPoints;break}V&&V.calc&&(ce=V.calc(L,H))}Array.isArray(ce)&&ce[0]||(ce=[{x:v,y:v}]),ce[0].t||(ce[0].t={}),ce[0].trace=H,Z[Oe]=ce}}for(W(U,Q,Y),te=0;te0){for(var h=[],p=0;p=D&&(R.min=0,F.min=0,A.min=0,_.aaxis&&delete _.aaxis.min,_.baxis&&delete _.baxis.min,_.caxis&&delete _.caxis.min)}function x(_,w,k,T){var M=v[w._name];function S(F,A){return s.coerce(_,w,M,F,A)}S("uirevision",T.uirevision),w.type="linear";var C=S("color"),P=C!==M.color.dflt?C:k.font.color,D=w._name.charAt(0).toUpperCase(),O="Component "+D,R=S("title.text",O);w._hovertitle=R===O?R:D,s.coerceFont(S,"title.font",{family:k.font.family,size:s.bigFont(k.font.size),color:P}),S("min"),m(_,w,S,"linear"),h(_,w,S,"linear"),d(_,w,S,"linear"),p(_,w,S,{outerTicks:!0}),S("showticklabels")&&(s.coerceFont(S,"tickfont",{family:k.font.family,size:k.font.size,color:P}),S("tickangle"),S("tickformat")),y(_,w,S,{dfltColor:C,bgColor:k.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:M}),S("hoverformat"),S("layer")}o.exports=function(_,w,k){u(_,w,k,{type:"ternary",attributes:v,handleDefaults:b,font:w.font,paper_bgcolor:w.paper_bgcolor})}},64380:function(o,a,n){var l=n(39898),f=n(84267),s=n(73972),u=n(71828),d=u.strTranslate,h=u._,p=n(7901),m=n(91424),y=n(21994),v=n(1426).extendFlat,g=n(74875),b=n(89298),x=n(28569),_=n(30211),w=n(64505),k=w.freeMode,T=w.rectMode,M=n(92998),S=n(47322).prepSelect,C=n(47322).selectOnClick,P=n(47322).clearOutline,D=n(47322).clearSelectionsCache,O=n(85555);function R(W,G){this.id=W.id,this.graphDiv=W.graphDiv,this.init(G),this.makeFramework(G),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}o.exports=R;var F=R.prototype;F.init=function(W){this.container=W._ternarylayer,this.defs=W._defs,this.layoutId=W._uid,this.traceHash={},this.layers={}},F.plot=function(W,G){var L=this,q=G[L.id],H=G._size;L._hasClipOnAxisFalse=!1;for(var V=0;VA*le?H=(V=le)*A:V=(H=ie)/A,te=X*H/ie,ee=re*V/le,L=G.l+G.w*Y-H/2,q=G.t+G.h*(1-Z)-V/2,U.x0=L,U.y0=q,U.w=H,U.h=V,U.sum=se,U.xaxis={type:"linear",range:[pe+2*Se-se,se-pe-2*Te],domain:[Y-te/2,Y+te/2],_id:"x"},y(U.xaxis,U.graphDiv._fullLayout),U.xaxis.setScale(),U.xaxis.isPtWithinRange=function(be){return be.a>=U.aaxis.range[0]&&be.a<=U.aaxis.range[1]&&be.b>=U.baxis.range[1]&&be.b<=U.baxis.range[0]&&be.c>=U.caxis.range[1]&&be.c<=U.caxis.range[0]},U.yaxis={type:"linear",range:[pe,se-Te-Se],domain:[Z-ee/2,Z+ee/2],_id:"y"},y(U.yaxis,U.graphDiv._fullLayout),U.yaxis.setScale(),U.yaxis.isPtWithinRange=function(){return!0};var Oe=U.yaxis.domain[0],Me=U.aaxis=v({},W.aaxis,{range:[pe,se-Te-Se],side:"left",tickangle:(+W.aaxis.tickangle||0)-30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(Me,U.graphDiv._fullLayout),Me.setScale();var ce=U.baxis=v({},W.baxis,{range:[se-pe-Se,Te],side:"bottom",domain:U.xaxis.domain,anchor:"free",position:0,_id:"x",_length:H});y(ce,U.graphDiv._fullLayout),ce.setScale();var ye=U.caxis=v({},W.caxis,{range:[se-pe-Te,Se],side:"right",tickangle:(+W.caxis.tickangle||0)+30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(ye,U.graphDiv._fullLayout),ye.setScale();var J="M"+L+","+(q+V)+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDef.select("path").attr("d",J),U.layers.plotbg.select("path").attr("d",J);var ne="M0,"+V+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDefRelative.select("path").attr("d",ne);var de=d(L,q);U.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",de),U.clipDefRelative.select("path").attr("transform",null);var xe=d(L-ce._offset,q+V);U.layers.baxis.attr("transform",xe),U.layers.bgrid.attr("transform",xe);var ue=d(L+H/2,q)+"rotate(30)"+d(0,-Me._offset);U.layers.aaxis.attr("transform",ue),U.layers.agrid.attr("transform",ue);var ge=d(L+H/2,q)+"rotate(-30)"+d(0,-ye._offset);U.layers.caxis.attr("transform",ge),U.layers.cgrid.attr("transform",ge),U.drawAxes(!0),U.layers.aline.select("path").attr("d",Me.showline?"M"+L+","+(q+V)+"l"+H/2+",-"+V:"M0,0").call(p.stroke,Me.linecolor||"#000").style("stroke-width",(Me.linewidth||0)+"px"),U.layers.bline.select("path").attr("d",ce.showline?"M"+L+","+(q+V)+"h"+H:"M0,0").call(p.stroke,ce.linecolor||"#000").style("stroke-width",(ce.linewidth||0)+"px"),U.layers.cline.select("path").attr("d",ye.showline?"M"+(L+H/2)+","+q+"l"+H/2+","+V:"M0,0").call(p.stroke,ye.linecolor||"#000").style("stroke-width",(ye.linewidth||0)+"px"),U.graphDiv._context.staticPlot||U.initInteractions(),m.setClipUrl(U.layers.frontplot,U._hasClipOnAxisFalse?null:U.clipId,U.graphDiv)},F.drawAxes=function(W){var G=this,L=G.graphDiv,q=G.id.substr(7)+"title",H=G.layers,V=G.aaxis,te=G.baxis,ee=G.caxis;if(G.drawAx(V),G.drawAx(te),G.drawAx(ee),W){var U=Math.max(V.showticklabels?V.tickfont.size/2:0,(ee.showticklabels?.75*ee.tickfont.size:0)+(ee.ticks==="outside"?.87*ee.ticklen:0)),Q=(te.showticklabels?te.tickfont.size:0)+(te.ticks==="outside"?te.ticklen:0)+3;H["a-title"]=M.draw(L,"a"+q,{propContainer:V,propName:G.id+".aaxis.title",placeholder:h(L,"Click to enter Component A title"),attributes:{x:G.x0+G.w/2,y:G.y0-V.title.font.size/3-U,"text-anchor":"middle"}}),H["b-title"]=M.draw(L,"b"+q,{propContainer:te,propName:G.id+".baxis.title",placeholder:h(L,"Click to enter Component B title"),attributes:{x:G.x0-Q,y:G.y0+G.h+.83*te.title.font.size+Q,"text-anchor":"middle"}}),H["c-title"]=M.draw(L,"c"+q,{propContainer:ee,propName:G.id+".caxis.title",placeholder:h(L,"Click to enter Component C title"),attributes:{x:G.x0+G.w+Q,y:G.y0+G.h+.83*ee.title.font.size+Q,"text-anchor":"middle"}})}},F.drawAx=function(W){var G,L=this,q=L.graphDiv,H=W._name,V=H.charAt(0),te=W._id,ee=L.layers[H],U=V+"tickLayout",Q=(G=W).ticks+String(G.ticklen)+String(G.showticklabels);L[U]!==Q&&(ee.selectAll("."+te+"tick").remove(),L[U]=Q),W.setScale();var Y=b.calcTicks(W),Z=b.clipEnds(W,Y),X=b.makeTransTickFn(W),re=b.getTickSigns(W)[2],ie=u.deg2rad(30),le=re*(W.linewidth||1)/2,se=re*W.ticklen,pe=L.w,Te=L.h,Se=V==="b"?"M0,"+le+"l"+Math.sin(ie)*se+","+Math.cos(ie)*se:"M"+le+",0l"+Math.cos(ie)*se+","+-Math.sin(ie)*se,Oe={a:"M0,0l"+Te+",-"+pe/2,b:"M0,0l-"+pe/2+",-"+Te,c:"M0,0l-"+Te+","+pe/2}[V];b.drawTicks(q,W,{vals:W.ticks==="inside"?Z:Y,layer:ee,path:Se,transFn:X,crisp:!1}),b.drawGrid(q,W,{vals:Z,layer:L.layers[V+"grid"],path:Oe,transFn:X,crisp:!1}),b.drawLabels(q,W,{vals:Y,layer:ee,transFn:X,labelFns:b.makeLabelFns(W,0,30)})};var z=O.MINZOOM/2+.87,B="m-0.87,.5h"+z+"v3h-"+(z+5.2)+"l"+(z/2+2.6)+",-"+(.87*z+4.5)+"l2.6,1.5l-"+z/2+","+.87*z+"Z",$="m0.87,.5h-"+z+"v3h"+(z+5.2)+"l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-2.6,1.5l"+z/2+","+.87*z+"Z",j="m0,1l"+z/2+","+.87*z+"l2.6,-1.5l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-"+(z/2+2.6)+","+(.87*z+4.5)+"l2.6,1.5l"+z/2+",-"+.87*z+"Z",N=!0;function E(W){l.select(W).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}F.clearOutline=function(){D(this.dragOptions),P(this.dragOptions.gd)},F.initInteractions=function(){var W,G,L,q,H,V,te,ee,U,Q,Y,Z,X=this,re=X.layers.plotbg.select("path").node(),ie=X.graphDiv,le=ie._fullLayout._zoomlayer;function se(ne){var de={};return de[X.id+".aaxis.min"]=ne.a,de[X.id+".baxis.min"]=ne.b,de[X.id+".caxis.min"]=ne.c,de}function pe(ne,de){var xe=ie._fullLayout.clickmode;E(ie),ne===2&&(ie.emit("plotly_doubleclick",null),s.call("_guiRelayout",ie,se({a:0,b:0,c:0}))),xe.indexOf("select")>-1&&ne===1&&C(de,ie,[X.xaxis],[X.yaxis],X.id,X.dragOptions),xe.indexOf("event")>-1&&_.click(ie,de,X.id)}function Te(ne,de){return 1-de/X.h}function Se(ne,de){return 1-(ne+(X.h-de)/Math.sqrt(3))/X.w}function Oe(ne,de){return(ne-(X.h-de)/Math.sqrt(3))/X.w}function Me(ne,de){var xe=L+ne*W,ue=q+de*G,ge=Math.max(0,Math.min(1,Te(0,q),Te(0,ue))),be=Math.max(0,Math.min(1,Se(L,q),Se(xe,ue))),we=Math.max(0,Math.min(1,Oe(L,q),Oe(xe,ue))),ke=(ge/2+we)*X.w,Ae=(1-ge/2-be)*X.w,Ee=(ke+Ae)/2,De=Ae-ke,Re=(1-ge)*X.h,Ie=Re-De/A;De.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Z.transition().style("opacity",1).duration(200),Q=!0),ie.emit("plotly_relayouting",se(te))}function ce(){E(ie),te!==H&&(s.call("_guiRelayout",ie,se(te)),N&&ie.data&&ie._context.showTips&&(u.notifier(h(ie,"Double-click to zoom back out"),"long"),N=!1))}function ye(ne,de){var xe=ne/X.xaxis._m,ue=de/X.yaxis._m,ge=[(te={a:H.a-ue,b:H.b+(xe+ue)/2,c:H.c-(xe-ue)/2}).a,te.b,te.c].sort(u.sorterAsc),be=ge.indexOf(te.a),we=ge.indexOf(te.b),ke=ge.indexOf(te.c);ge[0]<0&&(ge[1]+ge[0]/2<0?(ge[2]+=ge[0]+ge[1],ge[0]=ge[1]=0):(ge[2]+=ge[0]/2,ge[1]+=ge[0]/2,ge[0]=0),te={a:ge[be],b:ge[we],c:ge[ke]},de=(H.a-te.a)*X.yaxis._m,ne=(H.c-te.c-H.b+te.b)*X.xaxis._m);var Ae=d(X.x0+ne,X.y0+de);X.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ae);var Ee=d(-ne,-de);X.clipDefRelative.select("path").attr("transform",Ee),X.aaxis.range=[te.a,X.sum-te.b-te.c],X.baxis.range=[X.sum-te.a-te.c,te.b],X.caxis.range=[X.sum-te.a-te.b,te.c],X.drawAxes(!1),X._hasClipOnAxisFalse&&X.plotContainer.select(".scatterlayer").selectAll(".trace").call(m.hideOutsideRangePoints,X),ie.emit("plotly_relayouting",se(te))}function J(){s.call("_guiRelayout",ie,se(te))}this.dragOptions={element:re,gd:ie,plotinfo:{id:X.id,domain:ie._fullLayout[X.id].domain,xaxis:X.xaxis,yaxis:X.yaxis},subplot:X.id,prepFn:function(ne,de,xe){X.dragOptions.xaxes=[X.xaxis],X.dragOptions.yaxes=[X.yaxis],W=ie._fullLayout._invScaleX,G=ie._fullLayout._invScaleY;var ue=X.dragOptions.dragmode=ie._fullLayout.dragmode;k(ue)?X.dragOptions.minDrag=1:X.dragOptions.minDrag=void 0,ue==="zoom"?(X.dragOptions.moveFn=Me,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=ce,function(ge,be,we){var ke=re.getBoundingClientRect();L=be-ke.left,q=we-ke.top,ie._fullLayout._calcInverseTransform(ie);var Ae=ie._fullLayout._invTransform,Ee=u.apply3DTransform(Ae)(L,q);L=Ee[0],q=Ee[1],H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,V=X.aaxis.range[1]-H.a,ee=f(X.graphDiv._fullLayout[X.id].bgcolor).getLuminance(),U="M0,"+X.h+"L"+X.w/2+", 0L"+X.w+","+X.h+"Z",Q=!1,Y=le.append("path").attr("class","zoombox").attr("transform",d(X.x0,X.y0)).style({fill:ee>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",U),Z=le.append("path").attr("class","zoombox-corners").attr("transform",d(X.x0,X.y0)).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),X.clearOutline(ie)}(0,de,xe)):ue==="pan"?(X.dragOptions.moveFn=ye,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=J,H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,X.clearOutline(ie)):(T(ue)||k(ue))&&S(ne,de,xe,X.dragOptions,ue)}},re.onmousemove=function(ne){_.hover(ie,ne,X.id),ie._fullLayout._lasthover=re,ie._fullLayout._hoversubplot=X.id},re.onmouseout=function(ne){ie._dragging||x.unhover(ie,ne)},x.init(this.dragOptions)}},73972:function(o,a,n){var l=n(47769),f=n(64213),s=n(75138),u=n(41965),d=n(24401).addStyleRule,h=n(1426),p=n(9012),m=n(10820),y=h.extendFlat,v=h.extendDeepAll;function g(C){var P=C.name,D=C.categories,O=C.meta;if(a.modules[P])l.log("Type "+P+" already registered");else{a.subplotsRegistry[C.basePlotModule.name]||function(N){var E=N.name;if(a.subplotsRegistry[E])l.log("Plot type "+E+" already registered.");else for(var W in w(N),a.subplotsRegistry[E]=N,a.componentsRegistry)M(W,N.name)}(C.basePlotModule);for(var R={},F=0;F-1&&(x[w[m]].title={text:""});for(m=0;m")!==-1?"":F.html(z).text()});return F.remove(),A}(O)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(m,"'"),f.isIE()&&(O=(O=(O=O.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),O}},75341:function(o,a,n){var l=n(71828);o.exports=function(f,s){for(var u=0;uA+R||!l(F))}for(var B=0;Bm))return d}return h!==void 0?h:u.dflt},a.coerceColor=function(u,d,h){return f(d).isValid()?d:h!==void 0?h:u.dflt},a.coerceEnumerated=function(u,d,h){return u.coerceNumber&&(d=+d),u.values.indexOf(d)!==-1?d:h!==void 0?h:u.dflt},a.getValue=function(u,d){var h;return Array.isArray(u)?d0?se+=pe:k<0&&(se-=pe)}return se}function ee(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,z+(Te-se)/(Te-pe)-1)}var U=v[T+"a"],Q=v[M+"a"];P=Math.abs(U.r2c(U.range[1])-U.r2c(U.range[0]));var Y=l.getDistanceFunction(x,S,C,function(le){return(S(le)+C(le))/2});if(l.getClosest(D,Y,v),v.index!==!1&&D[v.index].p!==p){j||(L=function(le){return Math.min(N(le),le.p-R.bargroupwidth/2)},q=function(le){return Math.max(E(le),le.p+R.bargroupwidth/2)});var Z=D[v.index],X=O.base?Z.b+Z.s:Z.s;v[M+"0"]=v[M+"1"]=Q.c2p(Z[M],!0),v[M+"LabelVal"]=X;var re=R.extents[R.extents.round(Z.p)];v[T+"0"]=U.c2p(F?L(Z):re[0],!0),v[T+"1"]=U.c2p(F?q(Z):re[1],!0);var ie=Z.orig_p!==void 0;return v[T+"LabelVal"]=ie?Z.orig_p:Z.p,v.labelLabel=h(U,v[T+"LabelVal"],O[T+"hoverformat"]),v.valueLabel=h(Q,v[M+"LabelVal"],O[M+"hoverformat"]),v.baseLabel=h(Q,Z.b,O[M+"hoverformat"]),v.spikeDistance=(function(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,B+(Te-se)/(Te-pe)-1)}(Z)+function(le){return H(N(le),E(le),B)}(Z))/2,v[T+"Spike"]=U.c2p(Z.p,!0),u(Z,O,v),v.hovertemplate=O.hovertemplate,v}}function y(v,g){var b=g.mcc||v.marker.color,x=g.mlcc||v.marker.line.color,_=d(v,g);return s.opacity(b)?b:s.opacity(x)&&_?x:void 0}o.exports={hoverPoints:function(v,g,b,x,_){var w=m(v,g,b,x,_);if(w){var k=w.cd,T=k[0].trace,M=k[w.index];return w.color=y(T,M),f.getComponentMethod("errorbars","hoverInfo")(M,T,w),[w]}},hoverOnBars:m,getTraceColor:y}},60822:function(o,a,n){o.exports={attributes:n(1486),layoutAttributes:n(43641),supplyDefaults:n(90769).supplyDefaults,crossTraceDefaults:n(90769).crossTraceDefaults,supplyLayoutDefaults:n(13957),calc:n(92290),crossTraceCalc:n(11661).crossTraceCalc,colorbar:n(4898),arraysToCalcdata:n(75341),plot:n(17295).plot,style:n(16688).style,styleOnSelect:n(16688).styleOnSelect,hoverPoints:n(95423).hoverPoints,eventData:n(58065),selectPoints:n(81974),moduleType:"trace",name:"bar",basePlotModule:n(93612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},43641:function(o){o.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},13957:function(o,a,n){var l=n(73972),f=n(89298),s=n(71828),u=n(43641);o.exports=function(d,h,p){function m(T,M){return s.coerce(d,h,u,T,M)}for(var y=!1,v=!1,g=!1,b={},x=m("barmode"),_=0;_0}function F(B){return B==="auto"?0:B}function A(B,$){var j=Math.PI/180*$,N=Math.abs(Math.sin(j)),E=Math.abs(Math.cos(j));return{x:B.width*E+B.height*N,y:B.width*N+B.height*E}}function z(B,$,j,N,E,W){var G=!!W.isHorizontal,L=!!W.constrained,q=W.angle||0,H=W.anchor||"end",V=H==="end",te=H==="start",ee=((W.leftToRight||0)+1)/2,U=1-ee,Q=E.width,Y=E.height,Z=Math.abs($-B),X=Math.abs(N-j),re=Z>2*S&&X>2*S?S:0;Z-=2*re,X-=2*re;var ie=F(q);q!=="auto"||Q<=Z&&Y<=X||!(Q>Z||Y>X)||(Q>X||Y>Z)&&Q.01?we:function(De,Re,Ie){return Ie&&De===Re?De:Math.abs(De-Re)>=2?we(De):De>Re?Math.ceil(De):Math.floor(De)};ne=ke(ne,de,re),de=ke(de,ne,re),xe=ke(xe,ue,!re),ue=ke(ue,xe,!re)}var Ae=O(s.ensureSingle(ye,"path"),q,E,W);if(Ae.style("vector-effect",H?"none":"non-scaling-stroke").attr("d",isNaN((de-ne)*(ue-xe))||ge&&B._context.staticPlot?"M0,0Z":"M"+ne+","+xe+"V"+ue+"H"+de+"V"+xe+"Z").call(h.setClipUrl,$.layerClipId,B),!q.uniformtext.mode&&ie){var Ee=h.makePointStyleFns(U);h.singlePointStyle(Se,Ae,U,Ee,B)}(function(De,Re,Ie,Be,Ue,qe,Ye,at,lt,ct,bt){var ze,Ne=Re.xaxis,Qe=Re.yaxis,it=De._fullLayout;function kt(Dt,gt,ht){return s.ensureSingle(Dt,"text").text(gt).attr({class:"bartext bartext-"+ze,"text-anchor":"middle","data-notex":1}).call(h.font,ht).call(u.convertToTspans,De)}var Je=Be[0].trace,ut=Je.orientation==="h",pt=function(Dt,gt,ht,yt,qt){var Et,jt=gt[0].trace;return Et=jt.texttemplate?function(Tt,Ot,At,Lt,Rt){var $t=Ot[0].trace,Yt=s.castOption($t,At,"texttemplate");if(!Yt)return"";var Xt,Bt,Wt,tn,cn=$t.type==="histogram",ln=$t.type==="waterfall",an=$t.type==="funnel",sn=$t.orientation==="h";function Zt(wn){return m(tn,tn.c2l(wn),!0).text}sn?(Xt="y",Bt=Rt,Wt="x",tn=Lt):(Xt="x",Bt=Lt,Wt="y",tn=Rt);var pn,nn=Ot[At],Kt={};Kt.label=nn.p,Kt.labelLabel=Kt[Xt+"Label"]=(pn=nn.p,m(Bt,Bt.c2l(pn),!0).text);var On=s.castOption($t,nn.i,"text");(On===0||On)&&(Kt.text=On),Kt.value=nn.s,Kt.valueLabel=Kt[Wt+"Label"]=Zt(nn.s);var Tn={};M(Tn,$t,nn.i),(cn||Tn.x===void 0)&&(Tn.x=sn?Kt.value:Kt.label),(cn||Tn.y===void 0)&&(Tn.y=sn?Kt.label:Kt.value),(cn||Tn.xLabel===void 0)&&(Tn.xLabel=sn?Kt.valueLabel:Kt.labelLabel),(cn||Tn.yLabel===void 0)&&(Tn.yLabel=sn?Kt.labelLabel:Kt.valueLabel),ln&&(Kt.delta=+nn.rawS||nn.s,Kt.deltaLabel=Zt(Kt.delta),Kt.final=nn.v,Kt.finalLabel=Zt(Kt.final),Kt.initial=Kt.final-Kt.delta,Kt.initialLabel=Zt(Kt.initial)),an&&(Kt.value=nn.s,Kt.valueLabel=Zt(Kt.value),Kt.percentInitial=nn.begR,Kt.percentInitialLabel=s.formatPercent(nn.begR),Kt.percentPrevious=nn.difR,Kt.percentPreviousLabel=s.formatPercent(nn.difR),Kt.percentTotal=nn.sumR,Kt.percenTotalLabel=s.formatPercent(nn.sumR));var Dn=s.castOption($t,nn.i,"customdata");return Dn&&(Kt.customdata=Dn),s.texttemplateString(Yt,Kt,Tt._d3locale,Tn,Kt,$t._meta||{})}(Dt,gt,ht,yt,qt):jt.textinfo?function(Tt,Ot,At,Lt){var Rt=Tt[0].trace,$t=Rt.orientation==="h",Yt=Rt.type==="waterfall",Xt=Rt.type==="funnel";function Bt(Dn){return m($t?At:Lt,+Dn,!0).text}var Wt,tn,cn=Rt.textinfo,ln=Tt[Ot],an=cn.split("+"),sn=[],Zt=function(Dn){return an.indexOf(Dn)!==-1};if(Zt("label")&&sn.push((tn=Tt[Ot].p,m($t?Lt:At,tn,!0).text)),Zt("text")&&((Wt=s.castOption(Rt,ln.i,"text"))===0||Wt)&&sn.push(Wt),Yt){var pn=+ln.rawS||ln.s,nn=ln.v,Kt=nn-pn;Zt("initial")&&sn.push(Bt(Kt)),Zt("delta")&&sn.push(Bt(pn)),Zt("final")&&sn.push(Bt(nn))}if(Xt){Zt("value")&&sn.push(Bt(ln.s));var On=0;Zt("percent initial")&&On++,Zt("percent previous")&&On++,Zt("percent total")&&On++;var Tn=On>1;Zt("percent initial")&&(Wt=s.formatPercent(ln.begR),Tn&&(Wt+=" of initial"),sn.push(Wt)),Zt("percent previous")&&(Wt=s.formatPercent(ln.difR),Tn&&(Wt+=" of previous"),sn.push(Wt)),Zt("percent total")&&(Wt=s.formatPercent(ln.sumR),Tn&&(Wt+=" of total"),sn.push(Wt))}return sn.join("
")}(gt,ht,yt,qt):x.getValue(jt.text,ht),x.coerceString(k,Et)}(it,Be,Ue,Ne,Qe);ze=function(Dt,gt){var ht=x.getValue(Dt.textposition,gt);return x.coerceEnumerated(T,ht)}(Je,Ue);var It=ct.mode==="stack"||ct.mode==="relative",Mt=Be[Ue],zt=!It||Mt._outmost;if(pt&&ze!=="none"&&(!Mt.isBlank&&qe!==Ye&&at!==lt||ze!=="auto"&&ze!=="inside")){var wt=it.font,ve=b.getBarColor(Be[Ue],Je),_e=b.getInsideTextFont(Je,Ue,wt,ve),Ve=b.getOutsideTextFont(Je,Ue,wt),We=Ie.datum();ut?Ne.type==="log"&&We.s0<=0&&(qe=Ne.range[0]0&&nt>0&&(Ke<=mt&&nt<=tt||Ke<=tt&&nt<=mt||(ut?mt>=Ke*(tt/nt):tt>=nt*(mt/Ke)))?ze="inside":(ze="outside",Ze.remove(),Ze=null)):ze="inside"),!Ze){var Ft=(Ze=kt(Ie,pt,st=s.ensureUniformFontSize(De,ze==="outside"?Ve:_e))).attr("transform");if(Ze.attr("transform",""),Ke=(Ge=h.bBox(Ze.node())).width,nt=Ge.height,Ze.attr("transform",Ft),Ke<=0||nt<=0)return void Ze.remove()}var Vt,St=Je.textangle;Vt=ze==="outside"?function(Dt,gt,ht,yt,qt,Et){var jt,Tt=!!Et.isHorizontal,Ot=!!Et.constrained,At=Et.angle||0,Lt=qt.width,Rt=qt.height,$t=Math.abs(gt-Dt),Yt=Math.abs(yt-ht);jt=Tt?Yt>2*S?S:0:$t>2*S?S:0;var Xt=1;Ot&&(Xt=Tt?Math.min(1,Yt/Rt):Math.min(1,$t/Lt));var Bt=F(At),Wt=A(qt,Bt),tn=(Tt?Wt.x:Wt.y)/2,cn=(qt.left+qt.right)/2,ln=(qt.top+qt.bottom)/2,an=(Dt+gt)/2,sn=(ht+yt)/2,Zt=0,pn=0,nn=Tt?D(gt,Dt):D(ht,yt);return Tt?(an=gt-nn*jt,Zt=nn*tn):(sn=yt+nn*jt,pn=-nn*tn),{textX:cn,textY:ln,targetX:an,targetY:sn,anchorX:Zt,anchorY:pn,scale:Xt,rotate:Bt}}(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="outside",angle:St}):z(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="inside",angle:St,anchor:Je.insidetextanchor}),Vt.fontSize=st.size,v(Je.type==="histogram"?"bar":Je.type,Vt,it),Mt.transform=Vt;var Nt=O(Ze,it,ct,bt);s.setTransormAndDisplay(Nt,Vt)}else Ie.select("text").remove()})(B,$,ye,te,Oe,ne,de,xe,ue,E,W),$.layerClipId&&h.hideOutsideRangePoint(Se,ye.select("text"),G,L,U.xcalendar,U.ycalendar)});var Te=U.cliponaxis===!1;h.setClipUrl(ee,Te?null:$.layerClipId,B)});p.getComponentMethod("errorbars","plot")(B,V,$,E)},toMoveInsideBar:z}},81974:function(o){function a(n,l,f,s,u){var d=l.c2p(s?n.s0:n.p0,!0),h=l.c2p(s?n.s1:n.p1,!0),p=f.c2p(s?n.p0:n.s0,!0),m=f.c2p(s?n.p1:n.s1,!0);return u?[(d+h)/2,(p+m)/2]:s?[h,(p+m)/2]:[(d+h)/2,m]}o.exports=function(n,l){var f,s=n.cd,u=n.xaxis,d=n.yaxis,h=s[0].trace,p=h.type==="funnel",m=h.orientation==="h",y=[];if(l===!1)for(f=0;f1||O.bargap===0&&O.bargroupgap===0&&!R[0].trace.marker.line.width)&&l.select(this).attr("shape-rendering","crispEdges")}),P.selectAll("g.points").each(function(R){b(l.select(this),R[0].trace,C)}),d.getComponentMethod("errorbars","style")(P)},styleTextPoints:x,styleOnSelect:function(C,P,D){var O=P[0].trace;O.selectedpoints?function(R,F,A){s.selectedPointStyle(R.selectAll("path"),F),function(z,B,$){z.each(function(j){var N,E=l.select(this);if(j.selected){N=u.ensureUniformFontSize($,_(E,j,B,$));var W=B.selected.textfont&&B.selected.textfont.color;W&&(N.color=W),s.font(E,N)}else s.selectedTextStyle(E,B)})}(R.selectAll("text"),F,A)}(D,O,C):(b(D,O,C),d.getComponentMethod("errorbars","style")(D))},getInsideTextFont:k,getOutsideTextFont:T,getBarColor:S,resizeText:h}},98340:function(o,a,n){var l=n(7901),f=n(52075).hasColorscale,s=n(1586),u=n(71828).coercePattern;o.exports=function(d,h,p,m,y){var v=p("marker.color",m),g=f(d,"marker");g&&s(d,h,y,p,{prefix:"marker.",cLetter:"c"}),p("marker.line.color",l.defaultLine),f(d,"marker.line")&&s(d,h,y,p,{prefix:"marker.line.",cLetter:"c"}),p("marker.line.width"),p("marker.opacity"),u(p,"marker.pattern",v,g),p("selected.marker.color"),p("unselected.marker.color")}},72597:function(o,a,n){var l=n(39898),f=n(71828);function s(u){return"_"+u+"Text_minsize"}o.exports={recordMinTextSize:function(u,d,h){if(h.uniformtext.mode){var p=s(u),m=h.uniformtext.minsize,y=d.scale*d.fontSize;d.hide=yj.uf};if(T._hasPreCompStats){var Y=T[P],Z=function(Re){return C.d2c((T[Re]||[])[M])},X=1/0,re=-1/0;for(M=0;M=j.q1&&j.q3>=j.med){var le=Z("lowerfence");j.lf=le!==d&&le<=j.q1?le:g(j,E,W);var se=Z("upperfence");j.uf=se!==d&&se>=j.q3?se:b(j,E,W);var pe=Z("mean");j.mean=pe!==d?pe:W?u.mean(E,W):(j.q1+j.q3)/2;var Te=Z("sd");j.sd=pe!==d&&Te>=0?Te:W?u.stdev(E,W,j.mean):j.q3-j.q1,j.lo=x(j),j.uo=_(j);var Se=Z("notchspan");Se=Se!==d&&Se>0?Se:w(j,W),j.ln=j.med-Se,j.un=j.med+Se;var Oe=j.lf,Me=j.uf;T.boxpoints&&E.length&&(Oe=Math.min(Oe,E[0]),Me=Math.max(Me,E[W-1])),T.notched&&(Oe=Math.min(Oe,j.ln),Me=Math.max(Me,j.un)),j.min=Oe,j.max=Me}else{var ce;u.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+j.q1,"median = "+j.med,"q3 = "+j.q3].join(` -`)),ce=j.med!==d?j.med:j.q1!==d?j.q3!==d?(j.q1+j.q3)/2:j.q1:j.q3!==d?j.q3:0,j.med=ce,j.q1=j.q3=ce,j.lf=j.uf=ce,j.mean=j.sd=ce,j.ln=j.un=ce,j.min=j.max=ce}X=Math.min(X,j.min),re=Math.max(re,j.max),j.pts2=N.filter(Q),B.push(j)}}T._extremes[C._id]=f.findExtremes(C,[X,re],{padded:!0})}else{var ye=C.makeCalcdata(T,P),J=function(Re,Ie){for(var Be=Re.length,Ue=new Array(Be+1),qe=0;qe=0&&xe0){var Ae,Ee;(j={}).pos=j[O]=ee[M],N=j.pts=de[M].sort(y),W=(E=j[P]=N.map(v)).length,j.min=E[0],j.max=E[W-1],j.mean=u.mean(E,W),j.sd=u.stdev(E,W,j.mean)*T.sdmultiple,j.med=u.interp(E,.5),W%2&&(we||ke)?(we?(Ae=E.slice(0,W/2),Ee=E.slice(W/2+1)):ke&&(Ae=E.slice(0,W/2+1),Ee=E.slice(W/2)),j.q1=u.interp(Ae,.5),j.q3=u.interp(Ee,.5)):(j.q1=u.interp(E,.25),j.q3=u.interp(E,.75)),j.lf=g(j,E,W),j.uf=b(j,E,W),j.lo=x(j),j.uo=_(j);var De=w(j,W);j.ln=j.med-De,j.un=j.med+De,ue=Math.min(ue,j.ln),ge=Math.max(ge,j.un),j.pts2=N.filter(Q),B.push(j)}T._extremes[C._id]=f.findExtremes(C,T.notched?ye.concat([ue,ge]):ye,{padded:!0})}return function(Re,Ie){if(u.isArrayOrTypedArray(Ie.selectedpoints))for(var Be=0;Be0?(B[0].t={num:F[$],dPos:U,posLetter:O,valLetter:P,labels:{med:h(k,"median:"),min:h(k,"min:"),q1:h(k,"q1:"),q3:h(k,"q3:"),max:h(k,"max:"),mean:T.boxmean==="sd"||T.sizemode==="sd"?h(k,"mean ± σ:").replace("σ",T.sdmultiple===1?"σ":T.sdmultiple+"σ"):h(k,"mean:"),lf:h(k,"lower fence:"),uf:h(k,"upper fence:")}},F[$]++,B):[{t:{empty:!0}}]};var p={text:"tx",hovertext:"htx"};function m(k,T,M){for(var S in p)u.isArrayOrTypedArray(T[S])&&(Array.isArray(M)?u.isArrayOrTypedArray(T[S][M[0]])&&(k[p[S]]=T[S][M[0]][M[1]]):k[p[S]]=T[S][M])}function y(k,T){return k.v-T.v}function v(k){return k.v}function g(k,T,M){return M===0?k.q1:Math.min(k.q1,T[Math.min(u.findBin(2.5*k.q1-1.5*k.q3,T,!0)+1,M-1)])}function b(k,T,M){return M===0?k.q3:Math.max(k.q3,T[Math.max(u.findBin(2.5*k.q3-1.5*k.q1,T),0)])}function x(k){return 4*k.q1-3*k.q3}function _(k){return 4*k.q3-3*k.q1}function w(k,T){return T===0?0:1.57*(k.q3-k.q1)/Math.sqrt(T)}},37188:function(o,a,n){var l=n(89298),f=n(71828),s=n(99082).getAxisGroup,u=["v","h"];function d(h,p,m,y){var v,g,b,x=p.calcdata,_=p._fullLayout,w=y._id,k=w.charAt(0),T=[],M=0;for(v=0;v1,O=1-_[h+"gap"],R=1-_[h+"groupgap"];for(v=0;v0){var ie=N.pointpos,le=N.jitter,se=N.marker.size/2,pe=0;ie+le>=0&&((pe=X*(ie+le))>$?(re=!0,Y=se,U=pe):pe>te&&(Y=se,U=$)),pe<=$&&(U=$);var Te=0;ie-le<=0&&((Te=-X*(ie-le))>j?(re=!0,Z=se,Q=Te):Te>ee&&(Z=se,Q=j)),Te<=j&&(Q=j)}else U=$,Q=j;var Se=new Array(b.length);for(g=0;g0?(D="v",O=F>0?Math.min(z,A):Math.min(A)):F>0?(D="h",O=Math.min(z)):O=0;if(O){g._length=O;var W=b("orientation",D);g._hasPreCompStats?W==="v"&&F===0?(b("x0",0),b("dx",1)):W==="h"&&R===0&&(b("y0",0),b("dy",1)):W==="v"&&F===0?b("x0"):W==="h"&&R===0&&b("y0"),f.getComponentMethod("calendars","handleTraceDefaults")(v,g,["x","y"],x)}else g.visible=!1}function y(v,g,b,x){var _=x.prefix,w=l.coerce2(v,g,p,"marker.outliercolor"),k=b("marker.line.outliercolor"),T="outliers";g._hasPreCompStats?T="all":(w||k)&&(T="suspectedoutliers");var M=b(_+"points",T);M?(b("jitter",M==="all"?.3:0),b("pointpos",M==="all"?-1.5:0),b("marker.symbol"),b("marker.opacity"),b("marker.size"),b("marker.angle"),b("marker.color",g.line.color),b("marker.line.color"),b("marker.line.width"),M==="suspectedoutliers"&&(b("marker.line.outliercolor",g.marker.color),b("marker.line.outlierwidth")),b("selected.marker.color"),b("unselected.marker.color"),b("selected.marker.size"),b("unselected.marker.size"),b("text"),b("hovertext")):delete g.marker;var S=b("hoveron");S!=="all"&&S.indexOf("points")===-1||b("hovertemplate"),l.coerceSelectionMarkerOpacity(g,b)}o.exports={supplyDefaults:function(v,g,b,x){function _(O,R){return l.coerce(v,g,p,O,R)}if(m(v,g,_,x),g.visible!==!1){u(v,g,x,_),_("xhoverformat"),_("yhoverformat");var w=g._hasPreCompStats;w&&(_("lowerfence"),_("upperfence")),_("line.color",(v.marker||{}).color||b),_("line.width"),_("fillcolor",s.addOpacity(g.line.color,.5));var k=!1;if(w){var T=_("mean"),M=_("sd");T&&T.length&&(k=!0,M&&M.length&&(k="sd"))}_("whiskerwidth");var S,C=_("sizemode");C==="quartiles"&&(S=_("boxmean",k)),_("showwhiskers",C==="quartiles"),C!=="sd"&&S!=="sd"||_("sdmultiple"),_("width"),_("quartilemethod");var P=!1;if(w){var D=_("notchspan");D&&D.length&&(P=!0)}else l.validate(v.notchwidth,p.notchwidth)&&(P=!0);_("notched",P)&&_("notchwidth"),y(v,g,_,{prefix:"box"})}},crossTraceDefaults:function(v,g){var b,x;function _(T){return l.coerce(x._input,x,p,T)}for(var w=0;wM.lo&&(E.so=!0)}return P});T.enter().append("path").classed("point",!0),T.exit().remove(),T.call(s.translatePoints,g,b)}function h(p,m,y,v){var g,b,x=m.val,_=m.pos,w=!!_.rangebreaks,k=v.bPos,T=v.bPosPxOffset||0,M=y.boxmean||(y.meanline||{}).visible;Array.isArray(v.bdPos)?(g=v.bdPos[0],b=v.bdPos[1]):(g=v.bdPos,b=v.bdPos);var S=p.selectAll("path.mean").data(y.type==="box"&&y.boxmean||y.type==="violin"&&y.box.visible&&y.meanline.visible?f.identity:[]);S.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),S.exit().remove(),S.each(function(C){var P=_.c2l(C.pos+k,!0),D=_.l2p(P-g)+T,O=_.l2p(P+b)+T,R=w?(D+O)/2:_.l2p(P)+T,F=x.c2p(C.mean,!0),A=x.c2p(C.mean-C.sd,!0),z=x.c2p(C.mean+C.sd,!0);y.orientation==="h"?l.select(this).attr("d","M"+F+","+D+"V"+O+(M==="sd"?"m0,0L"+A+","+R+"L"+F+","+D+"L"+z+","+R+"Z":"")):l.select(this).attr("d","M"+D+","+F+"H"+O+(M==="sd"?"m0,0L"+R+","+A+"L"+D+","+F+"L"+R+","+z+"Z":""))})}o.exports={plot:function(p,m,y,v){var g=p._context.staticPlot,b=m.xaxis,x=m.yaxis;f.makeTraceGroups(v,y,"trace boxes").each(function(_){var w,k,T=l.select(this),M=_[0],S=M.t,C=M.trace;S.wdPos=S.bdPos*C.whiskerwidth,C.visible!==!0||S.empty?T.remove():(C.orientation==="h"?(w=x,k=b):(w=b,k=x),u(T,{pos:w,val:k},C,S,g),d(T,{x:b,y:x},C,S),h(T,{pos:w,val:k},C,S))})},plotBoxAndWhiskers:u,plotPoints:d,plotBoxMean:h}},24626:function(o){o.exports=function(a,n){var l,f,s=a.cd,u=a.xaxis,d=a.yaxis,h=[];if(n===!1)for(l=0;ld.level||d.starts.length&&u===d.level)}break;case"constraint":if(f.prefixBoundary=!1,f.edgepaths.length)return;var h=f.x.length,p=f.y.length,m=-1/0,y=1/0;for(l=0;l":b>m&&(f.prefixBoundary=!0);break;case"<":(bm||f.starts.length&&g===y)&&(f.prefixBoundary=!0);break;case"][":v=Math.min(b[0],b[1]),g=Math.max(b[0],b[1]),vm&&(f.prefixBoundary=!0)}}}},90654:function(o,a,n){var l=n(21081),f=n(86068),s=n(53572);o.exports={min:"zmin",max:"zmax",calc:function(u,d,h){var p=d.contours,m=d.line,y=p.size||1,v=p.coloring,g=f(d,{isColorbar:!0});if(v==="heatmap"){var b=l.extractOpts(d);h._fillgradient=b.reversescale?l.flipScale(b.colorscale):b.colorscale,h._zrange=[b.min,b.max]}else v==="fill"&&(h._fillcolor=g);h._line={color:v==="lines"?g:m.color,width:p.showlines!==!1?m.width:0,dash:m.dash},h._levels={start:p.start,end:s(p),size:y}}}},36914:function(o){o.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},83179:function(o,a,n){var l=n(92770),f=n(14523),s=n(7901),u=s.addOpacity,d=s.opacity,h=n(74808),p=h.CONSTRAINT_REDUCTION,m=h.COMPARISON_OPS2;o.exports=function(y,v,g,b,x,_){var w,k,T,M=v.contours,S=g("contours.operation");M._operation=p[S],function(C,P){var D;m.indexOf(P.operation)===-1?(C("contours.value",[0,1]),Array.isArray(P.value)?P.value.length>2?P.value=P.value.slice(2):P.length===0?P.value=[0,1]:P.length<2?(D=parseFloat(P.value[0]),P.value=[D,D+1]):P.value=[parseFloat(P.value[0]),parseFloat(P.value[1])]:l(P.value)&&(D=parseFloat(P.value),P.value=[D,D+1])):(C("contours.value",0),l(P.value)||(Array.isArray(P.value)?P.value=parseFloat(P.value[0]):P.value=0))}(g,M),S==="="?w=M.showlines=!0:(w=g("contours.showlines"),T=g("fillcolor",u((y.line||{}).color||x,.5))),w&&(k=g("line.color",T&&d(T)?u(v.fillcolor,1):x),g("line.width",2),g("line.dash")),g("line.smoothing"),f(g,b,k,_)}},64237:function(o,a,n){var l=n(74808),f=n(92770);function s(h,p){var m,y=Array.isArray(p);function v(g){return f(g)?+g:null}return l.COMPARISON_OPS2.indexOf(h)!==-1?m=v(y?p[0]:p):l.INTERVAL_OPS.indexOf(h)!==-1?m=y?[v(p[0]),v(p[1])]:[v(p),v(p)]:l.SET_OPS.indexOf(h)!==-1&&(m=y?p.map(v):[v(p)]),m}function u(h){return function(p){p=s(h,p);var m=Math.min(p[0],p[1]),y=Math.max(p[0],p[1]);return{start:m,end:y,size:y-m}}}function d(h){return function(p){return{start:p=s(h,p),end:1/0,size:1/0}}}o.exports={"[]":u("[]"),"][":u("]["),">":d(">"),"<":d("<"),"=":d("=")}},67217:function(o){o.exports=function(a,n,l,f){var s=f("contours.start"),u=f("contours.end"),d=s===!1||u===!1,h=l("contours.size");!(d?n.autocontour=!0:l("autocontour",!1))&&h||l("ncontours")}},84857:function(o,a,n){var l=n(71828);function f(s){return l.extendFlat({},s,{edgepaths:l.extendDeep([],s.edgepaths),paths:l.extendDeep([],s.paths),starts:l.extendDeep([],s.starts)})}o.exports=function(s,u){var d,h,p,m=function(g){return g.reverse()},y=function(g){return g};switch(u){case"=":case"<":return s;case">":for(s.length!==1&&l.warn("Contour data invalid for the specified inequality operation."),h=s[0],d=0;d1e3){l.warn("Too many contours, clipping at 1000",u);break}return y}},53572:function(o){o.exports=function(a){return a.end+a.size/1e6}},81696:function(o,a,n){var l=n(71828),f=n(36914);function s(h,p,m,y){return Math.abs(h[0]-p[0])20&&re?X===208||X===1114?le=ie[0]===0?1:-1:se=ie[1]===0?1:-1:f.BOTTOMSTART.indexOf(X)!==-1?se=1:f.LEFTSTART.indexOf(X)!==-1?le=1:f.TOPSTART.indexOf(X)!==-1?se=-1:le=-1,[le,se]}(x,m,p),w=[d(h,p,[-_[0],-_[1]])],k=h.z.length,T=h.z[0].length,M=p.slice(),S=_.slice();for(g=0;g<1e4;g++){if(x>20?(x=f.CHOOSESADDLE[x][(_[0]||_[1])<0?0:1],h.crossings[b]=f.SADDLEREMAINDER[x]):delete h.crossings[b],!(_=f.NEWDELTA[x])){l.log("Found bad marching index:",x,p,h.level);break}w.push(d(h,p,_)),p[0]+=_[0],p[1]+=_[1],b=p.join(","),s(w[w.length-1],w[w.length-2],y,v)&&w.pop();var C=_[0]&&(p[0]<0||p[0]>T-2)||_[1]&&(p[1]<0||p[1]>k-2);if(p[0]===M[0]&&p[1]===M[1]&&_[0]===S[0]&&_[1]===S[1]||m&&C)break;x=h.crossings[b]}g===1e4&&l.log("Infinite loop in contour?");var P,D,O,R,F,A,z,B,$,j,N,E,W,G,L,q=s(w[0],w[w.length-1],y,v),H=0,V=.2*h.smoothing,te=[],ee=0;for(g=1;g=ee;g--)if((P=te[g])=ee&&P+te[D]B&&$--,h.edgepaths[$]=N.concat(w,j));break}Z||(h.edgepaths[B]=w.concat(j))}for(B=0;B=S)&&(h<=M&&(h=M),p>=S&&(p=S),y=Math.floor((p-h)/m)+1,v=0),x=0;xM&&(k.unshift(M),T.unshift(T[0])),k[k.length-1]s?0:1)+(u[0][1]>s?0:2)+(u[1][1]>s?0:4)+(u[1][0]>s?0:8);return d===5||d===10?s>(u[0][0]+u[0][1]+u[1][0]+u[1][1])/4?d===5?713:1114:d===5?104:208:d===15?0:d}o.exports=function(s){var u,d,h,p,m,y,v,g,b,x=s[0].z,_=x.length,w=x[0].length,k=_===2||w===2;for(d=0;d<_-1;d++)for(p=[],d===0&&(p=p.concat(l.BOTTOMSTART)),d===_-2&&(p=p.concat(l.TOPSTART)),u=0;u=0&&(D=L,R=F):Math.abs(P[1]-D[1])<.01?Math.abs(P[1]-L[1])<.01&&(L[0]-P[0])*(D[0]-L[0])>=0&&(D=L,R=F):f.log("endpt to newendpt is not vert. or horz.",P,D,L)}if(P=D,R>=0)break;B+="L"+D}if(R===S.edgepaths.length){f.log("unclosed perimeter path");break}$=R,(N=j.indexOf($)===-1)&&($=j[0],B+="Z")}for($=0;$D.center?D.right-F:F-D.left)/(B+Math.abs(Math.sin(z)*R)),N=(A>D.middle?D.bottom-A:A-D.top)/(Math.abs($)+Math.cos(z)*R);if(j<1||N<1)return 1/0;var E=w.EDGECOST*(1/(j-1)+1/(N-1));E+=w.ANGLECOST*z*z;for(var W=F-B,G=A-$,L=F+B,q=A+$,H=0;H2*w.MAXCOST)break;N&&(F/=2),A=(R=z-F/2)+1.5*F}if(j<=w.MAXCOST)return B},a.addLabelData=function(S,C,P,D){var O=C.fontSize,R=C.width+O/3,F=Math.max(0,C.height-O/3),A=S.x,z=S.y,B=S.theta,$=Math.sin(B),j=Math.cos(B),N=function(W,G){return[A+W*j-G*$,z+W*$+G*j]},E=[N(-R/2,-F/2),N(-R/2,F/2),N(R/2,F/2),N(R/2,-F/2)];P.push({text:C.text,x:A,y:z,dy:C.dy,theta:B,level:C.level,width:R,height:F}),D.push(E)},a.drawLabels=function(S,C,P,D,O){var R=S.selectAll("text").data(C,function(z){return z.text+","+z.x+","+z.y+","+z.theta});if(R.exit().remove(),R.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(z){var B=z.x+Math.sin(z.theta)*z.dy,$=z.y-Math.cos(z.theta)*z.dy;l.select(this).text(z.text).attr({x:B,y:$,transform:"rotate("+180*z.theta/Math.PI+" "+B+" "+$+")"}).call(d.convertToTspans,P)}),O){for(var F="",A=0;Ah.end&&(h.start=h.end=(h.start+h.end)/2),u._input.contours||(u._input.contours={}),f.extendFlat(u._input.contours,{start:h.start,end:h.end,size:h.size}),u._input.autocontour=!0}else if(h.type!=="constraint"){var v,g=h.start,b=h.end,x=u._input.contours;g>b&&(h.start=x.start=b,b=h.end=x.end=g,g=h.start),h.size>0||(v=g===b?1:s(g,b,u.ncontours).dtick,x.size=h.size=v)}}},84426:function(o,a,n){var l=n(39898),f=n(91424),s=n(70035),u=n(86068);o.exports=function(d){var h=l.select(d).selectAll("g.contour");h.style("opacity",function(p){return p[0].trace.opacity}),h.each(function(p){var m=l.select(this),y=p[0].trace,v=y.contours,g=y.line,b=v.size||1,x=v.start,_=v.type==="constraint",w=!_&&v.coloring==="lines",k=!_&&v.coloring==="fill",T=w||k?u(y):null;m.selectAll("g.contourlevel").each(function(C){l.select(this).selectAll("path").call(f.lineGroupStyle,g.width,w?T(C.level):g.color,g.dash)});var M=v.labelfont;if(m.selectAll("g.contourlabels text").each(function(C){f.font(l.select(this),{family:M.family,size:M.size,color:M.color||(w?T(C.level):g.color)})}),_)m.selectAll("g.contourfill path").style("fill",y.fillcolor);else if(k){var S;m.selectAll("g.contourfill path").style("fill",function(C){return S===void 0&&(S=C.level),T(C.level+.5*b)}),S===void 0&&(S=x),m.selectAll("g.contourbg path").style("fill",T(S-.5*b))}}),s(d)}},8724:function(o,a,n){var l=n(1586),f=n(14523);o.exports=function(s,u,d,h,p){var m,y=d("contours.coloring"),v="";y==="fill"&&(m=d("contours.showlines")),m!==!1&&(y!=="lines"&&(v=d("line.color","#000")),d("line.width",.5),d("line.dash")),y!=="none"&&(s.showlegend!==!0&&(u.showlegend=!1),u._dfltShowLegend=!1,l(s,u,h,d,{prefix:"",cLetter:"z"})),d("line.smoothing"),f(d,h,v,p)}},21606:function(o,a,n){var l=n(82196),f=n(9012),s=n(41940),u=n(12663).axisHoverFormat,d=n(5386).fF,h=n(5386).si,p=n(50693),m=n(1426).extendFlat;o.exports=m({z:{valType:"data_array",editType:"calc"},x:m({},l.x,{impliedEdits:{xtype:"array"}}),x0:m({},l.x0,{impliedEdits:{xtype:"scaled"}}),dx:m({},l.dx,{impliedEdits:{xtype:"scaled"}}),y:m({},l.y,{impliedEdits:{ytype:"array"}}),y0:m({},l.y0,{impliedEdits:{ytype:"scaled"}}),dy:m({},l.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:m({},l.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:m({},l.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:m({},l.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:m({},l.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:m({},l.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:m({},l.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:u("x"),yhoverformat:u("y"),zhoverformat:u("z",1),hovertemplate:d(),texttemplate:h({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:s({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:m({},f.showlegend,{dflt:!1})},{transforms:void 0},p("",{cLetter:"z",autoColorDflt:!1}))},90757:function(o,a,n){var l=n(73972),f=n(71828),s=n(89298),u=n(42973),d=n(17562),h=n(78803),p=n(68296),m=n(4742),y=n(824),v=n(43907),g=n(70769),b=n(50606).BADNUM;function x(_){for(var w=[],k=_.length,T=0;T1){var Z=(Y[Y.length-1]-Y[0])/(Y.length-1),X=Math.abs(Z/100);for(F=0;FX)return!1}return!0}(z.rangebreaks||B.rangebreaks)&&(R=function(Y,Z,X){for(var re=[],ie=-1,le=0;le=0;p--)(m=((b[[(u=(h=x[p])[0])-1,d=h[1]]]||k)[2]+(b[[u+1,d]]||k)[2]+(b[[u,d-1]]||k)[2]+(b[[u,d+1]]||k)[2])/20)&&(y[h]=[u,d,m],x.splice(p,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(h in y)b[h]=y[h],g.push(y[h])}return g.sort(function(M,S){return S[2]-M[2]})}},46248:function(o,a,n){var l=n(30211),f=n(71828),s=n(89298),u=n(21081).extractOpts;o.exports=function(d,h,p,m,y){y||(y={});var v,g,b,x,_=y.isContour,w=d.cd[0],k=w.trace,T=d.xa,M=d.ya,S=w.x,C=w.y,P=w.z,D=w.xCenter,O=w.yCenter,R=w.zmask,F=k.zhoverformat,A=S,z=C;if(d.index!==!1){try{b=Math.round(d.index[1]),x=Math.round(d.index[0])}catch{return void f.error("Error hovering on heatmap, pointNumber must be [row,col], found:",d.index)}if(b<0||b>=P[0].length||x<0||x>P.length)return}else{if(l.inbox(h-S[0],h-S[S.length-1],0)>0||l.inbox(p-C[0],p-C[C.length-1],0)>0)return;if(_){var B;for(A=[2*S[0]-S[1]],B=1;BS&&(P=Math.max(P,Math.abs(d[y][v]-M)/(C-S))))}return P}o.exports=function(d,h){var p,m=1;for(u(d,h),p=0;p.01;p++)m=u(d,h,s(m));return m>.01&&l.log("interp2d didn't converge quickly",m),d}},58623:function(o,a,n){var l=n(71828);o.exports=function(f,s){f("texttemplate");var u=l.extendFlat({},s.font,{color:"auto",size:"auto"});l.coerceFont(f,"textfont",u)}},70769:function(o,a,n){var l=n(73972),f=n(71828).isArrayOrTypedArray;o.exports=function(s,u,d,h,p,m){var y,v,g,b=[],x=l.traceIs(s,"contour"),_=l.traceIs(s,"histogram"),w=l.traceIs(s,"gl2d");if(f(u)&&u.length>1&&!_&&m.type!=="category"){var k=u.length;if(!(k<=p))return x?u.slice(0,p):u.slice(0,p+1);if(x||w)b=u.slice(0,p);else if(p===1)b=[u[0]-.5,u[0]+.5];else{for(b=[1.5*u[0]-.5*u[1]],g=1;g0;)j=A.c2p(Y[G]),G--;for(j<$&&(N=j,j=$,$=N,Te=!0),G=0;E===void 0&&G0;)W=z.c2p(Z[G]),G--;W=A._length||j<=0||E>=z._length||W<=0)return H.selectAll("image").data([]).exit().remove(),void M(H);Oe==="fast"?(ce=pe,ye=se):(ce=J,ye=ne);var de=document.createElement("canvas");de.width=ce,de.height=ye;var xe,ue,ge=de.getContext("2d",{willReadFrequently:!0}),be=g(te,{noNumericCheck:!0,returnArray:!0});Oe==="fast"?(xe=Te?function(pn){return pe-1-pn}:h.identity,ue=Se?function(pn){return se-1-pn}:h.identity):(xe=function(pn){return h.constrain(Math.round(A.c2p(Y[pn])-$),0,J)},ue=function(pn){return h.constrain(Math.round(z.c2p(Z[pn])-E),0,ne)});var we,ke,Ae,Ee,De=ue(0),Re=[De,De],Ie=Te?0:1,Be=Se?0:1,Ue=0,qe=0,Ye=0,at=0;function lt(pn,nn){if(pn!==void 0){var Kt=be(pn);return Kt[0]=Math.round(Kt[0]),Kt[1]=Math.round(Kt[1]),Kt[2]=Math.round(Kt[2]),Ue+=nn,qe+=Kt[0]*nn,Ye+=Kt[1]*nn,at+=Kt[2]*nn,Kt}return[0,0,0,0]}function ct(pn,nn,Kt,On){var Tn=pn[Kt.bin0];if(Tn===void 0)return lt(void 0,1);var Dn,wn=pn[Kt.bin1],En=nn[Kt.bin0],tr=nn[Kt.bin1],oa=wn-Tn||0,da=En-Tn||0;return Dn=wn===void 0?tr===void 0?0:En===void 0?2*(tr-Tn):2*(2*tr-En-Tn)/3:tr===void 0?En===void 0?0:2*(2*Tn-wn-En)/3:En===void 0?2*(2*tr-wn-Tn)/3:tr+Tn-wn-En,lt(Tn+Kt.frac*oa+On.frac*(da+Kt.frac*Dn))}if(Oe!=="default"){var bt,ze=0;try{bt=new Uint8Array(ce*ye*4)}catch{bt=new Array(ce*ye*4)}if(Oe==="smooth"){var Ne,Qe,it,kt=X||Y,Je=re||Z,ut=new Array(kt.length),pt=new Array(Je.length),It=new Array(J),Mt=X?C:S,zt=re?C:S;for(G=0;Ggt||gt>z._length))for(L=Vt;Lyt||yt>A._length)){var qt=m({x:ht,y:Dt},te,D._fullLayout);qt.x=ht,qt.y=Dt;var Et=V.z[G][L];Et===void 0?(qt.z="",qt.zLabel=""):(qt.z=Et,qt.zLabel=d.tickText(st,Et,"hover").text);var jt=V.text&&V.text[G]&&V.text[G][L];jt!==void 0&&jt!==!1||(jt=""),qt.text=jt;var Tt=h.texttemplateString(Ke,qt,D._fullLayout._d3locale,qt,te._meta||{});if(Tt){var Ot=Tt.split("
"),At=Ot.length,Lt=0;for(q=0;q0&&(S=!0);for(var D=0;Dh){var p=h-u[f];return u[f]=h,p}}return 0},max:function(f,s,u,d){var h=d[s];if(l(h)){if(h=Number(h),!l(u[f]))return u[f]=h,h;if(u[f]p?x>u?x>1.1*f?f:x>1.1*s?s:u:x>d?d:x>h?h:p:Math.pow(10,Math.floor(Math.log(x)/Math.LN10))}function g(x,_,w,k,T,M){if(k&&x>u){var S=b(_,T,M),C=b(w,T,M),P=x===f?0:1;return S[P]!==C[P]}return Math.floor(w/x)-Math.floor(_/x)>.1}function b(x,_,w){var k=_.c2d(x,f,w).split("-");return k[0]===""&&(k.unshift(),k[0]="-"+k[0]),k}o.exports=function(x,_,w,k,T){var M,S,C=-1.1*_,P=-.1*_,D=x-P,O=w[0],R=w[1],F=Math.min(y(O+P,O+D,k,T),y(R+P,R+D,k,T)),A=Math.min(y(O+C,O+P,k,T),y(R+C,R+P,k,T));if(F>A&&Au){var z=M===f?1:6,B=M===f?"M12":"M1";return function($,j){var N=k.c2d($,f,T),E=N.indexOf("-",z);E>0&&(N=N.substr(0,E));var W=k.d2c(N,0,T);if(W<$){var G=m(W,B,!1,T);(W+G)/2<$+x&&(W=G)}return j&&S?m(W,B,!0,T):W}}return function($,j){var N=M*Math.round($/M);return N+M/10<$&&N+.9*M<$+x&&(N+=M),j&&S&&(N-=M),N}}},72138:function(o,a,n){var l=n(92770),f=n(71828),s=n(73972),u=n(89298),d=n(75341),h=n(59575),p=n(36362),m=n(42174),y=n(40965);function v(g,b,x,_,w){var k,T,M,S,C,P,D,O=_+"bins",R=g._fullLayout,F=b["_"+_+"bingroup"],A=R._histogramBinOpts[F],z=R.barmode==="overlay",B=function(Se){return x.r2c(Se,0,S)},$=function(Se){return x.c2r(Se,0,S)},j=x.type==="date"?function(Se){return Se||Se===0?f.cleanDate(Se,null,S):null}:function(Se){return l(Se)?Number(Se):null};function N(Se,Oe,Me){Oe[Se+"Found"]?(Oe[Se]=j(Oe[Se]),Oe[Se]===null&&(Oe[Se]=Me[Se])):(P[Se]=Oe[Se]=Me[Se],f.nestedProperty(T[0],O+"."+Se).set(Me[Se]))}if(b["_"+_+"autoBinFinished"])delete b["_"+_+"autoBinFinished"];else{T=A.traces;var E=[],W=!0,G=!1,L=!1;for(k=0;kx.r2l(Z)&&(re=u.tickIncrement(re,A.size,!0,S)),ee.start=x.l2r(re),Y||f.nestedProperty(b,O+".start").set(ee.start)}var ie=A.end,le=x.r2l(te.end),se=le!==void 0;if((A.endFound||se)&&le!==x.r2l(ie)){var pe=se?le:f.aggNums(Math.max,null,C);ee.end=x.l2r(pe),se||f.nestedProperty(b,O+".start").set(ee.end)}var Te="autobin"+_;return b._input[Te]===!1&&(b._input[O]=f.extendFlat({},b[O]||{}),delete b._input[Te],delete b[Te]),[ee,C]}o.exports={calc:function(g,b){var x,_,w,k,T=[],M=[],S=b.orientation==="h",C=u.getFromId(g,S?b.yaxis:b.xaxis),P=S?"y":"x",D={x:"y",y:"x"}[P],O=b[P+"calendar"],R=b.cumulative,F=v(g,b,C,P),A=F[0],z=F[1],B=typeof A.size=="string",$=[],j=B?$:A,N=[],E=[],W=[],G=0,L=b.histnorm,q=b.histfunc,H=L.indexOf("density")!==-1;R.enabled&&H&&(L=L.replace(/ ?density$/,""),H=!1);var V,te=q==="max"||q==="min"?null:0,ee=h.count,U=p[L],Q=!1,Y=function(ne){return C.r2c(ne,0,O)};for(f.isArrayOrTypedArray(b[D])&&q!=="count"&&(V=b[D],Q=q==="avg",ee=h[q]),x=Y(A.start),w=Y(A.end)+(x-u.tickIncrement(x,A.size,!1,O))/1e6;x=0&&k=0;ue--)ke(ue);else if(de==="increasing"){for(ue=1;ue=0;ue--)ne[ue]+=ne[ue+1];xe==="exclude"&&(ne.push(0),ne.shift())}}(M,R.direction,R.currentbin);var Oe=Math.min(T.length,M.length),Me=[],ce=0,ye=Oe-1;for(x=0;x=ce;x--)if(M[x]){ye=x;break}for(x=ce;x<=ye;x++)if(l(T[x])&&l(M[x])){var J={p:T[x],s:M[x],b:0};R.enabled||(J.pts=W[x],le?J.ph0=J.ph1=W[x].length?z[W[x][0]]:T[x]:(b._computePh=!0,J.ph0=re($[x]),J.ph1=re($[x+1],!0))),Me.push(J)}return Me.length===1&&(Me[0].width1=u.tickIncrement(Me[0].p,A.size,!1,O)-Me[0].p),d(Me,b),f.isArrayOrTypedArray(b.selectedpoints)&&f.tagSelected(Me,b,Te),Me},calcAllAutoBins:v}},72406:function(o){o.exports={eventDataKeys:["binNumber"]}},82222:function(o,a,n){var l=n(71828),f=n(41675),s=n(73972).traceIs,u=n(26125),d=l.nestedProperty,h=n(99082).getAxisGroup,p=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],m=["x","y"];o.exports=function(y,v){var g,b,x,_,w,k,T,M=v._histogramBinOpts={},S=[],C={},P=[];function D(H,V){return l.coerce(g._input,g,g._module.attributes,H,V)}function O(H){return H.orientation==="v"?"x":"y"}function R(H,V,te){var ee=H.uid+"__"+te;V||(V=ee);var U=function(X,re){return f.getFromTrace({_fullLayout:v},X,re).type}(H,te),Q=H[te+"calendar"]||"",Y=M[V],Z=!0;Y&&(U===Y.axType&&Q===Y.calendar?(Z=!1,Y.traces.push(H),Y.dirs.push(te)):(V=ee,U!==Y.axType&&l.warn(["Attempted to group the bins of trace",H.index,"set on a","type:"+U,"axis","with bins on","type:"+Y.axType,"axis."].join(" ")),Q!==Y.calendar&&l.warn(["Attempted to group the bins of trace",H.index,"set with a",Q,"calendar","with bins",Y.calendar?"on a "+Y.calendar+" calendar":"w/o a set calendar"].join(" ")))),Z&&(M[V]={traces:[H],dirs:[te],axType:U,calendar:H[te+"calendar"]||""}),H["_"+te+"bingroup"]=V}for(w=0;w$&&F.splice($,F.length-$),B.length>$&&B.splice($,B.length-$);var j=[],N=[],E=[],W=typeof R.size=="string",G=typeof z.size=="string",L=[],q=[],H=W?L:R,V=G?q:z,te=0,ee=[],U=[],Q=b.histnorm,Y=b.histfunc,Z=Q.indexOf("density")!==-1,X=Y==="max"||Y==="min"?null:0,re=s.count,ie=u[Q],le=!1,se=[],pe=[],Te="z"in b?b.z:"marker"in b&&Array.isArray(b.marker.color)?b.marker.color:"";Te&&Y!=="count"&&(le=Y==="avg",re=s[Y]);var Se=R.size,Oe=P(R.start),Me=P(R.end)+(Oe-f.tickIncrement(Oe,Se,!1,S))/1e6;for(x=Oe;x=0&&w=0&&k0||l.inbox(h-p.y0,h-(p.y0+p.h*m.dy),0)>0)){var g,b=Math.floor((d-p.x0)/m.dx),x=Math.floor(Math.abs(h-p.y0)/m.dy);if(m._hasZ?g=p.z[x][b]:m._hasSource&&(g=m._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(b,x,1,1).data),g){var _,w=p.hi||m.hoverinfo;if(w){var k=w.split("+");k.indexOf("all")!==-1&&(k=["color"]),k.indexOf("color")!==-1&&(_=!0)}var T,M=s.colormodel[m.colormodel],S=M.colormodel||m.colormodel,C=S.length,P=m._scaler(g),D=M.suffix,O=[];(m.hovertemplate||_)&&(O.push("["+[P[0]+D[0],P[1]+D[1],P[2]+D[2]].join(", ")),C===4&&O.push(", "+P[3]+D[3]),O.push("]"),O=O.join(""),u.extraText=S.toUpperCase()+": "+O),Array.isArray(m.hovertext)&&Array.isArray(m.hovertext[x])?T=m.hovertext[x][b]:Array.isArray(m.text)&&Array.isArray(m.text[x])&&(T=m.text[x][b]);var R=v.c2p(p.y0+(x+.5)*m.dy),F=p.x0+(b+.5)*m.dx,A=p.y0+(x+.5)*m.dy,z="["+g.slice(0,m.colormodel.length).join(", ")+"]";return[f.extendFlat(u,{index:[x,b],x0:y.c2p(p.x0+b*m.dx),x1:y.c2p(p.x0+(b+1)*m.dx),y0:R,y1:R,color:P,xVal:F,xLabelVal:F,yVal:A,yLabelVal:A,zLabelVal:z,text:T,hovertemplateLabels:{zLabel:z,colorLabel:O,"color[0]Label":P[0]+D[0],"color[1]Label":P[1]+D[1],"color[2]Label":P[2]+D[2],"color[3]Label":P[3]+D[3]}})]}}}},94507:function(o,a,n){o.exports={attributes:n(17230),supplyDefaults:n(13245),calc:n(71113),plot:n(60775),style:n(12826),hoverPoints:n(28749),eventData:n(30835),moduleType:"trace",name:"image",basePlotModule:n(93612),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},60775:function(o,a,n){var l=n(39898),f=n(71828),s=f.strTranslate,u=n(77922),d=n(51877),h=n(3883),p=n(32396).STYLE;o.exports=function(m,y,v,g){var b=y.xaxis,x=y.yaxis,_=!m._context._exportedPlot&&h();f.makeTraceGroups(g,v,"im").each(function(w){var k=l.select(this),T=w[0],M=T.trace,S=(M.zsmooth==="fast"||M.zsmooth===!1&&_)&&!M._hasZ&&M._hasSource&&b.type==="linear"&&x.type==="linear";M._realImage=S;var C,P,D,O,R,F,A=T.z,z=T.x0,B=T.y0,$=T.w,j=T.h,N=M.dx,E=M.dy;for(F=0;C===void 0&&F<$;)C=b.c2p(z+F*N),F++;for(F=$;P===void 0&&F>0;)P=b.c2p(z+F*N),F--;for(F=0;O===void 0&&F0;)R=x.c2p(B+F*E),F--;PV[0];if(te||ee){var U=C+W/2,Q=O+G/2;q+="transform:"+s(U+"px",Q+"px")+"scale("+(te?-1:1)+","+(ee?-1:1)+")"+s(-U+"px",-Q+"px")+";"}}L.attr("style",q);var Y=new Promise(function(X){if(M._hasZ)X();else if(M._hasSource)if(M._canvas&&M._canvas.el.width===$&&M._canvas.el.height===j&&M._canvas.source===M.source)X();else{var re=document.createElement("canvas");re.width=$,re.height=j;var ie=re.getContext("2d",{willReadFrequently:!0});M._image=M._image||new Image;var le=M._image;le.onload=function(){ie.drawImage(le,0,0),M._canvas={el:re,source:M.source},X()},le.setAttribute("src",M.source)}}).then(function(){var X,re;if(M._hasZ)re=Z(function(le,se){return A[se][le]}),X=re.toDataURL("image/png");else if(M._hasSource)if(S)X=M.source;else{var ie=M._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,$,j).data;re=Z(function(le,se){var pe=4*(se*$+le);return[ie[pe],ie[pe+1],ie[pe+2],ie[pe+3]]}),X=re.toDataURL("image/png")}L.attr({"xlink:href":X,height:G,width:W,x:C,y:O})});m._promises.push(Y)}function Z(X){var re=document.createElement("canvas");re.width=W,re.height=G;var ie,le=re.getContext("2d",{willReadFrequently:!0}),se=function(de){return f.constrain(Math.round(b.c2p(z+de*N)-C),0,W)},pe=function(de){return f.constrain(Math.round(x.c2p(B+de*E)-O),0,G)},Te=d.colormodel[M.colormodel],Se=Te.colormodel||M.colormodel,Oe=Te.fmt;for(F=0;F=0}),(m.type==="funnelarea"?D:m.sort)&&g.sort(function(z,B){return B.v-z.v}),g[0]&&(g[0].vTotal=P),g},crossTraceCalc:function(p,m){var y=(m||{}).type;y||(y="pie");var v=p._fullLayout,g=p.calcdata,b=v[y+"colorway"],x=v["_"+y+"colormap"];v["extend"+y+"colors"]&&(b=h(b,u));for(var _=0,w=0;w0){_=!0;break}}_||(x=0)}return{hasLabels:g,hasValues:b,len:x}}function m(y,v,g,b,x){b("marker.line.width")&&b("marker.line.color",x?void 0:g.paper_bgcolor);var _=b("marker.colors");h(b,"marker.pattern",_),y.marker&&!v.marker.pattern.fgcolor&&(v.marker.pattern.fgcolor=y.marker.colors),v.marker.pattern.bgcolor||(v.marker.pattern.bgcolor=g.paper_bgcolor)}o.exports={handleLabelsAndValues:p,handleMarkerDefaults:m,supplyDefaults:function(y,v,g,b){function x(D,O){return f.coerce(y,v,s,D,O)}var _=p(x("labels"),x("values")),w=_.len;if(v._hasLabels=_.hasLabels,v._hasValues=_.hasValues,!v._hasLabels&&v._hasValues&&(x("label0"),x("dlabel")),w){v._length=w,m(y,v,b,x,!0),x("scalegroup");var k,T=x("text"),M=x("texttemplate");if(M||(k=x("textinfo",Array.isArray(T)?"text+percent":"percent")),x("hovertext"),x("hovertemplate"),M||k&&k!=="none"){var S=x("textposition");d(y,v,b,x,S,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(S)||S==="auto"||S==="outside")&&x("automargin"),(S==="inside"||S==="auto"||Array.isArray(S))&&x("insidetextorientation")}u(v,b,x);var C=x("hole");if(x("title.text")){var P=x("title.position",C?"middle center":"top center");C||P!=="middle center"||(v.title.position="top center"),f.coerceFont(x,"title.font",b.font)}x("sort"),x("direction"),x("rotation"),x("pull")}else v.visible=!1}}},20007:function(o,a,n){var l=n(23469).appendArrayMultiPointValues;o.exports=function(f,s){var u={curveNumber:s.index,pointNumbers:f.pts,data:s._input,fullData:s,label:f.label,color:f.color,value:f.v,percent:f.percent,text:f.text,bbox:f.bbox,v:f.v};return f.pts.length===1&&(u.pointNumber=u.i=f.pts[0]),l(u,s,f.pts),s.type==="funnelarea"&&(delete u.v,delete u.i),u}},22209:function(o,a,n){var l=n(91424),f=n(7901);o.exports=function(s,u,d,h){var p=d.marker.pattern;p&&p.shape?l.pointStyle(s,d,h,u):f.fill(s,u.color)}},53581:function(o,a,n){var l=n(71828);function f(s){return s.indexOf("e")!==-1?s.replace(/[.]?0+e/,"e"):s.indexOf(".")!==-1?s.replace(/[.]?0+$/,""):s}a.formatPiePercent=function(s,u){var d=f((100*s).toPrecision(3));return l.numSeparate(d,u)+"%"},a.formatPieValue=function(s,u){var d=f(s.toPrecision(10));return l.numSeparate(d,u)},a.getFirstFilled=function(s,u){if(Array.isArray(s))for(var d=0;d"),name:X.hovertemplate||re.indexOf("name")!==-1?X.name:void 0,idealAlign:Y.pxmid[0]<0?"left":"right",color:_.castOption(Oe.bgcolor,Y.pts)||Y.color,borderColor:_.castOption(Oe.bordercolor,Y.pts),fontFamily:_.castOption(Me.family,Y.pts),fontSize:_.castOption(Me.size,Y.pts),fontColor:_.castOption(Me.color,Y.pts),nameLength:_.castOption(Oe.namelength,Y.pts),textAlign:_.castOption(Oe.align,Y.pts),hovertemplate:_.castOption(X.hovertemplate,Y.pts),hovertemplateLabels:Y,eventData:[w(Y,X)]},{container:Z._hoverlayer.node(),outerContainer:Z._paper.node(),gd:q,inOut_bbox:ce}),Y.bbox=ce[0],U._hasHoverLabel=!0}U._hasHoverEvent=!0,q.emit("plotly_hover",{points:[w(Y,X)],event:l.event})}}),L.on("mouseout",function(Y){var Z=q._fullLayout,X=q._fullData[U.index],re=l.select(this).datum();U._hasHoverEvent&&(Y.originalEvent=l.event,q.emit("plotly_unhover",{points:[w(re,X)],event:l.event}),U._hasHoverEvent=!1),U._hasHoverLabel&&(s.loneUnhover(Z._hoverlayer.node()),U._hasHoverLabel=!1)}),L.on("click",function(Y){var Z=q._fullLayout,X=q._fullData[U.index];q._dragging||Z.hovermode===!1||(q._hoverdata=[w(Y,X)],s.click(q,l.event))})}function M(L,q,H){var V=_.castOption(L.insidetextfont.color,q.pts);!V&&L._input.textfont&&(V=_.castOption(L._input.textfont.color,q.pts));var te=_.castOption(L.insidetextfont.family,q.pts)||_.castOption(L.textfont.family,q.pts)||H.family,ee=_.castOption(L.insidetextfont.size,q.pts)||_.castOption(L.textfont.size,q.pts)||H.size;return{color:V||u.contrast(q.color),family:te,size:ee}}function S(L,q){for(var H,V,te=0;tewe&&we>Ae||ke=-4;Te-=2)Se(Math.PI*Te,"tan");for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+1),"tan")}if(re||le){for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+1.5),"rad");for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+.5),"rad")}}if(Q||se||re){var Oe=Math.sqrt(L.width*L.width+L.height*L.height);if((ee={scale:te*V*2/Oe,rCenter:1-te,rotate:0}).textPosAngle=(q.startangle+q.stopangle)/2,ee.scale>=1)return ee;pe.push(ee)}(se||le)&&((ee=P(L,V,U,Y,Z)).textPosAngle=(q.startangle+q.stopangle)/2,pe.push(ee)),(se||ie)&&((ee=D(L,V,U,Y,Z)).textPosAngle=(q.startangle+q.stopangle)/2,pe.push(ee));for(var Me=0,ce=0,ye=0;ye=1)break}return pe[Me]}function P(L,q,H,V,te){q=Math.max(0,q-2*x);var ee=L.width/L.height,U=F(ee,V,q,H);return{scale:2*U/L.height,rCenter:O(ee,U/q),rotate:R(te)}}function D(L,q,H,V,te){q=Math.max(0,q-2*x);var ee=L.height/L.width,U=F(ee,V,q,H);return{scale:2*U/L.width,rCenter:O(ee,U/q),rotate:R(te+Math.PI/2)}}function O(L,q){return Math.cos(q)-L*q}function R(L){return(180/Math.PI*L+720)%180-90}function F(L,q,H,V){var te=L+1/(2*Math.tan(q));return H*Math.min(1/(Math.sqrt(te*te+.5)+te),V/(Math.sqrt(L*L+V/2)+L))}function A(L,q){return L.v!==q.vTotal||q.trace.hole?Math.min(1/(1+1/Math.sin(L.halfangle)),L.ring/2):1}function z(L,q){var H=q.pxmid[0],V=q.pxmid[1],te=L.width/2,ee=L.height/2;return H<0&&(te*=-1),V<0&&(ee*=-1),{scale:1,rCenter:1,rotate:0,x:te+Math.abs(ee)*(te>0?1:-1)/2,y:ee/(1+H*H/(V*V)),outside:!0}}function B(L,q){var H,V,te,ee=L.trace,U={x:L.cx,y:L.cy},Q={tx:0,ty:0};Q.ty+=ee.title.font.size,te=j(ee),ee.title.position.indexOf("top")!==-1?(U.y-=(1+te)*L.r,Q.ty-=L.titleBox.height):ee.title.position.indexOf("bottom")!==-1&&(U.y+=(1+te)*L.r);var Y,Z=L.r/((Y=L.trace.aspectratio)===void 0?1:Y),X=q.w*(ee.domain.x[1]-ee.domain.x[0])/2;return ee.title.position.indexOf("left")!==-1?(X+=Z,U.x-=(1+te)*Z,Q.tx+=L.titleBox.width/2):ee.title.position.indexOf("center")!==-1?X*=2:ee.title.position.indexOf("right")!==-1&&(X+=Z,U.x+=(1+te)*Z,Q.tx-=L.titleBox.width/2),H=X/L.titleBox.width,V=$(L,q)/L.titleBox.height,{x:U.x,y:U.y,scale:Math.min(H,V),tx:Q.tx,ty:Q.ty}}function $(L,q){var H=L.trace,V=q.h*(H.domain.y[1]-H.domain.y[0]);return Math.min(L.titleBox.height,V/2)}function j(L){var q,H=L.pull;if(!H)return 0;if(Array.isArray(H))for(H=0,q=0;qH&&(H=L.pull[q]);return H}function N(L,q){for(var H=[],V=0;V1?ye=(ce=le.r)/pe.aspectratio:ce=(ye=le.r)*pe.aspectratio,Me=(ce*=(1+pe.baseratio)/2)*ye}Se=Math.min(Se,Me/le.vTotal)}for(se=0;se")}if(ee){var Te=h.castOption(te,q.i,"texttemplate");if(Te){var Se=function(Me){return{label:Me.label,value:Me.v,valueLabel:_.formatPieValue(Me.v,V.separators),percent:Me.v/H.vTotal,percentLabel:_.formatPiePercent(Me.v/H.vTotal,V.separators),color:Me.color,text:Me.text,customdata:h.castOption(te,Me.i,"customdata")}}(q),Oe=_.getFirstFilled(te.text,q.pts);(k(Oe)||Oe==="")&&(Se.text=Oe),q.text=h.texttemplateString(Te,Se,L._fullLayout._d3locale,Se,te._meta||{})}else q.text=""}}function G(L,q){var H=L.rotate*Math.PI/180,V=Math.cos(H),te=Math.sin(H),ee=(q.left+q.right)/2,U=(q.top+q.bottom)/2;L.textX=ee*V-U*te,L.textY=ee*te+U*V,L.noCenter=!0}o.exports={plot:function(L,q){var H=L._context.staticPlot,V=L._fullLayout,te=V._size;b("pie",V),S(q,L),N(q,te);var ee=h.makeTraceGroups(V._pielayer,q,"trace").each(function(U){var Q=l.select(this),Y=U[0],Z=Y.trace;(function(X){var re,ie,le,se=X[0],pe=se.r,Te=se.trace,Se=_.getRotationAngle(Te.rotation),Oe=2*Math.PI/se.vTotal,Me="px0",ce="px1";if(Te.direction==="counterclockwise"){for(re=0;rese.vTotal/2?1:0,ie.halfangle=Math.PI*Math.min(ie.v/se.vTotal,.5),ie.ring=1-Te.hole,ie.rInscribed=A(ie,se))})(U),Q.attr("stroke-linejoin","round"),Q.each(function(){var X=l.select(this).selectAll("g.slice").data(U);X.enter().append("g").classed("slice",!0),X.exit().remove();var re=[[[],[]],[[],[]]],ie=!1;X.each(function(ce,ye){if(ce.hidden)l.select(this).selectAll("path,g").remove();else{ce.pointNumber=ce.i,ce.curveNumber=Z.index,re[ce.pxmid[1]<0?0:1][ce.pxmid[0]<0?0:1].push(ce);var J=Y.cx,ne=Y.cy,de=l.select(this),xe=de.selectAll("path.surface").data([ce]);if(xe.enter().append("path").classed("surface",!0).style({"pointer-events":H?"none":"all"}),de.call(T,L,U),Z.pull){var ue=+_.castOption(Z.pull,ce.pts)||0;ue>0&&(J+=ue*ce.pxmid[0],ne+=ue*ce.pxmid[1])}ce.cxFinal=J,ce.cyFinal=ne;var ge=Z.hole;if(ce.v===Y.vTotal){var be="M"+(J+ce.px0[0])+","+(ne+ce.px0[1])+De(ce.px0,ce.pxmid,!0,1)+De(ce.pxmid,ce.px0,!0,1)+"Z";ge?xe.attr("d","M"+(J+ge*ce.px0[0])+","+(ne+ge*ce.px0[1])+De(ce.px0,ce.pxmid,!1,ge)+De(ce.pxmid,ce.px0,!1,ge)+"Z"+be):xe.attr("d",be)}else{var we=De(ce.px0,ce.px1,!0,1);if(ge){var ke=1-ge;xe.attr("d","M"+(J+ge*ce.px1[0])+","+(ne+ge*ce.px1[1])+De(ce.px1,ce.px0,!1,ge)+"l"+ke*ce.px0[0]+","+ke*ce.px0[1]+we+"Z")}else xe.attr("d","M"+J+","+ne+"l"+ce.px0[0]+","+ce.px0[1]+we+"Z")}W(L,ce,Y);var Ae=_.castOption(Z.textposition,ce.pts),Ee=de.selectAll("g.slicetext").data(ce.text&&Ae!=="none"?[0]:[]);Ee.enter().append("g").classed("slicetext",!0),Ee.exit().remove(),Ee.each(function(){var Re=h.ensureSingle(l.select(this),"text","",function(ct){ct.attr("data-notex",1)}),Ie=h.ensureUniformFontSize(L,Ae==="outside"?function(ct,bt,ze){return{color:_.castOption(ct.outsidetextfont.color,bt.pts)||_.castOption(ct.textfont.color,bt.pts)||ze.color,family:_.castOption(ct.outsidetextfont.family,bt.pts)||_.castOption(ct.textfont.family,bt.pts)||ze.family,size:_.castOption(ct.outsidetextfont.size,bt.pts)||_.castOption(ct.textfont.size,bt.pts)||ze.size}}(Z,ce,V.font):M(Z,ce,V.font));Re.text(ce.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(d.font,Ie).call(y.convertToTspans,L);var Be,Ue=d.bBox(Re.node());if(Ae==="outside")Be=z(Ue,ce);else if(Be=C(Ue,ce,Y),Ae==="auto"&&Be.scale<1){var qe=h.ensureUniformFontSize(L,Z.outsidetextfont);Re.call(d.font,qe),Be=z(Ue=d.bBox(Re.node()),ce)}var Ye=Be.textPosAngle,at=Ye===void 0?ce.pxmid:E(Y.r,Ye);if(Be.targetX=J+at[0]*Be.rCenter+(Be.x||0),Be.targetY=ne+at[1]*Be.rCenter+(Be.y||0),G(Be,Ue),Be.outside){var lt=Be.targetY;ce.yLabelMin=lt-Ue.height/2,ce.yLabelMid=lt,ce.yLabelMax=lt+Ue.height/2,ce.labelExtraX=0,ce.labelExtraY=0,ie=!0}Be.fontSize=Ie.size,g(Z.type,Be,V),U[ye].transform=Be,h.setTransormAndDisplay(Re,Be)})}function De(Re,Ie,Be,Ue){var qe=Ue*(Ie[0]-Re[0]),Ye=Ue*(Ie[1]-Re[1]);return"a"+Ue*Y.r+","+Ue*Y.r+" 0 "+ce.largeArc+(Be?" 1 ":" 0 ")+qe+","+Ye}});var le=l.select(this).selectAll("g.titletext").data(Z.title.text?[0]:[]);if(le.enter().append("g").classed("titletext",!0),le.exit().remove(),le.each(function(){var ce,ye=h.ensureSingle(l.select(this),"text","",function(ne){ne.attr("data-notex",1)}),J=Z.title.text;Z._meta&&(J=h.templateString(J,Z._meta)),ye.text(J).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(d.font,Z.title.font).call(y.convertToTspans,L),ce=Z.title.position==="middle center"?function(ne){var de=Math.sqrt(ne.titleBox.width*ne.titleBox.width+ne.titleBox.height*ne.titleBox.height);return{x:ne.cx,y:ne.cy,scale:ne.trace.hole*ne.r*2/de,tx:0,ty:-ne.titleBox.height/2+ne.trace.title.font.size}}(Y):B(Y,te),ye.attr("transform",m(ce.x,ce.y)+p(Math.min(1,ce.scale))+m(ce.tx,ce.ty))}),ie&&function(ce,ye){var J,ne,de,xe,ue,ge,be,we,ke,Ae,Ee,De,Re;function Ie(Ye,at){return Ye.pxmid[1]-at.pxmid[1]}function Be(Ye,at){return at.pxmid[1]-Ye.pxmid[1]}function Ue(Ye,at){at||(at={});var lt,ct,bt,ze,Ne=at.labelExtraY+(ne?at.yLabelMax:at.yLabelMin),Qe=ne?Ye.yLabelMin:Ye.yLabelMax,it=ne?Ye.yLabelMax:Ye.yLabelMin,kt=Ye.cyFinal+ue(Ye.px0[1],Ye.px1[1]),Je=Ne-Qe;if(Je*be>0&&(Ye.labelExtraY=Je),Array.isArray(ye.pull))for(ct=0;ct=(_.castOption(ye.pull,bt.pts)||0)||((Ye.pxmid[1]-bt.pxmid[1])*be>0?(Je=bt.cyFinal+ue(bt.px0[1],bt.px1[1])-Qe-Ye.labelExtraY)*be>0&&(Ye.labelExtraY+=Je):(it+Ye.labelExtraY-kt)*be>0&&(lt=3*ge*Math.abs(ct-Ae.indexOf(Ye)),(ze=bt.cxFinal+xe(bt.px0[0],bt.px1[0])+lt-(Ye.cxFinal+Ye.pxmid[0])-Ye.labelExtraX)*ge>0&&(Ye.labelExtraX+=ze)))}for(ne=0;ne<2;ne++)for(de=ne?Ie:Be,ue=ne?Math.max:Math.min,be=ne?1:-1,J=0;J<2;J++){for(xe=J?Math.max:Math.min,ge=J?1:-1,(we=ce[ne][J]).sort(de),ke=ce[1-ne][J],Ae=ke.concat(we),De=[],Ee=0;EeMath.abs(we)?ue+="l"+we*J.pxmid[0]/J.pxmid[1]+","+we+"H"+(xe+J.labelExtraX+ge):ue+="l"+J.labelExtraX+","+be+"v"+(we-be)+"h"+ge}else ue+="V"+(J.yLabelMid+J.labelExtraY)+"h"+ge;h.ensureSingle(ne,"path","textline").call(u.stroke,ye.outsidetextfont.color).attr({"stroke-width":Math.min(2,ye.outsidetextfont.size/8),d:ue,fill:"none"})}else ne.select("path.textline").remove()})}(X,Z),ie&&Z.automargin){var se=d.bBox(Q.node()),pe=Z.domain,Te=te.w*(pe.x[1]-pe.x[0]),Se=te.h*(pe.y[1]-pe.y[0]),Oe=(.5*Te-Y.r)/te.w,Me=(.5*Se-Y.r)/te.h;f.autoMargin(L,"pie."+Z.uid+".automargin",{xl:pe.x[0]-Oe,xr:pe.x[1]+Oe,yb:pe.y[0]-Me,yt:pe.y[1]+Me,l:Math.max(Y.cx-Y.r-se.left,0),r:Math.max(se.right-(Y.cx+Y.r),0),b:Math.max(se.bottom-(Y.cy+Y.r),0),t:Math.max(Y.cy-Y.r-se.top,0),pad:5})}})});setTimeout(function(){ee.selectAll("tspan").each(function(){var U=l.select(this);U.attr("dy")&&U.attr("dy",U.attr("dy"))})},0)},formatSliceLabel:W,transformInsideText:C,determineInsideTextFont:M,positionTitleOutside:B,prerenderTitles:S,layoutAreas:N,attachFxHandlers:T,computeTransform:G}},68357:function(o,a,n){var l=n(39898),f=n(63463),s=n(72597).resizeText;o.exports=function(u){var d=u._fullLayout._pielayer.selectAll(".trace");s(u,d,"pie"),d.each(function(h){var p=h[0].trace,m=l.select(this);m.style({opacity:p.opacity}),m.selectAll("path.surface").each(function(y){l.select(this).call(f,y,p,u)})})}},63463:function(o,a,n){var l=n(7901),f=n(53581).castOption,s=n(22209);o.exports=function(u,d,h,p){var m=h.marker.line,y=f(m.color,d.pts)||l.defaultLine,v=f(m.width,d.pts)||0;u.call(s,d,h,p).style("stroke-width",v).call(l.stroke,y)}},75225:function(o,a,n){var l=n(71828);o.exports=function(f,s){for(var u=0;uM&&W[C].gap;)C--;for(D=W[C].s,S=W.length-1;S>C;S--)W[S].s=D;for(;MB[b]&&b=0;b--){var x=u[b];if(x.type==="scatter"&&x.xaxis===v.xaxis&&x.yaxis===v.yaxis){x.opacity=void 0;break}}}}}},17438:function(o,a,n){var l=n(71828),f=n(73972),s=n(82196),u=n(47581),d=n(34098),h=n(67513),p=n(73927),m=n(565),y=n(49508),v=n(11058),g=n(94039),b=n(82410),x=n(28908),_=n(71828).coercePattern;o.exports=function(w,k,T,M){function S(z,B){return l.coerce(w,k,s,z,B)}var C=h(w,k,M,S);if(C||(k.visible=!1),k.visible){p(w,k,M,S),S("xhoverformat"),S("yhoverformat");var P=m(w,k,M,S);M.scattermode==="group"&&k.orientation===void 0&&S("orientation","v");var D=!P&&C=Math.min(Te,Se)&&w<=Math.max(Te,Se)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Me=1-1/Oe,ce=Math.abs(x.c2p(pe.x)-w);return ce=Math.min(Te,Se)&&k<=Math.max(Te,Se)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Me=1-1/Oe,ce=Math.abs(_.c2p(pe.y)-k);return cele!=(ee=L[W][1])>=le&&(H=L[W-1][0],V=L[W][0],ee-te&&(q=H+(V-H)*(le-te)/(ee-te),Z=Math.min(Z,q),X=Math.max(X,q)));Z=Math.max(Z,0),X=Math.min(X,x._length);var se=d.defaultLine;return d.opacity(b.fillcolor)?se=b.fillcolor:d.opacity((b.line||{}).color)&&(se=b.line.color),l.extendFlat(p,{distance:p.maxHoverDistance,x0:Z,x1:X,y0:le,y1:le,color:se,hovertemplate:!1}),delete p.index,b.text&&!Array.isArray(b.text)?p.text=String(b.text):p.text=b.name,[p]}}}},67368:function(o,a,n){var l=n(34098);o.exports={hasLines:l.hasLines,hasMarkers:l.hasMarkers,hasText:l.hasText,isBubble:l.isBubble,attributes:n(82196),layoutAttributes:n(21479),supplyDefaults:n(17438),crossTraceDefaults:n(34936),supplyLayoutDefaults:n(79334),calc:n(47761).calc,crossTraceCalc:n(72626),arraysToCalcdata:n(75225),plot:n(32663),colorbar:n(4898),formatLabels:n(8225),style:n(16296).style,styleOnSelect:n(16296).styleOnSelect,hoverPoints:n(33720),selectPoints:n(98002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:n(93612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},21479:function(o){o.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},79334:function(o,a,n){var l=n(71828),f=n(21479);o.exports=function(s,u){var d,h=u.barmode==="group";u.scattermode==="group"&&(d=h?u.bargap:.2,l.coerce(s,u,f,"scattergap",d))}},11058:function(o,a,n){var l=n(71828).isArrayOrTypedArray,f=n(52075).hasColorscale,s=n(1586);o.exports=function(u,d,h,p,m,y){y||(y={});var v=(u.marker||{}).color;m("line.color",h),f(u,"line")?s(u,d,p,m,{prefix:"line.",cLetter:"c"}):m("line.color",!l(v)&&v||h),m("line.width"),y.noDash||m("line.dash"),y.backoff&&m("line.backoff")}},34621:function(o,a,n){var l=n(91424),f=n(50606),s=f.BADNUM,u=f.LOG_CLIP,d=u+.5,h=u-.5,p=n(71828),m=p.segmentsIntersect,y=p.constrain,v=n(47581);o.exports=function(g,b){var x,_,w,k,T,M,S,C,P,D,O,R,F,A,z,B,$,j,N=b.trace||{},E=b.xaxis,W=b.yaxis,G=E.type==="log",L=W.type==="log",q=E._length,H=W._length,V=b.backoff,te=N.marker,ee=b.connectGaps,U=b.baseTolerance,Q=b.shape,Y=Q==="linear",Z=N.fill&&N.fill!=="none",X=[],re=v.minTolerance,ie=g.length,le=new Array(ie),se=0;function pe(Je){var ut=g[Je];if(!ut)return!1;var pt=b.linearized?E.l2p(ut.x):E.c2p(ut.x),It=b.linearized?W.l2p(ut.y):W.c2p(ut.y);if(pt===s){if(G&&(pt=E.c2p(ut.x,!0)),pt===s)return!1;L&&It===s&&(pt*=Math.abs(E._m*H*(E._m>0?d:h)/(W._m*q*(W._m>0?d:h)))),pt*=1e3}if(It===s){if(L&&(It=W.c2p(ut.y,!0)),It===s)return!1;It*=1e3}return[pt,It]}function Te(Je,ut,pt,It){var Mt=pt-Je,zt=It-ut,wt=.5-Je,ve=.5-ut,_e=Mt*Mt+zt*zt,Ve=Mt*wt+zt*ve;if(Ve>0&&Ve<_e){var We=wt*zt-ve*Mt;if(We*We<_e)return!0}}function Se(Je,ut){var pt=Je[0]/q,It=Je[1]/H,Mt=Math.max(0,-pt,pt-1,-It,It-1);return Mt&&$!==void 0&&Te(pt,It,$,j)&&(Mt=0),Mt&&ut&&Te(pt,It,ut[0]/q,ut[1]/H)&&(Mt=0),(1+v.toleranceGrowth*Mt)*U}function Oe(Je,ut){var pt=Je[0]-ut[0],It=Je[1]-ut[1];return Math.sqrt(pt*pt+It*It)}var Me,ce,ye,J,ne,de,xe,ue=v.maxScreensAway,ge=-q*ue,be=q*(1+ue),we=-H*ue,ke=H*(1+ue),Ae=[[ge,we,be,we],[be,we,be,ke],[be,ke,ge,ke],[ge,ke,ge,we]];function Ee(Je){if(Je[0]be||Je[1]ke)return[y(Je[0],ge,be),y(Je[1],we,ke)]}function De(Je,ut){return Je[0]===ut[0]&&(Je[0]===ge||Je[0]===be)||Je[1]===ut[1]&&(Je[1]===we||Je[1]===ke)||void 0}function Re(Je,ut,pt){return function(It,Mt){var zt=Ee(It),wt=Ee(Mt),ve=[];if(zt&&wt&&De(zt,wt))return ve;zt&&ve.push(zt),wt&&ve.push(wt);var _e=2*p.constrain((It[Je]+Mt[Je])/2,ut,pt)-((zt||It)[Je]+(wt||Mt)[Je]);return _e&&((zt&&wt?_e>0==zt[Je]>wt[Je]?zt:wt:zt||wt)[Je]+=_e),ve}}function Ie(Je){var ut=Je[0],pt=Je[1],It=ut===le[se-1][0],Mt=pt===le[se-1][1];if(!It||!Mt)if(se>1){var zt=ut===le[se-2][0],wt=pt===le[se-2][1];It&&(ut===ge||ut===be)&&zt?wt?se--:le[se-1]=Je:Mt&&(pt===we||pt===ke)&&wt?zt?se--:le[se-1]=Je:le[se++]=Je}else le[se++]=Je}function Be(Je){le[se-1][0]!==Je[0]&&le[se-1][1]!==Je[1]&&Ie([ye,J]),Ie(Je),ne=null,ye=J=0}Q==="linear"||Q==="spline"?xe=function(Je,ut){for(var pt=[],It=0,Mt=0;Mt<4;Mt++){var zt=Ae[Mt],wt=m(Je[0],Je[1],ut[0],ut[1],zt[0],zt[1],zt[2],zt[3]);wt&&(!It||Math.abs(wt.x-pt[0][0])>1||Math.abs(wt.y-pt[0][1])>1)&&(wt=[wt.x,wt.y],It&&Oe(wt,Je)be?be:0,ce=Je[1]ke?ke:0,Me||ce){if(se)if(ne){var ut=xe(ne,Je);ut.length>1&&(Be(ut[0]),le[se++]=ut[1])}else de=xe(le[se-1],Je)[0],le[se++]=de;else le[se++]=[Me||Je[0],ce||Je[1]];var pt=le[se-1];Me&&ce&&(pt[0]!==Me||pt[1]!==ce)?(ne&&(ye!==Me&&J!==ce?Ie(ye&&J?(It=ne,zt=(Mt=Je)[0]-It[0],wt=(Mt[1]-It[1])/zt,(It[1]*Mt[0]-Mt[1]*It[0])/zt>0?[wt>0?ge:be,ke]:[wt>0?be:ge,we]):[ye||Me,J||ce]):ye&&J&&Ie([ye,J])),Ie([Me,ce])):ye-Me&&J-ce&&Ie([Me||ye,ce||J]),ne=Je,ye=Me,J=ce}else ne&&Be(xe(ne,Je)[0]),le[se++]=Je;var It,Mt,zt,wt}for(x=0;xSe(M,Ye))break;w=M,(F=P[0]*C[0]+P[1]*C[1])>O?(O=F,k=M,S=!1):F=g.length||!M)break;qe(M),_=M}}else qe(k)}ne&&Ie([ye||ne[0],J||ne[1]]),X.push(le.slice(0,se))}var at=Q.slice(Q.length-1);if(V&&at!=="h"&&at!=="v"){for(var lt=!1,ct=-1,bt=[],ze=0;ze=0?p=b:(p=b=g,g++),p0?Math.max(y,h):0}}},4898:function(o){o.exports={container:"marker",min:"cmin",max:"cmax"}},49508:function(o,a,n){var l=n(7901),f=n(52075).hasColorscale,s=n(1586),u=n(34098);o.exports=function(d,h,p,m,y,v){var g=u.isBubble(d),b=(d.line||{}).color;v=v||{},b&&(p=b),y("marker.symbol"),y("marker.opacity",g?.7:1),y("marker.size"),v.noAngle||(y("marker.angle"),v.noAngleRef||y("marker.angleref"),v.noStandOff||y("marker.standoff")),y("marker.color",p),f(d,"marker")&&s(d,h,m,y,{prefix:"marker.",cLetter:"c"}),v.noSelect||(y("selected.marker.color"),y("unselected.marker.color"),y("selected.marker.size"),y("unselected.marker.size")),v.noLine||(y("marker.line.color",b&&!Array.isArray(b)&&h.marker.color!==b?b:g?l.background:l.defaultLine),f(d,"marker.line")&&s(d,h,m,y,{prefix:"marker.line.",cLetter:"c"}),y("marker.line.width",g?1:0)),g&&(y("marker.sizeref"),y("marker.sizemin"),y("marker.sizemode")),v.gradient&&y("marker.gradient.type")!=="none"&&y("marker.gradient.color")}},73927:function(o,a,n){var l=n(71828).dateTick0,f=n(50606).ONEWEEK;function s(u,d){return l(d,u%f==0?1:0)}o.exports=function(u,d,h,p,m){if(m||(m={x:!0,y:!0}),m.x){var y=p("xperiod");y&&(p("xperiod0",s(y,d.xcalendar)),p("xperiodalignment"))}if(m.y){var v=p("yperiod");v&&(p("yperiod0",s(v,d.ycalendar)),p("yperiodalignment"))}}},32663:function(o,a,n){var l=n(39898),f=n(73972),s=n(71828),u=s.ensureSingle,d=s.identity,h=n(91424),p=n(34098),m=n(34621),y=n(68687),v=n(61082).tester;function g(b,x,_,w,k,T,M){var S,C=b._context.staticPlot;(function(xe,ue,ge,be,we){var ke=ge.xaxis,Ae=ge.yaxis,Ee=l.extent(s.simpleMap(ke.range,ke.r2c)),De=l.extent(s.simpleMap(Ae.range,Ae.r2c)),Re=be[0].trace;if(p.hasMarkers(Re)){var Ie=Re.marker.maxdisplayed;if(Ie!==0){var Be=be.filter(function(at){return at.x>=Ee[0]&&at.x<=Ee[1]&&at.y>=De[0]&&at.y<=De[1]}),Ue=Math.ceil(Be.length/Ie),qe=0;we.forEach(function(at,lt){var ct=at[0].trace;p.hasMarkers(ct)&&ct.marker.maxdisplayed>0&<0;function D(xe){return P?xe.transition():xe}var O=_.xaxis,R=_.yaxis,F=w[0].trace,A=F.line,z=l.select(T),B=u(z,"g","errorbars"),$=u(z,"g","lines"),j=u(z,"g","points"),N=u(z,"g","text");if(f.getComponentMethod("errorbars","plot")(b,B,_,M),F.visible===!0){var E,W;D(z).style("opacity",F.opacity);var G=F.fill.charAt(F.fill.length-1);G!=="x"&&G!=="y"&&(G=""),w[0][_.isRangePlot?"nodeRangePlot3":"node3"]=z;var L,q,H="",V=[],te=F._prevtrace;te&&(H=te._prevRevpath||"",W=te._nextFill,V=te._polygons);var ee,U,Q,Y,Z,X,re,ie="",le="",se=[],pe=s.noop;if(E=F._ownFill,p.hasLines(F)||F.fill!=="none"){for(W&&W.datum(w),["hv","vh","hvh","vhv"].indexOf(A.shape)!==-1?(ee=h.steps(A.shape),U=h.steps(A.shape.split("").reverse().join(""))):ee=U=A.shape==="spline"?function(xe){var ue=xe[xe.length-1];return xe.length>1&&xe[0][0]===ue[0]&&xe[0][1]===ue[1]?h.smoothclosed(xe.slice(1),A.smoothing):h.smoothopen(xe,A.smoothing)}:function(xe){return"M"+xe.join("L")},Q=function(xe){return U(xe.reverse())},se=m(w,{xaxis:O,yaxis:R,trace:F,connectGaps:F.connectgaps,baseTolerance:Math.max(A.width||1,3)/4,shape:A.shape,backoff:A.backoff,simplify:A.simplify,fill:F.fill}),re=F._polygons=new Array(se.length),S=0;S0,D=y(b,x,_);(M=w.selectAll("g.trace").data(D,function(O){return O[0].trace.uid})).enter().append("g").attr("class",function(O){return"trace scatter trace"+O[0].trace.uid}).style("stroke-miterlimit",2),M.order(),function(O,R,F){R.each(function(A){var z=u(l.select(this),"g","fills");h.setClipUrl(z,F.layerClipId,O);var B=A[0].trace,$=[];B._ownfill&&$.push("_ownFill"),B._nexttrace&&$.push("_nextFill");var j=z.selectAll("g").data($,d);j.enter().append("g"),j.exit().each(function(N){B[N]=null}).remove(),j.order().each(function(N){B[N]=u(l.select(this),"path","js-fill")})})}(b,M,x),P?(T&&(S=T()),l.transition().duration(k.duration).ease(k.easing).each("end",function(){S&&S()}).each("interrupt",function(){S&&S()}).each(function(){w.selectAll("g.trace").each(function(O,R){g(b,R,x,O,D,this,k)})})):M.each(function(O,R){g(b,R,x,O,D,this,k)}),C&&M.exit().remove(),w.selectAll("path:not([d])").remove()}},98002:function(o,a,n){var l=n(34098);o.exports=function(f,s){var u,d,h,p,m=f.cd,y=f.xaxis,v=f.yaxis,g=[],b=m[0].trace;if(!l.hasMarkers(b)&&!l.hasText(b))return[];if(s===!1)for(u=0;u"),p.hovertemplate=x.hovertemplate,h}function C(P,D){M.push(P._hovertitle+": "+D)}}},52979:function(o,a,n){o.exports={attributes:n(50413),supplyDefaults:n(46008),colorbar:n(4898),formatLabels:n(93645),calc:n(54337),plot:n(7507),style:n(16296).style,styleOnSelect:n(16296).styleOnSelect,hoverPoints:n(47250),selectPoints:n(98002),eventData:n(4524),moduleType:"trace",name:"scatterternary",basePlotModule:n(61639),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},7507:function(o,a,n){var l=n(32663);o.exports=function(f,s,u){var d=s.plotContainer;d.select(".scatterlayer").selectAll("*").remove();for(var h=s.xaxis,p=s.yaxis,m={xaxis:h,yaxis:p,plot:d,layerClipId:s._hasClipOnAxisFalse?s.clipIdRelative:null},y=s.layers.frontplot.select("g.scatterlayer"),v=0;v0){var P,D,O,R,F,A=h.xa,z=h.ya;w.orientation==="h"?(F=p,P="y",O=z,D="x",R=A):(F=m,P="x",O=A,D="y",R=z);var B=_[h.index];if(F>=B.span[0]&&F<=B.span[1]){var $=f.extendFlat({},h),j=R.c2p(F,!0),N=d.getKdeValue(B,w,F),E=d.getPositionOnKdePath(B,w,j),W=O._offset,G=O._length;$[P+"0"]=E[0],$[P+"1"]=E[1],$[D+"0"]=$[D+"1"]=j,$[D+"Label"]=D+": "+s.hoverLabelText(R,F,w[D+"hoverformat"])+", "+_[0].t.labels.kde+" "+N.toFixed(3);for(var L=0,q=0;qj&&(j=G,N=W)}}return j?A(N):d};case"rms":return function(z,B){for(var $=0,j=0,N=0;N":return function(V){return H(V)>L};case">=":return function(V){return H(V)>=L};case"[]":return function(V){var te=H(V);return te>=L[0]&&te<=L[1]};case"()":return function(V){var te=H(V);return te>L[0]&&te=L[0]&&teL[0]&&te<=L[1]};case"][":return function(V){var te=H(V);return te<=L[0]||te>=L[1]};case")(":return function(V){var te=H(V);return teL[1]};case"](":return function(V){var te=H(V);return te<=L[0]||te>L[1]};case")[":return function(V){var te=H(V);return te=L[1]};case"{}":return function(V){return L.indexOf(H(V))!==-1};case"}{":return function(V){return L.indexOf(H(V))===-1}}}(g,s.getDataToCoordFunc(y,v,x,b),w),D={},O={},R=0;T?(S=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set(new Array(_))},C=function(B,$){var j=D[B.astr][$];B.get()[$]=j}):(S=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set([])},C=function(B,$){var j=D[B.astr][$];B.get().push(j)}),z(S);for(var F=u(v.transforms,g),A=0;A<_;A++)P(b[A])?(z(C,A),O[R++]=F(A)):T&&R++;g._indexToPoints=O,v._length=R}}function z(B,$){for(var j=0;j1?"%{group} (%{trace})":"%{group}");var b=h.styles,x=v.styles=[];if(b)for(y=0;yy)throw new RangeError('The value "'+J+'" is invalid for option "size"');var ne=new Uint8Array(J);return Object.setPrototypeOf(ne,g.prototype),ne}function g(J,ne,de){if(typeof J=="number"){if(typeof ne=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(J)}return b(J,ne,de)}function b(J,ne,de){if(typeof J=="string")return function(ge,be){if(typeof be=="string"&&be!==""||(be="utf8"),!g.isEncoding(be))throw new TypeError("Unknown encoding: "+be);var we=0|M(ge,be),ke=v(we),Ae=ke.write(ge,be);return Ae!==we&&(ke=ke.slice(0,Ae)),ke}(J,ne);if(ArrayBuffer.isView(J))return function(ge){if(Se(ge,Uint8Array)){var be=new Uint8Array(ge);return k(be.buffer,be.byteOffset,be.byteLength)}return w(ge)}(J);if(J==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+d(J));if(Se(J,ArrayBuffer)||J&&Se(J.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(J,SharedArrayBuffer)||J&&Se(J.buffer,SharedArrayBuffer)))return k(J,ne,de);if(typeof J=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var xe=J.valueOf&&J.valueOf();if(xe!=null&&xe!==J)return g.from(xe,ne,de);var ue=function(ge){if(g.isBuffer(ge)){var be=0|T(ge.length),we=v(be);return we.length===0||ge.copy(we,0,0,be),we}return ge.length!==void 0?typeof ge.length!="number"||Oe(ge.length)?v(0):w(ge):ge.type==="Buffer"&&Array.isArray(ge.data)?w(ge.data):void 0}(J);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof J[Symbol.toPrimitive]=="function")return g.from(J[Symbol.toPrimitive]("string"),ne,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+d(J))}function x(J){if(typeof J!="number")throw new TypeError('"size" argument must be of type number');if(J<0)throw new RangeError('The value "'+J+'" is invalid for option "size"')}function _(J){return x(J),v(J<0?0:0|T(J))}function w(J){for(var ne=J.length<0?0:0|T(J.length),de=v(ne),xe=0;xe=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return 0|J}function M(J,ne){if(g.isBuffer(J))return J.length;if(ArrayBuffer.isView(J)||Se(J,ArrayBuffer))return J.byteLength;if(typeof J!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+d(J));var de=J.length,xe=arguments.length>2&&arguments[2]===!0;if(!xe&&de===0)return 0;for(var ue=!1;;)switch(ne){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return se(J).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*de;case"hex":return de>>>1;case"base64":return pe(J).length;default:if(ue)return xe?-1:se(J).length;ne=(""+ne).toLowerCase(),ue=!0}}function S(J,ne,de){var xe=!1;if((ne===void 0||ne<0)&&(ne=0),ne>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0)<=(ne>>>=0))return"";for(J||(J="utf8");;)switch(J){case"hex":return W(this,ne,de);case"utf8":case"utf-8":return $(this,ne,de);case"ascii":return N(this,ne,de);case"latin1":case"binary":return E(this,ne,de);case"base64":return B(this,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,ne,de);default:if(xe)throw new TypeError("Unknown encoding: "+J);J=(J+"").toLowerCase(),xe=!0}}function C(J,ne,de){var xe=J[ne];J[ne]=J[de],J[de]=xe}function P(J,ne,de,xe,ue){if(J.length===0)return-1;if(typeof de=="string"?(xe=de,de=0):de>2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),Oe(de=+de)&&(de=ue?0:J.length-1),de<0&&(de=J.length+de),de>=J.length){if(ue)return-1;de=J.length-1}else if(de<0){if(!ue)return-1;de=0}if(typeof ne=="string"&&(ne=g.from(ne,xe)),g.isBuffer(ne))return ne.length===0?-1:D(J,ne,de,xe,ue);if(typeof ne=="number")return ne&=255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(J,ne,de):Uint8Array.prototype.lastIndexOf.call(J,ne,de):D(J,[ne],de,xe,ue);throw new TypeError("val must be string, number or Buffer")}function D(J,ne,de,xe,ue){var ge,be=1,we=J.length,ke=ne.length;if(xe!==void 0&&((xe=String(xe).toLowerCase())==="ucs2"||xe==="ucs-2"||xe==="utf16le"||xe==="utf-16le")){if(J.length<2||ne.length<2)return-1;be=2,we/=2,ke/=2,de/=2}function Ae(Ie,Be){return be===1?Ie[Be]:Ie.readUInt16BE(Be*be)}if(ue){var Ee=-1;for(ge=de;gewe&&(de=we-ke),ge=de;ge>=0;ge--){for(var De=!0,Re=0;Reue&&(xe=ue):xe=ue;var ge,be=ne.length;for(xe>be/2&&(xe=be/2),ge=0;ge>8,ke=be%256,Ae.push(ke),Ae.push(we);return Ae}(ne,J.length-de),J,de,xe)}function B(J,ne,de){return ne===0&&de===J.length?h.fromByteArray(J):h.fromByteArray(J.slice(ne,de))}function $(J,ne,de){de=Math.min(J.length,de);for(var xe=[],ue=ne;ue239?4:ge>223?3:ge>191?2:1;if(ue+we<=de){var ke=void 0,Ae=void 0,Ee=void 0,De=void 0;switch(we){case 1:ge<128&&(be=ge);break;case 2:(192&(ke=J[ue+1]))==128&&(De=(31&ge)<<6|63&ke)>127&&(be=De);break;case 3:ke=J[ue+1],Ae=J[ue+2],(192&ke)==128&&(192&Ae)==128&&(De=(15&ge)<<12|(63&ke)<<6|63&Ae)>2047&&(De<55296||De>57343)&&(be=De);break;case 4:ke=J[ue+1],Ae=J[ue+2],Ee=J[ue+3],(192&ke)==128&&(192&Ae)==128&&(192&Ee)==128&&(De=(15&ge)<<18|(63&ke)<<12|(63&Ae)<<6|63&Ee)>65535&&De<1114112&&(be=De)}}be===null?(be=65533,we=1):be>65535&&(be-=65536,xe.push(be>>>10&1023|55296),be=56320|1023&be),xe.push(be),ue+=we}return function(Re){var Ie=Re.length;if(Ie<=j)return String.fromCharCode.apply(String,Re);for(var Be="",Ue=0;Ue"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}}),g.poolSize=8192,g.from=function(J,ne,de){return b(J,ne,de)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array),g.alloc=function(J,ne,de){return function(xe,ue,ge){return x(xe),xe<=0?v(xe):ue!==void 0?typeof ge=="string"?v(xe).fill(ue,ge):v(xe).fill(ue):v(xe)}(J,ne,de)},g.allocUnsafe=function(J){return _(J)},g.allocUnsafeSlow=function(J){return _(J)},g.isBuffer=function(J){return J!=null&&J._isBuffer===!0&&J!==g.prototype},g.compare=function(J,ne){if(Se(J,Uint8Array)&&(J=g.from(J,J.offset,J.byteLength)),Se(ne,Uint8Array)&&(ne=g.from(ne,ne.offset,ne.byteLength)),!g.isBuffer(J)||!g.isBuffer(ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(J===ne)return 0;for(var de=J.length,xe=ne.length,ue=0,ge=Math.min(de,xe);uexe.length?(g.isBuffer(ge)||(ge=g.from(ge)),ge.copy(xe,ue)):Uint8Array.prototype.set.call(xe,ge,ue);else{if(!g.isBuffer(ge))throw new TypeError('"list" argument must be an Array of Buffers');ge.copy(xe,ue)}ue+=ge.length}return xe},g.byteLength=M,g.prototype._isBuffer=!0,g.prototype.swap16=function(){var J=this.length;if(J%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(J+=" ... "),""},m&&(g.prototype[m]=g.prototype.inspect),g.prototype.compare=function(J,ne,de,xe,ue){if(Se(J,Uint8Array)&&(J=g.from(J,J.offset,J.byteLength)),!g.isBuffer(J))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+d(J));if(ne===void 0&&(ne=0),de===void 0&&(de=J?J.length:0),xe===void 0&&(xe=0),ue===void 0&&(ue=this.length),ne<0||de>J.length||xe<0||ue>this.length)throw new RangeError("out of range index");if(xe>=ue&&ne>=de)return 0;if(xe>=ue)return-1;if(ne>=de)return 1;if(this===J)return 0;for(var ge=(ue>>>=0)-(xe>>>=0),be=(de>>>=0)-(ne>>>=0),we=Math.min(ge,be),ke=this.slice(xe,ue),Ae=J.slice(ne,de),Ee=0;Ee>>=0,isFinite(de)?(de>>>=0,xe===void 0&&(xe="utf8")):(xe=de,de=void 0)}var ue=this.length-ne;if((de===void 0||de>ue)&&(de=ue),J.length>0&&(de<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");xe||(xe="utf8");for(var ge=!1;;)switch(xe){case"hex":return O(this,J,ne,de);case"utf8":case"utf-8":return R(this,J,ne,de);case"ascii":case"latin1":case"binary":return F(this,J,ne,de);case"base64":return A(this,J,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,J,ne,de);default:if(ge)throw new TypeError("Unknown encoding: "+xe);xe=(""+xe).toLowerCase(),ge=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function N(J,ne,de){var xe="";de=Math.min(J.length,de);for(var ue=ne;uexe)&&(de=xe);for(var ue="",ge=ne;gede)throw new RangeError("Trying to access beyond buffer length")}function q(J,ne,de,xe,ue,ge){if(!g.isBuffer(J))throw new TypeError('"buffer" argument must be a Buffer instance');if(ne>ue||neJ.length)throw new RangeError("Index out of range")}function H(J,ne,de,xe,ue){X(ne,xe,ue,J,de,7);var ge=Number(ne&BigInt(4294967295));J[de++]=ge,ge>>=8,J[de++]=ge,ge>>=8,J[de++]=ge,ge>>=8,J[de++]=ge;var be=Number(ne>>BigInt(32)&BigInt(4294967295));return J[de++]=be,be>>=8,J[de++]=be,be>>=8,J[de++]=be,be>>=8,J[de++]=be,de}function V(J,ne,de,xe,ue){X(ne,xe,ue,J,de,7);var ge=Number(ne&BigInt(4294967295));J[de+7]=ge,ge>>=8,J[de+6]=ge,ge>>=8,J[de+5]=ge,ge>>=8,J[de+4]=ge;var be=Number(ne>>BigInt(32)&BigInt(4294967295));return J[de+3]=be,be>>=8,J[de+2]=be,be>>=8,J[de+1]=be,be>>=8,J[de]=be,de+8}function te(J,ne,de,xe,ue,ge){if(de+xe>J.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function ee(J,ne,de,xe,ue){return ne=+ne,de>>>=0,ue||te(J,0,de,4),p.write(J,ne,de,xe,23,4),de+4}function U(J,ne,de,xe,ue){return ne=+ne,de>>>=0,ue||te(J,0,de,8),p.write(J,ne,de,xe,52,8),de+8}g.prototype.slice=function(J,ne){var de=this.length;(J=~~J)<0?(J+=de)<0&&(J=0):J>de&&(J=de),(ne=ne===void 0?de:~~ne)<0?(ne+=de)<0&&(ne=0):ne>de&&(ne=de),ne>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J],ue=1,ge=0;++ge>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J+--ne],ue=1;ne>0&&(ue*=256);)xe+=this[J+--ne]*ue;return xe},g.prototype.readUint8=g.prototype.readUInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),this[J]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]|this[J+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]<<8|this[J+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+16777216*this[J+3]},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),16777216*this[J]+(this[J+1]<<16|this[J+2]<<8|this[J+3])},g.prototype.readBigUInt64LE=ce(function(J){re(J>>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=ne+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,24),ue=this[++J]+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+de*Math.pow(2,24);return BigInt(xe)+(BigInt(ue)<>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=ne*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J],ue=this[++J]*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+de;return(BigInt(xe)<>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J],ue=1,ge=0;++ge=(ue*=128)&&(xe-=Math.pow(2,8*ne)),xe},g.prototype.readIntBE=function(J,ne,de){J>>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=ne,ue=1,ge=this[J+--xe];xe>0&&(ue*=256);)ge+=this[J+--xe]*ue;return ge>=(ue*=128)&&(ge-=Math.pow(2,8*ne)),ge},g.prototype.readInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),128&this[J]?-1*(255-this[J]+1):this[J]},g.prototype.readInt16LE=function(J,ne){J>>>=0,ne||L(J,2,this.length);var de=this[J]|this[J+1]<<8;return 32768&de?4294901760|de:de},g.prototype.readInt16BE=function(J,ne){J>>>=0,ne||L(J,2,this.length);var de=this[J+1]|this[J]<<8;return 32768&de?4294901760|de:de},g.prototype.readInt32LE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},g.prototype.readInt32BE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},g.prototype.readBigInt64LE=ce(function(J){re(J>>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=this[J+4]+this[J+5]*Math.pow(2,8)+this[J+6]*Math.pow(2,16)+(de<<24);return(BigInt(xe)<>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=(ne<<24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J];return(BigInt(xe)<>>=0,ne||L(J,4,this.length),p.read(this,J,!0,23,4)},g.prototype.readFloatBE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),p.read(this,J,!1,23,4)},g.prototype.readDoubleLE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!0,52,8)},g.prototype.readDoubleBE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!1,52,8)},g.prototype.writeUintLE=g.prototype.writeUIntLE=function(J,ne,de,xe){J=+J,ne>>>=0,de>>>=0,xe||q(this,J,ne,de,Math.pow(2,8*de)-1,0);var ue=1,ge=0;for(this[ne]=255&J;++ge>>=0,de>>>=0,xe||q(this,J,ne,de,Math.pow(2,8*de)-1,0);var ue=de-1,ge=1;for(this[ne+ue]=255&J;--ue>=0&&(ge*=256);)this[ne+ue]=J/ge&255;return ne+de},g.prototype.writeUint8=g.prototype.writeUInt8=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,1,255,0),this[ne]=255&J,ne+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,65535,0),this[ne]=255&J,this[ne+1]=J>>>8,ne+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,65535,0),this[ne]=J>>>8,this[ne+1]=255&J,ne+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,4294967295,0),this[ne+3]=J>>>24,this[ne+2]=J>>>16,this[ne+1]=J>>>8,this[ne]=255&J,ne+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,4294967295,0),this[ne]=J>>>24,this[ne+1]=J>>>16,this[ne+2]=J>>>8,this[ne+3]=255&J,ne+4},g.prototype.writeBigUInt64LE=ce(function(J){return H(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(J,ne,de,xe){if(J=+J,ne>>>=0,!xe){var ue=Math.pow(2,8*de-1);q(this,J,ne,de,ue-1,-ue)}var ge=0,be=1,we=0;for(this[ne]=255&J;++ge>0)-we&255;return ne+de},g.prototype.writeIntBE=function(J,ne,de,xe){if(J=+J,ne>>>=0,!xe){var ue=Math.pow(2,8*de-1);q(this,J,ne,de,ue-1,-ue)}var ge=de-1,be=1,we=0;for(this[ne+ge]=255&J;--ge>=0&&(be*=256);)J<0&&we===0&&this[ne+ge+1]!==0&&(we=1),this[ne+ge]=(J/be>>0)-we&255;return ne+de},g.prototype.writeInt8=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,1,127,-128),J<0&&(J=255+J+1),this[ne]=255&J,ne+1},g.prototype.writeInt16LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,32767,-32768),this[ne]=255&J,this[ne+1]=J>>>8,ne+2},g.prototype.writeInt16BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,32767,-32768),this[ne]=J>>>8,this[ne+1]=255&J,ne+2},g.prototype.writeInt32LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,2147483647,-2147483648),this[ne]=255&J,this[ne+1]=J>>>8,this[ne+2]=J>>>16,this[ne+3]=J>>>24,ne+4},g.prototype.writeInt32BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),this[ne]=J>>>24,this[ne+1]=J>>>16,this[ne+2]=J>>>8,this[ne+3]=255&J,ne+4},g.prototype.writeBigInt64LE=ce(function(J){return H(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeFloatLE=function(J,ne,de){return ee(this,J,ne,!0,de)},g.prototype.writeFloatBE=function(J,ne,de){return ee(this,J,ne,!1,de)},g.prototype.writeDoubleLE=function(J,ne,de){return U(this,J,ne,!0,de)},g.prototype.writeDoubleBE=function(J,ne,de){return U(this,J,ne,!1,de)},g.prototype.copy=function(J,ne,de,xe){if(!g.isBuffer(J))throw new TypeError("argument should be a Buffer");if(de||(de=0),xe||xe===0||(xe=this.length),ne>=J.length&&(ne=J.length),ne||(ne=0),xe>0&&xe=this.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("sourceEnd out of bounds");xe>this.length&&(xe=this.length),J.length-ne>>=0,de=de===void 0?this.length:de>>>0,J||(J=0),typeof J=="number")for(ge=ne;ge"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Ee,De=u(be);if(we){var Re=u(this).constructor;Ee=Reflect.construct(De,arguments,Re)}else Ee=De.apply(this,arguments);return function(Ie,Be){if(Be&&(d(Be)==="object"||typeof Be=="function"))return Be;if(Be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(Ie)}(this,Ee)});function Ae(){var Ee;return function(De,Re){if(!(De instanceof Re))throw new TypeError("Cannot call a class as a function")}(this,Ae),Ee=ke.call(this),Object.defineProperty(s(Ee),"message",{value:ne.apply(s(Ee),arguments),writable:!0,configurable:!0}),Ee.name="".concat(Ee.name," [").concat(J,"]"),Ee.stack,delete Ee.name,Ee}return ue=Ae,(ge=[{key:"code",get:function(){return J},set:function(Ee){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Ee,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(J,"]: ").concat(this.message)}}])&&l(ue.prototype,ge),Object.defineProperty(ue,"prototype",{writable:!1}),Ae}(de)}function Z(J){for(var ne="",de=J.length,xe=J[0]==="-"?1:0;de>=xe+4;de-=3)ne="_".concat(J.slice(de-3,de)).concat(ne);return"".concat(J.slice(0,de)).concat(ne)}function X(J,ne,de,xe,ue,ge){if(J>de||J= 0".concat(we," and < 2").concat(we," ** ").concat(8*(ge+1)).concat(we):">= -(2".concat(we," ** ").concat(8*(ge+1)-1).concat(we,") and < 2 ** ")+"".concat(8*(ge+1)-1).concat(we),new Q.ERR_OUT_OF_RANGE("value",be,J)}(function(ke,Ae,Ee){re(Ae,"offset"),ke[Ae]!==void 0&&ke[Ae+Ee]!==void 0||ie(Ae,ke.length-(Ee+1))})(xe,ue,ge)}function re(J,ne){if(typeof J!="number")throw new Q.ERR_INVALID_ARG_TYPE(ne,"number",J)}function ie(J,ne,de){throw Math.floor(J)!==J?(re(J,de),new Q.ERR_OUT_OF_RANGE("offset","an integer",J)):ne<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(ne),J)}Y("ERR_BUFFER_OUT_OF_BOUNDS",function(J){return J?"".concat(J," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),Y("ERR_INVALID_ARG_TYPE",function(J,ne){return'The "'.concat(J,'" argument must be of type number. Received type ').concat(d(ne))},TypeError),Y("ERR_OUT_OF_RANGE",function(J,ne,de){var xe='The value of "'.concat(J,'" is out of range.'),ue=de;return Number.isInteger(de)&&Math.abs(de)>Math.pow(2,32)?ue=Z(String(de)):typeof de=="bigint"&&(ue=String(de),(de>Math.pow(BigInt(2),BigInt(32))||de<-Math.pow(BigInt(2),BigInt(32)))&&(ue=Z(ue)),ue+="n"),xe+" It must be ".concat(ne,". Received ").concat(ue)},RangeError);var le=/[^+/0-9A-Za-z-_]/g;function se(J,ne){var de;ne=ne||1/0;for(var xe=J.length,ue=null,ge=[],be=0;be55295&&de<57344){if(!ue){if(de>56319){(ne-=3)>-1&&ge.push(239,191,189);continue}if(be+1===xe){(ne-=3)>-1&&ge.push(239,191,189);continue}ue=de;continue}if(de<56320){(ne-=3)>-1&&ge.push(239,191,189),ue=de;continue}de=65536+(ue-55296<<10|de-56320)}else ue&&(ne-=3)>-1&&ge.push(239,191,189);if(ue=null,de<128){if((ne-=1)<0)break;ge.push(de)}else if(de<2048){if((ne-=2)<0)break;ge.push(de>>6|192,63&de|128)}else if(de<65536){if((ne-=3)<0)break;ge.push(de>>12|224,de>>6&63|128,63&de|128)}else{if(!(de<1114112))throw new Error("Invalid code point");if((ne-=4)<0)break;ge.push(de>>18|240,de>>12&63|128,de>>6&63|128,63&de|128)}}return ge}function pe(J){return h.toByteArray(function(ne){if((ne=(ne=ne.split("=")[0]).trim().replace(le,"")).length<2)return"";for(;ne.length%4!=0;)ne+="=";return ne}(J))}function Te(J,ne,de,xe){var ue;for(ue=0;ue=ne.length||ue>=J.length);++ue)ne[ue+de]=J[ue];return ue}function Se(J,ne){return J instanceof ne||J!=null&&J.constructor!=null&&J.constructor.name!=null&&J.constructor.name===ne.name}function Oe(J){return J!=J}var Me=function(){for(var J="0123456789abcdef",ne=new Array(256),de=0;de<16;++de)for(var xe=16*de,ue=0;ue<16;++ue)ne[xe+ue]=J[de]+J[ue];return ne}();function ce(J){return typeof BigInt>"u"?ye:J}function ye(){throw new Error("BigInt not supported")}},35791:function(o){o.exports=f,o.exports.isMobile=f,o.exports.default=f;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,l=/android|ipad|playbook|silk/i;function f(s){s||(s={});var u=s.ua;if(u||typeof navigator>"u"||(u=navigator.userAgent),u&&u.headers&&typeof u.headers["user-agent"]=="string"&&(u=u.headers["user-agent"]),typeof u!="string")return!1;var d=a.test(u)&&!n.test(u)||!!s.tablet&&l.test(u);return!d&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&u.indexOf("Macintosh")!==-1&&u.indexOf("Safari")!==-1&&(d=!0),d}},39898:function(o,a,n){var l,f;(function(){var s={version:"3.8.0"},u=[].slice,d=function(I){return u.call(I)},h=self.document;function p(I){return I&&(I.ownerDocument||I.document||I).documentElement}function m(I){return I&&(I.ownerDocument&&I.ownerDocument.defaultView||I.document&&I||I.defaultView)}if(h)try{d(h.documentElement.childNodes)[0].nodeType}catch{d=function(K){for(var ae=K.length,fe=new Array(ae);ae--;)fe[ae]=K[ae];return fe}}if(Date.now||(Date.now=function(){return+new Date}),h)try{h.createElement("DIV").style.setProperty("opacity",0,"")}catch{var y=this.Element.prototype,v=y.setAttribute,g=y.setAttributeNS,b=this.CSSStyleDeclaration.prototype,x=b.setProperty;y.setAttribute=function(K,ae){v.call(this,K,ae+"")},y.setAttributeNS=function(K,ae,fe){g.call(this,K,ae,fe+"")},b.setProperty=function(K,ae,fe){x.call(this,K,ae+"",fe)}}function _(I,K){return IK?1:I>=K?0:NaN}function w(I){return I===null?NaN:+I}function k(I){return!isNaN(I)}function T(I){return{left:function(K,ae,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=K.length);fe>>1;I(K[me],ae)<0?fe=me+1:he=me}return fe},right:function(K,ae,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=K.length);fe>>1;I(K[me],ae)>0?he=me:fe=me+1}return fe}}}s.ascending=_,s.descending=function(I,K){return KI?1:K>=I?0:NaN},s.min=function(I,K){var ae,fe,he=-1,me=I.length;if(arguments.length===1){for(;++he=fe){ae=fe;break}for(;++hefe&&(ae=fe)}else{for(;++he=fe){ae=fe;break}for(;++hefe&&(ae=fe)}return ae},s.max=function(I,K){var ae,fe,he=-1,me=I.length;if(arguments.length===1){for(;++he=fe){ae=fe;break}for(;++heae&&(ae=fe)}else{for(;++he=fe){ae=fe;break}for(;++heae&&(ae=fe)}return ae},s.extent=function(I,K){var ae,fe,he,me=-1,Ce=I.length;if(arguments.length===1){for(;++me=fe){ae=he=fe;break}for(;++mefe&&(ae=fe),he=fe){ae=he=fe;break}for(;++mefe&&(ae=fe),he1)return Ce/(Le-1)},s.deviation=function(){var I=s.variance.apply(this,arguments);return I&&Math.sqrt(I)};var M=T(_);function S(I){return I.length}s.bisectLeft=M.left,s.bisect=s.bisectRight=M.right,s.bisector=function(I){return T(I.length===1?function(K,ae){return _(I(K),ae)}:I)},s.shuffle=function(I,K,ae){(me=arguments.length)<3&&(ae=I.length,me<2&&(K=0));for(var fe,he,me=ae-K;me;)he=Math.random()*me--|0,fe=I[me+K],I[me+K]=I[he+K],I[he+K]=fe;return I},s.permute=function(I,K){for(var ae=K.length,fe=new Array(ae);ae--;)fe[ae]=I[K[ae]];return fe},s.pairs=function(I){for(var K=0,ae=I.length-1,fe=I[0],he=new Array(ae<0?0:ae);K=0;)for(K=(fe=I[he]).length;--K>=0;)ae[--Ce]=fe[K];return ae};var C=Math.abs;function P(I,K){for(var ae in K)Object.defineProperty(I.prototype,ae,{value:K[ae],enumerable:!1})}function D(){this._=Object.create(null)}s.range=function(I,K,ae){if(arguments.length<3&&(ae=1,arguments.length<2&&(K=I,I=0)),(K-I)/ae==1/0)throw new Error("infinite range");var fe,he=[],me=function(Pe){for(var Le=1;Pe*Le%1;)Le*=10;return Le}(C(ae)),Ce=-1;if(I*=me,K*=me,(ae*=me)<0)for(;(fe=I+ae*++Ce)>K;)he.push(fe/me);else for(;(fe=I+ae*++Ce)=fe.length)return K?K.call(ae,Le):I?Le.sort(I):Le;for(var He,Xe,rt,vt,Ct=-1,dt=Le.length,xt=fe[Fe++],ot=new D;++Ct=fe.length)return Pe;var Fe=[],He=he[Le++];return Pe.forEach(function(Xe,rt){Fe.push({key:Xe,values:Ce(rt,Le)})}),He?Fe.sort(function(Xe,rt){return He(Xe.key,rt.key)}):Fe}return ae.map=function(Pe,Le){return me(Le,Pe,0)},ae.entries=function(Pe){return Ce(me(s.map,Pe,0),0)},ae.key=function(Pe){return fe.push(Pe),ae},ae.sortKeys=function(Pe){return he[fe.length-1]=Pe,ae},ae.sortValues=function(Pe){return I=Pe,ae},ae.rollup=function(Pe){return K=Pe,ae},ae},s.set=function(I){var K=new E;if(I)for(var ae=0,fe=I.length;ae=0&&(fe=I.slice(ae+1),I=I.slice(0,ae)),I)return arguments.length<2?this[I].on(fe):this[I].on(fe,K);if(arguments.length===2){if(K==null)for(I in this)this.hasOwnProperty(I)&&this[I].on(fe,null);return this}},s.event=null,s.requote=function(I){return I.replace(Y,"\\$&")};var Y=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Z={}.__proto__?function(I,K){I.__proto__=K}:function(I,K){for(var ae in K)I[ae]=K[ae]};function X(I){return Z(I,se),I}var re=function(I,K){return K.querySelector(I)},ie=function(I,K){return K.querySelectorAll(I)},le=function(I,K){var ae=I.matches||I[L(I,"matchesSelector")];return le=function(fe,he){return ae.call(fe,he)},le(I,K)};typeof Sizzle=="function"&&(re=function(I,K){return Sizzle(I,K)[0]||null},ie=Sizzle,le=Sizzle.matchesSelector),s.selection=function(){return s.select(h.documentElement)};var se=s.selection.prototype=[];function pe(I){return typeof I=="function"?I:function(){return re(I,this)}}function Te(I){return typeof I=="function"?I:function(){return ie(I,this)}}se.select=function(I){var K,ae,fe,he,me=[];I=pe(I);for(var Ce=-1,Pe=this.length;++Ce=0&&(ae=I.slice(0,K))!=="xmlns"&&(I=I.slice(K+1)),Oe.hasOwnProperty(ae)?{space:Oe[ae],local:I}:I}},se.attr=function(I,K){if(arguments.length<2){if(typeof I=="string"){var ae=this.node();return(I=s.ns.qualify(I)).local?ae.getAttributeNS(I.space,I.local):ae.getAttribute(I)}for(K in I)this.each(Me(K,I[K]));return this}return this.each(Me(I,K))},se.classed=function(I,K){if(arguments.length<2){if(typeof I=="string"){var ae=this.node(),fe=(I=J(I)).length,he=-1;if(K=ae.classList){for(;++he=0;)(ae=fe[he])&&(me&&me!==ae.nextSibling&&me.parentNode.insertBefore(ae,me),me=ae);return this},se.sort=function(I){I=Ae.apply(this,arguments);for(var K=-1,ae=this.length;++K0&&(I=I.slice(0,he));var Ce=Be.get(I);function Pe(){var Le=this[fe];Le&&(this.removeEventListener(I,Le,Le.$),delete this[fe])}return Ce&&(I=Ce,me=qe),he?K?function(){var Le=me(K,d(arguments));Pe.call(this),this.addEventListener(I,this[fe]=Le,Le.$=ae),Le._=K}:Pe:K?H:function(){var Le,Fe=new RegExp("^__on([^.]+)"+s.requote(I)+"$");for(var He in this)if(Le=He.match(Fe)){var Xe=this[He];this.removeEventListener(Le[1],Xe,Xe.$),delete this[He]}}}s.selection.enter=De,s.selection.enter.prototype=Re,Re.append=se.append,Re.empty=se.empty,Re.node=se.node,Re.call=se.call,Re.size=se.size,Re.select=function(I){for(var K,ae,fe,he,me,Ce=[],Pe=-1,Le=this.length;++Pe=fe&&(fe=Ce+1);!(Le=Fe[fe])&&++fe1?ut:I<-1?-ut:Math.asin(I)}function zt(I){return((I=Math.exp(I))+1/I)/2}var wt=Math.SQRT2;s.interpolateZoom=function(I,K){var ae,fe,he=I[0],me=I[1],Ce=I[2],Pe=K[0],Le=K[1],Fe=K[2],He=Pe-he,Xe=Le-me,rt=He*He+Xe*Xe;if(rt0&&(en=en.transition().duration(rt)),en.call(_t.event)}function Jt(){Ce&&Ce.domain(me.range().map(function(en){return(en-Fe.x)/Fe.k}).map(me.invert)),Le&&Le.domain(Pe.range().map(function(en){return(en-Fe.y)/Fe.k}).map(Pe.invert))}function gn(en){vt++||en({type:"zoomstart"})}function yn(en){Jt(),en({type:"zoom",scale:Fe.k,translate:[Fe.x,Fe.y]})}function Mn(en){--vt||(en({type:"zoomend"}),K=null)}function bn(){var en=this,fn=Pt.of(en,arguments),Rn=0,In=s.select(m(en)).on(dt,function(){Rn=1,Ht(s.mouse(en),Wn),yn(fn)}).on(xt,function(){In.on(dt,null).on(xt,null),cr(Rn),Mn(fn)}),Wn=ft(s.mouse(en)),cr=lt(en);Pc.call(en),gn(fn)}function Nn(){var en,fn=this,Rn=Pt.of(fn,arguments),In={},Wn=0,cr=".zoom-"+s.event.changedTouches[0].identifier,Ir="touchmove"+cr,Sr="touchend"+cr,Vr=[],Fr=s.select(fn),Yr=lt(fn);function ha(){var Zr=s.touches(fn);return en=Fe.k,Zr.forEach(function(Nr){Nr.identifier in In&&(In[Nr.identifier]=ft(Nr))}),Zr}function Za(){var Zr=s.event.target;s.select(Zr).on(Ir,ai).on(Sr,ii),Vr.push(Zr);for(var Nr=s.event.changedTouches,ma=0,va=Nr.length;ma1){bi=_a[0];var $i=_a[1],Rc=bi[0]-$i[0],$2=bi[1]-$i[1];Wn=Rc*Rc+$2*$2}}function ai(){var Zr,Nr,ma,va,_a=s.touches(fn);Pc.call(fn);for(var $a=0,bi=_a.length;$a360?Pe-=360:Pe<0&&(Pe+=360),Pe<60?fe+(he-fe)*Pe/60:Pe<180?he:Pe<240?fe+(he-fe)*(240-Pe)/60:fe}(Ce))}return I=isNaN(I)?0:(I%=360)<0?I+360:I,K=isNaN(K)||K<0?0:K>1?1:K,fe=2*(ae=ae<0?0:ae>1?1:ae)-(he=ae<=.5?ae*(1+K):ae+K-ae*K),new Et(me(I+120),me(I),me(I-120))}function nt(I,K,ae){return this instanceof nt?(this.h=+I,this.c=+K,void(this.l=+ae)):arguments.length<2?I instanceof nt?new nt(I.h,I.c,I.l):function(fe,he,me){return fe>0?new nt(Math.atan2(me,he)*It,Math.sqrt(he*he+me*me),fe):new nt(NaN,NaN,fe)}(I instanceof tt?I.l:(I=$t((I=s.rgb(I)).r,I.g,I.b)).l,I.a,I.b):new nt(I,K,ae)}Ge.brighter=function(I){return I=Math.pow(.7,arguments.length?I:1),new Ze(this.h,this.s,this.l/I)},Ge.darker=function(I){return I=Math.pow(.7,arguments.length?I:1),new Ze(this.h,this.s,I*this.l)},Ge.rgb=function(){return Ke(this.h,this.s,this.l)},s.hcl=nt;var st=nt.prototype=new We;function mt(I,K,ae){return isNaN(I)&&(I=0),isNaN(K)&&(K=0),new tt(ae,Math.cos(I*=pt)*K,Math.sin(I)*K)}function tt(I,K,ae){return this instanceof tt?(this.l=+I,this.a=+K,void(this.b=+ae)):arguments.length<2?I instanceof tt?new tt(I.l,I.a,I.b):I instanceof nt?mt(I.h,I.c,I.l):$t((I=Et(I)).r,I.g,I.b):new tt(I,K,ae)}st.brighter=function(I){return new nt(this.h,this.c,Math.min(100,this.l+Ft*(arguments.length?I:1)))},st.darker=function(I){return new nt(this.h,this.c,Math.max(0,this.l-Ft*(arguments.length?I:1)))},st.rgb=function(){return mt(this.h,this.c,this.l).rgb()},s.lab=tt;var Ft=18,Vt=.95047,St=1,Nt=1.08883,Dt=tt.prototype=new We;function gt(I,K,ae){var fe=(I+16)/116,he=fe+K/500,me=fe-ae/200;return new Et(qt(3.2404542*(he=ht(he)*Vt)-1.5371385*(fe=ht(fe)*St)-.4985314*(me=ht(me)*Nt)),qt(-.969266*he+1.8760108*fe+.041556*me),qt(.0556434*he-.2040259*fe+1.0572252*me))}function ht(I){return I>.206893034?I*I*I:(I-.13793103448275862)/7.787037}function yt(I){return I>.008856?Math.pow(I,.3333333333333333):7.787037*I+.13793103448275862}function qt(I){return Math.round(255*(I<=.00304?12.92*I:1.055*Math.pow(I,.4166666666666667)-.055))}function Et(I,K,ae){return this instanceof Et?(this.r=~~I,this.g=~~K,void(this.b=~~ae)):arguments.length<2?I instanceof Et?new Et(I.r,I.g,I.b):Lt(""+I,Et,Ke):new Et(I,K,ae)}function jt(I){return new Et(I>>16,I>>8&255,255&I)}function Tt(I){return jt(I)+""}Dt.brighter=function(I){return new tt(Math.min(100,this.l+Ft*(arguments.length?I:1)),this.a,this.b)},Dt.darker=function(I){return new tt(Math.max(0,this.l-Ft*(arguments.length?I:1)),this.a,this.b)},Dt.rgb=function(){return gt(this.l,this.a,this.b)},s.rgb=Et;var Ot=Et.prototype=new We;function At(I){return I<16?"0"+Math.max(0,I).toString(16):Math.min(255,I).toString(16)}function Lt(I,K,ae){var fe,he,me,Ce=0,Pe=0,Le=0;if(fe=/([a-z]+)\((.*)\)/.exec(I=I.toLowerCase()))switch(he=fe[2].split(","),fe[1]){case"hsl":return ae(parseFloat(he[0]),parseFloat(he[1])/100,parseFloat(he[2])/100);case"rgb":return K(Xt(he[0]),Xt(he[1]),Xt(he[2]))}return(me=Bt.get(I))?K(me.r,me.g,me.b):(I==null||I.charAt(0)!=="#"||isNaN(me=parseInt(I.slice(1),16))||(I.length===4?(Ce=(3840&me)>>4,Ce|=Ce>>4,Pe=240&me,Pe|=Pe>>4,Le=15&me,Le|=Le<<4):I.length===7&&(Ce=(16711680&me)>>16,Pe=(65280&me)>>8,Le=255&me)),K(Ce,Pe,Le))}function Rt(I,K,ae){var fe,he,me=Math.min(I/=255,K/=255,ae/=255),Ce=Math.max(I,K,ae),Pe=Ce-me,Le=(Ce+me)/2;return Pe?(he=Le<.5?Pe/(Ce+me):Pe/(2-Ce-me),fe=I==Ce?(K-ae)/Pe+(K0&&Le<1?0:fe),new Ze(fe,he,Le)}function $t(I,K,ae){var fe=yt((.4124564*(I=Yt(I))+.3575761*(K=Yt(K))+.1804375*(ae=Yt(ae)))/Vt),he=yt((.2126729*I+.7151522*K+.072175*ae)/St);return tt(116*he-16,500*(fe-he),200*(he-yt((.0193339*I+.119192*K+.9503041*ae)/Nt)))}function Yt(I){return(I/=255)<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}function Xt(I){var K=parseFloat(I);return I.charAt(I.length-1)==="%"?Math.round(2.55*K):K}Ot.brighter=function(I){I=Math.pow(.7,arguments.length?I:1);var K=this.r,ae=this.g,fe=this.b,he=30;return K||ae||fe?(K&&K=200&&Xe<300||Xe===304){try{He=ae.call(he,Pe)}catch(rt){return void me.error.call(he,rt)}me.load.call(he,He)}else me.error.call(he,Pe)}return self.XDomainRequest&&!("withCredentials"in Pe)&&/^(http(s)?:)?\/\//.test(I)&&(Pe=new XDomainRequest),"onload"in Pe?Pe.onload=Pe.onerror=Fe:Pe.onreadystatechange=function(){Pe.readyState>3&&Fe()},Pe.onprogress=function(He){var Xe=s.event;s.event=He;try{me.progress.call(he,Pe)}finally{s.event=Xe}},he.header=function(He,Xe){return He=(He+"").toLowerCase(),arguments.length<2?Ce[He]:(Xe==null?delete Ce[He]:Ce[He]=Xe+"",he)},he.mimeType=function(He){return arguments.length?(K=He==null?null:He+"",he):K},he.responseType=function(He){return arguments.length?(Le=He,he):Le},he.response=function(He){return ae=He,he},["get","post"].forEach(function(He){he[He]=function(){return he.send.apply(he,[He].concat(d(arguments)))}}),he.send=function(He,Xe,rt){if(arguments.length===2&&typeof Xe=="function"&&(rt=Xe,Xe=null),Pe.open(He,I,!0),K==null||"accept"in Ce||(Ce.accept=K+",*/*"),Pe.setRequestHeader)for(var vt in Ce)Pe.setRequestHeader(vt,Ce[vt]);return K!=null&&Pe.overrideMimeType&&Pe.overrideMimeType(K),Le!=null&&(Pe.responseType=Le),rt!=null&&he.on("error",rt).on("load",function(Ct){rt(null,Ct)}),me.beforesend.call(he,Pe),Pe.send(Xe??null),he},he.abort=function(){return Pe.abort(),he},s.rebind(he,me,"on"),fe==null?he:he.get(function(He){return He.length===1?function(Xe,rt){He(Xe==null?rt:null)}:He}(fe))}Bt.forEach(function(I,K){Bt.set(I,jt(K))}),s.functor=Wt,s.xhr=tn(W),s.dsv=function(I,K){var ae=new RegExp('["'+I+` +`+q.year}return B(E,N,G,L)};var j=3*y;a.incrementMonth=function(N,E,W){W=S(W)&&W;var G=h(N,y);if(N=Math.round(N-G),W)try{var L=Math.round(N/y)+x,q=_.getComponentMethod("calendars","getCal")(W),H=q.fromJD(L);return E%12?q.add(H,E,"m"):q.add(H,E/12,"y"),(H.toJD()-x)*y+G}catch{d.error("invalid ms "+N+" in calendar "+W)}var V=new Date(N+j);return V.setUTCMonth(V.getUTCMonth()+E)+G-j},a.findExactDates=function(N,E){for(var W,G,L=0,q=0,H=0,V=0,te=S(E)&&_.getComponentMethod("calendars","getCal")(E),ee=0;ee1||D<0||D>1?null:{x:p+w*D,y:m+M*D}}function h(p,m,y,v,g){var b=v*p+g*m;if(b<0)return v*v+g*g;if(b>y){var x=v-p,_=g-m;return x*x+_*_}var w=v*m-g*p;return w*w/y}a.segmentsIntersect=d,a.segmentDistance=function(p,m,y,v,g,b,x,_){if(d(p,m,y,v,g,b,x,_))return 0;var w=y-p,k=v-m,T=x-g,M=_-b,S=w*w+k*k,C=T*T+M*M,P=Math.min(h(w,k,S,g-p,b-m),h(w,k,S,x-p,_-m),h(T,M,C,p-g,m-b),h(T,M,C,y-g,v-b));return Math.sqrt(P)},a.getTextLocation=function(p,m,y,v){if(p===f&&v===s||(l={},f=p,s=v),l[y])return l[y];var g=p.getPointAtLength(c(y-v/2,m)),b=p.getPointAtLength(c(y+v/2,m)),x=Math.atan((b.y-g.y)/(b.x-g.x)),_=p.getPointAtLength(c(y,m)),w={x:(4*_.x+g.x+b.x)/6,y:(4*_.y+g.y+b.y)/6,theta:x};return l[y]=w,w},a.clearLocationCache=function(){f=null},a.getVisibleSegment=function(p,m,y){var v,g,b=m.left,x=m.right,_=m.top,w=m.bottom,k=0,T=p.getTotalLength(),M=T;function S(P){var D=p.getPointAtLength(P);P===0?v=D:P===T&&(g=D);var O=D.xx?D.x-x:0,R=D.y<_?_-D.y:D.y>w?D.y-w:0;return Math.sqrt(O*O+R*R)}for(var C=S(k);C;){if((k+=C+y)>M)return;C=S(k)}for(C=S(M);C;){if(k>(M-=C+y))return;C=S(M)}return{min:k,max:M,len:M-k,total:T,isClosed:k===0&&M===T&&Math.abs(v.x-g.x)<.1&&Math.abs(v.y-g.y)<.1}},a.findPointOnPath=function(p,m,y,v){for(var g,b,x,_=(v=v||{}).pathLength||p.getTotalLength(),w=v.tolerance||.001,k=v.iterationLimit||30,T=p.getPointAtLength(0)[y]>p.getPointAtLength(_)[y]?-1:1,M=0,S=0,C=_;M0?C=g:S=g,M++}return b}},23389:function(o){o.exports=function(a){return a}},39240:function(o){o.exports=function(a,n){if(!n)return a;var l=1/Math.abs(n),f=l>1?(l*a+l*n)/l:a+n,s=String(f).length;if(s>16){var c=String(n).length;if(s>=String(a).length+c){var d=parseFloat(f).toPrecision(12);d.indexOf("e+")===-1&&(f=+d)}}return f}},71828:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(60721).WU,c=n(92770),d=n(50606),h=d.FP_SAFE,p=-h,m=d.BADNUM,y=o.exports={};y.adjustFormat=function(Y){return!Y||/^\d[.]\df/.test(Y)||/[.]\d%/.test(Y)?Y:Y==="0.f"?"~f":/^\d%/.test(Y)?"~%":/^\ds/.test(Y)?"~s":!/^[~,.0$]/.test(Y)&&/[&fps]/.test(Y)?"~"+Y:Y};var v={};y.warnBadFormat=function(Y){var Z=String(Y);v[Z]||(v[Z]=1,y.warn('encountered bad format: "'+Z+'"'))},y.noFormat=function(Y){return String(Y)},y.numberFormat=function(Y){var Z;try{Z=s(y.adjustFormat(Y))}catch{return y.warnBadFormat(Y),y.noFormat}return Z},y.nestedProperty=n(65487),y.keyedContainer=n(66636),y.relativeAttr=n(6962),y.isPlainObject=n(41965),y.toLogRange=n(58163),y.relinkPrivateKeys=n(51332);var g=n(73627);y.isTypedArray=g.isTypedArray,y.isArrayOrTypedArray=g.isArrayOrTypedArray,y.isArray1D=g.isArray1D,y.ensureArray=g.ensureArray,y.concat=g.concat,y.maxRowLength=g.maxRowLength,y.minRowLength=g.minRowLength;var b=n(64872);y.mod=b.mod,y.modHalf=b.modHalf;var x=n(96554);y.valObjectMeta=x.valObjectMeta,y.coerce=x.coerce,y.coerce2=x.coerce2,y.coerceFont=x.coerceFont,y.coercePattern=x.coercePattern,y.coerceHoverinfo=x.coerceHoverinfo,y.coerceSelectionMarkerOpacity=x.coerceSelectionMarkerOpacity,y.validate=x.validate;var _=n(41631);y.dateTime2ms=_.dateTime2ms,y.isDateTime=_.isDateTime,y.ms2DateTime=_.ms2DateTime,y.ms2DateTimeLocal=_.ms2DateTimeLocal,y.cleanDate=_.cleanDate,y.isJSDate=_.isJSDate,y.formatDate=_.formatDate,y.incrementMonth=_.incrementMonth,y.dateTick0=_.dateTick0,y.dfltRange=_.dfltRange,y.findExactDates=_.findExactDates,y.MIN_MS=_.MIN_MS,y.MAX_MS=_.MAX_MS;var w=n(65888);y.findBin=w.findBin,y.sorterAsc=w.sorterAsc,y.sorterDes=w.sorterDes,y.distinctVals=w.distinctVals,y.roundUp=w.roundUp,y.sort=w.sort,y.findIndexOfMin=w.findIndexOfMin,y.sortObjectKeys=n(78607);var k=n(80038);y.aggNums=k.aggNums,y.len=k.len,y.mean=k.mean,y.median=k.median,y.midRange=k.midRange,y.variance=k.variance,y.stdev=k.stdev,y.interp=k.interp;var T=n(35657);y.init2dArray=T.init2dArray,y.transposeRagged=T.transposeRagged,y.dot=T.dot,y.translationMatrix=T.translationMatrix,y.rotationMatrix=T.rotationMatrix,y.rotationXYMatrix=T.rotationXYMatrix,y.apply3DTransform=T.apply3DTransform,y.apply2DTransform=T.apply2DTransform,y.apply2DTransform2=T.apply2DTransform2,y.convertCssMatrix=T.convertCssMatrix,y.inverseTransformMatrix=T.inverseTransformMatrix;var M=n(26348);y.deg2rad=M.deg2rad,y.rad2deg=M.rad2deg,y.angleDelta=M.angleDelta,y.angleDist=M.angleDist,y.isFullCircle=M.isFullCircle,y.isAngleInsideSector=M.isAngleInsideSector,y.isPtInsideSector=M.isPtInsideSector,y.pathArc=M.pathArc,y.pathSector=M.pathSector,y.pathAnnulus=M.pathAnnulus;var S=n(99863);y.isLeftAnchor=S.isLeftAnchor,y.isCenterAnchor=S.isCenterAnchor,y.isRightAnchor=S.isRightAnchor,y.isTopAnchor=S.isTopAnchor,y.isMiddleAnchor=S.isMiddleAnchor,y.isBottomAnchor=S.isBottomAnchor;var C=n(87642);y.segmentsIntersect=C.segmentsIntersect,y.segmentDistance=C.segmentDistance,y.getTextLocation=C.getTextLocation,y.clearLocationCache=C.clearLocationCache,y.getVisibleSegment=C.getVisibleSegment,y.findPointOnPath=C.findPointOnPath;var P=n(1426);y.extendFlat=P.extendFlat,y.extendDeep=P.extendDeep,y.extendDeepAll=P.extendDeepAll,y.extendDeepNoArrays=P.extendDeepNoArrays;var D=n(47769);y.log=D.log,y.warn=D.warn,y.error=D.error;var O=n(30587);y.counterRegex=O.counter;var R=n(79990);y.throttle=R.throttle,y.throttleDone=R.done,y.clearThrottle=R.clear;var F=n(24401);function A(Y){var Z={};for(var X in Y)for(var re=Y[X],ie=0;ieh||Y=Z)&&c(Y)&&Y>=0&&Y%1==0},y.noop=n(64213),y.identity=n(23389),y.repeat=function(Y,Z){for(var X=new Array(Z),re=0;reX?Math.max(X,Math.min(Z,Y)):Math.max(Z,Math.min(X,Y))},y.bBoxIntersect=function(Y,Z,X){return X=X||0,Y.left<=Z.right+X&&Z.left<=Y.right+X&&Y.top<=Z.bottom+X&&Z.top<=Y.bottom+X},y.simpleMap=function(Y,Z,X,re,ie){for(var le=Y.length,se=new Array(le),pe=0;pe=Math.pow(2,X)?ie>10?(y.warn("randstr failed uniqueness"),Te):Y(Z,X,re,(ie||0)+1):Te},y.OptionControl=function(Y,Z){Y||(Y={}),Z||(Z="opt");var X={optionList:[],_newoption:function(re){re[Z]=Y,X[re.name]=re,X.optionList.push(re)}};return X["_"+Z]=Y,X},y.smooth=function(Y,Z){if((Z=Math.round(Z)||0)<2)return Y;var X,re,ie,le,se=Y.length,pe=2*se,Te=2*Z-1,Se=new Array(Te),Oe=new Array(se);for(X=0;X=pe&&(ie-=pe*Math.floor(ie/pe)),ie<0?ie=-1-ie:ie>=se&&(ie=pe-1-ie),le+=Y[ie]*Se[re];Oe[X]=le}return Oe},y.syncOrAsync=function(Y,Z,X){var re;function ie(){return y.syncOrAsync(Y,Z,X)}for(;Y.length;)if((re=(0,Y.splice(0,1)[0])(Z))&&re.then)return re.then(ie);return X&&X(Z)},y.stripTrailingSlash=function(Y){return Y.substr(-1)==="/"?Y.substr(0,Y.length-1):Y},y.noneOrAll=function(Y,Z,X){if(Y){var re,ie=!1,le=!0;for(re=0;re0?ie:0})},y.fillArray=function(Y,Z,X,re){if(re=re||y.identity,y.isArrayOrTypedArray(Y))for(var ie=0;ie1?ie+se[1]:"";if(le&&(se.length>1||pe.length>4||X))for(;re.test(pe);)pe=pe.replace(re,"$1"+le+"$2");return pe+Te},y.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var W=/^\w*$/;y.templateString=function(Y,Z){var X={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(re,ie){var le;return W.test(ie)?le=Z[ie]:(X[ie]=X[ie]||y.nestedProperty(Z,ie).get,le=X[ie]()),y.isValidTextValue(le)?le:""})};var G={max:10,count:0,name:"hovertemplate"};y.hovertemplateString=function(){return te.apply(G,arguments)};var L={max:10,count:0,name:"texttemplate"};y.texttemplateString=function(){return te.apply(L,arguments)};var q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,H={max:10,count:0,name:"texttemplate",parseMultDiv:!0};y.texttemplateStringForShapes=function(){return te.apply(H,arguments)};var V=/^[:|\|]/;function te(Y,Z,X){var re=this,ie=arguments;Z||(Z={});var le={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(se,pe,Te){var Se=pe==="_xother"||pe==="_yother",Oe=pe==="_xother_"||pe==="_yother_",Me=pe==="xother_"||pe==="yother_",ce=pe==="xother"||pe==="yother"||Se||Me||Oe,ye=pe;(Se||Oe)&&(ye=ye.substring(1)),(Me||Oe)&&(ye=ye.substring(0,ye.length-1));var J,ne,de,xe=null,ue=null;if(re.parseMultDiv){var ge=function(Ae){var Ee=Ae.match(q);return Ee?{key:Ee[1],op:Ee[2],number:Number(Ee[3])}:{key:Ae,op:null,number:null}}(ye);ye=ge.key,xe=ge.op,ue=ge.number}if(ce){if((J=Z[ye])===void 0)return""}else for(de=3;de=48&&se<=57,Se=pe>=48&&pe<=57;if(Te&&(re=10*re+se-48),Se&&(ie=10*ie+pe-48),!Te||!Se){if(re!==ie)return re-ie;if(se!==pe)return se-pe}}return ie-re};var ee=2e9;y.seedPseudoRandom=function(){ee=2e9},y.pseudoRandom=function(){var Y=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-Y)<429496729?y.pseudoRandom():ee/4294967296},y.fillText=function(Y,Z,X){var re=Array.isArray(X)?function(se){X.push(se)}:function(se){X.text=se},ie=y.extractOption(Y,Z,"htx","hovertext");if(y.isValidTextValue(ie))return re(ie);var le=y.extractOption(Y,Z,"tx","text");return y.isValidTextValue(le)?re(le):void 0},y.isValidTextValue=function(Y){return Y||Y===0},y.formatPercent=function(Y,Z){Z=Z||0;for(var X=(Math.round(100*Y*Math.pow(10,Z))*Math.pow(.1,Z)).toFixed(Z)+"%",re=0;re1&&(Se=1):Se=0,y.strTranslate(ie-Se*(X+se),le-Se*(re+pe))+y.strScale(Se)+(Te?"rotate("+Te+(Z?"":" "+X+" "+re)+")":"")},y.setTransormAndDisplay=function(Y,Z){Y.attr("transform",y.getTextTransform(Z)),Y.style("display",Z.scale?null:"none")},y.ensureUniformFontSize=function(Y,Z){var X=y.extendFlat({},Z);return X.size=Math.max(Z.size,Y._fullLayout.uniformtext.minsize||0),X},y.join2=function(Y,Z,X){var re=Y.length;return re>1?Y.slice(0,-1).join(Z)+X+Y[re-1]:Y.join(Z)},y.bigFont=function(Y){return Math.round(1.2*Y)};var U=y.getFirefoxVersion(),Q=U!==null&&U<86;y.getPositionFromD3Event=function(){return Q?[l.event.layerX,l.event.layerY]:[l.event.offsetX,l.event.offsetY]}},41965:function(o){o.exports=function(a){return window&&window.process&&window.process.versions?Object.prototype.toString.call(a)==="[object Object]":Object.prototype.toString.call(a)==="[object Object]"&&Object.getPrototypeOf(a).hasOwnProperty("hasOwnProperty")}},66636:function(o,a,n){var l=n(65487),f=/^\w*$/;o.exports=function(s,c,d,h){var p,m,y;d=d||"name",h=h||"value";var v={};c&&c.length?(y=l(s,c),m=y.get()):m=s,c=c||"";var g={};if(m)for(p=0;p2)return v[w]=2|v[w],x.set(_,null);if(b){for(p=w;p1){var d=["LOG:"];for(c=0;c1){var h=[];for(c=0;c"),"long")}},s.warn=function(){var c;if(l.logging>0){var d=["WARN:"];for(c=0;c0){var h=[];for(c=0;c"),"stick")}},s.error=function(){var c;if(l.logging>0){var d=["ERROR:"];for(c=0;c0){var h=[];for(c=0;c"),"stick")}}},77310:function(o,a,n){var l=n(39898);o.exports=function(f,s,c){var d=f.selectAll("g."+c.replace(/\s/g,".")).data(s,function(p){return p[0].trace.uid});d.exit().remove(),d.enter().append("g").attr("class",c),d.order();var h=f.classed("rangeplot")?"nodeRangePlot3":"node3";return d.each(function(p){p[0][h]=l.select(this)}),d}},35657:function(o,a,n){var l=n(79576);a.init2dArray=function(f,s){for(var c=new Array(f),d=0;dn/2?a-Math.round(a/n)*n:a}}},65487:function(o,a,n){var l=n(92770),f=n(73627).isArrayOrTypedArray;function s(v,g){return function(){var b,x,_,w,k,T=v;for(w=0;w/g),x=0;xm||M===f||Mv||k&&g(w))}:function(w,k){var T=w[0],M=w[1];if(T===f||Tm||M===f||Mv)return!1;var S,C,P,D,O,R=h.length,F=h[0][0],A=h[0][1],z=0;for(S=1;SMath.max(C,F)||M>Math.max(P,A)))if(Mx||Math.abs(l(y,w))>p)return!0;return!1},s.filter=function(c,d){var h=[c[0]],p=0,m=0;function y(v){c.push(v);var g=h.length,b=p;h.splice(m+1);for(var x=b+1;x1&&y(c.pop()),{addPt:y,raw:c,filtered:h}}},45142:function(o,a,n){var l=n(92770),f=n(35791);o.exports=function(s){var c;if(typeof(c=s&&s.hasOwnProperty("userAgent")?s.userAgent:function(){var g;return typeof navigator<"u"&&(g=navigator.userAgent),g&&g.headers&&typeof g.headers["user-agent"]=="string"&&(g=g.headers["user-agent"]),g}())!="string")return!0;var d=f({ua:{headers:{"user-agent":c}},tablet:!0,featureDetect:!1});if(!d){for(var h=c.split(" "),p=1;p-1;m--){var y=h[m];if(y.substr(0,8)==="Version/"){var v=y.substr(8).split(".")[0];if(l(v)&&(v=+v),v>=13)return!0}}}return d}},75138:function(o){o.exports=function(a,n){if(n instanceof RegExp){for(var l=n.toString(),f=0;ff.queueLength&&(c.undoQueue.queue.shift(),c.undoQueue.index--))},startSequence:function(c){c.undoQueue=c.undoQueue||{index:0,queue:[],sequence:!1},c.undoQueue.sequence=!0,c.undoQueue.beginSequence=!0},stopSequence:function(c){c.undoQueue=c.undoQueue||{index:0,queue:[],sequence:!1},c.undoQueue.sequence=!1,c.undoQueue.beginSequence=!1},undo:function(c){var d,h;if(!(c.undoQueue===void 0||isNaN(c.undoQueue.index)||c.undoQueue.index<=0)){for(c.undoQueue.index--,d=c.undoQueue.queue[c.undoQueue.index],c.undoQueue.inSequence=!0,h=0;h=c.undoQueue.queue.length)){for(d=c.undoQueue.queue[c.undoQueue.index],c.undoQueue.inSequence=!0,h=0;hg}function y(v,g){return v>=g}a.findBin=function(v,g,b){if(l(g.start))return b?Math.ceil((v-g.start)/g.size-d)-1:Math.floor((v-g.start)/g.size+d);var x,_,w=0,k=g.length,T=0,M=k>1?(g[k-1]-g[0])/(k-1):1;for(_=M>=0?b?h:p:b?y:m,v+=M*d*(b?-1:1)*(M>=0?1:-1);w90&&f.log("Long binary search..."),w-1},a.sorterAsc=function(v,g){return v-g},a.sorterDes=function(v,g){return g-v},a.distinctVals=function(v){var g,b=v.slice();for(b.sort(a.sorterAsc),g=b.length-1;g>-1&&b[g]===c;g--);for(var x,_=b[g]-b[0]||1,w=_/(g||1)/1e4,k=[],T=0;T<=g;T++){var M=b[T],S=M-x;x===void 0?(k.push(M),x=M):S>w&&(_=Math.min(_,S),k.push(M),x=M)}return{vals:k,minDiff:_}},a.roundUp=function(v,g,b){for(var x,_=0,w=g.length-1,k=0,T=b?0:1,M=b?1:0,S=b?Math.ceil:Math.floor;_0&&(x=1),b&&x)return v.sort(g)}return x?v:v.reverse()},a.findIndexOfMin=function(v,g){g=g||s;for(var b,x=1/0,_=0;_d.length)&&(h=d.length),l(c)||(c=!1),f(d[0])){for(m=new Array(h),p=0;ps.length-1)return s[s.length-1];var d=c%1;return d*s[Math.ceil(c)]+(1-d)*s[Math.floor(c)]}},3883:function(o,a,n){var l=n(32396),f=n(91424),s=n(71828),c=null;o.exports=function(){if(c!==null)return c;c=!1;var d=s.isIE()||s.isSafari()||s.isIOS();if(window.navigator.userAgent&&!d){var h=Array.from(l.CSS_DECLARATIONS).reverse(),p=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof p=="function")c=h.some(function(v){return p.apply(null,v)});else{var m=f.tester.append("image").attr("style",l.STYLE),y=window.getComputedStyle(m.node()).imageRendering;c=h.some(function(v){var g=v[1];return y===g||y===g.toLowerCase()}),m.remove()}}return c}},63893:function(o,a,n){var l=n(39898),f=n(71828),s=f.strTranslate,c=n(77922),d=n(18783).LINE_SPACING,h=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;a.convertToTspans=function(N,E,W){var G=N.text(),L=!N.attr("data-notex")&&E&&E._context.typesetMath&&typeof MathJax<"u"&&G.match(h),q=l.select(N.node().parentNode);if(!q.empty()){var H=N.attr("class")?N.attr("class").split(" ")[0]:"text";return H+="-math",q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove(),N.style("display",null).attr({"data-unformatted":G,"data-math":"N"}),L?(E&&E._promises||[]).push(new Promise(function(te){N.style("display","none");var ee=parseInt(N.node().style.fontSize,10),U={fontSize:ee};(function(Q,Y,Z){var X,re,ie,le,se=parseInt((MathJax.version||"").split(".")[0]);if(se===2||se===3){var pe=function(){var Se="math-output-"+f.randstr({},64),Oe=(le=l.select("body").append("div").attr({id:Se}).style({visibility:"hidden",position:"absolute","font-size":Y.fontSize+"px"}).text(Q.replace(p,"\\lt ").replace(m,"\\gt "))).node();return se===2?MathJax.Hub.Typeset(Oe):MathJax.typeset([Oe])},Te=function(){var Se=le.select(se===2?".MathJax_SVG":".MathJax"),Oe=!Se.empty()&&le.select("svg").node();if(Oe){var Me,ce=Oe.getBoundingClientRect();Me=se===2?l.select("body").select("#MathJax_SVG_glyphs"):Se.select("defs"),Z(Se,Me,ce)}else f.log("There was an error in the tex syntax.",Q),Z();le.remove()};se===2?MathJax.Hub.Queue(function(){return re=f.extendDeepAll({},MathJax.Hub.config),ie=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:y},displayAlign:"left"})},function(){if((X=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},pe,Te,function(){if(X!=="SVG")return MathJax.Hub.setRenderer(X)},function(){return ie!==void 0&&(MathJax.Hub.processSectionDelay=ie),MathJax.Hub.Config(re)}):se===3&&(re=f.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=y,(X=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){pe(),Te(),X!=="svg"&&(MathJax.config.startup.output=X),MathJax.config=re}))}else f.warn("No MathJax version:",MathJax.version)})(L[2],U,function(Q,Y,Z){q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove();var X=Q&&Q.select("svg");if(!X||!X.node())return V(),void te();var re=q.append("g").classed(H+"-group",!0).attr({"pointer-events":"none","data-unformatted":G,"data-math":"Y"});re.node().appendChild(X.node()),Y&&Y.node()&&X.node().insertBefore(Y.node().cloneNode(!0),X.node().firstChild);var ie=Z.width,le=Z.height;X.attr({class:H,height:le,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var se=N.node().style.fill||"black",pe=X.select("g");pe.attr({fill:se,stroke:se});var Te=pe.node().getBoundingClientRect(),Se=Te.width,Oe=Te.height;(Se>ie||Oe>le)&&(X.style("overflow","hidden"),Se=(Te=X.node().getBoundingClientRect()).width,Oe=Te.height);var Me=+N.attr("x"),ce=+N.attr("y"),ye=-(ee||N.node().getBoundingClientRect().height)/4;if(H[0]==="y")re.attr({transform:"rotate("+[-90,Me,ce]+")"+s(-Se/2,ye-Oe/2)});else if(H[0]==="l")ce=ye-Oe/2;else if(H[0]==="a"&&H.indexOf("atitle")!==0)Me=0,ce=ye;else{var J=N.attr("text-anchor");Me-=Se*(J==="middle"?.5:J==="end"?1:0),ce=ce+ye-Oe/2}X.attr({x:Me,y:ce}),W&&W.call(N,re),te(re)})})):V(),N}function V(){q.empty()||(H=N.attr("class")+"-math",q.select("svg."+H).remove()),N.text("").style("white-space","pre");var te=function(ee,U){U=U.replace(w," ");var Q,Y=!1,Z=[],X=-1;function re(){X++;var ue=document.createElementNS(c.svg,"tspan");l.select(ue).attr({class:"line",dy:X*d+"em"}),ee.appendChild(ue),Q=ue;var ge=Z;if(Z=[{node:ue}],ge.length>1)for(var be=1;be doesnt match end tag <"+ue+">. Pretending it did match.",U),Q=Z[Z.length-1].node}else f.log("Ignoring unexpected end tag .",U)}M.test(U)?re():(Q=ee,Z=[{node:ee}]);for(var pe=U.split(k),Te=0;Te|>|>)/g,y=[["$","$"],["\\(","\\)"]],v={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},g={sub:"0.3em",sup:"-0.6em"},b={sub:"-0.21em",sup:"0.42em"},x="​",_=["http:","https:","mailto:","",void 0,":"],w=a.NEWLINES=/(\r\n?|\n)/g,k=/(<[^<>]*>)/,T=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=//i;a.BR_TAG_ALL=//gi;var S=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,C=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,P=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,D=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function O(N,E){if(!N)return null;var W=N.match(E),G=W&&(W[3]||W[4]);return G&&z(G)}var R=/(^|;)\s*color:/;a.plainText=function(N,E){for(var W=(E=E||{}).len!==void 0&&E.len!==-1?E.len:1/0,G=E.allowedTags!==void 0?E.allowedTags:["br"],L=N.split(k),q=[],H="",V=0,te=0;te3?q.push(ee.substr(0,Z-3)+"..."):q.push(ee.substr(0,Z));break}H=""}}return q.join("")};var F={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function z(N){return N.replace(A,function(E,W){return(W.charAt(0)==="#"?function(G){if(!(G>1114111)){var L=String.fromCodePoint;if(L)return L(G);var q=String.fromCharCode;return G<=65535?q(G):q(55232+(G>>10),G%1024+56320)}}(W.charAt(1)==="x"?parseInt(W.substr(2),16):parseInt(W.substr(1),10)):F[W])||E})}function B(N){var E=encodeURI(decodeURI(N)),W=document.createElement("a"),G=document.createElement("a");W.href=N,G.href=E;var L=W.protocol,q=G.protocol;return _.indexOf(L)!==-1&&_.indexOf(q)!==-1?E:""}function $(N,E,W){var G,L,q,H=W.horizontalAlign,V=W.verticalAlign||"top",te=N.node().getBoundingClientRect(),ee=E.node().getBoundingClientRect();return L=V==="bottom"?function(){return te.bottom-G.height}:V==="middle"?function(){return te.top+(te.height-G.height)/2}:function(){return te.top},q=H==="right"?function(){return te.right-G.width}:H==="center"?function(){return te.left+(te.width-G.width)/2}:function(){return te.left},function(){G=this.node().getBoundingClientRect();var U=q()-ee.left,Q=L()-ee.top,Y=W.gd||{};if(W.gd){Y._fullLayout._calcInverseTransform(Y);var Z=f.apply3DTransform(Y._fullLayout._invTransform)(U,Q);U=Z[0],Q=Z[1]}return this.style({top:Q+"px",left:U+"px","z-index":1e3}),this}}a.convertEntities=z,a.sanitizeHTML=function(N){N=N.replace(w," ");for(var E=document.createElement("p"),W=E,G=[],L=N.split(k),q=0;qd.ts+s?m():d.timer=setTimeout(function(){m(),d.timer=null},s)},a.done=function(f){var s=n[f];return s&&s.timer?new Promise(function(c){var d=s.onDone;s.onDone=function(){d&&d(),c(),s.onDone=null}}):Promise.resolve()},a.clear=function(f){if(f)l(n[f]),delete n[f];else for(var s in n)a.clear(s)}},58163:function(o,a,n){var l=n(92770);o.exports=function(f,s){if(f>0)return Math.log(f)/Math.LN10;var c=Math.log(Math.min(s[0],s[1]))/Math.LN10;return l(c)||(c=Math.log(Math.max(s[0],s[1]))/Math.LN10-6),c}},37815:function(o){o.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(o){o.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(o,a,n){var l=n(73972);o.exports=function(f){for(var s,c,d=l.layoutArrayContainers,h=l.layoutArrayRegexes,p=f.split("[")[0],m=0;m0&&c.log("Clearing previous rejected promises from queue."),C._promises=[]},a.cleanLayout=function(C){var P,D;C||(C={}),C.xaxis1&&(C.xaxis||(C.xaxis=C.xaxis1),delete C.xaxis1),C.yaxis1&&(C.yaxis||(C.yaxis=C.yaxis1),delete C.yaxis1),C.scene1&&(C.scene||(C.scene=C.scene1),delete C.scene1);var O=(d.subplotsRegistry.cartesian||{}).attrRegex,R=(d.subplotsRegistry.polar||{}).attrRegex,F=(d.subplotsRegistry.ternary||{}).attrRegex,A=(d.subplotsRegistry.gl3d||{}).attrRegex,z=Object.keys(C);for(P=0;P3?(Z.x=1.02,Z.xanchor="left"):Z.x<-2&&(Z.x=-.02,Z.xanchor="right"),Z.y>3?(Z.y=1.02,Z.yanchor="bottom"):Z.y<-2&&(Z.y=-.02,Z.yanchor="top")),b(C),C.dragmode==="rotate"&&(C.dragmode="orbit"),p.clean(C),C.template&&C.template.layout&&a.cleanLayout(C.template.layout),C},a.cleanData=function(C){for(var P=0;P0)return C.substr(0,P)}a.hasParent=function(C,P){for(var D=M(P);D;){if(D in C)return!0;D=M(D)}return!1};var S=["x","y","z"];a.clearAxisTypes=function(C,P,D){for(var O=0;O1&&s.warn("Full array edits are incompatible with other edits",x);var C=v[""][""];if(p(C))y.set(null);else{if(!Array.isArray(C))return s.warn("Unrecognized full array edit value",x,C),!0;y.set(C)}return!T&&(_(M,S),w(m),!0)}var P,D,O,R,F,A,z,B,$=Object.keys(v).map(Number).sort(c),j=y.get(),N=j||[],E=b(S,x).get(),W=[],G=-1,L=N.length;for(P=0;P<$.length;P++)if(R=v[O=$[P]],F=Object.keys(R),A=R[""],z=h(A),O<0||O>N.length-(z?0:1))s.warn("index out of range",x,O);else if(A!==void 0)F.length>1&&s.warn("Insertion & removal are incompatible with edits to the same index.",x,O),p(A)?W.push(O):z?(A==="add"&&(A={}),N.splice(O,0,A),E&&E.splice(O,0,{})):s.warn("Unrecognized full object edit value",x,O,A),G===-1&&(G=O);else for(D=0;D=0;P--)N.splice(W[P],1),E&&E.splice(W[P],1);if(N.length?j||y.set(N):y.set(null),T)return!1;if(_(M,S),k!==f){var q;if(G===-1)q=$;else{for(L=Math.max(N.length,L),q=[],P=0;P<$.length&&!((O=$[P])>=G);P++)q.push(O);for(P=G;P=ue.data.length||ke<-ue.data.length)throw new Error(be+" must be valid indices for gd.data.");if(ge.indexOf(ke,we+1)>-1||ke>=0&&ge.indexOf(-ue.data.length+ke)>-1||ke<0&&ge.indexOf(ue.data.length+ke)>-1)throw new Error("each index in "+be+" must be unique.")}}function E(ue,ge,be){if(!Array.isArray(ue.data))throw new Error("gd.data must be an array.");if(ge===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(ge)||(ge=[ge]),N(ue,ge,"currentIndices"),be===void 0||Array.isArray(be)||(be=[be]),be!==void 0&&N(ue,be,"newIndices"),be!==void 0&&ge.length!==be.length)throw new Error("current and new indices must be of equal length.")}function W(ue,ge,be,we,ke){(function(qe,Ye,at,lt){var ct=c.isPlainObject(lt);if(!Array.isArray(qe.data))throw new Error("gd.data must be an array");if(!c.isPlainObject(Ye))throw new Error("update must be a key:value object");if(at===void 0)throw new Error("indices must be an integer or array of integers");for(var bt in N(qe,at,"indices"),Ye){if(!Array.isArray(Ye[bt])||Ye[bt].length!==at.length)throw new Error("attribute "+bt+" must be an array of length equal to indices array length");if(ct&&(!(bt in lt)||!Array.isArray(lt[bt])||lt[bt].length!==Ye[bt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ue,ge,be,we);for(var Ae=function(qe,Ye,at,lt){var ct,bt,ze,Ne,Qe,it=c.isPlainObject(lt),kt=[];for(var Je in Array.isArray(at)||(at=[at]),at=j(at,qe.data.length-1),Ye)for(var ut=0;ut-1&&be.indexOf("grouptitlefont")===-1?De(be,be.replace("titlefont","title.font")):be.indexOf("titleposition")>-1?De(be,be.replace("titleposition","title.position")):be.indexOf("titleside")>-1?De(be,be.replace("titleside","title.side")):be.indexOf("titleoffset")>-1&&De(be,be.replace("titleoffset","title.offset")):De(be,be.replace("title","title.text"));function De(Re,Ie){ue[Ie]=ue[Re],delete ue[Re]}}function U(ue,ge,be){ue=c.getGraphDiv(ue),P.clearPromiseQueue(ue);var we={};if(typeof ge=="string")we[ge]=be;else{if(!c.isPlainObject(ge))return c.warn("Relayout fail.",ge,be),Promise.reject();we=c.extendFlat({},ge)}Object.keys(we).length&&(ue.changed=!0);var ke=ie(ue,we),Ae=ke.flags;Ae.calc&&(ue.calcdata=void 0);var Ee=[v.previousPromises];Ae.layoutReplot?Ee.push(D.layoutReplot):Object.keys(we).length&&(Q(ue,Ae,ke)||v.supplyDefaults(ue),Ae.legend&&Ee.push(D.doLegend),Ae.layoutstyle&&Ee.push(D.layoutStyles),Ae.axrange&&Y(Ee,ke.rangesAltered),Ae.ticks&&Ee.push(D.doTicksRelayout),Ae.modebar&&Ee.push(D.doModeBar),Ae.camera&&Ee.push(D.doCamera),Ae.colorbars&&Ee.push(D.doColorBars),Ee.push(A)),Ee.push(v.rehover,v.redrag,v.reselect),p.add(ue,U,[ue,ke.undoit],U,[ue,ke.redoit]);var De=c.syncOrAsync(Ee,ue);return De&&De.then||(De=Promise.resolve(ue)),De.then(function(){return ue.emit("plotly_relayout",ke.eventData),ue})}function Q(ue,ge,be){var we,ke,Ae=ue._fullLayout;if(!ge.axrange)return!1;for(var Ee in ge)if(Ee!=="axrange"&&ge[Ee])return!1;var De=function(Ye,at){return c.coerce(we,ke,x,Ye,at)},Re={};for(var Ie in be.rangesAltered){var Be=g.id2name(Ie);if(we=ue.layout[Be],ke=Ae[Be],b(we,ke,De,Re),ke._matchGroup){for(var Ue in ke._matchGroup)if(Ue!==Ie){var qe=Ae[g.id2name(Ue)];qe.autorange=ke.autorange,qe.range=ke.range.slice(),qe._input.range=ke.range.slice()}}}return!0}function Y(ue,ge){var be=ge?function(we){var ke=[];for(var Ae in ge){var Ee=g.getFromId(we,Ae);if(ke.push(Ae),(Ee.ticklabelposition||"").indexOf("inside")!==-1&&Ee._anchorAxis&&ke.push(Ee._anchorAxis._id),Ee._matchGroup)for(var De in Ee._matchGroup)ge[De]||ke.push(De)}return g.draw(we,ke,{skipTitle:!0})}:function(we){return g.draw(we,"redraw")};ue.push(M,D.doAutoRangeAndConstraints,be,D.drawData,D.finalDraw)}var Z=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,X=/^[xyz]axis[0-9]*\.autorange$/,re=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function ie(ue,ge){var be,we,ke,Ae=ue.layout,Ee=ue._fullLayout,De=Ee._guiEditing,Re=H(Ee._preGUI,De),Ie=Object.keys(ge),Be=g.list(ue),Ue=c.extendDeepAll({},ge),qe={};for(ee(ge),Ie=Object.keys(ge),we=0;we0&&typeof ut.parts[It]!="string";)It--;var Mt=ut.parts[It],zt=ut.parts[It-1]+"."+Mt,wt=ut.parts.slice(0,It).join("."),ve=d(ue.layout,wt).get(),_e=d(Ee,wt).get(),Ve=ut.get();if(pt!==void 0){bt[Je]=pt,ze[Je]=Mt==="reverse"?pt:q(Ve);var We=y.getLayoutValObject(Ee,ut.parts);if(We&&We.impliedEdits&&pt!==null)for(var Ze in We.impliedEdits)Ne(c.relativeAttr(Je,Ze),We.impliedEdits[Ze]);if(["width","height"].indexOf(Je)!==-1)if(pt){Ne("autosize",null);var Ge=Je==="height"?"width":"height";Ne(Ge,Ee[Ge])}else Ee[Je]=ue._initialAutoSize[Je];else if(Je==="autosize")Ne("width",pt?null:Ee.width),Ne("height",pt?null:Ee.height);else if(zt.match(Z))kt(zt),d(Ee,wt+"._inputRange").set(null);else if(zt.match(X)){kt(zt),d(Ee,wt+"._inputRange").set(null);var Ke=d(Ee,wt).get();Ke._inputDomain&&(Ke._input.domain=Ke._inputDomain.slice())}else zt.match(re)&&d(Ee,wt+"._inputDomain").set(null);if(Mt==="type"){Qe=ve;var nt=_e.type==="linear"&&pt==="log",st=_e.type==="log"&&pt==="linear";if(nt||st){if(Qe&&Qe.range)if(_e.autorange)nt&&(Qe.range=Qe.range[1]>Qe.range[0]?[1,2]:[2,1]);else{var mt=Qe.range[0],tt=Qe.range[1];nt?(mt<=0&&tt<=0&&Ne(wt+".autorange",!0),mt<=0?mt=tt/1e6:tt<=0&&(tt=mt/1e6),Ne(wt+".range[0]",Math.log(mt)/Math.LN10),Ne(wt+".range[1]",Math.log(tt)/Math.LN10)):(Ne(wt+".range[0]",Math.pow(10,mt)),Ne(wt+".range[1]",Math.pow(10,tt)))}else Ne(wt+".autorange",!0);Array.isArray(Ee._subplots.polar)&&Ee._subplots.polar.length&&Ee[ut.parts[0]]&&ut.parts[1]==="radialaxis"&&delete Ee[ut.parts[0]]._subplot.viewInitial["radialaxis.range"],m.getComponentMethod("annotations","convertCoords")(ue,_e,pt,Ne),m.getComponentMethod("images","convertCoords")(ue,_e,pt,Ne)}else Ne(wt+".autorange",!0),Ne(wt+".range",null);d(Ee,wt+"._inputRange").set(null)}else if(Mt.match(R)){var Ft=d(Ee,Je).get(),Vt=(pt||{}).type;Vt&&Vt!=="-"||(Vt="linear"),m.getComponentMethod("annotations","convertCoords")(ue,Ft,Vt,Ne),m.getComponentMethod("images","convertCoords")(ue,Ft,Vt,Ne)}var St=C.containerArrayMatch(Je);if(St){be=St.array,we=St.index;var Nt=St.property,Dt=We||{editType:"calc"};we!==""&&Nt===""&&(C.isAddVal(pt)?ze[Je]=null:C.isRemoveVal(pt)?ze[Je]=(d(Ae,be).get()||[])[we]:c.warn("unrecognized full object value",ge)),O.update(ct,Dt),qe[be]||(qe[be]={});var gt=qe[be][we];gt||(gt=qe[be][we]={}),gt[Nt]=pt,delete ge[Je]}else Mt==="reverse"?(ve.range?ve.range.reverse():(Ne(wt+".autorange",!0),ve.range=[1,0]),_e.autorange?ct.calc=!0:ct.plot=!0):(Je==="dragmode"&&(pt===!1&&Ve!==!1||pt!==!1&&Ve===!1)||Ee._has("scatter-like")&&Ee._has("regl")&&Je==="dragmode"&&(pt==="lasso"||pt==="select")&&Ve!=="lasso"&&Ve!=="select"||Ee._has("gl2d")?ct.plot=!0:We?O.update(ct,We):ct.calc=!0,ut.set(pt))}}for(be in qe)C.applyContainerArrayChanges(ue,Re(Ae,be),qe[be],ct,Re)||(ct.plot=!0);for(var ht in it){var yt=(Qe=g.getFromId(ue,ht))&&Qe._constraintGroup;if(yt)for(var qt in ct.calc=!0,yt)it[qt]||(g.getFromId(ue,qt)._constraintShrinkable=!0)}(le(ue)||ge.height||ge.width)&&(ct.plot=!0);var Et=Ee.shapes;for(we=0;we1;)if(we.pop(),(be=d(ge,we.join(".")+".uirevision").get())!==void 0)return be;return ge.uirevision}function ce(ue,ge){for(var be=0;be=ke.length?ke[0]:ke[Ie]:ke}function De(Ie){return Array.isArray(Ae)?Ie>=Ae.length?Ae[0]:Ae[Ie]:Ae}function Re(Ie,Be){var Ue=0;return function(){if(Ie&&++Ue===Be)return Ie()}}return we._frameWaitingCnt===void 0&&(we._frameWaitingCnt=0),new Promise(function(Ie,Be){function Ue(){ue.emit("plotly_animating"),we._lastFrameAt=-1/0,we._timeToNext=0,we._runningTransitions=0,we._currentFrame=null;var Je=function(){we._animationRaf=window.requestAnimationFrame(Je),Date.now()-we._lastFrameAt>we._timeToNext&&function(){we._currentFrame&&we._currentFrame.onComplete&&we._currentFrame.onComplete();var ut=we._currentFrame=we._frameQueue.shift();if(ut){var pt=ut.name?ut.name.toString():null;ue._fullLayout._currentFrame=pt,we._lastFrameAt=Date.now(),we._timeToNext=ut.frameOpts.duration,v.transition(ue,ut.frame.data,ut.frame.layout,P.coerceTraceIndices(ue,ut.frame.traces),ut.frameOpts,ut.transitionOpts).then(function(){ut.onComplete&&ut.onComplete()}),ue.emit("plotly_animatingframe",{name:pt,frame:ut.frame,animation:{frame:ut.frameOpts,transition:ut.transitionOpts}})}else ue.emit("plotly_animated"),window.cancelAnimationFrame(we._animationRaf),we._animationRaf=null}()};Je()}var qe,Ye,at=0;function lt(Je){return Array.isArray(ke)?at>=ke.length?Je.transitionOpts=ke[at]:Je.transitionOpts=ke[0]:Je.transitionOpts=ke,at++,Je}var ct=[],bt=ge==null,ze=Array.isArray(ge);if(bt||ze||!c.isPlainObject(ge)){if(bt||["string","number"].indexOf(typeof ge)!==-1)for(qe=0;qe0&&itit)&&kt.push(Ye);ct=kt}}ct.length>0?function(Je){if(Je.length!==0){for(var ut=0;ut=0;we--)if(c.isPlainObject(ge[we])){var qe=ge[we].name,Ye=(Re[qe]||Ue[qe]||{}).name,at=ge[we].name,lt=Re[Ye]||Ue[Ye];Ye&&at&&typeof at=="number"&<&&F<5&&(F++,c.warn('addFrames: overwriting frame "'+(Re[Ye]||Ue[Ye]).name+'" with a frame whose name of type "number" also equates to "'+Ye+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),F===5&&c.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Ue[qe]={name:qe},Be.push({frame:v.supplyFrameDefaults(ge[we]),index:be&&be[we]!==void 0&&be[we]!==null?be[we]:Ie+we})}Be.sort(function(Je,ut){return Je.index>ut.index?-1:Je.index=0;we--){if(typeof(ke=Be[we].frame).name=="number"&&c.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!ke.name)for(;Re[ke.name="frame "+ue._transitionData._counter++];);if(Re[ke.name]){for(Ae=0;Ae=0;be--)we=ge[be],Ae.push({type:"delete",index:we}),Ee.unshift({type:"insert",index:we,value:ke[we]});var De=v.modifyFrames,Re=v.modifyFrames,Ie=[ue,Ee],Be=[ue,Ae];return p&&p.add(ue,De,Ie,Re,Be),v.modifyFrames(ue,Ae)},a.addTraces=function ue(ge,be,we){ge=c.getGraphDiv(ge);var ke,Ae,Ee=[],De=a.deleteTraces,Re=ue,Ie=[ge,Ee],Be=[ge,be];for(function(Ue,qe,Ye){var at,lt;if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(qe===void 0)throw new Error("traces must be defined.");for(Array.isArray(qe)||(qe=[qe]),at=0;at=0&&Be=0&&Be=$.length)return!1;if(R.dimensions===2){if(A++,F.length===A)return R;var j=F[A];if(!S(j))return!1;R=$[B][j]}else R=$[B]}else R=$}}return R}function S(R){return R===Math.round(R)&&R>=0}function C(){var R,F,A={};for(R in y(A,c),l.subplotsRegistry)if((F=l.subplotsRegistry[R]).layoutAttributes)if(Array.isArray(F.attr))for(var z=0;z=j.length)return!1;z=(A=(l.transformsRegistry[j[N].type]||{}).attributes)&&A[F[2]],$=3}else{var E=R._module;if(E||(E=(l.modules[R.type||s.type.dflt]||{})._module),!E)return!1;if(!(z=(A=E.attributes)&&A[B])){var W=E.basePlotModule;W&&W.attributes&&(z=W.attributes[B])}z||(z=s[B])}return M(z,F,$)},a.getLayoutValObject=function(R,F){var A=function(z,B){var $,j,N,E,W=z._basePlotModules;if(W){var G;for($=0;$=v&&(y._input||{})._templateitemname;b&&(g=v);var x,_=m+"["+g+"]";function w(){x={},b&&(x[_]={},x[_][s]=b)}function k(M,S){b?l.nestedProperty(x[_],M).set(S):x[_+"."+M]=S}function T(){var M=x;return w(),M}return w(),{modifyBase:function(M,S){x[M]=S},modifyItem:k,getUpdateObj:T,applyUpdate:function(M,S){M&&k(M,S);var C=T();for(var P in C)l.nestedProperty(p,P).set(C[P])}}}},61549:function(o,a,n){var l=n(39898),f=n(73972),s=n(74875),c=n(71828),d=n(63893),h=n(33306),p=n(7901),m=n(91424),y=n(92998),v=n(64168),g=n(89298),b=n(18783),x=n(99082),_=x.enforce,w=x.clean,k=n(71739).doAutoRange,T="start";function M(O,R,F){for(var A=0;A=O[1]||z[1]<=O[0])&&B[0]R[0])return!0}return!1}function S(O){var R,F,A,z,B,$,j=O._fullLayout,N=j._size,E=N.p,W=g.list(O,"",!0);if(j._paperdiv.style({width:O._context.responsive&&j.autosize&&!O._context._hasZeroWidth&&!O.layout.width?"100%":j.width+"px",height:O._context.responsive&&j.autosize&&!O._context._hasZeroHeight&&!O.layout.height?"100%":j.height+"px"}).selectAll(".main-svg").call(m.setSize,j.width,j.height),O._context.setBackground(O,j.paper_bgcolor),a.drawMainTitle(O),v.manage(O),!j._has("cartesian"))return s.previousPromises(O);function G(Ie,Be,Ue){var qe=Ie._lw/2;return Ie._id.charAt(0)==="x"?Be?Ue==="top"?Be._offset-E-qe:Be._offset+Be._length+E+qe:N.t+N.h*(1-(Ie.position||0))+qe%1:Be?Ue==="right"?Be._offset+Be._length+E+qe:Be._offset-E-qe:N.l+N.w*(Ie.position||0)+qe%1}for(R=0;R.5?"t":"b",ee=G._fullLayout.margin[te],U=0;return L.yref==="paper"?U=q+L.pad.t+L.pad.b:L.yref==="container"&&(U=function(Q,Y,Z,X,re){var ie=0;return Z==="middle"&&(ie+=re/2),Q==="t"?(Z==="top"&&(ie+=re),ie+=X-Y*X):(Z==="bottom"&&(ie+=re),ie+=Y*X),ie}(te,H,V,G._fullLayout.height,q)+L.pad.t+L.pad.b),U>ee?U:0}(O,F,E);W>0&&(function(G,L,q,H){var V="title.automargin",te=G._fullLayout.title,ee=te.y>.5?"t":"b",U={x:te.x,y:te.y,t:0,b:0},Q={};te.yref==="paper"&&function(Y,Z,X,re,ie){var le=Z.yref==="paper"?Y._fullLayout._size.h:Y._fullLayout.height,se=c.isTopAnchor(Z)?re:re-ie,pe=X==="b"?le-se:se;return!(c.isTopAnchor(Z)&&X==="t"||c.isBottomAnchor(Z)&&X==="b")&&peN?D.push({code:"unused",traceType:A,templateCount:j,dataCount:N}):N>j&&D.push({code:"reused",traceType:A,templateCount:j,dataCount:N})}}else D.push({code:"data"});if(function E(W,G){for(var L in W)if(L.charAt(0)!=="_"){var q=W[L],H=x(W,L,G);f(q)?(Array.isArray(W)&&q._template===!1&&q.templateitemname&&D.push({code:"missing",path:H,templateitemname:q.templateitemname}),E(q,H)):Array.isArray(q)&&_(q)&&E(q,H)}}({data:R,layout:O},""),D.length)return D.map(w)}},403:function(o,a,n){var l=n(92770),f=n(72391),s=n(74875),c=n(71828),d=n(25095),h=n(5900),p=n(70942),m=n(11506).version,y={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};o.exports=function(v,g){var b,x,_,w;function k(N){return!(N in g)||c.validate(g[N],y[N])}if(g=g||{},c.isPlainObject(v)?(b=v.data||[],x=v.layout||{},_=v.config||{},w={}):(v=c.getGraphDiv(v),b=c.extendDeep([],v.data),x=c.extendDeep({},v.layout),_=v._context,w=v._fullLayout||{}),!k("width")&&g.width!==null||!k("height")&&g.height!==null)throw new Error("Height and width should be pixel values.");if(!k("format"))throw new Error("Export format is not "+c.join2(y.format.values,", "," or ")+".");var T={};function M(N,E){return c.coerce(g,T,y,N,E)}var S=M("format"),C=M("width"),P=M("height"),D=M("scale"),O=M("setBackground"),R=M("imageDataOnly"),F=document.createElement("div");F.style.position="absolute",F.style.left="-5000px",document.body.appendChild(F);var A=c.extendFlat({},x);C?A.width=C:g.width===null&&l(w.width)&&(A.width=w.width),P?A.height=P:g.height===null&&l(w.height)&&(A.height=w.height);var z=c.extendFlat({},_,{_exportedPlot:!0,staticPlot:!0,setBackground:O}),B=d.getRedrawFunc(F);function $(){return new Promise(function(N){setTimeout(N,d.getDelay(F._fullLayout))})}function j(){return new Promise(function(N,E){var W=h(F,S,D),G=F._fullLayout.width,L=F._fullLayout.height;function q(){f.purge(F),document.body.removeChild(F)}if(S==="full-json"){var H=s.graphJson(F,!1,"keepdata","object",!0,!0);return H.version=m,H=JSON.stringify(H),q(),N(R?H:d.encodeJSON(H))}if(q(),S==="svg")return N(R?W:d.encodeSVG(W));var V=document.createElement("canvas");V.id=c.randstr(),p({format:S,width:G,height:L,scale:D,canvas:V,svg:W,promise:!0}).then(N).catch(E)})}return new Promise(function(N,E){f.newPlot(F,b,A,z).then(B).then($).then(j).then(function(W){N(function(G){return R?G.replace(d.IMAGE_URL_PREFIX,""):G}(W))}).catch(function(W){E(W)})})}},84936:function(o,a,n){var l=n(71828),f=n(74875),s=n(86281),c=n(72075).dfltConfig,d=l.isPlainObject,h=Array.isArray,p=l.isArrayOrTypedArray;function m(k,T,M,S,C,P){P=P||[];for(var D=Object.keys(k),O=0;Oz.length&&S.push(g("unused",C,F.concat(z.length)));var W,G,L,q,H,V=z.length,te=Array.isArray(E);if(te&&(V=Math.min(V,E.length)),B.dimensions===2)for(G=0;Gz[G].length&&S.push(g("unused",C,F.concat(G,z[G].length)));var ee=z[G].length;for(W=0;W<(te?Math.min(ee,E[G].length):ee);W++)L=te?E[G][W]:E,q=A[G][W],H=z[G][W],l.validate(q,L)?H!==q&&H!==+q&&S.push(g("dynamic",C,F.concat(G,W),q,H)):S.push(g("value",C,F.concat(G,W),q))}else S.push(g("array",C,F.concat(G),A[G]));else for(G=0;G1&&P.push(g("object","layout"))),f.supplyDefaults(D);for(var O=D._fullData,R=M.length,F=0;F0&&Math.round(x)===x))return{vals:y};g=x}for(var _=p.calendar,w=v==="start",k=v==="end",T=h[m+"period0"],M=s(T,_)||0,S=[],C=[],P=[],D=y.length,O=0;Oz;)A=c(A,-g,_);for(;A<=z;)A=c(A,g,_);F=c(A,-g,_)}else{for(A=M+(R=Math.round((z-M)/b))*b;A>z;)A-=b;for(;A<=z;)A+=b;F=A-b}S[O]=w?F:k?A:(F+A)/2,C[O]=F,P[O]=A}return{vals:S,starts:C,ends:P}}},89502:function(o){o.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(o,a,n){var l=n(39898),f=n(92770),s=n(71828),c=n(50606).FP_SAFE,d=n(73972),h=n(91424),p=n(41675),m=p.getFromId,y=p.isLinked;function v(O,R){var F,A,z=[],B=O._fullLayout,$=b(B,R,0),j=b(B,R,1),N=_(O,R),E=N.min,W=N.max;if(E.length===0||W.length===0)return s.simpleMap(R.range,R.r2l);var G=E[0].val,L=W[0].val;for(F=1;F0&&((Y=le-$(te)-j(ee))>se?Z/Y>pe&&(U=te,Q=ee,pe=Z/Y):Z/le>pe&&(U={val:te.val,nopad:1},Q={val:ee.val,nopad:1},pe=Z/le));if(G===L){var Te=G-1,Se=G+1;if(re)if(G===0)z=[0,1];else{var Oe=(G>0?W:E).reduce(function(ce,ye){return Math.max(ce,j(ye))},0),Me=G/(1-Math.min(.5,Oe/le));z=G>0?[0,Me]:[Me,0]}else z=ie?[Math.max(0,Te),Math.max(1,Se)]:[Te,Se]}else re?(U.val>=0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:0,nopad:1})):ie&&(U.val-pe*$(U)<0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:1,nopad:1})),pe=(Q.val-U.val-g(R,te.val,ee.val))/(le-$(U)-j(Q)),z=[U.val-pe*$(U),Q.val+pe*j(Q)];return z=D(z,R),R.limitRange&&R.limitRange(),H&&z.reverse(),s.simpleMap(z,R.l2r||Number)}function g(O,R,F){var A=0;if(O.rangebreaks)for(var z=O.locateBreaks(R,F),B=0;B0?F.ppadplus:F.ppadminus)||F.ppad||0),X=Y((O._m>0?F.ppadminus:F.ppadplus)||F.ppad||0),re=Y(F.vpadplus||F.vpad),ie=Y(F.vpadminus||F.vpad);if(!U){if(W=1/0,G=-1/0,ee)for(A=0;A0&&(W=z),z>G&&z-c&&(W=z),z>G&&z=pe;A--)se(A);return{min:L,max:q,opts:F}},concatExtremes:_};var x=3;function _(O,R,F){var A,z,B,$=R._id,j=O._fullData,N=O._fullLayout,E=[],W=[];function G(te,ee){for(A=0;A=F&&(E.extrapad||!$)){j=!1;break}z(R,E.val)&&E.pad<=F&&($||!E.extrapad)&&(O.splice(N,1),N--)}if(j){var W=B&&R===0;O.push({val:R,pad:W?0:F,extrapad:!W&&$})}}function M(O){return f(O)&&Math.abs(O)=R}function P(O,R,F){return R===void 0||F===void 0||(R=O.d2l(R))=N&&(B=N,F=N),$<=N&&($=N,A=N)}}return F=function(E,W){var G=W.autorangeoptions;return G&&G.minallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.minallowed:G&&G.clipmin!==void 0&&P(W,G.clipmin,G.clipmax)?Math.max(E,W.d2l(G.clipmin)):E}(F,R),A=function(E,W){var G=W.autorangeoptions;return G&&G.maxallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.maxallowed:G&&G.clipmax!==void 0&&P(W,G.clipmin,G.clipmax)?Math.min(E,W.d2l(G.clipmax)):E}(A,R),[F,A]}},23074:function(o){o.exports=function(a,n,l){var f,s;if(l){var c=n==="reversed"||n==="min reversed"||n==="max reversed";f=l[c?1:0],s=l[c?0:1]}var d=a("autorangeoptions.minallowed",s===null?f:void 0),h=a("autorangeoptions.maxallowed",f===null?s:void 0);d===void 0&&a("autorangeoptions.clipmin"),h===void 0&&a("autorangeoptions.clipmax"),a("autorangeoptions.include")}},89298:function(o,a,n){var l=n(39898),f=n(92770),s=n(74875),c=n(73972),d=n(71828),h=d.strTranslate,p=n(63893),m=n(92998),y=n(7901),v=n(91424),g=n(13838),b=n(66287),x=n(50606),_=x.ONEMAXYEAR,w=x.ONEAVGYEAR,k=x.ONEMINYEAR,T=x.ONEMAXQUARTER,M=x.ONEAVGQUARTER,S=x.ONEMINQUARTER,C=x.ONEMAXMONTH,P=x.ONEAVGMONTH,D=x.ONEMINMONTH,O=x.ONEWEEK,R=x.ONEDAY,F=R/2,A=x.ONEHOUR,z=x.ONEMIN,B=x.ONESEC,$=x.MINUS_SIGN,j=x.BADNUM,N={K:"zeroline"},E={K:"gridline",L:"path"},W={K:"minor-gridline",L:"path"},G={K:"tick",L:"path"},L={K:"tick",L:"text"},q={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},H=n(18783),V=H.MID_SHIFT,te=H.CAP_SHIFT,ee=H.LINE_SPACING,U=H.OPPOSITE_SIDE,Q=o.exports={};Q.setConvert=n(21994);var Y=n(4322),Z=n(41675),X=Z.idSort,re=Z.isLinked;Q.id2name=Z.id2name,Q.name2id=Z.name2id,Q.cleanId=Z.cleanId,Q.list=Z.list,Q.listIds=Z.listIds,Q.getFromId=Z.getFromId,Q.getFromTrace=Z.getFromTrace;var ie=n(71739);Q.getAutoRange=ie.getAutoRange,Q.findExtremes=ie.findExtremes;var le=1e-4;function se(ve){var _e=(ve[1]-ve[0])*le;return[ve[0]-_e,ve[1]+_e]}Q.coerceRef=function(ve,_e,Ve,We,Ze,Ge){var Ke=We.charAt(We.length-1),nt=Ve._fullLayout._subplots[Ke+"axis"],st=We+"ref",mt={};return Ze||(Ze=nt[0]||(typeof Ge=="string"?Ge:Ge[0])),Ge||(Ge=Ze),nt=nt.concat(nt.map(function(tt){return tt+" domain"})),mt[st]={valType:"enumerated",values:nt.concat(Ge?typeof Ge=="string"?[Ge]:Ge:[]),dflt:Ze},d.coerce(ve,_e,mt,st)},Q.getRefType=function(ve){return ve===void 0?ve:ve==="paper"?"paper":ve==="pixel"?"pixel":/( domain)$/.test(ve)?"domain":"range"},Q.coercePosition=function(ve,_e,Ve,We,Ze,Ge){var Ke,nt;if(Q.getRefType(We)!=="range")Ke=d.ensureNumber,nt=Ve(Ze,Ge);else{var st=Q.getFromId(_e,We);nt=Ve(Ze,Ge=st.fraction2r(Ge)),Ke=st.cleanPos}ve[Ze]=Ke(nt)},Q.cleanPosition=function(ve,_e,Ve){return(Ve==="paper"||Ve==="pixel"?d.ensureNumber:Q.getFromId(_e,Ve).cleanPos)(ve)},Q.redrawComponents=function(ve,_e){_e=_e||Q.listIds(ve);var Ve=ve._fullLayout;function We(Ze,Ge,Ke,nt){for(var st=c.getComponentMethod(Ze,Ge),mt={},tt=0;tt<_e.length;tt++)for(var Ft=Ve[Q.id2name(_e[tt])][Ke],Vt=0;VtVe&&tt2e-6||((Ve-ve._forceTick0)/ve._minDtick%1+1.000001)%1>2e-6)&&(ve._minDtick=0)):ve._minDtick=0},Q.saveRangeInitial=function(ve,_e){for(var Ve=Q.list(ve,"",!0),We=!1,Ze=0;Ze.3*$t||Lt(qt)||Lt(Et))){var Yt=yt.dtick/2;gt+=gt+Yt.8){var Tt=Number(yt.substr(1));jt.exactYears>.8&&Tt%12==0?gt=Q.tickIncrement(gt,"M6","reverse")+1.5*R:jt.exactMonths>.8?gt=Q.tickIncrement(gt,"M1","reverse")+15.5*R:gt-=F;var Ot=Q.tickIncrement(gt,yt);if(Ot<=qt)return Ot}return gt}(Dt,ve,Nt,nt,Ze)),St=Dt;St<=st;)St=Q.tickIncrement(St,Nt,!1,Ze);return{start:_e.c2r(Dt,0,Ze),end:_e.c2r(St,0,Ze),size:Nt,_dataSpan:st-nt}},Q.prepMinorTicks=function(ve,_e,Ve){if(!_e.minor.dtick){delete ve.dtick;var We,Ze=_e.dtick&&f(_e._tmin);if(Ze){var Ge=Q.tickIncrement(_e._tmin,_e.dtick,!0);We=[_e._tmin,.99*Ge+.01*_e._tmin]}else{var Ke=d.simpleMap(_e.range,_e.r2l);We=[Ke[0],.8*Ke[0]+.2*Ke[1]]}if(ve.range=d.simpleMap(We,_e.l2r),ve._isMinor=!0,Q.prepTicks(ve,Ve),Ze){var nt=f(_e.dtick),st=f(ve.dtick),mt=nt?_e.dtick:+_e.dtick.substring(1),tt=st?ve.dtick:+ve.dtick.substring(1);nt&&st?Oe(mt,tt)?mt===2*O&&tt===2*R&&(ve.dtick=O):mt===2*O&&tt===3*R?ve.dtick=O:mt!==O||(_e._input.minor||{}).nticks?Me(mt/tt,2.5)?ve.dtick=mt/2:ve.dtick=mt:ve.dtick=R:String(_e.dtick).charAt(0)==="M"?st?ve.dtick="M1":Oe(mt,tt)?mt>=12&&tt===2&&(ve.dtick="M3"):ve.dtick=_e.dtick:String(ve.dtick).charAt(0)==="L"?String(_e.dtick).charAt(0)==="L"?Oe(mt,tt)||(ve.dtick=Me(mt/tt,2.5)?_e.dtick/2:_e.dtick):ve.dtick="D1":ve.dtick==="D2"&&+_e.dtick>1&&(ve.dtick=1)}ve.range=_e.range}_e.minor._tick0Init===void 0&&(ve.tick0=_e.tick0)},Q.prepTicks=function(ve,_e){var Ve=d.simpleMap(ve.range,ve.r2l,void 0,void 0,_e);if(ve.tickmode==="auto"||!ve.dtick){var We,Ze=ve.nticks;Ze||(ve.type==="category"||ve.type==="multicategory"?(We=ve.tickfont?d.bigFont(ve.tickfont.size||12):15,Ze=ve._length/We):(We=ve._id.charAt(0)==="y"?40:80,Ze=d.constrain(ve._length/We,4,9)+1),ve._name==="radialaxis"&&(Ze*=2)),ve.minor&&ve.minor.tickmode!=="array"||ve.tickmode==="array"&&(Ze*=100),ve._roughDTick=Math.abs(Ve[1]-Ve[0])/Ze,Q.autoTicks(ve,ve._roughDTick),ve._minDtick>0&&ve.dtick<2*ve._minDtick&&(ve.dtick=ve._minDtick,ve.tick0=ve.l2r(ve._forceTick0))}ve.ticklabelmode==="period"&&function(Ge){var Ke;function nt(){return!(f(Ge.dtick)||Ge.dtick.charAt(0)!=="M")}var st=nt(),mt=Q.getTickFormat(Ge);if(mt){var tt=Ge._dtickInit!==Ge.dtick;/%[fLQsSMX]/.test(mt)||(/%[HI]/.test(mt)?(Ke=A,tt&&!st&&Ge.dtick=(ht?0:1);yt--){var qt=!yt;yt?(ve._dtickInit=ve.dtick,ve._tick0Init=ve.tick0):(ve.minor._dtickInit=ve.minor.dtick,ve.minor._tick0Init=ve.minor.tick0);var Et=yt?ve:d.extendFlat({},ve,ve.minor);if(qt?Q.prepMinorTicks(Et,ve,_e):Q.prepTicks(Et,_e),Et.tickmode!=="array")if(Et.tickmode!=="sync"){var jt=se(st),Tt=jt[0],Ot=jt[1],At=f(Et.dtick),Lt=Ze==="log"&&!(At||Et.dtick.charAt(0)==="L"),Rt=Q.tickFirst(Et,_e);if(yt){if(ve._tmin=Rt,Rt=Ot:Bt<=Ot;Bt=Q.tickIncrement(Bt,Wt,mt,Ge)){if(yt&&$t++,Et.rangebreaks&&!mt){if(Bt=Ft)break}if(Dt.length>Vt||Bt===Xt)break;Xt=Bt;var tn={value:Bt};yt?(Lt&&Bt!==(0|Bt)&&(tn.simpleLabel=!0),Ke>1&&$t%Ke&&(tn.skipLabel=!0),Dt.push(tn)):(tn.minor=!0,gt.push(tn))}}else Dt=[],St=J(ve);else yt?(Dt=[],St=ne(ve)):(gt=[],Nt=ne(ve))}if(ht&&!(ve.minor.ticks==="inside"&&ve.ticks==="outside"||ve.minor.ticks==="outside"&&ve.ticks==="inside")){for(var cn=Dt.map(function(lr){return lr.value}),ln=[],an=0;an0?(la=ur-1,An=ur):(la=ur,An=ur);var on,$n=lr[la].value,Pr=lr[An].value,Ln=Math.abs(Pr-$n),Bn=Ar||Ln,jn=0;Bn>=k?jn=Ln>=k&&Ln<=_?Ln:w:Ar===M&&Bn>=S?jn=Ln>=S&&Ln<=T?Ln:M:Bn>=D?jn=Ln>=D&&Ln<=C?Ln:P:Ar===O&&Bn>=O?jn=O:Bn>=R?jn=R:Ar===F&&Bn>=F?jn=F:Ar===A&&Bn>=A&&(jn=A),jn>=Ln&&(jn=Ln,on=!0);var Un=kr+jn;if(ti.rangebreaks&&jn>0){for(var Lr=0,xr=0;xr<84;xr++){var Mr=(xr+.5)/84;ti.maskBreaks(kr*(1-Mr)+Mr*Un)!==j&&Lr++}(jn*=Lr/84)||(lr[ur].drop=!0),on&&Ln>O&&(jn=Ln)}(jn>0||ur===0)&&(lr[ur].periodX=kr+jn/2)}}(Dt,ve,ve._definedDelta),ve.rangebreaks){var Kt=ve._id.charAt(0)==="y",On=1;ve.tickmode==="auto"&&(On=ve.tickfont?ve.tickfont.size:12);var Tn=NaN;for(Ve=Dt.length-1;Ve>-1;Ve--)if(Dt[Ve].drop)Dt.splice(Ve,1);else{Dt[Ve].value=It(Dt[Ve].value,ve);var Dn=ve.c2p(Dt[Ve].value);(Kt?Tn>Dn-On:TnFt||EnFt&&(wn.periodX=Ft),En10||We.substr(5)!=="01-01"?ve._tickround="d":ve._tickround=+_e.substr(1)%12==0?"y":"m";else if(_e>=R&&Ze<=10||_e>=15*R)ve._tickround="d";else if(_e>=z&&Ze<=16||_e>=A)ve._tickround="M";else if(_e>=B&&Ze<=19||_e>=z)ve._tickround="S";else{var Ge=ve.l2r(Ve+_e).replace(/^-/,"").length;ve._tickround=Math.max(Ze,Ge)-20,ve._tickround<0&&(ve._tickround=4)}}else if(f(_e)||_e.charAt(0)==="L"){var Ke=ve.range.map(ve.r2d||Number);f(_e)||(_e=Number(_e.substr(1))),ve._tickround=2-Math.floor(Math.log(_e)/Math.LN10+.01);var nt=Math.max(Math.abs(Ke[0]),Math.abs(Ke[1])),st=Math.floor(Math.log(nt)/Math.LN10+.01),mt=ve.minexponent===void 0?3:ve.minexponent;Math.abs(st)>mt&&(Ie(ve.exponentformat)&&!Be(st)?ve._tickexponent=3*Math.round((st-1)/3):ve._tickexponent=st)}else ve._tickround=null}function De(ve,_e,Ve){var We=ve.tickfont||{};return{x:_e,dx:0,dy:0,text:Ve||"",fontSize:We.size,font:We.family,fontColor:We.color}}Q.autoTicks=function(ve,_e,Ve){var We;function Ze(Ft){return Math.pow(Ft,Math.floor(Math.log(_e)/Math.LN10))}if(ve.type==="date"){ve.tick0=d.dateTick0(ve.calendar,0);var Ge=2*_e;if(Ge>w)_e/=w,We=Ze(10),ve.dtick="M"+12*Ae(_e,We,de);else if(Ge>P)_e/=P,ve.dtick="M"+Ae(_e,1,xe);else if(Ge>R){if(ve.dtick=Ae(_e,R,ve._hasDayOfWeekBreaks?[1,2,7,14]:ge),!Ve){var Ke=Q.getTickFormat(ve),nt=ve.ticklabelmode==="period";nt&&(ve._rawTick0=ve.tick0),/%[uVW]/.test(Ke)?ve.tick0=d.dateTick0(ve.calendar,2):ve.tick0=d.dateTick0(ve.calendar,1),nt&&(ve._dowTick0=ve.tick0)}}else Ge>A?ve.dtick=Ae(_e,A,xe):Ge>z?ve.dtick=Ae(_e,z,ue):Ge>B?ve.dtick=Ae(_e,B,ue):(We=Ze(10),ve.dtick=Ae(_e,We,de))}else if(ve.type==="log"){ve.tick0=0;var st=d.simpleMap(ve.range,ve.r2l);if(ve._isMinor&&(_e*=1.5),_e>.7)ve.dtick=Math.ceil(_e);else if(Math.abs(st[1]-st[0])<1){var mt=1.5*Math.abs((st[1]-st[0])/_e);_e=Math.abs(Math.pow(10,st[1])-Math.pow(10,st[0]))/mt,We=Ze(10),ve.dtick="L"+Ae(_e,We,de)}else ve.dtick=_e>.3?"D2":"D1"}else ve.type==="category"||ve.type==="multicategory"?(ve.tick0=0,ve.dtick=Math.ceil(Math.max(_e,1))):pt(ve)?(ve.tick0=0,We=1,ve.dtick=Ae(_e,We,ke)):(ve.tick0=0,We=Ze(10),ve.dtick=Ae(_e,We,de));if(ve.dtick===0&&(ve.dtick=1),!f(ve.dtick)&&typeof ve.dtick!="string"){var tt=ve.dtick;throw ve.dtick=1,"ax.dtick error: "+String(tt)}},Q.tickIncrement=function(ve,_e,Ve,We){var Ze=Ve?-1:1;if(f(_e))return d.increment(ve,Ze*_e);var Ge=_e.charAt(0),Ke=Ze*Number(_e.substr(1));if(Ge==="M")return d.incrementMonth(ve,Ke,We);if(Ge==="L")return Math.log(Math.pow(10,ve)+Ke)/Math.LN10;if(Ge==="D"){var nt=_e==="D2"?we:be,st=ve+.01*Ze,mt=d.roundUp(d.mod(st,1),nt,Ve);return Math.floor(st)+Math.log(l.round(Math.pow(10,mt),1))/Math.LN10}throw"unrecognized dtick "+String(_e)},Q.tickFirst=function(ve,_e){var Ve=ve.r2l||Number,We=d.simpleMap(ve.range,Ve,void 0,void 0,_e),Ze=We[1] ")}else gt._prevDateHead=Tt,Ot+="
"+Tt;ht.text=Ot}(ve,Ge,Ve,nt):st==="log"?function(gt,ht,yt,qt,Et){var jt=gt.dtick,Tt=ht.x,Ot=gt.tickformat,At=typeof jt=="string"&&jt.charAt(0);if(Et==="never"&&(Et=""),qt&&At!=="L"&&(jt="L3",At="L"),Ot||At==="L")ht.text=Ue(Math.pow(10,Tt),gt,Et,qt);else if(f(jt)||At==="D"&&d.mod(Tt+.01,1)<.1){var Lt=Math.round(Tt),Rt=Math.abs(Lt),$t=gt.exponentformat;$t==="power"||Ie($t)&&Be(Lt)?(ht.text=Lt===0?1:Lt===1?"10":"10"+(Lt>1?"":$)+Rt+"",ht.fontSize*=1.25):($t==="e"||$t==="E")&&Rt>2?ht.text="1"+$t+(Lt>0?"+":$)+Rt:(ht.text=Ue(Math.pow(10,Tt),gt,"","fakehover"),jt==="D1"&>._id.charAt(0)==="y"&&(ht.dy-=ht.fontSize/6))}else{if(At!=="D")throw"unrecognized dtick "+String(jt);ht.text=String(Math.round(Math.pow(10,d.mod(Tt,1)))),ht.fontSize*=.75}if(gt.dtick==="D1"){var Yt=String(ht.text).charAt(0);Yt!=="0"&&Yt!=="1"||(gt._id.charAt(0)==="y"?ht.dx-=ht.fontSize/4:(ht.dy+=ht.fontSize/2,ht.dx+=(gt.range[1]>gt.range[0]?1:-1)*ht.fontSize*(Tt<0?.5:.25)))}}(ve,Ge,0,nt,St):st==="category"?function(gt,ht){var yt=gt._categories[Math.round(ht.x)];yt===void 0&&(yt=""),ht.text=String(yt)}(ve,Ge):st==="multicategory"?function(gt,ht,yt){var qt=Math.round(ht.x),Et=gt._categories[qt]||[],jt=Et[1]===void 0?"":String(Et[1]),Tt=Et[0]===void 0?"":String(Et[0]);yt?ht.text=Tt+" - "+jt:(ht.text=jt,ht.text2=Tt)}(ve,Ge,Ve):pt(ve)?function(gt,ht,yt,qt,Et){if(gt.thetaunit!=="radians"||yt)ht.text=Ue(ht.x,gt,Et,qt);else{var jt=ht.x/180;if(jt===0)ht.text="0";else{var Tt=function(At){function Lt(Xt,Bt){return Math.abs(Xt-Bt)<=1e-6}var Rt=function(Xt){for(var Bt=1;!Lt(Math.round(Xt*Bt)/Bt,Xt);)Bt*=10;return Bt}(At),$t=At*Rt,Yt=Math.abs(function Xt(Bt,Wt){return Lt(Wt,0)?Bt:Xt(Wt,Bt%Wt)}($t,Rt));return[Math.round($t/Yt),Math.round(Rt/Yt)]}(jt);if(Tt[1]>=100)ht.text=Ue(d.deg2rad(ht.x),gt,Et,qt);else{var Ot=ht.x<0;Tt[1]===1?Tt[0]===1?ht.text="π":ht.text=Tt[0]+"π":ht.text=["",Tt[0],"","⁄","",Tt[1],"","π"].join(""),Ot&&(ht.text=$+ht.text)}}}}(ve,Ge,Ve,nt,St):function(gt,ht,yt,qt,Et){Et==="never"?Et="":gt.showexponent==="all"&&Math.abs(ht.x/gt.dtick)<1e-6&&(Et="hide"),ht.text=Ue(ht.x,gt,Et,qt)}(ve,Ge,0,nt,St),We||(ve.tickprefix&&!Vt(ve.showtickprefix)&&(Ge.text=ve.tickprefix+Ge.text),ve.ticksuffix&&!Vt(ve.showticksuffix)&&(Ge.text+=ve.ticksuffix)),ve.labelalias&&ve.labelalias.hasOwnProperty(Ge.text)){var Nt=ve.labelalias[Ge.text];typeof Nt=="string"&&(Ge.text=Nt)}if(ve.tickson==="boundaries"||ve.showdividers){var Dt=function(gt){var ht=ve.l2p(gt);return ht>=0&&ht<=ve._length?gt:null};Ge.xbnd=[Dt(Ge.x-.5),Dt(Ge.x+ve.dtick-.5)]}return Ge},Q.hoverLabelText=function(ve,_e,Ve){Ve&&(ve=d.extendFlat({},ve,{hoverformat:Ve}));var We=Array.isArray(_e)?_e[0]:_e,Ze=Array.isArray(_e)?_e[1]:void 0;if(Ze!==void 0&&Ze!==We)return Q.hoverLabelText(ve,We,Ve)+" - "+Q.hoverLabelText(ve,Ze,Ve);var Ge=ve.type==="log"&&We<=0,Ke=Q.tickText(ve,ve.c2l(Ge?-We:We),"hover").text;return Ge?We===0?"0":$+Ke:Ke};var Re=["f","p","n","μ","m","","k","M","G","T"];function Ie(ve){return ve==="SI"||ve==="B"}function Be(ve){return ve>14||ve<-15}function Ue(ve,_e,Ve,We){var Ze=ve<0,Ge=_e._tickround,Ke=Ve||_e.exponentformat||"B",nt=_e._tickexponent,st=Q.getTickFormat(_e),mt=_e.separatethousands;if(We){var tt={exponentformat:Ke,minexponent:_e.minexponent,dtick:_e.showexponent==="none"?_e.dtick:f(ve)&&Math.abs(ve)||1,range:_e.showexponent==="none"?_e.range.map(_e.r2d):[0,ve||1]};Ee(tt),Ge=(Number(tt._tickround)||0)+4,nt=tt._tickexponent,_e.hoverformat&&(st=_e.hoverformat)}if(st)return _e._numFormat(st)(ve).replace(/-/g,$);var Ft,Vt=Math.pow(10,-Ge)/2;if(Ke==="none"&&(nt=0),(ve=Math.abs(ve))"+Ft+"":Ke==="B"&&nt===9?ve+="B":Ie(Ke)&&(ve+=Re[nt/3+5])),Ze?$+ve:ve}function qe(ve,_e){if(ve){var Ve=Object.keys(q).reduce(function(We,Ze){return _e.indexOf(Ze)!==-1&&q[Ze].forEach(function(Ge){We[Ge]=1}),We},{});Object.keys(ve).forEach(function(We){Ve[We]||(We.length===1?ve[We]=0:delete ve[We])})}}function Ye(ve,_e){for(var Ve=[],We={},Ze=0;Ze<_e.length;Ze++){var Ge=_e[Ze];We[Ge.text2]?We[Ge.text2].push(Ge.x):We[Ge.text2]=[Ge.x]}for(var Ke in We)Ve.push(De(ve,d.interp(We[Ke],.5),Ke));return Ve}function at(ve){return ve.periodX!==void 0?ve.periodX:ve.x}function lt(ve){return[ve.text,ve.x,ve.axInfo,ve.font,ve.fontSize,ve.fontColor].join("_")}function ct(ve){var _e=ve.title.font.size,Ve=(ve.title.text.match(p.BR_TAG_ALL)||[]).length;return ve.title.hasOwnProperty("standoff")?Ve?_e*(te+Ve*ee):_e*te:Ve?_e*(Ve+1)*ee:_e}function bt(ve,_e){var Ve=ve.l2p(_e);return Ve>1&&Ve=Ze.min&&ve=0,ht=tt(Vt,St[1])<=0;return(Nt||gt)&&(Dt||ht)}if(ve.tickformatstops&&ve.tickformatstops.length>0)switch(ve.type){case"date":case"linear":for(_e=0;_e=Ke(Ze)))){Ve=We;break}break;case"log":for(_e=0;_e=0&&Ze.unshift(Ze.splice(mt,1).shift())}});var Ke={false:{left:0,right:0}};return d.syncOrAsync(Ze.map(function(nt){return function(){if(nt){var st=Q.getFromId(ve,nt);Ve||(Ve={}),Ve.axShifts=Ke,Ve.overlayingShiftedAx=Ge;var mt=Q.drawOne(ve,st,Ve);return st._shiftPusher&&wt(st,st._fullDepth||0,Ke,!0),st._r=st.range.slice(),st._rl=d.simpleMap(st._r,st.r2l),mt}}}))},Q.drawOne=function(ve,_e,Ve){var We,Ze,Ge,Ke=(Ve=Ve||{}).axShifts||{},nt=Ve.overlayingShiftedAx||[];_e.setScale();var st=ve._fullLayout,mt=_e._id,tt=mt.charAt(0),Ft=Q.counterLetter(mt),Vt=st._plots[_e._mainSubplot];if(Vt){if(_e._shiftPusher=_e.autoshift||nt.indexOf(_e._id)!==-1||nt.indexOf(_e.overlaying)!==-1,_e._shiftPusher&_e.anchor==="free"){var St=_e.linewidth/2||0;_e.ticks==="inside"&&(St+=_e.ticklen),wt(_e,St,Ke,!0),wt(_e,_e.shift||0,Ke,!1)}Ve.skipTitle===!0&&_e._shift!==void 0||(_e._shift=function(An,on){return An.autoshift?on[An.overlaying][An.side]:An.shift||0}(_e,Ke));var Nt=Vt[tt+"axislayer"],Dt=_e._mainLinePosition,gt=Dt+=_e._shift,ht=_e._mainMirrorPosition,yt=_e._vals=Q.calcTicks(_e),qt=[_e.mirror,gt,ht].join("_");for(We=0;We0?An.bottom-jn:0,Un))));var Lr=0,xr=0;if(_e._shiftPusher&&(Lr=Math.max(Un,An.height>0?Ln==="l"?jn-An.left:An.right-jn:0),_e.title.text!==st._dfltTitle[tt]&&(xr=(_e._titleStandoff||0)+(_e._titleScoot||0),Ln==="l"&&(xr+=ct(_e))),_e._fullDepth=Math.max(Lr,xr)),_e.automargin){on={x:0,y:0,r:0,l:0,t:0,b:0};var Mr=[0,1],Na=typeof _e._shift=="number"?_e._shift:0;if(tt==="x"){if(Ln==="b"?on[Ln]=_e._depth:(on[Ln]=_e._depth=Math.max(An.width>0?jn-An.top:0,Un),Mr.reverse()),An.width>0){var wa=An.right-(_e._offset+_e._length);wa>0&&(on.xr=1,on.r=wa);var sa=_e._offset-An.left;sa>0&&(on.xl=0,on.l=sa)}}else if(Ln==="l"?(_e._depth=Math.max(An.height>0?jn-An.left:0,Un),on[Ln]=_e._depth-Na):(_e._depth=Math.max(An.height>0?An.right-jn:0,Un),on[Ln]=_e._depth+Na,Mr.reverse()),An.height>0){var kn=An.bottom-(_e._offset+_e._length);kn>0&&(on.yb=0,on.b=kn);var Dr=_e._offset-An.top;Dr>0&&(on.yt=1,on.t=Dr)}on[Ft]=_e.anchor==="free"?_e.position:_e._anchorAxis.domain[Mr[0]],_e.title.text!==st._dfltTitle[tt]&&(on[Ln]+=ct(_e)+(_e.title.standoff||0)),_e.mirror&&_e.anchor!=="free"&&(($n={x:0,y:0,r:0,l:0,t:0,b:0})[Bn]=_e.linewidth,_e.mirror&&_e.mirror!==!0&&($n[Bn]+=Un),_e.mirror===!0||_e.mirror==="ticks"?$n[Ft]=_e._anchorAxis.domain[Mr[1]]:_e.mirror!=="all"&&_e.mirror!=="allticks"||($n[Ft]=[_e._counterDomainMin,_e._counterDomainMax][Mr[1]]))}kr&&(Pr=c.getComponentMethod("rangeslider","autoMarginOpts")(ve,_e)),typeof _e.automargin=="string"&&(qe(on,_e.automargin),qe($n,_e.automargin)),s.autoMargin(ve,Ne(_e),on),s.autoMargin(ve,Qe(_e),$n),s.autoMargin(ve,it(_e),Pr)}),d.syncOrAsync(Ar)}}function la(An){var on=mt+(An||"tick");return Et[on]||(Et[on]=function($n,Pr){var Ln,Bn,jn,Un;return $n._selections[Pr].size()?(Ln=1/0,Bn=-1/0,jn=1/0,Un=-1/0,$n._selections[Pr].each(function(){var Lr=ze(this),xr=v.bBox(Lr.node().parentNode);Ln=Math.min(Ln,xr.top),Bn=Math.max(Bn,xr.bottom),jn=Math.min(jn,xr.left),Un=Math.max(Un,xr.right)})):(Ln=0,Bn=0,jn=0,Un=0),{top:Ln,bottom:Bn,left:jn,right:Un,height:Bn-Ln,width:Un-jn}}(_e,on)),Et[on]}},Q.getTickSigns=function(ve,_e){var Ve=ve._id.charAt(0),We={x:"top",y:"right"}[Ve],Ze=ve.side===We?1:-1,Ge=[-1,1,Ze,-Ze];return(_e?(ve.minor||{}).ticks:ve.ticks)!=="inside"==(Ve==="x")&&(Ge=Ge.map(function(Ke){return-Ke})),ve.side&&Ge.push({l:-1,t:-1,r:1,b:1}[ve.side.charAt(0)]),Ge},Q.makeTransTickFn=function(ve){return ve._id.charAt(0)==="x"?function(_e){return h(ve._offset+ve.l2p(_e.x),0)}:function(_e){return h(0,ve._offset+ve.l2p(_e.x))}},Q.makeTransTickLabelFn=function(ve){var _e=function(Ze){var Ge=Ze.ticklabelposition||"",Ke=function(ht){return Ge.indexOf(ht)!==-1},nt=Ke("top"),st=Ke("left"),mt=Ke("right"),tt=Ke("bottom"),Ft=Ke("inside"),Vt=tt||st||nt||mt;if(!Vt&&!Ft)return[0,0];var St=Ze.side,Nt=Vt?(Ze.tickwidth||0)/2:0,Dt=3,gt=Ze.tickfont?Ze.tickfont.size:12;return(tt||nt)&&(Nt+=gt*te,Dt+=(Ze.linewidth||0)/2),(st||mt)&&(Nt+=(Ze.linewidth||0)/2,Dt+=3),Ft&&St==="top"&&(Dt-=gt*(1-te)),(st||nt)&&(Nt=-Nt),St!=="bottom"&&St!=="right"||(Dt=-Dt),[Vt?Nt:0,Ft?Dt:0]}(ve),Ve=_e[0],We=_e[1];return ve._id.charAt(0)==="x"?function(Ze){return h(Ve+ve._offset+ve.l2p(at(Ze)),We)}:function(Ze){return h(We,Ve+ve._offset+ve.l2p(at(Ze)))}},Q.makeTickPath=function(ve,_e,Ve,We){We||(We={});var Ze=We.minor;if(Ze&&!ve.minor)return"";var Ge=We.len!==void 0?We.len:Ze?ve.minor.ticklen:ve.ticklen,Ke=ve._id.charAt(0),nt=(ve.linewidth||1)/2;return Ke==="x"?"M0,"+(_e+nt*Ve)+"v"+Ge*Ve:"M"+(_e+nt*Ve)+",0h"+Ge*Ve},Q.makeLabelFns=function(ve,_e,Ve){var We=ve.ticklabelposition||"",Ze=function($t){return We.indexOf($t)!==-1},Ge=Ze("top"),Ke=Ze("left"),nt=Ze("right"),st=Ze("bottom")||Ke||Ge||nt,mt=Ze("inside"),tt=We==="inside"&&ve.ticks==="inside"||!mt&&ve.ticks==="outside"&&ve.tickson!=="boundaries",Ft=0,Vt=0,St=tt?ve.ticklen:0;if(mt?St*=-1:st&&(St=0),tt&&(Ft+=St,Ve)){var Nt=d.deg2rad(Ve);Ft=St*Math.cos(Nt)+1,Vt=St*Math.sin(Nt)}ve.showticklabels&&(tt||ve.showline)&&(Ft+=.2*ve.tickfont.size);var Dt,gt,ht,yt,qt,Et={labelStandoff:Ft+=(ve.linewidth||1)/2*(mt?-1:1),labelShift:Vt},jt=0,Tt=ve.side,Ot=ve._id.charAt(0),At=ve.tickangle;if(Ot==="x")yt=(qt=!mt&&Tt==="bottom"||mt&&Tt==="top")?1:-1,mt&&(yt*=-1),Dt=Vt*yt,gt=_e+Ft*yt,ht=qt?1:-.2,Math.abs(At)===90&&(mt?ht+=V:ht=At===-90&&Tt==="bottom"?te:At===90&&Tt==="top"?V:.5,jt=V/2*(At/90)),Et.xFn=function($t){return $t.dx+Dt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*ht},Et.anchorFn=function($t,Yt){if(st){if(Ke)return"end";if(nt)return"start"}return f(Yt)&&Yt!==0&&Yt!==180?Yt*yt<0!==mt?"end":"start":"middle"},Et.heightFn=function($t,Yt,Xt){return Yt<-60||Yt>60?-.5*Xt:ve.side==="top"!==mt?-Xt:0};else if(Ot==="y"){if(yt=(qt=!mt&&Tt==="left"||mt&&Tt==="right")?1:-1,mt&&(yt*=-1),Dt=Ft,gt=Vt*yt,ht=0,mt||Math.abs(At)!==90||(ht=At===-90&&Tt==="left"||At===90&&Tt==="right"?te:.5),mt){var Lt=f(At)?+At:0;if(Lt!==0){var Rt=d.deg2rad(Lt);jt=Math.abs(Math.sin(Rt))*te*yt,ht=0}}Et.xFn=function($t){return $t.dx+_e-(Dt+$t.fontSize*ht)*yt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*V},Et.anchorFn=function($t,Yt){return f(Yt)&&Math.abs(Yt)===90?"middle":qt?"end":"start"},Et.heightFn=function($t,Yt,Xt){return ve.side==="right"&&(Yt*=-1),Yt<-30?-Xt:Yt<30?-.5*Xt:0}}return Et},Q.drawTicks=function(ve,_e,Ve){Ve=Ve||{};var We=_e._id+"tick",Ze=[].concat(_e.minor&&_e.minor.ticks?Ve.vals.filter(function(Ke){return Ke.minor&&!Ke.noTick}):[]).concat(_e.ticks?Ve.vals.filter(function(Ke){return!Ke.minor&&!Ke.noTick}):[]),Ge=Ve.layer.selectAll("path."+We).data(Ze,lt);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("ticks",1).classed("crisp",Ve.crisp!==!1).each(function(Ke){return y.stroke(l.select(this),Ke.minor?_e.minor.tickcolor:_e.tickcolor)}).style("stroke-width",function(Ke){return v.crispRound(ve,Ke.minor?_e.minor.tickwidth:_e.tickwidth,1)+"px"}).attr("d",Ve.path).style("display",null),zt(_e,[G]),Ge.attr("transform",Ve.transFn)},Q.drawGrid=function(ve,_e,Ve){if(Ve=Ve||{},_e.tickmode!=="sync"){var We=_e._id+"grid",Ze=_e.minor&&_e.minor.showgrid,Ge=Ze?Ve.vals.filter(function(ht){return ht.minor}):[],Ke=_e.showgrid?Ve.vals.filter(function(ht){return!ht.minor}):[],nt=Ve.counterAxis;if(nt&&Q.shouldShowZeroLine(ve,_e,nt))for(var st=_e.tickmode==="array",mt=0;mt=0;Nt--){var Dt=Nt?Vt:St;if(Dt){var gt=Dt.selectAll("path."+We).data(Nt?Ke:Ge,lt);gt.exit().remove(),gt.enter().append("path").classed(We,1).classed("crisp",Ve.crisp!==!1),gt.attr("transform",Ve.transFn).attr("d",Ve.path).each(function(ht){return y.stroke(l.select(this),ht.minor?_e.minor.gridcolor:_e.gridcolor||"#ddd")}).style("stroke-dasharray",function(ht){return v.dashStyle(ht.minor?_e.minor.griddash:_e.griddash,ht.minor?_e.minor.gridwidth:_e.gridwidth)}).style("stroke-width",function(ht){return(ht.minor?Ft:_e._gw)+"px"}).style("display",null),typeof Ve.path=="function"&>.attr("d",Ve.path)}}zt(_e,[E,W])}},Q.drawZeroLine=function(ve,_e,Ve){Ve=Ve||Ve;var We=_e._id+"zl",Ze=Q.shouldShowZeroLine(ve,_e,Ve.counterAxis),Ge=Ve.layer.selectAll("path."+We).data(Ze?[{x:0,id:_e._id}]:[]);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("zl",1).classed("crisp",Ve.crisp!==!1).each(function(){Ve.layer.selectAll("path").sort(function(Ke,nt){return X(Ke.id,nt.id)})}),Ge.attr("transform",Ve.transFn).attr("d",Ve.path).call(y.stroke,_e.zerolinecolor||y.defaultLine).style("stroke-width",v.crispRound(ve,_e.zerolinewidth,_e._gw||1)+"px").style("display",null),zt(_e,[N])},Q.drawLabels=function(ve,_e,Ve){Ve=Ve||{};var We=ve._fullLayout,Ze=_e._id,Ge=Ze.charAt(0),Ke=Ve.cls||Ze+"tick",nt=Ve.vals.filter(function(yt){return yt.text}),st=Ve.labelFns,mt=Ve.secondary?0:_e.tickangle,tt=(_e._prevTickAngles||{})[Ke],Ft=Ve.layer.selectAll("g."+Ke).data(_e.showticklabels?nt:[],lt),Vt=[];function St(yt,qt){yt.each(function(Et){var jt=l.select(this),Tt=jt.select(".text-math-group"),Ot=st.anchorFn(Et,qt),At=Ve.transFn.call(jt.node(),Et)+(f(qt)&&+qt!=0?" rotate("+qt+","+st.xFn(Et)+","+(st.yFn(Et)-Et.fontSize/2)+")":""),Lt=p.lineCount(jt),Rt=ee*Et.fontSize,$t=st.heightFn(Et,f(qt)?+qt:0,(Lt-1)*Rt);if($t&&(At+=h(0,$t)),Tt.empty()){var Yt=jt.select("text");Yt.attr({transform:At,"text-anchor":Ot}),Yt.style("opacity",1),_e._adjustTickLabelsOverflow&&_e._adjustTickLabelsOverflow()}else{var Xt=v.bBox(Tt.node()).width*{end:-.5,start:.5}[Ot];Tt.attr("transform",At+h(Xt,0))}})}Ft.enter().append("g").classed(Ke,1).append("text").attr("text-anchor","middle").each(function(yt){var qt=l.select(this),Et=ve._promises.length;qt.call(p.positionText,st.xFn(yt),st.yFn(yt)).call(v.font,yt.font,yt.fontSize,yt.fontColor).text(yt.text).call(p.convertToTspans,ve),ve._promises[Et]?Vt.push(ve._promises.pop().then(function(){St(qt,mt)})):St(qt,mt)}),zt(_e,[L]),Ft.exit().remove(),Ve.repositionOnUpdate&&Ft.each(function(yt){l.select(this).select("text").call(p.positionText,st.xFn(yt),st.yFn(yt))}),_e._adjustTickLabelsOverflow=function(){var yt=_e.ticklabeloverflow;if(yt&&yt!=="allow"){var qt=yt.indexOf("hide")!==-1,Et=_e._id.charAt(0)==="x",jt=0,Tt=Et?ve._fullLayout.width:ve._fullLayout.height;if(yt.indexOf("domain")!==-1){var Ot=d.simpleMap(_e.range,_e.r2l);jt=_e.l2p(Ot[0])+_e._offset,Tt=_e.l2p(Ot[1])+_e._offset}var At=Math.min(jt,Tt),Lt=Math.max(jt,Tt),Rt=_e.side,$t=1/0,Yt=-1/0;for(var Xt in Ft.each(function(tn){var cn=l.select(this);if(cn.select(".text-math-group").empty()){var ln=v.bBox(cn.node()),an=0;Et?(ln.right>Lt||ln.leftLt||ln.top+(_e.tickangle?0:tn.fontSize/4)_e["_visibleLabelMin_"+Ot._id]?Wt.style("display","none"):Lt.K!=="tick"||At||Wt.style("display",null)})})})})},St(Ft,tt+1?tt:mt);var Nt=null;_e._selections&&(_e._selections[Ke]=Ft);var Dt=[function(){return Vt.length&&Promise.all(Vt)}];_e.automargin&&We._redrawFromAutoMarginCount&&tt===90?(Nt=90,Dt.push(function(){St(Ft,tt)})):Dt.push(function(){if(St(Ft,mt),nt.length&&Ge==="x"&&!f(mt)&&(_e.type!=="log"||String(_e.dtick).charAt(0)!=="D")){Nt=0;var yt,qt=0,Et=[];if(Ft.each(function(cn){qt=Math.max(qt,cn.fontSize);var ln=_e.l2p(cn.x),an=ze(this),sn=v.bBox(an.node());Et.push({top:0,bottom:10,height:10,left:ln-sn.width/2,right:ln+sn.width/2+2,width:sn.width+2})}),_e.tickson!=="boundaries"&&!_e.showdividers||Ve.secondary){var jt=nt.length,Tt=Math.abs((nt[jt-1].x-nt[0].x)*_e._m)/(jt-1),Ot=_e.ticklabelposition||"",At=function(cn){return Ot.indexOf(cn)!==-1},Lt=At("top"),Rt=At("left"),$t=At("right"),Yt=At("bottom")||Rt||Lt||$t?(_e.tickwidth||0)+6:0,Xt=Tt<2.5*qt||_e.type==="multicategory"||_e._name==="realaxis";for(yt=0;yt1)for(nt=1;nt2*R}(x,g))return"date";var M=b.autotypenumbers!=="strict";return function(S,C){for(var P=S.length,D=y(P),O=0,R=0,F={},A=0;A2*O}(x,M)?"category":function(S,C){for(var P=S.length,D=0;D=2){var F,A,z="";if(R.length===2){for(F=0;F<2;F++)if(A=S(R[F])){z=w;break}}var B=O("pattern",z);if(B===w)for(F=0;F<2;F++)(A=S(R[F]))&&(P.bounds[F]=R[F]=A-1);if(B)for(F=0;F<2;F++)switch(A=R[F],B){case w:if(!l(A)||(A=+A)!==Math.floor(A)||A<0||A>=7)return void(P.enabled=!1);P.bounds[F]=R[F]=A;break;case k:if(!l(A)||(A=+A)<0||A>24)return void(P.enabled=!1);P.bounds[F]=R[F]=A}if(D.autorange===!1){var $=D.range;if($[0]<$[1]){if(R[0]<$[0]&&R[1]>$[1])return void(P.enabled=!1)}else if(R[0]>$[0]&&R[1]<$[1])return void(P.enabled=!1)}}else{var j=O("values");if(!j||!j.length)return void(P.enabled=!1);O("dvalue")}}}o.exports=function(C,P,D,O,R){var F,A=O.letter,z=O.font||{},B=O.splomStash||{},$=D("visible",!O.visibleDflt),j=P._template||{},N=P.type||j.type||"-";N==="date"&&(f.getComponentMethod("calendars","handleDefaults")(C,P,"calendar",O.calendar),O.noTicklabelmode||(F=D("ticklabelmode")));var E="";O.noTicklabelposition&&N!=="multicategory"||(E=s.coerce(C,P,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:F==="period"?["outside","inside"]:A==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),O.noTicklabeloverflow||D("ticklabeloverflow",E.indexOf("inside")!==-1?"hide past domain":N==="category"||N==="multicategory"?"allow":"hide past div"),_(P,R),x(C,P,D,O),g(C,P,D,O),N==="category"||O.noHover||D("hoverformat");var W=D("color"),G=W!==h.color.dflt?W:z.color,L=B.label||R._dfltTitle[A];if(v(C,P,D,N,O),!$)return P;D("title.text",L),s.coerceFont(D,"title.font",{family:z.family,size:s.bigFont(z.size),color:G}),p(C,P,D,N);var q=O.hasMinor;if(q&&(c.newContainer(P,"minor"),p(C,P,D,N,{isMinor:!0})),y(C,P,D,N,O),m(C,P,D,O),q){var H=O.isMinor;O.isMinor=!0,m(C,P,D,O),O.isMinor=H}b(C,P,D,{dfltColor:W,bgColor:O.bgColor,showGrid:O.showGrid,hasMinor:q,attributes:h}),!q||P.minor.ticks||P.minor.showgrid||delete P.minor,(P.showline||P.ticks)&&D("mirror");var V,te=N==="multicategory";if(O.noTickson||N!=="category"&&!te||!P.ticks&&!P.showgrid||(te&&(V="boundaries"),D("tickson",V)==="boundaries"&&delete P.ticklabelposition),te&&D("showdividers")&&(D("dividercolor"),D("dividerwidth")),N==="date")if(d(C,P,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:T}),P.rangebreaks.length){for(var ee=0;eep?1:-1:+(c.substr(1)||1)-+(d.substr(1)||1)},a.ref2id=function(c){return!!/^[xyz]/.test(c)&&c.split(" ")[0]},a.isLinked=function(c,d){return s(d,c._axisMatchGroups)||s(d,c._axisConstraintGroups)}},15258:function(o){o.exports=function(a,n,l,f){if(n.type==="category"){var s,c=a.categoryarray,d=Array.isArray(c)&&c.length>0;d&&(s="array");var h,p=l("categoryorder",s);p==="array"&&(h=l("categoryarray")),d||p!=="array"||(p=n.categoryorder="trace"),p==="trace"?n._initialCategories=[]:p==="array"?n._initialCategories=h.slice():(h=function(m,y){var v,g,b,x=y.dataAttr||m._id.charAt(0),_={};if(y.axData)v=y.axData;else for(v=[],g=0;gS?C.substr(S):P.substr(M))+D:C+P+k*T:D}function _(k,T){for(var M=T._size,S=M.h/M.w,C={},P=Object.keys(k),D=0;Dp*$)||W){for(M=0;MY&&ieU&&(U=ie);R/=(U-ee)/(2*Q),ee=P.l2r(ee),U=P.l2r(U),P.range=P._input.range=H=0?Math.min(ie,.9):1/(1/Math.max(ie,-.3)+3.222))}function H(ie,le,se,pe,Te){return ie.append("path").attr("class","zoombox").style({fill:le>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",p(se,pe)).attr("d",Te+"Z")}function V(ie,le,se){return ie.append("path").attr("class","zoombox-corners").style({fill:y.background,stroke:y.defaultLine,"stroke-width":1,opacity:0}).attr("transform",p(le,se)).attr("d","M0,0Z")}function te(ie,le,se,pe,Te,Se){ie.attr("d",pe+"M"+se.l+","+se.t+"v"+se.h+"h"+se.w+"v-"+se.h+"h-"+se.w+"Z"),ee(ie,le,Te,Se)}function ee(ie,le,se,pe){se||(ie.transition().style("fill",pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),le.transition().style("opacity",1).duration(200))}function U(ie){l.select(ie).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Q(ie){j&&ie.data&&ie._context.showTips&&(f.notifier(f._(ie,"Double-click to zoom back out"),"long"),j=!1)}function Y(ie){var le=Math.floor(Math.min(ie.b-ie.t,ie.r-ie.l,$)/2);return"M"+(ie.l-3.5)+","+(ie.t-.5+le)+"h3v"+-le+"h"+le+"v-3h-"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.t-.5+le)+"h-3v"+-le+"h"+-le+"v-3h"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.b+.5-le)+"h-3v"+le+"h"+-le+"v3h"+(le+3)+"ZM"+(ie.l-3.5)+","+(ie.b+.5-le)+"h3v"+le+"h"+le+"v3h-"+(le+3)+"Z"}function Z(ie,le,se,pe,Te){for(var Se,Oe,Me,ce,ye=!1,J={},ne={},de=(Te||{}).xaHash,xe=(Te||{}).yaHash,ue=0;ue=0)At._fullLayout._deactivateShape(At);else{var Lt=At._fullLayout.clickmode;if(U(At),Tt!==2||Ne||gt(),ze)Lt.indexOf("select")>-1&&F(Ot,At,de,xe,le.id,We),Lt.indexOf("event")>-1&&g.click(At,Ot,le.id);else if(Tt===1&&Ne){var Rt=Oe?ye:ce,$t=Oe==="s"||Me==="w"?0:1,Yt=Rt._name+".range["+$t+"]",Xt=function(tn,cn){var ln,an=tn.range[cn],sn=Math.abs(an-tn.range[1-cn]);return tn.type==="date"?an:tn.type==="log"?(ln=Math.ceil(Math.max(0,-Math.log(sn)/Math.LN10))+3,s("."+ln+"g")(Math.pow(10,an))):(ln=Math.floor(Math.log(Math.abs(an))/Math.LN10)-Math.floor(Math.log(sn)/Math.LN10)+4,s("."+String(ln)+"g")(an))}(Rt,$t),Bt="left",Wt="middle";if(Rt.fixedrange)return;Oe?(Wt=Oe==="n"?"top":"bottom",Rt.side==="right"&&(Bt="right")):Me==="e"&&(Bt="right"),At._context.showAxisRangeEntryBoxes&&l.select(kt).call(m.makeEditable,{gd:At,immediate:!0,background:At._fullLayout.paper_bgcolor,text:String(Xt),fill:Rt.tickfont?Rt.tickfont.color:"#444",horizontalAlign:Bt,verticalAlign:Wt}).on("edit",function(tn){var cn=Rt.d2r(tn);cn!==void 0&&h.call("_guiRelayout",At,Yt,cn)})}}}function Ke(Tt,Ot){if(ie._transitioningWithDuration)return!1;var At=Math.max(0,Math.min(be,lt*Tt+Je)),Lt=Math.max(0,Math.min(we,ct*Ot+ut)),Rt=Math.abs(At-Je),$t=Math.abs(Lt-ut);function Yt(){wt="",pt.r=pt.l,pt.t=pt.b,_e.attr("d","M0,0Z")}if(pt.l=Math.min(Je,At),pt.r=Math.max(Je,At),pt.t=Math.min(ut,Lt),pt.b=Math.max(ut,Lt),ke.isSubplotConstrained)Rt>$||$t>$?(wt="xy",Rt/be>$t/we?($t=Rt*we/be,ut>Lt?pt.t=ut-$t:pt.b=ut+$t):(Rt=$t*be/we,Je>At?pt.l=Je-Rt:pt.r=Je+Rt),_e.attr("d",Y(pt))):Yt();else if(Ae.isSubplotConstrained)if(Rt>$||$t>$){wt="xy";var Xt=Math.min(pt.l/be,(we-pt.b)/we),Bt=Math.max(pt.r/be,(we-pt.t)/we);pt.l=Xt*be,pt.r=Bt*be,pt.b=(1-Xt)*we,pt.t=(1-Bt)*we,_e.attr("d",Y(pt))}else Yt();else!De||$t0){var Wt;if(Ae.isSubplotConstrained||!Ee&&De.length===1){for(Wt=0;Wt1&&(Lt.maxallowed!==void 0&&Ie===(Lt.range[0]1&&(Rt.maxallowed!==void 0&&Be===(Rt.range[0]P[1]-.000244140625&&(c.domain=m),f.noneOrAll(s.domain,c.domain,m),c.tickmode==="sync"&&(c.tickmode="auto")}return d("layer"),c}},89426:function(o,a,n){var l=n(59652);o.exports=function(f,s,c,d,h){h||(h={});var p=h.tickSuffixDflt,m=l(f);c("tickprefix")&&c("showtickprefix",m),c("ticksuffix",p)&&c("showticksuffix",m)}},23608:function(o,a,n){var l=n(23074);o.exports=function(f,s,c,d){var h=s._template||{},p=s.type||h.type||"-";c("minallowed"),c("maxallowed");var m,y=c("range"),v=s.getAutorangeDflt(y,d),g=c("autorange",v);!y||(y[0]!==null||y[1]!==null)&&(y[0]!==null&&y[1]!==null||g!=="reversed"&&g!==!0)&&(y[0]===null||g!=="min"&&g!=="max reversed")&&(y[1]===null||g!=="max"&&g!=="min reversed")||(y=void 0,delete s.range,s.autorange=!0,m=!0),m||(g=c("autorange",v=s.getAutorangeDflt(y,d))),g&&(l(c,g,y),p!=="linear"&&p!=="-"||c("rangemode")),s.cleanRange()}},42449:function(o,a,n){var l=n(18783).FROM_BL;o.exports=function(f,s,c){c===void 0&&(c=l[f.constraintoward||"center"]);var d=[f.r2l(f.range[0]),f.r2l(f.range[1])],h=d[0]+(d[1]-d[0])*c;f.range=f._input.range=[f.l2r(h+(d[0]-h)*s),f.l2r(h+(d[1]-h)*s)],f.setScale()}},21994:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(71828),c=s.numberFormat,d=n(92770),h=s.cleanNumber,p=s.ms2DateTime,m=s.dateTime2ms,y=s.ensureNumber,v=s.isArrayOrTypedArray,g=n(50606),b=g.FP_SAFE,x=g.BADNUM,_=g.LOG_CLIP,w=g.ONEWEEK,k=g.ONEDAY,T=g.ONEHOUR,M=g.ONEMIN,S=g.ONESEC,C=n(41675),P=n(85555),D=P.HOUR_PATTERN,O=P.WEEKDAY_PATTERN;function R(A){return Math.pow(10,A)}function F(A){return A!=null}o.exports=function(A,z){z=z||{};var B=A._id||"x",$=B.charAt(0);function j(Z,X){if(Z>0)return Math.log(Z)/Math.LN10;if(Z<=0&&X&&A.range&&A.range.length===2){var re=A.range[0],ie=A.range[1];return .5*(re+ie-2*_*Math.abs(re-ie))}return x}function N(Z,X,re,ie){if((ie||{}).msUTC&&d(Z))return+Z;var le=m(Z,re||A.calendar);if(le===x){if(!d(Z))return x;Z=+Z;var se=Math.floor(10*s.mod(Z+.05,1)),pe=Math.round(Z-se/10);le=m(new Date(pe))+se/10}return le}function E(Z,X,re){return p(Z,X,re||A.calendar)}function W(Z){return A._categories[Math.round(Z)]}function G(Z){if(F(Z)){if(A._categoriesMap===void 0&&(A._categoriesMap={}),A._categoriesMap[Z]!==void 0)return A._categoriesMap[Z];A._categories.push(typeof Z=="number"?String(Z):Z);var X=A._categories.length-1;return A._categoriesMap[Z]=X,X}return x}function L(Z){if(A._categoriesMap)return A._categoriesMap[Z]}function q(Z){var X=L(Z);return X!==void 0?X:d(Z)?+Z:void 0}function H(Z){return d(Z)?+Z:L(Z)}function V(Z,X,re){return l.round(re+X*Z,2)}function te(Z,X,re){return(Z-re)/X}var ee=function(Z){return d(Z)?V(Z,A._m,A._b):x},U=function(Z){return te(Z,A._m,A._b)};if(A.rangebreaks){var Q=$==="y";ee=function(Z){if(!d(Z))return x;var X=A._rangebreaks.length;if(!X)return V(Z,A._m,A._b);var re=Q;A.range[0]>A.range[1]&&(re=!re);for(var ie=re?-1:1,le=ie*Z,se=0,pe=0;peSe)){se=le<(Te+Se)/2?pe:pe+1;break}se=pe+1}var Oe=A._B[se]||0;return isFinite(Oe)?V(Z,A._m2,Oe):0},U=function(Z){var X=A._rangebreaks.length;if(!X)return te(Z,A._m,A._b);for(var re=0,ie=0;ieA._rangebreaks[ie].pmax&&(re=ie+1);return te(Z,A._m2,A._B[re])}}A.c2l=A.type==="log"?j:y,A.l2c=A.type==="log"?R:y,A.l2p=ee,A.p2l=U,A.c2p=A.type==="log"?function(Z,X){return ee(j(Z,X))}:ee,A.p2c=A.type==="log"?function(Z){return R(U(Z))}:U,["linear","-"].indexOf(A.type)!==-1?(A.d2r=A.r2d=A.d2c=A.r2c=A.d2l=A.r2l=h,A.c2d=A.c2r=A.l2d=A.l2r=y,A.d2p=A.r2p=function(Z){return A.l2p(h(Z))},A.p2d=A.p2r=U,A.cleanPos=y):A.type==="log"?(A.d2r=A.d2l=function(Z,X){return j(h(Z),X)},A.r2d=A.r2c=function(Z){return R(h(Z))},A.d2c=A.r2l=h,A.c2d=A.l2r=y,A.c2r=j,A.l2d=R,A.d2p=function(Z,X){return A.l2p(A.d2r(Z,X))},A.p2d=function(Z){return R(U(Z))},A.r2p=function(Z){return A.l2p(h(Z))},A.p2r=U,A.cleanPos=y):A.type==="date"?(A.d2r=A.r2d=s.identity,A.d2c=A.r2c=A.d2l=A.r2l=N,A.c2d=A.c2r=A.l2d=A.l2r=E,A.d2p=A.r2p=function(Z,X,re){return A.l2p(N(Z,0,re))},A.p2d=A.p2r=function(Z,X,re){return E(U(Z),X,re)},A.cleanPos=function(Z){return s.cleanDate(Z,x,A.calendar)}):A.type==="category"?(A.d2c=A.d2l=G,A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=H(Z);return X!==void 0?X:A.fraction2r(.5)},A.l2r=A.c2r=y,A.r2l=H,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return typeof Z=="string"&&Z!==""?Z:y(Z)}):A.type==="multicategory"&&(A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=q(Z);return X!==void 0?X:A.fraction2r(.5)},A.r2c_just_indices=L,A.l2r=A.c2r=y,A.r2l=q,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return Array.isArray(Z)||typeof Z=="string"&&Z!==""?Z:y(Z)},A.setupMultiCategory=function(Z){var X,re,ie=A._traceIndices,le=A._matchGroup;if(le&&A._categories.length===0){for(var se in le)if(se!==B){var pe=z[C.id2name(se)];ie=ie.concat(pe._traceIndices)}}var Te=[[0,{}],[0,{}]],Se=[];for(X=0;Xpe[1]&&(ie[se?0:1]=re)}},A.cleanRange=function(Z,X){A._cleanRange(Z,X),A.limitRange(Z)},A._cleanRange=function(Z,X){X||(X={}),Z||(Z="range");var re,ie,le=s.nestedProperty(A,Z).get();if(ie=(ie=A.type==="date"?s.dfltRange(A.calendar):$==="y"?P.DFLTRANGEY:A._name==="realaxis"?[0,1]:X.dfltRange||P.DFLTRANGEX).slice(),A.rangemode!=="tozero"&&A.rangemode!=="nonnegative"||(ie[0]=0),le&&le.length===2){var se=le[0]===null,pe=le[1]===null;for(A.type!=="date"||A.autorange||(le[0]=s.cleanDate(le[0],x,A.calendar),le[1]=s.cleanDate(le[1],x,A.calendar)),re=0;re<2;re++)if(A.type==="date"){if(!s.isDateTime(le[re],A.calendar)){A[Z]=ie;break}if(A.r2l(le[0])===A.r2l(le[1])){var Te=s.constrain(A.r2l(le[0]),s.MIN_MS+1e3,s.MAX_MS-1e3);le[0]=A.l2r(Te-1e3),le[1]=A.l2r(Te+1e3);break}}else{if(!d(le[re])){if(se||pe||!d(le[1-re])){A[Z]=ie;break}le[re]=le[1-re]*(re?10:.1)}if(le[re]<-b?le[re]=-b:le[re]>b&&(le[re]=b),le[0]===le[1]){var Se=Math.max(1,Math.abs(1e-6*le[0]));le[0]-=Se,le[1]+=Se}}}else s.nestedProperty(A,Z).set(ie)},A.setScale=function(Z){var X=z._size;if(A.overlaying){var re=C.getFromId({_fullLayout:z},A.overlaying);A.domain=re.domain}var ie=Z&&A._r?"_r":"range",le=A.calendar;A.cleanRange(ie);var se,pe,Te=A.r2l(A[ie][0],le),Se=A.r2l(A[ie][1],le),Oe=$==="y";if(Oe?(A._offset=X.t+(1-A.domain[1])*X.h,A._length=X.h*(A.domain[1]-A.domain[0]),A._m=A._length/(Te-Se),A._b=-A._m*Se):(A._offset=X.l+A.domain[0]*X.w,A._length=X.w*(A.domain[1]-A.domain[0]),A._m=A._length/(Se-Te),A._b=-A._m*Te),A._rangebreaks=[],A._lBreaks=0,A._m2=0,A._B=[],A.rangebreaks&&(A._rangebreaks=A.locateBreaks(Math.min(Te,Se),Math.max(Te,Se)),A._rangebreaks.length)){for(se=0;seSe&&(Me=!Me),Me&&A._rangebreaks.reverse();var ce=Me?-1:1;for(A._m2=ce*A._length/(Math.abs(Se-Te)-A._lBreaks),A._B.push(-A._m2*(Oe?Se:Te)),se=0;seie&&(ie+=7,leie&&(ie+=24,le=re&&le=re&&Z=Ae.min&&(geAe.max&&(Ae.max=be),we=!1)}we&&pe.push({min:ge,max:be})}};for(re=0;rem.duration?(function(){for(var D={},O=0;O rect").call(c.setTranslate,0,0).call(c.setScale,1,1),M.plot.call(c.setTranslate,S._offset,C._offset).call(c.setScale,1,1);var P=M.plot.selectAll(".scatterlayer .trace");P.selectAll(".point").call(c.setPointGroupScale,1,1),P.selectAll(".textpoint").call(c.setTextPointsScale,1,1),P.call(c.hideOutsideRangePoints,M)}function T(M,S){var C=M.plotinfo,P=C.xaxis,D=C.yaxis,O=P._length,R=D._length,F=!!M.xr1,A=!!M.yr1,z=[];if(F){var B=s.simpleMap(M.xr0,P.r2l),$=s.simpleMap(M.xr1,P.r2l),j=B[1]-B[0],N=$[1]-$[0];z[0]=(B[0]*(1-S)+S*$[0]-B[0])/(B[1]-B[0])*O,z[2]=O*(1-S+S*N/j),P.range[0]=P.l2r(B[0]*(1-S)+S*$[0]),P.range[1]=P.l2r(B[1]*(1-S)+S*$[1])}else z[0]=0,z[2]=O;if(A){var E=s.simpleMap(M.yr0,D.r2l),W=s.simpleMap(M.yr1,D.r2l),G=E[1]-E[0],L=W[1]-W[0];z[1]=(E[1]*(1-S)+S*W[1]-E[1])/(E[0]-E[1])*R,z[3]=R*(1-S+S*L/G),D.range[0]=P.l2r(E[0]*(1-S)+S*W[0]),D.range[1]=D.l2r(E[1]*(1-S)+S*W[1])}else z[1]=0,z[3]=R;d.drawOne(h,P,{skipTitle:!0}),d.drawOne(h,D,{skipTitle:!0}),d.redrawComponents(h,[P._id,D._id]);var q=F?O/z[2]:1,H=A?R/z[3]:1,V=F?z[0]:0,te=A?z[1]:0,ee=F?z[0]/z[2]*O:0,U=A?z[1]/z[3]*R:0,Q=P._offset-ee,Y=D._offset-U;C.clipRect.call(c.setTranslate,V,te).call(c.setScale,1/q,1/H),C.plot.call(c.setTranslate,Q,Y).call(c.setScale,q,H),c.setPointGroupScale(C.zoomScalePts,1/q,1/H),c.setTextPointsScale(C.zoomScaleTxt,1/q,1/H)}d.redrawComponents(h)}},951:function(o,a,n){var l=n(73972).traceIs,f=n(4322);function s(d){return{v:"x",h:"y"}[d.orientation||"v"]}function c(d,h){var p=s(d),m=l(d,"box-violin"),y=l(d._fullInput||{},"candlestick");return m&&!y&&h===p&&d[p]===void 0&&d[p+"0"]===void 0}o.exports=function(d,h,p,m){p("autotypenumbers",m.autotypenumbersDflt),p("type",(m.splomStash||{}).type)==="-"&&(function(y,v){if(y.type==="-"){var g,b=y._id,x=b.charAt(0);b.indexOf("scene")!==-1&&(b=x);var _=function(D,O,R){for(var F=0;F0&&(A["_"+R+"axes"]||{})[O]||(A[R+"axis"]||R)===O&&(c(A,R)||(A[R]||[]).length||A[R+"0"]))return A}}(v,b,x);if(_)if(_.type!=="histogram"||x!=={v:"y",h:"x"}[_.orientation||"v"]){var w=x+"calendar",k=_[w],T={noMultiCategory:!l(_,"cartesian")||l(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&x==={h:"x",v:"y"}[_.orientation||"v"]&&(T.noMultiCategory=!0),T.autotypenumbers=y.autotypenumbers,c(_,x)){var M=s(_),S=[];for(g=0;g0?".":"")+g;f.isPlainObject(b)?h(b,m,x,v+1):m(x,g,b)}})}a.manageCommandObserver=function(p,m,y,v){var g={},b=!0;m&&m._commandObserver&&(g=m._commandObserver),g.cache||(g.cache={}),g.lookupTable={};var x=a.hasSimpleAPICommandBindings(p,y,g.lookupTable);if(m&&m._commandObserver){if(x)return g;if(m._commandObserver.remove)return m._commandObserver.remove(),m._commandObserver=null,g}if(x){s(p,x,g.cache),g.check=function(){if(b){var k=s(p,x,g.cache);return k.changed&&v&&g.lookupTable[k.value]!==void 0&&(g.disable(),Promise.resolve(v({value:k.value,type:x.type,prop:x.prop,traces:x.traces,index:g.lookupTable[k.value]})).then(g.enable,g.enable)),k.changed}};for(var _=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],w=0;w<_.length;w++)p._internalOn(_[w],g.check);g.remove=function(){for(var k=0;k<_.length;k++)p._removeInternalListener(_[k],g.check)}}else f.log("Unable to automatically bind plot updates to API command"),g.lookupTable={},g.remove=function(){};return g.disable=function(){b=!1},g.enable=function(){b=!0},m&&(m._commandObserver=g),g},a.hasSimpleAPICommandBindings=function(p,m,y){var v,g,b=m.length;for(v=0;v=q.width-20?(te["text-anchor"]="start",te.x=5):(te["text-anchor"]="end",te.x=q._paper.attr("width")-7),H.attr(te);var ee=H.select(".js-link-to-tool"),U=H.select(".js-link-spacer"),Q=H.select(".js-sourcelinks");L._context.showSources&&L._context.showSources(L),L._context.showLink&&function(Y,Z){Z.text("");var X=Z.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(Y._context.linkText+" »");if(Y._context.sendData)X.on("click",function(){S.sendDataToCloud(Y)});else{var re=window.location.pathname.split("/"),ie=window.location.search;X.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+re[2].split(".")[0]+"/"+re[1]+ie})}}(L,ee),U.text(ee.text()&&Q.text()?" - ":"")}},S.sendDataToCloud=function(L){var q=(window.PLOTLYENV||{}).BASE_URL||L._context.plotlyServerURL;if(q){L.emit("plotly_beforeexport");var H=l.select(L).append("div").attr("id","hiddenform").style("display","none"),V=H.append("form").attr({action:q+"/external",method:"post",target:"_blank"});return V.append("input").attr({type:"text",name:"data"}).node().value=S.graphJson(L,!1,"keepdata"),V.node().submit(),H.remove(),L.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],O=["year","month","dayMonth","dayMonthYear"];function R(L,q){var H=L._context.locale;H||(H="en-US");var V=!1,te={};function ee(re){for(var ie=!0,le=0;le1&&J.length>1){for(d.getComponentMethod("grid","sizeDefaults")(U,ee),te=0;te15&&J.length>15&&ee.shapes.length===0&&ee.images.length===0,S.linkSubplots(Y,ee,Q,V),S.cleanPlot(Y,ee,Q,V);var ge=!(!V._has||!V._has("gl2d")),be=!(!ee._has||!ee._has("gl2d")),we=!(!V._has||!V._has("cartesian"))||ge,ke=!(!ee._has||!ee._has("cartesian"))||be;we&&!ke?V._bgLayer.remove():ke&&!we&&(ee._shouldCreateBgLayer=!0),V._zoomlayer&&!L._dragging&&b({_fullLayout:V}),function(Re,Ie){var Be,Ue=[];Ie.meta&&(Be=Ie._meta={meta:Ie.meta,layout:{meta:Ie.meta}});for(var qe=0;qe0){var Z=1-2*U;V=Math.round(Z*V),te=Math.round(Z*te)}}var X=S.layoutAttributes.width.min,re=S.layoutAttributes.height.min;V1,le=!q.height&&Math.abs(H.height-te)>1;(le||ie)&&(ie&&(H.width=V),le&&(H.height=te)),L._initialAutoSize||(L._initialAutoSize={width:V,height:te}),S.sanitizeMargins(H)},S.supplyLayoutModuleDefaults=function(L,q,H,V){var te,ee,U,Q=d.componentsRegistry,Y=q._basePlotModules,Z=d.subplotsRegistry.cartesian;for(te in Q)(U=Q[te]).includeBasePlot&&U.includeBasePlot(L,q);for(var X in Y.length||Y.push(Z),q._has("cartesian")&&(d.getComponentMethod("grid","contentDefaults")(L,q),Z.finalizeSubplots(L,q)),q._subplots)q._subplots[X].sort(m.subplotSort);for(ee=0;ee1&&(H.l/=Te,H.r/=Te)}if(ie){var Se=(H.t+H.b)/ie;Se>1&&(H.t/=Se,H.b/=Se)}var Oe=H.xl!==void 0?H.xl:H.x,Me=H.xr!==void 0?H.xr:H.x,ce=H.yt!==void 0?H.yt:H.y,ye=H.yb!==void 0?H.yb:H.y;le[q]={l:{val:Oe,size:H.l+pe},r:{val:Me,size:H.r+pe},b:{val:ye,size:H.b+pe},t:{val:ce,size:H.t+pe}},se[q]=1}else delete le[q],delete se[q];if(!V._replotting)return S.doAutoMargin(L)}},S.doAutoMargin=function(L){var q=L._fullLayout,H=q.width,V=q.height;q._size||(q._size={}),$(q);var te=q._size,ee=q.margin,U={t:0,b:0,l:0,r:0},Q=m.extendFlat({},te),Y=ee.l,Z=ee.r,X=ee.t,re=ee.b,ie=q._pushmargin,le=q._pushmarginIds,se=q.minreducedwidth,pe=q.minreducedheight;if(ee.autoexpand!==!1){for(var Te in ie)le[Te]||delete ie[Te];var Se=L._fullLayout._reservedMargin;for(var Oe in Se)for(var Me in Se[Oe]){var ce=Se[Oe][Me];U[Me]=Math.max(U[Me],ce)}for(var ye in ie.base={l:{val:0,size:Y},r:{val:1,size:Z},t:{val:1,size:X},b:{val:0,size:re}},U){var J=0;for(var ne in ie)ne!=="base"&&c(ie[ne][ye].size)&&(J=ie[ne][ye].size>J?ie[ne][ye].size:J);var de=Math.max(0,ee[ye]-J);U[ye]=Math.max(0,U[ye]-de)}for(var xe in ie){var ue=ie[xe].l||{},ge=ie[xe].b||{},be=ue.val,we=ue.size,ke=ge.val,Ae=ge.size,Ee=H-U.r-U.l,De=V-U.t-U.b;for(var Re in ie){if(c(we)&&ie[Re].r){var Ie=ie[Re].r.val,Be=ie[Re].r.size;if(Ie>be){var Ue=(we*Ie+(Be-Ee)*be)/(Ie-be),qe=(Be*(1-be)+(we-Ee)*(1-Ie))/(Ie-be);Ue+qe>Y+Z&&(Y=Ue,Z=qe)}}if(c(Ae)&&ie[Re].t){var Ye=ie[Re].t.val,at=ie[Re].t.size;if(Ye>ke){var lt=(Ae*Ye+(at-De)*ke)/(Ye-ke),ct=(at*(1-ke)+(Ae-De)*(1-Ye))/(Ye-ke);lt+ct>re+X&&(re=lt,X=ct)}}}}}var bt=m.constrain(H-ee.l-ee.r,2,se),ze=m.constrain(V-ee.t-ee.b,2,pe),Ne=Math.max(0,H-bt),Qe=Math.max(0,V-ze);if(Ne){var it=(Y+Z)/Ne;it>1&&(Y/=it,Z/=it)}if(Qe){var kt=(re+X)/Qe;kt>1&&(re/=kt,X/=kt)}if(te.l=Math.round(Y)+U.l,te.r=Math.round(Z)+U.r,te.t=Math.round(X)+U.t,te.b=Math.round(re)+U.b,te.p=Math.round(ee.pad),te.w=Math.round(H)-te.l-te.r,te.h=Math.round(V)-te.t-te.b,!q._replotting&&(S.didMarginChange(Q,te)||function(ut){if("_redrawFromAutoMarginCount"in ut._fullLayout)return!1;var pt=g.list(ut,"",!0);for(var It in pt)if(pt[It].autoshift||pt[It].shift)return!0;return!1}(L))){"_redrawFromAutoMarginCount"in q?q._redrawFromAutoMarginCount++:q._redrawFromAutoMarginCount=1;var Je=3*(1+Object.keys(le).length);if(q._redrawFromAutoMarginCount0&&(L._transitioningWithDuration=!0),L._transitionData._interruptCallbacks.push(function(){V=!0}),H.redraw&&L._transitionData._interruptCallbacks.push(function(){return d.call("redraw",L)}),L._transitionData._interruptCallbacks.push(function(){L.emit("plotly_transitioninterrupted",[])});var Q=0,Y=0;function Z(){return Q++,function(){var X;Y++,V||Y!==Q||(X=U,L._transitionData&&(function(re){if(re)for(;re.length;)re.shift()}(L._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(H.redraw)return d.call("redraw",L)}).then(function(){L._transitioning=!1,L._transitioningWithDuration=!1,L.emit("plotly_transitioned",[])}).then(X)))}}H.runFn(Z),setTimeout(Z())})}],ee=m.syncOrAsync(te,L);return ee&&ee.then||(ee=Promise.resolve()),ee.then(function(){return L})}S.didMarginChange=function(L,q){for(var H=0;H1)return!0}return!1},S.graphJson=function(L,q,H,V,te,ee){(te&&q&&!L._fullData||te&&!q&&!L._fullLayout)&&S.supplyDefaults(L);var U=te?L._fullData:L.data,Q=te?L._fullLayout:L.layout,Y=(L._transitionData||{})._frames;function Z(ie,le){if(typeof ie=="function")return le?"_function_":null;if(m.isPlainObject(ie)){var se,pe={};return Object.keys(ie).sort().forEach(function(Te){if(["_","["].indexOf(Te.charAt(0))===-1)if(typeof ie[Te]!="function"){if(H==="keepdata"){if(Te.substr(Te.length-3)==="src")return}else if(H==="keepstream"){if(typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0&&!m.isPlainObject(ie.stream))return}else if(H!=="keepall"&&typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0)return;pe[Te]=Z(ie[Te],le)}else le&&(pe[Te]="_function")}),pe}return Array.isArray(ie)?ie.map(function(Te){return Z(Te,le)}):m.isTypedArray(ie)?m.simpleMap(ie,m.identity):m.isJSDate(ie)?m.ms2DateTimeLocal(+ie):ie}var X={data:(U||[]).map(function(ie){var le=Z(ie);return q&&delete le.fit,le})};if(!q&&(X.layout=Z(Q),te)){var re=Q._size;X.layout.computed={margin:{b:re.b,l:re.l,r:re.r,t:re.t}}}return Y&&(X.frames=Z(Y)),ee&&(X.config=Z(L._context,!0)),V==="object"?X:JSON.stringify(X)},S.modifyFrames=function(L,q){var H,V,te,ee=L._transitionData._frames,U=L._transitionData._frameHash;for(H=0;H=0;ee--)if(ye[ee].enabled){H._indexToPoints=ye[ee]._indexToPoints;break}V&&V.calc&&(ce=V.calc(L,H))}Array.isArray(ce)&&ce[0]||(ce=[{x:v,y:v}]),ce[0].t||(ce[0].t={}),ce[0].trace=H,Z[Oe]=ce}}for(W(U,Q,Y),te=0;te0){for(var h=[],p=0;p=D&&(R.min=0,F.min=0,A.min=0,_.aaxis&&delete _.aaxis.min,_.baxis&&delete _.baxis.min,_.caxis&&delete _.caxis.min)}function x(_,w,k,T){var M=v[w._name];function S(F,A){return s.coerce(_,w,M,F,A)}S("uirevision",T.uirevision),w.type="linear";var C=S("color"),P=C!==M.color.dflt?C:k.font.color,D=w._name.charAt(0).toUpperCase(),O="Component "+D,R=S("title.text",O);w._hovertitle=R===O?R:D,s.coerceFont(S,"title.font",{family:k.font.family,size:s.bigFont(k.font.size),color:P}),S("min"),m(_,w,S,"linear"),h(_,w,S,"linear"),d(_,w,S,"linear"),p(_,w,S,{outerTicks:!0}),S("showticklabels")&&(s.coerceFont(S,"tickfont",{family:k.font.family,size:k.font.size,color:P}),S("tickangle"),S("tickformat")),y(_,w,S,{dfltColor:C,bgColor:k.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:M}),S("hoverformat"),S("layer")}o.exports=function(_,w,k){c(_,w,k,{type:"ternary",attributes:v,handleDefaults:b,font:w.font,paper_bgcolor:w.paper_bgcolor})}},64380:function(o,a,n){var l=n(39898),f=n(84267),s=n(73972),c=n(71828),d=c.strTranslate,h=c._,p=n(7901),m=n(91424),y=n(21994),v=n(1426).extendFlat,g=n(74875),b=n(89298),x=n(28569),_=n(30211),w=n(64505),k=w.freeMode,T=w.rectMode,M=n(92998),S=n(47322).prepSelect,C=n(47322).selectOnClick,P=n(47322).clearOutline,D=n(47322).clearSelectionsCache,O=n(85555);function R(W,G){this.id=W.id,this.graphDiv=W.graphDiv,this.init(G),this.makeFramework(G),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}o.exports=R;var F=R.prototype;F.init=function(W){this.container=W._ternarylayer,this.defs=W._defs,this.layoutId=W._uid,this.traceHash={},this.layers={}},F.plot=function(W,G){var L=this,q=G[L.id],H=G._size;L._hasClipOnAxisFalse=!1;for(var V=0;VA*le?H=(V=le)*A:V=(H=ie)/A,te=X*H/ie,ee=re*V/le,L=G.l+G.w*Y-H/2,q=G.t+G.h*(1-Z)-V/2,U.x0=L,U.y0=q,U.w=H,U.h=V,U.sum=se,U.xaxis={type:"linear",range:[pe+2*Se-se,se-pe-2*Te],domain:[Y-te/2,Y+te/2],_id:"x"},y(U.xaxis,U.graphDiv._fullLayout),U.xaxis.setScale(),U.xaxis.isPtWithinRange=function(be){return be.a>=U.aaxis.range[0]&&be.a<=U.aaxis.range[1]&&be.b>=U.baxis.range[1]&&be.b<=U.baxis.range[0]&&be.c>=U.caxis.range[1]&&be.c<=U.caxis.range[0]},U.yaxis={type:"linear",range:[pe,se-Te-Se],domain:[Z-ee/2,Z+ee/2],_id:"y"},y(U.yaxis,U.graphDiv._fullLayout),U.yaxis.setScale(),U.yaxis.isPtWithinRange=function(){return!0};var Oe=U.yaxis.domain[0],Me=U.aaxis=v({},W.aaxis,{range:[pe,se-Te-Se],side:"left",tickangle:(+W.aaxis.tickangle||0)-30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(Me,U.graphDiv._fullLayout),Me.setScale();var ce=U.baxis=v({},W.baxis,{range:[se-pe-Se,Te],side:"bottom",domain:U.xaxis.domain,anchor:"free",position:0,_id:"x",_length:H});y(ce,U.graphDiv._fullLayout),ce.setScale();var ye=U.caxis=v({},W.caxis,{range:[se-pe-Te,Se],side:"right",tickangle:(+W.caxis.tickangle||0)+30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(ye,U.graphDiv._fullLayout),ye.setScale();var J="M"+L+","+(q+V)+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDef.select("path").attr("d",J),U.layers.plotbg.select("path").attr("d",J);var ne="M0,"+V+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDefRelative.select("path").attr("d",ne);var de=d(L,q);U.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",de),U.clipDefRelative.select("path").attr("transform",null);var xe=d(L-ce._offset,q+V);U.layers.baxis.attr("transform",xe),U.layers.bgrid.attr("transform",xe);var ue=d(L+H/2,q)+"rotate(30)"+d(0,-Me._offset);U.layers.aaxis.attr("transform",ue),U.layers.agrid.attr("transform",ue);var ge=d(L+H/2,q)+"rotate(-30)"+d(0,-ye._offset);U.layers.caxis.attr("transform",ge),U.layers.cgrid.attr("transform",ge),U.drawAxes(!0),U.layers.aline.select("path").attr("d",Me.showline?"M"+L+","+(q+V)+"l"+H/2+",-"+V:"M0,0").call(p.stroke,Me.linecolor||"#000").style("stroke-width",(Me.linewidth||0)+"px"),U.layers.bline.select("path").attr("d",ce.showline?"M"+L+","+(q+V)+"h"+H:"M0,0").call(p.stroke,ce.linecolor||"#000").style("stroke-width",(ce.linewidth||0)+"px"),U.layers.cline.select("path").attr("d",ye.showline?"M"+(L+H/2)+","+q+"l"+H/2+","+V:"M0,0").call(p.stroke,ye.linecolor||"#000").style("stroke-width",(ye.linewidth||0)+"px"),U.graphDiv._context.staticPlot||U.initInteractions(),m.setClipUrl(U.layers.frontplot,U._hasClipOnAxisFalse?null:U.clipId,U.graphDiv)},F.drawAxes=function(W){var G=this,L=G.graphDiv,q=G.id.substr(7)+"title",H=G.layers,V=G.aaxis,te=G.baxis,ee=G.caxis;if(G.drawAx(V),G.drawAx(te),G.drawAx(ee),W){var U=Math.max(V.showticklabels?V.tickfont.size/2:0,(ee.showticklabels?.75*ee.tickfont.size:0)+(ee.ticks==="outside"?.87*ee.ticklen:0)),Q=(te.showticklabels?te.tickfont.size:0)+(te.ticks==="outside"?te.ticklen:0)+3;H["a-title"]=M.draw(L,"a"+q,{propContainer:V,propName:G.id+".aaxis.title",placeholder:h(L,"Click to enter Component A title"),attributes:{x:G.x0+G.w/2,y:G.y0-V.title.font.size/3-U,"text-anchor":"middle"}}),H["b-title"]=M.draw(L,"b"+q,{propContainer:te,propName:G.id+".baxis.title",placeholder:h(L,"Click to enter Component B title"),attributes:{x:G.x0-Q,y:G.y0+G.h+.83*te.title.font.size+Q,"text-anchor":"middle"}}),H["c-title"]=M.draw(L,"c"+q,{propContainer:ee,propName:G.id+".caxis.title",placeholder:h(L,"Click to enter Component C title"),attributes:{x:G.x0+G.w+Q,y:G.y0+G.h+.83*ee.title.font.size+Q,"text-anchor":"middle"}})}},F.drawAx=function(W){var G,L=this,q=L.graphDiv,H=W._name,V=H.charAt(0),te=W._id,ee=L.layers[H],U=V+"tickLayout",Q=(G=W).ticks+String(G.ticklen)+String(G.showticklabels);L[U]!==Q&&(ee.selectAll("."+te+"tick").remove(),L[U]=Q),W.setScale();var Y=b.calcTicks(W),Z=b.clipEnds(W,Y),X=b.makeTransTickFn(W),re=b.getTickSigns(W)[2],ie=c.deg2rad(30),le=re*(W.linewidth||1)/2,se=re*W.ticklen,pe=L.w,Te=L.h,Se=V==="b"?"M0,"+le+"l"+Math.sin(ie)*se+","+Math.cos(ie)*se:"M"+le+",0l"+Math.cos(ie)*se+","+-Math.sin(ie)*se,Oe={a:"M0,0l"+Te+",-"+pe/2,b:"M0,0l-"+pe/2+",-"+Te,c:"M0,0l-"+Te+","+pe/2}[V];b.drawTicks(q,W,{vals:W.ticks==="inside"?Z:Y,layer:ee,path:Se,transFn:X,crisp:!1}),b.drawGrid(q,W,{vals:Z,layer:L.layers[V+"grid"],path:Oe,transFn:X,crisp:!1}),b.drawLabels(q,W,{vals:Y,layer:ee,transFn:X,labelFns:b.makeLabelFns(W,0,30)})};var z=O.MINZOOM/2+.87,B="m-0.87,.5h"+z+"v3h-"+(z+5.2)+"l"+(z/2+2.6)+",-"+(.87*z+4.5)+"l2.6,1.5l-"+z/2+","+.87*z+"Z",$="m0.87,.5h-"+z+"v3h"+(z+5.2)+"l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-2.6,1.5l"+z/2+","+.87*z+"Z",j="m0,1l"+z/2+","+.87*z+"l2.6,-1.5l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-"+(z/2+2.6)+","+(.87*z+4.5)+"l2.6,1.5l"+z/2+",-"+.87*z+"Z",N=!0;function E(W){l.select(W).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}F.clearOutline=function(){D(this.dragOptions),P(this.dragOptions.gd)},F.initInteractions=function(){var W,G,L,q,H,V,te,ee,U,Q,Y,Z,X=this,re=X.layers.plotbg.select("path").node(),ie=X.graphDiv,le=ie._fullLayout._zoomlayer;function se(ne){var de={};return de[X.id+".aaxis.min"]=ne.a,de[X.id+".baxis.min"]=ne.b,de[X.id+".caxis.min"]=ne.c,de}function pe(ne,de){var xe=ie._fullLayout.clickmode;E(ie),ne===2&&(ie.emit("plotly_doubleclick",null),s.call("_guiRelayout",ie,se({a:0,b:0,c:0}))),xe.indexOf("select")>-1&&ne===1&&C(de,ie,[X.xaxis],[X.yaxis],X.id,X.dragOptions),xe.indexOf("event")>-1&&_.click(ie,de,X.id)}function Te(ne,de){return 1-de/X.h}function Se(ne,de){return 1-(ne+(X.h-de)/Math.sqrt(3))/X.w}function Oe(ne,de){return(ne-(X.h-de)/Math.sqrt(3))/X.w}function Me(ne,de){var xe=L+ne*W,ue=q+de*G,ge=Math.max(0,Math.min(1,Te(0,q),Te(0,ue))),be=Math.max(0,Math.min(1,Se(L,q),Se(xe,ue))),we=Math.max(0,Math.min(1,Oe(L,q),Oe(xe,ue))),ke=(ge/2+we)*X.w,Ae=(1-ge/2-be)*X.w,Ee=(ke+Ae)/2,De=Ae-ke,Re=(1-ge)*X.h,Ie=Re-De/A;De.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Z.transition().style("opacity",1).duration(200),Q=!0),ie.emit("plotly_relayouting",se(te))}function ce(){E(ie),te!==H&&(s.call("_guiRelayout",ie,se(te)),N&&ie.data&&ie._context.showTips&&(c.notifier(h(ie,"Double-click to zoom back out"),"long"),N=!1))}function ye(ne,de){var xe=ne/X.xaxis._m,ue=de/X.yaxis._m,ge=[(te={a:H.a-ue,b:H.b+(xe+ue)/2,c:H.c-(xe-ue)/2}).a,te.b,te.c].sort(c.sorterAsc),be=ge.indexOf(te.a),we=ge.indexOf(te.b),ke=ge.indexOf(te.c);ge[0]<0&&(ge[1]+ge[0]/2<0?(ge[2]+=ge[0]+ge[1],ge[0]=ge[1]=0):(ge[2]+=ge[0]/2,ge[1]+=ge[0]/2,ge[0]=0),te={a:ge[be],b:ge[we],c:ge[ke]},de=(H.a-te.a)*X.yaxis._m,ne=(H.c-te.c-H.b+te.b)*X.xaxis._m);var Ae=d(X.x0+ne,X.y0+de);X.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ae);var Ee=d(-ne,-de);X.clipDefRelative.select("path").attr("transform",Ee),X.aaxis.range=[te.a,X.sum-te.b-te.c],X.baxis.range=[X.sum-te.a-te.c,te.b],X.caxis.range=[X.sum-te.a-te.b,te.c],X.drawAxes(!1),X._hasClipOnAxisFalse&&X.plotContainer.select(".scatterlayer").selectAll(".trace").call(m.hideOutsideRangePoints,X),ie.emit("plotly_relayouting",se(te))}function J(){s.call("_guiRelayout",ie,se(te))}this.dragOptions={element:re,gd:ie,plotinfo:{id:X.id,domain:ie._fullLayout[X.id].domain,xaxis:X.xaxis,yaxis:X.yaxis},subplot:X.id,prepFn:function(ne,de,xe){X.dragOptions.xaxes=[X.xaxis],X.dragOptions.yaxes=[X.yaxis],W=ie._fullLayout._invScaleX,G=ie._fullLayout._invScaleY;var ue=X.dragOptions.dragmode=ie._fullLayout.dragmode;k(ue)?X.dragOptions.minDrag=1:X.dragOptions.minDrag=void 0,ue==="zoom"?(X.dragOptions.moveFn=Me,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=ce,function(ge,be,we){var ke=re.getBoundingClientRect();L=be-ke.left,q=we-ke.top,ie._fullLayout._calcInverseTransform(ie);var Ae=ie._fullLayout._invTransform,Ee=c.apply3DTransform(Ae)(L,q);L=Ee[0],q=Ee[1],H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,V=X.aaxis.range[1]-H.a,ee=f(X.graphDiv._fullLayout[X.id].bgcolor).getLuminance(),U="M0,"+X.h+"L"+X.w/2+", 0L"+X.w+","+X.h+"Z",Q=!1,Y=le.append("path").attr("class","zoombox").attr("transform",d(X.x0,X.y0)).style({fill:ee>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",U),Z=le.append("path").attr("class","zoombox-corners").attr("transform",d(X.x0,X.y0)).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),X.clearOutline(ie)}(0,de,xe)):ue==="pan"?(X.dragOptions.moveFn=ye,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=J,H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,X.clearOutline(ie)):(T(ue)||k(ue))&&S(ne,de,xe,X.dragOptions,ue)}},re.onmousemove=function(ne){_.hover(ie,ne,X.id),ie._fullLayout._lasthover=re,ie._fullLayout._hoversubplot=X.id},re.onmouseout=function(ne){ie._dragging||x.unhover(ie,ne)},x.init(this.dragOptions)}},73972:function(o,a,n){var l=n(47769),f=n(64213),s=n(75138),c=n(41965),d=n(24401).addStyleRule,h=n(1426),p=n(9012),m=n(10820),y=h.extendFlat,v=h.extendDeepAll;function g(C){var P=C.name,D=C.categories,O=C.meta;if(a.modules[P])l.log("Type "+P+" already registered");else{a.subplotsRegistry[C.basePlotModule.name]||function(N){var E=N.name;if(a.subplotsRegistry[E])l.log("Plot type "+E+" already registered.");else for(var W in w(N),a.subplotsRegistry[E]=N,a.componentsRegistry)M(W,N.name)}(C.basePlotModule);for(var R={},F=0;F-1&&(x[w[m]].title={text:""});for(m=0;m")!==-1?"":F.html(z).text()});return F.remove(),A}(O)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(m,"'"),f.isIE()&&(O=(O=(O=O.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),O}},75341:function(o,a,n){var l=n(71828);o.exports=function(f,s){for(var c=0;cA+R||!l(F))}for(var B=0;Bm))return d}return h!==void 0?h:c.dflt},a.coerceColor=function(c,d,h){return f(d).isValid()?d:h!==void 0?h:c.dflt},a.coerceEnumerated=function(c,d,h){return c.coerceNumber&&(d=+d),c.values.indexOf(d)!==-1?d:h!==void 0?h:c.dflt},a.getValue=function(c,d){var h;return Array.isArray(c)?d0?se+=pe:k<0&&(se-=pe)}return se}function ee(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,z+(Te-se)/(Te-pe)-1)}var U=v[T+"a"],Q=v[M+"a"];P=Math.abs(U.r2c(U.range[1])-U.r2c(U.range[0]));var Y=l.getDistanceFunction(x,S,C,function(le){return(S(le)+C(le))/2});if(l.getClosest(D,Y,v),v.index!==!1&&D[v.index].p!==p){j||(L=function(le){return Math.min(N(le),le.p-R.bargroupwidth/2)},q=function(le){return Math.max(E(le),le.p+R.bargroupwidth/2)});var Z=D[v.index],X=O.base?Z.b+Z.s:Z.s;v[M+"0"]=v[M+"1"]=Q.c2p(Z[M],!0),v[M+"LabelVal"]=X;var re=R.extents[R.extents.round(Z.p)];v[T+"0"]=U.c2p(F?L(Z):re[0],!0),v[T+"1"]=U.c2p(F?q(Z):re[1],!0);var ie=Z.orig_p!==void 0;return v[T+"LabelVal"]=ie?Z.orig_p:Z.p,v.labelLabel=h(U,v[T+"LabelVal"],O[T+"hoverformat"]),v.valueLabel=h(Q,v[M+"LabelVal"],O[M+"hoverformat"]),v.baseLabel=h(Q,Z.b,O[M+"hoverformat"]),v.spikeDistance=(function(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,B+(Te-se)/(Te-pe)-1)}(Z)+function(le){return H(N(le),E(le),B)}(Z))/2,v[T+"Spike"]=U.c2p(Z.p,!0),c(Z,O,v),v.hovertemplate=O.hovertemplate,v}}function y(v,g){var b=g.mcc||v.marker.color,x=g.mlcc||v.marker.line.color,_=d(v,g);return s.opacity(b)?b:s.opacity(x)&&_?x:void 0}o.exports={hoverPoints:function(v,g,b,x,_){var w=m(v,g,b,x,_);if(w){var k=w.cd,T=k[0].trace,M=k[w.index];return w.color=y(T,M),f.getComponentMethod("errorbars","hoverInfo")(M,T,w),[w]}},hoverOnBars:m,getTraceColor:y}},60822:function(o,a,n){o.exports={attributes:n(1486),layoutAttributes:n(43641),supplyDefaults:n(90769).supplyDefaults,crossTraceDefaults:n(90769).crossTraceDefaults,supplyLayoutDefaults:n(13957),calc:n(92290),crossTraceCalc:n(11661).crossTraceCalc,colorbar:n(4898),arraysToCalcdata:n(75341),plot:n(17295).plot,style:n(16688).style,styleOnSelect:n(16688).styleOnSelect,hoverPoints:n(95423).hoverPoints,eventData:n(58065),selectPoints:n(81974),moduleType:"trace",name:"bar",basePlotModule:n(93612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},43641:function(o){o.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},13957:function(o,a,n){var l=n(73972),f=n(89298),s=n(71828),c=n(43641);o.exports=function(d,h,p){function m(T,M){return s.coerce(d,h,c,T,M)}for(var y=!1,v=!1,g=!1,b={},x=m("barmode"),_=0;_0}function F(B){return B==="auto"?0:B}function A(B,$){var j=Math.PI/180*$,N=Math.abs(Math.sin(j)),E=Math.abs(Math.cos(j));return{x:B.width*E+B.height*N,y:B.width*N+B.height*E}}function z(B,$,j,N,E,W){var G=!!W.isHorizontal,L=!!W.constrained,q=W.angle||0,H=W.anchor||"end",V=H==="end",te=H==="start",ee=((W.leftToRight||0)+1)/2,U=1-ee,Q=E.width,Y=E.height,Z=Math.abs($-B),X=Math.abs(N-j),re=Z>2*S&&X>2*S?S:0;Z-=2*re,X-=2*re;var ie=F(q);q!=="auto"||Q<=Z&&Y<=X||!(Q>Z||Y>X)||(Q>X||Y>Z)&&Q.01?we:function(De,Re,Ie){return Ie&&De===Re?De:Math.abs(De-Re)>=2?we(De):De>Re?Math.ceil(De):Math.floor(De)};ne=ke(ne,de,re),de=ke(de,ne,re),xe=ke(xe,ue,!re),ue=ke(ue,xe,!re)}var Ae=O(s.ensureSingle(ye,"path"),q,E,W);if(Ae.style("vector-effect",H?"none":"non-scaling-stroke").attr("d",isNaN((de-ne)*(ue-xe))||ge&&B._context.staticPlot?"M0,0Z":"M"+ne+","+xe+"V"+ue+"H"+de+"V"+xe+"Z").call(h.setClipUrl,$.layerClipId,B),!q.uniformtext.mode&&ie){var Ee=h.makePointStyleFns(U);h.singlePointStyle(Se,Ae,U,Ee,B)}(function(De,Re,Ie,Be,Ue,qe,Ye,at,lt,ct,bt){var ze,Ne=Re.xaxis,Qe=Re.yaxis,it=De._fullLayout;function kt(Dt,gt,ht){return s.ensureSingle(Dt,"text").text(gt).attr({class:"bartext bartext-"+ze,"text-anchor":"middle","data-notex":1}).call(h.font,ht).call(c.convertToTspans,De)}var Je=Be[0].trace,ut=Je.orientation==="h",pt=function(Dt,gt,ht,yt,qt){var Et,jt=gt[0].trace;return Et=jt.texttemplate?function(Tt,Ot,At,Lt,Rt){var $t=Ot[0].trace,Yt=s.castOption($t,At,"texttemplate");if(!Yt)return"";var Xt,Bt,Wt,tn,cn=$t.type==="histogram",ln=$t.type==="waterfall",an=$t.type==="funnel",sn=$t.orientation==="h";function Zt(wn){return m(tn,tn.c2l(wn),!0).text}sn?(Xt="y",Bt=Rt,Wt="x",tn=Lt):(Xt="x",Bt=Lt,Wt="y",tn=Rt);var pn,nn=Ot[At],Kt={};Kt.label=nn.p,Kt.labelLabel=Kt[Xt+"Label"]=(pn=nn.p,m(Bt,Bt.c2l(pn),!0).text);var On=s.castOption($t,nn.i,"text");(On===0||On)&&(Kt.text=On),Kt.value=nn.s,Kt.valueLabel=Kt[Wt+"Label"]=Zt(nn.s);var Tn={};M(Tn,$t,nn.i),(cn||Tn.x===void 0)&&(Tn.x=sn?Kt.value:Kt.label),(cn||Tn.y===void 0)&&(Tn.y=sn?Kt.label:Kt.value),(cn||Tn.xLabel===void 0)&&(Tn.xLabel=sn?Kt.valueLabel:Kt.labelLabel),(cn||Tn.yLabel===void 0)&&(Tn.yLabel=sn?Kt.labelLabel:Kt.valueLabel),ln&&(Kt.delta=+nn.rawS||nn.s,Kt.deltaLabel=Zt(Kt.delta),Kt.final=nn.v,Kt.finalLabel=Zt(Kt.final),Kt.initial=Kt.final-Kt.delta,Kt.initialLabel=Zt(Kt.initial)),an&&(Kt.value=nn.s,Kt.valueLabel=Zt(Kt.value),Kt.percentInitial=nn.begR,Kt.percentInitialLabel=s.formatPercent(nn.begR),Kt.percentPrevious=nn.difR,Kt.percentPreviousLabel=s.formatPercent(nn.difR),Kt.percentTotal=nn.sumR,Kt.percenTotalLabel=s.formatPercent(nn.sumR));var Dn=s.castOption($t,nn.i,"customdata");return Dn&&(Kt.customdata=Dn),s.texttemplateString(Yt,Kt,Tt._d3locale,Tn,Kt,$t._meta||{})}(Dt,gt,ht,yt,qt):jt.textinfo?function(Tt,Ot,At,Lt){var Rt=Tt[0].trace,$t=Rt.orientation==="h",Yt=Rt.type==="waterfall",Xt=Rt.type==="funnel";function Bt(Dn){return m($t?At:Lt,+Dn,!0).text}var Wt,tn,cn=Rt.textinfo,ln=Tt[Ot],an=cn.split("+"),sn=[],Zt=function(Dn){return an.indexOf(Dn)!==-1};if(Zt("label")&&sn.push((tn=Tt[Ot].p,m($t?Lt:At,tn,!0).text)),Zt("text")&&((Wt=s.castOption(Rt,ln.i,"text"))===0||Wt)&&sn.push(Wt),Yt){var pn=+ln.rawS||ln.s,nn=ln.v,Kt=nn-pn;Zt("initial")&&sn.push(Bt(Kt)),Zt("delta")&&sn.push(Bt(pn)),Zt("final")&&sn.push(Bt(nn))}if(Xt){Zt("value")&&sn.push(Bt(ln.s));var On=0;Zt("percent initial")&&On++,Zt("percent previous")&&On++,Zt("percent total")&&On++;var Tn=On>1;Zt("percent initial")&&(Wt=s.formatPercent(ln.begR),Tn&&(Wt+=" of initial"),sn.push(Wt)),Zt("percent previous")&&(Wt=s.formatPercent(ln.difR),Tn&&(Wt+=" of previous"),sn.push(Wt)),Zt("percent total")&&(Wt=s.formatPercent(ln.sumR),Tn&&(Wt+=" of total"),sn.push(Wt))}return sn.join("
")}(gt,ht,yt,qt):x.getValue(jt.text,ht),x.coerceString(k,Et)}(it,Be,Ue,Ne,Qe);ze=function(Dt,gt){var ht=x.getValue(Dt.textposition,gt);return x.coerceEnumerated(T,ht)}(Je,Ue);var It=ct.mode==="stack"||ct.mode==="relative",Mt=Be[Ue],zt=!It||Mt._outmost;if(pt&&ze!=="none"&&(!Mt.isBlank&&qe!==Ye&&at!==lt||ze!=="auto"&&ze!=="inside")){var wt=it.font,ve=b.getBarColor(Be[Ue],Je),_e=b.getInsideTextFont(Je,Ue,wt,ve),Ve=b.getOutsideTextFont(Je,Ue,wt),We=Ie.datum();ut?Ne.type==="log"&&We.s0<=0&&(qe=Ne.range[0]0&&nt>0&&(Ke<=mt&&nt<=tt||Ke<=tt&&nt<=mt||(ut?mt>=Ke*(tt/nt):tt>=nt*(mt/Ke)))?ze="inside":(ze="outside",Ze.remove(),Ze=null)):ze="inside"),!Ze){var Ft=(Ze=kt(Ie,pt,st=s.ensureUniformFontSize(De,ze==="outside"?Ve:_e))).attr("transform");if(Ze.attr("transform",""),Ke=(Ge=h.bBox(Ze.node())).width,nt=Ge.height,Ze.attr("transform",Ft),Ke<=0||nt<=0)return void Ze.remove()}var Vt,St=Je.textangle;Vt=ze==="outside"?function(Dt,gt,ht,yt,qt,Et){var jt,Tt=!!Et.isHorizontal,Ot=!!Et.constrained,At=Et.angle||0,Lt=qt.width,Rt=qt.height,$t=Math.abs(gt-Dt),Yt=Math.abs(yt-ht);jt=Tt?Yt>2*S?S:0:$t>2*S?S:0;var Xt=1;Ot&&(Xt=Tt?Math.min(1,Yt/Rt):Math.min(1,$t/Lt));var Bt=F(At),Wt=A(qt,Bt),tn=(Tt?Wt.x:Wt.y)/2,cn=(qt.left+qt.right)/2,ln=(qt.top+qt.bottom)/2,an=(Dt+gt)/2,sn=(ht+yt)/2,Zt=0,pn=0,nn=Tt?D(gt,Dt):D(ht,yt);return Tt?(an=gt-nn*jt,Zt=nn*tn):(sn=yt+nn*jt,pn=-nn*tn),{textX:cn,textY:ln,targetX:an,targetY:sn,anchorX:Zt,anchorY:pn,scale:Xt,rotate:Bt}}(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="outside",angle:St}):z(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="inside",angle:St,anchor:Je.insidetextanchor}),Vt.fontSize=st.size,v(Je.type==="histogram"?"bar":Je.type,Vt,it),Mt.transform=Vt;var Nt=O(Ze,it,ct,bt);s.setTransormAndDisplay(Nt,Vt)}else Ie.select("text").remove()})(B,$,ye,te,Oe,ne,de,xe,ue,E,W),$.layerClipId&&h.hideOutsideRangePoint(Se,ye.select("text"),G,L,U.xcalendar,U.ycalendar)});var Te=U.cliponaxis===!1;h.setClipUrl(ee,Te?null:$.layerClipId,B)});p.getComponentMethod("errorbars","plot")(B,V,$,E)},toMoveInsideBar:z}},81974:function(o){function a(n,l,f,s,c){var d=l.c2p(s?n.s0:n.p0,!0),h=l.c2p(s?n.s1:n.p1,!0),p=f.c2p(s?n.p0:n.s0,!0),m=f.c2p(s?n.p1:n.s1,!0);return c?[(d+h)/2,(p+m)/2]:s?[h,(p+m)/2]:[(d+h)/2,m]}o.exports=function(n,l){var f,s=n.cd,c=n.xaxis,d=n.yaxis,h=s[0].trace,p=h.type==="funnel",m=h.orientation==="h",y=[];if(l===!1)for(f=0;f1||O.bargap===0&&O.bargroupgap===0&&!R[0].trace.marker.line.width)&&l.select(this).attr("shape-rendering","crispEdges")}),P.selectAll("g.points").each(function(R){b(l.select(this),R[0].trace,C)}),d.getComponentMethod("errorbars","style")(P)},styleTextPoints:x,styleOnSelect:function(C,P,D){var O=P[0].trace;O.selectedpoints?function(R,F,A){s.selectedPointStyle(R.selectAll("path"),F),function(z,B,$){z.each(function(j){var N,E=l.select(this);if(j.selected){N=c.ensureUniformFontSize($,_(E,j,B,$));var W=B.selected.textfont&&B.selected.textfont.color;W&&(N.color=W),s.font(E,N)}else s.selectedTextStyle(E,B)})}(R.selectAll("text"),F,A)}(D,O,C):(b(D,O,C),d.getComponentMethod("errorbars","style")(D))},getInsideTextFont:k,getOutsideTextFont:T,getBarColor:S,resizeText:h}},98340:function(o,a,n){var l=n(7901),f=n(52075).hasColorscale,s=n(1586),c=n(71828).coercePattern;o.exports=function(d,h,p,m,y){var v=p("marker.color",m),g=f(d,"marker");g&&s(d,h,y,p,{prefix:"marker.",cLetter:"c"}),p("marker.line.color",l.defaultLine),f(d,"marker.line")&&s(d,h,y,p,{prefix:"marker.line.",cLetter:"c"}),p("marker.line.width"),p("marker.opacity"),c(p,"marker.pattern",v,g),p("selected.marker.color"),p("unselected.marker.color")}},72597:function(o,a,n){var l=n(39898),f=n(71828);function s(c){return"_"+c+"Text_minsize"}o.exports={recordMinTextSize:function(c,d,h){if(h.uniformtext.mode){var p=s(c),m=h.uniformtext.minsize,y=d.scale*d.fontSize;d.hide=yj.uf};if(T._hasPreCompStats){var Y=T[P],Z=function(Re){return C.d2c((T[Re]||[])[M])},X=1/0,re=-1/0;for(M=0;M=j.q1&&j.q3>=j.med){var le=Z("lowerfence");j.lf=le!==d&&le<=j.q1?le:g(j,E,W);var se=Z("upperfence");j.uf=se!==d&&se>=j.q3?se:b(j,E,W);var pe=Z("mean");j.mean=pe!==d?pe:W?c.mean(E,W):(j.q1+j.q3)/2;var Te=Z("sd");j.sd=pe!==d&&Te>=0?Te:W?c.stdev(E,W,j.mean):j.q3-j.q1,j.lo=x(j),j.uo=_(j);var Se=Z("notchspan");Se=Se!==d&&Se>0?Se:w(j,W),j.ln=j.med-Se,j.un=j.med+Se;var Oe=j.lf,Me=j.uf;T.boxpoints&&E.length&&(Oe=Math.min(Oe,E[0]),Me=Math.max(Me,E[W-1])),T.notched&&(Oe=Math.min(Oe,j.ln),Me=Math.max(Me,j.un)),j.min=Oe,j.max=Me}else{var ce;c.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+j.q1,"median = "+j.med,"q3 = "+j.q3].join(` +`)),ce=j.med!==d?j.med:j.q1!==d?j.q3!==d?(j.q1+j.q3)/2:j.q1:j.q3!==d?j.q3:0,j.med=ce,j.q1=j.q3=ce,j.lf=j.uf=ce,j.mean=j.sd=ce,j.ln=j.un=ce,j.min=j.max=ce}X=Math.min(X,j.min),re=Math.max(re,j.max),j.pts2=N.filter(Q),B.push(j)}}T._extremes[C._id]=f.findExtremes(C,[X,re],{padded:!0})}else{var ye=C.makeCalcdata(T,P),J=function(Re,Ie){for(var Be=Re.length,Ue=new Array(Be+1),qe=0;qe=0&&xe0){var Ae,Ee;(j={}).pos=j[O]=ee[M],N=j.pts=de[M].sort(y),W=(E=j[P]=N.map(v)).length,j.min=E[0],j.max=E[W-1],j.mean=c.mean(E,W),j.sd=c.stdev(E,W,j.mean)*T.sdmultiple,j.med=c.interp(E,.5),W%2&&(we||ke)?(we?(Ae=E.slice(0,W/2),Ee=E.slice(W/2+1)):ke&&(Ae=E.slice(0,W/2+1),Ee=E.slice(W/2)),j.q1=c.interp(Ae,.5),j.q3=c.interp(Ee,.5)):(j.q1=c.interp(E,.25),j.q3=c.interp(E,.75)),j.lf=g(j,E,W),j.uf=b(j,E,W),j.lo=x(j),j.uo=_(j);var De=w(j,W);j.ln=j.med-De,j.un=j.med+De,ue=Math.min(ue,j.ln),ge=Math.max(ge,j.un),j.pts2=N.filter(Q),B.push(j)}T._extremes[C._id]=f.findExtremes(C,T.notched?ye.concat([ue,ge]):ye,{padded:!0})}return function(Re,Ie){if(c.isArrayOrTypedArray(Ie.selectedpoints))for(var Be=0;Be0?(B[0].t={num:F[$],dPos:U,posLetter:O,valLetter:P,labels:{med:h(k,"median:"),min:h(k,"min:"),q1:h(k,"q1:"),q3:h(k,"q3:"),max:h(k,"max:"),mean:T.boxmean==="sd"||T.sizemode==="sd"?h(k,"mean ± σ:").replace("σ",T.sdmultiple===1?"σ":T.sdmultiple+"σ"):h(k,"mean:"),lf:h(k,"lower fence:"),uf:h(k,"upper fence:")}},F[$]++,B):[{t:{empty:!0}}]};var p={text:"tx",hovertext:"htx"};function m(k,T,M){for(var S in p)c.isArrayOrTypedArray(T[S])&&(Array.isArray(M)?c.isArrayOrTypedArray(T[S][M[0]])&&(k[p[S]]=T[S][M[0]][M[1]]):k[p[S]]=T[S][M])}function y(k,T){return k.v-T.v}function v(k){return k.v}function g(k,T,M){return M===0?k.q1:Math.min(k.q1,T[Math.min(c.findBin(2.5*k.q1-1.5*k.q3,T,!0)+1,M-1)])}function b(k,T,M){return M===0?k.q3:Math.max(k.q3,T[Math.max(c.findBin(2.5*k.q3-1.5*k.q1,T),0)])}function x(k){return 4*k.q1-3*k.q3}function _(k){return 4*k.q3-3*k.q1}function w(k,T){return T===0?0:1.57*(k.q3-k.q1)/Math.sqrt(T)}},37188:function(o,a,n){var l=n(89298),f=n(71828),s=n(99082).getAxisGroup,c=["v","h"];function d(h,p,m,y){var v,g,b,x=p.calcdata,_=p._fullLayout,w=y._id,k=w.charAt(0),T=[],M=0;for(v=0;v1,O=1-_[h+"gap"],R=1-_[h+"groupgap"];for(v=0;v0){var ie=N.pointpos,le=N.jitter,se=N.marker.size/2,pe=0;ie+le>=0&&((pe=X*(ie+le))>$?(re=!0,Y=se,U=pe):pe>te&&(Y=se,U=$)),pe<=$&&(U=$);var Te=0;ie-le<=0&&((Te=-X*(ie-le))>j?(re=!0,Z=se,Q=Te):Te>ee&&(Z=se,Q=j)),Te<=j&&(Q=j)}else U=$,Q=j;var Se=new Array(b.length);for(g=0;g0?(D="v",O=F>0?Math.min(z,A):Math.min(A)):F>0?(D="h",O=Math.min(z)):O=0;if(O){g._length=O;var W=b("orientation",D);g._hasPreCompStats?W==="v"&&F===0?(b("x0",0),b("dx",1)):W==="h"&&R===0&&(b("y0",0),b("dy",1)):W==="v"&&F===0?b("x0"):W==="h"&&R===0&&b("y0"),f.getComponentMethod("calendars","handleTraceDefaults")(v,g,["x","y"],x)}else g.visible=!1}function y(v,g,b,x){var _=x.prefix,w=l.coerce2(v,g,p,"marker.outliercolor"),k=b("marker.line.outliercolor"),T="outliers";g._hasPreCompStats?T="all":(w||k)&&(T="suspectedoutliers");var M=b(_+"points",T);M?(b("jitter",M==="all"?.3:0),b("pointpos",M==="all"?-1.5:0),b("marker.symbol"),b("marker.opacity"),b("marker.size"),b("marker.angle"),b("marker.color",g.line.color),b("marker.line.color"),b("marker.line.width"),M==="suspectedoutliers"&&(b("marker.line.outliercolor",g.marker.color),b("marker.line.outlierwidth")),b("selected.marker.color"),b("unselected.marker.color"),b("selected.marker.size"),b("unselected.marker.size"),b("text"),b("hovertext")):delete g.marker;var S=b("hoveron");S!=="all"&&S.indexOf("points")===-1||b("hovertemplate"),l.coerceSelectionMarkerOpacity(g,b)}o.exports={supplyDefaults:function(v,g,b,x){function _(O,R){return l.coerce(v,g,p,O,R)}if(m(v,g,_,x),g.visible!==!1){c(v,g,x,_),_("xhoverformat"),_("yhoverformat");var w=g._hasPreCompStats;w&&(_("lowerfence"),_("upperfence")),_("line.color",(v.marker||{}).color||b),_("line.width"),_("fillcolor",s.addOpacity(g.line.color,.5));var k=!1;if(w){var T=_("mean"),M=_("sd");T&&T.length&&(k=!0,M&&M.length&&(k="sd"))}_("whiskerwidth");var S,C=_("sizemode");C==="quartiles"&&(S=_("boxmean",k)),_("showwhiskers",C==="quartiles"),C!=="sd"&&S!=="sd"||_("sdmultiple"),_("width"),_("quartilemethod");var P=!1;if(w){var D=_("notchspan");D&&D.length&&(P=!0)}else l.validate(v.notchwidth,p.notchwidth)&&(P=!0);_("notched",P)&&_("notchwidth"),y(v,g,_,{prefix:"box"})}},crossTraceDefaults:function(v,g){var b,x;function _(T){return l.coerce(x._input,x,p,T)}for(var w=0;wM.lo&&(E.so=!0)}return P});T.enter().append("path").classed("point",!0),T.exit().remove(),T.call(s.translatePoints,g,b)}function h(p,m,y,v){var g,b,x=m.val,_=m.pos,w=!!_.rangebreaks,k=v.bPos,T=v.bPosPxOffset||0,M=y.boxmean||(y.meanline||{}).visible;Array.isArray(v.bdPos)?(g=v.bdPos[0],b=v.bdPos[1]):(g=v.bdPos,b=v.bdPos);var S=p.selectAll("path.mean").data(y.type==="box"&&y.boxmean||y.type==="violin"&&y.box.visible&&y.meanline.visible?f.identity:[]);S.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),S.exit().remove(),S.each(function(C){var P=_.c2l(C.pos+k,!0),D=_.l2p(P-g)+T,O=_.l2p(P+b)+T,R=w?(D+O)/2:_.l2p(P)+T,F=x.c2p(C.mean,!0),A=x.c2p(C.mean-C.sd,!0),z=x.c2p(C.mean+C.sd,!0);y.orientation==="h"?l.select(this).attr("d","M"+F+","+D+"V"+O+(M==="sd"?"m0,0L"+A+","+R+"L"+F+","+D+"L"+z+","+R+"Z":"")):l.select(this).attr("d","M"+D+","+F+"H"+O+(M==="sd"?"m0,0L"+R+","+A+"L"+D+","+F+"L"+R+","+z+"Z":""))})}o.exports={plot:function(p,m,y,v){var g=p._context.staticPlot,b=m.xaxis,x=m.yaxis;f.makeTraceGroups(v,y,"trace boxes").each(function(_){var w,k,T=l.select(this),M=_[0],S=M.t,C=M.trace;S.wdPos=S.bdPos*C.whiskerwidth,C.visible!==!0||S.empty?T.remove():(C.orientation==="h"?(w=x,k=b):(w=b,k=x),c(T,{pos:w,val:k},C,S,g),d(T,{x:b,y:x},C,S),h(T,{pos:w,val:k},C,S))})},plotBoxAndWhiskers:c,plotPoints:d,plotBoxMean:h}},24626:function(o){o.exports=function(a,n){var l,f,s=a.cd,c=a.xaxis,d=a.yaxis,h=[];if(n===!1)for(l=0;ld.level||d.starts.length&&c===d.level)}break;case"constraint":if(f.prefixBoundary=!1,f.edgepaths.length)return;var h=f.x.length,p=f.y.length,m=-1/0,y=1/0;for(l=0;l":b>m&&(f.prefixBoundary=!0);break;case"<":(bm||f.starts.length&&g===y)&&(f.prefixBoundary=!0);break;case"][":v=Math.min(b[0],b[1]),g=Math.max(b[0],b[1]),vm&&(f.prefixBoundary=!0)}}}},90654:function(o,a,n){var l=n(21081),f=n(86068),s=n(53572);o.exports={min:"zmin",max:"zmax",calc:function(c,d,h){var p=d.contours,m=d.line,y=p.size||1,v=p.coloring,g=f(d,{isColorbar:!0});if(v==="heatmap"){var b=l.extractOpts(d);h._fillgradient=b.reversescale?l.flipScale(b.colorscale):b.colorscale,h._zrange=[b.min,b.max]}else v==="fill"&&(h._fillcolor=g);h._line={color:v==="lines"?g:m.color,width:p.showlines!==!1?m.width:0,dash:m.dash},h._levels={start:p.start,end:s(p),size:y}}}},36914:function(o){o.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},83179:function(o,a,n){var l=n(92770),f=n(14523),s=n(7901),c=s.addOpacity,d=s.opacity,h=n(74808),p=h.CONSTRAINT_REDUCTION,m=h.COMPARISON_OPS2;o.exports=function(y,v,g,b,x,_){var w,k,T,M=v.contours,S=g("contours.operation");M._operation=p[S],function(C,P){var D;m.indexOf(P.operation)===-1?(C("contours.value",[0,1]),Array.isArray(P.value)?P.value.length>2?P.value=P.value.slice(2):P.length===0?P.value=[0,1]:P.length<2?(D=parseFloat(P.value[0]),P.value=[D,D+1]):P.value=[parseFloat(P.value[0]),parseFloat(P.value[1])]:l(P.value)&&(D=parseFloat(P.value),P.value=[D,D+1])):(C("contours.value",0),l(P.value)||(Array.isArray(P.value)?P.value=parseFloat(P.value[0]):P.value=0))}(g,M),S==="="?w=M.showlines=!0:(w=g("contours.showlines"),T=g("fillcolor",c((y.line||{}).color||x,.5))),w&&(k=g("line.color",T&&d(T)?c(v.fillcolor,1):x),g("line.width",2),g("line.dash")),g("line.smoothing"),f(g,b,k,_)}},64237:function(o,a,n){var l=n(74808),f=n(92770);function s(h,p){var m,y=Array.isArray(p);function v(g){return f(g)?+g:null}return l.COMPARISON_OPS2.indexOf(h)!==-1?m=v(y?p[0]:p):l.INTERVAL_OPS.indexOf(h)!==-1?m=y?[v(p[0]),v(p[1])]:[v(p),v(p)]:l.SET_OPS.indexOf(h)!==-1&&(m=y?p.map(v):[v(p)]),m}function c(h){return function(p){p=s(h,p);var m=Math.min(p[0],p[1]),y=Math.max(p[0],p[1]);return{start:m,end:y,size:y-m}}}function d(h){return function(p){return{start:p=s(h,p),end:1/0,size:1/0}}}o.exports={"[]":c("[]"),"][":c("]["),">":d(">"),"<":d("<"),"=":d("=")}},67217:function(o){o.exports=function(a,n,l,f){var s=f("contours.start"),c=f("contours.end"),d=s===!1||c===!1,h=l("contours.size");!(d?n.autocontour=!0:l("autocontour",!1))&&h||l("ncontours")}},84857:function(o,a,n){var l=n(71828);function f(s){return l.extendFlat({},s,{edgepaths:l.extendDeep([],s.edgepaths),paths:l.extendDeep([],s.paths),starts:l.extendDeep([],s.starts)})}o.exports=function(s,c){var d,h,p,m=function(g){return g.reverse()},y=function(g){return g};switch(c){case"=":case"<":return s;case">":for(s.length!==1&&l.warn("Contour data invalid for the specified inequality operation."),h=s[0],d=0;d1e3){l.warn("Too many contours, clipping at 1000",c);break}return y}},53572:function(o){o.exports=function(a){return a.end+a.size/1e6}},81696:function(o,a,n){var l=n(71828),f=n(36914);function s(h,p,m,y){return Math.abs(h[0]-p[0])20&&re?X===208||X===1114?le=ie[0]===0?1:-1:se=ie[1]===0?1:-1:f.BOTTOMSTART.indexOf(X)!==-1?se=1:f.LEFTSTART.indexOf(X)!==-1?le=1:f.TOPSTART.indexOf(X)!==-1?se=-1:le=-1,[le,se]}(x,m,p),w=[d(h,p,[-_[0],-_[1]])],k=h.z.length,T=h.z[0].length,M=p.slice(),S=_.slice();for(g=0;g<1e4;g++){if(x>20?(x=f.CHOOSESADDLE[x][(_[0]||_[1])<0?0:1],h.crossings[b]=f.SADDLEREMAINDER[x]):delete h.crossings[b],!(_=f.NEWDELTA[x])){l.log("Found bad marching index:",x,p,h.level);break}w.push(d(h,p,_)),p[0]+=_[0],p[1]+=_[1],b=p.join(","),s(w[w.length-1],w[w.length-2],y,v)&&w.pop();var C=_[0]&&(p[0]<0||p[0]>T-2)||_[1]&&(p[1]<0||p[1]>k-2);if(p[0]===M[0]&&p[1]===M[1]&&_[0]===S[0]&&_[1]===S[1]||m&&C)break;x=h.crossings[b]}g===1e4&&l.log("Infinite loop in contour?");var P,D,O,R,F,A,z,B,$,j,N,E,W,G,L,q=s(w[0],w[w.length-1],y,v),H=0,V=.2*h.smoothing,te=[],ee=0;for(g=1;g=ee;g--)if((P=te[g])=ee&&P+te[D]B&&$--,h.edgepaths[$]=N.concat(w,j));break}Z||(h.edgepaths[B]=w.concat(j))}for(B=0;B=S)&&(h<=M&&(h=M),p>=S&&(p=S),y=Math.floor((p-h)/m)+1,v=0),x=0;xM&&(k.unshift(M),T.unshift(T[0])),k[k.length-1]s?0:1)+(c[0][1]>s?0:2)+(c[1][1]>s?0:4)+(c[1][0]>s?0:8);return d===5||d===10?s>(c[0][0]+c[0][1]+c[1][0]+c[1][1])/4?d===5?713:1114:d===5?104:208:d===15?0:d}o.exports=function(s){var c,d,h,p,m,y,v,g,b,x=s[0].z,_=x.length,w=x[0].length,k=_===2||w===2;for(d=0;d<_-1;d++)for(p=[],d===0&&(p=p.concat(l.BOTTOMSTART)),d===_-2&&(p=p.concat(l.TOPSTART)),c=0;c=0&&(D=L,R=F):Math.abs(P[1]-D[1])<.01?Math.abs(P[1]-L[1])<.01&&(L[0]-P[0])*(D[0]-L[0])>=0&&(D=L,R=F):f.log("endpt to newendpt is not vert. or horz.",P,D,L)}if(P=D,R>=0)break;B+="L"+D}if(R===S.edgepaths.length){f.log("unclosed perimeter path");break}$=R,(N=j.indexOf($)===-1)&&($=j[0],B+="Z")}for($=0;$D.center?D.right-F:F-D.left)/(B+Math.abs(Math.sin(z)*R)),N=(A>D.middle?D.bottom-A:A-D.top)/(Math.abs($)+Math.cos(z)*R);if(j<1||N<1)return 1/0;var E=w.EDGECOST*(1/(j-1)+1/(N-1));E+=w.ANGLECOST*z*z;for(var W=F-B,G=A-$,L=F+B,q=A+$,H=0;H2*w.MAXCOST)break;N&&(F/=2),A=(R=z-F/2)+1.5*F}if(j<=w.MAXCOST)return B},a.addLabelData=function(S,C,P,D){var O=C.fontSize,R=C.width+O/3,F=Math.max(0,C.height-O/3),A=S.x,z=S.y,B=S.theta,$=Math.sin(B),j=Math.cos(B),N=function(W,G){return[A+W*j-G*$,z+W*$+G*j]},E=[N(-R/2,-F/2),N(-R/2,F/2),N(R/2,F/2),N(R/2,-F/2)];P.push({text:C.text,x:A,y:z,dy:C.dy,theta:B,level:C.level,width:R,height:F}),D.push(E)},a.drawLabels=function(S,C,P,D,O){var R=S.selectAll("text").data(C,function(z){return z.text+","+z.x+","+z.y+","+z.theta});if(R.exit().remove(),R.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(z){var B=z.x+Math.sin(z.theta)*z.dy,$=z.y-Math.cos(z.theta)*z.dy;l.select(this).text(z.text).attr({x:B,y:$,transform:"rotate("+180*z.theta/Math.PI+" "+B+" "+$+")"}).call(d.convertToTspans,P)}),O){for(var F="",A=0;Ah.end&&(h.start=h.end=(h.start+h.end)/2),c._input.contours||(c._input.contours={}),f.extendFlat(c._input.contours,{start:h.start,end:h.end,size:h.size}),c._input.autocontour=!0}else if(h.type!=="constraint"){var v,g=h.start,b=h.end,x=c._input.contours;g>b&&(h.start=x.start=b,b=h.end=x.end=g,g=h.start),h.size>0||(v=g===b?1:s(g,b,c.ncontours).dtick,x.size=h.size=v)}}},84426:function(o,a,n){var l=n(39898),f=n(91424),s=n(70035),c=n(86068);o.exports=function(d){var h=l.select(d).selectAll("g.contour");h.style("opacity",function(p){return p[0].trace.opacity}),h.each(function(p){var m=l.select(this),y=p[0].trace,v=y.contours,g=y.line,b=v.size||1,x=v.start,_=v.type==="constraint",w=!_&&v.coloring==="lines",k=!_&&v.coloring==="fill",T=w||k?c(y):null;m.selectAll("g.contourlevel").each(function(C){l.select(this).selectAll("path").call(f.lineGroupStyle,g.width,w?T(C.level):g.color,g.dash)});var M=v.labelfont;if(m.selectAll("g.contourlabels text").each(function(C){f.font(l.select(this),{family:M.family,size:M.size,color:M.color||(w?T(C.level):g.color)})}),_)m.selectAll("g.contourfill path").style("fill",y.fillcolor);else if(k){var S;m.selectAll("g.contourfill path").style("fill",function(C){return S===void 0&&(S=C.level),T(C.level+.5*b)}),S===void 0&&(S=x),m.selectAll("g.contourbg path").style("fill",T(S-.5*b))}}),s(d)}},8724:function(o,a,n){var l=n(1586),f=n(14523);o.exports=function(s,c,d,h,p){var m,y=d("contours.coloring"),v="";y==="fill"&&(m=d("contours.showlines")),m!==!1&&(y!=="lines"&&(v=d("line.color","#000")),d("line.width",.5),d("line.dash")),y!=="none"&&(s.showlegend!==!0&&(c.showlegend=!1),c._dfltShowLegend=!1,l(s,c,h,d,{prefix:"",cLetter:"z"})),d("line.smoothing"),f(d,h,v,p)}},21606:function(o,a,n){var l=n(82196),f=n(9012),s=n(41940),c=n(12663).axisHoverFormat,d=n(5386).fF,h=n(5386).si,p=n(50693),m=n(1426).extendFlat;o.exports=m({z:{valType:"data_array",editType:"calc"},x:m({},l.x,{impliedEdits:{xtype:"array"}}),x0:m({},l.x0,{impliedEdits:{xtype:"scaled"}}),dx:m({},l.dx,{impliedEdits:{xtype:"scaled"}}),y:m({},l.y,{impliedEdits:{ytype:"array"}}),y0:m({},l.y0,{impliedEdits:{ytype:"scaled"}}),dy:m({},l.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:m({},l.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:m({},l.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:m({},l.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:m({},l.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:m({},l.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:m({},l.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:c("x"),yhoverformat:c("y"),zhoverformat:c("z",1),hovertemplate:d(),texttemplate:h({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:s({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:m({},f.showlegend,{dflt:!1})},{transforms:void 0},p("",{cLetter:"z",autoColorDflt:!1}))},90757:function(o,a,n){var l=n(73972),f=n(71828),s=n(89298),c=n(42973),d=n(17562),h=n(78803),p=n(68296),m=n(4742),y=n(824),v=n(43907),g=n(70769),b=n(50606).BADNUM;function x(_){for(var w=[],k=_.length,T=0;T1){var Z=(Y[Y.length-1]-Y[0])/(Y.length-1),X=Math.abs(Z/100);for(F=0;FX)return!1}return!0}(z.rangebreaks||B.rangebreaks)&&(R=function(Y,Z,X){for(var re=[],ie=-1,le=0;le=0;p--)(m=((b[[(c=(h=x[p])[0])-1,d=h[1]]]||k)[2]+(b[[c+1,d]]||k)[2]+(b[[c,d-1]]||k)[2]+(b[[c,d+1]]||k)[2])/20)&&(y[h]=[c,d,m],x.splice(p,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(h in y)b[h]=y[h],g.push(y[h])}return g.sort(function(M,S){return S[2]-M[2]})}},46248:function(o,a,n){var l=n(30211),f=n(71828),s=n(89298),c=n(21081).extractOpts;o.exports=function(d,h,p,m,y){y||(y={});var v,g,b,x,_=y.isContour,w=d.cd[0],k=w.trace,T=d.xa,M=d.ya,S=w.x,C=w.y,P=w.z,D=w.xCenter,O=w.yCenter,R=w.zmask,F=k.zhoverformat,A=S,z=C;if(d.index!==!1){try{b=Math.round(d.index[1]),x=Math.round(d.index[0])}catch{return void f.error("Error hovering on heatmap, pointNumber must be [row,col], found:",d.index)}if(b<0||b>=P[0].length||x<0||x>P.length)return}else{if(l.inbox(h-S[0],h-S[S.length-1],0)>0||l.inbox(p-C[0],p-C[C.length-1],0)>0)return;if(_){var B;for(A=[2*S[0]-S[1]],B=1;BS&&(P=Math.max(P,Math.abs(d[y][v]-M)/(C-S))))}return P}o.exports=function(d,h){var p,m=1;for(c(d,h),p=0;p.01;p++)m=c(d,h,s(m));return m>.01&&l.log("interp2d didn't converge quickly",m),d}},58623:function(o,a,n){var l=n(71828);o.exports=function(f,s){f("texttemplate");var c=l.extendFlat({},s.font,{color:"auto",size:"auto"});l.coerceFont(f,"textfont",c)}},70769:function(o,a,n){var l=n(73972),f=n(71828).isArrayOrTypedArray;o.exports=function(s,c,d,h,p,m){var y,v,g,b=[],x=l.traceIs(s,"contour"),_=l.traceIs(s,"histogram"),w=l.traceIs(s,"gl2d");if(f(c)&&c.length>1&&!_&&m.type!=="category"){var k=c.length;if(!(k<=p))return x?c.slice(0,p):c.slice(0,p+1);if(x||w)b=c.slice(0,p);else if(p===1)b=[c[0]-.5,c[0]+.5];else{for(b=[1.5*c[0]-.5*c[1]],g=1;g0;)j=A.c2p(Y[G]),G--;for(j<$&&(N=j,j=$,$=N,Te=!0),G=0;E===void 0&&G0;)W=z.c2p(Z[G]),G--;W=A._length||j<=0||E>=z._length||W<=0)return H.selectAll("image").data([]).exit().remove(),void M(H);Oe==="fast"?(ce=pe,ye=se):(ce=J,ye=ne);var de=document.createElement("canvas");de.width=ce,de.height=ye;var xe,ue,ge=de.getContext("2d",{willReadFrequently:!0}),be=g(te,{noNumericCheck:!0,returnArray:!0});Oe==="fast"?(xe=Te?function(pn){return pe-1-pn}:h.identity,ue=Se?function(pn){return se-1-pn}:h.identity):(xe=function(pn){return h.constrain(Math.round(A.c2p(Y[pn])-$),0,J)},ue=function(pn){return h.constrain(Math.round(z.c2p(Z[pn])-E),0,ne)});var we,ke,Ae,Ee,De=ue(0),Re=[De,De],Ie=Te?0:1,Be=Se?0:1,Ue=0,qe=0,Ye=0,at=0;function lt(pn,nn){if(pn!==void 0){var Kt=be(pn);return Kt[0]=Math.round(Kt[0]),Kt[1]=Math.round(Kt[1]),Kt[2]=Math.round(Kt[2]),Ue+=nn,qe+=Kt[0]*nn,Ye+=Kt[1]*nn,at+=Kt[2]*nn,Kt}return[0,0,0,0]}function ct(pn,nn,Kt,On){var Tn=pn[Kt.bin0];if(Tn===void 0)return lt(void 0,1);var Dn,wn=pn[Kt.bin1],En=nn[Kt.bin0],tr=nn[Kt.bin1],oa=wn-Tn||0,da=En-Tn||0;return Dn=wn===void 0?tr===void 0?0:En===void 0?2*(tr-Tn):2*(2*tr-En-Tn)/3:tr===void 0?En===void 0?0:2*(2*Tn-wn-En)/3:En===void 0?2*(2*tr-wn-Tn)/3:tr+Tn-wn-En,lt(Tn+Kt.frac*oa+On.frac*(da+Kt.frac*Dn))}if(Oe!=="default"){var bt,ze=0;try{bt=new Uint8Array(ce*ye*4)}catch{bt=new Array(ce*ye*4)}if(Oe==="smooth"){var Ne,Qe,it,kt=X||Y,Je=re||Z,ut=new Array(kt.length),pt=new Array(Je.length),It=new Array(J),Mt=X?C:S,zt=re?C:S;for(G=0;Ggt||gt>z._length))for(L=Vt;Lyt||yt>A._length)){var qt=m({x:ht,y:Dt},te,D._fullLayout);qt.x=ht,qt.y=Dt;var Et=V.z[G][L];Et===void 0?(qt.z="",qt.zLabel=""):(qt.z=Et,qt.zLabel=d.tickText(st,Et,"hover").text);var jt=V.text&&V.text[G]&&V.text[G][L];jt!==void 0&&jt!==!1||(jt=""),qt.text=jt;var Tt=h.texttemplateString(Ke,qt,D._fullLayout._d3locale,qt,te._meta||{});if(Tt){var Ot=Tt.split("
"),At=Ot.length,Lt=0;for(q=0;q0&&(S=!0);for(var D=0;Dh){var p=h-c[f];return c[f]=h,p}}return 0},max:function(f,s,c,d){var h=d[s];if(l(h)){if(h=Number(h),!l(c[f]))return c[f]=h,h;if(c[f]p?x>c?x>1.1*f?f:x>1.1*s?s:c:x>d?d:x>h?h:p:Math.pow(10,Math.floor(Math.log(x)/Math.LN10))}function g(x,_,w,k,T,M){if(k&&x>c){var S=b(_,T,M),C=b(w,T,M),P=x===f?0:1;return S[P]!==C[P]}return Math.floor(w/x)-Math.floor(_/x)>.1}function b(x,_,w){var k=_.c2d(x,f,w).split("-");return k[0]===""&&(k.unshift(),k[0]="-"+k[0]),k}o.exports=function(x,_,w,k,T){var M,S,C=-1.1*_,P=-.1*_,D=x-P,O=w[0],R=w[1],F=Math.min(y(O+P,O+D,k,T),y(R+P,R+D,k,T)),A=Math.min(y(O+C,O+P,k,T),y(R+C,R+P,k,T));if(F>A&&Ac){var z=M===f?1:6,B=M===f?"M12":"M1";return function($,j){var N=k.c2d($,f,T),E=N.indexOf("-",z);E>0&&(N=N.substr(0,E));var W=k.d2c(N,0,T);if(W<$){var G=m(W,B,!1,T);(W+G)/2<$+x&&(W=G)}return j&&S?m(W,B,!0,T):W}}return function($,j){var N=M*Math.round($/M);return N+M/10<$&&N+.9*M<$+x&&(N+=M),j&&S&&(N-=M),N}}},72138:function(o,a,n){var l=n(92770),f=n(71828),s=n(73972),c=n(89298),d=n(75341),h=n(59575),p=n(36362),m=n(42174),y=n(40965);function v(g,b,x,_,w){var k,T,M,S,C,P,D,O=_+"bins",R=g._fullLayout,F=b["_"+_+"bingroup"],A=R._histogramBinOpts[F],z=R.barmode==="overlay",B=function(Se){return x.r2c(Se,0,S)},$=function(Se){return x.c2r(Se,0,S)},j=x.type==="date"?function(Se){return Se||Se===0?f.cleanDate(Se,null,S):null}:function(Se){return l(Se)?Number(Se):null};function N(Se,Oe,Me){Oe[Se+"Found"]?(Oe[Se]=j(Oe[Se]),Oe[Se]===null&&(Oe[Se]=Me[Se])):(P[Se]=Oe[Se]=Me[Se],f.nestedProperty(T[0],O+"."+Se).set(Me[Se]))}if(b["_"+_+"autoBinFinished"])delete b["_"+_+"autoBinFinished"];else{T=A.traces;var E=[],W=!0,G=!1,L=!1;for(k=0;kx.r2l(Z)&&(re=c.tickIncrement(re,A.size,!0,S)),ee.start=x.l2r(re),Y||f.nestedProperty(b,O+".start").set(ee.start)}var ie=A.end,le=x.r2l(te.end),se=le!==void 0;if((A.endFound||se)&&le!==x.r2l(ie)){var pe=se?le:f.aggNums(Math.max,null,C);ee.end=x.l2r(pe),se||f.nestedProperty(b,O+".start").set(ee.end)}var Te="autobin"+_;return b._input[Te]===!1&&(b._input[O]=f.extendFlat({},b[O]||{}),delete b._input[Te],delete b[Te]),[ee,C]}o.exports={calc:function(g,b){var x,_,w,k,T=[],M=[],S=b.orientation==="h",C=c.getFromId(g,S?b.yaxis:b.xaxis),P=S?"y":"x",D={x:"y",y:"x"}[P],O=b[P+"calendar"],R=b.cumulative,F=v(g,b,C,P),A=F[0],z=F[1],B=typeof A.size=="string",$=[],j=B?$:A,N=[],E=[],W=[],G=0,L=b.histnorm,q=b.histfunc,H=L.indexOf("density")!==-1;R.enabled&&H&&(L=L.replace(/ ?density$/,""),H=!1);var V,te=q==="max"||q==="min"?null:0,ee=h.count,U=p[L],Q=!1,Y=function(ne){return C.r2c(ne,0,O)};for(f.isArrayOrTypedArray(b[D])&&q!=="count"&&(V=b[D],Q=q==="avg",ee=h[q]),x=Y(A.start),w=Y(A.end)+(x-c.tickIncrement(x,A.size,!1,O))/1e6;x=0&&k=0;ue--)ke(ue);else if(de==="increasing"){for(ue=1;ue=0;ue--)ne[ue]+=ne[ue+1];xe==="exclude"&&(ne.push(0),ne.shift())}}(M,R.direction,R.currentbin);var Oe=Math.min(T.length,M.length),Me=[],ce=0,ye=Oe-1;for(x=0;x=ce;x--)if(M[x]){ye=x;break}for(x=ce;x<=ye;x++)if(l(T[x])&&l(M[x])){var J={p:T[x],s:M[x],b:0};R.enabled||(J.pts=W[x],le?J.ph0=J.ph1=W[x].length?z[W[x][0]]:T[x]:(b._computePh=!0,J.ph0=re($[x]),J.ph1=re($[x+1],!0))),Me.push(J)}return Me.length===1&&(Me[0].width1=c.tickIncrement(Me[0].p,A.size,!1,O)-Me[0].p),d(Me,b),f.isArrayOrTypedArray(b.selectedpoints)&&f.tagSelected(Me,b,Te),Me},calcAllAutoBins:v}},72406:function(o){o.exports={eventDataKeys:["binNumber"]}},82222:function(o,a,n){var l=n(71828),f=n(41675),s=n(73972).traceIs,c=n(26125),d=l.nestedProperty,h=n(99082).getAxisGroup,p=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],m=["x","y"];o.exports=function(y,v){var g,b,x,_,w,k,T,M=v._histogramBinOpts={},S=[],C={},P=[];function D(H,V){return l.coerce(g._input,g,g._module.attributes,H,V)}function O(H){return H.orientation==="v"?"x":"y"}function R(H,V,te){var ee=H.uid+"__"+te;V||(V=ee);var U=function(X,re){return f.getFromTrace({_fullLayout:v},X,re).type}(H,te),Q=H[te+"calendar"]||"",Y=M[V],Z=!0;Y&&(U===Y.axType&&Q===Y.calendar?(Z=!1,Y.traces.push(H),Y.dirs.push(te)):(V=ee,U!==Y.axType&&l.warn(["Attempted to group the bins of trace",H.index,"set on a","type:"+U,"axis","with bins on","type:"+Y.axType,"axis."].join(" ")),Q!==Y.calendar&&l.warn(["Attempted to group the bins of trace",H.index,"set with a",Q,"calendar","with bins",Y.calendar?"on a "+Y.calendar+" calendar":"w/o a set calendar"].join(" ")))),Z&&(M[V]={traces:[H],dirs:[te],axType:U,calendar:H[te+"calendar"]||""}),H["_"+te+"bingroup"]=V}for(w=0;w$&&F.splice($,F.length-$),B.length>$&&B.splice($,B.length-$);var j=[],N=[],E=[],W=typeof R.size=="string",G=typeof z.size=="string",L=[],q=[],H=W?L:R,V=G?q:z,te=0,ee=[],U=[],Q=b.histnorm,Y=b.histfunc,Z=Q.indexOf("density")!==-1,X=Y==="max"||Y==="min"?null:0,re=s.count,ie=c[Q],le=!1,se=[],pe=[],Te="z"in b?b.z:"marker"in b&&Array.isArray(b.marker.color)?b.marker.color:"";Te&&Y!=="count"&&(le=Y==="avg",re=s[Y]);var Se=R.size,Oe=P(R.start),Me=P(R.end)+(Oe-f.tickIncrement(Oe,Se,!1,S))/1e6;for(x=Oe;x=0&&w=0&&k0||l.inbox(h-p.y0,h-(p.y0+p.h*m.dy),0)>0)){var g,b=Math.floor((d-p.x0)/m.dx),x=Math.floor(Math.abs(h-p.y0)/m.dy);if(m._hasZ?g=p.z[x][b]:m._hasSource&&(g=m._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(b,x,1,1).data),g){var _,w=p.hi||m.hoverinfo;if(w){var k=w.split("+");k.indexOf("all")!==-1&&(k=["color"]),k.indexOf("color")!==-1&&(_=!0)}var T,M=s.colormodel[m.colormodel],S=M.colormodel||m.colormodel,C=S.length,P=m._scaler(g),D=M.suffix,O=[];(m.hovertemplate||_)&&(O.push("["+[P[0]+D[0],P[1]+D[1],P[2]+D[2]].join(", ")),C===4&&O.push(", "+P[3]+D[3]),O.push("]"),O=O.join(""),c.extraText=S.toUpperCase()+": "+O),Array.isArray(m.hovertext)&&Array.isArray(m.hovertext[x])?T=m.hovertext[x][b]:Array.isArray(m.text)&&Array.isArray(m.text[x])&&(T=m.text[x][b]);var R=v.c2p(p.y0+(x+.5)*m.dy),F=p.x0+(b+.5)*m.dx,A=p.y0+(x+.5)*m.dy,z="["+g.slice(0,m.colormodel.length).join(", ")+"]";return[f.extendFlat(c,{index:[x,b],x0:y.c2p(p.x0+b*m.dx),x1:y.c2p(p.x0+(b+1)*m.dx),y0:R,y1:R,color:P,xVal:F,xLabelVal:F,yVal:A,yLabelVal:A,zLabelVal:z,text:T,hovertemplateLabels:{zLabel:z,colorLabel:O,"color[0]Label":P[0]+D[0],"color[1]Label":P[1]+D[1],"color[2]Label":P[2]+D[2],"color[3]Label":P[3]+D[3]}})]}}}},94507:function(o,a,n){o.exports={attributes:n(17230),supplyDefaults:n(13245),calc:n(71113),plot:n(60775),style:n(12826),hoverPoints:n(28749),eventData:n(30835),moduleType:"trace",name:"image",basePlotModule:n(93612),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},60775:function(o,a,n){var l=n(39898),f=n(71828),s=f.strTranslate,c=n(77922),d=n(51877),h=n(3883),p=n(32396).STYLE;o.exports=function(m,y,v,g){var b=y.xaxis,x=y.yaxis,_=!m._context._exportedPlot&&h();f.makeTraceGroups(g,v,"im").each(function(w){var k=l.select(this),T=w[0],M=T.trace,S=(M.zsmooth==="fast"||M.zsmooth===!1&&_)&&!M._hasZ&&M._hasSource&&b.type==="linear"&&x.type==="linear";M._realImage=S;var C,P,D,O,R,F,A=T.z,z=T.x0,B=T.y0,$=T.w,j=T.h,N=M.dx,E=M.dy;for(F=0;C===void 0&&F<$;)C=b.c2p(z+F*N),F++;for(F=$;P===void 0&&F>0;)P=b.c2p(z+F*N),F--;for(F=0;O===void 0&&F0;)R=x.c2p(B+F*E),F--;PV[0];if(te||ee){var U=C+W/2,Q=O+G/2;q+="transform:"+s(U+"px",Q+"px")+"scale("+(te?-1:1)+","+(ee?-1:1)+")"+s(-U+"px",-Q+"px")+";"}}L.attr("style",q);var Y=new Promise(function(X){if(M._hasZ)X();else if(M._hasSource)if(M._canvas&&M._canvas.el.width===$&&M._canvas.el.height===j&&M._canvas.source===M.source)X();else{var re=document.createElement("canvas");re.width=$,re.height=j;var ie=re.getContext("2d",{willReadFrequently:!0});M._image=M._image||new Image;var le=M._image;le.onload=function(){ie.drawImage(le,0,0),M._canvas={el:re,source:M.source},X()},le.setAttribute("src",M.source)}}).then(function(){var X,re;if(M._hasZ)re=Z(function(le,se){return A[se][le]}),X=re.toDataURL("image/png");else if(M._hasSource)if(S)X=M.source;else{var ie=M._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,$,j).data;re=Z(function(le,se){var pe=4*(se*$+le);return[ie[pe],ie[pe+1],ie[pe+2],ie[pe+3]]}),X=re.toDataURL("image/png")}L.attr({"xlink:href":X,height:G,width:W,x:C,y:O})});m._promises.push(Y)}function Z(X){var re=document.createElement("canvas");re.width=W,re.height=G;var ie,le=re.getContext("2d",{willReadFrequently:!0}),se=function(de){return f.constrain(Math.round(b.c2p(z+de*N)-C),0,W)},pe=function(de){return f.constrain(Math.round(x.c2p(B+de*E)-O),0,G)},Te=d.colormodel[M.colormodel],Se=Te.colormodel||M.colormodel,Oe=Te.fmt;for(F=0;F=0}),(m.type==="funnelarea"?D:m.sort)&&g.sort(function(z,B){return B.v-z.v}),g[0]&&(g[0].vTotal=P),g},crossTraceCalc:function(p,m){var y=(m||{}).type;y||(y="pie");var v=p._fullLayout,g=p.calcdata,b=v[y+"colorway"],x=v["_"+y+"colormap"];v["extend"+y+"colors"]&&(b=h(b,c));for(var _=0,w=0;w0){_=!0;break}}_||(x=0)}return{hasLabels:g,hasValues:b,len:x}}function m(y,v,g,b,x){b("marker.line.width")&&b("marker.line.color",x?void 0:g.paper_bgcolor);var _=b("marker.colors");h(b,"marker.pattern",_),y.marker&&!v.marker.pattern.fgcolor&&(v.marker.pattern.fgcolor=y.marker.colors),v.marker.pattern.bgcolor||(v.marker.pattern.bgcolor=g.paper_bgcolor)}o.exports={handleLabelsAndValues:p,handleMarkerDefaults:m,supplyDefaults:function(y,v,g,b){function x(D,O){return f.coerce(y,v,s,D,O)}var _=p(x("labels"),x("values")),w=_.len;if(v._hasLabels=_.hasLabels,v._hasValues=_.hasValues,!v._hasLabels&&v._hasValues&&(x("label0"),x("dlabel")),w){v._length=w,m(y,v,b,x,!0),x("scalegroup");var k,T=x("text"),M=x("texttemplate");if(M||(k=x("textinfo",Array.isArray(T)?"text+percent":"percent")),x("hovertext"),x("hovertemplate"),M||k&&k!=="none"){var S=x("textposition");d(y,v,b,x,S,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(S)||S==="auto"||S==="outside")&&x("automargin"),(S==="inside"||S==="auto"||Array.isArray(S))&&x("insidetextorientation")}c(v,b,x);var C=x("hole");if(x("title.text")){var P=x("title.position",C?"middle center":"top center");C||P!=="middle center"||(v.title.position="top center"),f.coerceFont(x,"title.font",b.font)}x("sort"),x("direction"),x("rotation"),x("pull")}else v.visible=!1}}},20007:function(o,a,n){var l=n(23469).appendArrayMultiPointValues;o.exports=function(f,s){var c={curveNumber:s.index,pointNumbers:f.pts,data:s._input,fullData:s,label:f.label,color:f.color,value:f.v,percent:f.percent,text:f.text,bbox:f.bbox,v:f.v};return f.pts.length===1&&(c.pointNumber=c.i=f.pts[0]),l(c,s,f.pts),s.type==="funnelarea"&&(delete c.v,delete c.i),c}},22209:function(o,a,n){var l=n(91424),f=n(7901);o.exports=function(s,c,d,h){var p=d.marker.pattern;p&&p.shape?l.pointStyle(s,d,h,c):f.fill(s,c.color)}},53581:function(o,a,n){var l=n(71828);function f(s){return s.indexOf("e")!==-1?s.replace(/[.]?0+e/,"e"):s.indexOf(".")!==-1?s.replace(/[.]?0+$/,""):s}a.formatPiePercent=function(s,c){var d=f((100*s).toPrecision(3));return l.numSeparate(d,c)+"%"},a.formatPieValue=function(s,c){var d=f(s.toPrecision(10));return l.numSeparate(d,c)},a.getFirstFilled=function(s,c){if(Array.isArray(s))for(var d=0;d"),name:X.hovertemplate||re.indexOf("name")!==-1?X.name:void 0,idealAlign:Y.pxmid[0]<0?"left":"right",color:_.castOption(Oe.bgcolor,Y.pts)||Y.color,borderColor:_.castOption(Oe.bordercolor,Y.pts),fontFamily:_.castOption(Me.family,Y.pts),fontSize:_.castOption(Me.size,Y.pts),fontColor:_.castOption(Me.color,Y.pts),nameLength:_.castOption(Oe.namelength,Y.pts),textAlign:_.castOption(Oe.align,Y.pts),hovertemplate:_.castOption(X.hovertemplate,Y.pts),hovertemplateLabels:Y,eventData:[w(Y,X)]},{container:Z._hoverlayer.node(),outerContainer:Z._paper.node(),gd:q,inOut_bbox:ce}),Y.bbox=ce[0],U._hasHoverLabel=!0}U._hasHoverEvent=!0,q.emit("plotly_hover",{points:[w(Y,X)],event:l.event})}}),L.on("mouseout",function(Y){var Z=q._fullLayout,X=q._fullData[U.index],re=l.select(this).datum();U._hasHoverEvent&&(Y.originalEvent=l.event,q.emit("plotly_unhover",{points:[w(re,X)],event:l.event}),U._hasHoverEvent=!1),U._hasHoverLabel&&(s.loneUnhover(Z._hoverlayer.node()),U._hasHoverLabel=!1)}),L.on("click",function(Y){var Z=q._fullLayout,X=q._fullData[U.index];q._dragging||Z.hovermode===!1||(q._hoverdata=[w(Y,X)],s.click(q,l.event))})}function M(L,q,H){var V=_.castOption(L.insidetextfont.color,q.pts);!V&&L._input.textfont&&(V=_.castOption(L._input.textfont.color,q.pts));var te=_.castOption(L.insidetextfont.family,q.pts)||_.castOption(L.textfont.family,q.pts)||H.family,ee=_.castOption(L.insidetextfont.size,q.pts)||_.castOption(L.textfont.size,q.pts)||H.size;return{color:V||c.contrast(q.color),family:te,size:ee}}function S(L,q){for(var H,V,te=0;tewe&&we>Ae||ke=-4;Te-=2)Se(Math.PI*Te,"tan");for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+1),"tan")}if(re||le){for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+1.5),"rad");for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+.5),"rad")}}if(Q||se||re){var Oe=Math.sqrt(L.width*L.width+L.height*L.height);if((ee={scale:te*V*2/Oe,rCenter:1-te,rotate:0}).textPosAngle=(q.startangle+q.stopangle)/2,ee.scale>=1)return ee;pe.push(ee)}(se||le)&&((ee=P(L,V,U,Y,Z)).textPosAngle=(q.startangle+q.stopangle)/2,pe.push(ee)),(se||ie)&&((ee=D(L,V,U,Y,Z)).textPosAngle=(q.startangle+q.stopangle)/2,pe.push(ee));for(var Me=0,ce=0,ye=0;ye=1)break}return pe[Me]}function P(L,q,H,V,te){q=Math.max(0,q-2*x);var ee=L.width/L.height,U=F(ee,V,q,H);return{scale:2*U/L.height,rCenter:O(ee,U/q),rotate:R(te)}}function D(L,q,H,V,te){q=Math.max(0,q-2*x);var ee=L.height/L.width,U=F(ee,V,q,H);return{scale:2*U/L.width,rCenter:O(ee,U/q),rotate:R(te+Math.PI/2)}}function O(L,q){return Math.cos(q)-L*q}function R(L){return(180/Math.PI*L+720)%180-90}function F(L,q,H,V){var te=L+1/(2*Math.tan(q));return H*Math.min(1/(Math.sqrt(te*te+.5)+te),V/(Math.sqrt(L*L+V/2)+L))}function A(L,q){return L.v!==q.vTotal||q.trace.hole?Math.min(1/(1+1/Math.sin(L.halfangle)),L.ring/2):1}function z(L,q){var H=q.pxmid[0],V=q.pxmid[1],te=L.width/2,ee=L.height/2;return H<0&&(te*=-1),V<0&&(ee*=-1),{scale:1,rCenter:1,rotate:0,x:te+Math.abs(ee)*(te>0?1:-1)/2,y:ee/(1+H*H/(V*V)),outside:!0}}function B(L,q){var H,V,te,ee=L.trace,U={x:L.cx,y:L.cy},Q={tx:0,ty:0};Q.ty+=ee.title.font.size,te=j(ee),ee.title.position.indexOf("top")!==-1?(U.y-=(1+te)*L.r,Q.ty-=L.titleBox.height):ee.title.position.indexOf("bottom")!==-1&&(U.y+=(1+te)*L.r);var Y,Z=L.r/((Y=L.trace.aspectratio)===void 0?1:Y),X=q.w*(ee.domain.x[1]-ee.domain.x[0])/2;return ee.title.position.indexOf("left")!==-1?(X+=Z,U.x-=(1+te)*Z,Q.tx+=L.titleBox.width/2):ee.title.position.indexOf("center")!==-1?X*=2:ee.title.position.indexOf("right")!==-1&&(X+=Z,U.x+=(1+te)*Z,Q.tx-=L.titleBox.width/2),H=X/L.titleBox.width,V=$(L,q)/L.titleBox.height,{x:U.x,y:U.y,scale:Math.min(H,V),tx:Q.tx,ty:Q.ty}}function $(L,q){var H=L.trace,V=q.h*(H.domain.y[1]-H.domain.y[0]);return Math.min(L.titleBox.height,V/2)}function j(L){var q,H=L.pull;if(!H)return 0;if(Array.isArray(H))for(H=0,q=0;qH&&(H=L.pull[q]);return H}function N(L,q){for(var H=[],V=0;V1?ye=(ce=le.r)/pe.aspectratio:ce=(ye=le.r)*pe.aspectratio,Me=(ce*=(1+pe.baseratio)/2)*ye}Se=Math.min(Se,Me/le.vTotal)}for(se=0;se")}if(ee){var Te=h.castOption(te,q.i,"texttemplate");if(Te){var Se=function(Me){return{label:Me.label,value:Me.v,valueLabel:_.formatPieValue(Me.v,V.separators),percent:Me.v/H.vTotal,percentLabel:_.formatPiePercent(Me.v/H.vTotal,V.separators),color:Me.color,text:Me.text,customdata:h.castOption(te,Me.i,"customdata")}}(q),Oe=_.getFirstFilled(te.text,q.pts);(k(Oe)||Oe==="")&&(Se.text=Oe),q.text=h.texttemplateString(Te,Se,L._fullLayout._d3locale,Se,te._meta||{})}else q.text=""}}function G(L,q){var H=L.rotate*Math.PI/180,V=Math.cos(H),te=Math.sin(H),ee=(q.left+q.right)/2,U=(q.top+q.bottom)/2;L.textX=ee*V-U*te,L.textY=ee*te+U*V,L.noCenter=!0}o.exports={plot:function(L,q){var H=L._context.staticPlot,V=L._fullLayout,te=V._size;b("pie",V),S(q,L),N(q,te);var ee=h.makeTraceGroups(V._pielayer,q,"trace").each(function(U){var Q=l.select(this),Y=U[0],Z=Y.trace;(function(X){var re,ie,le,se=X[0],pe=se.r,Te=se.trace,Se=_.getRotationAngle(Te.rotation),Oe=2*Math.PI/se.vTotal,Me="px0",ce="px1";if(Te.direction==="counterclockwise"){for(re=0;rese.vTotal/2?1:0,ie.halfangle=Math.PI*Math.min(ie.v/se.vTotal,.5),ie.ring=1-Te.hole,ie.rInscribed=A(ie,se))})(U),Q.attr("stroke-linejoin","round"),Q.each(function(){var X=l.select(this).selectAll("g.slice").data(U);X.enter().append("g").classed("slice",!0),X.exit().remove();var re=[[[],[]],[[],[]]],ie=!1;X.each(function(ce,ye){if(ce.hidden)l.select(this).selectAll("path,g").remove();else{ce.pointNumber=ce.i,ce.curveNumber=Z.index,re[ce.pxmid[1]<0?0:1][ce.pxmid[0]<0?0:1].push(ce);var J=Y.cx,ne=Y.cy,de=l.select(this),xe=de.selectAll("path.surface").data([ce]);if(xe.enter().append("path").classed("surface",!0).style({"pointer-events":H?"none":"all"}),de.call(T,L,U),Z.pull){var ue=+_.castOption(Z.pull,ce.pts)||0;ue>0&&(J+=ue*ce.pxmid[0],ne+=ue*ce.pxmid[1])}ce.cxFinal=J,ce.cyFinal=ne;var ge=Z.hole;if(ce.v===Y.vTotal){var be="M"+(J+ce.px0[0])+","+(ne+ce.px0[1])+De(ce.px0,ce.pxmid,!0,1)+De(ce.pxmid,ce.px0,!0,1)+"Z";ge?xe.attr("d","M"+(J+ge*ce.px0[0])+","+(ne+ge*ce.px0[1])+De(ce.px0,ce.pxmid,!1,ge)+De(ce.pxmid,ce.px0,!1,ge)+"Z"+be):xe.attr("d",be)}else{var we=De(ce.px0,ce.px1,!0,1);if(ge){var ke=1-ge;xe.attr("d","M"+(J+ge*ce.px1[0])+","+(ne+ge*ce.px1[1])+De(ce.px1,ce.px0,!1,ge)+"l"+ke*ce.px0[0]+","+ke*ce.px0[1]+we+"Z")}else xe.attr("d","M"+J+","+ne+"l"+ce.px0[0]+","+ce.px0[1]+we+"Z")}W(L,ce,Y);var Ae=_.castOption(Z.textposition,ce.pts),Ee=de.selectAll("g.slicetext").data(ce.text&&Ae!=="none"?[0]:[]);Ee.enter().append("g").classed("slicetext",!0),Ee.exit().remove(),Ee.each(function(){var Re=h.ensureSingle(l.select(this),"text","",function(ct){ct.attr("data-notex",1)}),Ie=h.ensureUniformFontSize(L,Ae==="outside"?function(ct,bt,ze){return{color:_.castOption(ct.outsidetextfont.color,bt.pts)||_.castOption(ct.textfont.color,bt.pts)||ze.color,family:_.castOption(ct.outsidetextfont.family,bt.pts)||_.castOption(ct.textfont.family,bt.pts)||ze.family,size:_.castOption(ct.outsidetextfont.size,bt.pts)||_.castOption(ct.textfont.size,bt.pts)||ze.size}}(Z,ce,V.font):M(Z,ce,V.font));Re.text(ce.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(d.font,Ie).call(y.convertToTspans,L);var Be,Ue=d.bBox(Re.node());if(Ae==="outside")Be=z(Ue,ce);else if(Be=C(Ue,ce,Y),Ae==="auto"&&Be.scale<1){var qe=h.ensureUniformFontSize(L,Z.outsidetextfont);Re.call(d.font,qe),Be=z(Ue=d.bBox(Re.node()),ce)}var Ye=Be.textPosAngle,at=Ye===void 0?ce.pxmid:E(Y.r,Ye);if(Be.targetX=J+at[0]*Be.rCenter+(Be.x||0),Be.targetY=ne+at[1]*Be.rCenter+(Be.y||0),G(Be,Ue),Be.outside){var lt=Be.targetY;ce.yLabelMin=lt-Ue.height/2,ce.yLabelMid=lt,ce.yLabelMax=lt+Ue.height/2,ce.labelExtraX=0,ce.labelExtraY=0,ie=!0}Be.fontSize=Ie.size,g(Z.type,Be,V),U[ye].transform=Be,h.setTransormAndDisplay(Re,Be)})}function De(Re,Ie,Be,Ue){var qe=Ue*(Ie[0]-Re[0]),Ye=Ue*(Ie[1]-Re[1]);return"a"+Ue*Y.r+","+Ue*Y.r+" 0 "+ce.largeArc+(Be?" 1 ":" 0 ")+qe+","+Ye}});var le=l.select(this).selectAll("g.titletext").data(Z.title.text?[0]:[]);if(le.enter().append("g").classed("titletext",!0),le.exit().remove(),le.each(function(){var ce,ye=h.ensureSingle(l.select(this),"text","",function(ne){ne.attr("data-notex",1)}),J=Z.title.text;Z._meta&&(J=h.templateString(J,Z._meta)),ye.text(J).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(d.font,Z.title.font).call(y.convertToTspans,L),ce=Z.title.position==="middle center"?function(ne){var de=Math.sqrt(ne.titleBox.width*ne.titleBox.width+ne.titleBox.height*ne.titleBox.height);return{x:ne.cx,y:ne.cy,scale:ne.trace.hole*ne.r*2/de,tx:0,ty:-ne.titleBox.height/2+ne.trace.title.font.size}}(Y):B(Y,te),ye.attr("transform",m(ce.x,ce.y)+p(Math.min(1,ce.scale))+m(ce.tx,ce.ty))}),ie&&function(ce,ye){var J,ne,de,xe,ue,ge,be,we,ke,Ae,Ee,De,Re;function Ie(Ye,at){return Ye.pxmid[1]-at.pxmid[1]}function Be(Ye,at){return at.pxmid[1]-Ye.pxmid[1]}function Ue(Ye,at){at||(at={});var lt,ct,bt,ze,Ne=at.labelExtraY+(ne?at.yLabelMax:at.yLabelMin),Qe=ne?Ye.yLabelMin:Ye.yLabelMax,it=ne?Ye.yLabelMax:Ye.yLabelMin,kt=Ye.cyFinal+ue(Ye.px0[1],Ye.px1[1]),Je=Ne-Qe;if(Je*be>0&&(Ye.labelExtraY=Je),Array.isArray(ye.pull))for(ct=0;ct=(_.castOption(ye.pull,bt.pts)||0)||((Ye.pxmid[1]-bt.pxmid[1])*be>0?(Je=bt.cyFinal+ue(bt.px0[1],bt.px1[1])-Qe-Ye.labelExtraY)*be>0&&(Ye.labelExtraY+=Je):(it+Ye.labelExtraY-kt)*be>0&&(lt=3*ge*Math.abs(ct-Ae.indexOf(Ye)),(ze=bt.cxFinal+xe(bt.px0[0],bt.px1[0])+lt-(Ye.cxFinal+Ye.pxmid[0])-Ye.labelExtraX)*ge>0&&(Ye.labelExtraX+=ze)))}for(ne=0;ne<2;ne++)for(de=ne?Ie:Be,ue=ne?Math.max:Math.min,be=ne?1:-1,J=0;J<2;J++){for(xe=J?Math.max:Math.min,ge=J?1:-1,(we=ce[ne][J]).sort(de),ke=ce[1-ne][J],Ae=ke.concat(we),De=[],Ee=0;EeMath.abs(we)?ue+="l"+we*J.pxmid[0]/J.pxmid[1]+","+we+"H"+(xe+J.labelExtraX+ge):ue+="l"+J.labelExtraX+","+be+"v"+(we-be)+"h"+ge}else ue+="V"+(J.yLabelMid+J.labelExtraY)+"h"+ge;h.ensureSingle(ne,"path","textline").call(c.stroke,ye.outsidetextfont.color).attr({"stroke-width":Math.min(2,ye.outsidetextfont.size/8),d:ue,fill:"none"})}else ne.select("path.textline").remove()})}(X,Z),ie&&Z.automargin){var se=d.bBox(Q.node()),pe=Z.domain,Te=te.w*(pe.x[1]-pe.x[0]),Se=te.h*(pe.y[1]-pe.y[0]),Oe=(.5*Te-Y.r)/te.w,Me=(.5*Se-Y.r)/te.h;f.autoMargin(L,"pie."+Z.uid+".automargin",{xl:pe.x[0]-Oe,xr:pe.x[1]+Oe,yb:pe.y[0]-Me,yt:pe.y[1]+Me,l:Math.max(Y.cx-Y.r-se.left,0),r:Math.max(se.right-(Y.cx+Y.r),0),b:Math.max(se.bottom-(Y.cy+Y.r),0),t:Math.max(Y.cy-Y.r-se.top,0),pad:5})}})});setTimeout(function(){ee.selectAll("tspan").each(function(){var U=l.select(this);U.attr("dy")&&U.attr("dy",U.attr("dy"))})},0)},formatSliceLabel:W,transformInsideText:C,determineInsideTextFont:M,positionTitleOutside:B,prerenderTitles:S,layoutAreas:N,attachFxHandlers:T,computeTransform:G}},68357:function(o,a,n){var l=n(39898),f=n(63463),s=n(72597).resizeText;o.exports=function(c){var d=c._fullLayout._pielayer.selectAll(".trace");s(c,d,"pie"),d.each(function(h){var p=h[0].trace,m=l.select(this);m.style({opacity:p.opacity}),m.selectAll("path.surface").each(function(y){l.select(this).call(f,y,p,c)})})}},63463:function(o,a,n){var l=n(7901),f=n(53581).castOption,s=n(22209);o.exports=function(c,d,h,p){var m=h.marker.line,y=f(m.color,d.pts)||l.defaultLine,v=f(m.width,d.pts)||0;c.call(s,d,h,p).style("stroke-width",v).call(l.stroke,y)}},75225:function(o,a,n){var l=n(71828);o.exports=function(f,s){for(var c=0;cM&&W[C].gap;)C--;for(D=W[C].s,S=W.length-1;S>C;S--)W[S].s=D;for(;MB[b]&&b=0;b--){var x=c[b];if(x.type==="scatter"&&x.xaxis===v.xaxis&&x.yaxis===v.yaxis){x.opacity=void 0;break}}}}}},17438:function(o,a,n){var l=n(71828),f=n(73972),s=n(82196),c=n(47581),d=n(34098),h=n(67513),p=n(73927),m=n(565),y=n(49508),v=n(11058),g=n(94039),b=n(82410),x=n(28908),_=n(71828).coercePattern;o.exports=function(w,k,T,M){function S(z,B){return l.coerce(w,k,s,z,B)}var C=h(w,k,M,S);if(C||(k.visible=!1),k.visible){p(w,k,M,S),S("xhoverformat"),S("yhoverformat");var P=m(w,k,M,S);M.scattermode==="group"&&k.orientation===void 0&&S("orientation","v");var D=!P&&C=Math.min(Te,Se)&&w<=Math.max(Te,Se)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Me=1-1/Oe,ce=Math.abs(x.c2p(pe.x)-w);return ce=Math.min(Te,Se)&&k<=Math.max(Te,Se)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Me=1-1/Oe,ce=Math.abs(_.c2p(pe.y)-k);return cele!=(ee=L[W][1])>=le&&(H=L[W-1][0],V=L[W][0],ee-te&&(q=H+(V-H)*(le-te)/(ee-te),Z=Math.min(Z,q),X=Math.max(X,q)));Z=Math.max(Z,0),X=Math.min(X,x._length);var se=d.defaultLine;return d.opacity(b.fillcolor)?se=b.fillcolor:d.opacity((b.line||{}).color)&&(se=b.line.color),l.extendFlat(p,{distance:p.maxHoverDistance,x0:Z,x1:X,y0:le,y1:le,color:se,hovertemplate:!1}),delete p.index,b.text&&!Array.isArray(b.text)?p.text=String(b.text):p.text=b.name,[p]}}}},67368:function(o,a,n){var l=n(34098);o.exports={hasLines:l.hasLines,hasMarkers:l.hasMarkers,hasText:l.hasText,isBubble:l.isBubble,attributes:n(82196),layoutAttributes:n(21479),supplyDefaults:n(17438),crossTraceDefaults:n(34936),supplyLayoutDefaults:n(79334),calc:n(47761).calc,crossTraceCalc:n(72626),arraysToCalcdata:n(75225),plot:n(32663),colorbar:n(4898),formatLabels:n(8225),style:n(16296).style,styleOnSelect:n(16296).styleOnSelect,hoverPoints:n(33720),selectPoints:n(98002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:n(93612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},21479:function(o){o.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},79334:function(o,a,n){var l=n(71828),f=n(21479);o.exports=function(s,c){var d,h=c.barmode==="group";c.scattermode==="group"&&(d=h?c.bargap:.2,l.coerce(s,c,f,"scattergap",d))}},11058:function(o,a,n){var l=n(71828).isArrayOrTypedArray,f=n(52075).hasColorscale,s=n(1586);o.exports=function(c,d,h,p,m,y){y||(y={});var v=(c.marker||{}).color;m("line.color",h),f(c,"line")?s(c,d,p,m,{prefix:"line.",cLetter:"c"}):m("line.color",!l(v)&&v||h),m("line.width"),y.noDash||m("line.dash"),y.backoff&&m("line.backoff")}},34621:function(o,a,n){var l=n(91424),f=n(50606),s=f.BADNUM,c=f.LOG_CLIP,d=c+.5,h=c-.5,p=n(71828),m=p.segmentsIntersect,y=p.constrain,v=n(47581);o.exports=function(g,b){var x,_,w,k,T,M,S,C,P,D,O,R,F,A,z,B,$,j,N=b.trace||{},E=b.xaxis,W=b.yaxis,G=E.type==="log",L=W.type==="log",q=E._length,H=W._length,V=b.backoff,te=N.marker,ee=b.connectGaps,U=b.baseTolerance,Q=b.shape,Y=Q==="linear",Z=N.fill&&N.fill!=="none",X=[],re=v.minTolerance,ie=g.length,le=new Array(ie),se=0;function pe(Je){var ut=g[Je];if(!ut)return!1;var pt=b.linearized?E.l2p(ut.x):E.c2p(ut.x),It=b.linearized?W.l2p(ut.y):W.c2p(ut.y);if(pt===s){if(G&&(pt=E.c2p(ut.x,!0)),pt===s)return!1;L&&It===s&&(pt*=Math.abs(E._m*H*(E._m>0?d:h)/(W._m*q*(W._m>0?d:h)))),pt*=1e3}if(It===s){if(L&&(It=W.c2p(ut.y,!0)),It===s)return!1;It*=1e3}return[pt,It]}function Te(Je,ut,pt,It){var Mt=pt-Je,zt=It-ut,wt=.5-Je,ve=.5-ut,_e=Mt*Mt+zt*zt,Ve=Mt*wt+zt*ve;if(Ve>0&&Ve<_e){var We=wt*zt-ve*Mt;if(We*We<_e)return!0}}function Se(Je,ut){var pt=Je[0]/q,It=Je[1]/H,Mt=Math.max(0,-pt,pt-1,-It,It-1);return Mt&&$!==void 0&&Te(pt,It,$,j)&&(Mt=0),Mt&&ut&&Te(pt,It,ut[0]/q,ut[1]/H)&&(Mt=0),(1+v.toleranceGrowth*Mt)*U}function Oe(Je,ut){var pt=Je[0]-ut[0],It=Je[1]-ut[1];return Math.sqrt(pt*pt+It*It)}var Me,ce,ye,J,ne,de,xe,ue=v.maxScreensAway,ge=-q*ue,be=q*(1+ue),we=-H*ue,ke=H*(1+ue),Ae=[[ge,we,be,we],[be,we,be,ke],[be,ke,ge,ke],[ge,ke,ge,we]];function Ee(Je){if(Je[0]be||Je[1]ke)return[y(Je[0],ge,be),y(Je[1],we,ke)]}function De(Je,ut){return Je[0]===ut[0]&&(Je[0]===ge||Je[0]===be)||Je[1]===ut[1]&&(Je[1]===we||Je[1]===ke)||void 0}function Re(Je,ut,pt){return function(It,Mt){var zt=Ee(It),wt=Ee(Mt),ve=[];if(zt&&wt&&De(zt,wt))return ve;zt&&ve.push(zt),wt&&ve.push(wt);var _e=2*p.constrain((It[Je]+Mt[Je])/2,ut,pt)-((zt||It)[Je]+(wt||Mt)[Je]);return _e&&((zt&&wt?_e>0==zt[Je]>wt[Je]?zt:wt:zt||wt)[Je]+=_e),ve}}function Ie(Je){var ut=Je[0],pt=Je[1],It=ut===le[se-1][0],Mt=pt===le[se-1][1];if(!It||!Mt)if(se>1){var zt=ut===le[se-2][0],wt=pt===le[se-2][1];It&&(ut===ge||ut===be)&&zt?wt?se--:le[se-1]=Je:Mt&&(pt===we||pt===ke)&&wt?zt?se--:le[se-1]=Je:le[se++]=Je}else le[se++]=Je}function Be(Je){le[se-1][0]!==Je[0]&&le[se-1][1]!==Je[1]&&Ie([ye,J]),Ie(Je),ne=null,ye=J=0}Q==="linear"||Q==="spline"?xe=function(Je,ut){for(var pt=[],It=0,Mt=0;Mt<4;Mt++){var zt=Ae[Mt],wt=m(Je[0],Je[1],ut[0],ut[1],zt[0],zt[1],zt[2],zt[3]);wt&&(!It||Math.abs(wt.x-pt[0][0])>1||Math.abs(wt.y-pt[0][1])>1)&&(wt=[wt.x,wt.y],It&&Oe(wt,Je)be?be:0,ce=Je[1]ke?ke:0,Me||ce){if(se)if(ne){var ut=xe(ne,Je);ut.length>1&&(Be(ut[0]),le[se++]=ut[1])}else de=xe(le[se-1],Je)[0],le[se++]=de;else le[se++]=[Me||Je[0],ce||Je[1]];var pt=le[se-1];Me&&ce&&(pt[0]!==Me||pt[1]!==ce)?(ne&&(ye!==Me&&J!==ce?Ie(ye&&J?(It=ne,zt=(Mt=Je)[0]-It[0],wt=(Mt[1]-It[1])/zt,(It[1]*Mt[0]-Mt[1]*It[0])/zt>0?[wt>0?ge:be,ke]:[wt>0?be:ge,we]):[ye||Me,J||ce]):ye&&J&&Ie([ye,J])),Ie([Me,ce])):ye-Me&&J-ce&&Ie([Me||ye,ce||J]),ne=Je,ye=Me,J=ce}else ne&&Be(xe(ne,Je)[0]),le[se++]=Je;var It,Mt,zt,wt}for(x=0;xSe(M,Ye))break;w=M,(F=P[0]*C[0]+P[1]*C[1])>O?(O=F,k=M,S=!1):F=g.length||!M)break;qe(M),_=M}}else qe(k)}ne&&Ie([ye||ne[0],J||ne[1]]),X.push(le.slice(0,se))}var at=Q.slice(Q.length-1);if(V&&at!=="h"&&at!=="v"){for(var lt=!1,ct=-1,bt=[],ze=0;ze=0?p=b:(p=b=g,g++),p0?Math.max(y,h):0}}},4898:function(o){o.exports={container:"marker",min:"cmin",max:"cmax"}},49508:function(o,a,n){var l=n(7901),f=n(52075).hasColorscale,s=n(1586),c=n(34098);o.exports=function(d,h,p,m,y,v){var g=c.isBubble(d),b=(d.line||{}).color;v=v||{},b&&(p=b),y("marker.symbol"),y("marker.opacity",g?.7:1),y("marker.size"),v.noAngle||(y("marker.angle"),v.noAngleRef||y("marker.angleref"),v.noStandOff||y("marker.standoff")),y("marker.color",p),f(d,"marker")&&s(d,h,m,y,{prefix:"marker.",cLetter:"c"}),v.noSelect||(y("selected.marker.color"),y("unselected.marker.color"),y("selected.marker.size"),y("unselected.marker.size")),v.noLine||(y("marker.line.color",b&&!Array.isArray(b)&&h.marker.color!==b?b:g?l.background:l.defaultLine),f(d,"marker.line")&&s(d,h,m,y,{prefix:"marker.line.",cLetter:"c"}),y("marker.line.width",g?1:0)),g&&(y("marker.sizeref"),y("marker.sizemin"),y("marker.sizemode")),v.gradient&&y("marker.gradient.type")!=="none"&&y("marker.gradient.color")}},73927:function(o,a,n){var l=n(71828).dateTick0,f=n(50606).ONEWEEK;function s(c,d){return l(d,c%f==0?1:0)}o.exports=function(c,d,h,p,m){if(m||(m={x:!0,y:!0}),m.x){var y=p("xperiod");y&&(p("xperiod0",s(y,d.xcalendar)),p("xperiodalignment"))}if(m.y){var v=p("yperiod");v&&(p("yperiod0",s(v,d.ycalendar)),p("yperiodalignment"))}}},32663:function(o,a,n){var l=n(39898),f=n(73972),s=n(71828),c=s.ensureSingle,d=s.identity,h=n(91424),p=n(34098),m=n(34621),y=n(68687),v=n(61082).tester;function g(b,x,_,w,k,T,M){var S,C=b._context.staticPlot;(function(xe,ue,ge,be,we){var ke=ge.xaxis,Ae=ge.yaxis,Ee=l.extent(s.simpleMap(ke.range,ke.r2c)),De=l.extent(s.simpleMap(Ae.range,Ae.r2c)),Re=be[0].trace;if(p.hasMarkers(Re)){var Ie=Re.marker.maxdisplayed;if(Ie!==0){var Be=be.filter(function(at){return at.x>=Ee[0]&&at.x<=Ee[1]&&at.y>=De[0]&&at.y<=De[1]}),Ue=Math.ceil(Be.length/Ie),qe=0;we.forEach(function(at,lt){var ct=at[0].trace;p.hasMarkers(ct)&&ct.marker.maxdisplayed>0&<0;function D(xe){return P?xe.transition():xe}var O=_.xaxis,R=_.yaxis,F=w[0].trace,A=F.line,z=l.select(T),B=c(z,"g","errorbars"),$=c(z,"g","lines"),j=c(z,"g","points"),N=c(z,"g","text");if(f.getComponentMethod("errorbars","plot")(b,B,_,M),F.visible===!0){var E,W;D(z).style("opacity",F.opacity);var G=F.fill.charAt(F.fill.length-1);G!=="x"&&G!=="y"&&(G=""),w[0][_.isRangePlot?"nodeRangePlot3":"node3"]=z;var L,q,H="",V=[],te=F._prevtrace;te&&(H=te._prevRevpath||"",W=te._nextFill,V=te._polygons);var ee,U,Q,Y,Z,X,re,ie="",le="",se=[],pe=s.noop;if(E=F._ownFill,p.hasLines(F)||F.fill!=="none"){for(W&&W.datum(w),["hv","vh","hvh","vhv"].indexOf(A.shape)!==-1?(ee=h.steps(A.shape),U=h.steps(A.shape.split("").reverse().join(""))):ee=U=A.shape==="spline"?function(xe){var ue=xe[xe.length-1];return xe.length>1&&xe[0][0]===ue[0]&&xe[0][1]===ue[1]?h.smoothclosed(xe.slice(1),A.smoothing):h.smoothopen(xe,A.smoothing)}:function(xe){return"M"+xe.join("L")},Q=function(xe){return U(xe.reverse())},se=m(w,{xaxis:O,yaxis:R,trace:F,connectGaps:F.connectgaps,baseTolerance:Math.max(A.width||1,3)/4,shape:A.shape,backoff:A.backoff,simplify:A.simplify,fill:F.fill}),re=F._polygons=new Array(se.length),S=0;S0,D=y(b,x,_);(M=w.selectAll("g.trace").data(D,function(O){return O[0].trace.uid})).enter().append("g").attr("class",function(O){return"trace scatter trace"+O[0].trace.uid}).style("stroke-miterlimit",2),M.order(),function(O,R,F){R.each(function(A){var z=c(l.select(this),"g","fills");h.setClipUrl(z,F.layerClipId,O);var B=A[0].trace,$=[];B._ownfill&&$.push("_ownFill"),B._nexttrace&&$.push("_nextFill");var j=z.selectAll("g").data($,d);j.enter().append("g"),j.exit().each(function(N){B[N]=null}).remove(),j.order().each(function(N){B[N]=c(l.select(this),"path","js-fill")})})}(b,M,x),P?(T&&(S=T()),l.transition().duration(k.duration).ease(k.easing).each("end",function(){S&&S()}).each("interrupt",function(){S&&S()}).each(function(){w.selectAll("g.trace").each(function(O,R){g(b,R,x,O,D,this,k)})})):M.each(function(O,R){g(b,R,x,O,D,this,k)}),C&&M.exit().remove(),w.selectAll("path:not([d])").remove()}},98002:function(o,a,n){var l=n(34098);o.exports=function(f,s){var c,d,h,p,m=f.cd,y=f.xaxis,v=f.yaxis,g=[],b=m[0].trace;if(!l.hasMarkers(b)&&!l.hasText(b))return[];if(s===!1)for(c=0;c"),p.hovertemplate=x.hovertemplate,h}function C(P,D){M.push(P._hovertitle+": "+D)}}},52979:function(o,a,n){o.exports={attributes:n(50413),supplyDefaults:n(46008),colorbar:n(4898),formatLabels:n(93645),calc:n(54337),plot:n(7507),style:n(16296).style,styleOnSelect:n(16296).styleOnSelect,hoverPoints:n(47250),selectPoints:n(98002),eventData:n(4524),moduleType:"trace",name:"scatterternary",basePlotModule:n(61639),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},7507:function(o,a,n){var l=n(32663);o.exports=function(f,s,c){var d=s.plotContainer;d.select(".scatterlayer").selectAll("*").remove();for(var h=s.xaxis,p=s.yaxis,m={xaxis:h,yaxis:p,plot:d,layerClipId:s._hasClipOnAxisFalse?s.clipIdRelative:null},y=s.layers.frontplot.select("g.scatterlayer"),v=0;v0){var P,D,O,R,F,A=h.xa,z=h.ya;w.orientation==="h"?(F=p,P="y",O=z,D="x",R=A):(F=m,P="x",O=A,D="y",R=z);var B=_[h.index];if(F>=B.span[0]&&F<=B.span[1]){var $=f.extendFlat({},h),j=R.c2p(F,!0),N=d.getKdeValue(B,w,F),E=d.getPositionOnKdePath(B,w,j),W=O._offset,G=O._length;$[P+"0"]=E[0],$[P+"1"]=E[1],$[D+"0"]=$[D+"1"]=j,$[D+"Label"]=D+": "+s.hoverLabelText(R,F,w[D+"hoverformat"])+", "+_[0].t.labels.kde+" "+N.toFixed(3);for(var L=0,q=0;qj&&(j=G,N=W)}}return j?A(N):d};case"rms":return function(z,B){for(var $=0,j=0,N=0;N":return function(V){return H(V)>L};case">=":return function(V){return H(V)>=L};case"[]":return function(V){var te=H(V);return te>=L[0]&&te<=L[1]};case"()":return function(V){var te=H(V);return te>L[0]&&te=L[0]&&teL[0]&&te<=L[1]};case"][":return function(V){var te=H(V);return te<=L[0]||te>=L[1]};case")(":return function(V){var te=H(V);return teL[1]};case"](":return function(V){var te=H(V);return te<=L[0]||te>L[1]};case")[":return function(V){var te=H(V);return te=L[1]};case"{}":return function(V){return L.indexOf(H(V))!==-1};case"}{":return function(V){return L.indexOf(H(V))===-1}}}(g,s.getDataToCoordFunc(y,v,x,b),w),D={},O={},R=0;T?(S=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set(new Array(_))},C=function(B,$){var j=D[B.astr][$];B.get()[$]=j}):(S=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set([])},C=function(B,$){var j=D[B.astr][$];B.get().push(j)}),z(S);for(var F=c(v.transforms,g),A=0;A<_;A++)P(b[A])?(z(C,A),O[R++]=F(A)):T&&R++;g._indexToPoints=O,v._length=R}}function z(B,$){for(var j=0;j1?"%{group} (%{trace})":"%{group}");var b=h.styles,x=v.styles=[];if(b)for(y=0;yy)throw new RangeError('The value "'+J+'" is invalid for option "size"');var ne=new Uint8Array(J);return Object.setPrototypeOf(ne,g.prototype),ne}function g(J,ne,de){if(typeof J=="number"){if(typeof ne=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(J)}return b(J,ne,de)}function b(J,ne,de){if(typeof J=="string")return function(ge,be){if(typeof be=="string"&&be!==""||(be="utf8"),!g.isEncoding(be))throw new TypeError("Unknown encoding: "+be);var we=0|M(ge,be),ke=v(we),Ae=ke.write(ge,be);return Ae!==we&&(ke=ke.slice(0,Ae)),ke}(J,ne);if(ArrayBuffer.isView(J))return function(ge){if(Se(ge,Uint8Array)){var be=new Uint8Array(ge);return k(be.buffer,be.byteOffset,be.byteLength)}return w(ge)}(J);if(J==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+d(J));if(Se(J,ArrayBuffer)||J&&Se(J.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(J,SharedArrayBuffer)||J&&Se(J.buffer,SharedArrayBuffer)))return k(J,ne,de);if(typeof J=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var xe=J.valueOf&&J.valueOf();if(xe!=null&&xe!==J)return g.from(xe,ne,de);var ue=function(ge){if(g.isBuffer(ge)){var be=0|T(ge.length),we=v(be);return we.length===0||ge.copy(we,0,0,be),we}return ge.length!==void 0?typeof ge.length!="number"||Oe(ge.length)?v(0):w(ge):ge.type==="Buffer"&&Array.isArray(ge.data)?w(ge.data):void 0}(J);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof J[Symbol.toPrimitive]=="function")return g.from(J[Symbol.toPrimitive]("string"),ne,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+d(J))}function x(J){if(typeof J!="number")throw new TypeError('"size" argument must be of type number');if(J<0)throw new RangeError('The value "'+J+'" is invalid for option "size"')}function _(J){return x(J),v(J<0?0:0|T(J))}function w(J){for(var ne=J.length<0?0:0|T(J.length),de=v(ne),xe=0;xe=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return 0|J}function M(J,ne){if(g.isBuffer(J))return J.length;if(ArrayBuffer.isView(J)||Se(J,ArrayBuffer))return J.byteLength;if(typeof J!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+d(J));var de=J.length,xe=arguments.length>2&&arguments[2]===!0;if(!xe&&de===0)return 0;for(var ue=!1;;)switch(ne){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return se(J).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*de;case"hex":return de>>>1;case"base64":return pe(J).length;default:if(ue)return xe?-1:se(J).length;ne=(""+ne).toLowerCase(),ue=!0}}function S(J,ne,de){var xe=!1;if((ne===void 0||ne<0)&&(ne=0),ne>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0)<=(ne>>>=0))return"";for(J||(J="utf8");;)switch(J){case"hex":return W(this,ne,de);case"utf8":case"utf-8":return $(this,ne,de);case"ascii":return N(this,ne,de);case"latin1":case"binary":return E(this,ne,de);case"base64":return B(this,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,ne,de);default:if(xe)throw new TypeError("Unknown encoding: "+J);J=(J+"").toLowerCase(),xe=!0}}function C(J,ne,de){var xe=J[ne];J[ne]=J[de],J[de]=xe}function P(J,ne,de,xe,ue){if(J.length===0)return-1;if(typeof de=="string"?(xe=de,de=0):de>2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),Oe(de=+de)&&(de=ue?0:J.length-1),de<0&&(de=J.length+de),de>=J.length){if(ue)return-1;de=J.length-1}else if(de<0){if(!ue)return-1;de=0}if(typeof ne=="string"&&(ne=g.from(ne,xe)),g.isBuffer(ne))return ne.length===0?-1:D(J,ne,de,xe,ue);if(typeof ne=="number")return ne&=255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(J,ne,de):Uint8Array.prototype.lastIndexOf.call(J,ne,de):D(J,[ne],de,xe,ue);throw new TypeError("val must be string, number or Buffer")}function D(J,ne,de,xe,ue){var ge,be=1,we=J.length,ke=ne.length;if(xe!==void 0&&((xe=String(xe).toLowerCase())==="ucs2"||xe==="ucs-2"||xe==="utf16le"||xe==="utf-16le")){if(J.length<2||ne.length<2)return-1;be=2,we/=2,ke/=2,de/=2}function Ae(Ie,Be){return be===1?Ie[Be]:Ie.readUInt16BE(Be*be)}if(ue){var Ee=-1;for(ge=de;gewe&&(de=we-ke),ge=de;ge>=0;ge--){for(var De=!0,Re=0;Reue&&(xe=ue):xe=ue;var ge,be=ne.length;for(xe>be/2&&(xe=be/2),ge=0;ge>8,ke=be%256,Ae.push(ke),Ae.push(we);return Ae}(ne,J.length-de),J,de,xe)}function B(J,ne,de){return ne===0&&de===J.length?h.fromByteArray(J):h.fromByteArray(J.slice(ne,de))}function $(J,ne,de){de=Math.min(J.length,de);for(var xe=[],ue=ne;ue239?4:ge>223?3:ge>191?2:1;if(ue+we<=de){var ke=void 0,Ae=void 0,Ee=void 0,De=void 0;switch(we){case 1:ge<128&&(be=ge);break;case 2:(192&(ke=J[ue+1]))==128&&(De=(31&ge)<<6|63&ke)>127&&(be=De);break;case 3:ke=J[ue+1],Ae=J[ue+2],(192&ke)==128&&(192&Ae)==128&&(De=(15&ge)<<12|(63&ke)<<6|63&Ae)>2047&&(De<55296||De>57343)&&(be=De);break;case 4:ke=J[ue+1],Ae=J[ue+2],Ee=J[ue+3],(192&ke)==128&&(192&Ae)==128&&(192&Ee)==128&&(De=(15&ge)<<18|(63&ke)<<12|(63&Ae)<<6|63&Ee)>65535&&De<1114112&&(be=De)}}be===null?(be=65533,we=1):be>65535&&(be-=65536,xe.push(be>>>10&1023|55296),be=56320|1023&be),xe.push(be),ue+=we}return function(Re){var Ie=Re.length;if(Ie<=j)return String.fromCharCode.apply(String,Re);for(var Be="",Ue=0;Ue"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}}),g.poolSize=8192,g.from=function(J,ne,de){return b(J,ne,de)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array),g.alloc=function(J,ne,de){return function(xe,ue,ge){return x(xe),xe<=0?v(xe):ue!==void 0?typeof ge=="string"?v(xe).fill(ue,ge):v(xe).fill(ue):v(xe)}(J,ne,de)},g.allocUnsafe=function(J){return _(J)},g.allocUnsafeSlow=function(J){return _(J)},g.isBuffer=function(J){return J!=null&&J._isBuffer===!0&&J!==g.prototype},g.compare=function(J,ne){if(Se(J,Uint8Array)&&(J=g.from(J,J.offset,J.byteLength)),Se(ne,Uint8Array)&&(ne=g.from(ne,ne.offset,ne.byteLength)),!g.isBuffer(J)||!g.isBuffer(ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(J===ne)return 0;for(var de=J.length,xe=ne.length,ue=0,ge=Math.min(de,xe);uexe.length?(g.isBuffer(ge)||(ge=g.from(ge)),ge.copy(xe,ue)):Uint8Array.prototype.set.call(xe,ge,ue);else{if(!g.isBuffer(ge))throw new TypeError('"list" argument must be an Array of Buffers');ge.copy(xe,ue)}ue+=ge.length}return xe},g.byteLength=M,g.prototype._isBuffer=!0,g.prototype.swap16=function(){var J=this.length;if(J%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(J+=" ... "),""},m&&(g.prototype[m]=g.prototype.inspect),g.prototype.compare=function(J,ne,de,xe,ue){if(Se(J,Uint8Array)&&(J=g.from(J,J.offset,J.byteLength)),!g.isBuffer(J))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+d(J));if(ne===void 0&&(ne=0),de===void 0&&(de=J?J.length:0),xe===void 0&&(xe=0),ue===void 0&&(ue=this.length),ne<0||de>J.length||xe<0||ue>this.length)throw new RangeError("out of range index");if(xe>=ue&&ne>=de)return 0;if(xe>=ue)return-1;if(ne>=de)return 1;if(this===J)return 0;for(var ge=(ue>>>=0)-(xe>>>=0),be=(de>>>=0)-(ne>>>=0),we=Math.min(ge,be),ke=this.slice(xe,ue),Ae=J.slice(ne,de),Ee=0;Ee>>=0,isFinite(de)?(de>>>=0,xe===void 0&&(xe="utf8")):(xe=de,de=void 0)}var ue=this.length-ne;if((de===void 0||de>ue)&&(de=ue),J.length>0&&(de<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");xe||(xe="utf8");for(var ge=!1;;)switch(xe){case"hex":return O(this,J,ne,de);case"utf8":case"utf-8":return R(this,J,ne,de);case"ascii":case"latin1":case"binary":return F(this,J,ne,de);case"base64":return A(this,J,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,J,ne,de);default:if(ge)throw new TypeError("Unknown encoding: "+xe);xe=(""+xe).toLowerCase(),ge=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function N(J,ne,de){var xe="";de=Math.min(J.length,de);for(var ue=ne;uexe)&&(de=xe);for(var ue="",ge=ne;gede)throw new RangeError("Trying to access beyond buffer length")}function q(J,ne,de,xe,ue,ge){if(!g.isBuffer(J))throw new TypeError('"buffer" argument must be a Buffer instance');if(ne>ue||neJ.length)throw new RangeError("Index out of range")}function H(J,ne,de,xe,ue){X(ne,xe,ue,J,de,7);var ge=Number(ne&BigInt(4294967295));J[de++]=ge,ge>>=8,J[de++]=ge,ge>>=8,J[de++]=ge,ge>>=8,J[de++]=ge;var be=Number(ne>>BigInt(32)&BigInt(4294967295));return J[de++]=be,be>>=8,J[de++]=be,be>>=8,J[de++]=be,be>>=8,J[de++]=be,de}function V(J,ne,de,xe,ue){X(ne,xe,ue,J,de,7);var ge=Number(ne&BigInt(4294967295));J[de+7]=ge,ge>>=8,J[de+6]=ge,ge>>=8,J[de+5]=ge,ge>>=8,J[de+4]=ge;var be=Number(ne>>BigInt(32)&BigInt(4294967295));return J[de+3]=be,be>>=8,J[de+2]=be,be>>=8,J[de+1]=be,be>>=8,J[de]=be,de+8}function te(J,ne,de,xe,ue,ge){if(de+xe>J.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function ee(J,ne,de,xe,ue){return ne=+ne,de>>>=0,ue||te(J,0,de,4),p.write(J,ne,de,xe,23,4),de+4}function U(J,ne,de,xe,ue){return ne=+ne,de>>>=0,ue||te(J,0,de,8),p.write(J,ne,de,xe,52,8),de+8}g.prototype.slice=function(J,ne){var de=this.length;(J=~~J)<0?(J+=de)<0&&(J=0):J>de&&(J=de),(ne=ne===void 0?de:~~ne)<0?(ne+=de)<0&&(ne=0):ne>de&&(ne=de),ne>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J],ue=1,ge=0;++ge>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J+--ne],ue=1;ne>0&&(ue*=256);)xe+=this[J+--ne]*ue;return xe},g.prototype.readUint8=g.prototype.readUInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),this[J]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]|this[J+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]<<8|this[J+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+16777216*this[J+3]},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),16777216*this[J]+(this[J+1]<<16|this[J+2]<<8|this[J+3])},g.prototype.readBigUInt64LE=ce(function(J){re(J>>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=ne+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,24),ue=this[++J]+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+de*Math.pow(2,24);return BigInt(xe)+(BigInt(ue)<>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=ne*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J],ue=this[++J]*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+de;return(BigInt(xe)<>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J],ue=1,ge=0;++ge=(ue*=128)&&(xe-=Math.pow(2,8*ne)),xe},g.prototype.readIntBE=function(J,ne,de){J>>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=ne,ue=1,ge=this[J+--xe];xe>0&&(ue*=256);)ge+=this[J+--xe]*ue;return ge>=(ue*=128)&&(ge-=Math.pow(2,8*ne)),ge},g.prototype.readInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),128&this[J]?-1*(255-this[J]+1):this[J]},g.prototype.readInt16LE=function(J,ne){J>>>=0,ne||L(J,2,this.length);var de=this[J]|this[J+1]<<8;return 32768&de?4294901760|de:de},g.prototype.readInt16BE=function(J,ne){J>>>=0,ne||L(J,2,this.length);var de=this[J+1]|this[J]<<8;return 32768&de?4294901760|de:de},g.prototype.readInt32LE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},g.prototype.readInt32BE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},g.prototype.readBigInt64LE=ce(function(J){re(J>>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=this[J+4]+this[J+5]*Math.pow(2,8)+this[J+6]*Math.pow(2,16)+(de<<24);return(BigInt(xe)<>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=(ne<<24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J];return(BigInt(xe)<>>=0,ne||L(J,4,this.length),p.read(this,J,!0,23,4)},g.prototype.readFloatBE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),p.read(this,J,!1,23,4)},g.prototype.readDoubleLE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!0,52,8)},g.prototype.readDoubleBE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!1,52,8)},g.prototype.writeUintLE=g.prototype.writeUIntLE=function(J,ne,de,xe){J=+J,ne>>>=0,de>>>=0,xe||q(this,J,ne,de,Math.pow(2,8*de)-1,0);var ue=1,ge=0;for(this[ne]=255&J;++ge>>=0,de>>>=0,xe||q(this,J,ne,de,Math.pow(2,8*de)-1,0);var ue=de-1,ge=1;for(this[ne+ue]=255&J;--ue>=0&&(ge*=256);)this[ne+ue]=J/ge&255;return ne+de},g.prototype.writeUint8=g.prototype.writeUInt8=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,1,255,0),this[ne]=255&J,ne+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,65535,0),this[ne]=255&J,this[ne+1]=J>>>8,ne+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,65535,0),this[ne]=J>>>8,this[ne+1]=255&J,ne+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,4294967295,0),this[ne+3]=J>>>24,this[ne+2]=J>>>16,this[ne+1]=J>>>8,this[ne]=255&J,ne+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,4294967295,0),this[ne]=J>>>24,this[ne+1]=J>>>16,this[ne+2]=J>>>8,this[ne+3]=255&J,ne+4},g.prototype.writeBigUInt64LE=ce(function(J){return H(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(J,ne,de,xe){if(J=+J,ne>>>=0,!xe){var ue=Math.pow(2,8*de-1);q(this,J,ne,de,ue-1,-ue)}var ge=0,be=1,we=0;for(this[ne]=255&J;++ge>0)-we&255;return ne+de},g.prototype.writeIntBE=function(J,ne,de,xe){if(J=+J,ne>>>=0,!xe){var ue=Math.pow(2,8*de-1);q(this,J,ne,de,ue-1,-ue)}var ge=de-1,be=1,we=0;for(this[ne+ge]=255&J;--ge>=0&&(be*=256);)J<0&&we===0&&this[ne+ge+1]!==0&&(we=1),this[ne+ge]=(J/be>>0)-we&255;return ne+de},g.prototype.writeInt8=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,1,127,-128),J<0&&(J=255+J+1),this[ne]=255&J,ne+1},g.prototype.writeInt16LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,32767,-32768),this[ne]=255&J,this[ne+1]=J>>>8,ne+2},g.prototype.writeInt16BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,32767,-32768),this[ne]=J>>>8,this[ne+1]=255&J,ne+2},g.prototype.writeInt32LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,2147483647,-2147483648),this[ne]=255&J,this[ne+1]=J>>>8,this[ne+2]=J>>>16,this[ne+3]=J>>>24,ne+4},g.prototype.writeInt32BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),this[ne]=J>>>24,this[ne+1]=J>>>16,this[ne+2]=J>>>8,this[ne+3]=255&J,ne+4},g.prototype.writeBigInt64LE=ce(function(J){return H(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeFloatLE=function(J,ne,de){return ee(this,J,ne,!0,de)},g.prototype.writeFloatBE=function(J,ne,de){return ee(this,J,ne,!1,de)},g.prototype.writeDoubleLE=function(J,ne,de){return U(this,J,ne,!0,de)},g.prototype.writeDoubleBE=function(J,ne,de){return U(this,J,ne,!1,de)},g.prototype.copy=function(J,ne,de,xe){if(!g.isBuffer(J))throw new TypeError("argument should be a Buffer");if(de||(de=0),xe||xe===0||(xe=this.length),ne>=J.length&&(ne=J.length),ne||(ne=0),xe>0&&xe=this.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("sourceEnd out of bounds");xe>this.length&&(xe=this.length),J.length-ne>>=0,de=de===void 0?this.length:de>>>0,J||(J=0),typeof J=="number")for(ge=ne;ge"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Ee,De=c(be);if(we){var Re=c(this).constructor;Ee=Reflect.construct(De,arguments,Re)}else Ee=De.apply(this,arguments);return function(Ie,Be){if(Be&&(d(Be)==="object"||typeof Be=="function"))return Be;if(Be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(Ie)}(this,Ee)});function Ae(){var Ee;return function(De,Re){if(!(De instanceof Re))throw new TypeError("Cannot call a class as a function")}(this,Ae),Ee=ke.call(this),Object.defineProperty(s(Ee),"message",{value:ne.apply(s(Ee),arguments),writable:!0,configurable:!0}),Ee.name="".concat(Ee.name," [").concat(J,"]"),Ee.stack,delete Ee.name,Ee}return ue=Ae,(ge=[{key:"code",get:function(){return J},set:function(Ee){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Ee,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(J,"]: ").concat(this.message)}}])&&l(ue.prototype,ge),Object.defineProperty(ue,"prototype",{writable:!1}),Ae}(de)}function Z(J){for(var ne="",de=J.length,xe=J[0]==="-"?1:0;de>=xe+4;de-=3)ne="_".concat(J.slice(de-3,de)).concat(ne);return"".concat(J.slice(0,de)).concat(ne)}function X(J,ne,de,xe,ue,ge){if(J>de||J= 0".concat(we," and < 2").concat(we," ** ").concat(8*(ge+1)).concat(we):">= -(2".concat(we," ** ").concat(8*(ge+1)-1).concat(we,") and < 2 ** ")+"".concat(8*(ge+1)-1).concat(we),new Q.ERR_OUT_OF_RANGE("value",be,J)}(function(ke,Ae,Ee){re(Ae,"offset"),ke[Ae]!==void 0&&ke[Ae+Ee]!==void 0||ie(Ae,ke.length-(Ee+1))})(xe,ue,ge)}function re(J,ne){if(typeof J!="number")throw new Q.ERR_INVALID_ARG_TYPE(ne,"number",J)}function ie(J,ne,de){throw Math.floor(J)!==J?(re(J,de),new Q.ERR_OUT_OF_RANGE("offset","an integer",J)):ne<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(ne),J)}Y("ERR_BUFFER_OUT_OF_BOUNDS",function(J){return J?"".concat(J," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),Y("ERR_INVALID_ARG_TYPE",function(J,ne){return'The "'.concat(J,'" argument must be of type number. Received type ').concat(d(ne))},TypeError),Y("ERR_OUT_OF_RANGE",function(J,ne,de){var xe='The value of "'.concat(J,'" is out of range.'),ue=de;return Number.isInteger(de)&&Math.abs(de)>Math.pow(2,32)?ue=Z(String(de)):typeof de=="bigint"&&(ue=String(de),(de>Math.pow(BigInt(2),BigInt(32))||de<-Math.pow(BigInt(2),BigInt(32)))&&(ue=Z(ue)),ue+="n"),xe+" It must be ".concat(ne,". Received ").concat(ue)},RangeError);var le=/[^+/0-9A-Za-z-_]/g;function se(J,ne){var de;ne=ne||1/0;for(var xe=J.length,ue=null,ge=[],be=0;be55295&&de<57344){if(!ue){if(de>56319){(ne-=3)>-1&&ge.push(239,191,189);continue}if(be+1===xe){(ne-=3)>-1&&ge.push(239,191,189);continue}ue=de;continue}if(de<56320){(ne-=3)>-1&&ge.push(239,191,189),ue=de;continue}de=65536+(ue-55296<<10|de-56320)}else ue&&(ne-=3)>-1&&ge.push(239,191,189);if(ue=null,de<128){if((ne-=1)<0)break;ge.push(de)}else if(de<2048){if((ne-=2)<0)break;ge.push(de>>6|192,63&de|128)}else if(de<65536){if((ne-=3)<0)break;ge.push(de>>12|224,de>>6&63|128,63&de|128)}else{if(!(de<1114112))throw new Error("Invalid code point");if((ne-=4)<0)break;ge.push(de>>18|240,de>>12&63|128,de>>6&63|128,63&de|128)}}return ge}function pe(J){return h.toByteArray(function(ne){if((ne=(ne=ne.split("=")[0]).trim().replace(le,"")).length<2)return"";for(;ne.length%4!=0;)ne+="=";return ne}(J))}function Te(J,ne,de,xe){var ue;for(ue=0;ue=ne.length||ue>=J.length);++ue)ne[ue+de]=J[ue];return ue}function Se(J,ne){return J instanceof ne||J!=null&&J.constructor!=null&&J.constructor.name!=null&&J.constructor.name===ne.name}function Oe(J){return J!=J}var Me=function(){for(var J="0123456789abcdef",ne=new Array(256),de=0;de<16;++de)for(var xe=16*de,ue=0;ue<16;++ue)ne[xe+ue]=J[de]+J[ue];return ne}();function ce(J){return typeof BigInt>"u"?ye:J}function ye(){throw new Error("BigInt not supported")}},35791:function(o){o.exports=f,o.exports.isMobile=f,o.exports.default=f;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,l=/android|ipad|playbook|silk/i;function f(s){s||(s={});var c=s.ua;if(c||typeof navigator>"u"||(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;var d=a.test(c)&&!n.test(c)||!!s.tablet&&l.test(c);return!d&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(d=!0),d}},39898:function(o,a,n){var l,f;(function(){var s={version:"3.8.0"},c=[].slice,d=function(I){return c.call(I)},h=self.document;function p(I){return I&&(I.ownerDocument||I.document||I).documentElement}function m(I){return I&&(I.ownerDocument&&I.ownerDocument.defaultView||I.document&&I||I.defaultView)}if(h)try{d(h.documentElement.childNodes)[0].nodeType}catch{d=function(K){for(var ae=K.length,fe=new Array(ae);ae--;)fe[ae]=K[ae];return fe}}if(Date.now||(Date.now=function(){return+new Date}),h)try{h.createElement("DIV").style.setProperty("opacity",0,"")}catch{var y=this.Element.prototype,v=y.setAttribute,g=y.setAttributeNS,b=this.CSSStyleDeclaration.prototype,x=b.setProperty;y.setAttribute=function(K,ae){v.call(this,K,ae+"")},y.setAttributeNS=function(K,ae,fe){g.call(this,K,ae,fe+"")},b.setProperty=function(K,ae,fe){x.call(this,K,ae+"",fe)}}function _(I,K){return IK?1:I>=K?0:NaN}function w(I){return I===null?NaN:+I}function k(I){return!isNaN(I)}function T(I){return{left:function(K,ae,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=K.length);fe>>1;I(K[me],ae)<0?fe=me+1:he=me}return fe},right:function(K,ae,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=K.length);fe>>1;I(K[me],ae)>0?he=me:fe=me+1}return fe}}}s.ascending=_,s.descending=function(I,K){return KI?1:K>=I?0:NaN},s.min=function(I,K){var ae,fe,he=-1,me=I.length;if(arguments.length===1){for(;++he=fe){ae=fe;break}for(;++hefe&&(ae=fe)}else{for(;++he=fe){ae=fe;break}for(;++hefe&&(ae=fe)}return ae},s.max=function(I,K){var ae,fe,he=-1,me=I.length;if(arguments.length===1){for(;++he=fe){ae=fe;break}for(;++heae&&(ae=fe)}else{for(;++he=fe){ae=fe;break}for(;++heae&&(ae=fe)}return ae},s.extent=function(I,K){var ae,fe,he,me=-1,Ce=I.length;if(arguments.length===1){for(;++me=fe){ae=he=fe;break}for(;++mefe&&(ae=fe),he=fe){ae=he=fe;break}for(;++mefe&&(ae=fe),he1)return Ce/(Le-1)},s.deviation=function(){var I=s.variance.apply(this,arguments);return I&&Math.sqrt(I)};var M=T(_);function S(I){return I.length}s.bisectLeft=M.left,s.bisect=s.bisectRight=M.right,s.bisector=function(I){return T(I.length===1?function(K,ae){return _(I(K),ae)}:I)},s.shuffle=function(I,K,ae){(me=arguments.length)<3&&(ae=I.length,me<2&&(K=0));for(var fe,he,me=ae-K;me;)he=Math.random()*me--|0,fe=I[me+K],I[me+K]=I[he+K],I[he+K]=fe;return I},s.permute=function(I,K){for(var ae=K.length,fe=new Array(ae);ae--;)fe[ae]=I[K[ae]];return fe},s.pairs=function(I){for(var K=0,ae=I.length-1,fe=I[0],he=new Array(ae<0?0:ae);K=0;)for(K=(fe=I[he]).length;--K>=0;)ae[--Ce]=fe[K];return ae};var C=Math.abs;function P(I,K){for(var ae in K)Object.defineProperty(I.prototype,ae,{value:K[ae],enumerable:!1})}function D(){this._=Object.create(null)}s.range=function(I,K,ae){if(arguments.length<3&&(ae=1,arguments.length<2&&(K=I,I=0)),(K-I)/ae==1/0)throw new Error("infinite range");var fe,he=[],me=function(Pe){for(var Le=1;Pe*Le%1;)Le*=10;return Le}(C(ae)),Ce=-1;if(I*=me,K*=me,(ae*=me)<0)for(;(fe=I+ae*++Ce)>K;)he.push(fe/me);else for(;(fe=I+ae*++Ce)=fe.length)return K?K.call(ae,Le):I?Le.sort(I):Le;for(var He,Xe,rt,vt,Ct=-1,dt=Le.length,xt=fe[Fe++],ot=new D;++Ct=fe.length)return Pe;var Fe=[],He=he[Le++];return Pe.forEach(function(Xe,rt){Fe.push({key:Xe,values:Ce(rt,Le)})}),He?Fe.sort(function(Xe,rt){return He(Xe.key,rt.key)}):Fe}return ae.map=function(Pe,Le){return me(Le,Pe,0)},ae.entries=function(Pe){return Ce(me(s.map,Pe,0),0)},ae.key=function(Pe){return fe.push(Pe),ae},ae.sortKeys=function(Pe){return he[fe.length-1]=Pe,ae},ae.sortValues=function(Pe){return I=Pe,ae},ae.rollup=function(Pe){return K=Pe,ae},ae},s.set=function(I){var K=new E;if(I)for(var ae=0,fe=I.length;ae=0&&(fe=I.slice(ae+1),I=I.slice(0,ae)),I)return arguments.length<2?this[I].on(fe):this[I].on(fe,K);if(arguments.length===2){if(K==null)for(I in this)this.hasOwnProperty(I)&&this[I].on(fe,null);return this}},s.event=null,s.requote=function(I){return I.replace(Y,"\\$&")};var Y=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Z={}.__proto__?function(I,K){I.__proto__=K}:function(I,K){for(var ae in K)I[ae]=K[ae]};function X(I){return Z(I,se),I}var re=function(I,K){return K.querySelector(I)},ie=function(I,K){return K.querySelectorAll(I)},le=function(I,K){var ae=I.matches||I[L(I,"matchesSelector")];return le=function(fe,he){return ae.call(fe,he)},le(I,K)};typeof Sizzle=="function"&&(re=function(I,K){return Sizzle(I,K)[0]||null},ie=Sizzle,le=Sizzle.matchesSelector),s.selection=function(){return s.select(h.documentElement)};var se=s.selection.prototype=[];function pe(I){return typeof I=="function"?I:function(){return re(I,this)}}function Te(I){return typeof I=="function"?I:function(){return ie(I,this)}}se.select=function(I){var K,ae,fe,he,me=[];I=pe(I);for(var Ce=-1,Pe=this.length;++Ce=0&&(ae=I.slice(0,K))!=="xmlns"&&(I=I.slice(K+1)),Oe.hasOwnProperty(ae)?{space:Oe[ae],local:I}:I}},se.attr=function(I,K){if(arguments.length<2){if(typeof I=="string"){var ae=this.node();return(I=s.ns.qualify(I)).local?ae.getAttributeNS(I.space,I.local):ae.getAttribute(I)}for(K in I)this.each(Me(K,I[K]));return this}return this.each(Me(I,K))},se.classed=function(I,K){if(arguments.length<2){if(typeof I=="string"){var ae=this.node(),fe=(I=J(I)).length,he=-1;if(K=ae.classList){for(;++he=0;)(ae=fe[he])&&(me&&me!==ae.nextSibling&&me.parentNode.insertBefore(ae,me),me=ae);return this},se.sort=function(I){I=Ae.apply(this,arguments);for(var K=-1,ae=this.length;++K0&&(I=I.slice(0,he));var Ce=Be.get(I);function Pe(){var Le=this[fe];Le&&(this.removeEventListener(I,Le,Le.$),delete this[fe])}return Ce&&(I=Ce,me=qe),he?K?function(){var Le=me(K,d(arguments));Pe.call(this),this.addEventListener(I,this[fe]=Le,Le.$=ae),Le._=K}:Pe:K?H:function(){var Le,Fe=new RegExp("^__on([^.]+)"+s.requote(I)+"$");for(var He in this)if(Le=He.match(Fe)){var Xe=this[He];this.removeEventListener(Le[1],Xe,Xe.$),delete this[He]}}}s.selection.enter=De,s.selection.enter.prototype=Re,Re.append=se.append,Re.empty=se.empty,Re.node=se.node,Re.call=se.call,Re.size=se.size,Re.select=function(I){for(var K,ae,fe,he,me,Ce=[],Pe=-1,Le=this.length;++Pe=fe&&(fe=Ce+1);!(Le=Fe[fe])&&++fe1?ut:I<-1?-ut:Math.asin(I)}function zt(I){return((I=Math.exp(I))+1/I)/2}var wt=Math.SQRT2;s.interpolateZoom=function(I,K){var ae,fe,he=I[0],me=I[1],Ce=I[2],Pe=K[0],Le=K[1],Fe=K[2],He=Pe-he,Xe=Le-me,rt=He*He+Xe*Xe;if(rt0&&(en=en.transition().duration(rt)),en.call(_t.event)}function Jt(){Ce&&Ce.domain(me.range().map(function(en){return(en-Fe.x)/Fe.k}).map(me.invert)),Le&&Le.domain(Pe.range().map(function(en){return(en-Fe.y)/Fe.k}).map(Pe.invert))}function gn(en){vt++||en({type:"zoomstart"})}function yn(en){Jt(),en({type:"zoom",scale:Fe.k,translate:[Fe.x,Fe.y]})}function Mn(en){--vt||(en({type:"zoomend"}),K=null)}function bn(){var en=this,fn=Pt.of(en,arguments),Rn=0,In=s.select(m(en)).on(dt,function(){Rn=1,Ht(s.mouse(en),Wn),yn(fn)}).on(xt,function(){In.on(dt,null).on(xt,null),cr(Rn),Mn(fn)}),Wn=ft(s.mouse(en)),cr=lt(en);Pc.call(en),gn(fn)}function Nn(){var en,fn=this,Rn=Pt.of(fn,arguments),In={},Wn=0,cr=".zoom-"+s.event.changedTouches[0].identifier,Ir="touchmove"+cr,Sr="touchend"+cr,Vr=[],Fr=s.select(fn),Yr=lt(fn);function ha(){var Zr=s.touches(fn);return en=Fe.k,Zr.forEach(function(Nr){Nr.identifier in In&&(In[Nr.identifier]=ft(Nr))}),Zr}function Za(){var Zr=s.event.target;s.select(Zr).on(Ir,ai).on(Sr,ii),Vr.push(Zr);for(var Nr=s.event.changedTouches,ma=0,va=Nr.length;ma1){bi=_a[0];var $i=_a[1],Rc=bi[0]-$i[0],$2=bi[1]-$i[1];Wn=Rc*Rc+$2*$2}}function ai(){var Zr,Nr,ma,va,_a=s.touches(fn);Pc.call(fn);for(var $a=0,bi=_a.length;$a360?Pe-=360:Pe<0&&(Pe+=360),Pe<60?fe+(he-fe)*Pe/60:Pe<180?he:Pe<240?fe+(he-fe)*(240-Pe)/60:fe}(Ce))}return I=isNaN(I)?0:(I%=360)<0?I+360:I,K=isNaN(K)||K<0?0:K>1?1:K,fe=2*(ae=ae<0?0:ae>1?1:ae)-(he=ae<=.5?ae*(1+K):ae+K-ae*K),new Et(me(I+120),me(I),me(I-120))}function nt(I,K,ae){return this instanceof nt?(this.h=+I,this.c=+K,void(this.l=+ae)):arguments.length<2?I instanceof nt?new nt(I.h,I.c,I.l):function(fe,he,me){return fe>0?new nt(Math.atan2(me,he)*It,Math.sqrt(he*he+me*me),fe):new nt(NaN,NaN,fe)}(I instanceof tt?I.l:(I=$t((I=s.rgb(I)).r,I.g,I.b)).l,I.a,I.b):new nt(I,K,ae)}Ge.brighter=function(I){return I=Math.pow(.7,arguments.length?I:1),new Ze(this.h,this.s,this.l/I)},Ge.darker=function(I){return I=Math.pow(.7,arguments.length?I:1),new Ze(this.h,this.s,I*this.l)},Ge.rgb=function(){return Ke(this.h,this.s,this.l)},s.hcl=nt;var st=nt.prototype=new We;function mt(I,K,ae){return isNaN(I)&&(I=0),isNaN(K)&&(K=0),new tt(ae,Math.cos(I*=pt)*K,Math.sin(I)*K)}function tt(I,K,ae){return this instanceof tt?(this.l=+I,this.a=+K,void(this.b=+ae)):arguments.length<2?I instanceof tt?new tt(I.l,I.a,I.b):I instanceof nt?mt(I.h,I.c,I.l):$t((I=Et(I)).r,I.g,I.b):new tt(I,K,ae)}st.brighter=function(I){return new nt(this.h,this.c,Math.min(100,this.l+Ft*(arguments.length?I:1)))},st.darker=function(I){return new nt(this.h,this.c,Math.max(0,this.l-Ft*(arguments.length?I:1)))},st.rgb=function(){return mt(this.h,this.c,this.l).rgb()},s.lab=tt;var Ft=18,Vt=.95047,St=1,Nt=1.08883,Dt=tt.prototype=new We;function gt(I,K,ae){var fe=(I+16)/116,he=fe+K/500,me=fe-ae/200;return new Et(qt(3.2404542*(he=ht(he)*Vt)-1.5371385*(fe=ht(fe)*St)-.4985314*(me=ht(me)*Nt)),qt(-.969266*he+1.8760108*fe+.041556*me),qt(.0556434*he-.2040259*fe+1.0572252*me))}function ht(I){return I>.206893034?I*I*I:(I-.13793103448275862)/7.787037}function yt(I){return I>.008856?Math.pow(I,.3333333333333333):7.787037*I+.13793103448275862}function qt(I){return Math.round(255*(I<=.00304?12.92*I:1.055*Math.pow(I,.4166666666666667)-.055))}function Et(I,K,ae){return this instanceof Et?(this.r=~~I,this.g=~~K,void(this.b=~~ae)):arguments.length<2?I instanceof Et?new Et(I.r,I.g,I.b):Lt(""+I,Et,Ke):new Et(I,K,ae)}function jt(I){return new Et(I>>16,I>>8&255,255&I)}function Tt(I){return jt(I)+""}Dt.brighter=function(I){return new tt(Math.min(100,this.l+Ft*(arguments.length?I:1)),this.a,this.b)},Dt.darker=function(I){return new tt(Math.max(0,this.l-Ft*(arguments.length?I:1)),this.a,this.b)},Dt.rgb=function(){return gt(this.l,this.a,this.b)},s.rgb=Et;var Ot=Et.prototype=new We;function At(I){return I<16?"0"+Math.max(0,I).toString(16):Math.min(255,I).toString(16)}function Lt(I,K,ae){var fe,he,me,Ce=0,Pe=0,Le=0;if(fe=/([a-z]+)\((.*)\)/.exec(I=I.toLowerCase()))switch(he=fe[2].split(","),fe[1]){case"hsl":return ae(parseFloat(he[0]),parseFloat(he[1])/100,parseFloat(he[2])/100);case"rgb":return K(Xt(he[0]),Xt(he[1]),Xt(he[2]))}return(me=Bt.get(I))?K(me.r,me.g,me.b):(I==null||I.charAt(0)!=="#"||isNaN(me=parseInt(I.slice(1),16))||(I.length===4?(Ce=(3840&me)>>4,Ce|=Ce>>4,Pe=240&me,Pe|=Pe>>4,Le=15&me,Le|=Le<<4):I.length===7&&(Ce=(16711680&me)>>16,Pe=(65280&me)>>8,Le=255&me)),K(Ce,Pe,Le))}function Rt(I,K,ae){var fe,he,me=Math.min(I/=255,K/=255,ae/=255),Ce=Math.max(I,K,ae),Pe=Ce-me,Le=(Ce+me)/2;return Pe?(he=Le<.5?Pe/(Ce+me):Pe/(2-Ce-me),fe=I==Ce?(K-ae)/Pe+(K0&&Le<1?0:fe),new Ze(fe,he,Le)}function $t(I,K,ae){var fe=yt((.4124564*(I=Yt(I))+.3575761*(K=Yt(K))+.1804375*(ae=Yt(ae)))/Vt),he=yt((.2126729*I+.7151522*K+.072175*ae)/St);return tt(116*he-16,500*(fe-he),200*(he-yt((.0193339*I+.119192*K+.9503041*ae)/Nt)))}function Yt(I){return(I/=255)<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}function Xt(I){var K=parseFloat(I);return I.charAt(I.length-1)==="%"?Math.round(2.55*K):K}Ot.brighter=function(I){I=Math.pow(.7,arguments.length?I:1);var K=this.r,ae=this.g,fe=this.b,he=30;return K||ae||fe?(K&&K=200&&Xe<300||Xe===304){try{He=ae.call(he,Pe)}catch(rt){return void me.error.call(he,rt)}me.load.call(he,He)}else me.error.call(he,Pe)}return self.XDomainRequest&&!("withCredentials"in Pe)&&/^(http(s)?:)?\/\//.test(I)&&(Pe=new XDomainRequest),"onload"in Pe?Pe.onload=Pe.onerror=Fe:Pe.onreadystatechange=function(){Pe.readyState>3&&Fe()},Pe.onprogress=function(He){var Xe=s.event;s.event=He;try{me.progress.call(he,Pe)}finally{s.event=Xe}},he.header=function(He,Xe){return He=(He+"").toLowerCase(),arguments.length<2?Ce[He]:(Xe==null?delete Ce[He]:Ce[He]=Xe+"",he)},he.mimeType=function(He){return arguments.length?(K=He==null?null:He+"",he):K},he.responseType=function(He){return arguments.length?(Le=He,he):Le},he.response=function(He){return ae=He,he},["get","post"].forEach(function(He){he[He]=function(){return he.send.apply(he,[He].concat(d(arguments)))}}),he.send=function(He,Xe,rt){if(arguments.length===2&&typeof Xe=="function"&&(rt=Xe,Xe=null),Pe.open(He,I,!0),K==null||"accept"in Ce||(Ce.accept=K+",*/*"),Pe.setRequestHeader)for(var vt in Ce)Pe.setRequestHeader(vt,Ce[vt]);return K!=null&&Pe.overrideMimeType&&Pe.overrideMimeType(K),Le!=null&&(Pe.responseType=Le),rt!=null&&he.on("error",rt).on("load",function(Ct){rt(null,Ct)}),me.beforesend.call(he,Pe),Pe.send(Xe??null),he},he.abort=function(){return Pe.abort(),he},s.rebind(he,me,"on"),fe==null?he:he.get(function(He){return He.length===1?function(Xe,rt){He(Xe==null?rt:null)}:He}(fe))}Bt.forEach(function(I,K){Bt.set(I,jt(K))}),s.functor=Wt,s.xhr=tn(W),s.dsv=function(I,K){var ae=new RegExp('["'+I+` ]`),fe=I.charCodeAt(0);function he(Fe,He,Xe){arguments.length<3&&(Xe=He,He=null);var rt=cn(Fe,K,He==null?me:Ce(He),Xe);return rt.row=function(vt){return arguments.length?rt.response((He=vt)==null?me:Ce(vt)):He},rt}function me(Fe){return he.parse(Fe.responseText)}function Ce(Fe){return function(He){return he.parse(He.responseText,Fe)}}function Pe(Fe){return Fe.map(Le).join(I)}function Le(Fe){return ae.test(Fe)?'"'+Fe.replace(/\"/g,'""')+'"':Fe}return he.parse=function(Fe,He){var Xe;return he.parseRows(Fe,function(rt,vt){if(Xe)return Xe(rt,vt-1);var Ct=function(dt){for(var xt={},ot=rt.length,Pt=0;Pt=xt)return Ct;if(rt)return rt=!1,vt;var Ut=ot;if(Fe.charCodeAt(Ut)===34){for(var Ht=Ut;Ht++24?(isFinite(K)&&(clearTimeout(Zt),Zt=setTimeout(Kt,K)),sn=0):(sn=1,pn(Kt))}function On(){for(var I=Date.now(),K=ln;K;)I>=K.t&&K.c(I-K.t)&&(K.c=null),K=K.n;return I}function Tn(){for(var I,K=ln,ae=1/0;K;)K.c?(K.t1&&(K=I[me[Ce-2]],ae=I[me[Ce-1]],fe=I[Pe],(ae[0]-K[0])*(fe[1]-K[1])-(ae[1]-K[1])*(fe[0]-K[0])<=0);)--Ce;me[Ce++]=Pe}return me.slice(0,Ce)}function tr(I,K){return I[0]-K[0]||I[1]-K[1]}s.timer=function(){nn.apply(this,arguments)},s.timer.flush=function(){On(),Tn()},s.round=function(I,K){return K?Math.round(I*(K=Math.pow(10,K)))/K:Math.round(I)},s.geom={},s.geom.hull=function(I){var K=Dn,ae=wn;if(arguments.length)return fe(I);function fe(he){if(he.length<3)return[];var me,Ce=Wt(K),Pe=Wt(ae),Le=he.length,Fe=[],He=[];for(me=0;me=0;--me)dt.push(he[Fe[Xe[me]][2]]);for(me=+vt;meNe)Pe=Pe.L;else{if(!((he=me-xr(Pe,Ce))>Ne)){fe>-Ne?(K=Pe.P,ae=Pe):he>-Ne?(K=Pe,ae=Pe.N):K=ae=Pe;break}if(!Pe.R){K=Pe;break}Pe=Pe.R}var Le=Ln(I);if(kr.insert(K,Le),K||ae){if(K===ae)return kn(K),ae=Ln(K.site),kr.insert(Le,ae),Le.edge=ae.edge=Br(K.site,Le.site),sa(K),void sa(ae);if(ae){kn(K),kn(ae);var Fe=K.site,He=Fe.x,Xe=Fe.y,rt=I.x-He,vt=I.y-Xe,Ct=ae.site,dt=Ct.x-He,xt=Ct.y-Xe,ot=2*(rt*xt-vt*dt),Pt=rt*rt+vt*vt,_t=dt*dt+xt*xt,ft={x:(xt*Pt-vt*_t)/ot+He,y:(rt*_t-dt*Pt)/ot+Xe};Fi(ae.edge,Fe,Ct,ft),Le.edge=Br(Fe,I,null,ft),ae.edge=Br(I,Ct,null,ft),sa(K),sa(ae)}else Le.edge=Br(K.site,Le.site)}}function Lr(I,K){var ae=I.site,fe=ae.x,he=ae.y,me=he-K;if(!me)return fe;var Ce=I.P;if(!Ce)return-1/0;var Pe=(ae=Ce.site).x,Le=ae.y,Fe=Le-K;if(!Fe)return Pe;var He=Pe-fe,Xe=1/me-1/Fe,rt=He/Fe;return Xe?(-rt+Math.sqrt(rt*rt-2*Xe*(He*He/(-2*Fe)-Le+Fe/2+he-me/2)))/Xe+fe:(fe+Pe)/2}function xr(I,K){var ae=I.N;if(ae)return Lr(ae,K);var fe=I.site;return fe.y===K?fe.x:1/0}function Mr(I){this.site=I,this.edges=[]}function Na(I,K){return K.angle-I.angle}function wa(){ni(this),this.x=this.y=this.arc=this.site=this.cy=null}function sa(I){var K=I.P,ae=I.N;if(K&&ae){var fe=K.site,he=I.site,me=ae.site;if(fe!==me){var Ce=he.x,Pe=he.y,Le=fe.x-Ce,Fe=fe.y-Pe,He=me.x-Ce,Xe=2*(Le*(xt=me.y-Pe)-Fe*He);if(!(Xe>=-Qe)){var rt=Le*Le+Fe*Fe,vt=He*He+xt*xt,Ct=(xt*rt-Fe*vt)/Xe,dt=(Le*vt-He*rt)/Xe,xt=dt+Pe,ot=$n.pop()||new wa;ot.arc=I,ot.site=he,ot.x=Ct+Ce,ot.y=xt+Math.sqrt(Ct*Ct+dt*dt),ot.cy=xt,I.circle=ot;for(var Pt=null,_t=An._;_t;)if(ot.y<_t.y||ot.y===_t.y&&ot.x<=_t.x){if(!_t.L){Pt=_t.P;break}_t=_t.L}else{if(!_t.R){Pt=_t;break}_t=_t.R}An.insert(Pt,ot),Pt||(la=ot)}}}}function kn(I){var K=I.circle;K&&(K.P||(la=K.N),An.remove(K),$n.push(K),ni(K),I.circle=null)}function Dr(I,K){var ae=I.b;if(ae)return!0;var fe,he,me=I.a,Ce=K[0][0],Pe=K[1][0],Le=K[0][1],Fe=K[1][1],He=I.l,Xe=I.r,rt=He.x,vt=He.y,Ct=Xe.x,dt=Xe.y,xt=(rt+Ct)/2,ot=(vt+dt)/2;if(dt===vt){if(xt=Pe)return;if(rt>Ct){if(me){if(me.y>=Fe)return}else me={x:xt,y:Le};ae={x:xt,y:Fe}}else{if(me){if(me.y1)if(rt>Ct){if(me){if(me.y>=Fe)return}else me={x:(Le-he)/fe,y:Le};ae={x:(Fe-he)/fe,y:Fe}}else{if(me){if(me.y=Pe)return}else me={x:Ce,y:fe*Ce+he};ae={x:Pe,y:fe*Pe+he}}else{if(me){if(me.x0)){if(ot/=Jt,Jt<0){if(ot0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}if(ot=Xe-ft,Jt||!(ot<0)){if(ot/=Jt,Jt<0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}else if(Jt>0){if(ot0)){if(ot/=gn,gn<0){if(ot0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}if(ot=rt-Ut,gn||!(ot<0)){if(ot/=gn,gn<0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}else if(gn>0){if(ot0&&(xt.a={x:ft+Ht*Jt,y:Ut+Ht*gn}),Qt<1&&(xt.b={x:ft+Qt*Jt,y:Ut+Qt*gn}),xt}}}}}),dt=vt.length;dt--;)(!Dr(Le=vt[dt],Pe)||!Ct(Le)||C(Le.a.x-Le.b.x)Ne||C(Xe-Fe)>Ne)&&(Ct.splice(vt,0,new Ni((Jt=rt.site,gn=ot,yn=C(He-Pt)Ne?{x:Pt,y:C(Le-Pt)Ne?{x:C(Fe-Ut)Ne?{x:_t,y:C(Le-_t)Ne?{x:C(Fe-ft)=He&&ot.x<=rt&&ot.y>=Xe&&ot.y<=vt?[[He,vt],[rt,vt],[rt,Xe],[He,Xe]]:[]).point=Le[dt]}),Fe}function Pe(Le){return Le.map(function(Fe,He){return{x:Math.round(fe(Fe,He)/Ne)*Ne,y:Math.round(he(Fe,He)/Ne)*Ne,i:He}})}return Ce.links=function(Le){return nl(Pe(Le)).edges.filter(function(Fe){return Fe.l&&Fe.r}).map(function(Fe){return{source:Le[Fe.l.i],target:Le[Fe.r.i]}})},Ce.triangles=function(Le){var Fe=[];return nl(Pe(Le)).cells.forEach(function(He,Xe){for(var rt,vt,Ct,dt,xt=He.site,ot=He.edges.sort(Na),Pt=-1,_t=ot.length,ft=ot[_t-1].edge,Ut=ft.l===xt?ft.r:ft.l;++Pt<_t;)rt=Ut,Ut=(ft=ot[Pt].edge).l===xt?ft.r:ft.l,Xeme&&(he=K.slice(me,he),Pe[Ce]?Pe[Ce]+=he:Pe[++Ce]=he),(ae=ae[0])===(fe=fe[0])?Pe[Ce]?Pe[Ce]+=fe:Pe[++Ce]=fe:(Pe[++Ce]=null,Le.push({i:Ce,x:yi(ae,fe)})),me=qp.lastIndex;return meot&&(ot=He.x),He.y>Pt&&(Pt=He.y),Xe.push(He.x),rt.push(He.y);else for(vt=0;vtot&&(ot=Ut),Ht>Pt&&(Pt=Ht),Xe.push(Ut),rt.push(Ht)}var Qt=ot-dt,Jt=Pt-xt;function gn(bn,Nn,Yn,dr,en,fn,Rn,In){if(!isNaN(Yn)&&!isNaN(dr))if(bn.leaf){var Wn=bn.x,cr=bn.y;if(Wn!=null)if(C(Wn-Yn)+C(cr-dr)<.01)yn(bn,Nn,Yn,dr,en,fn,Rn,In);else{var Ir=bn.point;bn.x=bn.y=bn.point=null,yn(bn,Ir,Wn,cr,en,fn,Rn,In),yn(bn,Nn,Yn,dr,en,fn,Rn,In)}else bn.x=Yn,bn.y=dr,bn.point=Nn}else yn(bn,Nn,Yn,dr,en,fn,Rn,In)}function yn(bn,Nn,Yn,dr,en,fn,Rn,In){var Wn=.5*(en+Rn),cr=.5*(fn+In),Ir=Yn>=Wn,Sr=dr>=cr,Vr=Sr<<1|Ir;bn.leaf=!1,Ir?en=Wn:Rn=Wn,Sr?fn=cr:In=cr,gn(bn=bn.nodes[Vr]||(bn.nodes[Vr]={leaf:!0,nodes:[],point:null,x:null,y:null}),Nn,Yn,dr,en,fn,Rn,In)}Qt>Jt?Pt=xt+Qt:ot=dt+Jt;var Mn={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(bn){gn(Mn,bn,+_t(bn,++vt),+ft(bn,vt),dt,xt,ot,Pt)}};if(Mn.visit=function(bn){fs(bn,Mn,dt,xt,ot,Pt)},Mn.find=function(bn){return function(Nn,Yn,dr,en,fn,Rn,In){var Wn,cr=1/0;return function Ir(Sr,Vr,Fr,Yr,ha){if(!(Vr>Rn||Fr>In||Yr=_a)<<1|Yn>=va,bi=$a+4;$a=0&&!(ae=s.interpolators[fe](I,K)););return ae}function wc(I,K){var ae,fe=[],he=[],me=I.length,Ce=K.length,Pe=Math.min(I.length,K.length);for(ae=0;ae=1)return 1;var K=I*I,ae=K*I;return 4*(I<.5?ae:3*(I-K)+ae-.75)}function ZP(I){return 1-Math.cos(I*ut)}function KP(I){return Math.pow(2,10*(I-1))}function JP(I){return 1-Math.sqrt(1-I*I)}function QP(I){return I<.36363636363636365?7.5625*I*I:I<.7272727272727273?7.5625*(I-=.5454545454545454)*I+.75:I<.9090909090909091?7.5625*(I-=.8181818181818182)*I+.9375:7.5625*(I-=.9545454545454546)*I+.984375}function Hx(I,K){return K-=I,function(ae){return Math.round(I+K*ae)}}function Vx(I){var K,ae,fe,he=[I.a,I.b],me=[I.c,I.d],Ce=Gx(he),Pe=Yx(he,me),Le=Gx(((K=me)[0]+=(fe=-Pe)*(ae=he)[0],K[1]+=fe*ae[1],K))||0;he[0]*me[1]=0?I.slice(0,ae):I,he=ae>=0?I.slice(ae+1):"in";return fe=HP.get(fe)||qx,he=VP.get(he)||W,K=he(fe.apply(null,u.call(arguments,1))),function(me){return me<=0?0:me>=1?1:K(me)}},s.interpolateHcl=function(I,K){I=s.hcl(I),K=s.hcl(K);var ae=I.h,fe=I.c,he=I.l,me=K.h-ae,Ce=K.c-fe,Pe=K.l-he;return isNaN(Ce)&&(Ce=0,fe=isNaN(fe)?K.c:fe),isNaN(me)?(me=0,ae=isNaN(ae)?K.h:ae):me>180?me-=360:me<-180&&(me+=360),function(Le){return mt(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateHsl=function(I,K){I=s.hsl(I),K=s.hsl(K);var ae=I.h,fe=I.s,he=I.l,me=K.h-ae,Ce=K.s-fe,Pe=K.l-he;return isNaN(Ce)&&(Ce=0,fe=isNaN(fe)?K.s:fe),isNaN(me)?(me=0,ae=isNaN(ae)?K.h:ae):me>180?me-=360:me<-180&&(me+=360),function(Le){return Ke(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateLab=function(I,K){I=s.lab(I),K=s.lab(K);var ae=I.l,fe=I.a,he=I.b,me=K.l-ae,Ce=K.a-fe,Pe=K.b-he;return function(Le){return gt(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateRound=Hx,s.transform=function(I){var K=h.createElementNS(s.ns.prefix.svg,"g");return(s.transform=function(ae){if(ae!=null){K.setAttribute("transform",ae);var fe=K.transform.baseVal.consolidate()}return new Vx(fe?fe.matrix:eD)})(I)},Vx.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var eD={a:1,b:0,c:0,d:1,e:0,f:0};function rl(I){return I.length?I.pop()+",":""}function Xx(I,K){var ae=[],fe=[];return I=s.transform(I),K=s.transform(K),function(he,me,Ce,Pe){if(he[0]!==me[0]||he[1]!==me[1]){var Le=Ce.push("translate(",null,",",null,")");Pe.push({i:Le-4,x:yi(he[0],me[0])},{i:Le-2,x:yi(he[1],me[1])})}else(me[0]||me[1])&&Ce.push("translate("+me+")")}(I.translate,K.translate,ae,fe),function(he,me,Ce,Pe){he!==me?(he-me>180?me+=360:me-he>180&&(he+=360),Pe.push({i:Ce.push(rl(Ce)+"rotate(",null,")")-2,x:yi(he,me)})):me&&Ce.push(rl(Ce)+"rotate("+me+")")}(I.rotate,K.rotate,ae,fe),function(he,me,Ce,Pe){he!==me?Pe.push({i:Ce.push(rl(Ce)+"skewX(",null,")")-2,x:yi(he,me)}):me&&Ce.push(rl(Ce)+"skewX("+me+")")}(I.skew,K.skew,ae,fe),function(he,me,Ce,Pe){if(he[0]!==me[0]||he[1]!==me[1]){var Le=Ce.push(rl(Ce)+"scale(",null,",",null,")");Pe.push({i:Le-4,x:yi(he[0],me[0])},{i:Le-2,x:yi(he[1],me[1])})}else me[0]===1&&me[1]===1||Ce.push(rl(Ce)+"scale("+me+")")}(I.scale,K.scale,ae,fe),I=K=null,function(he){for(var me,Ce=-1,Pe=fe.length;++Ce0?ae=ft:(I.c=null,I.t=NaN,I=null,Pe.end({type:"end",alpha:ae=0})):ft>0&&(Pe.start({type:"start",alpha:ae=ft}),I=nn(Ce.tick)),Ce):ae},Ce.start=function(){var ft,Ut,Ht,Qt=xt.length,Jt=ot.length,gn=Le[0],yn=Le[1];for(ft=0;ft=0;)ae.push(he[fe])}function ri(I,K){for(var ae=[I],fe=[];(I=ae.pop())!=null;)if(fe.push(I),(me=I.children)&&(he=me.length))for(var he,me,Ce=-1;++Ce=0;)Ce.push(He=Fe[Le]),He.parent=me,He.depth=me.depth+1;ae&&(me.value=0),me.children=Fe}else ae&&(me.value=+ae.call(fe,me,me.depth)||0),delete me.children;return ri(he,function(Xe){var rt,vt;I&&(rt=Xe.children)&&rt.sort(I),ae&&(vt=Xe.parent)&&(vt.value+=Xe.value)}),Pe}return fe.sort=function(he){return arguments.length?(I=he,fe):I},fe.children=function(he){return arguments.length?(K=he,fe):K},fe.value=function(he){return arguments.length?(ae=he,fe):ae},fe.revalue=function(he){return ae&&(hs(he,function(me){me.children&&(me.value=0)}),ri(he,function(me){var Ce;me.children||(me.value=+ae.call(fe,me,me.depth)||0),(Ce=me.parent)&&(Ce.value+=me.value)})),he},fe},s.layout.partition=function(){var I=s.layout.hierarchy(),K=[1,1];function ae(me,Ce,Pe,Le){var Fe=me.children;if(me.x=Ce,me.y=me.depth*Le,me.dx=Pe,me.dy=Le,Fe&&(He=Fe.length)){var He,Xe,rt,vt=-1;for(Pe=me.value?Pe/me.value:0;++vtPe&&(Pe=fe),Ce.push(fe)}for(ae=0;aehe&&(fe=ae,he=K);return fe}function wD(I){return I.reduce(_D,0)}function _D(I,K){return I+K[1]}function TD(I,K){return Qx(I,Math.ceil(Math.log(K.length)/Math.LN2+1))}function Qx(I,K){for(var ae=-1,fe=+I[0],he=(I[1]-fe)/K,me=[];++ae<=K;)me[ae]=he*ae+fe;return me}function kD(I){return[s.min(I),s.max(I)]}function MD(I,K){return I.value-K.value}function Hp(I,K){var ae=I._pack_next;I._pack_next=K,K._pack_prev=I,K._pack_next=ae,ae._pack_prev=K}function e2(I,K){I._pack_next=K,K._pack_prev=I}function t2(I,K){var ae=K.x-I.x,fe=K.y-I.y,he=I.r+K.r;return .999*he*he>ae*ae+fe*fe}function n2(I){if((K=I.children)&&(Le=K.length)){var K,ae,fe,he,me,Ce,Pe,Le,Fe=1/0,He=-1/0,Xe=1/0,rt=-1/0;if(K.forEach(SD),(ae=K[0]).x=-ae.r,ae.y=0,_t(ae),Le>1&&((fe=K[1]).x=fe.r,fe.y=0,_t(fe),Le>2))for(a2(ae,fe,he=K[2]),_t(he),Hp(ae,he),ae._pack_prev=he,Hp(he,fe),fe=ae._pack_next,me=3;me0)for(Ce=-1;++Ce=Xe[0]&&Le<=Xe[1]&&((Pe=Fe[s.bisect(rt,Le,1,Ct)-1]).y+=dt,Pe.push(me[Ce]));return Fe}return he.value=function(me){return arguments.length?(K=me,he):K},he.range=function(me){return arguments.length?(ae=Wt(me),he):ae},he.bins=function(me){return arguments.length?(fe=typeof me=="number"?function(Ce){return Qx(Ce,me)}:Wt(me),he):fe},he.frequency=function(me){return arguments.length?(I=!!me,he):I},he},s.layout.pack=function(){var I,K=s.layout.hierarchy().sort(MD),ae=0,fe=[1,1];function he(me,Ce){var Pe=K.call(this,me,Ce),Le=Pe[0],Fe=fe[0],He=fe[1],Xe=I==null?Math.sqrt:typeof I=="function"?I:function(){return I};if(Le.x=Le.y=0,ri(Le,function(vt){vt.r=+Xe(vt.value)}),ri(Le,n2),ae){var rt=ae*(I?1:Math.max(2*Le.r/Fe,2*Le.r/He))/2;ri(Le,function(vt){vt.r+=rt}),ri(Le,n2),ri(Le,function(vt){vt.r-=rt})}return r2(Le,Fe/2,He/2,I?1:1/Math.max(2*Le.r/Fe,2*Le.r/He)),Pe}return he.size=function(me){return arguments.length?(fe=me,he):fe},he.radius=function(me){return arguments.length?(I=me==null||typeof me=="function"?me:+me,he):I},he.padding=function(me){return arguments.length?(ae=+me,he):ae},ds(he,K)},s.layout.tree=function(){var I=s.layout.hierarchy().sort(null).value(null),K=i2,ae=[1,1],fe=null;function he(Le,Fe){var He=I.call(this,Le,Fe),Xe=He[0],rt=function(_t){for(var ft,Ut={A:null,children:[_t]},Ht=[Ut];(ft=Ht.pop())!=null;)for(var Qt,Jt=ft.children,gn=0,yn=Jt.length;gnCt.x&&(Ct=_t),_t.depth>dt.depth&&(dt=_t)});var xt=K(vt,Ct)/2-vt.x,ot=ae[0]/(Ct.x+K(Ct,vt)/2+xt),Pt=ae[1]/(dt.depth||1);hs(Xe,function(_t){_t.x=(_t.x+xt)*ot,_t.y=_t.depth*Pt})}return He}function me(Le){var Fe=Le.children,He=Le.parent.children,Xe=Le.i?He[Le.i-1]:null;if(Fe.length){(function(vt){for(var Ct,dt=0,xt=0,ot=vt.children,Pt=ot.length;--Pt>=0;)(Ct=ot[Pt]).z+=dt,Ct.m+=dt,dt+=Ct.s+(xt+=Ct.c)})(Le);var rt=(Fe[0].z+Fe[Fe.length-1].z)/2;Xe?(Le.z=Xe.z+K(Le._,Xe._),Le.m=Le.z-rt):Le.z=rt}else Xe&&(Le.z=Xe.z+K(Le._,Xe._));Le.parent.A=function(vt,Ct,dt){if(Ct){for(var xt,ot=vt,Pt=vt,_t=Ct,ft=ot.parent.children[0],Ut=ot.m,Ht=Pt.m,Qt=_t.m,Jt=ft.m;_t=Yp(_t),ot=Vp(ot),_t&&ot;)ft=Vp(ft),(Pt=Yp(Pt)).a=vt,(xt=_t.z+Qt-ot.z-Ut+K(_t._,ot._))>0&&(OD(AD(_t,vt,dt),vt,xt),Ut+=xt,Ht+=xt),Qt+=_t.m,Ut+=ot.m,Jt+=ft.m,Ht+=Pt.m;_t&&!Yp(Pt)&&(Pt.t=_t,Pt.m+=Qt-Ht),ot&&!Vp(ft)&&(ft.t=ot,ft.m+=Ut-Jt,dt=vt)}return dt}(Le,Xe,Le.parent.A||He[0])}function Ce(Le){Le._.x=Le.z+Le.parent.m,Le.m+=Le.parent.m}function Pe(Le){Le.x*=ae[0],Le.y=Le.depth*ae[1]}return he.separation=function(Le){return arguments.length?(K=Le,he):K},he.size=function(Le){return arguments.length?(fe=(ae=Le)==null?Pe:null,he):fe?null:ae},he.nodeSize=function(Le){return arguments.length?(fe=(ae=Le)==null?null:Pe,he):fe?ae:null},ds(he,I)},s.layout.cluster=function(){var I=s.layout.hierarchy().sort(null).value(null),K=i2,ae=[1,1],fe=!1;function he(me,Ce){var Pe,Le=I.call(this,me,Ce),Fe=Le[0],He=0;ri(Fe,function(dt){var xt=dt.children;xt&&xt.length?(dt.x=function(ot){return ot.reduce(function(Pt,_t){return Pt+_t.x},0)/ot.length}(xt),dt.y=function(ot){return 1+s.max(ot,function(Pt){return Pt.y})}(xt)):(dt.x=Pe?He+=K(dt,Pe):0,dt.y=0,Pe=dt)});var Xe=o2(Fe),rt=l2(Fe),vt=Xe.x-K(Xe,rt)/2,Ct=rt.x+K(rt,Xe)/2;return ri(Fe,fe?function(dt){dt.x=(dt.x-Fe.x)*ae[0],dt.y=(Fe.y-dt.y)*ae[1]}:function(dt){dt.x=(dt.x-vt)/(Ct-vt)*ae[0],dt.y=(1-(Fe.y?dt.y/Fe.y:1))*ae[1]}),Le}return he.separation=function(me){return arguments.length?(K=me,he):K},he.size=function(me){return arguments.length?(fe=(ae=me)==null,he):fe?null:ae},he.nodeSize=function(me){return arguments.length?(fe=(ae=me)!=null,he):fe?ae:null},ds(he,I)},s.layout.treemap=function(){var I,K=s.layout.hierarchy(),ae=Math.round,fe=[1,1],he=null,me=Gp,Ce=!1,Pe="squarify",Le=.5*(1+Math.sqrt(5));function Fe(dt,xt){for(var ot,Pt,_t=-1,ft=dt.length;++_t0;)Ut.push(ot=Ht[_t-1]),Ut.area+=ot.area,Pe!=="squarify"||(Pt=rt(Ut,Jt))<=Qt?(Ht.pop(),Qt=Pt):(Ut.area-=Ut.pop().area,vt(Ut,Jt,ft,!1),Jt=Math.min(ft.dx,ft.dy),Ut.length=Ut.area=0,Qt=1/0);Ut.length&&(vt(Ut,Jt,ft,!0),Ut.length=Ut.area=0),xt.forEach(He)}}function Xe(dt){var xt=dt.children;if(xt&&xt.length){var ot,Pt=me(dt),_t=xt.slice(),ft=[];for(Fe(_t,Pt.dx*Pt.dy/dt.value),ft.area=0;ot=_t.pop();)ft.push(ot),ft.area+=ot.area,ot.z!=null&&(vt(ft,ot.z?Pt.dx:Pt.dy,Pt,!_t.length),ft.length=ft.area=0);xt.forEach(Xe)}}function rt(dt,xt){for(var ot,Pt=dt.area,_t=0,ft=1/0,Ut=-1,Ht=dt.length;++Ut_t&&(_t=ot));return xt*=xt,(Pt*=Pt)?Math.max(xt*_t*Le/Pt,Pt/(xt*ft*Le)):1/0}function vt(dt,xt,ot,Pt){var _t,ft=-1,Ut=dt.length,Ht=ot.x,Qt=ot.y,Jt=xt?ae(dt.area/xt):0;if(xt==ot.dx){for((Pt||Jt>ot.dy)&&(Jt=ot.dy);++ftot.dx)&&(Jt=ot.dx);++ft1);return I+K*fe*Math.sqrt(-2*Math.log(me)/me)}},logNormal:function(){var I=s.random.normal.apply(s,arguments);return function(){return Math.exp(I())}},bates:function(I){var K=s.random.irwinHall(I);return function(){return K()/I}},irwinHall:function(I){return function(){for(var K=0,ae=0;ae2?ED:PD,Fe=fe?nD:tD;return he=Le(I,K,Fe,ae),me=Le(K,I,Fe,lo),Pe}function Pe(Le){return he(Le)}return Pe.invert=function(Le){return me(Le)},Pe.domain=function(Le){return arguments.length?(I=Le.map(Number),Ce()):I},Pe.range=function(Le){return arguments.length?(K=Le,Ce()):K},Pe.rangeRound=function(Le){return Pe.range(Le).interpolate(Hx)},Pe.clamp=function(Le){return arguments.length?(fe=Le,Ce()):fe},Pe.interpolate=function(Le){return arguments.length?(ae=Le,Ce()):ae},Pe.ticks=function(Le){return Kp(I,Le)},Pe.tickFormat=function(Le,Fe){return d3_scale_linearTickFormat(I,Le,Fe)},Pe.nice=function(Le){return d2(I,Le),Ce()},Pe.copy=function(){return c2(I,K,ae,fe)},Ce()}function f2(I,K){return s.rebind(I,K,"range","rangeRound","interpolate","clamp")}function d2(I,K){return Xp(I,u2(Zp(I,K)[2])),Xp(I,u2(Zp(I,K)[2])),I}function Zp(I,K){K==null&&(K=10);var ae=_c(I),fe=ae[1]-ae[0],he=Math.pow(10,Math.floor(Math.log(fe/K)/Math.LN10)),me=K/fe*he;return me<=.15?he*=10:me<=.35?he*=5:me<=.75&&(he*=2),ae[0]=Math.ceil(ae[0]/he)*he,ae[1]=Math.floor(ae[1]/he)*he+.5*he,ae[2]=he,ae}function Kp(I,K){return s.range.apply(s,Zp(I,K))}function h2(I,K,ae,fe){function he(Pe){return(ae?Math.log(Pe<0?0:Pe):-Math.log(Pe>0?0:-Pe))/Math.log(K)}function me(Pe){return ae?Math.pow(K,Pe):-Math.pow(K,-Pe)}function Ce(Pe){return I(he(Pe))}return Ce.invert=function(Pe){return me(I.invert(Pe))},Ce.domain=function(Pe){return arguments.length?(ae=Pe[0]>=0,I.domain((fe=Pe.map(Number)).map(he)),Ce):fe},Ce.base=function(Pe){return arguments.length?(K=+Pe,I.domain(fe.map(he)),Ce):K},Ce.nice=function(){var Pe=Xp(fe.map(he),ae?Math:RD);return I.domain(Pe),fe=Pe.map(me),Ce},Ce.ticks=function(){var Pe=_c(fe),Le=[],Fe=Pe[0],He=Pe[1],Xe=Math.floor(he(Fe)),rt=Math.ceil(he(He)),vt=K%1?2:K;if(isFinite(rt-Xe)){if(ae){for(;Xe0;Ct--)Le.push(me(Xe)*Ct);for(Xe=0;Le[Xe]He;rt--);Le=Le.slice(Xe,rt)}return Le},Ce.copy=function(){return h2(I.copy(),K,ae,fe)},f2(Ce,I)}s.scale.linear=function(){return c2([0,1],[0,1],lo,!1)},s.scale.log=function(){return h2(s.scale.linear().domain([0,1]),10,!0,[1,10])};var RD={floor:function(I){return-Math.ceil(-I)},ceil:function(I){return-Math.floor(-I)}};function p2(I,K,ae){var fe=kc(K),he=kc(1/K);function me(Ce){return I(fe(Ce))}return me.invert=function(Ce){return he(I.invert(Ce))},me.domain=function(Ce){return arguments.length?(I.domain((ae=Ce.map(Number)).map(fe)),me):ae},me.ticks=function(Ce){return Kp(ae,Ce)},me.tickFormat=function(Ce,Pe){return d3_scale_linearTickFormat(ae,Ce,Pe)},me.nice=function(Ce){return me.domain(d2(ae,Ce))},me.exponent=function(Ce){return arguments.length?(fe=kc(K=Ce),he=kc(1/K),I.domain(ae.map(fe)),me):K},me.copy=function(){return p2(I.copy(),K,ae)},f2(me,I)}function kc(I){return function(K){return K<0?-Math.pow(-K,I):Math.pow(K,I)}}function g2(I,K){var ae,fe,he;function me(Pe){return fe[((ae.get(Pe)||(K.t==="range"?ae.set(Pe,I.push(Pe)):NaN))-1)%fe.length]}function Ce(Pe,Le){return s.range(I.length).map(function(Fe){return Pe+Le*Fe})}return me.domain=function(Pe){if(!arguments.length)return I;I=[],ae=new D;for(var Le,Fe=-1,He=Pe.length;++Fe0?ae[me-1]:I[0],mert?0:1;if(He=Je)return Le(He,Ct)+(Fe?Le(Fe,1-Ct):"")+"Z";var dt,xt,ot,Pt,_t,ft,Ut,Ht,Qt,Jt,gn,yn,Mn=0,bn=0,Nn=[];if((Pt=(+Ce.apply(this,arguments)||0)/2)&&(ot=fe===Mc?Math.sqrt(Fe*Fe+He*He):+fe.apply(this,arguments),Ct||(bn*=-1),He&&(bn=Mt(ot/He*Math.sin(Pt))),Fe&&(Mn=Mt(ot/Fe*Math.sin(Pt)))),He){_t=He*Math.cos(Xe+bn),ft=He*Math.sin(Xe+bn),Ut=He*Math.cos(rt-bn),Ht=He*Math.sin(rt-bn);var Yn=Math.abs(rt-Xe-2*bn)<=it?0:1;if(bn&&Sc(_t,ft,Ut,Ht)===Ct^Yn){var dr=(Xe+rt)/2;_t=He*Math.cos(dr),ft=He*Math.sin(dr),Ut=Ht=null}}else _t=ft=0;if(Fe){Qt=Fe*Math.cos(rt-Mn),Jt=Fe*Math.sin(rt-Mn),gn=Fe*Math.cos(Xe+Mn),yn=Fe*Math.sin(Xe+Mn);var en=Math.abs(Xe-rt+2*Mn)<=it?0:1;if(Mn&&Sc(Qt,Jt,gn,yn)===1-Ct^en){var fn=(Xe+rt)/2;Qt=Fe*Math.cos(fn),Jt=Fe*Math.sin(fn),gn=yn=null}}else Qt=Jt=0;if(vt>Ne&&(dt=Math.min(Math.abs(He-Fe)/2,+ae.apply(this,arguments)))>.001){xt=Fe0?0:1}function Cc(I,K,ae,fe,he){var me=I[0]-K[0],Ce=I[1]-K[1],Pe=(he?fe:-fe)/Math.sqrt(me*me+Ce*Ce),Le=Pe*Ce,Fe=-Pe*me,He=I[0]+Le,Xe=I[1]+Fe,rt=K[0]+Le,vt=K[1]+Fe,Ct=(He+rt)/2,dt=(Xe+vt)/2,xt=rt-He,ot=vt-Xe,Pt=xt*xt+ot*ot,_t=ae-fe,ft=He*vt-rt*Xe,Ut=(ot<0?-1:1)*Math.sqrt(Math.max(0,_t*_t*Pt-ft*ft)),Ht=(ft*ot-xt*Ut)/Pt,Qt=(-ft*xt-ot*Ut)/Pt,Jt=(ft*ot+xt*Ut)/Pt,gn=(-ft*xt+ot*Ut)/Pt,yn=Ht-Ct,Mn=Qt-dt,bn=Jt-Ct,Nn=gn-dt;return yn*yn+Mn*Mn>bn*bn+Nn*Nn&&(Ht=Jt,Qt=gn),[[Ht-Le,Qt-Fe],[Ht*ae/_t,Qt*ae/_t]]}function _2(){return!0}function T2(I){var K=Dn,ae=wn,fe=_2,he=Xa,me=he.key,Ce=.7;function Pe(Le){var Fe,He=[],Xe=[],rt=-1,vt=Le.length,Ct=Wt(K),dt=Wt(ae);function xt(){He.push("M",he(I(Xe),Ce))}for(;++rt1&&he.push("H",fe[0]),he.join("")},"step-before":Qp,"step-after":eg,basis:M2,"basis-open":function(I){if(I.length<4)return Xa(I);for(var K,ae=[],fe=-1,he=I.length,me=[0],Ce=[0];++fe<3;)K=I[fe],me.push(K[0]),Ce.push(K[1]);for(ae.push(ja(ji,me)+","+ja(ji,Ce)),--fe;++fe9&&(me=3*ae/Math.sqrt(me),Pe[Le]=me*fe,Pe[Le+1]=me*he);for(Le=-1;++Le<=Fe;)me=(K[Math.min(Fe,Le+1)][0]-K[Math.max(0,Le-1)][0])/(6*(1+Pe[Le]*Pe[Le])),Ce.push([me||0,Pe[Le]*me||0]);return Ce}(I))}});function Xa(I){return I.length>1?I.join("L"):I+"Z"}function k2(I){return I.join("L")+"Z"}function Qp(I){for(var K=0,ae=I.length,fe=I[0],he=[fe[0],",",fe[1]];++K1){Pe=K[1],me=I[Le],Le++,fe+="C"+(he[0]+Ce[0])+","+(he[1]+Ce[1])+","+(me[0]-Pe[0])+","+(me[1]-Pe[1])+","+me[0]+","+me[1];for(var Fe=2;Feit)+",1 "+He}function Le(Fe,He,Xe,rt){return"Q 0,0 "+rt}return me.radius=function(Fe){return arguments.length?(ae=Wt(Fe),me):ae},me.source=function(Fe){return arguments.length?(I=Wt(Fe),me):I},me.target=function(Fe){return arguments.length?(K=Wt(Fe),me):K},me.startAngle=function(Fe){return arguments.length?(fe=Wt(Fe),me):fe},me.endAngle=function(Fe){return arguments.length?(he=Wt(Fe),me):he},me},s.svg.diagonal=function(){var I=P2,K=D2,ae=E2;function fe(he,me){var Ce=I.call(this,he,me),Pe=K.call(this,he,me),Le=(Ce.y+Pe.y)/2,Fe=[Ce,{x:Ce.x,y:Le},{x:Pe.x,y:Le},Pe];return"M"+(Fe=Fe.map(ae))[0]+"C"+Fe[1]+" "+Fe[2]+" "+Fe[3]}return fe.source=function(he){return arguments.length?(I=Wt(he),fe):I},fe.target=function(he){return arguments.length?(K=Wt(he),fe):K},fe.projection=function(he){return arguments.length?(ae=he,fe):ae},fe},s.svg.diagonal.radial=function(){var I=s.svg.diagonal(),K=E2,ae=I.projection;return I.projection=function(fe){return arguments.length?ae(function(he){return function(){var me=he.apply(this,arguments),Ce=me[0],Pe=me[1]-ut;return[Ce*Math.cos(Pe),Ce*Math.sin(Pe)]}}(K=fe)):K},I},s.svg.symbol=function(){var I=UD,K=WD;function ae(fe,he){return(L2.get(I.call(this,fe,he))||R2)(K.call(this,fe,he))}return ae.type=function(fe){return arguments.length?(I=Wt(fe),ae):I},ae.size=function(fe){return arguments.length?(K=Wt(fe),ae):K},ae};var L2=s.map({circle:R2,cross:function(I){var K=Math.sqrt(I/5)/2;return"M"+-3*K+","+-K+"H"+-K+"V"+-3*K+"H"+K+"V"+-K+"H"+3*K+"V"+K+"H"+K+"V"+3*K+"H"+-K+"V"+K+"H"+-3*K+"Z"},diamond:function(I){var K=Math.sqrt(I/(2*I2)),ae=K*I2;return"M0,"+-K+"L"+ae+",0 0,"+K+" "+-ae+",0Z"},square:function(I){var K=Math.sqrt(I)/2;return"M"+-K+","+-K+"L"+K+","+-K+" "+K+","+K+" "+-K+","+K+"Z"},"triangle-down":function(I){var K=Math.sqrt(I/Ac),ae=K*Ac/2;return"M0,"+ae+"L"+K+","+-ae+" "+-K+","+-ae+"Z"},"triangle-up":function(I){var K=Math.sqrt(I/Ac),ae=K*Ac/2;return"M0,"+-ae+"L"+K+","+ae+" "+-K+","+ae+"Z"}});s.svg.symbolTypes=L2.keys();var Ac=Math.sqrt(3),I2=Math.tan(30*pt);se.transition=function(I){for(var K,ae,fe=so||++N2,he=ig(I),me=[],Ce=Dc||{time:Date.now(),ease:XP,delay:0,duration:250},Pe=-1,Le=this.length;++Pe0;)Fe[--ot].call(I,xt);if(dt>=1)return Xe.event&&Xe.event.end.call(I,I.__data__,K),--He.count?delete He[fe]:delete I[ae],1}Xe||(me=he.time,Ce=nn(function(Ct){var dt=Xe.delay;if(Ce.t=dt+me,dt<=Ct)return rt(Ct-dt);Ce.c=rt},0,me),Xe=He[fe]={tween:new D,time:me,timer:Ce,delay:he.delay,duration:he.duration,ease:he.ease,index:K},he=null,++He.count)}zr.call=se.call,zr.empty=se.empty,zr.node=se.node,zr.size=se.size,s.transition=function(I,K){return I&&I.transition?so?I.transition(K):I:s.selection().transition(I)},s.transition.prototype=zr,zr.select=function(I){var K,ae,fe,he=this.id,me=this.namespace,Ce=[];I=pe(I);for(var Pe=-1,Le=this.length;++Perect,.s>rect").attr("width",me[1]-me[0])}function vt(dt){dt.select(".extent").attr("y",Ce[0]),dt.selectAll(".extent,.e>rect,.w>rect").attr("height",Ce[1]-Ce[0])}function Ct(){var dt,xt,ot=this,Pt=s.select(s.event.target),_t=ae.of(ot,arguments),ft=s.select(ot),Ut=Pt.datum(),Ht=!/^(n|s)$/.test(Ut)&&fe,Qt=!/^(e|w)$/.test(Ut)&&he,Jt=Pt.classed("extent"),gn=lt(ot),yn=s.mouse(ot),Mn=s.select(m(ot)).on("keydown.brush",function(){s.event.keyCode==32&&(Jt||(dt=null,yn[0]-=me[1],yn[1]-=Ce[1],Jt=2),ee())}).on("keyup.brush",function(){s.event.keyCode==32&&Jt==2&&(yn[0]+=me[1],yn[1]+=Ce[1],Jt=0,ee())});if(s.event.changedTouches?Mn.on("touchmove.brush",Yn).on("touchend.brush",en):Mn.on("mousemove.brush",Yn).on("mouseup.brush",en),ft.interrupt().selectAll("*").interrupt(),Jt)yn[0]=me[0]-yn[0],yn[1]=Ce[0]-yn[1];else if(Ut){var bn=+/w$/.test(Ut),Nn=+/^n/.test(Ut);xt=[me[1-bn]-yn[0],Ce[1-Nn]-yn[1]],yn[0]=me[bn],yn[1]=Ce[Nn]}else s.event.altKey&&(dt=yn.slice());function Yn(){var fn=s.mouse(ot),Rn=!1;xt&&(fn[0]+=xt[0],fn[1]+=xt[1]),Jt||(s.event.altKey?(dt||(dt=[(me[0]+me[1])/2,(Ce[0]+Ce[1])/2]),yn[0]=me[+(fn[0]24?(isFinite(K)&&(clearTimeout(Zt),Zt=setTimeout(Kt,K)),sn=0):(sn=1,pn(Kt))}function On(){for(var I=Date.now(),K=ln;K;)I>=K.t&&K.c(I-K.t)&&(K.c=null),K=K.n;return I}function Tn(){for(var I,K=ln,ae=1/0;K;)K.c?(K.t1&&(K=I[me[Ce-2]],ae=I[me[Ce-1]],fe=I[Pe],(ae[0]-K[0])*(fe[1]-K[1])-(ae[1]-K[1])*(fe[0]-K[0])<=0);)--Ce;me[Ce++]=Pe}return me.slice(0,Ce)}function tr(I,K){return I[0]-K[0]||I[1]-K[1]}s.timer=function(){nn.apply(this,arguments)},s.timer.flush=function(){On(),Tn()},s.round=function(I,K){return K?Math.round(I*(K=Math.pow(10,K)))/K:Math.round(I)},s.geom={},s.geom.hull=function(I){var K=Dn,ae=wn;if(arguments.length)return fe(I);function fe(he){if(he.length<3)return[];var me,Ce=Wt(K),Pe=Wt(ae),Le=he.length,Fe=[],He=[];for(me=0;me=0;--me)dt.push(he[Fe[Xe[me]][2]]);for(me=+vt;meNe)Pe=Pe.L;else{if(!((he=me-xr(Pe,Ce))>Ne)){fe>-Ne?(K=Pe.P,ae=Pe):he>-Ne?(K=Pe,ae=Pe.N):K=ae=Pe;break}if(!Pe.R){K=Pe;break}Pe=Pe.R}var Le=Ln(I);if(kr.insert(K,Le),K||ae){if(K===ae)return kn(K),ae=Ln(K.site),kr.insert(Le,ae),Le.edge=ae.edge=Br(K.site,Le.site),sa(K),void sa(ae);if(ae){kn(K),kn(ae);var Fe=K.site,He=Fe.x,Xe=Fe.y,rt=I.x-He,vt=I.y-Xe,Ct=ae.site,dt=Ct.x-He,xt=Ct.y-Xe,ot=2*(rt*xt-vt*dt),Pt=rt*rt+vt*vt,_t=dt*dt+xt*xt,ft={x:(xt*Pt-vt*_t)/ot+He,y:(rt*_t-dt*Pt)/ot+Xe};Fi(ae.edge,Fe,Ct,ft),Le.edge=Br(Fe,I,null,ft),ae.edge=Br(I,Ct,null,ft),sa(K),sa(ae)}else Le.edge=Br(K.site,Le.site)}}function Lr(I,K){var ae=I.site,fe=ae.x,he=ae.y,me=he-K;if(!me)return fe;var Ce=I.P;if(!Ce)return-1/0;var Pe=(ae=Ce.site).x,Le=ae.y,Fe=Le-K;if(!Fe)return Pe;var He=Pe-fe,Xe=1/me-1/Fe,rt=He/Fe;return Xe?(-rt+Math.sqrt(rt*rt-2*Xe*(He*He/(-2*Fe)-Le+Fe/2+he-me/2)))/Xe+fe:(fe+Pe)/2}function xr(I,K){var ae=I.N;if(ae)return Lr(ae,K);var fe=I.site;return fe.y===K?fe.x:1/0}function Mr(I){this.site=I,this.edges=[]}function Na(I,K){return K.angle-I.angle}function wa(){ni(this),this.x=this.y=this.arc=this.site=this.cy=null}function sa(I){var K=I.P,ae=I.N;if(K&&ae){var fe=K.site,he=I.site,me=ae.site;if(fe!==me){var Ce=he.x,Pe=he.y,Le=fe.x-Ce,Fe=fe.y-Pe,He=me.x-Ce,Xe=2*(Le*(xt=me.y-Pe)-Fe*He);if(!(Xe>=-Qe)){var rt=Le*Le+Fe*Fe,vt=He*He+xt*xt,Ct=(xt*rt-Fe*vt)/Xe,dt=(Le*vt-He*rt)/Xe,xt=dt+Pe,ot=$n.pop()||new wa;ot.arc=I,ot.site=he,ot.x=Ct+Ce,ot.y=xt+Math.sqrt(Ct*Ct+dt*dt),ot.cy=xt,I.circle=ot;for(var Pt=null,_t=An._;_t;)if(ot.y<_t.y||ot.y===_t.y&&ot.x<=_t.x){if(!_t.L){Pt=_t.P;break}_t=_t.L}else{if(!_t.R){Pt=_t;break}_t=_t.R}An.insert(Pt,ot),Pt||(la=ot)}}}}function kn(I){var K=I.circle;K&&(K.P||(la=K.N),An.remove(K),$n.push(K),ni(K),I.circle=null)}function Dr(I,K){var ae=I.b;if(ae)return!0;var fe,he,me=I.a,Ce=K[0][0],Pe=K[1][0],Le=K[0][1],Fe=K[1][1],He=I.l,Xe=I.r,rt=He.x,vt=He.y,Ct=Xe.x,dt=Xe.y,xt=(rt+Ct)/2,ot=(vt+dt)/2;if(dt===vt){if(xt=Pe)return;if(rt>Ct){if(me){if(me.y>=Fe)return}else me={x:xt,y:Le};ae={x:xt,y:Fe}}else{if(me){if(me.y1)if(rt>Ct){if(me){if(me.y>=Fe)return}else me={x:(Le-he)/fe,y:Le};ae={x:(Fe-he)/fe,y:Fe}}else{if(me){if(me.y=Pe)return}else me={x:Ce,y:fe*Ce+he};ae={x:Pe,y:fe*Pe+he}}else{if(me){if(me.x0)){if(ot/=Jt,Jt<0){if(ot0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}if(ot=Xe-ft,Jt||!(ot<0)){if(ot/=Jt,Jt<0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}else if(Jt>0){if(ot0)){if(ot/=gn,gn<0){if(ot0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}if(ot=rt-Ut,gn||!(ot<0)){if(ot/=gn,gn<0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}else if(gn>0){if(ot0&&(xt.a={x:ft+Ht*Jt,y:Ut+Ht*gn}),Qt<1&&(xt.b={x:ft+Qt*Jt,y:Ut+Qt*gn}),xt}}}}}),dt=vt.length;dt--;)(!Dr(Le=vt[dt],Pe)||!Ct(Le)||C(Le.a.x-Le.b.x)Ne||C(Xe-Fe)>Ne)&&(Ct.splice(vt,0,new Ni((Jt=rt.site,gn=ot,yn=C(He-Pt)Ne?{x:Pt,y:C(Le-Pt)Ne?{x:C(Fe-Ut)Ne?{x:_t,y:C(Le-_t)Ne?{x:C(Fe-ft)=He&&ot.x<=rt&&ot.y>=Xe&&ot.y<=vt?[[He,vt],[rt,vt],[rt,Xe],[He,Xe]]:[]).point=Le[dt]}),Fe}function Pe(Le){return Le.map(function(Fe,He){return{x:Math.round(fe(Fe,He)/Ne)*Ne,y:Math.round(he(Fe,He)/Ne)*Ne,i:He}})}return Ce.links=function(Le){return nl(Pe(Le)).edges.filter(function(Fe){return Fe.l&&Fe.r}).map(function(Fe){return{source:Le[Fe.l.i],target:Le[Fe.r.i]}})},Ce.triangles=function(Le){var Fe=[];return nl(Pe(Le)).cells.forEach(function(He,Xe){for(var rt,vt,Ct,dt,xt=He.site,ot=He.edges.sort(Na),Pt=-1,_t=ot.length,ft=ot[_t-1].edge,Ut=ft.l===xt?ft.r:ft.l;++Pt<_t;)rt=Ut,Ut=(ft=ot[Pt].edge).l===xt?ft.r:ft.l,Xeme&&(he=K.slice(me,he),Pe[Ce]?Pe[Ce]+=he:Pe[++Ce]=he),(ae=ae[0])===(fe=fe[0])?Pe[Ce]?Pe[Ce]+=fe:Pe[++Ce]=fe:(Pe[++Ce]=null,Le.push({i:Ce,x:yi(ae,fe)})),me=qp.lastIndex;return meot&&(ot=He.x),He.y>Pt&&(Pt=He.y),Xe.push(He.x),rt.push(He.y);else for(vt=0;vtot&&(ot=Ut),Ht>Pt&&(Pt=Ht),Xe.push(Ut),rt.push(Ht)}var Qt=ot-dt,Jt=Pt-xt;function gn(bn,Nn,Yn,dr,en,fn,Rn,In){if(!isNaN(Yn)&&!isNaN(dr))if(bn.leaf){var Wn=bn.x,cr=bn.y;if(Wn!=null)if(C(Wn-Yn)+C(cr-dr)<.01)yn(bn,Nn,Yn,dr,en,fn,Rn,In);else{var Ir=bn.point;bn.x=bn.y=bn.point=null,yn(bn,Ir,Wn,cr,en,fn,Rn,In),yn(bn,Nn,Yn,dr,en,fn,Rn,In)}else bn.x=Yn,bn.y=dr,bn.point=Nn}else yn(bn,Nn,Yn,dr,en,fn,Rn,In)}function yn(bn,Nn,Yn,dr,en,fn,Rn,In){var Wn=.5*(en+Rn),cr=.5*(fn+In),Ir=Yn>=Wn,Sr=dr>=cr,Vr=Sr<<1|Ir;bn.leaf=!1,Ir?en=Wn:Rn=Wn,Sr?fn=cr:In=cr,gn(bn=bn.nodes[Vr]||(bn.nodes[Vr]={leaf:!0,nodes:[],point:null,x:null,y:null}),Nn,Yn,dr,en,fn,Rn,In)}Qt>Jt?Pt=xt+Qt:ot=dt+Jt;var Mn={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(bn){gn(Mn,bn,+_t(bn,++vt),+ft(bn,vt),dt,xt,ot,Pt)}};if(Mn.visit=function(bn){fs(bn,Mn,dt,xt,ot,Pt)},Mn.find=function(bn){return function(Nn,Yn,dr,en,fn,Rn,In){var Wn,cr=1/0;return function Ir(Sr,Vr,Fr,Yr,ha){if(!(Vr>Rn||Fr>In||Yr=_a)<<1|Yn>=va,bi=$a+4;$a=0&&!(ae=s.interpolators[fe](I,K)););return ae}function wc(I,K){var ae,fe=[],he=[],me=I.length,Ce=K.length,Pe=Math.min(I.length,K.length);for(ae=0;ae=1)return 1;var K=I*I,ae=K*I;return 4*(I<.5?ae:3*(I-K)+ae-.75)}function ZP(I){return 1-Math.cos(I*ut)}function KP(I){return Math.pow(2,10*(I-1))}function JP(I){return 1-Math.sqrt(1-I*I)}function QP(I){return I<.36363636363636365?7.5625*I*I:I<.7272727272727273?7.5625*(I-=.5454545454545454)*I+.75:I<.9090909090909091?7.5625*(I-=.8181818181818182)*I+.9375:7.5625*(I-=.9545454545454546)*I+.984375}function Hx(I,K){return K-=I,function(ae){return Math.round(I+K*ae)}}function Vx(I){var K,ae,fe,he=[I.a,I.b],me=[I.c,I.d],Ce=Gx(he),Pe=Yx(he,me),Le=Gx(((K=me)[0]+=(fe=-Pe)*(ae=he)[0],K[1]+=fe*ae[1],K))||0;he[0]*me[1]=0?I.slice(0,ae):I,he=ae>=0?I.slice(ae+1):"in";return fe=HP.get(fe)||qx,he=VP.get(he)||W,K=he(fe.apply(null,c.call(arguments,1))),function(me){return me<=0?0:me>=1?1:K(me)}},s.interpolateHcl=function(I,K){I=s.hcl(I),K=s.hcl(K);var ae=I.h,fe=I.c,he=I.l,me=K.h-ae,Ce=K.c-fe,Pe=K.l-he;return isNaN(Ce)&&(Ce=0,fe=isNaN(fe)?K.c:fe),isNaN(me)?(me=0,ae=isNaN(ae)?K.h:ae):me>180?me-=360:me<-180&&(me+=360),function(Le){return mt(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateHsl=function(I,K){I=s.hsl(I),K=s.hsl(K);var ae=I.h,fe=I.s,he=I.l,me=K.h-ae,Ce=K.s-fe,Pe=K.l-he;return isNaN(Ce)&&(Ce=0,fe=isNaN(fe)?K.s:fe),isNaN(me)?(me=0,ae=isNaN(ae)?K.h:ae):me>180?me-=360:me<-180&&(me+=360),function(Le){return Ke(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateLab=function(I,K){I=s.lab(I),K=s.lab(K);var ae=I.l,fe=I.a,he=I.b,me=K.l-ae,Ce=K.a-fe,Pe=K.b-he;return function(Le){return gt(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateRound=Hx,s.transform=function(I){var K=h.createElementNS(s.ns.prefix.svg,"g");return(s.transform=function(ae){if(ae!=null){K.setAttribute("transform",ae);var fe=K.transform.baseVal.consolidate()}return new Vx(fe?fe.matrix:eD)})(I)},Vx.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var eD={a:1,b:0,c:0,d:1,e:0,f:0};function rl(I){return I.length?I.pop()+",":""}function Xx(I,K){var ae=[],fe=[];return I=s.transform(I),K=s.transform(K),function(he,me,Ce,Pe){if(he[0]!==me[0]||he[1]!==me[1]){var Le=Ce.push("translate(",null,",",null,")");Pe.push({i:Le-4,x:yi(he[0],me[0])},{i:Le-2,x:yi(he[1],me[1])})}else(me[0]||me[1])&&Ce.push("translate("+me+")")}(I.translate,K.translate,ae,fe),function(he,me,Ce,Pe){he!==me?(he-me>180?me+=360:me-he>180&&(he+=360),Pe.push({i:Ce.push(rl(Ce)+"rotate(",null,")")-2,x:yi(he,me)})):me&&Ce.push(rl(Ce)+"rotate("+me+")")}(I.rotate,K.rotate,ae,fe),function(he,me,Ce,Pe){he!==me?Pe.push({i:Ce.push(rl(Ce)+"skewX(",null,")")-2,x:yi(he,me)}):me&&Ce.push(rl(Ce)+"skewX("+me+")")}(I.skew,K.skew,ae,fe),function(he,me,Ce,Pe){if(he[0]!==me[0]||he[1]!==me[1]){var Le=Ce.push(rl(Ce)+"scale(",null,",",null,")");Pe.push({i:Le-4,x:yi(he[0],me[0])},{i:Le-2,x:yi(he[1],me[1])})}else me[0]===1&&me[1]===1||Ce.push(rl(Ce)+"scale("+me+")")}(I.scale,K.scale,ae,fe),I=K=null,function(he){for(var me,Ce=-1,Pe=fe.length;++Ce0?ae=ft:(I.c=null,I.t=NaN,I=null,Pe.end({type:"end",alpha:ae=0})):ft>0&&(Pe.start({type:"start",alpha:ae=ft}),I=nn(Ce.tick)),Ce):ae},Ce.start=function(){var ft,Ut,Ht,Qt=xt.length,Jt=ot.length,gn=Le[0],yn=Le[1];for(ft=0;ft=0;)ae.push(he[fe])}function ri(I,K){for(var ae=[I],fe=[];(I=ae.pop())!=null;)if(fe.push(I),(me=I.children)&&(he=me.length))for(var he,me,Ce=-1;++Ce=0;)Ce.push(He=Fe[Le]),He.parent=me,He.depth=me.depth+1;ae&&(me.value=0),me.children=Fe}else ae&&(me.value=+ae.call(fe,me,me.depth)||0),delete me.children;return ri(he,function(Xe){var rt,vt;I&&(rt=Xe.children)&&rt.sort(I),ae&&(vt=Xe.parent)&&(vt.value+=Xe.value)}),Pe}return fe.sort=function(he){return arguments.length?(I=he,fe):I},fe.children=function(he){return arguments.length?(K=he,fe):K},fe.value=function(he){return arguments.length?(ae=he,fe):ae},fe.revalue=function(he){return ae&&(hs(he,function(me){me.children&&(me.value=0)}),ri(he,function(me){var Ce;me.children||(me.value=+ae.call(fe,me,me.depth)||0),(Ce=me.parent)&&(Ce.value+=me.value)})),he},fe},s.layout.partition=function(){var I=s.layout.hierarchy(),K=[1,1];function ae(me,Ce,Pe,Le){var Fe=me.children;if(me.x=Ce,me.y=me.depth*Le,me.dx=Pe,me.dy=Le,Fe&&(He=Fe.length)){var He,Xe,rt,vt=-1;for(Pe=me.value?Pe/me.value:0;++vtPe&&(Pe=fe),Ce.push(fe)}for(ae=0;aehe&&(fe=ae,he=K);return fe}function wD(I){return I.reduce(_D,0)}function _D(I,K){return I+K[1]}function TD(I,K){return Qx(I,Math.ceil(Math.log(K.length)/Math.LN2+1))}function Qx(I,K){for(var ae=-1,fe=+I[0],he=(I[1]-fe)/K,me=[];++ae<=K;)me[ae]=he*ae+fe;return me}function kD(I){return[s.min(I),s.max(I)]}function MD(I,K){return I.value-K.value}function Hp(I,K){var ae=I._pack_next;I._pack_next=K,K._pack_prev=I,K._pack_next=ae,ae._pack_prev=K}function e2(I,K){I._pack_next=K,K._pack_prev=I}function t2(I,K){var ae=K.x-I.x,fe=K.y-I.y,he=I.r+K.r;return .999*he*he>ae*ae+fe*fe}function n2(I){if((K=I.children)&&(Le=K.length)){var K,ae,fe,he,me,Ce,Pe,Le,Fe=1/0,He=-1/0,Xe=1/0,rt=-1/0;if(K.forEach(SD),(ae=K[0]).x=-ae.r,ae.y=0,_t(ae),Le>1&&((fe=K[1]).x=fe.r,fe.y=0,_t(fe),Le>2))for(a2(ae,fe,he=K[2]),_t(he),Hp(ae,he),ae._pack_prev=he,Hp(he,fe),fe=ae._pack_next,me=3;me0)for(Ce=-1;++Ce=Xe[0]&&Le<=Xe[1]&&((Pe=Fe[s.bisect(rt,Le,1,Ct)-1]).y+=dt,Pe.push(me[Ce]));return Fe}return he.value=function(me){return arguments.length?(K=me,he):K},he.range=function(me){return arguments.length?(ae=Wt(me),he):ae},he.bins=function(me){return arguments.length?(fe=typeof me=="number"?function(Ce){return Qx(Ce,me)}:Wt(me),he):fe},he.frequency=function(me){return arguments.length?(I=!!me,he):I},he},s.layout.pack=function(){var I,K=s.layout.hierarchy().sort(MD),ae=0,fe=[1,1];function he(me,Ce){var Pe=K.call(this,me,Ce),Le=Pe[0],Fe=fe[0],He=fe[1],Xe=I==null?Math.sqrt:typeof I=="function"?I:function(){return I};if(Le.x=Le.y=0,ri(Le,function(vt){vt.r=+Xe(vt.value)}),ri(Le,n2),ae){var rt=ae*(I?1:Math.max(2*Le.r/Fe,2*Le.r/He))/2;ri(Le,function(vt){vt.r+=rt}),ri(Le,n2),ri(Le,function(vt){vt.r-=rt})}return r2(Le,Fe/2,He/2,I?1:1/Math.max(2*Le.r/Fe,2*Le.r/He)),Pe}return he.size=function(me){return arguments.length?(fe=me,he):fe},he.radius=function(me){return arguments.length?(I=me==null||typeof me=="function"?me:+me,he):I},he.padding=function(me){return arguments.length?(ae=+me,he):ae},ds(he,K)},s.layout.tree=function(){var I=s.layout.hierarchy().sort(null).value(null),K=i2,ae=[1,1],fe=null;function he(Le,Fe){var He=I.call(this,Le,Fe),Xe=He[0],rt=function(_t){for(var ft,Ut={A:null,children:[_t]},Ht=[Ut];(ft=Ht.pop())!=null;)for(var Qt,Jt=ft.children,gn=0,yn=Jt.length;gnCt.x&&(Ct=_t),_t.depth>dt.depth&&(dt=_t)});var xt=K(vt,Ct)/2-vt.x,ot=ae[0]/(Ct.x+K(Ct,vt)/2+xt),Pt=ae[1]/(dt.depth||1);hs(Xe,function(_t){_t.x=(_t.x+xt)*ot,_t.y=_t.depth*Pt})}return He}function me(Le){var Fe=Le.children,He=Le.parent.children,Xe=Le.i?He[Le.i-1]:null;if(Fe.length){(function(vt){for(var Ct,dt=0,xt=0,ot=vt.children,Pt=ot.length;--Pt>=0;)(Ct=ot[Pt]).z+=dt,Ct.m+=dt,dt+=Ct.s+(xt+=Ct.c)})(Le);var rt=(Fe[0].z+Fe[Fe.length-1].z)/2;Xe?(Le.z=Xe.z+K(Le._,Xe._),Le.m=Le.z-rt):Le.z=rt}else Xe&&(Le.z=Xe.z+K(Le._,Xe._));Le.parent.A=function(vt,Ct,dt){if(Ct){for(var xt,ot=vt,Pt=vt,_t=Ct,ft=ot.parent.children[0],Ut=ot.m,Ht=Pt.m,Qt=_t.m,Jt=ft.m;_t=Yp(_t),ot=Vp(ot),_t&&ot;)ft=Vp(ft),(Pt=Yp(Pt)).a=vt,(xt=_t.z+Qt-ot.z-Ut+K(_t._,ot._))>0&&(OD(AD(_t,vt,dt),vt,xt),Ut+=xt,Ht+=xt),Qt+=_t.m,Ut+=ot.m,Jt+=ft.m,Ht+=Pt.m;_t&&!Yp(Pt)&&(Pt.t=_t,Pt.m+=Qt-Ht),ot&&!Vp(ft)&&(ft.t=ot,ft.m+=Ut-Jt,dt=vt)}return dt}(Le,Xe,Le.parent.A||He[0])}function Ce(Le){Le._.x=Le.z+Le.parent.m,Le.m+=Le.parent.m}function Pe(Le){Le.x*=ae[0],Le.y=Le.depth*ae[1]}return he.separation=function(Le){return arguments.length?(K=Le,he):K},he.size=function(Le){return arguments.length?(fe=(ae=Le)==null?Pe:null,he):fe?null:ae},he.nodeSize=function(Le){return arguments.length?(fe=(ae=Le)==null?null:Pe,he):fe?ae:null},ds(he,I)},s.layout.cluster=function(){var I=s.layout.hierarchy().sort(null).value(null),K=i2,ae=[1,1],fe=!1;function he(me,Ce){var Pe,Le=I.call(this,me,Ce),Fe=Le[0],He=0;ri(Fe,function(dt){var xt=dt.children;xt&&xt.length?(dt.x=function(ot){return ot.reduce(function(Pt,_t){return Pt+_t.x},0)/ot.length}(xt),dt.y=function(ot){return 1+s.max(ot,function(Pt){return Pt.y})}(xt)):(dt.x=Pe?He+=K(dt,Pe):0,dt.y=0,Pe=dt)});var Xe=o2(Fe),rt=l2(Fe),vt=Xe.x-K(Xe,rt)/2,Ct=rt.x+K(rt,Xe)/2;return ri(Fe,fe?function(dt){dt.x=(dt.x-Fe.x)*ae[0],dt.y=(Fe.y-dt.y)*ae[1]}:function(dt){dt.x=(dt.x-vt)/(Ct-vt)*ae[0],dt.y=(1-(Fe.y?dt.y/Fe.y:1))*ae[1]}),Le}return he.separation=function(me){return arguments.length?(K=me,he):K},he.size=function(me){return arguments.length?(fe=(ae=me)==null,he):fe?null:ae},he.nodeSize=function(me){return arguments.length?(fe=(ae=me)!=null,he):fe?ae:null},ds(he,I)},s.layout.treemap=function(){var I,K=s.layout.hierarchy(),ae=Math.round,fe=[1,1],he=null,me=Gp,Ce=!1,Pe="squarify",Le=.5*(1+Math.sqrt(5));function Fe(dt,xt){for(var ot,Pt,_t=-1,ft=dt.length;++_t0;)Ut.push(ot=Ht[_t-1]),Ut.area+=ot.area,Pe!=="squarify"||(Pt=rt(Ut,Jt))<=Qt?(Ht.pop(),Qt=Pt):(Ut.area-=Ut.pop().area,vt(Ut,Jt,ft,!1),Jt=Math.min(ft.dx,ft.dy),Ut.length=Ut.area=0,Qt=1/0);Ut.length&&(vt(Ut,Jt,ft,!0),Ut.length=Ut.area=0),xt.forEach(He)}}function Xe(dt){var xt=dt.children;if(xt&&xt.length){var ot,Pt=me(dt),_t=xt.slice(),ft=[];for(Fe(_t,Pt.dx*Pt.dy/dt.value),ft.area=0;ot=_t.pop();)ft.push(ot),ft.area+=ot.area,ot.z!=null&&(vt(ft,ot.z?Pt.dx:Pt.dy,Pt,!_t.length),ft.length=ft.area=0);xt.forEach(Xe)}}function rt(dt,xt){for(var ot,Pt=dt.area,_t=0,ft=1/0,Ut=-1,Ht=dt.length;++Ut_t&&(_t=ot));return xt*=xt,(Pt*=Pt)?Math.max(xt*_t*Le/Pt,Pt/(xt*ft*Le)):1/0}function vt(dt,xt,ot,Pt){var _t,ft=-1,Ut=dt.length,Ht=ot.x,Qt=ot.y,Jt=xt?ae(dt.area/xt):0;if(xt==ot.dx){for((Pt||Jt>ot.dy)&&(Jt=ot.dy);++ftot.dx)&&(Jt=ot.dx);++ft1);return I+K*fe*Math.sqrt(-2*Math.log(me)/me)}},logNormal:function(){var I=s.random.normal.apply(s,arguments);return function(){return Math.exp(I())}},bates:function(I){var K=s.random.irwinHall(I);return function(){return K()/I}},irwinHall:function(I){return function(){for(var K=0,ae=0;ae2?ED:PD,Fe=fe?nD:tD;return he=Le(I,K,Fe,ae),me=Le(K,I,Fe,lo),Pe}function Pe(Le){return he(Le)}return Pe.invert=function(Le){return me(Le)},Pe.domain=function(Le){return arguments.length?(I=Le.map(Number),Ce()):I},Pe.range=function(Le){return arguments.length?(K=Le,Ce()):K},Pe.rangeRound=function(Le){return Pe.range(Le).interpolate(Hx)},Pe.clamp=function(Le){return arguments.length?(fe=Le,Ce()):fe},Pe.interpolate=function(Le){return arguments.length?(ae=Le,Ce()):ae},Pe.ticks=function(Le){return Kp(I,Le)},Pe.tickFormat=function(Le,Fe){return d3_scale_linearTickFormat(I,Le,Fe)},Pe.nice=function(Le){return d2(I,Le),Ce()},Pe.copy=function(){return c2(I,K,ae,fe)},Ce()}function f2(I,K){return s.rebind(I,K,"range","rangeRound","interpolate","clamp")}function d2(I,K){return Xp(I,u2(Zp(I,K)[2])),Xp(I,u2(Zp(I,K)[2])),I}function Zp(I,K){K==null&&(K=10);var ae=_c(I),fe=ae[1]-ae[0],he=Math.pow(10,Math.floor(Math.log(fe/K)/Math.LN10)),me=K/fe*he;return me<=.15?he*=10:me<=.35?he*=5:me<=.75&&(he*=2),ae[0]=Math.ceil(ae[0]/he)*he,ae[1]=Math.floor(ae[1]/he)*he+.5*he,ae[2]=he,ae}function Kp(I,K){return s.range.apply(s,Zp(I,K))}function h2(I,K,ae,fe){function he(Pe){return(ae?Math.log(Pe<0?0:Pe):-Math.log(Pe>0?0:-Pe))/Math.log(K)}function me(Pe){return ae?Math.pow(K,Pe):-Math.pow(K,-Pe)}function Ce(Pe){return I(he(Pe))}return Ce.invert=function(Pe){return me(I.invert(Pe))},Ce.domain=function(Pe){return arguments.length?(ae=Pe[0]>=0,I.domain((fe=Pe.map(Number)).map(he)),Ce):fe},Ce.base=function(Pe){return arguments.length?(K=+Pe,I.domain(fe.map(he)),Ce):K},Ce.nice=function(){var Pe=Xp(fe.map(he),ae?Math:RD);return I.domain(Pe),fe=Pe.map(me),Ce},Ce.ticks=function(){var Pe=_c(fe),Le=[],Fe=Pe[0],He=Pe[1],Xe=Math.floor(he(Fe)),rt=Math.ceil(he(He)),vt=K%1?2:K;if(isFinite(rt-Xe)){if(ae){for(;Xe0;Ct--)Le.push(me(Xe)*Ct);for(Xe=0;Le[Xe]He;rt--);Le=Le.slice(Xe,rt)}return Le},Ce.copy=function(){return h2(I.copy(),K,ae,fe)},f2(Ce,I)}s.scale.linear=function(){return c2([0,1],[0,1],lo,!1)},s.scale.log=function(){return h2(s.scale.linear().domain([0,1]),10,!0,[1,10])};var RD={floor:function(I){return-Math.ceil(-I)},ceil:function(I){return-Math.floor(-I)}};function p2(I,K,ae){var fe=kc(K),he=kc(1/K);function me(Ce){return I(fe(Ce))}return me.invert=function(Ce){return he(I.invert(Ce))},me.domain=function(Ce){return arguments.length?(I.domain((ae=Ce.map(Number)).map(fe)),me):ae},me.ticks=function(Ce){return Kp(ae,Ce)},me.tickFormat=function(Ce,Pe){return d3_scale_linearTickFormat(ae,Ce,Pe)},me.nice=function(Ce){return me.domain(d2(ae,Ce))},me.exponent=function(Ce){return arguments.length?(fe=kc(K=Ce),he=kc(1/K),I.domain(ae.map(fe)),me):K},me.copy=function(){return p2(I.copy(),K,ae)},f2(me,I)}function kc(I){return function(K){return K<0?-Math.pow(-K,I):Math.pow(K,I)}}function g2(I,K){var ae,fe,he;function me(Pe){return fe[((ae.get(Pe)||(K.t==="range"?ae.set(Pe,I.push(Pe)):NaN))-1)%fe.length]}function Ce(Pe,Le){return s.range(I.length).map(function(Fe){return Pe+Le*Fe})}return me.domain=function(Pe){if(!arguments.length)return I;I=[],ae=new D;for(var Le,Fe=-1,He=Pe.length;++Fe0?ae[me-1]:I[0],mert?0:1;if(He=Je)return Le(He,Ct)+(Fe?Le(Fe,1-Ct):"")+"Z";var dt,xt,ot,Pt,_t,ft,Ut,Ht,Qt,Jt,gn,yn,Mn=0,bn=0,Nn=[];if((Pt=(+Ce.apply(this,arguments)||0)/2)&&(ot=fe===Mc?Math.sqrt(Fe*Fe+He*He):+fe.apply(this,arguments),Ct||(bn*=-1),He&&(bn=Mt(ot/He*Math.sin(Pt))),Fe&&(Mn=Mt(ot/Fe*Math.sin(Pt)))),He){_t=He*Math.cos(Xe+bn),ft=He*Math.sin(Xe+bn),Ut=He*Math.cos(rt-bn),Ht=He*Math.sin(rt-bn);var Yn=Math.abs(rt-Xe-2*bn)<=it?0:1;if(bn&&Sc(_t,ft,Ut,Ht)===Ct^Yn){var dr=(Xe+rt)/2;_t=He*Math.cos(dr),ft=He*Math.sin(dr),Ut=Ht=null}}else _t=ft=0;if(Fe){Qt=Fe*Math.cos(rt-Mn),Jt=Fe*Math.sin(rt-Mn),gn=Fe*Math.cos(Xe+Mn),yn=Fe*Math.sin(Xe+Mn);var en=Math.abs(Xe-rt+2*Mn)<=it?0:1;if(Mn&&Sc(Qt,Jt,gn,yn)===1-Ct^en){var fn=(Xe+rt)/2;Qt=Fe*Math.cos(fn),Jt=Fe*Math.sin(fn),gn=yn=null}}else Qt=Jt=0;if(vt>Ne&&(dt=Math.min(Math.abs(He-Fe)/2,+ae.apply(this,arguments)))>.001){xt=Fe0?0:1}function Cc(I,K,ae,fe,he){var me=I[0]-K[0],Ce=I[1]-K[1],Pe=(he?fe:-fe)/Math.sqrt(me*me+Ce*Ce),Le=Pe*Ce,Fe=-Pe*me,He=I[0]+Le,Xe=I[1]+Fe,rt=K[0]+Le,vt=K[1]+Fe,Ct=(He+rt)/2,dt=(Xe+vt)/2,xt=rt-He,ot=vt-Xe,Pt=xt*xt+ot*ot,_t=ae-fe,ft=He*vt-rt*Xe,Ut=(ot<0?-1:1)*Math.sqrt(Math.max(0,_t*_t*Pt-ft*ft)),Ht=(ft*ot-xt*Ut)/Pt,Qt=(-ft*xt-ot*Ut)/Pt,Jt=(ft*ot+xt*Ut)/Pt,gn=(-ft*xt+ot*Ut)/Pt,yn=Ht-Ct,Mn=Qt-dt,bn=Jt-Ct,Nn=gn-dt;return yn*yn+Mn*Mn>bn*bn+Nn*Nn&&(Ht=Jt,Qt=gn),[[Ht-Le,Qt-Fe],[Ht*ae/_t,Qt*ae/_t]]}function _2(){return!0}function T2(I){var K=Dn,ae=wn,fe=_2,he=Xa,me=he.key,Ce=.7;function Pe(Le){var Fe,He=[],Xe=[],rt=-1,vt=Le.length,Ct=Wt(K),dt=Wt(ae);function xt(){He.push("M",he(I(Xe),Ce))}for(;++rt1&&he.push("H",fe[0]),he.join("")},"step-before":Qp,"step-after":eg,basis:M2,"basis-open":function(I){if(I.length<4)return Xa(I);for(var K,ae=[],fe=-1,he=I.length,me=[0],Ce=[0];++fe<3;)K=I[fe],me.push(K[0]),Ce.push(K[1]);for(ae.push(ja(ji,me)+","+ja(ji,Ce)),--fe;++fe9&&(me=3*ae/Math.sqrt(me),Pe[Le]=me*fe,Pe[Le+1]=me*he);for(Le=-1;++Le<=Fe;)me=(K[Math.min(Fe,Le+1)][0]-K[Math.max(0,Le-1)][0])/(6*(1+Pe[Le]*Pe[Le])),Ce.push([me||0,Pe[Le]*me||0]);return Ce}(I))}});function Xa(I){return I.length>1?I.join("L"):I+"Z"}function k2(I){return I.join("L")+"Z"}function Qp(I){for(var K=0,ae=I.length,fe=I[0],he=[fe[0],",",fe[1]];++K1){Pe=K[1],me=I[Le],Le++,fe+="C"+(he[0]+Ce[0])+","+(he[1]+Ce[1])+","+(me[0]-Pe[0])+","+(me[1]-Pe[1])+","+me[0]+","+me[1];for(var Fe=2;Feit)+",1 "+He}function Le(Fe,He,Xe,rt){return"Q 0,0 "+rt}return me.radius=function(Fe){return arguments.length?(ae=Wt(Fe),me):ae},me.source=function(Fe){return arguments.length?(I=Wt(Fe),me):I},me.target=function(Fe){return arguments.length?(K=Wt(Fe),me):K},me.startAngle=function(Fe){return arguments.length?(fe=Wt(Fe),me):fe},me.endAngle=function(Fe){return arguments.length?(he=Wt(Fe),me):he},me},s.svg.diagonal=function(){var I=P2,K=D2,ae=E2;function fe(he,me){var Ce=I.call(this,he,me),Pe=K.call(this,he,me),Le=(Ce.y+Pe.y)/2,Fe=[Ce,{x:Ce.x,y:Le},{x:Pe.x,y:Le},Pe];return"M"+(Fe=Fe.map(ae))[0]+"C"+Fe[1]+" "+Fe[2]+" "+Fe[3]}return fe.source=function(he){return arguments.length?(I=Wt(he),fe):I},fe.target=function(he){return arguments.length?(K=Wt(he),fe):K},fe.projection=function(he){return arguments.length?(ae=he,fe):ae},fe},s.svg.diagonal.radial=function(){var I=s.svg.diagonal(),K=E2,ae=I.projection;return I.projection=function(fe){return arguments.length?ae(function(he){return function(){var me=he.apply(this,arguments),Ce=me[0],Pe=me[1]-ut;return[Ce*Math.cos(Pe),Ce*Math.sin(Pe)]}}(K=fe)):K},I},s.svg.symbol=function(){var I=UD,K=WD;function ae(fe,he){return(L2.get(I.call(this,fe,he))||R2)(K.call(this,fe,he))}return ae.type=function(fe){return arguments.length?(I=Wt(fe),ae):I},ae.size=function(fe){return arguments.length?(K=Wt(fe),ae):K},ae};var L2=s.map({circle:R2,cross:function(I){var K=Math.sqrt(I/5)/2;return"M"+-3*K+","+-K+"H"+-K+"V"+-3*K+"H"+K+"V"+-K+"H"+3*K+"V"+K+"H"+K+"V"+3*K+"H"+-K+"V"+K+"H"+-3*K+"Z"},diamond:function(I){var K=Math.sqrt(I/(2*I2)),ae=K*I2;return"M0,"+-K+"L"+ae+",0 0,"+K+" "+-ae+",0Z"},square:function(I){var K=Math.sqrt(I)/2;return"M"+-K+","+-K+"L"+K+","+-K+" "+K+","+K+" "+-K+","+K+"Z"},"triangle-down":function(I){var K=Math.sqrt(I/Ac),ae=K*Ac/2;return"M0,"+ae+"L"+K+","+-ae+" "+-K+","+-ae+"Z"},"triangle-up":function(I){var K=Math.sqrt(I/Ac),ae=K*Ac/2;return"M0,"+-ae+"L"+K+","+ae+" "+-K+","+ae+"Z"}});s.svg.symbolTypes=L2.keys();var Ac=Math.sqrt(3),I2=Math.tan(30*pt);se.transition=function(I){for(var K,ae,fe=so||++N2,he=ig(I),me=[],Ce=Dc||{time:Date.now(),ease:XP,delay:0,duration:250},Pe=-1,Le=this.length;++Pe0;)Fe[--ot].call(I,xt);if(dt>=1)return Xe.event&&Xe.event.end.call(I,I.__data__,K),--He.count?delete He[fe]:delete I[ae],1}Xe||(me=he.time,Ce=nn(function(Ct){var dt=Xe.delay;if(Ce.t=dt+me,dt<=Ct)return rt(Ct-dt);Ce.c=rt},0,me),Xe=He[fe]={tween:new D,time:me,timer:Ce,delay:he.delay,duration:he.duration,ease:he.ease,index:K},he=null,++He.count)}zr.call=se.call,zr.empty=se.empty,zr.node=se.node,zr.size=se.size,s.transition=function(I,K){return I&&I.transition?so?I.transition(K):I:s.selection().transition(I)},s.transition.prototype=zr,zr.select=function(I){var K,ae,fe,he=this.id,me=this.namespace,Ce=[];I=pe(I);for(var Pe=-1,Le=this.length;++Perect,.s>rect").attr("width",me[1]-me[0])}function vt(dt){dt.select(".extent").attr("y",Ce[0]),dt.selectAll(".extent,.e>rect,.w>rect").attr("height",Ce[1]-Ce[0])}function Ct(){var dt,xt,ot=this,Pt=s.select(s.event.target),_t=ae.of(ot,arguments),ft=s.select(ot),Ut=Pt.datum(),Ht=!/^(n|s)$/.test(Ut)&&fe,Qt=!/^(e|w)$/.test(Ut)&&he,Jt=Pt.classed("extent"),gn=lt(ot),yn=s.mouse(ot),Mn=s.select(m(ot)).on("keydown.brush",function(){s.event.keyCode==32&&(Jt||(dt=null,yn[0]-=me[1],yn[1]-=Ce[1],Jt=2),ee())}).on("keyup.brush",function(){s.event.keyCode==32&&Jt==2&&(yn[0]+=me[1],yn[1]+=Ce[1],Jt=0,ee())});if(s.event.changedTouches?Mn.on("touchmove.brush",Yn).on("touchend.brush",en):Mn.on("mousemove.brush",Yn).on("mouseup.brush",en),ft.interrupt().selectAll("*").interrupt(),Jt)yn[0]=me[0]-yn[0],yn[1]=Ce[0]-yn[1];else if(Ut){var bn=+/w$/.test(Ut),Nn=+/^n/.test(Ut);xt=[me[1-bn]-yn[0],Ce[1-Nn]-yn[1]],yn[0]=me[bn],yn[1]=Ce[Nn]}else s.event.altKey&&(dt=yn.slice());function Yn(){var fn=s.mouse(ot),Rn=!1;xt&&(fn[0]+=xt[0],fn[1]+=xt[1]),Jt||(s.event.altKey?(dt||(dt=[(me[0]+me[1])/2,(Ce[0]+Ce[1])/2]),yn[0]=me[+(fn[0]1?L-1:0),H=1;H1?L-1:0),H=1;H1?L-1:0),H=1;H1?L-1:0),H=1;H"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(F,A,z){var B=[null];B.push.apply(B,A);var $=new(Function.bind.apply(F,B));return z&&m($,z.prototype),$},p.apply(null,arguments)}function m(D,O){return m=Object.setPrototypeOf||function(R,F){return R.__proto__=F,R},m(D,O)}function y(D){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},y(D)}function v(D){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},v(D)}var g=n(43827).inspect,b=n(79616).codes.ERR_INVALID_ARG_TYPE;function x(D,O,R){return(R===void 0||R>D.length)&&(R=D.length),D.substring(R-O.length,R)===O}var _="",w="",k="",T="",M={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function S(D){var O=Object.keys(D),R=Object.create(Object.getPrototypeOf(D));return O.forEach(function(F){R[F]=D[F]}),Object.defineProperty(R,"message",{value:D.message}),R}function C(D){return g(D,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var P=function(D){function O(A){var z;if(function(te,ee){if(!(te instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,O),v(A)!=="object"||A===null)throw new b("options","Object",A);var B=A.message,$=A.operator,j=A.stackStartFn,N=A.actual,E=A.expected,W=Error.stackTraceLimit;if(Error.stackTraceLimit=0,B!=null)z=u(this,y(O).call(this,String(B)));else if(l.stderr&&l.stderr.isTTY&&(l.stderr&&l.stderr.getColorDepth&&l.stderr.getColorDepth()!==1?(_="\x1B[34m",w="\x1B[32m",T="\x1B[39m",k="\x1B[31m"):(_="",w="",T="",k="")),v(N)==="object"&&N!==null&&v(E)==="object"&&E!==null&&"stack"in N&&N instanceof Error&&"stack"in E&&E instanceof Error&&(N=S(N),E=S(E)),$==="deepStrictEqual"||$==="strictEqual")z=u(this,y(O).call(this,function(te,ee,U){var Q="",Y="",Z=0,X="",re=!1,ie=C(te),le=ie.split(` +`))}throw q}},C.strict=k(E,C,{equal:C.strictEqual,deepEqual:C.deepStrictEqual,notEqual:C.notStrictEqual,notDeepEqual:C.notDeepStrictEqual}),C.strict.strict=C.strict},73894:function(o,a,n){var l=n(90386);function f(D,O,R){return O in D?Object.defineProperty(D,O,{value:R,enumerable:!0,configurable:!0,writable:!0}):D[O]=R,D}function s(D,O){for(var R=0;R"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(F,A,z){var B=[null];B.push.apply(B,A);var $=new(Function.bind.apply(F,B));return z&&m($,z.prototype),$},p.apply(null,arguments)}function m(D,O){return m=Object.setPrototypeOf||function(R,F){return R.__proto__=F,R},m(D,O)}function y(D){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},y(D)}function v(D){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},v(D)}var g=n(43827).inspect,b=n(79616).codes.ERR_INVALID_ARG_TYPE;function x(D,O,R){return(R===void 0||R>D.length)&&(R=D.length),D.substring(R-O.length,R)===O}var _="",w="",k="",T="",M={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function S(D){var O=Object.keys(D),R=Object.create(Object.getPrototypeOf(D));return O.forEach(function(F){R[F]=D[F]}),Object.defineProperty(R,"message",{value:D.message}),R}function C(D){return g(D,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var P=function(D){function O(A){var z;if(function(te,ee){if(!(te instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,O),v(A)!=="object"||A===null)throw new b("options","Object",A);var B=A.message,$=A.operator,j=A.stackStartFn,N=A.actual,E=A.expected,W=Error.stackTraceLimit;if(Error.stackTraceLimit=0,B!=null)z=c(this,y(O).call(this,String(B)));else if(l.stderr&&l.stderr.isTTY&&(l.stderr&&l.stderr.getColorDepth&&l.stderr.getColorDepth()!==1?(_="\x1B[34m",w="\x1B[32m",T="\x1B[39m",k="\x1B[31m"):(_="",w="",T="",k="")),v(N)==="object"&&N!==null&&v(E)==="object"&&E!==null&&"stack"in N&&N instanceof Error&&"stack"in E&&E instanceof Error&&(N=S(N),E=S(E)),$==="deepStrictEqual"||$==="strictEqual")z=c(this,y(O).call(this,function(te,ee,U){var Q="",Y="",Z=0,X="",re=!1,ie=C(te),le=ie.split(` `),se=C(ee).split(` `),pe=0,Te="";if(U==="strictEqual"&&v(te)==="object"&&v(ee)==="object"&&te!==null&&ee!==null&&(U="strictEqualObject"),le.length===1&&se.length===1&&le[0]!==se[0]){var Se=le[0].length+se[0].length;if(Se<=10){if(!(v(te)==="object"&&te!==null||v(ee)==="object"&&ee!==null||te===0&&ee===0))return"".concat(M[U],` @@ -45,7 +45,7 @@ var JD=Object.defineProperty;var QD=(e,t,r)=>t in e?JD(e,t,{enumerable:!0,config `).concat(_,"...").concat(T).concat(Q,` `)+"".concat(_,"...").concat(T)}return"".concat(ne).concat(re?de:"",` `).concat(Y).concat(Q).concat(X).concat(Te)}(N,E,$)));else if($==="notDeepStrictEqual"||$==="notStrictEqual"){var G=M[$],L=C(N).split(` -`);if($==="notStrictEqual"&&v(N)==="object"&&N!==null&&(G=M.notStrictEqualObject),L.length>30)for(L[26]="".concat(_,"...").concat(T);L.length>27;)L.pop();z=L.length===1?u(this,y(O).call(this,"".concat(G," ").concat(L[0]))):u(this,y(O).call(this,"".concat(G,` +`);if($==="notStrictEqual"&&v(N)==="object"&&N!==null&&(G=M.notStrictEqualObject),L.length>30)for(L[26]="".concat(_,"...").concat(T);L.length>27;)L.pop();z=L.length===1?c(this,y(O).call(this,"".concat(G," ").concat(L[0]))):c(this,y(O).call(this,"".concat(G,` `).concat(L.join(` `),` @@ -57,9 +57,9 @@ var JD=Object.defineProperty;var QD=(e,t,r)=>t in e?JD(e,t,{enumerable:!0,config should equal -`):H=" ".concat($," ").concat(H)),z=u(this,y(O).call(this,"".concat(q).concat(H)))}return Error.stackTraceLimit=W,z.generatedMessage=!B,Object.defineProperty(d(z),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),z.code="ERR_ASSERTION",z.actual=N,z.expected=E,z.operator=$,Error.captureStackTrace&&Error.captureStackTrace(d(z),j),z.stack,z.name="AssertionError",u(z)}var R,F;return function(A,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(z&&z.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),z&&m(A,z)}(O,D),R=O,F=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:g.custom,value:function(A,z){return g(this,function(B){for(var $=1;$2?"one of ".concat(v," ").concat(y.slice(0,g-1).join(", "),", or ")+y[g-1]:g===2?"one of ".concat(v," ").concat(y[0]," or ").concat(y[1]):"of ".concat(v," ").concat(y[0])}return"of ".concat(v," ").concat(String(y))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",function(y,v,g){var b,x,_,w,k;if(u===void 0&&(u=n(32791)),u(typeof y=="string","'name' must be a string"),typeof v=="string"&&(x="not ",v.substr(0,4)===x)?(b="must not be",v=v.replace(/^not /,"")):b="must be",function(M,S,C){return(C===void 0||C>M.length)&&(C=M.length),M.substring(C-9,C)===S}(y," argument"))_="The ".concat(y," ").concat(b," ").concat(m(v,"type"));else{var T=(typeof k!="number"&&(k=0),k+1>(w=y).length||w.indexOf(".",k)===-1?"argument":"property");_='The "'.concat(y,'" ').concat(T," ").concat(b," ").concat(m(v,"type"))}return _+". Received type ".concat(l(g))},TypeError),p("ERR_INVALID_ARG_VALUE",function(y,v){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";d===void 0&&(d=n(43827));var b=d.inspect(v);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(y,"' ").concat(g,". Received ").concat(b)},TypeError),p("ERR_INVALID_RETURN_VALUE",function(y,v,g){var b;return b=g&&g.constructor&&g.constructor.name?"instance of ".concat(g.constructor.name):"type ".concat(l(g)),"Expected ".concat(y,' to be returned from the "').concat(v,'"')+" function but got ".concat(b,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var y=arguments.length,v=new Array(y),g=0;g0,"At least one arg needs to be specified");var b="The ",x=v.length;switch(v=v.map(function(_){return'"'.concat(_,'"')}),x){case 1:b+="".concat(v[0]," argument");break;case 2:b+="".concat(v[0]," and ").concat(v[1]," arguments");break;default:b+=v.slice(0,x-1).join(", "),b+=", and ".concat(v[x-1]," arguments")}return"".concat(b," must be specified")},TypeError),o.exports.codes=h},74061:function(o,a,n){function l(Z,X){return function(re){if(Array.isArray(re))return re}(Z)||function(re,ie){var le=[],se=!0,pe=!1,Te=void 0;try{for(var Se,Oe=re[Symbol.iterator]();!(se=(Se=Oe.next()).done)&&(le.push(Se.value),!ie||le.length!==ie);se=!0);}catch(Me){pe=!0,Te=Me}finally{try{se||Oe.return==null||Oe.return()}finally{if(pe)throw Te}}return le}(Z,X)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function f(Z){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},f(Z)}var s=/a/g.flags!==void 0,u=function(Z){var X=[];return Z.forEach(function(re){return X.push(re)}),X},d=function(Z){var X=[];return Z.forEach(function(re,ie){return X.push([ie,re])}),X},h=Object.is?Object.is:n(64003),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},m=Number.isNaN?Number.isNaN:n(15567);function y(Z){return Z.call.bind(Z)}var v=y(Object.prototype.hasOwnProperty),g=y(Object.prototype.propertyIsEnumerable),b=y(Object.prototype.toString),x=n(43827).types,_=x.isAnyArrayBuffer,w=x.isArrayBufferView,k=x.isDate,T=x.isMap,M=x.isRegExp,S=x.isSet,C=x.isNativeError,P=x.isBoxedPrimitive,D=x.isNumberObject,O=x.isStringObject,R=x.isBooleanObject,F=x.isBigIntObject,A=x.isSymbolObject,z=x.isFloat32Array,B=x.isFloat64Array;function $(Z){if(Z.length===0||Z.length>10)return!0;for(var X=0;X57)return!0}return Z.length===10&&Z>=Math.pow(2,32)}function j(Z){return Object.keys(Z).filter($).concat(p(Z).filter(Object.prototype.propertyIsEnumerable.bind(Z)))}function N(Z,X){if(Z===X)return 0;for(var re=Z.length,ie=X.length,le=0,se=Math.min(re,ie);le0?g-4:g;for(y=0;y>16&255,x[_++]=m>>8&255,x[_++]=255&m;return b===2&&(m=l[p.charCodeAt(y)]<<2|l[p.charCodeAt(y+1)]>>4,x[_++]=255&m),b===1&&(m=l[p.charCodeAt(y)]<<10|l[p.charCodeAt(y+1)]<<4|l[p.charCodeAt(y+2)]>>2,x[_++]=m>>8&255,x[_++]=255&m),x},a.fromByteArray=function(p){for(var m,y=p.length,v=y%3,g=[],b=16383,x=0,_=y-v;x<_;x+=b)g.push(h(p,x,x+b>_?_:x+b));return v===1?(m=p[y-1],g.push(n[m>>2]+n[m<<4&63]+"==")):v===2&&(m=(p[y-2]<<8)+p[y-1],g.push(n[m>>10]+n[m>>4&63]+n[m<<2&63]+"=")),g.join("")};for(var n=[],l=[],f=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0;u<64;++u)n[u]=s[u],l[s.charCodeAt(u)]=u;function d(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=p.indexOf("=");return y===-1&&(y=m),[y,y===m?0:4-y%4]}function h(p,m,y){for(var v,g,b=[],x=m;x>18&63]+n[g>>12&63]+n[g>>6&63]+n[63&g]);return b.join("")}l[45]=62,l[95]=63},6614:function(o,a,n){var l=n(68318),f=n(68222),s=f(l("String.prototype.indexOf"));o.exports=function(u,d){var h=l(u,!!d);return typeof h=="function"&&s(u,".prototype.")>-1?f(h):h}},68222:function(o,a,n){var l=n(77575),f=n(68318),s=f("%Function.prototype.apply%"),u=f("%Function.prototype.call%"),d=f("%Reflect.apply%",!0)||l.call(u,s),h=f("%Object.getOwnPropertyDescriptor%",!0),p=f("%Object.defineProperty%",!0),m=f("%Math.max%");if(p)try{p({},"a",{value:1})}catch{p=null}o.exports=function(v){var g=d(l,u,arguments);return h&&p&&h(g,"length").configurable&&p(g,"length",{value:1+m(0,v.length-(arguments.length-1))}),g};var y=function(){return d(l,s,arguments)};p?p(o.exports,"apply",{value:y}):o.exports.apply=y},60721:function(o,a,n){function l(_,w){if((k=(_=w?_.toExponential(w-1):_.toExponential()).indexOf("e"))<0)return null;var k,T=_.slice(0,k);return[T.length>1?T[0]+T.slice(2):T,+_.slice(k+1)]}n.d(a,{WU:function(){return v},FF:function(){return x}});var f,s=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function u(_){if(!(w=s.exec(_)))throw new Error("invalid format: "+_);var w;return new d({fill:w[1],align:w[2],sign:w[3],symbol:w[4],zero:w[5],width:w[6],comma:w[7],precision:w[8]&&w[8].slice(1),trim:w[9],type:w[10]})}function d(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.type+""}function h(_,w){var k=l(_,w);if(!k)return _+"";var T=k[0],M=k[1];return M<0?"0."+new Array(-M).join("0")+T:T.length>M+1?T.slice(0,M+1)+"."+T.slice(M+1):T+new Array(M-T.length+2).join("0")}u.prototype=d.prototype,d.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var p={"%":function(_,w){return(100*_).toFixed(w)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:function(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)},e:function(_,w){return _.toExponential(w)},f:function(_,w){return _.toFixed(w)},g:function(_,w){return _.toPrecision(w)},o:function(_){return Math.round(_).toString(8)},p:function(_,w){return h(100*_,w)},r:h,s:function(_,w){var k=l(_,w);if(!k)return _+"";var T=k[0],M=k[1],S=M-(f=3*Math.max(-8,Math.min(8,Math.floor(M/3))))+1,C=T.length;return S===C?T:S>C?T+new Array(S-C+1).join("0"):S>0?T.slice(0,S)+"."+T.slice(S):"0."+new Array(1-S).join("0")+l(_,Math.max(0,w+S-1))[0]},X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function m(_){return _}var y,v,g=Array.prototype.map,b=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function x(_){var w,k,T=_.grouping===void 0||_.thousands===void 0?m:(w=g.call(_.grouping,Number),k=_.thousands+"",function(A,z){for(var B=A.length,$=[],j=0,N=w[0],E=0;B>0&&N>0&&(E+N+1>z&&(N=Math.max(1,z-E)),$.push(A.substring(B-=N,B+N)),!((E+=N+1)>z));)N=w[j=(j+1)%w.length];return $.reverse().join(k)}),M=_.currency===void 0?"":_.currency[0]+"",S=_.currency===void 0?"":_.currency[1]+"",C=_.decimal===void 0?".":_.decimal+"",P=_.numerals===void 0?m:function(A){return function(z){return z.replace(/[0-9]/g,function(B){return A[+B]})}}(g.call(_.numerals,String)),D=_.percent===void 0?"%":_.percent+"",O=_.minus===void 0?"-":_.minus+"",R=_.nan===void 0?"NaN":_.nan+"";function F(A){var z=(A=u(A)).fill,B=A.align,$=A.sign,j=A.symbol,N=A.zero,E=A.width,W=A.comma,G=A.precision,L=A.trim,q=A.type;q==="n"?(W=!0,q="g"):p[q]||(G===void 0&&(G=12),L=!0,q="g"),(N||z==="0"&&B==="=")&&(N=!0,z="0",B="=");var H=j==="$"?M:j==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",V=j==="$"?S:/[%p]/.test(q)?D:"",te=p[q],ee=/[defgprs%]/.test(q);function U(Q){var Y,Z,X,re=H,ie=V;if(q==="c")ie=te(Q)+ie,Q="";else{var le=(Q=+Q)<0||1/Q<0;if(Q=isNaN(Q)?R:te(Math.abs(Q),G),L&&(Q=function(Te){e:for(var Se,Oe=Te.length,Me=1,ce=-1;Me0&&(ce=0)}return ce>0?Te.slice(0,ce)+Te.slice(Se+1):Te}(Q)),le&&+Q==0&&$!=="+"&&(le=!1),re=(le?$==="("?$:O:$==="-"||$==="("?"":$)+re,ie=(q==="s"?b[8+f/3]:"")+ie+(le&&$==="("?")":""),ee){for(Y=-1,Z=Q.length;++Y(X=Q.charCodeAt(Y))||X>57){ie=(X===46?C+Q.slice(Y+1):Q.slice(Y))+ie,Q=Q.slice(0,Y);break}}}W&&!N&&(Q=T(Q,1/0));var se=re.length+Q.length+ie.length,pe=se>1)+re+Q+ie+pe.slice(se);break;default:Q=pe+re+Q+ie}return P(Q)}return G=G===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,G)):Math.max(0,Math.min(20,G)),U.toString=function(){return A+""},U}return{format:F,formatPrefix:function(A,z){var B,$=F(((A=u(A)).type="f",A)),j=3*Math.max(-8,Math.min(8,Math.floor((B=z,((B=l(Math.abs(B)))?B[1]:NaN)/3)))),N=Math.pow(10,-j),E=b[8+j/3];return function(W){return $(N*W)+E}}}}y=x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),v=y.format,y.formatPrefix},84096:function(o,a,n){n.d(a,{i$:function(){return b},Dq:function(){return v},g0:function(){return x}});var l=n(58176),f=n(48480),s=n(59879),u=n(82301),d=n(34823),h=n(79791);function p(ze){if(0<=ze.y&&ze.y<100){var Ne=new Date(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L);return Ne.setFullYear(ze.y),Ne}return new Date(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L)}function m(ze){if(0<=ze.y&&ze.y<100){var Ne=new Date(Date.UTC(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L));return Ne.setUTCFullYear(ze.y),Ne}return new Date(Date.UTC(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L))}function y(ze,Ne,Qe){return{y:ze,m:Ne,d:Qe,H:0,M:0,S:0,L:0}}function v(ze){var Ne=ze.dateTime,Qe=ze.date,it=ze.time,kt=ze.periods,Je=ze.days,ut=ze.shortDays,pt=ze.months,It=ze.shortMonths,Mt=C(kt),zt=P(kt),wt=C(Je),ve=P(Je),_e=C(ut),Ve=P(ut),We=C(pt),Ze=P(pt),Ge=C(It),Ke=P(It),nt={a:function(St){return ut[St.getDay()]},A:function(St){return Je[St.getDay()]},b:function(St){return It[St.getMonth()]},B:function(St){return pt[St.getMonth()]},c:null,d:Q,e:Q,f:ie,H:Y,I:Z,j:X,L:re,m:le,M:se,p:function(St){return kt[+(St.getHours()>=12)]},q:function(St){return 1+~~(St.getMonth()/3)},Q:ct,s:bt,S:pe,u:Te,U:Se,V:Oe,w:Me,W:ce,x:null,X:null,y:ye,Y:J,Z:ne,"%":lt},st={a:function(St){return ut[St.getUTCDay()]},A:function(St){return Je[St.getUTCDay()]},b:function(St){return It[St.getUTCMonth()]},B:function(St){return pt[St.getUTCMonth()]},c:null,d:de,e:de,f:we,H:xe,I:ue,j:ge,L:be,m:ke,M:Ae,p:function(St){return kt[+(St.getUTCHours()>=12)]},q:function(St){return 1+~~(St.getUTCMonth()/3)},Q:ct,s:bt,S:Ee,u:De,U:Re,V:Ie,w:Be,W:Ue,x:null,X:null,y:qe,Y:Ye,Z:at,"%":lt},mt={a:function(St,Nt,Dt){var gt=_e.exec(Nt.slice(Dt));return gt?(St.w=Ve[gt[0].toLowerCase()],Dt+gt[0].length):-1},A:function(St,Nt,Dt){var gt=wt.exec(Nt.slice(Dt));return gt?(St.w=ve[gt[0].toLowerCase()],Dt+gt[0].length):-1},b:function(St,Nt,Dt){var gt=Ge.exec(Nt.slice(Dt));return gt?(St.m=Ke[gt[0].toLowerCase()],Dt+gt[0].length):-1},B:function(St,Nt,Dt){var gt=We.exec(Nt.slice(Dt));return gt?(St.m=Ze[gt[0].toLowerCase()],Dt+gt[0].length):-1},c:function(St,Nt,Dt){return Vt(St,Ne,Nt,Dt)},d:E,e:E,f:V,H:G,I:G,j:W,L:H,m:N,M:L,p:function(St,Nt,Dt){var gt=Mt.exec(Nt.slice(Dt));return gt?(St.p=zt[gt[0].toLowerCase()],Dt+gt[0].length):-1},q:j,Q:ee,s:U,S:q,u:O,U:R,V:F,w:D,W:A,x:function(St,Nt,Dt){return Vt(St,Qe,Nt,Dt)},X:function(St,Nt,Dt){return Vt(St,it,Nt,Dt)},y:B,Y:z,Z:$,"%":te};function tt(St,Nt){return function(Dt){var gt,ht,yt,qt=[],Et=-1,jt=0,Tt=St.length;for(Dt instanceof Date||(Dt=new Date(+Dt));++Et53)return null;"w"in yt||(yt.w=1),"Z"in yt?(ht=(gt=m(y(yt.y,0,1))).getUTCDay(),gt=ht>4||ht===0?l.l6.ceil(gt):(0,l.l6)(gt),gt=f.Z.offset(gt,7*(yt.V-1)),yt.y=gt.getUTCFullYear(),yt.m=gt.getUTCMonth(),yt.d=gt.getUTCDate()+(yt.w+6)%7):(ht=(gt=p(y(yt.y,0,1))).getDay(),gt=ht>4||ht===0?s.wA.ceil(gt):(0,s.wA)(gt),gt=u.Z.offset(gt,7*(yt.V-1)),yt.y=gt.getFullYear(),yt.m=gt.getMonth(),yt.d=gt.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),ht="Z"in yt?m(y(yt.y,0,1)).getUTCDay():p(y(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(ht+5)%7:yt.w+7*yt.U-(ht+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,m(yt)):p(yt)}}function Vt(St,Nt,Dt,gt){for(var ht,yt,qt=0,Et=Nt.length,jt=Dt.length;qt=jt)return-1;if((ht=Nt.charCodeAt(qt++))===37){if(ht=Nt.charAt(qt++),!(yt=mt[ht in _?Nt.charAt(qt++):ht])||(gt=yt(St,Dt,gt))<0)return-1}else if(ht!=Dt.charCodeAt(gt++))return-1}return gt}return nt.x=tt(Qe,nt),nt.X=tt(it,nt),nt.c=tt(Ne,nt),st.x=tt(Qe,st),st.X=tt(it,st),st.c=tt(Ne,st),{format:function(St){var Nt=tt(St+="",nt);return Nt.toString=function(){return St},Nt},parse:function(St){var Nt=Ft(St+="",!1);return Nt.toString=function(){return St},Nt},utcFormat:function(St){var Nt=tt(St+="",st);return Nt.toString=function(){return St},Nt},utcParse:function(St){var Nt=Ft(St+="",!0);return Nt.toString=function(){return St},Nt}}}var g,b,x,_={"-":"",_:" ",0:"0"},w=/^\s*\d+/,k=/^%/,T=/[\\^$*+?|[\]().{}]/g;function M(ze,Ne,Qe){var it=ze<0?"-":"",kt=(it?-ze:ze)+"",Je=kt.length;return it+(Je68?1900:2e3),Qe+it[0].length):-1}function $(ze,Ne,Qe){var it=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ne.slice(Qe,Qe+6));return it?(ze.Z=it[1]?0:-(it[2]+(it[3]||"00")),Qe+it[0].length):-1}function j(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+1));return it?(ze.q=3*it[0]-3,Qe+it[0].length):-1}function N(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.m=it[0]-1,Qe+it[0].length):-1}function E(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.d=+it[0],Qe+it[0].length):-1}function W(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+3));return it?(ze.m=0,ze.d=+it[0],Qe+it[0].length):-1}function G(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.H=+it[0],Qe+it[0].length):-1}function L(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.M=+it[0],Qe+it[0].length):-1}function q(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.S=+it[0],Qe+it[0].length):-1}function H(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+3));return it?(ze.L=+it[0],Qe+it[0].length):-1}function V(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+6));return it?(ze.L=Math.floor(it[0]/1e3),Qe+it[0].length):-1}function te(ze,Ne,Qe){var it=k.exec(Ne.slice(Qe,Qe+1));return it?Qe+it[0].length:-1}function ee(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe));return it?(ze.Q=+it[0],Qe+it[0].length):-1}function U(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe));return it?(ze.s=+it[0],Qe+it[0].length):-1}function Q(ze,Ne){return M(ze.getDate(),Ne,2)}function Y(ze,Ne){return M(ze.getHours(),Ne,2)}function Z(ze,Ne){return M(ze.getHours()%12||12,Ne,2)}function X(ze,Ne){return M(1+u.Z.count((0,d.Z)(ze),ze),Ne,3)}function re(ze,Ne){return M(ze.getMilliseconds(),Ne,3)}function ie(ze,Ne){return re(ze,Ne)+"000"}function le(ze,Ne){return M(ze.getMonth()+1,Ne,2)}function se(ze,Ne){return M(ze.getMinutes(),Ne,2)}function pe(ze,Ne){return M(ze.getSeconds(),Ne,2)}function Te(ze){var Ne=ze.getDay();return Ne===0?7:Ne}function Se(ze,Ne){return M(s.OM.count((0,d.Z)(ze)-1,ze),Ne,2)}function Oe(ze,Ne){var Qe=ze.getDay();return ze=Qe>=4||Qe===0?(0,s.bL)(ze):s.bL.ceil(ze),M(s.bL.count((0,d.Z)(ze),ze)+((0,d.Z)(ze).getDay()===4),Ne,2)}function Me(ze){return ze.getDay()}function ce(ze,Ne){return M(s.wA.count((0,d.Z)(ze)-1,ze),Ne,2)}function ye(ze,Ne){return M(ze.getFullYear()%100,Ne,2)}function J(ze,Ne){return M(ze.getFullYear()%1e4,Ne,4)}function ne(ze){var Ne=ze.getTimezoneOffset();return(Ne>0?"-":(Ne*=-1,"+"))+M(Ne/60|0,"0",2)+M(Ne%60,"0",2)}function de(ze,Ne){return M(ze.getUTCDate(),Ne,2)}function xe(ze,Ne){return M(ze.getUTCHours(),Ne,2)}function ue(ze,Ne){return M(ze.getUTCHours()%12||12,Ne,2)}function ge(ze,Ne){return M(1+f.Z.count((0,h.Z)(ze),ze),Ne,3)}function be(ze,Ne){return M(ze.getUTCMilliseconds(),Ne,3)}function we(ze,Ne){return be(ze,Ne)+"000"}function ke(ze,Ne){return M(ze.getUTCMonth()+1,Ne,2)}function Ae(ze,Ne){return M(ze.getUTCMinutes(),Ne,2)}function Ee(ze,Ne){return M(ze.getUTCSeconds(),Ne,2)}function De(ze){var Ne=ze.getUTCDay();return Ne===0?7:Ne}function Re(ze,Ne){return M(l.Ox.count((0,h.Z)(ze)-1,ze),Ne,2)}function Ie(ze,Ne){var Qe=ze.getUTCDay();return ze=Qe>=4||Qe===0?(0,l.hB)(ze):l.hB.ceil(ze),M(l.hB.count((0,h.Z)(ze),ze)+((0,h.Z)(ze).getUTCDay()===4),Ne,2)}function Be(ze){return ze.getUTCDay()}function Ue(ze,Ne){return M(l.l6.count((0,h.Z)(ze)-1,ze),Ne,2)}function qe(ze,Ne){return M(ze.getUTCFullYear()%100,Ne,2)}function Ye(ze,Ne){return M(ze.getUTCFullYear()%1e4,Ne,4)}function at(){return"+0000"}function lt(){return"%"}function ct(ze){return+ze}function bt(ze){return Math.floor(+ze/1e3)}g=v({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),b=g.format,g.parse,x=g.utcFormat,g.utcParse},82301:function(o,a,n){n.d(a,{a:function(){return u}});var l=n(30052),f=n(54263),s=(0,l.Z)(function(d){d.setHours(0,0,0,0)},function(d,h){d.setDate(d.getDate()+h)},function(d,h){return(h-d-(h.getTimezoneOffset()-d.getTimezoneOffset())*f.yB)/f.UD},function(d){return d.getDate()-1});a.Z=s;var u=s.range},54263:function(o,a,n){n.d(a,{UD:function(){return u},Y2:function(){return s},Ym:function(){return l},iM:function(){return d},yB:function(){return f}});var l=1e3,f=6e4,s=36e5,u=864e5,d=6048e5},81041:function(o,a,n){n.r(a),n.d(a,{timeDay:function(){return w.Z},timeDays:function(){return w.a},timeFriday:function(){return k.mC},timeFridays:function(){return k.b$},timeHour:function(){return x},timeHours:function(){return _},timeInterval:function(){return l.Z},timeMillisecond:function(){return s},timeMilliseconds:function(){return u},timeMinute:function(){return v},timeMinutes:function(){return g},timeMonday:function(){return k.wA},timeMondays:function(){return k.bJ},timeMonth:function(){return M},timeMonths:function(){return S},timeSaturday:function(){return k.EY},timeSaturdays:function(){return k.Ff},timeSecond:function(){return p},timeSeconds:function(){return m},timeSunday:function(){return k.OM},timeSundays:function(){return k.vm},timeThursday:function(){return k.bL},timeThursdays:function(){return k.$t},timeTuesday:function(){return k.sy},timeTuesdays:function(){return k.aU},timeWednesday:function(){return k.zg},timeWednesdays:function(){return k.Ld},timeWeek:function(){return k.OM},timeWeeks:function(){return k.vm},timeYear:function(){return C.Z},timeYears:function(){return C.g},utcDay:function(){return z.Z},utcDays:function(){return z.y},utcFriday:function(){return B.QQ},utcFridays:function(){return B.fz},utcHour:function(){return F},utcHours:function(){return A},utcMillisecond:function(){return s},utcMilliseconds:function(){return u},utcMinute:function(){return D},utcMinutes:function(){return O},utcMonday:function(){return B.l6},utcMondays:function(){return B.$3},utcMonth:function(){return j},utcMonths:function(){return N},utcSaturday:function(){return B.g4},utcSaturdays:function(){return B.Q_},utcSecond:function(){return p},utcSeconds:function(){return m},utcSunday:function(){return B.Ox},utcSundays:function(){return B.SU},utcThursday:function(){return B.hB},utcThursdays:function(){return B.xj},utcTuesday:function(){return B.J1},utcTuesdays:function(){return B.DK},utcWednesday:function(){return B.b3},utcWednesdays:function(){return B.uy},utcWeek:function(){return B.Ox},utcWeeks:function(){return B.SU},utcYear:function(){return E.Z},utcYears:function(){return E.D}});var l=n(30052),f=(0,l.Z)(function(){},function(W,G){W.setTime(+W+G)},function(W,G){return G-W});f.every=function(W){return W=Math.floor(W),isFinite(W)&&W>0?W>1?(0,l.Z)(function(G){G.setTime(Math.floor(G/W)*W)},function(G,L){G.setTime(+G+L*W)},function(G,L){return(L-G)/W}):f:null};var s=f,u=f.range,d=n(54263),h=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds())},function(W,G){W.setTime(+W+G*d.Ym)},function(W,G){return(G-W)/d.Ym},function(W){return W.getUTCSeconds()}),p=h,m=h.range,y=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*d.Ym)},function(W,G){W.setTime(+W+G*d.yB)},function(W,G){return(G-W)/d.yB},function(W){return W.getMinutes()}),v=y,g=y.range,b=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*d.Ym-W.getMinutes()*d.yB)},function(W,G){W.setTime(+W+G*d.Y2)},function(W,G){return(G-W)/d.Y2},function(W){return W.getHours()}),x=b,_=b.range,w=n(82301),k=n(59879),T=(0,l.Z)(function(W){W.setDate(1),W.setHours(0,0,0,0)},function(W,G){W.setMonth(W.getMonth()+G)},function(W,G){return G.getMonth()-W.getMonth()+12*(G.getFullYear()-W.getFullYear())},function(W){return W.getMonth()}),M=T,S=T.range,C=n(34823),P=(0,l.Z)(function(W){W.setUTCSeconds(0,0)},function(W,G){W.setTime(+W+G*d.yB)},function(W,G){return(G-W)/d.yB},function(W){return W.getUTCMinutes()}),D=P,O=P.range,R=(0,l.Z)(function(W){W.setUTCMinutes(0,0,0)},function(W,G){W.setTime(+W+G*d.Y2)},function(W,G){return(G-W)/d.Y2},function(W){return W.getUTCHours()}),F=R,A=R.range,z=n(48480),B=n(58176),$=(0,l.Z)(function(W){W.setUTCDate(1),W.setUTCHours(0,0,0,0)},function(W,G){W.setUTCMonth(W.getUTCMonth()+G)},function(W,G){return G.getUTCMonth()-W.getUTCMonth()+12*(G.getUTCFullYear()-W.getUTCFullYear())},function(W){return W.getUTCMonth()}),j=$,N=$.range,E=n(79791)},30052:function(o,a,n){n.d(a,{Z:function(){return s}});var l=new Date,f=new Date;function s(u,d,h,p){function m(y){return u(y=arguments.length===0?new Date:new Date(+y)),y}return m.floor=function(y){return u(y=new Date(+y)),y},m.ceil=function(y){return u(y=new Date(y-1)),d(y,1),u(y),y},m.round=function(y){var v=m(y),g=m.ceil(y);return y-v0))return x;do x.push(b=new Date(+y)),d(y,g),u(y);while(b=v)for(;u(v),!y(v);)v.setTime(v-1)},function(v,g){if(v>=v)if(g<0)for(;++g<=0;)for(;d(v,-1),!y(v););else for(;--g>=0;)for(;d(v,1),!y(v););})},h&&(m.count=function(y,v){return l.setTime(+y),f.setTime(+v),u(l),u(f),Math.floor(h(l,f))},m.every=function(y){return y=Math.floor(y),isFinite(y)&&y>0?y>1?m.filter(p?function(v){return p(v)%y==0}:function(v){return m.count(0,v)%y==0}):m:null}),m}},48480:function(o,a,n){n.d(a,{y:function(){return u}});var l=n(30052),f=n(54263),s=(0,l.Z)(function(d){d.setUTCHours(0,0,0,0)},function(d,h){d.setUTCDate(d.getUTCDate()+h)},function(d,h){return(h-d)/f.UD},function(d){return d.getUTCDate()-1});a.Z=s;var u=s.range},58176:function(o,a,n){n.d(a,{$3:function(){return b},DK:function(){return x},J1:function(){return h},Ox:function(){return u},QQ:function(){return y},Q_:function(){return T},SU:function(){return g},b3:function(){return p},fz:function(){return k},g4:function(){return v},hB:function(){return m},l6:function(){return d},uy:function(){return _},xj:function(){return w}});var l=n(30052),f=n(54263);function s(M){return(0,l.Z)(function(S){S.setUTCDate(S.getUTCDate()-(S.getUTCDay()+7-M)%7),S.setUTCHours(0,0,0,0)},function(S,C){S.setUTCDate(S.getUTCDate()+7*C)},function(S,C){return(C-S)/f.iM})}var u=s(0),d=s(1),h=s(2),p=s(3),m=s(4),y=s(5),v=s(6),g=u.range,b=d.range,x=h.range,_=p.range,w=m.range,k=y.range,T=v.range},79791:function(o,a,n){n.d(a,{D:function(){return s}});var l=n(30052),f=(0,l.Z)(function(u){u.setUTCMonth(0,1),u.setUTCHours(0,0,0,0)},function(u,d){u.setUTCFullYear(u.getUTCFullYear()+d)},function(u,d){return d.getUTCFullYear()-u.getUTCFullYear()},function(u){return u.getUTCFullYear()});f.every=function(u){return isFinite(u=Math.floor(u))&&u>0?(0,l.Z)(function(d){d.setUTCFullYear(Math.floor(d.getUTCFullYear()/u)*u),d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},function(d,h){d.setUTCFullYear(d.getUTCFullYear()+h*u)}):null},a.Z=f;var s=f.range},59879:function(o,a,n){n.d(a,{$t:function(){return w},EY:function(){return v},Ff:function(){return T},Ld:function(){return _},OM:function(){return u},aU:function(){return x},b$:function(){return k},bJ:function(){return b},bL:function(){return m},mC:function(){return y},sy:function(){return h},vm:function(){return g},wA:function(){return d},zg:function(){return p}});var l=n(30052),f=n(54263);function s(M){return(0,l.Z)(function(S){S.setDate(S.getDate()-(S.getDay()+7-M)%7),S.setHours(0,0,0,0)},function(S,C){S.setDate(S.getDate()+7*C)},function(S,C){return(C-S-(C.getTimezoneOffset()-S.getTimezoneOffset())*f.yB)/f.iM})}var u=s(0),d=s(1),h=s(2),p=s(3),m=s(4),y=s(5),v=s(6),g=u.range,b=d.range,x=h.range,_=p.range,w=m.range,k=y.range,T=v.range},34823:function(o,a,n){n.d(a,{g:function(){return s}});var l=n(30052),f=(0,l.Z)(function(u){u.setMonth(0,1),u.setHours(0,0,0,0)},function(u,d){u.setFullYear(u.getFullYear()+d)},function(u,d){return d.getFullYear()-u.getFullYear()},function(u){return u.getFullYear()});f.every=function(u){return isFinite(u=Math.floor(u))&&u>0?(0,l.Z)(function(d){d.setFullYear(Math.floor(d.getFullYear()/u)*u),d.setMonth(0,1),d.setHours(0,0,0,0)},function(d,h){d.setFullYear(d.getFullYear()+h*u)}):null},a.Z=f;var s=f.range},17045:function(o,a,n){var l=n(8709),f=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",s=Object.prototype.toString,u=Array.prototype.concat,d=Object.defineProperty,h=n(55622)(),p=d&&h,m=function(v,g,b,x){if(g in v){if(x===!0){if(v[g]===b)return}else if(typeof(_=x)!="function"||s.call(_)!=="[object Function]"||!x())return}var _;p?d(v,g,{configurable:!0,enumerable:!1,value:b,writable:!0}):v[g]=b},y=function(v,g){var b=arguments.length>2?arguments[2]:{},x=l(g);f&&(x=u.call(x,Object.getOwnPropertySymbols(g)));for(var _=0;_0&&C.length>M&&!C.warned){C.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=_,D.type=w,D.count=C.length,P=D,console&&console.warn&&console.warn(P)}return _}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(_,w,k){var T={fired:!1,wrapFn:void 0,target:_,type:w,listener:k},M=m.bind(T);return M.listener=k,T.wrapFn=M,M}function v(_,w,k){var T=_._events;if(T===void 0)return[];var M=T[w];return M===void 0?[]:typeof M=="function"?k?[M.listener||M]:[M]:k?function(S){for(var C=new Array(S.length),P=0;P0&&(S=w[0]),S instanceof Error)throw S;var C=new Error("Unhandled error."+(S?" ("+S.message+")":""));throw C.context=S,C}var P=M[_];if(P===void 0)return!1;if(typeof P=="function")l(P,this,w);else{var D=P.length,O=b(P,D);for(k=0;k=0;S--)if(k[S]===w||k[S].listener===w){C=k[S].listener,M=S;break}if(M<0)return this;M===0?k.shift():function(P,D){for(;D+1=0;T--)this.removeListener(_,w[T]);return this},s.prototype.listeners=function(_){return v(this,_,!0)},s.prototype.rawListeners=function(_){return v(this,_,!1)},s.listenerCount=function(_,w){return typeof _.listenerCount=="function"?_.listenerCount(w):g.call(_,w)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},92770:function(o,a,n){var l=n(18546);o.exports=function(f){var s=typeof f;if(s==="string"){var u=f;if((f=+f)==0&&l(u))return!1}else if(s!=="number")return!1;return f-f<1}},31353:function(o,a,n){var l=n(85395),f=Object.prototype.toString,s=Object.prototype.hasOwnProperty;o.exports=function(u,d,h){if(!l(d))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=h),f.call(u)==="[object Array]"?function(m,y,v){for(var g=0,b=m.length;g"u"?l:v(Uint8Array),x={"%AggregateError%":typeof AggregateError>"u"?l:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?l:ArrayBuffer,"%ArrayIteratorPrototype%":y?v([][Symbol.iterator]()):l,"%AsyncFromSyncIteratorPrototype%":l,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":typeof Atomics>"u"?l:Atomics,"%BigInt%":typeof BigInt>"u"?l:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?l:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?l:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?l:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?l:Float32Array,"%Float64Array%":typeof Float64Array>"u"?l:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?l:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":g,"%Int8Array%":typeof Int8Array>"u"?l:Int8Array,"%Int16Array%":typeof Int16Array>"u"?l:Int16Array,"%Int32Array%":typeof Int32Array>"u"?l:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y?v(v([][Symbol.iterator]())):l,"%JSON%":typeof JSON=="object"?JSON:l,"%Map%":typeof Map>"u"?l:Map,"%MapIteratorPrototype%":typeof Map<"u"&&y?v(new Map()[Symbol.iterator]()):l,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?l:Promise,"%Proxy%":typeof Proxy>"u"?l:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?l:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?l:Set,"%SetIteratorPrototype%":typeof Set<"u"&&y?v(new Set()[Symbol.iterator]()):l,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?l:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y?v(""[Symbol.iterator]()):l,"%Symbol%":y?Symbol:l,"%SyntaxError%":f,"%ThrowTypeError%":m,"%TypedArray%":b,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?l:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?l:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?l:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?l:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?l:WeakMap,"%WeakRef%":typeof WeakRef>"u"?l:WeakRef,"%WeakSet%":typeof WeakSet>"u"?l:WeakSet};try{null.error}catch(z){var _=v(v(z));x["%Error.prototype%"]=_}var w=function z(B){var $;if(B==="%AsyncFunction%")$=d("async function () {}");else if(B==="%GeneratorFunction%")$=d("function* () {}");else if(B==="%AsyncGeneratorFunction%")$=d("async function* () {}");else if(B==="%AsyncGenerator%"){var j=z("%AsyncGeneratorFunction%");j&&($=j.prototype)}else if(B==="%AsyncIteratorPrototype%"){var N=z("%AsyncGenerator%");N&&($=v(N.prototype))}return x[B]=$,$},k={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=n(77575),M=n(35065),S=T.call(Function.call,Array.prototype.concat),C=T.call(Function.apply,Array.prototype.splice),P=T.call(Function.call,String.prototype.replace),D=T.call(Function.call,String.prototype.slice),O=T.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,A=function(z,B){var $,j=z;if(M(k,j)&&(j="%"+($=k[j])[0]+"%"),M(x,j)){var N=x[j];if(N===g&&(N=w(j)),N===void 0&&!B)throw new u("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:$,name:j,value:N}}throw new f("intrinsic "+z+" does not exist!")};o.exports=function(z,B){if(typeof z!="string"||z.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new u('"allowMissing" argument must be a boolean');if(O(/^%?[^%]*%?$/,z)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=function(Q){var Y=D(Q,0,1),Z=D(Q,-1);if(Y==="%"&&Z!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&Y!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var X=[];return P(Q,R,function(re,ie,le,se){X[X.length]=le?P(se,F,"$1"):ie||re}),X}(z),j=$.length>0?$[0]:"",N=A("%"+j+"%",B),E=N.name,W=N.value,G=!1,L=N.alias;L&&(j=L[0],C($,S([0,1],L)));for(var q=1,H=!0;q<$.length;q+=1){var V=$[q],te=D(V,0,1),ee=D(V,-1);if((te==='"'||te==="'"||te==="`"||ee==='"'||ee==="'"||ee==="`")&&te!==ee)throw new f("property names with quotes must have matching quotes");if(V!=="constructor"&&H||(G=!0),M(x,E="%"+(j+="."+V)+"%"))W=x[E];else if(W!=null){if(!(V in W)){if(!B)throw new u("base intrinsic for "+z+" exists, but the property is not available.");return}if(h&&q+1>=$.length){var U=h(W,V);W=(H=!!U)&&"get"in U&&!("originalValue"in U.get)?U.get:W[V]}else H=M(W,V),W=W[V];H&&!G&&(x[E]=W)}}return W}},85400:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],u=n[3],d=n[4],h=n[5],p=n[6],m=n[7],y=n[8],v=n[9],g=n[10],b=n[11],x=n[12],_=n[13],w=n[14],k=n[15];return a[0]=h*(g*k-b*w)-v*(p*k-m*w)+_*(p*b-m*g),a[1]=-(f*(g*k-b*w)-v*(s*k-u*w)+_*(s*b-u*g)),a[2]=f*(p*k-m*w)-h*(s*k-u*w)+_*(s*m-u*p),a[3]=-(f*(p*b-m*g)-h*(s*b-u*g)+v*(s*m-u*p)),a[4]=-(d*(g*k-b*w)-y*(p*k-m*w)+x*(p*b-m*g)),a[5]=l*(g*k-b*w)-y*(s*k-u*w)+x*(s*b-u*g),a[6]=-(l*(p*k-m*w)-d*(s*k-u*w)+x*(s*m-u*p)),a[7]=l*(p*b-m*g)-d*(s*b-u*g)+y*(s*m-u*p),a[8]=d*(v*k-b*_)-y*(h*k-m*_)+x*(h*b-m*v),a[9]=-(l*(v*k-b*_)-y*(f*k-u*_)+x*(f*b-u*v)),a[10]=l*(h*k-m*_)-d*(f*k-u*_)+x*(f*m-u*h),a[11]=-(l*(h*b-m*v)-d*(f*b-u*v)+y*(f*m-u*h)),a[12]=-(d*(v*w-g*_)-y*(h*w-p*_)+x*(h*g-p*v)),a[13]=l*(v*w-g*_)-y*(f*w-s*_)+x*(f*g-s*v),a[14]=-(l*(h*w-p*_)-d*(f*w-s*_)+x*(f*p-s*h)),a[15]=l*(h*g-p*v)-d*(f*g-s*v)+y*(f*p-s*h),a}},42331:function(o){o.exports=function(a){var n=new Float32Array(16);return n[0]=a[0],n[1]=a[1],n[2]=a[2],n[3]=a[3],n[4]=a[4],n[5]=a[5],n[6]=a[6],n[7]=a[7],n[8]=a[8],n[9]=a[9],n[10]=a[10],n[11]=a[11],n[12]=a[12],n[13]=a[13],n[14]=a[14],n[15]=a[15],n}},31042:function(o){o.exports=function(a,n){return a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a[4]=n[4],a[5]=n[5],a[6]=n[6],a[7]=n[7],a[8]=n[8],a[9]=n[9],a[10]=n[10],a[11]=n[11],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15],a}},11902:function(o){o.exports=function(){var a=new Float32Array(16);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},89887:function(o){o.exports=function(a){var n=a[0],l=a[1],f=a[2],s=a[3],u=a[4],d=a[5],h=a[6],p=a[7],m=a[8],y=a[9],v=a[10],g=a[11],b=a[12],x=a[13],_=a[14],w=a[15];return(n*d-l*u)*(v*w-g*_)-(n*h-f*u)*(y*w-g*x)+(n*p-s*u)*(y*_-v*x)+(l*h-f*d)*(m*w-g*b)-(l*p-s*d)*(m*_-v*b)+(f*p-s*h)*(m*x-y*b)}},27812:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],u=n[3],d=l+l,h=f+f,p=s+s,m=l*d,y=f*d,v=f*h,g=s*d,b=s*h,x=s*p,_=u*d,w=u*h,k=u*p;return a[0]=1-v-x,a[1]=y+k,a[2]=g-w,a[3]=0,a[4]=y-k,a[5]=1-m-x,a[6]=b+_,a[7]=0,a[8]=g+w,a[9]=b-_,a[10]=1-m-v,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},34045:function(o){o.exports=function(a,n,l){var f,s,u,d=l[0],h=l[1],p=l[2],m=Math.sqrt(d*d+h*h+p*p);return Math.abs(m)<1e-6?null:(d*=m=1/m,h*=m,p*=m,f=Math.sin(n),u=1-(s=Math.cos(n)),a[0]=d*d*u+s,a[1]=h*d*u+p*f,a[2]=p*d*u-h*f,a[3]=0,a[4]=d*h*u-p*f,a[5]=h*h*u+s,a[6]=p*h*u+d*f,a[7]=0,a[8]=d*p*u+h*f,a[9]=h*p*u-d*f,a[10]=p*p*u+s,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a)}},45973:function(o){o.exports=function(a,n,l){var f=n[0],s=n[1],u=n[2],d=n[3],h=f+f,p=s+s,m=u+u,y=f*h,v=f*p,g=f*m,b=s*p,x=s*m,_=u*m,w=d*h,k=d*p,T=d*m;return a[0]=1-(b+_),a[1]=v+T,a[2]=g-k,a[3]=0,a[4]=v-T,a[5]=1-(y+_),a[6]=x+w,a[7]=0,a[8]=g+k,a[9]=x-w,a[10]=1-(y+b),a[11]=0,a[12]=l[0],a[13]=l[1],a[14]=l[2],a[15]=1,a}},81472:function(o){o.exports=function(a,n){return a[0]=n[0],a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=n[1],a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=n[2],a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},14669:function(o){o.exports=function(a,n){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=n[0],a[13]=n[1],a[14]=n[2],a[15]=1,a}},75262:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=f,a[6]=l,a[7]=0,a[8]=0,a[9]=-l,a[10]=f,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},331:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=f,a[1]=0,a[2]=-l,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=l,a[9]=0,a[10]=f,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},11049:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=f,a[1]=l,a[2]=0,a[3]=0,a[4]=-l,a[5]=f,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},75195:function(o){o.exports=function(a,n,l,f,s,u,d){var h=1/(l-n),p=1/(s-f),m=1/(u-d);return a[0]=2*u*h,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=2*u*p,a[6]=0,a[7]=0,a[8]=(l+n)*h,a[9]=(s+f)*p,a[10]=(d+u)*m,a[11]=-1,a[12]=0,a[13]=0,a[14]=d*u*2*m,a[15]=0,a}},71551:function(o){o.exports=function(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},79576:function(o,a,n){o.exports={create:n(11902),clone:n(42331),copy:n(31042),identity:n(71551),transpose:n(88654),invert:n(95874),adjoint:n(85400),determinant:n(89887),multiply:n(91362),translate:n(31283),scale:n(10789),rotate:n(65074),rotateX:n(35545),rotateY:n(94918),rotateZ:n(15692),fromRotation:n(34045),fromRotationTranslation:n(45973),fromScaling:n(81472),fromTranslation:n(14669),fromXRotation:n(75262),fromYRotation:n(331),fromZRotation:n(11049),fromQuat:n(27812),frustum:n(75195),perspective:n(7864),perspectiveFromFieldOfView:n(35279),ortho:n(60378),lookAt:n(65551),str:n(6726)}},95874:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],u=n[3],d=n[4],h=n[5],p=n[6],m=n[7],y=n[8],v=n[9],g=n[10],b=n[11],x=n[12],_=n[13],w=n[14],k=n[15],T=l*h-f*d,M=l*p-s*d,S=l*m-u*d,C=f*p-s*h,P=f*m-u*h,D=s*m-u*p,O=y*_-v*x,R=y*w-g*x,F=y*k-b*x,A=v*w-g*_,z=v*k-b*_,B=g*k-b*w,$=T*B-M*z+S*A+C*F-P*R+D*O;return $?($=1/$,a[0]=(h*B-p*z+m*A)*$,a[1]=(s*z-f*B-u*A)*$,a[2]=(_*D-w*P+k*C)*$,a[3]=(g*P-v*D-b*C)*$,a[4]=(p*F-d*B-m*R)*$,a[5]=(l*B-s*F+u*R)*$,a[6]=(w*S-x*D-k*M)*$,a[7]=(y*D-g*S+b*M)*$,a[8]=(d*z-h*F+m*O)*$,a[9]=(f*F-l*z-u*O)*$,a[10]=(x*P-_*S+k*T)*$,a[11]=(v*S-y*P-b*T)*$,a[12]=(h*R-d*A-p*O)*$,a[13]=(l*A-f*R+s*O)*$,a[14]=(_*M-x*C-w*T)*$,a[15]=(y*C-v*M+g*T)*$,a):null}},65551:function(o,a,n){var l=n(71551);o.exports=function(f,s,u,d){var h,p,m,y,v,g,b,x,_,w,k=s[0],T=s[1],M=s[2],S=d[0],C=d[1],P=d[2],D=u[0],O=u[1],R=u[2];return Math.abs(k-D)<1e-6&&Math.abs(T-O)<1e-6&&Math.abs(M-R)<1e-6?l(f):(b=k-D,x=T-O,_=M-R,h=C*(_*=w=1/Math.sqrt(b*b+x*x+_*_))-P*(x*=w),p=P*(b*=w)-S*_,m=S*x-C*b,(w=Math.sqrt(h*h+p*p+m*m))?(h*=w=1/w,p*=w,m*=w):(h=0,p=0,m=0),y=x*m-_*p,v=_*h-b*m,g=b*p-x*h,(w=Math.sqrt(y*y+v*v+g*g))?(y*=w=1/w,v*=w,g*=w):(y=0,v=0,g=0),f[0]=h,f[1]=y,f[2]=b,f[3]=0,f[4]=p,f[5]=v,f[6]=x,f[7]=0,f[8]=m,f[9]=g,f[10]=_,f[11]=0,f[12]=-(h*k+p*T+m*M),f[13]=-(y*k+v*T+g*M),f[14]=-(b*k+x*T+_*M),f[15]=1,f)}},91362:function(o){o.exports=function(a,n,l){var f=n[0],s=n[1],u=n[2],d=n[3],h=n[4],p=n[5],m=n[6],y=n[7],v=n[8],g=n[9],b=n[10],x=n[11],_=n[12],w=n[13],k=n[14],T=n[15],M=l[0],S=l[1],C=l[2],P=l[3];return a[0]=M*f+S*h+C*v+P*_,a[1]=M*s+S*p+C*g+P*w,a[2]=M*u+S*m+C*b+P*k,a[3]=M*d+S*y+C*x+P*T,M=l[4],S=l[5],C=l[6],P=l[7],a[4]=M*f+S*h+C*v+P*_,a[5]=M*s+S*p+C*g+P*w,a[6]=M*u+S*m+C*b+P*k,a[7]=M*d+S*y+C*x+P*T,M=l[8],S=l[9],C=l[10],P=l[11],a[8]=M*f+S*h+C*v+P*_,a[9]=M*s+S*p+C*g+P*w,a[10]=M*u+S*m+C*b+P*k,a[11]=M*d+S*y+C*x+P*T,M=l[12],S=l[13],C=l[14],P=l[15],a[12]=M*f+S*h+C*v+P*_,a[13]=M*s+S*p+C*g+P*w,a[14]=M*u+S*m+C*b+P*k,a[15]=M*d+S*y+C*x+P*T,a}},60378:function(o){o.exports=function(a,n,l,f,s,u,d){var h=1/(n-l),p=1/(f-s),m=1/(u-d);return a[0]=-2*h,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*p,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*m,a[11]=0,a[12]=(n+l)*h,a[13]=(s+f)*p,a[14]=(d+u)*m,a[15]=1,a}},7864:function(o){o.exports=function(a,n,l,f,s){var u=1/Math.tan(n/2),d=1/(f-s);return a[0]=u/l,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=u,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=(s+f)*d,a[11]=-1,a[12]=0,a[13]=0,a[14]=2*s*f*d,a[15]=0,a}},35279:function(o){o.exports=function(a,n,l,f){var s=Math.tan(n.upDegrees*Math.PI/180),u=Math.tan(n.downDegrees*Math.PI/180),d=Math.tan(n.leftDegrees*Math.PI/180),h=Math.tan(n.rightDegrees*Math.PI/180),p=2/(d+h),m=2/(s+u);return a[0]=p,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=m,a[6]=0,a[7]=0,a[8]=-(d-h)*p*.5,a[9]=(s-u)*m*.5,a[10]=f/(l-f),a[11]=-1,a[12]=0,a[13]=0,a[14]=f*l/(l-f),a[15]=0,a}},65074:function(o){o.exports=function(a,n,l,f){var s,u,d,h,p,m,y,v,g,b,x,_,w,k,T,M,S,C,P,D,O,R,F,A,z=f[0],B=f[1],$=f[2],j=Math.sqrt(z*z+B*B+$*$);return Math.abs(j)<1e-6?null:(z*=j=1/j,B*=j,$*=j,s=Math.sin(l),d=1-(u=Math.cos(l)),h=n[0],p=n[1],m=n[2],y=n[3],v=n[4],g=n[5],b=n[6],x=n[7],_=n[8],w=n[9],k=n[10],T=n[11],M=z*z*d+u,S=B*z*d+$*s,C=$*z*d-B*s,P=z*B*d-$*s,D=B*B*d+u,O=$*B*d+z*s,R=z*$*d+B*s,F=B*$*d-z*s,A=$*$*d+u,a[0]=h*M+v*S+_*C,a[1]=p*M+g*S+w*C,a[2]=m*M+b*S+k*C,a[3]=y*M+x*S+T*C,a[4]=h*P+v*D+_*O,a[5]=p*P+g*D+w*O,a[6]=m*P+b*D+k*O,a[7]=y*P+x*D+T*O,a[8]=h*R+v*F+_*A,a[9]=p*R+g*F+w*A,a[10]=m*R+b*F+k*A,a[11]=y*R+x*F+T*A,n!==a&&(a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a)}},35545:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),u=n[4],d=n[5],h=n[6],p=n[7],m=n[8],y=n[9],v=n[10],g=n[11];return n!==a&&(a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[4]=u*s+m*f,a[5]=d*s+y*f,a[6]=h*s+v*f,a[7]=p*s+g*f,a[8]=m*s-u*f,a[9]=y*s-d*f,a[10]=v*s-h*f,a[11]=g*s-p*f,a}},94918:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),u=n[0],d=n[1],h=n[2],p=n[3],m=n[8],y=n[9],v=n[10],g=n[11];return n!==a&&(a[4]=n[4],a[5]=n[5],a[6]=n[6],a[7]=n[7],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[0]=u*s-m*f,a[1]=d*s-y*f,a[2]=h*s-v*f,a[3]=p*s-g*f,a[8]=u*f+m*s,a[9]=d*f+y*s,a[10]=h*f+v*s,a[11]=p*f+g*s,a}},15692:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),u=n[0],d=n[1],h=n[2],p=n[3],m=n[4],y=n[5],v=n[6],g=n[7];return n!==a&&(a[8]=n[8],a[9]=n[9],a[10]=n[10],a[11]=n[11],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[0]=u*s+m*f,a[1]=d*s+y*f,a[2]=h*s+v*f,a[3]=p*s+g*f,a[4]=m*s-u*f,a[5]=y*s-d*f,a[6]=v*s-h*f,a[7]=g*s-p*f,a}},10789:function(o){o.exports=function(a,n,l){var f=l[0],s=l[1],u=l[2];return a[0]=n[0]*f,a[1]=n[1]*f,a[2]=n[2]*f,a[3]=n[3]*f,a[4]=n[4]*s,a[5]=n[5]*s,a[6]=n[6]*s,a[7]=n[7]*s,a[8]=n[8]*u,a[9]=n[9]*u,a[10]=n[10]*u,a[11]=n[11]*u,a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15],a}},6726:function(o){o.exports=function(a){return"mat4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+", "+a[6]+", "+a[7]+", "+a[8]+", "+a[9]+", "+a[10]+", "+a[11]+", "+a[12]+", "+a[13]+", "+a[14]+", "+a[15]+")"}},31283:function(o){o.exports=function(a,n,l){var f,s,u,d,h,p,m,y,v,g,b,x,_=l[0],w=l[1],k=l[2];return n===a?(a[12]=n[0]*_+n[4]*w+n[8]*k+n[12],a[13]=n[1]*_+n[5]*w+n[9]*k+n[13],a[14]=n[2]*_+n[6]*w+n[10]*k+n[14],a[15]=n[3]*_+n[7]*w+n[11]*k+n[15]):(f=n[0],s=n[1],u=n[2],d=n[3],h=n[4],p=n[5],m=n[6],y=n[7],v=n[8],g=n[9],b=n[10],x=n[11],a[0]=f,a[1]=s,a[2]=u,a[3]=d,a[4]=h,a[5]=p,a[6]=m,a[7]=y,a[8]=v,a[9]=g,a[10]=b,a[11]=x,a[12]=f*_+h*w+v*k+n[12],a[13]=s*_+p*w+g*k+n[13],a[14]=u*_+m*w+b*k+n[14],a[15]=d*_+y*w+x*k+n[15]),a}},88654:function(o){o.exports=function(a,n){if(a===n){var l=n[1],f=n[2],s=n[3],u=n[6],d=n[7],h=n[11];a[1]=n[4],a[2]=n[8],a[3]=n[12],a[4]=l,a[6]=n[9],a[7]=n[13],a[8]=f,a[9]=u,a[11]=n[14],a[12]=s,a[13]=d,a[14]=h}else a[0]=n[0],a[1]=n[4],a[2]=n[8],a[3]=n[12],a[4]=n[1],a[5]=n[5],a[6]=n[9],a[7]=n[13],a[8]=n[2],a[9]=n[6],a[10]=n[10],a[11]=n[14],a[12]=n[3],a[13]=n[7],a[14]=n[11],a[15]=n[15];return a}},40383:function(o,a,n){var l=n(68318)("%Object.getOwnPropertyDescriptor%",!0);if(l)try{l([],"length")}catch{l=null}o.exports=l},57035:function(o,a,n){var l,f=n(54404);l=typeof n.g.matchMedia=="function"?!n.g.matchMedia("(hover: none)").matches:f,o.exports=l},38520:function(o,a,n){var l=n(54404);o.exports=l&&function(){var f=!1;try{var s=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s)}catch{f=!1}return f}()},55622:function(o,a,n){var l=n(68318)("%Object.defineProperty%",!0),f=function(){if(l)try{return l({},"a",{value:1}),!0}catch{return!1}return!1};f.hasArrayLengthDefineBug=function(){if(!f())return null;try{return l([],"length",{value:1}).length!==1}catch{return!0}},o.exports=f},57877:function(o,a,n){var l=typeof Symbol<"u"&&Symbol,f=n(35638);o.exports=function(){return typeof l=="function"&&typeof Symbol=="function"&&typeof l("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&f()}},35638:function(o){o.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},n=Symbol("test"),l=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;for(n in a[n]=42,a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var f=Object.getOwnPropertySymbols(a);if(f.length!==1||f[0]!==n||!Object.prototype.propertyIsEnumerable.call(a,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(a,n);if(s.value!==42||s.enumerable!==!0)return!1}return!0}},84543:function(o,a,n){var l=n(35638);o.exports=function(){return l()&&!!Symbol.toStringTag}},35065:function(o,a,n){var l=n(77575);o.exports=l.call(Function.call,Object.prototype.hasOwnProperty)},95280:function(o,a){a.read=function(n,l,f,s,u){var d,h,p=8*u-s-1,m=(1<>1,v=-7,g=f?u-1:0,b=f?-1:1,x=n[l+g];for(g+=b,d=x&(1<<-v)-1,x>>=-v,v+=p;v>0;d=256*d+n[l+g],g+=b,v-=8);for(h=d&(1<<-v)-1,d>>=-v,v+=s;v>0;h=256*h+n[l+g],g+=b,v-=8);if(d===0)d=1-y;else{if(d===m)return h?NaN:1/0*(x?-1:1);h+=Math.pow(2,s),d-=y}return(x?-1:1)*h*Math.pow(2,d-s)},a.write=function(n,l,f,s,u,d){var h,p,m,y=8*d-u-1,v=(1<>1,b=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=s?0:d-1,_=s?1:-1,w=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(p=isNaN(l)?1:0,h=v):(h=Math.floor(Math.log(l)/Math.LN2),l*(m=Math.pow(2,-h))<1&&(h--,m*=2),(l+=h+g>=1?b/m:b*Math.pow(2,1-g))*m>=2&&(h++,m/=2),h+g>=v?(p=0,h=v):h+g>=1?(p=(l*m-1)*Math.pow(2,u),h+=g):(p=l*Math.pow(2,g-1)*Math.pow(2,u),h=0));u>=8;n[f+x]=255&p,x+=_,p/=256,u-=8);for(h=h<0;n[f+x]=255&h,x+=_,h/=256,y-=8);n[f+x-_]|=128*w}},42018:function(o){typeof Object.create=="function"?o.exports=function(a,n){n&&(a.super_=n,a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:o.exports=function(a,n){if(n){a.super_=n;var l=function(){};l.prototype=n.prototype,a.prototype=new l,a.prototype.constructor=a}}},47216:function(o,a,n){var l=n(84543)(),f=n(6614)("Object.prototype.toString"),s=function(h){return!(l&&h&&typeof h=="object"&&Symbol.toStringTag in h)&&f(h)==="[object Arguments]"},u=function(h){return!!s(h)||h!==null&&typeof h=="object"&&typeof h.length=="number"&&h.length>=0&&f(h)!=="[object Array]"&&f(h.callee)==="[object Function]"},d=function(){return s(arguments)}();s.isLegacyArguments=u,o.exports=d?s:u},54404:function(o){o.exports=!0},85395:function(o){var a,n,l=Function.prototype.toString,f=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof f=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw n}}),n={},f(function(){throw 42},null,a)}catch(g){g!==n&&(f=null)}else f=null;var s=/^\s*class\b/,u=function(g){try{var b=l.call(g);return s.test(b)}catch{return!1}},d=function(g){try{return!u(g)&&(l.call(g),!0)}catch{return!1}},h=Object.prototype.toString,p=typeof Symbol=="function"&&!!Symbol.toStringTag,m=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var v=document.all;h.call(v)===h.call(document.all)&&(y=function(g){if((m||!g)&&(g===void 0||typeof g=="object"))try{var b=h.call(g);return(b==="[object HTMLAllCollection]"||b==="[object HTML document.all class]"||b==="[object HTMLCollection]"||b==="[object Object]")&&g("")==null}catch{}return!1})}o.exports=f?function(g){if(y(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;try{f(g,null,a)}catch(b){if(b!==n)return!1}return!u(g)&&d(g)}:function(g){if(y(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;if(p)return d(g);if(u(g))return!1;var b=h.call(g);return!(b!=="[object Function]"&&b!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(b))&&d(g)}},65481:function(o,a,n){var l,f=Object.prototype.toString,s=Function.prototype.toString,u=/^\s*(?:function)?\*/,d=n(84543)(),h=Object.getPrototypeOf;o.exports=function(p){if(typeof p!="function")return!1;if(u.test(s.call(p)))return!0;if(!d)return f.call(p)==="[object GeneratorFunction]";if(!h)return!1;if(l===void 0){var m=function(){if(!d)return!1;try{return Function("return function*() {}")()}catch{}}();l=!!m&&h(m)}return h(p)===l}},64274:function(o){o.exports=function(a){return a!=a}},15567:function(o,a,n){var l=n(68222),f=n(17045),s=n(64274),u=n(14922),d=n(22442),h=l(u(),Number);f(h,{getPolyfill:u,implementation:s,shim:d}),o.exports=h},14922:function(o,a,n){var l=n(64274);o.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:l}},22442:function(o,a,n){var l=n(17045),f=n(14922);o.exports=function(){var s=f();return l(Number,{isNaN:s},{isNaN:function(){return Number.isNaN!==s}}),s}},18546:function(o){o.exports=function(a){for(var n,l=a.length,f=0;f13)&&n!==32&&n!==133&&n!==160&&n!==5760&&n!==6158&&(n<8192||n>8205)&&n!==8232&&n!==8233&&n!==8239&&n!==8287&&n!==8288&&n!==12288&&n!==65279)return!1;return!0}},9187:function(o,a,n){var l=n(31353),f=n(72077),s=n(6614),u=s("Object.prototype.toString"),d=n(84543)(),h=n(40383),p=typeof globalThis>"u"?n.g:globalThis,m=f(),y=s("Array.prototype.indexOf",!0)||function(x,_){for(var w=0;w-1}return!!h&&function(w){var k=!1;return l(g,function(T,M){if(!k)try{k=T.call(w)===M}catch{}}),k}(x)}},48956:function(o){var a={left:0,top:0};o.exports=function(n,l,f){l=l||n.currentTarget||n.srcElement,Array.isArray(f)||(f=[0,0]);var s,u=n.clientX||0,d=n.clientY||0,h=(s=l)===window||s===document||s===document.body?a:s.getBoundingClientRect();return f[0]=u-h.left,f[1]=d-h.top,f}},7417:function(o,a,n){var l,f,s,u;f="Promise",u=function(){var d,h,p,m=Object.prototype.toString,y=typeof setImmediate<"u"?function(P){return setImmediate(P)}:setTimeout;try{Object.defineProperty({},"x",{}),d=function(P,D,O,R){return Object.defineProperty(P,D,{value:O,writable:!0,configurable:R!==!1})}}catch{d=function(D,O,R){return D[O]=R,D}}function v(P,D){p.add(P,D),h||(h=y(p.drain))}function g(P){var D,O=typeof P;return P==null||O!="object"&&O!="function"||(D=P.then),typeof D=="function"&&D}function b(){for(var P=0;P0&&v(b,O))}catch(R){w.call(new T(O),R)}}}function w(P){var D=this;D.triggered||(D.triggered=!0,D.def&&(D=D.def),D.msg=P,D.state=2,D.chain.length>0&&v(b,D))}function k(P,D,O,R){for(var F=0;F"u")return!1;for(var b in window)try{if(!v["$"+b]&&f.call(window,b)&&window[b]!==null&&typeof window[b]=="object")try{y(window[b])}catch{return!0}}catch{return!0}return!1}();l=function(b){var x=b!==null&&typeof b=="object",_=s.call(b)==="[object Function]",w=u(b),k=x&&s.call(b)==="[object String]",T=[];if(!x&&!_&&!w)throw new TypeError("Object.keys called on a non-object");var M=p&&_;if(k&&b.length>0&&!f.call(b,0))for(var S=0;S0)for(var C=0;C"u"||!g)return y(R);try{return y(R)}catch{return!1}}(b),O=0;O=0&&a.call(n.callee)==="[object Function]"),f}},95616:function(o){o.exports=function(f){var s=[];return f.replace(n,function(u,d,h){var p=d.toLowerCase();for(h=function(m){var y=m.match(l);return y?y.map(Number):[]}(h),p=="m"&&h.length>2&&(s.push([d].concat(h.splice(0,2))),p="l",d=d=="m"?"l":"L");;){if(h.length==a[p])return h.unshift(d),s.push(h);if(h.lengthu!=b>u&&s<(g-y)*(u-v)/(b-v)+y&&(d=!d)}return d}},52142:function(o,a,n){var l,f=n(69444),s=n(29023),u=n(87263),d=n(11328),h=n(55968),p=n(10670),m=!1,y=s();function v(g,b,x){var _=l.segments(g),w=l.segments(b),k=x(l.combine(_,w));return l.polygon(k)}l={buildLog:function(g){return g===!0?m=f():g===!1&&(m=!1),m!==!1&&m.list},epsilon:function(g){return y.epsilon(g)},segments:function(g){var b=u(!0,y,m);return g.regions.forEach(b.addRegion),{segments:b.calculate(g.inverted),inverted:g.inverted}},combine:function(g,b){return{combined:u(!1,y,m).calculate(g.segments,g.inverted,b.segments,b.inverted),inverted1:g.inverted,inverted2:b.inverted}},selectUnion:function(g){return{segments:h.union(g.combined,m),inverted:g.inverted1||g.inverted2}},selectIntersect:function(g){return{segments:h.intersect(g.combined,m),inverted:g.inverted1&&g.inverted2}},selectDifference:function(g){return{segments:h.difference(g.combined,m),inverted:g.inverted1&&!g.inverted2}},selectDifferenceRev:function(g){return{segments:h.differenceRev(g.combined,m),inverted:!g.inverted1&&g.inverted2}},selectXor:function(g){return{segments:h.xor(g.combined,m),inverted:g.inverted1!==g.inverted2}},polygon:function(g){return{regions:d(g.segments,y,m),inverted:g.inverted}},polygonFromGeoJSON:function(g){return p.toPolygon(l,g)},polygonToGeoJSON:function(g){return p.fromPolygon(l,y,g)},union:function(g,b){return v(g,b,l.selectUnion)},intersect:function(g,b){return v(g,b,l.selectIntersect)},difference:function(g,b){return v(g,b,l.selectDifference)},differenceRev:function(g,b){return v(g,b,l.selectDifferenceRev)},xor:function(g,b){return v(g,b,l.selectXor)}},typeof window=="object"&&(window.PolyBool=l),o.exports=l},69444:function(o){o.exports=function(){var a,n=0,l=!1;function f(s,u){return a.list.push({type:s,data:u?JSON.parse(JSON.stringify(u)):void 0}),a}return a={list:[],segmentId:function(){return n++},checkIntersection:function(s,u){return f("check",{seg1:s,seg2:u})},segmentChop:function(s,u){return f("div_seg",{seg:s,pt:u}),f("chop",{seg:s,pt:u})},statusRemove:function(s){return f("pop_seg",{seg:s})},segmentUpdate:function(s){return f("seg_update",{seg:s})},segmentNew:function(s,u){return f("new_seg",{seg:s,primary:u})},segmentRemove:function(s){return f("rem_seg",{seg:s})},tempStatus:function(s,u,d){return f("temp_status",{seg:s,above:u,below:d})},rewind:function(s){return f("rewind",{seg:s})},status:function(s,u,d){return f("status",{seg:s,above:u,below:d})},vert:function(s){return s===l?a:(l=s,f("vert",{x:s}))},log:function(s){return typeof s!="string"&&(s=JSON.stringify(s,!1," ")),f("log",{txt:s})},reset:function(){return f("reset")},selected:function(s){return f("selected",{segs:s})},chainStart:function(s){return f("chain_start",{seg:s})},chainRemoveHead:function(s,u){return f("chain_rem_head",{index:s,pt:u})},chainRemoveTail:function(s,u){return f("chain_rem_tail",{index:s,pt:u})},chainNew:function(s,u){return f("chain_new",{pt1:s,pt2:u})},chainMatch:function(s){return f("chain_match",{index:s})},chainClose:function(s){return f("chain_close",{index:s})},chainAddHead:function(s,u){return f("chain_add_head",{index:s,pt:u})},chainAddTail:function(s,u){return f("chain_add_tail",{index:s,pt:u})},chainConnect:function(s,u){return f("chain_con",{index1:s,index2:u})},chainReverse:function(s){return f("chain_rev",{index:s})},chainJoin:function(s,u){return f("chain_join",{index1:s,index2:u})},done:function(){return f("done")}}}},29023:function(o){o.exports=function(a){typeof a!="number"&&(a=1e-10);var n={epsilon:function(l){return typeof l=="number"&&(a=l),a},pointAboveOrOnLine:function(l,f,s){var u=f[0],d=f[1],h=s[0],p=s[1],m=l[0];return(h-u)*(l[1]-d)-(p-d)*(m-u)>=-a},pointBetween:function(l,f,s){var u=l[1]-f[1],d=s[0]-f[0],h=l[0]-f[0],p=s[1]-f[1],m=h*d+u*p;return!(m-a)},pointsSameX:function(l,f){return Math.abs(l[0]-f[0])a!=h-u>a&&(d-y)*(u-v)/(h-v)+y-s>a&&(p=!p),d=y,h=v}return p}};return n}},10670:function(o){var a={toPolygon:function(n,l){function f(d){if(d.length<=0)return n.segments({inverted:!1,regions:[]});function h(y){var v=y.slice(0,y.length-1);return n.segments({inverted:!1,regions:[v]})}for(var p=h(d[0]),m=1;m0})}function w(A,z){var B=A.seg,$=z.seg,j=B.start,N=B.end,E=$.start,W=$.end;u&&u.checkIntersection(B,$);var G=s.linesIntersect(j,N,E,W);if(G===!1){if(!s.pointsCollinear(j,N,E)||s.pointsSame(j,W)||s.pointsSame(N,E))return!1;var L=s.pointsSame(j,E),q=s.pointsSame(N,W);if(L&&q)return z;var H=!L&&s.pointBetween(j,E,W),V=!q&&s.pointBetween(N,E,W);if(L)return V?y(z,N):y(A,W),z;H&&(q||(V?y(z,N):y(A,W)),y(z,j))}else G.alongA===0&&(G.alongB===-1?y(A,E):G.alongB===0?y(A,G.pt):G.alongB===1&&y(A,W)),G.alongB===0&&(G.alongA===-1?y(z,j):G.alongA===0?y(z,G.pt):G.alongA===1&&y(z,N));return!1}for(var k=[];!h.isEmpty();){var T=h.getHead();if(u&&u.vert(T.pt[0]),T.isStart){let A=function(){if(S){var z=w(T,S);if(z)return z}return!!C&&w(T,C)};u&&u.segmentNew(T.seg,T.primary);var M=_(T),S=M.before?M.before.ev:null,C=M.after?M.after.ev:null;u&&u.tempStatus(T.seg,!!S&&S.seg,!!C&&C.seg);var P,D,O=A();if(O&&(f?(D=T.seg.myFill.below===null||T.seg.myFill.above!==T.seg.myFill.below)&&(O.seg.myFill.above=!O.seg.myFill.above):O.seg.otherFill=T.seg.myFill,u&&u.segmentUpdate(O.seg),T.other.remove(),T.remove()),h.getHead()!==T){u&&u.rewind(T.seg);continue}f?(D=T.seg.myFill.below===null||T.seg.myFill.above!==T.seg.myFill.below,T.seg.myFill.below=C?C.seg.myFill.above:g,T.seg.myFill.above=D?!T.seg.myFill.below:T.seg.myFill.below):T.seg.otherFill===null&&(P=C?T.primary===C.primary?C.seg.otherFill.above:C.seg.myFill.above:T.primary?b:g,T.seg.otherFill={above:P,below:P}),u&&u.status(T.seg,!!S&&S.seg,!!C&&C.seg),T.other.status=M.insert(l.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(x.exists(R.prev)&&x.exists(R.next)&&w(R.prev.ev,R.next.ev),u&&u.statusRemove(R.ev.seg),R.remove(),!T.primary){var F=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=F}k.push(T.seg)}h.getHead().remove()}return u&&u.done(),k}return f?{addRegion:function(g){for(var b,x,_,w=g[g.length-1],k=0;k0&&!this.aborted;){var u=this.ifds_to_read.shift();u.offset&&this.scan_ifd(u.id,u.offset,f)}},l.prototype.read_uint16=function(f){var s=this.input;if(f+2>s.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?256*s[f]+s[f+1]:s[f]+256*s[f+1]},l.prototype.read_uint32=function(f){var s=this.input;if(f+4>s.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?16777216*s[f]+65536*s[f+1]+256*s[f+2]+s[f+3]:s[f]+256*s[f+1]+65536*s[f+2]+16777216*s[f+3]},l.prototype.is_subifd_link=function(f,s){return f===0&&s===34665||f===0&&s===34853||f===34665&&s===40965},l.prototype.exif_format_length=function(f){switch(f){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},l.prototype.exif_format_read=function(f,s){var u;switch(f){case 1:case 2:return this.input[s];case 6:return(u=this.input[s])|33554430*(128&u);case 3:return this.read_uint16(s);case 8:return(u=this.read_uint16(s))|131070*(32768&u);case 4:return this.read_uint32(s);case 9:return 0|this.read_uint32(s);default:return null}},l.prototype.scan_ifd=function(f,s,u){var d=this.read_uint16(s);s+=2;for(var h=0;hthis.input.length)throw a("unexpected EOF","EBADDATA");for(var _=[],w=b,k=0;k0&&(this.ifds_to_read.push({id:p,offset:_[0]}),x=!0),u({is_big_endian:this.big_endian,ifd:f,tag:p,format:m,count:y,entry_offset:s+this.start,data_length:g,data_offset:b+this.start,value:_,is_subifd_link:x})===!1)return void(this.aborted=!0);s+=12}f===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(s)})},o.exports.ExifParser=l,o.exports.get_orientation=function(f){var s=0;try{return new l(f,0,f.length).each(function(u){if(u.ifd===0&&u.tag===274&&Array.isArray(u.value))return s=u.value[0],!1}),s}catch{return-1}}},76767:function(o,a,n){var l=n(14847).n8,f=n(14847).Ag;function s(y,v){if(y.length<4+v)return null;var g=f(y,v);return y.length>4&15,b=15&y[4],x=y[5]>>4&15,_=l(y,6),w=8,k=0;k<_;k++){var T=l(y,w),M=l(y,w+=2),S=d(y,w+=2,x),C=l(y,w+=x);if(w+=2,M===0&&C===1){var P=d(y,w,g),D=d(y,w+g,b);v.item_loc[T]={length:D,offset:P+S}}w+=C*(g+b)}}function p(y,v){for(var g=l(y,4),b=6,x=0;xM.width||T.width===M.width&&T.height>M.height?T:M}),x=g.reduce(function(T,M){return T.height>M.height||T.height===M.height&&T.width>M.width?T:M}),b.width>x.height||b.width===x.height&&b.height>x.width?b:x),w=1;v.transforms.forEach(function(T){var M={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},S={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(T.type==="imir"&&(w=T.value===0?S[w]:M[w=M[w=S[w]]]),T.type==="irot")for(var C=0;C1&&(_.variants=x.variants),x.orientation&&(_.orientation=x.orientation),x.exif_location&&x.exif_location.offset+x.exif_location.length<=p.length){var w=s(p,x.exif_location.offset),k=p.slice(x.exif_location.offset+w+4,x.exif_location.offset+x.exif_location.length),T=d.get_orientation(k);T>0&&(_.orientation=T)}return _}}}}}}},2504:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).mP,u=l("BM");o.exports=function(d){if(!(d.length<26)&&f(d,0,u))return{width:s(d,18),height:s(d,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},47342:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).mP,u=l("GIF87a"),d=l("GIF89a");o.exports=function(h){if(!(h.length<10)&&(f(h,0,u)||f(h,0,d)))return{width:s(h,6),height:s(h,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},31355:function(o,a,n){var l=n(14847).mP;o.exports=function(f){var s=l(f,0),u=l(f,2),d=l(f,4);if(s===0&&u===1&&d){for(var h=[],p={width:0,height:0},m=0;mp.width||v>p.height)&&(p=g)}return{width:p.width,height:p.height,variants:h,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},54261:function(o,a,n){var l=n(14847).n8,f=n(14847).eG,s=n(14847).OF,u=n(71371),d=f("Exif\0\0");o.exports=function(h){if(!(h.length<2)&&h[0]===255&&h[1]===216&&h[2]===255)for(var p=2;;){for(;;){if(h.length-p<2)return;if(h[p++]===255)break}for(var m,y,v=h[p++];v===255;)v=h[p++];if(208<=v&&v<=217||v===1)m=0;else{if(!(192<=v&&v<=254)||h.length-p<2)return;m=l(h,p)-2,p+=2}if(v===217||v===218)return;if(v===225&&m>=10&&s(h,p,d)&&(y=u.get_orientation(h.slice(p+6,p+m))),m>=5&&192<=v&&v<=207&&v!==196&&v!==200&&v!==204){if(h.length-p0&&(g.orientation=y),g}p+=m}}},6303:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).Ag,u=l(`‰PNG\r +`):H=" ".concat($," ").concat(H)),z=c(this,y(O).call(this,"".concat(q).concat(H)))}return Error.stackTraceLimit=W,z.generatedMessage=!B,Object.defineProperty(d(z),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),z.code="ERR_ASSERTION",z.actual=N,z.expected=E,z.operator=$,Error.captureStackTrace&&Error.captureStackTrace(d(z),j),z.stack,z.name="AssertionError",c(z)}var R,F;return function(A,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(z&&z.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),z&&m(A,z)}(O,D),R=O,F=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:g.custom,value:function(A,z){return g(this,function(B){for(var $=1;$2?"one of ".concat(v," ").concat(y.slice(0,g-1).join(", "),", or ")+y[g-1]:g===2?"one of ".concat(v," ").concat(y[0]," or ").concat(y[1]):"of ".concat(v," ").concat(y[0])}return"of ".concat(v," ").concat(String(y))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",function(y,v,g){var b,x,_,w,k;if(c===void 0&&(c=n(32791)),c(typeof y=="string","'name' must be a string"),typeof v=="string"&&(x="not ",v.substr(0,4)===x)?(b="must not be",v=v.replace(/^not /,"")):b="must be",function(M,S,C){return(C===void 0||C>M.length)&&(C=M.length),M.substring(C-9,C)===S}(y," argument"))_="The ".concat(y," ").concat(b," ").concat(m(v,"type"));else{var T=(typeof k!="number"&&(k=0),k+1>(w=y).length||w.indexOf(".",k)===-1?"argument":"property");_='The "'.concat(y,'" ').concat(T," ").concat(b," ").concat(m(v,"type"))}return _+". Received type ".concat(l(g))},TypeError),p("ERR_INVALID_ARG_VALUE",function(y,v){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";d===void 0&&(d=n(43827));var b=d.inspect(v);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(y,"' ").concat(g,". Received ").concat(b)},TypeError),p("ERR_INVALID_RETURN_VALUE",function(y,v,g){var b;return b=g&&g.constructor&&g.constructor.name?"instance of ".concat(g.constructor.name):"type ".concat(l(g)),"Expected ".concat(y,' to be returned from the "').concat(v,'"')+" function but got ".concat(b,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var y=arguments.length,v=new Array(y),g=0;g0,"At least one arg needs to be specified");var b="The ",x=v.length;switch(v=v.map(function(_){return'"'.concat(_,'"')}),x){case 1:b+="".concat(v[0]," argument");break;case 2:b+="".concat(v[0]," and ").concat(v[1]," arguments");break;default:b+=v.slice(0,x-1).join(", "),b+=", and ".concat(v[x-1]," arguments")}return"".concat(b," must be specified")},TypeError),o.exports.codes=h},74061:function(o,a,n){function l(Z,X){return function(re){if(Array.isArray(re))return re}(Z)||function(re,ie){var le=[],se=!0,pe=!1,Te=void 0;try{for(var Se,Oe=re[Symbol.iterator]();!(se=(Se=Oe.next()).done)&&(le.push(Se.value),!ie||le.length!==ie);se=!0);}catch(Me){pe=!0,Te=Me}finally{try{se||Oe.return==null||Oe.return()}finally{if(pe)throw Te}}return le}(Z,X)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function f(Z){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},f(Z)}var s=/a/g.flags!==void 0,c=function(Z){var X=[];return Z.forEach(function(re){return X.push(re)}),X},d=function(Z){var X=[];return Z.forEach(function(re,ie){return X.push([ie,re])}),X},h=Object.is?Object.is:n(64003),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},m=Number.isNaN?Number.isNaN:n(15567);function y(Z){return Z.call.bind(Z)}var v=y(Object.prototype.hasOwnProperty),g=y(Object.prototype.propertyIsEnumerable),b=y(Object.prototype.toString),x=n(43827).types,_=x.isAnyArrayBuffer,w=x.isArrayBufferView,k=x.isDate,T=x.isMap,M=x.isRegExp,S=x.isSet,C=x.isNativeError,P=x.isBoxedPrimitive,D=x.isNumberObject,O=x.isStringObject,R=x.isBooleanObject,F=x.isBigIntObject,A=x.isSymbolObject,z=x.isFloat32Array,B=x.isFloat64Array;function $(Z){if(Z.length===0||Z.length>10)return!0;for(var X=0;X57)return!0}return Z.length===10&&Z>=Math.pow(2,32)}function j(Z){return Object.keys(Z).filter($).concat(p(Z).filter(Object.prototype.propertyIsEnumerable.bind(Z)))}function N(Z,X){if(Z===X)return 0;for(var re=Z.length,ie=X.length,le=0,se=Math.min(re,ie);le0?g-4:g;for(y=0;y>16&255,x[_++]=m>>8&255,x[_++]=255&m;return b===2&&(m=l[p.charCodeAt(y)]<<2|l[p.charCodeAt(y+1)]>>4,x[_++]=255&m),b===1&&(m=l[p.charCodeAt(y)]<<10|l[p.charCodeAt(y+1)]<<4|l[p.charCodeAt(y+2)]>>2,x[_++]=m>>8&255,x[_++]=255&m),x},a.fromByteArray=function(p){for(var m,y=p.length,v=y%3,g=[],b=16383,x=0,_=y-v;x<_;x+=b)g.push(h(p,x,x+b>_?_:x+b));return v===1?(m=p[y-1],g.push(n[m>>2]+n[m<<4&63]+"==")):v===2&&(m=(p[y-2]<<8)+p[y-1],g.push(n[m>>10]+n[m>>4&63]+n[m<<2&63]+"=")),g.join("")};for(var n=[],l=[],f=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0;c<64;++c)n[c]=s[c],l[s.charCodeAt(c)]=c;function d(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=p.indexOf("=");return y===-1&&(y=m),[y,y===m?0:4-y%4]}function h(p,m,y){for(var v,g,b=[],x=m;x>18&63]+n[g>>12&63]+n[g>>6&63]+n[63&g]);return b.join("")}l[45]=62,l[95]=63},6614:function(o,a,n){var l=n(68318),f=n(68222),s=f(l("String.prototype.indexOf"));o.exports=function(c,d){var h=l(c,!!d);return typeof h=="function"&&s(c,".prototype.")>-1?f(h):h}},68222:function(o,a,n){var l=n(77575),f=n(68318),s=f("%Function.prototype.apply%"),c=f("%Function.prototype.call%"),d=f("%Reflect.apply%",!0)||l.call(c,s),h=f("%Object.getOwnPropertyDescriptor%",!0),p=f("%Object.defineProperty%",!0),m=f("%Math.max%");if(p)try{p({},"a",{value:1})}catch{p=null}o.exports=function(v){var g=d(l,c,arguments);return h&&p&&h(g,"length").configurable&&p(g,"length",{value:1+m(0,v.length-(arguments.length-1))}),g};var y=function(){return d(l,s,arguments)};p?p(o.exports,"apply",{value:y}):o.exports.apply=y},60721:function(o,a,n){function l(_,w){if((k=(_=w?_.toExponential(w-1):_.toExponential()).indexOf("e"))<0)return null;var k,T=_.slice(0,k);return[T.length>1?T[0]+T.slice(2):T,+_.slice(k+1)]}n.d(a,{WU:function(){return v},FF:function(){return x}});var f,s=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function c(_){if(!(w=s.exec(_)))throw new Error("invalid format: "+_);var w;return new d({fill:w[1],align:w[2],sign:w[3],symbol:w[4],zero:w[5],width:w[6],comma:w[7],precision:w[8]&&w[8].slice(1),trim:w[9],type:w[10]})}function d(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.type+""}function h(_,w){var k=l(_,w);if(!k)return _+"";var T=k[0],M=k[1];return M<0?"0."+new Array(-M).join("0")+T:T.length>M+1?T.slice(0,M+1)+"."+T.slice(M+1):T+new Array(M-T.length+2).join("0")}c.prototype=d.prototype,d.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var p={"%":function(_,w){return(100*_).toFixed(w)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:function(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)},e:function(_,w){return _.toExponential(w)},f:function(_,w){return _.toFixed(w)},g:function(_,w){return _.toPrecision(w)},o:function(_){return Math.round(_).toString(8)},p:function(_,w){return h(100*_,w)},r:h,s:function(_,w){var k=l(_,w);if(!k)return _+"";var T=k[0],M=k[1],S=M-(f=3*Math.max(-8,Math.min(8,Math.floor(M/3))))+1,C=T.length;return S===C?T:S>C?T+new Array(S-C+1).join("0"):S>0?T.slice(0,S)+"."+T.slice(S):"0."+new Array(1-S).join("0")+l(_,Math.max(0,w+S-1))[0]},X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function m(_){return _}var y,v,g=Array.prototype.map,b=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function x(_){var w,k,T=_.grouping===void 0||_.thousands===void 0?m:(w=g.call(_.grouping,Number),k=_.thousands+"",function(A,z){for(var B=A.length,$=[],j=0,N=w[0],E=0;B>0&&N>0&&(E+N+1>z&&(N=Math.max(1,z-E)),$.push(A.substring(B-=N,B+N)),!((E+=N+1)>z));)N=w[j=(j+1)%w.length];return $.reverse().join(k)}),M=_.currency===void 0?"":_.currency[0]+"",S=_.currency===void 0?"":_.currency[1]+"",C=_.decimal===void 0?".":_.decimal+"",P=_.numerals===void 0?m:function(A){return function(z){return z.replace(/[0-9]/g,function(B){return A[+B]})}}(g.call(_.numerals,String)),D=_.percent===void 0?"%":_.percent+"",O=_.minus===void 0?"-":_.minus+"",R=_.nan===void 0?"NaN":_.nan+"";function F(A){var z=(A=c(A)).fill,B=A.align,$=A.sign,j=A.symbol,N=A.zero,E=A.width,W=A.comma,G=A.precision,L=A.trim,q=A.type;q==="n"?(W=!0,q="g"):p[q]||(G===void 0&&(G=12),L=!0,q="g"),(N||z==="0"&&B==="=")&&(N=!0,z="0",B="=");var H=j==="$"?M:j==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",V=j==="$"?S:/[%p]/.test(q)?D:"",te=p[q],ee=/[defgprs%]/.test(q);function U(Q){var Y,Z,X,re=H,ie=V;if(q==="c")ie=te(Q)+ie,Q="";else{var le=(Q=+Q)<0||1/Q<0;if(Q=isNaN(Q)?R:te(Math.abs(Q),G),L&&(Q=function(Te){e:for(var Se,Oe=Te.length,Me=1,ce=-1;Me0&&(ce=0)}return ce>0?Te.slice(0,ce)+Te.slice(Se+1):Te}(Q)),le&&+Q==0&&$!=="+"&&(le=!1),re=(le?$==="("?$:O:$==="-"||$==="("?"":$)+re,ie=(q==="s"?b[8+f/3]:"")+ie+(le&&$==="("?")":""),ee){for(Y=-1,Z=Q.length;++Y(X=Q.charCodeAt(Y))||X>57){ie=(X===46?C+Q.slice(Y+1):Q.slice(Y))+ie,Q=Q.slice(0,Y);break}}}W&&!N&&(Q=T(Q,1/0));var se=re.length+Q.length+ie.length,pe=se>1)+re+Q+ie+pe.slice(se);break;default:Q=pe+re+Q+ie}return P(Q)}return G=G===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,G)):Math.max(0,Math.min(20,G)),U.toString=function(){return A+""},U}return{format:F,formatPrefix:function(A,z){var B,$=F(((A=c(A)).type="f",A)),j=3*Math.max(-8,Math.min(8,Math.floor((B=z,((B=l(Math.abs(B)))?B[1]:NaN)/3)))),N=Math.pow(10,-j),E=b[8+j/3];return function(W){return $(N*W)+E}}}}y=x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),v=y.format,y.formatPrefix},84096:function(o,a,n){n.d(a,{i$:function(){return b},Dq:function(){return v},g0:function(){return x}});var l=n(58176),f=n(48480),s=n(59879),c=n(82301),d=n(34823),h=n(79791);function p(ze){if(0<=ze.y&&ze.y<100){var Ne=new Date(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L);return Ne.setFullYear(ze.y),Ne}return new Date(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L)}function m(ze){if(0<=ze.y&&ze.y<100){var Ne=new Date(Date.UTC(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L));return Ne.setUTCFullYear(ze.y),Ne}return new Date(Date.UTC(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L))}function y(ze,Ne,Qe){return{y:ze,m:Ne,d:Qe,H:0,M:0,S:0,L:0}}function v(ze){var Ne=ze.dateTime,Qe=ze.date,it=ze.time,kt=ze.periods,Je=ze.days,ut=ze.shortDays,pt=ze.months,It=ze.shortMonths,Mt=C(kt),zt=P(kt),wt=C(Je),ve=P(Je),_e=C(ut),Ve=P(ut),We=C(pt),Ze=P(pt),Ge=C(It),Ke=P(It),nt={a:function(St){return ut[St.getDay()]},A:function(St){return Je[St.getDay()]},b:function(St){return It[St.getMonth()]},B:function(St){return pt[St.getMonth()]},c:null,d:Q,e:Q,f:ie,H:Y,I:Z,j:X,L:re,m:le,M:se,p:function(St){return kt[+(St.getHours()>=12)]},q:function(St){return 1+~~(St.getMonth()/3)},Q:ct,s:bt,S:pe,u:Te,U:Se,V:Oe,w:Me,W:ce,x:null,X:null,y:ye,Y:J,Z:ne,"%":lt},st={a:function(St){return ut[St.getUTCDay()]},A:function(St){return Je[St.getUTCDay()]},b:function(St){return It[St.getUTCMonth()]},B:function(St){return pt[St.getUTCMonth()]},c:null,d:de,e:de,f:we,H:xe,I:ue,j:ge,L:be,m:ke,M:Ae,p:function(St){return kt[+(St.getUTCHours()>=12)]},q:function(St){return 1+~~(St.getUTCMonth()/3)},Q:ct,s:bt,S:Ee,u:De,U:Re,V:Ie,w:Be,W:Ue,x:null,X:null,y:qe,Y:Ye,Z:at,"%":lt},mt={a:function(St,Nt,Dt){var gt=_e.exec(Nt.slice(Dt));return gt?(St.w=Ve[gt[0].toLowerCase()],Dt+gt[0].length):-1},A:function(St,Nt,Dt){var gt=wt.exec(Nt.slice(Dt));return gt?(St.w=ve[gt[0].toLowerCase()],Dt+gt[0].length):-1},b:function(St,Nt,Dt){var gt=Ge.exec(Nt.slice(Dt));return gt?(St.m=Ke[gt[0].toLowerCase()],Dt+gt[0].length):-1},B:function(St,Nt,Dt){var gt=We.exec(Nt.slice(Dt));return gt?(St.m=Ze[gt[0].toLowerCase()],Dt+gt[0].length):-1},c:function(St,Nt,Dt){return Vt(St,Ne,Nt,Dt)},d:E,e:E,f:V,H:G,I:G,j:W,L:H,m:N,M:L,p:function(St,Nt,Dt){var gt=Mt.exec(Nt.slice(Dt));return gt?(St.p=zt[gt[0].toLowerCase()],Dt+gt[0].length):-1},q:j,Q:ee,s:U,S:q,u:O,U:R,V:F,w:D,W:A,x:function(St,Nt,Dt){return Vt(St,Qe,Nt,Dt)},X:function(St,Nt,Dt){return Vt(St,it,Nt,Dt)},y:B,Y:z,Z:$,"%":te};function tt(St,Nt){return function(Dt){var gt,ht,yt,qt=[],Et=-1,jt=0,Tt=St.length;for(Dt instanceof Date||(Dt=new Date(+Dt));++Et53)return null;"w"in yt||(yt.w=1),"Z"in yt?(ht=(gt=m(y(yt.y,0,1))).getUTCDay(),gt=ht>4||ht===0?l.l6.ceil(gt):(0,l.l6)(gt),gt=f.Z.offset(gt,7*(yt.V-1)),yt.y=gt.getUTCFullYear(),yt.m=gt.getUTCMonth(),yt.d=gt.getUTCDate()+(yt.w+6)%7):(ht=(gt=p(y(yt.y,0,1))).getDay(),gt=ht>4||ht===0?s.wA.ceil(gt):(0,s.wA)(gt),gt=c.Z.offset(gt,7*(yt.V-1)),yt.y=gt.getFullYear(),yt.m=gt.getMonth(),yt.d=gt.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),ht="Z"in yt?m(y(yt.y,0,1)).getUTCDay():p(y(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(ht+5)%7:yt.w+7*yt.U-(ht+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,m(yt)):p(yt)}}function Vt(St,Nt,Dt,gt){for(var ht,yt,qt=0,Et=Nt.length,jt=Dt.length;qt=jt)return-1;if((ht=Nt.charCodeAt(qt++))===37){if(ht=Nt.charAt(qt++),!(yt=mt[ht in _?Nt.charAt(qt++):ht])||(gt=yt(St,Dt,gt))<0)return-1}else if(ht!=Dt.charCodeAt(gt++))return-1}return gt}return nt.x=tt(Qe,nt),nt.X=tt(it,nt),nt.c=tt(Ne,nt),st.x=tt(Qe,st),st.X=tt(it,st),st.c=tt(Ne,st),{format:function(St){var Nt=tt(St+="",nt);return Nt.toString=function(){return St},Nt},parse:function(St){var Nt=Ft(St+="",!1);return Nt.toString=function(){return St},Nt},utcFormat:function(St){var Nt=tt(St+="",st);return Nt.toString=function(){return St},Nt},utcParse:function(St){var Nt=Ft(St+="",!0);return Nt.toString=function(){return St},Nt}}}var g,b,x,_={"-":"",_:" ",0:"0"},w=/^\s*\d+/,k=/^%/,T=/[\\^$*+?|[\]().{}]/g;function M(ze,Ne,Qe){var it=ze<0?"-":"",kt=(it?-ze:ze)+"",Je=kt.length;return it+(Je68?1900:2e3),Qe+it[0].length):-1}function $(ze,Ne,Qe){var it=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ne.slice(Qe,Qe+6));return it?(ze.Z=it[1]?0:-(it[2]+(it[3]||"00")),Qe+it[0].length):-1}function j(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+1));return it?(ze.q=3*it[0]-3,Qe+it[0].length):-1}function N(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.m=it[0]-1,Qe+it[0].length):-1}function E(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.d=+it[0],Qe+it[0].length):-1}function W(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+3));return it?(ze.m=0,ze.d=+it[0],Qe+it[0].length):-1}function G(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.H=+it[0],Qe+it[0].length):-1}function L(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.M=+it[0],Qe+it[0].length):-1}function q(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.S=+it[0],Qe+it[0].length):-1}function H(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+3));return it?(ze.L=+it[0],Qe+it[0].length):-1}function V(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+6));return it?(ze.L=Math.floor(it[0]/1e3),Qe+it[0].length):-1}function te(ze,Ne,Qe){var it=k.exec(Ne.slice(Qe,Qe+1));return it?Qe+it[0].length:-1}function ee(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe));return it?(ze.Q=+it[0],Qe+it[0].length):-1}function U(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe));return it?(ze.s=+it[0],Qe+it[0].length):-1}function Q(ze,Ne){return M(ze.getDate(),Ne,2)}function Y(ze,Ne){return M(ze.getHours(),Ne,2)}function Z(ze,Ne){return M(ze.getHours()%12||12,Ne,2)}function X(ze,Ne){return M(1+c.Z.count((0,d.Z)(ze),ze),Ne,3)}function re(ze,Ne){return M(ze.getMilliseconds(),Ne,3)}function ie(ze,Ne){return re(ze,Ne)+"000"}function le(ze,Ne){return M(ze.getMonth()+1,Ne,2)}function se(ze,Ne){return M(ze.getMinutes(),Ne,2)}function pe(ze,Ne){return M(ze.getSeconds(),Ne,2)}function Te(ze){var Ne=ze.getDay();return Ne===0?7:Ne}function Se(ze,Ne){return M(s.OM.count((0,d.Z)(ze)-1,ze),Ne,2)}function Oe(ze,Ne){var Qe=ze.getDay();return ze=Qe>=4||Qe===0?(0,s.bL)(ze):s.bL.ceil(ze),M(s.bL.count((0,d.Z)(ze),ze)+((0,d.Z)(ze).getDay()===4),Ne,2)}function Me(ze){return ze.getDay()}function ce(ze,Ne){return M(s.wA.count((0,d.Z)(ze)-1,ze),Ne,2)}function ye(ze,Ne){return M(ze.getFullYear()%100,Ne,2)}function J(ze,Ne){return M(ze.getFullYear()%1e4,Ne,4)}function ne(ze){var Ne=ze.getTimezoneOffset();return(Ne>0?"-":(Ne*=-1,"+"))+M(Ne/60|0,"0",2)+M(Ne%60,"0",2)}function de(ze,Ne){return M(ze.getUTCDate(),Ne,2)}function xe(ze,Ne){return M(ze.getUTCHours(),Ne,2)}function ue(ze,Ne){return M(ze.getUTCHours()%12||12,Ne,2)}function ge(ze,Ne){return M(1+f.Z.count((0,h.Z)(ze),ze),Ne,3)}function be(ze,Ne){return M(ze.getUTCMilliseconds(),Ne,3)}function we(ze,Ne){return be(ze,Ne)+"000"}function ke(ze,Ne){return M(ze.getUTCMonth()+1,Ne,2)}function Ae(ze,Ne){return M(ze.getUTCMinutes(),Ne,2)}function Ee(ze,Ne){return M(ze.getUTCSeconds(),Ne,2)}function De(ze){var Ne=ze.getUTCDay();return Ne===0?7:Ne}function Re(ze,Ne){return M(l.Ox.count((0,h.Z)(ze)-1,ze),Ne,2)}function Ie(ze,Ne){var Qe=ze.getUTCDay();return ze=Qe>=4||Qe===0?(0,l.hB)(ze):l.hB.ceil(ze),M(l.hB.count((0,h.Z)(ze),ze)+((0,h.Z)(ze).getUTCDay()===4),Ne,2)}function Be(ze){return ze.getUTCDay()}function Ue(ze,Ne){return M(l.l6.count((0,h.Z)(ze)-1,ze),Ne,2)}function qe(ze,Ne){return M(ze.getUTCFullYear()%100,Ne,2)}function Ye(ze,Ne){return M(ze.getUTCFullYear()%1e4,Ne,4)}function at(){return"+0000"}function lt(){return"%"}function ct(ze){return+ze}function bt(ze){return Math.floor(+ze/1e3)}g=v({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),b=g.format,g.parse,x=g.utcFormat,g.utcParse},82301:function(o,a,n){n.d(a,{a:function(){return c}});var l=n(30052),f=n(54263),s=(0,l.Z)(function(d){d.setHours(0,0,0,0)},function(d,h){d.setDate(d.getDate()+h)},function(d,h){return(h-d-(h.getTimezoneOffset()-d.getTimezoneOffset())*f.yB)/f.UD},function(d){return d.getDate()-1});a.Z=s;var c=s.range},54263:function(o,a,n){n.d(a,{UD:function(){return c},Y2:function(){return s},Ym:function(){return l},iM:function(){return d},yB:function(){return f}});var l=1e3,f=6e4,s=36e5,c=864e5,d=6048e5},81041:function(o,a,n){n.r(a),n.d(a,{timeDay:function(){return w.Z},timeDays:function(){return w.a},timeFriday:function(){return k.mC},timeFridays:function(){return k.b$},timeHour:function(){return x},timeHours:function(){return _},timeInterval:function(){return l.Z},timeMillisecond:function(){return s},timeMilliseconds:function(){return c},timeMinute:function(){return v},timeMinutes:function(){return g},timeMonday:function(){return k.wA},timeMondays:function(){return k.bJ},timeMonth:function(){return M},timeMonths:function(){return S},timeSaturday:function(){return k.EY},timeSaturdays:function(){return k.Ff},timeSecond:function(){return p},timeSeconds:function(){return m},timeSunday:function(){return k.OM},timeSundays:function(){return k.vm},timeThursday:function(){return k.bL},timeThursdays:function(){return k.$t},timeTuesday:function(){return k.sy},timeTuesdays:function(){return k.aU},timeWednesday:function(){return k.zg},timeWednesdays:function(){return k.Ld},timeWeek:function(){return k.OM},timeWeeks:function(){return k.vm},timeYear:function(){return C.Z},timeYears:function(){return C.g},utcDay:function(){return z.Z},utcDays:function(){return z.y},utcFriday:function(){return B.QQ},utcFridays:function(){return B.fz},utcHour:function(){return F},utcHours:function(){return A},utcMillisecond:function(){return s},utcMilliseconds:function(){return c},utcMinute:function(){return D},utcMinutes:function(){return O},utcMonday:function(){return B.l6},utcMondays:function(){return B.$3},utcMonth:function(){return j},utcMonths:function(){return N},utcSaturday:function(){return B.g4},utcSaturdays:function(){return B.Q_},utcSecond:function(){return p},utcSeconds:function(){return m},utcSunday:function(){return B.Ox},utcSundays:function(){return B.SU},utcThursday:function(){return B.hB},utcThursdays:function(){return B.xj},utcTuesday:function(){return B.J1},utcTuesdays:function(){return B.DK},utcWednesday:function(){return B.b3},utcWednesdays:function(){return B.uy},utcWeek:function(){return B.Ox},utcWeeks:function(){return B.SU},utcYear:function(){return E.Z},utcYears:function(){return E.D}});var l=n(30052),f=(0,l.Z)(function(){},function(W,G){W.setTime(+W+G)},function(W,G){return G-W});f.every=function(W){return W=Math.floor(W),isFinite(W)&&W>0?W>1?(0,l.Z)(function(G){G.setTime(Math.floor(G/W)*W)},function(G,L){G.setTime(+G+L*W)},function(G,L){return(L-G)/W}):f:null};var s=f,c=f.range,d=n(54263),h=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds())},function(W,G){W.setTime(+W+G*d.Ym)},function(W,G){return(G-W)/d.Ym},function(W){return W.getUTCSeconds()}),p=h,m=h.range,y=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*d.Ym)},function(W,G){W.setTime(+W+G*d.yB)},function(W,G){return(G-W)/d.yB},function(W){return W.getMinutes()}),v=y,g=y.range,b=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*d.Ym-W.getMinutes()*d.yB)},function(W,G){W.setTime(+W+G*d.Y2)},function(W,G){return(G-W)/d.Y2},function(W){return W.getHours()}),x=b,_=b.range,w=n(82301),k=n(59879),T=(0,l.Z)(function(W){W.setDate(1),W.setHours(0,0,0,0)},function(W,G){W.setMonth(W.getMonth()+G)},function(W,G){return G.getMonth()-W.getMonth()+12*(G.getFullYear()-W.getFullYear())},function(W){return W.getMonth()}),M=T,S=T.range,C=n(34823),P=(0,l.Z)(function(W){W.setUTCSeconds(0,0)},function(W,G){W.setTime(+W+G*d.yB)},function(W,G){return(G-W)/d.yB},function(W){return W.getUTCMinutes()}),D=P,O=P.range,R=(0,l.Z)(function(W){W.setUTCMinutes(0,0,0)},function(W,G){W.setTime(+W+G*d.Y2)},function(W,G){return(G-W)/d.Y2},function(W){return W.getUTCHours()}),F=R,A=R.range,z=n(48480),B=n(58176),$=(0,l.Z)(function(W){W.setUTCDate(1),W.setUTCHours(0,0,0,0)},function(W,G){W.setUTCMonth(W.getUTCMonth()+G)},function(W,G){return G.getUTCMonth()-W.getUTCMonth()+12*(G.getUTCFullYear()-W.getUTCFullYear())},function(W){return W.getUTCMonth()}),j=$,N=$.range,E=n(79791)},30052:function(o,a,n){n.d(a,{Z:function(){return s}});var l=new Date,f=new Date;function s(c,d,h,p){function m(y){return c(y=arguments.length===0?new Date:new Date(+y)),y}return m.floor=function(y){return c(y=new Date(+y)),y},m.ceil=function(y){return c(y=new Date(y-1)),d(y,1),c(y),y},m.round=function(y){var v=m(y),g=m.ceil(y);return y-v0))return x;do x.push(b=new Date(+y)),d(y,g),c(y);while(b=v)for(;c(v),!y(v);)v.setTime(v-1)},function(v,g){if(v>=v)if(g<0)for(;++g<=0;)for(;d(v,-1),!y(v););else for(;--g>=0;)for(;d(v,1),!y(v););})},h&&(m.count=function(y,v){return l.setTime(+y),f.setTime(+v),c(l),c(f),Math.floor(h(l,f))},m.every=function(y){return y=Math.floor(y),isFinite(y)&&y>0?y>1?m.filter(p?function(v){return p(v)%y==0}:function(v){return m.count(0,v)%y==0}):m:null}),m}},48480:function(o,a,n){n.d(a,{y:function(){return c}});var l=n(30052),f=n(54263),s=(0,l.Z)(function(d){d.setUTCHours(0,0,0,0)},function(d,h){d.setUTCDate(d.getUTCDate()+h)},function(d,h){return(h-d)/f.UD},function(d){return d.getUTCDate()-1});a.Z=s;var c=s.range},58176:function(o,a,n){n.d(a,{$3:function(){return b},DK:function(){return x},J1:function(){return h},Ox:function(){return c},QQ:function(){return y},Q_:function(){return T},SU:function(){return g},b3:function(){return p},fz:function(){return k},g4:function(){return v},hB:function(){return m},l6:function(){return d},uy:function(){return _},xj:function(){return w}});var l=n(30052),f=n(54263);function s(M){return(0,l.Z)(function(S){S.setUTCDate(S.getUTCDate()-(S.getUTCDay()+7-M)%7),S.setUTCHours(0,0,0,0)},function(S,C){S.setUTCDate(S.getUTCDate()+7*C)},function(S,C){return(C-S)/f.iM})}var c=s(0),d=s(1),h=s(2),p=s(3),m=s(4),y=s(5),v=s(6),g=c.range,b=d.range,x=h.range,_=p.range,w=m.range,k=y.range,T=v.range},79791:function(o,a,n){n.d(a,{D:function(){return s}});var l=n(30052),f=(0,l.Z)(function(c){c.setUTCMonth(0,1),c.setUTCHours(0,0,0,0)},function(c,d){c.setUTCFullYear(c.getUTCFullYear()+d)},function(c,d){return d.getUTCFullYear()-c.getUTCFullYear()},function(c){return c.getUTCFullYear()});f.every=function(c){return isFinite(c=Math.floor(c))&&c>0?(0,l.Z)(function(d){d.setUTCFullYear(Math.floor(d.getUTCFullYear()/c)*c),d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},function(d,h){d.setUTCFullYear(d.getUTCFullYear()+h*c)}):null},a.Z=f;var s=f.range},59879:function(o,a,n){n.d(a,{$t:function(){return w},EY:function(){return v},Ff:function(){return T},Ld:function(){return _},OM:function(){return c},aU:function(){return x},b$:function(){return k},bJ:function(){return b},bL:function(){return m},mC:function(){return y},sy:function(){return h},vm:function(){return g},wA:function(){return d},zg:function(){return p}});var l=n(30052),f=n(54263);function s(M){return(0,l.Z)(function(S){S.setDate(S.getDate()-(S.getDay()+7-M)%7),S.setHours(0,0,0,0)},function(S,C){S.setDate(S.getDate()+7*C)},function(S,C){return(C-S-(C.getTimezoneOffset()-S.getTimezoneOffset())*f.yB)/f.iM})}var c=s(0),d=s(1),h=s(2),p=s(3),m=s(4),y=s(5),v=s(6),g=c.range,b=d.range,x=h.range,_=p.range,w=m.range,k=y.range,T=v.range},34823:function(o,a,n){n.d(a,{g:function(){return s}});var l=n(30052),f=(0,l.Z)(function(c){c.setMonth(0,1),c.setHours(0,0,0,0)},function(c,d){c.setFullYear(c.getFullYear()+d)},function(c,d){return d.getFullYear()-c.getFullYear()},function(c){return c.getFullYear()});f.every=function(c){return isFinite(c=Math.floor(c))&&c>0?(0,l.Z)(function(d){d.setFullYear(Math.floor(d.getFullYear()/c)*c),d.setMonth(0,1),d.setHours(0,0,0,0)},function(d,h){d.setFullYear(d.getFullYear()+h*c)}):null},a.Z=f;var s=f.range},17045:function(o,a,n){var l=n(8709),f=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",s=Object.prototype.toString,c=Array.prototype.concat,d=Object.defineProperty,h=n(55622)(),p=d&&h,m=function(v,g,b,x){if(g in v){if(x===!0){if(v[g]===b)return}else if(typeof(_=x)!="function"||s.call(_)!=="[object Function]"||!x())return}var _;p?d(v,g,{configurable:!0,enumerable:!1,value:b,writable:!0}):v[g]=b},y=function(v,g){var b=arguments.length>2?arguments[2]:{},x=l(g);f&&(x=c.call(x,Object.getOwnPropertySymbols(g)));for(var _=0;_0&&C.length>M&&!C.warned){C.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=_,D.type=w,D.count=C.length,P=D,console&&console.warn&&console.warn(P)}return _}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(_,w,k){var T={fired:!1,wrapFn:void 0,target:_,type:w,listener:k},M=m.bind(T);return M.listener=k,T.wrapFn=M,M}function v(_,w,k){var T=_._events;if(T===void 0)return[];var M=T[w];return M===void 0?[]:typeof M=="function"?k?[M.listener||M]:[M]:k?function(S){for(var C=new Array(S.length),P=0;P0&&(S=w[0]),S instanceof Error)throw S;var C=new Error("Unhandled error."+(S?" ("+S.message+")":""));throw C.context=S,C}var P=M[_];if(P===void 0)return!1;if(typeof P=="function")l(P,this,w);else{var D=P.length,O=b(P,D);for(k=0;k=0;S--)if(k[S]===w||k[S].listener===w){C=k[S].listener,M=S;break}if(M<0)return this;M===0?k.shift():function(P,D){for(;D+1=0;T--)this.removeListener(_,w[T]);return this},s.prototype.listeners=function(_){return v(this,_,!0)},s.prototype.rawListeners=function(_){return v(this,_,!1)},s.listenerCount=function(_,w){return typeof _.listenerCount=="function"?_.listenerCount(w):g.call(_,w)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},92770:function(o,a,n){var l=n(18546);o.exports=function(f){var s=typeof f;if(s==="string"){var c=f;if((f=+f)==0&&l(c))return!1}else if(s!=="number")return!1;return f-f<1}},31353:function(o,a,n){var l=n(85395),f=Object.prototype.toString,s=Object.prototype.hasOwnProperty;o.exports=function(c,d,h){if(!l(d))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=h),f.call(c)==="[object Array]"?function(m,y,v){for(var g=0,b=m.length;g"u"?l:v(Uint8Array),x={"%AggregateError%":typeof AggregateError>"u"?l:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?l:ArrayBuffer,"%ArrayIteratorPrototype%":y?v([][Symbol.iterator]()):l,"%AsyncFromSyncIteratorPrototype%":l,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":typeof Atomics>"u"?l:Atomics,"%BigInt%":typeof BigInt>"u"?l:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?l:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?l:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?l:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?l:Float32Array,"%Float64Array%":typeof Float64Array>"u"?l:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?l:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":g,"%Int8Array%":typeof Int8Array>"u"?l:Int8Array,"%Int16Array%":typeof Int16Array>"u"?l:Int16Array,"%Int32Array%":typeof Int32Array>"u"?l:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y?v(v([][Symbol.iterator]())):l,"%JSON%":typeof JSON=="object"?JSON:l,"%Map%":typeof Map>"u"?l:Map,"%MapIteratorPrototype%":typeof Map<"u"&&y?v(new Map()[Symbol.iterator]()):l,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?l:Promise,"%Proxy%":typeof Proxy>"u"?l:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?l:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?l:Set,"%SetIteratorPrototype%":typeof Set<"u"&&y?v(new Set()[Symbol.iterator]()):l,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?l:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y?v(""[Symbol.iterator]()):l,"%Symbol%":y?Symbol:l,"%SyntaxError%":f,"%ThrowTypeError%":m,"%TypedArray%":b,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?l:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?l:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?l:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?l:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?l:WeakMap,"%WeakRef%":typeof WeakRef>"u"?l:WeakRef,"%WeakSet%":typeof WeakSet>"u"?l:WeakSet};try{null.error}catch(z){var _=v(v(z));x["%Error.prototype%"]=_}var w=function z(B){var $;if(B==="%AsyncFunction%")$=d("async function () {}");else if(B==="%GeneratorFunction%")$=d("function* () {}");else if(B==="%AsyncGeneratorFunction%")$=d("async function* () {}");else if(B==="%AsyncGenerator%"){var j=z("%AsyncGeneratorFunction%");j&&($=j.prototype)}else if(B==="%AsyncIteratorPrototype%"){var N=z("%AsyncGenerator%");N&&($=v(N.prototype))}return x[B]=$,$},k={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=n(77575),M=n(35065),S=T.call(Function.call,Array.prototype.concat),C=T.call(Function.apply,Array.prototype.splice),P=T.call(Function.call,String.prototype.replace),D=T.call(Function.call,String.prototype.slice),O=T.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,A=function(z,B){var $,j=z;if(M(k,j)&&(j="%"+($=k[j])[0]+"%"),M(x,j)){var N=x[j];if(N===g&&(N=w(j)),N===void 0&&!B)throw new c("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:$,name:j,value:N}}throw new f("intrinsic "+z+" does not exist!")};o.exports=function(z,B){if(typeof z!="string"||z.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new c('"allowMissing" argument must be a boolean');if(O(/^%?[^%]*%?$/,z)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=function(Q){var Y=D(Q,0,1),Z=D(Q,-1);if(Y==="%"&&Z!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&Y!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var X=[];return P(Q,R,function(re,ie,le,se){X[X.length]=le?P(se,F,"$1"):ie||re}),X}(z),j=$.length>0?$[0]:"",N=A("%"+j+"%",B),E=N.name,W=N.value,G=!1,L=N.alias;L&&(j=L[0],C($,S([0,1],L)));for(var q=1,H=!0;q<$.length;q+=1){var V=$[q],te=D(V,0,1),ee=D(V,-1);if((te==='"'||te==="'"||te==="`"||ee==='"'||ee==="'"||ee==="`")&&te!==ee)throw new f("property names with quotes must have matching quotes");if(V!=="constructor"&&H||(G=!0),M(x,E="%"+(j+="."+V)+"%"))W=x[E];else if(W!=null){if(!(V in W)){if(!B)throw new c("base intrinsic for "+z+" exists, but the property is not available.");return}if(h&&q+1>=$.length){var U=h(W,V);W=(H=!!U)&&"get"in U&&!("originalValue"in U.get)?U.get:W[V]}else H=M(W,V),W=W[V];H&&!G&&(x[E]=W)}}return W}},85400:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],c=n[3],d=n[4],h=n[5],p=n[6],m=n[7],y=n[8],v=n[9],g=n[10],b=n[11],x=n[12],_=n[13],w=n[14],k=n[15];return a[0]=h*(g*k-b*w)-v*(p*k-m*w)+_*(p*b-m*g),a[1]=-(f*(g*k-b*w)-v*(s*k-c*w)+_*(s*b-c*g)),a[2]=f*(p*k-m*w)-h*(s*k-c*w)+_*(s*m-c*p),a[3]=-(f*(p*b-m*g)-h*(s*b-c*g)+v*(s*m-c*p)),a[4]=-(d*(g*k-b*w)-y*(p*k-m*w)+x*(p*b-m*g)),a[5]=l*(g*k-b*w)-y*(s*k-c*w)+x*(s*b-c*g),a[6]=-(l*(p*k-m*w)-d*(s*k-c*w)+x*(s*m-c*p)),a[7]=l*(p*b-m*g)-d*(s*b-c*g)+y*(s*m-c*p),a[8]=d*(v*k-b*_)-y*(h*k-m*_)+x*(h*b-m*v),a[9]=-(l*(v*k-b*_)-y*(f*k-c*_)+x*(f*b-c*v)),a[10]=l*(h*k-m*_)-d*(f*k-c*_)+x*(f*m-c*h),a[11]=-(l*(h*b-m*v)-d*(f*b-c*v)+y*(f*m-c*h)),a[12]=-(d*(v*w-g*_)-y*(h*w-p*_)+x*(h*g-p*v)),a[13]=l*(v*w-g*_)-y*(f*w-s*_)+x*(f*g-s*v),a[14]=-(l*(h*w-p*_)-d*(f*w-s*_)+x*(f*p-s*h)),a[15]=l*(h*g-p*v)-d*(f*g-s*v)+y*(f*p-s*h),a}},42331:function(o){o.exports=function(a){var n=new Float32Array(16);return n[0]=a[0],n[1]=a[1],n[2]=a[2],n[3]=a[3],n[4]=a[4],n[5]=a[5],n[6]=a[6],n[7]=a[7],n[8]=a[8],n[9]=a[9],n[10]=a[10],n[11]=a[11],n[12]=a[12],n[13]=a[13],n[14]=a[14],n[15]=a[15],n}},31042:function(o){o.exports=function(a,n){return a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a[4]=n[4],a[5]=n[5],a[6]=n[6],a[7]=n[7],a[8]=n[8],a[9]=n[9],a[10]=n[10],a[11]=n[11],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15],a}},11902:function(o){o.exports=function(){var a=new Float32Array(16);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},89887:function(o){o.exports=function(a){var n=a[0],l=a[1],f=a[2],s=a[3],c=a[4],d=a[5],h=a[6],p=a[7],m=a[8],y=a[9],v=a[10],g=a[11],b=a[12],x=a[13],_=a[14],w=a[15];return(n*d-l*c)*(v*w-g*_)-(n*h-f*c)*(y*w-g*x)+(n*p-s*c)*(y*_-v*x)+(l*h-f*d)*(m*w-g*b)-(l*p-s*d)*(m*_-v*b)+(f*p-s*h)*(m*x-y*b)}},27812:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],c=n[3],d=l+l,h=f+f,p=s+s,m=l*d,y=f*d,v=f*h,g=s*d,b=s*h,x=s*p,_=c*d,w=c*h,k=c*p;return a[0]=1-v-x,a[1]=y+k,a[2]=g-w,a[3]=0,a[4]=y-k,a[5]=1-m-x,a[6]=b+_,a[7]=0,a[8]=g+w,a[9]=b-_,a[10]=1-m-v,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},34045:function(o){o.exports=function(a,n,l){var f,s,c,d=l[0],h=l[1],p=l[2],m=Math.sqrt(d*d+h*h+p*p);return Math.abs(m)<1e-6?null:(d*=m=1/m,h*=m,p*=m,f=Math.sin(n),c=1-(s=Math.cos(n)),a[0]=d*d*c+s,a[1]=h*d*c+p*f,a[2]=p*d*c-h*f,a[3]=0,a[4]=d*h*c-p*f,a[5]=h*h*c+s,a[6]=p*h*c+d*f,a[7]=0,a[8]=d*p*c+h*f,a[9]=h*p*c-d*f,a[10]=p*p*c+s,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a)}},45973:function(o){o.exports=function(a,n,l){var f=n[0],s=n[1],c=n[2],d=n[3],h=f+f,p=s+s,m=c+c,y=f*h,v=f*p,g=f*m,b=s*p,x=s*m,_=c*m,w=d*h,k=d*p,T=d*m;return a[0]=1-(b+_),a[1]=v+T,a[2]=g-k,a[3]=0,a[4]=v-T,a[5]=1-(y+_),a[6]=x+w,a[7]=0,a[8]=g+k,a[9]=x-w,a[10]=1-(y+b),a[11]=0,a[12]=l[0],a[13]=l[1],a[14]=l[2],a[15]=1,a}},81472:function(o){o.exports=function(a,n){return a[0]=n[0],a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=n[1],a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=n[2],a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},14669:function(o){o.exports=function(a,n){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=n[0],a[13]=n[1],a[14]=n[2],a[15]=1,a}},75262:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=f,a[6]=l,a[7]=0,a[8]=0,a[9]=-l,a[10]=f,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},331:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=f,a[1]=0,a[2]=-l,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=l,a[9]=0,a[10]=f,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},11049:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=f,a[1]=l,a[2]=0,a[3]=0,a[4]=-l,a[5]=f,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},75195:function(o){o.exports=function(a,n,l,f,s,c,d){var h=1/(l-n),p=1/(s-f),m=1/(c-d);return a[0]=2*c*h,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=2*c*p,a[6]=0,a[7]=0,a[8]=(l+n)*h,a[9]=(s+f)*p,a[10]=(d+c)*m,a[11]=-1,a[12]=0,a[13]=0,a[14]=d*c*2*m,a[15]=0,a}},71551:function(o){o.exports=function(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},79576:function(o,a,n){o.exports={create:n(11902),clone:n(42331),copy:n(31042),identity:n(71551),transpose:n(88654),invert:n(95874),adjoint:n(85400),determinant:n(89887),multiply:n(91362),translate:n(31283),scale:n(10789),rotate:n(65074),rotateX:n(35545),rotateY:n(94918),rotateZ:n(15692),fromRotation:n(34045),fromRotationTranslation:n(45973),fromScaling:n(81472),fromTranslation:n(14669),fromXRotation:n(75262),fromYRotation:n(331),fromZRotation:n(11049),fromQuat:n(27812),frustum:n(75195),perspective:n(7864),perspectiveFromFieldOfView:n(35279),ortho:n(60378),lookAt:n(65551),str:n(6726)}},95874:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],c=n[3],d=n[4],h=n[5],p=n[6],m=n[7],y=n[8],v=n[9],g=n[10],b=n[11],x=n[12],_=n[13],w=n[14],k=n[15],T=l*h-f*d,M=l*p-s*d,S=l*m-c*d,C=f*p-s*h,P=f*m-c*h,D=s*m-c*p,O=y*_-v*x,R=y*w-g*x,F=y*k-b*x,A=v*w-g*_,z=v*k-b*_,B=g*k-b*w,$=T*B-M*z+S*A+C*F-P*R+D*O;return $?($=1/$,a[0]=(h*B-p*z+m*A)*$,a[1]=(s*z-f*B-c*A)*$,a[2]=(_*D-w*P+k*C)*$,a[3]=(g*P-v*D-b*C)*$,a[4]=(p*F-d*B-m*R)*$,a[5]=(l*B-s*F+c*R)*$,a[6]=(w*S-x*D-k*M)*$,a[7]=(y*D-g*S+b*M)*$,a[8]=(d*z-h*F+m*O)*$,a[9]=(f*F-l*z-c*O)*$,a[10]=(x*P-_*S+k*T)*$,a[11]=(v*S-y*P-b*T)*$,a[12]=(h*R-d*A-p*O)*$,a[13]=(l*A-f*R+s*O)*$,a[14]=(_*M-x*C-w*T)*$,a[15]=(y*C-v*M+g*T)*$,a):null}},65551:function(o,a,n){var l=n(71551);o.exports=function(f,s,c,d){var h,p,m,y,v,g,b,x,_,w,k=s[0],T=s[1],M=s[2],S=d[0],C=d[1],P=d[2],D=c[0],O=c[1],R=c[2];return Math.abs(k-D)<1e-6&&Math.abs(T-O)<1e-6&&Math.abs(M-R)<1e-6?l(f):(b=k-D,x=T-O,_=M-R,h=C*(_*=w=1/Math.sqrt(b*b+x*x+_*_))-P*(x*=w),p=P*(b*=w)-S*_,m=S*x-C*b,(w=Math.sqrt(h*h+p*p+m*m))?(h*=w=1/w,p*=w,m*=w):(h=0,p=0,m=0),y=x*m-_*p,v=_*h-b*m,g=b*p-x*h,(w=Math.sqrt(y*y+v*v+g*g))?(y*=w=1/w,v*=w,g*=w):(y=0,v=0,g=0),f[0]=h,f[1]=y,f[2]=b,f[3]=0,f[4]=p,f[5]=v,f[6]=x,f[7]=0,f[8]=m,f[9]=g,f[10]=_,f[11]=0,f[12]=-(h*k+p*T+m*M),f[13]=-(y*k+v*T+g*M),f[14]=-(b*k+x*T+_*M),f[15]=1,f)}},91362:function(o){o.exports=function(a,n,l){var f=n[0],s=n[1],c=n[2],d=n[3],h=n[4],p=n[5],m=n[6],y=n[7],v=n[8],g=n[9],b=n[10],x=n[11],_=n[12],w=n[13],k=n[14],T=n[15],M=l[0],S=l[1],C=l[2],P=l[3];return a[0]=M*f+S*h+C*v+P*_,a[1]=M*s+S*p+C*g+P*w,a[2]=M*c+S*m+C*b+P*k,a[3]=M*d+S*y+C*x+P*T,M=l[4],S=l[5],C=l[6],P=l[7],a[4]=M*f+S*h+C*v+P*_,a[5]=M*s+S*p+C*g+P*w,a[6]=M*c+S*m+C*b+P*k,a[7]=M*d+S*y+C*x+P*T,M=l[8],S=l[9],C=l[10],P=l[11],a[8]=M*f+S*h+C*v+P*_,a[9]=M*s+S*p+C*g+P*w,a[10]=M*c+S*m+C*b+P*k,a[11]=M*d+S*y+C*x+P*T,M=l[12],S=l[13],C=l[14],P=l[15],a[12]=M*f+S*h+C*v+P*_,a[13]=M*s+S*p+C*g+P*w,a[14]=M*c+S*m+C*b+P*k,a[15]=M*d+S*y+C*x+P*T,a}},60378:function(o){o.exports=function(a,n,l,f,s,c,d){var h=1/(n-l),p=1/(f-s),m=1/(c-d);return a[0]=-2*h,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*p,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*m,a[11]=0,a[12]=(n+l)*h,a[13]=(s+f)*p,a[14]=(d+c)*m,a[15]=1,a}},7864:function(o){o.exports=function(a,n,l,f,s){var c=1/Math.tan(n/2),d=1/(f-s);return a[0]=c/l,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=c,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=(s+f)*d,a[11]=-1,a[12]=0,a[13]=0,a[14]=2*s*f*d,a[15]=0,a}},35279:function(o){o.exports=function(a,n,l,f){var s=Math.tan(n.upDegrees*Math.PI/180),c=Math.tan(n.downDegrees*Math.PI/180),d=Math.tan(n.leftDegrees*Math.PI/180),h=Math.tan(n.rightDegrees*Math.PI/180),p=2/(d+h),m=2/(s+c);return a[0]=p,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=m,a[6]=0,a[7]=0,a[8]=-(d-h)*p*.5,a[9]=(s-c)*m*.5,a[10]=f/(l-f),a[11]=-1,a[12]=0,a[13]=0,a[14]=f*l/(l-f),a[15]=0,a}},65074:function(o){o.exports=function(a,n,l,f){var s,c,d,h,p,m,y,v,g,b,x,_,w,k,T,M,S,C,P,D,O,R,F,A,z=f[0],B=f[1],$=f[2],j=Math.sqrt(z*z+B*B+$*$);return Math.abs(j)<1e-6?null:(z*=j=1/j,B*=j,$*=j,s=Math.sin(l),d=1-(c=Math.cos(l)),h=n[0],p=n[1],m=n[2],y=n[3],v=n[4],g=n[5],b=n[6],x=n[7],_=n[8],w=n[9],k=n[10],T=n[11],M=z*z*d+c,S=B*z*d+$*s,C=$*z*d-B*s,P=z*B*d-$*s,D=B*B*d+c,O=$*B*d+z*s,R=z*$*d+B*s,F=B*$*d-z*s,A=$*$*d+c,a[0]=h*M+v*S+_*C,a[1]=p*M+g*S+w*C,a[2]=m*M+b*S+k*C,a[3]=y*M+x*S+T*C,a[4]=h*P+v*D+_*O,a[5]=p*P+g*D+w*O,a[6]=m*P+b*D+k*O,a[7]=y*P+x*D+T*O,a[8]=h*R+v*F+_*A,a[9]=p*R+g*F+w*A,a[10]=m*R+b*F+k*A,a[11]=y*R+x*F+T*A,n!==a&&(a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a)}},35545:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),c=n[4],d=n[5],h=n[6],p=n[7],m=n[8],y=n[9],v=n[10],g=n[11];return n!==a&&(a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[4]=c*s+m*f,a[5]=d*s+y*f,a[6]=h*s+v*f,a[7]=p*s+g*f,a[8]=m*s-c*f,a[9]=y*s-d*f,a[10]=v*s-h*f,a[11]=g*s-p*f,a}},94918:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),c=n[0],d=n[1],h=n[2],p=n[3],m=n[8],y=n[9],v=n[10],g=n[11];return n!==a&&(a[4]=n[4],a[5]=n[5],a[6]=n[6],a[7]=n[7],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[0]=c*s-m*f,a[1]=d*s-y*f,a[2]=h*s-v*f,a[3]=p*s-g*f,a[8]=c*f+m*s,a[9]=d*f+y*s,a[10]=h*f+v*s,a[11]=p*f+g*s,a}},15692:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),c=n[0],d=n[1],h=n[2],p=n[3],m=n[4],y=n[5],v=n[6],g=n[7];return n!==a&&(a[8]=n[8],a[9]=n[9],a[10]=n[10],a[11]=n[11],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[0]=c*s+m*f,a[1]=d*s+y*f,a[2]=h*s+v*f,a[3]=p*s+g*f,a[4]=m*s-c*f,a[5]=y*s-d*f,a[6]=v*s-h*f,a[7]=g*s-p*f,a}},10789:function(o){o.exports=function(a,n,l){var f=l[0],s=l[1],c=l[2];return a[0]=n[0]*f,a[1]=n[1]*f,a[2]=n[2]*f,a[3]=n[3]*f,a[4]=n[4]*s,a[5]=n[5]*s,a[6]=n[6]*s,a[7]=n[7]*s,a[8]=n[8]*c,a[9]=n[9]*c,a[10]=n[10]*c,a[11]=n[11]*c,a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15],a}},6726:function(o){o.exports=function(a){return"mat4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+", "+a[6]+", "+a[7]+", "+a[8]+", "+a[9]+", "+a[10]+", "+a[11]+", "+a[12]+", "+a[13]+", "+a[14]+", "+a[15]+")"}},31283:function(o){o.exports=function(a,n,l){var f,s,c,d,h,p,m,y,v,g,b,x,_=l[0],w=l[1],k=l[2];return n===a?(a[12]=n[0]*_+n[4]*w+n[8]*k+n[12],a[13]=n[1]*_+n[5]*w+n[9]*k+n[13],a[14]=n[2]*_+n[6]*w+n[10]*k+n[14],a[15]=n[3]*_+n[7]*w+n[11]*k+n[15]):(f=n[0],s=n[1],c=n[2],d=n[3],h=n[4],p=n[5],m=n[6],y=n[7],v=n[8],g=n[9],b=n[10],x=n[11],a[0]=f,a[1]=s,a[2]=c,a[3]=d,a[4]=h,a[5]=p,a[6]=m,a[7]=y,a[8]=v,a[9]=g,a[10]=b,a[11]=x,a[12]=f*_+h*w+v*k+n[12],a[13]=s*_+p*w+g*k+n[13],a[14]=c*_+m*w+b*k+n[14],a[15]=d*_+y*w+x*k+n[15]),a}},88654:function(o){o.exports=function(a,n){if(a===n){var l=n[1],f=n[2],s=n[3],c=n[6],d=n[7],h=n[11];a[1]=n[4],a[2]=n[8],a[3]=n[12],a[4]=l,a[6]=n[9],a[7]=n[13],a[8]=f,a[9]=c,a[11]=n[14],a[12]=s,a[13]=d,a[14]=h}else a[0]=n[0],a[1]=n[4],a[2]=n[8],a[3]=n[12],a[4]=n[1],a[5]=n[5],a[6]=n[9],a[7]=n[13],a[8]=n[2],a[9]=n[6],a[10]=n[10],a[11]=n[14],a[12]=n[3],a[13]=n[7],a[14]=n[11],a[15]=n[15];return a}},40383:function(o,a,n){var l=n(68318)("%Object.getOwnPropertyDescriptor%",!0);if(l)try{l([],"length")}catch{l=null}o.exports=l},57035:function(o,a,n){var l,f=n(54404);l=typeof n.g.matchMedia=="function"?!n.g.matchMedia("(hover: none)").matches:f,o.exports=l},38520:function(o,a,n){var l=n(54404);o.exports=l&&function(){var f=!1;try{var s=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s)}catch{f=!1}return f}()},55622:function(o,a,n){var l=n(68318)("%Object.defineProperty%",!0),f=function(){if(l)try{return l({},"a",{value:1}),!0}catch{return!1}return!1};f.hasArrayLengthDefineBug=function(){if(!f())return null;try{return l([],"length",{value:1}).length!==1}catch{return!0}},o.exports=f},57877:function(o,a,n){var l=typeof Symbol<"u"&&Symbol,f=n(35638);o.exports=function(){return typeof l=="function"&&typeof Symbol=="function"&&typeof l("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&f()}},35638:function(o){o.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},n=Symbol("test"),l=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;for(n in a[n]=42,a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var f=Object.getOwnPropertySymbols(a);if(f.length!==1||f[0]!==n||!Object.prototype.propertyIsEnumerable.call(a,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(a,n);if(s.value!==42||s.enumerable!==!0)return!1}return!0}},84543:function(o,a,n){var l=n(35638);o.exports=function(){return l()&&!!Symbol.toStringTag}},35065:function(o,a,n){var l=n(77575);o.exports=l.call(Function.call,Object.prototype.hasOwnProperty)},95280:function(o,a){a.read=function(n,l,f,s,c){var d,h,p=8*c-s-1,m=(1<>1,v=-7,g=f?c-1:0,b=f?-1:1,x=n[l+g];for(g+=b,d=x&(1<<-v)-1,x>>=-v,v+=p;v>0;d=256*d+n[l+g],g+=b,v-=8);for(h=d&(1<<-v)-1,d>>=-v,v+=s;v>0;h=256*h+n[l+g],g+=b,v-=8);if(d===0)d=1-y;else{if(d===m)return h?NaN:1/0*(x?-1:1);h+=Math.pow(2,s),d-=y}return(x?-1:1)*h*Math.pow(2,d-s)},a.write=function(n,l,f,s,c,d){var h,p,m,y=8*d-c-1,v=(1<>1,b=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=s?0:d-1,_=s?1:-1,w=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(p=isNaN(l)?1:0,h=v):(h=Math.floor(Math.log(l)/Math.LN2),l*(m=Math.pow(2,-h))<1&&(h--,m*=2),(l+=h+g>=1?b/m:b*Math.pow(2,1-g))*m>=2&&(h++,m/=2),h+g>=v?(p=0,h=v):h+g>=1?(p=(l*m-1)*Math.pow(2,c),h+=g):(p=l*Math.pow(2,g-1)*Math.pow(2,c),h=0));c>=8;n[f+x]=255&p,x+=_,p/=256,c-=8);for(h=h<0;n[f+x]=255&h,x+=_,h/=256,y-=8);n[f+x-_]|=128*w}},42018:function(o){typeof Object.create=="function"?o.exports=function(a,n){n&&(a.super_=n,a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:o.exports=function(a,n){if(n){a.super_=n;var l=function(){};l.prototype=n.prototype,a.prototype=new l,a.prototype.constructor=a}}},47216:function(o,a,n){var l=n(84543)(),f=n(6614)("Object.prototype.toString"),s=function(h){return!(l&&h&&typeof h=="object"&&Symbol.toStringTag in h)&&f(h)==="[object Arguments]"},c=function(h){return!!s(h)||h!==null&&typeof h=="object"&&typeof h.length=="number"&&h.length>=0&&f(h)!=="[object Array]"&&f(h.callee)==="[object Function]"},d=function(){return s(arguments)}();s.isLegacyArguments=c,o.exports=d?s:c},54404:function(o){o.exports=!0},85395:function(o){var a,n,l=Function.prototype.toString,f=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof f=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw n}}),n={},f(function(){throw 42},null,a)}catch(g){g!==n&&(f=null)}else f=null;var s=/^\s*class\b/,c=function(g){try{var b=l.call(g);return s.test(b)}catch{return!1}},d=function(g){try{return!c(g)&&(l.call(g),!0)}catch{return!1}},h=Object.prototype.toString,p=typeof Symbol=="function"&&!!Symbol.toStringTag,m=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var v=document.all;h.call(v)===h.call(document.all)&&(y=function(g){if((m||!g)&&(g===void 0||typeof g=="object"))try{var b=h.call(g);return(b==="[object HTMLAllCollection]"||b==="[object HTML document.all class]"||b==="[object HTMLCollection]"||b==="[object Object]")&&g("")==null}catch{}return!1})}o.exports=f?function(g){if(y(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;try{f(g,null,a)}catch(b){if(b!==n)return!1}return!c(g)&&d(g)}:function(g){if(y(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;if(p)return d(g);if(c(g))return!1;var b=h.call(g);return!(b!=="[object Function]"&&b!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(b))&&d(g)}},65481:function(o,a,n){var l,f=Object.prototype.toString,s=Function.prototype.toString,c=/^\s*(?:function)?\*/,d=n(84543)(),h=Object.getPrototypeOf;o.exports=function(p){if(typeof p!="function")return!1;if(c.test(s.call(p)))return!0;if(!d)return f.call(p)==="[object GeneratorFunction]";if(!h)return!1;if(l===void 0){var m=function(){if(!d)return!1;try{return Function("return function*() {}")()}catch{}}();l=!!m&&h(m)}return h(p)===l}},64274:function(o){o.exports=function(a){return a!=a}},15567:function(o,a,n){var l=n(68222),f=n(17045),s=n(64274),c=n(14922),d=n(22442),h=l(c(),Number);f(h,{getPolyfill:c,implementation:s,shim:d}),o.exports=h},14922:function(o,a,n){var l=n(64274);o.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:l}},22442:function(o,a,n){var l=n(17045),f=n(14922);o.exports=function(){var s=f();return l(Number,{isNaN:s},{isNaN:function(){return Number.isNaN!==s}}),s}},18546:function(o){o.exports=function(a){for(var n,l=a.length,f=0;f13)&&n!==32&&n!==133&&n!==160&&n!==5760&&n!==6158&&(n<8192||n>8205)&&n!==8232&&n!==8233&&n!==8239&&n!==8287&&n!==8288&&n!==12288&&n!==65279)return!1;return!0}},9187:function(o,a,n){var l=n(31353),f=n(72077),s=n(6614),c=s("Object.prototype.toString"),d=n(84543)(),h=n(40383),p=typeof globalThis>"u"?n.g:globalThis,m=f(),y=s("Array.prototype.indexOf",!0)||function(x,_){for(var w=0;w-1}return!!h&&function(w){var k=!1;return l(g,function(T,M){if(!k)try{k=T.call(w)===M}catch{}}),k}(x)}},48956:function(o){var a={left:0,top:0};o.exports=function(n,l,f){l=l||n.currentTarget||n.srcElement,Array.isArray(f)||(f=[0,0]);var s,c=n.clientX||0,d=n.clientY||0,h=(s=l)===window||s===document||s===document.body?a:s.getBoundingClientRect();return f[0]=c-h.left,f[1]=d-h.top,f}},7417:function(o,a,n){var l,f,s,c;f="Promise",c=function(){var d,h,p,m=Object.prototype.toString,y=typeof setImmediate<"u"?function(P){return setImmediate(P)}:setTimeout;try{Object.defineProperty({},"x",{}),d=function(P,D,O,R){return Object.defineProperty(P,D,{value:O,writable:!0,configurable:R!==!1})}}catch{d=function(D,O,R){return D[O]=R,D}}function v(P,D){p.add(P,D),h||(h=y(p.drain))}function g(P){var D,O=typeof P;return P==null||O!="object"&&O!="function"||(D=P.then),typeof D=="function"&&D}function b(){for(var P=0;P0&&v(b,O))}catch(R){w.call(new T(O),R)}}}function w(P){var D=this;D.triggered||(D.triggered=!0,D.def&&(D=D.def),D.msg=P,D.state=2,D.chain.length>0&&v(b,D))}function k(P,D,O,R){for(var F=0;F"u")return!1;for(var b in window)try{if(!v["$"+b]&&f.call(window,b)&&window[b]!==null&&typeof window[b]=="object")try{y(window[b])}catch{return!0}}catch{return!0}return!1}();l=function(b){var x=b!==null&&typeof b=="object",_=s.call(b)==="[object Function]",w=c(b),k=x&&s.call(b)==="[object String]",T=[];if(!x&&!_&&!w)throw new TypeError("Object.keys called on a non-object");var M=p&&_;if(k&&b.length>0&&!f.call(b,0))for(var S=0;S0)for(var C=0;C"u"||!g)return y(R);try{return y(R)}catch{return!1}}(b),O=0;O=0&&a.call(n.callee)==="[object Function]"),f}},95616:function(o){o.exports=function(f){var s=[];return f.replace(n,function(c,d,h){var p=d.toLowerCase();for(h=function(m){var y=m.match(l);return y?y.map(Number):[]}(h),p=="m"&&h.length>2&&(s.push([d].concat(h.splice(0,2))),p="l",d=d=="m"?"l":"L");;){if(h.length==a[p])return h.unshift(d),s.push(h);if(h.lengthc!=b>c&&s<(g-y)*(c-v)/(b-v)+y&&(d=!d)}return d}},52142:function(o,a,n){var l,f=n(69444),s=n(29023),c=n(87263),d=n(11328),h=n(55968),p=n(10670),m=!1,y=s();function v(g,b,x){var _=l.segments(g),w=l.segments(b),k=x(l.combine(_,w));return l.polygon(k)}l={buildLog:function(g){return g===!0?m=f():g===!1&&(m=!1),m!==!1&&m.list},epsilon:function(g){return y.epsilon(g)},segments:function(g){var b=c(!0,y,m);return g.regions.forEach(b.addRegion),{segments:b.calculate(g.inverted),inverted:g.inverted}},combine:function(g,b){return{combined:c(!1,y,m).calculate(g.segments,g.inverted,b.segments,b.inverted),inverted1:g.inverted,inverted2:b.inverted}},selectUnion:function(g){return{segments:h.union(g.combined,m),inverted:g.inverted1||g.inverted2}},selectIntersect:function(g){return{segments:h.intersect(g.combined,m),inverted:g.inverted1&&g.inverted2}},selectDifference:function(g){return{segments:h.difference(g.combined,m),inverted:g.inverted1&&!g.inverted2}},selectDifferenceRev:function(g){return{segments:h.differenceRev(g.combined,m),inverted:!g.inverted1&&g.inverted2}},selectXor:function(g){return{segments:h.xor(g.combined,m),inverted:g.inverted1!==g.inverted2}},polygon:function(g){return{regions:d(g.segments,y,m),inverted:g.inverted}},polygonFromGeoJSON:function(g){return p.toPolygon(l,g)},polygonToGeoJSON:function(g){return p.fromPolygon(l,y,g)},union:function(g,b){return v(g,b,l.selectUnion)},intersect:function(g,b){return v(g,b,l.selectIntersect)},difference:function(g,b){return v(g,b,l.selectDifference)},differenceRev:function(g,b){return v(g,b,l.selectDifferenceRev)},xor:function(g,b){return v(g,b,l.selectXor)}},typeof window=="object"&&(window.PolyBool=l),o.exports=l},69444:function(o){o.exports=function(){var a,n=0,l=!1;function f(s,c){return a.list.push({type:s,data:c?JSON.parse(JSON.stringify(c)):void 0}),a}return a={list:[],segmentId:function(){return n++},checkIntersection:function(s,c){return f("check",{seg1:s,seg2:c})},segmentChop:function(s,c){return f("div_seg",{seg:s,pt:c}),f("chop",{seg:s,pt:c})},statusRemove:function(s){return f("pop_seg",{seg:s})},segmentUpdate:function(s){return f("seg_update",{seg:s})},segmentNew:function(s,c){return f("new_seg",{seg:s,primary:c})},segmentRemove:function(s){return f("rem_seg",{seg:s})},tempStatus:function(s,c,d){return f("temp_status",{seg:s,above:c,below:d})},rewind:function(s){return f("rewind",{seg:s})},status:function(s,c,d){return f("status",{seg:s,above:c,below:d})},vert:function(s){return s===l?a:(l=s,f("vert",{x:s}))},log:function(s){return typeof s!="string"&&(s=JSON.stringify(s,!1," ")),f("log",{txt:s})},reset:function(){return f("reset")},selected:function(s){return f("selected",{segs:s})},chainStart:function(s){return f("chain_start",{seg:s})},chainRemoveHead:function(s,c){return f("chain_rem_head",{index:s,pt:c})},chainRemoveTail:function(s,c){return f("chain_rem_tail",{index:s,pt:c})},chainNew:function(s,c){return f("chain_new",{pt1:s,pt2:c})},chainMatch:function(s){return f("chain_match",{index:s})},chainClose:function(s){return f("chain_close",{index:s})},chainAddHead:function(s,c){return f("chain_add_head",{index:s,pt:c})},chainAddTail:function(s,c){return f("chain_add_tail",{index:s,pt:c})},chainConnect:function(s,c){return f("chain_con",{index1:s,index2:c})},chainReverse:function(s){return f("chain_rev",{index:s})},chainJoin:function(s,c){return f("chain_join",{index1:s,index2:c})},done:function(){return f("done")}}}},29023:function(o){o.exports=function(a){typeof a!="number"&&(a=1e-10);var n={epsilon:function(l){return typeof l=="number"&&(a=l),a},pointAboveOrOnLine:function(l,f,s){var c=f[0],d=f[1],h=s[0],p=s[1],m=l[0];return(h-c)*(l[1]-d)-(p-d)*(m-c)>=-a},pointBetween:function(l,f,s){var c=l[1]-f[1],d=s[0]-f[0],h=l[0]-f[0],p=s[1]-f[1],m=h*d+c*p;return!(m-a)},pointsSameX:function(l,f){return Math.abs(l[0]-f[0])a!=h-c>a&&(d-y)*(c-v)/(h-v)+y-s>a&&(p=!p),d=y,h=v}return p}};return n}},10670:function(o){var a={toPolygon:function(n,l){function f(d){if(d.length<=0)return n.segments({inverted:!1,regions:[]});function h(y){var v=y.slice(0,y.length-1);return n.segments({inverted:!1,regions:[v]})}for(var p=h(d[0]),m=1;m0})}function w(A,z){var B=A.seg,$=z.seg,j=B.start,N=B.end,E=$.start,W=$.end;c&&c.checkIntersection(B,$);var G=s.linesIntersect(j,N,E,W);if(G===!1){if(!s.pointsCollinear(j,N,E)||s.pointsSame(j,W)||s.pointsSame(N,E))return!1;var L=s.pointsSame(j,E),q=s.pointsSame(N,W);if(L&&q)return z;var H=!L&&s.pointBetween(j,E,W),V=!q&&s.pointBetween(N,E,W);if(L)return V?y(z,N):y(A,W),z;H&&(q||(V?y(z,N):y(A,W)),y(z,j))}else G.alongA===0&&(G.alongB===-1?y(A,E):G.alongB===0?y(A,G.pt):G.alongB===1&&y(A,W)),G.alongB===0&&(G.alongA===-1?y(z,j):G.alongA===0?y(z,G.pt):G.alongA===1&&y(z,N));return!1}for(var k=[];!h.isEmpty();){var T=h.getHead();if(c&&c.vert(T.pt[0]),T.isStart){let A=function(){if(S){var z=w(T,S);if(z)return z}return!!C&&w(T,C)};c&&c.segmentNew(T.seg,T.primary);var M=_(T),S=M.before?M.before.ev:null,C=M.after?M.after.ev:null;c&&c.tempStatus(T.seg,!!S&&S.seg,!!C&&C.seg);var P,D,O=A();if(O&&(f?(D=T.seg.myFill.below===null||T.seg.myFill.above!==T.seg.myFill.below)&&(O.seg.myFill.above=!O.seg.myFill.above):O.seg.otherFill=T.seg.myFill,c&&c.segmentUpdate(O.seg),T.other.remove(),T.remove()),h.getHead()!==T){c&&c.rewind(T.seg);continue}f?(D=T.seg.myFill.below===null||T.seg.myFill.above!==T.seg.myFill.below,T.seg.myFill.below=C?C.seg.myFill.above:g,T.seg.myFill.above=D?!T.seg.myFill.below:T.seg.myFill.below):T.seg.otherFill===null&&(P=C?T.primary===C.primary?C.seg.otherFill.above:C.seg.myFill.above:T.primary?b:g,T.seg.otherFill={above:P,below:P}),c&&c.status(T.seg,!!S&&S.seg,!!C&&C.seg),T.other.status=M.insert(l.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(x.exists(R.prev)&&x.exists(R.next)&&w(R.prev.ev,R.next.ev),c&&c.statusRemove(R.ev.seg),R.remove(),!T.primary){var F=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=F}k.push(T.seg)}h.getHead().remove()}return c&&c.done(),k}return f?{addRegion:function(g){for(var b,x,_,w=g[g.length-1],k=0;k0&&!this.aborted;){var c=this.ifds_to_read.shift();c.offset&&this.scan_ifd(c.id,c.offset,f)}},l.prototype.read_uint16=function(f){var s=this.input;if(f+2>s.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?256*s[f]+s[f+1]:s[f]+256*s[f+1]},l.prototype.read_uint32=function(f){var s=this.input;if(f+4>s.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?16777216*s[f]+65536*s[f+1]+256*s[f+2]+s[f+3]:s[f]+256*s[f+1]+65536*s[f+2]+16777216*s[f+3]},l.prototype.is_subifd_link=function(f,s){return f===0&&s===34665||f===0&&s===34853||f===34665&&s===40965},l.prototype.exif_format_length=function(f){switch(f){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},l.prototype.exif_format_read=function(f,s){var c;switch(f){case 1:case 2:return this.input[s];case 6:return(c=this.input[s])|33554430*(128&c);case 3:return this.read_uint16(s);case 8:return(c=this.read_uint16(s))|131070*(32768&c);case 4:return this.read_uint32(s);case 9:return 0|this.read_uint32(s);default:return null}},l.prototype.scan_ifd=function(f,s,c){var d=this.read_uint16(s);s+=2;for(var h=0;hthis.input.length)throw a("unexpected EOF","EBADDATA");for(var _=[],w=b,k=0;k0&&(this.ifds_to_read.push({id:p,offset:_[0]}),x=!0),c({is_big_endian:this.big_endian,ifd:f,tag:p,format:m,count:y,entry_offset:s+this.start,data_length:g,data_offset:b+this.start,value:_,is_subifd_link:x})===!1)return void(this.aborted=!0);s+=12}f===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(s)})},o.exports.ExifParser=l,o.exports.get_orientation=function(f){var s=0;try{return new l(f,0,f.length).each(function(c){if(c.ifd===0&&c.tag===274&&Array.isArray(c.value))return s=c.value[0],!1}),s}catch{return-1}}},76767:function(o,a,n){var l=n(14847).n8,f=n(14847).Ag;function s(y,v){if(y.length<4+v)return null;var g=f(y,v);return y.length>4&15,b=15&y[4],x=y[5]>>4&15,_=l(y,6),w=8,k=0;k<_;k++){var T=l(y,w),M=l(y,w+=2),S=d(y,w+=2,x),C=l(y,w+=x);if(w+=2,M===0&&C===1){var P=d(y,w,g),D=d(y,w+g,b);v.item_loc[T]={length:D,offset:P+S}}w+=C*(g+b)}}function p(y,v){for(var g=l(y,4),b=6,x=0;xM.width||T.width===M.width&&T.height>M.height?T:M}),x=g.reduce(function(T,M){return T.height>M.height||T.height===M.height&&T.width>M.width?T:M}),b.width>x.height||b.width===x.height&&b.height>x.width?b:x),w=1;v.transforms.forEach(function(T){var M={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},S={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(T.type==="imir"&&(w=T.value===0?S[w]:M[w=M[w=S[w]]]),T.type==="irot")for(var C=0;C1&&(_.variants=x.variants),x.orientation&&(_.orientation=x.orientation),x.exif_location&&x.exif_location.offset+x.exif_location.length<=p.length){var w=s(p,x.exif_location.offset),k=p.slice(x.exif_location.offset+w+4,x.exif_location.offset+x.exif_location.length),T=d.get_orientation(k);T>0&&(_.orientation=T)}return _}}}}}}},2504:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).mP,c=l("BM");o.exports=function(d){if(!(d.length<26)&&f(d,0,c))return{width:s(d,18),height:s(d,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},47342:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).mP,c=l("GIF87a"),d=l("GIF89a");o.exports=function(h){if(!(h.length<10)&&(f(h,0,c)||f(h,0,d)))return{width:s(h,6),height:s(h,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},31355:function(o,a,n){var l=n(14847).mP;o.exports=function(f){var s=l(f,0),c=l(f,2),d=l(f,4);if(s===0&&c===1&&d){for(var h=[],p={width:0,height:0},m=0;mp.width||v>p.height)&&(p=g)}return{width:p.width,height:p.height,variants:h,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},54261:function(o,a,n){var l=n(14847).n8,f=n(14847).eG,s=n(14847).OF,c=n(71371),d=f("Exif\0\0");o.exports=function(h){if(!(h.length<2)&&h[0]===255&&h[1]===216&&h[2]===255)for(var p=2;;){for(;;){if(h.length-p<2)return;if(h[p++]===255)break}for(var m,y,v=h[p++];v===255;)v=h[p++];if(208<=v&&v<=217||v===1)m=0;else{if(!(192<=v&&v<=254)||h.length-p<2)return;m=l(h,p)-2,p+=2}if(v===217||v===218)return;if(v===225&&m>=10&&s(h,p,d)&&(y=c.get_orientation(h.slice(p+6,p+m))),m>=5&&192<=v&&v<=207&&v!==196&&v!==200&&v!==204){if(h.length-p0&&(g.orientation=y),g}p+=m}}},6303:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).Ag,c=l(`‰PNG\r  -`),d=l("IHDR");o.exports=function(h){if(!(h.length<24)&&f(h,0,u)&&f(h,12,d))return{width:s(h,16),height:s(h,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},38689:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).Ag,u=l("8BPS\0");o.exports=function(d){if(!(d.length<22)&&f(d,0,u))return{width:s(d,18),height:s(d,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}},6881:function(o){function a(p){return typeof p=="number"&&isFinite(p)&&p>0}var n=/<[-_.:a-zA-Z0-9][^>]*>/,l=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,f=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,s=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,u=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,d=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function h(p){return d.test(p)?p.match(d)[0]:"px"}o.exports=function(p){if(function(S){var C,P=0,D=S.length;for(S[0]===239&&S[1]===187&&S[2]===191&&(P=3);P>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function v(g,b){return{width:1+(g[b+6]<<16|g[b+5]<<8|g[b+4]),height:1+(g[b+9]<g.length)){for(;b+8=10?x=x||m(g,b+8):k==="VP8L"&&T>=9?x=x||y(g,b+8):k==="VP8X"&&T>=10?x=x||v(g,b+8):k==="EXIF"&&(_=d.get_orientation(g.slice(b+8,b+8+T)),b=1/0),b+=8+T}else b++;if(x)return _>0&&(x.orientation=_),x}}}},91497:function(o,a,n){o.exports={avif:n(24461),bmp:n(2504),gif:n(47342),ico:n(31355),jpeg:n(54261),png:n(6303),psd:n(38689),svg:n(6881),tiff:n(66278),webp:n(90784)}},33575:function(o,a,n){var l=n(91497);o.exports=function(f){return function(s){for(var u=Object.keys(l),d=0;d1)for(var w=1;w2?"one of ".concat(s," ").concat(f.slice(0,u-1).join(", "),", or ")+f[u-1]:u===2?"one of ".concat(s," ").concat(f[0]," or ").concat(f[1]):"of ".concat(s," ").concat(f[0])}return"of ".concat(s," ").concat(String(f))}n("ERR_INVALID_OPT_VALUE",function(f,s){return'The value "'+s+'" is invalid for option "'+f+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(f,s,u){var d,h,p,m,y;if(typeof s=="string"&&(h="not ",s.substr(0,4)===h)?(d="must not be",s=s.replace(/^not /,"")):d="must be",function(g,b,x){return(x===void 0||x>g.length)&&(x=g.length),g.substring(x-9,x)===b}(f," argument"))p="The ".concat(f," ").concat(d," ").concat(l(s,"type"));else{var v=(typeof y!="number"&&(y=0),y+1>(m=f).length||m.indexOf(".",y)===-1?"argument":"property");p='The "'.concat(f,'" ').concat(v," ").concat(d," ").concat(l(s,"type"))}return p+". Received type ".concat(typeof u)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(f){return"The "+f+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(f){return"Cannot call "+f+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(f){return"Unknown encoding: "+f},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),o.exports.q=a},37865:function(o,a,n){var l=n(90386),f=Object.keys||function(g){var b=[];for(var x in g)b.push(x);return b};o.exports=m;var s=n(40410),u=n(37493);n(42018)(m,s);for(var d=f(u.prototype),h=0;h0)if(typeof U=="string"||re.objectMode||Object.getPrototypeOf(U)===h.prototype||(U=function(ie){return h.from(ie)}(U)),Y)re.endEmitted?C(ee,new S):F(ee,re,U,!0);else if(re.ended)C(ee,new T);else{if(re.destroyed)return!1;re.reading=!1,re.decoder&&!Q?(U=re.decoder.write(U),re.objectMode||U.length!==0?F(ee,re,U,!1):j(ee,re)):F(ee,re,U,!1)}else Y||(re.reading=!1,j(ee,re));return!re.ended&&(re.lengthU.highWaterMark&&(U.highWaterMark=function(Q){return Q>=A?Q=A:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}(ee)),ee<=U.length?ee:U.ended?U.length:(U.needReadable=!0,0))}function B(ee){var U=ee._readableState;s("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(s("emitReadable",U.flowing),U.emittedReadable=!0,f.nextTick($,ee))}function $(ee){var U=ee._readableState;s("emitReadable_",U.destroyed,U.length,U.ended),U.destroyed||!U.length&&!U.ended||(ee.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,L(ee)}function j(ee,U){U.readingMore||(U.readingMore=!0,f.nextTick(N,ee,U))}function N(ee,U){for(;!U.reading&&!U.ended&&(U.length0,U.resumeScheduled&&!U.paused?U.flowing=!0:ee.listenerCount("data")>0&&ee.resume()}function W(ee){s("readable nexttick read 0"),ee.read(0)}function G(ee,U){s("resume",U.reading),U.reading||ee.read(0),U.resumeScheduled=!1,ee.emit("resume"),L(ee),U.flowing&&!U.reading&&ee.read(0)}function L(ee){var U=ee._readableState;for(s("flow",U.flowing);U.flowing&&ee.read()!==null;);}function q(ee,U){return U.length===0?null:(U.objectMode?Q=U.buffer.shift():!ee||ee>=U.length?(Q=U.decoder?U.buffer.join(""):U.buffer.length===1?U.buffer.first():U.buffer.concat(U.length),U.buffer.clear()):Q=U.buffer.consume(ee,U.decoder),Q);var Q}function H(ee){var U=ee._readableState;s("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,f.nextTick(V,U,ee))}function V(ee,U){if(s("endReadableNT",ee.endEmitted,ee.length),!ee.endEmitted&&ee.length===0&&(ee.endEmitted=!0,U.readable=!1,U.emit("end"),ee.autoDestroy)){var Q=U._writableState;(!Q||Q.autoDestroy&&Q.finished)&&U.destroy()}}function te(ee,U){for(var Q=0,Y=ee.length;Q=U.highWaterMark:U.length>0)||U.ended))return s("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?H(this):B(this),null;if((ee=z(ee,U))===0&&U.ended)return U.length===0&&H(this),null;var Y,Z=U.needReadable;return s("need readable",Z),(U.length===0||U.length-ee0?q(ee,U):null)===null?(U.needReadable=U.length<=U.highWaterMark,ee=0):(U.length-=ee,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),Q!==ee&&U.ended&&H(this)),Y!==null&&this.emit("data",Y),Y},O.prototype._read=function(ee){C(this,new M("_read()"))},O.prototype.pipe=function(ee,U){var Q=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=ee;break;case 1:Y.pipes=[Y.pipes,ee];break;default:Y.pipes.push(ee)}Y.pipesCount+=1,s("pipe count=%d opts=%j",Y.pipesCount,U);var Z=U&&U.end===!1||ee===f.stdout||ee===f.stderr?Se:X;function X(){s("onend"),ee.end()}Y.endEmitted?f.nextTick(Z):Q.once("end",Z),ee.on("unpipe",function Oe(Me,ce){s("onunpipe"),Me===Q&&ce&&ce.hasUnpiped===!1&&(ce.hasUnpiped=!0,s("cleanup"),ee.removeListener("close",pe),ee.removeListener("finish",Te),ee.removeListener("drain",re),ee.removeListener("error",se),ee.removeListener("unpipe",Oe),Q.removeListener("end",X),Q.removeListener("end",Se),Q.removeListener("data",le),ie=!0,!Y.awaitDrain||ee._writableState&&!ee._writableState.needDrain||re())});var re=function(Oe){return function(){var Me=Oe._readableState;s("pipeOnDrain",Me.awaitDrain),Me.awaitDrain&&Me.awaitDrain--,Me.awaitDrain===0&&u(Oe,"data")&&(Me.flowing=!0,L(Oe))}}(Q);ee.on("drain",re);var ie=!1;function le(Oe){s("ondata");var Me=ee.write(Oe);s("dest.write",Me),Me===!1&&((Y.pipesCount===1&&Y.pipes===ee||Y.pipesCount>1&&te(Y.pipes,ee)!==-1)&&!ie&&(s("false write response, pause",Y.awaitDrain),Y.awaitDrain++),Q.pause())}function se(Oe){s("onerror",Oe),Se(),ee.removeListener("error",se),u(ee,"error")===0&&C(ee,Oe)}function pe(){ee.removeListener("finish",Te),Se()}function Te(){s("onfinish"),ee.removeListener("close",pe),Se()}function Se(){s("unpipe"),Q.unpipe(ee)}return Q.on("data",le),function(Oe,Me,ce){if(typeof Oe.prependListener=="function")return Oe.prependListener(Me,ce);Oe._events&&Oe._events[Me]?Array.isArray(Oe._events[Me])?Oe._events[Me].unshift(ce):Oe._events[Me]=[ce,Oe._events[Me]]:Oe.on(Me,ce)}(ee,"error",se),ee.once("close",pe),ee.once("finish",Te),ee.emit("pipe",Q),Y.flowing||(s("pipe resume"),Q.resume()),ee},O.prototype.unpipe=function(ee){var U=this._readableState,Q={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return ee&&ee!==U.pipes||(ee||(ee=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,ee&&ee.emit("unpipe",this,Q)),this;if(!ee){var Y=U.pipes,Z=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var X=0;X0,Y.flowing!==!1&&this.resume()):ee==="readable"&&(Y.endEmitted||Y.readableListening||(Y.readableListening=Y.needReadable=!0,Y.flowing=!1,Y.emittedReadable=!1,s("on readable",Y.length,Y.reading),Y.length?B(this):Y.reading||f.nextTick(W,this))),Q},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(ee,U){var Q=d.prototype.removeListener.call(this,ee,U);return ee==="readable"&&f.nextTick(E,this),Q},O.prototype.removeAllListeners=function(ee){var U=d.prototype.removeAllListeners.apply(this,arguments);return ee!=="readable"&&ee!==void 0||f.nextTick(E,this),U},O.prototype.resume=function(){var ee=this._readableState;return ee.flowing||(s("resume"),ee.flowing=!ee.readableListening,function(U,Q){Q.resumeScheduled||(Q.resumeScheduled=!0,f.nextTick(G,U,Q))}(this,ee)),ee.paused=!1,this},O.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(ee){var U=this,Q=this._readableState,Y=!1;for(var Z in ee.on("end",function(){if(s("wrapped end"),Q.decoder&&!Q.ended){var re=Q.decoder.end();re&&re.length&&U.push(re)}U.push(null)}),ee.on("data",function(re){s("wrapped data"),Q.decoder&&(re=Q.decoder.write(re)),Q.objectMode&&re==null||(Q.objectMode||re&&re.length)&&(U.push(re)||(Y=!0,ee.pause()))}),ee)this[Z]===void 0&&typeof ee[Z]=="function"&&(this[Z]=function(re){return function(){return ee[re].apply(ee,arguments)}}(Z));for(var X=0;X-1))throw new S(j);return this._writableState.defaultEncoding=j,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(j,N,E){E(new x("_write()"))},O.prototype._writev=null,O.prototype.end=function(j,N,E){var W=this._writableState;return typeof j=="function"?(E=j,j=null,N=null):typeof N=="function"&&(E=N,N=null),j!=null&&this.write(j,N),W.corked&&(W.corked=1,this.uncork()),W.ending||function(G,L,q){L.ending=!0,$(G,L),q&&(L.finished?f.nextTick(q):G.once("finish",q)),L.ended=!0,G.writable=!1}(this,W,E),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(j){this._writableState&&(this._writableState.destroyed=j)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(j,N){N(j)}},68221:function(o,a,n){var l,f=n(90386);function s(T,M,S){return M in T?Object.defineProperty(T,M,{value:S,enumerable:!0,configurable:!0,writable:!0}):T[M]=S,T}var u=n(12726),d=Symbol("lastResolve"),h=Symbol("lastReject"),p=Symbol("error"),m=Symbol("ended"),y=Symbol("lastPromise"),v=Symbol("handlePromise"),g=Symbol("stream");function b(T,M){return{value:T,done:M}}function x(T){var M=T[d];if(M!==null){var S=T[g].read();S!==null&&(T[y]=null,T[d]=null,T[h]=null,M(b(S,!1)))}}function _(T){f.nextTick(x,T)}var w=Object.getPrototypeOf(function(){}),k=Object.setPrototypeOf((s(l={get stream(){return this[g]},next:function(){var T=this,M=this[p];if(M!==null)return Promise.reject(M);if(this[m])return Promise.resolve(b(void 0,!0));if(this[g].destroyed)return new Promise(function(D,O){f.nextTick(function(){T[p]?O(T[p]):D(b(void 0,!0))})});var S,C=this[y];if(C)S=new Promise(function(D,O){return function(R,F){D.then(function(){O[m]?R(b(void 0,!0)):O[v](R,F)},F)}}(C,this));else{var P=this[g].read();if(P!==null)return Promise.resolve(b(P,!1));S=new Promise(this[v])}return this[y]=S,S}},Symbol.asyncIterator,function(){return this}),s(l,"return",function(){var T=this;return new Promise(function(M,S){T[g].destroy(null,function(C){C?S(C):M(b(void 0,!0))})})}),l),w);o.exports=function(T){var M,S=Object.create(k,(s(M={},g,{value:T,writable:!0}),s(M,d,{value:null,writable:!0}),s(M,h,{value:null,writable:!0}),s(M,p,{value:null,writable:!0}),s(M,m,{value:T._readableState.endEmitted,writable:!0}),s(M,v,{value:function(C,P){var D=S[g].read();D?(S[y]=null,S[d]=null,S[h]=null,C(b(D,!1))):(S[d]=C,S[h]=P)},writable:!0}),M));return S[y]=null,u(T,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var P=S[h];return P!==null&&(S[y]=null,S[d]=null,S[h]=null,P(C)),void(S[p]=C)}var D=S[d];D!==null&&(S[y]=null,S[d]=null,S[h]=null,D(b(void 0,!0))),S[m]=!0}),T.on("readable",_.bind(null,S)),S}},31125:function(o,a,n){function l(p,m){var y=Object.keys(p);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(p);m&&(v=v.filter(function(g){return Object.getOwnPropertyDescriptor(p,g).enumerable})),y.push.apply(y,v)}return y}function f(p,m,y){return m in p?Object.defineProperty(p,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[m]=y,p}function s(p,m){for(var y=0;y0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(v){var g={data:v,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var g=this.head,b=""+g.data;g=g.next;)b+=v+g.data;return b}},{key:"concat",value:function(v){if(this.length===0)return u.alloc(0);for(var g,b,x,_=u.allocUnsafe(v>>>0),w=this.head,k=0;w;)g=w.data,b=_,x=k,u.prototype.copy.call(g,b,x),k+=w.data.length,w=w.next;return _}},{key:"consume",value:function(v,g){var b;return v_.length?_.length:v;if(w===_.length?x+=_:x+=_.slice(0,v),(v-=w)==0){w===_.length?(++b,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=_.slice(w));break}++b}return this.length-=b,x}},{key:"_getBuffer",value:function(v){var g=u.allocUnsafe(v),b=this.head,x=1;for(b.data.copy(g),v-=b.data.length;b=b.next;){var _=b.data,w=v>_.length?_.length:v;if(_.copy(g,g.length-v,0,w),(v-=w)==0){w===_.length?(++x,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=_.slice(w));break}++x}return this.length-=x,g}},{key:h,value:function(v,g){return d(this,function(b){for(var x=1;x0,function(T){g||(g=T),T&&x.forEach(h),k||(x.forEach(h),b(g))})});return y.reduce(p)}},56306:function(o,a,n){var l=n(74322).q.ERR_INVALID_OPT_VALUE;o.exports={getHighWaterMark:function(f,s,u,d){var h=function(p,m,y){return p.highWaterMark!=null?p.highWaterMark:m?p[y]:null}(s,d,u);if(h!=null){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new l(d?u:"highWaterMark",h);return Math.floor(h)}return f.objectMode?16:16384}}},71405:function(o,a,n){o.exports=n(15398).EventEmitter},68019:function(o,a,n){var l=n(71665).Buffer,f=l.isEncoding||function(b){switch((b=""+b)&&b.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(b){var x;switch(this.encoding=function(_){var w=function(k){if(!k)return"utf8";for(var T;;)switch(k){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return k;default:if(T)return;k=(""+k).toLowerCase(),T=!0}}(_);if(typeof w!="string"&&(l.isEncoding===f||!f(_)))throw new Error("Unknown encoding: "+_);return w||_}(b),this.encoding){case"utf16le":this.text=h,this.end=p,x=4;break;case"utf8":this.fillLast=d,x=4;break;case"base64":this.text=m,this.end=y,x=3;break;default:return this.write=v,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=l.allocUnsafe(x)}function u(b){return b<=127?0:b>>5==6?2:b>>4==14?3:b>>3==30?4:b>>6==2?-1:-2}function d(b){var x=this.lastTotal-this.lastNeed,_=function(w,k,T){if((192&k[0])!=128)return w.lastNeed=0,"�";if(w.lastNeed>1&&k.length>1){if((192&k[1])!=128)return w.lastNeed=1,"�";if(w.lastNeed>2&&k.length>2&&(192&k[2])!=128)return w.lastNeed=2,"�"}}(this,b);return _!==void 0?_:this.lastNeed<=b.length?(b.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(b.copy(this.lastChar,x,0,b.length),void(this.lastNeed-=b.length))}function h(b,x){if((b.length-x)%2==0){var _=b.toString("utf16le",x);if(_){var w=_.charCodeAt(_.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=b[b.length-1],b.toString("utf16le",x,b.length-1)}function p(b){var x=b&&b.length?this.write(b):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,_)}return x}function m(b,x){var _=(b.length-x)%3;return _===0?b.toString("base64",x):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=b[b.length-1]:(this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1]),b.toString("base64",x,b.length-_))}function y(b){var x=b&&b.length?this.write(b):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function v(b){return b.toString(this.encoding)}function g(b){return b&&b.length?this.write(b):""}a.s=s,s.prototype.write=function(b){if(b.length===0)return"";var x,_;if(this.lastNeed){if((x=this.fillLast(b))===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _=0?(C>0&&(k.lastNeed=C-1),C):--S=0?(C>0&&(k.lastNeed=C-2),C):--S=0?(C>0&&(C===2?C=0:k.lastNeed=C-3),C):0}(this,b,x);if(!this.lastNeed)return b.toString("utf8",x);this.lastTotal=_;var w=b.length-(_-this.lastNeed);return b.copy(this.lastChar,0,w),b.toString("utf8",x,w)},s.prototype.fillLast=function(b){if(this.lastNeed<=b.length)return b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,b.length),this.lastNeed-=b.length}},90715:function(o,a,n){var l=n(32791),f=n(41633)("stream-parser");o.exports=function(k){var T=k&&typeof k._transform=="function",M=k&&typeof k._write=="function";if(!T&&!M)throw new Error("must pass a Writable or Transform stream in");f("extending Parser into stream"),k._bytes=m,k._skipBytes=y,T&&(k._passthrough=v),T?k._transform=b:k._write=g};var s=-1,u=0,d=1,h=2;function p(k){f("initializing parser stream"),k._parserBytesLeft=0,k._parserBuffers=[],k._parserBuffered=0,k._parserState=s,k._parserCallback=null,typeof k.push=="function"&&(k._parserOutput=k.push.bind(k)),k._parserInit=!0}function m(k,T){l(!this._parserCallback,'there is already a "callback" set!'),l(isFinite(k)&&k>0,'can only buffer a finite number of bytes > 0, got "'+k+'"'),this._parserInit||p(this),f("buffering %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=u}function y(k,T){l(!this._parserCallback,'there is already a "callback" set!'),l(k>0,'can only skip > 0 bytes, got "'+k+'"'),this._parserInit||p(this),f("skipping %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=d}function v(k,T){l(!this._parserCallback,'There is already a "callback" set!'),l(k>0,'can only pass through > 0 bytes, got "'+k+'"'),this._parserInit||p(this),f("passing through %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=h}function g(k,T,M){this._parserInit||p(this),f("write(%o bytes)",k.length),typeof T=="function"&&(M=T),_(this,k,null,M)}function b(k,T,M){this._parserInit||p(this),f("transform(%o bytes)",k.length),typeof T!="function"&&(T=this._parserOutput),_(this,k,T,M)}function x(k,T,M,S){if(k._parserBytesLeft-=T.length,f("%o bytes left for stream piece",k._parserBytesLeft),k._parserState===u?(k._parserBuffers.push(T),k._parserBuffered+=T.length):k._parserState===h&&M(T),k._parserBytesLeft!==0)return S;var C=k._parserCallback;if(C&&k._parserState===u&&k._parserBuffers.length>1&&(T=Buffer.concat(k._parserBuffers,k._parserBuffered)),k._parserState!==u&&(T=null),k._parserCallback=null,k._parserBuffered=0,k._parserState=s,k._parserBuffers.splice(0),C){var P=[];T&&P.push(T),M&&P.push(M);var D=C.length>P.length;D&&P.push(w(S));var O=C.apply(k,P);if(!D||S===O)return S}}var _=w(function k(T,M,S,C){return T._parserBytesLeft<=0?C(new Error("got data but not currently parsing anything")):M.length<=T._parserBytesLeft?function(){return x(T,M,S,C)}:function(){var P=M.slice(0,T._parserBytesLeft);return x(T,P,S,function(D){return D?C(D):M.length>P.length?function(){return k(T,M.slice(P.length),S,C)}:void 0})}});function w(k){return function(){for(var T=k.apply(this,arguments);typeof T=="function";)T=T();return T}}},41633:function(o,a,n){var l=n(90386);function f(){var s;try{s=a.storage.debug}catch{}return!s&&l!==void 0&&"env"in l&&(s=l.env.DEBUG),s}(a=o.exports=n(74469)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},a.formatArgs=function(s){var u=this.useColors;if(s[0]=(u?"%c":"")+this.namespace+(u?" %c":" ")+s[0]+(u?"%c ":" ")+"+"+a.humanize(this.diff),u){var d="color: "+this.color;s.splice(1,0,d,"color: inherit");var h=0,p=0;s[0].replace(/%[a-zA-Z%]/g,function(m){m!=="%%"&&(h++,m==="%c"&&(p=h))}),s.splice(p,0,d)}},a.save=function(s){try{s==null?a.storage.removeItem("debug"):a.storage.debug=s}catch{}},a.load=f,a.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(s){try{return JSON.stringify(s)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}},a.enable(f())},74469:function(o,a,n){var l;function f(s){function u(){if(u.enabled){var d=u,h=+new Date,p=h-(l||h);d.diff=p,d.prev=l,d.curr=h,l=h;for(var m=new Array(arguments.length),y=0;y0)return function(m){if(!((m=String(m)).length>100)){var y=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(m);if(y){var v=parseFloat(y[1]);switch((y[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*v;case"days":case"day":case"d":return v*f;case"hours":case"hour":case"hrs":case"hr":case"h":return v*l;case"minutes":case"minute":case"mins":case"min":case"m":return v*n;case"seconds":case"second":case"secs":case"sec":case"s":return v*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return v;default:return}}}}(u);if(p==="number"&&isNaN(u)===!1)return d.long?s(h=u,f,"day")||s(h,l,"hour")||s(h,n,"minute")||s(h,a,"second")||h+" ms":function(m){return m>=f?Math.round(m/f)+"d":m>=l?Math.round(m/l)+"h":m>=n?Math.round(m/n)+"m":m>=a?Math.round(m/a)+"s":m+"ms"}(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))}},84267:function(o,a,n){var l;(function(f){var s=/^\s+/,u=/\s+$/,d=0,h=f.round,p=f.min,m=f.max,y=f.random;function v(Y,Z){if(Z=Z||{},(Y=Y||"")instanceof v)return Y;if(!(this instanceof v))return new v(Y,Z);var X=function(re){var ie,le,se,pe={r:0,g:0,b:0},Te=1,Se=null,Oe=null,Me=null,ce=!1,ye=!1;return typeof re=="string"&&(re=function(J){J=J.replace(s,"").replace(u,"").toLowerCase();var ne,de=!1;if(B[J])J=B[J],de=!0;else if(J=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(ne=U.rgb.exec(J))?{r:ne[1],g:ne[2],b:ne[3]}:(ne=U.rgba.exec(J))?{r:ne[1],g:ne[2],b:ne[3],a:ne[4]}:(ne=U.hsl.exec(J))?{h:ne[1],s:ne[2],l:ne[3]}:(ne=U.hsla.exec(J))?{h:ne[1],s:ne[2],l:ne[3],a:ne[4]}:(ne=U.hsv.exec(J))?{h:ne[1],s:ne[2],v:ne[3]}:(ne=U.hsva.exec(J))?{h:ne[1],s:ne[2],v:ne[3],a:ne[4]}:(ne=U.hex8.exec(J))?{r:W(ne[1]),g:W(ne[2]),b:W(ne[3]),a:H(ne[4]),format:de?"name":"hex8"}:(ne=U.hex6.exec(J))?{r:W(ne[1]),g:W(ne[2]),b:W(ne[3]),format:de?"name":"hex"}:(ne=U.hex4.exec(J))?{r:W(ne[1]+""+ne[1]),g:W(ne[2]+""+ne[2]),b:W(ne[3]+""+ne[3]),a:H(ne[4]+""+ne[4]),format:de?"name":"hex8"}:!!(ne=U.hex3.exec(J))&&{r:W(ne[1]+""+ne[1]),g:W(ne[2]+""+ne[2]),b:W(ne[3]+""+ne[3]),format:de?"name":"hex"}}(re)),typeof re=="object"&&(Q(re.r)&&Q(re.g)&&Q(re.b)?(ie=re.r,le=re.g,se=re.b,pe={r:255*N(ie,255),g:255*N(le,255),b:255*N(se,255)},ce=!0,ye=String(re.r).substr(-1)==="%"?"prgb":"rgb"):Q(re.h)&&Q(re.s)&&Q(re.v)?(Se=L(re.s),Oe=L(re.v),pe=function(J,ne,de){J=6*N(J,360),ne=N(ne,100),de=N(de,100);var xe=f.floor(J),ue=J-xe,ge=de*(1-ne),be=de*(1-ue*ne),we=de*(1-(1-ue)*ne),ke=xe%6;return{r:255*[de,be,ge,ge,we,de][ke],g:255*[we,de,de,be,ge,ge][ke],b:255*[ge,ge,we,de,de,be][ke]}}(re.h,Se,Oe),ce=!0,ye="hsv"):Q(re.h)&&Q(re.s)&&Q(re.l)&&(Se=L(re.s),Me=L(re.l),pe=function(J,ne,de){var xe,ue,ge;function be(Ae,Ee,De){return De<0&&(De+=1),De>1&&(De-=1),De<1/6?Ae+6*(Ee-Ae)*De:De<.5?Ee:De<2/3?Ae+(Ee-Ae)*(2/3-De)*6:Ae}if(J=N(J,360),ne=N(ne,100),de=N(de,100),ne===0)xe=ue=ge=de;else{var we=de<.5?de*(1+ne):de+ne-de*ne,ke=2*de-we;xe=be(ke,we,J+1/3),ue=be(ke,we,J),ge=be(ke,we,J-1/3)}return{r:255*xe,g:255*ue,b:255*ge}}(re.h,Se,Me),ce=!0,ye="hsl"),re.hasOwnProperty("a")&&(Te=re.a)),Te=j(Te),{ok:ce,format:re.format||ye,r:p(255,m(pe.r,0)),g:p(255,m(pe.g,0)),b:p(255,m(pe.b,0)),a:Te}}(Y);this._originalInput=Y,this._r=X.r,this._g=X.g,this._b=X.b,this._a=X.a,this._roundA=h(100*this._a)/100,this._format=Z.format||X.format,this._gradientType=Z.gradientType,this._r<1&&(this._r=h(this._r)),this._g<1&&(this._g=h(this._g)),this._b<1&&(this._b=h(this._b)),this._ok=X.ok,this._tc_id=d++}function g(Y,Z,X){Y=N(Y,255),Z=N(Z,255),X=N(X,255);var re,ie,le=m(Y,Z,X),se=p(Y,Z,X),pe=(le+se)/2;if(le==se)re=ie=0;else{var Te=le-se;switch(ie=pe>.5?Te/(2-le-se):Te/(le+se),le){case Y:re=(Z-X)/Te+(Z>1)+720)%360;--Z;)re.h=(re.h+ie)%360,le.push(v(re));return le}function z(Y,Z){Z=Z||6;for(var X=v(Y).toHsv(),re=X.h,ie=X.s,le=X.v,se=[],pe=1/Z;Z--;)se.push(v({h:re,s:ie,v:le})),le=(le+pe)%1;return se}v.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Y=this.toRgb();return(299*Y.r+587*Y.g+114*Y.b)/1e3},getLuminance:function(){var Y,Z,X,re=this.toRgb();return Y=re.r/255,Z=re.g/255,X=re.b/255,.2126*(Y<=.03928?Y/12.92:f.pow((Y+.055)/1.055,2.4))+.7152*(Z<=.03928?Z/12.92:f.pow((Z+.055)/1.055,2.4))+.0722*(X<=.03928?X/12.92:f.pow((X+.055)/1.055,2.4))},setAlpha:function(Y){return this._a=j(Y),this._roundA=h(100*this._a)/100,this},toHsv:function(){var Y=b(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=b(this._r,this._g,this._b),Z=h(360*Y.h),X=h(100*Y.s),re=h(100*Y.v);return this._a==1?"hsv("+Z+", "+X+"%, "+re+"%)":"hsva("+Z+", "+X+"%, "+re+"%, "+this._roundA+")"},toHsl:function(){var Y=g(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=g(this._r,this._g,this._b),Z=h(360*Y.h),X=h(100*Y.s),re=h(100*Y.l);return this._a==1?"hsl("+Z+", "+X+"%, "+re+"%)":"hsla("+Z+", "+X+"%, "+re+"%, "+this._roundA+")"},toHex:function(Y){return x(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return function(Z,X,re,ie,le){var se=[G(h(Z).toString(16)),G(h(X).toString(16)),G(h(re).toString(16)),G(q(ie))];return le&&se[0].charAt(0)==se[0].charAt(1)&&se[1].charAt(0)==se[1].charAt(1)&&se[2].charAt(0)==se[2].charAt(1)&&se[3].charAt(0)==se[3].charAt(1)?se[0].charAt(0)+se[1].charAt(0)+se[2].charAt(0)+se[3].charAt(0):se.join("")}(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:h(this._r),g:h(this._g),b:h(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+h(this._r)+", "+h(this._g)+", "+h(this._b)+")":"rgba("+h(this._r)+", "+h(this._g)+", "+h(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:h(100*N(this._r,255))+"%",g:h(100*N(this._g,255))+"%",b:h(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+h(100*N(this._r,255))+"%, "+h(100*N(this._g,255))+"%, "+h(100*N(this._b,255))+"%)":"rgba("+h(100*N(this._r,255))+"%, "+h(100*N(this._g,255))+"%, "+h(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&($[x(this._r,this._g,this._b,!0)]||!1)},toFilter:function(Y){var Z="#"+_(this._r,this._g,this._b,this._a),X=Z,re=this._gradientType?"GradientType = 1, ":"";if(Y){var ie=v(Y);X="#"+_(ie._r,ie._g,ie._b,ie._a)}return"progid:DXImageTransform.Microsoft.gradient("+re+"startColorstr="+Z+",endColorstr="+X+")"},toString:function(Y){var Z=!!Y;Y=Y||this._format;var X=!1,re=this._a<1&&this._a>=0;return Z||!re||Y!=="hex"&&Y!=="hex6"&&Y!=="hex3"&&Y!=="hex4"&&Y!=="hex8"&&Y!=="name"?(Y==="rgb"&&(X=this.toRgbString()),Y==="prgb"&&(X=this.toPercentageRgbString()),Y!=="hex"&&Y!=="hex6"||(X=this.toHexString()),Y==="hex3"&&(X=this.toHexString(!0)),Y==="hex4"&&(X=this.toHex8String(!0)),Y==="hex8"&&(X=this.toHex8String()),Y==="name"&&(X=this.toName()),Y==="hsl"&&(X=this.toHslString()),Y==="hsv"&&(X=this.toHsvString()),X||this.toHexString()):Y==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return v(this.toString())},_applyModification:function(Y,Z){var X=Y.apply(null,[this].concat([].slice.call(Z)));return this._r=X._r,this._g=X._g,this._b=X._b,this.setAlpha(X._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(P,arguments)},_applyCombination:function(Y,Z){return Y.apply(null,[this].concat([].slice.call(Z)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},v.fromRatio=function(Y,Z){if(typeof Y=="object"){var X={};for(var re in Y)Y.hasOwnProperty(re)&&(X[re]=re==="a"?Y[re]:L(Y[re]));Y=X}return v(Y,Z)},v.equals=function(Y,Z){return!(!Y||!Z)&&v(Y).toRgbString()==v(Z).toRgbString()},v.random=function(){return v.fromRatio({r:y(),g:y(),b:y()})},v.mix=function(Y,Z,X){X=X===0?0:X||50;var re=v(Y).toRgb(),ie=v(Z).toRgb(),le=X/100;return v({r:(ie.r-re.r)*le+re.r,g:(ie.g-re.g)*le+re.g,b:(ie.b-re.b)*le+re.b,a:(ie.a-re.a)*le+re.a})},v.readability=function(Y,Z){var X=v(Y),re=v(Z);return(f.max(X.getLuminance(),re.getLuminance())+.05)/(f.min(X.getLuminance(),re.getLuminance())+.05)},v.isReadable=function(Y,Z,X){var re,ie,le,se,pe,Te=v.readability(Y,Z);switch(ie=!1,(le=X,(se=((le=le||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&se!=="AAA"&&(se="AA"),(pe=(le.size||"small").toLowerCase())!=="small"&&pe!=="large"&&(pe="small"),re={level:se,size:pe}).level+re.size){case"AAsmall":case"AAAlarge":ie=Te>=4.5;break;case"AAlarge":ie=Te>=3;break;case"AAAsmall":ie=Te>=7}return ie},v.mostReadable=function(Y,Z,X){var re,ie,le,se,pe=null,Te=0;ie=(X=X||{}).includeFallbackColors,le=X.level,se=X.size;for(var Se=0;SeTe&&(Te=re,pe=v(Z[Se]));return v.isReadable(Y,pe,{level:le,size:se})||!ie?pe:(X.includeFallbackColors=!1,v.mostReadable(Y,["#fff","#000"],X))};var B=v.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$=v.hexNames=function(Y){var Z={};for(var X in Y)Y.hasOwnProperty(X)&&(Z[Y[X]]=X);return Z}(B);function j(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function N(Y,Z){(function(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1})(Y)&&(Y="100%");var X=function(re){return typeof re=="string"&&re.indexOf("%")!=-1}(Y);return Y=p(Z,m(0,parseFloat(Y))),X&&(Y=parseInt(Y*Z,10)/100),f.abs(Y-Z)<1e-6?1:Y%Z/parseFloat(Z)}function E(Y){return p(1,m(0,Y))}function W(Y){return parseInt(Y,16)}function G(Y){return Y.length==1?"0"+Y:""+Y}function L(Y){return Y<=1&&(Y=100*Y+"%"),Y}function q(Y){return f.round(255*parseFloat(Y)).toString(16)}function H(Y){return W(Y)/255}var V,te,ee,U=(te="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",ee="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ee),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ee),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ee),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Q(Y){return!!U.CSS_UNIT.exec(Y)}o.exports?o.exports=v:(l=(function(){return v}).call(a,n,a,o))===void 0||(o.exports=l)})(Math)},20588:function(o,a,n){function l(f){try{if(!n.g.localStorage)return!1}catch{return!1}var s=n.g.localStorage[f];return s!=null&&String(s).toLowerCase()==="true"}o.exports=function(f,s){if(l("noDeprecation"))return f;var u=!1;return function(){if(!u){if(l("throwDeprecation"))throw new Error(s);l("traceDeprecation")?console.trace(s):console.warn(s),u=!0}return f.apply(this,arguments)}}},45920:function(o){o.exports=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}},4936:function(o,a,n){var l=n(47216),f=n(65481),s=n(21099),u=n(9187);function d(N){return N.call.bind(N)}var h=typeof BigInt<"u",p=typeof Symbol<"u",m=d(Object.prototype.toString),y=d(Number.prototype.valueOf),v=d(String.prototype.valueOf),g=d(Boolean.prototype.valueOf);if(h)var b=d(BigInt.prototype.valueOf);if(p)var x=d(Symbol.prototype.valueOf);function _(N,E){if(typeof N!="object")return!1;try{return E(N),!0}catch{return!1}}function w(N){return m(N)==="[object Map]"}function k(N){return m(N)==="[object Set]"}function T(N){return m(N)==="[object WeakMap]"}function M(N){return m(N)==="[object WeakSet]"}function S(N){return m(N)==="[object ArrayBuffer]"}function C(N){return typeof ArrayBuffer<"u"&&(S.working?S(N):N instanceof ArrayBuffer)}function P(N){return m(N)==="[object DataView]"}function D(N){return typeof DataView<"u"&&(P.working?P(N):N instanceof DataView)}a.isArgumentsObject=l,a.isGeneratorFunction=f,a.isTypedArray=u,a.isPromise=function(N){return typeof Promise<"u"&&N instanceof Promise||N!==null&&typeof N=="object"&&typeof N.then=="function"&&typeof N.catch=="function"},a.isArrayBufferView=function(N){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(N):u(N)||D(N)},a.isUint8Array=function(N){return s(N)==="Uint8Array"},a.isUint8ClampedArray=function(N){return s(N)==="Uint8ClampedArray"},a.isUint16Array=function(N){return s(N)==="Uint16Array"},a.isUint32Array=function(N){return s(N)==="Uint32Array"},a.isInt8Array=function(N){return s(N)==="Int8Array"},a.isInt16Array=function(N){return s(N)==="Int16Array"},a.isInt32Array=function(N){return s(N)==="Int32Array"},a.isFloat32Array=function(N){return s(N)==="Float32Array"},a.isFloat64Array=function(N){return s(N)==="Float64Array"},a.isBigInt64Array=function(N){return s(N)==="BigInt64Array"},a.isBigUint64Array=function(N){return s(N)==="BigUint64Array"},w.working=typeof Map<"u"&&w(new Map),a.isMap=function(N){return typeof Map<"u"&&(w.working?w(N):N instanceof Map)},k.working=typeof Set<"u"&&k(new Set),a.isSet=function(N){return typeof Set<"u"&&(k.working?k(N):N instanceof Set)},T.working=typeof WeakMap<"u"&&T(new WeakMap),a.isWeakMap=function(N){return typeof WeakMap<"u"&&(T.working?T(N):N instanceof WeakMap)},M.working=typeof WeakSet<"u"&&M(new WeakSet),a.isWeakSet=function(N){return M(N)},S.working=typeof ArrayBuffer<"u"&&S(new ArrayBuffer),a.isArrayBuffer=C,P.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&P(new DataView(new ArrayBuffer(1),0,1)),a.isDataView=D;var O=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function R(N){return m(N)==="[object SharedArrayBuffer]"}function F(N){return O!==void 0&&(R.working===void 0&&(R.working=R(new O)),R.working?R(N):N instanceof O)}function A(N){return _(N,y)}function z(N){return _(N,v)}function B(N){return _(N,g)}function $(N){return h&&_(N,b)}function j(N){return p&&_(N,x)}a.isSharedArrayBuffer=F,a.isAsyncFunction=function(N){return m(N)==="[object AsyncFunction]"},a.isMapIterator=function(N){return m(N)==="[object Map Iterator]"},a.isSetIterator=function(N){return m(N)==="[object Set Iterator]"},a.isGeneratorObject=function(N){return m(N)==="[object Generator]"},a.isWebAssemblyCompiledModule=function(N){return m(N)==="[object WebAssembly.Module]"},a.isNumberObject=A,a.isStringObject=z,a.isBooleanObject=B,a.isBigIntObject=$,a.isSymbolObject=j,a.isBoxedPrimitive=function(N){return A(N)||z(N)||B(N)||$(N)||j(N)},a.isAnyArrayBuffer=function(N){return typeof Uint8Array<"u"&&(C(N)||F(N))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(N){Object.defineProperty(a,N,{enumerable:!1,value:function(){throw new Error(N+" is not supported in userland")}})})},43827:function(o,a,n){var l=n(90386),f=Object.getOwnPropertyDescriptors||function(j){for(var N=Object.keys(j),E={},W=0;W=G)return H;switch(H){case"%s":return String(W[E++]);case"%d":return Number(W[E++]);case"%j":try{return JSON.stringify(W[E++])}catch{return"[Circular]"}default:return H}}),q=W[E];E=3&&(E.depth=arguments[2]),arguments.length>=4&&(E.colors=arguments[3]),_(N)?E.showHidden=N:N&&a._extend(E,N),M(E.showHidden)&&(E.showHidden=!1),M(E.depth)&&(E.depth=2),M(E.colors)&&(E.colors=!1),M(E.customInspect)&&(E.customInspect=!0),E.colors&&(E.stylize=m),v(E,j,E.depth)}function m(j,N){var E=p.styles[N];return E?"\x1B["+p.colors[E][0]+"m"+j+"\x1B["+p.colors[E][1]+"m":j}function y(j,N){return j}function v(j,N,E){if(j.customInspect&&N&&O(N.inspect)&&N.inspect!==a.inspect&&(!N.constructor||N.constructor.prototype!==N)){var W=N.inspect(E,j);return T(W)||(W=v(j,W,E)),W}var G=function(Q,Y){if(M(Y))return Q.stylize("undefined","undefined");if(T(Y)){var Z="'"+JSON.stringify(Y).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(Z,"string")}return k(Y)?Q.stylize(""+Y,"number"):_(Y)?Q.stylize(""+Y,"boolean"):w(Y)?Q.stylize("null","null"):void 0}(j,N);if(G)return G;var L=Object.keys(N),q=function(Q){var Y={};return Q.forEach(function(Z,X){Y[Z]=!0}),Y}(L);if(j.showHidden&&(L=Object.getOwnPropertyNames(N)),D(N)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return g(N);if(L.length===0){if(O(N)){var H=N.name?": "+N.name:"";return j.stylize("[Function"+H+"]","special")}if(S(N))return j.stylize(RegExp.prototype.toString.call(N),"regexp");if(P(N))return j.stylize(Date.prototype.toString.call(N),"date");if(D(N))return g(N)}var V,te="",ee=!1,U=["{","}"];return x(N)&&(ee=!0,U=["[","]"]),O(N)&&(te=" [Function"+(N.name?": "+N.name:"")+"]"),S(N)&&(te=" "+RegExp.prototype.toString.call(N)),P(N)&&(te=" "+Date.prototype.toUTCString.call(N)),D(N)&&(te=" "+g(N)),L.length!==0||ee&&N.length!=0?E<0?S(N)?j.stylize(RegExp.prototype.toString.call(N),"regexp"):j.stylize("[Object]","special"):(j.seen.push(N),V=ee?function(Q,Y,Z,X,re){for(var ie=[],le=0,se=Y.length;le0}var n=/<[-_.:a-zA-Z0-9][^>]*>/,l=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,f=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,s=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,c=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,d=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function h(p){return d.test(p)?p.match(d)[0]:"px"}o.exports=function(p){if(function(S){var C,P=0,D=S.length;for(S[0]===239&&S[1]===187&&S[2]===191&&(P=3);P>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function v(g,b){return{width:1+(g[b+6]<<16|g[b+5]<<8|g[b+4]),height:1+(g[b+9]<g.length)){for(;b+8=10?x=x||m(g,b+8):k==="VP8L"&&T>=9?x=x||y(g,b+8):k==="VP8X"&&T>=10?x=x||v(g,b+8):k==="EXIF"&&(_=d.get_orientation(g.slice(b+8,b+8+T)),b=1/0),b+=8+T}else b++;if(x)return _>0&&(x.orientation=_),x}}}},91497:function(o,a,n){o.exports={avif:n(24461),bmp:n(2504),gif:n(47342),ico:n(31355),jpeg:n(54261),png:n(6303),psd:n(38689),svg:n(6881),tiff:n(66278),webp:n(90784)}},33575:function(o,a,n){var l=n(91497);o.exports=function(f){return function(s){for(var c=Object.keys(l),d=0;d1)for(var w=1;w2?"one of ".concat(s," ").concat(f.slice(0,c-1).join(", "),", or ")+f[c-1]:c===2?"one of ".concat(s," ").concat(f[0]," or ").concat(f[1]):"of ".concat(s," ").concat(f[0])}return"of ".concat(s," ").concat(String(f))}n("ERR_INVALID_OPT_VALUE",function(f,s){return'The value "'+s+'" is invalid for option "'+f+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(f,s,c){var d,h,p,m,y;if(typeof s=="string"&&(h="not ",s.substr(0,4)===h)?(d="must not be",s=s.replace(/^not /,"")):d="must be",function(g,b,x){return(x===void 0||x>g.length)&&(x=g.length),g.substring(x-9,x)===b}(f," argument"))p="The ".concat(f," ").concat(d," ").concat(l(s,"type"));else{var v=(typeof y!="number"&&(y=0),y+1>(m=f).length||m.indexOf(".",y)===-1?"argument":"property");p='The "'.concat(f,'" ').concat(v," ").concat(d," ").concat(l(s,"type"))}return p+". Received type ".concat(typeof c)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(f){return"The "+f+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(f){return"Cannot call "+f+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(f){return"Unknown encoding: "+f},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),o.exports.q=a},37865:function(o,a,n){var l=n(90386),f=Object.keys||function(g){var b=[];for(var x in g)b.push(x);return b};o.exports=m;var s=n(40410),c=n(37493);n(42018)(m,s);for(var d=f(c.prototype),h=0;h0)if(typeof U=="string"||re.objectMode||Object.getPrototypeOf(U)===h.prototype||(U=function(ie){return h.from(ie)}(U)),Y)re.endEmitted?C(ee,new S):F(ee,re,U,!0);else if(re.ended)C(ee,new T);else{if(re.destroyed)return!1;re.reading=!1,re.decoder&&!Q?(U=re.decoder.write(U),re.objectMode||U.length!==0?F(ee,re,U,!1):j(ee,re)):F(ee,re,U,!1)}else Y||(re.reading=!1,j(ee,re));return!re.ended&&(re.lengthU.highWaterMark&&(U.highWaterMark=function(Q){return Q>=A?Q=A:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}(ee)),ee<=U.length?ee:U.ended?U.length:(U.needReadable=!0,0))}function B(ee){var U=ee._readableState;s("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(s("emitReadable",U.flowing),U.emittedReadable=!0,f.nextTick($,ee))}function $(ee){var U=ee._readableState;s("emitReadable_",U.destroyed,U.length,U.ended),U.destroyed||!U.length&&!U.ended||(ee.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,L(ee)}function j(ee,U){U.readingMore||(U.readingMore=!0,f.nextTick(N,ee,U))}function N(ee,U){for(;!U.reading&&!U.ended&&(U.length0,U.resumeScheduled&&!U.paused?U.flowing=!0:ee.listenerCount("data")>0&&ee.resume()}function W(ee){s("readable nexttick read 0"),ee.read(0)}function G(ee,U){s("resume",U.reading),U.reading||ee.read(0),U.resumeScheduled=!1,ee.emit("resume"),L(ee),U.flowing&&!U.reading&&ee.read(0)}function L(ee){var U=ee._readableState;for(s("flow",U.flowing);U.flowing&&ee.read()!==null;);}function q(ee,U){return U.length===0?null:(U.objectMode?Q=U.buffer.shift():!ee||ee>=U.length?(Q=U.decoder?U.buffer.join(""):U.buffer.length===1?U.buffer.first():U.buffer.concat(U.length),U.buffer.clear()):Q=U.buffer.consume(ee,U.decoder),Q);var Q}function H(ee){var U=ee._readableState;s("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,f.nextTick(V,U,ee))}function V(ee,U){if(s("endReadableNT",ee.endEmitted,ee.length),!ee.endEmitted&&ee.length===0&&(ee.endEmitted=!0,U.readable=!1,U.emit("end"),ee.autoDestroy)){var Q=U._writableState;(!Q||Q.autoDestroy&&Q.finished)&&U.destroy()}}function te(ee,U){for(var Q=0,Y=ee.length;Q=U.highWaterMark:U.length>0)||U.ended))return s("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?H(this):B(this),null;if((ee=z(ee,U))===0&&U.ended)return U.length===0&&H(this),null;var Y,Z=U.needReadable;return s("need readable",Z),(U.length===0||U.length-ee0?q(ee,U):null)===null?(U.needReadable=U.length<=U.highWaterMark,ee=0):(U.length-=ee,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),Q!==ee&&U.ended&&H(this)),Y!==null&&this.emit("data",Y),Y},O.prototype._read=function(ee){C(this,new M("_read()"))},O.prototype.pipe=function(ee,U){var Q=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=ee;break;case 1:Y.pipes=[Y.pipes,ee];break;default:Y.pipes.push(ee)}Y.pipesCount+=1,s("pipe count=%d opts=%j",Y.pipesCount,U);var Z=U&&U.end===!1||ee===f.stdout||ee===f.stderr?Se:X;function X(){s("onend"),ee.end()}Y.endEmitted?f.nextTick(Z):Q.once("end",Z),ee.on("unpipe",function Oe(Me,ce){s("onunpipe"),Me===Q&&ce&&ce.hasUnpiped===!1&&(ce.hasUnpiped=!0,s("cleanup"),ee.removeListener("close",pe),ee.removeListener("finish",Te),ee.removeListener("drain",re),ee.removeListener("error",se),ee.removeListener("unpipe",Oe),Q.removeListener("end",X),Q.removeListener("end",Se),Q.removeListener("data",le),ie=!0,!Y.awaitDrain||ee._writableState&&!ee._writableState.needDrain||re())});var re=function(Oe){return function(){var Me=Oe._readableState;s("pipeOnDrain",Me.awaitDrain),Me.awaitDrain&&Me.awaitDrain--,Me.awaitDrain===0&&c(Oe,"data")&&(Me.flowing=!0,L(Oe))}}(Q);ee.on("drain",re);var ie=!1;function le(Oe){s("ondata");var Me=ee.write(Oe);s("dest.write",Me),Me===!1&&((Y.pipesCount===1&&Y.pipes===ee||Y.pipesCount>1&&te(Y.pipes,ee)!==-1)&&!ie&&(s("false write response, pause",Y.awaitDrain),Y.awaitDrain++),Q.pause())}function se(Oe){s("onerror",Oe),Se(),ee.removeListener("error",se),c(ee,"error")===0&&C(ee,Oe)}function pe(){ee.removeListener("finish",Te),Se()}function Te(){s("onfinish"),ee.removeListener("close",pe),Se()}function Se(){s("unpipe"),Q.unpipe(ee)}return Q.on("data",le),function(Oe,Me,ce){if(typeof Oe.prependListener=="function")return Oe.prependListener(Me,ce);Oe._events&&Oe._events[Me]?Array.isArray(Oe._events[Me])?Oe._events[Me].unshift(ce):Oe._events[Me]=[ce,Oe._events[Me]]:Oe.on(Me,ce)}(ee,"error",se),ee.once("close",pe),ee.once("finish",Te),ee.emit("pipe",Q),Y.flowing||(s("pipe resume"),Q.resume()),ee},O.prototype.unpipe=function(ee){var U=this._readableState,Q={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return ee&&ee!==U.pipes||(ee||(ee=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,ee&&ee.emit("unpipe",this,Q)),this;if(!ee){var Y=U.pipes,Z=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var X=0;X0,Y.flowing!==!1&&this.resume()):ee==="readable"&&(Y.endEmitted||Y.readableListening||(Y.readableListening=Y.needReadable=!0,Y.flowing=!1,Y.emittedReadable=!1,s("on readable",Y.length,Y.reading),Y.length?B(this):Y.reading||f.nextTick(W,this))),Q},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(ee,U){var Q=d.prototype.removeListener.call(this,ee,U);return ee==="readable"&&f.nextTick(E,this),Q},O.prototype.removeAllListeners=function(ee){var U=d.prototype.removeAllListeners.apply(this,arguments);return ee!=="readable"&&ee!==void 0||f.nextTick(E,this),U},O.prototype.resume=function(){var ee=this._readableState;return ee.flowing||(s("resume"),ee.flowing=!ee.readableListening,function(U,Q){Q.resumeScheduled||(Q.resumeScheduled=!0,f.nextTick(G,U,Q))}(this,ee)),ee.paused=!1,this},O.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(ee){var U=this,Q=this._readableState,Y=!1;for(var Z in ee.on("end",function(){if(s("wrapped end"),Q.decoder&&!Q.ended){var re=Q.decoder.end();re&&re.length&&U.push(re)}U.push(null)}),ee.on("data",function(re){s("wrapped data"),Q.decoder&&(re=Q.decoder.write(re)),Q.objectMode&&re==null||(Q.objectMode||re&&re.length)&&(U.push(re)||(Y=!0,ee.pause()))}),ee)this[Z]===void 0&&typeof ee[Z]=="function"&&(this[Z]=function(re){return function(){return ee[re].apply(ee,arguments)}}(Z));for(var X=0;X-1))throw new S(j);return this._writableState.defaultEncoding=j,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(j,N,E){E(new x("_write()"))},O.prototype._writev=null,O.prototype.end=function(j,N,E){var W=this._writableState;return typeof j=="function"?(E=j,j=null,N=null):typeof N=="function"&&(E=N,N=null),j!=null&&this.write(j,N),W.corked&&(W.corked=1,this.uncork()),W.ending||function(G,L,q){L.ending=!0,$(G,L),q&&(L.finished?f.nextTick(q):G.once("finish",q)),L.ended=!0,G.writable=!1}(this,W,E),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(j){this._writableState&&(this._writableState.destroyed=j)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(j,N){N(j)}},68221:function(o,a,n){var l,f=n(90386);function s(T,M,S){return M in T?Object.defineProperty(T,M,{value:S,enumerable:!0,configurable:!0,writable:!0}):T[M]=S,T}var c=n(12726),d=Symbol("lastResolve"),h=Symbol("lastReject"),p=Symbol("error"),m=Symbol("ended"),y=Symbol("lastPromise"),v=Symbol("handlePromise"),g=Symbol("stream");function b(T,M){return{value:T,done:M}}function x(T){var M=T[d];if(M!==null){var S=T[g].read();S!==null&&(T[y]=null,T[d]=null,T[h]=null,M(b(S,!1)))}}function _(T){f.nextTick(x,T)}var w=Object.getPrototypeOf(function(){}),k=Object.setPrototypeOf((s(l={get stream(){return this[g]},next:function(){var T=this,M=this[p];if(M!==null)return Promise.reject(M);if(this[m])return Promise.resolve(b(void 0,!0));if(this[g].destroyed)return new Promise(function(D,O){f.nextTick(function(){T[p]?O(T[p]):D(b(void 0,!0))})});var S,C=this[y];if(C)S=new Promise(function(D,O){return function(R,F){D.then(function(){O[m]?R(b(void 0,!0)):O[v](R,F)},F)}}(C,this));else{var P=this[g].read();if(P!==null)return Promise.resolve(b(P,!1));S=new Promise(this[v])}return this[y]=S,S}},Symbol.asyncIterator,function(){return this}),s(l,"return",function(){var T=this;return new Promise(function(M,S){T[g].destroy(null,function(C){C?S(C):M(b(void 0,!0))})})}),l),w);o.exports=function(T){var M,S=Object.create(k,(s(M={},g,{value:T,writable:!0}),s(M,d,{value:null,writable:!0}),s(M,h,{value:null,writable:!0}),s(M,p,{value:null,writable:!0}),s(M,m,{value:T._readableState.endEmitted,writable:!0}),s(M,v,{value:function(C,P){var D=S[g].read();D?(S[y]=null,S[d]=null,S[h]=null,C(b(D,!1))):(S[d]=C,S[h]=P)},writable:!0}),M));return S[y]=null,c(T,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var P=S[h];return P!==null&&(S[y]=null,S[d]=null,S[h]=null,P(C)),void(S[p]=C)}var D=S[d];D!==null&&(S[y]=null,S[d]=null,S[h]=null,D(b(void 0,!0))),S[m]=!0}),T.on("readable",_.bind(null,S)),S}},31125:function(o,a,n){function l(p,m){var y=Object.keys(p);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(p);m&&(v=v.filter(function(g){return Object.getOwnPropertyDescriptor(p,g).enumerable})),y.push.apply(y,v)}return y}function f(p,m,y){return m in p?Object.defineProperty(p,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[m]=y,p}function s(p,m){for(var y=0;y0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(v){var g={data:v,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var g=this.head,b=""+g.data;g=g.next;)b+=v+g.data;return b}},{key:"concat",value:function(v){if(this.length===0)return c.alloc(0);for(var g,b,x,_=c.allocUnsafe(v>>>0),w=this.head,k=0;w;)g=w.data,b=_,x=k,c.prototype.copy.call(g,b,x),k+=w.data.length,w=w.next;return _}},{key:"consume",value:function(v,g){var b;return v_.length?_.length:v;if(w===_.length?x+=_:x+=_.slice(0,v),(v-=w)==0){w===_.length?(++b,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=_.slice(w));break}++b}return this.length-=b,x}},{key:"_getBuffer",value:function(v){var g=c.allocUnsafe(v),b=this.head,x=1;for(b.data.copy(g),v-=b.data.length;b=b.next;){var _=b.data,w=v>_.length?_.length:v;if(_.copy(g,g.length-v,0,w),(v-=w)==0){w===_.length?(++x,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=_.slice(w));break}++x}return this.length-=x,g}},{key:h,value:function(v,g){return d(this,function(b){for(var x=1;x0,function(T){g||(g=T),T&&x.forEach(h),k||(x.forEach(h),b(g))})});return y.reduce(p)}},56306:function(o,a,n){var l=n(74322).q.ERR_INVALID_OPT_VALUE;o.exports={getHighWaterMark:function(f,s,c,d){var h=function(p,m,y){return p.highWaterMark!=null?p.highWaterMark:m?p[y]:null}(s,d,c);if(h!=null){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new l(d?c:"highWaterMark",h);return Math.floor(h)}return f.objectMode?16:16384}}},71405:function(o,a,n){o.exports=n(15398).EventEmitter},68019:function(o,a,n){var l=n(71665).Buffer,f=l.isEncoding||function(b){switch((b=""+b)&&b.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(b){var x;switch(this.encoding=function(_){var w=function(k){if(!k)return"utf8";for(var T;;)switch(k){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return k;default:if(T)return;k=(""+k).toLowerCase(),T=!0}}(_);if(typeof w!="string"&&(l.isEncoding===f||!f(_)))throw new Error("Unknown encoding: "+_);return w||_}(b),this.encoding){case"utf16le":this.text=h,this.end=p,x=4;break;case"utf8":this.fillLast=d,x=4;break;case"base64":this.text=m,this.end=y,x=3;break;default:return this.write=v,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=l.allocUnsafe(x)}function c(b){return b<=127?0:b>>5==6?2:b>>4==14?3:b>>3==30?4:b>>6==2?-1:-2}function d(b){var x=this.lastTotal-this.lastNeed,_=function(w,k,T){if((192&k[0])!=128)return w.lastNeed=0,"�";if(w.lastNeed>1&&k.length>1){if((192&k[1])!=128)return w.lastNeed=1,"�";if(w.lastNeed>2&&k.length>2&&(192&k[2])!=128)return w.lastNeed=2,"�"}}(this,b);return _!==void 0?_:this.lastNeed<=b.length?(b.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(b.copy(this.lastChar,x,0,b.length),void(this.lastNeed-=b.length))}function h(b,x){if((b.length-x)%2==0){var _=b.toString("utf16le",x);if(_){var w=_.charCodeAt(_.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=b[b.length-1],b.toString("utf16le",x,b.length-1)}function p(b){var x=b&&b.length?this.write(b):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,_)}return x}function m(b,x){var _=(b.length-x)%3;return _===0?b.toString("base64",x):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=b[b.length-1]:(this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1]),b.toString("base64",x,b.length-_))}function y(b){var x=b&&b.length?this.write(b):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function v(b){return b.toString(this.encoding)}function g(b){return b&&b.length?this.write(b):""}a.s=s,s.prototype.write=function(b){if(b.length===0)return"";var x,_;if(this.lastNeed){if((x=this.fillLast(b))===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _=0?(C>0&&(k.lastNeed=C-1),C):--S=0?(C>0&&(k.lastNeed=C-2),C):--S=0?(C>0&&(C===2?C=0:k.lastNeed=C-3),C):0}(this,b,x);if(!this.lastNeed)return b.toString("utf8",x);this.lastTotal=_;var w=b.length-(_-this.lastNeed);return b.copy(this.lastChar,0,w),b.toString("utf8",x,w)},s.prototype.fillLast=function(b){if(this.lastNeed<=b.length)return b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,b.length),this.lastNeed-=b.length}},90715:function(o,a,n){var l=n(32791),f=n(41633)("stream-parser");o.exports=function(k){var T=k&&typeof k._transform=="function",M=k&&typeof k._write=="function";if(!T&&!M)throw new Error("must pass a Writable or Transform stream in");f("extending Parser into stream"),k._bytes=m,k._skipBytes=y,T&&(k._passthrough=v),T?k._transform=b:k._write=g};var s=-1,c=0,d=1,h=2;function p(k){f("initializing parser stream"),k._parserBytesLeft=0,k._parserBuffers=[],k._parserBuffered=0,k._parserState=s,k._parserCallback=null,typeof k.push=="function"&&(k._parserOutput=k.push.bind(k)),k._parserInit=!0}function m(k,T){l(!this._parserCallback,'there is already a "callback" set!'),l(isFinite(k)&&k>0,'can only buffer a finite number of bytes > 0, got "'+k+'"'),this._parserInit||p(this),f("buffering %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=c}function y(k,T){l(!this._parserCallback,'there is already a "callback" set!'),l(k>0,'can only skip > 0 bytes, got "'+k+'"'),this._parserInit||p(this),f("skipping %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=d}function v(k,T){l(!this._parserCallback,'There is already a "callback" set!'),l(k>0,'can only pass through > 0 bytes, got "'+k+'"'),this._parserInit||p(this),f("passing through %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=h}function g(k,T,M){this._parserInit||p(this),f("write(%o bytes)",k.length),typeof T=="function"&&(M=T),_(this,k,null,M)}function b(k,T,M){this._parserInit||p(this),f("transform(%o bytes)",k.length),typeof T!="function"&&(T=this._parserOutput),_(this,k,T,M)}function x(k,T,M,S){if(k._parserBytesLeft-=T.length,f("%o bytes left for stream piece",k._parserBytesLeft),k._parserState===c?(k._parserBuffers.push(T),k._parserBuffered+=T.length):k._parserState===h&&M(T),k._parserBytesLeft!==0)return S;var C=k._parserCallback;if(C&&k._parserState===c&&k._parserBuffers.length>1&&(T=Buffer.concat(k._parserBuffers,k._parserBuffered)),k._parserState!==c&&(T=null),k._parserCallback=null,k._parserBuffered=0,k._parserState=s,k._parserBuffers.splice(0),C){var P=[];T&&P.push(T),M&&P.push(M);var D=C.length>P.length;D&&P.push(w(S));var O=C.apply(k,P);if(!D||S===O)return S}}var _=w(function k(T,M,S,C){return T._parserBytesLeft<=0?C(new Error("got data but not currently parsing anything")):M.length<=T._parserBytesLeft?function(){return x(T,M,S,C)}:function(){var P=M.slice(0,T._parserBytesLeft);return x(T,P,S,function(D){return D?C(D):M.length>P.length?function(){return k(T,M.slice(P.length),S,C)}:void 0})}});function w(k){return function(){for(var T=k.apply(this,arguments);typeof T=="function";)T=T();return T}}},41633:function(o,a,n){var l=n(90386);function f(){var s;try{s=a.storage.debug}catch{}return!s&&l!==void 0&&"env"in l&&(s=l.env.DEBUG),s}(a=o.exports=n(74469)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},a.formatArgs=function(s){var c=this.useColors;if(s[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+s[0]+(c?"%c ":" ")+"+"+a.humanize(this.diff),c){var d="color: "+this.color;s.splice(1,0,d,"color: inherit");var h=0,p=0;s[0].replace(/%[a-zA-Z%]/g,function(m){m!=="%%"&&(h++,m==="%c"&&(p=h))}),s.splice(p,0,d)}},a.save=function(s){try{s==null?a.storage.removeItem("debug"):a.storage.debug=s}catch{}},a.load=f,a.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(s){try{return JSON.stringify(s)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}},a.enable(f())},74469:function(o,a,n){var l;function f(s){function c(){if(c.enabled){var d=c,h=+new Date,p=h-(l||h);d.diff=p,d.prev=l,d.curr=h,l=h;for(var m=new Array(arguments.length),y=0;y0)return function(m){if(!((m=String(m)).length>100)){var y=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(m);if(y){var v=parseFloat(y[1]);switch((y[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*v;case"days":case"day":case"d":return v*f;case"hours":case"hour":case"hrs":case"hr":case"h":return v*l;case"minutes":case"minute":case"mins":case"min":case"m":return v*n;case"seconds":case"second":case"secs":case"sec":case"s":return v*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return v;default:return}}}}(c);if(p==="number"&&isNaN(c)===!1)return d.long?s(h=c,f,"day")||s(h,l,"hour")||s(h,n,"minute")||s(h,a,"second")||h+" ms":function(m){return m>=f?Math.round(m/f)+"d":m>=l?Math.round(m/l)+"h":m>=n?Math.round(m/n)+"m":m>=a?Math.round(m/a)+"s":m+"ms"}(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}},84267:function(o,a,n){var l;(function(f){var s=/^\s+/,c=/\s+$/,d=0,h=f.round,p=f.min,m=f.max,y=f.random;function v(Y,Z){if(Z=Z||{},(Y=Y||"")instanceof v)return Y;if(!(this instanceof v))return new v(Y,Z);var X=function(re){var ie,le,se,pe={r:0,g:0,b:0},Te=1,Se=null,Oe=null,Me=null,ce=!1,ye=!1;return typeof re=="string"&&(re=function(J){J=J.replace(s,"").replace(c,"").toLowerCase();var ne,de=!1;if(B[J])J=B[J],de=!0;else if(J=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(ne=U.rgb.exec(J))?{r:ne[1],g:ne[2],b:ne[3]}:(ne=U.rgba.exec(J))?{r:ne[1],g:ne[2],b:ne[3],a:ne[4]}:(ne=U.hsl.exec(J))?{h:ne[1],s:ne[2],l:ne[3]}:(ne=U.hsla.exec(J))?{h:ne[1],s:ne[2],l:ne[3],a:ne[4]}:(ne=U.hsv.exec(J))?{h:ne[1],s:ne[2],v:ne[3]}:(ne=U.hsva.exec(J))?{h:ne[1],s:ne[2],v:ne[3],a:ne[4]}:(ne=U.hex8.exec(J))?{r:W(ne[1]),g:W(ne[2]),b:W(ne[3]),a:H(ne[4]),format:de?"name":"hex8"}:(ne=U.hex6.exec(J))?{r:W(ne[1]),g:W(ne[2]),b:W(ne[3]),format:de?"name":"hex"}:(ne=U.hex4.exec(J))?{r:W(ne[1]+""+ne[1]),g:W(ne[2]+""+ne[2]),b:W(ne[3]+""+ne[3]),a:H(ne[4]+""+ne[4]),format:de?"name":"hex8"}:!!(ne=U.hex3.exec(J))&&{r:W(ne[1]+""+ne[1]),g:W(ne[2]+""+ne[2]),b:W(ne[3]+""+ne[3]),format:de?"name":"hex"}}(re)),typeof re=="object"&&(Q(re.r)&&Q(re.g)&&Q(re.b)?(ie=re.r,le=re.g,se=re.b,pe={r:255*N(ie,255),g:255*N(le,255),b:255*N(se,255)},ce=!0,ye=String(re.r).substr(-1)==="%"?"prgb":"rgb"):Q(re.h)&&Q(re.s)&&Q(re.v)?(Se=L(re.s),Oe=L(re.v),pe=function(J,ne,de){J=6*N(J,360),ne=N(ne,100),de=N(de,100);var xe=f.floor(J),ue=J-xe,ge=de*(1-ne),be=de*(1-ue*ne),we=de*(1-(1-ue)*ne),ke=xe%6;return{r:255*[de,be,ge,ge,we,de][ke],g:255*[we,de,de,be,ge,ge][ke],b:255*[ge,ge,we,de,de,be][ke]}}(re.h,Se,Oe),ce=!0,ye="hsv"):Q(re.h)&&Q(re.s)&&Q(re.l)&&(Se=L(re.s),Me=L(re.l),pe=function(J,ne,de){var xe,ue,ge;function be(Ae,Ee,De){return De<0&&(De+=1),De>1&&(De-=1),De<1/6?Ae+6*(Ee-Ae)*De:De<.5?Ee:De<2/3?Ae+(Ee-Ae)*(2/3-De)*6:Ae}if(J=N(J,360),ne=N(ne,100),de=N(de,100),ne===0)xe=ue=ge=de;else{var we=de<.5?de*(1+ne):de+ne-de*ne,ke=2*de-we;xe=be(ke,we,J+1/3),ue=be(ke,we,J),ge=be(ke,we,J-1/3)}return{r:255*xe,g:255*ue,b:255*ge}}(re.h,Se,Me),ce=!0,ye="hsl"),re.hasOwnProperty("a")&&(Te=re.a)),Te=j(Te),{ok:ce,format:re.format||ye,r:p(255,m(pe.r,0)),g:p(255,m(pe.g,0)),b:p(255,m(pe.b,0)),a:Te}}(Y);this._originalInput=Y,this._r=X.r,this._g=X.g,this._b=X.b,this._a=X.a,this._roundA=h(100*this._a)/100,this._format=Z.format||X.format,this._gradientType=Z.gradientType,this._r<1&&(this._r=h(this._r)),this._g<1&&(this._g=h(this._g)),this._b<1&&(this._b=h(this._b)),this._ok=X.ok,this._tc_id=d++}function g(Y,Z,X){Y=N(Y,255),Z=N(Z,255),X=N(X,255);var re,ie,le=m(Y,Z,X),se=p(Y,Z,X),pe=(le+se)/2;if(le==se)re=ie=0;else{var Te=le-se;switch(ie=pe>.5?Te/(2-le-se):Te/(le+se),le){case Y:re=(Z-X)/Te+(Z>1)+720)%360;--Z;)re.h=(re.h+ie)%360,le.push(v(re));return le}function z(Y,Z){Z=Z||6;for(var X=v(Y).toHsv(),re=X.h,ie=X.s,le=X.v,se=[],pe=1/Z;Z--;)se.push(v({h:re,s:ie,v:le})),le=(le+pe)%1;return se}v.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Y=this.toRgb();return(299*Y.r+587*Y.g+114*Y.b)/1e3},getLuminance:function(){var Y,Z,X,re=this.toRgb();return Y=re.r/255,Z=re.g/255,X=re.b/255,.2126*(Y<=.03928?Y/12.92:f.pow((Y+.055)/1.055,2.4))+.7152*(Z<=.03928?Z/12.92:f.pow((Z+.055)/1.055,2.4))+.0722*(X<=.03928?X/12.92:f.pow((X+.055)/1.055,2.4))},setAlpha:function(Y){return this._a=j(Y),this._roundA=h(100*this._a)/100,this},toHsv:function(){var Y=b(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=b(this._r,this._g,this._b),Z=h(360*Y.h),X=h(100*Y.s),re=h(100*Y.v);return this._a==1?"hsv("+Z+", "+X+"%, "+re+"%)":"hsva("+Z+", "+X+"%, "+re+"%, "+this._roundA+")"},toHsl:function(){var Y=g(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=g(this._r,this._g,this._b),Z=h(360*Y.h),X=h(100*Y.s),re=h(100*Y.l);return this._a==1?"hsl("+Z+", "+X+"%, "+re+"%)":"hsla("+Z+", "+X+"%, "+re+"%, "+this._roundA+")"},toHex:function(Y){return x(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return function(Z,X,re,ie,le){var se=[G(h(Z).toString(16)),G(h(X).toString(16)),G(h(re).toString(16)),G(q(ie))];return le&&se[0].charAt(0)==se[0].charAt(1)&&se[1].charAt(0)==se[1].charAt(1)&&se[2].charAt(0)==se[2].charAt(1)&&se[3].charAt(0)==se[3].charAt(1)?se[0].charAt(0)+se[1].charAt(0)+se[2].charAt(0)+se[3].charAt(0):se.join("")}(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:h(this._r),g:h(this._g),b:h(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+h(this._r)+", "+h(this._g)+", "+h(this._b)+")":"rgba("+h(this._r)+", "+h(this._g)+", "+h(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:h(100*N(this._r,255))+"%",g:h(100*N(this._g,255))+"%",b:h(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+h(100*N(this._r,255))+"%, "+h(100*N(this._g,255))+"%, "+h(100*N(this._b,255))+"%)":"rgba("+h(100*N(this._r,255))+"%, "+h(100*N(this._g,255))+"%, "+h(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&($[x(this._r,this._g,this._b,!0)]||!1)},toFilter:function(Y){var Z="#"+_(this._r,this._g,this._b,this._a),X=Z,re=this._gradientType?"GradientType = 1, ":"";if(Y){var ie=v(Y);X="#"+_(ie._r,ie._g,ie._b,ie._a)}return"progid:DXImageTransform.Microsoft.gradient("+re+"startColorstr="+Z+",endColorstr="+X+")"},toString:function(Y){var Z=!!Y;Y=Y||this._format;var X=!1,re=this._a<1&&this._a>=0;return Z||!re||Y!=="hex"&&Y!=="hex6"&&Y!=="hex3"&&Y!=="hex4"&&Y!=="hex8"&&Y!=="name"?(Y==="rgb"&&(X=this.toRgbString()),Y==="prgb"&&(X=this.toPercentageRgbString()),Y!=="hex"&&Y!=="hex6"||(X=this.toHexString()),Y==="hex3"&&(X=this.toHexString(!0)),Y==="hex4"&&(X=this.toHex8String(!0)),Y==="hex8"&&(X=this.toHex8String()),Y==="name"&&(X=this.toName()),Y==="hsl"&&(X=this.toHslString()),Y==="hsv"&&(X=this.toHsvString()),X||this.toHexString()):Y==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return v(this.toString())},_applyModification:function(Y,Z){var X=Y.apply(null,[this].concat([].slice.call(Z)));return this._r=X._r,this._g=X._g,this._b=X._b,this.setAlpha(X._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(P,arguments)},_applyCombination:function(Y,Z){return Y.apply(null,[this].concat([].slice.call(Z)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},v.fromRatio=function(Y,Z){if(typeof Y=="object"){var X={};for(var re in Y)Y.hasOwnProperty(re)&&(X[re]=re==="a"?Y[re]:L(Y[re]));Y=X}return v(Y,Z)},v.equals=function(Y,Z){return!(!Y||!Z)&&v(Y).toRgbString()==v(Z).toRgbString()},v.random=function(){return v.fromRatio({r:y(),g:y(),b:y()})},v.mix=function(Y,Z,X){X=X===0?0:X||50;var re=v(Y).toRgb(),ie=v(Z).toRgb(),le=X/100;return v({r:(ie.r-re.r)*le+re.r,g:(ie.g-re.g)*le+re.g,b:(ie.b-re.b)*le+re.b,a:(ie.a-re.a)*le+re.a})},v.readability=function(Y,Z){var X=v(Y),re=v(Z);return(f.max(X.getLuminance(),re.getLuminance())+.05)/(f.min(X.getLuminance(),re.getLuminance())+.05)},v.isReadable=function(Y,Z,X){var re,ie,le,se,pe,Te=v.readability(Y,Z);switch(ie=!1,(le=X,(se=((le=le||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&se!=="AAA"&&(se="AA"),(pe=(le.size||"small").toLowerCase())!=="small"&&pe!=="large"&&(pe="small"),re={level:se,size:pe}).level+re.size){case"AAsmall":case"AAAlarge":ie=Te>=4.5;break;case"AAlarge":ie=Te>=3;break;case"AAAsmall":ie=Te>=7}return ie},v.mostReadable=function(Y,Z,X){var re,ie,le,se,pe=null,Te=0;ie=(X=X||{}).includeFallbackColors,le=X.level,se=X.size;for(var Se=0;SeTe&&(Te=re,pe=v(Z[Se]));return v.isReadable(Y,pe,{level:le,size:se})||!ie?pe:(X.includeFallbackColors=!1,v.mostReadable(Y,["#fff","#000"],X))};var B=v.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$=v.hexNames=function(Y){var Z={};for(var X in Y)Y.hasOwnProperty(X)&&(Z[Y[X]]=X);return Z}(B);function j(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function N(Y,Z){(function(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1})(Y)&&(Y="100%");var X=function(re){return typeof re=="string"&&re.indexOf("%")!=-1}(Y);return Y=p(Z,m(0,parseFloat(Y))),X&&(Y=parseInt(Y*Z,10)/100),f.abs(Y-Z)<1e-6?1:Y%Z/parseFloat(Z)}function E(Y){return p(1,m(0,Y))}function W(Y){return parseInt(Y,16)}function G(Y){return Y.length==1?"0"+Y:""+Y}function L(Y){return Y<=1&&(Y=100*Y+"%"),Y}function q(Y){return f.round(255*parseFloat(Y)).toString(16)}function H(Y){return W(Y)/255}var V,te,ee,U=(te="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",ee="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ee),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ee),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ee),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Q(Y){return!!U.CSS_UNIT.exec(Y)}o.exports?o.exports=v:(l=(function(){return v}).call(a,n,a,o))===void 0||(o.exports=l)})(Math)},20588:function(o,a,n){function l(f){try{if(!n.g.localStorage)return!1}catch{return!1}var s=n.g.localStorage[f];return s!=null&&String(s).toLowerCase()==="true"}o.exports=function(f,s){if(l("noDeprecation"))return f;var c=!1;return function(){if(!c){if(l("throwDeprecation"))throw new Error(s);l("traceDeprecation")?console.trace(s):console.warn(s),c=!0}return f.apply(this,arguments)}}},45920:function(o){o.exports=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}},4936:function(o,a,n){var l=n(47216),f=n(65481),s=n(21099),c=n(9187);function d(N){return N.call.bind(N)}var h=typeof BigInt<"u",p=typeof Symbol<"u",m=d(Object.prototype.toString),y=d(Number.prototype.valueOf),v=d(String.prototype.valueOf),g=d(Boolean.prototype.valueOf);if(h)var b=d(BigInt.prototype.valueOf);if(p)var x=d(Symbol.prototype.valueOf);function _(N,E){if(typeof N!="object")return!1;try{return E(N),!0}catch{return!1}}function w(N){return m(N)==="[object Map]"}function k(N){return m(N)==="[object Set]"}function T(N){return m(N)==="[object WeakMap]"}function M(N){return m(N)==="[object WeakSet]"}function S(N){return m(N)==="[object ArrayBuffer]"}function C(N){return typeof ArrayBuffer<"u"&&(S.working?S(N):N instanceof ArrayBuffer)}function P(N){return m(N)==="[object DataView]"}function D(N){return typeof DataView<"u"&&(P.working?P(N):N instanceof DataView)}a.isArgumentsObject=l,a.isGeneratorFunction=f,a.isTypedArray=c,a.isPromise=function(N){return typeof Promise<"u"&&N instanceof Promise||N!==null&&typeof N=="object"&&typeof N.then=="function"&&typeof N.catch=="function"},a.isArrayBufferView=function(N){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(N):c(N)||D(N)},a.isUint8Array=function(N){return s(N)==="Uint8Array"},a.isUint8ClampedArray=function(N){return s(N)==="Uint8ClampedArray"},a.isUint16Array=function(N){return s(N)==="Uint16Array"},a.isUint32Array=function(N){return s(N)==="Uint32Array"},a.isInt8Array=function(N){return s(N)==="Int8Array"},a.isInt16Array=function(N){return s(N)==="Int16Array"},a.isInt32Array=function(N){return s(N)==="Int32Array"},a.isFloat32Array=function(N){return s(N)==="Float32Array"},a.isFloat64Array=function(N){return s(N)==="Float64Array"},a.isBigInt64Array=function(N){return s(N)==="BigInt64Array"},a.isBigUint64Array=function(N){return s(N)==="BigUint64Array"},w.working=typeof Map<"u"&&w(new Map),a.isMap=function(N){return typeof Map<"u"&&(w.working?w(N):N instanceof Map)},k.working=typeof Set<"u"&&k(new Set),a.isSet=function(N){return typeof Set<"u"&&(k.working?k(N):N instanceof Set)},T.working=typeof WeakMap<"u"&&T(new WeakMap),a.isWeakMap=function(N){return typeof WeakMap<"u"&&(T.working?T(N):N instanceof WeakMap)},M.working=typeof WeakSet<"u"&&M(new WeakSet),a.isWeakSet=function(N){return M(N)},S.working=typeof ArrayBuffer<"u"&&S(new ArrayBuffer),a.isArrayBuffer=C,P.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&P(new DataView(new ArrayBuffer(1),0,1)),a.isDataView=D;var O=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function R(N){return m(N)==="[object SharedArrayBuffer]"}function F(N){return O!==void 0&&(R.working===void 0&&(R.working=R(new O)),R.working?R(N):N instanceof O)}function A(N){return _(N,y)}function z(N){return _(N,v)}function B(N){return _(N,g)}function $(N){return h&&_(N,b)}function j(N){return p&&_(N,x)}a.isSharedArrayBuffer=F,a.isAsyncFunction=function(N){return m(N)==="[object AsyncFunction]"},a.isMapIterator=function(N){return m(N)==="[object Map Iterator]"},a.isSetIterator=function(N){return m(N)==="[object Set Iterator]"},a.isGeneratorObject=function(N){return m(N)==="[object Generator]"},a.isWebAssemblyCompiledModule=function(N){return m(N)==="[object WebAssembly.Module]"},a.isNumberObject=A,a.isStringObject=z,a.isBooleanObject=B,a.isBigIntObject=$,a.isSymbolObject=j,a.isBoxedPrimitive=function(N){return A(N)||z(N)||B(N)||$(N)||j(N)},a.isAnyArrayBuffer=function(N){return typeof Uint8Array<"u"&&(C(N)||F(N))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(N){Object.defineProperty(a,N,{enumerable:!1,value:function(){throw new Error(N+" is not supported in userland")}})})},43827:function(o,a,n){var l=n(90386),f=Object.getOwnPropertyDescriptors||function(j){for(var N=Object.keys(j),E={},W=0;W=G)return H;switch(H){case"%s":return String(W[E++]);case"%d":return Number(W[E++]);case"%j":try{return JSON.stringify(W[E++])}catch{return"[Circular]"}default:return H}}),q=W[E];E=3&&(E.depth=arguments[2]),arguments.length>=4&&(E.colors=arguments[3]),_(N)?E.showHidden=N:N&&a._extend(E,N),M(E.showHidden)&&(E.showHidden=!1),M(E.depth)&&(E.depth=2),M(E.colors)&&(E.colors=!1),M(E.customInspect)&&(E.customInspect=!0),E.colors&&(E.stylize=m),v(E,j,E.depth)}function m(j,N){var E=p.styles[N];return E?"\x1B["+p.colors[E][0]+"m"+j+"\x1B["+p.colors[E][1]+"m":j}function y(j,N){return j}function v(j,N,E){if(j.customInspect&&N&&O(N.inspect)&&N.inspect!==a.inspect&&(!N.constructor||N.constructor.prototype!==N)){var W=N.inspect(E,j);return T(W)||(W=v(j,W,E)),W}var G=function(Q,Y){if(M(Y))return Q.stylize("undefined","undefined");if(T(Y)){var Z="'"+JSON.stringify(Y).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(Z,"string")}return k(Y)?Q.stylize(""+Y,"number"):_(Y)?Q.stylize(""+Y,"boolean"):w(Y)?Q.stylize("null","null"):void 0}(j,N);if(G)return G;var L=Object.keys(N),q=function(Q){var Y={};return Q.forEach(function(Z,X){Y[Z]=!0}),Y}(L);if(j.showHidden&&(L=Object.getOwnPropertyNames(N)),D(N)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return g(N);if(L.length===0){if(O(N)){var H=N.name?": "+N.name:"";return j.stylize("[Function"+H+"]","special")}if(S(N))return j.stylize(RegExp.prototype.toString.call(N),"regexp");if(P(N))return j.stylize(Date.prototype.toString.call(N),"date");if(D(N))return g(N)}var V,te="",ee=!1,U=["{","}"];return x(N)&&(ee=!0,U=["[","]"]),O(N)&&(te=" [Function"+(N.name?": "+N.name:"")+"]"),S(N)&&(te=" "+RegExp.prototype.toString.call(N)),P(N)&&(te=" "+Date.prototype.toUTCString.call(N)),D(N)&&(te=" "+g(N)),L.length!==0||ee&&N.length!=0?E<0?S(N)?j.stylize(RegExp.prototype.toString.call(N),"regexp"):j.stylize("[Object]","special"):(j.seen.push(N),V=ee?function(Q,Y,Z,X,re){for(var ie=[],le=0,se=Y.length;le60?Z[0]+(Y===""?"":Y+` `)+" "+Q.join(`, `)+" "+Z[1]:Z[0]+Y+" "+Q.join(", ")+" "+Z[1]}(V,te,U)):U[0]+te+U[1]}function g(j){return"["+Error.prototype.toString.call(j)+"]"}function b(j,N,E,W,G,L){var q,H,V;if((V=Object.getOwnPropertyDescriptor(N,G)||{value:N[G]}).get?H=V.set?j.stylize("[Getter/Setter]","special"):j.stylize("[Getter]","special"):V.set&&(H=j.stylize("[Setter]","special")),z(W,G)||(q="["+G+"]"),H||(j.seen.indexOf(V.value)<0?(H=w(E)?v(j,V.value,null):v(j,V.value,E-1)).indexOf(` @@ -68,7 +68,7 @@ should equal `).slice(2):` `+H.split(` `).map(function(te){return" "+te}).join(` -`)):H=j.stylize("[Circular]","special")),M(q)){if(L&&G.match(/^\d+$/))return H;(q=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=j.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=j.stylize(q,"string"))}return q+": "+H}function x(j){return Array.isArray(j)}function _(j){return typeof j=="boolean"}function w(j){return j===null}function k(j){return typeof j=="number"}function T(j){return typeof j=="string"}function M(j){return j===void 0}function S(j){return C(j)&&R(j)==="[object RegExp]"}function C(j){return typeof j=="object"&&j!==null}function P(j){return C(j)&&R(j)==="[object Date]"}function D(j){return C(j)&&(R(j)==="[object Error]"||j instanceof Error)}function O(j){return typeof j=="function"}function R(j){return Object.prototype.toString.call(j)}function F(j){return j<10?"0"+j.toString(10):j.toString(10)}a.debuglog=function(j){if(j=j.toUpperCase(),!u[j])if(d.test(j)){var N=l.pid;u[j]=function(){var E=a.format.apply(a,arguments);console.error("%s %d: %s",j,N,E)}}else u[j]=function(){};return u[j]},a.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},a.types=n(4936),a.isArray=x,a.isBoolean=_,a.isNull=w,a.isNullOrUndefined=function(j){return j==null},a.isNumber=k,a.isString=T,a.isSymbol=function(j){return typeof j=="symbol"},a.isUndefined=M,a.isRegExp=S,a.types.isRegExp=S,a.isObject=C,a.isDate=P,a.types.isDate=P,a.isError=D,a.types.isNativeError=D,a.isFunction=O,a.isPrimitive=function(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||j===void 0},a.isBuffer=n(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(j,N){return Object.prototype.hasOwnProperty.call(j,N)}a.log=function(){var j,N;console.log("%s - %s",(N=[F((j=new Date).getHours()),F(j.getMinutes()),F(j.getSeconds())].join(":"),[j.getDate(),A[j.getMonth()],N].join(" ")),a.format.apply(a,arguments))},a.inherits=n(42018),a._extend=function(j,N){if(!N||!C(N))return j;for(var E=Object.keys(N),W=E.length;W--;)j[E[W]]=N[E[W]];return j};var B=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function $(j,N){if(!j){var E=new Error("Promise was rejected with a falsy value");E.reason=j,j=E}return N(j)}a.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(B&&j[B]){var N;if(typeof(N=j[B])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,B,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var E,W,G=new Promise(function(H,V){E=H,W=V}),L=[],q=0;q"u"?n.g:globalThis,m=f(),y=s("String.prototype.slice"),v={},g=Object.getPrototypeOf;h&&u&&g&&l(m,function(x){if(typeof p[x]=="function"){var _=new p[x];if(Symbol.toStringTag in _){var w=g(_),k=u(w,Symbol.toStringTag);if(!k){var T=g(w);k=u(T,Symbol.toStringTag)}v[x]=k.get}}});var b=n(9187);o.exports=function(x){return!!b(x)&&(h&&Symbol.toStringTag in x?function(_){var w=!1;return l(v,function(k,T){if(!w)try{var M=k.call(_);M===T&&(w=M)}catch{}}),w}(x):y(d(x),8,-1))}},3961:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function u(g){this.local=this.regionalOptions[g||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,f(u.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(g,b){if(typeof g=="string"){var x=g.match(h);return x?x[0]:""}var _=this._validateYear(g),w=g.month(),k=""+this.toChineseMonth(_,w);return b&&k.length<2&&(k="0"+k),this.isIntercalaryMonth(_,w)&&(k+="i"),k},monthNames:function(g){if(typeof g=="string"){var b=g.match(p);return b?b[0]:""}var x=this._validateYear(g),_=g.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},monthNamesShort:function(g){if(typeof g=="string"){var b=g.match(m);return b?b[0]:""}var x=this._validateYear(g),_=g.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},parseMonth:function(g,b){g=this._validateYear(g);var x,_=parseInt(b);if(isNaN(_))b[0]==="闰"&&(x=!0,b=b.substring(1)),b[b.length-1]==="月"&&(b=b.substring(0,b.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(b);else{var w=b[b.length-1];x=w==="i"||w==="I"}return this.toMonthIndex(g,_,x)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(g,b){if(g.year&&(g=g.year()),typeof g!="number"||g<1888||g>2111)throw b.replace(/\{0\}/,this.local.name);return g},toMonthIndex:function(g,b,x){var _=this.intercalaryMonth(g);if(x&&b!==_||b<1||b>12)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!x&&b<=_?b-1:b:b-1},toChineseMonth:function(g,b){g.year&&(b=(g=g.year()).month());var x=this.intercalaryMonth(g);if(b<0||b>(x?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x?b>13},isIntercalaryMonth:function(g,b){g.year&&(b=(g=g.year()).month());var x=this.intercalaryMonth(g);return!!x&&x===b},leapYear:function(g){return this.intercalaryMonth(g)!==0},weekOfYear:function(g,b,x){var _,w=this._validateYear(g,l.local.invalidyear),k=v[w-v[0]],T=k>>9&4095,M=k>>5&15,S=31&k;(_=s.newDate(T,M,S)).add(4-(_.dayOfWeek()||7),"d");var C=this.toJD(g,b,x)-_.toJD();return 1+Math.floor(C/7)},monthsInYear:function(g){return this.leapYear(g)?13:12},daysInMonth:function(g,b){g.year&&(b=g.month(),g=g.year()),g=this._validateYear(g);var x=y[g-y[0]];if(b>(x>>13?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x&1<<12-b?30:29},weekDay:function(g,b,x){return(this.dayOfWeek(g,b,x)||7)<6},toJD:function(g,b,x){var _=this._validate(g,k,x,l.local.invalidDate);g=this._validateYear(_.year()),b=_.month(),x=_.day();var w=this.isIntercalaryMonth(g,b),k=this.toChineseMonth(g,b),T=function(M,S,C,P,D){var O,R,F;if(typeof M=="object")R=M,O=S||{};else{var A;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof S=="number"&&S>=1&&S<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof C=="number"&&C>=1&&C<=30))throw new Error("Lunar day outside range 1 - 30");typeof P=="object"?(A=!1,O=P):(A=!!P,O={}),R={year:M,month:S,day:C,isIntercalary:A}}F=R.day-1;var z,B=y[R.year-y[0]],$=B>>13;z=$&&(R.month>$||R.isIntercalary)?R.month:R.month-1;for(var j=0;j>9&4095,(N>>5&15)-1,(31&N)+F);return O.year=E.getFullYear(),O.month=1+E.getMonth(),O.day=E.getDate(),O}(g,k,x,w);return s.toJD(T.year,T.month,T.day)},fromJD:function(g){var b=s.fromJD(g),x=function(w,k,T,M){var S,C;if(typeof w=="object")S=w,C=k||{};else{if(!(typeof w=="number"&&w>=1888&&w<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof k=="number"&&k>=1&&k<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof T=="number"&&T>=1&&T<=31))throw new Error("Solar day outside range 1 - 31");S={year:w,month:k,day:T},C={}}var P=v[S.year-v[0]],D=S.year<<9|S.month<<5|S.day;C.year=D>=P?S.year:S.year-1,P=v[C.year-v[0]];var O,R=new Date(P>>9&4095,(P>>5&15)-1,31&P),F=new Date(S.year,S.month-1,S.day);O=Math.round((F-R)/864e5);var A,z=y[C.year-y[0]];for(A=0;A<13;A++){var B=z&1<<12-A?30:29;if(O>13;return!$||A<$?(C.isIntercalary=!1,C.month=1+A):A===$?(C.isIntercalary=!0,C.month=A):(C.isIntercalary=!1,C.month=A),C.day=1+O,C}(b.year(),b.month(),b.day()),_=this.toMonthIndex(x.year,x.month,x.isIntercalary);return this.newDate(x.year,_,x.day)},fromString:function(g){var b=g.match(d),x=this._validateYear(+b[1]),_=+b[2],w=!!b[3],k=this.toMonthIndex(x,_,w),T=+b[4];return this.newDate(x,k,T)},add:function(g,b,x){var _=g.year(),w=g.month(),k=this.isIntercalaryMonth(_,w),T=this.toChineseMonth(_,w),M=Object.getPrototypeOf(u.prototype).add.call(this,g,b,x);if(x==="y"){var S=M.year(),C=M.month(),P=this.isIntercalaryMonth(S,T),D=k&&P?this.toMonthIndex(S,T,!0):this.toMonthIndex(S,T,!1);D!==C&&M.month(D)}return M}});var d=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,h=/^\d?\d[iI]?/m,p=/^闰?十?[一二三四五六七八九]?月/m,m=/^闰?十?[一二三四五六七八九]?/m;l.calendars.chinese=u;var y=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],v=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},38751:function(o,a,n){var l=n(63489),f=n(56131);function s(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var d=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear);return(u=d.year()+(d.year()<0?1:0))%4==3||u%4==-1},monthsInYear:function(u){return this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(u,d,h){var p=this.newDate(u,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(u,d){var h=this._validate(u,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(u,d,h){return(this.dayOfWeek(u,d,h)||7)<6},toJD:function(u,d,h){var p=this._validate(u,d,h,l.local.invalidDate);return(u=p.year())<0&&u++,p.day()+30*(p.month()-1)+365*(u-1)+Math.floor(u/4)+this.jdEpoch-1},fromJD:function(u){var d=Math.floor(u)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(u)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,m=d-30*(p-1)+1;return this.newDate(h,p,m)}}),l.calendars.coptic=s},86825:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),!1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),13},daysInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),400},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/8)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(d,h,p){return(this._validate(d,h,p,l.local.invalidDate).day()+1)%8},weekDay:function(d,h,p){var m=this.dayOfWeek(d,h,p);return m>=2&&m<=6},extraInfo:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return{century:u[Math.floor((m.year()-1)/100)+1]||""}},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=m.year()+(m.year()<0?1:0),h=m.month(),(p=m.day())+(h>1?16:0)+(h>2?32*(h-2):0)+400*(d-1)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d+.5)-Math.floor(this.jdEpoch)-1;var h=Math.floor(d/400)+1;d-=400*(h-1),d+=d>15?16:0;var p=Math.floor(d/32)+1,m=d-32*(p-1)+1;return this.newDate(h<=0?h-1:h,p,m)}});var u={20:"Fruitbat",21:"Anchovy"};l.calendars.discworld=s},37715:function(o,a,n){var l=n(63489),f=n(56131);function s(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var d=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear);return(u=d.year()+(d.year()<0?1:0))%4==3||u%4==-1},monthsInYear:function(u){return this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(u,d,h){var p=this.newDate(u,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(u,d){var h=this._validate(u,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(u,d,h){return(this.dayOfWeek(u,d,h)||7)<6},toJD:function(u,d,h){var p=this._validate(u,d,h,l.local.invalidDate);return(u=p.year())<0&&u++,p.day()+30*(p.month()-1)+365*(u-1)+Math.floor(u/4)+this.jdEpoch-1},fromJD:function(u){var d=Math.floor(u)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(u)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,m=d-30*(p-1)+1;return this.newDate(h,p,m)}}),l.calendars.ethiopian=s},99384:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}function u(d,h){return d-h*Math.floor(d/h)}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this._leapYear(h.year())},_leapYear:function(d){return u(7*(d=d<0?d+1:d)+1,19)<7},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),this._leapYear(d.year?d.year():d)?13:12},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){return d=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear).year(),this.toJD(d===-1?1:d+1,7,1)-this.toJD(d,7,1)},daysInMonth:function(d,h){return d.year&&(h=d.month(),d=d.year()),this._validate(d,h,this.minDay,l.local.invalidMonth),h===12&&this.leapYear(d)||h===8&&u(this.daysInYear(d),10)===5?30:h===9&&u(this.daysInYear(d),10)===3?29:this.daysPerMonth[h-1]},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==6},extraInfo:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return{yearType:(this.leapYear(m)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(m)%10-3]}},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);d=m.year(),h=m.month(),p=m.day();var y=d<=0?d+1:d,v=this.jdEpoch+this._delay1(y)+this._delay2(y)+p+1;if(h<7){for(var g=7;g<=this.monthsInYear(d);g++)v+=this.daysInMonth(d,g);for(g=1;g=this.toJD(h===-1?1:h+1,7,1);)h++;for(var p=dthis.toJD(h,p,this.daysInMonth(h,p));)p++;var m=d-this.toJD(h,p,1)+1;return this.newDate(h,p,m)}}),l.calendars.hebrew=s},43805:function(o,a,n){var l=n(63489),f=n(56131);function s(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(u){return(11*this._validate(u,this.minMonth,this.minDay,l.local.invalidYear).year()+14)%30<11},weekOfYear:function(u,d,h){var p=this.newDate(u,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(u){return this.leapYear(u)?355:354},daysInMonth:function(u,d){var h=this._validate(u,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(u,d,h){return this.dayOfWeek(u,d,h)!==5},toJD:function(u,d,h){var p=this._validate(u,d,h,l.local.invalidDate);return u=p.year(),d=p.month(),u=u<=0?u+1:u,(h=p.day())+Math.ceil(29.5*(d-1))+354*(u-1)+Math.floor((3+11*u)/30)+this.jdEpoch-1},fromJD:function(u){u=Math.floor(u)+.5;var d=Math.floor((30*(u-this.jdEpoch)+10646)/10631);d=d<=0?d-1:d;var h=Math.min(12,Math.ceil((u-29-this.toJD(d,1,1))/29.5)+1),p=u-this.toJD(d,h,1)+1;return this.newDate(d,h,p)}}),l.calendars.islamic=s},88874:function(o,a,n){var l=n(63489),f=n(56131);function s(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var d=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear);return(u=d.year()<0?d.year()+1:d.year())%4==0},weekOfYear:function(u,d,h){var p=this.newDate(u,d,h);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(u,d){var h=this._validate(u,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(u,d,h){return(this.dayOfWeek(u,d,h)||7)<6},toJD:function(u,d,h){var p=this._validate(u,d,h,l.local.invalidDate);return u=p.year(),d=p.month(),h=p.day(),u<0&&u++,d<=2&&(u--,d+=12),Math.floor(365.25*(u+4716))+Math.floor(30.6001*(d+1))+h-1524.5},fromJD:function(u){var d=Math.floor(u+.5)+1524,h=Math.floor((d-122.1)/365.25),p=Math.floor(365.25*h),m=Math.floor((d-p)/30.6001),y=m-Math.floor(m<14?1:13),v=h-Math.floor(y>2?4716:4715),g=d-p-Math.floor(30.6001*m);return v<=0&&v--,this.newDate(v,y,g)}}),l.calendars.julian=s},83290:function(o,a,n){var l=n(63489),f=n(56131);function s(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}function u(h,p){return h-p*Math.floor(h/p)}function d(h,p){return u(h-1,p)+1}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),!1},formatYear:function(h){h=this._validate(h,this.minMonth,this.minDay,l.local.invalidYear).year();var p=Math.floor(h/400);return h%=400,h+=h<0?400:0,p+"."+Math.floor(h/20)+"."+h%20},forYear:function(h){if((h=h.split(".")).length<3)throw"Invalid Mayan year";for(var p=0,m=0;m19||m>0&&y<0)throw"Invalid Mayan year";p=20*p+y}return p},monthsInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),18},weekOfYear:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate),0},daysInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),360},daysInMonth:function(h,p){return this._validate(h,p,this.minDay,l.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate).day()},weekDay:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate),!0},extraInfo:function(h,p,m){var y=this._validate(h,p,m,l.local.invalidDate).toJD(),v=this._toHaab(y),g=this._toTzolkin(y);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[g[0]-1],tzolkinDay:g[0],tzolkinTrecena:g[1]}},_toHaab:function(h){var p=u(8+(h-=this.jdEpoch)+340,365);return[Math.floor(p/20)+1,u(p,20)]},_toTzolkin:function(h){return[d(20+(h-=this.jdEpoch),20),d(h+4,13)]},toJD:function(h,p,m){var y=this._validate(h,p,m,l.local.invalidDate);return y.day()+20*y.month()+360*y.year()+this.jdEpoch},fromJD:function(h){h=Math.floor(h)+.5-this.jdEpoch;var p=Math.floor(h/360);h%=360,h+=h<0?360:0;var m=Math.floor(h/20),y=h%20;return this.newDate(p,m,y)}}),l.calendars.mayan=s},29108:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar;var u=l.instance("gregorian");f(s.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return u.leapYear(h.year()+(h.year()<1?1:0)+1469)},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(1-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidMonth);(d=m.year())<0&&d++;for(var y=m.day(),v=1;v=this.toJD(h+1,1,1);)h++;for(var p=d-Math.floor(this.toJD(h,1,1)+.5)+1,m=1;p>this.daysInMonth(h,m);)p-=this.daysInMonth(h,m),m++;return this.newDate(h,m,p)}}),l.calendars.nanakshahi=s},55422:function(o,a,n){var l=n(63489),f=n(56131);function s(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(u){return this.daysInYear(u)!==this.daysPerYear},weekOfYear:function(u,d,h){var p=this.newDate(u,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(u){if(u=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[u]===void 0)return this.daysPerYear;for(var d=0,h=this.minMonth;h<=12;h++)d+=this.NEPALI_CALENDAR_DATA[u][h];return d},daysInMonth:function(u,d){return u.year&&(d=u.month(),u=u.year()),this._validate(u,d,this.minDay,l.local.invalidMonth),this.NEPALI_CALENDAR_DATA[u]===void 0?this.daysPerMonth[d-1]:this.NEPALI_CALENDAR_DATA[u][d]},weekDay:function(u,d,h){return this.dayOfWeek(u,d,h)!==6},toJD:function(u,d,h){var p=this._validate(u,d,h,l.local.invalidDate);u=p.year(),d=p.month(),h=p.day();var m=l.instance(),y=0,v=d,g=u;this._createMissingCalendarData(u);var b=u-(v>9||v===9&&h>=this.NEPALI_CALENDAR_DATA[g][0]?56:57);for(d!==9&&(y=h,v--);v!==9;)v<=0&&(v=12,g--),y+=this.NEPALI_CALENDAR_DATA[g][v],v--;return d===9?(y+=h-this.NEPALI_CALENDAR_DATA[g][0])<0&&(y+=m.daysInYear(b)):y+=this.NEPALI_CALENDAR_DATA[g][9]-this.NEPALI_CALENDAR_DATA[g][0],m.newDate(b,1,1).add(y,"d").toJD()},fromJD:function(u){var d=l.instance().fromJD(u),h=d.year(),p=d.dayOfYear(),m=h+56;this._createMissingCalendarData(m);for(var y=9,v=this.NEPALI_CALENDAR_DATA[m][0],g=this.NEPALI_CALENDAR_DATA[m][y]-v+1;p>g;)++y>12&&(y=1,m++),g+=this.NEPALI_CALENDAR_DATA[m][y];var b=this.NEPALI_CALENDAR_DATA[m][y]-(g-p);return this.newDate(m,y,b)},_createMissingCalendarData:function(u){var d=this.daysPerMonth.slice(0);d.unshift(17);for(var h=u-1;h0?474:473))%2820+474+38)%2816<682},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-(m.dayOfWeek()+1)%7,"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);d=m.year(),h=m.month(),p=m.day();var y=d-(d>=0?474:473),v=474+u(y,2820);return p+(h<=7?31*(h-1):30*(h-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(y/2820)+this.jdEpoch-1},fromJD:function(d){var h=(d=Math.floor(d)+.5)-this.toJD(475,1,1),p=Math.floor(h/1029983),m=u(h,1029983),y=2820;if(m!==1029982){var v=Math.floor(m/366),g=u(m,366);y=Math.floor((2134*v+2816*g+2815)/1028522)+v+1}var b=y+2820*p+474;b=b<=0?b-1:b;var x=d-this.toJD(b,1,1)+1,_=x<=186?Math.ceil(x/31):Math.ceil((x-6)/30),w=d-this.toJD(b,_,1)+1;return this.newDate(b,_,w)}}),l.calendars.persian=s,l.calendars.jalali=s},31320:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function u(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,f(u.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),s.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(m.year()),s.toJD(d,m.month(),m.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)},_g2tYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)}}),l.calendars.taiwan=u},51367:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function u(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,f(u.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),s.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(m.year()),s.toJD(d,m.month(),m.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)},_g2tYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)}}),l.calendars.thai=u},21457:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this.daysInYear(h.year())===355},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){for(var h=0,p=1;p<=12;p++)h+=this.daysInMonth(d,p);return h},daysInMonth:function(d,h){for(var p=this._validate(d,h,this.minDay,l.local.invalidMonth).toJD()-24e5+.5,m=0,y=0;yp)return u[m]-u[m-1];m++}return 30},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate),y=12*(m.year()-1)+m.month()-15292;return m.day()+u[y-1]-1+24e5-.5},fromJD:function(d){for(var h=d-24e5+.5,p=0,m=0;mh);m++)p++;var y=p+15292,v=Math.floor((y-1)/12),g=v+1,b=y-12*v,x=h-u[p-1]+1;return this.newDate(g,b,x)},isValid:function(d,h,p){var m=l.baseCalendar.prototype.isValid.apply(this,arguments);return m&&(m=(d=d.year!=null?d.year:d)>=1276&&d<=1500),m},_validate:function(d,h,p,m){var y=l.baseCalendar.prototype._validate.apply(this,arguments);if(y.year<1276||y.year>1500)throw m.replace(/\{0\}/,this.local.name);return y}}),l.calendars.ummalqura=s;var u=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(o,a,n){var l=n(56131);function f(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function s(m,y,v,g){if(this._calendar=m,this._year=y,this._month=v,this._day=g,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function u(m,y){return"000000".substring(0,y-(m=""+m).length)+m}function d(){this.shortYearCutoff="+10"}function h(m){this.local=this.regionalOptions[m]||this.regionalOptions[""]}l(f.prototype,{instance:function(m,y){m=(m||"gregorian").toLowerCase(),y=y||"";var v=this._localCals[m+"-"+y];if(!v&&this.calendars[m]&&(v=new this.calendars[m](y),this._localCals[m+"-"+y]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,m);return v},newDate:function(m,y,v,g,b){return(g=(m!=null&&m.year?m.calendar():typeof g=="string"?this.instance(g,b):g)||this.instance()).newDate(m,y,v)},substituteDigits:function(m){return function(y){return(y+"").replace(/[0-9]/g,function(v){return m[v]})}},substituteChineseDigits:function(m,y){return function(v){for(var g="",b=0;v>0;){var x=v%10;g=(x===0?"":m[x]+y[b])+g,b++,v=Math.floor(v/10)}return g.indexOf(m[1]+y[1])===0&&(g=g.substr(1)),g||m[0]}}}),l(s.prototype,{newDate:function(m,y,v){return this._calendar.newDate(m??this,y,v)},year:function(m){return arguments.length===0?this._year:this.set(m,"y")},month:function(m){return arguments.length===0?this._month:this.set(m,"m")},day:function(m){return arguments.length===0?this._day:this.set(m,"d")},date:function(m,y,v){if(!this._calendar.isValid(m,y,v))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=m,this._month=y,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(m,y){return this._calendar.add(this,m,y)},set:function(m,y){return this._calendar.set(this,m,y)},compareTo:function(m){if(this._calendar.name!==m._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,m._calendar.local.name);var y=this._year!==m._year?this._year-m._year:this._month!==m._month?this.monthOfYear()-m.monthOfYear():this._day-m._day;return y===0?0:y<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(m){return this._calendar.fromJD(m)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(m){return this._calendar.fromJSDate(m)},toString:function(){return(this.year()<0?"-":"")+u(Math.abs(this.year()),4)+"-"+u(this.month(),2)+"-"+u(this.day(),2)}}),l(d.prototype,{_validateLevel:0,newDate:function(m,y,v){return m==null?this.today():(m.year&&(this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),v=m.day(),y=m.month(),m=m.year()),new s(this,m,y,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(m){return this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(y.year()<0?"-":"")+u(Math.abs(y.year()),4)},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(m,y){var v=this._validate(m,y,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(m,y){var v=(y+this.firstMonth-2*this.minMonth)%this.monthsInYear(m)+this.minMonth;return this._validate(m,v,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),v},daysInYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(y)?366:365},dayOfYear:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return g.toJD()-this.newDate(g.year(),this.fromMonthOfYear(g.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(g))+2)%this.daysInWeek()},extraInfo:function(m,y,v){return this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(m,y,v){return this._validate(m,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(m,this._add(m,y,v),y,v)},_add:function(m,y,v){if(this._validateLevel++,v==="d"||v==="w"){var g=m.toJD()+y*(v==="w"?this.daysInWeek():1),b=m.calendar().fromJD(g);return this._validateLevel--,[b.year(),b.month(),b.day()]}try{var x=m.year()+(v==="y"?y:0),_=m.monthOfYear()+(v==="m"?y:0);b=m.day(),v==="y"?(m.month()!==this.fromMonthOfYear(x,_)&&(_=this.newDate(x,m.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(x)),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_)))):v==="m"&&(function(k){for(;_T-1+k.minMonth;)x++,_-=T,T=k.monthsInYear(x)}(this),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_))));var w=[x,this.fromMonthOfYear(x,_),b];return this._validateLevel--,w}catch(k){throw this._validateLevel--,k}},_correctAdd:function(m,y,v,g){if(!(this.hasYearZero||g!=="y"&&g!=="m"||y[0]!==0&&m.year()>0==y[0]>0)){var b={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[g],x=v<0?-1:1;y=this._add(m,v*b[0]+x*b[1],b[2])}return m.date(y[0],y[1],y[2])},set:function(m,y,v){this._validate(m,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var g=v==="y"?y:m.year(),b=v==="m"?y:m.month(),x=v==="d"?y:m.day();return v!=="y"&&v!=="m"||(x=Math.min(x,this.daysInMonth(g,b))),m.date(g,b,x)},isValid:function(m,y,v){this._validateLevel++;var g=this.hasYearZero||m!==0;if(g){var b=this.newDate(m,y,this.minDay);g=y>=this.minMonth&&y-this.minMonth=this.minDay&&v-this.minDay13.5?13:1),T=b-(k>2.5?4716:4715);return T<=0&&T--,this.newDate(T,k,w)},toJSDate:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),b=new Date(g.year(),g.month()-1,g.day());return b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b.setHours(b.getHours()>12?b.getHours()+2:0),b},fromJSDate:function(m){return this.newDate(m.getFullYear(),m.getMonth()+1,m.getDate())}});var p=o.exports=new f;p.cdate=s,p.baseCalendar=d,p.calendars.gregorian=h},94338:function(o,a,n){var l=n(56131),f=n(63489);l(f.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),f.local=f.regionalOptions[""],l(f.cdate.prototype,{formatDate:function(s,u){return typeof s!="string"&&(u=s,s=""),this._calendar.formatDate(s||"",this,u)}}),l(f.baseCalendar.prototype,{UNIX_EPOCH:f.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:f.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(s,u,d){if(typeof s!="string"&&(d=u,u=s,s=""),!u)return"";if(u.calendar()!==this)throw f.local.invalidFormat||f.regionalOptions[""].invalidFormat;s=s||this.local.dateFormat;for(var h,p,m,y=(d=d||{}).dayNamesShort||this.local.dayNamesShort,v=d.dayNames||this.local.dayNames,g=d.monthNumbers||this.local.monthNumbers,b=d.monthNamesShort||this.local.monthNamesShort,x=d.monthNames||this.local.monthNames,_=(d.calculateWeek||this.local.calculateWeek,function(R,F){for(var A=1;O+A1}),w=function(R,F,A,z){var B=""+F;if(_(R,z))for(;B.length1},P=function(N,E){var W=C(N,E),G=[2,3,W?4:2,W?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+G+"}"),q=u.substring(z).match(L);if(!q)throw(f.local.missingNumberAt||f.regionalOptions[""].missingNumberAt).replace(/\{0\}/,z);return z+=q[0].length,parseInt(q[0],10)},D=this,O=function(){if(typeof v=="function"){C("m");var N=v.call(D,u.substring(z));return z+=N.length,N}return P("m")},R=function(N,E,W,G){for(var L=C(N,G)?W:E,q=0;q-1){w=1,k=T;for(var j=this.daysInMonth(_,w);k>j;j=this.daysInMonth(_,w))w++,k-=j}return x>-1?this.fromJD(x):this.newDate(_,w,k)},determineDate:function(s,u,d,h,p){d&&typeof d!="object"&&(p=h,h=d,d=null),typeof h!="string"&&(p=h,h="");var m=this;return u=u?u.newDate():null,s==null?u:typeof s=="string"?function(y){try{return m.parseDate(h,y,p)}catch{}for(var v=((y=y.toLowerCase()).match(/^c/)&&d?d.newDate():null)||m.today(),g=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,b=g.exec(y);b;)v.add(parseInt(b[1],10),b[2]||"d"),b=g.exec(y);return v}(s):typeof s=="number"?isNaN(s)||s===1/0||s===-1/0?u:m.today().add(s,"d"):m.newDate(s)}})},69862:function(){},40964:function(){},72077:function(o,a,n){var l=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],f=typeof globalThis>"u"?n.g:globalThis;o.exports=function(){for(var s=[],u=0;u"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(_){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},y(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],g=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],b=typeof window<"u";function x(_){var w=function(k){s(M,k);var T=d(M);function M(S){var C;return n(this,M),C=T.call(this,S),C.p=Promise.resolve(),C.resizeHandler=null,C.handlers={},C.syncWindowResize=C.syncWindowResize.bind(p(C)),C.syncEventHandlers=C.syncEventHandlers.bind(p(C)),C.attachUpdateEvents=C.attachUpdateEvents.bind(p(C)),C.getRef=C.getRef.bind(p(C)),C.handleUpdate=C.handleUpdate.bind(p(C)),C.figureCallback=C.figureCallback.bind(p(C)),C.updatePlotly=C.updatePlotly.bind(p(C)),C}return f(M,[{key:"updatePlotly",value:function(C,P,D){var O=this;this.p=this.p.then(function(){if(!O.unmounting){if(!O.el)throw new Error("Missing element reference");return _.react(O.el,{data:O.props.data,layout:O.props.layout,config:O.props.config,frames:O.props.frames})}}).then(function(){O.unmounting||(O.syncWindowResize(C),O.syncEventHandlers(),O.figureCallback(P),D&&O.attachUpdateEvents())}).catch(function(R){O.props.onError&&O.props.onError(R)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(C){this.unmounting=!1;var P=C.frames&&C.frames.length?C.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,O=!(C.layout===this.props.layout&&C.data===this.props.data&&C.config===this.props.config&&D===P),R=C.revision!==void 0,F=C.revision!==this.props.revision;!O&&(!R||R&&!F)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&b&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(P){C.el.on(P,C.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(P){C.el.removeListener(P,C.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(C){if(typeof C=="function"){var P=this.el,D=P.data,O=P.layout,R=this.el._transitionData?this.el._transitionData._frames:null,F={data:D,layout:O,frames:R};C(F,this.el)}}},{key:"syncWindowResize",value:function(C){var P=this;b&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(P.el)},window.addEventListener("resize",this.resizeHandler),C&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(C){this.el=C,this.props.debug&&b&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var C=this;v.forEach(function(P){var D=C.props["on"+P],O=C.handlers[P],R=!!O;D&&!R?C.addEventHandler(P,D):!D&&R?C.removeEventHandler(P):D&&R&&D!==O&&(C.removeEventHandler(P),C.addEventHandler(P,D))})}},{key:"addEventHandler",value:function(C,P){this.handlers[C]=P,this.el.on(this.getPlotlyEventName(C),this.handlers[C])}},{key:"removeEventHandler",value:function(C){this.el.removeListener(this.getPlotlyEventName(C),this.handlers[C]),delete this.handlers[C]}},{key:"getPlotlyEventName",value:function(C){return"plotly_"+C.toLowerCase()}},{key:"render",value:function(){return r.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),M}(r.Component);return w.propTypes={data:i.default.arrayOf(i.default.object),config:i.default.object,layout:i.default.object,frames:i.default.arrayOf(i.default.object),revision:i.default.number,onInitialized:i.default.func,onPurge:i.default.func,onError:i.default.func,onUpdate:i.default.func,debug:i.default.bool,style:i.default.object,className:i.default.string,useResizeHandler:i.default.bool,divId:i.default.string},v.forEach(function(k){w.propTypes["on"+k]=i.default.func}),w.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},w}})(cS);const cE=ir(cS),fS=cE(uE),Ad=e=>{var o;const t=lS(),r=e.data.some(({type:a})=>a==="histogram"),c=(t==null?void 0:t.isXaxisAsCategorical)&&!r?{type:"category",categoryorder:"category ascending"}:{};return je.jsx("div",{children:je.jsx(fS,{data:e.data,layout:{...e.layout,title:void 0,xaxis:{...(o=e.layout)==null?void 0:o.xaxis,...c}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}})})};class dS extends et.Component{render(){return je.jsx(Jn,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}const hS=()=>je.jsx("div",{children:"Not implemented"}),fE=e=>{const t=e.activeTab===-1?0:e.activeTab;return je.jsxs("div",{children:[je.jsx(eS,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map((r,i)=>je.jsx(S0,{disabled:r.disabled??!1,label:je.jsx(Qr,{className:e.tabStyle,children:je.jsxs(Qr,{display:"flex",sx:{fontSize:"0.875rem"},children:[je.jsx("span",{children:r.icon}),r.title]})})},i))}),je.jsx(Qr,{children:e.tabs.map((r,i)=>je.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==i,children:(e.activeTab===-1?0:e.activeTab)!==i?je.jsx("div",{}):r.tab},i))})]})},vy=e=>{const[t,r]=$e.useState({activeTab:0});return je.jsx(et.Fragment,{children:je.jsx(fE,{activeTab:t.activeTab,onNewTabSelected:(i,c)=>r(o=>({...o,activeTab:c})),tabs:e.tabs})})},dE=e=>je.jsx(vy,{tabs:e.graphs.map(t=>({title:t.title,tab:je.jsx(Ad,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),hE=e=>je.jsx(r9,{children:je.jsxs(tS,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[je.jsx(nS,{children:je.jsxs(Af,{children:[je.jsx(Hi,{children:e.header[0]},-1),e.header.slice(1).map((t,r)=>je.jsx(Hi,{align:"right",children:t},r))]})}),je.jsx(rS,{children:e.data.map(t=>je.jsxs(Af,{children:[je.jsx(Hi,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map((r,i)=>je.jsx(Hi,{align:"right",children:r},i))]},t[0]))})]})});var pS={},sg={exports:{}},U2;function hr(){return U2||(U2=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var i=1;i{let t;const r=new Set,i=(l,f)=>{const s=typeof l=="function"?l(t):l;if(!Object.is(s,t)){const u=t;t=f??typeof s!="object"?s:Object.assign({},t,s),r.forEach(d=>d(t,u))}},c=()=>t,n={setState:i,getState:c,subscribe:l=>(r.add(l),()=>r.delete(l)),destroy:()=>{(vE?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(i,c,n),n},vS=e=>e?Z2(e):Z2;var yS={exports:{}},bS={},xS={exports:{}},wS={};/** +`)):H=j.stylize("[Circular]","special")),M(q)){if(L&&G.match(/^\d+$/))return H;(q=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=j.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=j.stylize(q,"string"))}return q+": "+H}function x(j){return Array.isArray(j)}function _(j){return typeof j=="boolean"}function w(j){return j===null}function k(j){return typeof j=="number"}function T(j){return typeof j=="string"}function M(j){return j===void 0}function S(j){return C(j)&&R(j)==="[object RegExp]"}function C(j){return typeof j=="object"&&j!==null}function P(j){return C(j)&&R(j)==="[object Date]"}function D(j){return C(j)&&(R(j)==="[object Error]"||j instanceof Error)}function O(j){return typeof j=="function"}function R(j){return Object.prototype.toString.call(j)}function F(j){return j<10?"0"+j.toString(10):j.toString(10)}a.debuglog=function(j){if(j=j.toUpperCase(),!c[j])if(d.test(j)){var N=l.pid;c[j]=function(){var E=a.format.apply(a,arguments);console.error("%s %d: %s",j,N,E)}}else c[j]=function(){};return c[j]},a.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},a.types=n(4936),a.isArray=x,a.isBoolean=_,a.isNull=w,a.isNullOrUndefined=function(j){return j==null},a.isNumber=k,a.isString=T,a.isSymbol=function(j){return typeof j=="symbol"},a.isUndefined=M,a.isRegExp=S,a.types.isRegExp=S,a.isObject=C,a.isDate=P,a.types.isDate=P,a.isError=D,a.types.isNativeError=D,a.isFunction=O,a.isPrimitive=function(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||j===void 0},a.isBuffer=n(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(j,N){return Object.prototype.hasOwnProperty.call(j,N)}a.log=function(){var j,N;console.log("%s - %s",(N=[F((j=new Date).getHours()),F(j.getMinutes()),F(j.getSeconds())].join(":"),[j.getDate(),A[j.getMonth()],N].join(" ")),a.format.apply(a,arguments))},a.inherits=n(42018),a._extend=function(j,N){if(!N||!C(N))return j;for(var E=Object.keys(N),W=E.length;W--;)j[E[W]]=N[E[W]];return j};var B=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function $(j,N){if(!j){var E=new Error("Promise was rejected with a falsy value");E.reason=j,j=E}return N(j)}a.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(B&&j[B]){var N;if(typeof(N=j[B])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,B,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var E,W,G=new Promise(function(H,V){E=H,W=V}),L=[],q=0;q"u"?n.g:globalThis,m=f(),y=s("String.prototype.slice"),v={},g=Object.getPrototypeOf;h&&c&&g&&l(m,function(x){if(typeof p[x]=="function"){var _=new p[x];if(Symbol.toStringTag in _){var w=g(_),k=c(w,Symbol.toStringTag);if(!k){var T=g(w);k=c(T,Symbol.toStringTag)}v[x]=k.get}}});var b=n(9187);o.exports=function(x){return!!b(x)&&(h&&Symbol.toStringTag in x?function(_){var w=!1;return l(v,function(k,T){if(!w)try{var M=k.call(_);M===T&&(w=M)}catch{}}),w}(x):y(d(x),8,-1))}},3961:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function c(g){this.local=this.regionalOptions[g||""]||this.regionalOptions[""]}c.prototype=new l.baseCalendar,f(c.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(g,b){if(typeof g=="string"){var x=g.match(h);return x?x[0]:""}var _=this._validateYear(g),w=g.month(),k=""+this.toChineseMonth(_,w);return b&&k.length<2&&(k="0"+k),this.isIntercalaryMonth(_,w)&&(k+="i"),k},monthNames:function(g){if(typeof g=="string"){var b=g.match(p);return b?b[0]:""}var x=this._validateYear(g),_=g.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},monthNamesShort:function(g){if(typeof g=="string"){var b=g.match(m);return b?b[0]:""}var x=this._validateYear(g),_=g.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},parseMonth:function(g,b){g=this._validateYear(g);var x,_=parseInt(b);if(isNaN(_))b[0]==="闰"&&(x=!0,b=b.substring(1)),b[b.length-1]==="月"&&(b=b.substring(0,b.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(b);else{var w=b[b.length-1];x=w==="i"||w==="I"}return this.toMonthIndex(g,_,x)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(g,b){if(g.year&&(g=g.year()),typeof g!="number"||g<1888||g>2111)throw b.replace(/\{0\}/,this.local.name);return g},toMonthIndex:function(g,b,x){var _=this.intercalaryMonth(g);if(x&&b!==_||b<1||b>12)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!x&&b<=_?b-1:b:b-1},toChineseMonth:function(g,b){g.year&&(b=(g=g.year()).month());var x=this.intercalaryMonth(g);if(b<0||b>(x?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x?b>13},isIntercalaryMonth:function(g,b){g.year&&(b=(g=g.year()).month());var x=this.intercalaryMonth(g);return!!x&&x===b},leapYear:function(g){return this.intercalaryMonth(g)!==0},weekOfYear:function(g,b,x){var _,w=this._validateYear(g,l.local.invalidyear),k=v[w-v[0]],T=k>>9&4095,M=k>>5&15,S=31&k;(_=s.newDate(T,M,S)).add(4-(_.dayOfWeek()||7),"d");var C=this.toJD(g,b,x)-_.toJD();return 1+Math.floor(C/7)},monthsInYear:function(g){return this.leapYear(g)?13:12},daysInMonth:function(g,b){g.year&&(b=g.month(),g=g.year()),g=this._validateYear(g);var x=y[g-y[0]];if(b>(x>>13?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x&1<<12-b?30:29},weekDay:function(g,b,x){return(this.dayOfWeek(g,b,x)||7)<6},toJD:function(g,b,x){var _=this._validate(g,k,x,l.local.invalidDate);g=this._validateYear(_.year()),b=_.month(),x=_.day();var w=this.isIntercalaryMonth(g,b),k=this.toChineseMonth(g,b),T=function(M,S,C,P,D){var O,R,F;if(typeof M=="object")R=M,O=S||{};else{var A;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof S=="number"&&S>=1&&S<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof C=="number"&&C>=1&&C<=30))throw new Error("Lunar day outside range 1 - 30");typeof P=="object"?(A=!1,O=P):(A=!!P,O={}),R={year:M,month:S,day:C,isIntercalary:A}}F=R.day-1;var z,B=y[R.year-y[0]],$=B>>13;z=$&&(R.month>$||R.isIntercalary)?R.month:R.month-1;for(var j=0;j>9&4095,(N>>5&15)-1,(31&N)+F);return O.year=E.getFullYear(),O.month=1+E.getMonth(),O.day=E.getDate(),O}(g,k,x,w);return s.toJD(T.year,T.month,T.day)},fromJD:function(g){var b=s.fromJD(g),x=function(w,k,T,M){var S,C;if(typeof w=="object")S=w,C=k||{};else{if(!(typeof w=="number"&&w>=1888&&w<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof k=="number"&&k>=1&&k<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof T=="number"&&T>=1&&T<=31))throw new Error("Solar day outside range 1 - 31");S={year:w,month:k,day:T},C={}}var P=v[S.year-v[0]],D=S.year<<9|S.month<<5|S.day;C.year=D>=P?S.year:S.year-1,P=v[C.year-v[0]];var O,R=new Date(P>>9&4095,(P>>5&15)-1,31&P),F=new Date(S.year,S.month-1,S.day);O=Math.round((F-R)/864e5);var A,z=y[C.year-y[0]];for(A=0;A<13;A++){var B=z&1<<12-A?30:29;if(O>13;return!$||A<$?(C.isIntercalary=!1,C.month=1+A):A===$?(C.isIntercalary=!0,C.month=A):(C.isIntercalary=!1,C.month=A),C.day=1+O,C}(b.year(),b.month(),b.day()),_=this.toMonthIndex(x.year,x.month,x.isIntercalary);return this.newDate(x.year,_,x.day)},fromString:function(g){var b=g.match(d),x=this._validateYear(+b[1]),_=+b[2],w=!!b[3],k=this.toMonthIndex(x,_,w),T=+b[4];return this.newDate(x,k,T)},add:function(g,b,x){var _=g.year(),w=g.month(),k=this.isIntercalaryMonth(_,w),T=this.toChineseMonth(_,w),M=Object.getPrototypeOf(c.prototype).add.call(this,g,b,x);if(x==="y"){var S=M.year(),C=M.month(),P=this.isIntercalaryMonth(S,T),D=k&&P?this.toMonthIndex(S,T,!0):this.toMonthIndex(S,T,!1);D!==C&&M.month(D)}return M}});var d=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,h=/^\d?\d[iI]?/m,p=/^闰?十?[一二三四五六七八九]?月/m,m=/^闰?十?[一二三四五六七八九]?/m;l.calendars.chinese=c;var y=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],v=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},38751:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var d=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear);return(c=d.year()+(d.year()<0?1:0))%4==3||c%4==-1},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return(this.dayOfWeek(c,d,h)||7)<6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return(c=p.year())<0&&c++,p.day()+30*(p.month()-1)+365*(c-1)+Math.floor(c/4)+this.jdEpoch-1},fromJD:function(c){var d=Math.floor(c)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(c)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,m=d-30*(p-1)+1;return this.newDate(h,p,m)}}),l.calendars.coptic=s},86825:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),!1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),13},daysInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),400},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/8)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(d,h,p){return(this._validate(d,h,p,l.local.invalidDate).day()+1)%8},weekDay:function(d,h,p){var m=this.dayOfWeek(d,h,p);return m>=2&&m<=6},extraInfo:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return{century:c[Math.floor((m.year()-1)/100)+1]||""}},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=m.year()+(m.year()<0?1:0),h=m.month(),(p=m.day())+(h>1?16:0)+(h>2?32*(h-2):0)+400*(d-1)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d+.5)-Math.floor(this.jdEpoch)-1;var h=Math.floor(d/400)+1;d-=400*(h-1),d+=d>15?16:0;var p=Math.floor(d/32)+1,m=d-32*(p-1)+1;return this.newDate(h<=0?h-1:h,p,m)}});var c={20:"Fruitbat",21:"Anchovy"};l.calendars.discworld=s},37715:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var d=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear);return(c=d.year()+(d.year()<0?1:0))%4==3||c%4==-1},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return(this.dayOfWeek(c,d,h)||7)<6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return(c=p.year())<0&&c++,p.day()+30*(p.month()-1)+365*(c-1)+Math.floor(c/4)+this.jdEpoch-1},fromJD:function(c){var d=Math.floor(c)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(c)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,m=d-30*(p-1)+1;return this.newDate(h,p,m)}}),l.calendars.ethiopian=s},99384:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}function c(d,h){return d-h*Math.floor(d/h)}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this._leapYear(h.year())},_leapYear:function(d){return c(7*(d=d<0?d+1:d)+1,19)<7},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),this._leapYear(d.year?d.year():d)?13:12},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){return d=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear).year(),this.toJD(d===-1?1:d+1,7,1)-this.toJD(d,7,1)},daysInMonth:function(d,h){return d.year&&(h=d.month(),d=d.year()),this._validate(d,h,this.minDay,l.local.invalidMonth),h===12&&this.leapYear(d)||h===8&&c(this.daysInYear(d),10)===5?30:h===9&&c(this.daysInYear(d),10)===3?29:this.daysPerMonth[h-1]},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==6},extraInfo:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return{yearType:(this.leapYear(m)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(m)%10-3]}},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);d=m.year(),h=m.month(),p=m.day();var y=d<=0?d+1:d,v=this.jdEpoch+this._delay1(y)+this._delay2(y)+p+1;if(h<7){for(var g=7;g<=this.monthsInYear(d);g++)v+=this.daysInMonth(d,g);for(g=1;g=this.toJD(h===-1?1:h+1,7,1);)h++;for(var p=dthis.toJD(h,p,this.daysInMonth(h,p));)p++;var m=d-this.toJD(h,p,1)+1;return this.newDate(h,p,m)}}),l.calendars.hebrew=s},43805:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(c){return(11*this._validate(c,this.minMonth,this.minDay,l.local.invalidYear).year()+14)%30<11},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(c){return this.leapYear(c)?355:354},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return this.dayOfWeek(c,d,h)!==5},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return c=p.year(),d=p.month(),c=c<=0?c+1:c,(h=p.day())+Math.ceil(29.5*(d-1))+354*(c-1)+Math.floor((3+11*c)/30)+this.jdEpoch-1},fromJD:function(c){c=Math.floor(c)+.5;var d=Math.floor((30*(c-this.jdEpoch)+10646)/10631);d=d<=0?d-1:d;var h=Math.min(12,Math.ceil((c-29-this.toJD(d,1,1))/29.5)+1),p=c-this.toJD(d,h,1)+1;return this.newDate(d,h,p)}}),l.calendars.islamic=s},88874:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var d=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear);return(c=d.year()<0?d.year()+1:d.year())%4==0},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return(this.dayOfWeek(c,d,h)||7)<6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return c=p.year(),d=p.month(),h=p.day(),c<0&&c++,d<=2&&(c--,d+=12),Math.floor(365.25*(c+4716))+Math.floor(30.6001*(d+1))+h-1524.5},fromJD:function(c){var d=Math.floor(c+.5)+1524,h=Math.floor((d-122.1)/365.25),p=Math.floor(365.25*h),m=Math.floor((d-p)/30.6001),y=m-Math.floor(m<14?1:13),v=h-Math.floor(y>2?4716:4715),g=d-p-Math.floor(30.6001*m);return v<=0&&v--,this.newDate(v,y,g)}}),l.calendars.julian=s},83290:function(o,a,n){var l=n(63489),f=n(56131);function s(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}function c(h,p){return h-p*Math.floor(h/p)}function d(h,p){return c(h-1,p)+1}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),!1},formatYear:function(h){h=this._validate(h,this.minMonth,this.minDay,l.local.invalidYear).year();var p=Math.floor(h/400);return h%=400,h+=h<0?400:0,p+"."+Math.floor(h/20)+"."+h%20},forYear:function(h){if((h=h.split(".")).length<3)throw"Invalid Mayan year";for(var p=0,m=0;m19||m>0&&y<0)throw"Invalid Mayan year";p=20*p+y}return p},monthsInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),18},weekOfYear:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate),0},daysInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),360},daysInMonth:function(h,p){return this._validate(h,p,this.minDay,l.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate).day()},weekDay:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate),!0},extraInfo:function(h,p,m){var y=this._validate(h,p,m,l.local.invalidDate).toJD(),v=this._toHaab(y),g=this._toTzolkin(y);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[g[0]-1],tzolkinDay:g[0],tzolkinTrecena:g[1]}},_toHaab:function(h){var p=c(8+(h-=this.jdEpoch)+340,365);return[Math.floor(p/20)+1,c(p,20)]},_toTzolkin:function(h){return[d(20+(h-=this.jdEpoch),20),d(h+4,13)]},toJD:function(h,p,m){var y=this._validate(h,p,m,l.local.invalidDate);return y.day()+20*y.month()+360*y.year()+this.jdEpoch},fromJD:function(h){h=Math.floor(h)+.5-this.jdEpoch;var p=Math.floor(h/360);h%=360,h+=h<0?360:0;var m=Math.floor(h/20),y=h%20;return this.newDate(p,m,y)}}),l.calendars.mayan=s},29108:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar;var c=l.instance("gregorian");f(s.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return c.leapYear(h.year()+(h.year()<1?1:0)+1469)},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(1-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidMonth);(d=m.year())<0&&d++;for(var y=m.day(),v=1;v=this.toJD(h+1,1,1);)h++;for(var p=d-Math.floor(this.toJD(h,1,1)+.5)+1,m=1;p>this.daysInMonth(h,m);)p-=this.daysInMonth(h,m),m++;return this.newDate(h,m,p)}}),l.calendars.nanakshahi=s},55422:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(c){return this.daysInYear(c)!==this.daysPerYear},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(c){if(c=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[c]===void 0)return this.daysPerYear;for(var d=0,h=this.minMonth;h<=12;h++)d+=this.NEPALI_CALENDAR_DATA[c][h];return d},daysInMonth:function(c,d){return c.year&&(d=c.month(),c=c.year()),this._validate(c,d,this.minDay,l.local.invalidMonth),this.NEPALI_CALENDAR_DATA[c]===void 0?this.daysPerMonth[d-1]:this.NEPALI_CALENDAR_DATA[c][d]},weekDay:function(c,d,h){return this.dayOfWeek(c,d,h)!==6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);c=p.year(),d=p.month(),h=p.day();var m=l.instance(),y=0,v=d,g=c;this._createMissingCalendarData(c);var b=c-(v>9||v===9&&h>=this.NEPALI_CALENDAR_DATA[g][0]?56:57);for(d!==9&&(y=h,v--);v!==9;)v<=0&&(v=12,g--),y+=this.NEPALI_CALENDAR_DATA[g][v],v--;return d===9?(y+=h-this.NEPALI_CALENDAR_DATA[g][0])<0&&(y+=m.daysInYear(b)):y+=this.NEPALI_CALENDAR_DATA[g][9]-this.NEPALI_CALENDAR_DATA[g][0],m.newDate(b,1,1).add(y,"d").toJD()},fromJD:function(c){var d=l.instance().fromJD(c),h=d.year(),p=d.dayOfYear(),m=h+56;this._createMissingCalendarData(m);for(var y=9,v=this.NEPALI_CALENDAR_DATA[m][0],g=this.NEPALI_CALENDAR_DATA[m][y]-v+1;p>g;)++y>12&&(y=1,m++),g+=this.NEPALI_CALENDAR_DATA[m][y];var b=this.NEPALI_CALENDAR_DATA[m][y]-(g-p);return this.newDate(m,y,b)},_createMissingCalendarData:function(c){var d=this.daysPerMonth.slice(0);d.unshift(17);for(var h=c-1;h0?474:473))%2820+474+38)%2816<682},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-(m.dayOfWeek()+1)%7,"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);d=m.year(),h=m.month(),p=m.day();var y=d-(d>=0?474:473),v=474+c(y,2820);return p+(h<=7?31*(h-1):30*(h-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(y/2820)+this.jdEpoch-1},fromJD:function(d){var h=(d=Math.floor(d)+.5)-this.toJD(475,1,1),p=Math.floor(h/1029983),m=c(h,1029983),y=2820;if(m!==1029982){var v=Math.floor(m/366),g=c(m,366);y=Math.floor((2134*v+2816*g+2815)/1028522)+v+1}var b=y+2820*p+474;b=b<=0?b-1:b;var x=d-this.toJD(b,1,1)+1,_=x<=186?Math.ceil(x/31):Math.ceil((x-6)/30),w=d-this.toJD(b,_,1)+1;return this.newDate(b,_,w)}}),l.calendars.persian=s,l.calendars.jalali=s},31320:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new l.baseCalendar,f(c.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),s.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(m.year()),s.toJD(d,m.month(),m.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)},_g2tYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)}}),l.calendars.taiwan=c},51367:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new l.baseCalendar,f(c.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),s.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(m.year()),s.toJD(d,m.month(),m.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)},_g2tYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)}}),l.calendars.thai=c},21457:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this.daysInYear(h.year())===355},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){for(var h=0,p=1;p<=12;p++)h+=this.daysInMonth(d,p);return h},daysInMonth:function(d,h){for(var p=this._validate(d,h,this.minDay,l.local.invalidMonth).toJD()-24e5+.5,m=0,y=0;yp)return c[m]-c[m-1];m++}return 30},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate),y=12*(m.year()-1)+m.month()-15292;return m.day()+c[y-1]-1+24e5-.5},fromJD:function(d){for(var h=d-24e5+.5,p=0,m=0;mh);m++)p++;var y=p+15292,v=Math.floor((y-1)/12),g=v+1,b=y-12*v,x=h-c[p-1]+1;return this.newDate(g,b,x)},isValid:function(d,h,p){var m=l.baseCalendar.prototype.isValid.apply(this,arguments);return m&&(m=(d=d.year!=null?d.year:d)>=1276&&d<=1500),m},_validate:function(d,h,p,m){var y=l.baseCalendar.prototype._validate.apply(this,arguments);if(y.year<1276||y.year>1500)throw m.replace(/\{0\}/,this.local.name);return y}}),l.calendars.ummalqura=s;var c=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(o,a,n){var l=n(56131);function f(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function s(m,y,v,g){if(this._calendar=m,this._year=y,this._month=v,this._day=g,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function c(m,y){return"000000".substring(0,y-(m=""+m).length)+m}function d(){this.shortYearCutoff="+10"}function h(m){this.local=this.regionalOptions[m]||this.regionalOptions[""]}l(f.prototype,{instance:function(m,y){m=(m||"gregorian").toLowerCase(),y=y||"";var v=this._localCals[m+"-"+y];if(!v&&this.calendars[m]&&(v=new this.calendars[m](y),this._localCals[m+"-"+y]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,m);return v},newDate:function(m,y,v,g,b){return(g=(m!=null&&m.year?m.calendar():typeof g=="string"?this.instance(g,b):g)||this.instance()).newDate(m,y,v)},substituteDigits:function(m){return function(y){return(y+"").replace(/[0-9]/g,function(v){return m[v]})}},substituteChineseDigits:function(m,y){return function(v){for(var g="",b=0;v>0;){var x=v%10;g=(x===0?"":m[x]+y[b])+g,b++,v=Math.floor(v/10)}return g.indexOf(m[1]+y[1])===0&&(g=g.substr(1)),g||m[0]}}}),l(s.prototype,{newDate:function(m,y,v){return this._calendar.newDate(m??this,y,v)},year:function(m){return arguments.length===0?this._year:this.set(m,"y")},month:function(m){return arguments.length===0?this._month:this.set(m,"m")},day:function(m){return arguments.length===0?this._day:this.set(m,"d")},date:function(m,y,v){if(!this._calendar.isValid(m,y,v))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=m,this._month=y,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(m,y){return this._calendar.add(this,m,y)},set:function(m,y){return this._calendar.set(this,m,y)},compareTo:function(m){if(this._calendar.name!==m._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,m._calendar.local.name);var y=this._year!==m._year?this._year-m._year:this._month!==m._month?this.monthOfYear()-m.monthOfYear():this._day-m._day;return y===0?0:y<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(m){return this._calendar.fromJD(m)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(m){return this._calendar.fromJSDate(m)},toString:function(){return(this.year()<0?"-":"")+c(Math.abs(this.year()),4)+"-"+c(this.month(),2)+"-"+c(this.day(),2)}}),l(d.prototype,{_validateLevel:0,newDate:function(m,y,v){return m==null?this.today():(m.year&&(this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),v=m.day(),y=m.month(),m=m.year()),new s(this,m,y,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(m){return this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(y.year()<0?"-":"")+c(Math.abs(y.year()),4)},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(m,y){var v=this._validate(m,y,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(m,y){var v=(y+this.firstMonth-2*this.minMonth)%this.monthsInYear(m)+this.minMonth;return this._validate(m,v,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),v},daysInYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(y)?366:365},dayOfYear:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return g.toJD()-this.newDate(g.year(),this.fromMonthOfYear(g.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(g))+2)%this.daysInWeek()},extraInfo:function(m,y,v){return this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(m,y,v){return this._validate(m,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(m,this._add(m,y,v),y,v)},_add:function(m,y,v){if(this._validateLevel++,v==="d"||v==="w"){var g=m.toJD()+y*(v==="w"?this.daysInWeek():1),b=m.calendar().fromJD(g);return this._validateLevel--,[b.year(),b.month(),b.day()]}try{var x=m.year()+(v==="y"?y:0),_=m.monthOfYear()+(v==="m"?y:0);b=m.day(),v==="y"?(m.month()!==this.fromMonthOfYear(x,_)&&(_=this.newDate(x,m.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(x)),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_)))):v==="m"&&(function(k){for(;_T-1+k.minMonth;)x++,_-=T,T=k.monthsInYear(x)}(this),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_))));var w=[x,this.fromMonthOfYear(x,_),b];return this._validateLevel--,w}catch(k){throw this._validateLevel--,k}},_correctAdd:function(m,y,v,g){if(!(this.hasYearZero||g!=="y"&&g!=="m"||y[0]!==0&&m.year()>0==y[0]>0)){var b={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[g],x=v<0?-1:1;y=this._add(m,v*b[0]+x*b[1],b[2])}return m.date(y[0],y[1],y[2])},set:function(m,y,v){this._validate(m,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var g=v==="y"?y:m.year(),b=v==="m"?y:m.month(),x=v==="d"?y:m.day();return v!=="y"&&v!=="m"||(x=Math.min(x,this.daysInMonth(g,b))),m.date(g,b,x)},isValid:function(m,y,v){this._validateLevel++;var g=this.hasYearZero||m!==0;if(g){var b=this.newDate(m,y,this.minDay);g=y>=this.minMonth&&y-this.minMonth=this.minDay&&v-this.minDay13.5?13:1),T=b-(k>2.5?4716:4715);return T<=0&&T--,this.newDate(T,k,w)},toJSDate:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),b=new Date(g.year(),g.month()-1,g.day());return b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b.setHours(b.getHours()>12?b.getHours()+2:0),b},fromJSDate:function(m){return this.newDate(m.getFullYear(),m.getMonth()+1,m.getDate())}});var p=o.exports=new f;p.cdate=s,p.baseCalendar=d,p.calendars.gregorian=h},94338:function(o,a,n){var l=n(56131),f=n(63489);l(f.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),f.local=f.regionalOptions[""],l(f.cdate.prototype,{formatDate:function(s,c){return typeof s!="string"&&(c=s,s=""),this._calendar.formatDate(s||"",this,c)}}),l(f.baseCalendar.prototype,{UNIX_EPOCH:f.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:f.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(s,c,d){if(typeof s!="string"&&(d=c,c=s,s=""),!c)return"";if(c.calendar()!==this)throw f.local.invalidFormat||f.regionalOptions[""].invalidFormat;s=s||this.local.dateFormat;for(var h,p,m,y=(d=d||{}).dayNamesShort||this.local.dayNamesShort,v=d.dayNames||this.local.dayNames,g=d.monthNumbers||this.local.monthNumbers,b=d.monthNamesShort||this.local.monthNamesShort,x=d.monthNames||this.local.monthNames,_=(d.calculateWeek||this.local.calculateWeek,function(R,F){for(var A=1;O+A1}),w=function(R,F,A,z){var B=""+F;if(_(R,z))for(;B.length1},P=function(N,E){var W=C(N,E),G=[2,3,W?4:2,W?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+G+"}"),q=c.substring(z).match(L);if(!q)throw(f.local.missingNumberAt||f.regionalOptions[""].missingNumberAt).replace(/\{0\}/,z);return z+=q[0].length,parseInt(q[0],10)},D=this,O=function(){if(typeof v=="function"){C("m");var N=v.call(D,c.substring(z));return z+=N.length,N}return P("m")},R=function(N,E,W,G){for(var L=C(N,G)?W:E,q=0;q-1){w=1,k=T;for(var j=this.daysInMonth(_,w);k>j;j=this.daysInMonth(_,w))w++,k-=j}return x>-1?this.fromJD(x):this.newDate(_,w,k)},determineDate:function(s,c,d,h,p){d&&typeof d!="object"&&(p=h,h=d,d=null),typeof h!="string"&&(p=h,h="");var m=this;return c=c?c.newDate():null,s==null?c:typeof s=="string"?function(y){try{return m.parseDate(h,y,p)}catch{}for(var v=((y=y.toLowerCase()).match(/^c/)&&d?d.newDate():null)||m.today(),g=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,b=g.exec(y);b;)v.add(parseInt(b[1],10),b[2]||"d"),b=g.exec(y);return v}(s):typeof s=="number"?isNaN(s)||s===1/0||s===-1/0?c:m.today().add(s,"d"):m.newDate(s)}})},69862:function(){},40964:function(){},72077:function(o,a,n){var l=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],f=typeof globalThis>"u"?n.g:globalThis;o.exports=function(){for(var s=[],c=0;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(_){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},y(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],g=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],b=typeof window<"u";function x(_){var w=function(k){s(M,k);var T=d(M);function M(S){var C;return n(this,M),C=T.call(this,S),C.p=Promise.resolve(),C.resizeHandler=null,C.handlers={},C.syncWindowResize=C.syncWindowResize.bind(p(C)),C.syncEventHandlers=C.syncEventHandlers.bind(p(C)),C.attachUpdateEvents=C.attachUpdateEvents.bind(p(C)),C.getRef=C.getRef.bind(p(C)),C.handleUpdate=C.handleUpdate.bind(p(C)),C.figureCallback=C.figureCallback.bind(p(C)),C.updatePlotly=C.updatePlotly.bind(p(C)),C}return f(M,[{key:"updatePlotly",value:function(C,P,D){var O=this;this.p=this.p.then(function(){if(!O.unmounting){if(!O.el)throw new Error("Missing element reference");return _.react(O.el,{data:O.props.data,layout:O.props.layout,config:O.props.config,frames:O.props.frames})}}).then(function(){O.unmounting||(O.syncWindowResize(C),O.syncEventHandlers(),O.figureCallback(P),D&&O.attachUpdateEvents())}).catch(function(R){O.props.onError&&O.props.onError(R)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(C){this.unmounting=!1;var P=C.frames&&C.frames.length?C.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,O=!(C.layout===this.props.layout&&C.data===this.props.data&&C.config===this.props.config&&D===P),R=C.revision!==void 0,F=C.revision!==this.props.revision;!O&&(!R||R&&!F)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&b&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(P){C.el.on(P,C.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(P){C.el.removeListener(P,C.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(C){if(typeof C=="function"){var P=this.el,D=P.data,O=P.layout,R=this.el._transitionData?this.el._transitionData._frames:null,F={data:D,layout:O,frames:R};C(F,this.el)}}},{key:"syncWindowResize",value:function(C){var P=this;b&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(P.el)},window.addEventListener("resize",this.resizeHandler),C&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(C){this.el=C,this.props.debug&&b&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var C=this;v.forEach(function(P){var D=C.props["on"+P],O=C.handlers[P],R=!!O;D&&!R?C.addEventHandler(P,D):!D&&R?C.removeEventHandler(P):D&&R&&D!==O&&(C.removeEventHandler(P),C.addEventHandler(P,D))})}},{key:"addEventHandler",value:function(C,P){this.handlers[C]=P,this.el.on(this.getPlotlyEventName(C),this.handlers[C])}},{key:"removeEventHandler",value:function(C){this.el.removeListener(this.getPlotlyEventName(C),this.handlers[C]),delete this.handlers[C]}},{key:"getPlotlyEventName",value:function(C){return"plotly_"+C.toLowerCase()}},{key:"render",value:function(){return r.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),M}(r.Component);return w.propTypes={data:i.default.arrayOf(i.default.object),config:i.default.object,layout:i.default.object,frames:i.default.arrayOf(i.default.object),revision:i.default.number,onInitialized:i.default.func,onPurge:i.default.func,onError:i.default.func,onUpdate:i.default.func,debug:i.default.bool,style:i.default.object,className:i.default.string,useResizeHandler:i.default.bool,divId:i.default.string},v.forEach(function(k){w.propTypes["on"+k]=i.default.func}),w.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},w}})(uS);const oE=ir(uS),cS=oE(iE),Ad=e=>{var o;const t=lS(),r=e.data.some(({type:a})=>a==="histogram"),u=(t==null?void 0:t.isXaxisAsCategorical)&&!r?{type:"category",categoryorder:"category ascending"}:{};return je.jsx("div",{children:je.jsx(cS,{data:e.data,layout:{...e.layout,title:void 0,xaxis:{...(o=e.layout)==null?void 0:o.xaxis,...u}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}})})};var fS={},sg={exports:{}},q2;function hr(){return q2||(q2=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var i=1;i{let t;const r=new Set,i=(l,f)=>{const s=typeof l=="function"?l(t):l;if(!Object.is(s,t)){const c=t;t=f??typeof s!="object"?s:Object.assign({},t,s),r.forEach(d=>d(t,c))}},u=()=>t,n={setState:i,getState:u,subscribe:l=>(r.add(l),()=>r.delete(l)),destroy:()=>{(cE?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(i,u,n),n},pS=e=>e?G2(e):G2;var gS={exports:{}},mS={},vS={exports:{}},yS={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -76,7 +76,7 @@ should equal * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var wl=$e;function yE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bE=typeof Object.is=="function"?Object.is:yE,xE=wl.useState,wE=wl.useEffect,_E=wl.useLayoutEffect,TE=wl.useDebugValue;function kE(e,t){var r=t(),i=xE({inst:{value:r,getSnapshot:t}}),c=i[0].inst,o=i[1];return _E(function(){c.value=r,c.getSnapshot=t,yg(c)&&o({inst:c})},[e,r,t]),wE(function(){return yg(c)&&o({inst:c}),e(function(){yg(c)&&o({inst:c})})},[e]),TE(r),r}function yg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!bE(e,r)}catch{return!0}}function ME(e,t){return t()}var SE=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ME:kE;wS.useSyncExternalStore=wl.useSyncExternalStore!==void 0?wl.useSyncExternalStore:SE;xS.exports=wS;var _S=xS.exports;/** + */var wl=$e;function fE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dE=typeof Object.is=="function"?Object.is:fE,hE=wl.useState,pE=wl.useEffect,gE=wl.useLayoutEffect,mE=wl.useDebugValue;function vE(e,t){var r=t(),i=hE({inst:{value:r,getSnapshot:t}}),u=i[0].inst,o=i[1];return gE(function(){u.value=r,u.getSnapshot=t,yg(u)&&o({inst:u})},[e,r,t]),pE(function(){return yg(u)&&o({inst:u}),e(function(){yg(u)&&o({inst:u})})},[e]),mE(r),r}function yg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!dE(e,r)}catch{return!0}}function yE(e,t){return t()}var bE=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?yE:vE;yS.useSyncExternalStore=wl.useSyncExternalStore!==void 0?wl.useSyncExternalStore:bE;vS.exports=yS;var bS=vS.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -84,11 +84,11 @@ should equal * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Pd=$e,CE=_S;function OE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var AE=typeof Object.is=="function"?Object.is:OE,PE=CE.useSyncExternalStore,DE=Pd.useRef,EE=Pd.useEffect,RE=Pd.useMemo,LE=Pd.useDebugValue;bS.useSyncExternalStoreWithSelector=function(e,t,r,i,c){var o=DE(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=RE(function(){function l(h){if(!f){if(f=!0,s=h,h=i(h),c!==void 0&&a.hasValue){var p=a.value;if(c(p,h))return u=p}return u=h}if(p=u,AE(s,h))return p;var m=i(h);return c!==void 0&&c(p,m)?p:(s=h,u=m)}var f=!1,s,u,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,i,c]);var n=PE(e,o[0],o[1]);return EE(function(){a.hasValue=!0,a.value=n},[n]),LE(n),n};yS.exports=bS;var IE=yS.exports;const FE=ir(IE),{useSyncExternalStoreWithSelector:NE}=FE;function TS(e,t=e.getState,r){const i=NE(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return $e.useDebugValue(i),i}const K2=e=>{const t=typeof e=="function"?vS(e):e,r=(i,c)=>TS(t,i,c);return Object.assign(r,t),r},kS=e=>e?K2(e):K2;var jE=e=>kS(e);const $E=Object.freeze(Object.defineProperty({__proto__:null,create:kS,createStore:vS,default:jE,useStore:TS},Symbol.toStringTag,{value:"Module"})),BE=qn($E);var Nc={exports:{}},bg={exports:{}},J2;function zE(){return J2||(J2=1,function(e,t){(function(r,i){e.exports=i()})(Ma,function(){var r=typeof Promise=="function",i=typeof self=="object"?self:Ma,c=typeof Symbol<"u",o=typeof Map<"u",a=typeof Set<"u",n=typeof WeakMap<"u",l=typeof WeakSet<"u",f=typeof DataView<"u",s=c&&typeof Symbol.iterator<"u",u=c&&typeof Symbol.toStringTag<"u",d=a&&typeof Set.prototype.entries=="function",h=o&&typeof Map.prototype.entries=="function",p=d&&Object.getPrototypeOf(new Set().entries()),m=h&&Object.getPrototypeOf(new Map().entries()),y=s&&typeof Array.prototype[Symbol.iterator]=="function",v=y&&Object.getPrototypeOf([][Symbol.iterator]()),g=s&&typeof String.prototype[Symbol.iterator]=="function",b=g&&Object.getPrototypeOf(""[Symbol.iterator]()),x=8,_=-1;function w(k){var T=typeof k;if(T!=="object")return T;if(k===null)return"null";if(k===i)return"global";if(Array.isArray(k)&&(u===!1||!(Symbol.toStringTag in k)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&k===window.location)return"Location";if(typeof window.document=="object"&&k===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&k===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&k===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&k instanceof window.HTMLElement){if(k.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(k.tagName==="TD")return"HTMLTableDataCellElement";if(k.tagName==="TH")return"HTMLTableHeaderCellElement"}}var M=u&&k[Symbol.toStringTag];if(typeof M=="string")return M;var S=Object.getPrototypeOf(k);return S===RegExp.prototype?"RegExp":S===Date.prototype?"Date":r&&S===Promise.prototype?"Promise":a&&S===Set.prototype?"Set":o&&S===Map.prototype?"Map":l&&S===WeakSet.prototype?"WeakSet":n&&S===WeakMap.prototype?"WeakMap":f&&S===DataView.prototype?"DataView":o&&S===m?"Map Iterator":a&&S===p?"Set Iterator":y&&S===v?"Array Iterator":g&&S===b?"String Iterator":S===null?"Object":Object.prototype.toString.call(k).slice(x,_)}return w})}(bg)),bg.exports}var Q2;function MS(){if(Q2)return Nc.exports;Q2=1;/*! + */var Pd=$e,xE=bS;function wE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _E=typeof Object.is=="function"?Object.is:wE,TE=xE.useSyncExternalStore,kE=Pd.useRef,ME=Pd.useEffect,SE=Pd.useMemo,CE=Pd.useDebugValue;mS.useSyncExternalStoreWithSelector=function(e,t,r,i,u){var o=kE(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=SE(function(){function l(h){if(!f){if(f=!0,s=h,h=i(h),u!==void 0&&a.hasValue){var p=a.value;if(u(p,h))return c=p}return c=h}if(p=c,_E(s,h))return p;var m=i(h);return u!==void 0&&u(p,m)?p:(s=h,c=m)}var f=!1,s,c,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,i,u]);var n=TE(e,o[0],o[1]);return ME(function(){a.hasValue=!0,a.value=n},[n]),CE(n),n};gS.exports=mS;var OE=gS.exports;const AE=ir(OE),{useSyncExternalStoreWithSelector:PE}=AE;function xS(e,t=e.getState,r){const i=PE(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return $e.useDebugValue(i),i}const X2=e=>{const t=typeof e=="function"?pS(e):e,r=(i,u)=>xS(t,i,u);return Object.assign(r,t),r},wS=e=>e?X2(e):X2;var DE=e=>wS(e);const EE=Object.freeze(Object.defineProperty({__proto__:null,create:wS,createStore:pS,default:DE,useStore:xS},Symbol.toStringTag,{value:"Module"})),RE=qn(EE);var Ic={exports:{}},bg={exports:{}},Z2;function LE(){return Z2||(Z2=1,function(e,t){(function(r,i){e.exports=i()})(Ma,function(){var r=typeof Promise=="function",i=typeof self=="object"?self:Ma,u=typeof Symbol<"u",o=typeof Map<"u",a=typeof Set<"u",n=typeof WeakMap<"u",l=typeof WeakSet<"u",f=typeof DataView<"u",s=u&&typeof Symbol.iterator<"u",c=u&&typeof Symbol.toStringTag<"u",d=a&&typeof Set.prototype.entries=="function",h=o&&typeof Map.prototype.entries=="function",p=d&&Object.getPrototypeOf(new Set().entries()),m=h&&Object.getPrototypeOf(new Map().entries()),y=s&&typeof Array.prototype[Symbol.iterator]=="function",v=y&&Object.getPrototypeOf([][Symbol.iterator]()),g=s&&typeof String.prototype[Symbol.iterator]=="function",b=g&&Object.getPrototypeOf(""[Symbol.iterator]()),x=8,_=-1;function w(k){var T=typeof k;if(T!=="object")return T;if(k===null)return"null";if(k===i)return"global";if(Array.isArray(k)&&(c===!1||!(Symbol.toStringTag in k)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&k===window.location)return"Location";if(typeof window.document=="object"&&k===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&k===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&k===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&k instanceof window.HTMLElement){if(k.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(k.tagName==="TD")return"HTMLTableDataCellElement";if(k.tagName==="TH")return"HTMLTableHeaderCellElement"}}var M=c&&k[Symbol.toStringTag];if(typeof M=="string")return M;var S=Object.getPrototypeOf(k);return S===RegExp.prototype?"RegExp":S===Date.prototype?"Date":r&&S===Promise.prototype?"Promise":a&&S===Set.prototype?"Set":o&&S===Map.prototype?"Map":l&&S===WeakSet.prototype?"WeakSet":n&&S===WeakMap.prototype?"WeakMap":f&&S===DataView.prototype?"DataView":o&&S===m?"Map Iterator":a&&S===p?"Set Iterator":y&&S===v?"Array Iterator":g&&S===b?"String Iterator":S===null?"Object":Object.prototype.toString.call(k).slice(x,_)}return w})}(bg)),bg.exports}var K2;function _S(){if(K2)return Ic.exports;K2=1;/*! * deep-eql * Copyright(c) 2013 Jake Luer * MIT Licensed - */var e=zE();function t(){this._key="chai/deep-eql__"+Math.random()+Date.now()}t.prototype={get:function(k){return k[this._key]},set:function(k,T){Object.isExtensible(k)&&Object.defineProperty(k,this._key,{value:T,configurable:!0})}};var r=typeof WeakMap=="function"?WeakMap:t;/*! + */var e=LE();function t(){this._key="chai/deep-eql__"+Math.random()+Date.now()}t.prototype={get:function(k){return k[this._key]},set:function(k,T){Object.isExtensible(k)&&Object.defineProperty(k,this._key,{value:T,configurable:!0})}};var r=typeof WeakMap=="function"?WeakMap:t;/*! * Check to see if the MemoizeMap has recorded a result of the two operands * * @param {Mixed} leftHandOperand @@ -102,9 +102,9 @@ should equal * @param {Mixed} rightHandOperand * @param {MemoizeMap} memoizeMap * @param {Boolean} result -*/function c(w,k,T,M){if(!(!T||x(w)||x(k))){var S=T.get(w);S?S.set(k,M):(S=new r,S.set(k,M),T.set(w,S))}}/*! +*/function u(w,k,T,M){if(!(!T||x(w)||x(k))){var S=T.get(w);S?S.set(k,M):(S=new r,S.set(k,M),T.set(w,S))}}/*! * Primary Export - */Nc.exports=o,Nc.exports.MemoizeMap=r;function o(w,k,T){if(T&&T.comparator)return n(w,k,T);var M=a(w,k);return M!==null?M:n(w,k,T)}function a(w,k){return w===k?w!==0||1/w===1/k:w!==w&&k!==k?!0:x(w)||x(k)?!1:null}/*! + */Ic.exports=o,Ic.exports.MemoizeMap=r;function o(w,k,T){if(T&&T.comparator)return n(w,k,T);var M=a(w,k);return M!==null?M:n(w,k,T)}function a(w,k){return w===k?w!==0||1/w===1/k:w!==w&&k!==k?!0:x(w)||x(k)?!1:null}/*! * The main logic of the `deepEqual` function. * * @param {Mixed} leftHandOperand @@ -115,7 +115,7 @@ should equal complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular references to blow the stack. * @return {Boolean} equal match -*/function n(w,k,T){T=T||{},T.memoize=T.memoize===!1?!1:T.memoize||new r;var M=T&&T.comparator,S=i(w,k,T.memoize);if(S!==null)return S;var C=i(k,w,T.memoize);if(C!==null)return C;if(M){var P=M(w,k);if(P===!1||P===!0)return c(w,k,T.memoize,P),P;var D=a(w,k);if(D!==null)return D}var O=e(w);if(O!==e(k))return c(w,k,T.memoize,!1),!1;c(w,k,T.memoize,!0);var R=l(w,k,O,T);return c(w,k,T.memoize,R),R}function l(w,k,T,M){switch(T){case"String":case"Number":case"Boolean":case"Date":return o(w.valueOf(),k.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return w===k;case"Error":return g(w,k,["name","message","code"],M);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return u(w,k,M);case"RegExp":return f(w,k);case"Generator":return d(w,k,M);case"DataView":return u(new Uint8Array(w.buffer),new Uint8Array(k.buffer),M);case"ArrayBuffer":return u(new Uint8Array(w),new Uint8Array(k),M);case"Set":return s(w,k,M);case"Map":return s(w,k,M);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return w.equals(k);case"Temporal.Duration":return w.total("nanoseconds")===k.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return w.toString()===k.toString();default:return b(w,k,M)}}/*! +*/function n(w,k,T){T=T||{},T.memoize=T.memoize===!1?!1:T.memoize||new r;var M=T&&T.comparator,S=i(w,k,T.memoize);if(S!==null)return S;var C=i(k,w,T.memoize);if(C!==null)return C;if(M){var P=M(w,k);if(P===!1||P===!0)return u(w,k,T.memoize,P),P;var D=a(w,k);if(D!==null)return D}var O=e(w);if(O!==e(k))return u(w,k,T.memoize,!1),!1;u(w,k,T.memoize,!0);var R=l(w,k,O,T);return u(w,k,T.memoize,R),R}function l(w,k,T,M){switch(T){case"String":case"Number":case"Boolean":case"Date":return o(w.valueOf(),k.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return w===k;case"Error":return g(w,k,["name","message","code"],M);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return c(w,k,M);case"RegExp":return f(w,k);case"Generator":return d(w,k,M);case"DataView":return c(new Uint8Array(w.buffer),new Uint8Array(k.buffer),M);case"ArrayBuffer":return c(new Uint8Array(w),new Uint8Array(k),M);case"Set":return s(w,k,M);case"Map":return s(w,k,M);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return w.equals(k);case"Temporal.Duration":return w.total("nanoseconds")===k.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return w.toString()===k.toString();default:return b(w,k,M)}}/*! * Compare two Regular Expressions for equality. * * @param {RegExp} leftHandOperand @@ -128,21 +128,21 @@ should equal * @param {Set} rightHandOperand * @param {Object} [options] (Optional) * @return {Boolean} result - */function s(w,k,T){if(w.size!==k.size)return!1;if(w.size===0)return!0;var M=[],S=[];return w.forEach(function(P,D){M.push([P,D])}),k.forEach(function(P,D){S.push([P,D])}),u(M.sort(),S.sort(),T)}/*! + */function s(w,k,T){if(w.size!==k.size)return!1;if(w.size===0)return!0;var M=[],S=[];return w.forEach(function(P,D){M.push([P,D])}),k.forEach(function(P,D){S.push([P,D])}),c(M.sort(),S.sort(),T)}/*! * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers. * * @param {Iterable} leftHandOperand * @param {Iterable} rightHandOperand * @param {Object} [options] (Optional) * @return {Boolean} result - */function u(w,k,T){var M=w.length;if(M!==k.length)return!1;if(M===0)return!0;for(var S=-1;++S=0)&&(c[a]=r[a]);return c}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Sg)),Sg.exports}var Tw;function jl(){return Tw||(Tw=1,function(e){var t=oR();function r(i,c){if(i==null)return{};var o=t(i,c),a,n;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(i,a)&&(o[a]=i[a])}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Mg)),Mg.exports}var kw;function lR(){return kw||(kw=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(iR),i=t(hr()),c=t(jl()),o=t($e),a=["forwardedRef"];function n(f){var s=f.forwardedRef,u=(0,c.default)(f,a);return o.default.createElement(r.default,(0,i.default)({elevation:2},u,{ref:s}))}var l=o.default.forwardRef(function(s,u){return o.default.createElement(n,(0,i.default)({},s,{forwardedRef:u}))});e.default=l}(kg)),kg}var Cg={};const Bo=qn(u9);var Og={exports:{}},Mw;function sR(){return Mw||(Mw=1,function(e,t){(function(i,c){e.exports=c($e)})(Ma,function(r){return function(i){var c={};function o(a){if(c[a])return c[a].exports;var n=c[a]={exports:{},id:a,loaded:!1};return i[a].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}return o.m=i,o.c=c,o.p="",o(0)}([function(i,c,o){Object.defineProperty(c,"__esModule",{value:!0});var a=function(){function p(m,y){for(var v=0;vr.length)&&(i=r.length);for(var c=0,o=new Array(i);c0&&R++,m.hasDetailPanel&&R++,m.isTreeData&&R++,l.default.createElement(a.default,{style:{height:O*(v.paging&&v.emptyRowsWhenPaging?m.pageSize:1)},key:"empty-0"},l.default.createElement(n.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:m.columns.reduce(function(F,A){return A.hidden?F:F+1},R),key:"empty-"},y.emptyDataSourceMessage))}else if(v.emptyRowsWhenPaging)return l.default.createElement(l.default.Fragment,null,(0,o.default)(Array(P)).map(function(F,A){return l.default.createElement(a.default,{style:{height:O},key:"empty-"+A})}),P>0&&l.default.createElement(a.default,{style:{height:1},key:"empty-last1"}))}function _(P){return P.map(function(D,O){if(D.tableData.editing||m.bulkEditOpen)return l.default.createElement(m.components.EditRow,{columns:b,components:m.components,data:D,errorState:m.errorState,icons:g,localization:y.editRow,key:"row-"+D.tableData.uuid,mode:m.bulkEditOpen?"bulk":D.tableData.editing,isTreeData:m.isTreeData,detailPanel:m.detailPanel,onEditingCanceled:m.onEditingCanceled,onEditingApproved:m.onEditingApproved,bulkEditChangedRows:m.bulkEditChangedRows,getFieldValue:m.getFieldValue,onBulkEditRowChanged:m.onBulkEditRowChanged,scrollWidth:m.scrollWidth});var R=m.isTreeData?[D.tableData.uuid]:[O+m.pageSize*m.currentPage];return l.default.createElement(m.components.Row,{components:m.components,data:D,index:O,errorState:m.errorState,key:"row-"+D.tableData.uuid,level:0,onRowSelected:m.onRowSelected,actions:m.actions,columns:m.columns,getFieldValue:m.getFieldValue,detailPanel:m.detailPanel,path:R,onToggleDetailPanel:m.onToggleDetailPanel,onRowClick:m.onRowClick,onRowDoubleClick:m.onRowDoubleClick,isTreeData:m.isTreeData,onTreeExpandChanged:m.onTreeExpandChanged,onEditingCanceled:m.onEditingCanceled,onEditingApproved:m.onEditingApproved,hasAnyEditingRow:m.hasAnyEditingRow,treeDataMaxLevel:m.treeDataMaxLevel,cellEditable:m.cellEditable,onCellEditStarted:m.onCellEditStarted,onCellEditFinished:m.onCellEditFinished,onRowEditStarted:m.onRowEditStarted,scrollWidth:m.scrollWidth})})}function w(P,D){return D.map(function(O,R){return l.default.createElement(m.components.GroupRow,{actions:m.actions,cellEditable:m.cellEditable,columns:m.columns,components:m.components,detailPanel:m.detailPanel,getFieldValue:m.getFieldValue,groupData:O,groups:P,hasAnyEditingRow:m.hasAnyEditingRow,icons:g,isTreeData:m.isTreeData,key:O.value==null?""+R:O.value,level:0,localization:y.editRow,onBulkEditRowChanged:m.onBulkEditRowChanged,onCellEditFinished:m.onCellEditFinished,onCellEditStarted:m.onCellEditStarted,onEditingApproved:m.onEditingApproved,onEditingCanceled:m.onEditingCanceled,onGroupExpandChanged:m.onGroupExpandChanged,onRowClick:m.onRowClick,onGroupSelected:m.onGroupSelected,onRowSelected:m.onRowSelected,onToggleDetailPanel:m.onToggleDetailPanel,onTreeExpandChanged:m.onTreeExpandChanged,path:[R+m.pageSize*m.currentPage],scrollWidth:m.scrollWidth,treeDataMaxLevel:m.treeDataMaxLevel})})}function k(){return m.showAddRow&&l.default.createElement(m.components.EditRow,{columns:b,components:m.components,data:m.initialFormData,detailPanel:m.detailPanel,errorState:m.errorState,getFieldValue:m.getFieldValue,icons:g,isTreeData:m.isTreeData,key:"key-add-row",localization:y.editRow,mode:"add",onEditingApproved:m.onEditingApproved,onEditingCanceled:m.onEditingCanceled,scrollWidth:m.scrollWidth})}var T=m.renderData,M=m.columns.filter(function(P){return P.tableData.groupOrder>-1}).sort(function(P,D){return P.tableData.groupOrder-D.tableData.groupOrder}),S=0;v.paging&&m.pageSize>T.length&&(S=m.pageSize-T.length);var C=l.default.useMemo(function(){return m.renderSummaryRow?function(P){return m.renderSummaryRow(d(d({},P),{},{data:m.data,currentData:m.currentData}))}:void 0},[m.data]);return l.default.createElement(i.default,{ref:m.forwardedRef},v.filtering&&l.default.createElement(m.components.FilterRow,{columns:b,icons:g,hasActions:m.actions.some(function(P){return P.position==="row"||typeof P=="function"}),onFilterChanged:m.onFilterChanged,localization:y.filterRow,hasDetailPanel:!!m.detailPanel,isTreeData:m.isTreeData,scrollWidth:m.scrollWidth,hideFilterIcons:m.options.hideFilterIcons}),v.addRowPosition==="first"&&k(),M.length>0?w(M,T):_(T),v.addRowPosition==="last"&&k(),l.default.createElement(m.components.SummaryRow,{columns:b,renderSummaryRow:C,rowProps:m}),x(S,T))}h.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},h.propTypes={actions:f.default.array,bulkEditChangedRows:f.default.object,bulkEditOpen:f.default.bool,cellEditable:f.default.object,columns:f.default.array.isRequired,components:f.default.object.isRequired,currentPage:f.default.number,data:f.default.array,detailPanel:f.default.oneOfType([f.default.func,f.default.arrayOf(f.default.oneOfType([f.default.object,f.default.func]))]),errorState:f.default.oneOfType([f.default.object,f.default.bool]),forwardedRef:f.default.oneOfType([f.default.func,f.default.object]),getFieldValue:f.default.func.isRequired,hasAnyEditingRow:f.default.bool,hasDetailPanel:f.default.bool.isRequired,initialFormData:f.default.object,isTreeData:f.default.bool.isRequired,onBulkEditRowChanged:f.default.func,onCellEditFinished:f.default.func,onCellEditStarted:f.default.func,onEditingApproved:f.default.func,onEditingCanceled:f.default.func,onFilterChanged:f.default.func,onGroupExpandChanged:f.default.func,onRowClick:f.default.func,onRowDoubleClick:f.default.func,onGroupSelected:f.default.func,onRowSelected:f.default.func,onToggleDetailPanel:f.default.func.isRequired,onTreeExpandChanged:f.default.func.isRequired,pageSize:f.default.number,renderData:f.default.array,renderSummaryRow:f.default.func,scrollWidth:f.default.number.isRequired,selection:f.default.bool.isRequired,showAddRow:f.default.bool,treeDataMaxLevel:f.default.number};var p=l.default.forwardRef(function(y,v){return l.default.createElement(h,(0,r.default)({},y,{forwardedRef:v}))});e.default=p}(Ag)),Ag}var Fg={},Ng={exports:{}},Lw;function Dd(){return Lw||(Lw=1,function(e){function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ng)),Ng.exports}var jg={exports:{}},Iw;function Ed(){return Iw||(Iw=1,function(e){var t=mS();function r(c,o){for(var a=0;a1?"s":"")+" required, but only "+t.length+" present")}function hn(e){dn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Mi(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function O0(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return isNaN(i)?new Date(NaN):(i&&r.setDate(r.getDate()+i),r)}function Ld(e,t){dn(2,arguments);var r=hn(e).getTime(),i=sr(t);return new Date(r+i)}function yR(e,t){dn(2,arguments);var r=sr(t);return Ld(e,r*1e3)}var bR=6e4;function xR(e,t){dn(2,arguments);var r=sr(t);return Ld(e,r*bR)}var wR=36e5;function _R(e,t){dn(2,arguments);var r=sr(t);return Ld(e,r*wR)}function TR(e,t){dn(2,arguments);var r=sr(t),i=r*7;return O0(e,i)}function ff(e,t){dn(2,arguments);var r=hn(e),i=sr(t);if(isNaN(i))return new Date(NaN);if(!i)return r;var c=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+i+1,0);var a=o.getDate();return c>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),c),r)}function zw(e,t){dn(2,arguments);var r=sr(t);return ff(e,r*12)}function kR(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getFullYear()-i.getFullYear()}function wu(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=r.getTime()-i.getTime();return c<0?-1:c>0?1:c}function MR(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=wu(r,i),o=Math.abs(kR(r,i));r.setFullYear(1584),i.setFullYear(1584);var a=wu(r,i)===-c,n=c*(o-Number(a));return n===0?0:n}function SR(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return c*12+o}function A0(e){dn(1,arguments);var t=hn(e);return t.setHours(23,59,59,999),t}function P0(e){dn(1,arguments);var t=hn(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function CR(e){dn(1,arguments);var t=hn(e);return A0(t).getTime()===P0(t).getTime()}function LS(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=wu(r,i),o=Math.abs(SR(r,i)),a;if(o<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-c*o);var n=wu(r,i)===-c;CR(hn(e))&&o===1&&wu(e,i)===1&&(n=!1),a=c*(o-Number(n))}return a===0?0:a}var qw={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},OR="trunc";function Qu(e){return e?qw[e]:qw[OR]}function AR(e,t,r){dn(2,arguments);var i=LS(e,t)/3;return Qu(void 0)(i)}function Df(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function _l(e){dn(1,arguments);var t=hn(e);return t.setHours(0,0,0,0),t}var PR=864e5;function DR(e,t){dn(2,arguments);var r=_l(e),i=_l(t),c=r.getTime()-Df(r),o=i.getTime()-Df(i);return Math.round((c-o)/PR)}function Ww(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function IS(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=Ww(r,i),o=Math.abs(DR(r,i));r.setDate(r.getDate()-c*o);var a=+(Ww(r,i)===-c),n=c*(o-a);return n===0?0:n}function ER(e,t,r){dn(2,arguments);var i=IS(e,t)/7;return Qu(void 0)(i)}var Id=6e4,Fd=36e5,RR=1e3;function Nd(e,t){return dn(2,arguments),hn(e).getTime()-hn(t).getTime()}function LR(e,t,r){dn(2,arguments);var i=Nd(e,t)/Fd;return Qu(void 0)(i)}function IR(e,t,r){dn(2,arguments);var i=Nd(e,t)/Id;return Qu(void 0)(i)}function FR(e,t,r){dn(2,arguments);var i=Nd(e,t)/1e3;return Qu(void 0)(i)}function NR(e,t){var r;dn(1,arguments);var i=e||{},c=hn(i.start),o=hn(i.end),a=o.getTime();if(!(c.getTime()<=a))throw new RangeError("Invalid interval");var n=[],l=c;l.setHours(0,0,0,0);var f=Number((r=void 0)!==null&&r!==void 0?r:1);if(f<1||isNaN(f))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=a;)n.push(hn(l)),l.setDate(l.getDate()+f),l.setHours(0,0,0,0);return n}var jR={};function ro(){return jR}function Ug(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ro(),u=sr((r=(i=(c=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&c!==void 0?c:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getDay(),p=(h=c.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function qR(e){dn(1,arguments);var t=jS(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var i=Tl(r);return i}var WR=6048e5;function $S(e){dn(1,arguments);var t=hn(e),r=Tl(t).getTime()-qR(t).getTime();return Math.round(r/WR)+1}function Co(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ro(),u=sr((r=(i=(c=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&c!==void 0?c:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(u+1,0,h),p.setUTCHours(0,0,0,0);var m=Co(p,t),y=new Date(0);y.setUTCFullYear(u,0,h),y.setUTCHours(0,0,0,0);var v=Co(y,t);return s.getTime()>=m.getTime()?u+1:s.getTime()>=v.getTime()?u:u-1}function UR(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ro(),u=sr((r=(i=(c=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:s.firstWeekContainsDate)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=ky(e,t),h=new Date(0);h.setUTCFullYear(d,0,u),h.setUTCHours(0,0,0,0);var p=Co(h,t);return p}var HR=6048e5;function BS(e,t){dn(1,arguments);var r=hn(e),i=Co(r,t).getTime()-UR(r,t).getTime();return Math.round(i/HR)+1}function Hn(e,t){for(var r=e<0?"-":"",i=Math.abs(e).toString();i.length0?i:1-i;return Hn(r==="yy"?c%100:c,r.length)},M:function(t,r){var i=t.getUTCMonth();return r==="M"?String(i+1):Hn(i+1,2)},d:function(t,r){return Hn(t.getUTCDate(),r.length)},a:function(t,r){var i=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h:function(t,r){return Hn(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Hn(t.getUTCHours(),r.length)},m:function(t,r){return Hn(t.getUTCMinutes(),r.length)},s:function(t,r){return Hn(t.getUTCSeconds(),r.length)},S:function(t,r){var i=r.length,c=t.getUTCMilliseconds(),o=Math.floor(c*Math.pow(10,i-3));return Hn(o,r.length)}},al={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},VR={G:function(t,r,i){var c=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return i.era(c,{width:"abbreviated"});case"GGGGG":return i.era(c,{width:"narrow"});case"GGGG":default:return i.era(c,{width:"wide"})}},y:function(t,r,i){if(r==="yo"){var c=t.getUTCFullYear(),o=c>0?c:1-c;return i.ordinalNumber(o,{unit:"year"})}return Bi.y(t,r)},Y:function(t,r,i,c){var o=ky(t,c),a=o>0?o:1-o;if(r==="YY"){var n=a%100;return Hn(n,2)}return r==="Yo"?i.ordinalNumber(a,{unit:"year"}):Hn(a,r.length)},R:function(t,r){var i=jS(t);return Hn(i,r.length)},u:function(t,r){var i=t.getUTCFullYear();return Hn(i,r.length)},Q:function(t,r,i){var c=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(c);case"QQ":return Hn(c,2);case"Qo":return i.ordinalNumber(c,{unit:"quarter"});case"QQQ":return i.quarter(c,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(c,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(c,{width:"wide",context:"formatting"})}},q:function(t,r,i){var c=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(c);case"qq":return Hn(c,2);case"qo":return i.ordinalNumber(c,{unit:"quarter"});case"qqq":return i.quarter(c,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(c,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(c,{width:"wide",context:"standalone"})}},M:function(t,r,i){var c=t.getUTCMonth();switch(r){case"M":case"MM":return Bi.M(t,r);case"Mo":return i.ordinalNumber(c+1,{unit:"month"});case"MMM":return i.month(c,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(c,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(c,{width:"wide",context:"formatting"})}},L:function(t,r,i){var c=t.getUTCMonth();switch(r){case"L":return String(c+1);case"LL":return Hn(c+1,2);case"Lo":return i.ordinalNumber(c+1,{unit:"month"});case"LLL":return i.month(c,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(c,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(c,{width:"wide",context:"standalone"})}},w:function(t,r,i,c){var o=BS(t,c);return r==="wo"?i.ordinalNumber(o,{unit:"week"}):Hn(o,r.length)},I:function(t,r,i){var c=$S(t);return r==="Io"?i.ordinalNumber(c,{unit:"week"}):Hn(c,r.length)},d:function(t,r,i){return r==="do"?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):Bi.d(t,r)},D:function(t,r,i){var c=zR(t);return r==="Do"?i.ordinalNumber(c,{unit:"dayOfYear"}):Hn(c,r.length)},E:function(t,r,i){var c=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return i.day(c,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(c,{width:"short",context:"formatting"});case"EEEE":default:return i.day(c,{width:"wide",context:"formatting"})}},e:function(t,r,i,c){var o=t.getUTCDay(),a=(o-c.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return Hn(a,2);case"eo":return i.ordinalNumber(a,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});case"eeee":default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,i,c){var o=t.getUTCDay(),a=(o-c.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return Hn(a,r.length);case"co":return i.ordinalNumber(a,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});case"cccc":default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,i){var c=t.getUTCDay(),o=c===0?7:c;switch(r){case"i":return String(o);case"ii":return Hn(o,r.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(c,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(c,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(c,{width:"short",context:"formatting"});case"iiii":default:return i.day(c,{width:"wide",context:"formatting"})}},a:function(t,r,i){var c=t.getUTCHours(),o=c/12>=1?"pm":"am";switch(r){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,i){var c=t.getUTCHours(),o;switch(c===12?o=al.noon:c===0?o=al.midnight:o=c/12>=1?"pm":"am",r){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,i){var c=t.getUTCHours(),o;switch(c>=17?o=al.evening:c>=12?o=al.afternoon:c>=4?o=al.morning:o=al.night,r){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,i){if(r==="ho"){var c=t.getUTCHours()%12;return c===0&&(c=12),i.ordinalNumber(c,{unit:"hour"})}return Bi.h(t,r)},H:function(t,r,i){return r==="Ho"?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Bi.H(t,r)},K:function(t,r,i){var c=t.getUTCHours()%12;return r==="Ko"?i.ordinalNumber(c,{unit:"hour"}):Hn(c,r.length)},k:function(t,r,i){var c=t.getUTCHours();return c===0&&(c=24),r==="ko"?i.ordinalNumber(c,{unit:"hour"}):Hn(c,r.length)},m:function(t,r,i){return r==="mo"?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Bi.m(t,r)},s:function(t,r,i){return r==="so"?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Bi.s(t,r)},S:function(t,r){return Bi.S(t,r)},X:function(t,r,i,c){var o=c._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return Hw(a);case"XXXX":case"XX":return po(a);case"XXXXX":case"XXX":default:return po(a,":")}},x:function(t,r,i,c){var o=c._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return Hw(a);case"xxxx":case"xx":return po(a);case"xxxxx":case"xxx":default:return po(a,":")}},O:function(t,r,i,c){var o=c._originalDate||t,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Uw(a,":");case"OOOO":default:return"GMT"+po(a,":")}},z:function(t,r,i,c){var o=c._originalDate||t,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Uw(a,":");case"zzzz":default:return"GMT"+po(a,":")}},t:function(t,r,i,c){var o=c._originalDate||t,a=Math.floor(o.getTime()/1e3);return Hn(a,r.length)},T:function(t,r,i,c){var o=c._originalDate||t,a=o.getTime();return Hn(a,r.length)}};function Uw(e,t){var r=e>0?"-":"+",i=Math.abs(e),c=Math.floor(i/60),o=i%60;if(o===0)return r+String(c);var a=t;return r+String(c)+a+Hn(o,2)}function Hw(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Hn(Math.abs(e)/60,2)}return po(e,t)}function po(e,t){var r=t||"",i=e>0?"-":"+",c=Math.abs(e),o=Hn(Math.floor(c/60),2),a=Hn(c%60,2);return i+o+r+a}var Vw=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},zS=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},YR=function(t,r){var i=t.match(/(P+)(p+)?/)||[],c=i[1],o=i[2];if(!o)return Vw(t,r);var a;switch(c){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",Vw(c,r)).replace("{{time}}",zS(o,r))},D0={p:zS,P:YR},GR=["D","DD"],XR=["YY","YYYY"];function qS(e){return GR.indexOf(e)!==-1}function WS(e){return XR.indexOf(e)!==-1}function Ef(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var ZR={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},KR=function(t,r,i){var c,o=ZR[t];return typeof o=="string"?c=o:r===1?c=o.one:c=o.other.replace("{{count}}",r.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+c:c+" ago":c};function Vg(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,i=e.formats[r]||e.formats[e.defaultWidth];return i}}var JR={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},QR={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},eL={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},tL={date:Vg({formats:JR,defaultWidth:"full"}),time:Vg({formats:QR,defaultWidth:"full"}),dateTime:Vg({formats:eL,defaultWidth:"full"})},nL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},rL=function(t,r,i,c){return nL[t]};function Ds(e){return function(t,r){var i=r!=null&&r.context?String(r.context):"standalone",c;if(i==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;c=e.formattingValues[a]||e.formattingValues[o]}else{var n=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;c=e.values[l]||e.values[n]}var f=e.argumentCallback?e.argumentCallback(t):t;return c[f]}}var aL={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},iL={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oL={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},lL={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},sL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},uL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},cL=function(t,r){var i=Number(t),c=i%100;if(c>20||c<10)switch(c%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},fL={ordinalNumber:cL,era:Ds({values:aL,defaultWidth:"wide"}),quarter:Ds({values:iL,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ds({values:oL,defaultWidth:"wide"}),day:Ds({values:lL,defaultWidth:"wide"}),dayPeriod:Ds({values:sL,defaultWidth:"wide",formattingValues:uL,defaultFormattingWidth:"wide"})};function Es(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.width,c=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(c);if(!o)return null;var a=o[0],n=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(n)?hL(n,function(u){return u.test(a)}):dL(n,function(u){return u.test(a)}),f;f=e.valueCallback?e.valueCallback(l):l,f=r.valueCallback?r.valueCallback(f):f;var s=t.slice(a.length);return{value:f,rest:s}}}function dL(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function hL(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var c=i[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var n=t.slice(c.length);return{value:a,rest:n}}}var gL=/^(\d+)(th|st|nd|rd)?/i,mL=/\d+/i,vL={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},yL={any:[/^b/i,/^(a|c)/i]},bL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xL={any:[/1/i,/2/i,/3/i,/4/i]},wL={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},_L={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},TL={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kL={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ML={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},SL={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},CL={ordinalNumber:pL({matchPattern:gL,parsePattern:mL,valueCallback:function(t){return parseInt(t,10)}}),era:Es({matchPatterns:vL,defaultMatchWidth:"wide",parsePatterns:yL,defaultParseWidth:"any"}),quarter:Es({matchPatterns:bL,defaultMatchWidth:"wide",parsePatterns:xL,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Es({matchPatterns:wL,defaultMatchWidth:"wide",parsePatterns:_L,defaultParseWidth:"any"}),day:Es({matchPatterns:TL,defaultMatchWidth:"wide",parsePatterns:kL,defaultParseWidth:"any"}),dayPeriod:Es({matchPatterns:ML,defaultMatchWidth:"any",parsePatterns:SL,defaultParseWidth:"any"})},jd={code:"en-US",formatDistance:KR,formatLong:tL,formatRelative:rL,localize:fL,match:CL,options:{weekStartsOn:0,firstWeekContainsDate:1}},OL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,AL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,PL=/^'([^]*?)'?$/,DL=/''/g,EL=/[a-zA-Z]/;function US(e,t,r){var i,c,o,a,n,l,f,s,u,d,h,p,m,y,v,g,b,x;dn(2,arguments);var _=String(t),w=ro(),k=(i=(c=r==null?void 0:r.locale)!==null&&c!==void 0?c:w.locale)!==null&&i!==void 0?i:jd,T=sr((o=(a=(n=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(f=r.locale)===null||f===void 0||(s=f.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:w.firstWeekContainsDate)!==null&&a!==void 0?a:(u=w.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=sr((h=(p=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(v=r.locale)===null||v===void 0||(g=v.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&m!==void 0?m:w.weekStartsOn)!==null&&p!==void 0?p:(b=w.locale)===null||b===void 0||(x=b.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var S=hn(e);if(!FS(S))throw new RangeError("Invalid time value");var C=Df(S),P=NS(S,C),D={firstWeekContainsDate:T,weekStartsOn:M,locale:k,_originalDate:S},O=_.match(AL).map(function(R){var F=R[0];if(F==="p"||F==="P"){var A=D0[F];return A(R,k.formatLong)}return R}).join("").match(OL).map(function(R){if(R==="''")return"'";var F=R[0];if(F==="'")return RL(R);var A=VR[F];if(A)return!(r!=null&&r.useAdditionalWeekYearTokens)&&WS(R)&&Ef(R,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&qS(R)&&Ef(R,t,String(e)),A(P,R,k.localize,D);if(F.match(EL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return R}).join("");return O}function RL(e){var t=e.match(PL);return t?t[1].replace(DL,"'"):e}const LL=Object.freeze(Object.defineProperty({__proto__:null,default:US},Symbol.toStringTag,{value:"Module"}));function IL(e){dn(1,arguments);var t=hn(e),r=t.getDate();return r}function FL(e){dn(1,arguments);var t=hn(e),r=t.getDay();return r}function HS(e){dn(1,arguments);var t=hn(e),r=t.getFullYear(),i=t.getMonth(),c=new Date(0);return c.setFullYear(r,i+1,0),c.setHours(0,0,0,0),c.getDate()}function NL(e){dn(1,arguments);var t=hn(e),r=t.getHours();return r}function jL(e){dn(1,arguments);var t=hn(e),r=t.getMinutes();return r}function $L(e){dn(1,arguments);var t=hn(e),r=t.getMonth();return r}function BL(e){dn(1,arguments);var t=hn(e),r=t.getSeconds();return r}function zL(e){return dn(1,arguments),hn(e).getFullYear()}function jc(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getTime()>i.getTime()}function il(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getTime()e.length)&&(t=e.length);for(var r=0,i=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(f){throw f},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,n;return{s:function(){r=r.call(e)},n:function(){var f=r.next();return o=f.done,f},e:function(f){a=!0,n=f},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw n}}}}function GL(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Qn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w9(e,t)}function Rf(e){return Rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rf(e)}function XL(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ZL(e,t){if(t&&(Mi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xn(e)}function er(e){var t=XL();return function(){var i=Rf(e),c;if(t){var o=Rf(this).constructor;c=Reflect.construct(i,arguments,o)}else c=i.apply(this,arguments);return ZL(this,c)}}function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KL(e,t){if(Mi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Mi(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VS(e){var t=KL(e,"string");return Mi(t)==="symbol"?t:String(t)}function JL(e,t){for(var r=0;r0,i=r?t:1-t,c;if(i<=50)c=e||100;else{var o=i+50,a=Math.floor(o/100)*100,n=e>=o%100;c=e+a-(n?100:0)}return r?c:1-c}function ZS(e){return e%400===0||e%4===0&&e%100!==0}var rI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a0}},{key:"set",value:function(c,o,a){var n=c.getUTCFullYear();if(a.isTwoDigitYear){var l=XS(a.year,n);return c.setUTCFullYear(l,0,1),c.setUTCHours(0,0,0,0),c}var f=!("era"in o)||o.era===1?a.year:1-a.year;return c.setUTCFullYear(f,0,1),c.setUTCHours(0,0,0,0),c}}]),r}(or),aI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a0}},{key:"set",value:function(c,o,a,n){var l=ky(c,n);if(a.isTwoDigitYear){var f=XS(a.year,l);return c.setUTCFullYear(f,0,n.firstWeekContainsDate),c.setUTCHours(0,0,0,0),Co(c,n)}var s=!("era"in o)||o.era===1?a.year:1-a.year;return c.setUTCFullYear(s,0,n.firstWeekContainsDate),c.setUTCHours(0,0,0,0),Co(c,n)}}]),r}(or),iI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=4}},{key:"set",value:function(c,o,a){return c.setUTCMonth((a-1)*3,1),c.setUTCHours(0,0,0,0),c}}]),r}(or),sI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=4}},{key:"set",value:function(c,o,a){return c.setUTCMonth((a-1)*3,1),c.setUTCHours(0,0,0,0),c}}]),r}(or),uI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=11}},{key:"set",value:function(c,o,a){return c.setUTCMonth(a,1),c.setUTCHours(0,0,0,0),c}}]),r}(or),cI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=11}},{key:"set",value:function(c,o,a){return c.setUTCMonth(a,1),c.setUTCHours(0,0,0,0),c}}]),r}(or);function fI(e,t,r){dn(2,arguments);var i=hn(e),c=sr(t),o=BS(i,r)-c;return i.setUTCDate(i.getUTCDate()-o*7),i}var dI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=53}},{key:"set",value:function(c,o,a,n){return Co(fI(c,a,n),n)}}]),r}(or);function hI(e,t){dn(2,arguments);var r=hn(e),i=sr(t),c=$S(r)-i;return r.setUTCDate(r.getUTCDate()-c*7),r}var pI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=53}},{key:"set",value:function(c,o,a){return Tl(hI(c,a))}}]),r}(or),gI=[31,28,31,30,31,30,31,31,30,31,30,31],mI=[31,29,31,30,31,30,31,31,30,31,30,31],vI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=mI[l]:o>=1&&o<=gI[l]}},{key:"set",value:function(c,o,a){return c.setUTCDate(a),c.setUTCHours(0,0,0,0),c}}]),r}(or),yI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(c,o,a){return c.setUTCMonth(0,a),c.setUTCHours(0,0,0,0),c}}]),r}(or);function Sy(e,t,r){var i,c,o,a,n,l,f,s;dn(2,arguments);var u=ro(),d=sr((i=(c=(o=(a=r==null?void 0:r.weekStartsOn)!==null&&a!==void 0?a:r==null||(n=r.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&c!==void 0?c:(f=u.locale)===null||f===void 0||(s=f.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=hn(e),p=sr(t),m=h.getUTCDay(),y=p%7,v=(y+7)%7,g=(v=0&&o<=6}},{key:"set",value:function(c,o,a,n){return c=Sy(c,a,n),c.setUTCHours(0,0,0,0),c}}]),r}(or),xI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=6}},{key:"set",value:function(c,o,a,n){return c=Sy(c,a,n),c.setUTCHours(0,0,0,0),c}}]),r}(or),wI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=6}},{key:"set",value:function(c,o,a,n){return c=Sy(c,a,n),c.setUTCHours(0,0,0,0),c}}]),r}(or);function _I(e,t){dn(2,arguments);var r=sr(t);r%7===0&&(r=r-7);var i=1,c=hn(e),o=c.getUTCDay(),a=r%7,n=(a+7)%7,l=(n=1&&o<=7}},{key:"set",value:function(c,o,a){return c=_I(c,a),c.setUTCHours(0,0,0,0),c}}]),r}(or),kI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=12}},{key:"set",value:function(c,o,a){var n=c.getUTCHours()>=12;return n&&a<12?c.setUTCHours(a+12,0,0,0):!n&&a===12?c.setUTCHours(0,0,0,0):c.setUTCHours(a,0,0,0),c}}]),r}(or),OI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=23}},{key:"set",value:function(c,o,a){return c.setUTCHours(a,0,0,0),c}}]),r}(or),AI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=11}},{key:"set",value:function(c,o,a){var n=c.getUTCHours()>=12;return n&&a<12?c.setUTCHours(a+12,0,0,0):c.setUTCHours(a,0,0,0),c}}]),r}(or),PI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=24}},{key:"set",value:function(c,o,a){var n=a<=24?a%24:a;return c.setUTCHours(n,0,0,0),c}}]),r}(or),DI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=59}},{key:"set",value:function(c,o,a){return c.setUTCMinutes(a,0,0),c}}]),r}(or),EI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=59}},{key:"set",value:function(c,o,a){return c.setUTCSeconds(a,0),c}}]),r}(or),RI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=sr((p=(m=(y=(v=i==null?void 0:i.weekStartsOn)!==null&&v!==void 0?v:i==null||(g=i.locale)===null||g===void 0||(b=g.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&y!==void 0?y:T.weekStartsOn)!==null&&m!==void 0?m:(x=T.locale)===null||x===void 0||(_=x.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&p!==void 0?p:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(k==="")return w===""?hn(r):new Date(NaN);var P={firstWeekContainsDate:S,weekStartsOn:C,locale:M},D=[new tI],O=k.match(BI).map(function(H){var V=H[0];if(V in D0){var te=D0[V];return te(H,M.formatLong)}return H}).join("").match($I),R=[],F=Xw(O),A;try{var z=function(){var V=A.value;!(i!=null&&i.useAdditionalWeekYearTokens)&&WS(V)&&Ef(V,k,e),!(i!=null&&i.useAdditionalDayOfYearTokens)&&qS(V)&&Ef(V,k,e);var te=V[0],ee=jI[te];if(ee){var U=ee.incompatibleTokens;if(Array.isArray(U)){var Q=R.find(function(Z){return U.includes(Z.token)||Z.token===te});if(Q)throw new RangeError("The format string mustn't contain `".concat(Q.fullToken,"` and `").concat(V,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(V,"` and any other token at the same time"));R.push({token:te,fullToken:V});var Y=ee.run(w,V,M.match,P);if(!Y)return{v:new Date(NaN)};D.push(Y.setter),w=Y.rest}else{if(te.match(UI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(V==="''"?V="'":te==="'"&&(V=VI(V)),w.indexOf(V)===0)w=w.slice(V.length);else return{v:new Date(NaN)}}};for(F.s();!(A=F.n()).done;){var B=z();if(Mi(B)==="object")return B.v}}catch(H){F.e(H)}finally{F.f()}if(w.length>0&&WI.test(w))return new Date(NaN);var $=D.map(function(H){return H.priority}).sort(function(H,V){return V-H}).filter(function(H,V,te){return te.indexOf(H)===V}).map(function(H){return D.filter(function(V){return V.priority===H}).sort(function(V,te){return te.subPriority-V.subPriority})}).map(function(H){return H[0]}),j=hn(r);if(isNaN(j.getTime()))return new Date(NaN);var N=NS(j,Df(j)),E={},W=Xw($),G;try{for(W.s();!(G=W.n()).done;){var L=G.value;if(!L.validate(N,P))return new Date(NaN);var q=L.set(N,E,P);Array.isArray(q)?(N=q[0],GL(E,q[1])):N=q}}catch(H){W.e(H)}finally{W.f()}return N}function VI(e){return e.match(zI)[1].replace(qI,"'")}function YI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setDate(i),r}function GI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setHours(i),r}function XI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setMinutes(i),r}function ZI(e,t){dn(2,arguments);var r=hn(e),i=sr(t),c=r.getFullYear(),o=r.getDate(),a=new Date(0);a.setFullYear(c,i,15),a.setHours(0,0,0,0);var n=HS(a);return r.setMonth(i,Math.min(o,n)),r}function KI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setSeconds(i),r}function JI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(i),r)}function $c(e){dn(1,arguments);var t=hn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Yg(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ro(),u=sr((r=(i=(c=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&c!==void 0?c:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getDay(),p=(h2)return t;if(/:/.test(r[0])?i=r[0]:(t.date=r[0],i=r[1],zc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(zc.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){var c=zc.timezone.exec(i);c?(t.time=i.replace(c[1],""),t.timezone=c[1]):t.time=i}return t}function rF(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(r);if(!i)return{year:NaN,restDateString:""};var c=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?c:o*100,restDateString:e.slice((i[1]||i[2]).length)}}function aF(e,t){if(t===null)return new Date(NaN);var r=e.match(QI);if(!r)return new Date(NaN);var i=!!r[4],c=Rs(r[1]),o=Rs(r[2])-1,a=Rs(r[3]),n=Rs(r[4]),l=Rs(r[5])-1;if(i)return fF(t,n,l)?lF(t,n,l):new Date(NaN);var f=new Date(0);return!uF(t,o,a)||!cF(t,c)?new Date(NaN):(f.setUTCFullYear(t,o,Math.max(c,a)),f)}function Rs(e){return e?parseInt(e):1}function iF(e){var t=e.match(eF);if(!t)return NaN;var r=Gg(t[1]),i=Gg(t[2]),c=Gg(t[3]);return dF(r,i,c)?r*Fd+i*Id+c*1e3:NaN}function Gg(e){return e&&parseFloat(e.replace(",","."))||0}function oF(e){if(e==="Z")return 0;var t=e.match(tF);if(!t)return 0;var r=t[1]==="+"?-1:1,i=parseInt(t[2]),c=t[3]&&parseInt(t[3])||0;return hF(i,c)?r*(i*Fd+c*Id):NaN}function lF(e,t,r){var i=new Date(0);i.setUTCFullYear(e,0,4);var c=i.getUTCDay()||7,o=(t-1)*7+r+1-c;return i.setUTCDate(i.getUTCDate()+o),i}var sF=[31,null,31,30,31,30,31,31,30,31,30,31];function JS(e){return e%400===0||e%4===0&&e%100!==0}function uF(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(sF[t]||(JS(e)?29:28))}function cF(e,t){return t>=1&&t<=(JS(e)?366:365)}function fF(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function dF(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function hF(e,t){return t>=0&&t<=59}const pF=Object.freeze(Object.defineProperty({__proto__:null,default:KS},Symbol.toStringTag,{value:"Module"}));function gF(e,t){var r,i;dn(1,arguments);var c=hn(e);if(isNaN(c.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((i=t==null?void 0:t.representation)!==null&&i!==void 0?i:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var n="",l="",f=o==="extended"?"-":"",s=o==="extended"?":":"";if(a!=="time"){var u=Hn(c.getDate(),2),d=Hn(c.getMonth()+1,2),h=Hn(c.getFullYear(),4);n="".concat(h).concat(f).concat(d).concat(f).concat(u)}if(a!=="date"){var p=c.getTimezoneOffset();if(p!==0){var m=Math.abs(p),y=Hn(Math.floor(m/60),2),v=Hn(m%60,2),g=p<0?"+":"-";l="".concat(g).concat(y,":").concat(v)}else l="Z";var b=Hn(c.getHours(),2),x=Hn(c.getMinutes(),2),_=Hn(c.getSeconds(),2),w=n===""?"":"T",k=[b,x,_].join(s);n="".concat(n).concat(w).concat(k).concat(l)}return n}function mF(e,t){dn(2,arguments);var r=hn(e).getTime(),i=hn(t.start).getTime(),c=hn(t.end).getTime();if(!(i<=c))throw new RangeError("Invalid interval");return r>=i&&r<=c}var E0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(l,f){switch(l){case"P":return f.date({width:"short"});case"PP":return f.date({width:"medium"});case"PPP":return f.date({width:"long"});case"PPPP":default:return f.date({width:"full"})}},i=function(l,f){switch(l){case"p":return f.time({width:"short"});case"pp":return f.time({width:"medium"});case"ppp":return f.time({width:"long"});case"pppp":default:return f.time({width:"full"})}},c=function(l,f){var s=l.match(/(P+)(p+)?/)||[],u=s[1],d=s[2];if(!d)return r(l,f);var h;switch(u){case"P":h=f.dateTime({width:"short"});break;case"PP":h=f.dateTime({width:"medium"});break;case"PPP":h=f.dateTime({width:"long"});break;case"PPPP":default:h=f.dateTime({width:"full"});break}return h.replace("{{date}}",r(u,f)).replace("{{time}}",i(d,f))},o={p:i,P:c},a=o;t.default=a,e.exports=t.default})(E0,E0.exports);var vF=E0.exports;const QS=ir(vF),yF={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class bF{constructor({locale:t,formats:r}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var i;return this.locale?/a/.test((i=this.locale.formatLong)===null||i===void 0?void 0:i.time()):!0},this.getFormatHelperText=i=>{var c,o;const a=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,n=this.locale||jd;return(o=(c=i.match(a))===null||c===void 0?void 0:c.map(l=>{const f=l[0];if(f==="p"||f==="P"){const s=QS[f];return s(l,n.formatLong,{})}return l}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&o!==void 0?o:i},this.parseISO=i=>KS(i),this.toISO=i=>gF(i,{format:"extended"}),this.getCurrentLocaleCode=()=>{var i;return((i=this.locale)===null||i===void 0?void 0:i.code)||"en-US"},this.addSeconds=(i,c)=>yR(i,c),this.addMinutes=(i,c)=>xR(i,c),this.addHours=(i,c)=>_R(i,c),this.addDays=(i,c)=>O0(i,c),this.addWeeks=(i,c)=>TR(i,c),this.addMonths=(i,c)=>ff(i,c),this.addYears=(i,c)=>zw(i,c),this.isValid=i=>FS(this.date(i)),this.getDiff=(i,c,o)=>{var a;const n=(a=this.date(c))!==null&&a!==void 0?a:i;if(!this.isValid(n))return 0;switch(o){case"years":return MR(i,n);case"quarters":return AR(i,n);case"months":return LS(i,n);case"weeks":return ER(i,n);case"days":return IS(i,n);case"hours":return LR(i,n);case"minutes":return IR(i,n);case"seconds":return FR(i,n);default:return Nd(i,n)}},this.isAfter=(i,c)=>jc(i,c),this.isBefore=(i,c)=>il(i,c),this.startOfDay=i=>_l(i),this.endOfDay=i=>A0(i),this.getHours=i=>NL(i),this.setHours=(i,c)=>GI(i,c),this.setMinutes=(i,c)=>XI(i,c),this.getSeconds=i=>BL(i),this.setSeconds=(i,c)=>KI(i,c),this.isSameDay=(i,c)=>WL(i,c),this.isSameMonth=(i,c)=>HL(i,c),this.isSameYear=(i,c)=>UL(i,c),this.isSameHour=(i,c)=>VL(i,c),this.startOfYear=i=>Bc(i),this.endOfYear=i=>Hg(i),this.startOfMonth=i=>$c(i),this.endOfMonth=i=>P0(i),this.startOfWeek=i=>Yg(i,{locale:this.locale}),this.endOfWeek=i=>Ug(i,{locale:this.locale}),this.getYear=i=>zL(i),this.setYear=(i,c)=>JI(i,c),this.date=i=>typeof i>"u"?new Date:i===null?null:new Date(i),this.toJsDate=i=>i,this.parse=(i,c)=>i===""?null:HI(i,c,new Date,{locale:this.locale}),this.format=(i,c)=>this.formatByString(i,this.formats[c]),this.formatByString=(i,c)=>US(i,c,{locale:this.locale}),this.isEqual=(i,c)=>i===null&&c===null?!0:qL(i,c),this.isNull=i=>i===null,this.isAfterDay=(i,c)=>jc(i,A0(c)),this.isBeforeDay=(i,c)=>il(i,_l(c)),this.isBeforeYear=(i,c)=>il(i,Bc(c)),this.isAfterYear=(i,c)=>jc(i,Hg(c)),this.isWithinRange=(i,[c,o])=>mF(i,{start:c,end:o}),this.formatNumber=i=>i,this.getMinutes=i=>jL(i),this.getDate=i=>IL(i),this.setDate=(i,c)=>YI(i,c),this.getMonth=i=>$L(i),this.getDaysInMonth=i=>HS(i),this.setMonth=(i,c)=>ZI(i,c),this.getMeridiemText=i=>i==="am"?"AM":"PM",this.getNextMonth=i=>ff(i,1),this.getPreviousMonth=i=>ff(i,-1),this.getMonthArray=i=>{const o=[Bc(i)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(i,c)=>this.setSeconds(this.setMinutes(this.setHours(i,this.getHours(c)),this.getMinutes(c)),this.getSeconds(c)),this.getWeekdays=()=>{const i=new Date;return NR({start:Yg(i,{locale:this.locale}),end:Ug(i,{locale:this.locale})}).map(c=>this.formatByString(c,"EEEEEE"))},this.getWeekArray=i=>{const c=Yg($c(i),{locale:this.locale}),o=Ug(P0(i),{locale:this.locale});let a=0,n=c;const l=[];let f=null;for(;il(n,o);){const s=Math.floor(a/7);l[s]=l[s]||[];const u=FL(n);f!==u&&(f=u,l[s].push(n),a+=1),n=O0(n,1)}return l},this.getYearRange=(i,c)=>{const o=Bc(i),a=Hg(c),n=[];let l=o;for(;il(l,a);)n.push(l),l=zw(l,1);return n},this.locale=t,this.formats=Object.assign({},yF,r)}isBeforeMonth(t,r){return il(t,$c(r))}isAfterMonth(t,r){return jc(t,$c(r))}}const xF={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class wF extends bF{constructor(...t){super(...t),this.formatTokenMap=xF,this.expandFormat=r=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return r.match(i).map(c=>{const o=c[0];if(o==="p"||o==="P"){const a=QS[o],n=this.locale||jd;return a(c,n.formatLong,{})}return c}).join("")},this.getFormatHelperText=r=>this.expandFormat(r).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const _F=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:wF},Symbol.toStringTag,{value:"Module"})),e4=qn(_F);function t4(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(r)!==-1):e.indexOf(t)!==-1}const n4=(e,t)=>r=>{(r.key==="Enter"||r.key===" ")&&(e(r),r.preventDefault(),r.stopPropagation())},r4=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?r4(t.shadowRoot):t:null};function TF(e){return Tr("PrivatePickersMonth",e)}const R0=_r("PrivatePickersMonth",["root","selected"]),kF=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],MF=e=>{const{classes:t,selected:r}=e;return yr({root:["root",r&&"selected"]},TF,t)},SF=_n(Cr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${R0.selected}`]:t.selected}]})(({theme:e})=>Gt({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Pf(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${R0.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),Zw=()=>{},CF=e=>{const{disabled:t,onSelect:r,selected:i,value:c,tabIndex:o,hasFocus:a,onFocus:n=Zw,onBlur:l=Zw}=e,f=Vn(e,kF),s=MF(e),u=()=>{r(c)},d=$e.useRef(null);return Md(()=>{if(a){var h;(h=d.current)==null||h.focus()}},[a]),je.jsx(SF,Gt({ref:d,component:"button",type:"button",className:s.root,tabIndex:o,onClick:u,onKeyDown:n4(u),color:i?"primary":void 0,variant:i?"h5":"subtitle1",disabled:t,onFocus:h=>n(h,c),onBlur:h=>l(h,c)},f))},Rr=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Gt({},e)}}}}),OF={previousMonth:"Vorige maand",nextMonth:"Volgende maand",openPreviousView:"open vorige view",openNextView:"open volgende view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"jaarweergave is geopend, schakel over naar kalenderweergave":"kalenderweergave is geopend, switch naar jaarweergave",start:"Start",end:"Einde",cancelButtonLabel:"Annuleren",clearButtonLabel:"Resetten",okButtonLabel:"OK",todayButtonLabel:"Vandaag",clockLabelText:(e,t,r)=>`Selecteer ${e}. ${t===null?"Geen tijd geselecteerd":`Geselecteerde tijd is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} uren`,minutesClockNumberText:e=>`${e} minuten`,secondsClockNumberText:e=>`${e} seconden`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies datum, geselecteerde datum is ${t.format(t.date(e),"fullDate")}`:"Kies datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies tijd, geselecteerde tijd is ${t.format(t.date(e),"fullTime")}`:"Kies tijd",timeTableLabel:"kies tijd",dateTableLabel:"kies datum"},AF=Rr(OF),PF={previousMonth:"Poprzedni miesiąc",nextMonth:"Następny miesiąc",openPreviousView:"otwórz poprzedni widok",openNextView:"otwórz następny widok",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"otwarty jest widok roku, przełącz na widok kalendarza":"otwarty jest widok kalendarza, przełącz na widok roku",start:"Początek",end:"Koniec",cancelButtonLabel:"Anuluj",clearButtonLabel:"Wyczyść",okButtonLabel:"Zatwierdź",todayButtonLabel:"Dzisiaj",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Nie wybrano czasu":`Wybrany czas to ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} godzin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz datę, obecnie wybrana data to ${t.format(t.date(e),"fullDate")}`:"Wybierz datę",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz czas, obecnie wybrany czas to ${t.format(t.date(e),"fullTime")}`:"Wybierz czas",timeTableLabel:"wybierz czas",dateTableLabel:"wybierz datę"},DF=Rr(PF),EF={previousMonth:"Mês anterior",nextMonth:"Próximo mês",openPreviousView:"Abrir próxima seleção",openNextView:"Abrir seleção anterior",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Seleção de ano está aberta, alternando para seleção de calendário":"Seleção de calendários está aberta, alternando para seleção de ano",start:"Início",end:"Fim",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpar",okButtonLabel:"OK",todayButtonLabel:"Hoje",datePickerDefaultToolbarTitle:"Selecione a data",dateTimePickerDefaultToolbarTitle:"Selecione data e hora",timePickerDefaultToolbarTitle:"Selecione a hora",dateRangePickerDefaultToolbarTitle:"Selecione o intervalo entre datas",clockLabelText:(e,t,r)=>`Selecione ${e}. ${t===null?"Hora não selecionada":`Selecionado a hora ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma data, data selecionada ${t.format(t.date(e),"fullDate")}`:"Escolha uma data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma hora, hora selecionada ${t.format(t.date(e),"fullTime")}`:"Escolha uma hora",timeTableLabel:"escolha uma hora",dateTableLabel:"escolha uma data"},RF=Rr(EF),LF={previousMonth:"Önceki ay",nextMonth:"Sonraki ay",openPreviousView:"sonraki görünüm",openNextView:"önceki görünüm",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"yıl görünümü açık, takvim görünümüne geç":"takvim görünümü açık, yıl görünümüne geç",inputModeToggleButtonAriaLabel:(e,t)=>e?`metin girişi görünümü açık, şuraya gidin: ${t} görünümü`:`${t} görünüm açık, metin girişi görünümüne gidin`,start:"Başlangıç",end:"Bitiş",cancelButtonLabel:"iptal",clearButtonLabel:"Temizle",okButtonLabel:"Tamam",todayButtonLabel:"Bugün",datePickerDefaultToolbarTitle:"Tarih Seç",dateTimePickerDefaultToolbarTitle:"Tarih & Saat seç",timePickerDefaultToolbarTitle:"Saat seç",dateRangePickerDefaultToolbarTitle:"Tarih aralığı seçin",clockLabelText:(e,t,r)=>`${e} seç. ${t===null?"Zaman seçilmedi":`Seçilen zaman: ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} saat`,minutesClockNumberText:e=>`${e} dakika`,secondsClockNumberText:e=>`${e} saniye`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Tarih seçin, seçilen tarih: ${t.format(e,"fullDate")}`:"Tarih seç",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Saat seçin, seçilen saat: ${t.format(e,"fullTime")}`:"Saat seç",timeTableLabel:"saat seç",dateTableLabel:"tarih seç"},IF=Rr(LF),qc={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},Kw={calendar:"Kalenderansicht",clock:"Uhransicht"},FF={previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",openPreviousView:"Letzte Ansicht öffnen",openNextView:"Nächste Ansicht öffnen",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Jahresansicht ist geöffnet, zur Kalenderansicht wechseln":"Kalenderansicht ist geöffnet, zur Jahresansicht wechseln",inputModeToggleButtonAriaLabel:(e,t)=>e?`Texteingabeansicht ist geöffnet, zur ${Kw[t]} wechseln`:`${Kw[t]} ist geöffnet, zur Texteingabeansicht wechseln`,start:"Beginn",end:"Ende",cancelButtonLabel:"Abbrechen",clearButtonLabel:"Löschen",okButtonLabel:"OK",todayButtonLabel:"Heute",datePickerDefaultToolbarTitle:"Datum auswählen",dateTimePickerDefaultToolbarTitle:"Datum & Uhrzeit auswählen",timePickerDefaultToolbarTitle:"Uhrzeit auswählen",dateRangePickerDefaultToolbarTitle:"Datumsbereich auswählen",clockLabelText:(e,t,r)=>{var i;return`${(i=qc[e])!=null?i:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${qc.hours}`,minutesClockNumberText:e=>`${e} ${qc.minutes}`,secondsClockNumberText:e=>`${e} ${qc.seconds}`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Datum auswählen, gewähltes Datum ist ${t.format(t.date(e),"fullDate")}`:"Datum auswählen",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Uhrzeit auswählen, gewählte Uhrzeit ist ${t.format(t.date(e),"fullTime")}`:"Uhrzeit auswählen",timeTableLabel:"Uhrzeit auswählen",dateTableLabel:"Datum auswählen"},NF=Rr(FF),jF={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},$F={previousMonth:"Último mes",nextMonth:"Próximo mes",openPreviousView:"abrir la última vista",openNextView:"abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista del año está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista del año",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista de entrada de texto está abierta, ir a la vista ${t}`:`la vista ${t} está abierta, ir a la vista de entrada de texto`,start:"Empezar",end:"Terminar",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerDefaultToolbarTitle:"Seleccionar fecha",dateTimePickerDefaultToolbarTitle:"Seleccionar fecha & hora",timePickerDefaultToolbarTitle:"Seleccionar hora",dateRangePickerDefaultToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,r)=>`Seleccione ${jF[e]}. ${t===null?"Sin tiempo seleccionado":`El tiempo seleccionado es ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la fecha, la fecha elegida es ${t.format(t.date(e),"fullDate")}`:"Elige la fecha",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la hora, la hora elegido es ${t.format(t.date(e),"fullTime")}`:"Elige la hora",timeTableLabel:"elige la fecha",dateTableLabel:"elige la hora"},BF=Rr($F),zF={previousMonth:"ماه گذشته",nextMonth:"ماه آینده",openPreviousView:"نمای قبلی",openNextView:"نمای بعدی",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"نمای سال باز است، رفتن به نمای تقویم":"نمای تقویم باز است، رفتن به نمای سال",inputModeToggleButtonAriaLabel:(e,t)=>e?`نمای ورودی متن باز است، رفتن به نمای ${t}`:`نمای ${t} باز است، رفتن به نمای ورودی متن`,start:"شروع",end:"پایان",cancelButtonLabel:"لغو",clearButtonLabel:"پاک کردن",okButtonLabel:"اوکی",todayButtonLabel:"امروز",datePickerDefaultToolbarTitle:"تاریخ را انتخاب کنید",dateTimePickerDefaultToolbarTitle:"تاریخ و ساعت را انتخاب کنید",timePickerDefaultToolbarTitle:"ساعت را انتخاب کنید",dateRangePickerDefaultToolbarTitle:"محدوده تاریخ را انتخاب کنید",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"هیچ ساعتی انتخاب نشده است":`ساعت انتخاب ${r.format(t,"fullTime")} می باشد`}`,hoursClockNumberText:e=>`${e} ساعت ها`,minutesClockNumberText:e=>`${e} دقیقه ها`,secondsClockNumberText:e=>`${e} ثانیه ها`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`تاریخ را انتخاب کنید، تاریخ انتخاب شده ${t.format(t.date(e),"fullDate")} می باشد`:"تاریخ را انتخاب کنید",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`ساعت را انتخاب کنید، ساعت انتخاب شده ${t.format(t.date(e),"fullTime")} می باشد`:"ساعت را انتخاب کنید",timeTableLabel:"انتخاب تاریخ",dateTableLabel:"انتخاب ساعت"},qF=Rr(zF),WF={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},Jw={calendar:"kalenteri",clock:"kello"},UF={previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",openPreviousView:"avaa edellinen kuukausi",openNextView:"avaa seuraava kuukausi",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"vuosinäkymä on auki, vaihda kalenterinäkymään":"kalenterinäkymä on auki, vaihda vuosinäkymään",inputModeToggleButtonAriaLabel:(e,t)=>e?`tekstikenttä on auki, mene ${Jw[t]}näkymään`:`${Jw[t]}näkymä on auki, mene tekstikenttään`,start:"Alku",end:"Loppu",cancelButtonLabel:"Peruuta",clearButtonLabel:"Tyhjennä",okButtonLabel:"OK",todayButtonLabel:"Tänään",datePickerDefaultToolbarTitle:"Valitse päivä",dateTimePickerDefaultToolbarTitle:"Valitse päivä ja aika",timePickerDefaultToolbarTitle:"Valitse aika",dateRangePickerDefaultToolbarTitle:"Valitse aikaväli",clockLabelText:(e,t,r)=>`Valitse ${WF[e]}. ${t===null?"Ei aikaa valittuna":`Valittu aika on ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} tuntia`,minutesClockNumberText:e=>`${e} minuuttia`,secondsClockNumberText:e=>`${e} sekunttia`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse päivä, valittu päivä on ${t.format(t.date(e),"fullDate")}`:"Valitse päivä",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse aika, valittu aika on ${t.format(t.date(e),"fullTime")}`:"Valitse aika",timeTableLabel:"valitse aika",dateTableLabel:"valitse päivä"},HF=Rr(UF),VF={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},Qw={calendar:"kalendáře",clock:"času"},YF={previousMonth:"Další měsíc",nextMonth:"Předchozí month",openPreviousView:"otevřít předchozí zobrazení",openNextView:"otevřít další zobrazení",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"roční zobrazení otevřeno, přepněte do zobrazení kalendáře":"zobrazení kalendáře otevřeno, přepněte do zobrazení roku",inputModeToggleButtonAriaLabel:(e,t)=>e?`Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${Qw[t]}`:`Zobrazení ${Qw[t]} je otevřené, přepněte do zobrazení textového pole`,start:"Začátek",end:"Konec",cancelButtonLabel:"Zrušit",clearButtonLabel:"Vymazat",okButtonLabel:"Potvrdit",todayButtonLabel:"Dnes",datePickerDefaultToolbarTitle:"Vyberte datum",dateTimePickerDefaultToolbarTitle:"Vyberte datum a čas",timePickerDefaultToolbarTitle:"Vyberte čas",dateRangePickerDefaultToolbarTitle:"Vyberete rozmezí dat",clockLabelText:(e,t,r)=>{var i;return`${(i=VF[e])!=null?i:e} vybrány. ${t===null?"Není vybrán čas":`Vybraný čas je ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} hodin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané datum, vybrané datum je ${t.format(e,"fullDate")}`:"Vyberte datum",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané čas, vybraný čas je ${t.format(e,"fullTime")}`:"Vyberte čas",timeTableLabel:"vyberte čas",dateTableLabel:"vyberte datum"},GF=Rr(YF),XF={hours:"heures",minutes:"minutes",seconds:"secondes"},e_={calendar:"calendrier",clock:"horloge"},ZF={previousMonth:"Mois précédent",nextMonth:"Mois suivant",openPreviousView:"Ouvrir la vue précédente",openNextView:"Ouvrir la vue suivante",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"La vue année est ouverte, ouvrir la vue calendrier":"La vue calendrier est ouverte, ouvrir la vue année",inputModeToggleButtonAriaLabel:(e,t)=>e?`passer du champ text au ${e_[t]}`:`passer du ${e_[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,r)=>`Choix des ${XF[e]}. ${t===null?"Aucune heure choisie":`L'heure choisie est ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} heures`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} secondes`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir la date, la date sélectionnée est ${t.format(t.date(e),"fullDate")}`:"Choisir la date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir l'heure, l'heure sélectionnée est ${t.format(t.date(e),"fullTime")}`:"Choisir l'heure",timeTableLabel:"choix de l'heure",dateTableLabel:"choix de la date"},KF=Rr(ZF),Wc={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},t_={calendar:"naptár",clock:"óra"},JF={previousMonth:"Előző hónap",nextMonth:"Következő hónap",openPreviousView:"Előző nézet megnyitása",openNextView:"Következő nézet megnyitása",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"az évválasztó már nyitva, váltson a naptárnézetre":"a naptárnézet már nyitva, váltson az évválasztóra",inputModeToggleButtonAriaLabel:(e,t)=>e?`szöveges beviteli nézet aktív, váltás ${t_[t]} nézetre`:`${t_[t]} beviteli nézet aktív, váltás szöveges beviteli nézetre`,start:"Kezdő dátum",end:"Záró dátum",cancelButtonLabel:"Mégse",clearButtonLabel:"Törlés",okButtonLabel:"OK",todayButtonLabel:"Ma",datePickerDefaultToolbarTitle:"Dátum kiválasztása",dateTimePickerDefaultToolbarTitle:"Dátum és idő kiválasztása",timePickerDefaultToolbarTitle:"Idő kiválasztása",dateRangePickerDefaultToolbarTitle:"Dátumhatárok kiválasztása",clockLabelText:(e,t,r)=>{var i;return`${(i=Wc[e])!=null?i:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${Wc.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${Wc.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${Wc.seconds.toLowerCase()}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon dátumot, a kiválasztott dátum: ${t.format(e,"fullDate")}`:"Válasszon dátumot",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon időt, a kiválasztott idő: ${t.format(e,"fullTime")}`:"Válasszon időt",timeTableLabel:"válasszon időt",dateTableLabel:"válasszon dátumot"},QF=Rr(JF),a4={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},i4=a4,eN=Rr(a4),tN={previousMonth:"Forrige måned",nextMonth:"Neste måned",openPreviousView:"åpne forrige visning",openNextView:"åpne neste visning",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvisning er åpen, bytt til kalendervisning":"kalendervisning er åpen, bytt til årsvisning",start:"Start",end:"Slutt",cancelButtonLabel:"Avbryt",clearButtonLabel:"Fjern",okButtonLabel:"OK",todayButtonLabel:"I dag",clockLabelText:(e,t,r)=>`Velg ${e}. ${t===null?"Ingen tid valgt":`Valgt tid er ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timer`,minutesClockNumberText:e=>`${e} minutter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg dato, valgt dato er ${t.format(t.date(e),"fullDate")}`:"Velg dato",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg tid, valgt tid er ${t.format(t.date(e),"fullTime")}`:"Velg tid",timeTableLabel:"velg tid",dateTableLabel:"velg dato"},nN=Rr(tN),rN={previousMonth:"Föregående månad",nextMonth:"Nästa månad",openPreviousView:"öppna föregående vy",openNextView:"öppna nästa vy",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvyn är öppen, byt till kalendervy":"kalendervyn är öppen, byt till årsvy",start:"Start",end:"Slut",cancelButtonLabel:"Avbryt",clearButtonLabel:"Rensa",okButtonLabel:"OK",todayButtonLabel:"Idag",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Ingen tid vald":`Vald tid är ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timmar`,minutesClockNumberText:e=>`${e} minuter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj datum, valt datum är ${t.format(t.date(e),"fullDate")}`:"Välj datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj tid, vald tid är ${t.format(t.date(e),"fullTime")}`:"Välj tid",timeTableLabel:"välj tid",dateTableLabel:"välj datum"},aN=Rr(rN),iN={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},oN={previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista dell'anno è aperta, passare alla vista del calendario":"la vista dell'calendario è aperta, passare alla vista dell'anno",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista del campo di testo è aperta, passare alla vista ${t}`:`la vista aperta è: ${t}, vai alla vista del campo di testo`,start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerDefaultToolbarTitle:"Seleziona data",dateTimePickerDefaultToolbarTitle:"Seleziona data e orario",timePickerDefaultToolbarTitle:"Seleziona orario",dateRangePickerDefaultToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,r)=>`Seleziona ${iN[e]}. ${t===null?"Nessun orario selezionato":`L'ora selezionata è ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli la data, la data selezionata è ${t.format(t.date(e),"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli l'ora, l'ora selezionata è ${t.format(t.date(e),"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data"},lN=Rr(oN),sN={hours:"小时",minutes:"分钟",seconds:"秒"},uN={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,r)=>`Select ${sN[e]}. ${t===null?"未选择时间":`已选择${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e}小时`,minutesClockNumberText:e=>`${e}分钟`,secondsClockNumberText:e=>`${e}秒`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择日期,已选择${t.format(t.date(e),"fullDate")}`:"选择日期",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择时间,已选择${t.format(t.date(e),"fullTime")}`:"选择时间",timeTableLabel:"选择时间",dateTableLabel:"选择日期"},cN=Rr(uN),fN={hours:"시간을",minutes:"분을",seconds:"초를"},dN={previousMonth:"이전 달",nextMonth:"다음 달",openPreviousView:"이전 화면 보기",openNextView:"다음 화면 보기",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"연도 선택 화면에서 달력 화면으로 전환하기":"달력 화면에서 연도 선택 화면으로 전환하기",inputModeToggleButtonAriaLabel:(e,t)=>e?`텍스트 입력 화면에서 ${t} 화면으로 전환하기`:`${t} 화면에서 텍스트 입력 화면으로 전환하기`,start:"시작",end:"종료",cancelButtonLabel:"취소",clearButtonLabel:"초기화",okButtonLabel:"확인",todayButtonLabel:"오늘",datePickerDefaultToolbarTitle:"날짜 선택하기",dateTimePickerDefaultToolbarTitle:"날짜 & 시간 선택하기",timePickerDefaultToolbarTitle:"시간 선택하기",dateRangePickerDefaultToolbarTitle:"날짜 범위 선택하기",clockLabelText:(e,t,r)=>`${fN[e]} 선택하세요. ${t===null?"시간을 선택하지 않았습니다.":`현재 선택된 시간은 ${r.format(t,"fullTime")}입니다.`}`,hoursClockNumberText:e=>`${e}시간`,minutesClockNumberText:e=>`${e}분`,secondsClockNumberText:e=>`${e}초`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`날짜를 선택하세요. 현재 선택된 날짜는 ${t.format(t.date(e),"fullDate")}입니다.`:"날짜를 선택하세요",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`시간을 선택하세요. 현재 선택된 시간은 ${t.format(t.date(e),"fullTime")}입니다.`:"시간을 선택하세요",timeTableLabel:"선택한 시간",dateTableLabel:"선택한 날짜"},hN=Rr(dN),pN={previousMonth:"Fyrri mánuður",nextMonth:"Næsti mánuður",openPreviousView:"opna fyrri skoðun",openNextView:"opna næstu skoðun",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"ársskoðun er opin, skipta yfir í dagatalsskoðun":"dagatalsskoðun er opin, skipta yfir í ársskoðun",inputModeToggleButtonAriaLabel:(e,t)=>{const r=t==="calendar"?"dagatals":"klukku";return e?`textainnsláttur er opinn, fara í ${r}skoðun`:`${r}skoðun er opin, opna fyrir textainnslátt`},start:"Upphaf",end:"Endir",cancelButtonLabel:"Hætta við",clearButtonLabel:"Hreinsa",okButtonLabel:"OK",todayButtonLabel:"Í dag",datePickerDefaultToolbarTitle:"Velja dagsetningu",dateTimePickerDefaultToolbarTitle:"Velja dagsetningu og tíma",timePickerDefaultToolbarTitle:"Velja tíma",dateRangePickerDefaultToolbarTitle:"Velja tímabil",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Enginn tími valinn":`Valinn tími er ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} klukkustundir`,minutesClockNumberText:e=>`${e} mínútur`,secondsClockNumberText:e=>`${e} sekúndur`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja dagsetningu, valin dagsetning er ${t.format(t.date(e),"fullDate")}`:"Velja dagsetningu",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja tíma, valinn tími er ${t.format(t.date(e),"fullTime")}`:"Velja tíma",timeTableLabel:"velja tíma",dateTableLabel:"velja dagsetningu"},gN=Rr(pN),Uc={hours:"時間",minutes:"分",seconds:"秒"},n_={calendar:"カレンダー表示",clock:"時計表示"},mN={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${n_[t]}に切り替える`:`${n_[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,r)=>{var i;return`${(i=Uc[e])!=null?i:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${r.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${Uc.hours}`,minutesClockNumberText:e=>`${e} ${Uc.minutes}`,secondsClockNumberText:e=>`${e} ${Uc.seconds}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`日付を選択してください。選択した日付は ${t.format(e,"fullDate")} です`:"日付を選択してください",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`時間を選択してください。選択した時間は ${t.format(e,"fullTime")} です`:"時間を選択してください",timeTableLabel:"時間を選択",dateTableLabel:"日付を選択"},vN=Rr(mN),yN={previousMonth:"Попередній місяць",nextMonth:"Наступний місяць",openPreviousView:"відкрити попередній вигляд",openNextView:"відкрити наступний вигляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"річний вигляд відкрито, перейти до календарного вигляду":"календарний вигляд відкрито, перейти до річного вигляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`текстове поле відкрите, перейти до ${t} вигляду`:`${t} вигляд наразі відкрито, перейти до текстового поля`,start:"Початок",end:"Кінець",cancelButtonLabel:"Відміна",clearButtonLabel:"Очистити",okButtonLabel:"OK",todayButtonLabel:"Сьогодні",datePickerDefaultToolbarTitle:"Вибрати дату",dateTimePickerDefaultToolbarTitle:"Вибрати дату і час",timePickerDefaultToolbarTitle:"Вибрати час",dateRangePickerDefaultToolbarTitle:"Вибрати календарний період",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Час не вибраний":`Вибрано час ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} годин`,minutesClockNumberText:e=>`${e} хвилин`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть дату, обрана дата ${t.format(e,"fullDate")}`:"Оберіть дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть час, обраний час ${t.format(e,"fullTime")}`:"Оберіть час",timeTableLabel:"оберіть час",dateTableLabel:"оберіть дату"},bN=Rr(yN),xN={previousMonth:"پچھلا مہینہ",nextMonth:"اگلا مہینہ",openPreviousView:"پچھلا ویو کھولیں",openNextView:"اگلا ویو کھولیں",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں":"کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں",inputModeToggleButtonAriaLabel:(e,t)=>e?`،ٹیکسٹ ویو کھلا ہے ${t} ویو کھولیں`:`${t} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`,start:"شروع",end:"ختم",cancelButtonLabel:"کینسل",clearButtonLabel:"کلئیر",okButtonLabel:"اوکے",todayButtonLabel:"آج",datePickerDefaultToolbarTitle:"تاریخ منتخب کریں",dateTimePickerDefaultToolbarTitle:"تاریخ اور وقت منتخب کریں",timePickerDefaultToolbarTitle:"وقت منتخب کریں",dateRangePickerDefaultToolbarTitle:"تاریخوں کی رینج منتخب کریں",clockLabelText:(e,t,r)=>`${e} منتخب کریں ${t===null?"کوئی وقت منتخب نہیں":`منتخب وقت ہے ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} گھنٹے`,minutesClockNumberText:e=>`${e} منٹ`,secondsClockNumberText:e=>`${e} سیکنڈ`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${t.format(e,"fullDate")}`:"تاریخ منتخب کریں",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`وقت منتخب کریں، منتخب شدہ وقت ہے ${t.format(e,"fullTime")}`:"وقت منتخب کریں",timeTableLabel:"وقت منتخب کریں",dateTableLabel:"تاریخ منتخب کریں"},wN=Rr(xN),Xg={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},_N={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${Xg[t]}`:`Выгляд ${Xg[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,r)=>`Абярыце ${Xg[e]}. ${t===null?"Час не абраны":`Абраны час ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} гадзін`,minutesClockNumberText:e=>`${e} хвілін`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць дату, абрана дата ${t.format(e,"fullDate")}`:"Абраць дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць час, абрыны час ${t.format(e,"fullTime")}`:"Абраць час",timeTableLabel:"абраць час",dateTableLabel:"абраць дату"},TN=Rr(_N),kN={hours:"часы",minutes:"минуты",seconds:"секунды"},r_={calendar:"календарный",clock:"часовой"},MN={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${r_[t]} вид`:`Открыт ${r_[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,r)=>`Выбрать ${kN[e]}. ${t===null?"Время не выбрано":`Выбрано время ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату"},SN=Rr(MN),Cy=$e.createContext(null);function CN(e){const t=fr({props:e,name:"MuiLocalizationProvider"}),{children:r,dateAdapter:i,dateFormats:c,dateLibInstance:o,locale:a,adapterLocale:n,localeText:l}=t,f=$e.useMemo(()=>new i({locale:n??a,formats:c,instance:o}),[i,a,n,c,o]),s=$e.useMemo(()=>({minDate:f.date("1900-01-01T00:00:00.000"),maxDate:f.date("2099-12-31T00:00:00.000")}),[f]),u=$e.useMemo(()=>({utils:f,defaultDates:s,localeText:Gt({},i4,l??{})}),[s,f,l]);return je.jsx(Cy.Provider,{value:u,children:r})}const ec=()=>{const e=$e.useContext(Cy);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},br=()=>ec().utils,tc=()=>ec().defaultDates,ei=()=>ec().localeText,nc=()=>{const e=br();return $e.useRef(e.date()).current};function o4(e){return Tr("MuiMonthPicker",e)}const ON=_r("MuiMonthPicker",["root"]),_u=({date:e,disableFuture:t,disablePast:r,maxDate:i,minDate:c,isDateDisabled:o,utils:a})=>{const n=a.startOfDay(a.date());r&&a.isBefore(c,n)&&(c=n),t&&a.isAfter(i,n)&&(i=n);let l=e,f=e;for(a.isBefore(e,c)&&(l=a.date(c),f=null),a.isAfter(e,i)&&(f&&(f=a.date(i)),l=null);l||f;){if(l&&a.isAfter(l,i)&&(l=null),f&&a.isBefore(f,c)&&(f=null),l){if(!o(l))return l;l=a.addDays(l,1)}if(f){if(!o(f))return f;f=a.addDays(f,-1)}}return null},Oy=(e,t)=>{const r=e.date(t);return e.isValid(r)?r:null},Ha=(e,t,r)=>{if(t==null)return r;const i=e.date(t);return e.isValid(i)?i:r},AN=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],PN=e=>{const{classes:t}=e;return yr({root:["root"]},o4,t)};function DN(e,t){const r=br(),i=tc(),c=fr({props:e,name:t});return Gt({disableFuture:!1,disablePast:!1},c,{minDate:Ha(r,c.minDate,i.minDate),maxDate:Ha(r,c.maxDate,i.maxDate)})}const EN=_n("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),l4=$e.forwardRef(function(t,r){const i=br(),c=nc(),o=DN(t,"MuiMonthPicker"),{className:a,date:n,disabled:l,disableFuture:f,disablePast:s,maxDate:u,minDate:d,onChange:h,shouldDisableMonth:p,readOnly:m,disableHighlightToday:y,autoFocus:v=!1,onMonthFocus:g,hasFocus:b,onFocusedViewChange:x}=o,_=Vn(o,AN),w=o,k=PN(w),T=_9(),M=$e.useMemo(()=>n??i.startOfMonth(c),[c,i,n]),S=$e.useMemo(()=>n!=null?i.getMonth(n):y?null:i.getMonth(c),[c,n,i,y]),[C,P]=$e.useState(()=>S||i.getMonth(c)),D=$e.useCallback(E=>{const W=i.startOfMonth(s&&i.isAfter(c,d)?c:d),G=i.startOfMonth(f&&i.isBefore(c,u)?c:u);return i.isBefore(E,W)||i.isAfter(E,G)?!0:p?p(E):!1},[f,s,u,d,c,p,i]),O=E=>{if(m)return;const W=i.setMonth(M,E);h(W,"finish")},[R,F]=Sd({name:"MonthPicker",state:"hasFocus",controlled:b,default:v}),A=$e.useCallback(E=>{F(E),x&&x(E)},[F,x]),z=$e.useCallback(E=>{D(i.setMonth(M,E))||(P(E),A(!0),g&&g(E))},[D,i,M,A,g]);$e.useEffect(()=>{P(E=>S!==null&&E!==S?S:E)},[S]);const B=Cd(E=>{switch(E.key){case"ArrowUp":z((12+C-3)%12),E.preventDefault();break;case"ArrowDown":z((12+C+3)%12),E.preventDefault();break;case"ArrowLeft":z((12+C+(T.direction==="ltr"?-1:1))%12),E.preventDefault();break;case"ArrowRight":z((12+C+(T.direction==="ltr"?1:-1))%12),E.preventDefault();break}}),$=$e.useCallback((E,W)=>{z(W)},[z]),j=$e.useCallback(()=>{A(!1)},[A]),N=i.getMonth(c);return je.jsx(EN,Gt({ref:r,className:jr(k.root,a),ownerState:w,onKeyDown:B},_,{children:i.getMonthArray(M).map(E=>{const W=i.getMonth(E),G=i.format(E,"monthShort"),L=l||D(E);return je.jsx(CF,{value:W,selected:W===S,tabIndex:W===C&&!L?0:-1,hasFocus:R&&W===C,onSelect:O,onFocus:$,onBlur:j,disabled:L,"aria-current":N===W?"date":void 0,children:G},G)})}))});function Ay(e,t,r){const{value:i,onError:c}=e,o=ec(),a=$e.useRef(null),n=t({adapter:o,value:i,props:e});return $e.useEffect(()=>{c&&!r(n,a.current)&&c(n,i),a.current=n},[r,c,a,n,i]),n}const Py=({props:e,value:t,adapter:r})=>{const i=r.utils.date(),c=r.utils.date(t),o=Ha(r.utils,e.minDate,r.defaultDates.minDate),a=Ha(r.utils,e.maxDate,r.defaultDates.maxDate);if(c===null)return null;switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(c)):return"shouldDisableDate";case!!(e.disableFuture&&r.utils.isAfterDay(c,i)):return"disableFuture";case!!(e.disablePast&&r.utils.isBeforeDay(c,i)):return"disablePast";case!!(o&&r.utils.isBeforeDay(c,o)):return"minDate";case!!(a&&r.utils.isAfterDay(c,a)):return"maxDate";default:return null}},s4=({shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:c})=>{const o=ec();return $e.useCallback(a=>Py({adapter:o,value:a,props:{shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:c}})!==null,[o,e,t,r,i,c])},RN=(e,t)=>e===t,Dy=e=>Ay(e,Py,RN),LN=(e,t,r)=>(i,c)=>{switch(c.type){case"changeMonth":return Gt({},i,{slideDirection:c.direction,currentMonth:c.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Gt({},i,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(i.focusedDay!=null&&c.focusedDay!=null&&r.isSameDay(c.focusedDay,i.focusedDay))return i;const o=c.focusedDay!=null&&!t&&!r.isSameMonth(i.currentMonth,c.focusedDay);return Gt({},i,{focusedDay:c.focusedDay,isMonthSwitchingAnimating:o&&!e&&!c.withoutMonthSwitchingAnimation,currentMonth:o?r.startOfMonth(c.focusedDay):i.currentMonth,slideDirection:c.focusedDay!=null&&r.isAfterDay(c.focusedDay,i.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},IN=({date:e,defaultCalendarMonth:t,disableFuture:r,disablePast:i,disableSwitchToMonthOnDayFocus:c=!1,maxDate:o,minDate:a,onMonthChange:n,reduceAnimations:l,shouldDisableDate:f})=>{var s;const u=nc(),d=br(),h=$e.useRef(LN(!!l,c,d)).current,[p,m]=$e.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:e||u,currentMonth:d.startOfMonth((s=e??t)!=null?s:u),slideDirection:"left"}),y=$e.useCallback(_=>{m(Gt({type:"changeMonth"},_)),n&&n(_.newMonth)},[n]),v=$e.useCallback(_=>{const w=_??u;d.isSameMonth(w,p.currentMonth)||y({newMonth:d.startOfMonth(w),direction:d.isAfterDay(w,p.currentMonth)?"left":"right"})},[p.currentMonth,y,u,d]),g=s4({shouldDisableDate:f,minDate:a,maxDate:o,disableFuture:r,disablePast:i}),b=$e.useCallback(()=>{m({type:"finishMonthSwitchingAnimation"})},[]),x=$e.useCallback((_,w)=>{g(_)||m({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:w})},[g]);return{calendarState:p,changeMonth:v,changeFocusedDay:x,isDateDisabled:g,onMonthSwitchingAnimationEnd:b,handleChangeMonth:y}},FN=e=>Tr("MuiPickersFadeTransitionGroup",e),NN=_r("MuiPickersFadeTransitionGroup",["root"]),jN=e=>{const{classes:t}=e;return yr({root:["root"]},FN,t)},a_=500,$N=_n(aS,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function u4(e){const t=fr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:r,className:i,reduceAnimations:c,transKey:o}=t,a=jN(t);return c?r:je.jsx($N,{className:jr(a.root,i),children:je.jsx(iS,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a_,enter:a_/2,exit:0},children:r},o)})}const Cu=36,rc=2,Ey=320,BN=358;function c4(e){return Tr("MuiPickersDay",e)}const vu=_r("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),zN=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],qN=e=>{const{selected:t,disableMargin:r,disableHighlightToday:i,today:c,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:n,classes:l}=e;return yr({root:["root",t&&"selected",o&&"disabled",!r&&"dayWithMargin",!i&&c&&"today",a&&n&&"dayOutsideMonth",a&&!n&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},c4,l)},f4=({theme:e,ownerState:t})=>Gt({},e.typography.caption,{width:Cu,height:Cu,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:Pf(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:Pf(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${vu.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${vu.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${vu.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${rc}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${vu.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),d4=(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableMargin&&t.dayWithMargin,!r.disableHighlightToday&&r.today&&t.today,!r.outsideCurrentMonth&&r.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,r.outsideCurrentMonth&&!r.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},WN=_n(T9,{name:"MuiPickersDay",slot:"Root",overridesResolver:d4})(f4),UN=_n("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:d4})(({theme:e,ownerState:t})=>Gt({},f4({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Zg=()=>{},HN=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersDay"}),{autoFocus:c=!1,className:o,day:a,disabled:n=!1,disableHighlightToday:l=!1,disableMargin:f=!1,isAnimating:s,onClick:u,onDaySelect:d,onFocus:h=Zg,onBlur:p=Zg,onKeyDown:m=Zg,onMouseDown:y,outsideCurrentMonth:v,selected:g=!1,showDaysOutsideCurrentMonth:b=!1,children:x,today:_=!1}=i,w=Vn(i,zN),k=Gt({},i,{autoFocus:c,disabled:n,disableHighlightToday:l,disableMargin:f,selected:g,showDaysOutsideCurrentMonth:b,today:_}),T=qN(k),M=br(),S=$e.useRef(null),C=xl(S,r);Md(()=>{c&&!n&&!s&&!v&&S.current.focus()},[c,n,s,v]);const P=O=>{y&&y(O),v&&O.preventDefault()},D=O=>{n||d(a,"finish"),v&&O.currentTarget.focus(),u&&u(O)};return v&&!b?je.jsx(UN,{className:jr(T.root,T.hiddenDaySpacingFiller,o),ownerState:k,role:w.role}):je.jsx(WN,Gt({className:jr(T.root,o),ownerState:k,ref:C,centerRipple:!0,disabled:n,tabIndex:g?0:-1,onKeyDown:O=>m(O,a),onFocus:O=>h(O,a),onBlur:O=>p(O,a),onClick:D,onMouseDown:P},w,{children:x||M.format(a,"dayOfMonth")}))}),VN=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,h4=$e.memo(HN,VN),YN=e=>Tr("PrivatePickersSlideTransition",e),ua=_r("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),GN=["children","className","reduceAnimations","slideDirection","transKey"],XN=e=>{const{classes:t}=e;return yr({root:["root"]},YN,t)},p4=350,ZN=_n(aS,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ua["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ua["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ua.slideEnterActive}`]:t.slideEnterActive},{[`.${ua.slideExit}`]:t.slideExit},{[`.${ua["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ua["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:p4,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ua["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ua["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ua.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ua.slideExit}`]:{transform:"translate(0%)"},[`& .${ua["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ua["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),KN=e=>{const{children:t,className:r,reduceAnimations:i,slideDirection:c,transKey:o}=e,a=Vn(e,GN),n=XN(e);if(i)return je.jsx("div",{className:jr(n.root,r),children:t});const l={exit:ua.slideExit,enterActive:ua.slideEnterActive,enter:ua[`slideEnter-${c}`],exitActive:ua[`slideExitActiveLeft-${c}`]};return je.jsx(ZN,{className:jr(n.root,r),childFactory:f=>$e.cloneElement(f,{classNames:l}),role:"presentation",children:je.jsx(k9,Gt({mountOnEnter:!0,unmountOnExit:!0,timeout:p4,classNames:l},a,{children:t}),o)})},JN=e=>Tr("MuiDayPicker",e),QN=_r("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),ej=e=>{const{classes:t}=e;return yr({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},JN,t)},tj=e=>e.charAt(0).toUpperCase(),g4=(Cu+rc*2)*6,nj=_n("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),rj=_n(Cr,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),aj=_n("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:g4}),ij=_n(KN,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:g4}),oj=_n("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),lj=_n("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${rc}px 0`,display:"flex",justifyContent:"center"});function sj(e){const t=nc(),r=br(),i=fr({props:e,name:"MuiDayPicker"}),c=ej(i),{onFocusedDayChange:o,className:a,currentMonth:n,selectedDays:l,disabled:f,disableHighlightToday:s,focusedDay:u,isMonthSwitchingAnimating:d,loading:h,onSelectedDaysChange:p,onMonthSwitchingAnimationEnd:m,readOnly:y,reduceAnimations:v,renderDay:g,renderLoading:b=()=>je.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:x,slideDirection:_,TransitionProps:w,disablePast:k,disableFuture:T,minDate:M,maxDate:S,shouldDisableDate:C,dayOfWeekFormatter:P=tj,hasFocus:D,onFocusedViewChange:O,gridLabelId:R}=i,F=s4({shouldDisableDate:C,minDate:M,maxDate:S,disablePast:k,disableFuture:T}),[A,z]=$e.useState(()=>u||t),B=$e.useCallback(U=>{O&&O(U)},[O]),$=$e.useCallback((U,Q="finish")=>{y||p(U,Q)},[p,y]),j=$e.useCallback(U=>{F(U)||(o(U),z(U),B(!0))},[F,o,B]),N=Od();function E(U,Q){switch(U.key){case"ArrowUp":j(r.addDays(Q,-7)),U.preventDefault();break;case"ArrowDown":j(r.addDays(Q,7)),U.preventDefault();break;case"ArrowLeft":{const Y=r.addDays(Q,N.direction==="ltr"?-1:1),Z=N.direction==="ltr"?r.getPreviousMonth(Q):r.getNextMonth(Q),X=_u({utils:r,date:Y,minDate:N.direction==="ltr"?r.startOfMonth(Z):Y,maxDate:N.direction==="ltr"?Y:r.endOfMonth(Z),isDateDisabled:F});j(X||Y),U.preventDefault();break}case"ArrowRight":{const Y=r.addDays(Q,N.direction==="ltr"?1:-1),Z=N.direction==="ltr"?r.getNextMonth(Q):r.getPreviousMonth(Q),X=_u({utils:r,date:Y,minDate:N.direction==="ltr"?Y:r.startOfMonth(Z),maxDate:N.direction==="ltr"?r.endOfMonth(Z):Y,isDateDisabled:F});j(X||Y),U.preventDefault();break}case"Home":j(r.startOfWeek(Q)),U.preventDefault();break;case"End":j(r.endOfWeek(Q)),U.preventDefault();break;case"PageUp":j(r.getNextMonth(Q)),U.preventDefault();break;case"PageDown":j(r.getPreviousMonth(Q)),U.preventDefault();break}}function W(U,Q){j(Q)}function G(U,Q){D&&r.isSameDay(A,Q)&&B(!1)}const L=r.getMonth(n),q=l.filter(U=>!!U).map(U=>r.startOfDay(U)),H=L,V=$e.useMemo(()=>$e.createRef(),[H]),te=r.startOfWeek(t),ee=$e.useMemo(()=>{const U=r.startOfMonth(n),Q=r.endOfMonth(n);return F(A)||r.isAfterDay(A,Q)||r.isBeforeDay(A,U)?_u({utils:r,date:A,minDate:U,maxDate:Q,disablePast:k,disableFuture:T,isDateDisabled:F}):A},[n,T,k,A,F,r]);return je.jsxs("div",{role:"grid","aria-labelledby":R,children:[je.jsx(nj,{role:"row",className:c.header,children:r.getWeekdays().map((U,Q)=>{var Y;return je.jsx(rj,{variant:"caption",role:"columnheader","aria-label":r.format(r.addDays(te,Q),"weekday"),className:c.weekDayLabel,children:(Y=P==null?void 0:P(U))!=null?Y:U},U+Q.toString())})}),h?je.jsx(aj,{className:c.loadingContainer,children:b()}):je.jsx(ij,Gt({transKey:H,onExited:m,reduceAnimations:v,slideDirection:_,className:jr(a,c.slideTransition)},w,{nodeRef:V,children:je.jsx(oj,{ref:V,role:"rowgroup",className:c.monthContainer,children:r.getWeekArray(n).map(U=>je.jsx(lj,{role:"row",className:c.weekContainer,children:U.map(Q=>{const Y=ee!==null&&r.isSameDay(Q,ee),Z=q.some(ie=>r.isSameDay(ie,Q)),X=r.isSameDay(Q,t),re={key:Q==null?void 0:Q.toString(),day:Q,isAnimating:d,disabled:f||F(Q),autoFocus:D&&Y,today:X,outsideCurrentMonth:r.getMonth(Q)!==L,selected:Z,disableHighlightToday:s,showDaysOutsideCurrentMonth:x,onKeyDown:E,onFocus:W,onBlur:G,onDaySelect:$,tabIndex:Y?0:-1,role:"gridcell","aria-selected":Z};return X&&(re["aria-current"]="date"),g?g(Q,q,re):$e.createElement(h4,Gt({},re,{key:re.key}))})},`week-${U[0]}`))})}))]})}function Ry({onChange:e,onViewChange:t,openTo:r,view:i,views:c}){var o,a;const[n,l]=Sd({name:"Picker",state:"view",controlled:i,default:r&&yo(c,r)?r:c[0]}),f=(o=c[c.indexOf(n)-1])!=null?o:null,s=(a=c[c.indexOf(n)+1])!=null?a:null,u=$e.useCallback(p=>{l(p),t&&t(p)},[l,t]),d=$e.useCallback(()=>{s&&u(s)},[s,u]);return{handleChangeAndOpenNext:$e.useCallback((p,m)=>{const y=m==="finish";e(p,y&&s?"partial":m),y&&d()},[s,e,d]),nextView:s,previousView:f,openNext:d,openView:n,setOpenView:u}}const uj=no(je.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),cj=no(je.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),fj=no(je.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),m4=no(je.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),v4=no(je.jsxs($e.Fragment,{children:[je.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),je.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),dj=no(je.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),hj=no(je.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),pj=no(je.jsxs($e.Fragment,{children:[je.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),je.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function gj(e){return Tr("MuiPickersArrowSwitcher",e)}_r("MuiPickersArrowSwitcher",["root","spacer","button"]);const mj=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],vj=e=>{const{classes:t}=e;return yr({root:["root"],spacer:["spacer"],button:["button"]},gj,t)},yj=_n("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),bj=_n("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),i_=_n(Fl,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Gt({},e.hidden&&{visibility:"hidden"})),y4=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:o,components:a,componentsProps:n,isLeftDisabled:l,isLeftHidden:f,isRightDisabled:s,isRightHidden:u,leftArrowButtonText:d,onLeftClick:h,onRightClick:p,rightArrowButtonText:m}=i,y=Vn(i,mj),g=Od().direction==="rtl",b=(n==null?void 0:n.leftArrowButton)||{},x=(a==null?void 0:a.LeftArrowIcon)||cj,_=(n==null?void 0:n.rightArrowButton)||{},w=(a==null?void 0:a.RightArrowIcon)||fj,k=i,T=vj(k);return je.jsxs(yj,Gt({ref:r,className:jr(T.root,o),ownerState:k},y,{children:[je.jsx(i_,Gt({as:a==null?void 0:a.LeftArrowButton,size:"small","aria-label":d,title:d,disabled:l,edge:"end",onClick:h},b,{className:jr(T.button,b.className),ownerState:Gt({},k,b,{hidden:f}),children:g?je.jsx(w,{}):je.jsx(x,{})})),c?je.jsx(Cr,{variant:"subtitle1",component:"span",children:c}):je.jsx(bj,{className:T.spacer,ownerState:k}),je.jsx(i_,Gt({as:a==null?void 0:a.RightArrowButton,size:"small","aria-label":m,title:m,edge:"start",disabled:s,onClick:p},_,{className:jr(T.button,_.className),ownerState:Gt({},k,_,{hidden:u}),children:g?je.jsx(x,{}):je.jsx(w,{})}))]}))}),xj=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,L0=(e,t,r)=>r&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,wj=(e,t,r,i)=>{const c=L0(i.getHours(e),t,r);return i.setHours(e,c)},o_=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),b4=(e=!1,t)=>(r,i)=>e?t.isAfter(r,i):o_(r,t)>o_(i,t);function _j(e,{disableFuture:t,maxDate:r}){const i=br();return $e.useMemo(()=>{const c=i.date(),o=i.startOfMonth(t&&i.isBefore(c,r)?c:r);return!i.isAfter(o,e)},[t,r,e,i])}function Tj(e,{disablePast:t,minDate:r}){const i=br();return $e.useMemo(()=>{const c=i.date(),o=i.startOfMonth(t&&i.isAfter(c,r)?c:r);return!i.isBefore(o,e)},[t,r,e,i])}function x4(e,t,r){const i=br(),c=xj(e,i),o=$e.useCallback(a=>{const n=e==null?null:wj(e,a,!!t,i);r(n,"partial")},[t,e,r,i]);return{meridiemMode:c,handleMeridiemChange:o}}const w4=e=>()=>{},kj=e=>Tr("MuiPickersCalendarHeader",e),Mj=_r("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Sj=e=>{const{classes:t}=e;return yr({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},kj,t)},Cj=_n("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Oj=_n("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Gt({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Aj=_n("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Pj=_n(Fl,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),Dj=_n(uj,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>Gt({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),Ej=w4();function Rj(e){const t=fr({props:e,name:"MuiPickersCalendarHeader"}),{components:r={},componentsProps:i={},currentMonth:c,disabled:o,disableFuture:a,disablePast:n,getViewSwitchingButtonText:l,leftArrowButtonText:f,maxDate:s,minDate:u,onMonthChange:d,onViewChange:h,openView:p,reduceAnimations:m,rightArrowButtonText:y,views:v,labelId:g}=t;Ej({leftArrowButtonText:f,rightArrowButtonText:y,getViewSwitchingButtonText:l});const b=ei(),x=f??b.previousMonth,_=y??b.nextMonth,w=l??b.calendarViewSwitchingButtonAriaLabel,k=br(),T=Sj(t),M=i.switchViewButton||{},S=()=>d(k.getNextMonth(c),"left"),C=()=>d(k.getPreviousMonth(c),"right"),P=_j(c,{disableFuture:a,maxDate:s}),D=Tj(c,{disablePast:n,minDate:u}),O=()=>{if(!(v.length===1||!h||o))if(v.length===2)h(v.find(F=>F!==p)||v[0]);else{const F=v.indexOf(p)!==0?0:1;h(v[F])}};if(v.length===1&&v[0]==="year")return null;const R=t;return je.jsxs(Cj,{ownerState:R,className:T.root,children:[je.jsxs(Oj,{role:"presentation",onClick:O,ownerState:R,"aria-live":"polite",className:T.labelContainer,children:[je.jsx(u4,{reduceAnimations:m,transKey:k.format(c,"monthAndYear"),children:je.jsx(Aj,{id:g,ownerState:R,className:T.label,children:k.format(c,"monthAndYear")})}),v.length>1&&!o&&je.jsx(Pj,Gt({size:"small",as:r.SwitchViewButton,"aria-label":w(p),className:T.switchViewButton},M,{children:je.jsx(Dj,{as:r.SwitchViewIcon,ownerState:R,className:T.switchViewIcon})}))]}),je.jsx(iS,{in:p==="day",children:je.jsx(y4,{leftArrowButtonText:x,rightArrowButtonText:_,components:r,componentsProps:i,onLeftClick:C,onRightClick:S,isLeftDisabled:D,isRightDisabled:P})})]})}const Pi=$e.createContext(null);function Lj(e){return Tr("PrivatePickersYear",e)}const wo=_r("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),Ij=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],Fj=e=>{const{wrapperVariant:t,disabled:r,selected:i,classes:c}=e,o={root:["root",t&&`mode${M9(t)}`],yearButton:["yearButton",r&&"disabled",i&&"selected"]};return yr(o,Lj,c)},Nj=_n("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${wo.modeDesktop}`]:t.modeDesktop},{[`&.${wo.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Gt({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),jj=_n("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${wo.disabled}`]:t.disabled},{[`&.${wo.selected}`]:t.selected}]})(({theme:e})=>Gt({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Pf(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${wo.disabled}`]:{color:e.palette.text.secondary},[`&.${wo.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),l_=()=>{},$j=$e.forwardRef(function(t,r){const{autoFocus:i,className:c,children:o,disabled:a,onClick:n,onKeyDown:l,value:f,tabIndex:s,onFocus:u=l_,onBlur:d=l_}=t,h=Vn(t,Ij),p=$e.useRef(null),m=xl(p,r),y=$e.useContext(Pi),v=Gt({},t,{wrapperVariant:y}),g=Fj(v);return $e.useEffect(()=>{i&&p.current.focus()},[i]),je.jsx(Nj,{className:jr(g.root,c),ownerState:v,children:je.jsx(jj,Gt({ref:m,disabled:a,type:"button",tabIndex:a?-1:s,onClick:b=>n(b,f),onKeyDown:b=>l(b,f),onFocus:b=>u(b,f),onBlur:b=>d(b,f),className:g.yearButton,ownerState:v},h,{children:o}))})});function _4(e){return Tr("MuiYearPicker",e)}const Bj=_r("MuiYearPicker",["root"]),zj=e=>{const{classes:t}=e;return yr({root:["root"]},_4,t)};function qj(e,t){const r=br(),i=tc(),c=fr({props:e,name:t});return Gt({disablePast:!1,disableFuture:!1},c,{minDate:Ha(r,c.minDate,i.minDate),maxDate:Ha(r,c.maxDate,i.maxDate)})}const Wj=_n("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),T4=$e.forwardRef(function(t,r){const i=nc(),c=Od(),o=br(),a=qj(t,"MuiYearPicker"),{autoFocus:n,className:l,date:f,disabled:s,disableFuture:u,disablePast:d,maxDate:h,minDate:p,onChange:m,readOnly:y,shouldDisableYear:v,disableHighlightToday:g,onYearFocus:b,hasFocus:x,onFocusedViewChange:_}=a,w=a,k=zj(w),T=$e.useMemo(()=>f??o.startOfYear(i),[i,o,f]),M=$e.useMemo(()=>f!=null?o.getYear(f):g?null:o.getYear(i),[i,f,o,g]),S=$e.useContext(Pi),C=$e.useRef(null),[P,D]=$e.useState(()=>M||o.getYear(i)),[O,R]=Sd({name:"YearPicker",state:"hasFocus",controlled:x,default:n}),F=$e.useCallback(q=>{R(q),_&&_(q)},[R,_]),A=$e.useCallback(q=>!!(d&&o.isBeforeYear(q,i)||u&&o.isAfterYear(q,i)||p&&o.isBeforeYear(q,p)||h&&o.isAfterYear(q,h)||v&&v(q)),[u,d,h,p,i,v,o]),z=(q,H,V="finish")=>{if(y)return;const te=o.setYear(T,H);m(te,V)},B=$e.useCallback(q=>{A(o.setYear(T,q))||(D(q),F(!0),b==null||b(q))},[A,o,T,F,b]);$e.useEffect(()=>{D(q=>M!==null&&q!==M?M:q)},[M]);const $=S==="desktop"?4:3,j=$e.useCallback((q,H)=>{switch(q.key){case"ArrowUp":B(H-$),q.preventDefault();break;case"ArrowDown":B(H+$),q.preventDefault();break;case"ArrowLeft":B(H+(c.direction==="ltr"?-1:1)),q.preventDefault();break;case"ArrowRight":B(H+(c.direction==="ltr"?1:-1)),q.preventDefault();break}},[B,c.direction,$]),N=$e.useCallback((q,H)=>{B(H)},[B]),E=$e.useCallback((q,H)=>{P===H&&F(!1)},[P,F]),W=o.getYear(i),G=$e.useRef(null),L=xl(r,G);return $e.useEffect(()=>{if(n||G.current===null)return;const q=G.current.querySelector('[tabindex="0"]');if(!q)return;const H=q.offsetHeight,V=q.offsetTop,te=G.current.clientHeight,ee=G.current.scrollTop,U=V+H;H>te||V{const H=o.getYear(q),V=H===M;return je.jsx($j,{selected:V,value:H,onClick:z,onKeyDown:j,autoFocus:O&&H===P,ref:V?C:void 0,disabled:s||A(q),tabIndex:H===P?0:-1,onFocus:N,onBlur:E,"aria-current":W===H?"date":void 0,children:o.format(q,"year")},o.format(q,"year"))})})}),Ly=_n("div")({overflowX:"hidden",width:Ey,maxHeight:BN,display:"flex",flexDirection:"column",margin:"0 auto"}),Uj=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),k4=e=>Tr("MuiCalendarPicker",e),Hj=_r("MuiCalendarPicker",["root","viewTransitionContainer"]),Vj=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"],Yj=e=>{const{classes:t}=e;return yr({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},k4,t)};function Gj(e,t){const r=br(),i=tc(),c=fr({props:e,name:t});return Gt({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:Uj,renderLoading:()=>je.jsx("span",{children:"..."})},c,{minDate:Ha(r,c.minDate,i.minDate),maxDate:Ha(r,c.maxDate,i.maxDate)})}const Xj=_n(Ly,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),Zj=_n(u4,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),M4=$e.forwardRef(function(t,r){const i=br(),c=oS(),o=Gj(t,"MuiCalendarPicker"),{autoFocus:a,onViewChange:n,date:l,disableFuture:f,disablePast:s,defaultCalendarMonth:u,onChange:d,onYearChange:h,onMonthChange:p,reduceAnimations:m,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:g,view:b,views:x,openTo:_,className:w,disabled:k,readOnly:T,minDate:M,maxDate:S,disableHighlightToday:C,focusedView:P,onFocusedViewChange:D}=o,O=Vn(o,Vj),{openView:R,setOpenView:F,openNext:A}=Ry({view:b,views:x,openTo:_,onChange:d,onViewChange:n}),{calendarState:z,changeFocusedDay:B,changeMonth:$,handleChangeMonth:j,isDateDisabled:N,onMonthSwitchingAnimationEnd:E}=IN({date:l,defaultCalendarMonth:u,reduceAnimations:m,onMonthChange:p,minDate:M,maxDate:S,shouldDisableDate:y,disablePast:s,disableFuture:f}),W=$e.useCallback((le,se)=>{const pe=i.startOfMonth(le),Te=i.endOfMonth(le),Se=N(le)?_u({utils:i,date:le,minDate:i.isBefore(M,pe)?pe:M,maxDate:i.isAfter(S,Te)?Te:S,disablePast:s,disableFuture:f,isDateDisabled:N}):le;Se?(d(Se,se),p==null||p(pe)):(A(),$(pe)),B(Se,!0)},[B,f,s,N,S,M,d,p,$,A,i]),G=$e.useCallback((le,se)=>{const pe=i.startOfYear(le),Te=i.endOfYear(le),Se=N(le)?_u({utils:i,date:le,minDate:i.isBefore(M,pe)?pe:M,maxDate:i.isAfter(S,Te)?Te:S,disablePast:s,disableFuture:f,isDateDisabled:N}):le;Se?(d(Se,se),h==null||h(Se)):(A(),$(pe)),B(Se,!0)},[B,f,s,N,S,M,d,h,A,i,$]),L=$e.useCallback((le,se)=>d(l&&le?i.mergeDateAndTime(le,l):le,se),[i,l,d]);$e.useEffect(()=>{l&&$(l)},[l]);const q=o,H=Yj(q),V={disablePast:s,disableFuture:f,maxDate:S,minDate:M},te=k&&l||M,ee=k&&l||S,U={disableHighlightToday:C,readOnly:T,disabled:k},Q=`${c}-grid-label`,[Y,Z]=Sd({name:"DayPicker",state:"focusedView",controlled:P,default:a?R:null}),X=Y!==null,re=Cd(le=>se=>{if(D){D(le)(se);return}Z(se?le:pe=>pe===le?null:pe)}),ie=$e.useRef(R);return $e.useEffect(()=>{ie.current!==R&&(ie.current=R,re(R)(!0))},[R,re]),je.jsxs(Xj,{ref:r,className:jr(H.root,w),ownerState:q,children:[je.jsx(Rj,Gt({},O,{views:x,openView:R,currentMonth:z.currentMonth,onViewChange:F,onMonthChange:(le,se)=>j({newMonth:le,direction:se}),minDate:te,maxDate:ee,disabled:k,disablePast:s,disableFuture:f,reduceAnimations:m,labelId:Q})),je.jsx(Zj,{reduceAnimations:m,className:H.viewTransitionContainer,transKey:R,ownerState:q,children:je.jsxs("div",{children:[R==="year"&&je.jsx(T4,Gt({},O,V,U,{autoFocus:a,date:l,onChange:G,shouldDisableYear:g,hasFocus:X,onFocusedViewChange:re("year")})),R==="month"&&je.jsx(l4,Gt({},V,U,{autoFocus:a,hasFocus:X,className:w,date:l,onChange:W,shouldDisableMonth:v,onFocusedViewChange:re("month")})),R==="day"&&je.jsx(sj,Gt({},O,z,V,U,{autoFocus:a,onMonthSwitchingAnimationEnd:E,onFocusedDayChange:B,reduceAnimations:m,selectedDays:[l],onSelectedDaysChange:L,shouldDisableDate:y,hasFocus:X,onFocusedViewChange:re("day"),gridLabelId:Q}))]})})]})}),S4=e=>Tr("MuiCalendarPickerSkeleton",e),Kj=_r("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),Jj=["className"],Qj=e=>{const{classes:t}=e;return yr({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},S4,t)},e$=_n("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),t$=_n("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${rc}px 0`,display:"flex",justifyContent:"center"}),C4=_n(S9,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Gt({margin:`0 ${rc}px`},e.day===0&&{visibility:"hidden"}));C4.propTypes={ownerState:oe.shape({day:oe.number.isRequired}).isRequired};const n$=[[0,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,0,0,0]];function r$(e){const t=fr({props:e,name:"MuiCalendarPickerSkeleton"}),{className:r}=t,i=Vn(t,Jj),c=Qj(i);return je.jsx(e$,Gt({className:jr(c.root,r)},i,{children:n$.map((o,a)=>je.jsx(t$,{className:c.week,children:o.map((n,l)=>je.jsx(C4,{variant:"circular",width:Cu,height:Cu,className:c.daySkeleton,ownerState:{day:n}},l))},a))}))}const kl=220,Yi=36,Ou={x:kl/2,y:kl/2},O4={x:Ou.x,y:0},a$=O4.x-Ou.x,i$=O4.y-Ou.y,o$=e=>e*(180/Math.PI),A4=(e,t,r)=>{const i=t-Ou.x,c=r-Ou.y,o=Math.atan2(a$,i$)-Math.atan2(i,c);let a=o$(o);a=Math.round(a/e)*e,a%=360;const n=Math.floor(a/e)||0,l=i**2+c**2,f=Math.sqrt(l);return{value:n,distance:f}},l$=(e,t,r=1)=>{const i=r*6;let{value:c}=A4(i,e,t);return c=c*r%60,c},s$=(e,t,r)=>{const{value:i,distance:c}=A4(30,e,t);let o=i||12;return r?o%=12:c{const{classes:t}=e;return yr({root:["root"],thumb:["thumb"]},u$,t)},h$=_n("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Gt({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),p$=_n("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Gt({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Yi/2}px)`,border:`${(Yi-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function g$(e){const t=fr({props:e,name:"MuiClockPointer"}),{className:r,isInner:i,type:c,value:o}=t,a=Vn(t,f$),n=$e.useRef(c);$e.useEffect(()=>{n.current=c},[c]);const l=Gt({},t,{shouldAnimate:n.current!==c}),f=d$(l),s=()=>{let d=360/(c==="hours"?12:60)*o;return c==="hours"&&o>12&&(d-=360),{height:Math.round((i?.26:.4)*kl),transform:`rotateZ(${d}deg)`}};return je.jsx(h$,Gt({style:s(),className:jr(r,f.root),ownerState:l},a,{children:je.jsx(p$,{ownerState:l,className:f.thumb})}))}function m$(e){return Tr("MuiClock",e)}const v$=_r("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),y$=e=>{const{classes:t}=e;return yr({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},m$,t)},b$=_n("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),x$=_n("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),w$=_n("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),_$=_n("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Gt({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),T$=_n("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),k$=_n(Fl,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Gt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},t.meridiemMode==="am"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),M$=_n(Fl,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Gt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function S$(e){const t=fr({props:e,name:"MuiClock"}),{ampm:r,ampmInClock:i,autoFocus:c,children:o,date:a,getClockLabelText:n,handleMeridiemChange:l,isTimeDisabled:f,meridiemMode:s,minutesStep:u=1,onChange:d,selectedId:h,type:p,value:m,disabled:y,readOnly:v,className:g}=t,b=t,x=br(),_=$e.useContext(Pi),w=$e.useRef(!1),k=y$(b),T=f(m,p),M=!r&&p==="hours"&&(m<1||m>12),S=($,j)=>{y||v||f($,p)||d($,j)},C=($,j)=>{let{offsetX:N,offsetY:E}=$;if(N===void 0){const G=$.target.getBoundingClientRect();N=$.changedTouches[0].clientX-G.left,E=$.changedTouches[0].clientY-G.top}const W=p==="seconds"||p==="minutes"?l$(N,E,u):s$(N,E,!!r);S(W,j)},P=$=>{w.current=!0,C($,"shallow")},D=$=>{w.current&&(C($,"finish"),w.current=!1)},O=$=>{$.buttons>0&&C($.nativeEvent,"shallow")},R=$=>{w.current&&(w.current=!1),C($.nativeEvent,"finish")},F=$e.useMemo(()=>p==="hours"?!0:m%5===0,[p,m]),A=p==="minutes"?u:1,z=$e.useRef(null);Md(()=>{c&&z.current.focus()},[c]);const B=$=>{if(!w.current)switch($.key){case"Home":S(0,"partial"),$.preventDefault();break;case"End":S(p==="minutes"?59:23,"partial"),$.preventDefault();break;case"ArrowUp":S(m+A,"partial"),$.preventDefault();break;case"ArrowDown":S(m-A,"partial"),$.preventDefault();break}};return je.jsxs(b$,{className:jr(g,k.root),children:[je.jsxs(x$,{className:k.clock,children:[je.jsx(_$,{onTouchMove:P,onTouchEnd:D,onMouseUp:R,onMouseMove:O,ownerState:{disabled:y},className:k.squareMask}),!T&&je.jsxs($e.Fragment,{children:[je.jsx(T$,{className:k.pin}),a&&je.jsx(g$,{type:p,value:m,isInner:M,hasSelected:F})]}),je.jsx(w$,{"aria-activedescendant":h,"aria-label":n(p,a,x),ref:z,role:"listbox",onKeyDown:B,tabIndex:0,className:k.wrapper,children:o})]}),r&&(_==="desktop"||i)&&je.jsxs($e.Fragment,{children:[je.jsx(k$,{onClick:v?void 0:()=>l("am"),disabled:y||s===null,ownerState:b,className:k.amButton,children:je.jsx(Cr,{variant:"caption",children:"AM"})}),je.jsx(M$,{disabled:y||s===null,onClick:v?void 0:()=>l("pm"),ownerState:b,className:k.pmButton,children:je.jsx(Cr,{variant:"caption",children:"PM"})})]})]})}function C$(e){return Tr("MuiClockNumber",e)}const yu=_r("MuiClockNumber",["root","selected","disabled"]),O$=["className","disabled","index","inner","label","selected"],A$=e=>{const{classes:t,selected:r,disabled:i}=e;return yr({root:["root",r&&"selected",i&&"disabled"]},C$,t)},P$=_n("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${yu.disabled}`]:t.disabled},{[`&.${yu.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Gt({height:Yi,width:Yi,position:"absolute",left:`calc((100% - ${Yi}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${yu.selected}`]:{color:e.palette.primary.contrastText},[`&.${yu.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Gt({},e.typography.body2,{color:e.palette.text.secondary})));function P4(e){const t=fr({props:e,name:"MuiClockNumber"}),{className:r,disabled:i,index:c,inner:o,label:a,selected:n}=t,l=Vn(t,O$),f=t,s=A$(f),u=c%12/12*Math.PI*2-Math.PI/2,d=(kl-Yi-2)/2*(o?.65:1),h=Math.round(Math.cos(u)*d),p=Math.round(Math.sin(u)*d);return je.jsx(P$,Gt({className:jr(r,s.root),"aria-disabled":i?!0:void 0,"aria-selected":n?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${p+(kl-Yi)/2}px`},ownerState:f},l,{children:a}))}const D$=({ampm:e,date:t,getClockNumberText:r,isDisabled:i,selectedId:c,utils:o})=>{const a=t?o.getHours(t):null,n=[],l=e?1:0,f=e?12:23,s=u=>a===null?!1:e?u===12?a===12||a===0:a===u||a-12===u:a===u;for(let u=l;u<=f;u+=1){let d=u.toString();u===0&&(d="00");const h=!e&&(u===0||u>12);d=o.formatNumber(d);const p=s(u);n.push(je.jsx(P4,{id:p?c:void 0,index:u,inner:h,selected:p,disabled:i(u),label:d,"aria-label":r(d)},u))}return n},s_=({utils:e,value:t,isDisabled:r,getClockNumberText:i,selectedId:c})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([a,n],l)=>{const f=a===t;return je.jsx(P4,{label:n,id:f?c:void 0,index:l+1,inner:!1,disabled:r(a),selected:f,"aria-label":i(n)},a)})};function D4(e){return Tr("MuiClockPicker",e)}const E$=_r("MuiClockPicker",["root","arrowSwitcher"]),R$=e=>{const{classes:t}=e;return yr({root:["root"],arrowSwitcher:["arrowSwitcher"]},D4,t)},L$=_n(Ly,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),I$=_n(y4,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),F$=w4(),E4=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiClockPicker"}),{ampm:c=!1,ampmInClock:o=!1,autoFocus:a,components:n,componentsProps:l,date:f,disableIgnoringDatePartForTimeValidation:s,getClockLabelText:u,getHoursClockNumberText:d,getMinutesClockNumberText:h,getSecondsClockNumberText:p,leftArrowButtonText:m,maxTime:y,minTime:v,minutesStep:g=1,rightArrowButtonText:b,shouldDisableTime:x,showViewSwitcher:_,onChange:w,view:k,views:T=["hours","minutes"],openTo:M,onViewChange:S,className:C,disabled:P,readOnly:D}=i;F$({leftArrowButtonText:m,rightArrowButtonText:b,getClockLabelText:u,getHoursClockNumberText:d,getMinutesClockNumberText:h,getSecondsClockNumberText:p});const O=ei(),R=m??O.openPreviousView,F=b??O.openNextView,A=u??O.clockLabelText,z=d??O.hoursClockNumberText,B=h??O.minutesClockNumberText,$=p??O.secondsClockNumberText,{openView:j,setOpenView:N,nextView:E,previousView:W,handleChangeAndOpenNext:G}=Ry({view:k,views:T,openTo:M,onViewChange:S,onChange:w}),L=nc(),q=br(),H=$e.useMemo(()=>f||q.setSeconds(q.setMinutes(q.setHours(L,0),0),0),[f,L,q]),{meridiemMode:V,handleMeridiemChange:te}=x4(H,c,G),ee=$e.useCallback((X,re)=>{const ie=b4(s,q),le=({start:pe,end:Te})=>!(v&&ie(v,Te)||y&&ie(pe,y)),se=(pe,Te=1)=>pe%Te!==0?!1:x?!x(pe,re):!0;switch(re){case"hours":{const pe=L0(X,V,c),Te=q.setHours(H,pe),Se=q.setSeconds(q.setMinutes(Te,0),0),Oe=q.setSeconds(q.setMinutes(Te,59),59);return!le({start:Se,end:Oe})||!se(pe)}case"minutes":{const pe=q.setMinutes(H,X),Te=q.setSeconds(pe,0),Se=q.setSeconds(pe,59);return!le({start:Te,end:Se})||!se(X,g)}case"seconds":{const pe=q.setSeconds(H,X);return!le({start:pe,end:pe})||!se(X)}default:throw new Error("not supported")}},[c,H,s,y,V,v,g,x,q]),U=oS(),Q=$e.useMemo(()=>{switch(j){case"hours":{const X=(re,ie)=>{const le=L0(re,V,c);G(q.setHours(H,le),ie)};return{onChange:X,value:q.getHours(H),children:D$({date:f,utils:q,ampm:c,onChange:X,getClockNumberText:z,isDisabled:re=>P||ee(re,"hours"),selectedId:U})}}case"minutes":{const X=q.getMinutes(H),re=(ie,le)=>{G(q.setMinutes(H,ie),le)};return{value:X,onChange:re,children:s_({utils:q,value:X,onChange:re,getClockNumberText:B,isDisabled:ie=>P||ee(ie,"minutes"),selectedId:U})}}case"seconds":{const X=q.getSeconds(H),re=(ie,le)=>{G(q.setSeconds(H,ie),le)};return{value:X,onChange:re,children:s_({utils:q,value:X,onChange:re,getClockNumberText:$,isDisabled:ie=>P||ee(ie,"seconds"),selectedId:U})}}default:throw new Error("You must provide the type for ClockView")}},[j,q,f,c,z,B,$,V,G,H,ee,U,P]),Y=i,Z=R$(Y);return je.jsxs(L$,{ref:r,className:jr(Z.root,C),ownerState:Y,children:[_&&je.jsx(I$,{className:Z.arrowSwitcher,leftArrowButtonText:R,rightArrowButtonText:F,components:n,componentsProps:l,onLeftClick:()=>N(W),onRightClick:()=>N(E),isLeftDisabled:!W,isRightDisabled:!E,ownerState:Y}),je.jsx(S$,Gt({autoFocus:a,date:f,ampmInClock:o,type:j,ampm:c,getClockLabelText:A,minutesStep:g,isTimeDisabled:ee,meridiemMode:V,handleMeridiemChange:te,selectedId:U,disabled:P,readOnly:D},Q))]})}),R4=e=>e.length===1&&e[0]==="year",L4=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,N$=(e,t)=>R4(e)?{inputFormat:t.formats.year}:L4(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function Iy(e,t){var r;const i=br(),c=tc(),o=fr({props:e,name:t}),a=(r=o.views)!=null?r:["year","day"];return Gt({openTo:"day",disableFuture:!1,disablePast:!1},N$(a,i),o,{views:a,minDate:Ha(i,o.minDate,c.minDate),maxDate:Ha(i,o.maxDate,c.maxDate)})}const Fy={emptyValue:null,getTodayValue:e=>e.date(),parseInput:Oy,areValuesEqual:(e,t,r)=>e.isEqual(t,r)};function I4(e){return Tr("MuiPickersToolbar",e)}const Ny=_r("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),j$=e=>{const{classes:t,isLandscape:r}=e;return yr({root:["root"],content:["content"],penIconButton:["penIconButton",r&&"penIconButtonLandscape"]},I4,t)},$$=_n("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Gt({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),B$=_n(Jn,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Gt({flex:1},!e.isLandscape&&{alignItems:"center"})),z$=_n(Fl,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${Ny.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),q$=e=>e==="clock"?je.jsx(v4,{color:"inherit"}):je.jsx(m4,{color:"inherit"}),jy=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersToolbar"}),{children:c,className:o,getMobileKeyboardInputViewButtonText:a,isLandscape:n,isMobileKeyboardViewOpen:l,landscapeDirection:f="column",toggleMobileKeyboardView:s,toolbarTitle:u,viewType:d="calendar"}=i,h=i,p=ei(),m=j$(h);return je.jsxs($$,{ref:r,className:jr(m.root,o),ownerState:h,children:[je.jsx(Cr,{color:"text.secondary",variant:"overline",children:u}),je.jsxs(B$,{container:!0,justifyContent:"space-between",className:m.content,ownerState:h,direction:n?f:"row",alignItems:n?"flex-start":"flex-end",children:[c,je.jsx(z$,{onClick:s,className:m.penIconButton,ownerState:h,color:"inherit","aria-label":a?a(l,d):p.inputModeToggleButtonAriaLabel(l,d),children:l?q$(d):je.jsx(hj,{color:"inherit"})})]})]})});function W$(e){return Tr("MuiDatePickerToolbar",e)}const U$=_r("MuiDatePickerToolbar",["root","title"]),H$=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],V$=e=>{const{classes:t}=e;return yr({root:["root"],title:["title"]},W$,t)},Y$=_n(jy,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),G$=_n(Cr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Gt({},e.isLandscape&&{margin:"auto 16px auto auto"})),$y=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:c,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:n,toolbarFormat:l,toolbarPlaceholder:f="––",toolbarTitle:s,views:u}=i,d=Vn(i,H$),h=br(),p=ei(),m=V$(i),y=s??p.datePickerDefaultToolbarTitle,v=$e.useMemo(()=>c?l?h.formatByString(c,l):R4(u)?h.format(c,"year"):L4(u)?h.format(c,"month"):/en/.test(h.getCurrentLocaleCode())?h.format(c,"normalDateWithWeekday"):h.format(c,"normalDate"):f,[c,l,f,h,u]),g=i;return je.jsx(Y$,Gt({ref:r,toolbarTitle:y,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:n,isLandscape:o,className:m.root},d,{children:je.jsx(G$,{variant:"h4",align:o?"left":"center",ownerState:g,className:m.title,children:v})}))}),X$=["onAccept","onClear","onCancel","onSetToday","actions"],By=e=>{const{onAccept:t,onClear:r,onCancel:i,onSetToday:c,actions:o}=e,a=Vn(e,X$),n=$e.useContext(Pi),l=ei(),f=typeof o=="function"?o(n):o;if(f==null||f.length===0)return null;const s=f==null?void 0:f.map(u=>{switch(u){case"clear":return je.jsx(di,{onClick:r,children:l.clearButtonLabel},u);case"cancel":return je.jsx(di,{onClick:i,children:l.cancelButtonLabel},u);case"accept":return je.jsx(di,{onClick:t,children:l.okButtonLabel},u);case"today":return je.jsx(di,{onClick:c,children:l.todayButtonLabel},u);default:return null}});return je.jsx(C9,Gt({},a,{children:s}))};function Z$(e){return Tr("MuiPickersPopper",e)}_r("MuiPickersPopper",["root","paper"]);const K$=["onClick","onTouchStart"],J$=e=>{const{classes:t}=e;return yr({root:["root"],paper:["paper"]},Z$,t)},Q$=_n(O9,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),eB=_n(Z5,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Gt({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function tB(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=Cd(l=>{if(!o.current)return;const f=i.current;i.current=!1;const s=lg(c.current);if(!c.current||"clientX"in l&&tB(l,s))return;if(r.current){r.current=!1;return}let u;l.composedPath?u=l.composedPath().indexOf(c.current)>-1:u=!s.documentElement.contains(l.target)||c.current.contains(l.target),!u&&!f&&t(l)}),n=()=>{i.current=!0};return $e.useEffect(()=>{if(e){const l=lg(c.current),f=()=>{r.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",f),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",f)}}},[e,a]),$e.useEffect(()=>{if(e){const l=lg(c.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),i.current=!1}}},[e,a]),[c,n,n]}function rB(e){var t;const r=fr({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:c,containerRef:o=null,onBlur:a,onClose:n,onClear:l,onAccept:f,onCancel:s,onSetToday:u,open:d,PopperProps:h,role:p,TransitionComponent:m=P9,TrapFocusProps:y,PaperProps:v={},components:g,componentsProps:b}=r;$e.useEffect(()=>{function B($){d&&($.key==="Escape"||$.key==="Esc")&&n()}return document.addEventListener("keydown",B),()=>{document.removeEventListener("keydown",B)}},[n,d]);const x=$e.useRef(null);$e.useEffect(()=>{p!=="tooltip"&&(d?x.current=r4(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[d,p]);const[_,w,k]=nB(d,a??n),T=$e.useRef(null),M=xl(T,o),S=xl(M,_),C=r,P=J$(C),{onClick:D,onTouchStart:O}=v,R=Vn(v,K$),F=B=>{B.key==="Escape"&&(B.stopPropagation(),n())},A=(t=g==null?void 0:g.ActionBar)!=null?t:By,z=(g==null?void 0:g.PaperContent)||$e.Fragment;return je.jsx(Q$,Gt({transition:!0,role:p,open:d,anchorEl:i,onKeyDown:F,className:P.root},h,{children:({TransitionProps:B,placement:$})=>je.jsx(A9,Gt({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:p==="tooltip",isEnabled:()=>!0},y,{children:je.jsx(m,Gt({},B,{children:je.jsx(eB,Gt({tabIndex:-1,elevation:8,ref:S,onClick:j=>{w(j),D&&D(j)},onTouchStart:j=>{k(j),O&&O(j)},ownerState:Gt({},C,{placement:$}),className:P.paper},R,{children:je.jsxs(z,Gt({},b==null?void 0:b.paperContent,{children:[c,je.jsx(A,Gt({onAccept:f,onClear:l,onCancel:s,onSetToday:u,actions:[]},b==null?void 0:b.actionBar))]}))}))}))}))}))}function zy(e){const{children:t,DateInputProps:r,KeyboardDateInputComponent:i,onClear:c,onDismiss:o,onCancel:a,onAccept:n,onSetToday:l,open:f,PopperProps:s,PaperProps:u,TransitionComponent:d,components:h,componentsProps:p}=e,m=$e.useRef(null),y=xl(r.inputRef,m);return je.jsxs(Pi.Provider,{value:"desktop",children:[je.jsx(i,Gt({},r,{inputRef:y})),je.jsx(rB,{role:"dialog",open:f,anchorEl:m.current,TransitionComponent:d,PopperProps:s,PaperProps:u,onClose:o,onCancel:a,onClear:c,onAccept:n,onSetToday:l,components:h,componentsProps:p,children:t})]})}const aB=e=>{const[,t]=$e.useReducer(l=>l+1,0),r=$e.useRef(null),{replace:i,append:c}=e,o=i?i(e.format(e.value)):e.format(e.value),a=$e.useRef(!1),n=l=>{const f=l.target.value;r.current=[f,l.target,f.length>o.length,a.current,o===e.format(f)],t()};return $e.useLayoutEffect(()=>{if(r.current==null)return;let[l,f,s,u,d]=r.current;r.current=null;const h=u&&d,m=l.slice(f.selectionStart).search(e.accept||/\d/g),y=m!==-1?m:0,v=w=>(w.match(e.accept||/\d/g)||[]).join(""),g=v(l.substr(0,f.selectionStart)),b=w=>{let k=0,T=0;for(let M=0;M!==g.length;++M){let S=w.indexOf(g[M],k)+1,C=v(w).indexOf(g[M],T)+1;C-T>1&&(S=k,C=T),T=Math.max(C,T),k=Math.max(k,S)}return k};if(e.mask===!0&&s&&!d){let w=b(l);const k=v(l.substr(w))[0];w=l.indexOf(k,w),l=`${l.substr(0,w)}${l.substr(w+1)}`}let x=e.format(l);c!=null&&f.selectionStart===l.length&&!d&&(s?x=c(x):v(x.slice(-1))===""&&(x=x.slice(0,-1)));const _=i?i(x):x;return o===_?t():e.onChange(_),()=>{let w=b(x);if(e.mask!=null&&(s||u&&!h))for(;x[w]&&v(x[w])==="";)w+=1;f.selectionStart=f.selectionEnd=w+(h?1+y:0)}}),$e.useEffect(()=>{const l=s=>{s.code==="Delete"&&(a.current=!0)},f=s=>{s.code==="Delete"&&(a.current=!1)};return document.addEventListener("keydown",l),document.addEventListener("keyup",f),()=>{document.removeEventListener("keydown",l),document.removeEventListener("keyup",f)}},[]),{value:r.current!=null?r.current[0]:o,onChange:n}},I0=(e,t,r)=>{const i=e.date(t);return t===null?"":e.isValid(i)?e.formatByString(i,r):""},If="_",F4="2019-11-21T22:30:00.000",N4="2019-01-01T09:00:00.000";function iB(e,t,r,i){if(e)return e;const o=i.formatByString(i.date(N4),t).replace(r,If),a=i.formatByString(i.date(F4),t).replace(r,"_");return o===a?o:""}function oB(e,t,r,i){if(!e)return!1;const o=i.formatByString(i.date(N4),t).replace(r,If),a=i.formatByString(i.date(F4),t).replace(r,"_"),n=a===o&&e===a;return!n&&i.lib,n}const lB=(e,t)=>r=>{let i=0;return r.split("").map((c,o)=>{if(t.lastIndex=0,i>e.length-1)return"";const a=e[i],n=e[i+1],l=t.test(c)?c:"",f=a===If?l:a+l;return i+=f.length,o===r.length-1&&n&&n!==If?f?f+n:"":f}).join("")},sB=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:r,ignoreInvalidInputs:i,inputFormat:c,inputProps:o,label:a,mask:n,onChange:l,rawValue:f,readOnly:s,rifmFormatter:u,TextFieldProps:d,validationError:h})=>{const p=br(),m=p.getFormatHelperText(c),{shouldUseMaskedInput:y,maskToUse:v}=$e.useMemo(()=>{if(r)return{shouldUseMaskedInput:!1,maskToUse:""};const O=iB(n,c,e,p);return{shouldUseMaskedInput:oB(O,c,e,p),maskToUse:O}},[e,r,c,n,p]),g=$e.useMemo(()=>y&&v?lB(v,e):O=>O,[e,v,y]),b=f===null?null:p.date(f),[x,_]=$e.useState(b),[w,k]=$e.useState(I0(p,f,c)),T=$e.useRef(),M=$e.useRef(p.locale),S=$e.useRef(c);$e.useEffect(()=>{const O=f!==T.current,R=p.locale!==M.current,F=c!==S.current;if(T.current=f,M.current=p.locale,S.current=c,!O&&!R&&!F)return;const A=f===null?null:p.date(f),z=f===null||p.isValid(A);let B=x===null&&A===null;if(x!==null&&A!==null){const j=p.isEqual(x,A);if(j)B=!0;else{const N=Math.abs(p.getDiff(x,A));B=N===0?j:N<1e3}}if(!R&&!F&&(!z||B))return;const $=I0(p,f,c);_(A),k($)},[p,f,c,x]);const C=O=>{const R=O===""||O===n?"":O;k(R);const F=R===null?null:p.parse(R,c);i&&!p.isValid(F)||(_(F),l(F,R||void 0))},P=aB({value:w,onChange:C,format:u||g});return Gt({label:a,disabled:t,error:h,inputProps:Gt({},y?P:{value:w,onChange:O=>{C(O.currentTarget.value)}},{disabled:t,placeholder:m,readOnly:s,type:y?"tel":"text"},o)},d)},uB=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],$d=$e.forwardRef(function(t,r){const{className:i,components:c={},disableOpenPicker:o,getOpenDialogAriaText:a,InputAdornmentProps:n,InputProps:l,inputRef:f,openPicker:s,OpenPickerButtonProps:u,renderInput:d}=t,h=Vn(t,uB),p=ei(),m=a??p.openDatePickerDialogue,y=br(),v=sB(h),g=(n==null?void 0:n.position)||"end",b=c.OpenPickerIcon||m4;return d(Gt({ref:r,inputRef:f,className:i},v,{InputProps:Gt({},l,{[`${g}Adornment`]:o?void 0:je.jsx(D9,Gt({position:g},n,{children:je.jsx(Fl,Gt({edge:g,disabled:h.disabled||h.readOnly,"aria-label":m(h.rawValue,y)},u,{onClick:s,children:je.jsx(b,{})}))}))})}))});function u_(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const cB=(e,t)=>{const[r,i]=$e.useState(u_);return Md(()=>{const o=()=>{i(u_())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),yo(e,["hours","minutes","seconds"])?!1:(t||r)==="landscape"},fB=({autoFocus:e,openView:t})=>{const[r,i]=$e.useState(e?t:null),c=$e.useCallback(o=>a=>{i(a?o:n=>o===n?null:n)},[]);return{focusedView:r,setFocusedView:c}};function dB(e){return Tr("MuiCalendarOrClockPicker",e)}_r("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const hB=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],pB=e=>{const{classes:t}=e;return yr({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},dB,t)},gB=_n("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),mB=_n("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Gt({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),vB={fullWidth:!0},c_=e=>e==="year"||e==="month"||e==="day",f_=e=>e==="hours"||e==="minutes"||e==="seconds";function Di(e){var t,r;const i=fr({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:c,parsedValue:o,DateInputProps:a,isMobileKeyboardViewOpen:n,onDateChange:l,onViewChange:f,openTo:s,orientation:u,showToolbar:d,toggleMobileKeyboardView:h,ToolbarComponent:p=()=>null,toolbarFormat:m,toolbarPlaceholder:y,toolbarTitle:v,views:g,dateRangeIcon:b,timeIcon:x,hideTabs:_}=i,w=Vn(i,hB),k=(t=w.components)==null?void 0:t.Tabs,T=cB(g,u),M=$e.useContext(Pi),S=pB(i),C=d??M!=="desktop",P=!_&&typeof window<"u"&&window.innerHeight>667,D=$e.useCallback(($,j)=>{l($,M,j)},[l,M]),O=$e.useCallback($=>{n&&h(),f&&f($)},[n,f,h]),{openView:R,setOpenView:F,handleChangeAndOpenNext:A}=Ry({view:void 0,views:g,openTo:s,onChange:D,onViewChange:O}),{focusedView:z,setFocusedView:B}=fB({autoFocus:c,openView:R});return je.jsxs(mB,{ownerState:{isLandscape:T},className:S.root,children:[C&&je.jsx(p,Gt({},w,{views:g,isLandscape:T,parsedValue:o,onChange:D,setOpenView:F,openView:R,toolbarTitle:v,toolbarFormat:m,toolbarPlaceholder:y,isMobileKeyboardViewOpen:n,toggleMobileKeyboardView:h})),P&&!!k&&je.jsx(k,Gt({dateRangeIcon:b,timeIcon:x,view:R,onChange:F},(r=w.componentsProps)==null?void 0:r.tabs)),je.jsx(Ly,{children:n?je.jsx(gB,{className:S.mobileKeyboardInputView,children:je.jsx($d,Gt({},a,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:vB}))}):je.jsxs($e.Fragment,{children:[c_(R)&&je.jsx(M4,Gt({autoFocus:c,date:o,onViewChange:F,onChange:A,view:R,views:g.filter(c_),focusedView:z,onFocusedViewChange:B},w)),f_(R)&&je.jsx(E4,Gt({},w,{autoFocus:c,date:o,view:R,views:g.filter(f_),onChange:A,onViewChange:F,showViewSwitcher:M==="desktop"}))]})})]})}const yB=({open:e,onOpen:t,onClose:r})=>{const i=$e.useRef(typeof e=="boolean").current,[c,o]=$e.useState(!1);$e.useEffect(()=>{if(i){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[i,e]);const a=$e.useCallback(n=>{i||o(n),n&&t&&t(),!n&&r&&r()},[i,t,r]);return{isOpen:c,setIsOpen:a}},Ei=(e,t)=>{const{onAccept:r,onChange:i,value:c,closeOnSelect:o}=e,a=br(),{isOpen:n,setIsOpen:l}=yB(e),f=$e.useMemo(()=>t.parseInput(a,c),[t,a,c]),[s,u]=$e.useState(f),[d,h]=$e.useState(()=>({committed:f,draft:f,resetFallback:f})),p=$e.useCallback(w=>{h(k=>{switch(w.action){case"setAll":case"acceptAndClose":return{draft:w.value,committed:w.value,resetFallback:w.value};case"setCommitted":return Gt({},k,{draft:w.value,committed:w.value});case"setDraft":return Gt({},k,{draft:w.value});default:return k}}),(w.forceOnChangeCall||!w.skipOnChangeCall&&!t.areValuesEqual(a,d.committed,w.value))&&i(w.value),w.action==="acceptAndClose"&&(l(!1),r&&!t.areValuesEqual(a,d.resetFallback,w.value)&&r(w.value))},[r,i,l,d,a,t]);$e.useEffect(()=>{a.isValid(f)&&u(f)},[a,f]),$e.useEffect(()=>{n&&p({action:"setAll",value:f,skipOnChangeCall:!0})},[n]),t.areValuesEqual(a,d.committed,f)||p({action:"setCommitted",value:f,skipOnChangeCall:!0});const m=$e.useMemo(()=>({open:n,onClear:()=>{p({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,c,t.emptyValue)})},onAccept:()=>{p({value:d.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,c,f)})},onDismiss:()=>{p({value:d.committed,action:"acceptAndClose"})},onCancel:()=>{p({value:d.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{p({value:t.getTodayValue(a),action:"acceptAndClose"})}}),[p,n,a,d,t,c,f]),[y,v]=$e.useState(!1),g=$e.useMemo(()=>({parsedValue:d.draft,isMobileKeyboardViewOpen:y,toggleMobileKeyboardView:()=>v(!y),onDateChange:(w,k,T="partial")=>{switch(T){case"shallow":return p({action:"setDraft",value:w,skipOnChangeCall:!0});case"partial":return p({action:"setDraft",value:w});case"finish":return p(o??k==="desktop"?{value:w,action:"acceptAndClose"}:{value:w,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[p,y,d.draft,o]),b=$e.useCallback((w,k)=>{const T=t.valueReducer?t.valueReducer(a,s,w):w;i(T,k)},[i,t,s,a]),x=$e.useMemo(()=>({onChange:b,open:n,rawValue:c,openPicker:()=>l(!0)}),[b,n,c,l]),_={pickerProps:g,inputProps:x,wrapperProps:m};return $e.useDebugValue(_,()=>({MuiPickerState:{dateState:d,other:_}})),_},bB=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],j4=$e.forwardRef(function(t,r){const i=Iy(t,"MuiDesktopDatePicker"),c=Dy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Fy),{PopperProps:l,PaperProps:f,ToolbarComponent:s=$y,TransitionComponent:u,components:d,componentsProps:h}=i,p=Vn(i,bB),m=Gt({},a,p,{components:d,componentsProps:h,ref:r,validationError:c});return je.jsx(zy,Gt({},n,{DateInputProps:m,KeyboardDateInputComponent:$d,PopperProps:l,PaperProps:f,TransitionComponent:u,components:d,componentsProps:h,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:m,components:d,componentsProps:h},p))}))}),xB=_n(E9)({[`& .${B2.container}`]:{outline:0},[`& .${B2.paper}`]:{outline:0,minWidth:Ey}}),wB=_n(R9)({"&:first-of-type":{padding:0}}),_B=e=>{var t;const{children:r,DialogProps:i={},onAccept:c,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,components:s,componentsProps:u}=e,d=(t=s==null?void 0:s.ActionBar)!=null?t:By;return je.jsxs(xB,Gt({open:f,onClose:a},i,{children:[je.jsx(wB,{children:r}),je.jsx(d,Gt({onAccept:c,onClear:o,onCancel:n,onSetToday:l,actions:["cancel","accept"]},u==null?void 0:u.actionBar))]}))},TB=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function qy(e){const{children:t,DateInputProps:r,DialogProps:i,onAccept:c,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,PureDateInputComponent:s,components:u,componentsProps:d}=e,h=Vn(e,TB);return je.jsxs(Pi.Provider,{value:"mobile",children:[je.jsx(s,Gt({components:u},h,r)),je.jsx(_B,{DialogProps:i,onAccept:c,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,components:u,componentsProps:d,children:t})]})}const Wy=$e.forwardRef(function(t,r){const{disabled:i,getOpenDialogAriaText:c,inputFormat:o,InputProps:a,inputRef:n,label:l,openPicker:f,rawValue:s,renderInput:u,TextFieldProps:d={},validationError:h,className:p}=t,m=ei(),y=c??m.openDatePickerDialogue,v=br(),g=$e.useMemo(()=>Gt({},a,{readOnly:!0}),[a]),b=I0(v,s,o),x=Cd(_=>{_.stopPropagation(),f()});return u(Gt({label:l,disabled:i,ref:r,inputRef:n,error:h,InputProps:g,className:p},!t.readOnly&&!t.disabled&&{onClick:x},{inputProps:Gt({disabled:i,readOnly:!0,"aria-readonly":!0,"aria-label":y(s,v),value:b},!t.readOnly&&{onClick:x},{onKeyDown:n4(f)})},d))}),kB=["ToolbarComponent","value","onChange","components","componentsProps"],$4=$e.forwardRef(function(t,r){const i=Iy(t,"MuiMobileDatePicker"),c=Dy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Fy),{ToolbarComponent:l=$y,components:f,componentsProps:s}=i,u=Vn(i,kB),d=Gt({},a,u,{components:f,componentsProps:s,ref:r,validationError:c});return je.jsx(qy,Gt({},u,n,{DateInputProps:d,PureDateInputComponent:Wy,components:f,componentsProps:s,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:f,componentsProps:s},u))}))}),MB=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],SB=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:c="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,MB);return py(c,{defaultMatches:!0})?je.jsx(j4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx($4,Gt({ref:r,DialogProps:o},l))});function Uy(e,t){var r,i,c,o,a;const n=fr({props:e,name:t}),l=br(),f=tc(),s=(r=n.ampm)!=null?r:l.is12HourCycleInCurrentLocale();if(n.orientation!=null&&n.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Gt({ampm:s,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:s?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:s?l.formats.keyboardDateTime12h:l.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(n.minDateTime||n.maxDateTime),disablePast:!1,disableFuture:!1},n,{minDate:Ha(l,(i=n.minDateTime)!=null?i:n.minDate,f.minDate),maxDate:Ha(l,(c=n.maxDateTime)!=null?c:n.maxDate,f.maxDate),minTime:(o=n.minDateTime)!=null?o:n.minTime,maxTime:(a=n.maxDateTime)!=null?a:n.maxTime})}const Hy={emptyValue:null,getTodayValue:e=>e.date(),parseInput:Oy,areValuesEqual:(e,t,r)=>e.isEqual(t,r)},CB=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function OB(e){return Tr("PrivatePickersToolbarText",e)}const d_=_r("PrivatePickersToolbarText",["root","selected"]),AB=["className","selected","value"],PB=e=>{const{classes:t,selected:r}=e;return yr({root:["root",r&&"selected"]},OB,t)},DB=_n(Cr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${d_.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${d_.selected}`]:{color:e.palette.text.primary}})),Vy=$e.forwardRef(function(t,r){const{className:i,value:c}=t,o=Vn(t,AB),a=PB(t);return je.jsx(DB,Gt({ref:r,className:jr(i,a.root),component:"span"},o,{children:c}))}),EB=["align","className","selected","typographyClassName","value","variant"],RB=e=>{const{classes:t}=e;return yr({root:["root"]},I4,t)},LB=_n(di,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),ui=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersToolbarButton"}),{align:c,className:o,selected:a,typographyClassName:n,value:l,variant:f}=i,s=Vn(i,EB),u=RB(i);return je.jsx(LB,Gt({variant:"text",ref:r,className:jr(o,u.root)},s,{children:je.jsx(Vy,{align:c,className:n,variant:f,value:l,selected:a})}))});function IB(e){return Tr("MuiDateTimePickerToolbar",e)}const FB=_r("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),NB=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],jB=e=>{const{classes:t}=e;return yr({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},IB,t)},$B=_n(jy,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${Ny.penIconButton}`]:Gt({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),BB=_n("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),zB=_n("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),h_=_n(Vy,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function Yy(e){const t=fr({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:r,parsedValue:i,isMobileKeyboardViewOpen:c,openView:o,setOpenView:a,toggleMobileKeyboardView:n,toolbarFormat:l,toolbarPlaceholder:f="––",toolbarTitle:s,views:u}=t,d=Vn(t,NB),h=t,p=br(),m=ei(),y=jB(h),v=s??m.dateTimePickerDefaultToolbarTitle,g=x=>r?p.format(x,"hours12h"):p.format(x,"hours24h"),b=$e.useMemo(()=>i?l?p.formatByString(i,l):p.format(i,"shortDate"):f,[i,l,f,p]);return je.jsxs($B,Gt({toolbarTitle:v,isMobileKeyboardViewOpen:c,toggleMobileKeyboardView:n,className:y.root,viewType:CB(o)},d,{isLandscape:!1,ownerState:h,children:[je.jsxs(BB,{className:y.dateContainer,ownerState:h,children:[u.includes("year")&&je.jsx(ui,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:o==="year",value:i?p.format(i,"year"):"–"}),u.includes("day")&&je.jsx(ui,{tabIndex:-1,variant:"h4",onClick:()=>a("day"),selected:o==="day",value:b})]}),je.jsxs(zB,{className:y.timeContainer,ownerState:h,children:[u.includes("hours")&&je.jsx(ui,{variant:"h3",onClick:()=>a("hours"),selected:o==="hours",value:i?g(i):"--"}),u.includes("minutes")&&je.jsxs($e.Fragment,{children:[je.jsx(h_,{variant:"h3",value:":",className:y.separator,ownerState:h}),je.jsx(ui,{variant:"h3",onClick:()=>a("minutes"),selected:o==="minutes",value:i?p.format(i,"minutes"):"--"})]}),u.includes("seconds")&&je.jsxs($e.Fragment,{children:[je.jsx(h_,{variant:"h3",value:":",className:y.separator,ownerState:h}),je.jsx(ui,{variant:"h3",onClick:()=>a("seconds"),selected:o==="seconds",value:i?p.format(i,"seconds"):"--"})]})]})]}))}const B4=({adapter:e,value:t,props:r})=>{const{minTime:i,maxTime:c,minutesStep:o,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:n}=r,l=e.utils.date(t),f=b4(n,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(i&&f(i,l)):return"minTime";case!!(c&&f(l,c)):return"maxTime";case!!(a&&a(e.utils.getHours(l),"hours")):return"shouldDisableTime-hours";case!!(a&&a(e.utils.getMinutes(l),"minutes")):return"shouldDisableTime-minutes";case!!(a&&a(e.utils.getSeconds(l),"seconds")):return"shouldDisableTime-seconds";case!!(o&&e.utils.getMinutes(l)%o!==0):return"minutesStep";default:return null}},qB=(e,t)=>e===t,Gy=e=>Ay(e,B4,qB),WB=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],UB=({props:e,value:t,adapter:r})=>{const{minDate:i,maxDate:c,disableFuture:o,shouldDisableDate:a,disablePast:n}=e,l=Vn(e,WB),f=Py({adapter:r,value:t,props:{minDate:i,maxDate:c,disableFuture:o,shouldDisableDate:a,disablePast:n}});return f!==null?f:B4({adapter:r,value:t,props:l})},HB=(e,t)=>e===t;function Xy(e){return Ay(e,UB,HB)}function VB(e){return Tr("MuiDateTimePickerTabs",e)}const YB=_r("MuiDateTimePickerTabs",["root"]),GB=e=>["day","month","year"].includes(e)?"date":"time",XB=e=>e==="date"?"day":"hours",ZB=e=>{const{classes:t}=e;return yr({root:["root"]},VB,t)},KB=_n(eS,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>Gt({boxShadow:`0 -1px 0 0 inset ${t.palette.divider}`},e.wrapperVariant==="desktop"&&{order:1,boxShadow:`0 1px 0 0 inset ${t.palette.divider}`,[`& .${L9.indicator}`]:{bottom:"auto",top:0}})),Bd=function(t){const r=fr({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:i=je.jsx(dj,{}),onChange:c,timeIcon:o=je.jsx(pj,{}),view:a}=r,n=ei(),l=$e.useContext(Pi),f=Gt({},r,{wrapperVariant:l}),s=ZB(f),u=(d,h)=>{c(XB(h))};return je.jsxs(KB,{ownerState:f,variant:"fullWidth",value:GB(a),onChange:u,className:s.root,children:[je.jsx(S0,{value:"date","aria-label":n.dateTableLabel,icon:je.jsx($e.Fragment,{children:i})}),je.jsx(S0,{value:"time","aria-label":n.timeTableLabel,icon:je.jsx($e.Fragment,{children:o})})]})},JB=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],z4=$e.forwardRef(function(t,r){const i=Uy(t,"MuiDesktopDateTimePicker"),c=Xy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Hy),{PaperProps:l,PopperProps:f,ToolbarComponent:s=Yy,TransitionComponent:u,components:d,componentsProps:h,hideTabs:p=!0}=i,m=Vn(i,JB),y=$e.useMemo(()=>Gt({Tabs:Bd},d),[d]),v=Gt({},a,m,{components:y,componentsProps:h,ref:r,validationError:c});return je.jsx(zy,Gt({},n,{DateInputProps:v,KeyboardDateInputComponent:$d,PopperProps:f,PaperProps:l,TransitionComponent:u,components:y,componentsProps:h,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:v,components:y,componentsProps:h,hideTabs:p},m))}))}),QB=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],q4=$e.forwardRef(function(t,r){const i=Uy(t,"MuiMobileDateTimePicker"),c=Xy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Hy),{ToolbarComponent:l=Yy,components:f,componentsProps:s,hideTabs:u=!1}=i,d=Vn(i,QB),h=$e.useMemo(()=>Gt({Tabs:Bd},f),[f]),p=Gt({},a,d,{components:h,componentsProps:s,ref:r,validationError:c});return je.jsx(qy,Gt({},d,n,{DateInputProps:p,PureDateInputComponent:Wy,components:h,componentsProps:s,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:p,components:h,componentsProps:s,hideTabs:u},d))}))}),ez=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],tz=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:c="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,ez);return py(c,{defaultMatches:!0})?je.jsx(z4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(q4,Gt({ref:r,DialogProps:o},l))});function Zy(e,t){var r;const i=fr({props:e,name:t}),c=br(),o=(r=i.ampm)!=null?r:c.is12HourCycleInCurrentLocale(),n=ei().openTimePickerDialogue;return Gt({ampm:o,openTo:"hours",views:["hours","minutes"],acceptRegex:o?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:n,inputFormat:o?c.formats.fullTime12h:c.formats.fullTime24h},i,{components:Gt({OpenPickerIcon:v4},i.components)})}const Ky={emptyValue:null,parseInput:Oy,getTodayValue:e=>e.date(),areValuesEqual:(e,t,r)=>e.isEqual(t,r),valueReducer:(e,t,r)=>!t||!e.isValid(r)?r:e.mergeDateAndTime(t,r)};function nz(e){return Tr("MuiTimePickerToolbar",e)}const gl=_r("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),rz=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],az=e=>{const{theme:t,isLandscape:r,classes:i}=e,c={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",r&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return yr(c,nz,i)},iz=_n(jy,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${Ny.penIconButtonLandscape}`]:{marginTop:"auto"}}),oz=_n(Vy,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),lz=_n("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${gl.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${gl.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>Gt({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"})),sz=_n("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${gl.ampmLabel}`]:t.ampmLabel},{[`&.${gl.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Gt({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${gl.ampmLabel}`]:{fontSize:17}}));function Jy(e){const t=fr({props:e,name:"MuiTimePickerToolbar"}),{ampm:r,ampmInClock:i,parsedValue:c,isLandscape:o,isMobileKeyboardViewOpen:a,onChange:n,openView:l,setOpenView:f,toggleMobileKeyboardView:s,toolbarTitle:u,views:d,disabled:h,readOnly:p}=t,m=Vn(t,rz),y=br(),v=ei(),g=u??v.timePickerDefaultToolbarTitle,b=Od(),x=!!(r&&!i),{meridiemMode:_,handleMeridiemChange:w}=x4(c,r,n),k=C=>r?y.format(C,"hours12h"):y.format(C,"hours24h"),T=t,M=az(Gt({},T,{theme:b})),S=je.jsx(oz,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:M.separator});return je.jsxs(iz,Gt({viewType:"clock",landscapeDirection:"row",toolbarTitle:g,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:s,ownerState:T,className:M.root},m,{children:[je.jsxs(lz,{className:M.hourMinuteLabel,ownerState:T,children:[yo(d,"hours")&&je.jsx(ui,{tabIndex:-1,variant:"h3",onClick:()=>f("hours"),selected:l==="hours",value:c?k(c):"--"}),yo(d,["hours","minutes"])&&S,yo(d,"minutes")&&je.jsx(ui,{tabIndex:-1,variant:"h3",onClick:()=>f("minutes"),selected:l==="minutes",value:c?y.format(c,"minutes"):"--"}),yo(d,["minutes","seconds"])&&S,yo(d,"seconds")&&je.jsx(ui,{variant:"h3",onClick:()=>f("seconds"),selected:l==="seconds",value:c?y.format(c,"seconds"):"--"})]}),x&&je.jsxs(sz,{className:M.ampmSelection,ownerState:T,children:[je.jsx(ui,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:M.ampmLabel,value:y.getMeridiemText("am"),onClick:p?void 0:()=>w("am"),disabled:h}),je.jsx(ui,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:M.ampmLabel,value:y.getMeridiemText("pm"),onClick:p?void 0:()=>w("pm"),disabled:h})]})]}))}const uz=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],W4=$e.forwardRef(function(t,r){const i=Zy(t,"MuiDesktopTimePicker"),c=Gy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Ky),{PaperProps:l,PopperProps:f,ToolbarComponent:s=Jy,TransitionComponent:u,components:d,componentsProps:h}=i,p=Vn(i,uz),m=Gt({},a,p,{components:d,componentsProps:h,ref:r,validationError:c});return je.jsx(zy,Gt({},n,{DateInputProps:m,KeyboardDateInputComponent:$d,PopperProps:f,PaperProps:l,TransitionComponent:u,components:d,componentsProps:h,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:m,components:d,componentsProps:h},p))}))}),cz=["ToolbarComponent","value","onChange","components","componentsProps"],U4=$e.forwardRef(function(t,r){const i=Zy(t,"MuiMobileTimePicker"),c=Gy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Ky),{ToolbarComponent:l=Jy,components:f,componentsProps:s}=i,u=Vn(i,cz),d=Gt({},a,u,{components:f,componentsProps:s,ref:r,validationError:c});return je.jsx(qy,Gt({},u,n,{DateInputProps:d,PureDateInputComponent:Wy,components:f,componentsProps:s,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:f,componentsProps:s},u))}))});function fz(e){return Tr("MuiPickerStaticWrapper",e)}_r("MuiPickerStaticWrapper",["root","content"]);const dz=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],hz=e=>{const{classes:t}=e;return yr({root:["root"],content:["content"]},fz,t)},pz=_n("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),gz=_n("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:Ey,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function zd(e){var t;const r=fr({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:i,onAccept:c,onClear:o,onCancel:a,onSetToday:n,children:l,components:f,componentsProps:s,className:u}=r,d=Vn(r,dz),h=hz(r),p=(t=f==null?void 0:f.ActionBar)!=null?t:By,m=(f==null?void 0:f.PaperContent)||$e.Fragment;return je.jsx(Pi.Provider,{value:i,children:je.jsxs(pz,Gt({className:jr(h.root,u)},d,{children:[je.jsx(gz,{className:h.content,children:je.jsx(m,Gt({},s==null?void 0:s.paperContent,{children:l}))}),je.jsx(p,Gt({onAccept:c,onClear:o,onCancel:a,onSetToday:n,actions:i==="desktop"?[]:["cancel","accept"]},s==null?void 0:s.actionBar))]}))})}const mz=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],vz=$e.forwardRef(function(t,r){const i=Iy(t,"MuiStaticDatePicker"),{ToolbarComponent:c=$y,displayStaticWrapperAs:o="mobile",components:a,componentsProps:n,className:l}=i,f=Vn(i,mz),{pickerProps:s,inputProps:u,wrapperProps:d}=Ei(i,Fy),h=Dy(i)!==null,p=Gt({},u,f,{ref:r,validationError:h,components:a});return je.jsx(zd,Gt({displayStaticWrapperAs:o,components:a,componentsProps:n,className:l},d,{children:je.jsx(Di,Gt({},s,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:c,DateInputProps:p,components:a,componentsProps:n},f))}))}),yz=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],bz=$e.forwardRef(function(t,r){const i=Uy(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:c="mobile",ToolbarComponent:o=Yy,components:a,componentsProps:n,hideTabs:l=c==="desktop",className:f}=i,s=Vn(i,yz),{pickerProps:u,inputProps:d,wrapperProps:h}=Ei(i,Hy),p=Xy(i)!==null,m=$e.useMemo(()=>Gt({Tabs:Bd},a),[a]),y=Gt({},d,s,{ref:r,validationError:p,components:m,componentsProps:n});return je.jsx(zd,Gt({displayStaticWrapperAs:c,components:m,componentsProps:n,className:f},h,{children:je.jsx(Di,Gt({},u,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:y,components:m,componentsProps:n,hideTabs:l},s))}))}),xz=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],wz=$e.forwardRef(function(t,r){const i=Zy(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:c="mobile",ToolbarComponent:o=Jy,components:a,componentsProps:n,className:l}=i,f=Vn(i,xz),s=Gy(i)!==null,{pickerProps:u,inputProps:d,wrapperProps:h}=Ei(i,Ky),p=Gt({},d,f,{ref:r,validationError:s,components:a,componentsProps:n});return je.jsx(zd,Gt({displayStaticWrapperAs:c,components:a,componentsProps:n,className:l},h,{children:je.jsx(Di,Gt({},u,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:p,components:a,componentsProps:n},f))}))}),_z=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Tz=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:c="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,_z);return py(c,{defaultMatches:!0})?je.jsx(W4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(U4,Gt({ref:r,DialogProps:o},l))});/** @license MUI X v5.0.20 + */function x(w){return w===null||typeof w!="object"}function _(w){return w.map(function(T){return typeof T=="symbol"?T.toString():T})}return Ic.exports}var xg={},J2;function TS(){return J2||(J2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={error:"Data could not be retrieved",grouping:{groupedBy:"Grouped By:",placeholder:"Drag headers here to group by"},pagination:{labelDisplayedRows:"{from}-{to} of {count}",labelRowsPerPage:"Rows per page:",labelRows:"rows",firstAriaLabel:"First Page",firstTooltip:"First Page",previousAriaLabel:"Previous Page",previousTooltip:"Previous Page",nextAriaLabel:"Next Page",nextTooltip:"Next Page",lastAriaLabel:"Last Page",lastTooltip:"Last Page"},toolbar:{addRemoveColumns:"Add or remove columns",nRowsSelected:"{0} row(s) selected",showColumnsTitle:"Show Columns",showColumnsAriaLabel:"Show Columns",exportTitle:"Export",exportAriaLabel:"Export",searchTooltip:"Search",searchPlaceholder:"Search",searchAriaLabel:"Search",clearSearchAriaLabel:"Clear Search"},header:{actions:"Actions"},body:{emptyDataSourceMessage:"No records to display",editRow:{saveTooltip:"Save",cancelTooltip:"Cancel",deleteText:"Are you sure you want to delete this row?"},filterRow:{},dateTimePickerLocalization:"Filter",addTooltip:"Add",deleteTooltip:"Delete",editTooltip:"Edit",bulkEditTooltip:"Edit All",bulkEditApprove:"Save all changes",bulkEditCancel:"Discard all changes"}};e.default=t}(xg)),xg}var wg={},Q2;function kS(){return Q2||(Q2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={idSynonym:"id",actionsColumnIndex:0,addRowPosition:"last",columnsButton:!1,detailPanelType:"multiple",debounceInterval:200,doubleHorizontalScroll:!1,emptyRowsWhenPaging:!0,exportAllData:!1,exportMenu:[],filtering:!1,groupTitle:!1,header:!0,headerSelectionProps:{},hideFilterIcons:!1,loadingType:"overlay",padding:"normal",searchAutoFocus:!1,paging:!0,pageSize:5,pageSizeOptions:[5,10,20],paginationType:"normal",paginationPosition:"bottom",showEmptyDataSourceMessage:!0,showFirstLastPageButtons:!0,showSelectAllCheckbox:!0,showSelectGroupCheckbox:!0,search:!0,showTitle:!0,showTextRowsSelected:!0,showDetailPanelIcon:!0,tableLayout:"auto",tableWidth:"full",toolbarButtonAlignment:"right",searchFieldAlignment:"right",searchFieldStyle:{},searchFieldVariant:"standard",selection:!1,selectionProps:{},maxColumnSort:1,clientSorting:!0,groupChipProps:{},defaultOrderByCollection:[],showColumnSortOrder:!1,keepSortDirectionOnColumnSwitch:!0,toolbar:!0,defaultExpanded:!1,detailPanelColumnAlignment:"left",detailPanelOffset:{left:0,right:0},thirdSortClick:!0,overflowY:"auto",numberOfPagesAround:1,actionsHeaderIndex:0,draggable:!0};e.default=t}(wg)),wg}var _g={},ms={},ew;function IE(){if(ew)return ms;ew=1;var e=vn;Object.defineProperty(ms,"__esModule",{value:!0}),ms.default=void 0;var t=e(Xr()),r=je,i=(0,t.default)((0,r.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");return ms.default=i,ms}var vs={},tw;function FE(){if(tw)return vs;tw=1;var e=vn;Object.defineProperty(vs,"__esModule",{value:!0}),vs.default=void 0;var t=e(Xr()),r=je,i=(0,t.default)((0,r.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove");return vs.default=i,vs}var ys={},nw;function NE(){if(nw)return ys;nw=1;var e=vn;Object.defineProperty(ys,"__esModule",{value:!0}),ys.default=void 0;var t=e(Xr()),r=je,i=(0,t.default)((0,r.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");return ys.default=i,ys}var bs={},rw;function jE(){if(rw)return bs;rw=1;var e=vn;Object.defineProperty(bs,"__esModule",{value:!0}),bs.default=void 0;var t=e(Xr()),r=je,i=(0,t.default)((0,r.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");return bs.default=i,bs}var xs={},aw;function $E(){if(aw)return xs;aw=1;var e=vn;Object.defineProperty(xs,"__esModule",{value:!0}),xs.default=void 0;var t=e(Xr()),r=je,i=(0,t.default)((0,r.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");return xs.default=i,xs}const vy=qn(r9);var ws={},iw;function BE(){if(iw)return ws;iw=1;var e=vn;Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=void 0;var t=e(Xr()),r=je,i=(0,t.default)((0,r.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");return ws.default=i,ws}var _s={},ow;function zE(){if(ow)return _s;ow=1;var e=vn;Object.defineProperty(_s,"__esModule",{value:!0}),_s.default=void 0;var t=e(Xr()),r=je,i=(0,t.default)((0,r.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");return _s.default=i,_s}var Ts={},lw;function qE(){if(lw)return Ts;lw=1;var e=vn;Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.default=void 0;var t=e(Xr()),r=je,i=(0,t.default)((0,r.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");return Ts.default=i,Ts}var ks={},sw;function WE(){if(sw)return ks;sw=1;var e=vn;Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=void 0;var t=e(Xr()),r=je,i=(0,t.default)((0,r.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList");return ks.default=i,ks}var Ms={},uw;function UE(){if(uw)return Ms;uw=1;var e=vn;Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.default=void 0;var t=e(Xr()),r=je,i=(0,t.default)((0,r.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt");return Ms.default=i,Ms}var Ss={},cw;function HE(){if(cw)return Ss;cw=1;var e=vn;Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.default=void 0;var t=e(Xr()),r=je,i=(0,t.default)((0,r.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");return Ss.default=i,Ss}var Cs={},fw;function VE(){if(fw)return Cs;fw=1;var e=vn;Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.default=void 0;var t=e(Xr()),r=je,i=(0,t.default)((0,r.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");return Cs.default=i,Cs}var Os={},dw;function YE(){if(dw)return Os;dw=1;var e=vn;Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var t=e(Xr()),r=je,i=(0,t.default)((0,r.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"}),"Clear");return Os.default=i,Os}var As={},hw;function GE(){if(hw)return As;hw=1;var e=vn;Object.defineProperty(As,"__esModule",{value:!0}),As.default=void 0;var t=e(Xr()),r=je,i=(0,t.default)((0,r.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");return As.default=i,As}var Ps={},pw;function XE(){if(pw)return Ps;pw=1;var e=vn;Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.default=void 0;var t=e(Xr()),r=je,i=(0,t.default)((0,r.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"}),"AddBox");return Ps.default=i,Ps}var gw;function MS(){return gw||(gw=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(IE()),u=t(FE()),o=t(NE()),a=t(jE()),n=t($E()),l=t(vy),f=t(BE()),s=t(zE()),c=t(qE()),d=t(WE()),h=t(UE()),p=t(rE),m=t(HE()),y=t(VE()),v=t(YE()),g=t(GE()),b=t(XE()),x=t(hr()),_=k($e);function w(M){if(typeof WeakMap!="function")return null;var S=new WeakMap,C=new WeakMap;return(w=function(D){return D?C:S})(M)}function k(M,S){if(M&&M.__esModule)return M;if(M===null||r(M)!=="object"&&typeof M!="function")return{default:M};var C=w(S);if(C&&C.has(M))return C.get(M);var P={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in M)if(O!=="default"&&Object.prototype.hasOwnProperty.call(M,O)){var R=D?Object.getOwnPropertyDescriptor(M,O):null;R&&(R.get||R.set)?Object.defineProperty(P,O,R):P[O]=M[O]}return P.default=M,C&&C.set(M,P),P}var T={Add:(0,_.forwardRef)(function(M,S){return _.default.createElement(b.default,(0,x.default)({},M,{ref:S,"data-testid":"add_box"}))}),Check:(0,_.forwardRef)(function(M,S){return _.default.createElement(g.default,(0,x.default)({},M,{ref:S,"data-testid":"check"}))}),Clear:(0,_.forwardRef)(function(M,S){return _.default.createElement(v.default,(0,x.default)({},M,{ref:S,"data-testid":"clear"}))}),Delete:(0,_.forwardRef)(function(M,S){return _.default.createElement(y.default,(0,x.default)({},M,{ref:S,"data-testid":"delete_outline"}))}),DetailPanel:(0,_.forwardRef)(function(M,S){return _.default.createElement(m.default,(0,x.default)({},M,{ref:S,"data-testid":"chevron_right"}))}),Edit:(0,_.forwardRef)(function(M,S){return _.default.createElement(p.default,(0,x.default)({},M,{ref:S,"data-testid":"edit"}))}),Export:(0,_.forwardRef)(function(M,S){return _.default.createElement(h.default,(0,x.default)({},M,{ref:S,"data-testid":"save_alt"}))}),Filter:(0,_.forwardRef)(function(M,S){return _.default.createElement(d.default,(0,x.default)({},M,{ref:S,"data-testid":"filter_list"}))}),FirstPage:(0,_.forwardRef)(function(M,S){return _.default.createElement(c.default,(0,x.default)({},M,{ref:S,"data-testid":"first_page"}))}),LastPage:(0,_.forwardRef)(function(M,S){return _.default.createElement(s.default,(0,x.default)({},M,{ref:S,"data-testid":"last_page"}))}),NextPage:(0,_.forwardRef)(function(M,S){return _.default.createElement(m.default,(0,x.default)({},M,{ref:S,"data-testid":"chevron_right"}))}),PreviousPage:(0,_.forwardRef)(function(M,S){return _.default.createElement(f.default,(0,x.default)({},M,{ref:S,"data-testid":"chevron_left"}))}),ResetSearch:(0,_.forwardRef)(function(M,S){return _.default.createElement(v.default,(0,x.default)({},M,{ref:S,"data-testid":"clear"}))}),Resize:(0,_.forwardRef)(function(M,S){return _.default.createElement(l.default,(0,x.default)({},M,{ref:S,"data-testid":"drag_handle"}),"|")}),Retry:(0,_.forwardRef)(function(M,S){return _.default.createElement(n.default,(0,x.default)({},M,{ref:S,"data-testid":"replay"}))}),Search:(0,_.forwardRef)(function(M,S){return _.default.createElement(a.default,(0,x.default)({},M,{ref:S,"data-testid":"search"}))}),SortArrow:(0,_.forwardRef)(function(M,S){return _.default.createElement(o.default,(0,x.default)({},M,{ref:S,"data-testid":"arrow_downward"}))}),ThirdStateCheck:(0,_.forwardRef)(function(M,S){return _.default.createElement(u.default,(0,x.default)({},M,{ref:S,"data-testid":"remove"}))}),ViewColumn:(0,_.forwardRef)(function(M,S){return _.default.createElement(i.default,(0,x.default)({},M,{ref:S,"data-testid":"view_column"}))})};e.default=T}(_g)),_g}var Tg,mw;function ZE(){if(mw)return Tg;mw=1;var e=function(g){return t(g)&&!r(g)};function t(v){return!!v&&typeof v=="object"}function r(v){var g=Object.prototype.toString.call(v);return g==="[object RegExp]"||g==="[object Date]"||o(v)}var i=typeof Symbol=="function"&&Symbol.for,u=i?Symbol.for("react.element"):60103;function o(v){return v.$$typeof===u}function a(v){return Array.isArray(v)?[]:{}}function n(v,g){return g.clone!==!1&&g.isMergeableObject(v)?m(a(v),v,g):v}function l(v,g,b){return v.concat(g).map(function(x){return n(x,b)})}function f(v,g){if(!g.customMerge)return m;var b=g.customMerge(v);return typeof b=="function"?b:m}function s(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(g){return Object.propertyIsEnumerable.call(v,g)}):[]}function c(v){return Object.keys(v).concat(s(v))}function d(v,g){try{return g in v}catch{return!1}}function h(v,g){return d(v,g)&&!(Object.hasOwnProperty.call(v,g)&&Object.propertyIsEnumerable.call(v,g))}function p(v,g,b){var x={};return b.isMergeableObject(v)&&c(v).forEach(function(_){x[_]=n(v[_],b)}),c(g).forEach(function(_){h(v,_)||(d(v,_)&&b.isMergeableObject(g[_])?x[_]=f(_,b)(v[_],g[_],b):x[_]=n(g[_],b))}),x}function m(v,g,b){b=b||{},b.arrayMerge=b.arrayMerge||l,b.isMergeableObject=b.isMergeableObject||e,b.cloneUnlessOtherwiseSpecified=n;var x=Array.isArray(g),_=Array.isArray(v),w=x===_;return w?x?b.arrayMerge(v,g,b):p(v,g,b):n(g,b)}m.all=function(g,b){if(!Array.isArray(g))throw new Error("first argument should be an array");return g.reduce(function(x,_){return m(x,_,b)},{})};var y=m;return Tg=y,Tg}var vw;function Ju(){if(vw)return Ka;vw=1;var e=vn;Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.useLocalizationStore=Ka.useIconStore=void 0,Ka.useMergeProps=v,Ka.useOptionStore=void 0,Ka.withContext=g;var t=e(Jr()),r=RE,i=e($e),u=e(_S()),o=e(TS()),a=e(kS()),n=e(MS()),l=e(u6());function f(b,x){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(b);x&&(w=w.filter(function(k){return Object.getOwnPropertyDescriptor(b,k).enumerable})),_.push.apply(_,w)}return _}function s(b){for(var x=1;x=0)&&(u[a]=r[a]);return u}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Sg)),Sg.exports}var ww;function jl(){return ww||(ww=1,function(e){var t=QE();function r(i,u){if(i==null)return{};var o=t(i,u),a,n;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(i,a)&&(o[a]=i[a])}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Mg)),Mg.exports}var _w;function eR(){return _w||(_w=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(JE),i=t(hr()),u=t(jl()),o=t($e),a=["forwardedRef"];function n(f){var s=f.forwardedRef,c=(0,u.default)(f,a);return o.default.createElement(r.default,(0,i.default)({elevation:2},c,{ref:s}))}var l=o.default.forwardRef(function(s,c){return o.default.createElement(n,(0,i.default)({},s,{forwardedRef:c}))});e.default=l}(kg)),kg}var Cg={};const Bo=qn(i9);var Og={exports:{}},Tw;function tR(){return Tw||(Tw=1,function(e,t){(function(i,u){e.exports=u($e)})(Ma,function(r){return function(i){var u={};function o(a){if(u[a])return u[a].exports;var n=u[a]={exports:{},id:a,loaded:!1};return i[a].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}return o.m=i,o.c=u,o.p="",o(0)}([function(i,u,o){Object.defineProperty(u,"__esModule",{value:!0});var a=function(){function p(m,y){for(var v=0;vr.length)&&(i=r.length);for(var u=0,o=new Array(i);u0&&R++,m.hasDetailPanel&&R++,m.isTreeData&&R++,l.default.createElement(a.default,{style:{height:O*(v.paging&&v.emptyRowsWhenPaging?m.pageSize:1)},key:"empty-0"},l.default.createElement(n.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:m.columns.reduce(function(F,A){return A.hidden?F:F+1},R),key:"empty-"},y.emptyDataSourceMessage))}else if(v.emptyRowsWhenPaging)return l.default.createElement(l.default.Fragment,null,(0,o.default)(Array(P)).map(function(F,A){return l.default.createElement(a.default,{style:{height:O},key:"empty-"+A})}),P>0&&l.default.createElement(a.default,{style:{height:1},key:"empty-last1"}))}function _(P){return P.map(function(D,O){if(D.tableData.editing||m.bulkEditOpen)return l.default.createElement(m.components.EditRow,{columns:b,components:m.components,data:D,errorState:m.errorState,icons:g,localization:y.editRow,key:"row-"+D.tableData.uuid,mode:m.bulkEditOpen?"bulk":D.tableData.editing,isTreeData:m.isTreeData,detailPanel:m.detailPanel,onEditingCanceled:m.onEditingCanceled,onEditingApproved:m.onEditingApproved,bulkEditChangedRows:m.bulkEditChangedRows,getFieldValue:m.getFieldValue,onBulkEditRowChanged:m.onBulkEditRowChanged,scrollWidth:m.scrollWidth});var R=m.isTreeData?[D.tableData.uuid]:[O+m.pageSize*m.currentPage];return l.default.createElement(m.components.Row,{components:m.components,data:D,index:O,errorState:m.errorState,key:"row-"+D.tableData.uuid,level:0,onRowSelected:m.onRowSelected,actions:m.actions,columns:m.columns,getFieldValue:m.getFieldValue,detailPanel:m.detailPanel,path:R,onToggleDetailPanel:m.onToggleDetailPanel,onRowClick:m.onRowClick,onRowDoubleClick:m.onRowDoubleClick,isTreeData:m.isTreeData,onTreeExpandChanged:m.onTreeExpandChanged,onEditingCanceled:m.onEditingCanceled,onEditingApproved:m.onEditingApproved,hasAnyEditingRow:m.hasAnyEditingRow,treeDataMaxLevel:m.treeDataMaxLevel,cellEditable:m.cellEditable,onCellEditStarted:m.onCellEditStarted,onCellEditFinished:m.onCellEditFinished,onRowEditStarted:m.onRowEditStarted,scrollWidth:m.scrollWidth})})}function w(P,D){return D.map(function(O,R){return l.default.createElement(m.components.GroupRow,{actions:m.actions,cellEditable:m.cellEditable,columns:m.columns,components:m.components,detailPanel:m.detailPanel,getFieldValue:m.getFieldValue,groupData:O,groups:P,hasAnyEditingRow:m.hasAnyEditingRow,icons:g,isTreeData:m.isTreeData,key:O.value==null?""+R:O.value,level:0,localization:y.editRow,onBulkEditRowChanged:m.onBulkEditRowChanged,onCellEditFinished:m.onCellEditFinished,onCellEditStarted:m.onCellEditStarted,onEditingApproved:m.onEditingApproved,onEditingCanceled:m.onEditingCanceled,onGroupExpandChanged:m.onGroupExpandChanged,onRowClick:m.onRowClick,onGroupSelected:m.onGroupSelected,onRowSelected:m.onRowSelected,onToggleDetailPanel:m.onToggleDetailPanel,onTreeExpandChanged:m.onTreeExpandChanged,path:[R+m.pageSize*m.currentPage],scrollWidth:m.scrollWidth,treeDataMaxLevel:m.treeDataMaxLevel})})}function k(){return m.showAddRow&&l.default.createElement(m.components.EditRow,{columns:b,components:m.components,data:m.initialFormData,detailPanel:m.detailPanel,errorState:m.errorState,getFieldValue:m.getFieldValue,icons:g,isTreeData:m.isTreeData,key:"key-add-row",localization:y.editRow,mode:"add",onEditingApproved:m.onEditingApproved,onEditingCanceled:m.onEditingCanceled,scrollWidth:m.scrollWidth})}var T=m.renderData,M=m.columns.filter(function(P){return P.tableData.groupOrder>-1}).sort(function(P,D){return P.tableData.groupOrder-D.tableData.groupOrder}),S=0;v.paging&&m.pageSize>T.length&&(S=m.pageSize-T.length);var C=l.default.useMemo(function(){return m.renderSummaryRow?function(P){return m.renderSummaryRow(d(d({},P),{},{data:m.data,currentData:m.currentData}))}:void 0},[m.data]);return l.default.createElement(i.default,{ref:m.forwardedRef},v.filtering&&l.default.createElement(m.components.FilterRow,{columns:b,icons:g,hasActions:m.actions.some(function(P){return P.position==="row"||typeof P=="function"}),onFilterChanged:m.onFilterChanged,localization:y.filterRow,hasDetailPanel:!!m.detailPanel,isTreeData:m.isTreeData,scrollWidth:m.scrollWidth,hideFilterIcons:m.options.hideFilterIcons}),v.addRowPosition==="first"&&k(),M.length>0?w(M,T):_(T),v.addRowPosition==="last"&&k(),l.default.createElement(m.components.SummaryRow,{columns:b,renderSummaryRow:C,rowProps:m}),x(S,T))}h.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},h.propTypes={actions:f.default.array,bulkEditChangedRows:f.default.object,bulkEditOpen:f.default.bool,cellEditable:f.default.object,columns:f.default.array.isRequired,components:f.default.object.isRequired,currentPage:f.default.number,data:f.default.array,detailPanel:f.default.oneOfType([f.default.func,f.default.arrayOf(f.default.oneOfType([f.default.object,f.default.func]))]),errorState:f.default.oneOfType([f.default.object,f.default.bool]),forwardedRef:f.default.oneOfType([f.default.func,f.default.object]),getFieldValue:f.default.func.isRequired,hasAnyEditingRow:f.default.bool,hasDetailPanel:f.default.bool.isRequired,initialFormData:f.default.object,isTreeData:f.default.bool.isRequired,onBulkEditRowChanged:f.default.func,onCellEditFinished:f.default.func,onCellEditStarted:f.default.func,onEditingApproved:f.default.func,onEditingCanceled:f.default.func,onFilterChanged:f.default.func,onGroupExpandChanged:f.default.func,onRowClick:f.default.func,onRowDoubleClick:f.default.func,onGroupSelected:f.default.func,onRowSelected:f.default.func,onToggleDetailPanel:f.default.func.isRequired,onTreeExpandChanged:f.default.func.isRequired,pageSize:f.default.number,renderData:f.default.array,renderSummaryRow:f.default.func,scrollWidth:f.default.number.isRequired,selection:f.default.bool.isRequired,showAddRow:f.default.bool,treeDataMaxLevel:f.default.number};var p=l.default.forwardRef(function(y,v){return l.default.createElement(h,(0,r.default)({},y,{forwardedRef:v}))});e.default=p}(Ag)),Ag}var Fg={},Ng={exports:{}},Ew;function Dd(){return Ew||(Ew=1,function(e){function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ng)),Ng.exports}var jg={exports:{}},Rw;function Ed(){return Rw||(Rw=1,function(e){var t=hS();function r(u,o){for(var a=0;a1?"s":"")+" required, but only "+t.length+" present")}function hn(e){dn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Mi(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function C0(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return isNaN(i)?new Date(NaN):(i&&r.setDate(r.getDate()+i),r)}function Ld(e,t){dn(2,arguments);var r=hn(e).getTime(),i=sr(t);return new Date(r+i)}function fR(e,t){dn(2,arguments);var r=sr(t);return Ld(e,r*1e3)}var dR=6e4;function hR(e,t){dn(2,arguments);var r=sr(t);return Ld(e,r*dR)}var pR=36e5;function gR(e,t){dn(2,arguments);var r=sr(t);return Ld(e,r*pR)}function mR(e,t){dn(2,arguments);var r=sr(t),i=r*7;return C0(e,i)}function ff(e,t){dn(2,arguments);var r=hn(e),i=sr(t);if(isNaN(i))return new Date(NaN);if(!i)return r;var u=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+i+1,0);var a=o.getDate();return u>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),u),r)}function $w(e,t){dn(2,arguments);var r=sr(t);return ff(e,r*12)}function vR(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getFullYear()-i.getFullYear()}function wu(e,t){dn(2,arguments);var r=hn(e),i=hn(t),u=r.getTime()-i.getTime();return u<0?-1:u>0?1:u}function yR(e,t){dn(2,arguments);var r=hn(e),i=hn(t),u=wu(r,i),o=Math.abs(vR(r,i));r.setFullYear(1584),i.setFullYear(1584);var a=wu(r,i)===-u,n=u*(o-Number(a));return n===0?0:n}function bR(e,t){dn(2,arguments);var r=hn(e),i=hn(t),u=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return u*12+o}function O0(e){dn(1,arguments);var t=hn(e);return t.setHours(23,59,59,999),t}function A0(e){dn(1,arguments);var t=hn(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function xR(e){dn(1,arguments);var t=hn(e);return O0(t).getTime()===A0(t).getTime()}function DS(e,t){dn(2,arguments);var r=hn(e),i=hn(t),u=wu(r,i),o=Math.abs(bR(r,i)),a;if(o<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-u*o);var n=wu(r,i)===-u;xR(hn(e))&&o===1&&wu(e,i)===1&&(n=!1),a=u*(o-Number(n))}return a===0?0:a}var Bw={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},wR="trunc";function Qu(e){return e?Bw[e]:Bw[wR]}function _R(e,t,r){dn(2,arguments);var i=DS(e,t)/3;return Qu(void 0)(i)}function Df(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function _l(e){dn(1,arguments);var t=hn(e);return t.setHours(0,0,0,0),t}var TR=864e5;function kR(e,t){dn(2,arguments);var r=_l(e),i=_l(t),u=r.getTime()-Df(r),o=i.getTime()-Df(i);return Math.round((u-o)/TR)}function zw(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function ES(e,t){dn(2,arguments);var r=hn(e),i=hn(t),u=zw(r,i),o=Math.abs(kR(r,i));r.setDate(r.getDate()-u*o);var a=+(zw(r,i)===-u),n=u*(o-a);return n===0?0:n}function MR(e,t,r){dn(2,arguments);var i=ES(e,t)/7;return Qu(void 0)(i)}var Id=6e4,Fd=36e5,SR=1e3;function Nd(e,t){return dn(2,arguments),hn(e).getTime()-hn(t).getTime()}function CR(e,t,r){dn(2,arguments);var i=Nd(e,t)/Fd;return Qu(void 0)(i)}function OR(e,t,r){dn(2,arguments);var i=Nd(e,t)/Id;return Qu(void 0)(i)}function AR(e,t,r){dn(2,arguments);var i=Nd(e,t)/1e3;return Qu(void 0)(i)}function PR(e,t){var r;dn(1,arguments);var i=e||{},u=hn(i.start),o=hn(i.end),a=o.getTime();if(!(u.getTime()<=a))throw new RangeError("Invalid interval");var n=[],l=u;l.setHours(0,0,0,0);var f=Number((r=void 0)!==null&&r!==void 0?r:1);if(f<1||isNaN(f))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=a;)n.push(hn(l)),l.setDate(l.getDate()+f),l.setHours(0,0,0,0);return n}var DR={};function ro(){return DR}function Ug(e,t){var r,i,u,o,a,n,l,f;dn(1,arguments);var s=ro(),c=sr((r=(i=(u=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&u!==void 0?u:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getDay(),p=(h=u.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function IR(e){dn(1,arguments);var t=IS(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var i=Tl(r);return i}var FR=6048e5;function FS(e){dn(1,arguments);var t=hn(e),r=Tl(t).getTime()-IR(t).getTime();return Math.round(r/FR)+1}function Co(e,t){var r,i,u,o,a,n,l,f;dn(1,arguments);var s=ro(),c=sr((r=(i=(u=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&u!==void 0?u:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(c+1,0,h),p.setUTCHours(0,0,0,0);var m=Co(p,t),y=new Date(0);y.setUTCFullYear(c,0,h),y.setUTCHours(0,0,0,0);var v=Co(y,t);return s.getTime()>=m.getTime()?c+1:s.getTime()>=v.getTime()?c:c-1}function NR(e,t){var r,i,u,o,a,n,l,f;dn(1,arguments);var s=ro(),c=sr((r=(i=(u=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:s.firstWeekContainsDate)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=Ty(e,t),h=new Date(0);h.setUTCFullYear(d,0,c),h.setUTCHours(0,0,0,0);var p=Co(h,t);return p}var jR=6048e5;function NS(e,t){dn(1,arguments);var r=hn(e),i=Co(r,t).getTime()-NR(r,t).getTime();return Math.round(i/jR)+1}function Hn(e,t){for(var r=e<0?"-":"",i=Math.abs(e).toString();i.length0?i:1-i;return Hn(r==="yy"?u%100:u,r.length)},M:function(t,r){var i=t.getUTCMonth();return r==="M"?String(i+1):Hn(i+1,2)},d:function(t,r){return Hn(t.getUTCDate(),r.length)},a:function(t,r){var i=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h:function(t,r){return Hn(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Hn(t.getUTCHours(),r.length)},m:function(t,r){return Hn(t.getUTCMinutes(),r.length)},s:function(t,r){return Hn(t.getUTCSeconds(),r.length)},S:function(t,r){var i=r.length,u=t.getUTCMilliseconds(),o=Math.floor(u*Math.pow(10,i-3));return Hn(o,r.length)}},al={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},$R={G:function(t,r,i){var u=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return i.era(u,{width:"abbreviated"});case"GGGGG":return i.era(u,{width:"narrow"});case"GGGG":default:return i.era(u,{width:"wide"})}},y:function(t,r,i){if(r==="yo"){var u=t.getUTCFullYear(),o=u>0?u:1-u;return i.ordinalNumber(o,{unit:"year"})}return Bi.y(t,r)},Y:function(t,r,i,u){var o=Ty(t,u),a=o>0?o:1-o;if(r==="YY"){var n=a%100;return Hn(n,2)}return r==="Yo"?i.ordinalNumber(a,{unit:"year"}):Hn(a,r.length)},R:function(t,r){var i=IS(t);return Hn(i,r.length)},u:function(t,r){var i=t.getUTCFullYear();return Hn(i,r.length)},Q:function(t,r,i){var u=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(u);case"QQ":return Hn(u,2);case"Qo":return i.ordinalNumber(u,{unit:"quarter"});case"QQQ":return i.quarter(u,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(u,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(u,{width:"wide",context:"formatting"})}},q:function(t,r,i){var u=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(u);case"qq":return Hn(u,2);case"qo":return i.ordinalNumber(u,{unit:"quarter"});case"qqq":return i.quarter(u,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(u,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(u,{width:"wide",context:"standalone"})}},M:function(t,r,i){var u=t.getUTCMonth();switch(r){case"M":case"MM":return Bi.M(t,r);case"Mo":return i.ordinalNumber(u+1,{unit:"month"});case"MMM":return i.month(u,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(u,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(u,{width:"wide",context:"formatting"})}},L:function(t,r,i){var u=t.getUTCMonth();switch(r){case"L":return String(u+1);case"LL":return Hn(u+1,2);case"Lo":return i.ordinalNumber(u+1,{unit:"month"});case"LLL":return i.month(u,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(u,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(u,{width:"wide",context:"standalone"})}},w:function(t,r,i,u){var o=NS(t,u);return r==="wo"?i.ordinalNumber(o,{unit:"week"}):Hn(o,r.length)},I:function(t,r,i){var u=FS(t);return r==="Io"?i.ordinalNumber(u,{unit:"week"}):Hn(u,r.length)},d:function(t,r,i){return r==="do"?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):Bi.d(t,r)},D:function(t,r,i){var u=LR(t);return r==="Do"?i.ordinalNumber(u,{unit:"dayOfYear"}):Hn(u,r.length)},E:function(t,r,i){var u=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return i.day(u,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(u,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(u,{width:"short",context:"formatting"});case"EEEE":default:return i.day(u,{width:"wide",context:"formatting"})}},e:function(t,r,i,u){var o=t.getUTCDay(),a=(o-u.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return Hn(a,2);case"eo":return i.ordinalNumber(a,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});case"eeee":default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,i,u){var o=t.getUTCDay(),a=(o-u.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return Hn(a,r.length);case"co":return i.ordinalNumber(a,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});case"cccc":default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,i){var u=t.getUTCDay(),o=u===0?7:u;switch(r){case"i":return String(o);case"ii":return Hn(o,r.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(u,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(u,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(u,{width:"short",context:"formatting"});case"iiii":default:return i.day(u,{width:"wide",context:"formatting"})}},a:function(t,r,i){var u=t.getUTCHours(),o=u/12>=1?"pm":"am";switch(r){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,i){var u=t.getUTCHours(),o;switch(u===12?o=al.noon:u===0?o=al.midnight:o=u/12>=1?"pm":"am",r){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,i){var u=t.getUTCHours(),o;switch(u>=17?o=al.evening:u>=12?o=al.afternoon:u>=4?o=al.morning:o=al.night,r){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,i){if(r==="ho"){var u=t.getUTCHours()%12;return u===0&&(u=12),i.ordinalNumber(u,{unit:"hour"})}return Bi.h(t,r)},H:function(t,r,i){return r==="Ho"?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Bi.H(t,r)},K:function(t,r,i){var u=t.getUTCHours()%12;return r==="Ko"?i.ordinalNumber(u,{unit:"hour"}):Hn(u,r.length)},k:function(t,r,i){var u=t.getUTCHours();return u===0&&(u=24),r==="ko"?i.ordinalNumber(u,{unit:"hour"}):Hn(u,r.length)},m:function(t,r,i){return r==="mo"?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Bi.m(t,r)},s:function(t,r,i){return r==="so"?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Bi.s(t,r)},S:function(t,r){return Bi.S(t,r)},X:function(t,r,i,u){var o=u._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return Ww(a);case"XXXX":case"XX":return po(a);case"XXXXX":case"XXX":default:return po(a,":")}},x:function(t,r,i,u){var o=u._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return Ww(a);case"xxxx":case"xx":return po(a);case"xxxxx":case"xxx":default:return po(a,":")}},O:function(t,r,i,u){var o=u._originalDate||t,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+qw(a,":");case"OOOO":default:return"GMT"+po(a,":")}},z:function(t,r,i,u){var o=u._originalDate||t,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+qw(a,":");case"zzzz":default:return"GMT"+po(a,":")}},t:function(t,r,i,u){var o=u._originalDate||t,a=Math.floor(o.getTime()/1e3);return Hn(a,r.length)},T:function(t,r,i,u){var o=u._originalDate||t,a=o.getTime();return Hn(a,r.length)}};function qw(e,t){var r=e>0?"-":"+",i=Math.abs(e),u=Math.floor(i/60),o=i%60;if(o===0)return r+String(u);var a=t;return r+String(u)+a+Hn(o,2)}function Ww(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Hn(Math.abs(e)/60,2)}return po(e,t)}function po(e,t){var r=t||"",i=e>0?"-":"+",u=Math.abs(e),o=Hn(Math.floor(u/60),2),a=Hn(u%60,2);return i+o+r+a}var Uw=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},jS=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},BR=function(t,r){var i=t.match(/(P+)(p+)?/)||[],u=i[1],o=i[2];if(!o)return Uw(t,r);var a;switch(u){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",Uw(u,r)).replace("{{time}}",jS(o,r))},P0={p:jS,P:BR},zR=["D","DD"],qR=["YY","YYYY"];function $S(e){return zR.indexOf(e)!==-1}function BS(e){return qR.indexOf(e)!==-1}function Ef(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var WR={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},UR=function(t,r,i){var u,o=WR[t];return typeof o=="string"?u=o:r===1?u=o.one:u=o.other.replace("{{count}}",r.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+u:u+" ago":u};function Vg(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,i=e.formats[r]||e.formats[e.defaultWidth];return i}}var HR={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},VR={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},YR={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},GR={date:Vg({formats:HR,defaultWidth:"full"}),time:Vg({formats:VR,defaultWidth:"full"}),dateTime:Vg({formats:YR,defaultWidth:"full"})},XR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ZR=function(t,r,i,u){return XR[t]};function Ds(e){return function(t,r){var i=r!=null&&r.context?String(r.context):"standalone",u;if(i==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;u=e.formattingValues[a]||e.formattingValues[o]}else{var n=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;u=e.values[l]||e.values[n]}var f=e.argumentCallback?e.argumentCallback(t):t;return u[f]}}var KR={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},JR={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},QR={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},eL={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},tL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},rL=function(t,r){var i=Number(t),u=i%100;if(u>20||u<10)switch(u%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},aL={ordinalNumber:rL,era:Ds({values:KR,defaultWidth:"wide"}),quarter:Ds({values:JR,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ds({values:QR,defaultWidth:"wide"}),day:Ds({values:eL,defaultWidth:"wide"}),dayPeriod:Ds({values:tL,defaultWidth:"wide",formattingValues:nL,defaultFormattingWidth:"wide"})};function Es(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.width,u=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(u);if(!o)return null;var a=o[0],n=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(n)?oL(n,function(c){return c.test(a)}):iL(n,function(c){return c.test(a)}),f;f=e.valueCallback?e.valueCallback(l):l,f=r.valueCallback?r.valueCallback(f):f;var s=t.slice(a.length);return{value:f,rest:s}}}function iL(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function oL(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var u=i[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var n=t.slice(u.length);return{value:a,rest:n}}}var sL=/^(\d+)(th|st|nd|rd)?/i,uL=/\d+/i,cL={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fL={any:[/^b/i,/^(a|c)/i]},dL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},hL={any:[/1/i,/2/i,/3/i,/4/i]},pL={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},gL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mL={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},vL={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},yL={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bL={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xL={ordinalNumber:lL({matchPattern:sL,parsePattern:uL,valueCallback:function(t){return parseInt(t,10)}}),era:Es({matchPatterns:cL,defaultMatchWidth:"wide",parsePatterns:fL,defaultParseWidth:"any"}),quarter:Es({matchPatterns:dL,defaultMatchWidth:"wide",parsePatterns:hL,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Es({matchPatterns:pL,defaultMatchWidth:"wide",parsePatterns:gL,defaultParseWidth:"any"}),day:Es({matchPatterns:mL,defaultMatchWidth:"wide",parsePatterns:vL,defaultParseWidth:"any"}),dayPeriod:Es({matchPatterns:yL,defaultMatchWidth:"any",parsePatterns:bL,defaultParseWidth:"any"})},jd={code:"en-US",formatDistance:UR,formatLong:GR,formatRelative:ZR,localize:aL,match:xL,options:{weekStartsOn:0,firstWeekContainsDate:1}},wL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_L=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,TL=/^'([^]*?)'?$/,kL=/''/g,ML=/[a-zA-Z]/;function zS(e,t,r){var i,u,o,a,n,l,f,s,c,d,h,p,m,y,v,g,b,x;dn(2,arguments);var _=String(t),w=ro(),k=(i=(u=r==null?void 0:r.locale)!==null&&u!==void 0?u:w.locale)!==null&&i!==void 0?i:jd,T=sr((o=(a=(n=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(f=r.locale)===null||f===void 0||(s=f.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:w.firstWeekContainsDate)!==null&&a!==void 0?a:(c=w.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=sr((h=(p=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(v=r.locale)===null||v===void 0||(g=v.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&m!==void 0?m:w.weekStartsOn)!==null&&p!==void 0?p:(b=w.locale)===null||b===void 0||(x=b.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var S=hn(e);if(!RS(S))throw new RangeError("Invalid time value");var C=Df(S),P=LS(S,C),D={firstWeekContainsDate:T,weekStartsOn:M,locale:k,_originalDate:S},O=_.match(_L).map(function(R){var F=R[0];if(F==="p"||F==="P"){var A=P0[F];return A(R,k.formatLong)}return R}).join("").match(wL).map(function(R){if(R==="''")return"'";var F=R[0];if(F==="'")return SL(R);var A=$R[F];if(A)return!(r!=null&&r.useAdditionalWeekYearTokens)&&BS(R)&&Ef(R,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&$S(R)&&Ef(R,t,String(e)),A(P,R,k.localize,D);if(F.match(ML))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return R}).join("");return O}function SL(e){var t=e.match(TL);return t?t[1].replace(kL,"'"):e}const CL=Object.freeze(Object.defineProperty({__proto__:null,default:zS},Symbol.toStringTag,{value:"Module"}));function OL(e){dn(1,arguments);var t=hn(e),r=t.getDate();return r}function AL(e){dn(1,arguments);var t=hn(e),r=t.getDay();return r}function qS(e){dn(1,arguments);var t=hn(e),r=t.getFullYear(),i=t.getMonth(),u=new Date(0);return u.setFullYear(r,i+1,0),u.setHours(0,0,0,0),u.getDate()}function PL(e){dn(1,arguments);var t=hn(e),r=t.getHours();return r}function DL(e){dn(1,arguments);var t=hn(e),r=t.getMinutes();return r}function EL(e){dn(1,arguments);var t=hn(e),r=t.getMonth();return r}function RL(e){dn(1,arguments);var t=hn(e),r=t.getSeconds();return r}function LL(e){return dn(1,arguments),hn(e).getFullYear()}function Fc(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getTime()>i.getTime()}function il(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getTime()e.length)&&(t=e.length);for(var r=0,i=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(f){throw f},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,n;return{s:function(){r=r.call(e)},n:function(){var f=r.next();return o=f.done,f},e:function(f){a=!0,n=f},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw n}}}}function zL(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Qn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v9(e,t)}function Rf(e){return Rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rf(e)}function qL(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function WL(e,t){if(t&&(Mi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xn(e)}function er(e){var t=qL();return function(){var i=Rf(e),u;if(t){var o=Rf(this).constructor;u=Reflect.construct(i,arguments,o)}else u=i.apply(this,arguments);return WL(this,u)}}function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UL(e,t){if(Mi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Mi(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WS(e){var t=UL(e,"string");return Mi(t)==="symbol"?t:String(t)}function HL(e,t){for(var r=0;r0,i=r?t:1-t,u;if(i<=50)u=e||100;else{var o=i+50,a=Math.floor(o/100)*100,n=e>=o%100;u=e+a-(n?100:0)}return r?u:1-u}function YS(e){return e%400===0||e%4===0&&e%100!==0}var ZL=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a0}},{key:"set",value:function(u,o,a){var n=u.getUTCFullYear();if(a.isTwoDigitYear){var l=VS(a.year,n);return u.setUTCFullYear(l,0,1),u.setUTCHours(0,0,0,0),u}var f=!("era"in o)||o.era===1?a.year:1-a.year;return u.setUTCFullYear(f,0,1),u.setUTCHours(0,0,0,0),u}}]),r}(or),KL=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a0}},{key:"set",value:function(u,o,a,n){var l=Ty(u,n);if(a.isTwoDigitYear){var f=VS(a.year,l);return u.setUTCFullYear(f,0,n.firstWeekContainsDate),u.setUTCHours(0,0,0,0),Co(u,n)}var s=!("era"in o)||o.era===1?a.year:1-a.year;return u.setUTCFullYear(s,0,n.firstWeekContainsDate),u.setUTCHours(0,0,0,0),Co(u,n)}}]),r}(or),JL=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=4}},{key:"set",value:function(u,o,a){return u.setUTCMonth((a-1)*3,1),u.setUTCHours(0,0,0,0),u}}]),r}(or),tI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=4}},{key:"set",value:function(u,o,a){return u.setUTCMonth((a-1)*3,1),u.setUTCHours(0,0,0,0),u}}]),r}(or),nI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=11}},{key:"set",value:function(u,o,a){return u.setUTCMonth(a,1),u.setUTCHours(0,0,0,0),u}}]),r}(or),rI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=11}},{key:"set",value:function(u,o,a){return u.setUTCMonth(a,1),u.setUTCHours(0,0,0,0),u}}]),r}(or);function aI(e,t,r){dn(2,arguments);var i=hn(e),u=sr(t),o=NS(i,r)-u;return i.setUTCDate(i.getUTCDate()-o*7),i}var iI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=53}},{key:"set",value:function(u,o,a,n){return Co(aI(u,a,n),n)}}]),r}(or);function oI(e,t){dn(2,arguments);var r=hn(e),i=sr(t),u=FS(r)-i;return r.setUTCDate(r.getUTCDate()-u*7),r}var lI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=53}},{key:"set",value:function(u,o,a){return Tl(oI(u,a))}}]),r}(or),sI=[31,28,31,30,31,30,31,31,30,31,30,31],uI=[31,29,31,30,31,30,31,31,30,31,30,31],cI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=uI[l]:o>=1&&o<=sI[l]}},{key:"set",value:function(u,o,a){return u.setUTCDate(a),u.setUTCHours(0,0,0,0),u}}]),r}(or),fI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(u,o,a){return u.setUTCMonth(0,a),u.setUTCHours(0,0,0,0),u}}]),r}(or);function My(e,t,r){var i,u,o,a,n,l,f,s;dn(2,arguments);var c=ro(),d=sr((i=(u=(o=(a=r==null?void 0:r.weekStartsOn)!==null&&a!==void 0?a:r==null||(n=r.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:c.weekStartsOn)!==null&&u!==void 0?u:(f=c.locale)===null||f===void 0||(s=f.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=hn(e),p=sr(t),m=h.getUTCDay(),y=p%7,v=(y+7)%7,g=(v=0&&o<=6}},{key:"set",value:function(u,o,a,n){return u=My(u,a,n),u.setUTCHours(0,0,0,0),u}}]),r}(or),hI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=6}},{key:"set",value:function(u,o,a,n){return u=My(u,a,n),u.setUTCHours(0,0,0,0),u}}]),r}(or),pI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=6}},{key:"set",value:function(u,o,a,n){return u=My(u,a,n),u.setUTCHours(0,0,0,0),u}}]),r}(or);function gI(e,t){dn(2,arguments);var r=sr(t);r%7===0&&(r=r-7);var i=1,u=hn(e),o=u.getUTCDay(),a=r%7,n=(a+7)%7,l=(n=1&&o<=7}},{key:"set",value:function(u,o,a){return u=gI(u,a),u.setUTCHours(0,0,0,0),u}}]),r}(or),vI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=12}},{key:"set",value:function(u,o,a){var n=u.getUTCHours()>=12;return n&&a<12?u.setUTCHours(a+12,0,0,0):!n&&a===12?u.setUTCHours(0,0,0,0):u.setUTCHours(a,0,0,0),u}}]),r}(or),wI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=23}},{key:"set",value:function(u,o,a){return u.setUTCHours(a,0,0,0),u}}]),r}(or),_I=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=11}},{key:"set",value:function(u,o,a){var n=u.getUTCHours()>=12;return n&&a<12?u.setUTCHours(a+12,0,0,0):u.setUTCHours(a,0,0,0),u}}]),r}(or),TI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=24}},{key:"set",value:function(u,o,a){var n=a<=24?a%24:a;return u.setUTCHours(n,0,0,0),u}}]),r}(or),kI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=59}},{key:"set",value:function(u,o,a){return u.setUTCMinutes(a,0,0),u}}]),r}(or),MI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=59}},{key:"set",value:function(u,o,a){return u.setUTCSeconds(a,0),u}}]),r}(or),SI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=sr((p=(m=(y=(v=i==null?void 0:i.weekStartsOn)!==null&&v!==void 0?v:i==null||(g=i.locale)===null||g===void 0||(b=g.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&y!==void 0?y:T.weekStartsOn)!==null&&m!==void 0?m:(x=T.locale)===null||x===void 0||(_=x.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&p!==void 0?p:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(k==="")return w===""?hn(r):new Date(NaN);var P={firstWeekContainsDate:S,weekStartsOn:C,locale:M},D=[new GL],O=k.match(RI).map(function(H){var V=H[0];if(V in P0){var te=P0[V];return te(H,M.formatLong)}return H}).join("").match(EI),R=[],F=Yw(O),A;try{var z=function(){var V=A.value;!(i!=null&&i.useAdditionalWeekYearTokens)&&BS(V)&&Ef(V,k,e),!(i!=null&&i.useAdditionalDayOfYearTokens)&&$S(V)&&Ef(V,k,e);var te=V[0],ee=DI[te];if(ee){var U=ee.incompatibleTokens;if(Array.isArray(U)){var Q=R.find(function(Z){return U.includes(Z.token)||Z.token===te});if(Q)throw new RangeError("The format string mustn't contain `".concat(Q.fullToken,"` and `").concat(V,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(V,"` and any other token at the same time"));R.push({token:te,fullToken:V});var Y=ee.run(w,V,M.match,P);if(!Y)return{v:new Date(NaN)};D.push(Y.setter),w=Y.rest}else{if(te.match(NI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(V==="''"?V="'":te==="'"&&(V=$I(V)),w.indexOf(V)===0)w=w.slice(V.length);else return{v:new Date(NaN)}}};for(F.s();!(A=F.n()).done;){var B=z();if(Mi(B)==="object")return B.v}}catch(H){F.e(H)}finally{F.f()}if(w.length>0&&FI.test(w))return new Date(NaN);var $=D.map(function(H){return H.priority}).sort(function(H,V){return V-H}).filter(function(H,V,te){return te.indexOf(H)===V}).map(function(H){return D.filter(function(V){return V.priority===H}).sort(function(V,te){return te.subPriority-V.subPriority})}).map(function(H){return H[0]}),j=hn(r);if(isNaN(j.getTime()))return new Date(NaN);var N=LS(j,Df(j)),E={},W=Yw($),G;try{for(W.s();!(G=W.n()).done;){var L=G.value;if(!L.validate(N,P))return new Date(NaN);var q=L.set(N,E,P);Array.isArray(q)?(N=q[0],zL(E,q[1])):N=q}}catch(H){W.e(H)}finally{W.f()}return N}function $I(e){return e.match(LI)[1].replace(II,"'")}function BI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setDate(i),r}function zI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setHours(i),r}function qI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setMinutes(i),r}function WI(e,t){dn(2,arguments);var r=hn(e),i=sr(t),u=r.getFullYear(),o=r.getDate(),a=new Date(0);a.setFullYear(u,i,15),a.setHours(0,0,0,0);var n=qS(a);return r.setMonth(i,Math.min(o,n)),r}function UI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setSeconds(i),r}function HI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(i),r)}function Nc(e){dn(1,arguments);var t=hn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Yg(e,t){var r,i,u,o,a,n,l,f;dn(1,arguments);var s=ro(),c=sr((r=(i=(u=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&u!==void 0?u:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getDay(),p=(h2)return t;if(/:/.test(r[0])?i=r[0]:(t.date=r[0],i=r[1],$c.timeZoneDelimiter.test(t.date)&&(t.date=e.split($c.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){var u=$c.timezone.exec(i);u?(t.time=i.replace(u[1],""),t.timezone=u[1]):t.time=i}return t}function ZI(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(r);if(!i)return{year:NaN,restDateString:""};var u=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?u:o*100,restDateString:e.slice((i[1]||i[2]).length)}}function KI(e,t){if(t===null)return new Date(NaN);var r=e.match(VI);if(!r)return new Date(NaN);var i=!!r[4],u=Rs(r[1]),o=Rs(r[2])-1,a=Rs(r[3]),n=Rs(r[4]),l=Rs(r[5])-1;if(i)return aF(t,n,l)?eF(t,n,l):new Date(NaN);var f=new Date(0);return!nF(t,o,a)||!rF(t,u)?new Date(NaN):(f.setUTCFullYear(t,o,Math.max(u,a)),f)}function Rs(e){return e?parseInt(e):1}function JI(e){var t=e.match(YI);if(!t)return NaN;var r=Gg(t[1]),i=Gg(t[2]),u=Gg(t[3]);return iF(r,i,u)?r*Fd+i*Id+u*1e3:NaN}function Gg(e){return e&&parseFloat(e.replace(",","."))||0}function QI(e){if(e==="Z")return 0;var t=e.match(GI);if(!t)return 0;var r=t[1]==="+"?-1:1,i=parseInt(t[2]),u=t[3]&&parseInt(t[3])||0;return oF(i,u)?r*(i*Fd+u*Id):NaN}function eF(e,t,r){var i=new Date(0);i.setUTCFullYear(e,0,4);var u=i.getUTCDay()||7,o=(t-1)*7+r+1-u;return i.setUTCDate(i.getUTCDate()+o),i}var tF=[31,null,31,30,31,30,31,31,30,31,30,31];function XS(e){return e%400===0||e%4===0&&e%100!==0}function nF(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(tF[t]||(XS(e)?29:28))}function rF(e,t){return t>=1&&t<=(XS(e)?366:365)}function aF(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function iF(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function oF(e,t){return t>=0&&t<=59}const lF=Object.freeze(Object.defineProperty({__proto__:null,default:GS},Symbol.toStringTag,{value:"Module"}));function sF(e,t){var r,i;dn(1,arguments);var u=hn(e);if(isNaN(u.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((i=t==null?void 0:t.representation)!==null&&i!==void 0?i:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var n="",l="",f=o==="extended"?"-":"",s=o==="extended"?":":"";if(a!=="time"){var c=Hn(u.getDate(),2),d=Hn(u.getMonth()+1,2),h=Hn(u.getFullYear(),4);n="".concat(h).concat(f).concat(d).concat(f).concat(c)}if(a!=="date"){var p=u.getTimezoneOffset();if(p!==0){var m=Math.abs(p),y=Hn(Math.floor(m/60),2),v=Hn(m%60,2),g=p<0?"+":"-";l="".concat(g).concat(y,":").concat(v)}else l="Z";var b=Hn(u.getHours(),2),x=Hn(u.getMinutes(),2),_=Hn(u.getSeconds(),2),w=n===""?"":"T",k=[b,x,_].join(s);n="".concat(n).concat(w).concat(k).concat(l)}return n}function uF(e,t){dn(2,arguments);var r=hn(e).getTime(),i=hn(t.start).getTime(),u=hn(t.end).getTime();if(!(i<=u))throw new RangeError("Invalid interval");return r>=i&&r<=u}var D0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(l,f){switch(l){case"P":return f.date({width:"short"});case"PP":return f.date({width:"medium"});case"PPP":return f.date({width:"long"});case"PPPP":default:return f.date({width:"full"})}},i=function(l,f){switch(l){case"p":return f.time({width:"short"});case"pp":return f.time({width:"medium"});case"ppp":return f.time({width:"long"});case"pppp":default:return f.time({width:"full"})}},u=function(l,f){var s=l.match(/(P+)(p+)?/)||[],c=s[1],d=s[2];if(!d)return r(l,f);var h;switch(c){case"P":h=f.dateTime({width:"short"});break;case"PP":h=f.dateTime({width:"medium"});break;case"PPP":h=f.dateTime({width:"long"});break;case"PPPP":default:h=f.dateTime({width:"full"});break}return h.replace("{{date}}",r(c,f)).replace("{{time}}",i(d,f))},o={p:i,P:u},a=o;t.default=a,e.exports=t.default})(D0,D0.exports);var cF=D0.exports;const ZS=ir(cF),fF={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class dF{constructor({locale:t,formats:r}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var i;return this.locale?/a/.test((i=this.locale.formatLong)===null||i===void 0?void 0:i.time()):!0},this.getFormatHelperText=i=>{var u,o;const a=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,n=this.locale||jd;return(o=(u=i.match(a))===null||u===void 0?void 0:u.map(l=>{const f=l[0];if(f==="p"||f==="P"){const s=ZS[f];return s(l,n.formatLong,{})}return l}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&o!==void 0?o:i},this.parseISO=i=>GS(i),this.toISO=i=>sF(i,{format:"extended"}),this.getCurrentLocaleCode=()=>{var i;return((i=this.locale)===null||i===void 0?void 0:i.code)||"en-US"},this.addSeconds=(i,u)=>fR(i,u),this.addMinutes=(i,u)=>hR(i,u),this.addHours=(i,u)=>gR(i,u),this.addDays=(i,u)=>C0(i,u),this.addWeeks=(i,u)=>mR(i,u),this.addMonths=(i,u)=>ff(i,u),this.addYears=(i,u)=>$w(i,u),this.isValid=i=>RS(this.date(i)),this.getDiff=(i,u,o)=>{var a;const n=(a=this.date(u))!==null&&a!==void 0?a:i;if(!this.isValid(n))return 0;switch(o){case"years":return yR(i,n);case"quarters":return _R(i,n);case"months":return DS(i,n);case"weeks":return MR(i,n);case"days":return ES(i,n);case"hours":return CR(i,n);case"minutes":return OR(i,n);case"seconds":return AR(i,n);default:return Nd(i,n)}},this.isAfter=(i,u)=>Fc(i,u),this.isBefore=(i,u)=>il(i,u),this.startOfDay=i=>_l(i),this.endOfDay=i=>O0(i),this.getHours=i=>PL(i),this.setHours=(i,u)=>zI(i,u),this.setMinutes=(i,u)=>qI(i,u),this.getSeconds=i=>RL(i),this.setSeconds=(i,u)=>UI(i,u),this.isSameDay=(i,u)=>FL(i,u),this.isSameMonth=(i,u)=>jL(i,u),this.isSameYear=(i,u)=>NL(i,u),this.isSameHour=(i,u)=>$L(i,u),this.startOfYear=i=>jc(i),this.endOfYear=i=>Hg(i),this.startOfMonth=i=>Nc(i),this.endOfMonth=i=>A0(i),this.startOfWeek=i=>Yg(i,{locale:this.locale}),this.endOfWeek=i=>Ug(i,{locale:this.locale}),this.getYear=i=>LL(i),this.setYear=(i,u)=>HI(i,u),this.date=i=>typeof i>"u"?new Date:i===null?null:new Date(i),this.toJsDate=i=>i,this.parse=(i,u)=>i===""?null:jI(i,u,new Date,{locale:this.locale}),this.format=(i,u)=>this.formatByString(i,this.formats[u]),this.formatByString=(i,u)=>zS(i,u,{locale:this.locale}),this.isEqual=(i,u)=>i===null&&u===null?!0:IL(i,u),this.isNull=i=>i===null,this.isAfterDay=(i,u)=>Fc(i,O0(u)),this.isBeforeDay=(i,u)=>il(i,_l(u)),this.isBeforeYear=(i,u)=>il(i,jc(u)),this.isAfterYear=(i,u)=>Fc(i,Hg(u)),this.isWithinRange=(i,[u,o])=>uF(i,{start:u,end:o}),this.formatNumber=i=>i,this.getMinutes=i=>DL(i),this.getDate=i=>OL(i),this.setDate=(i,u)=>BI(i,u),this.getMonth=i=>EL(i),this.getDaysInMonth=i=>qS(i),this.setMonth=(i,u)=>WI(i,u),this.getMeridiemText=i=>i==="am"?"AM":"PM",this.getNextMonth=i=>ff(i,1),this.getPreviousMonth=i=>ff(i,-1),this.getMonthArray=i=>{const o=[jc(i)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(i,u)=>this.setSeconds(this.setMinutes(this.setHours(i,this.getHours(u)),this.getMinutes(u)),this.getSeconds(u)),this.getWeekdays=()=>{const i=new Date;return PR({start:Yg(i,{locale:this.locale}),end:Ug(i,{locale:this.locale})}).map(u=>this.formatByString(u,"EEEEEE"))},this.getWeekArray=i=>{const u=Yg(Nc(i),{locale:this.locale}),o=Ug(A0(i),{locale:this.locale});let a=0,n=u;const l=[];let f=null;for(;il(n,o);){const s=Math.floor(a/7);l[s]=l[s]||[];const c=AL(n);f!==c&&(f=c,l[s].push(n),a+=1),n=C0(n,1)}return l},this.getYearRange=(i,u)=>{const o=jc(i),a=Hg(u),n=[];let l=o;for(;il(l,a);)n.push(l),l=$w(l,1);return n},this.locale=t,this.formats=Object.assign({},fF,r)}isBeforeMonth(t,r){return il(t,Nc(r))}isAfterMonth(t,r){return Fc(t,Nc(r))}}const hF={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class pF extends dF{constructor(...t){super(...t),this.formatTokenMap=hF,this.expandFormat=r=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return r.match(i).map(u=>{const o=u[0];if(o==="p"||o==="P"){const a=ZS[o],n=this.locale||jd;return a(u,n.formatLong,{})}return u}).join("")},this.getFormatHelperText=r=>this.expandFormat(r).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const gF=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:pF},Symbol.toStringTag,{value:"Module"})),KS=qn(gF);function JS(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(r)!==-1):e.indexOf(t)!==-1}const QS=(e,t)=>r=>{(r.key==="Enter"||r.key===" ")&&(e(r),r.preventDefault(),r.stopPropagation())},e4=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?e4(t.shadowRoot):t:null};function mF(e){return Tr("PrivatePickersMonth",e)}const E0=_r("PrivatePickersMonth",["root","selected"]),vF=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],yF=e=>{const{classes:t,selected:r}=e;return yr({root:["root",r&&"selected"]},mF,t)},bF=_n(Cr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${E0.selected}`]:t.selected}]})(({theme:e})=>Gt({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Af(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${E0.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),Gw=()=>{},xF=e=>{const{disabled:t,onSelect:r,selected:i,value:u,tabIndex:o,hasFocus:a,onFocus:n=Gw,onBlur:l=Gw}=e,f=Vn(e,vF),s=yF(e),c=()=>{r(u)},d=$e.useRef(null);return Md(()=>{if(a){var h;(h=d.current)==null||h.focus()}},[a]),je.jsx(bF,Gt({ref:d,component:"button",type:"button",className:s.root,tabIndex:o,onClick:c,onKeyDown:QS(c),color:i?"primary":void 0,variant:i?"h5":"subtitle1",disabled:t,onFocus:h=>n(h,u),onBlur:h=>l(h,u)},f))},Rr=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Gt({},e)}}}}),wF={previousMonth:"Vorige maand",nextMonth:"Volgende maand",openPreviousView:"open vorige view",openNextView:"open volgende view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"jaarweergave is geopend, schakel over naar kalenderweergave":"kalenderweergave is geopend, switch naar jaarweergave",start:"Start",end:"Einde",cancelButtonLabel:"Annuleren",clearButtonLabel:"Resetten",okButtonLabel:"OK",todayButtonLabel:"Vandaag",clockLabelText:(e,t,r)=>`Selecteer ${e}. ${t===null?"Geen tijd geselecteerd":`Geselecteerde tijd is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} uren`,minutesClockNumberText:e=>`${e} minuten`,secondsClockNumberText:e=>`${e} seconden`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies datum, geselecteerde datum is ${t.format(t.date(e),"fullDate")}`:"Kies datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies tijd, geselecteerde tijd is ${t.format(t.date(e),"fullTime")}`:"Kies tijd",timeTableLabel:"kies tijd",dateTableLabel:"kies datum"},_F=Rr(wF),TF={previousMonth:"Poprzedni miesiąc",nextMonth:"Następny miesiąc",openPreviousView:"otwórz poprzedni widok",openNextView:"otwórz następny widok",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"otwarty jest widok roku, przełącz na widok kalendarza":"otwarty jest widok kalendarza, przełącz na widok roku",start:"Początek",end:"Koniec",cancelButtonLabel:"Anuluj",clearButtonLabel:"Wyczyść",okButtonLabel:"Zatwierdź",todayButtonLabel:"Dzisiaj",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Nie wybrano czasu":`Wybrany czas to ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} godzin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz datę, obecnie wybrana data to ${t.format(t.date(e),"fullDate")}`:"Wybierz datę",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz czas, obecnie wybrany czas to ${t.format(t.date(e),"fullTime")}`:"Wybierz czas",timeTableLabel:"wybierz czas",dateTableLabel:"wybierz datę"},kF=Rr(TF),MF={previousMonth:"Mês anterior",nextMonth:"Próximo mês",openPreviousView:"Abrir próxima seleção",openNextView:"Abrir seleção anterior",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Seleção de ano está aberta, alternando para seleção de calendário":"Seleção de calendários está aberta, alternando para seleção de ano",start:"Início",end:"Fim",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpar",okButtonLabel:"OK",todayButtonLabel:"Hoje",datePickerDefaultToolbarTitle:"Selecione a data",dateTimePickerDefaultToolbarTitle:"Selecione data e hora",timePickerDefaultToolbarTitle:"Selecione a hora",dateRangePickerDefaultToolbarTitle:"Selecione o intervalo entre datas",clockLabelText:(e,t,r)=>`Selecione ${e}. ${t===null?"Hora não selecionada":`Selecionado a hora ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma data, data selecionada ${t.format(t.date(e),"fullDate")}`:"Escolha uma data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma hora, hora selecionada ${t.format(t.date(e),"fullTime")}`:"Escolha uma hora",timeTableLabel:"escolha uma hora",dateTableLabel:"escolha uma data"},SF=Rr(MF),CF={previousMonth:"Önceki ay",nextMonth:"Sonraki ay",openPreviousView:"sonraki görünüm",openNextView:"önceki görünüm",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"yıl görünümü açık, takvim görünümüne geç":"takvim görünümü açık, yıl görünümüne geç",inputModeToggleButtonAriaLabel:(e,t)=>e?`metin girişi görünümü açık, şuraya gidin: ${t} görünümü`:`${t} görünüm açık, metin girişi görünümüne gidin`,start:"Başlangıç",end:"Bitiş",cancelButtonLabel:"iptal",clearButtonLabel:"Temizle",okButtonLabel:"Tamam",todayButtonLabel:"Bugün",datePickerDefaultToolbarTitle:"Tarih Seç",dateTimePickerDefaultToolbarTitle:"Tarih & Saat seç",timePickerDefaultToolbarTitle:"Saat seç",dateRangePickerDefaultToolbarTitle:"Tarih aralığı seçin",clockLabelText:(e,t,r)=>`${e} seç. ${t===null?"Zaman seçilmedi":`Seçilen zaman: ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} saat`,minutesClockNumberText:e=>`${e} dakika`,secondsClockNumberText:e=>`${e} saniye`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Tarih seçin, seçilen tarih: ${t.format(e,"fullDate")}`:"Tarih seç",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Saat seçin, seçilen saat: ${t.format(e,"fullTime")}`:"Saat seç",timeTableLabel:"saat seç",dateTableLabel:"tarih seç"},OF=Rr(CF),Bc={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},Xw={calendar:"Kalenderansicht",clock:"Uhransicht"},AF={previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",openPreviousView:"Letzte Ansicht öffnen",openNextView:"Nächste Ansicht öffnen",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Jahresansicht ist geöffnet, zur Kalenderansicht wechseln":"Kalenderansicht ist geöffnet, zur Jahresansicht wechseln",inputModeToggleButtonAriaLabel:(e,t)=>e?`Texteingabeansicht ist geöffnet, zur ${Xw[t]} wechseln`:`${Xw[t]} ist geöffnet, zur Texteingabeansicht wechseln`,start:"Beginn",end:"Ende",cancelButtonLabel:"Abbrechen",clearButtonLabel:"Löschen",okButtonLabel:"OK",todayButtonLabel:"Heute",datePickerDefaultToolbarTitle:"Datum auswählen",dateTimePickerDefaultToolbarTitle:"Datum & Uhrzeit auswählen",timePickerDefaultToolbarTitle:"Uhrzeit auswählen",dateRangePickerDefaultToolbarTitle:"Datumsbereich auswählen",clockLabelText:(e,t,r)=>{var i;return`${(i=Bc[e])!=null?i:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${Bc.hours}`,minutesClockNumberText:e=>`${e} ${Bc.minutes}`,secondsClockNumberText:e=>`${e} ${Bc.seconds}`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Datum auswählen, gewähltes Datum ist ${t.format(t.date(e),"fullDate")}`:"Datum auswählen",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Uhrzeit auswählen, gewählte Uhrzeit ist ${t.format(t.date(e),"fullTime")}`:"Uhrzeit auswählen",timeTableLabel:"Uhrzeit auswählen",dateTableLabel:"Datum auswählen"},PF=Rr(AF),DF={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},EF={previousMonth:"Último mes",nextMonth:"Próximo mes",openPreviousView:"abrir la última vista",openNextView:"abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista del año está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista del año",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista de entrada de texto está abierta, ir a la vista ${t}`:`la vista ${t} está abierta, ir a la vista de entrada de texto`,start:"Empezar",end:"Terminar",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerDefaultToolbarTitle:"Seleccionar fecha",dateTimePickerDefaultToolbarTitle:"Seleccionar fecha & hora",timePickerDefaultToolbarTitle:"Seleccionar hora",dateRangePickerDefaultToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,r)=>`Seleccione ${DF[e]}. ${t===null?"Sin tiempo seleccionado":`El tiempo seleccionado es ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la fecha, la fecha elegida es ${t.format(t.date(e),"fullDate")}`:"Elige la fecha",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la hora, la hora elegido es ${t.format(t.date(e),"fullTime")}`:"Elige la hora",timeTableLabel:"elige la fecha",dateTableLabel:"elige la hora"},RF=Rr(EF),LF={previousMonth:"ماه گذشته",nextMonth:"ماه آینده",openPreviousView:"نمای قبلی",openNextView:"نمای بعدی",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"نمای سال باز است، رفتن به نمای تقویم":"نمای تقویم باز است، رفتن به نمای سال",inputModeToggleButtonAriaLabel:(e,t)=>e?`نمای ورودی متن باز است، رفتن به نمای ${t}`:`نمای ${t} باز است، رفتن به نمای ورودی متن`,start:"شروع",end:"پایان",cancelButtonLabel:"لغو",clearButtonLabel:"پاک کردن",okButtonLabel:"اوکی",todayButtonLabel:"امروز",datePickerDefaultToolbarTitle:"تاریخ را انتخاب کنید",dateTimePickerDefaultToolbarTitle:"تاریخ و ساعت را انتخاب کنید",timePickerDefaultToolbarTitle:"ساعت را انتخاب کنید",dateRangePickerDefaultToolbarTitle:"محدوده تاریخ را انتخاب کنید",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"هیچ ساعتی انتخاب نشده است":`ساعت انتخاب ${r.format(t,"fullTime")} می باشد`}`,hoursClockNumberText:e=>`${e} ساعت ها`,minutesClockNumberText:e=>`${e} دقیقه ها`,secondsClockNumberText:e=>`${e} ثانیه ها`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`تاریخ را انتخاب کنید، تاریخ انتخاب شده ${t.format(t.date(e),"fullDate")} می باشد`:"تاریخ را انتخاب کنید",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`ساعت را انتخاب کنید، ساعت انتخاب شده ${t.format(t.date(e),"fullTime")} می باشد`:"ساعت را انتخاب کنید",timeTableLabel:"انتخاب تاریخ",dateTableLabel:"انتخاب ساعت"},IF=Rr(LF),FF={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},Zw={calendar:"kalenteri",clock:"kello"},NF={previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",openPreviousView:"avaa edellinen kuukausi",openNextView:"avaa seuraava kuukausi",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"vuosinäkymä on auki, vaihda kalenterinäkymään":"kalenterinäkymä on auki, vaihda vuosinäkymään",inputModeToggleButtonAriaLabel:(e,t)=>e?`tekstikenttä on auki, mene ${Zw[t]}näkymään`:`${Zw[t]}näkymä on auki, mene tekstikenttään`,start:"Alku",end:"Loppu",cancelButtonLabel:"Peruuta",clearButtonLabel:"Tyhjennä",okButtonLabel:"OK",todayButtonLabel:"Tänään",datePickerDefaultToolbarTitle:"Valitse päivä",dateTimePickerDefaultToolbarTitle:"Valitse päivä ja aika",timePickerDefaultToolbarTitle:"Valitse aika",dateRangePickerDefaultToolbarTitle:"Valitse aikaväli",clockLabelText:(e,t,r)=>`Valitse ${FF[e]}. ${t===null?"Ei aikaa valittuna":`Valittu aika on ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} tuntia`,minutesClockNumberText:e=>`${e} minuuttia`,secondsClockNumberText:e=>`${e} sekunttia`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse päivä, valittu päivä on ${t.format(t.date(e),"fullDate")}`:"Valitse päivä",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse aika, valittu aika on ${t.format(t.date(e),"fullTime")}`:"Valitse aika",timeTableLabel:"valitse aika",dateTableLabel:"valitse päivä"},jF=Rr(NF),$F={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},Kw={calendar:"kalendáře",clock:"času"},BF={previousMonth:"Další měsíc",nextMonth:"Předchozí month",openPreviousView:"otevřít předchozí zobrazení",openNextView:"otevřít další zobrazení",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"roční zobrazení otevřeno, přepněte do zobrazení kalendáře":"zobrazení kalendáře otevřeno, přepněte do zobrazení roku",inputModeToggleButtonAriaLabel:(e,t)=>e?`Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${Kw[t]}`:`Zobrazení ${Kw[t]} je otevřené, přepněte do zobrazení textového pole`,start:"Začátek",end:"Konec",cancelButtonLabel:"Zrušit",clearButtonLabel:"Vymazat",okButtonLabel:"Potvrdit",todayButtonLabel:"Dnes",datePickerDefaultToolbarTitle:"Vyberte datum",dateTimePickerDefaultToolbarTitle:"Vyberte datum a čas",timePickerDefaultToolbarTitle:"Vyberte čas",dateRangePickerDefaultToolbarTitle:"Vyberete rozmezí dat",clockLabelText:(e,t,r)=>{var i;return`${(i=$F[e])!=null?i:e} vybrány. ${t===null?"Není vybrán čas":`Vybraný čas je ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} hodin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané datum, vybrané datum je ${t.format(e,"fullDate")}`:"Vyberte datum",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané čas, vybraný čas je ${t.format(e,"fullTime")}`:"Vyberte čas",timeTableLabel:"vyberte čas",dateTableLabel:"vyberte datum"},zF=Rr(BF),qF={hours:"heures",minutes:"minutes",seconds:"secondes"},Jw={calendar:"calendrier",clock:"horloge"},WF={previousMonth:"Mois précédent",nextMonth:"Mois suivant",openPreviousView:"Ouvrir la vue précédente",openNextView:"Ouvrir la vue suivante",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"La vue année est ouverte, ouvrir la vue calendrier":"La vue calendrier est ouverte, ouvrir la vue année",inputModeToggleButtonAriaLabel:(e,t)=>e?`passer du champ text au ${Jw[t]}`:`passer du ${Jw[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,r)=>`Choix des ${qF[e]}. ${t===null?"Aucune heure choisie":`L'heure choisie est ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} heures`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} secondes`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir la date, la date sélectionnée est ${t.format(t.date(e),"fullDate")}`:"Choisir la date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir l'heure, l'heure sélectionnée est ${t.format(t.date(e),"fullTime")}`:"Choisir l'heure",timeTableLabel:"choix de l'heure",dateTableLabel:"choix de la date"},UF=Rr(WF),zc={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},Qw={calendar:"naptár",clock:"óra"},HF={previousMonth:"Előző hónap",nextMonth:"Következő hónap",openPreviousView:"Előző nézet megnyitása",openNextView:"Következő nézet megnyitása",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"az évválasztó már nyitva, váltson a naptárnézetre":"a naptárnézet már nyitva, váltson az évválasztóra",inputModeToggleButtonAriaLabel:(e,t)=>e?`szöveges beviteli nézet aktív, váltás ${Qw[t]} nézetre`:`${Qw[t]} beviteli nézet aktív, váltás szöveges beviteli nézetre`,start:"Kezdő dátum",end:"Záró dátum",cancelButtonLabel:"Mégse",clearButtonLabel:"Törlés",okButtonLabel:"OK",todayButtonLabel:"Ma",datePickerDefaultToolbarTitle:"Dátum kiválasztása",dateTimePickerDefaultToolbarTitle:"Dátum és idő kiválasztása",timePickerDefaultToolbarTitle:"Idő kiválasztása",dateRangePickerDefaultToolbarTitle:"Dátumhatárok kiválasztása",clockLabelText:(e,t,r)=>{var i;return`${(i=zc[e])!=null?i:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${zc.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${zc.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${zc.seconds.toLowerCase()}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon dátumot, a kiválasztott dátum: ${t.format(e,"fullDate")}`:"Válasszon dátumot",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon időt, a kiválasztott idő: ${t.format(e,"fullTime")}`:"Válasszon időt",timeTableLabel:"válasszon időt",dateTableLabel:"válasszon dátumot"},VF=Rr(HF),t4={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},n4=t4,YF=Rr(t4),GF={previousMonth:"Forrige måned",nextMonth:"Neste måned",openPreviousView:"åpne forrige visning",openNextView:"åpne neste visning",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvisning er åpen, bytt til kalendervisning":"kalendervisning er åpen, bytt til årsvisning",start:"Start",end:"Slutt",cancelButtonLabel:"Avbryt",clearButtonLabel:"Fjern",okButtonLabel:"OK",todayButtonLabel:"I dag",clockLabelText:(e,t,r)=>`Velg ${e}. ${t===null?"Ingen tid valgt":`Valgt tid er ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timer`,minutesClockNumberText:e=>`${e} minutter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg dato, valgt dato er ${t.format(t.date(e),"fullDate")}`:"Velg dato",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg tid, valgt tid er ${t.format(t.date(e),"fullTime")}`:"Velg tid",timeTableLabel:"velg tid",dateTableLabel:"velg dato"},XF=Rr(GF),ZF={previousMonth:"Föregående månad",nextMonth:"Nästa månad",openPreviousView:"öppna föregående vy",openNextView:"öppna nästa vy",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvyn är öppen, byt till kalendervy":"kalendervyn är öppen, byt till årsvy",start:"Start",end:"Slut",cancelButtonLabel:"Avbryt",clearButtonLabel:"Rensa",okButtonLabel:"OK",todayButtonLabel:"Idag",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Ingen tid vald":`Vald tid är ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timmar`,minutesClockNumberText:e=>`${e} minuter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj datum, valt datum är ${t.format(t.date(e),"fullDate")}`:"Välj datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj tid, vald tid är ${t.format(t.date(e),"fullTime")}`:"Välj tid",timeTableLabel:"välj tid",dateTableLabel:"välj datum"},KF=Rr(ZF),JF={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},QF={previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista dell'anno è aperta, passare alla vista del calendario":"la vista dell'calendario è aperta, passare alla vista dell'anno",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista del campo di testo è aperta, passare alla vista ${t}`:`la vista aperta è: ${t}, vai alla vista del campo di testo`,start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerDefaultToolbarTitle:"Seleziona data",dateTimePickerDefaultToolbarTitle:"Seleziona data e orario",timePickerDefaultToolbarTitle:"Seleziona orario",dateRangePickerDefaultToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,r)=>`Seleziona ${JF[e]}. ${t===null?"Nessun orario selezionato":`L'ora selezionata è ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli la data, la data selezionata è ${t.format(t.date(e),"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli l'ora, l'ora selezionata è ${t.format(t.date(e),"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data"},eN=Rr(QF),tN={hours:"小时",minutes:"分钟",seconds:"秒"},nN={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,r)=>`Select ${tN[e]}. ${t===null?"未选择时间":`已选择${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e}小时`,minutesClockNumberText:e=>`${e}分钟`,secondsClockNumberText:e=>`${e}秒`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择日期,已选择${t.format(t.date(e),"fullDate")}`:"选择日期",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择时间,已选择${t.format(t.date(e),"fullTime")}`:"选择时间",timeTableLabel:"选择时间",dateTableLabel:"选择日期"},rN=Rr(nN),aN={hours:"시간을",minutes:"분을",seconds:"초를"},iN={previousMonth:"이전 달",nextMonth:"다음 달",openPreviousView:"이전 화면 보기",openNextView:"다음 화면 보기",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"연도 선택 화면에서 달력 화면으로 전환하기":"달력 화면에서 연도 선택 화면으로 전환하기",inputModeToggleButtonAriaLabel:(e,t)=>e?`텍스트 입력 화면에서 ${t} 화면으로 전환하기`:`${t} 화면에서 텍스트 입력 화면으로 전환하기`,start:"시작",end:"종료",cancelButtonLabel:"취소",clearButtonLabel:"초기화",okButtonLabel:"확인",todayButtonLabel:"오늘",datePickerDefaultToolbarTitle:"날짜 선택하기",dateTimePickerDefaultToolbarTitle:"날짜 & 시간 선택하기",timePickerDefaultToolbarTitle:"시간 선택하기",dateRangePickerDefaultToolbarTitle:"날짜 범위 선택하기",clockLabelText:(e,t,r)=>`${aN[e]} 선택하세요. ${t===null?"시간을 선택하지 않았습니다.":`현재 선택된 시간은 ${r.format(t,"fullTime")}입니다.`}`,hoursClockNumberText:e=>`${e}시간`,minutesClockNumberText:e=>`${e}분`,secondsClockNumberText:e=>`${e}초`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`날짜를 선택하세요. 현재 선택된 날짜는 ${t.format(t.date(e),"fullDate")}입니다.`:"날짜를 선택하세요",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`시간을 선택하세요. 현재 선택된 시간은 ${t.format(t.date(e),"fullTime")}입니다.`:"시간을 선택하세요",timeTableLabel:"선택한 시간",dateTableLabel:"선택한 날짜"},oN=Rr(iN),lN={previousMonth:"Fyrri mánuður",nextMonth:"Næsti mánuður",openPreviousView:"opna fyrri skoðun",openNextView:"opna næstu skoðun",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"ársskoðun er opin, skipta yfir í dagatalsskoðun":"dagatalsskoðun er opin, skipta yfir í ársskoðun",inputModeToggleButtonAriaLabel:(e,t)=>{const r=t==="calendar"?"dagatals":"klukku";return e?`textainnsláttur er opinn, fara í ${r}skoðun`:`${r}skoðun er opin, opna fyrir textainnslátt`},start:"Upphaf",end:"Endir",cancelButtonLabel:"Hætta við",clearButtonLabel:"Hreinsa",okButtonLabel:"OK",todayButtonLabel:"Í dag",datePickerDefaultToolbarTitle:"Velja dagsetningu",dateTimePickerDefaultToolbarTitle:"Velja dagsetningu og tíma",timePickerDefaultToolbarTitle:"Velja tíma",dateRangePickerDefaultToolbarTitle:"Velja tímabil",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Enginn tími valinn":`Valinn tími er ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} klukkustundir`,minutesClockNumberText:e=>`${e} mínútur`,secondsClockNumberText:e=>`${e} sekúndur`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja dagsetningu, valin dagsetning er ${t.format(t.date(e),"fullDate")}`:"Velja dagsetningu",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja tíma, valinn tími er ${t.format(t.date(e),"fullTime")}`:"Velja tíma",timeTableLabel:"velja tíma",dateTableLabel:"velja dagsetningu"},sN=Rr(lN),qc={hours:"時間",minutes:"分",seconds:"秒"},e_={calendar:"カレンダー表示",clock:"時計表示"},uN={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${e_[t]}に切り替える`:`${e_[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,r)=>{var i;return`${(i=qc[e])!=null?i:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${r.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${qc.hours}`,minutesClockNumberText:e=>`${e} ${qc.minutes}`,secondsClockNumberText:e=>`${e} ${qc.seconds}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`日付を選択してください。選択した日付は ${t.format(e,"fullDate")} です`:"日付を選択してください",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`時間を選択してください。選択した時間は ${t.format(e,"fullTime")} です`:"時間を選択してください",timeTableLabel:"時間を選択",dateTableLabel:"日付を選択"},cN=Rr(uN),fN={previousMonth:"Попередній місяць",nextMonth:"Наступний місяць",openPreviousView:"відкрити попередній вигляд",openNextView:"відкрити наступний вигляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"річний вигляд відкрито, перейти до календарного вигляду":"календарний вигляд відкрито, перейти до річного вигляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`текстове поле відкрите, перейти до ${t} вигляду`:`${t} вигляд наразі відкрито, перейти до текстового поля`,start:"Початок",end:"Кінець",cancelButtonLabel:"Відміна",clearButtonLabel:"Очистити",okButtonLabel:"OK",todayButtonLabel:"Сьогодні",datePickerDefaultToolbarTitle:"Вибрати дату",dateTimePickerDefaultToolbarTitle:"Вибрати дату і час",timePickerDefaultToolbarTitle:"Вибрати час",dateRangePickerDefaultToolbarTitle:"Вибрати календарний період",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Час не вибраний":`Вибрано час ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} годин`,minutesClockNumberText:e=>`${e} хвилин`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть дату, обрана дата ${t.format(e,"fullDate")}`:"Оберіть дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть час, обраний час ${t.format(e,"fullTime")}`:"Оберіть час",timeTableLabel:"оберіть час",dateTableLabel:"оберіть дату"},dN=Rr(fN),hN={previousMonth:"پچھلا مہینہ",nextMonth:"اگلا مہینہ",openPreviousView:"پچھلا ویو کھولیں",openNextView:"اگلا ویو کھولیں",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں":"کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں",inputModeToggleButtonAriaLabel:(e,t)=>e?`،ٹیکسٹ ویو کھلا ہے ${t} ویو کھولیں`:`${t} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`,start:"شروع",end:"ختم",cancelButtonLabel:"کینسل",clearButtonLabel:"کلئیر",okButtonLabel:"اوکے",todayButtonLabel:"آج",datePickerDefaultToolbarTitle:"تاریخ منتخب کریں",dateTimePickerDefaultToolbarTitle:"تاریخ اور وقت منتخب کریں",timePickerDefaultToolbarTitle:"وقت منتخب کریں",dateRangePickerDefaultToolbarTitle:"تاریخوں کی رینج منتخب کریں",clockLabelText:(e,t,r)=>`${e} منتخب کریں ${t===null?"کوئی وقت منتخب نہیں":`منتخب وقت ہے ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} گھنٹے`,minutesClockNumberText:e=>`${e} منٹ`,secondsClockNumberText:e=>`${e} سیکنڈ`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${t.format(e,"fullDate")}`:"تاریخ منتخب کریں",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`وقت منتخب کریں، منتخب شدہ وقت ہے ${t.format(e,"fullTime")}`:"وقت منتخب کریں",timeTableLabel:"وقت منتخب کریں",dateTableLabel:"تاریخ منتخب کریں"},pN=Rr(hN),Xg={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},gN={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${Xg[t]}`:`Выгляд ${Xg[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,r)=>`Абярыце ${Xg[e]}. ${t===null?"Час не абраны":`Абраны час ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} гадзін`,minutesClockNumberText:e=>`${e} хвілін`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць дату, абрана дата ${t.format(e,"fullDate")}`:"Абраць дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць час, абрыны час ${t.format(e,"fullTime")}`:"Абраць час",timeTableLabel:"абраць час",dateTableLabel:"абраць дату"},mN=Rr(gN),vN={hours:"часы",minutes:"минуты",seconds:"секунды"},t_={calendar:"календарный",clock:"часовой"},yN={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${t_[t]} вид`:`Открыт ${t_[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,r)=>`Выбрать ${vN[e]}. ${t===null?"Время не выбрано":`Выбрано время ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату"},bN=Rr(yN),Sy=$e.createContext(null);function xN(e){const t=fr({props:e,name:"MuiLocalizationProvider"}),{children:r,dateAdapter:i,dateFormats:u,dateLibInstance:o,locale:a,adapterLocale:n,localeText:l}=t,f=$e.useMemo(()=>new i({locale:n??a,formats:u,instance:o}),[i,a,n,u,o]),s=$e.useMemo(()=>({minDate:f.date("1900-01-01T00:00:00.000"),maxDate:f.date("2099-12-31T00:00:00.000")}),[f]),c=$e.useMemo(()=>({utils:f,defaultDates:s,localeText:Gt({},n4,l??{})}),[s,f,l]);return je.jsx(Sy.Provider,{value:c,children:r})}const ec=()=>{const e=$e.useContext(Sy);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},br=()=>ec().utils,tc=()=>ec().defaultDates,ei=()=>ec().localeText,nc=()=>{const e=br();return $e.useRef(e.date()).current};function r4(e){return Tr("MuiMonthPicker",e)}const wN=_r("MuiMonthPicker",["root"]),_u=({date:e,disableFuture:t,disablePast:r,maxDate:i,minDate:u,isDateDisabled:o,utils:a})=>{const n=a.startOfDay(a.date());r&&a.isBefore(u,n)&&(u=n),t&&a.isAfter(i,n)&&(i=n);let l=e,f=e;for(a.isBefore(e,u)&&(l=a.date(u),f=null),a.isAfter(e,i)&&(f&&(f=a.date(i)),l=null);l||f;){if(l&&a.isAfter(l,i)&&(l=null),f&&a.isBefore(f,u)&&(f=null),l){if(!o(l))return l;l=a.addDays(l,1)}if(f){if(!o(f))return f;f=a.addDays(f,-1)}}return null},Cy=(e,t)=>{const r=e.date(t);return e.isValid(r)?r:null},Ha=(e,t,r)=>{if(t==null)return r;const i=e.date(t);return e.isValid(i)?i:r},_N=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],TN=e=>{const{classes:t}=e;return yr({root:["root"]},r4,t)};function kN(e,t){const r=br(),i=tc(),u=fr({props:e,name:t});return Gt({disableFuture:!1,disablePast:!1},u,{minDate:Ha(r,u.minDate,i.minDate),maxDate:Ha(r,u.maxDate,i.maxDate)})}const MN=_n("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),a4=$e.forwardRef(function(t,r){const i=br(),u=nc(),o=kN(t,"MuiMonthPicker"),{className:a,date:n,disabled:l,disableFuture:f,disablePast:s,maxDate:c,minDate:d,onChange:h,shouldDisableMonth:p,readOnly:m,disableHighlightToday:y,autoFocus:v=!1,onMonthFocus:g,hasFocus:b,onFocusedViewChange:x}=o,_=Vn(o,_N),w=o,k=TN(w),T=y9(),M=$e.useMemo(()=>n??i.startOfMonth(u),[u,i,n]),S=$e.useMemo(()=>n!=null?i.getMonth(n):y?null:i.getMonth(u),[u,n,i,y]),[C,P]=$e.useState(()=>S||i.getMonth(u)),D=$e.useCallback(E=>{const W=i.startOfMonth(s&&i.isAfter(u,d)?u:d),G=i.startOfMonth(f&&i.isBefore(u,c)?u:c);return i.isBefore(E,W)||i.isAfter(E,G)?!0:p?p(E):!1},[f,s,c,d,u,p,i]),O=E=>{if(m)return;const W=i.setMonth(M,E);h(W,"finish")},[R,F]=Sd({name:"MonthPicker",state:"hasFocus",controlled:b,default:v}),A=$e.useCallback(E=>{F(E),x&&x(E)},[F,x]),z=$e.useCallback(E=>{D(i.setMonth(M,E))||(P(E),A(!0),g&&g(E))},[D,i,M,A,g]);$e.useEffect(()=>{P(E=>S!==null&&E!==S?S:E)},[S]);const B=Cd(E=>{switch(E.key){case"ArrowUp":z((12+C-3)%12),E.preventDefault();break;case"ArrowDown":z((12+C+3)%12),E.preventDefault();break;case"ArrowLeft":z((12+C+(T.direction==="ltr"?-1:1))%12),E.preventDefault();break;case"ArrowRight":z((12+C+(T.direction==="ltr"?1:-1))%12),E.preventDefault();break}}),$=$e.useCallback((E,W)=>{z(W)},[z]),j=$e.useCallback(()=>{A(!1)},[A]),N=i.getMonth(u);return je.jsx(MN,Gt({ref:r,className:jr(k.root,a),ownerState:w,onKeyDown:B},_,{children:i.getMonthArray(M).map(E=>{const W=i.getMonth(E),G=i.format(E,"monthShort"),L=l||D(E);return je.jsx(xF,{value:W,selected:W===S,tabIndex:W===C&&!L?0:-1,hasFocus:R&&W===C,onSelect:O,onFocus:$,onBlur:j,disabled:L,"aria-current":N===W?"date":void 0,children:G},G)})}))});function Oy(e,t,r){const{value:i,onError:u}=e,o=ec(),a=$e.useRef(null),n=t({adapter:o,value:i,props:e});return $e.useEffect(()=>{u&&!r(n,a.current)&&u(n,i),a.current=n},[r,u,a,n,i]),n}const Ay=({props:e,value:t,adapter:r})=>{const i=r.utils.date(),u=r.utils.date(t),o=Ha(r.utils,e.minDate,r.defaultDates.minDate),a=Ha(r.utils,e.maxDate,r.defaultDates.maxDate);if(u===null)return null;switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(u)):return"shouldDisableDate";case!!(e.disableFuture&&r.utils.isAfterDay(u,i)):return"disableFuture";case!!(e.disablePast&&r.utils.isBeforeDay(u,i)):return"disablePast";case!!(o&&r.utils.isBeforeDay(u,o)):return"minDate";case!!(a&&r.utils.isAfterDay(u,a)):return"maxDate";default:return null}},i4=({shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:u})=>{const o=ec();return $e.useCallback(a=>Ay({adapter:o,value:a,props:{shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:u}})!==null,[o,e,t,r,i,u])},SN=(e,t)=>e===t,Py=e=>Oy(e,Ay,SN),CN=(e,t,r)=>(i,u)=>{switch(u.type){case"changeMonth":return Gt({},i,{slideDirection:u.direction,currentMonth:u.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Gt({},i,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(i.focusedDay!=null&&u.focusedDay!=null&&r.isSameDay(u.focusedDay,i.focusedDay))return i;const o=u.focusedDay!=null&&!t&&!r.isSameMonth(i.currentMonth,u.focusedDay);return Gt({},i,{focusedDay:u.focusedDay,isMonthSwitchingAnimating:o&&!e&&!u.withoutMonthSwitchingAnimation,currentMonth:o?r.startOfMonth(u.focusedDay):i.currentMonth,slideDirection:u.focusedDay!=null&&r.isAfterDay(u.focusedDay,i.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},ON=({date:e,defaultCalendarMonth:t,disableFuture:r,disablePast:i,disableSwitchToMonthOnDayFocus:u=!1,maxDate:o,minDate:a,onMonthChange:n,reduceAnimations:l,shouldDisableDate:f})=>{var s;const c=nc(),d=br(),h=$e.useRef(CN(!!l,u,d)).current,[p,m]=$e.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:e||c,currentMonth:d.startOfMonth((s=e??t)!=null?s:c),slideDirection:"left"}),y=$e.useCallback(_=>{m(Gt({type:"changeMonth"},_)),n&&n(_.newMonth)},[n]),v=$e.useCallback(_=>{const w=_??c;d.isSameMonth(w,p.currentMonth)||y({newMonth:d.startOfMonth(w),direction:d.isAfterDay(w,p.currentMonth)?"left":"right"})},[p.currentMonth,y,c,d]),g=i4({shouldDisableDate:f,minDate:a,maxDate:o,disableFuture:r,disablePast:i}),b=$e.useCallback(()=>{m({type:"finishMonthSwitchingAnimation"})},[]),x=$e.useCallback((_,w)=>{g(_)||m({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:w})},[g]);return{calendarState:p,changeMonth:v,changeFocusedDay:x,isDateDisabled:g,onMonthSwitchingAnimationEnd:b,handleChangeMonth:y}},AN=e=>Tr("MuiPickersFadeTransitionGroup",e),PN=_r("MuiPickersFadeTransitionGroup",["root"]),DN=e=>{const{classes:t}=e;return yr({root:["root"]},AN,t)},n_=500,EN=_n(Z5,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function o4(e){const t=fr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:r,className:i,reduceAnimations:u,transKey:o}=t,a=DN(t);return u?r:je.jsx(EN,{className:jr(a.root,i),children:je.jsx(K5,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:n_,enter:n_/2,exit:0},children:r},o)})}const Cu=36,rc=2,Dy=320,RN=358;function l4(e){return Tr("MuiPickersDay",e)}const vu=_r("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),LN=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],IN=e=>{const{selected:t,disableMargin:r,disableHighlightToday:i,today:u,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:n,classes:l}=e;return yr({root:["root",t&&"selected",o&&"disabled",!r&&"dayWithMargin",!i&&u&&"today",a&&n&&"dayOutsideMonth",a&&!n&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},l4,l)},s4=({theme:e,ownerState:t})=>Gt({},e.typography.caption,{width:Cu,height:Cu,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:Af(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:Af(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${vu.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${vu.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${vu.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${rc}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${vu.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),u4=(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableMargin&&t.dayWithMargin,!r.disableHighlightToday&&r.today&&t.today,!r.outsideCurrentMonth&&r.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,r.outsideCurrentMonth&&!r.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},FN=_n(b9,{name:"MuiPickersDay",slot:"Root",overridesResolver:u4})(s4),NN=_n("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:u4})(({theme:e,ownerState:t})=>Gt({},s4({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Zg=()=>{},jN=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersDay"}),{autoFocus:u=!1,className:o,day:a,disabled:n=!1,disableHighlightToday:l=!1,disableMargin:f=!1,isAnimating:s,onClick:c,onDaySelect:d,onFocus:h=Zg,onBlur:p=Zg,onKeyDown:m=Zg,onMouseDown:y,outsideCurrentMonth:v,selected:g=!1,showDaysOutsideCurrentMonth:b=!1,children:x,today:_=!1}=i,w=Vn(i,LN),k=Gt({},i,{autoFocus:u,disabled:n,disableHighlightToday:l,disableMargin:f,selected:g,showDaysOutsideCurrentMonth:b,today:_}),T=IN(k),M=br(),S=$e.useRef(null),C=xl(S,r);Md(()=>{u&&!n&&!s&&!v&&S.current.focus()},[u,n,s,v]);const P=O=>{y&&y(O),v&&O.preventDefault()},D=O=>{n||d(a,"finish"),v&&O.currentTarget.focus(),c&&c(O)};return v&&!b?je.jsx(NN,{className:jr(T.root,T.hiddenDaySpacingFiller,o),ownerState:k,role:w.role}):je.jsx(FN,Gt({className:jr(T.root,o),ownerState:k,ref:C,centerRipple:!0,disabled:n,tabIndex:g?0:-1,onKeyDown:O=>m(O,a),onFocus:O=>h(O,a),onBlur:O=>p(O,a),onClick:D,onMouseDown:P},w,{children:x||M.format(a,"dayOfMonth")}))}),$N=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,c4=$e.memo(jN,$N),BN=e=>Tr("PrivatePickersSlideTransition",e),ua=_r("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),zN=["children","className","reduceAnimations","slideDirection","transKey"],qN=e=>{const{classes:t}=e;return yr({root:["root"]},BN,t)},f4=350,WN=_n(Z5,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ua["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ua["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ua.slideEnterActive}`]:t.slideEnterActive},{[`.${ua.slideExit}`]:t.slideExit},{[`.${ua["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ua["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:f4,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ua["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ua["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ua.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ua.slideExit}`]:{transform:"translate(0%)"},[`& .${ua["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ua["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),UN=e=>{const{children:t,className:r,reduceAnimations:i,slideDirection:u,transKey:o}=e,a=Vn(e,zN),n=qN(e);if(i)return je.jsx("div",{className:jr(n.root,r),children:t});const l={exit:ua.slideExit,enterActive:ua.slideEnterActive,enter:ua[`slideEnter-${u}`],exitActive:ua[`slideExitActiveLeft-${u}`]};return je.jsx(WN,{className:jr(n.root,r),childFactory:f=>$e.cloneElement(f,{classNames:l}),role:"presentation",children:je.jsx(x9,Gt({mountOnEnter:!0,unmountOnExit:!0,timeout:f4,classNames:l},a,{children:t}),o)})},HN=e=>Tr("MuiDayPicker",e),VN=_r("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),YN=e=>{const{classes:t}=e;return yr({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},HN,t)},GN=e=>e.charAt(0).toUpperCase(),d4=(Cu+rc*2)*6,XN=_n("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),ZN=_n(Cr,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),KN=_n("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:d4}),JN=_n(UN,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:d4}),QN=_n("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),ej=_n("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${rc}px 0`,display:"flex",justifyContent:"center"});function tj(e){const t=nc(),r=br(),i=fr({props:e,name:"MuiDayPicker"}),u=YN(i),{onFocusedDayChange:o,className:a,currentMonth:n,selectedDays:l,disabled:f,disableHighlightToday:s,focusedDay:c,isMonthSwitchingAnimating:d,loading:h,onSelectedDaysChange:p,onMonthSwitchingAnimationEnd:m,readOnly:y,reduceAnimations:v,renderDay:g,renderLoading:b=()=>je.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:x,slideDirection:_,TransitionProps:w,disablePast:k,disableFuture:T,minDate:M,maxDate:S,shouldDisableDate:C,dayOfWeekFormatter:P=GN,hasFocus:D,onFocusedViewChange:O,gridLabelId:R}=i,F=i4({shouldDisableDate:C,minDate:M,maxDate:S,disablePast:k,disableFuture:T}),[A,z]=$e.useState(()=>c||t),B=$e.useCallback(U=>{O&&O(U)},[O]),$=$e.useCallback((U,Q="finish")=>{y||p(U,Q)},[p,y]),j=$e.useCallback(U=>{F(U)||(o(U),z(U),B(!0))},[F,o,B]),N=Od();function E(U,Q){switch(U.key){case"ArrowUp":j(r.addDays(Q,-7)),U.preventDefault();break;case"ArrowDown":j(r.addDays(Q,7)),U.preventDefault();break;case"ArrowLeft":{const Y=r.addDays(Q,N.direction==="ltr"?-1:1),Z=N.direction==="ltr"?r.getPreviousMonth(Q):r.getNextMonth(Q),X=_u({utils:r,date:Y,minDate:N.direction==="ltr"?r.startOfMonth(Z):Y,maxDate:N.direction==="ltr"?Y:r.endOfMonth(Z),isDateDisabled:F});j(X||Y),U.preventDefault();break}case"ArrowRight":{const Y=r.addDays(Q,N.direction==="ltr"?1:-1),Z=N.direction==="ltr"?r.getNextMonth(Q):r.getPreviousMonth(Q),X=_u({utils:r,date:Y,minDate:N.direction==="ltr"?Y:r.startOfMonth(Z),maxDate:N.direction==="ltr"?r.endOfMonth(Z):Y,isDateDisabled:F});j(X||Y),U.preventDefault();break}case"Home":j(r.startOfWeek(Q)),U.preventDefault();break;case"End":j(r.endOfWeek(Q)),U.preventDefault();break;case"PageUp":j(r.getNextMonth(Q)),U.preventDefault();break;case"PageDown":j(r.getPreviousMonth(Q)),U.preventDefault();break}}function W(U,Q){j(Q)}function G(U,Q){D&&r.isSameDay(A,Q)&&B(!1)}const L=r.getMonth(n),q=l.filter(U=>!!U).map(U=>r.startOfDay(U)),H=L,V=$e.useMemo(()=>$e.createRef(),[H]),te=r.startOfWeek(t),ee=$e.useMemo(()=>{const U=r.startOfMonth(n),Q=r.endOfMonth(n);return F(A)||r.isAfterDay(A,Q)||r.isBeforeDay(A,U)?_u({utils:r,date:A,minDate:U,maxDate:Q,disablePast:k,disableFuture:T,isDateDisabled:F}):A},[n,T,k,A,F,r]);return je.jsxs("div",{role:"grid","aria-labelledby":R,children:[je.jsx(XN,{role:"row",className:u.header,children:r.getWeekdays().map((U,Q)=>{var Y;return je.jsx(ZN,{variant:"caption",role:"columnheader","aria-label":r.format(r.addDays(te,Q),"weekday"),className:u.weekDayLabel,children:(Y=P==null?void 0:P(U))!=null?Y:U},U+Q.toString())})}),h?je.jsx(KN,{className:u.loadingContainer,children:b()}):je.jsx(JN,Gt({transKey:H,onExited:m,reduceAnimations:v,slideDirection:_,className:jr(a,u.slideTransition)},w,{nodeRef:V,children:je.jsx(QN,{ref:V,role:"rowgroup",className:u.monthContainer,children:r.getWeekArray(n).map(U=>je.jsx(ej,{role:"row",className:u.weekContainer,children:U.map(Q=>{const Y=ee!==null&&r.isSameDay(Q,ee),Z=q.some(ie=>r.isSameDay(ie,Q)),X=r.isSameDay(Q,t),re={key:Q==null?void 0:Q.toString(),day:Q,isAnimating:d,disabled:f||F(Q),autoFocus:D&&Y,today:X,outsideCurrentMonth:r.getMonth(Q)!==L,selected:Z,disableHighlightToday:s,showDaysOutsideCurrentMonth:x,onKeyDown:E,onFocus:W,onBlur:G,onDaySelect:$,tabIndex:Y?0:-1,role:"gridcell","aria-selected":Z};return X&&(re["aria-current"]="date"),g?g(Q,q,re):$e.createElement(c4,Gt({},re,{key:re.key}))})},`week-${U[0]}`))})}))]})}function Ey({onChange:e,onViewChange:t,openTo:r,view:i,views:u}){var o,a;const[n,l]=Sd({name:"Picker",state:"view",controlled:i,default:r&&yo(u,r)?r:u[0]}),f=(o=u[u.indexOf(n)-1])!=null?o:null,s=(a=u[u.indexOf(n)+1])!=null?a:null,c=$e.useCallback(p=>{l(p),t&&t(p)},[l,t]),d=$e.useCallback(()=>{s&&c(s)},[s,c]);return{handleChangeAndOpenNext:$e.useCallback((p,m)=>{const y=m==="finish";e(p,y&&s?"partial":m),y&&d()},[s,e,d]),nextView:s,previousView:f,openNext:d,openView:n,setOpenView:c}}const nj=no(je.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),rj=no(je.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),aj=no(je.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),h4=no(je.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),p4=no(je.jsxs($e.Fragment,{children:[je.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),je.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),ij=no(je.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),oj=no(je.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),lj=no(je.jsxs($e.Fragment,{children:[je.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),je.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function sj(e){return Tr("MuiPickersArrowSwitcher",e)}_r("MuiPickersArrowSwitcher",["root","spacer","button"]);const uj=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],cj=e=>{const{classes:t}=e;return yr({root:["root"],spacer:["spacer"],button:["button"]},sj,t)},fj=_n("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),dj=_n("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),r_=_n(Fl,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Gt({},e.hidden&&{visibility:"hidden"})),g4=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:o,components:a,componentsProps:n,isLeftDisabled:l,isLeftHidden:f,isRightDisabled:s,isRightHidden:c,leftArrowButtonText:d,onLeftClick:h,onRightClick:p,rightArrowButtonText:m}=i,y=Vn(i,uj),g=Od().direction==="rtl",b=(n==null?void 0:n.leftArrowButton)||{},x=(a==null?void 0:a.LeftArrowIcon)||rj,_=(n==null?void 0:n.rightArrowButton)||{},w=(a==null?void 0:a.RightArrowIcon)||aj,k=i,T=cj(k);return je.jsxs(fj,Gt({ref:r,className:jr(T.root,o),ownerState:k},y,{children:[je.jsx(r_,Gt({as:a==null?void 0:a.LeftArrowButton,size:"small","aria-label":d,title:d,disabled:l,edge:"end",onClick:h},b,{className:jr(T.button,b.className),ownerState:Gt({},k,b,{hidden:f}),children:g?je.jsx(w,{}):je.jsx(x,{})})),u?je.jsx(Cr,{variant:"subtitle1",component:"span",children:u}):je.jsx(dj,{className:T.spacer,ownerState:k}),je.jsx(r_,Gt({as:a==null?void 0:a.RightArrowButton,size:"small","aria-label":m,title:m,edge:"start",disabled:s,onClick:p},_,{className:jr(T.button,_.className),ownerState:Gt({},k,_,{hidden:c}),children:g?je.jsx(x,{}):je.jsx(w,{})}))]}))}),hj=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,R0=(e,t,r)=>r&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,pj=(e,t,r,i)=>{const u=R0(i.getHours(e),t,r);return i.setHours(e,u)},a_=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),m4=(e=!1,t)=>(r,i)=>e?t.isAfter(r,i):a_(r,t)>a_(i,t);function gj(e,{disableFuture:t,maxDate:r}){const i=br();return $e.useMemo(()=>{const u=i.date(),o=i.startOfMonth(t&&i.isBefore(u,r)?u:r);return!i.isAfter(o,e)},[t,r,e,i])}function mj(e,{disablePast:t,minDate:r}){const i=br();return $e.useMemo(()=>{const u=i.date(),o=i.startOfMonth(t&&i.isAfter(u,r)?u:r);return!i.isBefore(o,e)},[t,r,e,i])}function v4(e,t,r){const i=br(),u=hj(e,i),o=$e.useCallback(a=>{const n=e==null?null:pj(e,a,!!t,i);r(n,"partial")},[t,e,r,i]);return{meridiemMode:u,handleMeridiemChange:o}}const y4=e=>()=>{},vj=e=>Tr("MuiPickersCalendarHeader",e),yj=_r("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),bj=e=>{const{classes:t}=e;return yr({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},vj,t)},xj=_n("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),wj=_n("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Gt({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),_j=_n("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Tj=_n(Fl,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),kj=_n(nj,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>Gt({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),Mj=y4();function Sj(e){const t=fr({props:e,name:"MuiPickersCalendarHeader"}),{components:r={},componentsProps:i={},currentMonth:u,disabled:o,disableFuture:a,disablePast:n,getViewSwitchingButtonText:l,leftArrowButtonText:f,maxDate:s,minDate:c,onMonthChange:d,onViewChange:h,openView:p,reduceAnimations:m,rightArrowButtonText:y,views:v,labelId:g}=t;Mj({leftArrowButtonText:f,rightArrowButtonText:y,getViewSwitchingButtonText:l});const b=ei(),x=f??b.previousMonth,_=y??b.nextMonth,w=l??b.calendarViewSwitchingButtonAriaLabel,k=br(),T=bj(t),M=i.switchViewButton||{},S=()=>d(k.getNextMonth(u),"left"),C=()=>d(k.getPreviousMonth(u),"right"),P=gj(u,{disableFuture:a,maxDate:s}),D=mj(u,{disablePast:n,minDate:c}),O=()=>{if(!(v.length===1||!h||o))if(v.length===2)h(v.find(F=>F!==p)||v[0]);else{const F=v.indexOf(p)!==0?0:1;h(v[F])}};if(v.length===1&&v[0]==="year")return null;const R=t;return je.jsxs(xj,{ownerState:R,className:T.root,children:[je.jsxs(wj,{role:"presentation",onClick:O,ownerState:R,"aria-live":"polite",className:T.labelContainer,children:[je.jsx(o4,{reduceAnimations:m,transKey:k.format(u,"monthAndYear"),children:je.jsx(_j,{id:g,ownerState:R,className:T.label,children:k.format(u,"monthAndYear")})}),v.length>1&&!o&&je.jsx(Tj,Gt({size:"small",as:r.SwitchViewButton,"aria-label":w(p),className:T.switchViewButton},M,{children:je.jsx(kj,{as:r.SwitchViewIcon,ownerState:R,className:T.switchViewIcon})}))]}),je.jsx(K5,{in:p==="day",children:je.jsx(g4,{leftArrowButtonText:x,rightArrowButtonText:_,components:r,componentsProps:i,onLeftClick:C,onRightClick:S,isLeftDisabled:D,isRightDisabled:P})})]})}const Pi=$e.createContext(null);function Cj(e){return Tr("PrivatePickersYear",e)}const wo=_r("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),Oj=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],Aj=e=>{const{wrapperVariant:t,disabled:r,selected:i,classes:u}=e,o={root:["root",t&&`mode${w9(t)}`],yearButton:["yearButton",r&&"disabled",i&&"selected"]};return yr(o,Cj,u)},Pj=_n("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${wo.modeDesktop}`]:t.modeDesktop},{[`&.${wo.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Gt({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),Dj=_n("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${wo.disabled}`]:t.disabled},{[`&.${wo.selected}`]:t.selected}]})(({theme:e})=>Gt({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Af(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${wo.disabled}`]:{color:e.palette.text.secondary},[`&.${wo.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),i_=()=>{},Ej=$e.forwardRef(function(t,r){const{autoFocus:i,className:u,children:o,disabled:a,onClick:n,onKeyDown:l,value:f,tabIndex:s,onFocus:c=i_,onBlur:d=i_}=t,h=Vn(t,Oj),p=$e.useRef(null),m=xl(p,r),y=$e.useContext(Pi),v=Gt({},t,{wrapperVariant:y}),g=Aj(v);return $e.useEffect(()=>{i&&p.current.focus()},[i]),je.jsx(Pj,{className:jr(g.root,u),ownerState:v,children:je.jsx(Dj,Gt({ref:m,disabled:a,type:"button",tabIndex:a?-1:s,onClick:b=>n(b,f),onKeyDown:b=>l(b,f),onFocus:b=>c(b,f),onBlur:b=>d(b,f),className:g.yearButton,ownerState:v},h,{children:o}))})});function b4(e){return Tr("MuiYearPicker",e)}const Rj=_r("MuiYearPicker",["root"]),Lj=e=>{const{classes:t}=e;return yr({root:["root"]},b4,t)};function Ij(e,t){const r=br(),i=tc(),u=fr({props:e,name:t});return Gt({disablePast:!1,disableFuture:!1},u,{minDate:Ha(r,u.minDate,i.minDate),maxDate:Ha(r,u.maxDate,i.maxDate)})}const Fj=_n("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),x4=$e.forwardRef(function(t,r){const i=nc(),u=Od(),o=br(),a=Ij(t,"MuiYearPicker"),{autoFocus:n,className:l,date:f,disabled:s,disableFuture:c,disablePast:d,maxDate:h,minDate:p,onChange:m,readOnly:y,shouldDisableYear:v,disableHighlightToday:g,onYearFocus:b,hasFocus:x,onFocusedViewChange:_}=a,w=a,k=Lj(w),T=$e.useMemo(()=>f??o.startOfYear(i),[i,o,f]),M=$e.useMemo(()=>f!=null?o.getYear(f):g?null:o.getYear(i),[i,f,o,g]),S=$e.useContext(Pi),C=$e.useRef(null),[P,D]=$e.useState(()=>M||o.getYear(i)),[O,R]=Sd({name:"YearPicker",state:"hasFocus",controlled:x,default:n}),F=$e.useCallback(q=>{R(q),_&&_(q)},[R,_]),A=$e.useCallback(q=>!!(d&&o.isBeforeYear(q,i)||c&&o.isAfterYear(q,i)||p&&o.isBeforeYear(q,p)||h&&o.isAfterYear(q,h)||v&&v(q)),[c,d,h,p,i,v,o]),z=(q,H,V="finish")=>{if(y)return;const te=o.setYear(T,H);m(te,V)},B=$e.useCallback(q=>{A(o.setYear(T,q))||(D(q),F(!0),b==null||b(q))},[A,o,T,F,b]);$e.useEffect(()=>{D(q=>M!==null&&q!==M?M:q)},[M]);const $=S==="desktop"?4:3,j=$e.useCallback((q,H)=>{switch(q.key){case"ArrowUp":B(H-$),q.preventDefault();break;case"ArrowDown":B(H+$),q.preventDefault();break;case"ArrowLeft":B(H+(u.direction==="ltr"?-1:1)),q.preventDefault();break;case"ArrowRight":B(H+(u.direction==="ltr"?1:-1)),q.preventDefault();break}},[B,u.direction,$]),N=$e.useCallback((q,H)=>{B(H)},[B]),E=$e.useCallback((q,H)=>{P===H&&F(!1)},[P,F]),W=o.getYear(i),G=$e.useRef(null),L=xl(r,G);return $e.useEffect(()=>{if(n||G.current===null)return;const q=G.current.querySelector('[tabindex="0"]');if(!q)return;const H=q.offsetHeight,V=q.offsetTop,te=G.current.clientHeight,ee=G.current.scrollTop,U=V+H;H>te||V{const H=o.getYear(q),V=H===M;return je.jsx(Ej,{selected:V,value:H,onClick:z,onKeyDown:j,autoFocus:O&&H===P,ref:V?C:void 0,disabled:s||A(q),tabIndex:H===P?0:-1,onFocus:N,onBlur:E,"aria-current":W===H?"date":void 0,children:o.format(q,"year")},o.format(q,"year"))})})}),Ry=_n("div")({overflowX:"hidden",width:Dy,maxHeight:RN,display:"flex",flexDirection:"column",margin:"0 auto"}),Nj=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),w4=e=>Tr("MuiCalendarPicker",e),jj=_r("MuiCalendarPicker",["root","viewTransitionContainer"]),$j=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"],Bj=e=>{const{classes:t}=e;return yr({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},w4,t)};function zj(e,t){const r=br(),i=tc(),u=fr({props:e,name:t});return Gt({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:Nj,renderLoading:()=>je.jsx("span",{children:"..."})},u,{minDate:Ha(r,u.minDate,i.minDate),maxDate:Ha(r,u.maxDate,i.maxDate)})}const qj=_n(Ry,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),Wj=_n(o4,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),_4=$e.forwardRef(function(t,r){const i=br(),u=J5(),o=zj(t,"MuiCalendarPicker"),{autoFocus:a,onViewChange:n,date:l,disableFuture:f,disablePast:s,defaultCalendarMonth:c,onChange:d,onYearChange:h,onMonthChange:p,reduceAnimations:m,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:g,view:b,views:x,openTo:_,className:w,disabled:k,readOnly:T,minDate:M,maxDate:S,disableHighlightToday:C,focusedView:P,onFocusedViewChange:D}=o,O=Vn(o,$j),{openView:R,setOpenView:F,openNext:A}=Ey({view:b,views:x,openTo:_,onChange:d,onViewChange:n}),{calendarState:z,changeFocusedDay:B,changeMonth:$,handleChangeMonth:j,isDateDisabled:N,onMonthSwitchingAnimationEnd:E}=ON({date:l,defaultCalendarMonth:c,reduceAnimations:m,onMonthChange:p,minDate:M,maxDate:S,shouldDisableDate:y,disablePast:s,disableFuture:f}),W=$e.useCallback((le,se)=>{const pe=i.startOfMonth(le),Te=i.endOfMonth(le),Se=N(le)?_u({utils:i,date:le,minDate:i.isBefore(M,pe)?pe:M,maxDate:i.isAfter(S,Te)?Te:S,disablePast:s,disableFuture:f,isDateDisabled:N}):le;Se?(d(Se,se),p==null||p(pe)):(A(),$(pe)),B(Se,!0)},[B,f,s,N,S,M,d,p,$,A,i]),G=$e.useCallback((le,se)=>{const pe=i.startOfYear(le),Te=i.endOfYear(le),Se=N(le)?_u({utils:i,date:le,minDate:i.isBefore(M,pe)?pe:M,maxDate:i.isAfter(S,Te)?Te:S,disablePast:s,disableFuture:f,isDateDisabled:N}):le;Se?(d(Se,se),h==null||h(Se)):(A(),$(pe)),B(Se,!0)},[B,f,s,N,S,M,d,h,A,i,$]),L=$e.useCallback((le,se)=>d(l&&le?i.mergeDateAndTime(le,l):le,se),[i,l,d]);$e.useEffect(()=>{l&&$(l)},[l]);const q=o,H=Bj(q),V={disablePast:s,disableFuture:f,maxDate:S,minDate:M},te=k&&l||M,ee=k&&l||S,U={disableHighlightToday:C,readOnly:T,disabled:k},Q=`${u}-grid-label`,[Y,Z]=Sd({name:"DayPicker",state:"focusedView",controlled:P,default:a?R:null}),X=Y!==null,re=Cd(le=>se=>{if(D){D(le)(se);return}Z(se?le:pe=>pe===le?null:pe)}),ie=$e.useRef(R);return $e.useEffect(()=>{ie.current!==R&&(ie.current=R,re(R)(!0))},[R,re]),je.jsxs(qj,{ref:r,className:jr(H.root,w),ownerState:q,children:[je.jsx(Sj,Gt({},O,{views:x,openView:R,currentMonth:z.currentMonth,onViewChange:F,onMonthChange:(le,se)=>j({newMonth:le,direction:se}),minDate:te,maxDate:ee,disabled:k,disablePast:s,disableFuture:f,reduceAnimations:m,labelId:Q})),je.jsx(Wj,{reduceAnimations:m,className:H.viewTransitionContainer,transKey:R,ownerState:q,children:je.jsxs("div",{children:[R==="year"&&je.jsx(x4,Gt({},O,V,U,{autoFocus:a,date:l,onChange:G,shouldDisableYear:g,hasFocus:X,onFocusedViewChange:re("year")})),R==="month"&&je.jsx(a4,Gt({},V,U,{autoFocus:a,hasFocus:X,className:w,date:l,onChange:W,shouldDisableMonth:v,onFocusedViewChange:re("month")})),R==="day"&&je.jsx(tj,Gt({},O,z,V,U,{autoFocus:a,onMonthSwitchingAnimationEnd:E,onFocusedDayChange:B,reduceAnimations:m,selectedDays:[l],onSelectedDaysChange:L,shouldDisableDate:y,hasFocus:X,onFocusedViewChange:re("day"),gridLabelId:Q}))]})})]})}),T4=e=>Tr("MuiCalendarPickerSkeleton",e),Uj=_r("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),Hj=["className"],Vj=e=>{const{classes:t}=e;return yr({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},T4,t)},Yj=_n("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),Gj=_n("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${rc}px 0`,display:"flex",justifyContent:"center"}),k4=_n(_9,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Gt({margin:`0 ${rc}px`},e.day===0&&{visibility:"hidden"}));k4.propTypes={ownerState:oe.shape({day:oe.number.isRequired}).isRequired};const Xj=[[0,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,0,0,0]];function Zj(e){const t=fr({props:e,name:"MuiCalendarPickerSkeleton"}),{className:r}=t,i=Vn(t,Hj),u=Vj(i);return je.jsx(Yj,Gt({className:jr(u.root,r)},i,{children:Xj.map((o,a)=>je.jsx(Gj,{className:u.week,children:o.map((n,l)=>je.jsx(k4,{variant:"circular",width:Cu,height:Cu,className:u.daySkeleton,ownerState:{day:n}},l))},a))}))}const kl=220,Yi=36,Ou={x:kl/2,y:kl/2},M4={x:Ou.x,y:0},Kj=M4.x-Ou.x,Jj=M4.y-Ou.y,Qj=e=>e*(180/Math.PI),S4=(e,t,r)=>{const i=t-Ou.x,u=r-Ou.y,o=Math.atan2(Kj,Jj)-Math.atan2(i,u);let a=Qj(o);a=Math.round(a/e)*e,a%=360;const n=Math.floor(a/e)||0,l=i**2+u**2,f=Math.sqrt(l);return{value:n,distance:f}},e$=(e,t,r=1)=>{const i=r*6;let{value:u}=S4(i,e,t);return u=u*r%60,u},t$=(e,t,r)=>{const{value:i,distance:u}=S4(30,e,t);let o=i||12;return r?o%=12:u{const{classes:t}=e;return yr({root:["root"],thumb:["thumb"]},n$,t)},o$=_n("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Gt({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),l$=_n("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Gt({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Yi/2}px)`,border:`${(Yi-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function s$(e){const t=fr({props:e,name:"MuiClockPointer"}),{className:r,isInner:i,type:u,value:o}=t,a=Vn(t,a$),n=$e.useRef(u);$e.useEffect(()=>{n.current=u},[u]);const l=Gt({},t,{shouldAnimate:n.current!==u}),f=i$(l),s=()=>{let d=360/(u==="hours"?12:60)*o;return u==="hours"&&o>12&&(d-=360),{height:Math.round((i?.26:.4)*kl),transform:`rotateZ(${d}deg)`}};return je.jsx(o$,Gt({style:s(),className:jr(r,f.root),ownerState:l},a,{children:je.jsx(l$,{ownerState:l,className:f.thumb})}))}function u$(e){return Tr("MuiClock",e)}const c$=_r("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),f$=e=>{const{classes:t}=e;return yr({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},u$,t)},d$=_n("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),h$=_n("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),p$=_n("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),g$=_n("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Gt({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),m$=_n("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),v$=_n(Fl,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Gt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},t.meridiemMode==="am"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),y$=_n(Fl,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Gt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function b$(e){const t=fr({props:e,name:"MuiClock"}),{ampm:r,ampmInClock:i,autoFocus:u,children:o,date:a,getClockLabelText:n,handleMeridiemChange:l,isTimeDisabled:f,meridiemMode:s,minutesStep:c=1,onChange:d,selectedId:h,type:p,value:m,disabled:y,readOnly:v,className:g}=t,b=t,x=br(),_=$e.useContext(Pi),w=$e.useRef(!1),k=f$(b),T=f(m,p),M=!r&&p==="hours"&&(m<1||m>12),S=($,j)=>{y||v||f($,p)||d($,j)},C=($,j)=>{let{offsetX:N,offsetY:E}=$;if(N===void 0){const G=$.target.getBoundingClientRect();N=$.changedTouches[0].clientX-G.left,E=$.changedTouches[0].clientY-G.top}const W=p==="seconds"||p==="minutes"?e$(N,E,c):t$(N,E,!!r);S(W,j)},P=$=>{w.current=!0,C($,"shallow")},D=$=>{w.current&&(C($,"finish"),w.current=!1)},O=$=>{$.buttons>0&&C($.nativeEvent,"shallow")},R=$=>{w.current&&(w.current=!1),C($.nativeEvent,"finish")},F=$e.useMemo(()=>p==="hours"?!0:m%5===0,[p,m]),A=p==="minutes"?c:1,z=$e.useRef(null);Md(()=>{u&&z.current.focus()},[u]);const B=$=>{if(!w.current)switch($.key){case"Home":S(0,"partial"),$.preventDefault();break;case"End":S(p==="minutes"?59:23,"partial"),$.preventDefault();break;case"ArrowUp":S(m+A,"partial"),$.preventDefault();break;case"ArrowDown":S(m-A,"partial"),$.preventDefault();break}};return je.jsxs(d$,{className:jr(g,k.root),children:[je.jsxs(h$,{className:k.clock,children:[je.jsx(g$,{onTouchMove:P,onTouchEnd:D,onMouseUp:R,onMouseMove:O,ownerState:{disabled:y},className:k.squareMask}),!T&&je.jsxs($e.Fragment,{children:[je.jsx(m$,{className:k.pin}),a&&je.jsx(s$,{type:p,value:m,isInner:M,hasSelected:F})]}),je.jsx(p$,{"aria-activedescendant":h,"aria-label":n(p,a,x),ref:z,role:"listbox",onKeyDown:B,tabIndex:0,className:k.wrapper,children:o})]}),r&&(_==="desktop"||i)&&je.jsxs($e.Fragment,{children:[je.jsx(v$,{onClick:v?void 0:()=>l("am"),disabled:y||s===null,ownerState:b,className:k.amButton,children:je.jsx(Cr,{variant:"caption",children:"AM"})}),je.jsx(y$,{disabled:y||s===null,onClick:v?void 0:()=>l("pm"),ownerState:b,className:k.pmButton,children:je.jsx(Cr,{variant:"caption",children:"PM"})})]})]})}function x$(e){return Tr("MuiClockNumber",e)}const yu=_r("MuiClockNumber",["root","selected","disabled"]),w$=["className","disabled","index","inner","label","selected"],_$=e=>{const{classes:t,selected:r,disabled:i}=e;return yr({root:["root",r&&"selected",i&&"disabled"]},x$,t)},T$=_n("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${yu.disabled}`]:t.disabled},{[`&.${yu.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Gt({height:Yi,width:Yi,position:"absolute",left:`calc((100% - ${Yi}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${yu.selected}`]:{color:e.palette.primary.contrastText},[`&.${yu.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Gt({},e.typography.body2,{color:e.palette.text.secondary})));function C4(e){const t=fr({props:e,name:"MuiClockNumber"}),{className:r,disabled:i,index:u,inner:o,label:a,selected:n}=t,l=Vn(t,w$),f=t,s=_$(f),c=u%12/12*Math.PI*2-Math.PI/2,d=(kl-Yi-2)/2*(o?.65:1),h=Math.round(Math.cos(c)*d),p=Math.round(Math.sin(c)*d);return je.jsx(T$,Gt({className:jr(r,s.root),"aria-disabled":i?!0:void 0,"aria-selected":n?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${p+(kl-Yi)/2}px`},ownerState:f},l,{children:a}))}const k$=({ampm:e,date:t,getClockNumberText:r,isDisabled:i,selectedId:u,utils:o})=>{const a=t?o.getHours(t):null,n=[],l=e?1:0,f=e?12:23,s=c=>a===null?!1:e?c===12?a===12||a===0:a===c||a-12===c:a===c;for(let c=l;c<=f;c+=1){let d=c.toString();c===0&&(d="00");const h=!e&&(c===0||c>12);d=o.formatNumber(d);const p=s(c);n.push(je.jsx(C4,{id:p?u:void 0,index:c,inner:h,selected:p,disabled:i(c),label:d,"aria-label":r(d)},c))}return n},o_=({utils:e,value:t,isDisabled:r,getClockNumberText:i,selectedId:u})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([a,n],l)=>{const f=a===t;return je.jsx(C4,{label:n,id:f?u:void 0,index:l+1,inner:!1,disabled:r(a),selected:f,"aria-label":i(n)},a)})};function O4(e){return Tr("MuiClockPicker",e)}const M$=_r("MuiClockPicker",["root","arrowSwitcher"]),S$=e=>{const{classes:t}=e;return yr({root:["root"],arrowSwitcher:["arrowSwitcher"]},O4,t)},C$=_n(Ry,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),O$=_n(g4,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),A$=y4(),A4=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiClockPicker"}),{ampm:u=!1,ampmInClock:o=!1,autoFocus:a,components:n,componentsProps:l,date:f,disableIgnoringDatePartForTimeValidation:s,getClockLabelText:c,getHoursClockNumberText:d,getMinutesClockNumberText:h,getSecondsClockNumberText:p,leftArrowButtonText:m,maxTime:y,minTime:v,minutesStep:g=1,rightArrowButtonText:b,shouldDisableTime:x,showViewSwitcher:_,onChange:w,view:k,views:T=["hours","minutes"],openTo:M,onViewChange:S,className:C,disabled:P,readOnly:D}=i;A$({leftArrowButtonText:m,rightArrowButtonText:b,getClockLabelText:c,getHoursClockNumberText:d,getMinutesClockNumberText:h,getSecondsClockNumberText:p});const O=ei(),R=m??O.openPreviousView,F=b??O.openNextView,A=c??O.clockLabelText,z=d??O.hoursClockNumberText,B=h??O.minutesClockNumberText,$=p??O.secondsClockNumberText,{openView:j,setOpenView:N,nextView:E,previousView:W,handleChangeAndOpenNext:G}=Ey({view:k,views:T,openTo:M,onViewChange:S,onChange:w}),L=nc(),q=br(),H=$e.useMemo(()=>f||q.setSeconds(q.setMinutes(q.setHours(L,0),0),0),[f,L,q]),{meridiemMode:V,handleMeridiemChange:te}=v4(H,u,G),ee=$e.useCallback((X,re)=>{const ie=m4(s,q),le=({start:pe,end:Te})=>!(v&&ie(v,Te)||y&&ie(pe,y)),se=(pe,Te=1)=>pe%Te!==0?!1:x?!x(pe,re):!0;switch(re){case"hours":{const pe=R0(X,V,u),Te=q.setHours(H,pe),Se=q.setSeconds(q.setMinutes(Te,0),0),Oe=q.setSeconds(q.setMinutes(Te,59),59);return!le({start:Se,end:Oe})||!se(pe)}case"minutes":{const pe=q.setMinutes(H,X),Te=q.setSeconds(pe,0),Se=q.setSeconds(pe,59);return!le({start:Te,end:Se})||!se(X,g)}case"seconds":{const pe=q.setSeconds(H,X);return!le({start:pe,end:pe})||!se(X)}default:throw new Error("not supported")}},[u,H,s,y,V,v,g,x,q]),U=J5(),Q=$e.useMemo(()=>{switch(j){case"hours":{const X=(re,ie)=>{const le=R0(re,V,u);G(q.setHours(H,le),ie)};return{onChange:X,value:q.getHours(H),children:k$({date:f,utils:q,ampm:u,onChange:X,getClockNumberText:z,isDisabled:re=>P||ee(re,"hours"),selectedId:U})}}case"minutes":{const X=q.getMinutes(H),re=(ie,le)=>{G(q.setMinutes(H,ie),le)};return{value:X,onChange:re,children:o_({utils:q,value:X,onChange:re,getClockNumberText:B,isDisabled:ie=>P||ee(ie,"minutes"),selectedId:U})}}case"seconds":{const X=q.getSeconds(H),re=(ie,le)=>{G(q.setSeconds(H,ie),le)};return{value:X,onChange:re,children:o_({utils:q,value:X,onChange:re,getClockNumberText:$,isDisabled:ie=>P||ee(ie,"seconds"),selectedId:U})}}default:throw new Error("You must provide the type for ClockView")}},[j,q,f,u,z,B,$,V,G,H,ee,U,P]),Y=i,Z=S$(Y);return je.jsxs(C$,{ref:r,className:jr(Z.root,C),ownerState:Y,children:[_&&je.jsx(O$,{className:Z.arrowSwitcher,leftArrowButtonText:R,rightArrowButtonText:F,components:n,componentsProps:l,onLeftClick:()=>N(W),onRightClick:()=>N(E),isLeftDisabled:!W,isRightDisabled:!E,ownerState:Y}),je.jsx(b$,Gt({autoFocus:a,date:f,ampmInClock:o,type:j,ampm:u,getClockLabelText:A,minutesStep:g,isTimeDisabled:ee,meridiemMode:V,handleMeridiemChange:te,selectedId:U,disabled:P,readOnly:D},Q))]})}),P4=e=>e.length===1&&e[0]==="year",D4=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,P$=(e,t)=>P4(e)?{inputFormat:t.formats.year}:D4(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function Ly(e,t){var r;const i=br(),u=tc(),o=fr({props:e,name:t}),a=(r=o.views)!=null?r:["year","day"];return Gt({openTo:"day",disableFuture:!1,disablePast:!1},P$(a,i),o,{views:a,minDate:Ha(i,o.minDate,u.minDate),maxDate:Ha(i,o.maxDate,u.maxDate)})}const Iy={emptyValue:null,getTodayValue:e=>e.date(),parseInput:Cy,areValuesEqual:(e,t,r)=>e.isEqual(t,r)};function E4(e){return Tr("MuiPickersToolbar",e)}const Fy=_r("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),D$=e=>{const{classes:t,isLandscape:r}=e;return yr({root:["root"],content:["content"],penIconButton:["penIconButton",r&&"penIconButtonLandscape"]},E4,t)},E$=_n("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Gt({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),R$=_n(Jn,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Gt({flex:1},!e.isLandscape&&{alignItems:"center"})),L$=_n(Fl,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${Fy.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),I$=e=>e==="clock"?je.jsx(p4,{color:"inherit"}):je.jsx(h4,{color:"inherit"}),Ny=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersToolbar"}),{children:u,className:o,getMobileKeyboardInputViewButtonText:a,isLandscape:n,isMobileKeyboardViewOpen:l,landscapeDirection:f="column",toggleMobileKeyboardView:s,toolbarTitle:c,viewType:d="calendar"}=i,h=i,p=ei(),m=D$(h);return je.jsxs(E$,{ref:r,className:jr(m.root,o),ownerState:h,children:[je.jsx(Cr,{color:"text.secondary",variant:"overline",children:c}),je.jsxs(R$,{container:!0,justifyContent:"space-between",className:m.content,ownerState:h,direction:n?f:"row",alignItems:n?"flex-start":"flex-end",children:[u,je.jsx(L$,{onClick:s,className:m.penIconButton,ownerState:h,color:"inherit","aria-label":a?a(l,d):p.inputModeToggleButtonAriaLabel(l,d),children:l?I$(d):je.jsx(oj,{color:"inherit"})})]})]})});function F$(e){return Tr("MuiDatePickerToolbar",e)}const N$=_r("MuiDatePickerToolbar",["root","title"]),j$=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],$$=e=>{const{classes:t}=e;return yr({root:["root"],title:["title"]},F$,t)},B$=_n(Ny,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),z$=_n(Cr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Gt({},e.isLandscape&&{margin:"auto 16px auto auto"})),jy=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:u,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:n,toolbarFormat:l,toolbarPlaceholder:f="––",toolbarTitle:s,views:c}=i,d=Vn(i,j$),h=br(),p=ei(),m=$$(i),y=s??p.datePickerDefaultToolbarTitle,v=$e.useMemo(()=>u?l?h.formatByString(u,l):P4(c)?h.format(u,"year"):D4(c)?h.format(u,"month"):/en/.test(h.getCurrentLocaleCode())?h.format(u,"normalDateWithWeekday"):h.format(u,"normalDate"):f,[u,l,f,h,c]),g=i;return je.jsx(B$,Gt({ref:r,toolbarTitle:y,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:n,isLandscape:o,className:m.root},d,{children:je.jsx(z$,{variant:"h4",align:o?"left":"center",ownerState:g,className:m.title,children:v})}))}),q$=["onAccept","onClear","onCancel","onSetToday","actions"],$y=e=>{const{onAccept:t,onClear:r,onCancel:i,onSetToday:u,actions:o}=e,a=Vn(e,q$),n=$e.useContext(Pi),l=ei(),f=typeof o=="function"?o(n):o;if(f==null||f.length===0)return null;const s=f==null?void 0:f.map(c=>{switch(c){case"clear":return je.jsx(di,{onClick:r,children:l.clearButtonLabel},c);case"cancel":return je.jsx(di,{onClick:i,children:l.cancelButtonLabel},c);case"accept":return je.jsx(di,{onClick:t,children:l.okButtonLabel},c);case"today":return je.jsx(di,{onClick:u,children:l.todayButtonLabel},c);default:return null}});return je.jsx(T9,Gt({},a,{children:s}))};function W$(e){return Tr("MuiPickersPopper",e)}_r("MuiPickersPopper",["root","paper"]);const U$=["onClick","onTouchStart"],H$=e=>{const{classes:t}=e;return yr({root:["root"],paper:["paper"]},W$,t)},V$=_n(k9,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Y$=_n(Q5,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Gt({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function G$(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=Cd(l=>{if(!o.current)return;const f=i.current;i.current=!1;const s=lg(u.current);if(!u.current||"clientX"in l&&G$(l,s))return;if(r.current){r.current=!1;return}let c;l.composedPath?c=l.composedPath().indexOf(u.current)>-1:c=!s.documentElement.contains(l.target)||u.current.contains(l.target),!c&&!f&&t(l)}),n=()=>{i.current=!0};return $e.useEffect(()=>{if(e){const l=lg(u.current),f=()=>{r.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",f),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",f)}}},[e,a]),$e.useEffect(()=>{if(e){const l=lg(u.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),i.current=!1}}},[e,a]),[u,n,n]}function Z$(e){var t;const r=fr({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:u,containerRef:o=null,onBlur:a,onClose:n,onClear:l,onAccept:f,onCancel:s,onSetToday:c,open:d,PopperProps:h,role:p,TransitionComponent:m=S9,TrapFocusProps:y,PaperProps:v={},components:g,componentsProps:b}=r;$e.useEffect(()=>{function B($){d&&($.key==="Escape"||$.key==="Esc")&&n()}return document.addEventListener("keydown",B),()=>{document.removeEventListener("keydown",B)}},[n,d]);const x=$e.useRef(null);$e.useEffect(()=>{p!=="tooltip"&&(d?x.current=e4(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[d,p]);const[_,w,k]=X$(d,a??n),T=$e.useRef(null),M=xl(T,o),S=xl(M,_),C=r,P=H$(C),{onClick:D,onTouchStart:O}=v,R=Vn(v,U$),F=B=>{B.key==="Escape"&&(B.stopPropagation(),n())},A=(t=g==null?void 0:g.ActionBar)!=null?t:$y,z=(g==null?void 0:g.PaperContent)||$e.Fragment;return je.jsx(V$,Gt({transition:!0,role:p,open:d,anchorEl:i,onKeyDown:F,className:P.root},h,{children:({TransitionProps:B,placement:$})=>je.jsx(M9,Gt({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:p==="tooltip",isEnabled:()=>!0},y,{children:je.jsx(m,Gt({},B,{children:je.jsx(Y$,Gt({tabIndex:-1,elevation:8,ref:S,onClick:j=>{w(j),D&&D(j)},onTouchStart:j=>{k(j),O&&O(j)},ownerState:Gt({},C,{placement:$}),className:P.paper},R,{children:je.jsxs(z,Gt({},b==null?void 0:b.paperContent,{children:[u,je.jsx(A,Gt({onAccept:f,onClear:l,onCancel:s,onSetToday:c,actions:[]},b==null?void 0:b.actionBar))]}))}))}))}))}))}function By(e){const{children:t,DateInputProps:r,KeyboardDateInputComponent:i,onClear:u,onDismiss:o,onCancel:a,onAccept:n,onSetToday:l,open:f,PopperProps:s,PaperProps:c,TransitionComponent:d,components:h,componentsProps:p}=e,m=$e.useRef(null),y=xl(r.inputRef,m);return je.jsxs(Pi.Provider,{value:"desktop",children:[je.jsx(i,Gt({},r,{inputRef:y})),je.jsx(Z$,{role:"dialog",open:f,anchorEl:m.current,TransitionComponent:d,PopperProps:s,PaperProps:c,onClose:o,onCancel:a,onClear:u,onAccept:n,onSetToday:l,components:h,componentsProps:p,children:t})]})}const K$=e=>{const[,t]=$e.useReducer(l=>l+1,0),r=$e.useRef(null),{replace:i,append:u}=e,o=i?i(e.format(e.value)):e.format(e.value),a=$e.useRef(!1),n=l=>{const f=l.target.value;r.current=[f,l.target,f.length>o.length,a.current,o===e.format(f)],t()};return $e.useLayoutEffect(()=>{if(r.current==null)return;let[l,f,s,c,d]=r.current;r.current=null;const h=c&&d,m=l.slice(f.selectionStart).search(e.accept||/\d/g),y=m!==-1?m:0,v=w=>(w.match(e.accept||/\d/g)||[]).join(""),g=v(l.substr(0,f.selectionStart)),b=w=>{let k=0,T=0;for(let M=0;M!==g.length;++M){let S=w.indexOf(g[M],k)+1,C=v(w).indexOf(g[M],T)+1;C-T>1&&(S=k,C=T),T=Math.max(C,T),k=Math.max(k,S)}return k};if(e.mask===!0&&s&&!d){let w=b(l);const k=v(l.substr(w))[0];w=l.indexOf(k,w),l=`${l.substr(0,w)}${l.substr(w+1)}`}let x=e.format(l);u!=null&&f.selectionStart===l.length&&!d&&(s?x=u(x):v(x.slice(-1))===""&&(x=x.slice(0,-1)));const _=i?i(x):x;return o===_?t():e.onChange(_),()=>{let w=b(x);if(e.mask!=null&&(s||c&&!h))for(;x[w]&&v(x[w])==="";)w+=1;f.selectionStart=f.selectionEnd=w+(h?1+y:0)}}),$e.useEffect(()=>{const l=s=>{s.code==="Delete"&&(a.current=!0)},f=s=>{s.code==="Delete"&&(a.current=!1)};return document.addEventListener("keydown",l),document.addEventListener("keyup",f),()=>{document.removeEventListener("keydown",l),document.removeEventListener("keyup",f)}},[]),{value:r.current!=null?r.current[0]:o,onChange:n}},L0=(e,t,r)=>{const i=e.date(t);return t===null?"":e.isValid(i)?e.formatByString(i,r):""},If="_",R4="2019-11-21T22:30:00.000",L4="2019-01-01T09:00:00.000";function J$(e,t,r,i){if(e)return e;const o=i.formatByString(i.date(L4),t).replace(r,If),a=i.formatByString(i.date(R4),t).replace(r,"_");return o===a?o:""}function Q$(e,t,r,i){if(!e)return!1;const o=i.formatByString(i.date(L4),t).replace(r,If),a=i.formatByString(i.date(R4),t).replace(r,"_"),n=a===o&&e===a;return!n&&i.lib,n}const eB=(e,t)=>r=>{let i=0;return r.split("").map((u,o)=>{if(t.lastIndex=0,i>e.length-1)return"";const a=e[i],n=e[i+1],l=t.test(u)?u:"",f=a===If?l:a+l;return i+=f.length,o===r.length-1&&n&&n!==If?f?f+n:"":f}).join("")},tB=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:r,ignoreInvalidInputs:i,inputFormat:u,inputProps:o,label:a,mask:n,onChange:l,rawValue:f,readOnly:s,rifmFormatter:c,TextFieldProps:d,validationError:h})=>{const p=br(),m=p.getFormatHelperText(u),{shouldUseMaskedInput:y,maskToUse:v}=$e.useMemo(()=>{if(r)return{shouldUseMaskedInput:!1,maskToUse:""};const O=J$(n,u,e,p);return{shouldUseMaskedInput:Q$(O,u,e,p),maskToUse:O}},[e,r,u,n,p]),g=$e.useMemo(()=>y&&v?eB(v,e):O=>O,[e,v,y]),b=f===null?null:p.date(f),[x,_]=$e.useState(b),[w,k]=$e.useState(L0(p,f,u)),T=$e.useRef(),M=$e.useRef(p.locale),S=$e.useRef(u);$e.useEffect(()=>{const O=f!==T.current,R=p.locale!==M.current,F=u!==S.current;if(T.current=f,M.current=p.locale,S.current=u,!O&&!R&&!F)return;const A=f===null?null:p.date(f),z=f===null||p.isValid(A);let B=x===null&&A===null;if(x!==null&&A!==null){const j=p.isEqual(x,A);if(j)B=!0;else{const N=Math.abs(p.getDiff(x,A));B=N===0?j:N<1e3}}if(!R&&!F&&(!z||B))return;const $=L0(p,f,u);_(A),k($)},[p,f,u,x]);const C=O=>{const R=O===""||O===n?"":O;k(R);const F=R===null?null:p.parse(R,u);i&&!p.isValid(F)||(_(F),l(F,R||void 0))},P=K$({value:w,onChange:C,format:c||g});return Gt({label:a,disabled:t,error:h,inputProps:Gt({},y?P:{value:w,onChange:O=>{C(O.currentTarget.value)}},{disabled:t,placeholder:m,readOnly:s,type:y?"tel":"text"},o)},d)},nB=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],$d=$e.forwardRef(function(t,r){const{className:i,components:u={},disableOpenPicker:o,getOpenDialogAriaText:a,InputAdornmentProps:n,InputProps:l,inputRef:f,openPicker:s,OpenPickerButtonProps:c,renderInput:d}=t,h=Vn(t,nB),p=ei(),m=a??p.openDatePickerDialogue,y=br(),v=tB(h),g=(n==null?void 0:n.position)||"end",b=u.OpenPickerIcon||h4;return d(Gt({ref:r,inputRef:f,className:i},v,{InputProps:Gt({},l,{[`${g}Adornment`]:o?void 0:je.jsx(C9,Gt({position:g},n,{children:je.jsx(Fl,Gt({edge:g,disabled:h.disabled||h.readOnly,"aria-label":m(h.rawValue,y)},c,{onClick:s,children:je.jsx(b,{})}))}))})}))});function l_(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const rB=(e,t)=>{const[r,i]=$e.useState(l_);return Md(()=>{const o=()=>{i(l_())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),yo(e,["hours","minutes","seconds"])?!1:(t||r)==="landscape"},aB=({autoFocus:e,openView:t})=>{const[r,i]=$e.useState(e?t:null),u=$e.useCallback(o=>a=>{i(a?o:n=>o===n?null:n)},[]);return{focusedView:r,setFocusedView:u}};function iB(e){return Tr("MuiCalendarOrClockPicker",e)}_r("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const oB=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],lB=e=>{const{classes:t}=e;return yr({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},iB,t)},sB=_n("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),uB=_n("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Gt({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),cB={fullWidth:!0},s_=e=>e==="year"||e==="month"||e==="day",u_=e=>e==="hours"||e==="minutes"||e==="seconds";function Di(e){var t,r;const i=fr({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:u,parsedValue:o,DateInputProps:a,isMobileKeyboardViewOpen:n,onDateChange:l,onViewChange:f,openTo:s,orientation:c,showToolbar:d,toggleMobileKeyboardView:h,ToolbarComponent:p=()=>null,toolbarFormat:m,toolbarPlaceholder:y,toolbarTitle:v,views:g,dateRangeIcon:b,timeIcon:x,hideTabs:_}=i,w=Vn(i,oB),k=(t=w.components)==null?void 0:t.Tabs,T=rB(g,c),M=$e.useContext(Pi),S=lB(i),C=d??M!=="desktop",P=!_&&typeof window<"u"&&window.innerHeight>667,D=$e.useCallback(($,j)=>{l($,M,j)},[l,M]),O=$e.useCallback($=>{n&&h(),f&&f($)},[n,f,h]),{openView:R,setOpenView:F,handleChangeAndOpenNext:A}=Ey({view:void 0,views:g,openTo:s,onChange:D,onViewChange:O}),{focusedView:z,setFocusedView:B}=aB({autoFocus:u,openView:R});return je.jsxs(uB,{ownerState:{isLandscape:T},className:S.root,children:[C&&je.jsx(p,Gt({},w,{views:g,isLandscape:T,parsedValue:o,onChange:D,setOpenView:F,openView:R,toolbarTitle:v,toolbarFormat:m,toolbarPlaceholder:y,isMobileKeyboardViewOpen:n,toggleMobileKeyboardView:h})),P&&!!k&&je.jsx(k,Gt({dateRangeIcon:b,timeIcon:x,view:R,onChange:F},(r=w.componentsProps)==null?void 0:r.tabs)),je.jsx(Ry,{children:n?je.jsx(sB,{className:S.mobileKeyboardInputView,children:je.jsx($d,Gt({},a,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:cB}))}):je.jsxs($e.Fragment,{children:[s_(R)&&je.jsx(_4,Gt({autoFocus:u,date:o,onViewChange:F,onChange:A,view:R,views:g.filter(s_),focusedView:z,onFocusedViewChange:B},w)),u_(R)&&je.jsx(A4,Gt({},w,{autoFocus:u,date:o,view:R,views:g.filter(u_),onChange:A,onViewChange:F,showViewSwitcher:M==="desktop"}))]})})]})}const fB=({open:e,onOpen:t,onClose:r})=>{const i=$e.useRef(typeof e=="boolean").current,[u,o]=$e.useState(!1);$e.useEffect(()=>{if(i){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[i,e]);const a=$e.useCallback(n=>{i||o(n),n&&t&&t(),!n&&r&&r()},[i,t,r]);return{isOpen:u,setIsOpen:a}},Ei=(e,t)=>{const{onAccept:r,onChange:i,value:u,closeOnSelect:o}=e,a=br(),{isOpen:n,setIsOpen:l}=fB(e),f=$e.useMemo(()=>t.parseInput(a,u),[t,a,u]),[s,c]=$e.useState(f),[d,h]=$e.useState(()=>({committed:f,draft:f,resetFallback:f})),p=$e.useCallback(w=>{h(k=>{switch(w.action){case"setAll":case"acceptAndClose":return{draft:w.value,committed:w.value,resetFallback:w.value};case"setCommitted":return Gt({},k,{draft:w.value,committed:w.value});case"setDraft":return Gt({},k,{draft:w.value});default:return k}}),(w.forceOnChangeCall||!w.skipOnChangeCall&&!t.areValuesEqual(a,d.committed,w.value))&&i(w.value),w.action==="acceptAndClose"&&(l(!1),r&&!t.areValuesEqual(a,d.resetFallback,w.value)&&r(w.value))},[r,i,l,d,a,t]);$e.useEffect(()=>{a.isValid(f)&&c(f)},[a,f]),$e.useEffect(()=>{n&&p({action:"setAll",value:f,skipOnChangeCall:!0})},[n]),t.areValuesEqual(a,d.committed,f)||p({action:"setCommitted",value:f,skipOnChangeCall:!0});const m=$e.useMemo(()=>({open:n,onClear:()=>{p({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,u,t.emptyValue)})},onAccept:()=>{p({value:d.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,u,f)})},onDismiss:()=>{p({value:d.committed,action:"acceptAndClose"})},onCancel:()=>{p({value:d.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{p({value:t.getTodayValue(a),action:"acceptAndClose"})}}),[p,n,a,d,t,u,f]),[y,v]=$e.useState(!1),g=$e.useMemo(()=>({parsedValue:d.draft,isMobileKeyboardViewOpen:y,toggleMobileKeyboardView:()=>v(!y),onDateChange:(w,k,T="partial")=>{switch(T){case"shallow":return p({action:"setDraft",value:w,skipOnChangeCall:!0});case"partial":return p({action:"setDraft",value:w});case"finish":return p(o??k==="desktop"?{value:w,action:"acceptAndClose"}:{value:w,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[p,y,d.draft,o]),b=$e.useCallback((w,k)=>{const T=t.valueReducer?t.valueReducer(a,s,w):w;i(T,k)},[i,t,s,a]),x=$e.useMemo(()=>({onChange:b,open:n,rawValue:u,openPicker:()=>l(!0)}),[b,n,u,l]),_={pickerProps:g,inputProps:x,wrapperProps:m};return $e.useDebugValue(_,()=>({MuiPickerState:{dateState:d,other:_}})),_},dB=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],I4=$e.forwardRef(function(t,r){const i=Ly(t,"MuiDesktopDatePicker"),u=Py(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Iy),{PopperProps:l,PaperProps:f,ToolbarComponent:s=jy,TransitionComponent:c,components:d,componentsProps:h}=i,p=Vn(i,dB),m=Gt({},a,p,{components:d,componentsProps:h,ref:r,validationError:u});return je.jsx(By,Gt({},n,{DateInputProps:m,KeyboardDateInputComponent:$d,PopperProps:l,PaperProps:f,TransitionComponent:c,components:d,componentsProps:h,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:m,components:d,componentsProps:h},p))}))}),hB=_n(O9)({[`& .${B2.container}`]:{outline:0},[`& .${B2.paper}`]:{outline:0,minWidth:Dy}}),pB=_n(A9)({"&:first-of-type":{padding:0}}),gB=e=>{var t;const{children:r,DialogProps:i={},onAccept:u,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,components:s,componentsProps:c}=e,d=(t=s==null?void 0:s.ActionBar)!=null?t:$y;return je.jsxs(hB,Gt({open:f,onClose:a},i,{children:[je.jsx(pB,{children:r}),je.jsx(d,Gt({onAccept:u,onClear:o,onCancel:n,onSetToday:l,actions:["cancel","accept"]},c==null?void 0:c.actionBar))]}))},mB=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function zy(e){const{children:t,DateInputProps:r,DialogProps:i,onAccept:u,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,PureDateInputComponent:s,components:c,componentsProps:d}=e,h=Vn(e,mB);return je.jsxs(Pi.Provider,{value:"mobile",children:[je.jsx(s,Gt({components:c},h,r)),je.jsx(gB,{DialogProps:i,onAccept:u,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,components:c,componentsProps:d,children:t})]})}const qy=$e.forwardRef(function(t,r){const{disabled:i,getOpenDialogAriaText:u,inputFormat:o,InputProps:a,inputRef:n,label:l,openPicker:f,rawValue:s,renderInput:c,TextFieldProps:d={},validationError:h,className:p}=t,m=ei(),y=u??m.openDatePickerDialogue,v=br(),g=$e.useMemo(()=>Gt({},a,{readOnly:!0}),[a]),b=L0(v,s,o),x=Cd(_=>{_.stopPropagation(),f()});return c(Gt({label:l,disabled:i,ref:r,inputRef:n,error:h,InputProps:g,className:p},!t.readOnly&&!t.disabled&&{onClick:x},{inputProps:Gt({disabled:i,readOnly:!0,"aria-readonly":!0,"aria-label":y(s,v),value:b},!t.readOnly&&{onClick:x},{onKeyDown:QS(f)})},d))}),vB=["ToolbarComponent","value","onChange","components","componentsProps"],F4=$e.forwardRef(function(t,r){const i=Ly(t,"MuiMobileDatePicker"),u=Py(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Iy),{ToolbarComponent:l=jy,components:f,componentsProps:s}=i,c=Vn(i,vB),d=Gt({},a,c,{components:f,componentsProps:s,ref:r,validationError:u});return je.jsx(zy,Gt({},c,n,{DateInputProps:d,PureDateInputComponent:qy,components:f,componentsProps:s,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:f,componentsProps:s},c))}))}),yB=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],bB=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:u="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,yB);return dy(u,{defaultMatches:!0})?je.jsx(I4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(F4,Gt({ref:r,DialogProps:o},l))});function Wy(e,t){var r,i,u,o,a;const n=fr({props:e,name:t}),l=br(),f=tc(),s=(r=n.ampm)!=null?r:l.is12HourCycleInCurrentLocale();if(n.orientation!=null&&n.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Gt({ampm:s,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:s?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:s?l.formats.keyboardDateTime12h:l.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(n.minDateTime||n.maxDateTime),disablePast:!1,disableFuture:!1},n,{minDate:Ha(l,(i=n.minDateTime)!=null?i:n.minDate,f.minDate),maxDate:Ha(l,(u=n.maxDateTime)!=null?u:n.maxDate,f.maxDate),minTime:(o=n.minDateTime)!=null?o:n.minTime,maxTime:(a=n.maxDateTime)!=null?a:n.maxTime})}const Uy={emptyValue:null,getTodayValue:e=>e.date(),parseInput:Cy,areValuesEqual:(e,t,r)=>e.isEqual(t,r)},xB=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function wB(e){return Tr("PrivatePickersToolbarText",e)}const c_=_r("PrivatePickersToolbarText",["root","selected"]),_B=["className","selected","value"],TB=e=>{const{classes:t,selected:r}=e;return yr({root:["root",r&&"selected"]},wB,t)},kB=_n(Cr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${c_.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${c_.selected}`]:{color:e.palette.text.primary}})),Hy=$e.forwardRef(function(t,r){const{className:i,value:u}=t,o=Vn(t,_B),a=TB(t);return je.jsx(kB,Gt({ref:r,className:jr(i,a.root),component:"span"},o,{children:u}))}),MB=["align","className","selected","typographyClassName","value","variant"],SB=e=>{const{classes:t}=e;return yr({root:["root"]},E4,t)},CB=_n(di,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),ui=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersToolbarButton"}),{align:u,className:o,selected:a,typographyClassName:n,value:l,variant:f}=i,s=Vn(i,MB),c=SB(i);return je.jsx(CB,Gt({variant:"text",ref:r,className:jr(o,c.root)},s,{children:je.jsx(Hy,{align:u,className:n,variant:f,value:l,selected:a})}))});function OB(e){return Tr("MuiDateTimePickerToolbar",e)}const AB=_r("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),PB=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],DB=e=>{const{classes:t}=e;return yr({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},OB,t)},EB=_n(Ny,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${Fy.penIconButton}`]:Gt({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),RB=_n("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),LB=_n("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),f_=_n(Hy,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function Vy(e){const t=fr({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:r,parsedValue:i,isMobileKeyboardViewOpen:u,openView:o,setOpenView:a,toggleMobileKeyboardView:n,toolbarFormat:l,toolbarPlaceholder:f="––",toolbarTitle:s,views:c}=t,d=Vn(t,PB),h=t,p=br(),m=ei(),y=DB(h),v=s??m.dateTimePickerDefaultToolbarTitle,g=x=>r?p.format(x,"hours12h"):p.format(x,"hours24h"),b=$e.useMemo(()=>i?l?p.formatByString(i,l):p.format(i,"shortDate"):f,[i,l,f,p]);return je.jsxs(EB,Gt({toolbarTitle:v,isMobileKeyboardViewOpen:u,toggleMobileKeyboardView:n,className:y.root,viewType:xB(o)},d,{isLandscape:!1,ownerState:h,children:[je.jsxs(RB,{className:y.dateContainer,ownerState:h,children:[c.includes("year")&&je.jsx(ui,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:o==="year",value:i?p.format(i,"year"):"–"}),c.includes("day")&&je.jsx(ui,{tabIndex:-1,variant:"h4",onClick:()=>a("day"),selected:o==="day",value:b})]}),je.jsxs(LB,{className:y.timeContainer,ownerState:h,children:[c.includes("hours")&&je.jsx(ui,{variant:"h3",onClick:()=>a("hours"),selected:o==="hours",value:i?g(i):"--"}),c.includes("minutes")&&je.jsxs($e.Fragment,{children:[je.jsx(f_,{variant:"h3",value:":",className:y.separator,ownerState:h}),je.jsx(ui,{variant:"h3",onClick:()=>a("minutes"),selected:o==="minutes",value:i?p.format(i,"minutes"):"--"})]}),c.includes("seconds")&&je.jsxs($e.Fragment,{children:[je.jsx(f_,{variant:"h3",value:":",className:y.separator,ownerState:h}),je.jsx(ui,{variant:"h3",onClick:()=>a("seconds"),selected:o==="seconds",value:i?p.format(i,"seconds"):"--"})]})]})]}))}const N4=({adapter:e,value:t,props:r})=>{const{minTime:i,maxTime:u,minutesStep:o,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:n}=r,l=e.utils.date(t),f=m4(n,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(i&&f(i,l)):return"minTime";case!!(u&&f(l,u)):return"maxTime";case!!(a&&a(e.utils.getHours(l),"hours")):return"shouldDisableTime-hours";case!!(a&&a(e.utils.getMinutes(l),"minutes")):return"shouldDisableTime-minutes";case!!(a&&a(e.utils.getSeconds(l),"seconds")):return"shouldDisableTime-seconds";case!!(o&&e.utils.getMinutes(l)%o!==0):return"minutesStep";default:return null}},IB=(e,t)=>e===t,Yy=e=>Oy(e,N4,IB),FB=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],NB=({props:e,value:t,adapter:r})=>{const{minDate:i,maxDate:u,disableFuture:o,shouldDisableDate:a,disablePast:n}=e,l=Vn(e,FB),f=Ay({adapter:r,value:t,props:{minDate:i,maxDate:u,disableFuture:o,shouldDisableDate:a,disablePast:n}});return f!==null?f:N4({adapter:r,value:t,props:l})},jB=(e,t)=>e===t;function Gy(e){return Oy(e,NB,jB)}function $B(e){return Tr("MuiDateTimePickerTabs",e)}const BB=_r("MuiDateTimePickerTabs",["root"]),zB=e=>["day","month","year"].includes(e)?"date":"time",qB=e=>e==="date"?"day":"hours",WB=e=>{const{classes:t}=e;return yr({root:["root"]},$B,t)},UB=_n(eS,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>Gt({boxShadow:`0 -1px 0 0 inset ${t.palette.divider}`},e.wrapperVariant==="desktop"&&{order:1,boxShadow:`0 1px 0 0 inset ${t.palette.divider}`,[`& .${P9.indicator}`]:{bottom:"auto",top:0}})),Bd=function(t){const r=fr({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:i=je.jsx(ij,{}),onChange:u,timeIcon:o=je.jsx(lj,{}),view:a}=r,n=ei(),l=$e.useContext(Pi),f=Gt({},r,{wrapperVariant:l}),s=WB(f),c=(d,h)=>{u(qB(h))};return je.jsxs(UB,{ownerState:f,variant:"fullWidth",value:zB(a),onChange:c,className:s.root,children:[je.jsx(S0,{value:"date","aria-label":n.dateTableLabel,icon:je.jsx($e.Fragment,{children:i})}),je.jsx(S0,{value:"time","aria-label":n.timeTableLabel,icon:je.jsx($e.Fragment,{children:o})})]})},HB=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],j4=$e.forwardRef(function(t,r){const i=Wy(t,"MuiDesktopDateTimePicker"),u=Gy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Uy),{PaperProps:l,PopperProps:f,ToolbarComponent:s=Vy,TransitionComponent:c,components:d,componentsProps:h,hideTabs:p=!0}=i,m=Vn(i,HB),y=$e.useMemo(()=>Gt({Tabs:Bd},d),[d]),v=Gt({},a,m,{components:y,componentsProps:h,ref:r,validationError:u});return je.jsx(By,Gt({},n,{DateInputProps:v,KeyboardDateInputComponent:$d,PopperProps:f,PaperProps:l,TransitionComponent:c,components:y,componentsProps:h,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:v,components:y,componentsProps:h,hideTabs:p},m))}))}),VB=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],$4=$e.forwardRef(function(t,r){const i=Wy(t,"MuiMobileDateTimePicker"),u=Gy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Uy),{ToolbarComponent:l=Vy,components:f,componentsProps:s,hideTabs:c=!1}=i,d=Vn(i,VB),h=$e.useMemo(()=>Gt({Tabs:Bd},f),[f]),p=Gt({},a,d,{components:h,componentsProps:s,ref:r,validationError:u});return je.jsx(zy,Gt({},d,n,{DateInputProps:p,PureDateInputComponent:qy,components:h,componentsProps:s,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:p,components:h,componentsProps:s,hideTabs:c},d))}))}),YB=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],GB=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:u="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,YB);return dy(u,{defaultMatches:!0})?je.jsx(j4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx($4,Gt({ref:r,DialogProps:o},l))});function Xy(e,t){var r;const i=fr({props:e,name:t}),u=br(),o=(r=i.ampm)!=null?r:u.is12HourCycleInCurrentLocale(),n=ei().openTimePickerDialogue;return Gt({ampm:o,openTo:"hours",views:["hours","minutes"],acceptRegex:o?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:n,inputFormat:o?u.formats.fullTime12h:u.formats.fullTime24h},i,{components:Gt({OpenPickerIcon:p4},i.components)})}const Zy={emptyValue:null,parseInput:Cy,getTodayValue:e=>e.date(),areValuesEqual:(e,t,r)=>e.isEqual(t,r),valueReducer:(e,t,r)=>!t||!e.isValid(r)?r:e.mergeDateAndTime(t,r)};function XB(e){return Tr("MuiTimePickerToolbar",e)}const gl=_r("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),ZB=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],KB=e=>{const{theme:t,isLandscape:r,classes:i}=e,u={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",r&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return yr(u,XB,i)},JB=_n(Ny,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${Fy.penIconButtonLandscape}`]:{marginTop:"auto"}}),QB=_n(Hy,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),ez=_n("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${gl.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${gl.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>Gt({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"})),tz=_n("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${gl.ampmLabel}`]:t.ampmLabel},{[`&.${gl.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Gt({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${gl.ampmLabel}`]:{fontSize:17}}));function Ky(e){const t=fr({props:e,name:"MuiTimePickerToolbar"}),{ampm:r,ampmInClock:i,parsedValue:u,isLandscape:o,isMobileKeyboardViewOpen:a,onChange:n,openView:l,setOpenView:f,toggleMobileKeyboardView:s,toolbarTitle:c,views:d,disabled:h,readOnly:p}=t,m=Vn(t,ZB),y=br(),v=ei(),g=c??v.timePickerDefaultToolbarTitle,b=Od(),x=!!(r&&!i),{meridiemMode:_,handleMeridiemChange:w}=v4(u,r,n),k=C=>r?y.format(C,"hours12h"):y.format(C,"hours24h"),T=t,M=KB(Gt({},T,{theme:b})),S=je.jsx(QB,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:M.separator});return je.jsxs(JB,Gt({viewType:"clock",landscapeDirection:"row",toolbarTitle:g,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:s,ownerState:T,className:M.root},m,{children:[je.jsxs(ez,{className:M.hourMinuteLabel,ownerState:T,children:[yo(d,"hours")&&je.jsx(ui,{tabIndex:-1,variant:"h3",onClick:()=>f("hours"),selected:l==="hours",value:u?k(u):"--"}),yo(d,["hours","minutes"])&&S,yo(d,"minutes")&&je.jsx(ui,{tabIndex:-1,variant:"h3",onClick:()=>f("minutes"),selected:l==="minutes",value:u?y.format(u,"minutes"):"--"}),yo(d,["minutes","seconds"])&&S,yo(d,"seconds")&&je.jsx(ui,{variant:"h3",onClick:()=>f("seconds"),selected:l==="seconds",value:u?y.format(u,"seconds"):"--"})]}),x&&je.jsxs(tz,{className:M.ampmSelection,ownerState:T,children:[je.jsx(ui,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:M.ampmLabel,value:y.getMeridiemText("am"),onClick:p?void 0:()=>w("am"),disabled:h}),je.jsx(ui,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:M.ampmLabel,value:y.getMeridiemText("pm"),onClick:p?void 0:()=>w("pm"),disabled:h})]})]}))}const nz=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],B4=$e.forwardRef(function(t,r){const i=Xy(t,"MuiDesktopTimePicker"),u=Yy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Zy),{PaperProps:l,PopperProps:f,ToolbarComponent:s=Ky,TransitionComponent:c,components:d,componentsProps:h}=i,p=Vn(i,nz),m=Gt({},a,p,{components:d,componentsProps:h,ref:r,validationError:u});return je.jsx(By,Gt({},n,{DateInputProps:m,KeyboardDateInputComponent:$d,PopperProps:f,PaperProps:l,TransitionComponent:c,components:d,componentsProps:h,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:m,components:d,componentsProps:h},p))}))}),rz=["ToolbarComponent","value","onChange","components","componentsProps"],z4=$e.forwardRef(function(t,r){const i=Xy(t,"MuiMobileTimePicker"),u=Yy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Zy),{ToolbarComponent:l=Ky,components:f,componentsProps:s}=i,c=Vn(i,rz),d=Gt({},a,c,{components:f,componentsProps:s,ref:r,validationError:u});return je.jsx(zy,Gt({},c,n,{DateInputProps:d,PureDateInputComponent:qy,components:f,componentsProps:s,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:f,componentsProps:s},c))}))});function az(e){return Tr("MuiPickerStaticWrapper",e)}_r("MuiPickerStaticWrapper",["root","content"]);const iz=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],oz=e=>{const{classes:t}=e;return yr({root:["root"],content:["content"]},az,t)},lz=_n("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),sz=_n("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:Dy,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function zd(e){var t;const r=fr({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:i,onAccept:u,onClear:o,onCancel:a,onSetToday:n,children:l,components:f,componentsProps:s,className:c}=r,d=Vn(r,iz),h=oz(r),p=(t=f==null?void 0:f.ActionBar)!=null?t:$y,m=(f==null?void 0:f.PaperContent)||$e.Fragment;return je.jsx(Pi.Provider,{value:i,children:je.jsxs(lz,Gt({className:jr(h.root,c)},d,{children:[je.jsx(sz,{className:h.content,children:je.jsx(m,Gt({},s==null?void 0:s.paperContent,{children:l}))}),je.jsx(p,Gt({onAccept:u,onClear:o,onCancel:a,onSetToday:n,actions:i==="desktop"?[]:["cancel","accept"]},s==null?void 0:s.actionBar))]}))})}const uz=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],cz=$e.forwardRef(function(t,r){const i=Ly(t,"MuiStaticDatePicker"),{ToolbarComponent:u=jy,displayStaticWrapperAs:o="mobile",components:a,componentsProps:n,className:l}=i,f=Vn(i,uz),{pickerProps:s,inputProps:c,wrapperProps:d}=Ei(i,Iy),h=Py(i)!==null,p=Gt({},c,f,{ref:r,validationError:h,components:a});return je.jsx(zd,Gt({displayStaticWrapperAs:o,components:a,componentsProps:n,className:l},d,{children:je.jsx(Di,Gt({},s,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:u,DateInputProps:p,components:a,componentsProps:n},f))}))}),fz=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],dz=$e.forwardRef(function(t,r){const i=Wy(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:u="mobile",ToolbarComponent:o=Vy,components:a,componentsProps:n,hideTabs:l=u==="desktop",className:f}=i,s=Vn(i,fz),{pickerProps:c,inputProps:d,wrapperProps:h}=Ei(i,Uy),p=Gy(i)!==null,m=$e.useMemo(()=>Gt({Tabs:Bd},a),[a]),y=Gt({},d,s,{ref:r,validationError:p,components:m,componentsProps:n});return je.jsx(zd,Gt({displayStaticWrapperAs:u,components:m,componentsProps:n,className:f},h,{children:je.jsx(Di,Gt({},c,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:y,components:m,componentsProps:n,hideTabs:l},s))}))}),hz=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],pz=$e.forwardRef(function(t,r){const i=Xy(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:u="mobile",ToolbarComponent:o=Ky,components:a,componentsProps:n,className:l}=i,f=Vn(i,hz),s=Yy(i)!==null,{pickerProps:c,inputProps:d,wrapperProps:h}=Ei(i,Zy),p=Gt({},d,f,{ref:r,validationError:s,components:a,componentsProps:n});return je.jsx(zd,Gt({displayStaticWrapperAs:u,components:a,componentsProps:n,className:l},h,{children:je.jsx(Di,Gt({},c,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:p,components:a,componentsProps:n},f))}))}),gz=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],mz=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:u="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,gz);return dy(u,{defaultMatches:!0})?je.jsx(B4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(z4,Gt({ref:r,DialogProps:o},l))});/** @license MUI X v5.0.20 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */const kz=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:M4,CalendarPickerSkeleton:r$,ClockPicker:E4,DEFAULT_LOCALE:i4,DatePicker:SB,DateTimePicker:tz,DateTimePickerTabs:Bd,DesktopDatePicker:j4,DesktopDateTimePicker:z4,DesktopTimePicker:W4,LocalizationProvider:CN,MobileDatePicker:$4,MobileDateTimePicker:q4,MobileTimePicker:U4,MonthPicker:l4,MuiPickersAdapterContext:Cy,PickerStaticWrapper:zd,PickersDay:h4,StaticDatePicker:vz,StaticDateTimePicker:bz,StaticTimePicker:wz,TimePicker:Tz,YearPicker:T4,beBY:TN,calendarPickerClasses:Hj,calendarPickerSkeletonClasses:Kj,clockClasses:v$,clockNumberClasses:yu,clockPickerClasses:E$,clockPointerClasses:c$,csCZ:GF,datePickerToolbarClasses:U$,dateTimePickerTabsClasses:YB,dateTimePickerToolbarClasses:FB,dayPickerClasses:QN,deDE:NF,enUS:eN,esES:BF,faIR:qF,fiFI:HF,frFR:KF,getCalendarPickerSkeletonUtilityClass:S4,getCalendarPickerUtilityClass:k4,getClockPickerUtilityClass:D4,getMonthPickerUtilityClass:o4,getPickersDayUtilityClass:c4,getYearPickerUtilityClass:_4,huHU:QF,isIS:gN,itIT:lN,jaJP:vN,koKR:hN,monthPickerClasses:ON,nbNO:nN,nlNL:AF,pickersCalendarHeaderClasses:Mj,pickersDayClasses:vu,pickersFadeTransitionGroupClasses:NN,pickersMonthClasses:R0,pickersSlideTransitionClasses:ua,pickersYearClasses:wo,plPL:DF,ptBR:RF,ruRU:SN,svSE:aN,timePickerToolbarClasses:gl,trTR:IF,ukUA:bN,urPK:wN,yearPickerClasses:Bj,zhCN:cN},Symbol.toStringTag,{value:"Module"})),H4=qn(kz);var p_;function Mz(){return p_||(p_=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(jl()),c=t(Dd()),o=t(Ed()),a=t(by()),n=t(wy()),l=t(_y()),f=t($e),s=t(Rd),u=t(zo),d=t(ES),h=t(Ty),p=t(RS),m=t(gR),y=t(mR),v=t(vR),g=e4,b=H4,x=t(Or),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],w=["helperText","error"],k=["helperText","error"];function T(P){var D=M();return function(){var R=(0,l.default)(P),F;if(D){var A=(0,l.default)(this).constructor;F=Reflect.construct(R,arguments,A)}else F=R.apply(this,arguments);return(0,n.default)(this,F)}}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var S=function(P){(0,a.default)(O,P);var D=T(O);function O(){return(0,c.default)(this,O),D.apply(this,arguments)}return(0,o.default)(O,[{key:"getProps",value:function(){var F=this.props;F.columnDef,F.rowData,F.onRowDataChange,F.errorState,F.autoFocus,F.onBulkEditRowChanged,F.scrollWidth;var A=(0,i.default)(F,_);return A}},{key:"renderLookupField",value:function(){var F=this,A=this.getProps(),z=A.helperText,B=A.error,$=(0,i.default)(A,w);return f.default.createElement(p.default,{error:!!B},f.default.createElement(d.default,(0,r.default)({},$,{value:this.props.value===void 0?"":this.props.value,onChange:function(N){return F.props.onChange(N.target.value)},style:{fontSize:13},inputProps:{autoFocus:this.props.autoFocus},SelectDisplayProps:{"aria-label":this.props.columnDef.title}}),Object.keys(this.props.columnDef.lookup).map(function(j){return f.default.createElement(h.default,{key:j,value:j},F.props.columnDef.lookup[j])})),!!z&&f.default.createElement(m.default,null,z))}},{key:"renderBooleanField",value:function(){var F=this,A=this.getProps(),z=A.helperText,B=A.error,$=(0,i.default)(A,k);return f.default.createElement(p.default,{error:!!B,component:"fieldset"},f.default.createElement(y.default,null,f.default.createElement(v.default,{label:"",control:f.default.createElement(u.default,(0,r.default)({},$,{value:String(this.props.value),checked:!!this.props.value,onChange:function(N){return F.props.onChange(N.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),f.default.createElement(m.default,null,z))}},{key:"renderDateField",value:function(){var F=this.props.columnDef.dateSetting&&this.props.columnDef.dateSetting.format?this.props.columnDef.dateSetting.format:"dd.MM.yyyy";return f.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.DatePicker,(0,r.default)({},this.getProps(),{renderInput:function(z){return f.default.createElement(s.default,z)},format:F,value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTimeField",value:function(){return f.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.TimePicker,(0,r.default)({},this.getProps(),{renderInput:function(A){return f.default.createElement(s.default,A)},format:"HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderDateTimeField",value:function(){return f.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.DateTimePicker,(0,r.default)({},this.getProps(),{renderInput:function(A){return f.default.createElement(s.default,A)},format:"dd.MM.yyyy HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTextField",value:function(){var F=this;return f.default.createElement(s.default,(0,r.default)({},this.getProps(),{variant:"standard",fullWidth:!0,type:this.props.columnDef.type==="numeric"?"number":"text",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,value:this.props.value===void 0?"":this.props.value,onChange:function(z){return F.props.onChange(F.props.columnDef.type==="numeric"?z.target.valueAsNumber:z.target.value)},InputProps:{style:{minWidth:50,fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:this.props.columnDef.type==="numeric"?{textAlign:"right"}:{}}}))}},{key:"renderCurrencyField",value:function(){var F=this;return f.default.createElement(s.default,(0,r.default)({},this.getProps(),{variant:"standard",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,type:"number",value:this.props.value===void 0?"":this.props.value,onChange:function(z){var B=z.target.valueAsNumber;return!B&&B!==0&&(B=void 0),F.props.onChange(B)},InputProps:{style:{fontSize:13,textAlign:"right"}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:{textAlign:"right"}},onKeyDown:this.props.onKeyDown}))}},{key:"render",value:function(){var F="ok";return this.props.columnDef.editComponent?F=this.props.columnDef.editComponent(this.props):this.props.columnDef.lookup?F=this.renderLookupField():this.props.columnDef.type==="boolean"?F=this.renderBooleanField():this.props.columnDef.type==="date"?F=this.renderDateField():this.props.columnDef.type==="time"?F=this.renderTimeField():this.props.columnDef.type==="datetime"?F=this.renderDateTimeField():this.props.columnDef.type==="currency"?F=this.renderCurrencyField():F=this.renderTextField(),F}}]),O}(f.default.Component);S.propTypes={value:x.default.any,onChange:x.default.func.isRequired,columnDef:x.default.object.isRequired,locale:x.default.object,rowData:x.default.object,onRowDataChange:x.default.func,errorState:x.default.func,autoFocus:x.default.bool,onBulkEditRowChanged:x.default.func,scrollWidth:x.default.number,onKeyDown:x.default.func};var C=S;e.default=C}(Fg)),Fg}var Kg={},Hc={},g_;function V4(){if(g_)return Hc;g_=1;var e=vn;Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.validateInput=o;var t=e(Jr()),r=e(Ur());function i(a,n){var l=Object.keys(a);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);n&&(f=f.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),l.push.apply(l,f)}return l}function c(a){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var g=function(x){(0,o.default)(w,x);var _=y(w);function w(k){var T;return(0,r.default)(this,w),T=_.call(this,k),(0,l.default)((0,c.default)(T),"getStyle",function(){var M={boxShadow:"2px 0px 15px rgba(125,147,178,.25)",color:"inherit",width:T.props.columnDef.tableData.width,boxSizing:"border-box",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",padding:"0 16px"};return typeof T.props.columnDef.cellStyle=="function"?M=m(m({},M),T.props.columnDef.cellStyle(T.state.value,T.props.rowData)):M=m(m({},M),T.props.columnDef.cellStyle),typeof T.props.cellEditable.cellStyle=="function"?M=m(m({},M),T.props.cellEditable.cellStyle(T.state.value,T.props.rowData,T.props.columnDef)):M=m(m({},M),T.props.cellEditable.cellStyle),M}),(0,l.default)((0,c.default)(T),"handleKeyDown",function(M){M.keyCode===13?T.onApprove():M.keyCode===27&&T.onCancel()}),(0,l.default)((0,c.default)(T),"onApprove",function(){var M=(0,h.validateInput)(T.props.columnDef,T.state.value).isValid;M&&T.setState({isLoading:!0},function(){T.props.cellEditable.onCellEditApproved(T.state.value,T.props.getFieldValue(T.props.rowData,T.props.columnDef),T.props.rowData,T.props.columnDef).then(function(){T.setState({isLoading:!1}),T.props.onCellEditFinished(T.props.rowData,T.props.columnDef)}).catch(function(S){T.setState({isLoading:!1})})})}),(0,l.default)((0,c.default)(T),"onCancel",function(){T.props.onCellEditFinished(T.props.rowData,T.props.columnDef)}),T.state={errorState:{isValid:!0,helperText:""},isLoading:!1,value:k.getFieldValue(T.props.rowData,T.props.columnDef,!1)},T}return(0,i.default)(w,[{key:"renderActions",value:function(){if(this.state.isLoading)return f.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},f.default.createElement(d.default,{size:20}));var T=[{icon:this.props.icons.Check,tooltip:this.props.localization.saveTooltip,onClick:this.onApprove,disabled:this.state.isLoading||!this.state.errorState.isValid},{icon:this.props.icons.Clear,tooltip:this.props.localization.cancelTooltip,onClick:this.onCancel,disabled:this.state.isLoading}];return f.default.createElement(this.props.components.Actions,{actions:T,components:this.props.components,size:"small"})}},{key:"handleChange",value:function(T){var M=(0,h.validateInput)(this.props.columnDef,T);this.setState({errorState:M,value:T})}},{key:"render",value:function(){var T=this;return f.default.createElement(u.default,{size:this.props.size,style:this.getStyle(),padding:"none"},f.default.createElement("div",{style:{display:"flex",alignItems:"center"}},f.default.createElement("div",{style:{flex:1,marginRight:4}},f.default.createElement(this.props.components.EditField,{columnDef:this.props.columnDef,value:this.state.value,error:!this.state.errorState.isValid,helperText:this.state.errorState.helperText,onChange:function(S){return T.handleChange(S)},onKeyDown:this.handleKeyDown,disabled:this.state.isLoading,rowData:this.props.rowData,autoFocus:!0})),this.renderActions()))}}]),w}(f.default.Component);g.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},g.propTypes={cellEditable:s.default.object.isRequired,columnDef:s.default.object.isRequired,components:s.default.object.isRequired,errorState:s.default.oneOfType([s.default.object,s.default.bool]),icons:s.default.object.isRequired,localization:s.default.object.isRequired,onCellEditFinished:s.default.func.isRequired,rowData:s.default.object.isRequired,size:s.default.string,getFieldValue:s.default.func.isRequired};var b=g;e.default=b}(Kg)),Kg}var Jg={},Qg={exports:{}},em={exports:{}},v_;function Cz(){return v_||(v_=1,function(e){function t(r){if(Array.isArray(r))return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(em)),em.exports}var tm={exports:{}},y_;function Oz(){return y_||(y_=1,function(e){function t(r,i){var c=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(c!=null){var o,a,n,l,f=[],s=!0,u=!1;try{if(n=(c=c.call(r)).next,i===0){if(Object(c)!==c)return;s=!1}else for(;!(s=(o=n.call(c)).done)&&(f.push(o.value),f.length!==i);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&c.return!=null&&(l=c.return(),Object(l)!==l))return}finally{if(u)throw a}}return f}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(tm)),tm.exports}var nm={exports:{}},b_;function Az(){return b_||(b_=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(nm)),nm.exports}var x_;function ao(){return x_||(x_=1,function(e){var t=Cz(),r=Oz(),i=PS(),c=Az();function o(a,n){return t(a)||r(a,n)||i(a,n)||c()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(Qg)),Qg.exports}const Bl=qn(I9),qo=qn(F9);var w_;function Pz(){return w_||(w_=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Jr()),c=t(Ur()),o=t(ao()),a=t($e),n=t(Or),l=t(yy),f=t(Bl),s=t(qo);function u(m,y){var v=Object.keys(m);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(m);y&&(g=g.filter(function(b){return Object.getOwnPropertyDescriptor(m,b).enumerable})),v.push.apply(v,g)}return v}function d(m){for(var y=1;y0&&o.default.createElement(i.default,{colSpan:n.options.detailPanelOffset.left}),o.default.createElement(i.default,{size:n.size,colSpan:n.renderColumns.length-n.options.detailPanelOffset.left-n.options.detailPanelOffset.right,padding:"none"},o.default.createElement(r.default,{in:u,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){y.current=void 0,m()}},g({rowData:n.data}))))}return Vc}var Kr={},k_;function Ri(){if(k_)return Kr;k_=1;var e=vn;Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.widthToNumber=Kr.selectionMaxWidth=Kr.rowActions=Kr.reducePercentsInCalc=Kr.parseFirstLastPageButtons=Kr.elementSize=Kr.baseIconSize=Kr.actionsColumnWidth=void 0;var t=e(Jr()),r=e(Ur());function i(h,p){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);p&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable})),m.push.apply(m,y)}return m}function c(h){for(var p=1;p1){var v=y[1];return p.replace(/\d*%/,"".concat(m*(v/100),"px"))}return p.replace(/\d*%/,"".concat(m,"px"))};Kr.reducePercentsInCalc=s;var u=function(p){return typeof p=="number"?p:!p||!p.match(/^\s*\d+(px)?\s*$/)?NaN:Number(p.replace(/px$/,""))};Kr.widthToNumber=u;var d=function(p,m){var y={first:!0,last:!0};return typeof p=="boolean"?y={first:p,last:p}:(0,r.default)(p)==="object"&&(y=c(c({},y),p)),m&&(y={first:y.last,last:y.first}),y};return Kr.parseFirstLastPageButtons=d,Kr}var Yc={},M_;function Lz(){if(M_)return Yc;M_=1;var e=vn;Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.useDoubleClick=r;var t=e($e);function r(i,c){var o=t.default.useRef(0),a=t.default.useRef(null),n=t.default.useRef(null),l=t.default.useRef(null);t.default.useEffect(function(){n.current=c,l.current=i});var f=function(){clearTimeout(a.current),a.current=null,o.current=0},s=t.default.useCallback(function(u){var d=o.current+1===2,h=a.current;if(h&&d&&(f(),n.current&&n.current(u)),!h){o.current=o.current+1;var p=function(){f(),l.current&&l.current(u)};if(n.current){var m=setTimeout(p,250);a.current=m}else p()}},[]);return s}return Yc}var S_;function Iz(){return S_||(S_=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t($l()),c=t(Ai),o=t(qo),a=t(Bl),n=t(zo),l=t(hr()),f=t(gi),s=t(Jr()),u=t(jl()),d=t($e),h=t(Or),p=Rz(),m=w(Ri()),y=Lz(),v=Kd(),g=Qa(),b=["forwardedRef"],x=["data","components","detailPanel","getFieldValue","isTreeData","onRowSelected","onRowEditStarted","onTreeExpandChanged","onToggleDetailPanel","onEditingCanceled","onEditingApproved","hasAnyEditingRow","treeDataMaxLevel","path","actions","errorState","cellEditable","onCellEditStarted","onCellEditFinished","persistEvents","scrollWidth","onRowClick","onRowDoubleClick","columns"];function _(C){if(typeof WeakMap!="function")return null;var P=new WeakMap,D=new WeakMap;return(_=function(R){return R?D:P})(C)}function w(C,P){if(C&&C.__esModule)return C;if(C===null||r(C)!=="object"&&typeof C!="function")return{default:C};var D=_(P);if(D&&D.has(C))return D.get(C);var O={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in C)if(F!=="default"&&Object.prototype.hasOwnProperty.call(C,F)){var A=R?Object.getOwnPropertyDescriptor(C,F):null;A&&(A.get||A.set)?Object.defineProperty(O,F,A):O[F]=C[F]}return O.default=C,D&&D.set(C,O),O}function k(C,P){var D=Object.keys(C);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(C);P&&(O=O.filter(function(R){return Object.getOwnPropertyDescriptor(C,R).enumerable})),D.push.apply(D,O)}return D}function T(C){for(var P=1;P-1)}).sort(function(Ae,Ee){return Ae.tableData.columnOrder-Ee.tableData.columnOrder}).map(function(Ae){var Ee=D.getFieldValue(D.data,Ae);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Ie){return Ie.tableData.id===Ae.tableData.id}))return d.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:F,localization:O,columnDef:Ae,size:Oe,key:"cell-"+D.data.tableData.id+"-"+Ae.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:U});var De=Ae.editable!=="never"&&!!D.cellEditable;De&&D.cellEditable.isCellEditable&&(De=D.cellEditable.isCellEditable(D.data,Ae));var Re="cell-".concat(D.data.tableData.id,"-").concat(Ae.tableData.id);return d.default.createElement(D.components.Cell,{size:Oe,errorState:D.errorState,columnDef:T({cellStyle:R.cellStyle},Ae),value:Ee,key:Re,rowData:D.data,cellEditable:De,onCellEditStarted:D.onCellEditStarted,scrollWidth:U})});return ke},Oe=m.elementSize(A),Me=q.length*m.baseIconSize(A),ce=function(ke){return d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-actions-column",style:T({width:Me,padding:"0px 5px",boxSizing:"border-box"},R.actionsCellStyle)},d.default.createElement(D.components.Actions,{data:D.data,actions:ke,components:D.components,size:Oe,disabled:D.hasAnyEditingRow}))},ye=function(){var ke=R.selectionProps||{};typeof ke=="function"&&(ke=ke(D.data));var Ae=m.selectionMaxWidth(A,D.treeDataMaxLevel)||0,Ee=Oe!=="medium"?{padding:"4px"}:void 0;return d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-selection-column",style:{width:Ae}},d.default.createElement(n.default,(0,l.default)({size:Oe,checked:D.data.tableData.checked===!0,onClick:function(Re){return Re.stopPropagation()},value:D.data.tableData.id.toString(),onChange:function(Re){D.onRowSelected(Re,D.path,D.data)},style:Ee},ke)))},J=function(ke){return{transform:ke?"rotate(90deg)":"none"}},ne=function(){return R.showDetailPanelIcon?typeof D.detailPanel=="function"?d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-detail-panel-column",style:T({width:42,textAlign:"center"},R.detailPanelColumnStyle)},d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:T({transition:"all ease 200ms"},J(D.data.tableData.showDetailPanel)),onClick:function(Ae){D.onToggleDetailPanel(D.path,D.detailPanel),Ae.stopPropagation()}},d.default.createElement(F.DetailPanel,null))):d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-detail-panel-column"},d.default.createElement("div",{style:T({width:42*D.detailPanel.length,textAlign:"center",display:"flex"},R.detailPanelColumnStyle)},D.detailPanel.map(function(ke,Ae){typeof ke=="function"&&(ke=ke(D.data));var Ee=(D.data.tableData.showDetailPanel||"").toString()===ke.render.toString(),De=d.default.createElement(F.DetailPanel,null),Re=!0;return Ee?ke.openIcon?(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.openIcon,iconProps:ke.iconProps}),Re=!1):ke.icon&&(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.icon,iconProps:ke.iconProps})):ke.icon&&(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.icon,iconProps:ke.iconProps}),Re=!1),De=d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,key:"key-detail-panel-"+Ae,style:T({transition:"all ease 200ms"},J(Re&&Ee)),disabled:ke.disabled,onClick:function(Be){D.onToggleDetailPanel(D.path,ke.render),Be.stopPropagation()}},De),ke.tooltip&&(De=d.default.createElement(o.default,{key:"key-detail-panel-"+Ae,title:ke.tooltip},De)),De}))):null},de=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-tree-data-column",style:{width:48+9*(D.treeDataMaxLevel-2)}},d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:T({transition:"all ease 200ms",marginLeft:D.level*9},J(D.data.tableData.isTreeExpanded)),onClick:function(Ae){D.onTreeExpandChanged(D.path,D.data),Ae.stopPropagation()}},d.default.createElement(F.DetailPanel,null))):d.default.createElement(f.default,{padding:"none",key:"key-tree-data-column"})},xe=function(ke,Ae){var Ee={};return typeof R.rowStyle=="function"?Ee=T(T({},Ee),R.rowStyle(D.data,ke,Ae,D.hasAnyEditingRow)):R.rowStyle&&(Ee=T(T({},Ee),R.rowStyle)),(Q||Y)&&(Ee.cursor="pointer"),D.hasAnyEditingRow&&(Ee.opacity=Ee.opacity?Ee.opacity:.2),Ee},ue=Se();R.selection&&ue.splice(0,0,ye());var ge=m.rowActions(D);if(ge.length>0){if(R.actionsColumnIndex===-1)ue.push(ce(ge));else if(R.actionsColumnIndex>=0){var be=0;R.selection&&(be=1),ue.splice(R.actionsColumnIndex+be,0,ce(ge))}}return D.detailPanel&&(R.detailPanelColumnAlignment==="right"?ue.push(ne()):ue.splice(0,0,ne())),D.isTreeData&&ue.splice(0,0,de()),D.columns.filter(function(we){return we.tableData.groupOrder>-1}).forEach(function(we){ue.splice(0,0,d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-group-cell"+we.tableData.id}))}),d.default.createElement(d.default.Fragment,null,d.default.createElement(c.default,(0,l.default)({ref:P,selected:W},X,{onClick:function(ke){ee&&ke.persist(),!W&&Te(ke)},hover:!!(Q||Y),style:xe(D.index,D.level),"data-testid":"mtablebodyrow"}),ue),d.default.createElement(p.MTableDetailPanel,{options:R,data:D.data,detailPanel:D.detailPanel,renderColumns:ue,size:Oe}),D.data.tableData.childRows&&D.data.tableData.isTreeExpanded&&D.data.tableData.childRows.map(function(we,ke){return we.tableData.editing?d.default.createElement(D.components.EditRow,{columns:re,components:D.components,data:we,icons:F,localization:O,getFieldValue:D.getFieldValue,key:ke,mode:we.tableData.editing,isTreeData:D.isTreeData,detailPanel:D.detailPanel,onEditingCanceled:N,onEditingApproved:E,errorState:D.errorState}):d.default.createElement(D.components.Row,(0,l.default)({},D,{data:we,index:ke,key:ke,level:D.level+1,path:[].concat((0,i.default)(D.path),[we.tableData.uuid]),onEditingCanceled:N,onEditingApproved:E,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:G,errorState:D.errorState,cellEditable:H,onCellEditStarted:V,onCellEditFinished:te}))}))}M.defaultProps={actions:[],index:0,data:{},path:[],persistEvents:!1},M.propTypes={forwardedRef:h.default.element,actions:h.default.array,index:h.default.number.isRequired,data:h.default.object.isRequired,detailPanel:h.default.oneOfType([h.default.func,h.default.arrayOf(h.default.oneOfType([h.default.object,h.default.func]))]),hasAnyEditingRow:h.default.bool,onRowSelected:h.default.func,path:h.default.arrayOf(h.default.oneOfType([h.default.string,h.default.number])),persistEvents:h.default.bool,treeDataMaxLevel:h.default.number,getFieldValue:h.default.func.isRequired,columns:h.default.array,onToggleDetailPanel:h.default.func.isRequired,onRowClick:h.default.func,onRowDoubleClick:h.default.func,onEditingApproved:h.default.func,onEditingCanceled:h.default.func,errorState:h.default.oneOfType([h.default.object,h.default.bool])};var S=d.default.forwardRef(function(P,D){return d.default.createElement(M,(0,l.default)({},P,{forwardedRef:D}))});e.default=S}(am)),am}var im={},zi={};const Fz=qn(pF);var C_;function Nz(){if(C_)return zi;C_=1;var e=vn;Object.defineProperty(zi,"__esModule",{value:!0}),zi.getCurrencyValue=o,zi.getEmptyValue=c,zi.getRenderValue=a,zi.isoDateRegex=void 0;var t=e($e),r=e(Fz),i=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;zi.isoDateRegex=i;function c(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="function"?l.columnDef.emptyValue(l.rowData):n}function o(n,l){return n!==void 0?new Intl.NumberFormat(n.locale!==void 0?n.locale:"en-US",{style:"currency",currency:n.currencyCode!==void 0?n.currencyCode:"USD",minimumFractionDigits:n.minimumFractionDigits!==void 0?n.minimumFractionDigits:2,maximumFractionDigits:n.maximumFractionDigits!==void 0?n.maximumFractionDigits:2}).format(l!==void 0?l:0):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(l!==void 0?l:0)}function a(n,l,f){var s=n.columnDef.dateSetting&&n.columnDef.dateSetting.locale?n.columnDef.dateSetting.locale:void 0;if(n.columnDef.emptyValue!==void 0&&(n.value===void 0||n.value===null))return c(n.columnDef.emptyValue,n);if(n.rowData===void 0&&n.value&&n.columnDef.groupRender)return n.columnDef.groupRender(n.value);if(n.columnDef.render&&n.rowData)return n.columnDef.render(n.rowData);if(n.columnDef.type==="boolean"){var u={textAlign:"left",verticalAlign:"middle",width:48};return n.value?t.default.createElement(l.Check,{style:u}):t.default.createElement(l.ThirdStateCheck,{style:u})}else{if(n.columnDef.type==="date")return n.value instanceof Date?n.value.toLocaleDateString(s):i.exec(n.value)?(0,r.default)(n.value).toLocaleDateString(s):n.value;if(n.columnDef.type==="time")return n.value instanceof Date?n.value.toLocaleTimeString():i.exec(n.value)?(0,r.default)(n.value).toLocaleTimeString(s):n.value;if(n.columnDef.type==="datetime")return n.value instanceof Date?n.value.toLocaleString():i.exec(n.value)?(0,r.default)(n.value).toLocaleString(s):n.value;if(n.columnDef.type==="currency")return o(n.columnDef.currencySetting,n.value);if(typeof n.value=="boolean")return n.value.toString()}return n.value}return zi}var qi={},O_;function qd(){if(O_)return qi;O_=1;var e=vn,t=Ur();Object.defineProperty(qi,"__esModule",{value:!0}),qi.getStyle=s,qi.setObjectByKey=qi.selectFromObject=void 0;var r=e(Jr()),i=o(Ri());function c(u){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(c=function(m){return m?h:d})(u)}function o(u,d){if(u&&u.__esModule)return u;if(u===null||t(u)!=="object"&&typeof u!="function")return{default:u};var h=c(d);if(h&&h.has(u))return h.get(u);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in u)if(y!=="default"&&Object.prototype.hasOwnProperty.call(u,y)){var v=m?Object.getOwnPropertyDescriptor(u,y):null;v&&(v.get||v.set)?Object.defineProperty(p,y,v):p[y]=u[y]}return p.default=u,h&&h.set(u,p),p}function a(u,d){var h=Object.keys(u);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(u);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(u,m).enumerable})),h.push.apply(h,p)}return h}function n(u){for(var d=1;d-1)}).sort(function(U,Q){return U.tableData.columnOrder-Q.tableData.columnOrder}).map(function(U,Q){var Y=T.getFieldValue(D.data,U,!1),Z=function(Se,Oe){var Me={color:"inherit"};return typeof Se.cellStyle=="function"?Me=_(_({},Me),Se.cellStyle(Oe,T.data)):Me=_(_({},Me),Se.cellStyle),Se.disableClick&&(Me.cursor="default"),_({},Me)};Q===0&&24+T.level*20;var X=!1;if(U.editable===void 0&&(X=!0),U.editable==="always"&&(X=!0),U.editable==="onAdd"&&T.mode==="add"&&(X=!0),U.editable==="onUpdate"&&T.mode==="update"&&(X=!0),typeof U.editable=="function"&&(X=U.editable(U,T.data)),!U.field||!X){var re=T.getFieldValue(D.data,U);return n.default.createElement(T.components.Cell,{size:V,icons:M,columnDef:U,value:re,key:U.tableData.id,rowData:T.data,style:Z(U,Y)})}else{var ie=U.editComponent,le=(0,c.default)(U,y),se=ie||T.components.EditField,pe=(0,m.validateInput)(U,D.data);return te===-1&&(te=Q),n.default.createElement(l.default,{size:V,key:U.tableData.id,align:["numeric"].indexOf(U.type)!==-1?"right":"left",style:Z(U,Y)},n.default.createElement(se,{key:U.tableData.id,columnDef:le,autoFocus:te===Q,value:Y,error:!pe.isValid,helperText:pe.helperText,locale:T.localization.dateTimePickerLocalization,rowData:D.data,onChange:function(Se){var Oe=_({},D.data);(0,d.setObjectByKey)(Oe,U.field,Se),O({data:Oe}),T.onBulkEditRowChanged&&T.onBulkEditRowChanged(T.data,Oe)},onRowDataChange:function(Se){O({data:Se}),T.onBulkEditRowChanged&&T.onBulkEditRowChanged(T.data,Se)}}))}});return ee}var F=T.columns.every(function(V){var te=(0,m.validateInput)(V,D.data);return te.isValid}),A=function(){F&&T.onEditingApproved(T.mode,D.data,T.data)};function z(){if(T.mode!=="bulk"){var V=p.elementSize(T),te=[{icon:M.Check,tooltip:T.localization.saveTooltip,disabled:!F,onClick:A},{icon:M.Clear,tooltip:T.localization.cancelTooltip,onClick:function(){T.onEditingCanceled(T.mode,T.data)}}];return n.default.createElement(l.default,{size:V,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},S.editCellStyle)},n.default.createElement(T.components.Actions,{data:T.data,actions:te,components:T.components,size:V}))}}function B(){var V={borderBottom:"1px solid red"};return V}var $=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?A():te.keyCode===27&&T.onEditingCanceled(T.mode,T.data)},j=p.elementSize(T),N;if(T.mode==="add"||T.mode==="update"||T.mode==="bulk")N=R();else{var E=T.columns.filter(function(V){return!V.hidden&&!(V.tableData.groupOrder>-1)}).length;N=[n.default.createElement(l.default,{size:j,padding:S.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:E},n.default.createElement(s.default,{variant:"h6"},T.localization.deleteText))]}if(S.selection&&N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-selection-cell"})),T.isTreeData&&N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-tree-data-cell"})),S.actionsColumnIndex===-1)N.push(z());else if(S.actionsColumnIndex>=0){var W=0;S.selection&&(W=1),T.isTreeData&&(W=1,S.selection&&N.splice(1,1)),N.splice(S.actionsColumnIndex+W,0,z())}if(T.detailPanel&&S.showDetailPanelIcon!==!1&&T.mode!=="bulk"){var G=S.detailPanelColumnAlignment,L=G==="left"?0:N.length;N.splice(L,0,n.default.createElement(l.default,{padding:"none",key:"key-detail-panel-cell"}))}T.columns.filter(function(V){return V.tableData.groupOrder>-1}).forEach(function(V){N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-group-cell"+V.tableData.id}))}),T.detailPanel,T.isTreeData,T.onRowClick,T.onRowSelected,T.onTreeExpandChanged,T.onToggleDetailPanel,T.onEditingApproved,T.onEditingCanceled,T.getFieldValue,T.components,T.columns,T.errorState,T.onBulkEditRowChanged,T.bulkEditChangedRows,T.scrollWidth;var q=T.forwardedRef,H=(0,c.default)(T,v);return n.default.createElement(f.default,(0,i.default)({onKeyDown:$},H,{ref:q,style:B()}),N)}w.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},w.propTypes={actions:u.default.array,index:u.default.number.isRequired,data:u.default.object,detailPanel:u.default.oneOfType([u.default.func,u.default.arrayOf(u.default.oneOfType([u.default.object,u.default.func]))]),onRowSelected:u.default.func,path:u.default.arrayOf(u.default.number),columns:u.default.array,onRowClick:u.default.func,onEditingApproved:u.default.func,onEditingCanceled:u.default.func,localization:u.default.object,getFieldValue:u.default.func,errorState:u.default.oneOfType([u.default.object,u.default.bool]),onBulkEditRowChanged:u.default.func};var k=n.default.forwardRef(function(M,S){return n.default.createElement(w,(0,i.default)({},M,{forwardedRef:S}))});e.default=k}(lm)),lm}var sm={},um={},uo={},E_;function Qy(){if(E_)return uo;E_=1;var e=vn;Object.defineProperty(uo,"__esModule",{value:!0}),uo.getLocalizedFilterPlaceHolder=uo.getLocalizationData=void 0;var t=e(Jr()),r=G4();function i(n,l){var f=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);l&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),f.push.apply(f,s)}return f}function c(n){for(var l=1;l-1}),u.default.createElement(n.default,{primary:_.lookup[D]}))})))}var b=u.default.forwardRef(function(_,w){return u.default.createElement(g,(0,i.default)({},_,{forwardedRef:w}))});e.default=b}(cm)),cm}var fm={};const Y4=qn(z9);var I_;function Hz(){return I_||(I_=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Rd),c=t(Y4),o=t(qo),a=t($e),n=Qy();function l(s){var u,d,h=s.columnDef,p=s.icons,m=s.localization,y=s.hideFilterIcons,v=s.onFilterChanged,g=s.forwardedRef,b=(0,n.getLocalizationData)(m),x=p.Filter;return a.default.createElement(i.default,{ref:g,style:h.type==="numeric"?{float:(u=h.align)!==null&&u!==void 0?u:"right"}:{float:(d=h.align)!==null&&d!==void 0?d:"left"},type:h.type==="numeric"?"number":"search",value:h.tableData.filterValue||"",placeholder:(0,n.getLocalizedFilterPlaceHolder)(h,m),onChange:function(w){v(h.tableData.id,w.target.value)},inputProps:{"aria-label":"filter data by ".concat(h.title)},InputProps:y||h.hideFilterIcon?void 0:{startAdornment:a.default.createElement(c.default,{position:"start"},a.default.createElement(o.default,{title:b.filterTooltip},a.default.createElement(x,null)))}})}var f=a.default.forwardRef(function(u,d){return a.default.createElement(l,(0,r.default)({},u,{forwardedRef:d}))});e.default=f}(fm)),fm}var dm={},F_;function Vz(){return F_||(F_=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(zo),c=t($e);function o(n){var l=n.forwardedRef,f=n.columnDef,s=n.onFilterChanged;return c.default.createElement(i.default,{ref:l,inputProps:{"aria-label":"Filter of ".concat(f.title)},indeterminate:f.tableData.filterValue===void 0,checked:f.tableData.filterValue==="checked",onChange:function(){var d;f.tableData.filterValue===void 0?d="checked":f.tableData.filterValue==="checked"&&(d="unchecked"),s(f.tableData.id,d)}})}var a=c.default.forwardRef(function(l,f){return c.default.createElement(o,(0,r.default)({},l,{forwardedRef:f}))});e.default=a}(dm)),dm}var hm={},N_;function Yz(){return N_||(N_=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),c=a($e);function o(f){if(typeof WeakMap!="function")return null;var s=new WeakMap,u=new WeakMap;return(o=function(h){return h?u:s})(f)}function a(f,s){if(f&&f.__esModule)return f;if(f===null||r(f)!=="object"&&typeof f!="function")return{default:f};var u=o(s);if(u&&u.has(f))return u.get(f);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in f)if(p!=="default"&&Object.prototype.hasOwnProperty.call(f,p)){var m=h?Object.getOwnPropertyDescriptor(f,p):null;m&&(m.get||m.set)?Object.defineProperty(d,p,m):d[p]=f[p]}return d.default=f,u&&u.set(f,d),d}function n(f){var s=f.columnDef,u=f.onFilterChanged,d=f.forwardedRef;return(0,c.createElement)(s.filterComponent,{columnDef:s,onFilterChanged:u,forwardedRef:d})}var l=c.default.forwardRef(function(s,u){return c.default.createElement(n,(0,i.default)({},s,{forwardedRef:u}))});e.default=l}(hm)),hm}var j_;function G4(){return j_||(j_=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=y,e.default=void 0;var r=t(Ai),i=t(gi),c=t(Jr()),o=t(hr()),a=t($e),n=t(Or),l=t(zz()),f=t(Uz()),s=t(Hz()),u=t(Vz()),d=t(Yz()),h=Ju();function p(g,b){var x=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);b&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(g,w).enumerable})),x.push.apply(x,_)}return x}function m(g){for(var b=1;b-1)}).sort(function(T,M){return T.tableData.columnOrder-M.tableData.columnOrder}).map(function(T){return a.default.createElement(i.default,{key:T.tableData.id,style:m(m({},b.filterCellStyle),T.filterCellStyle)},x(T))});if(b.selection&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-selection-column"})),g.hasActions)if(b.actionsColumnIndex===-1)_.push(a.default.createElement(i.default,{key:"key-action-column"}));else{var w=0;g.selection&&(w=1),_.splice(b.actionsColumnIndex+w,0,a.default.createElement(i.default,{key:"key-action-column"}))}if(g.hasDetailPanel&&b.showDetailPanelIcon){var k=b.detailPanelColumnAlignment==="left"?0:_.length;_.splice(k,0,a.default.createElement(i.default,{padding:"none",key:"key-detail-panel-column"}))}return g.isTreeData>0&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-tree-data-filter"})),g.columns.filter(function(T){return T.tableData.groupOrder>-1}).forEach(function(T){_.splice(0,0,a.default.createElement(i.default,{padding:"checkbox",key:"key-group-filter"+T.tableData.id}))}),a.default.createElement(r.default,{id:"m--table--filter--row",ref:g.forwardedRef,style:m({height:10},b.filterRowStyle)},_)}y.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},y.propTypes={columns:n.default.array.isRequired,hasDetailPanel:n.default.bool.isRequired,isTreeData:n.default.bool.isRequired,onFilterChanged:n.default.func.isRequired,hasActions:n.default.bool,localization:n.default.object};var v=a.default.forwardRef(function(b,x){return a.default.createElement(y,(0,o.default)({},b,{forwardedRef:x}))});e.default=v}(sm)),sm}var pm={};const X4=qn(q9),Gz=qn(W9);function $_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),r.push.apply(r,i)}return r}function B_(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ka(1));return r(Z4)(e,t)}if(typeof e!="function")throw new Error(ka(2));var c=e,o=t,a=[],n=a,l=!1;function f(){n===a&&(n=a.slice())}function s(){if(l)throw new Error(ka(3));return o}function u(m){if(typeof m!="function")throw new Error(ka(4));if(l)throw new Error(ka(5));var y=!0;return f(),n.push(m),function(){if(y){if(l)throw new Error(ka(6));y=!1,f();var g=n.indexOf(m);n.splice(g,1),a=null}}}function d(m){if(!Xz(m))throw new Error(ka(7));if(typeof m.type>"u")throw new Error(ka(8));if(l)throw new Error(ka(9));try{l=!0,o=c(o,m)}finally{l=!1}for(var y=a=n,v=0;vJ4=e,Qz=()=>J4,H_=Symbol.for("react-redux-context"),V_=typeof globalThis<"u"?globalThis:{};function eq(){var e;if(!$e.createContext)return{};const t=(e=V_[H_])!=null?e:V_[H_]=new Map;let r=t.get($e.createContext);return r||(r=$e.createContext(null),t.set($e.createContext,r)),r}const Q4=eq(),tq=()=>{throw new Error("uSES not initialized!")},nq=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function rq(e,t,r,i,{areStatesEqual:c,areOwnPropsEqual:o,areStatePropsEqual:a}){let n=!1,l,f,s,u,d;function h(g,b){return l=g,f=b,s=e(l,f),u=t(i,f),d=r(s,u,f),n=!0,d}function p(){return s=e(l,f),t.dependsOnOwnProps&&(u=t(i,f)),d=r(s,u,f),d}function m(){return e.dependsOnOwnProps&&(s=e(l,f)),t.dependsOnOwnProps&&(u=t(i,f)),d=r(s,u,f),d}function y(){const g=e(l,f),b=!a(g,s);return s=g,b&&(d=r(s,u,f)),d}function v(g,b){const x=!o(b,f),_=!c(g,l,b,f);return l=g,f=b,x&&_?p():x?m():_?y():d}return function(b,x){return n?v(b,x):h(b,x)}}function aq(e,t){let{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:c}=t,o=Vn(t,nq);const a=r(e,o),n=i(e,o),l=c(e,o);return rq(a,n,l,e,o)}function iq(e,t){const r={};for(const i in e){const c=e[i];typeof c=="function"&&(r[i]=(...o)=>t(c(...o)))}return r}function F0(e){return function(r){const i=e(r);function c(){return i}return c.dependsOnOwnProps=!1,c}}function Y_(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function eC(e,t){return function(i,{displayName:c}){const o=function(n,l){return o.dependsOnOwnProps?o.mapToProps(n,l):o.mapToProps(n,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(n,l){o.mapToProps=e,o.dependsOnOwnProps=Y_(e);let f=o(n,l);return typeof f=="function"&&(o.mapToProps=f,o.dependsOnOwnProps=Y_(f),f=o(n,l)),f},o}}function e1(e,t){return(r,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}function oq(e){return e&&typeof e=="object"?F0(t=>iq(e,t)):e?typeof e=="function"?eC(e):e1(e,"mapDispatchToProps"):F0(t=>({dispatch:t}))}function lq(e){return e?typeof e=="function"?eC(e):e1(e,"mapStateToProps"):F0(()=>({}))}function sq(e,t,r){return Gt({},r,e,t)}function uq(e){return function(r,{displayName:i,areMergedPropsEqual:c}){let o=!1,a;return function(l,f,s){const u=e(l,f,s);return o?c(u,a)||(a=u):(o=!0,a=u),a}}}function cq(e){return e?typeof e=="function"?uq(e):e1(e,"mergeProps"):()=>sq}function fq(){const e=Qz();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){let i=[],c=t;for(;c;)i.push(c),c=c.next;return i},subscribe(i){let c=!0,o=r={callback:i,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!c||t===null||(c=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const G_={notify(){},get:()=>[]};function tC(e,t){let r,i=G_,c=0,o=!1;function a(m){s();const y=i.subscribe(m);let v=!1;return()=>{v||(v=!0,y(),u())}}function n(){i.notify()}function l(){p.onStateChange&&p.onStateChange()}function f(){return o}function s(){c++,r||(r=t?t.addNestedSub(l):e.subscribe(l),i=fq())}function u(){c--,r&&c===0&&(r(),r=void 0,i.clear(),i=G_)}function d(){o||(o=!0,s())}function h(){o&&(o=!1,u())}const p={addNestedSub:a,notifyNestedSubs:n,handleChangeWrapper:l,isSubscribed:f,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>i};return p}const dq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ff=dq?$e.useLayoutEffect:$e.useEffect;function X_(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function mm(e,t){if(X_(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let c=0;c{nC=e},gq=[null,null];function mq(e,t,r){Ff(()=>e(...t),r)}function vq(e,t,r,i,c,o){e.current=i,r.current=!1,c.current&&(c.current=null,o())}function yq(e,t,r,i,c,o,a,n,l,f,s){if(!e)return()=>{};let u=!1,d=null;const h=()=>{if(u||!n.current)return;const m=t.getState();let y,v;try{y=i(m,c.current)}catch(g){v=g,d=g}v||(d=null),y===o.current?a.current||f():(o.current=y,l.current=y,a.current=!0,s())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(u=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function bq(e,t){return e===t}function rC(e,t,r,{pure:i,areStatesEqual:c=bq,areOwnPropsEqual:o=mm,areStatePropsEqual:a=mm,areMergedPropsEqual:n=mm,forwardRef:l=!1,context:f=Q4}={}){const s=f,u=lq(e),d=oq(t),h=cq(r),p=!!e;return y=>{const v=y.displayName||y.name||"Component",g=`Connect(${v})`,b={shouldHandleStateChanges:p,displayName:g,wrappedComponentName:v,WrappedComponent:y,initMapStateToProps:u,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:c,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:n};function x(k){const[T,M,S]=$e.useMemo(()=>{const{reactReduxForwardedRef:U}=k,Q=Vn(k,hq);return[k.context,U,Q]},[k]),C=$e.useMemo(()=>T&&T.Consumer&&U9.isContextConsumer($e.createElement(T.Consumer,null))?T:s,[T,s]),P=$e.useContext(C),D=!!k.store&&!!k.store.getState&&!!k.store.dispatch,O=!!P&&!!P.store,R=D?k.store:P.store,F=O?P.getServerState:R.getState,A=$e.useMemo(()=>aq(R.dispatch,b),[R]),[z,B]=$e.useMemo(()=>{if(!p)return gq;const U=tC(R,D?void 0:P.subscription),Q=U.notifyNestedSubs.bind(U);return[U,Q]},[R,D,P]),$=$e.useMemo(()=>D?P:Gt({},P,{subscription:z}),[D,P,z]),j=$e.useRef(),N=$e.useRef(S),E=$e.useRef(),W=$e.useRef(!1);$e.useRef(!1);const G=$e.useRef(!1),L=$e.useRef();Ff(()=>(G.current=!0,()=>{G.current=!1}),[]);const q=$e.useMemo(()=>()=>E.current&&S===N.current?E.current:A(R.getState(),S),[R,S]),H=$e.useMemo(()=>Q=>z?yq(p,R,z,A,N,j,W,G,E,B,Q):()=>{},[z]);mq(vq,[N,j,W,S,E,B]);let V;try{V=nC(H,q,F?()=>A(F(),S):q)}catch(U){throw L.current&&(U.message+=` + */const vz=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:_4,CalendarPickerSkeleton:Zj,ClockPicker:A4,DEFAULT_LOCALE:n4,DatePicker:bB,DateTimePicker:GB,DateTimePickerTabs:Bd,DesktopDatePicker:I4,DesktopDateTimePicker:j4,DesktopTimePicker:B4,LocalizationProvider:xN,MobileDatePicker:F4,MobileDateTimePicker:$4,MobileTimePicker:z4,MonthPicker:a4,MuiPickersAdapterContext:Sy,PickerStaticWrapper:zd,PickersDay:c4,StaticDatePicker:cz,StaticDateTimePicker:dz,StaticTimePicker:pz,TimePicker:mz,YearPicker:x4,beBY:mN,calendarPickerClasses:jj,calendarPickerSkeletonClasses:Uj,clockClasses:c$,clockNumberClasses:yu,clockPickerClasses:M$,clockPointerClasses:r$,csCZ:zF,datePickerToolbarClasses:N$,dateTimePickerTabsClasses:BB,dateTimePickerToolbarClasses:AB,dayPickerClasses:VN,deDE:PF,enUS:YF,esES:RF,faIR:IF,fiFI:jF,frFR:UF,getCalendarPickerSkeletonUtilityClass:T4,getCalendarPickerUtilityClass:w4,getClockPickerUtilityClass:O4,getMonthPickerUtilityClass:r4,getPickersDayUtilityClass:l4,getYearPickerUtilityClass:b4,huHU:VF,isIS:sN,itIT:eN,jaJP:cN,koKR:oN,monthPickerClasses:wN,nbNO:XF,nlNL:_F,pickersCalendarHeaderClasses:yj,pickersDayClasses:vu,pickersFadeTransitionGroupClasses:PN,pickersMonthClasses:E0,pickersSlideTransitionClasses:ua,pickersYearClasses:wo,plPL:kF,ptBR:SF,ruRU:bN,svSE:KF,timePickerToolbarClasses:gl,trTR:OF,ukUA:dN,urPK:pN,yearPickerClasses:Rj,zhCN:rN},Symbol.toStringTag,{value:"Module"})),q4=qn(vz);var d_;function yz(){return d_||(d_=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(jl()),u=t(Dd()),o=t(Ed()),a=t(yy()),n=t(xy()),l=t(wy()),f=t($e),s=t(Rd),c=t(zo),d=t(AS),h=t(_y),p=t(PS),m=t(sR),y=t(uR),v=t(cR),g=KS,b=q4,x=t(Or),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],w=["helperText","error"],k=["helperText","error"];function T(P){var D=M();return function(){var R=(0,l.default)(P),F;if(D){var A=(0,l.default)(this).constructor;F=Reflect.construct(R,arguments,A)}else F=R.apply(this,arguments);return(0,n.default)(this,F)}}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var S=function(P){(0,a.default)(O,P);var D=T(O);function O(){return(0,u.default)(this,O),D.apply(this,arguments)}return(0,o.default)(O,[{key:"getProps",value:function(){var F=this.props;F.columnDef,F.rowData,F.onRowDataChange,F.errorState,F.autoFocus,F.onBulkEditRowChanged,F.scrollWidth;var A=(0,i.default)(F,_);return A}},{key:"renderLookupField",value:function(){var F=this,A=this.getProps(),z=A.helperText,B=A.error,$=(0,i.default)(A,w);return f.default.createElement(p.default,{error:!!B},f.default.createElement(d.default,(0,r.default)({},$,{value:this.props.value===void 0?"":this.props.value,onChange:function(N){return F.props.onChange(N.target.value)},style:{fontSize:13},inputProps:{autoFocus:this.props.autoFocus},SelectDisplayProps:{"aria-label":this.props.columnDef.title}}),Object.keys(this.props.columnDef.lookup).map(function(j){return f.default.createElement(h.default,{key:j,value:j},F.props.columnDef.lookup[j])})),!!z&&f.default.createElement(m.default,null,z))}},{key:"renderBooleanField",value:function(){var F=this,A=this.getProps(),z=A.helperText,B=A.error,$=(0,i.default)(A,k);return f.default.createElement(p.default,{error:!!B,component:"fieldset"},f.default.createElement(y.default,null,f.default.createElement(v.default,{label:"",control:f.default.createElement(c.default,(0,r.default)({},$,{value:String(this.props.value),checked:!!this.props.value,onChange:function(N){return F.props.onChange(N.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),f.default.createElement(m.default,null,z))}},{key:"renderDateField",value:function(){var F=this.props.columnDef.dateSetting&&this.props.columnDef.dateSetting.format?this.props.columnDef.dateSetting.format:"dd.MM.yyyy";return f.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.DatePicker,(0,r.default)({},this.getProps(),{renderInput:function(z){return f.default.createElement(s.default,z)},format:F,value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTimeField",value:function(){return f.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.TimePicker,(0,r.default)({},this.getProps(),{renderInput:function(A){return f.default.createElement(s.default,A)},format:"HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderDateTimeField",value:function(){return f.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.DateTimePicker,(0,r.default)({},this.getProps(),{renderInput:function(A){return f.default.createElement(s.default,A)},format:"dd.MM.yyyy HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTextField",value:function(){var F=this;return f.default.createElement(s.default,(0,r.default)({},this.getProps(),{variant:"standard",fullWidth:!0,type:this.props.columnDef.type==="numeric"?"number":"text",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,value:this.props.value===void 0?"":this.props.value,onChange:function(z){return F.props.onChange(F.props.columnDef.type==="numeric"?z.target.valueAsNumber:z.target.value)},InputProps:{style:{minWidth:50,fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:this.props.columnDef.type==="numeric"?{textAlign:"right"}:{}}}))}},{key:"renderCurrencyField",value:function(){var F=this;return f.default.createElement(s.default,(0,r.default)({},this.getProps(),{variant:"standard",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,type:"number",value:this.props.value===void 0?"":this.props.value,onChange:function(z){var B=z.target.valueAsNumber;return!B&&B!==0&&(B=void 0),F.props.onChange(B)},InputProps:{style:{fontSize:13,textAlign:"right"}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:{textAlign:"right"}},onKeyDown:this.props.onKeyDown}))}},{key:"render",value:function(){var F="ok";return this.props.columnDef.editComponent?F=this.props.columnDef.editComponent(this.props):this.props.columnDef.lookup?F=this.renderLookupField():this.props.columnDef.type==="boolean"?F=this.renderBooleanField():this.props.columnDef.type==="date"?F=this.renderDateField():this.props.columnDef.type==="time"?F=this.renderTimeField():this.props.columnDef.type==="datetime"?F=this.renderDateTimeField():this.props.columnDef.type==="currency"?F=this.renderCurrencyField():F=this.renderTextField(),F}}]),O}(f.default.Component);S.propTypes={value:x.default.any,onChange:x.default.func.isRequired,columnDef:x.default.object.isRequired,locale:x.default.object,rowData:x.default.object,onRowDataChange:x.default.func,errorState:x.default.func,autoFocus:x.default.bool,onBulkEditRowChanged:x.default.func,scrollWidth:x.default.number,onKeyDown:x.default.func};var C=S;e.default=C}(Fg)),Fg}var Kg={},Wc={},h_;function W4(){if(h_)return Wc;h_=1;var e=vn;Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.validateInput=o;var t=e(Jr()),r=e(Ur());function i(a,n){var l=Object.keys(a);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);n&&(f=f.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),l.push.apply(l,f)}return l}function u(a){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var g=function(x){(0,o.default)(w,x);var _=y(w);function w(k){var T;return(0,r.default)(this,w),T=_.call(this,k),(0,l.default)((0,u.default)(T),"getStyle",function(){var M={boxShadow:"2px 0px 15px rgba(125,147,178,.25)",color:"inherit",width:T.props.columnDef.tableData.width,boxSizing:"border-box",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",padding:"0 16px"};return typeof T.props.columnDef.cellStyle=="function"?M=m(m({},M),T.props.columnDef.cellStyle(T.state.value,T.props.rowData)):M=m(m({},M),T.props.columnDef.cellStyle),typeof T.props.cellEditable.cellStyle=="function"?M=m(m({},M),T.props.cellEditable.cellStyle(T.state.value,T.props.rowData,T.props.columnDef)):M=m(m({},M),T.props.cellEditable.cellStyle),M}),(0,l.default)((0,u.default)(T),"handleKeyDown",function(M){M.keyCode===13?T.onApprove():M.keyCode===27&&T.onCancel()}),(0,l.default)((0,u.default)(T),"onApprove",function(){var M=(0,h.validateInput)(T.props.columnDef,T.state.value).isValid;M&&T.setState({isLoading:!0},function(){T.props.cellEditable.onCellEditApproved(T.state.value,T.props.getFieldValue(T.props.rowData,T.props.columnDef),T.props.rowData,T.props.columnDef).then(function(){T.setState({isLoading:!1}),T.props.onCellEditFinished(T.props.rowData,T.props.columnDef)}).catch(function(S){T.setState({isLoading:!1})})})}),(0,l.default)((0,u.default)(T),"onCancel",function(){T.props.onCellEditFinished(T.props.rowData,T.props.columnDef)}),T.state={errorState:{isValid:!0,helperText:""},isLoading:!1,value:k.getFieldValue(T.props.rowData,T.props.columnDef,!1)},T}return(0,i.default)(w,[{key:"renderActions",value:function(){if(this.state.isLoading)return f.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},f.default.createElement(d.default,{size:20}));var T=[{icon:this.props.icons.Check,tooltip:this.props.localization.saveTooltip,onClick:this.onApprove,disabled:this.state.isLoading||!this.state.errorState.isValid},{icon:this.props.icons.Clear,tooltip:this.props.localization.cancelTooltip,onClick:this.onCancel,disabled:this.state.isLoading}];return f.default.createElement(this.props.components.Actions,{actions:T,components:this.props.components,size:"small"})}},{key:"handleChange",value:function(T){var M=(0,h.validateInput)(this.props.columnDef,T);this.setState({errorState:M,value:T})}},{key:"render",value:function(){var T=this;return f.default.createElement(c.default,{size:this.props.size,style:this.getStyle(),padding:"none"},f.default.createElement("div",{style:{display:"flex",alignItems:"center"}},f.default.createElement("div",{style:{flex:1,marginRight:4}},f.default.createElement(this.props.components.EditField,{columnDef:this.props.columnDef,value:this.state.value,error:!this.state.errorState.isValid,helperText:this.state.errorState.helperText,onChange:function(S){return T.handleChange(S)},onKeyDown:this.handleKeyDown,disabled:this.state.isLoading,rowData:this.props.rowData,autoFocus:!0})),this.renderActions()))}}]),w}(f.default.Component);g.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},g.propTypes={cellEditable:s.default.object.isRequired,columnDef:s.default.object.isRequired,components:s.default.object.isRequired,errorState:s.default.oneOfType([s.default.object,s.default.bool]),icons:s.default.object.isRequired,localization:s.default.object.isRequired,onCellEditFinished:s.default.func.isRequired,rowData:s.default.object.isRequired,size:s.default.string,getFieldValue:s.default.func.isRequired};var b=g;e.default=b}(Kg)),Kg}var Jg={},Qg={exports:{}},em={exports:{}},g_;function xz(){return g_||(g_=1,function(e){function t(r){if(Array.isArray(r))return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(em)),em.exports}var tm={exports:{}},m_;function wz(){return m_||(m_=1,function(e){function t(r,i){var u=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(u!=null){var o,a,n,l,f=[],s=!0,c=!1;try{if(n=(u=u.call(r)).next,i===0){if(Object(u)!==u)return;s=!1}else for(;!(s=(o=n.call(u)).done)&&(f.push(o.value),f.length!==i);s=!0);}catch(d){c=!0,a=d}finally{try{if(!s&&u.return!=null&&(l=u.return(),Object(l)!==l))return}finally{if(c)throw a}}return f}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(tm)),tm.exports}var nm={exports:{}},v_;function _z(){return v_||(v_=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(nm)),nm.exports}var y_;function ao(){return y_||(y_=1,function(e){var t=xz(),r=wz(),i=CS(),u=_z();function o(a,n){return t(a)||r(a,n)||i(a,n)||u()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(Qg)),Qg.exports}const Bl=qn(D9),qo=qn(E9);var b_;function Tz(){return b_||(b_=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Jr()),u=t(Ur()),o=t(ao()),a=t($e),n=t(Or),l=t(vy),f=t(Bl),s=t(qo);function c(m,y){var v=Object.keys(m);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(m);y&&(g=g.filter(function(b){return Object.getOwnPropertyDescriptor(m,b).enumerable})),v.push.apply(v,g)}return v}function d(m){for(var y=1;y0&&o.default.createElement(i.default,{colSpan:n.options.detailPanelOffset.left}),o.default.createElement(i.default,{size:n.size,colSpan:n.renderColumns.length-n.options.detailPanelOffset.left-n.options.detailPanelOffset.right,padding:"none"},o.default.createElement(r.default,{in:c,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){y.current=void 0,m()}},g({rowData:n.data}))))}return Uc}var Kr={},__;function Ri(){if(__)return Kr;__=1;var e=vn;Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.widthToNumber=Kr.selectionMaxWidth=Kr.rowActions=Kr.reducePercentsInCalc=Kr.parseFirstLastPageButtons=Kr.elementSize=Kr.baseIconSize=Kr.actionsColumnWidth=void 0;var t=e(Jr()),r=e(Ur());function i(h,p){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);p&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable})),m.push.apply(m,y)}return m}function u(h){for(var p=1;p1){var v=y[1];return p.replace(/\d*%/,"".concat(m*(v/100),"px"))}return p.replace(/\d*%/,"".concat(m,"px"))};Kr.reducePercentsInCalc=s;var c=function(p){return typeof p=="number"?p:!p||!p.match(/^\s*\d+(px)?\s*$/)?NaN:Number(p.replace(/px$/,""))};Kr.widthToNumber=c;var d=function(p,m){var y={first:!0,last:!0};return typeof p=="boolean"?y={first:p,last:p}:(0,r.default)(p)==="object"&&(y=u(u({},y),p)),m&&(y={first:y.last,last:y.first}),y};return Kr.parseFirstLastPageButtons=d,Kr}var Hc={},T_;function Cz(){if(T_)return Hc;T_=1;var e=vn;Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.useDoubleClick=r;var t=e($e);function r(i,u){var o=t.default.useRef(0),a=t.default.useRef(null),n=t.default.useRef(null),l=t.default.useRef(null);t.default.useEffect(function(){n.current=u,l.current=i});var f=function(){clearTimeout(a.current),a.current=null,o.current=0},s=t.default.useCallback(function(c){var d=o.current+1===2,h=a.current;if(h&&d&&(f(),n.current&&n.current(c)),!h){o.current=o.current+1;var p=function(){f(),l.current&&l.current(c)};if(n.current){var m=setTimeout(p,250);a.current=m}else p()}},[]);return s}return Hc}var k_;function Oz(){return k_||(k_=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t($l()),u=t(Ai),o=t(qo),a=t(Bl),n=t(zo),l=t(hr()),f=t(gi),s=t(Jr()),c=t(jl()),d=t($e),h=t(Or),p=Sz(),m=w(Ri()),y=Cz(),v=Kd(),g=Qa(),b=["forwardedRef"],x=["data","components","detailPanel","getFieldValue","isTreeData","onRowSelected","onRowEditStarted","onTreeExpandChanged","onToggleDetailPanel","onEditingCanceled","onEditingApproved","hasAnyEditingRow","treeDataMaxLevel","path","actions","errorState","cellEditable","onCellEditStarted","onCellEditFinished","persistEvents","scrollWidth","onRowClick","onRowDoubleClick","columns"];function _(C){if(typeof WeakMap!="function")return null;var P=new WeakMap,D=new WeakMap;return(_=function(R){return R?D:P})(C)}function w(C,P){if(C&&C.__esModule)return C;if(C===null||r(C)!=="object"&&typeof C!="function")return{default:C};var D=_(P);if(D&&D.has(C))return D.get(C);var O={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in C)if(F!=="default"&&Object.prototype.hasOwnProperty.call(C,F)){var A=R?Object.getOwnPropertyDescriptor(C,F):null;A&&(A.get||A.set)?Object.defineProperty(O,F,A):O[F]=C[F]}return O.default=C,D&&D.set(C,O),O}function k(C,P){var D=Object.keys(C);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(C);P&&(O=O.filter(function(R){return Object.getOwnPropertyDescriptor(C,R).enumerable})),D.push.apply(D,O)}return D}function T(C){for(var P=1;P-1)}).sort(function(Ae,Ee){return Ae.tableData.columnOrder-Ee.tableData.columnOrder}).map(function(Ae){var Ee=D.getFieldValue(D.data,Ae);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Ie){return Ie.tableData.id===Ae.tableData.id}))return d.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:F,localization:O,columnDef:Ae,size:Oe,key:"cell-"+D.data.tableData.id+"-"+Ae.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:U});var De=Ae.editable!=="never"&&!!D.cellEditable;De&&D.cellEditable.isCellEditable&&(De=D.cellEditable.isCellEditable(D.data,Ae));var Re="cell-".concat(D.data.tableData.id,"-").concat(Ae.tableData.id);return d.default.createElement(D.components.Cell,{size:Oe,errorState:D.errorState,columnDef:T({cellStyle:R.cellStyle},Ae),value:Ee,key:Re,rowData:D.data,cellEditable:De,onCellEditStarted:D.onCellEditStarted,scrollWidth:U})});return ke},Oe=m.elementSize(A),Me=q.length*m.baseIconSize(A),ce=function(ke){return d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-actions-column",style:T({width:Me,padding:"0px 5px",boxSizing:"border-box"},R.actionsCellStyle)},d.default.createElement(D.components.Actions,{data:D.data,actions:ke,components:D.components,size:Oe,disabled:D.hasAnyEditingRow}))},ye=function(){var ke=R.selectionProps||{};typeof ke=="function"&&(ke=ke(D.data));var Ae=m.selectionMaxWidth(A,D.treeDataMaxLevel)||0,Ee=Oe!=="medium"?{padding:"4px"}:void 0;return d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-selection-column",style:{width:Ae}},d.default.createElement(n.default,(0,l.default)({size:Oe,checked:D.data.tableData.checked===!0,onClick:function(Re){return Re.stopPropagation()},value:D.data.tableData.id.toString(),onChange:function(Re){D.onRowSelected(Re,D.path,D.data)},style:Ee},ke)))},J=function(ke){return{transform:ke?"rotate(90deg)":"none"}},ne=function(){return R.showDetailPanelIcon?typeof D.detailPanel=="function"?d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-detail-panel-column",style:T({width:42,textAlign:"center"},R.detailPanelColumnStyle)},d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:T({transition:"all ease 200ms"},J(D.data.tableData.showDetailPanel)),onClick:function(Ae){D.onToggleDetailPanel(D.path,D.detailPanel),Ae.stopPropagation()}},d.default.createElement(F.DetailPanel,null))):d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-detail-panel-column"},d.default.createElement("div",{style:T({width:42*D.detailPanel.length,textAlign:"center",display:"flex"},R.detailPanelColumnStyle)},D.detailPanel.map(function(ke,Ae){typeof ke=="function"&&(ke=ke(D.data));var Ee=(D.data.tableData.showDetailPanel||"").toString()===ke.render.toString(),De=d.default.createElement(F.DetailPanel,null),Re=!0;return Ee?ke.openIcon?(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.openIcon,iconProps:ke.iconProps}),Re=!1):ke.icon&&(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.icon,iconProps:ke.iconProps})):ke.icon&&(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.icon,iconProps:ke.iconProps}),Re=!1),De=d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,key:"key-detail-panel-"+Ae,style:T({transition:"all ease 200ms"},J(Re&&Ee)),disabled:ke.disabled,onClick:function(Be){D.onToggleDetailPanel(D.path,ke.render),Be.stopPropagation()}},De),ke.tooltip&&(De=d.default.createElement(o.default,{key:"key-detail-panel-"+Ae,title:ke.tooltip},De)),De}))):null},de=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-tree-data-column",style:{width:48+9*(D.treeDataMaxLevel-2)}},d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:T({transition:"all ease 200ms",marginLeft:D.level*9},J(D.data.tableData.isTreeExpanded)),onClick:function(Ae){D.onTreeExpandChanged(D.path,D.data),Ae.stopPropagation()}},d.default.createElement(F.DetailPanel,null))):d.default.createElement(f.default,{padding:"none",key:"key-tree-data-column"})},xe=function(ke,Ae){var Ee={};return typeof R.rowStyle=="function"?Ee=T(T({},Ee),R.rowStyle(D.data,ke,Ae,D.hasAnyEditingRow)):R.rowStyle&&(Ee=T(T({},Ee),R.rowStyle)),(Q||Y)&&(Ee.cursor="pointer"),D.hasAnyEditingRow&&(Ee.opacity=Ee.opacity?Ee.opacity:.2),Ee},ue=Se();R.selection&&ue.splice(0,0,ye());var ge=m.rowActions(D);if(ge.length>0){if(R.actionsColumnIndex===-1)ue.push(ce(ge));else if(R.actionsColumnIndex>=0){var be=0;R.selection&&(be=1),ue.splice(R.actionsColumnIndex+be,0,ce(ge))}}return D.detailPanel&&(R.detailPanelColumnAlignment==="right"?ue.push(ne()):ue.splice(0,0,ne())),D.isTreeData&&ue.splice(0,0,de()),D.columns.filter(function(we){return we.tableData.groupOrder>-1}).forEach(function(we){ue.splice(0,0,d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-group-cell"+we.tableData.id}))}),d.default.createElement(d.default.Fragment,null,d.default.createElement(u.default,(0,l.default)({ref:P,selected:W},X,{onClick:function(ke){ee&&ke.persist(),!W&&Te(ke)},hover:!!(Q||Y),style:xe(D.index,D.level),"data-testid":"mtablebodyrow"}),ue),d.default.createElement(p.MTableDetailPanel,{options:R,data:D.data,detailPanel:D.detailPanel,renderColumns:ue,size:Oe}),D.data.tableData.childRows&&D.data.tableData.isTreeExpanded&&D.data.tableData.childRows.map(function(we,ke){return we.tableData.editing?d.default.createElement(D.components.EditRow,{columns:re,components:D.components,data:we,icons:F,localization:O,getFieldValue:D.getFieldValue,key:ke,mode:we.tableData.editing,isTreeData:D.isTreeData,detailPanel:D.detailPanel,onEditingCanceled:N,onEditingApproved:E,errorState:D.errorState}):d.default.createElement(D.components.Row,(0,l.default)({},D,{data:we,index:ke,key:ke,level:D.level+1,path:[].concat((0,i.default)(D.path),[we.tableData.uuid]),onEditingCanceled:N,onEditingApproved:E,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:G,errorState:D.errorState,cellEditable:H,onCellEditStarted:V,onCellEditFinished:te}))}))}M.defaultProps={actions:[],index:0,data:{},path:[],persistEvents:!1},M.propTypes={forwardedRef:h.default.element,actions:h.default.array,index:h.default.number.isRequired,data:h.default.object.isRequired,detailPanel:h.default.oneOfType([h.default.func,h.default.arrayOf(h.default.oneOfType([h.default.object,h.default.func]))]),hasAnyEditingRow:h.default.bool,onRowSelected:h.default.func,path:h.default.arrayOf(h.default.oneOfType([h.default.string,h.default.number])),persistEvents:h.default.bool,treeDataMaxLevel:h.default.number,getFieldValue:h.default.func.isRequired,columns:h.default.array,onToggleDetailPanel:h.default.func.isRequired,onRowClick:h.default.func,onRowDoubleClick:h.default.func,onEditingApproved:h.default.func,onEditingCanceled:h.default.func,errorState:h.default.oneOfType([h.default.object,h.default.bool])};var S=d.default.forwardRef(function(P,D){return d.default.createElement(M,(0,l.default)({},P,{forwardedRef:D}))});e.default=S}(am)),am}var im={},zi={};const Az=qn(lF);var M_;function Pz(){if(M_)return zi;M_=1;var e=vn;Object.defineProperty(zi,"__esModule",{value:!0}),zi.getCurrencyValue=o,zi.getEmptyValue=u,zi.getRenderValue=a,zi.isoDateRegex=void 0;var t=e($e),r=e(Az),i=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;zi.isoDateRegex=i;function u(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="function"?l.columnDef.emptyValue(l.rowData):n}function o(n,l){return n!==void 0?new Intl.NumberFormat(n.locale!==void 0?n.locale:"en-US",{style:"currency",currency:n.currencyCode!==void 0?n.currencyCode:"USD",minimumFractionDigits:n.minimumFractionDigits!==void 0?n.minimumFractionDigits:2,maximumFractionDigits:n.maximumFractionDigits!==void 0?n.maximumFractionDigits:2}).format(l!==void 0?l:0):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(l!==void 0?l:0)}function a(n,l,f){var s=n.columnDef.dateSetting&&n.columnDef.dateSetting.locale?n.columnDef.dateSetting.locale:void 0;if(n.columnDef.emptyValue!==void 0&&(n.value===void 0||n.value===null))return u(n.columnDef.emptyValue,n);if(n.rowData===void 0&&n.value&&n.columnDef.groupRender)return n.columnDef.groupRender(n.value);if(n.columnDef.render&&n.rowData)return n.columnDef.render(n.rowData);if(n.columnDef.type==="boolean"){var c={textAlign:"left",verticalAlign:"middle",width:48};return n.value?t.default.createElement(l.Check,{style:c}):t.default.createElement(l.ThirdStateCheck,{style:c})}else{if(n.columnDef.type==="date")return n.value instanceof Date?n.value.toLocaleDateString(s):i.exec(n.value)?(0,r.default)(n.value).toLocaleDateString(s):n.value;if(n.columnDef.type==="time")return n.value instanceof Date?n.value.toLocaleTimeString():i.exec(n.value)?(0,r.default)(n.value).toLocaleTimeString(s):n.value;if(n.columnDef.type==="datetime")return n.value instanceof Date?n.value.toLocaleString():i.exec(n.value)?(0,r.default)(n.value).toLocaleString(s):n.value;if(n.columnDef.type==="currency")return o(n.columnDef.currencySetting,n.value);if(typeof n.value=="boolean")return n.value.toString()}return n.value}return zi}var qi={},S_;function qd(){if(S_)return qi;S_=1;var e=vn,t=Ur();Object.defineProperty(qi,"__esModule",{value:!0}),qi.getStyle=s,qi.setObjectByKey=qi.selectFromObject=void 0;var r=e(Jr()),i=o(Ri());function u(c){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(u=function(m){return m?h:d})(c)}function o(c,d){if(c&&c.__esModule)return c;if(c===null||t(c)!=="object"&&typeof c!="function")return{default:c};var h=u(d);if(h&&h.has(c))return h.get(c);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in c)if(y!=="default"&&Object.prototype.hasOwnProperty.call(c,y)){var v=m?Object.getOwnPropertyDescriptor(c,y):null;v&&(v.get||v.set)?Object.defineProperty(p,y,v):p[y]=c[y]}return p.default=c,h&&h.set(c,p),p}function a(c,d){var h=Object.keys(c);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(c);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(c,m).enumerable})),h.push.apply(h,p)}return h}function n(c){for(var d=1;d-1)}).sort(function(U,Q){return U.tableData.columnOrder-Q.tableData.columnOrder}).map(function(U,Q){var Y=T.getFieldValue(D.data,U,!1),Z=function(Se,Oe){var Me={color:"inherit"};return typeof Se.cellStyle=="function"?Me=_(_({},Me),Se.cellStyle(Oe,T.data)):Me=_(_({},Me),Se.cellStyle),Se.disableClick&&(Me.cursor="default"),_({},Me)};Q===0&&24+T.level*20;var X=!1;if(U.editable===void 0&&(X=!0),U.editable==="always"&&(X=!0),U.editable==="onAdd"&&T.mode==="add"&&(X=!0),U.editable==="onUpdate"&&T.mode==="update"&&(X=!0),typeof U.editable=="function"&&(X=U.editable(U,T.data)),!U.field||!X){var re=T.getFieldValue(D.data,U);return n.default.createElement(T.components.Cell,{size:V,icons:M,columnDef:U,value:re,key:U.tableData.id,rowData:T.data,style:Z(U,Y)})}else{var ie=U.editComponent,le=(0,u.default)(U,y),se=ie||T.components.EditField,pe=(0,m.validateInput)(U,D.data);return te===-1&&(te=Q),n.default.createElement(l.default,{size:V,key:U.tableData.id,align:["numeric"].indexOf(U.type)!==-1?"right":"left",style:Z(U,Y)},n.default.createElement(se,{key:U.tableData.id,columnDef:le,autoFocus:te===Q,value:Y,error:!pe.isValid,helperText:pe.helperText,locale:T.localization.dateTimePickerLocalization,rowData:D.data,onChange:function(Se){var Oe=_({},D.data);(0,d.setObjectByKey)(Oe,U.field,Se),O({data:Oe}),T.onBulkEditRowChanged&&T.onBulkEditRowChanged(T.data,Oe)},onRowDataChange:function(Se){O({data:Se}),T.onBulkEditRowChanged&&T.onBulkEditRowChanged(T.data,Se)}}))}});return ee}var F=T.columns.every(function(V){var te=(0,m.validateInput)(V,D.data);return te.isValid}),A=function(){F&&T.onEditingApproved(T.mode,D.data,T.data)};function z(){if(T.mode!=="bulk"){var V=p.elementSize(T),te=[{icon:M.Check,tooltip:T.localization.saveTooltip,disabled:!F,onClick:A},{icon:M.Clear,tooltip:T.localization.cancelTooltip,onClick:function(){T.onEditingCanceled(T.mode,T.data)}}];return n.default.createElement(l.default,{size:V,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},S.editCellStyle)},n.default.createElement(T.components.Actions,{data:T.data,actions:te,components:T.components,size:V}))}}function B(){var V={borderBottom:"1px solid red"};return V}var $=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?A():te.keyCode===27&&T.onEditingCanceled(T.mode,T.data)},j=p.elementSize(T),N;if(T.mode==="add"||T.mode==="update"||T.mode==="bulk")N=R();else{var E=T.columns.filter(function(V){return!V.hidden&&!(V.tableData.groupOrder>-1)}).length;N=[n.default.createElement(l.default,{size:j,padding:S.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:E},n.default.createElement(s.default,{variant:"h6"},T.localization.deleteText))]}if(S.selection&&N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-selection-cell"})),T.isTreeData&&N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-tree-data-cell"})),S.actionsColumnIndex===-1)N.push(z());else if(S.actionsColumnIndex>=0){var W=0;S.selection&&(W=1),T.isTreeData&&(W=1,S.selection&&N.splice(1,1)),N.splice(S.actionsColumnIndex+W,0,z())}if(T.detailPanel&&S.showDetailPanelIcon!==!1&&T.mode!=="bulk"){var G=S.detailPanelColumnAlignment,L=G==="left"?0:N.length;N.splice(L,0,n.default.createElement(l.default,{padding:"none",key:"key-detail-panel-cell"}))}T.columns.filter(function(V){return V.tableData.groupOrder>-1}).forEach(function(V){N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-group-cell"+V.tableData.id}))}),T.detailPanel,T.isTreeData,T.onRowClick,T.onRowSelected,T.onTreeExpandChanged,T.onToggleDetailPanel,T.onEditingApproved,T.onEditingCanceled,T.getFieldValue,T.components,T.columns,T.errorState,T.onBulkEditRowChanged,T.bulkEditChangedRows,T.scrollWidth;var q=T.forwardedRef,H=(0,u.default)(T,v);return n.default.createElement(f.default,(0,i.default)({onKeyDown:$},H,{ref:q,style:B()}),N)}w.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},w.propTypes={actions:c.default.array,index:c.default.number.isRequired,data:c.default.object,detailPanel:c.default.oneOfType([c.default.func,c.default.arrayOf(c.default.oneOfType([c.default.object,c.default.func]))]),onRowSelected:c.default.func,path:c.default.arrayOf(c.default.number),columns:c.default.array,onRowClick:c.default.func,onEditingApproved:c.default.func,onEditingCanceled:c.default.func,localization:c.default.object,getFieldValue:c.default.func,errorState:c.default.oneOfType([c.default.object,c.default.bool]),onBulkEditRowChanged:c.default.func};var k=n.default.forwardRef(function(M,S){return n.default.createElement(w,(0,i.default)({},M,{forwardedRef:S}))});e.default=k}(lm)),lm}var sm={},um={},uo={},P_;function Jy(){if(P_)return uo;P_=1;var e=vn;Object.defineProperty(uo,"__esModule",{value:!0}),uo.getLocalizedFilterPlaceHolder=uo.getLocalizationData=void 0;var t=e(Jr()),r=H4();function i(n,l){var f=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);l&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),f.push.apply(f,s)}return f}function u(n){for(var l=1;l-1}),c.default.createElement(n.default,{primary:_.lookup[D]}))})))}var b=c.default.forwardRef(function(_,w){return c.default.createElement(g,(0,i.default)({},_,{forwardedRef:w}))});e.default=b}(cm)),cm}var fm={};const U4=qn(N9);var R_;function jz(){return R_||(R_=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Rd),u=t(U4),o=t(qo),a=t($e),n=Jy();function l(s){var c,d,h=s.columnDef,p=s.icons,m=s.localization,y=s.hideFilterIcons,v=s.onFilterChanged,g=s.forwardedRef,b=(0,n.getLocalizationData)(m),x=p.Filter;return a.default.createElement(i.default,{ref:g,style:h.type==="numeric"?{float:(c=h.align)!==null&&c!==void 0?c:"right"}:{float:(d=h.align)!==null&&d!==void 0?d:"left"},type:h.type==="numeric"?"number":"search",value:h.tableData.filterValue||"",placeholder:(0,n.getLocalizedFilterPlaceHolder)(h,m),onChange:function(w){v(h.tableData.id,w.target.value)},inputProps:{"aria-label":"filter data by ".concat(h.title)},InputProps:y||h.hideFilterIcon?void 0:{startAdornment:a.default.createElement(u.default,{position:"start"},a.default.createElement(o.default,{title:b.filterTooltip},a.default.createElement(x,null)))}})}var f=a.default.forwardRef(function(c,d){return a.default.createElement(l,(0,r.default)({},c,{forwardedRef:d}))});e.default=f}(fm)),fm}var dm={},L_;function $z(){return L_||(L_=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(zo),u=t($e);function o(n){var l=n.forwardedRef,f=n.columnDef,s=n.onFilterChanged;return u.default.createElement(i.default,{ref:l,inputProps:{"aria-label":"Filter of ".concat(f.title)},indeterminate:f.tableData.filterValue===void 0,checked:f.tableData.filterValue==="checked",onChange:function(){var d;f.tableData.filterValue===void 0?d="checked":f.tableData.filterValue==="checked"&&(d="unchecked"),s(f.tableData.id,d)}})}var a=u.default.forwardRef(function(l,f){return u.default.createElement(o,(0,r.default)({},l,{forwardedRef:f}))});e.default=a}(dm)),dm}var hm={},I_;function Bz(){return I_||(I_=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),u=a($e);function o(f){if(typeof WeakMap!="function")return null;var s=new WeakMap,c=new WeakMap;return(o=function(h){return h?c:s})(f)}function a(f,s){if(f&&f.__esModule)return f;if(f===null||r(f)!=="object"&&typeof f!="function")return{default:f};var c=o(s);if(c&&c.has(f))return c.get(f);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in f)if(p!=="default"&&Object.prototype.hasOwnProperty.call(f,p)){var m=h?Object.getOwnPropertyDescriptor(f,p):null;m&&(m.get||m.set)?Object.defineProperty(d,p,m):d[p]=f[p]}return d.default=f,c&&c.set(f,d),d}function n(f){var s=f.columnDef,c=f.onFilterChanged,d=f.forwardedRef;return(0,u.createElement)(s.filterComponent,{columnDef:s,onFilterChanged:c,forwardedRef:d})}var l=u.default.forwardRef(function(s,c){return u.default.createElement(n,(0,i.default)({},s,{forwardedRef:c}))});e.default=l}(hm)),hm}var F_;function H4(){return F_||(F_=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=y,e.default=void 0;var r=t(Ai),i=t(gi),u=t(Jr()),o=t(hr()),a=t($e),n=t(Or),l=t(Lz()),f=t(Nz()),s=t(jz()),c=t($z()),d=t(Bz()),h=Ju();function p(g,b){var x=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);b&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(g,w).enumerable})),x.push.apply(x,_)}return x}function m(g){for(var b=1;b-1)}).sort(function(T,M){return T.tableData.columnOrder-M.tableData.columnOrder}).map(function(T){return a.default.createElement(i.default,{key:T.tableData.id,style:m(m({},b.filterCellStyle),T.filterCellStyle)},x(T))});if(b.selection&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-selection-column"})),g.hasActions)if(b.actionsColumnIndex===-1)_.push(a.default.createElement(i.default,{key:"key-action-column"}));else{var w=0;g.selection&&(w=1),_.splice(b.actionsColumnIndex+w,0,a.default.createElement(i.default,{key:"key-action-column"}))}if(g.hasDetailPanel&&b.showDetailPanelIcon){var k=b.detailPanelColumnAlignment==="left"?0:_.length;_.splice(k,0,a.default.createElement(i.default,{padding:"none",key:"key-detail-panel-column"}))}return g.isTreeData>0&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-tree-data-filter"})),g.columns.filter(function(T){return T.tableData.groupOrder>-1}).forEach(function(T){_.splice(0,0,a.default.createElement(i.default,{padding:"checkbox",key:"key-group-filter"+T.tableData.id}))}),a.default.createElement(r.default,{id:"m--table--filter--row",ref:g.forwardedRef,style:m({height:10},b.filterRowStyle)},_)}y.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},y.propTypes={columns:n.default.array.isRequired,hasDetailPanel:n.default.bool.isRequired,isTreeData:n.default.bool.isRequired,onFilterChanged:n.default.func.isRequired,hasActions:n.default.bool,localization:n.default.object};var v=a.default.forwardRef(function(b,x){return a.default.createElement(y,(0,o.default)({},b,{forwardedRef:x}))});e.default=v}(sm)),sm}var pm={};const V4=qn(j9),zz=qn($9);function N_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,i)}return r}function j_(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ka(1));return r(Y4)(e,t)}if(typeof e!="function")throw new Error(ka(2));var u=e,o=t,a=[],n=a,l=!1;function f(){n===a&&(n=a.slice())}function s(){if(l)throw new Error(ka(3));return o}function c(m){if(typeof m!="function")throw new Error(ka(4));if(l)throw new Error(ka(5));var y=!0;return f(),n.push(m),function(){if(y){if(l)throw new Error(ka(6));y=!1,f();var g=n.indexOf(m);n.splice(g,1),a=null}}}function d(m){if(!qz(m))throw new Error(ka(7));if(typeof m.type>"u")throw new Error(ka(8));if(l)throw new Error(ka(9));try{l=!0,o=u(o,m)}finally{l=!1}for(var y=a=n,v=0;vX4=e,Vz=()=>X4,W_=Symbol.for("react-redux-context"),U_=typeof globalThis<"u"?globalThis:{};function Yz(){var e;if(!$e.createContext)return{};const t=(e=U_[W_])!=null?e:U_[W_]=new Map;let r=t.get($e.createContext);return r||(r=$e.createContext(null),t.set($e.createContext,r)),r}const Z4=Yz(),Gz=()=>{throw new Error("uSES not initialized!")},Xz=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Zz(e,t,r,i,{areStatesEqual:u,areOwnPropsEqual:o,areStatePropsEqual:a}){let n=!1,l,f,s,c,d;function h(g,b){return l=g,f=b,s=e(l,f),c=t(i,f),d=r(s,c,f),n=!0,d}function p(){return s=e(l,f),t.dependsOnOwnProps&&(c=t(i,f)),d=r(s,c,f),d}function m(){return e.dependsOnOwnProps&&(s=e(l,f)),t.dependsOnOwnProps&&(c=t(i,f)),d=r(s,c,f),d}function y(){const g=e(l,f),b=!a(g,s);return s=g,b&&(d=r(s,c,f)),d}function v(g,b){const x=!o(b,f),_=!u(g,l,b,f);return l=g,f=b,x&&_?p():x?m():_?y():d}return function(b,x){return n?v(b,x):h(b,x)}}function Kz(e,t){let{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:u}=t,o=Vn(t,Xz);const a=r(e,o),n=i(e,o),l=u(e,o);return Zz(a,n,l,e,o)}function Jz(e,t){const r={};for(const i in e){const u=e[i];typeof u=="function"&&(r[i]=(...o)=>t(u(...o)))}return r}function I0(e){return function(r){const i=e(r);function u(){return i}return u.dependsOnOwnProps=!1,u}}function H_(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function K4(e,t){return function(i,{displayName:u}){const o=function(n,l){return o.dependsOnOwnProps?o.mapToProps(n,l):o.mapToProps(n,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(n,l){o.mapToProps=e,o.dependsOnOwnProps=H_(e);let f=o(n,l);return typeof f=="function"&&(o.mapToProps=f,o.dependsOnOwnProps=H_(f),f=o(n,l)),f},o}}function Qy(e,t){return(r,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}function Qz(e){return e&&typeof e=="object"?I0(t=>Jz(e,t)):e?typeof e=="function"?K4(e):Qy(e,"mapDispatchToProps"):I0(t=>({dispatch:t}))}function eq(e){return e?typeof e=="function"?K4(e):Qy(e,"mapStateToProps"):I0(()=>({}))}function tq(e,t,r){return Gt({},r,e,t)}function nq(e){return function(r,{displayName:i,areMergedPropsEqual:u}){let o=!1,a;return function(l,f,s){const c=e(l,f,s);return o?u(c,a)||(a=c):(o=!0,a=c),a}}}function rq(e){return e?typeof e=="function"?nq(e):Qy(e,"mergeProps"):()=>tq}function aq(){const e=Vz();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){let i=[],u=t;for(;u;)i.push(u),u=u.next;return i},subscribe(i){let u=!0,o=r={callback:i,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!u||t===null||(u=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const V_={notify(){},get:()=>[]};function J4(e,t){let r,i=V_,u=0,o=!1;function a(m){s();const y=i.subscribe(m);let v=!1;return()=>{v||(v=!0,y(),c())}}function n(){i.notify()}function l(){p.onStateChange&&p.onStateChange()}function f(){return o}function s(){u++,r||(r=t?t.addNestedSub(l):e.subscribe(l),i=aq())}function c(){u--,r&&u===0&&(r(),r=void 0,i.clear(),i=V_)}function d(){o||(o=!0,s())}function h(){o&&(o=!1,c())}const p={addNestedSub:a,notifyNestedSubs:n,handleChangeWrapper:l,isSubscribed:f,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>i};return p}const iq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ff=iq?$e.useLayoutEffect:$e.useEffect;function Y_(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function mm(e,t){if(Y_(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let u=0;u{Q4=e},sq=[null,null];function uq(e,t,r){Ff(()=>e(...t),r)}function cq(e,t,r,i,u,o){e.current=i,r.current=!1,u.current&&(u.current=null,o())}function fq(e,t,r,i,u,o,a,n,l,f,s){if(!e)return()=>{};let c=!1,d=null;const h=()=>{if(c||!n.current)return;const m=t.getState();let y,v;try{y=i(m,u.current)}catch(g){v=g,d=g}v||(d=null),y===o.current?a.current||f():(o.current=y,l.current=y,a.current=!0,s())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(c=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function dq(e,t){return e===t}function eC(e,t,r,{pure:i,areStatesEqual:u=dq,areOwnPropsEqual:o=mm,areStatePropsEqual:a=mm,areMergedPropsEqual:n=mm,forwardRef:l=!1,context:f=Z4}={}){const s=f,c=eq(e),d=Qz(t),h=rq(r),p=!!e;return y=>{const v=y.displayName||y.name||"Component",g=`Connect(${v})`,b={shouldHandleStateChanges:p,displayName:g,wrappedComponentName:v,WrappedComponent:y,initMapStateToProps:c,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:u,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:n};function x(k){const[T,M,S]=$e.useMemo(()=>{const{reactReduxForwardedRef:U}=k,Q=Vn(k,oq);return[k.context,U,Q]},[k]),C=$e.useMemo(()=>T&&T.Consumer&&B9.isContextConsumer($e.createElement(T.Consumer,null))?T:s,[T,s]),P=$e.useContext(C),D=!!k.store&&!!k.store.getState&&!!k.store.dispatch,O=!!P&&!!P.store,R=D?k.store:P.store,F=O?P.getServerState:R.getState,A=$e.useMemo(()=>Kz(R.dispatch,b),[R]),[z,B]=$e.useMemo(()=>{if(!p)return sq;const U=J4(R,D?void 0:P.subscription),Q=U.notifyNestedSubs.bind(U);return[U,Q]},[R,D,P]),$=$e.useMemo(()=>D?P:Gt({},P,{subscription:z}),[D,P,z]),j=$e.useRef(),N=$e.useRef(S),E=$e.useRef(),W=$e.useRef(!1);$e.useRef(!1);const G=$e.useRef(!1),L=$e.useRef();Ff(()=>(G.current=!0,()=>{G.current=!1}),[]);const q=$e.useMemo(()=>()=>E.current&&S===N.current?E.current:A(R.getState(),S),[R,S]),H=$e.useMemo(()=>Q=>z?fq(p,R,z,A,N,j,W,G,E,B,Q):()=>{},[z]);uq(cq,[N,j,W,S,E,B]);let V;try{V=Q4(H,q,F?()=>A(F(),S):q)}catch(U){throw L.current&&(U.message+=` The error may be correlated with this previous error: ${L.current.stack} -`),U}Ff(()=>{L.current=void 0,E.current=void 0,j.current=V});const te=$e.useMemo(()=>$e.createElement(y,Gt({},V,{ref:M})),[M,y,V]);return $e.useMemo(()=>p?$e.createElement(C.Provider,{value:$},te):te,[C,te,$])}const w=$e.memo(x);if(w.WrappedComponent=y,w.displayName=x.displayName=g,l){const T=$e.forwardRef(function(S,C){return $e.createElement(w,Gt({},S,{reactReduxForwardedRef:C}))});return T.displayName=g,T.WrappedComponent=y,z2(T,y)}return z2(w,y)}}function xq({store:e,context:t,children:r,serverState:i,stabilityCheck:c="once",noopCheck:o="once"}){const a=$e.useMemo(()=>{const f=tC(e);return{store:e,subscription:f,getServerState:i?()=>i:void 0,stabilityCheck:c,noopCheck:o}},[e,i,c,o]),n=$e.useMemo(()=>e.getState(),[e]);Ff(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),n!==e.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,n]);const l=t||Q4;return $e.createElement(l.Provider,{value:a},r)}pq(_S.useSyncExternalStore);Jz(gy.unstable_batchedUpdates);function wq(e,t){if(e.length!==t.length)return!1;for(var r=0;r{const o=Cq(r,c.options);return e.addEventListener(c.eventName,c.fn,o),function(){e.removeEventListener(c.eventName,c.fn,o)}});return function(){i.forEach(o=>{o()})}}const Oq="Invariant failed";class $f extends Error{}$f.prototype.toString=function(){return this.message};function un(e,t){throw new $f(Oq)}class Aq extends et.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=Gi,this.onWindowError=t=>{const r=this.getCallbacks();r.isDragging()&&r.tryAbort(),t.error instanceof $f&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=qa(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof $f){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Pq=` +`),U}Ff(()=>{L.current=void 0,E.current=void 0,j.current=V});const te=$e.useMemo(()=>$e.createElement(y,Gt({},V,{ref:M})),[M,y,V]);return $e.useMemo(()=>p?$e.createElement(C.Provider,{value:$},te):te,[C,te,$])}const w=$e.memo(x);if(w.WrappedComponent=y,w.displayName=x.displayName=g,l){const T=$e.forwardRef(function(S,C){return $e.createElement(w,Gt({},S,{reactReduxForwardedRef:C}))});return T.displayName=g,T.WrappedComponent=y,z2(T,y)}return z2(w,y)}}function hq({store:e,context:t,children:r,serverState:i,stabilityCheck:u="once",noopCheck:o="once"}){const a=$e.useMemo(()=>{const f=J4(e);return{store:e,subscription:f,getServerState:i?()=>i:void 0,stabilityCheck:u,noopCheck:o}},[e,i,u,o]),n=$e.useMemo(()=>e.getState(),[e]);Ff(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),n!==e.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,n]);const l=t||Z4;return $e.createElement(l.Provider,{value:a},r)}lq(bS.useSyncExternalStore);Hz(hy.unstable_batchedUpdates);function pq(e,t){if(e.length!==t.length)return!1;for(var r=0;r{const o=xq(r,u.options);return e.addEventListener(u.eventName,u.fn,o),function(){e.removeEventListener(u.eventName,u.fn,o)}});return function(){i.forEach(o=>{o()})}}const wq="Invariant failed";class $f extends Error{}$f.prototype.toString=function(){return this.message};function un(e,t){throw new $f(wq)}class _q extends et.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=Gi,this.onWindowError=t=>{const r=this.getCallbacks();r.isDragging()&&r.tryAbort(),t.error instanceof $f&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=qa(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof $f){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Tq=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key -`,Bf=e=>e+1,Dq=e=>` +`,Bf=e=>e+1,kq=e=>` You have lifted an item in position ${Bf(e.source.index)} -`,sC=(e,t)=>{const r=e.droppableId===t.droppableId,i=Bf(e.index),c=Bf(t.index);return r?` +`,iC=(e,t)=>{const r=e.droppableId===t.droppableId,i=Bf(e.index),u=Bf(t.index);return r?` You have moved the item from position ${i} - to position ${c} + to position ${u} `:` You have moved the item from position ${i} in list ${e.droppableId} to list ${t.droppableId} - in position ${c} - `},uC=(e,t,r)=>t.droppableId===r.droppableId?` + in position ${u} + `},oC=(e,t,r)=>t.droppableId===r.droppableId?` The item ${e} has been combined with ${r.draggableId}`:` The item ${e} in list ${t.droppableId} has been combined with ${r.draggableId} in list ${r.droppableId} - `,Eq=e=>{const t=e.destination;if(t)return sC(e.source,t);const r=e.combine;return r?uC(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},J_=e=>` + `,Mq=e=>{const t=e.destination;if(t)return iC(e.source,t);const r=e.combine;return r?oC(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},Z_=e=>` The item has returned to its starting position of ${Bf(e.index)} -`,Rq=e=>{if(e.reason==="CANCEL")return` +`,Sq=e=>{if(e.reason==="CANCEL")return` Movement cancelled. - ${J_(e.source)} + ${Z_(e.source)} `;const t=e.destination,r=e.combine;return t?` You have dropped the item. - ${sC(e.source,t)} + ${iC(e.source,t)} `:r?` You have dropped the item. - ${uC(e.draggableId,e.source,r)} + ${oC(e.draggableId,e.source,r)} `:` The item has been dropped while not over a drop area. - ${J_(e.source)} - `},Lq={dragHandleUsageInstructions:Pq,onDragStart:Dq,onDragUpdate:Eq,onDragEnd:Rq};var df=Lq;const ta={x:0,y:0},fa=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Da=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Xi=(e,t)=>e.x===t.x&&e.y===t.y,zl=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Oo=function(e,t,r){return r===void 0&&(r=0),e==="x"?{x:t,y:r}:{x:r,y:t}},Pu=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),Q_=(e,t)=>Math.min(...t.map(r=>Pu(e,r))),cC=e=>t=>({x:e(t.x),y:e(t.y)});var Iq=(e,t)=>{const r=Ja({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r};const ac=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),e3=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Fq={top:0,right:0,bottom:0,left:0},Nq=(e,t)=>t?ac(e,t.scroll.diff.displacement):e,jq=(e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e,$q=(e,t)=>t&&t.shouldClipSubject?Iq(t.pageMarginBox,e):Ja(e);var Ml=e=>{let{page:t,withPlaceholder:r,axis:i,frame:c}=e;const o=Nq(t.marginBox,c),a=jq(o,i,r),n=$q(a,c);return{page:t,withPlaceholder:r,active:n}},r1=(e,t)=>{e.frame||un();const r=e.frame,i=Da(t,r.scroll.initial),c=zl(i),o={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:i,displacement:c},max:r.scroll.max}},a=Ml({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:a}};const fC=ea(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),dC=ea(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),Ud=ea(e=>Object.values(e)),Bq=ea(e=>Object.values(e));var ql=ea((e,t)=>Bq(t).filter(i=>e===i.descriptor.droppableId).sort((i,c)=>i.descriptor.index-c.descriptor.index));function a1(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Hd(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Vd=ea((e,t)=>t.filter(r=>r.descriptor.id!==e.descriptor.id)),zq=e=>{let{isMovingForward:t,draggable:r,destination:i,insideDestination:c,previousImpact:o}=e;if(!i.isCombineEnabled||!a1(o))return null;function n(p){const m={type:"COMBINE",combine:{draggableId:p,droppableId:i.descriptor.id}};return{...o,at:m}}const l=o.displaced.all,f=l.length?l[0]:null;if(t)return f?n(f):null;const s=Vd(r,c);if(!f){if(!s.length)return null;const p=s[s.length-1];return n(p.descriptor.id)}const u=s.findIndex(p=>p.descriptor.id===f);u===-1&&un();const d=u-1;if(d<0)return null;const h=s[d];return n(h.descriptor.id)},Wl=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const hC={point:ta,value:0},Du={invisible:{},visible:{},all:[]},qq={displaced:Du,displacedBy:hC,at:null};var Wq=qq,Ua=(e,t)=>r=>e<=r&&r<=t,pC=e=>{const t=Ua(e.top,e.bottom),r=Ua(e.left,e.right);return i=>{if(t(i.top)&&t(i.bottom)&&r(i.left)&&r(i.right))return!0;const o=t(i.top)||t(i.bottom),a=r(i.left)||r(i.right);if(o&&a)return!0;const l=i.tope.bottom,f=i.lefte.right;return l&&f?!0:l&&a||f&&o}},Uq=e=>{const t=Ua(e.top,e.bottom),r=Ua(e.left,e.right);return i=>t(i.top)&&t(i.bottom)&&r(i.left)&&r(i.right)};const i1={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},gC={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var Hq=e=>t=>{const r=Ua(t.top,t.bottom),i=Ua(t.left,t.right);return c=>e===i1?r(c.top)&&r(c.bottom):i(c.left)&&i(c.right)};const Vq=(e,t)=>{const r=t.frame?t.frame.scroll.diff.displacement:ta;return ac(e,r)},Yq=(e,t,r)=>t.subject.active?r(t.subject.active)(e):!1,Gq=(e,t,r)=>r(t)(e),o1=e=>{let{target:t,destination:r,viewport:i,withDroppableDisplacement:c,isVisibleThroughFrameFn:o}=e;const a=c?Vq(t,r):t;return Yq(a,r,o)&&Gq(a,i,o)},Xq=e=>o1({...e,isVisibleThroughFrameFn:pC}),mC=e=>o1({...e,isVisibleThroughFrameFn:Uq}),Zq=e=>o1({...e,isVisibleThroughFrameFn:Hq(e.destination.axis)}),Kq=(e,t,r)=>{if(typeof r=="boolean")return r;if(!t)return!0;const{invisible:i,visible:c}=t;if(i[e])return!1;const o=c[e];return o?o.shouldAnimate:!0};function Jq(e,t){const r=e.page.marginBox,i={top:t.point.y,right:0,bottom:0,left:t.point.x};return Ja(t1(r,i))}function Eu(e){let{afterDragging:t,destination:r,displacedBy:i,viewport:c,forceShouldAnimate:o,last:a}=e;return t.reduce(function(l,f){const s=Jq(f,i),u=f.descriptor.id;if(l.all.push(u),!Xq({target:s,destination:r,viewport:c,withDroppableDisplacement:!0}))return l.invisible[f.descriptor.id]=!0,l;const h=Kq(u,a,o),p={draggableId:u,shouldAnimate:h};return l.visible[u]=p,l},{all:[],visible:{},invisible:{}})}function Qq(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function t3(e){let{insideDestination:t,inHomeList:r,displacedBy:i,destination:c}=e;const o=Qq(t,{inHomeList:r});return{displaced:Du,displacedBy:i,at:{type:"REORDER",destination:{droppableId:c.descriptor.id,index:o}}}}function zf(e){let{draggable:t,insideDestination:r,destination:i,viewport:c,displacedBy:o,last:a,index:n,forceShouldAnimate:l}=e;const f=Wl(t,i);if(n==null)return t3({insideDestination:r,inHomeList:f,displacedBy:o,destination:i});const s=r.find(m=>m.descriptor.index===n);if(!s)return t3({insideDestination:r,inHomeList:f,displacedBy:o,destination:i});const u=Vd(t,r),d=r.indexOf(s),h=u.slice(d);return{displaced:Eu({afterDragging:h,destination:i,displacedBy:o,last:a,viewport:c.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:n}}}}function Ji(e,t){return!!t.effected[e]}var eW=e=>{let{isMovingForward:t,destination:r,draggables:i,combine:c,afterCritical:o}=e;if(!r.isCombineEnabled)return null;const a=c.draggableId,l=i[a].descriptor.index;return Ji(a,o)?t?l:l-1:t?l+1:l},tW=e=>{let{isMovingForward:t,isInHomeList:r,insideDestination:i,location:c}=e;if(!i.length)return null;const o=c.index,a=t?o+1:o-1,n=i[0].descriptor.index,l=i[i.length-1].descriptor.index,f=r?l:l+1;return af?null:a},nW=e=>{let{isMovingForward:t,isInHomeList:r,draggable:i,draggables:c,destination:o,insideDestination:a,previousImpact:n,viewport:l,afterCritical:f}=e;const s=n.at;if(s||un(),s.type==="REORDER"){const d=tW({isMovingForward:t,isInHomeList:r,location:s.destination,insideDestination:a});return d==null?null:zf({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:d})}const u=eW({isMovingForward:t,destination:o,displaced:n.displaced,draggables:c,combine:s.combine,afterCritical:f});return u==null?null:zf({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:u})},rW=e=>{let{displaced:t,afterCritical:r,combineWith:i,displacedBy:c}=e;const o=!!(t.visible[i]||t.invisible[i]);return Ji(i,r)?o?ta:zl(c.point):o?c.point:ta},aW=e=>{let{afterCritical:t,impact:r,draggables:i}=e;const c=Hd(r);c||un();const o=c.draggableId,a=i[o].page.borderBox.center,n=rW({displaced:r.displaced,afterCritical:t,combineWith:o,displacedBy:r.displacedBy});return fa(a,n)};const vC=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,iW=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,l1=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,n3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Oo(t.line,r.marginBox[t.end]+vC(t,i),l1(t,r.marginBox,i))},r3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Oo(t.line,r.marginBox[t.start]-iW(t,i),l1(t,r.marginBox,i))},oW=e=>{let{axis:t,moveInto:r,isMoving:i}=e;return Oo(t.line,r.contentBox[t.start]+vC(t,i),l1(t,r.contentBox,i))};var lW=e=>{let{impact:t,draggable:r,draggables:i,droppable:c,afterCritical:o}=e;const a=ql(c.descriptor.id,i),n=r.page,l=c.axis;if(!a.length)return oW({axis:l,moveInto:c.page,isMoving:n});const{displaced:f,displacedBy:s}=t,u=f.all[0];if(u){const h=i[u];if(Ji(u,o))return r3({axis:l,moveRelativeTo:h.page,isMoving:n});const p=Nf(h.page,s.point);return r3({axis:l,moveRelativeTo:p,isMoving:n})}const d=a[a.length-1];if(d.descriptor.id===r.descriptor.id)return n.borderBox.center;if(Ji(d.descriptor.id,o)){const h=Nf(d.page,zl(o.displacedBy.point));return n3({axis:l,moveRelativeTo:h,isMoving:n})}return n3({axis:l,moveRelativeTo:d.page,isMoving:n})},N0=(e,t)=>{const r=e.frame;return r?fa(t,r.scroll.diff.displacement):t};const sW=e=>{let{impact:t,draggable:r,droppable:i,draggables:c,afterCritical:o}=e;const a=r.page.borderBox.center,n=t.at;return!i||!n?a:n.type==="REORDER"?lW({impact:t,draggable:r,draggables:c,droppable:i,afterCritical:o}):aW({impact:t,draggables:c,afterCritical:o})};var Yd=e=>{const t=sW(e),r=e.droppable;return r?N0(r,t):t},yC=(e,t)=>{const r=Da(t,e.scroll.initial),i=zl(r);return{frame:Ja({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:i}}}};function a3(e,t){return e.map(r=>t[r])}function uW(e,t){for(let r=0;r{let{impact:t,viewport:r,destination:i,draggables:c,maxScrollChange:o}=e;const a=yC(r,fa(r.scroll.current,o)),n=i.frame?r1(i,fa(i.frame.scroll.current,o)):i,l=t.displaced,f=Eu({afterDragging:a3(l.all,c),destination:i,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),s=Eu({afterDragging:a3(l.all,c),destination:n,displacedBy:t.displacedBy,viewport:r.frame,last:l,forceShouldAnimate:!1}),u={},d={},h=[l,f,s];return l.all.forEach(m=>{const y=uW(m,h);if(y){d[m]=y;return}u[m]=!0}),{...t,displaced:{all:l.all,invisible:u,visible:d}}},fW=(e,t)=>fa(e.scroll.diff.displacement,t),s1=e=>{let{pageBorderBoxCenter:t,draggable:r,viewport:i}=e;const c=fW(i,t),o=Da(c,r.page.borderBox.center);return fa(r.client.borderBox.center,o)},bC=e=>{let{draggable:t,destination:r,newPageBorderBoxCenter:i,viewport:c,withDroppableDisplacement:o,onlyOnMainAxis:a=!1}=e;const n=Da(i,t.page.borderBox.center),f={target:ac(t.page.borderBox,n),destination:r,withDroppableDisplacement:o,viewport:c};return a?Zq(f):mC(f)},dW=e=>{let{isMovingForward:t,draggable:r,destination:i,draggables:c,previousImpact:o,viewport:a,previousPageBorderBoxCenter:n,previousClientSelection:l,afterCritical:f}=e;if(!i.isEnabled)return null;const s=ql(i.descriptor.id,c),u=Wl(r,i),d=zq({isMovingForward:t,draggable:r,destination:i,insideDestination:s,previousImpact:o})||nW({isMovingForward:t,isInHomeList:u,draggable:r,draggables:c,destination:i,insideDestination:s,previousImpact:o,viewport:a,afterCritical:f});if(!d)return null;const h=Yd({impact:d,draggable:r,droppable:i,draggables:c,afterCritical:f});if(bC({draggable:r,destination:i,newPageBorderBoxCenter:h,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:s1({pageBorderBoxCenter:h,draggable:r,viewport:a}),impact:d,scrollJumpRequest:null};const m=Da(h,n),y=cW({impact:d,viewport:a,destination:i,draggables:c,maxScrollChange:m});return{clientSelection:l,impact:y,scrollJumpRequest:m}};const ya=e=>{const t=e.subject.active;return t||un(),t};var hW=e=>{let{isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:c,viewport:o}=e;const a=i.subject.active;if(!a)return null;const n=i.axis,l=Ua(a[n.start],a[n.end]),f=Ud(c).filter(u=>u!==i).filter(u=>u.isEnabled).filter(u=>!!u.subject.active).filter(u=>pC(o.frame)(ya(u))).filter(u=>{const d=ya(u);return t?a[n.crossAxisEnd]{const d=ya(u),h=Ua(d[n.start],d[n.end]);return l(d[n.start])||l(d[n.end])||h(a[n.start])||h(a[n.end])}).sort((u,d)=>{const h=ya(u)[n.crossAxisStart],p=ya(d)[n.crossAxisStart];return t?h-p:p-h}).filter((u,d,h)=>ya(u)[n.crossAxisStart]===ya(h[0])[n.crossAxisStart]);if(!f.length)return null;if(f.length===1)return f[0];const s=f.filter(u=>Ua(ya(u)[n.start],ya(u)[n.end])(r[n.line]));return s.length===1?s[0]:s.length>1?s.sort((u,d)=>ya(u)[n.start]-ya(d)[n.start])[0]:f.sort((u,d)=>{const h=Q_(r,e3(ya(u))),p=Q_(r,e3(ya(d)));return h!==p?h-p:ya(u)[n.start]-ya(d)[n.start]})[0]};const i3=(e,t)=>{const r=e.page.borderBox.center;return Ji(e.descriptor.id,t)?Da(r,t.displacedBy.point):r},pW=(e,t)=>{const r=e.page.borderBox;return Ji(e.descriptor.id,t)?ac(r,zl(t.displacedBy.point)):r};var gW=e=>{let{pageBorderBoxCenter:t,viewport:r,destination:i,insideDestination:c,afterCritical:o}=e;return c.filter(n=>mC({target:pW(n,o),destination:i,viewport:r.frame,withDroppableDisplacement:!0})).sort((n,l)=>{const f=Pu(t,N0(i,i3(n,o))),s=Pu(t,N0(i,i3(l,o)));return f{const i=e.axis;if(e.descriptor.mode==="virtual")return Oo(i.line,t[i.line]);const c=e.subject.page.contentBox[i.size],l=ql(e.descriptor.id,r).reduce((f,s)=>f+s.client.marginBox[i.size],0)+t[i.line]-c;return l<=0?null:Oo(i.line,l)},xC=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),wC=(e,t,r)=>{const i=e.frame;Wl(t,e)&&un(),e.subject.withPlaceholder&&un();const c=ic(e.axis,t.displaceBy).point,o=mW(e,c,r),a={placeholderSize:c,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!i){const s=Ml({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:s}}const n=o?fa(i.scroll.max,o):i.scroll.max,l=xC(i,n),f=Ml({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:f,frame:l}},vW=e=>{const t=e.subject.withPlaceholder;t||un();const r=e.frame;if(!r){const a=Ml({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:a}}const i=t.oldFrameMaxScroll;i||un();const c=xC(r,i),o=Ml({page:e.subject.page,axis:e.axis,frame:c,withPlaceholder:null});return{...e,subject:o,frame:c}};var yW=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:r,insideDestination:i,draggable:c,draggables:o,destination:a,viewport:n,afterCritical:l}=e;if(!r){if(i.length)return null;const d={displaced:Du,displacedBy:hC,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},h=Yd({impact:d,draggable:c,droppable:a,draggables:o,afterCritical:l}),p=Wl(c,a)?a:wC(a,c,o);return bC({draggable:c,destination:p,newPageBorderBoxCenter:h,viewport:n.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?d:null}const f=t[a.axis.line]<=r.page.borderBox.center[a.axis.line],s=(()=>{const d=r.descriptor.index;return r.descriptor.id===c.descriptor.id||f?d:d+1})(),u=ic(a.axis,c.displaceBy);return zf({draggable:c,insideDestination:i,destination:a,viewport:n,displacedBy:u,last:Du,index:s})},bW=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:r,draggable:i,isOver:c,draggables:o,droppables:a,viewport:n,afterCritical:l}=e;const f=hW({isMovingForward:t,pageBorderBoxCenter:r,source:c,droppables:a,viewport:n});if(!f)return null;const s=ql(f.descriptor.id,o),u=gW({pageBorderBoxCenter:r,viewport:n,destination:f,insideDestination:s,afterCritical:l}),d=yW({previousPageBorderBoxCenter:r,destination:f,draggable:i,draggables:o,moveRelativeTo:u,insideDestination:s,viewport:n,afterCritical:l});if(!d)return null;const h=Yd({impact:d,draggable:i,droppable:f,draggables:o,afterCritical:l});return{clientSelection:s1({pageBorderBoxCenter:h,draggable:i,viewport:n}),impact:d,scrollJumpRequest:null}},La=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const xW=(e,t)=>{const r=La(e);return r?t[r]:null};var wW=e=>{let{state:t,type:r}=e;const i=xW(t.impact,t.dimensions.droppables),c=!!i,o=t.dimensions.droppables[t.critical.droppable.id],a=i||o,n=a.axis.direction,l=n==="vertical"&&(r==="MOVE_UP"||r==="MOVE_DOWN")||n==="horizontal"&&(r==="MOVE_LEFT"||r==="MOVE_RIGHT");if(l&&!c)return null;const f=r==="MOVE_DOWN"||r==="MOVE_RIGHT",s=t.dimensions.draggables[t.critical.draggable.id],u=t.current.page.borderBoxCenter,{draggables:d,droppables:h}=t.dimensions;return l?dW({isMovingForward:f,previousPageBorderBoxCenter:u,draggable:s,destination:a,draggables:d,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):bW({isMovingForward:f,previousPageBorderBoxCenter:u,draggable:s,isOver:a,draggables:d,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function go(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function _C(e){const t=Ua(e.top,e.bottom),r=Ua(e.left,e.right);return function(c){return t(c.y)&&r(c.x)}}function _W(e,t){return e.leftt.left&&e.topt.top}function TW(e){let{pageBorderBox:t,draggable:r,candidates:i}=e;const c=r.page.borderBox.center,o=i.map(a=>{const n=a.axis,l=Oo(a.axis.line,t.center[n.line],a.page.borderBox.center[n.crossAxisLine]);return{id:a.descriptor.id,distance:Pu(c,l)}}).sort((a,n)=>n.distance-a.distance);return o[0]?o[0].id:null}function kW(e){let{pageBorderBox:t,draggable:r,droppables:i}=e;const c=Ud(i).filter(o=>{if(!o.isEnabled)return!1;const a=o.subject.active;if(!a||!_W(t,a))return!1;if(_C(a)(t.center))return!0;const n=o.axis,l=a.center[n.crossAxisLine],f=t[n.crossAxisStart],s=t[n.crossAxisEnd],u=Ua(a[n.crossAxisStart],a[n.crossAxisEnd]),d=u(f),h=u(s);return!d&&!h?!0:d?fl});return c.length?c.length===1?c[0].descriptor.id:TW({pageBorderBox:t,draggable:r,candidates:c}):null}const TC=(e,t)=>Ja(ac(e,t));var MW=(e,t)=>{const r=e.frame;return r?TC(t,r.scroll.diff.value):t};function kC(e){let{displaced:t,id:r}=e;return!!(t.visible[r]||t.invisible[r])}function SW(e){let{draggable:t,closest:r,inHomeList:i}=e;return r?i&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}var CW=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:r,destination:i,insideDestination:c,last:o,viewport:a,afterCritical:n}=e;const l=i.axis,f=ic(i.axis,r.displaceBy),s=f.value,u=t[l.start],d=t[l.end],p=Vd(r,c).find(y=>{const v=y.descriptor.id,g=y.page.borderBox.center[l.line],b=Ji(v,n),x=kC({displaced:o,id:v});return b?x?d<=g:u{let{draggable:t,pageBorderBoxWithDroppableScroll:r,previousImpact:i,destination:c,insideDestination:o,afterCritical:a}=e;if(!c.isCombineEnabled)return null;const n=c.axis,l=ic(c.axis,t.displaceBy),f=l.value,s=r[n.start],u=r[n.end],h=Vd(t,o).find(m=>{const y=m.descriptor.id,v=m.page.borderBox,b=v[n.size]/OW,x=Ji(y,a),_=kC({displaced:i.displaced,id:y});return x?_?u>v[n.start]+b&&uv[n.start]-f+b&&sv[n.start]+f+b&&uv[n.start]+b&&s{let{pageOffset:t,draggable:r,draggables:i,droppables:c,previousImpact:o,viewport:a,afterCritical:n}=e;const l=TC(r.page.borderBox,t),f=kW({pageBorderBox:l,draggable:r,droppables:c});if(!f)return Wq;const s=c[f],u=ql(s.descriptor.id,i),d=MW(s,l);return AW({pageBorderBoxWithDroppableScroll:d,draggable:r,previousImpact:o,destination:s,insideDestination:u,afterCritical:n})||CW({pageBorderBoxWithDroppableScroll:d,draggable:r,destination:s,insideDestination:u,last:o.displaced,viewport:a,afterCritical:n})},u1=(e,t)=>({...e,[t.descriptor.id]:t});const PW=e=>{let{previousImpact:t,impact:r,droppables:i}=e;const c=La(t),o=La(r);if(!c||c===o)return i;const a=i[c];if(!a.subject.withPlaceholder)return i;const n=vW(a);return u1(i,n)};var DW=e=>{let{draggable:t,draggables:r,droppables:i,previousImpact:c,impact:o}=e;const a=PW({previousImpact:c,impact:o,droppables:i}),n=La(o);if(!n)return a;const l=i[n];if(Wl(t,l)||l.subject.withPlaceholder)return a;const f=wC(l,t,r);return u1(a,f)},Tu=e=>{let{state:t,clientSelection:r,dimensions:i,viewport:c,impact:o,scrollJumpRequest:a}=e;const n=c||t.viewport,l=i||t.dimensions,f=r||t.current.client.selection,s=Da(f,t.initial.client.selection),u={offset:s,selection:f,borderBoxCenter:fa(t.initial.client.borderBoxCenter,s)},d={selection:fa(u.selection,n.scroll.current),borderBoxCenter:fa(u.borderBoxCenter,n.scroll.current),offset:fa(u.offset,n.scroll.diff.value)},h={client:u,page:d};if(t.phase==="COLLECTING")return{...t,dimensions:l,viewport:n,current:h};const p=l.draggables[t.critical.draggable.id],m=o||MC({pageOffset:d.offset,draggable:p,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:n,afterCritical:t.afterCritical}),y=DW({draggable:p,impact:m,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return{...t,current:h,dimensions:{draggables:l.draggables,droppables:y},impact:m,viewport:n,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null}};function EW(e,t){return e.map(r=>t[r])}var SC=e=>{let{impact:t,viewport:r,draggables:i,destination:c,forceShouldAnimate:o}=e;const a=t.displaced,n=EW(a.all,i),l=Eu({afterDragging:n,destination:c,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:o,last:a});return{...t,displaced:l}},CC=e=>{let{impact:t,draggable:r,droppable:i,draggables:c,viewport:o,afterCritical:a}=e;const n=Yd({impact:t,draggable:r,draggables:c,droppable:i,afterCritical:a});return s1({pageBorderBoxCenter:n,draggable:r,viewport:o})},OC=e=>{let{state:t,dimensions:r,viewport:i}=e;t.movementMode!=="SNAP"&&un();const c=t.impact,o=i||t.viewport,a=r||t.dimensions,{draggables:n,droppables:l}=a,f=n[t.critical.draggable.id],s=La(c);s||un();const u=l[s],d=SC({impact:c,viewport:o,destination:u,draggables:n}),h=CC({impact:d,draggable:f,droppable:u,draggables:n,viewport:o,afterCritical:t.afterCritical});return Tu({impact:d,clientSelection:h,state:t,dimensions:a,viewport:o})},RW=e=>({index:e.index,droppableId:e.droppableId}),AC=e=>{let{draggable:t,home:r,draggables:i,viewport:c}=e;const o=ic(r.axis,t.displaceBy),a=ql(r.descriptor.id,i),n=a.indexOf(t);n===-1&&un();const l=a.slice(n+1),f=l.reduce((h,p)=>(h[p.descriptor.id]=!0,h),{}),s={inVirtualList:r.descriptor.mode==="virtual",displacedBy:o,effected:f};return{impact:{displaced:Eu({afterDragging:l,destination:r,displacedBy:o,last:null,viewport:c.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:RW(t.descriptor)}},afterCritical:s}},LW=(e,t)=>({draggables:e.draggables,droppables:u1(e.droppables,t)}),IW=e=>{let{draggable:t,offset:r,initialWindowScroll:i}=e;const c=Nf(t.client,r),o=jf(c,i);return{...t,placeholder:{...t.placeholder,client:c},client:c,page:o}},FW=e=>{const t=e.frame;return t||un(),t},NW=e=>{let{additions:t,updatedDroppables:r,viewport:i}=e;const c=i.scroll.diff.value;return t.map(o=>{const a=o.descriptor.droppableId,n=r[a],f=FW(n).scroll.diff.value,s=fa(c,f);return IW({draggable:o,offset:s,initialWindowScroll:i.scroll.initial})})},jW=e=>{let{state:t,published:r}=e;const i=r.modified.map(g=>{const b=t.dimensions.droppables[g.droppableId];return r1(b,g.scroll)}),c={...t.dimensions.droppables,...fC(i)},o=dC(NW({additions:r.additions,updatedDroppables:c,viewport:t.viewport})),a={...t.dimensions.draggables,...o};r.removals.forEach(g=>{delete a[g]});const n={droppables:c,draggables:a},l=La(t.impact),f=l?n.droppables[l]:null,s=n.draggables[t.critical.draggable.id],u=n.droppables[t.critical.droppable.id],{impact:d,afterCritical:h}=AC({draggable:s,home:u,draggables:a,viewport:t.viewport}),p=f&&f.isCombineEnabled?t.impact:d,m=MC({pageOffset:t.current.page.offset,draggable:n.draggables[t.critical.draggable.id],draggables:n.draggables,droppables:n.droppables,previousImpact:p,viewport:t.viewport,afterCritical:h}),y={...t,phase:"DRAGGING",impact:m,onLiftImpact:d,dimensions:n,afterCritical:h,forceShouldAnimate:!1};return t.phase==="COLLECTING"?y:{...y,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const j0=e=>e.movementMode==="SNAP",ym=(e,t,r)=>{const i=LW(e.dimensions,t);return!j0(e)||r?Tu({state:e,dimensions:i}):OC({state:e,dimensions:i})};function bm(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const o3={phase:"IDLE",completed:null,shouldFlush:!1};var $W=function(e,t){if(e===void 0&&(e=o3),t.type==="FLUSH")return{...o3,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&un();const{critical:r,clientSelection:i,viewport:c,dimensions:o,movementMode:a}=t.payload,n=o.draggables[r.draggable.id],l=o.droppables[r.droppable.id],f={selection:i,borderBoxCenter:n.client.borderBox.center,offset:ta},s={client:f,page:{selection:fa(f.selection,c.scroll.initial),borderBoxCenter:fa(f.selection,c.scroll.initial),offset:fa(f.selection,c.scroll.diff.value)}},u=Ud(o.droppables).every(m=>!m.isFixedOnPage),{impact:d,afterCritical:h}=AC({draggable:n,home:l,draggables:o.draggables,viewport:c});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:o,initial:s,current:s,isWindowScrollAllowed:u,impact:d,afterCritical:h,onLiftImpact:d,viewport:c,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&un(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||un(),jW({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;go(e)||un();const{client:r}=t.payload;return Xi(r,e.current.client.selection)?e:Tu({state:e,clientSelection:r,impact:j0(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return bm(e);go(e)||un();const{id:r,newScroll:i}=t.payload,c=e.dimensions.droppables[r];if(!c)return e;const o=r1(c,i);return ym(e,o,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;go(e)||un();const{id:r,isEnabled:i}=t.payload,c=e.dimensions.droppables[r];c||un(),c.isEnabled===i&&un();const o={...c,isEnabled:i};return ym(e,o,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;go(e)||un();const{id:r,isCombineEnabled:i}=t.payload,c=e.dimensions.droppables[r];c||un(),c.isCombineEnabled===i&&un();const o={...c,isCombineEnabled:i};return ym(e,o,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;go(e)||un(),e.isWindowScrollAllowed||un();const r=t.payload.newScroll;if(Xi(e.viewport.scroll.current,r))return bm(e);const i=yC(e.viewport,r);return j0(e)?OC({state:e,viewport:i}):Tu({state:e,viewport:i})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!go(e))return e;const r=t.payload.maxScroll;if(Xi(r,e.viewport.scroll.max))return e;const i={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:i}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&un();const r=wW({state:e,type:t.type});return r?Tu({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const r=t.payload.reason;return e.phase!=="COLLECTING"&&un(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if(t.type==="DROP_ANIMATE"){const{completed:r,dropDuration:i,newHomeClientOffset:c}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||un(),{phase:"DROP_ANIMATING",completed:r,dropDuration:i,newHomeClientOffset:c,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:r}=t.payload;return{phase:"IDLE",completed:r,shouldFlush:!1}}return e};const BW=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),zW=e=>({type:"LIFT",payload:e}),qW=e=>({type:"INITIAL_PUBLISH",payload:e}),WW=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),UW=()=>({type:"COLLECTION_STARTING",payload:null}),HW=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),VW=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),YW=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),PC=e=>({type:"MOVE",payload:e}),GW=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),XW=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),ZW=()=>({type:"MOVE_UP",payload:null}),KW=()=>({type:"MOVE_DOWN",payload:null}),JW=()=>({type:"MOVE_RIGHT",payload:null}),QW=()=>({type:"MOVE_LEFT",payload:null}),c1=()=>({type:"FLUSH",payload:null}),eU=e=>({type:"DROP_ANIMATE",payload:e}),f1=e=>({type:"DROP_COMPLETE",payload:e}),DC=e=>({type:"DROP",payload:e}),tU=e=>({type:"DROP_PENDING",payload:e}),EC=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var nU=e=>t=>{let{getState:r,dispatch:i}=t;return c=>o=>{if(o.type!=="LIFT"){c(o);return}const{id:a,clientSelection:n,movementMode:l}=o.payload,f=r();f.phase==="DROP_ANIMATING"&&i(f1({completed:f.completed})),r().phase!=="IDLE"&&un(),i(c1()),i(BW({draggableId:a,movementMode:l}));const u={draggableId:a,scrollOptions:{shouldPublishImmediately:l==="SNAP"}},{critical:d,dimensions:h,viewport:p}=e.startPublishing(u);i(qW({critical:d,dimensions:h,clientSelection:n,movementMode:l,viewport:p}))}},rU=e=>()=>t=>r=>{r.type==="INITIAL_PUBLISH"&&e.dragging(),r.type==="DROP_ANIMATE"&&e.dropping(r.payload.completed.result.reason),(r.type==="FLUSH"||r.type==="DROP_COMPLETE")&&e.resting(),t(r)};const d1={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ru={opacity:{drop:0,combining:.7},scale:{drop:.75}},RC={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},co=`${RC.outOfTheWay}s ${d1.outOfTheWay}`,ku={fluid:`opacity ${co}`,snap:`transform ${co}, opacity ${co}`,drop:e=>{const t=`${e}s ${d1.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${co}`,placeholder:`height ${co}, width ${co}, margin ${co}`},l3=e=>Xi(e,ta)?void 0:`translate(${e.x}px, ${e.y}px)`,$0={moveTo:l3,drop:(e,t)=>{const r=l3(e);if(r)return t?`${r} scale(${Ru.scale.drop})`:r}},{minDropTime:B0,maxDropTime:LC}=RC,aU=LC-B0,s3=1500,iU=.6;var oU=e=>{let{current:t,destination:r,reason:i}=e;const c=Pu(t,r);if(c<=0)return B0;if(c>=s3)return LC;const o=c/s3,a=B0+aU*o,n=i==="CANCEL"?a*iU:a;return Number(n.toFixed(2))},lU=e=>{let{impact:t,draggable:r,dimensions:i,viewport:c,afterCritical:o}=e;const{draggables:a,droppables:n}=i,l=La(t),f=l?n[l]:null,s=n[r.descriptor.droppableId],u=CC({impact:t,draggable:r,draggables:a,afterCritical:o,droppable:f||s,viewport:c});return Da(u,r.client.borderBox.center)},sU=e=>{let{draggables:t,reason:r,lastImpact:i,home:c,viewport:o,onLiftImpact:a}=e;return!i.at||r!=="DROP"?{impact:SC({draggables:t,impact:a,destination:c,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:i.at.type==="REORDER"?{impact:i,didDropInsideDroppable:!0}:{impact:{...i,displaced:Du},didDropInsideDroppable:!0}};const uU=e=>{let{getState:t,dispatch:r}=e;return i=>c=>{if(c.type!=="DROP"){i(c);return}const o=t(),a=c.payload.reason;if(o.phase==="COLLECTING"){r(tU({reason:a}));return}if(o.phase==="IDLE")return;o.phase==="DROP_PENDING"&&o.isWaiting&&un(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||un();const l=o.critical,f=o.dimensions,s=f.draggables[o.critical.draggable.id],{impact:u,didDropInsideDroppable:d}=sU({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),h=d?a1(u):null,p=d?Hd(u):null,m={index:l.draggable.index,droppableId:l.droppable.id},y={draggableId:s.descriptor.id,type:s.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:h,combine:p},v=lU({impact:u,draggable:s,dimensions:f,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:u};if(!(!Xi(o.current.client.offset,v)||!!y.combine)){r(f1({completed:g}));return}const x=oU({current:o.current.client.offset,destination:v,reason:a});r(eU({newHomeClientOffset:v,dropDuration:x,completed:g}))}};var cU=uU,IC=()=>({x:window.pageXOffset,y:window.pageYOffset});function fU(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function dU(e){let{onWindowScroll:t}=e;function r(){t(IC())}const i=Au(r),c=fU(i);let o=Gi;function a(){return o!==Gi}function n(){a()&&un(),o=qa(window,[c])}function l(){a()||un(),i.cancel(),o(),o=Gi}return{start:n,stop:l,isActive:a}}const hU=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",pU=e=>{const t=dU({onWindowScroll:r=>{e.dispatch(GW({newScroll:r}))}});return r=>i=>{!t.isActive()&&i.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&hU(i)&&t.stop(),r(i)}};var gU=pU,mU=e=>{let t=!1,r=!1;const i=setTimeout(()=>{r=!0}),c=o=>{t||r||(t=!0,e(o),clearTimeout(i))};return c.wasCalled=()=>t,c},vU=()=>{const e=[],t=c=>{const o=e.findIndex(n=>n.timerId===c);o===-1&&un();const[a]=e.splice(o,1);a.callback()};return{add:c=>{const o=setTimeout(()=>t(o)),a={timerId:o,callback:c};e.push(a)},flush:()=>{if(!e.length)return;const c=[...e];e.length=0,c.forEach(o=>{clearTimeout(o.timerId),o.callback()})}}};const yU=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,bU=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,xU=(e,t)=>{if(e===t)return!0;const r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,i=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&i},Ls=(e,t)=>{t()},Gc=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function xm(e,t,r,i){if(!e){r(i(t));return}const c=mU(r);e(t,{announce:c}),c.wasCalled()||r(i(t))}var wU=(e,t)=>{const r=vU();let i=null;const c=(u,d)=>{i&&un(),Ls("onBeforeCapture",()=>{const h=e().onBeforeCapture;h&&h({draggableId:u,mode:d})})},o=(u,d)=>{i&&un(),Ls("onBeforeDragStart",()=>{const h=e().onBeforeDragStart;h&&h(Gc(u,d))})},a=(u,d)=>{i&&un();const h=Gc(u,d);i={mode:d,lastCritical:u,lastLocation:h.source,lastCombine:null},r.add(()=>{Ls("onDragStart",()=>xm(e().onDragStart,h,t,df.onDragStart))})},n=(u,d)=>{const h=a1(d),p=Hd(d);i||un();const m=!xU(u,i.lastCritical);m&&(i.lastCritical=u);const y=!yU(i.lastLocation,h);y&&(i.lastLocation=h);const v=!bU(i.lastCombine,p);if(v&&(i.lastCombine=p),!m&&!y&&!v)return;const g={...Gc(u,i.mode),combine:p,destination:h};r.add(()=>{Ls("onDragUpdate",()=>xm(e().onDragUpdate,g,t,df.onDragUpdate))})},l=()=>{i||un(),r.flush()},f=u=>{i||un(),i=null,Ls("onDragEnd",()=>xm(e().onDragEnd,u,t,df.onDragEnd))};return{beforeCapture:c,beforeStart:o,start:a,update:n,flush:l,drop:f,abort:()=>{if(!i)return;const u={...Gc(i.lastCritical,i.mode),combine:null,destination:null,reason:"CANCEL"};f(u)}}},_U=(e,t)=>{const r=wU(e,t);return i=>c=>o=>{if(o.type==="BEFORE_INITIAL_CAPTURE"){r.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){const n=o.payload.critical;r.beforeStart(n,o.payload.movementMode),c(o),r.start(n,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){const n=o.payload.completed.result;r.flush(),c(o),r.drop(n);return}if(c(o),o.type==="FLUSH"){r.abort();return}const a=i.getState();a.phase==="DRAGGING"&&r.update(a.critical,a.impact)}};const TU=e=>t=>r=>{if(r.type!=="DROP_ANIMATION_FINISHED"){t(r);return}const i=e.getState();i.phase!=="DROP_ANIMATING"&&un(),e.dispatch(f1({completed:i.completed}))};var kU=TU;const MU=e=>{let t=null,r=null;function i(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return c=>o=>{if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&i(),c(o),o.type!=="DROP_ANIMATE")return;const a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(EC())}};r=requestAnimationFrame(()=>{r=null,t=qa(window,[a])})}};var SU=MU,CU=e=>()=>t=>r=>{(r.type==="DROP_COMPLETE"||r.type==="FLUSH"||r.type==="DROP_ANIMATE")&&e.stopPublishing(),t(r)},OU=e=>{let t=!1;return()=>r=>i=>{if(i.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(i.payload.critical.draggable.id),r(i),e.tryRestoreFocusRecorded();return}if(r(i),!!t){if(i.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(i.type==="DROP_COMPLETE"){t=!1;const c=i.payload.completed.result;c.combine&&e.tryShiftRecord(c.draggableId,c.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const AU=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var PU=e=>t=>r=>i=>{if(AU(i)){e.stop(),r(i);return}if(i.type==="INITIAL_PUBLISH"){r(i);const c=t.getState();c.phase!=="DRAGGING"&&un(),e.start(c);return}r(i),e.scroll(t.getState())};const DU=e=>t=>r=>{if(t(r),r.type!=="PUBLISH_WHILE_DRAGGING")return;const i=e.getState();i.phase==="DROP_PENDING"&&(i.isWaiting||e.dispatch(DC({reason:i.reason})))};var EU=DU;const RU=K4;var LU=e=>{let{dimensionMarshal:t,focusMarshal:r,styleMarshal:i,getResponders:c,announce:o,autoScroller:a}=e;return Z4($W,RU(Zz(rU(i),CU(t),nU(t),cU,kU,SU,EU,PU(a),gU,OU(r),_U(c,o))))};const wm=()=>({additions:{},removals:{},modified:{}});function IU(e){let{registry:t,callbacks:r}=e,i=wm(),c=null;const o=()=>{c||(r.collectionStarting(),c=requestAnimationFrame(()=>{c=null;const{additions:f,removals:s,modified:u}=i,d=Object.keys(f).map(m=>t.draggable.getById(m).getDimension(ta)).sort((m,y)=>m.descriptor.index-y.descriptor.index),h=Object.keys(u).map(m=>{const v=t.droppable.getById(m).callbacks.getScrollWhileDragging();return{droppableId:m,scroll:v}}),p={additions:d,removals:Object.keys(s),modified:h};i=wm(),r.publish(p)}))};return{add:f=>{const s=f.descriptor.id;i.additions[s]=f,i.modified[f.descriptor.droppableId]=!0,i.removals[s]&&delete i.removals[s],o()},remove:f=>{const s=f.descriptor;i.removals[s.id]=!0,i.modified[s.droppableId]=!0,i.additions[s.id]&&delete i.additions[s.id],o()},stop:()=>{c&&(cancelAnimationFrame(c),c=null,i=wm())}}}var FC=e=>{let{scrollHeight:t,scrollWidth:r,height:i,width:c}=e;const o=Da({x:r,y:t},{x:c,y:i});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},NC=()=>{const e=document.documentElement;return e||un(),e},jC=()=>{const e=NC();return FC({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},FU=()=>{const e=IC(),t=jC(),r=e.y,i=e.x,c=NC(),o=c.clientWidth,a=c.clientHeight,n=i+o,l=r+a;return{frame:Ja({top:r,left:i,right:n,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:ta,displacement:ta}}}},NU=e=>{let{critical:t,scrollOptions:r,registry:i}=e;const c=FU(),o=c.scroll.current,a=t.droppable,n=i.droppable.getAllByType(a.type).map(u=>u.callbacks.getDimensionAndWatchScroll(o,r)),l=i.draggable.getAllByType(t.draggable.type).map(u=>u.getDimension(o));return{dimensions:{draggables:dC(l),droppables:fC(n)},critical:t,viewport:c}};function u3(e,t,r){return!(r.descriptor.id===t.id||r.descriptor.type!==t.type||e.droppable.getById(r.descriptor.droppableId).descriptor.mode!=="virtual")}var jU=(e,t)=>{let r=null;const i=IU({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),c=(d,h)=>{e.droppable.exists(d)||un(),r&&t.updateDroppableIsEnabled({id:d,isEnabled:h})},o=(d,h)=>{r&&(e.droppable.exists(d)||un(),t.updateDroppableIsCombineEnabled({id:d,isCombineEnabled:h}))},a=(d,h)=>{r&&(e.droppable.exists(d)||un(),t.updateDroppableScroll({id:d,newScroll:h}))},n=(d,h)=>{r&&e.droppable.getById(d).callbacks.scroll(h)},l=()=>{if(!r)return;i.stop();const d=r.critical.droppable;e.droppable.getAllByType(d.type).forEach(h=>h.callbacks.dragStopped()),r.unsubscribe(),r=null},f=d=>{r||un();const h=r.critical.draggable;d.type==="ADDITION"&&u3(e,h,d.value)&&i.add(d.value),d.type==="REMOVAL"&&u3(e,h,d.value)&&i.remove(d.value)};return{updateDroppableIsEnabled:c,updateDroppableIsCombineEnabled:o,scrollDroppable:n,updateDroppableScroll:a,startPublishing:d=>{r&&un();const h=e.draggable.getById(d.draggableId),p=e.droppable.getById(h.descriptor.droppableId),m={draggable:h.descriptor,droppable:p.descriptor},y=e.subscribe(f);return r={critical:m,unsubscribe:y},NU({critical:m,registry:e,scrollOptions:d.scrollOptions})},stopPublishing:l}},$C=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",$U=e=>{window.scrollBy(e.x,e.y)};const BU=ea(e=>Ud(e).filter(t=>!(!t.isEnabled||!t.frame))),zU=(e,t)=>BU(t).find(i=>(i.frame||un(),_C(i.frame.pageMarginBox)(e)))||null;var qU=e=>{let{center:t,destination:r,droppables:i}=e;if(r){const o=i[r];return o.frame?o:null}return zU(t,i)};const Lu={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var WU=function(e,t,r){r===void 0&&(r=()=>Lu);const i=r(),c=e[t.size]*i.startFromPercentage,o=e[t.size]*i.maxScrollAtPercentage;return{startScrollingFrom:c,maxScrollValueAt:o}},BC=e=>{let{startOfRange:t,endOfRange:r,current:i}=e;const c=r-t;return c===0?0:(i-t)/c},h1=1,UU=function(e,t,r){r===void 0&&(r=()=>Lu);const i=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return i.maxPixelScroll;if(e===t.startScrollingFrom)return h1;const o=1-BC({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=i.maxPixelScroll*i.ease(o);return Math.ceil(a)},HU=(e,t,r)=>{const i=r(),c=i.durationDampening.accelerateAt,o=i.durationDampening.stopDampeningAt,a=t,n=o,f=Date.now()-a;if(f>=o)return e;if(f{let{distanceToEdge:t,thresholds:r,dragStartTime:i,shouldUseTimeDampening:c,getAutoScrollerOptions:o}=e;const a=UU(t,r,o);return a===0?0:c?Math.max(HU(a,i,o),h1):a},f3=e=>{let{container:t,distanceToEdges:r,dragStartTime:i,axis:c,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=WU(t,c,a);return r[c.end]{let{container:t,subject:r,proposedScroll:i}=e;const c=r.height>t.height,o=r.width>t.width;return!o&&!c?i:o&&c?null:{x:o?0:i.x,y:c?0:i.y}};const YU=cC(e=>e===0?0:e);var zC=e=>{let{dragStartTime:t,container:r,subject:i,center:c,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n={top:c.y-r.top,right:r.right-c.x,bottom:r.bottom-c.y,left:c.x-r.left},l=f3({container:r,distanceToEdges:n,dragStartTime:t,axis:i1,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),f=f3({container:r,distanceToEdges:n,dragStartTime:t,axis:gC,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),s=YU({x:f,y:l});if(Xi(s,ta))return null;const u=VU({container:r,subject:i,proposedScroll:s});return u?Xi(u,ta)?null:u:null};const GU=cC(e=>e===0?0:e>0?1:-1),p1=(()=>{const e=(t,r)=>t<0?t:t>r?t-r:0;return t=>{let{current:r,max:i,change:c}=t;const o=fa(r,c),a={x:e(o.x,i.x),y:e(o.y,i.y)};return Xi(a,ta)?null:a}})(),qC=e=>{let{max:t,current:r,change:i}=e;const c={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},o=GU(i),a=p1({max:c,current:r,change:o});return!a||o.x!==0&&a.x===0||o.y!==0&&a.y===0},g1=(e,t)=>qC({current:e.scroll.current,max:e.scroll.max,change:t}),XU=(e,t)=>{if(!g1(e,t))return null;const r=e.scroll.max,i=e.scroll.current;return p1({current:i,max:r,change:t})},m1=(e,t)=>{const r=e.frame;return r?qC({current:r.scroll.current,max:r.scroll.max,change:t}):!1},ZU=(e,t)=>{const r=e.frame;return!r||!m1(e,t)?null:p1({current:r.scroll.current,max:r.scroll.max,change:t})};var KU=e=>{let{viewport:t,subject:r,center:i,dragStartTime:c,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=zC({dragStartTime:c,container:t.frame,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return n&&g1(t,n)?n:null},JU=e=>{let{droppable:t,subject:r,center:i,dragStartTime:c,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=t.frame;if(!n)return null;const l=zC({dragStartTime:c,container:n.pageMarginBox,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return l&&m1(t,l)?l:null},d3=e=>{let{state:t,dragStartTime:r,shouldUseTimeDampening:i,scrollWindow:c,scrollDroppable:o,getAutoScrollerOptions:a}=e;const n=t.current.page.borderBoxCenter,f=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const d=t.viewport,h=KU({dragStartTime:r,viewport:d,subject:f,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});if(h){c(h);return}}const s=qU({center:n,destination:La(t.impact),droppables:t.dimensions.droppables});if(!s)return;const u=JU({dragStartTime:r,droppable:s,subject:f,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});u&&o(s.descriptor.id,u)},QU=e=>{let{scrollWindow:t,scrollDroppable:r,getAutoScrollerOptions:i=()=>Lu}=e;const c=Au(t),o=Au(r);let a=null;const n=s=>{a||un();const{shouldUseTimeDampening:u,dragStartTime:d}=a;d3({state:s,scrollWindow:c,scrollDroppable:o,dragStartTime:d,shouldUseTimeDampening:u,getAutoScrollerOptions:i})};return{start:s=>{a&&un();const u=Date.now();let d=!1;const h=()=>{d=!0};d3({state:s,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:h,scrollDroppable:h,getAutoScrollerOptions:i}),a={dragStartTime:u,shouldUseTimeDampening:d},d&&n(s)},stop:()=>{a&&(c.cancel(),o.cancel(),a=null)},scroll:n}},eH=e=>{let{move:t,scrollDroppable:r,scrollWindow:i}=e;const c=(l,f)=>{const s=fa(l.current.client.selection,f);t({client:s})},o=(l,f)=>{if(!m1(l,f))return f;const s=ZU(l,f);if(!s)return r(l.descriptor.id,f),null;const u=Da(f,s);return r(l.descriptor.id,u),Da(f,u)},a=(l,f,s)=>{if(!l||!g1(f,s))return s;const u=XU(f,s);if(!u)return i(s),null;const d=Da(s,u);return i(d),Da(s,d)};return l=>{const f=l.scrollJumpRequest;if(!f)return;const s=La(l.impact);s||un();const u=o(l.dimensions.droppables[s],f);if(!u)return;const d=l.viewport,h=a(l.isWindowScrollAllowed,d,u);h&&c(l,h)}},tH=e=>{let{scrollDroppable:t,scrollWindow:r,move:i,getAutoScrollerOptions:c}=e;const o=QU({scrollWindow:r,scrollDroppable:t,getAutoScrollerOptions:c}),a=eH({move:i,scrollWindow:r,scrollDroppable:t});return{scroll:f=>{if(!(c().disabled||f.phase!=="DRAGGING")){if(f.movementMode==="FLUID"){o.scroll(f);return}f.scrollJumpRequest&&a(f)}},start:o.start,stop:o.stop}};const Sl="data-rfd",Cl=(()=>{const e=`${Sl}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),z0=(()=>{const e=`${Sl}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),nH=(()=>{const e=`${Sl}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),h3={contextId:`${Sl}-scroll-container-context-id`},rH=e=>t=>`[${t}="${e}"]`,Is=(e,t)=>e.map(r=>{const i=r.styles[t];return i?`${r.selector} { ${i} }`:""}).join(" "),aH="pointer-events: none;";var iH=e=>{const t=rH(e),r=(()=>{const n=` + ${Z_(e.source)} + `},Cq={dragHandleUsageInstructions:Tq,onDragStart:kq,onDragUpdate:Mq,onDragEnd:Sq};var df=Cq;const ta={x:0,y:0},fa=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Da=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Xi=(e,t)=>e.x===t.x&&e.y===t.y,zl=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Oo=function(e,t,r){return r===void 0&&(r=0),e==="x"?{x:t,y:r}:{x:r,y:t}},Pu=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),K_=(e,t)=>Math.min(...t.map(r=>Pu(e,r))),lC=e=>t=>({x:e(t.x),y:e(t.y)});var Oq=(e,t)=>{const r=Ja({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r};const ac=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),J_=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Aq={top:0,right:0,bottom:0,left:0},Pq=(e,t)=>t?ac(e,t.scroll.diff.displacement):e,Dq=(e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e,Eq=(e,t)=>t&&t.shouldClipSubject?Oq(t.pageMarginBox,e):Ja(e);var Ml=e=>{let{page:t,withPlaceholder:r,axis:i,frame:u}=e;const o=Pq(t.marginBox,u),a=Dq(o,i,r),n=Eq(a,u);return{page:t,withPlaceholder:r,active:n}},n1=(e,t)=>{e.frame||un();const r=e.frame,i=Da(t,r.scroll.initial),u=zl(i),o={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:i,displacement:u},max:r.scroll.max}},a=Ml({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:a}};const sC=ea(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),uC=ea(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),Ud=ea(e=>Object.values(e)),Rq=ea(e=>Object.values(e));var ql=ea((e,t)=>Rq(t).filter(i=>e===i.descriptor.droppableId).sort((i,u)=>i.descriptor.index-u.descriptor.index));function r1(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Hd(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Vd=ea((e,t)=>t.filter(r=>r.descriptor.id!==e.descriptor.id)),Lq=e=>{let{isMovingForward:t,draggable:r,destination:i,insideDestination:u,previousImpact:o}=e;if(!i.isCombineEnabled||!r1(o))return null;function n(p){const m={type:"COMBINE",combine:{draggableId:p,droppableId:i.descriptor.id}};return{...o,at:m}}const l=o.displaced.all,f=l.length?l[0]:null;if(t)return f?n(f):null;const s=Vd(r,u);if(!f){if(!s.length)return null;const p=s[s.length-1];return n(p.descriptor.id)}const c=s.findIndex(p=>p.descriptor.id===f);c===-1&&un();const d=c-1;if(d<0)return null;const h=s[d];return n(h.descriptor.id)},Wl=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const cC={point:ta,value:0},Du={invisible:{},visible:{},all:[]},Iq={displaced:Du,displacedBy:cC,at:null};var Fq=Iq,Ua=(e,t)=>r=>e<=r&&r<=t,fC=e=>{const t=Ua(e.top,e.bottom),r=Ua(e.left,e.right);return i=>{if(t(i.top)&&t(i.bottom)&&r(i.left)&&r(i.right))return!0;const o=t(i.top)||t(i.bottom),a=r(i.left)||r(i.right);if(o&&a)return!0;const l=i.tope.bottom,f=i.lefte.right;return l&&f?!0:l&&a||f&&o}},Nq=e=>{const t=Ua(e.top,e.bottom),r=Ua(e.left,e.right);return i=>t(i.top)&&t(i.bottom)&&r(i.left)&&r(i.right)};const a1={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},dC={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var jq=e=>t=>{const r=Ua(t.top,t.bottom),i=Ua(t.left,t.right);return u=>e===a1?r(u.top)&&r(u.bottom):i(u.left)&&i(u.right)};const $q=(e,t)=>{const r=t.frame?t.frame.scroll.diff.displacement:ta;return ac(e,r)},Bq=(e,t,r)=>t.subject.active?r(t.subject.active)(e):!1,zq=(e,t,r)=>r(t)(e),i1=e=>{let{target:t,destination:r,viewport:i,withDroppableDisplacement:u,isVisibleThroughFrameFn:o}=e;const a=u?$q(t,r):t;return Bq(a,r,o)&&zq(a,i,o)},qq=e=>i1({...e,isVisibleThroughFrameFn:fC}),hC=e=>i1({...e,isVisibleThroughFrameFn:Nq}),Wq=e=>i1({...e,isVisibleThroughFrameFn:jq(e.destination.axis)}),Uq=(e,t,r)=>{if(typeof r=="boolean")return r;if(!t)return!0;const{invisible:i,visible:u}=t;if(i[e])return!1;const o=u[e];return o?o.shouldAnimate:!0};function Hq(e,t){const r=e.page.marginBox,i={top:t.point.y,right:0,bottom:0,left:t.point.x};return Ja(e1(r,i))}function Eu(e){let{afterDragging:t,destination:r,displacedBy:i,viewport:u,forceShouldAnimate:o,last:a}=e;return t.reduce(function(l,f){const s=Hq(f,i),c=f.descriptor.id;if(l.all.push(c),!qq({target:s,destination:r,viewport:u,withDroppableDisplacement:!0}))return l.invisible[f.descriptor.id]=!0,l;const h=Uq(c,a,o),p={draggableId:c,shouldAnimate:h};return l.visible[c]=p,l},{all:[],visible:{},invisible:{}})}function Vq(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function Q_(e){let{insideDestination:t,inHomeList:r,displacedBy:i,destination:u}=e;const o=Vq(t,{inHomeList:r});return{displaced:Du,displacedBy:i,at:{type:"REORDER",destination:{droppableId:u.descriptor.id,index:o}}}}function zf(e){let{draggable:t,insideDestination:r,destination:i,viewport:u,displacedBy:o,last:a,index:n,forceShouldAnimate:l}=e;const f=Wl(t,i);if(n==null)return Q_({insideDestination:r,inHomeList:f,displacedBy:o,destination:i});const s=r.find(m=>m.descriptor.index===n);if(!s)return Q_({insideDestination:r,inHomeList:f,displacedBy:o,destination:i});const c=Vd(t,r),d=r.indexOf(s),h=c.slice(d);return{displaced:Eu({afterDragging:h,destination:i,displacedBy:o,last:a,viewport:u.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:n}}}}function Ji(e,t){return!!t.effected[e]}var Yq=e=>{let{isMovingForward:t,destination:r,draggables:i,combine:u,afterCritical:o}=e;if(!r.isCombineEnabled)return null;const a=u.draggableId,l=i[a].descriptor.index;return Ji(a,o)?t?l:l-1:t?l+1:l},Gq=e=>{let{isMovingForward:t,isInHomeList:r,insideDestination:i,location:u}=e;if(!i.length)return null;const o=u.index,a=t?o+1:o-1,n=i[0].descriptor.index,l=i[i.length-1].descriptor.index,f=r?l:l+1;return af?null:a},Xq=e=>{let{isMovingForward:t,isInHomeList:r,draggable:i,draggables:u,destination:o,insideDestination:a,previousImpact:n,viewport:l,afterCritical:f}=e;const s=n.at;if(s||un(),s.type==="REORDER"){const d=Gq({isMovingForward:t,isInHomeList:r,location:s.destination,insideDestination:a});return d==null?null:zf({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:d})}const c=Yq({isMovingForward:t,destination:o,displaced:n.displaced,draggables:u,combine:s.combine,afterCritical:f});return c==null?null:zf({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:c})},Zq=e=>{let{displaced:t,afterCritical:r,combineWith:i,displacedBy:u}=e;const o=!!(t.visible[i]||t.invisible[i]);return Ji(i,r)?o?ta:zl(u.point):o?u.point:ta},Kq=e=>{let{afterCritical:t,impact:r,draggables:i}=e;const u=Hd(r);u||un();const o=u.draggableId,a=i[o].page.borderBox.center,n=Zq({displaced:r.displaced,afterCritical:t,combineWith:o,displacedBy:r.displacedBy});return fa(a,n)};const pC=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,Jq=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,o1=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,e3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Oo(t.line,r.marginBox[t.end]+pC(t,i),o1(t,r.marginBox,i))},t3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Oo(t.line,r.marginBox[t.start]-Jq(t,i),o1(t,r.marginBox,i))},Qq=e=>{let{axis:t,moveInto:r,isMoving:i}=e;return Oo(t.line,r.contentBox[t.start]+pC(t,i),o1(t,r.contentBox,i))};var eW=e=>{let{impact:t,draggable:r,draggables:i,droppable:u,afterCritical:o}=e;const a=ql(u.descriptor.id,i),n=r.page,l=u.axis;if(!a.length)return Qq({axis:l,moveInto:u.page,isMoving:n});const{displaced:f,displacedBy:s}=t,c=f.all[0];if(c){const h=i[c];if(Ji(c,o))return t3({axis:l,moveRelativeTo:h.page,isMoving:n});const p=Nf(h.page,s.point);return t3({axis:l,moveRelativeTo:p,isMoving:n})}const d=a[a.length-1];if(d.descriptor.id===r.descriptor.id)return n.borderBox.center;if(Ji(d.descriptor.id,o)){const h=Nf(d.page,zl(o.displacedBy.point));return e3({axis:l,moveRelativeTo:h,isMoving:n})}return e3({axis:l,moveRelativeTo:d.page,isMoving:n})},F0=(e,t)=>{const r=e.frame;return r?fa(t,r.scroll.diff.displacement):t};const tW=e=>{let{impact:t,draggable:r,droppable:i,draggables:u,afterCritical:o}=e;const a=r.page.borderBox.center,n=t.at;return!i||!n?a:n.type==="REORDER"?eW({impact:t,draggable:r,draggables:u,droppable:i,afterCritical:o}):Kq({impact:t,draggables:u,afterCritical:o})};var Yd=e=>{const t=tW(e),r=e.droppable;return r?F0(r,t):t},gC=(e,t)=>{const r=Da(t,e.scroll.initial),i=zl(r);return{frame:Ja({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:i}}}};function n3(e,t){return e.map(r=>t[r])}function nW(e,t){for(let r=0;r{let{impact:t,viewport:r,destination:i,draggables:u,maxScrollChange:o}=e;const a=gC(r,fa(r.scroll.current,o)),n=i.frame?n1(i,fa(i.frame.scroll.current,o)):i,l=t.displaced,f=Eu({afterDragging:n3(l.all,u),destination:i,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),s=Eu({afterDragging:n3(l.all,u),destination:n,displacedBy:t.displacedBy,viewport:r.frame,last:l,forceShouldAnimate:!1}),c={},d={},h=[l,f,s];return l.all.forEach(m=>{const y=nW(m,h);if(y){d[m]=y;return}c[m]=!0}),{...t,displaced:{all:l.all,invisible:c,visible:d}}},aW=(e,t)=>fa(e.scroll.diff.displacement,t),l1=e=>{let{pageBorderBoxCenter:t,draggable:r,viewport:i}=e;const u=aW(i,t),o=Da(u,r.page.borderBox.center);return fa(r.client.borderBox.center,o)},mC=e=>{let{draggable:t,destination:r,newPageBorderBoxCenter:i,viewport:u,withDroppableDisplacement:o,onlyOnMainAxis:a=!1}=e;const n=Da(i,t.page.borderBox.center),f={target:ac(t.page.borderBox,n),destination:r,withDroppableDisplacement:o,viewport:u};return a?Wq(f):hC(f)},iW=e=>{let{isMovingForward:t,draggable:r,destination:i,draggables:u,previousImpact:o,viewport:a,previousPageBorderBoxCenter:n,previousClientSelection:l,afterCritical:f}=e;if(!i.isEnabled)return null;const s=ql(i.descriptor.id,u),c=Wl(r,i),d=Lq({isMovingForward:t,draggable:r,destination:i,insideDestination:s,previousImpact:o})||Xq({isMovingForward:t,isInHomeList:c,draggable:r,draggables:u,destination:i,insideDestination:s,previousImpact:o,viewport:a,afterCritical:f});if(!d)return null;const h=Yd({impact:d,draggable:r,droppable:i,draggables:u,afterCritical:f});if(mC({draggable:r,destination:i,newPageBorderBoxCenter:h,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:l1({pageBorderBoxCenter:h,draggable:r,viewport:a}),impact:d,scrollJumpRequest:null};const m=Da(h,n),y=rW({impact:d,viewport:a,destination:i,draggables:u,maxScrollChange:m});return{clientSelection:l,impact:y,scrollJumpRequest:m}};const ya=e=>{const t=e.subject.active;return t||un(),t};var oW=e=>{let{isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:u,viewport:o}=e;const a=i.subject.active;if(!a)return null;const n=i.axis,l=Ua(a[n.start],a[n.end]),f=Ud(u).filter(c=>c!==i).filter(c=>c.isEnabled).filter(c=>!!c.subject.active).filter(c=>fC(o.frame)(ya(c))).filter(c=>{const d=ya(c);return t?a[n.crossAxisEnd]{const d=ya(c),h=Ua(d[n.start],d[n.end]);return l(d[n.start])||l(d[n.end])||h(a[n.start])||h(a[n.end])}).sort((c,d)=>{const h=ya(c)[n.crossAxisStart],p=ya(d)[n.crossAxisStart];return t?h-p:p-h}).filter((c,d,h)=>ya(c)[n.crossAxisStart]===ya(h[0])[n.crossAxisStart]);if(!f.length)return null;if(f.length===1)return f[0];const s=f.filter(c=>Ua(ya(c)[n.start],ya(c)[n.end])(r[n.line]));return s.length===1?s[0]:s.length>1?s.sort((c,d)=>ya(c)[n.start]-ya(d)[n.start])[0]:f.sort((c,d)=>{const h=K_(r,J_(ya(c))),p=K_(r,J_(ya(d)));return h!==p?h-p:ya(c)[n.start]-ya(d)[n.start]})[0]};const r3=(e,t)=>{const r=e.page.borderBox.center;return Ji(e.descriptor.id,t)?Da(r,t.displacedBy.point):r},lW=(e,t)=>{const r=e.page.borderBox;return Ji(e.descriptor.id,t)?ac(r,zl(t.displacedBy.point)):r};var sW=e=>{let{pageBorderBoxCenter:t,viewport:r,destination:i,insideDestination:u,afterCritical:o}=e;return u.filter(n=>hC({target:lW(n,o),destination:i,viewport:r.frame,withDroppableDisplacement:!0})).sort((n,l)=>{const f=Pu(t,F0(i,r3(n,o))),s=Pu(t,F0(i,r3(l,o)));return f{const i=e.axis;if(e.descriptor.mode==="virtual")return Oo(i.line,t[i.line]);const u=e.subject.page.contentBox[i.size],l=ql(e.descriptor.id,r).reduce((f,s)=>f+s.client.marginBox[i.size],0)+t[i.line]-u;return l<=0?null:Oo(i.line,l)},vC=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),yC=(e,t,r)=>{const i=e.frame;Wl(t,e)&&un(),e.subject.withPlaceholder&&un();const u=ic(e.axis,t.displaceBy).point,o=uW(e,u,r),a={placeholderSize:u,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!i){const s=Ml({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:s}}const n=o?fa(i.scroll.max,o):i.scroll.max,l=vC(i,n),f=Ml({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:f,frame:l}},cW=e=>{const t=e.subject.withPlaceholder;t||un();const r=e.frame;if(!r){const a=Ml({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:a}}const i=t.oldFrameMaxScroll;i||un();const u=vC(r,i),o=Ml({page:e.subject.page,axis:e.axis,frame:u,withPlaceholder:null});return{...e,subject:o,frame:u}};var fW=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:r,insideDestination:i,draggable:u,draggables:o,destination:a,viewport:n,afterCritical:l}=e;if(!r){if(i.length)return null;const d={displaced:Du,displacedBy:cC,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},h=Yd({impact:d,draggable:u,droppable:a,draggables:o,afterCritical:l}),p=Wl(u,a)?a:yC(a,u,o);return mC({draggable:u,destination:p,newPageBorderBoxCenter:h,viewport:n.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?d:null}const f=t[a.axis.line]<=r.page.borderBox.center[a.axis.line],s=(()=>{const d=r.descriptor.index;return r.descriptor.id===u.descriptor.id||f?d:d+1})(),c=ic(a.axis,u.displaceBy);return zf({draggable:u,insideDestination:i,destination:a,viewport:n,displacedBy:c,last:Du,index:s})},dW=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:r,draggable:i,isOver:u,draggables:o,droppables:a,viewport:n,afterCritical:l}=e;const f=oW({isMovingForward:t,pageBorderBoxCenter:r,source:u,droppables:a,viewport:n});if(!f)return null;const s=ql(f.descriptor.id,o),c=sW({pageBorderBoxCenter:r,viewport:n,destination:f,insideDestination:s,afterCritical:l}),d=fW({previousPageBorderBoxCenter:r,destination:f,draggable:i,draggables:o,moveRelativeTo:c,insideDestination:s,viewport:n,afterCritical:l});if(!d)return null;const h=Yd({impact:d,draggable:i,droppable:f,draggables:o,afterCritical:l});return{clientSelection:l1({pageBorderBoxCenter:h,draggable:i,viewport:n}),impact:d,scrollJumpRequest:null}},La=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const hW=(e,t)=>{const r=La(e);return r?t[r]:null};var pW=e=>{let{state:t,type:r}=e;const i=hW(t.impact,t.dimensions.droppables),u=!!i,o=t.dimensions.droppables[t.critical.droppable.id],a=i||o,n=a.axis.direction,l=n==="vertical"&&(r==="MOVE_UP"||r==="MOVE_DOWN")||n==="horizontal"&&(r==="MOVE_LEFT"||r==="MOVE_RIGHT");if(l&&!u)return null;const f=r==="MOVE_DOWN"||r==="MOVE_RIGHT",s=t.dimensions.draggables[t.critical.draggable.id],c=t.current.page.borderBoxCenter,{draggables:d,droppables:h}=t.dimensions;return l?iW({isMovingForward:f,previousPageBorderBoxCenter:c,draggable:s,destination:a,draggables:d,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):dW({isMovingForward:f,previousPageBorderBoxCenter:c,draggable:s,isOver:a,draggables:d,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function go(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function bC(e){const t=Ua(e.top,e.bottom),r=Ua(e.left,e.right);return function(u){return t(u.y)&&r(u.x)}}function gW(e,t){return e.leftt.left&&e.topt.top}function mW(e){let{pageBorderBox:t,draggable:r,candidates:i}=e;const u=r.page.borderBox.center,o=i.map(a=>{const n=a.axis,l=Oo(a.axis.line,t.center[n.line],a.page.borderBox.center[n.crossAxisLine]);return{id:a.descriptor.id,distance:Pu(u,l)}}).sort((a,n)=>n.distance-a.distance);return o[0]?o[0].id:null}function vW(e){let{pageBorderBox:t,draggable:r,droppables:i}=e;const u=Ud(i).filter(o=>{if(!o.isEnabled)return!1;const a=o.subject.active;if(!a||!gW(t,a))return!1;if(bC(a)(t.center))return!0;const n=o.axis,l=a.center[n.crossAxisLine],f=t[n.crossAxisStart],s=t[n.crossAxisEnd],c=Ua(a[n.crossAxisStart],a[n.crossAxisEnd]),d=c(f),h=c(s);return!d&&!h?!0:d?fl});return u.length?u.length===1?u[0].descriptor.id:mW({pageBorderBox:t,draggable:r,candidates:u}):null}const xC=(e,t)=>Ja(ac(e,t));var yW=(e,t)=>{const r=e.frame;return r?xC(t,r.scroll.diff.value):t};function wC(e){let{displaced:t,id:r}=e;return!!(t.visible[r]||t.invisible[r])}function bW(e){let{draggable:t,closest:r,inHomeList:i}=e;return r?i&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}var xW=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:r,destination:i,insideDestination:u,last:o,viewport:a,afterCritical:n}=e;const l=i.axis,f=ic(i.axis,r.displaceBy),s=f.value,c=t[l.start],d=t[l.end],p=Vd(r,u).find(y=>{const v=y.descriptor.id,g=y.page.borderBox.center[l.line],b=Ji(v,n),x=wC({displaced:o,id:v});return b?x?d<=g:c{let{draggable:t,pageBorderBoxWithDroppableScroll:r,previousImpact:i,destination:u,insideDestination:o,afterCritical:a}=e;if(!u.isCombineEnabled)return null;const n=u.axis,l=ic(u.axis,t.displaceBy),f=l.value,s=r[n.start],c=r[n.end],h=Vd(t,o).find(m=>{const y=m.descriptor.id,v=m.page.borderBox,b=v[n.size]/wW,x=Ji(y,a),_=wC({displaced:i.displaced,id:y});return x?_?c>v[n.start]+b&&cv[n.start]-f+b&&sv[n.start]+f+b&&cv[n.start]+b&&s{let{pageOffset:t,draggable:r,draggables:i,droppables:u,previousImpact:o,viewport:a,afterCritical:n}=e;const l=xC(r.page.borderBox,t),f=vW({pageBorderBox:l,draggable:r,droppables:u});if(!f)return Fq;const s=u[f],c=ql(s.descriptor.id,i),d=yW(s,l);return _W({pageBorderBoxWithDroppableScroll:d,draggable:r,previousImpact:o,destination:s,insideDestination:c,afterCritical:n})||xW({pageBorderBoxWithDroppableScroll:d,draggable:r,destination:s,insideDestination:c,last:o.displaced,viewport:a,afterCritical:n})},s1=(e,t)=>({...e,[t.descriptor.id]:t});const TW=e=>{let{previousImpact:t,impact:r,droppables:i}=e;const u=La(t),o=La(r);if(!u||u===o)return i;const a=i[u];if(!a.subject.withPlaceholder)return i;const n=cW(a);return s1(i,n)};var kW=e=>{let{draggable:t,draggables:r,droppables:i,previousImpact:u,impact:o}=e;const a=TW({previousImpact:u,impact:o,droppables:i}),n=La(o);if(!n)return a;const l=i[n];if(Wl(t,l)||l.subject.withPlaceholder)return a;const f=yC(l,t,r);return s1(a,f)},Tu=e=>{let{state:t,clientSelection:r,dimensions:i,viewport:u,impact:o,scrollJumpRequest:a}=e;const n=u||t.viewport,l=i||t.dimensions,f=r||t.current.client.selection,s=Da(f,t.initial.client.selection),c={offset:s,selection:f,borderBoxCenter:fa(t.initial.client.borderBoxCenter,s)},d={selection:fa(c.selection,n.scroll.current),borderBoxCenter:fa(c.borderBoxCenter,n.scroll.current),offset:fa(c.offset,n.scroll.diff.value)},h={client:c,page:d};if(t.phase==="COLLECTING")return{...t,dimensions:l,viewport:n,current:h};const p=l.draggables[t.critical.draggable.id],m=o||_C({pageOffset:d.offset,draggable:p,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:n,afterCritical:t.afterCritical}),y=kW({draggable:p,impact:m,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return{...t,current:h,dimensions:{draggables:l.draggables,droppables:y},impact:m,viewport:n,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null}};function MW(e,t){return e.map(r=>t[r])}var TC=e=>{let{impact:t,viewport:r,draggables:i,destination:u,forceShouldAnimate:o}=e;const a=t.displaced,n=MW(a.all,i),l=Eu({afterDragging:n,destination:u,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:o,last:a});return{...t,displaced:l}},kC=e=>{let{impact:t,draggable:r,droppable:i,draggables:u,viewport:o,afterCritical:a}=e;const n=Yd({impact:t,draggable:r,draggables:u,droppable:i,afterCritical:a});return l1({pageBorderBoxCenter:n,draggable:r,viewport:o})},MC=e=>{let{state:t,dimensions:r,viewport:i}=e;t.movementMode!=="SNAP"&&un();const u=t.impact,o=i||t.viewport,a=r||t.dimensions,{draggables:n,droppables:l}=a,f=n[t.critical.draggable.id],s=La(u);s||un();const c=l[s],d=TC({impact:u,viewport:o,destination:c,draggables:n}),h=kC({impact:d,draggable:f,droppable:c,draggables:n,viewport:o,afterCritical:t.afterCritical});return Tu({impact:d,clientSelection:h,state:t,dimensions:a,viewport:o})},SW=e=>({index:e.index,droppableId:e.droppableId}),SC=e=>{let{draggable:t,home:r,draggables:i,viewport:u}=e;const o=ic(r.axis,t.displaceBy),a=ql(r.descriptor.id,i),n=a.indexOf(t);n===-1&&un();const l=a.slice(n+1),f=l.reduce((h,p)=>(h[p.descriptor.id]=!0,h),{}),s={inVirtualList:r.descriptor.mode==="virtual",displacedBy:o,effected:f};return{impact:{displaced:Eu({afterDragging:l,destination:r,displacedBy:o,last:null,viewport:u.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:SW(t.descriptor)}},afterCritical:s}},CW=(e,t)=>({draggables:e.draggables,droppables:s1(e.droppables,t)}),OW=e=>{let{draggable:t,offset:r,initialWindowScroll:i}=e;const u=Nf(t.client,r),o=jf(u,i);return{...t,placeholder:{...t.placeholder,client:u},client:u,page:o}},AW=e=>{const t=e.frame;return t||un(),t},PW=e=>{let{additions:t,updatedDroppables:r,viewport:i}=e;const u=i.scroll.diff.value;return t.map(o=>{const a=o.descriptor.droppableId,n=r[a],f=AW(n).scroll.diff.value,s=fa(u,f);return OW({draggable:o,offset:s,initialWindowScroll:i.scroll.initial})})},DW=e=>{let{state:t,published:r}=e;const i=r.modified.map(g=>{const b=t.dimensions.droppables[g.droppableId];return n1(b,g.scroll)}),u={...t.dimensions.droppables,...sC(i)},o=uC(PW({additions:r.additions,updatedDroppables:u,viewport:t.viewport})),a={...t.dimensions.draggables,...o};r.removals.forEach(g=>{delete a[g]});const n={droppables:u,draggables:a},l=La(t.impact),f=l?n.droppables[l]:null,s=n.draggables[t.critical.draggable.id],c=n.droppables[t.critical.droppable.id],{impact:d,afterCritical:h}=SC({draggable:s,home:c,draggables:a,viewport:t.viewport}),p=f&&f.isCombineEnabled?t.impact:d,m=_C({pageOffset:t.current.page.offset,draggable:n.draggables[t.critical.draggable.id],draggables:n.draggables,droppables:n.droppables,previousImpact:p,viewport:t.viewport,afterCritical:h}),y={...t,phase:"DRAGGING",impact:m,onLiftImpact:d,dimensions:n,afterCritical:h,forceShouldAnimate:!1};return t.phase==="COLLECTING"?y:{...y,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const N0=e=>e.movementMode==="SNAP",ym=(e,t,r)=>{const i=CW(e.dimensions,t);return!N0(e)||r?Tu({state:e,dimensions:i}):MC({state:e,dimensions:i})};function bm(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const a3={phase:"IDLE",completed:null,shouldFlush:!1};var EW=function(e,t){if(e===void 0&&(e=a3),t.type==="FLUSH")return{...a3,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&un();const{critical:r,clientSelection:i,viewport:u,dimensions:o,movementMode:a}=t.payload,n=o.draggables[r.draggable.id],l=o.droppables[r.droppable.id],f={selection:i,borderBoxCenter:n.client.borderBox.center,offset:ta},s={client:f,page:{selection:fa(f.selection,u.scroll.initial),borderBoxCenter:fa(f.selection,u.scroll.initial),offset:fa(f.selection,u.scroll.diff.value)}},c=Ud(o.droppables).every(m=>!m.isFixedOnPage),{impact:d,afterCritical:h}=SC({draggable:n,home:l,draggables:o.draggables,viewport:u});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:o,initial:s,current:s,isWindowScrollAllowed:c,impact:d,afterCritical:h,onLiftImpact:d,viewport:u,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&un(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||un(),DW({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;go(e)||un();const{client:r}=t.payload;return Xi(r,e.current.client.selection)?e:Tu({state:e,clientSelection:r,impact:N0(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return bm(e);go(e)||un();const{id:r,newScroll:i}=t.payload,u=e.dimensions.droppables[r];if(!u)return e;const o=n1(u,i);return ym(e,o,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;go(e)||un();const{id:r,isEnabled:i}=t.payload,u=e.dimensions.droppables[r];u||un(),u.isEnabled===i&&un();const o={...u,isEnabled:i};return ym(e,o,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;go(e)||un();const{id:r,isCombineEnabled:i}=t.payload,u=e.dimensions.droppables[r];u||un(),u.isCombineEnabled===i&&un();const o={...u,isCombineEnabled:i};return ym(e,o,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;go(e)||un(),e.isWindowScrollAllowed||un();const r=t.payload.newScroll;if(Xi(e.viewport.scroll.current,r))return bm(e);const i=gC(e.viewport,r);return N0(e)?MC({state:e,viewport:i}):Tu({state:e,viewport:i})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!go(e))return e;const r=t.payload.maxScroll;if(Xi(r,e.viewport.scroll.max))return e;const i={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:i}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&un();const r=pW({state:e,type:t.type});return r?Tu({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const r=t.payload.reason;return e.phase!=="COLLECTING"&&un(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if(t.type==="DROP_ANIMATE"){const{completed:r,dropDuration:i,newHomeClientOffset:u}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||un(),{phase:"DROP_ANIMATING",completed:r,dropDuration:i,newHomeClientOffset:u,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:r}=t.payload;return{phase:"IDLE",completed:r,shouldFlush:!1}}return e};const RW=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),LW=e=>({type:"LIFT",payload:e}),IW=e=>({type:"INITIAL_PUBLISH",payload:e}),FW=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),NW=()=>({type:"COLLECTION_STARTING",payload:null}),jW=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),$W=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),BW=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),CC=e=>({type:"MOVE",payload:e}),zW=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),qW=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),WW=()=>({type:"MOVE_UP",payload:null}),UW=()=>({type:"MOVE_DOWN",payload:null}),HW=()=>({type:"MOVE_RIGHT",payload:null}),VW=()=>({type:"MOVE_LEFT",payload:null}),u1=()=>({type:"FLUSH",payload:null}),YW=e=>({type:"DROP_ANIMATE",payload:e}),c1=e=>({type:"DROP_COMPLETE",payload:e}),OC=e=>({type:"DROP",payload:e}),GW=e=>({type:"DROP_PENDING",payload:e}),AC=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var XW=e=>t=>{let{getState:r,dispatch:i}=t;return u=>o=>{if(o.type!=="LIFT"){u(o);return}const{id:a,clientSelection:n,movementMode:l}=o.payload,f=r();f.phase==="DROP_ANIMATING"&&i(c1({completed:f.completed})),r().phase!=="IDLE"&&un(),i(u1()),i(RW({draggableId:a,movementMode:l}));const c={draggableId:a,scrollOptions:{shouldPublishImmediately:l==="SNAP"}},{critical:d,dimensions:h,viewport:p}=e.startPublishing(c);i(IW({critical:d,dimensions:h,clientSelection:n,movementMode:l,viewport:p}))}},ZW=e=>()=>t=>r=>{r.type==="INITIAL_PUBLISH"&&e.dragging(),r.type==="DROP_ANIMATE"&&e.dropping(r.payload.completed.result.reason),(r.type==="FLUSH"||r.type==="DROP_COMPLETE")&&e.resting(),t(r)};const f1={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ru={opacity:{drop:0,combining:.7},scale:{drop:.75}},PC={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},co=`${PC.outOfTheWay}s ${f1.outOfTheWay}`,ku={fluid:`opacity ${co}`,snap:`transform ${co}, opacity ${co}`,drop:e=>{const t=`${e}s ${f1.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${co}`,placeholder:`height ${co}, width ${co}, margin ${co}`},i3=e=>Xi(e,ta)?void 0:`translate(${e.x}px, ${e.y}px)`,j0={moveTo:i3,drop:(e,t)=>{const r=i3(e);if(r)return t?`${r} scale(${Ru.scale.drop})`:r}},{minDropTime:$0,maxDropTime:DC}=PC,KW=DC-$0,o3=1500,JW=.6;var QW=e=>{let{current:t,destination:r,reason:i}=e;const u=Pu(t,r);if(u<=0)return $0;if(u>=o3)return DC;const o=u/o3,a=$0+KW*o,n=i==="CANCEL"?a*JW:a;return Number(n.toFixed(2))},eU=e=>{let{impact:t,draggable:r,dimensions:i,viewport:u,afterCritical:o}=e;const{draggables:a,droppables:n}=i,l=La(t),f=l?n[l]:null,s=n[r.descriptor.droppableId],c=kC({impact:t,draggable:r,draggables:a,afterCritical:o,droppable:f||s,viewport:u});return Da(c,r.client.borderBox.center)},tU=e=>{let{draggables:t,reason:r,lastImpact:i,home:u,viewport:o,onLiftImpact:a}=e;return!i.at||r!=="DROP"?{impact:TC({draggables:t,impact:a,destination:u,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:i.at.type==="REORDER"?{impact:i,didDropInsideDroppable:!0}:{impact:{...i,displaced:Du},didDropInsideDroppable:!0}};const nU=e=>{let{getState:t,dispatch:r}=e;return i=>u=>{if(u.type!=="DROP"){i(u);return}const o=t(),a=u.payload.reason;if(o.phase==="COLLECTING"){r(GW({reason:a}));return}if(o.phase==="IDLE")return;o.phase==="DROP_PENDING"&&o.isWaiting&&un(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||un();const l=o.critical,f=o.dimensions,s=f.draggables[o.critical.draggable.id],{impact:c,didDropInsideDroppable:d}=tU({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),h=d?r1(c):null,p=d?Hd(c):null,m={index:l.draggable.index,droppableId:l.droppable.id},y={draggableId:s.descriptor.id,type:s.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:h,combine:p},v=eU({impact:c,draggable:s,dimensions:f,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:c};if(!(!Xi(o.current.client.offset,v)||!!y.combine)){r(c1({completed:g}));return}const x=QW({current:o.current.client.offset,destination:v,reason:a});r(YW({newHomeClientOffset:v,dropDuration:x,completed:g}))}};var rU=nU,EC=()=>({x:window.pageXOffset,y:window.pageYOffset});function aU(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function iU(e){let{onWindowScroll:t}=e;function r(){t(EC())}const i=Au(r),u=aU(i);let o=Gi;function a(){return o!==Gi}function n(){a()&&un(),o=qa(window,[u])}function l(){a()||un(),i.cancel(),o(),o=Gi}return{start:n,stop:l,isActive:a}}const oU=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",lU=e=>{const t=iU({onWindowScroll:r=>{e.dispatch(zW({newScroll:r}))}});return r=>i=>{!t.isActive()&&i.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&oU(i)&&t.stop(),r(i)}};var sU=lU,uU=e=>{let t=!1,r=!1;const i=setTimeout(()=>{r=!0}),u=o=>{t||r||(t=!0,e(o),clearTimeout(i))};return u.wasCalled=()=>t,u},cU=()=>{const e=[],t=u=>{const o=e.findIndex(n=>n.timerId===u);o===-1&&un();const[a]=e.splice(o,1);a.callback()};return{add:u=>{const o=setTimeout(()=>t(o)),a={timerId:o,callback:u};e.push(a)},flush:()=>{if(!e.length)return;const u=[...e];e.length=0,u.forEach(o=>{clearTimeout(o.timerId),o.callback()})}}};const fU=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,dU=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,hU=(e,t)=>{if(e===t)return!0;const r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,i=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&i},Ls=(e,t)=>{t()},Vc=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function xm(e,t,r,i){if(!e){r(i(t));return}const u=uU(r);e(t,{announce:u}),u.wasCalled()||r(i(t))}var pU=(e,t)=>{const r=cU();let i=null;const u=(c,d)=>{i&&un(),Ls("onBeforeCapture",()=>{const h=e().onBeforeCapture;h&&h({draggableId:c,mode:d})})},o=(c,d)=>{i&&un(),Ls("onBeforeDragStart",()=>{const h=e().onBeforeDragStart;h&&h(Vc(c,d))})},a=(c,d)=>{i&&un();const h=Vc(c,d);i={mode:d,lastCritical:c,lastLocation:h.source,lastCombine:null},r.add(()=>{Ls("onDragStart",()=>xm(e().onDragStart,h,t,df.onDragStart))})},n=(c,d)=>{const h=r1(d),p=Hd(d);i||un();const m=!hU(c,i.lastCritical);m&&(i.lastCritical=c);const y=!fU(i.lastLocation,h);y&&(i.lastLocation=h);const v=!dU(i.lastCombine,p);if(v&&(i.lastCombine=p),!m&&!y&&!v)return;const g={...Vc(c,i.mode),combine:p,destination:h};r.add(()=>{Ls("onDragUpdate",()=>xm(e().onDragUpdate,g,t,df.onDragUpdate))})},l=()=>{i||un(),r.flush()},f=c=>{i||un(),i=null,Ls("onDragEnd",()=>xm(e().onDragEnd,c,t,df.onDragEnd))};return{beforeCapture:u,beforeStart:o,start:a,update:n,flush:l,drop:f,abort:()=>{if(!i)return;const c={...Vc(i.lastCritical,i.mode),combine:null,destination:null,reason:"CANCEL"};f(c)}}},gU=(e,t)=>{const r=pU(e,t);return i=>u=>o=>{if(o.type==="BEFORE_INITIAL_CAPTURE"){r.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){const n=o.payload.critical;r.beforeStart(n,o.payload.movementMode),u(o),r.start(n,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){const n=o.payload.completed.result;r.flush(),u(o),r.drop(n);return}if(u(o),o.type==="FLUSH"){r.abort();return}const a=i.getState();a.phase==="DRAGGING"&&r.update(a.critical,a.impact)}};const mU=e=>t=>r=>{if(r.type!=="DROP_ANIMATION_FINISHED"){t(r);return}const i=e.getState();i.phase!=="DROP_ANIMATING"&&un(),e.dispatch(c1({completed:i.completed}))};var vU=mU;const yU=e=>{let t=null,r=null;function i(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return u=>o=>{if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&i(),u(o),o.type!=="DROP_ANIMATE")return;const a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(AC())}};r=requestAnimationFrame(()=>{r=null,t=qa(window,[a])})}};var bU=yU,xU=e=>()=>t=>r=>{(r.type==="DROP_COMPLETE"||r.type==="FLUSH"||r.type==="DROP_ANIMATE")&&e.stopPublishing(),t(r)},wU=e=>{let t=!1;return()=>r=>i=>{if(i.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(i.payload.critical.draggable.id),r(i),e.tryRestoreFocusRecorded();return}if(r(i),!!t){if(i.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(i.type==="DROP_COMPLETE"){t=!1;const u=i.payload.completed.result;u.combine&&e.tryShiftRecord(u.draggableId,u.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const _U=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var TU=e=>t=>r=>i=>{if(_U(i)){e.stop(),r(i);return}if(i.type==="INITIAL_PUBLISH"){r(i);const u=t.getState();u.phase!=="DRAGGING"&&un(),e.start(u);return}r(i),e.scroll(t.getState())};const kU=e=>t=>r=>{if(t(r),r.type!=="PUBLISH_WHILE_DRAGGING")return;const i=e.getState();i.phase==="DROP_PENDING"&&(i.isWaiting||e.dispatch(OC({reason:i.reason})))};var MU=kU;const SU=G4;var CU=e=>{let{dimensionMarshal:t,focusMarshal:r,styleMarshal:i,getResponders:u,announce:o,autoScroller:a}=e;return Y4(EW,SU(Wz(ZW(i),xU(t),XW(t),rU,vU,bU,MU,TU(a),sU,wU(r),gU(u,o))))};const wm=()=>({additions:{},removals:{},modified:{}});function OU(e){let{registry:t,callbacks:r}=e,i=wm(),u=null;const o=()=>{u||(r.collectionStarting(),u=requestAnimationFrame(()=>{u=null;const{additions:f,removals:s,modified:c}=i,d=Object.keys(f).map(m=>t.draggable.getById(m).getDimension(ta)).sort((m,y)=>m.descriptor.index-y.descriptor.index),h=Object.keys(c).map(m=>{const v=t.droppable.getById(m).callbacks.getScrollWhileDragging();return{droppableId:m,scroll:v}}),p={additions:d,removals:Object.keys(s),modified:h};i=wm(),r.publish(p)}))};return{add:f=>{const s=f.descriptor.id;i.additions[s]=f,i.modified[f.descriptor.droppableId]=!0,i.removals[s]&&delete i.removals[s],o()},remove:f=>{const s=f.descriptor;i.removals[s.id]=!0,i.modified[s.droppableId]=!0,i.additions[s.id]&&delete i.additions[s.id],o()},stop:()=>{u&&(cancelAnimationFrame(u),u=null,i=wm())}}}var RC=e=>{let{scrollHeight:t,scrollWidth:r,height:i,width:u}=e;const o=Da({x:r,y:t},{x:u,y:i});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},LC=()=>{const e=document.documentElement;return e||un(),e},IC=()=>{const e=LC();return RC({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},AU=()=>{const e=EC(),t=IC(),r=e.y,i=e.x,u=LC(),o=u.clientWidth,a=u.clientHeight,n=i+o,l=r+a;return{frame:Ja({top:r,left:i,right:n,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:ta,displacement:ta}}}},PU=e=>{let{critical:t,scrollOptions:r,registry:i}=e;const u=AU(),o=u.scroll.current,a=t.droppable,n=i.droppable.getAllByType(a.type).map(c=>c.callbacks.getDimensionAndWatchScroll(o,r)),l=i.draggable.getAllByType(t.draggable.type).map(c=>c.getDimension(o));return{dimensions:{draggables:uC(l),droppables:sC(n)},critical:t,viewport:u}};function l3(e,t,r){return!(r.descriptor.id===t.id||r.descriptor.type!==t.type||e.droppable.getById(r.descriptor.droppableId).descriptor.mode!=="virtual")}var DU=(e,t)=>{let r=null;const i=OU({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),u=(d,h)=>{e.droppable.exists(d)||un(),r&&t.updateDroppableIsEnabled({id:d,isEnabled:h})},o=(d,h)=>{r&&(e.droppable.exists(d)||un(),t.updateDroppableIsCombineEnabled({id:d,isCombineEnabled:h}))},a=(d,h)=>{r&&(e.droppable.exists(d)||un(),t.updateDroppableScroll({id:d,newScroll:h}))},n=(d,h)=>{r&&e.droppable.getById(d).callbacks.scroll(h)},l=()=>{if(!r)return;i.stop();const d=r.critical.droppable;e.droppable.getAllByType(d.type).forEach(h=>h.callbacks.dragStopped()),r.unsubscribe(),r=null},f=d=>{r||un();const h=r.critical.draggable;d.type==="ADDITION"&&l3(e,h,d.value)&&i.add(d.value),d.type==="REMOVAL"&&l3(e,h,d.value)&&i.remove(d.value)};return{updateDroppableIsEnabled:u,updateDroppableIsCombineEnabled:o,scrollDroppable:n,updateDroppableScroll:a,startPublishing:d=>{r&&un();const h=e.draggable.getById(d.draggableId),p=e.droppable.getById(h.descriptor.droppableId),m={draggable:h.descriptor,droppable:p.descriptor},y=e.subscribe(f);return r={critical:m,unsubscribe:y},PU({critical:m,registry:e,scrollOptions:d.scrollOptions})},stopPublishing:l}},FC=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",EU=e=>{window.scrollBy(e.x,e.y)};const RU=ea(e=>Ud(e).filter(t=>!(!t.isEnabled||!t.frame))),LU=(e,t)=>RU(t).find(i=>(i.frame||un(),bC(i.frame.pageMarginBox)(e)))||null;var IU=e=>{let{center:t,destination:r,droppables:i}=e;if(r){const o=i[r];return o.frame?o:null}return LU(t,i)};const Lu={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var FU=function(e,t,r){r===void 0&&(r=()=>Lu);const i=r(),u=e[t.size]*i.startFromPercentage,o=e[t.size]*i.maxScrollAtPercentage;return{startScrollingFrom:u,maxScrollValueAt:o}},NC=e=>{let{startOfRange:t,endOfRange:r,current:i}=e;const u=r-t;return u===0?0:(i-t)/u},d1=1,NU=function(e,t,r){r===void 0&&(r=()=>Lu);const i=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return i.maxPixelScroll;if(e===t.startScrollingFrom)return d1;const o=1-NC({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=i.maxPixelScroll*i.ease(o);return Math.ceil(a)},jU=(e,t,r)=>{const i=r(),u=i.durationDampening.accelerateAt,o=i.durationDampening.stopDampeningAt,a=t,n=o,f=Date.now()-a;if(f>=o)return e;if(f{let{distanceToEdge:t,thresholds:r,dragStartTime:i,shouldUseTimeDampening:u,getAutoScrollerOptions:o}=e;const a=NU(t,r,o);return a===0?0:u?Math.max(jU(a,i,o),d1):a},u3=e=>{let{container:t,distanceToEdges:r,dragStartTime:i,axis:u,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=FU(t,u,a);return r[u.end]{let{container:t,subject:r,proposedScroll:i}=e;const u=r.height>t.height,o=r.width>t.width;return!o&&!u?i:o&&u?null:{x:o?0:i.x,y:u?0:i.y}};const BU=lC(e=>e===0?0:e);var jC=e=>{let{dragStartTime:t,container:r,subject:i,center:u,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n={top:u.y-r.top,right:r.right-u.x,bottom:r.bottom-u.y,left:u.x-r.left},l=u3({container:r,distanceToEdges:n,dragStartTime:t,axis:a1,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),f=u3({container:r,distanceToEdges:n,dragStartTime:t,axis:dC,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),s=BU({x:f,y:l});if(Xi(s,ta))return null;const c=$U({container:r,subject:i,proposedScroll:s});return c?Xi(c,ta)?null:c:null};const zU=lC(e=>e===0?0:e>0?1:-1),h1=(()=>{const e=(t,r)=>t<0?t:t>r?t-r:0;return t=>{let{current:r,max:i,change:u}=t;const o=fa(r,u),a={x:e(o.x,i.x),y:e(o.y,i.y)};return Xi(a,ta)?null:a}})(),$C=e=>{let{max:t,current:r,change:i}=e;const u={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},o=zU(i),a=h1({max:u,current:r,change:o});return!a||o.x!==0&&a.x===0||o.y!==0&&a.y===0},p1=(e,t)=>$C({current:e.scroll.current,max:e.scroll.max,change:t}),qU=(e,t)=>{if(!p1(e,t))return null;const r=e.scroll.max,i=e.scroll.current;return h1({current:i,max:r,change:t})},g1=(e,t)=>{const r=e.frame;return r?$C({current:r.scroll.current,max:r.scroll.max,change:t}):!1},WU=(e,t)=>{const r=e.frame;return!r||!g1(e,t)?null:h1({current:r.scroll.current,max:r.scroll.max,change:t})};var UU=e=>{let{viewport:t,subject:r,center:i,dragStartTime:u,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=jC({dragStartTime:u,container:t.frame,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return n&&p1(t,n)?n:null},HU=e=>{let{droppable:t,subject:r,center:i,dragStartTime:u,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=t.frame;if(!n)return null;const l=jC({dragStartTime:u,container:n.pageMarginBox,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return l&&g1(t,l)?l:null},c3=e=>{let{state:t,dragStartTime:r,shouldUseTimeDampening:i,scrollWindow:u,scrollDroppable:o,getAutoScrollerOptions:a}=e;const n=t.current.page.borderBoxCenter,f=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const d=t.viewport,h=UU({dragStartTime:r,viewport:d,subject:f,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});if(h){u(h);return}}const s=IU({center:n,destination:La(t.impact),droppables:t.dimensions.droppables});if(!s)return;const c=HU({dragStartTime:r,droppable:s,subject:f,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});c&&o(s.descriptor.id,c)},VU=e=>{let{scrollWindow:t,scrollDroppable:r,getAutoScrollerOptions:i=()=>Lu}=e;const u=Au(t),o=Au(r);let a=null;const n=s=>{a||un();const{shouldUseTimeDampening:c,dragStartTime:d}=a;c3({state:s,scrollWindow:u,scrollDroppable:o,dragStartTime:d,shouldUseTimeDampening:c,getAutoScrollerOptions:i})};return{start:s=>{a&&un();const c=Date.now();let d=!1;const h=()=>{d=!0};c3({state:s,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:h,scrollDroppable:h,getAutoScrollerOptions:i}),a={dragStartTime:c,shouldUseTimeDampening:d},d&&n(s)},stop:()=>{a&&(u.cancel(),o.cancel(),a=null)},scroll:n}},YU=e=>{let{move:t,scrollDroppable:r,scrollWindow:i}=e;const u=(l,f)=>{const s=fa(l.current.client.selection,f);t({client:s})},o=(l,f)=>{if(!g1(l,f))return f;const s=WU(l,f);if(!s)return r(l.descriptor.id,f),null;const c=Da(f,s);return r(l.descriptor.id,c),Da(f,c)},a=(l,f,s)=>{if(!l||!p1(f,s))return s;const c=qU(f,s);if(!c)return i(s),null;const d=Da(s,c);return i(d),Da(s,d)};return l=>{const f=l.scrollJumpRequest;if(!f)return;const s=La(l.impact);s||un();const c=o(l.dimensions.droppables[s],f);if(!c)return;const d=l.viewport,h=a(l.isWindowScrollAllowed,d,c);h&&u(l,h)}},GU=e=>{let{scrollDroppable:t,scrollWindow:r,move:i,getAutoScrollerOptions:u}=e;const o=VU({scrollWindow:r,scrollDroppable:t,getAutoScrollerOptions:u}),a=YU({move:i,scrollWindow:r,scrollDroppable:t});return{scroll:f=>{if(!(u().disabled||f.phase!=="DRAGGING")){if(f.movementMode==="FLUID"){o.scroll(f);return}f.scrollJumpRequest&&a(f)}},start:o.start,stop:o.stop}};const Sl="data-rfd",Cl=(()=>{const e=`${Sl}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),B0=(()=>{const e=`${Sl}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),XU=(()=>{const e=`${Sl}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),f3={contextId:`${Sl}-scroll-container-context-id`},ZU=e=>t=>`[${t}="${e}"]`,Is=(e,t)=>e.map(r=>{const i=r.styles[t];return i?`${r.selector} { ${i} }`:""}).join(" "),KU="pointer-events: none;";var JU=e=>{const t=ZU(e),r=(()=>{const n=` cursor: -webkit-grab; cursor: grab; `;return{selector:t(Cl.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; - `,resting:n,dragging:aH,dropAnimating:n}}})(),i=(()=>{const n=` + `,resting:n,dragging:KU,dropAnimating:n}}})(),i=(()=>{const n=` transition: ${ku.outOfTheWay}; - `;return{selector:t(z0.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}})(),c={selector:t(nH.contextId),styles:{always:"overflow-anchor: none;"}},a=[i,r,c,{selector:"body",styles:{dragging:` + `;return{selector:t(B0.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}})(),u={selector:t(XU.contextId),styles:{always:"overflow-anchor: none;"}},a=[i,r,u,{selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; @@ -252,54 +252,54 @@ ${L.current.stack} -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}}];return{always:Is(a,"always"),resting:Is(a,"resting"),dragging:Is(a,"dragging"),dropAnimating:Is(a,"dropAnimating"),userCancel:Is(a,"userCancel")}};const oH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?$e.useLayoutEffect:$e.useEffect;var Ia=oH;const _m=()=>{const e=document.querySelector("head");return e||un(),e},p3=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function lH(e,t){const r=Xn(()=>iH(e),[e]),i=$e.useRef(null),c=$e.useRef(null),o=Cn(ea(u=>{const d=c.current;d||un(),d.textContent=u}),[]),a=Cn(u=>{const d=i.current;d||un(),d.textContent=u},[]);Ia(()=>{!i.current&&!c.current||un();const u=p3(t),d=p3(t);return i.current=u,c.current=d,u.setAttribute(`${Sl}-always`,e),d.setAttribute(`${Sl}-dynamic`,e),_m().appendChild(u),_m().appendChild(d),a(r.always),o(r.resting),()=>{const h=p=>{const m=p.current;m||un(),_m().removeChild(m),p.current=null};h(i),h(c)}},[t,a,o,r.always,r.resting,e]);const n=Cn(()=>o(r.dragging),[o,r.dragging]),l=Cn(u=>{if(u==="DROP"){o(r.dropAnimating);return}o(r.userCancel)},[o,r.dropAnimating,r.userCancel]),f=Cn(()=>{c.current&&o(r.resting)},[o,r.resting]);return Xn(()=>({dragging:n,dropping:l,resting:f}),[n,l,f])}function WC(e,t){return Array.from(e.querySelectorAll(t))}var UC=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function Gd(e){return e instanceof UC(e).HTMLElement}function sH(e,t){const r=`[${Cl.contextId}="${e}"]`,i=WC(document,r);if(!i.length)return null;const c=i.find(o=>o.getAttribute(Cl.draggableId)===t);return!c||!Gd(c)?null:c}function uH(e){const t=$e.useRef({}),r=$e.useRef(null),i=$e.useRef(null),c=$e.useRef(!1),o=Cn(function(d,h){const p={id:d,focus:h};return t.current[d]=p,function(){const y=t.current;y[d]!==p&&delete y[d]}},[]),a=Cn(function(d){const h=sH(e,d);h&&h!==document.activeElement&&h.focus()},[e]),n=Cn(function(d,h){r.current===d&&(r.current=h)},[]),l=Cn(function(){i.current||c.current&&(i.current=requestAnimationFrame(()=>{i.current=null;const d=r.current;d&&a(d)}))},[a]),f=Cn(function(d){r.current=null;const h=document.activeElement;h&&h.getAttribute(Cl.draggableId)===d&&(r.current=d)},[]);return Ia(()=>(c.current=!0,function(){c.current=!1;const d=i.current;d&&cancelAnimationFrame(d)}),[]),Xn(()=>({register:o,tryRecordFocus:f,tryRestoreFocusRecorded:l,tryShiftRecord:n}),[o,f,l,n])}function cH(){const e={draggables:{},droppables:{}},t=[];function r(u){return t.push(u),function(){const h=t.indexOf(u);h!==-1&&t.splice(h,1)}}function i(u){t.length&&t.forEach(d=>d(u))}function c(u){return e.draggables[u]||null}function o(u){const d=c(u);return d||un(),d}const a={register:u=>{e.draggables[u.descriptor.id]=u,i({type:"ADDITION",value:u})},update:(u,d)=>{const h=e.draggables[d.descriptor.id];h&&h.uniqueId===u.uniqueId&&(delete e.draggables[d.descriptor.id],e.draggables[u.descriptor.id]=u)},unregister:u=>{const d=u.descriptor.id,h=c(d);h&&u.uniqueId===h.uniqueId&&(delete e.draggables[d],e.droppables[u.descriptor.droppableId]&&i({type:"REMOVAL",value:u}))},getById:o,findById:c,exists:u=>!!c(u),getAllByType:u=>Object.values(e.draggables).filter(d=>d.descriptor.type===u)};function n(u){return e.droppables[u]||null}function l(u){const d=n(u);return d||un(),d}const f={register:u=>{e.droppables[u.descriptor.id]=u},unregister:u=>{const d=n(u.descriptor.id);d&&u.uniqueId===d.uniqueId&&delete e.droppables[u.descriptor.id]},getById:l,findById:n,exists:u=>!!n(u),getAllByType:u=>Object.values(e.droppables).filter(d=>d.descriptor.type===u)};function s(){e.draggables={},e.droppables={},t.length=0}return{draggable:a,droppable:f,subscribe:r,clean:s}}function fH(){const e=Xn(cH,[]);return $e.useEffect(()=>function(){et.version.startsWith("16")||et.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var v1=et.createContext(null),qf=()=>{const e=document.body;return e||un(),e};const dH={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var hH=dH;const pH=e=>`rfd-announcement-${e}`;function gH(e){const t=Xn(()=>pH(e),[e]),r=$e.useRef(null);return $e.useEffect(function(){const o=document.createElement("div");return r.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),Gt(o.style,hH),qf().appendChild(o),function(){setTimeout(function(){const l=qf();l.contains(o)&&l.removeChild(o),o===r.current&&(r.current=null)})}},[t]),Cn(c=>{const o=r.current;if(o){o.textContent=c;return}},[])}let HC=0;const VC={separator:"::"};function mH(){HC=0}function vH(e,t){return t===void 0&&(t=VC),Xn(()=>`${e}${t.separator}${HC++}`,[t.separator,e])}function yH(e,t){t===void 0&&(t=VC);const r=et.useId();return Xn(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}var y1="useId"in et?yH:vH;function bH(e){let{contextId:t,uniqueId:r}=e;return`rfd-hidden-text-${t}-${r}`}function xH(e){let{contextId:t,text:r}=e;const i=y1("hidden-text",{separator:"-"}),c=Xn(()=>bH({contextId:t,uniqueId:i}),[i,t]);return $e.useEffect(function(){const a=document.createElement("div");return a.id=c,a.textContent=r,a.style.display="none",qf().appendChild(a),function(){const l=qf();l.contains(a)&&l.removeChild(a)}},[c,r]),c}var Xd=et.createContext(null);function YC(e){const t=$e.useRef(e);return $e.useEffect(()=>{t.current=e}),t}function wH(){let e=null;function t(){return!!e}function r(a){return a===e}function i(a){e&&un();const n={abandon:a};return e=n,n}function c(){e||un(),e=null}function o(){e&&(e.abandon(),c())}return{isClaimed:t,isActive:r,claim:i,release:c,tryAbandon:o}}function Iu(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const _H=9,TH=13,b1=27,GC=32,kH=33,MH=34,SH=35,CH=36,OH=37,AH=38,PH=39,DH=40,EH={[TH]:!0,[_H]:!0};var XC=e=>{EH[e.keyCode]&&e.preventDefault()};const RH=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(i=>`on${i}`in document)||e})();var Zd=RH;const ZC=0,g3=5;function LH(e,t){return Math.abs(t.x-e.x)>=g3||Math.abs(t.y-e.y)>=g3}const m3={type:"IDLE"};function IH(e){let{cancel:t,completed:r,getPhase:i,setPhase:c}=e;return[{eventName:"mousemove",fn:o=>{const{button:a,clientX:n,clientY:l}=o;if(a!==ZC)return;const f={x:n,y:l},s=i();if(s.type==="DRAGGING"){o.preventDefault(),s.actions.move(f);return}s.type!=="PENDING"&&un();const u=s.point;if(!LH(u,f))return;o.preventDefault();const d=s.actions.fluidLift(f);c({type:"DRAGGING",actions:d})}},{eventName:"mouseup",fn:o=>{const a=i();if(a.type!=="DRAGGING"){t();return}o.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:o=>{i().type==="DRAGGING"&&o.preventDefault(),t()}},{eventName:"keydown",fn:o=>{if(i().type==="PENDING"){t();return}if(o.keyCode===b1){o.preventDefault(),t();return}XC(o)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{i().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:o=>{const a=i();if(a.type==="IDLE"&&un(),a.actions.shouldRespectForcePress()){t();return}o.preventDefault()}},{eventName:Zd,fn:t}]}function KC(e){const t=$e.useRef(m3),r=$e.useRef(Gi),i=Xn(()=>({eventName:"mousedown",fn:function(u){if(u.defaultPrevented||u.button!==ZC||u.ctrlKey||u.metaKey||u.shiftKey||u.altKey)return;const d=e.findClosestDraggableId(u);if(!d)return;const h=e.tryGetLock(d,a,{sourceEvent:u});if(!h)return;u.preventDefault();const p={x:u.clientX,y:u.clientY};r.current(),f(h,p)}}),[e]),c=Xn(()=>({eventName:"webkitmouseforcewillbegin",fn:s=>{if(s.defaultPrevented)return;const u=e.findClosestDraggableId(s);if(!u)return;const d=e.findOptionsForDraggable(u);d&&(d.shouldRespectForcePress||e.canGetLock(u)&&s.preventDefault())}}),[e]),o=Cn(function(){const u={passive:!1,capture:!0};r.current=qa(window,[c,i],u)},[c,i]),a=Cn(()=>{t.current.type!=="IDLE"&&(t.current=m3,r.current(),o())},[o]),n=Cn(()=>{const s=t.current;a(),s.type==="DRAGGING"&&s.actions.cancel({shouldBlockNextClick:!0}),s.type==="PENDING"&&s.actions.abort()},[a]),l=Cn(function(){const u={capture:!0,passive:!1},d=IH({cancel:n,completed:a,getPhase:()=>t.current,setPhase:h=>{t.current=h}});r.current=qa(window,d,u)},[n,a]),f=Cn(function(u,d){t.current.type!=="IDLE"&&un(),t.current={type:"PENDING",point:d,actions:u},l()},[l]);Ia(function(){return o(),function(){r.current()}},[o])}function FH(){}const NH={[MH]:!0,[kH]:!0,[CH]:!0,[SH]:!0};function jH(e,t){function r(){t(),e.cancel()}function i(){t(),e.drop()}return[{eventName:"keydown",fn:c=>{if(c.keyCode===b1){c.preventDefault(),r();return}if(c.keyCode===GC){c.preventDefault(),i();return}if(c.keyCode===DH){c.preventDefault(),e.moveDown();return}if(c.keyCode===AH){c.preventDefault(),e.moveUp();return}if(c.keyCode===PH){c.preventDefault(),e.moveRight();return}if(c.keyCode===OH){c.preventDefault(),e.moveLeft();return}if(NH[c.keyCode]){c.preventDefault();return}XC(c)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:Zd,fn:r}]}function JC(e){const t=$e.useRef(FH),r=Xn(()=>({eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==GC)return;const a=e.findClosestDraggableId(o);if(!a)return;const n=e.tryGetLock(a,s,{sourceEvent:o});if(!n)return;o.preventDefault();let l=!0;const f=n.snapLift();t.current();function s(){l||un(),l=!1,t.current(),i()}t.current=qa(window,jH(f,s),{capture:!0,passive:!1})}}),[e]),i=Cn(function(){const o={passive:!1,capture:!0};t.current=qa(window,[r],o)},[r]);Ia(function(){return i(),function(){t.current()}},[i])}const Tm={type:"IDLE"},$H=120,BH=.15;function zH(e){let{cancel:t,getPhase:r}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:i=>{i.preventDefault()}},{eventName:"keydown",fn:i=>{if(r().type!=="DRAGGING"){t();return}i.keyCode===b1&&i.preventDefault(),t()}},{eventName:Zd,fn:t}]}function qH(e){let{cancel:t,completed:r,getPhase:i}=e;return[{eventName:"touchmove",options:{capture:!1},fn:c=>{const o=i();if(o.type!=="DRAGGING"){t();return}o.hasMoved=!0;const{clientX:a,clientY:n}=c.touches[0],l={x:a,y:n};c.preventDefault(),o.actions.move(l)}},{eventName:"touchend",fn:c=>{const o=i();if(o.type!=="DRAGGING"){t();return}c.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:c=>{if(i().type!=="DRAGGING"){t();return}c.preventDefault(),t()}},{eventName:"touchforcechange",fn:c=>{const o=i();o.type==="IDLE"&&un();const a=c.touches[0];if(!a||!(a.force>=BH))return;const l=o.actions.shouldRespectForcePress();if(o.type==="PENDING"){l&&t();return}if(l){if(o.hasMoved){c.preventDefault();return}t();return}c.preventDefault()}},{eventName:Zd,fn:t}]}function QC(e){const t=$e.useRef(Tm),r=$e.useRef(Gi),i=Cn(function(){return t.current},[]),c=Cn(function(h){t.current=h},[]),o=Xn(()=>({eventName:"touchstart",fn:function(h){if(h.defaultPrevented)return;const p=e.findClosestDraggableId(h);if(!p)return;const m=e.tryGetLock(p,n,{sourceEvent:h});if(!m)return;const y=h.touches[0],{clientX:v,clientY:g}=y,b={x:v,y:g};r.current(),u(m,b)}}),[e]),a=Cn(function(){const h={capture:!0,passive:!1};r.current=qa(window,[o],h)},[o]),n=Cn(()=>{const d=t.current;d.type!=="IDLE"&&(d.type==="PENDING"&&clearTimeout(d.longPressTimerId),c(Tm),r.current(),a())},[a,c]),l=Cn(()=>{const d=t.current;n(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[n]),f=Cn(function(){const h={capture:!0,passive:!1},p={cancel:l,completed:n,getPhase:i},m=qa(window,qH(p),h),y=qa(window,zH(p),h);r.current=function(){m(),y()}},[l,i,n]),s=Cn(function(){const h=i();h.type!=="PENDING"&&un();const p=h.actions.fluidLift(h.point);c({type:"DRAGGING",actions:p,hasMoved:!1})},[i,c]),u=Cn(function(h,p){i().type!=="IDLE"&&un();const m=setTimeout(s,$H);c({type:"PENDING",point:p,actions:h,longPressTimerId:m}),f()},[f,i,c,s]);Ia(function(){return a(),function(){r.current();const p=i();p.type==="PENDING"&&(clearTimeout(p.longPressTimerId),c(Tm))}},[i,a,c]),Ia(function(){return qa(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const WH=["input","button","textarea","select","option","optgroup","video","audio"];function e6(e,t){if(t==null)return!1;if(WH.includes(t.tagName.toLowerCase()))return!0;const i=t.getAttribute("contenteditable");return i==="true"||i===""?!0:t===e?!1:e6(e,t.parentElement)}function UH(e,t){const r=t.target;return Gd(r)?e6(e,r):!1}var HH=e=>Ja(e.getBoundingClientRect()).center;function VH(e){return e instanceof UC(e).Element}const YH=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(i=>i in Element.prototype)||e})();function t6(e,t){return e==null?null:e[YH](t)?e:t6(e.parentElement,t)}function GH(e,t){return e.closest?e.closest(t):t6(e,t)}function XH(e){return`[${Cl.contextId}="${e}"]`}function ZH(e,t){const r=t.target;if(!VH(r))return null;const i=XH(e),c=GH(r,i);return!c||!Gd(c)?null:c}function KH(e,t){const r=ZH(e,t);return r?r.getAttribute(Cl.draggableId):null}function JH(e,t){const r=`[${z0.contextId}="${e}"]`,c=WC(document,r).find(o=>o.getAttribute(z0.id)===t);return!c||!Gd(c)?null:c}function QH(e){e.preventDefault()}function Xc(e){let{expected:t,phase:r,isLockActive:i,shouldWarn:c}=e;return!(!i()||t!==r)}function n6(e){let{lockAPI:t,store:r,registry:i,draggableId:c}=e;if(t.isClaimed())return!1;const o=i.draggable.findById(c);return!(!o||!o.options.isEnabled||!$C(r.getState(),c))}function eV(e){let{lockAPI:t,contextId:r,store:i,registry:c,draggableId:o,forceSensorStop:a,sourceEvent:n}=e;if(!n6({lockAPI:t,store:i,registry:c,draggableId:o}))return null;const f=c.draggable.getById(o),s=JH(r,f.descriptor.id);if(!s||n&&!f.options.canDragInteractiveElements&&UH(s,n))return null;const u=t.claim(a||Gi);let d="PRE_DRAG";function h(){return f.options.shouldRespectForcePress}function p(){return t.isActive(u)}function m(w,k){Xc({expected:w,phase:d,isLockActive:p,shouldWarn:!0})&&i.dispatch(k())}const y=m.bind(null,"DRAGGING");function v(w){function k(){t.release(),d="COMPLETED"}d!=="PRE_DRAG"&&(k(),un()),i.dispatch(zW(w.liftActionArgs)),d="DRAGGING";function T(M,S){if(S===void 0&&(S={shouldBlockNextClick:!1}),w.cleanup(),S.shouldBlockNextClick){const C=qa(window,[{eventName:"click",fn:QH,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(C)}k(),i.dispatch(DC({reason:M}))}return{isActive:()=>Xc({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,drop:M=>T("DROP",M),cancel:M=>T("CANCEL",M),...w.actions}}function g(w){const k=Au(M=>{y(()=>PC({client:M}))});return{...v({liftActionArgs:{id:o,clientSelection:w,movementMode:"FLUID"},cleanup:()=>k.cancel(),actions:{move:k}}),move:k}}function b(){const w={moveUp:()=>y(ZW),moveRight:()=>y(JW),moveDown:()=>y(KW),moveLeft:()=>y(QW)};return v({liftActionArgs:{id:o,clientSelection:HH(s),movementMode:"SNAP"},cleanup:Gi,actions:w})}function x(){Xc({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}return{isActive:()=>Xc({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,fluidLift:g,snapLift:b,abort:x}}const tV=[KC,JC,QC];function nV(e){let{contextId:t,store:r,registry:i,customSensors:c,enableDefaultSensors:o}=e;const a=[...o?tV:[],...c||[]],n=$e.useState(()=>wH())[0],l=Cn(function(v,g){Iu(v)&&!Iu(g)&&n.tryAbandon()},[n]);Ia(function(){let v=r.getState();return r.subscribe(()=>{const b=r.getState();l(v,b),v=b})},[n,r,l]),Ia(()=>n.tryAbandon,[n.tryAbandon]);const f=Cn(y=>n6({lockAPI:n,registry:i,store:r,draggableId:y}),[n,i,r]),s=Cn((y,v,g)=>eV({lockAPI:n,registry:i,contextId:t,store:r,draggableId:y,forceSensorStop:v||null,sourceEvent:g&&g.sourceEvent?g.sourceEvent:null}),[t,n,i,r]),u=Cn(y=>KH(t,y),[t]),d=Cn(y=>{const v=i.draggable.findById(y);return v?v.options:null},[i.draggable]),h=Cn(function(){n.isClaimed()&&(n.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(c1()))},[n,r]),p=Cn(()=>n.isClaimed(),[n]),m=Xn(()=>({canGetLock:f,tryGetLock:s,findClosestDraggableId:u,findOptionsForDraggable:d,tryReleaseLock:h,isLockClaimed:p}),[f,s,u,d,h,p]);for(let y=0;y({onBeforeCapture:t=>{const r=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};et.version.startsWith("16")||et.version.startsWith("17")?r():gy.flushSync(r)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),aV=e=>({...Lu,...e.autoScrollerOptions,durationDampening:{...Lu.durationDampening,...e.autoScrollerOptions}});function Fs(e){return e.current||un(),e.current}function iV(e){const{contextId:t,setCallbacks:r,sensors:i,nonce:c,dragHandleUsageInstructions:o}=e,a=$e.useRef(null),n=YC(e),l=Cn(()=>rV(n.current),[n]),f=Cn(()=>aV(n.current),[n]),s=gH(t),u=xH({contextId:t,text:o}),d=lH(t,c),h=Cn(S=>{Fs(a).dispatch(S)},[]),p=Xn(()=>U_({publishWhileDragging:WW,updateDroppableScroll:HW,updateDroppableIsEnabled:VW,updateDroppableIsCombineEnabled:YW,collectionStarting:UW},h),[h]),m=fH(),y=Xn(()=>jU(m,p),[m,p]),v=Xn(()=>tH({scrollWindow:$U,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:f,...U_({move:PC},h)}),[y.scrollDroppable,h,f]),g=uH(t),b=Xn(()=>LU({announce:s,autoScroller:v,dimensionMarshal:y,focusMarshal:g,getResponders:l,styleMarshal:d}),[s,v,y,g,l,d]);a.current=b;const x=Cn(()=>{const S=Fs(a);S.getState().phase!=="IDLE"&&S.dispatch(c1())},[]),_=Cn(()=>{const S=Fs(a).getState();return S.phase==="DROP_ANIMATING"?!0:S.phase==="IDLE"?!1:S.isDragging},[]),w=Xn(()=>({isDragging:_,tryAbort:x}),[_,x]);r(w);const k=Cn(S=>$C(Fs(a).getState(),S),[]),T=Cn(()=>go(Fs(a).getState()),[]),M=Xn(()=>({marshal:y,focus:g,contextId:t,canLift:k,isMovementAllowed:T,dragHandleUsageInstructionsId:u,registry:m}),[t,y,u,g,k,T,m]);return nV({contextId:t,store:b,registry:m,customSensors:i||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),$e.useEffect(()=>x,[x]),et.createElement(Xd.Provider,{value:M},et.createElement(xq,{context:v1,store:b},e.children))}let r6=0;function oV(){r6=0}function lV(){return Xn(()=>`${r6++}`,[])}function sV(){return et.useId()}var uV="useId"in et?sV:lV;function cV(){"useId"in et||(oV(),mH())}function fV(e){const t=uV(),r=e.dragHandleUsageInstructions||df.dragHandleUsageInstructions;return et.createElement(Aq,null,i=>et.createElement(iV,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const v3={dragging:5e3,dropAnimating:4500},dV=(e,t)=>t?ku.drop(t.duration):e?ku.snap:ku.fluid,hV=(e,t)=>{if(e)return t?Ru.opacity.drop:Ru.opacity.combining},pV=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function gV(e){const r=e.dimension.client,{offset:i,combineWith:c,dropping:o}=e,a=!!c,n=pV(e),l=!!o,f=l?$0.drop(i,a):$0.moveTo(i);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:dV(n,o),transform:f,opacity:hV(a,l),zIndex:l?v3.dropAnimating:v3.dragging,pointerEvents:"none"}}function mV(e){return{transform:$0.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function vV(e){return e.type==="DRAGGING"?gV(e):mV(e)}function yV(e,t,r){r===void 0&&(r=ta);const i=window.getComputedStyle(t),c=t.getBoundingClientRect(),o=iC(c,i),a=jf(o,r),n={client:o,tagName:t.tagName.toLowerCase(),display:i.display},l={x:o.marginBox.width,y:o.marginBox.height};return{descriptor:e,placeholder:n,displaceBy:l,client:o,page:a}}function bV(e){const t=y1("draggable"),{descriptor:r,registry:i,getDraggableRef:c,canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:n}=e,l=Xn(()=>({canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:n}),[o,n,a]),f=Cn(h=>{const p=c();return p||un(),yV(r,p,h)},[r,c]),s=Xn(()=>({uniqueId:t,descriptor:r,options:l,getDimension:f}),[r,f,l,t]),u=$e.useRef(s),d=$e.useRef(!0);Ia(()=>(i.draggable.register(u.current),()=>i.draggable.unregister(u.current)),[i.draggable]),Ia(()=>{if(d.current){d.current=!1;return}const h=u.current;u.current=s,i.draggable.update(s,h)},[s,i.draggable])}var x1=et.createContext(null);function Wf(e){const t=$e.useContext(e);return t||un(),t}function xV(e){e.preventDefault()}const wV=e=>{const t=$e.useRef(null),r=Cn(function(w){w===void 0&&(w=null),t.current=w},[]),i=Cn(()=>t.current,[]),{contextId:c,dragHandleUsageInstructionsId:o,registry:a}=Wf(Xd),{type:n,droppableId:l}=Wf(x1),f=Xn(()=>({id:e.draggableId,index:e.index,type:n,droppableId:l}),[e.draggableId,e.index,n,l]),{children:s,draggableId:u,isEnabled:d,shouldRespectForcePress:h,canDragInteractiveElements:p,isClone:m,mapped:y,dropAnimationFinished:v}=e;if(!m){const w=Xn(()=>({descriptor:f,registry:a,getDraggableRef:i,canDragInteractiveElements:p,shouldRespectForcePress:h,isEnabled:d}),[f,a,i,p,h,d]);bV(w)}const g=Xn(()=>d?{tabIndex:0,role:"button","aria-describedby":o,"data-rfd-drag-handle-draggable-id":u,"data-rfd-drag-handle-context-id":c,draggable:!1,onDragStart:xV}:null,[c,o,u,d]),b=Cn(w=>{y.type==="DRAGGING"&&y.dropping&&w.propertyName==="transform"&&(et.version.startsWith("16")||et.version.startsWith("17")?v():gy.flushSync(v))},[v,y]),x=Xn(()=>{const w=vV(y),k=y.type==="DRAGGING"&&y.dropping?b:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":c,"data-rfd-draggable-id":u,style:w,onTransitionEnd:k},dragHandleProps:g}},[c,g,u,y,b,r]),_=Xn(()=>({draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}),[f.droppableId,f.id,f.index,f.type]);return et.createElement(et.Fragment,null,s(x,y.snapshot,_))};var _V=wV,a6=(e,t)=>e===t,i6=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};const TV=e=>e.combine?e.combine.draggableId:null,kV=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function MV(){const e=ea((c,o)=>({x:c,y:o})),t=ea(function(c,o,a,n,l){return a===void 0&&(a=null),n===void 0&&(n=null),l===void 0&&(l=null),{isDragging:!0,isClone:o,isDropAnimating:!!l,dropAnimation:l,mode:c,draggingOver:a,combineWith:n,combineTargetFor:null}}),r=ea(function(c,o,a,n,l,f,s){return l===void 0&&(l=null),f===void 0&&(f=null),s===void 0&&(s=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:f,mode:o,offset:c,dimension:a,forceShouldAnimate:s,snapshot:t(o,n,l,f,null)}}});return(c,o)=>{if(Iu(c)){if(c.critical.draggable.id!==o.draggableId)return null;const a=c.current.client.offset,n=c.dimensions.draggables[o.draggableId],l=La(c.impact),f=kV(c.impact),s=c.forceShouldAnimate;return r(e(a.x,a.y),c.movementMode,n,o.isClone,l,f,s)}if(c.phase==="DROP_ANIMATING"){const a=c.completed;if(a.result.draggableId!==o.draggableId)return null;const n=o.isClone,l=c.dimensions.draggables[o.draggableId],f=a.result,s=f.mode,u=i6(f),d=TV(f),p={duration:c.dropDuration,curve:d1.drop,moveTo:c.newHomeClientOffset,opacity:d?Ru.opacity.drop:null,scale:d?Ru.scale.drop:null};return{mapped:{type:"DRAGGING",offset:c.newHomeClientOffset,dimension:l,dropping:p,draggingOver:u,combineWith:d,mode:s,forceShouldAnimate:null,snapshot:t(s,n,u,d,p)}}}return null}}function o6(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const SV={mapped:{type:"SECONDARY",offset:ta,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:o6(null)}};function CV(){const e=ea((a,n)=>({x:a,y:n})),t=ea(o6),r=ea(function(a,n,l){return n===void 0&&(n=null),{mapped:{type:"SECONDARY",offset:a,combineTargetFor:n,shouldAnimateDisplacement:l,snapshot:t(n)}}}),i=a=>a?r(ta,a,!0):null,c=(a,n,l,f)=>{const s=l.displaced.visible[a],u=!!(f.inVirtualList&&f.effected[a]),d=Hd(l),h=d&&d.draggableId===a?n:null;if(!s){if(!u)return i(h);if(l.displaced.invisible[a])return null;const y=zl(f.displacedBy.point),v=e(y.x,y.y);return r(v,h,!0)}if(u)return i(h);const p=l.displacedBy.point,m=e(p.x,p.y);return r(m,h,s.shouldAnimate)};return(a,n)=>{if(Iu(a))return a.critical.draggable.id===n.draggableId?null:c(n.draggableId,a.critical.draggable.id,a.impact,a.afterCritical);if(a.phase==="DROP_ANIMATING"){const l=a.completed;return l.result.draggableId===n.draggableId?null:c(n.draggableId,l.result.draggableId,l.impact,l.afterCritical)}return null}}const OV=()=>{const e=MV(),t=CV();return(i,c)=>e(i,c)||t(i,c)||SV},AV={dropAnimationFinished:EC},PV=rC(OV,AV,null,{context:v1,areStatePropsEqual:a6})(_V);var DV=PV;function l6(e){return Wf(x1).isUsingCloneFor===e.draggableId&&!e.isClone?null:et.createElement(DV,e)}function EV(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,i=!!e.shouldRespectForcePress;return et.createElement(l6,Gt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:i}))}const s6=e=>t=>e===t,RV=s6("scroll"),LV=s6("auto"),y3=(e,t)=>t(e.overflowX)||t(e.overflowY),IV=e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return y3(r,RV)||y3(r,LV)},FV=()=>!1,u6=e=>e==null?null:e===document.body?FV()?e:null:e===document.documentElement?null:IV(e)?e:u6(e.parentElement);var NV=u6,q0=e=>({x:e.scrollLeft,y:e.scrollTop});const c6=e=>e?window.getComputedStyle(e).position==="fixed"?!0:c6(e.parentElement):!1;var jV=e=>{const t=NV(e),r=c6(e);return{closestScrollable:t,isFixedOnPage:r}},$V=e=>{let{descriptor:t,isEnabled:r,isCombineEnabled:i,isFixedOnPage:c,direction:o,client:a,page:n,closest:l}=e;const f=(()=>{if(!l)return null;const{scrollSize:h,client:p}=l,m=FC({scrollHeight:h.scrollHeight,scrollWidth:h.scrollWidth,height:p.paddingBox.height,width:p.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:p,scrollSize:h,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:m,diff:{value:ta,displacement:ta}}}})(),s=o==="vertical"?i1:gC,u=Ml({page:n,withPlaceholder:null,axis:s,frame:f});return{descriptor:t,isCombineEnabled:i,isFixedOnPage:c,axis:s,isEnabled:r,client:a,page:n,frame:f,subject:u}};const BV=(e,t)=>{const r=oC(e);if(!t||e!==t)return r;const i=r.paddingBox.top-t.scrollTop,c=r.paddingBox.left-t.scrollLeft,o=i+t.scrollHeight,a=c+t.scrollWidth,l=t1({top:i,right:a,bottom:o,left:c},r.border);return n1({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})};var zV=e=>{let{ref:t,descriptor:r,env:i,windowScroll:c,direction:o,isDropDisabled:a,isCombineEnabled:n,shouldClipSubject:l}=e;const f=i.closestScrollable,s=BV(t,f),u=jf(s,c),d=(()=>{if(!f)return null;const p=oC(f),m={scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth};return{client:p,page:jf(p,c),scroll:q0(f),scrollSize:m,shouldClipSubject:l}})();return $V({descriptor:r,isEnabled:!a,isCombineEnabled:n,isFixedOnPage:i.isFixedOnPage,direction:o,client:s,page:u,closest:d})};const qV={passive:!1},WV={passive:!0};var b3=e=>e.shouldPublishImmediately?qV:WV;const Zc=e=>e&&e.env.closestScrollable||null;function UV(e){const t=$e.useRef(null),r=Wf(Xd),i=y1("droppable"),{registry:c,marshal:o}=r,a=YC(e),n=Xn(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=$e.useRef(n),f=Xn(()=>ea((x,_)=>{t.current||un();const w={x,y:_};o.updateDroppableScroll(n.id,w)}),[n.id,o]),s=Cn(()=>{const x=t.current;return!x||!x.env.closestScrollable?ta:q0(x.env.closestScrollable)},[]),u=Cn(()=>{const x=s();f(x.x,x.y)},[s,f]),d=Xn(()=>Au(u),[u]),h=Cn(()=>{const x=t.current,_=Zc(x);if(x&&_||un(),x.scrollOptions.shouldPublishImmediately){u();return}d()},[d,u]),p=Cn((x,_)=>{t.current&&un();const w=a.current,k=w.getDroppableRef();k||un();const T=jV(k),M={ref:k,descriptor:n,env:T,scrollOptions:_};t.current=M;const S=zV({ref:k,descriptor:n,env:T,windowScroll:x,direction:w.direction,isDropDisabled:w.isDropDisabled,isCombineEnabled:w.isCombineEnabled,shouldClipSubject:!w.ignoreContainerClipping}),C=T.closestScrollable;return C&&(C.setAttribute(h3.contextId,r.contextId),C.addEventListener("scroll",h,b3(M.scrollOptions))),S},[r.contextId,n,h,a]),m=Cn(()=>{const x=t.current,_=Zc(x);return x&&_||un(),q0(_)},[]),y=Cn(()=>{const x=t.current;x||un();const _=Zc(x);t.current=null,_&&(d.cancel(),_.removeAttribute(h3.contextId),_.removeEventListener("scroll",h,b3(x.scrollOptions)))},[h,d]),v=Cn(x=>{const _=t.current;_||un();const w=Zc(_);w||un(),w.scrollTop+=x.y,w.scrollLeft+=x.x},[]),g=Xn(()=>({getDimensionAndWatchScroll:p,getScrollWhileDragging:m,dragStopped:y,scroll:v}),[y,p,m,v]),b=Xn(()=>({uniqueId:i,descriptor:n,callbacks:g}),[g,n,i]);Ia(()=>(l.current=b.descriptor,c.droppable.register(b),()=>{t.current&&y(),c.droppable.unregister(b)}),[g,n,y,b,o,c.droppable]),Ia(()=>{t.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),Ia(()=>{t.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function km(){}const x3={width:0,height:0,margin:Fq},HV=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;return t||i==="close"?x3:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}},VV=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;const c=HV({isAnimatingOpenOnMount:t,placeholder:r,animate:i});return{display:r.display,boxSizing:"border-box",width:c.width,height:c.height,marginTop:c.margin.top,marginRight:c.margin.right,marginBottom:c.margin.bottom,marginLeft:c.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?ku.placeholder:null}},YV=e=>{const t=$e.useRef(null),r=Cn(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:i,onTransitionEnd:c,onClose:o,contextId:a}=e,[n,l]=$e.useState(e.animate==="open");$e.useEffect(()=>n?i!=="open"?(r(),l(!1),km):t.current?km:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):km,[i,n,r]);const f=Cn(u=>{u.propertyName==="height"&&(c(),i==="close"&&o())},[i,o,c]),s=VV({isAnimatingOpenOnMount:n,animate:e.animate,placeholder:e.placeholder});return et.createElement(e.placeholder.tagName,{style:s,"data-rfd-placeholder-context-id":a,onTransitionEnd:f,ref:e.innerRef})};var GV=et.memo(YV);class XV extends et.PureComponent{constructor(){super(...arguments),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,r){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const ZV=e=>{const t=$e.useContext(Xd);t||un();const{contextId:r,isMovementAllowed:i}=t,c=$e.useRef(null),o=$e.useRef(null),{children:a,droppableId:n,type:l,mode:f,direction:s,ignoreContainerClipping:u,isDropDisabled:d,isCombineEnabled:h,snapshot:p,useClone:m,updateViewportMaxScroll:y,getContainerForClone:v}=e,g=Cn(()=>c.current,[]),b=Cn(function(C){C===void 0&&(C=null),c.current=C},[]);Cn(()=>o.current,[]);const x=Cn(function(C){C===void 0&&(C=null),o.current=C},[]),_=Cn(()=>{i()&&y({maxScroll:jC()})},[i,y]);UV({droppableId:n,type:l,mode:f,direction:s,isDropDisabled:d,isCombineEnabled:h,ignoreContainerClipping:u,getDroppableRef:g});const w=Xn(()=>et.createElement(XV,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},C=>{let{onClose:P,data:D,animate:O}=C;return et.createElement(GV,{placeholder:D,onClose:P,innerRef:x,animate:O,contextId:r,onTransitionEnd:_})}),[r,_,e.placeholder,e.shouldAnimatePlaceholder,x]),k=Xn(()=>({innerRef:b,placeholder:w,droppableProps:{"data-rfd-droppable-id":n,"data-rfd-droppable-context-id":r}}),[r,n,w,b]),T=m?m.dragging.draggableId:null,M=Xn(()=>({droppableId:n,type:l,isUsingCloneFor:T}),[n,T,l]);function S(){if(!m)return null;const{dragging:C,render:P}=m,D=et.createElement(l6,{draggableId:C.draggableId,index:C.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(O,R)=>P(O,R,C));return V9.createPortal(D,v())}return et.createElement(x1.Provider,{value:M},a(k,p),S())};var KV=ZV;function JV(){return document.body||un(),document.body}const w3={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:JV},f6=e=>{let t={...e},r;for(r in w3)e[r]===void 0&&(t={...t,[r]:w3[r]});return t},Mm=(e,t)=>e===t.droppable.type,_3=(e,t)=>t.draggables[e.draggable.id],QV=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=ea(o=>({draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}})),i=ea((o,a,n,l,f,s)=>{const u=f.descriptor.id;if(f.descriptor.droppableId===o){const p=s?{render:s,dragging:r(f.descriptor)}:null,m={isDraggingOver:n,draggingOverWith:n?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!1,snapshot:m,useClone:p}}if(!a)return t;if(!l)return e;const h={isDraggingOver:n,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!0,snapshot:h,useClone:null}});return(o,a)=>{const n=f6(a),l=n.droppableId,f=n.type,s=!n.isDropDisabled,u=n.renderClone;if(Iu(o)){const d=o.critical;if(!Mm(f,d))return t;const h=_3(d,o.dimensions),p=La(o.impact)===l;return i(l,s,p,p,h,u)}if(o.phase==="DROP_ANIMATING"){const d=o.completed;if(!Mm(f,d.critical))return t;const h=_3(d.critical,o.dimensions);return i(l,s,i6(d.result)===l,La(d.impact)===l,h,u)}if(o.phase==="IDLE"&&o.completed&&!o.shouldFlush){const d=o.completed;if(!Mm(f,d.critical))return t;const h=La(d.impact)===l,p=!!(d.impact.at&&d.impact.at.type==="COMBINE"),m=d.critical.droppable.id===l;return h?p?e:t:m?e:t}return t}},eY={updateViewportMaxScroll:XW},tY=rC(QV,eY,(e,t,r)=>({...f6(r),...e,...t}),{context:v1,areStatePropsEqual:a6})(KV);var nY=tY;const rY=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:fV,Draggable:EV,Droppable:nY,resetServerContext:cV,useKeyboardSensor:JC,useMouseSensor:KC,useTouchSensor:QC},Symbol.toStringTag,{value:"Module"})),w1=qn(rY);var T3;function aY(){return T3||(T3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),c=t(Bo),o=t(Jr()),a=t(X4),n=t(Gz),l=t(Wd),f=t(Or),s=m($e),u=w1,d=Qa(),h=Ju();function p(x){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(p=function(T){return T?w:_})(x)}function m(x,_){if(x&&x.__esModule)return x;if(x===null||r(x)!=="object"&&typeof x!="function")return{default:x};var w=p(_);if(w&&w.has(x))return w.get(x);var k={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in x)if(M!=="default"&&Object.prototype.hasOwnProperty.call(x,M)){var S=T?Object.getOwnPropertyDescriptor(x,M):null;S&&(S.get||S.set)?Object.defineProperty(k,M,S):k[M]=x[M]}return k.default=x,w&&w.set(x,k),k}function y(x,_){var w=Object.keys(x);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(x);_&&(k=k.filter(function(T){return Object.getOwnPropertyDescriptor(x,T).enumerable})),w.push.apply(w,k)}return w}function v(x){for(var _=1;_0&&s.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.groupedBy),x.groupColumns.map(function(P,D){return s.default.createElement(u.Draggable,{key:P.tableData.id.toString(),draggableId:P.tableData.id.toString(),index:D},function(O,R){var F;return s.default.createElement(c.default,(0,i.default)({ref:O.innerRef},O.draggableProps,O.dragHandleProps,{sx:T(R.isDragging,O.draggableProps.style)}),s.default.createElement(n.default,(0,i.default)({},O.dragHandleProps,k.groupChipProps,{onClick:function(){return x.onSortChanged(P)},label:s.default.createElement(c.default,{sx:{display:"flex",alignItems:"center"}},s.default.createElement(c.default,{sx:{float:"left"}},P.title),P.tableData.groupSort&&s.default.createElement(w.SortArrow,{sx:{transition:"300ms ease all",transform:P.tableData.groupSort==="asc"?"rotate(-180deg)":"none",fontSize:18}})),sx:v({boxShadow:"none",textTransform:"none"},(F=k.groupChipProps)!==null&&F!==void 0?F:{}),onDelete:function(){return x.onGroupRemoved(P,D)}})))})}),x.groupColumns.length===0&&s.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.placeholder),S.placeholder)}))}g.defaultProps={},g.propTypes={forwardedRef:f.default.element,className:f.default.string,onSortChanged:f.default.func,onGroupRemoved:f.default.func,onGroupChange:f.default.func,persistentGroupingsId:f.default.string};var b=s.default.forwardRef(function(_,w){return s.default.createElement(g,(0,i.default)({},_,{forwardedRef:w}))});e.default=b}(pm)),pm}var Sm={},k3;function iY(){return k3||(k3=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Jr()),c=t(ao()),o=t($l()),a=t(gi),n=t(Ai),l=t(Bl),f=t(zo),s=t(Or),u=t($e),d=Qa();function h(v,g){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);g&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,x)}return b}function p(v){for(var g=1;g0&&_++;var w=v.groups[v.level],k;v.groupData.isExpanded&&(v.groups.length>v.level+1?k=v.groupData.groups.map(function(j,N){return u.default.createElement(v.components.GroupRow,{actions:v.actions,key:j.value||""+N,columns:v.columns,components:v.components,detailPanel:v.detailPanel,getFieldValue:v.getFieldValue,groupData:j,groups:v.groups,level:v.level+1,path:[].concat((0,o.default)(v.path),[N]),onGroupExpandChanged:v.onGroupExpandChanged,onGroupSelected:v.onGroupSelected,onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,isTreeData:v.isTreeData,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}):k=v.groupData.data.map(function(j,N){return j.tableData.editing?u.default.createElement(v.components.EditRow,{columns:v.columns,components:v.components,data:j,path:[].concat((0,o.default)(v.path),[j.tableData.uuid]),localization:v.localization,key:N,mode:j.tableData.editing,isTreeData:v.isTreeData,detailPanel:v.detailPanel,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,getFieldValue:v.getFieldValue,onBulkEditRowChanged:v.onBulkEditRowChanged,scrollWidth:v.scrollWidth}):u.default.createElement(v.components.Row,{actions:v.actions,key:N,columns:v.columns,components:v.components,data:j,detailPanel:v.detailPanel,level:(v.level||0)+1,getFieldValue:v.getFieldValue,path:[].concat((0,o.default)(v.path),[j.tableData.uuid]),onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,isTreeData:v.isTreeData,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}));for(var T=[],M=0;M0&&A!==z,checked:A===z,onChange:function(N,E){return v.onGroupSelected&&v.onGroupSelected(E,v.groupData.path)},style:{marginRight:8}}),u.default.createElement("b",null,C,P)))),k)}m.defaultProps={columns:[],groups:[],level:0},m.propTypes={actions:s.default.array,columns:s.default.arrayOf(s.default.object),components:s.default.object,cellEditable:s.default.object,detailPanel:s.default.oneOfType([s.default.func,s.default.arrayOf(s.default.object)]),forwardedRef:s.default.element,getFieldValue:s.default.func,groupData:s.default.object,groups:s.default.arrayOf(s.default.object),hasAnyEditingRow:s.default.bool,icons:s.default.object,isTreeData:s.default.bool.isRequired,level:s.default.number,localization:s.default.object,onBulkEditRowChanged:s.default.func,onCellEditFinished:s.default.func,onCellEditStarted:s.default.func,onEditingApproved:s.default.func,onEditingCanceled:s.default.func,onGroupExpandChanged:s.default.func,onRowClick:s.default.func,onGroupSelected:s.default.func,onRowSelected:s.default.func,onToggleDetailPanel:s.default.func.isRequired,onTreeExpandChanged:s.default.func.isRequired,path:s.default.arrayOf(s.default.number),scrollWidth:s.default.number.isRequired,treeDataMaxLevel:s.default.number};var y=u.default.forwardRef(function(g,b){return u.default.createElement(m,(0,r.default)({},g,{forwardedRef:b}))});e.default=y}(Sm)),Sm}var Cm={};const oY=qn(Y9),lY=qn(G9);var M3;function sY(){return M3||(M3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=T,e.styles=e.default=void 0;var i=t(Bo),c=t(qo),o=t(hr()),a=t(Jr()),n=t(ao()),l=t(jl()),f=t($e),s=t(Or),u=t(oY),d=t(Ai),h=t(gi),p=t(lY),m=t(zo),y=w1,v=_(Ri()),g=Qa(),b=["onColumnResized","classes","sx","columns"];function x(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,F=new WeakMap;return(x=function(z){return z?F:R})(O)}function _(O,R){if(O&&O.__esModule)return O;if(O===null||r(O)!=="object"&&typeof O!="function")return{default:O};var F=x(R);if(F&&F.has(O))return F.get(O);var A={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var $=z?Object.getOwnPropertyDescriptor(O,B):null;$&&($.get||$.set)?Object.defineProperty(A,B,$):A[B]=O[B]}return A.default=O,F&&F.set(O,A),A}function w(O,R){var F=Object.keys(O);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(O);R&&(A=A.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),F.push.apply(F,A)}return F}function k(O){for(var R=1;R-1)&&!ce.tableData.hiddden}).sort(function(ce,ye){return ce.tableData.columnOrder-ye.tableData.columnOrder}).map(function(ce,ye,J){var ne=ce.align!==void 0?ce.align:["numeric","currency"].indexOf(ce.type)!==-1?"right":"left",de=ce.title;if(j.draggable&&ce.draggable!==!1?de=f.default.createElement(y.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:ye,style:{zIndex:99}},function(ue,ge){return f.default.createElement("div",(0,o.default)({ref:ue.innerRef},ue.draggableProps,ue.dragHandleProps,{style:ge.isDragging?ue.draggableProps.style:{position:"relative",minWidth:0,display:"flex",flexDirection:ne==="right"?"row-reverse":void 0}}),ce.sorting!==!1&&B.sorting&&B.allowSorting?f.default.createElement(S,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:j.thirdSortClick,onOrderChange:B.onOrderChange,orderByCollection:B.orderByCollection,showColumnSortOrder:j.showColumnSortOrder,sortOrderIndicatorStyle:j.sortOrderIndicatorStyle},ce.title):ce.title)}):ce.sorting!==!1&&B.sorting&&B.allowSorting&&(de=f.default.createElement(S,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:j.thirdSortClick,onOrderChange:B.onOrderChange,orderByCollection:B.orderByCollection,showColumnSortOrder:j.showColumnSortOrder,sortOrderIndicatorStyle:j.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(de=f.default.createElement(c.default,{title:ce.tooltip,placement:"bottom"},f.default.createElement("span",null,de))),j.tableLayout==="fixed"&&j.columnResizable&&ce.resizable!==!1&&!(j.tableWidth==="full"&&ye===J.length-1)){var xe=N.Resize?N.Resize:function(ue){return f.default.createElement(i.default,(0,o.default)({},ue,{"data-test-id":"drag_handle"}))};de=f.default.createElement(i.default,{sx:C.headerWrap(ne==="right")},f.default.createElement(i.default,{sx:C.headerContent(ne==="right")},de),f.default.createElement("div",null),f.default.createElement(xe,{sx:C.headerResize((q==null?void 0:q.col)&&q.col.tableData.id===ce.tableData.id),onMouseDown:function(ge){return Y(ge,ce,ye)}}))}return f.default.createElement(h.default,{key:ce.tableData.id,align:ne,sx:C.header,style:le(ce),size:Me,"aria-label":ce.ariaLabel},de)})}function pe(){var Me=v.selectionMaxWidth(k(k({},B),{},{options:j}),B.treeDataMaxLevel);return f.default.createElement(h.default,{padding:"none",key:"key-selection-column",sx:C.header,style:k(k({},j.headerStyle),{},{width:Me})},j.showSelectAllCheckbox&&f.default.createElement(m.default,(0,o.default)({indeterminate:B.selectedCount>0&&B.selectedCount0&&B.selectedCount>=B.dataCount,onChange:function(ye,J){return B.onAllSelected&&B.onAllSelected(J)}},j.headerSelectionProps)))}function Te(){return f.default.createElement(h.default,{padding:"none",key:"key-detail-panel-column",sx:C.header,style:j.headerStyle})}var Se=se();if(j.selection&&Se.splice(0,0,pe()),B.showActionsColumn)if(j.actionsColumnIndex>=0){var Oe=0;j.selection&&(Oe=1),Se.splice(j.actionsColumnIndex+Oe,0,ie())}else j.actionsColumnIndex===-1&&Se.push(ie());return B.hasDetailPanel&&j.showDetailPanelIcon&&(j.detailPanelColumnAlignment==="right"?Se.push(Te()):Se.splice(0,0,Te())),B.isTreeData>0&&Se.splice(0,0,f.default.createElement(h.default,{padding:"none",key:"key-tree-data-header",sx:C.header,style:j.headerStyle})),Q.filter(function(Me){return Me.tableData.groupOrder>-1}).forEach(function(Me){Se.splice(0,0,f.default.createElement(h.default,{padding:"checkbox",key:"key-group-header"+Me.tableData.id,sx:C.header,style:j.headerStyle}))}),f.default.createElement(u.default,{ref:B.forwardedRef,classes:F,sx:A},f.default.createElement(d.default,{sx:C.headerRow},Se))}var M=function(R,F,A,z,B){return A.tableData.id!==R?B&&F||"asc":F==="asc"?"desc":F==="desc"&&z?"":"asc"};function S(O){var R=O.columnDef,F=O.keepSortDirectionOnColumnSwitch,A=O.icon,z=O.thirdSortClick,B=O.onOrderChange,$=O.children,j=O.orderByCollection,N=O.showColumnSortOrder,E=O.sortOrderIndicatorStyle,W=j.find(function(H){var V=H.orderBy;return V===R.tableData.id}),G=(W||F)&&W&&W.orderDirection||"asc",L="none";W&&G==="asc"?L=R.ariaSortAsc||"ascending":W&&G==="desc"&&(L=R.ariaSortDesc||"descending");var q=W&&W.orderBy;return f.default.createElement(f.default.Fragment,null,f.default.createElement(p.default,{role:"columnheader","aria-sort":L,"aria-label":R.ariaLabel,IconComponent:A,active:!!W,"data-testid":"mtableheader-sortlabel",direction:G,onClick:function(){var V=M(q,G,R,z,F);B(R.tableData.id,V,W&&W.sortOrder)}},$),f.default.createElement("span",{style:k(k({},E),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},N&&W?W.sortOrder:""))}T.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},T.propTypes={columns:s.default.array.isRequired,classes:s.default.object,sx:s.default.object,dataCount:s.default.number,hasDetailPanel:s.default.bool.isRequired,selectedCount:s.default.number,onAllSelected:s.default.func,onOrderChange:s.default.func,showActionsColumn:s.default.bool,orderByCollection:s.default.array,showColumnSortOrder:s.default.bool,tooltip:s.default.string,allowSorting:s.default.bool};var C={headerRow:{zIndex:10},header:{top:0},headerWrap:function(R){return{display:"flex",alignItems:"center",position:"relative",left:4}},headerWrapRight:function(R){return{display:"flex",alignItems:"center",pr:R?1:void 0,position:"relative",left:4,justifyContent:"flex-end"}},headerContent:function(R){return{minWidth:0,display:"flex",flex:"1 0 100%",flexDirection:R?"row-reverse":void 0,justifyContent:"flex-start",alignItems:"center",width:"100%",position:"relative"}},headerResize:function(R){return{color:R?"primary.main":"inherit",flex:1,cursor:"col-resize",position:"absolute",height:"100%",width:16,display:"flex",justifyContent:"center",right:-8,zIndex:20}}};e.styles=C;var P=f.default.forwardRef(function(R,F){return f.default.createElement(T,(0,o.default)({},R,{forwardedRef:F}))}),D=f.default.memo(P);e.default=D}(Cm)),Cm}var Om={};const uY=qn(X9);var S3;function cY(){return S3||(S3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),c=t(Bl),o=t(qo),a=t(Bo),n=t(uY),l=t(Or),f=t($e),s=Nl,u=p(Ri()),d=Qa();function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function m(b){var x=(0,s.useTheme)(),_=(0,d.useLocalizationStore)().pagination,w=(0,d.useIconStore)(),k=function(G){b.onPageChange(G,0)},T=function(G){b.onPageChange(G,b.page-1)},M=function(G){b.onPageChange(G,b.page+1)},S=function(G){return function(L){b.onPageChange(L,G)}},C=function(G){b.onPageChange(G,Math.max(0,Math.ceil(b.count/b.rowsPerPage)-1))};function P(W,G,L,q){var H=[];q=Math.max(1,Math.min(10,q));for(var V=Math.max(W-q+1,0);V<=Math.min(G+q-1,L);V++){var te=V===b.page?"contained":"text";H.push(f.default.createElement(n.default,{size:"small",style:{boxShadow:"none",maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px"},disabled:V===b.page,variant:te,onClick:S(V),key:V},V+1))}return f.default.createElement("span",null,H)}var D=b.count,O=b.page,R=b.rowsPerPage,F=b.showFirstLastPageButtons,A=b.numberOfPagesAround,z=Math.ceil(D/R)-1,B=Math.max(O-1,0),$=Math.min(z,O+1),j=u.parseFirstLastPageButtons(F,x.direction==="rtl"),N=j.first,E=j.last;return f.default.createElement(a.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:b.forwardedRef},N&&f.default.createElement(o.default,{title:_.firstTooltip},f.default.createElement("span",null,f.default.createElement(c.default,{onClick:k,disabled:O===0,"aria-label":_.firstAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.LastPage,null):f.default.createElement(w.FirstPage,null)))),f.default.createElement(o.default,{title:_.previousTooltip},f.default.createElement("span",null,f.default.createElement(c.default,{onClick:T,disabled:O===0,"aria-label":_.previousAriaLabel},f.default.createElement(w.PreviousPage,null)))),f.default.createElement(a.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},P(B,$,z,A)),f.default.createElement(o.default,{title:_.nextTooltip},f.default.createElement("span",null,f.default.createElement(c.default,{onClick:M,disabled:O>=z,"aria-label":_.nextAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.PreviousPage,null):f.default.createElement(w.NextPage,null)))),E&&f.default.createElement(o.default,{title:_.lastTooltip},f.default.createElement("span",null,f.default.createElement(c.default,{onClick:C,disabled:O>=Math.ceil(D/R)-1,"aria-label":_.lastAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.FirstPage,null):f.default.createElement(w.LastPage,null)))))}m.propTypes={onPageChange:l.default.func,page:l.default.number,forwardedRef:l.default.func,count:l.default.number,rowsPerPage:l.default.number,numberOfPagesAround:l.default.number,classes:l.default.object,theme:l.default.any,showFirstLastPageButtons:l.default.oneOfType([l.default.object,l.default.bool])},m.defaultProps={showFirstLastPageButtons:!0};var y=f.default.forwardRef(function(x,_){return f.default.createElement(m,(0,i.default)({},x,{forwardedRef:_}))}),v=y,g=v;e.default=g}(Om)),Om}var Am={},C3;function fY(){return C3||(C3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),c=t(Bo),o=t(Bl),a=t(qo),n=t(Wd),l=t(Or),f=t($e),s=Nl,u=p(Ri()),d=Ju();function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function m(b){var x=(0,s.useTheme)(),_=(0,d.useIconStore)(),w=(0,d.useLocalizationStore)().pagination,k=function(B){b.onPageChange(B,0)},T=function(B){b.onPageChange(B,b.page-1)},M=function(B){b.onPageChange(B,b.page+1)},S=function(B){b.onPageChange(B,Math.max(0,Math.ceil(b.count/b.rowsPerPage)-1))},C=b.count,P=b.page,D=b.rowsPerPage,O=b.showFirstLastPageButtons,R=u.parseFirstLastPageButtons(O,x.direction==="rtl"),F=R.first,A=R.last;return f.default.createElement(c.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:b.forwardedRef},F&&f.default.createElement(a.default,{title:w.firstTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:k,disabled:P===0,"aria-label":w.firstAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(_.LastPage,null):f.default.createElement(_.FirstPage,null)))),f.default.createElement(a.default,{title:w.previousTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:T,disabled:P===0,"aria-label":w.previousAriaLabel},x.direction==="rtl"?f.default.createElement(_.NextPage,null):f.default.createElement(_.PreviousPage,null)))),f.default.createElement(n.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},w.labelDisplayedRows.replace("{from}",b.count===0?0:b.page*b.rowsPerPage+1).replace("{to}",Math.min((b.page+1)*b.rowsPerPage,b.count)).replace("{count}",b.count)),f.default.createElement(a.default,{title:w.nextTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:M,disabled:P>=Math.ceil(C/D)-1,"aria-label":w.nextAriaLabel},x.direction==="rtl"?f.default.createElement(_.PreviousPage,null):f.default.createElement(_.NextPage,null)))),A&&f.default.createElement(a.default,{title:w.lastTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:S,disabled:P>=Math.ceil(C/D)-1,"aria-label":w.lastAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(_.FirstPage,null):f.default.createElement(_.LastPage,null)))))}m.propTypes={onPageChange:l.default.func,page:l.default.number,count:l.default.number,rowsPerPage:l.default.number,classes:l.default.object,localization:l.default.object,showFirstLastPageButtons:l.default.oneOfType([l.default.object,l.default.bool]),forwardedRef:l.default.func},m.defaultProps={showFirstLastPageButtons:!0};var y=f.default.forwardRef(function(x,_){return f.default.createElement(m,(0,i.default)({},x,{forwardedRef:_}))}),v=y,g=v;e.default=g}(Am)),Am}var Pm={},O3;function dY(){return O3||(O3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var i=t(Ai),c=t(Ur()),o=t($l()),a=t(gi),n=t(Jr()),l=p($e),f=qd(),s=p(Ri()),u=Qa(),d=t(Or);function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function m(b,x){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(b);x&&(w=w.filter(function(k){return Object.getOwnPropertyDescriptor(b,k).enumerable})),_.push.apply(_,w)}return _}function y(b){for(var x=1;x1&&arguments[1]!==void 0?arguments[1]:1,R=s.elementSize(y(y({},_),{},{options:k})),F=O*s.baseIconSize(y(y({},_),{},{options:k}));return l.createElement(a.default,{key:"placeholder.".concat(D),size:R,padding:"none",style:{width:F,padding:"0px 5px",boxSizing:"border-box"}})}var M=[],S=[],C=0;if(k.selection&&M.push(T(C++)),_.actions&&_.actions.filter(function(D){return D.position==="row"||typeof D=="function"}).length>0){var P=s.rowActions(_).length;k.actionsColumnIndex===-1?S.push(T(C++,P)):k.actionsColumnIndex>=0&&M.push(T(C++,P))}return _.detailPanel&&k.showDetailPanelIcon&&(k.detailPanelColumnAlignment==="right"?S.push(T(C++)):M.push(T(C++))),_.isTreeData&&M.push(T(C++)),l.createElement(i.default,null,M,(0,o.default)(x).sort(function(D,O){return D.tableData.columnOrder-O.tableData.columnOrder}).map(function(D,O){var R=w({index:D.tableData.columnOrder,column:D,columns:x}),F=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",A="",z=(0,f.getStyle)({columnDef:D,scrollWidth:0});return(0,c.default)(R)==="object"&&R!==null?(A=R.value,z=R.style):A=R,l.createElement(a.default,{key:O,style:z,align:F},A)}),S)}v.propTypes={columns:d.default.array,renderSummaryRow:d.default.func};var g=v;e.default=g}(Pm)),Pm}var Dm={};const hY=qn(Z9);var A3;function pY(){return A3||(A3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=M,e.default=void 0;var i=t(hr()),c=t(Jr()),o=t(Bo),a=t(ao()),n=t(zo),l=t(Y4),f=t(Bl),s=t(hY),u=t(Ty),d=t(Rd),h=t(X4),p=t(qo),m=t(Wd),y=Nl,v=t(Or),g=_($e),b=Qa();function x(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,F=new WeakMap;return(x=function(z){return z?F:R})(O)}function _(O,R){if(O&&O.__esModule)return O;if(O===null||r(O)!=="object"&&typeof O!="function")return{default:O};var F=x(R);if(F&&F.has(O))return F.get(O);var A={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var $=z?Object.getOwnPropertyDescriptor(O,B):null;$&&($.get||$.set)?Object.defineProperty(A,B,$):A[B]=O[B]}return A.default=O,F&&F.set(O,A),A}function w(O,R){var F=Object.keys(O);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(O);R&&(A=A.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),F.push.apply(F,A)}return F}function k(O){for(var R=1;ROe.tableData.columnOrder?1:-1}),pe=P(O.data()),Te=pe.map(function(Se){return se.reduce(function(Oe,Me){var ce;return typeof Me.customExport=="function"?ce=Me.customExport(Se):ce=O.getFieldValue(Se,Me),Oe[Me.field]=ce,Oe},{})});return[se,Te]};function Y(){return te.search?g.default.createElement(d.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:S.searchField,value:B,onChange:function(se){return U(se.target.value)},placeholder:F.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:g.default.createElement(l.default,{position:"start"},g.default.createElement(p.default,{title:F.searchTooltip},g.default.createElement(V.Search,{fontSize:"small"}))),endAdornment:g.default.createElement(l.default,{position:"end"},g.default.createElement(f.default,{disabled:!B,onClick:function(){return U("")},"aria-label":F.clearSearchAriaLabel},g.default.createElement(V.ResetSearch,{fontSize:"small","aria-label":"clear"}))),style:te.searchFieldStyle,inputProps:{"aria-label":F.searchAriaLabel}}}):null}function Z(le){var se=le?"toolbarOnSelect":"toolbar";return g.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!le&&g.default.createElement("span",null,g.default.createElement(p.default,{title:F.showColumnsTitle},g.default.createElement(f.default,{color:"inherit",onClick:function(Te){return H(Te.currentTarget)},"aria-label":F.showColumnsAriaLabel},g.default.createElement(V.ViewColumn,null))),g.default.createElement(s.default,{anchorEl:q,open:!!q,onClose:function(){return H(null)}},g.default.createElement(u.default,{key:"text",disabled:!0,style:{opacity:1,fontWeight:600,fontSize:12}},F.addRemoveColumns),O.columns.map(function(pe){var Te=pe.hiddenByColumnsButton!==void 0?pe.hiddenByColumnsButton:O.columnsHiddenInColumnsButton;return Te?null:g.default.createElement("li",{key:pe.tableData.id},g.default.createElement(u.default,{sx:S.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(pe.tableData.id),disabled:pe.removable===!1},g.default.createElement(n.default,{checked:!pe.hidden,id:"column-toggle-".concat(pe.tableData.id),onChange:function(){return O.onColumnsChanged(pe,!pe.hidden)}}),g.default.createElement("span",null,pe.title)))}))),te.exportMenu.length>0&&g.default.createElement("span",null,g.default.createElement(p.default,{title:F.exportTitle},g.default.createElement(f.default,{color:"inherit",onClick:function(Te){return W(Te.currentTarget)},"aria-label":F.exportAriaLabel},g.default.createElement(V.Export,null))),g.default.createElement(s.default,{anchorEl:E,open:!!E,onClose:function(){return W(null)}},te.exportMenu.map(function(pe,Te){var Se=Q(),Oe=(0,a.default)(Se,2),Me=Oe[0],ce=Oe[1];return g.default.createElement(u.default,{key:"".concat(pe.label).concat(Te),onClick:function(){pe.exportFunc(Me,ce,{searchedData:O.dataManager.searchedData,filteredData:O.dataManager.filteredData,groupedData:O.dataManager.groupedData,selectedData:ee}),W(null)}},pe.label)}))),g.default.createElement("span",null,g.default.createElement(O.components.Actions,{actions:O.actions&&O.actions.filter(function(pe){return pe.position===se}),data:le?ee:void 0,components:O.components})))}function X(){return g.default.createElement(o.default,{sx:S.actions},g.default.createElement("div",null,Z(ee.length>0)))}function re(le){var se=typeof le=="string"?g.default.createElement(m.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},le):le;return g.default.createElement(o.default,{sx:S.title},se)}var ie=te.showTextRowsSelected&&ee.length>0?typeof F.nRowsSelected=="function"?F.nRowsSelected(ee.length):F.nRowsSelected.replace("{0}",ee.length):te.showTitle?O.title:null;return g.default.createElement(h.default,{ref:O.forwardedRef,className:O.className,sx:k(k({},S.root),te.showTextRowsSelected&&ee.length>0?S.highlight(R):{})},ie&&re(ie),te.searchFieldAlignment==="left"&&Y(),te.toolbarButtonAlignment==="left"&&X(),g.default.createElement(o.default,{sx:S.spacer}),te.searchFieldAlignment==="right"&&Y(),te.toolbarButtonAlignment==="right"&&X())}M.defaultProps={actions:[],columns:[],columnsHiddenInColumnsButton:!1,searchText:"",originalData:[],title:"No Title!"},M.propTypes={actions:v.default.array,className:v.default.string,columns:v.default.array,components:v.default.object.isRequired,getFieldValue:v.default.func.isRequired,onColumnsChanged:v.default.func.isRequired,dataManager:v.default.object.isRequired,searchText:v.default.string,onSearchChanged:v.default.func.isRequired,originalData:v.default.array,title:v.default.oneOfType([v.default.element,v.default.string]),renderData:v.default.array,data:v.default.oneOfType([v.default.array,v.default.func]),exportAllData:v.default.bool,exportMenu:v.default.arrayOf(v.default.shape({name:v.default.string,handler:v.default.func})),searchAutoFocus:v.default.bool,classes:v.default.object};var S={root:{paddingRight:1,paddingLeft:2},highlight:function(R){return R.palette.mode==="light"?{color:R.palette.secondary.main,backgroundColor:(0,y.lighten)(R.palette.secondary.light,.85)}:{color:R.palette.text.primary,backgroundColor:R.palette.secondary.dark}},spacer:{flex:"1 1 10%"},actions:{color:"text.secondary"},title:{overflow:"hidden"},searchField:{minWidth:150,paddingLeft:2},formControlLabel:{px:1}},C=g.default.forwardRef(function(R,F){return g.default.createElement(M,(0,i.default)({},R,{forwardedRef:F}))});function P(O){for(var R=O;Array.isArray((F=R)===null||F===void 0||(A=F[0])===null||A===void 0?void 0:A.data);){var F,A;R=R.map(function(z){return z.groups.length!==0?z.groups:z.data}).flat()}return R}var D=g.default.memo(C);e.default=D}(Dm)),Dm}var P3;function Kd(){return P3||(P3=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MTableCustomIcon",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"MTableScrollbar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"MTableSummaryRow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return r.default}});var r=t(gE()),i=t(aR()),c=t(lR()),o=t(uR()),a=t(pR()),n=t(Mz()),l=t(Sz()),f=t(Pz()),s=t(Dz()),u=t(Iz()),d=t(jz()),h=t($z()),p=t(Bz()),m=t(G4()),y=t(aY()),v=t(iY()),g=t(sY()),b=t(cY()),x=t(fY()),_=t(dY()),w=t(pY())}(cg)),cg}var D3;function d6(){return D3||(D3=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(pE),i=Kd(),c={Action:i.MTableAction,Actions:i.MTableActions,Body:i.MTableBody,Cell:i.MTableCell,Container:i.Container,EditCell:i.MTableEditCell,EditField:i.MTableEditField,EditRow:i.MTableEditRow,FilterRow:i.MTableFilterRow,Groupbar:i.MTableGroupbar,GroupRow:i.MTableGroupRow,Header:i.MTableHeader,OverlayLoading:i.OverlayLoading,OverlayError:i.OverlayError,Pagination:r.default,Row:i.MTableBodyRow,SummaryRow:i.MTableSummaryRow,Toolbar:i.MTableToolbar};e.default=c}(ug)),ug}var E3;function gY(){if(E3)return gs;E3=1;var e=vn;Object.defineProperty(gs,"__esModule",{value:!0}),gs.defaultProps=void 0;var t=e(d6()),r=e(OS()),i=e(SS()),c=e(CS()),o={actions:[],classes:{},columns:[],components:t.default,data:[],icons:r.default,isLoading:!1,title:"Table Title",options:c.default,localization:i.default,style:{}};return gs.defaultProps=o,gs}var Ns={},js={},R3;function _1(){if(R3)return js;R3=1,Object.defineProperty(js,"__esModule",{value:!0}),js.ALL_COLUMNS=void 0;var e="all_columns";return js.ALL_COLUMNS=e,js}var L3;function mY(){if(L3)return Ns;L3=1;var e=vn;Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.propTypes=void 0;var t=e(Or),r=_1(),i=t.default.shape({current:t.default.element}),c=t.default.shape({classes:t.default.object,innerRef:i}),o={actions:t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]).isRequired,isFreeAction:t.default.bool,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"]),tooltip:t.default.string,onClick:t.default.func.isRequired,onMouseEnter:t.default.func,onMouseLeave:t.default.func,iconProps:t.default.object,disabled:t.default.bool,hidden:t.default.bool}),t.default.shape({action:t.default.func,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"])})])),renderSummaryRow:t.default.func,columns:t.default.arrayOf(t.default.shape({cellStyle:t.default.oneOfType([t.default.object,t.default.func]),currencySetting:t.default.shape({locale:t.default.string,currencyCode:t.default.string,minimumFractionDigits:t.default.number,maximumFractionDigits:t.default.number}),ariaLabel:t.default.string,ariaSortAsc:t.default.oneOf(["ascending","descending","none","other"]),ariaSortDesc:t.default.oneOf(["ascending","descending","none","other"]),draggable:t.default.bool,customFilterAndSearch:t.default.func,customSort:t.default.func,customExport:t.default.func,defaultFilter:t.default.any,defaultSort:t.default.oneOf(["asc","desc"]),editComponent:t.default.oneOfType([t.default.element,t.default.func]),emptyValue:t.default.oneOfType([t.default.string,t.default.node,t.default.func]),export:t.default.bool,field:t.default.oneOfType([t.default.string,t.default.arrayOf(t.default.string)]),filtering:t.default.bool,filterCellStyle:t.default.object,filterPlaceholder:t.default.string,filterComponent:t.default.oneOfType([t.default.element,t.default.func]),grouping:t.default.bool,headerStyle:t.default.object,hidden:t.default.bool,hideFilterIcon:t.default.bool,initialEditValue:t.default.any,lookup:t.default.object,editable:t.default.oneOfType([t.default.func,t.default.oneOf(["always","onUpdate","onAdd","never"])]),removable:t.default.bool,render:t.default.func,searchable:t.default.bool,sorting:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),type:t.default.oneOf(["string","boolean","numeric","date","datetime","time","currency"])})).isRequired,components:t.default.shape({Action:t.default.oneOfType([t.default.element,t.default.func,c]),Actions:t.default.oneOfType([t.default.element,t.default.func,c]),Body:t.default.oneOfType([t.default.element,t.default.func,c]),Cell:t.default.oneOfType([t.default.element,t.default.func,c]),Container:t.default.oneOfType([t.default.element,t.default.func,c]),EditField:t.default.oneOfType([t.default.element,t.default.func,c]),EditRow:t.default.oneOfType([t.default.element,t.default.func,c]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,c]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,c]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,c]),Header:t.default.oneOfType([t.default.element,t.default.func,c]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,c]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,c]),Pagination:t.default.oneOfType([t.default.element,t.default.func,c]),Row:t.default.oneOfType([t.default.element,t.default.func,c]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,c])}),data:t.default.oneOfType([t.default.arrayOf(t.default.object),t.default.func]).isRequired,editable:t.default.shape({isEditable:t.default.func,isBulkEditable:t.default.func,isDeletable:t.default.func,onRowAdd:t.default.func,onRowUpdate:t.default.func,onRowDelete:t.default.func,onRowAddCancelled:t.default.func,onRowUpdateCancelled:t.default.func,isEditHidden:t.default.func,isDeleteHidden:t.default.func}),detailPanel:t.default.oneOfType([t.default.func,t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({disabled:t.default.bool,icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]),openIcon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]),tooltip:t.default.string,render:t.default.func.isRequired})]))]),icons:t.default.shape({Add:t.default.oneOfType([t.default.element,t.default.func,i]),Check:t.default.oneOfType([t.default.element,t.default.func,i]),Clear:t.default.oneOfType([t.default.element,t.default.func,i]),Delete:t.default.oneOfType([t.default.element,t.default.func,i]),DetailPanel:t.default.oneOfType([t.default.element,t.default.func,i]),Edit:t.default.oneOfType([t.default.element,t.default.func,i]),Export:t.default.oneOfType([t.default.element,t.default.func,i]),Filter:t.default.oneOfType([t.default.element,t.default.func,i]),FirstPage:t.default.oneOfType([t.default.element,t.default.func,i]),LastPage:t.default.oneOfType([t.default.element,t.default.func,i]),NextPage:t.default.oneOfType([t.default.element,t.default.func,i]),PreviousPage:t.default.oneOfType([t.default.element,t.default.func,i]),Refresh:t.default.oneOfType([t.default.element,t.default.func,i]),ResetSearch:t.default.oneOfType([t.default.element,t.default.func,i]),Search:t.default.oneOfType([t.default.element,t.default.func,i]),SortArrow:t.default.oneOfType([t.default.element,t.default.func,i]),ThirdStateCheck:t.default.oneOfType([t.default.element,t.default.func,i]),ViewColumn:t.default.oneOfType([t.default.element,t.default.func,i])}),isLoading:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),options:t.default.shape({actionsCellStyle:t.default.object,editCellStyle:t.default.object,idSynonym:t.default.string,detailPanelColumnStyle:t.default.object,actionsColumnIndex:t.default.number,addRowPosition:t.default.oneOf(["first","last"]),columnsButton:t.default.bool,defaultExpanded:t.default.oneOfType([t.default.bool,t.default.func]),debounceInterval:t.default.number,detailPanelType:t.default.oneOf(["single","multiple"]),doubleHorizontalScroll:t.default.bool,emptyRowsWhenPaging:t.default.bool,exportAllData:t.default.bool,exportMenu:t.default.arrayOf(t.default.shape({label:t.default.string,exportFunc:t.default.func})),filtering:t.default.bool,filterCellStyle:t.default.object,filterRowStyle:t.default.object,header:t.default.bool,headerSelectionProps:t.default.object,headerStyle:t.default.object,hideFilterIcons:t.default.bool,initialPage:t.default.number,maxBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),minBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),loadingType:t.default.oneOf(["overlay","linear"]),overflowY:t.default.oneOf(["visible","hidden","scroll","auto","initial","inherit","overlay"]),padding:t.default.oneOf(["normal","dense"]),paging:t.default.bool,pageSize:t.default.number,pageSizeOptions:t.default.arrayOf(t.default.number),paginationType:t.default.oneOf(["normal","stepped"]),paginationPosition:t.default.oneOf(["bottom","top","both"]),persistentGroupingsId:t.default.string,rowStyle:t.default.oneOfType([t.default.object,t.default.func]),search:t.default.bool,searchText:t.default.string,searchDebounceDelay:t.default.number,toolbarButtonAlignment:t.default.oneOf(["left","right"]),searchFieldAlignment:t.default.oneOf(["left","right"]),searchFieldStyle:t.default.object,searchAutoFocus:t.default.bool,searchFieldVariant:t.default.oneOf(["standard","filled","outlined"]),selection:t.default.bool,selectionProps:t.default.oneOfType([t.default.object,t.default.func]),showEmptyDataSourceMessage:t.default.bool,showFirstLastPageButtons:t.default.oneOfType([t.default.object,t.default.bool]),showSelectAllCheckbox:t.default.bool,showSelectGroupCheckbox:t.default.bool,showTitle:t.default.bool,showTextRowsSelected:t.default.bool,sorting:t.default.bool,defaultOrderByCollection:t.default.arrayOf(t.default.shape({orderBy:t.default.number,orderDirection:t.default.string,sortOrder:t.default.number,orderIndex:t.default.number})),maxColumnSort:t.default.oneOf([0,1,2,3,4,5,6,7,8,9,10,r.ALL_COLUMNS]),showColumnSortOrder:t.default.bool,sortOrderIndicatorStyle:t.default.object,keepSortDirectionOnColumnSwitch:t.default.bool,clientSorting:t.default.bool,toolbar:t.default.bool,thirdSortClick:t.default.bool,numberOfPagesAround:t.default.oneOf([1,2,3,4,5,6,7,8,9,10])}),localization:t.default.shape({grouping:t.default.shape({groupedBy:t.default.string,placeholder:t.default.string}),pagination:t.default.object,toolbar:t.default.object,header:t.default.object,body:t.default.object}),initialFormData:t.default.object,onSearchChange:t.default.func,onFilterChange:t.default.func,onColumnDragged:t.default.func,onColumnResized:t.default.func,onGroupRemoved:t.default.func,onGroupChange:t.default.func,onSelectionChange:t.default.func,onRowsPerPageChange:t.default.func,onPageChange:t.default.func,onChangeColumnHidden:t.default.func,onOrderChange:t.default.func,onOrderCollectionChange:t.default.func,onRowClick:t.default.func,onRowDoubleClick:t.default.func,onTreeExpandChange:t.default.func,onQueryChange:t.default.func,onBulkEditOpen:t.default.func,tableRef:t.default.any,style:t.default.object,page:t.default.number,totalCount:t.default.number};return Ns.propTypes=o,Ns}var Em={};const vY=qn(K9),yY=qn(J9),bY=qn(Q9);var Rm,I3;function xY(){if(I3)return Rm;I3=1;function e(t,r,i){var c,o,a,n,l;r==null&&(r=100);function f(){var u=Date.now()-n;u=0?c=setTimeout(f,r-u):(c=null,i||(l=t.apply(a,o),a=o=null))}var s=function(){a=this,o=arguments,n=Date.now();var u=i&&!c;return c||(c=setTimeout(f,r)),u&&(l=t.apply(a,o),a=o=null),l};return s.clear=function(){c&&(clearTimeout(c),c=null)},s.flush=function(){c&&(l=t.apply(a,o),a=o=null,clearTimeout(c),c=null)},s}return e.debounce=e,Rm=e,Rm}var Lm={};const wY=qn(LL);var Im={},$s={},Kc={},F3;function h6(){if(F3)return Kc;F3=1,Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return Kc}var ol={},Bs={},zs={},N3;function _Y(){if(N3)return zs;N3=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return zs.default=e,zs}var j3;function Jd(){if(j3)return Bs;j3=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=void 0;var e=t(_Y());function t(c){return c&&c.__esModule?c:{default:c}}function r(c){return typeof c=="string"&&e.default.test(c)}var i=r;return Bs.default=i,Bs}var $3;function Qd(){if($3)return ol;$3=1,Object.defineProperty(ol,"__esModule",{value:!0}),ol.default=void 0,ol.unsafeStringify=i;var e=t(Jd());function t(a){return a&&a.__esModule?a:{default:a}}const r=[];for(let a=0;a<256;++a)r.push((a+256).toString(16).slice(1));function i(a,n=0){return r[a[n+0]]+r[a[n+1]]+r[a[n+2]]+r[a[n+3]]+"-"+r[a[n+4]]+r[a[n+5]]+"-"+r[a[n+6]]+r[a[n+7]]+"-"+r[a[n+8]]+r[a[n+9]]+"-"+r[a[n+10]]+r[a[n+11]]+r[a[n+12]]+r[a[n+13]]+r[a[n+14]]+r[a[n+15]]}function c(a,n=0){const l=i(a,n);if(!(0,e.default)(l))throw TypeError("Stringified UUID is invalid");return l}var o=c;return ol.default=o,ol}var B3;function TY(){if(B3)return $s;B3=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.default=void 0;var e=r(h6()),t=Qd();function r(f){return f&&f.__esModule?f:{default:f}}let i,c,o=0,a=0;function n(f,s,u){let d=s&&u||0;const h=s||new Array(16);f=f||{};let p=f.node||i,m=f.clockseq!==void 0?f.clockseq:c;if(p==null||m==null){const _=f.random||(f.rng||e.default)();p==null&&(p=i=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),m==null&&(m=c=(_[6]<<8|_[7])&16383)}let y=f.msecs!==void 0?f.msecs:Date.now(),v=f.nsecs!==void 0?f.nsecs:a+1;const g=y-o+(v-a)/1e4;if(g<0&&f.clockseq===void 0&&(m=m+1&16383),(g<0||y>o)&&f.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=y,a=v,c=m,y+=122192928e5;const b=((y&268435455)*1e4+v)%4294967296;h[d++]=b>>>24&255,h[d++]=b>>>16&255,h[d++]=b>>>8&255,h[d++]=b&255;const x=y/4294967296*1e4&268435455;h[d++]=x>>>8&255,h[d++]=x&255,h[d++]=x>>>24&15|16,h[d++]=x>>>16&255,h[d++]=m>>>8|128,h[d++]=m&255;for(let _=0;_<6;++_)h[d+_]=p[_];return s||(0,t.unsafeStringify)(h)}var l=n;return $s.default=l,$s}var qs={},Wi={},Ws={},z3;function p6(){if(z3)return Ws;z3=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var e=t(Jd());function t(c){return c&&c.__esModule?c:{default:c}}function r(c){if(!(0,e.default)(c))throw TypeError("Invalid UUID");let o;const a=new Uint8Array(16);return a[0]=(o=parseInt(c.slice(0,8),16))>>>24,a[1]=o>>>16&255,a[2]=o>>>8&255,a[3]=o&255,a[4]=(o=parseInt(c.slice(9,13),16))>>>8,a[5]=o&255,a[6]=(o=parseInt(c.slice(14,18),16))>>>8,a[7]=o&255,a[8]=(o=parseInt(c.slice(19,23),16))>>>8,a[9]=o&255,a[10]=(o=parseInt(c.slice(24,36),16))/1099511627776&255,a[11]=o/4294967296&255,a[12]=o>>>24&255,a[13]=o>>>16&255,a[14]=o>>>8&255,a[15]=o&255,a}var i=r;return Ws.default=i,Ws}var q3;function g6(){if(q3)return Wi;q3=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.URL=Wi.DNS=void 0,Wi.default=a;var e=Qd(),t=r(p6());function r(n){return n&&n.__esModule?n:{default:n}}function i(n){n=unescape(encodeURIComponent(n));const l=[];for(let f=0;f>5]>>>v%32&255,b=parseInt(y.charAt(g>>>4&15)+y.charAt(g&15),16);p.push(b)}return p}function r(h){return(h+64>>>9<<4)+14+1}function i(h,p){h[p>>5]|=128<>5]|=(h[y/8]&255)<>16)+(p>>16)+(m>>16)<<16|m&65535}function a(h,p){return h<>>32-p}function n(h,p,m,y,v,g){return o(a(o(o(p,h),o(y,g)),v),m)}function l(h,p,m,y,v,g,b){return n(p&m|~p&y,h,p,v,g,b)}function f(h,p,m,y,v,g,b){return n(p&y|m&~y,h,p,v,g,b)}function s(h,p,m,y,v,g,b){return n(p^m^y,h,p,v,g,b)}function u(h,p,m,y,v,g,b){return n(m^(p|~y),h,p,v,g,b)}var d=e;return Us.default=d,Us}var U3;function MY(){if(U3)return qs;U3=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=void 0;var e=r(g6()),t=r(kY());function r(o){return o&&o.__esModule?o:{default:o}}var c=(0,e.default)("v3",48,t.default);return qs.default=c,qs}var Hs={},Vs={},H3;function SY(){if(H3)return Vs;H3=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Vs.default=t,Vs}var V3;function CY(){if(V3)return Hs;V3=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var e=i(SY()),t=i(h6()),r=Qd();function i(a){return a&&a.__esModule?a:{default:a}}function c(a,n,l){if(e.default.randomUUID&&!n&&!a)return e.default.randomUUID();a=a||{};const f=a.random||(a.rng||t.default)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,n){l=l||0;for(let s=0;s<16;++s)n[l+s]=f[s];return n}return(0,r.unsafeStringify)(f)}var o=c;return Hs.default=o,Hs}var Ys={},Gs={},Y3;function OY(){if(Y3)return Gs;Y3=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.default=void 0;function e(c,o,a,n){switch(c){case 0:return o&a^~o&n;case 1:return o^a^n;case 2:return o&a^o&n^a&n;case 3:return o^a^n}}function t(c,o){return c<>>32-o}function r(c){const o=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof c=="string"){const s=unescape(encodeURIComponent(c));c=[];for(let u=0;u>>0;y=m,m=p,p=t(h,30)>>>0,h=d,d=b}a[0]=a[0]+d>>>0,a[1]=a[1]+h>>>0,a[2]=a[2]+p>>>0,a[3]=a[3]+m>>>0,a[4]=a[4]+y>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,a[0]&255,a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,a[1]&255,a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,a[2]&255,a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,a[3]&255,a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,a[4]&255]}var i=r;return Gs.default=i,Gs}var G3;function AY(){if(G3)return Ys;G3=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.default=void 0;var e=r(g6()),t=r(OY());function r(o){return o&&o.__esModule?o:{default:o}}var c=(0,e.default)("v5",80,t.default);return Ys.default=c,Ys}var Xs={},X3;function PY(){if(X3)return Xs;X3=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Xs.default=e,Xs}var Zs={},Z3;function DY(){if(Z3)return Zs;Z3=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.default=void 0;var e=t(Jd());function t(c){return c&&c.__esModule?c:{default:c}}function r(c){if(!(0,e.default)(c))throw TypeError("Invalid UUID");return parseInt(c.slice(14,15),16)}var i=r;return Zs.default=i,Zs}var K3;function EY(){return K3||(K3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return a.default}});var t=s(TY()),r=s(MY()),i=s(CY()),c=s(AY()),o=s(PY()),a=s(DY()),n=s(Jd()),l=s(Qd()),f=s(p6());function s(u){return u&&u.__esModule?u:{default:u}}}(Im)),Im}var J3;function RY(){return J3||(J3=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t($l()),i=t(Dd()),c=t(Ed()),o=t(Jr()),a=t(wY),n=EY(),l=qd(),f=Ri(),s=_1();function u(v,g){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);g&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,x)}return b}function d(v){for(var g=1;g=v.length?{done:!0}:{done:!1,value:v[x++]}},e:function(S){throw S},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,k=!1,T;return{s:function(){b=b.call(v)},n:function(){var S=b.next();return w=S.done,S},e:function(S){k=!0,T=S},f:function(){try{!w&&b.return!=null&&b.return()}finally{if(k)throw T}}}}function p(v,g){if(v){if(typeof v=="string")return m(v,g);var b=Object.prototype.toString.call(v).slice(8,-1);if(b==="Object"&&v.constructor&&(b=v.constructor.name),b==="Map"||b==="Set")return Array.from(v);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return m(v,g)}}function m(v,g){(g==null||g>v.length)&&(g=v.length);for(var b=0,x=new Array(g);b0?T(S.groups):S.data.forEach(function(C){C.tableData.checked!==b&&(C.tableData.checked=C.tableData.disabled?!1:b,g.selectedCount=g.selectedCount+(b?1:-1))})})};k([_])}),(0,o.default)(this,"getOrderByCollection",function(){return g.orderByCollection.filter(function(b){return b.sortOrder})}),(0,o.default)(this,"sortOrderCollection",function(b){return b.sort(function(x,_){return x.sortOrder?_.sortOrder?x.sortOrder-_.sortOrder:-1:1})}),(0,o.default)(this,"startCellEditable",function(b,x){b.tableData.editCellList=[].concat((0,r.default)(b.tableData.editCellList||[]),[x])}),(0,o.default)(this,"finishCellEditable",function(b,x){if(b.tableData.editCellList){var _=b.tableData.editCellList.findIndex(function(w){return w.tableData.id.toString()===x.tableData.id.toString()});_!==-1&&b.tableData.editCellList.splice(_,1)}}),(0,o.default)(this,"clearBulkEditChangedRows",function(){g.bulkEditChangedRows={}}),(0,o.default)(this,"onBulkEditRowChanged",function(b,x){g.bulkEditChangedRows[b.tableData.id]={oldData:b,newData:x}}),(0,o.default)(this,"expandTreeForNodes",function(b){b.forEach(function(x){for(var _=x;g.parentFunc(_,g.data);){var w=g.parentFunc(_,g.data);w&&(w.tableData.isTreeExpanded=!0),_=w}})}),(0,o.default)(this,"findDataByPath",function(b,x){if(g.isDataType("tree")){var _=x.reduce(function(T,M){return T&&T.tableData&&T.tableData.childRows&&T.tableData.childRows.find(function(S){return S&&S.tableData.uuid===M})},{tableData:{childRows:b}});return _}else{var w={groups:b},k=x.reduce(function(T,M){return T.groups.length>0?T.groups[M]:T.data?T.data[M]||T.data.find(function(S){var C;return((C=S.tableData)===null||C===void 0?void 0:C.uuid)===M}):void 0},w);return k}}),(0,o.default)(this,"getFieldValue",function(b,x){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,w=typeof b[x.field]<"u"?b[x.field]:(0,l.selectFromObject)(b,x.field);return x.lookup&&_&&(w=x.lookup[w]),w}),(0,o.default)(this,"getRenderState",function(){return g.filtered===!1&&g.filterData(),g.searched===!1&&g.searchData(),g.grouped===!1&&g.isDataType("group")&&g.groupData(),g.treefied===!1&&g.isDataType("tree")&&g.treefyData(),g.sorted===!1&&g.sortData(),g.paged===!1&&g.pageData(),{columns:g.columns,currentPage:g.currentPage,data:g.sortedData,lastEditingRow:g.lastEditingRow,orderByCollection:g.orderByCollection,maxColumnSort:g.maxColumnSort,originalData:(0,r.default)(g.data),pageSize:g.pageSize,renderData:g.pagedData,searchText:g.searchText,selectedCount:g.selectedCount,treefiedDataLength:g.treefiedDataLength,treeDataMaxLevel:g.treeDataMaxLevel,groupedDataLength:g.groupedDataLength,tableStyleWidth:g.tableStyleWidth}}),(0,o.default)(this,"filterData",function(){g.searched=g.grouped=g.treefied=g.sorted=g.paged=!1,g.filteredData=(0,r.default)(g.data),g.applyFilters&&g.columns.filter(function(b){return b.tableData.filterValue!==void 0}).forEach(function(b){var x=b.lookup,_=b.type,w=b.tableData;b.customFilterAndSearch?g.filteredData=g.filteredData.filter(function(k){return!!b.customFilterAndSearch(w.filterValue,k,b)}):x?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b,!1);return!w.filterValue||w.filterValue.length===0||w.filterValue.indexOf(T!=null&&T.toString())>-1}):_==="numeric"?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T+""===w.filterValue}):_==="boolean"&&w.filterValue?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T&&w.filterValue==="checked"||!T&&w.filterValue==="unchecked"}):["date","datetime"].includes(_)?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b),M=T?new Date(T):null;if(M&&M.toString()!=="Invalid Date"){var S=w.filterValue,C="",P="";return _==="date"?(C=(0,a.default)(M,"MM/dd/yyyy"),P=(0,a.default)(S,"MM/dd/yyyy")):_==="datetime"&&(C=(0,a.default)(M,"MM/dd/yyyy - HH:mm"),P=(0,a.default)(S,"MM/dd/yyyy - HH:mm")),C===P}return!0}):_==="time"?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b),M=T||null;if(M){var S=w.filterValue,C=(0,a.default)(S,"HH:mm");return M===C}return!0}):g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T!=null&&T.toString().toUpperCase().includes(w.filterValue.toUpperCase())})}),g.filtered=!0}),(0,o.default)(this,"searchData",function(){if(g.grouped=g.treefied=g.sorted=g.paged=!1,g.searchedData=(0,r.default)(g.filteredData),g.searchText&&g.applySearch){var b=g.searchText.trim();g.searchedData=g.searchedData.filter(function(x){return g.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(b,x,_);if(_.field){var w=g.getFieldValue(x,_);if(w)return w.toString().toUpperCase().includes(b.toUpperCase())}return!1})})}g.searched=!0}),(0,o.default)(this,"clearCriteria",function(){g.changeOrder(-1,""),g.changeSearchText("");var b=h(g.columns),x;try{for(b.s();!(x=b.n()).done;){var _=x.value;g.changeFilterValue(_.tableData.id,"")}}catch(w){b.e(w)}finally{b.f()}g.changeSearchText(""),g.changePaging(0)})}return(0,c.default)(v,[{key:"setData",value:function(b,x){var _=this;this.selectedCount=0;var w={};this.data.length!==0&&this.data[0][x]!==void 0&&(w=this.data.reduce(function(k,T){return k[T.tableData.id]=T.tableData,k},{})),this.data=b.map(function(k,T){var M=w[k[x]]||{},S=d(d({index:T,id:k[x]||T,uuid:k.uuid||(0,n.v4)()},M),k.tableData);S.checked&&_.selectedCount++;var C=d(d({},k),{},{tableData:S});return _.lastDetailPanelRow&&_.lastDetailPanelRow.tableData===M&&(_.lastDetailPanelRow=C),_.lastEditingRow&&_.lastEditingRow.tableData===M&&(_.lastEditingRow=C),C}),this.filtered=!1}},{key:"setTableWidth",value:function(b){this.tableWidth=b}},{key:"setColumns",value:function(b){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=0,k=[];this.columns=b.map(function(S,C){var P,D=(0,f.widthToNumber)(S.width),O=typeof S.width=="number"?S.width+"px":S.width;O&&(isNaN(D)?k.push(O):w+=D);var R=x.find(function(z){var B=z.id;return B===C}),F=(P=_[S.field])!==null&&P!==void 0?P:{},A=d(d(d(d({columnOrder:C,filterValue:S.defaultFilter,groupOrder:S.defaultGroupOrder,groupSort:S.defaultGroupSort||"asc",width:O,initialWidth:O,widthPx:isNaN(D)?void 0:D,additionalWidth:0},F),R?R.tableData:{}),S.tableData),{},{id:C});return S.tableData=A,S});var T=this.columns.filter(function(S){return S.hidden||S.columnDef&&S.columnDef.tableData&&S.columnDef.tableData.width?!1:S.width===void 0}),M=(w!==0?"".concat(w,"px"):"0px")+(k.length>0?" - "+k.join(" - "):"");T.forEach(function(S){S.tableData.width=S.tableData.initialWidth="calc((100% - ".concat(M,") / ").concat(T.length,")")}),this.tableStyleWidth=this.tableWidth==="full"||T.length>0||k.length>0?"100%":w}},{key:"setDefaultExpanded",value:function(b){this.defaultExpanded=b}},{key:"setClientSorting",value:function(b){this.clientSorting=!!b}},{key:"setMaxColumnSort",value:function(b){var x=this.columns.filter(function(_){return _.sorting!==!1}).length;b===s.ALL_COLUMNS?this.maxColumnSort=x:this.maxColumnSort=Math.min(b,x)}},{key:"setOrderByCollection",value:function(){var b=this.getOrderByCollection(),x=this.columns.map(function(_){var w=_.tableData.id,k=b.find(function(T){return T.orderBy===w});return k?d({},k):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});x=this.sortOrderCollection(x),this.orderByCollection=(0,r.default)(x)}},{key:"setDefaultOrderByCollection",value:function(b){this.defaultOrderByCollection=(0,r.default)(b)}},{key:"getDefaultOrderByCollection",value:function(){return this.defaultOrderByCollection}},{key:"changeApplySearch",value:function(b){this.applySearch=b,this.searched=!1}},{key:"changeApplyFilters",value:function(b){this.applyFilters=b,this.filtered=!1}},{key:"changeApplySort",value:function(b){this.applySort=b,this.sorted=!1}},{key:"changePaging",value:function(b){this.paging=b,this.paged=!1}},{key:"changeCurrentPage",value:function(b){this.currentPage=b,this.paged=!1}},{key:"changePageSize",value:function(b){this.pageSize=b,this.paged=!1}},{key:"changeParentFunc",value:function(b){this.parentFunc=b}},{key:"changeFilterValue",value:function(b,x){var _=this.columns.find(function(w){return w.tableData.id===b});_.tableData.filterValue=x,this.filtered=!1}},{key:"changeRowSelected",value:function(b,x){var _=this,w=this.findDataByPath(this.sortedData,x);w.tableData.checked=b,this.selectedCount=this.selectedCount+(b?1:-1);var k=function T(M){M.tableData.childRows&&M.tableData.childRows.forEach(function(S){S.tableData.checked!==b&&(S.tableData.checked=b,_.selectedCount=_.selectedCount+(b?1:-1)),T(S)})};k(w),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(b,x){var _=this.findDataByPath(this.sortedData,b);(_.tableData.showDetailPanel||"").toString()===x.toString()?_.tableData.showDetailPanel=void 0:_.tableData.showDetailPanel=x,this.detailPanelType==="single"&&this.lastDetailPanelRow&&this.lastDetailPanelRow!==_&&(this.lastDetailPanelRow.tableData.showDetailPanel=void 0),this.lastDetailPanelRow=_}},{key:"changeGroupExpand",value:function(b){var x=this.findDataByPath(this.sortedData,b);x.isExpanded=!x.isExpanded}},{key:"changeSearchText",value:function(b){this.searchText=b,this.searched=!1,this.currentPage=0}},{key:"changeSearchDebounce",value:function(b){this.searchDebounceDelay=b}},{key:"changeRowEditing",value:function(b,x){b?(b.tableData.editing=x,this.lastEditingRow&&this.lastEditingRow!==b&&(this.lastEditingRow.tableData.editing=void 0),x?this.lastEditingRow=b:this.lastEditingRow=void 0):this.lastEditingRow&&(this.lastEditingRow.tableData.editing=void 0,this.lastEditingRow=void 0)}},{key:"changeBulkEditOpen",value:function(b){this.bulkEditOpen=b}},{key:"changeAllSelected",value:function(b,x){var _=0,w=function(S){var C=x instanceof Function?x(S):{disabled:!1};return S.tableData.disabled||C.disabled?!1:b};if(this.isDataType("group")){var k=function M(S){S.forEach(function(C){C.groups.length>0?M(C.groups):C.data.forEach(function(P){P.tableData.checked=w(P),_++})})};k(this.groupedData)}else{var T=function M(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){C.tableData.checked=w(S),M(C)})};this.searchedData.forEach(function(M){M.tableData.checked=w(M),T(M)}),_=this.searchedData.length}this.selectedCount=b?_:0}},{key:"changeColumnOrder",value:function(b,x,_){var w=[],k=this.getOrderByCollection();k.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,w=this.orderByCollection.map(function(T){return T.sortOrder?T.sortOrder-=1:T.orderBy===b&&x&&(T.sortOrder=k.length,T.orderDirection=x),T})):w=this.orderByCollection.map(function(T){return T.orderBy===b&&x?(T.orderDirection=x,T.sortOrder=_||k.length+1):!x&&T.orderBy===b?(T.orderDirection=x,T.sortOrder=void 0):!x&&_-1}).sort(function(W,G){return W.tableData.groupOrder-G.tableData.groupOrder});if(b.destination.droppableId==="groups"&&b.source.droppableId==="groups"){x=Math.min(b.destination.index,b.source.index);var w=Math.max(b.destination.index,b.source.index);if(_=_.slice(x,w+1),b.destination.index-1})&&(x="group"),b===x}},{key:"sort",value:function(b,x,_){if(_==="numeric")return b-x;if(b!==x){if(!b)return-1;if(!x)return 1}return bx?1:0}},{key:"sortList",value:function(b){if(!this.clientSorting)return b;var x=this.orderByCollection.map(function(M){return M.orderBy}),_=new Map;this.columns.forEach(function(M){var S=M.tableData.id;x.includes(S)&&_.set(S,M)});var w=this.sort,k=this.getFieldValue,T=this.orderByCollection;return b.sort(function M(S,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:T,O=D[0],R=O.orderBy,F=O.orderDirection,A=P.get(R),z=0;A.customSort?F==="desc"?z=A.customSort(C,S,"row",F):z=A.customSort(S,C,"row",F):(z=w(k(S,A),k(C,A),A.type),z=F.toLowerCase()==="desc"?z*-1:z);var B=z===0&&D.filter(function($){return $.sortOrder!==void 0}).length!==1;return B?M(S,C,P,D.slice(1)):z})}},{key:"groupData",value:function(){var b=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var x=(0,r.default)(this.searchedData),_=this.columns.filter(function(k){return k.tableData.groupOrder>-1}).sort(function(k,T){return k.tableData.groupOrder-T.tableData.groupOrder}),w=x.reduce(function(k,T){var M=k;return M=_.reduce(function(S,C){var P=T[C.field]||(0,l.selectFromObject)(T,C.field),D;if(S.groupsIndex[P]!==void 0&&(D=S.groups[S.groupsIndex[P]]),!D){var O=[].concat((0,r.default)(S.path||[]),[P]),R=b.findGroupByGroupPath(b.groupedData,O)||{isExpanded:typeof b.defaultExpanded=="boolean"?b.defaultExpanded:!1};D={value:P,groups:[],groupsIndex:{},data:[],isExpanded:R.isExpanded,path:O},S.groups.push(D),S.groupsIndex[P]=S.groups.length-1}return D},M),M.data.push(T),b.groupedDataLength++,k},{groups:[],groupsIndex:{}});this.groupedData=w.groups,this.grouped=!0,this.rootGroupsIndex=w.groupsIndex}},{key:"treefyData",value:function(){var b=this;this.sorted=this.paged=!1,this.data.forEach(function(T){return T.tableData.childRows=null}),this.treefiedData=[],this.treefiedDataLength=0,this.treeDataMaxLevel=0,(this.searchText||this.columns.some(function(T){return T.tableData.filterValue}))&&(this.data.forEach(function(T){T.tableData.isTreeExpanded=!1}),this.expandTreeForNodes(this.searchedData));var x=function T(M){M.tableData.markedForTreeRemove=!1;var S=b.parentFunc(M,b.data);S?(S.tableData.childRows=S.tableData.childRows||[],S.tableData.childRows.includes(M)||(S.tableData.childRows.push(M),b.treefiedDataLength++),T(S),M.tableData.path=[].concat((0,r.default)(S.tableData.path),[M.tableData.uuid]),b.treeDataMaxLevel=Math.max(b.treeDataMaxLevel,M.tableData.path.length)):b.treefiedData.includes(M)||(b.treefiedData.push(M),b.treefiedDataLength++,M.tableData.path=[M.tableData.uuid])};this.data.forEach(function(T){x(T)});var _=function(M){var S=b.treefiedData;M.tableData.path.forEach(function(C){S.tableData&&S.tableData.childRows&&(S=S.tableData.childRows),Array.isArray(S)&&(S=S.find(function(P){return P.tableData.uuid===C}))}),S.tableData.markedForTreeRemove=!0},w=function T(M){M.tableData.childRows&&M.tableData.childRows.forEach(function(S){T(S)}),M.tableData.markedForTreeRemove=!1};this.data.forEach(function(T){if(!b.searchText&&!b.columns.some(function(C){return C.tableData.filterValue})&&T.tableData.isTreeExpanded===void 0){var M=typeof b.defaultExpanded=="boolean"?b.defaultExpanded:b.defaultExpanded(T);T.tableData.isTreeExpanded=M}var S=T.tableData.isTreeExpanded;!S&&b.searchedData.indexOf(T)<0&&_(T)}),this.data.forEach(function(T){b.searchedData.indexOf(T)>-1&&w(T)});var k=function T(M){for(var S=M.length-1;S>=0;S--){var C=M[S];C.tableData.childRows&&T(C.tableData.childRows),C.tableData.markedForTreeRemove&&M.splice(S,1)}};k(this.treefiedData),this.treefiedDataLength=this.treefiedData.length,this.treefied=!0}},{key:"sortData",value:function(){var b=this;if(this.paged=!1,this.isDataType("group")){this.sortedData=(0,r.default)(this.groupedData);var x=this.columns.filter(function(M){return M.tableData.groupOrder>-1}).sort(function(M,S){return M.tableData.groupOrder-S.tableData.groupOrder}),_=function(S,C){return C.customSort?S.sort(C.tableData.groupSort==="desc"?function(P,D){return C.customSort(D.value,P.value,"group",C.tableData.groupSort)}:function(P,D){return C.customSort(P.value,D.value,"group",C.tableData.groupSort)}):S.sort(C.tableData.groupSort==="desc"?function(P,D){return b.sort(D.value,P.value,C.type)}:function(P,D){return b.sort(P.value,D.value,C.type)})};this.sortedData=_(this.sortedData,x[0]);var w=function(S){return S.reduce(function(C,P){return C[P.value]=S.findIndex(function(D){return D.value===P.value}),C},{})},k=function M(S,C){S.forEach(function(P){if(P.groups.length>0){var D=x[C];P.groups=_(P.groups,D),P.groupsIndex=w(P.groups),M(P.groups,C+1)}else b.maxColumnSort>0&&b.getOrderByCollection().length>0?P.data=b.sortList(P.data):b.maxColumnSort>0&&(P.data=P.data.sort(function(O,R){return b.data.findIndex(function(F){return F.tableData.id===O.tableData.id})-b.data.findIndex(function(F){return F.tableData.id===R.tableData.id})}))})};k(this.sortedData,1)}else if(this.isDataType("tree")){if(this.sortedData=(0,r.default)(this.treefiedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0){this.sortedData=this.sortList(this.sortedData);var T=function M(S){S.forEach(function(C){C.tableData.childRows&&(C.tableData.childRows=b.sortList(C.tableData.childRows),M(C.tableData.childRows))})};T(this.sortedData)}}else this.isDataType("normal")&&(this.sortedData=(0,r.default)(this.searchedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0&&this.applySort&&(this.sortedData=this.sortList(this.sortedData)));this.sorted=!0}},{key:"pageData",value:function(){if(this.pagedData=(0,r.default)(this.sortedData),this.paging){var b=this.currentPage*this.pageSize,x=b+this.pageSize;this.pagedData=this.pagedData.slice(b,x)}this.paged=!0}}]),v}();e.default=y}(Lm)),Lm}var Q3;function LY(){return Q3||(Q3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(vY),c=t(yY),o=t(Ai),a=t(hr()),n=t(Bo),l=t($l()),f=t(bY),s=t(Ur()),u=t(ao()),d=t(Dd()),h=t(Ed()),p=t(xy()),m=t(by()),y=t(wy()),v=t(_y()),g=t(Jr()),b=t($e),x=xY(),_=t(MS()),w=C(Ri()),k=w1,T=t(RY()),M=Kd();function S(B){if(typeof WeakMap!="function")return null;var $=new WeakMap,j=new WeakMap;return(S=function(E){return E?j:$})(B)}function C(B,$){if(B&&B.__esModule)return B;if(B===null||r(B)!=="object"&&typeof B!="function")return{default:B};var j=S($);if(j&&j.has(B))return j.get(B);var N={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var W in B)if(W!=="default"&&Object.prototype.hasOwnProperty.call(B,W)){var G=E?Object.getOwnPropertyDescriptor(B,W):null;G&&(G.get||G.set)?Object.defineProperty(N,W,G):N[W]=B[W]}return N.default=B,j&&j.set(B,N),N}function P(B,$){var j=Object.keys(B);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(B);$&&(N=N.filter(function(E){return Object.getOwnPropertyDescriptor(B,E).enumerable})),j.push.apply(j,N)}return j}function D(B){for(var $=1;$"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var F=function(B){(0,m.default)(j,B);var $=O(j);function j(N){var E;(0,d.default)(this,j),E=$.call(this,N),(0,g.default)((0,p.default)(E),"dataManager",new T.default),(0,g.default)((0,p.default)(E),"checkedForFunctions",!1),(0,g.default)((0,p.default)(E),"clearCriteria",function(){E.dataManager.clearCriteria(),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"isRemoteData",function(L){return!Array.isArray((L||E.props).data)}),(0,g.default)((0,p.default)(E),"onAllSelected",function(L){E.dataManager.changeAllSelected(L,E.props.options.selectionProps),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,g.default)((0,p.default)(E),"onGroupSelected",function(L,q){E.dataManager.changeGroupSelected(L,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,g.default)((0,p.default)(E),"onChangeColumnHidden",function(L,q){E.dataManager.changeColumnHidden(L,q),E.setState(E.dataManager.getRenderState(),function(){E.props.onChangeColumnHidden&&E.props.onChangeColumnHidden(L,q)})}),(0,g.default)((0,p.default)(E),"onChangeGroupOrder",function(L){E.dataManager.changeGroupOrder(L.tableData.id),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onChangeOrder",function(L,q,H){E.dataManager.changeColumnOrder(L,q,H);var V=E.dataManager.getOrderByCollection();if(E.isRemoteData()){var te=D({},E.state.query);te.page=0,te.orderBy=E.state.columns.find(function(ee){return ee.tableData.id===L}),te.orderDirection=q,console.warn("Properties orderBy and orderDirection had been deprecated when remote data, please start using orderByCollection instead"),te.orderByCollection=V,E.onQueryChange(te,function(){E.props.onOrderChange&&E.props.onOrderChange(L,q),E.props.onOrderCollectionChange&&E.props.onOrderCollectionChange(V)})}else E.setState(E.dataManager.getRenderState(),function(){E.props.onOrderChange&&E.props.onOrderChange(L,q),E.props.onOrderCollectionChange&&E.props.onOrderCollectionChange(V)})}),(0,g.default)((0,p.default)(E),"onPageChange",function(L,q){if(E.isRemoteData()){var H=D({},E.state.query);H.page=q,E.onQueryChange(H,function(){E.props.onPageChange&&E.props.onPageChange(q,H.pageSize)})}else E.dataManager.changeCurrentPage(q),E.setState(E.dataManager.getRenderState(),function(){E.props.onPageChange&&E.props.onPageChange(q,E.state.pageSize)})}),(0,g.default)((0,p.default)(E),"onRowsPerPageChange",function(L){var q=L.target.value;E.dataManager.changePageSize(q);var H=function(){E.props.onPageChange&&E.props.onPageChange(0,q),E.props.onRowsPerPageChange&&E.props.onRowsPerPageChange(q)};if(E.isRemoteData()){var V=D({},E.state.query);V.pageSize=L.target.value,V.page=0,E.onQueryChange(V,H)}else E.dataManager.changeCurrentPage(0),E.setState(E.dataManager.getRenderState(),H)}),(0,g.default)((0,p.default)(E),"onDragEnd",function(L){!L||!L.source||!L.destination||(E.dataManager.changeByDrag(L),E.setState(E.dataManager.getRenderState(),function(){E.props.onColumnDragged&&L.destination.droppableId==="headers"&&L.source.droppableId==="headers"&&E.props.onColumnDragged(L.source.index,L.destination.index)}))}),(0,g.default)((0,p.default)(E),"onGroupExpandChanged",function(L){E.dataManager.changeGroupExpand(L),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onGroupRemoved",function(L,q){var H={combine:null,destination:{droppableId:"headers",index:0},draggableId:L.tableData.id,mode:"FLUID",reason:"DROP",source:{index:q,droppableId:"groups"},type:"DEFAULT"};E.dataManager.changeByDrag(H),E.setState(E.dataManager.getRenderState(),function(){E.props.onGroupRemoved&&E.props.onGroupRemoved(L,q)})}),(0,g.default)((0,p.default)(E),"onEditingApproved",function(L,q,H){L==="add"&&E.props.editable&&E.props.editable.onRowAdd?E.setState({isLoading:!0},function(){E.props.editable.onRowAdd(q).then(function(V){E.setState({isLoading:!1,showAddRow:!1},function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"add"};E.setState({isLoading:!1,errorState:te})})}):L==="update"&&E.props.editable&&E.props.editable.onRowUpdate?E.setState({isLoading:!0},function(){E.props.editable.onRowUpdate(q,H).then(function(V){E.dataManager.changeRowEditing(H),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"update"};E.setState({isLoading:!1,errorState:te})})}):L==="delete"&&E.props.editable&&E.props.editable.onRowDelete?E.setState({isLoading:!0},function(){E.props.editable.onRowDelete(Object.entries(H).reduce(function(V,te){var ee=(0,u.default)(te,2),U=ee[0],Q=ee[1];return U!=="tableData"&&(V[U]=Q),V},{})).then(function(V){E.dataManager.changeRowEditing(H),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"delete"};E.setState({isLoading:!1,errorState:te})})}):L==="bulk"&&E.props.editable&&E.props.editable.onBulkUpdate&&E.setState({isLoading:!0},function(){E.props.editable.onBulkUpdate(E.dataManager.bulkEditChangedRows).then(function(V){E.dataManager.changeBulkEditOpen(!1),E.props.onBulkEditOpen&&E.props.onBulkEditOpen(!1),E.dataManager.clearBulkEditChangedRows(),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"bulk edit"};E.setState({isLoading:!1,errorState:te})})})}),(0,g.default)((0,p.default)(E),"onEditingCanceled",function(L,q){L==="add"?(E.props.editable.onRowAddCancelled&&E.props.editable.onRowAddCancelled(),E.setState({showAddRow:!1})):L==="update"?(E.props.editable.onRowUpdateCancelled&&E.props.editable.onRowUpdateCancelled(),E.dataManager.changeRowEditing(q),E.setState(E.dataManager.getRenderState())):L==="delete"&&(E.dataManager.changeRowEditing(q),E.setState(E.dataManager.getRenderState()))}),(0,g.default)((0,p.default)(E),"retry",function(){E.onQueryChange(E.state.query)}),(0,g.default)((0,p.default)(E),"onQueryChange",function(L,q){L=D(D(D({},E.state.query),L),{},{error:E.state.errorState}),E.setState({isLoading:!0,errorState:void 0},function(){E.props.data(L).then(function(H){L.totalCount=H.totalCount,L.page=H.page;var V=D(D({},L),{},{totalCount:H.totalCount,page:H.page});E.dataManager.setData(H.data,E.props.options.idSynonym),E.setState(D(D({isLoading:!1,errorState:!1},E.dataManager.getRenderState()),{},{query:V}),function(){q&&q()})}).catch(function(H){var V={message:(0,s.default)(H)==="object"?H.message:H!==void 0?H:E.props.localization.error,errorCause:"query"};E.setState(D({isLoading:!1,errorState:V},E.dataManager.getRenderState()))})})}),(0,g.default)((0,p.default)(E),"onRowSelected",function(L,q,H){E.dataManager.changeRowSelected(L.target.checked,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange(H)})}),(0,g.default)((0,p.default)(E),"onSelectionChange",function(L){if(E.props.onSelectionChange){var q=[],H=function(te){te.forEach(function(ee){ee.tableData.checked&&q.push(ee)})};H(E.state.originalData),E.props.onSelectionChange(q,L)}}),(0,g.default)((0,p.default)(E),"onSearchChangeDebounce",(0,x.debounce)(function(L){if(E.isRemoteData()){var q=D({},E.state.query);q.page=0,q.search=L,E.onQueryChange(q,function(){E.props.onSearchChange&&E.props.onSearchChange(L)})}else E.setState(E.dataManager.getRenderState(),function(){E.props.onSearchChange&&E.props.onSearchChange(L)})},E.props.options.debounceInterval)),(0,g.default)((0,p.default)(E),"onFilterChange",function(L,q){E.dataManager.changeFilterValue(L,q),E.setState({},E.onFilterChangeDebounce)}),(0,g.default)((0,p.default)(E),"onFilterChangeDebounce",(0,x.debounce)(function(){if(E.isRemoteData()){var L=D({},E.state.query);L.page=0,L.filters=E.state.columns.filter(function(q){return q.tableData.filterValue}).map(function(q){return{column:q,operator:"=",value:q.tableData.filterValue}}),E.onQueryChange(L,function(){E.props.onFilterChange&&E.props.onFilterChange(L.filters)})}else E.setState(E.dataManager.getRenderState(),function(){if(E.props.onFilterChange){var q=E.state.columns.filter(function(H){return H.tableData.filterValue}).map(function(H){return{column:H,operator:"=",value:H.tableData.filterValue}});E.props.onFilterChange(q)}})},E.props.options.debounceInterval)),(0,g.default)((0,p.default)(E),"onTreeExpandChanged",function(L,q){E.dataManager.changeTreeExpand(L),E.setState(E.dataManager.getRenderState(),function(){E.props.onTreeExpandChange&&E.props.onTreeExpandChange(q,q.tableData.isTreeExpanded)})}),(0,g.default)((0,p.default)(E),"onToggleDetailPanel",function(L,q){E.dataManager.changeDetailPanelVisibility(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onCellEditStarted",function(L,q){E.dataManager.startCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onCellEditFinished",function(L,q){E.dataManager.finishCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onEditRowDataChanged",function(L,q){E.dataManager.setEditRowData(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onColumnResized",function(L,q,H,V){var te=function(Q){return D(D(D({field:Q.field,width:Q.tableData.width,widthPx:Q.tableData.widthPx},Q.id&&{id:Q.id}),Q.minWidth&&{minWidth:Q.minWidth}),Q.maxWidth&&{maxWidth:Q.maxWidth})},ee=E.dataManager.onColumnResized(L,q,H,V);E.setState(E.dataManager.getRenderState(),function(){q===0&&E.props.onColumnResized&&ee.length>0&&E.props.onColumnResized(ee.map(function(U){return te(U)}),E.state.columns.map(function(U){return te(U)}))})}),(0,g.default)((0,p.default)(E),"renderTable",function(L){var q;return b.default.createElement(f.default,{sx:L.sx,style:D(D({},L.options.tableWidth==="variable"&&{width:E.state.tableStyleWidth}),{},{tableLayout:L.options.fixedColumns&&(L.options.fixedColumns.left||L.options.fixedColumns.right)?"fixed":L.options.tableLayout})},L.options.header&&b.default.createElement(L.components.Header,{actions:E.state.actions,columns:E.state.columns,selectedCount:E.state.selectedCount,dataCount:L.parentChildData?E.dataManager.searchedData.length:E.state.columns.some(function(H){return H.tableData.groupOrder>-1})?E.state.groupedDataLength:E.state.data.length,hasDetailPanel:!!L.detailPanel,showActionsColumn:!E.dataManager.bulkEditOpen&&E.state.actions&&E.state.actions.some(function(H){return H.position==="row"||typeof H=="function"}),onAllSelected:E.onAllSelected,onOrderChange:E.onChangeOrder,isTreeData:E.props.parentChildData!==void 0,treeDataMaxLevel:E.state.treeDataMaxLevel,onColumnResized:E.onColumnResized,scrollWidth:E.state.width,sorting:L.options.sorting||E.dataManager.maxColumnSort!==0,allowSorting:E.dataManager.maxColumnSort!==0,orderByCollection:E.dataManager.getOrderByCollection(),tableWidth:(q=L.options.tableWidth)!==null&&q!==void 0?q:"full"}),b.default.createElement(L.components.Body,{actions:E.state.actions,components:E.props.components,renderData:E.state.renderData,data:E.state.data,renderSummaryRow:E.props.renderSummaryRow,currentPage:E.isRemoteData()?0:E.state.currentPage,initialFormData:L.initialFormData,pageSize:E.state.pageSize,columns:E.state.columns,errorState:E.state.errorState,detailPanel:L.detailPanel,options:L.options,getFieldValue:E.dataManager.getFieldValue,isTreeData:E.props.parentChildData!==void 0,onFilterChanged:E.onFilterChange,onRowSelected:E.onRowSelected,onGroupSelected:E.onGroupSelected,onToggleDetailPanel:E.onToggleDetailPanel,onGroupExpandChanged:E.onGroupExpandChanged,onTreeExpandChanged:E.onTreeExpandChanged,onEditingCanceled:E.onEditingCanceled,onEditingApproved:E.onEditingApproved,onRowClick:E.props.onRowClick,onRowDoubleClick:E.props.onRowDoubleClick,showAddRow:E.state.showAddRow,hasAnyEditingRow:!!(E.state.lastEditingRow||E.state.showAddRow),hasDetailPanel:!!L.detailPanel,treeDataMaxLevel:E.state.treeDataMaxLevel,cellEditable:L.cellEditable,onCellEditStarted:E.onCellEditStarted,onCellEditFinished:E.onCellEditFinished,onRowEditStarted:E.onRowEditStarted,bulkEditOpen:E.dataManager.bulkEditOpen,bulkEditChangedRows:E.dataManager.bulkEditChangedRows,onBulkEditRowChanged:E.dataManager.onBulkEditRowChanged,scrollWidth:E.state.width}))}),(0,g.default)((0,p.default)(E),"onRowEditStarted",function(L){var q;(q=E.props.editable)!==null&&q!==void 0&&q.onRowUpdate&&(E.dataManager.changeRowEditing(L,"update"),E.setState(D(D({},E.dataManager.getRenderState()),{},{showAddRow:!1})))}),(0,g.default)((0,p.default)(E),"getColumnsWidth",function(L,q){var H=[],V=w.actionsColumnWidth(L);if(V>0&&(q>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=q)&&H.push(V+"px"),L.options.selection&&q>0){var te=w.selectionMaxWidth(L,E.state.treeDataMaxLevel);H.push(te+"px")}for(var ee=0;ee=0?ee:E.state.columns.length-1-ee];U.tableData&&(typeof U.tableData.width=="number"?H.push(U.tableData.width+"px"):H.push(U.tableData.width))}return"calc("+H.join(" + ")+")"}),(0,g.default)((0,p.default)(E),"getRenderData",function(){return E.props.options.exportAllData?E.state.data:E.state.renderData});var W=E.getProps(N);E.setDataManagerFields(W,!0);var G=E.dataManager.getRenderState();return E.state=D(D({data:[],errorState:void 0},G),{},{query:{filters:G.columns.filter(function(L){return L.tableData.filterValue}).map(function(L){return{column:L,operator:"=",value:L.tableData.filterValue}}),orderBy:G.columns.find(function(L){return L.tableData.id===G.orderBy}),orderDirection:G.orderDirection,orderByCollection:G.orderByCollection,page:0,pageSize:W.options.pageSize,search:G.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:W.actions}),E.tableContainerDiv=b.default.createRef(),E}return(0,h.default)(j,[{key:"componentDidMount",value:function(){var E=this;this.setState(D(D({},this.dataManager.getRenderState()),{},{width:this.tableContainerDiv.current.scrollWidth}),function(){E.isRemoteData()&&E.onQueryChange(D(D({},E.state.query),{},{page:E.props.options.initialPage||0})),E.props.onDoubleRowClick!==void 0&&console.warn("Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`"),E.props.options.sorting!==void 0&&console.warn("Property `sorting` has been deprecated, please start using `maxColumnSort` instead. https://github.com/material-table-core/core/pull/619")})}},{key:"setDataManagerFields",value:function(E,W,G){var L,q=this,H={};if(E.options.persistentGroupingsId&&localStorage){var V=localStorage.getItem("material-table-groupings");V&&(V=JSON.parse(V),V[E.options.persistentGroupingsId]&&V[E.options.persistentGroupingsId].forEach(function(Te){H[Te.field]={groupOrder:Te.groupOrder,groupSort:Te.groupSort,columnOrder:Te.columnOrder}}))}this.dataManager.setTableWidth((L=E.options.tableWidth)!==null&&L!==void 0?L:"full"),this.dataManager.setColumns(E.columns,G,H),this.dataManager.setDefaultExpanded(E.options.defaultExpanded),this.dataManager.changeRowEditing();var te=E.options,ee=te.clientSorting,U=te.grouping,Q=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(U?1:Q),this.dataManager.setOrderByCollection(),this.isRemoteData(E)?(this.dataManager.changeApplySearch(!1),this.dataManager.changeApplyFilters(!1),this.dataManager.changeApplySort(!1)):(this.dataManager.changeApplySearch(!0),this.dataManager.changeApplyFilters(!0),this.dataManager.changeApplySort(!0),this.dataManager.setData(E.data,E.options.idSynonym));var Y=this.dataManager.getDefaultOrderByCollection(),Z=E.options.defaultOrderByCollection,X=[],re="",ie="";if(Z&&Z.length>0)X=(0,l.default)(Z).slice(0,Q),X=this.dataManager.sortOrderCollection(X),re=JSON.stringify(X),ie=JSON.stringify(Y),re!==ie&&this.dataManager.setDefaultOrderByCollection(X);else{var le=A(E.columns,G,this.dataManager.maxColumnSort);X=(0,l.default)(le[0]),re=JSON.stringify(X),ie=JSON.stringify((0,l.default)(le[1]))}var se=JSON.stringify(this.dataManager.orderByCollection),pe=W||!this.isRemoteData()&&X.length&&re!==ie&&re!==se;pe&&X.length>0&&Q>0&&X.forEach(function(Te){var Se=Te.orderBy,Oe=Te.orderDirection,Me=Te.sortOrder;return q.dataManager.changeColumnOrder(Se,Oe,Me)}),W&&this.dataManager.changeSearchText(E.options.searchText||""),W&&this.dataManager.changeSearchDebounce(E.options.searchDebounceDelay),W&&this.dataManager.changeCurrentPage(E.options.initialPage?E.options.initialPage:0),W&&this.dataManager.changePageSize(E.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:E.options.paging),W&&this.dataManager.changeParentFunc(E.parentChildData),this.dataManager.changeDetailPanelType(E.options.detailPanelType)}},{key:"cleanColumns",value:function(E){return E.map(function(W){var G=D({},W);return delete G.tableData,G})}},{key:"componentDidUpdate",value:function(E){var W=this.cleanColumns(E.columns),G=this.cleanColumns(this.props.columns),L=!(0,_.default)(W,G),q=L||!(0,_.default)(E.options,this.props.options);if(this.isRemoteData()||(q=q||!(0,_.default)(E.data,this.props.data)),E.options.pageSize!==this.props.options.pageSize&&this.dataManager.changePageSize(this.props.options.pageSize),q){var H=this.getProps(this.props);this.setDataManagerFields(H,!1,E.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:H.actions}))}var V=this.isRemoteData()?this.state.query.totalCount:this.state.data.length,te=this.isRemoteData()?this.state.query.page:this.state.currentPage,ee=this.isRemoteData()?this.state.query.pageSize:this.state.pageSize;V<=ee*te&&te!==0&&!this.state.isLoading&&this.onPageChange(null,Math.max(0,Math.ceil(V/ee)-1))}},{key:"getProps",value:function(E){var W=this,G=D({},E||this.props),L=this.props.localization.body;if(G.options.selection?G.actions=G.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"toolbarOnSelect"}:D(D({},H),{},{position:"toolbarOnSelect"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}):G.actions=G.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"row"}:D(D({},H),{},{position:"row"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}),G.editable){var q;G.editable.onRowAdd&&G.actions.push({icon:G.icons.Add,tooltip:L.addTooltip,position:"toolbar",disabled:!!this.dataManager.lastEditingRow,onClick:function(){W.dataManager.changeRowEditing(),W.state.showAddRow&&W.props.editable.onRowAddCancelled&&W.props.editable.onRowAddCancelled(),W.setState(D(D({},W.dataManager.getRenderState()),{},{showAddRow:!W.state.showAddRow}))}}),G.editable.onRowUpdate&&G.actions.push(function(H){return{icon:G.icons.Edit,tooltip:G.editable.editTooltip?G.editable.editTooltip(H):L.editTooltip,disabled:G.editable.isEditable&&!G.editable.isEditable(H),hidden:G.editable.isEditHidden&&G.editable.isEditHidden(H),onClick:function(te,ee){W.onRowEditStarted(ee)}}}),G.editable.onRowDelete&&G.actions.push(function(H){return{icon:G.icons.Delete,tooltip:G.editable.deleteTooltip?G.editable.deleteTooltip(H):L.deleteTooltip,disabled:G.editable.isDeletable&&!G.editable.isDeletable(H),hidden:G.editable.isDeleteHidden&&G.editable.isDeleteHidden(H),onClick:function(te,ee){W.dataManager.changeRowEditing(ee,"delete"),W.setState(D(D({},W.dataManager.getRenderState()),{},{showAddRow:!1}))}}}),G.editable.onBulkUpdate&&(G.actions.push({icon:G.icons.Edit,tooltip:L.bulkEditTooltip,position:"toolbar",hidden:this.dataManager.bulkEditOpen,disabled:G.isBulkEditable&&G.isBulkEditable(),onClick:function(){W.dataManager.changeBulkEditOpen(!0),W.props.onBulkEditOpen&&W.props.onBulkEditOpen(!0),W.setState(W.dataManager.getRenderState())}}),G.actions.push({icon:G.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return W.onEditingApproved("bulk")}}),G.actions.push({icon:G.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){W.dataManager.changeBulkEditOpen(!1),W.props.onBulkEditOpen&&W.props.onBulkEditOpen(!1),W.dataManager.clearBulkEditChangedRows(),W.setState(W.dataManager.getRenderState())}})),(q=this.state)!==null&&q!==void 0&&q.showAddRow&&G.editable.onRowAdd&&G.actions.filter(function(H){return H.position==="row"}).length===0&&G.actions.push({icon:void 0,position:"row",onClick:function(){},disabled:!0})}return G}},{key:"renderFooter",value:function(){var E=this.getProps();if(E.options.paging){var W=this.isRemoteData()?Math.min(E.page,Math.floor(E.totalCount/this.state.pageSize)):this.state.currentPage,G=this.isRemoteData()?E.totalCount:this.state.data.length;return b.default.createElement(f.default,null,b.default.createElement(c.default,{style:{display:"grid"}},b.default.createElement(o.default,{style:{display:"grid"}},b.default.createElement(E.components.Pagination,{sx:{display:"flex",justifyContent:E.options.paginationAlignment?E.options.paginationAlignment:"flex-end",overflowX:"auto","& .MuiTablePagination-displayedRows":{display:"none"}},colSpan:3,count:this.isRemoteData()?this.state.query.totalCount:G,rowsPerPage:this.state.pageSize,rowsPerPageOptions:E.options.pageSizeOptions,SelectProps:{renderValue:function(q){return b.default.createElement(n.default,{sx:{padding:"0px 5px"}},q+" "+E.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:W,onPageChange:this.onPageChange,onRowsPerPageChange:this.onRowsPerPageChange,ActionsComponent:function(q){return E.options.paginationType==="normal"?b.default.createElement(M.MTablePagination,(0,a.default)({},q,{showFirstLastPageButtons:E.options.showFirstLastPageButtons})):b.default.createElement(M.MTableSteppedPagination,(0,a.default)({},q,{showFirstLastPageButtons:E.options.showFirstLastPageButtons,numberOfPagesAround:E.options.numberOfPagesAround}))},labelRowsPerPage:E.localization.pagination.labelRowsPerPage}))))}}},{key:"render",value:function(){var E=this,W=this.getProps();return b.default.createElement(k.DragDropContext,{onDragEnd:this.onDragEnd,nonce:W.options.cspNonce},b.default.createElement(this.props.components.Container,{style:D({position:"relative"},W.style)},W.options.paginationPosition==="top"||W.options.paginationPosition==="both"?this.renderFooter():null,W.options.toolbar&&b.default.createElement(this.props.components.Toolbar,{actions:W.actions,components:this.props.components,originalData:this.state.originalData,columns:this.state.columns,selectedCount:this.state.selectedCount,getFieldValue:this.dataManager.getFieldValue,data:this.getRenderData,title:W.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),W.options.grouping&&b.default.createElement(this.props.components.Groupbar,{groupColumns:this.state.columns.filter(function(G){return G.tableData.groupOrder>-1}).sort(function(G,L){return G.tableData.groupOrder-L.tableData.groupOrder}),onSortChanged:this.onChangeGroupOrder,onGroupRemoved:this.onGroupRemoved,onGroupChange:this.props.onGroupChange,persistentGroupingsId:W.options.persistentGroupingsId}),b.default.createElement(M.MTableScrollbar,{double:W.options.doubleHorizontalScroll},b.default.createElement(k.Droppable,{droppableId:"headers",direction:"horizontal"},function(G,L){var q=E.renderTable(W);return b.default.createElement("div",{ref:G.innerRef},b.default.createElement("div",{ref:E.tableContainerDiv,style:{maxHeight:W.options.maxBodyHeight,minHeight:W.options.minBodyHeight,overflowY:W.options.overflowY}},E.state.width&&W.options.fixedColumns&&W.options.fixedColumns.right?b.default.createElement("div",{style:{width:E.getColumnsWidth(W,-1*W.options.fixedColumns.right),position:"absolute",top:0,right:0,boxShadow:"-2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},b.default.createElement("div",{style:{width:E.state.width,background:"white",transform:"translateX(calc(".concat(E.getColumnsWidth(W,-1*W.options.fixedColumns.right)," - 100%))")}},q)):null,b.default.createElement("div",null,q),E.state.width&&W.options.fixedColumns&&W.options.fixedColumns.left?b.default.createElement("div",{style:{width:E.getColumnsWidth(W,W.options.fixedColumns.left),position:"absolute",top:0,left:0,boxShadow:"2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},b.default.createElement("div",{style:{width:E.state.width,background:"white"},onKeyDown:function(V){V.key==="Tab"&&V.preventDefault()}},q)):null),G.placeholder)})),(this.state.isLoading||W.isLoading)&&W.options.loadingType==="linear"&&b.default.createElement("div",{style:{position:"relative",width:"100%"}},b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"}},b.default.createElement(i.default,null))),W.options.paginationPosition==="bottom"||W.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||W.isLoading)&&W.options.loadingType==="overlay"&&b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},b.default.createElement(this.props.components.OverlayLoading,{theme:W.theme})),this.state.errorState&&this.state.errorState.errorCause==="query"&&b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},b.default.createElement(this.props.components.OverlayError,{error:this.state.errorState,retry:this.retry,theme:W.theme}))))}}]),j}(b.default.Component);e.default=F;function A(B,$,j){var N=[],E=[];return j>0&&(N=z(B,j)),$&&(E=z($,j)),[N,E]}function z(B,$){var j=B.filter(function(N){return N.defaultSort&&N.sorting!==!1});return j.slice(0,$).map(function(N,E){return{orderBy:N.tableData?N.tableData.id:B.findIndex(function(W){return W.field===N.field}),orderDirection:N.defaultSort,sortOrder:E+1}})}}(Em)),Em}(function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return s.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return f.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return f.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return f.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return f.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return f.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return f.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return f.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return f.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return f.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return f.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return f.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return f.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return f.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return f.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return f.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return l.useLocalizationStore}});var r=t(hr()),i=t($e),c=gY(),o=mY(),a=t(LY()),n=Nl,l=Ju(),f=Kd(),s=_1();a.default.defaultProps=c.defaultProps,a.default.propTypes=o.propTypes;var u=(0,l.withContext)(function(d){var h=(0,n.useTheme)(),p=(0,l.useMergeProps)(d),m=p.localization,y=p.options,v=p.components;return i.default.createElement(a.default,(0,r.default)({},d,{theme:h,options:y,components:v,localization:m,ref:d.tableRef}))});e.default=u})(pS);const IY=ir(pS);var T1={},FY=vn;Object.defineProperty(T1,"__esModule",{value:!0});var m6=T1.default=void 0,NY=FY(Xr()),jY=je,$Y=(0,NY.default)((0,jY.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");m6=T1.default=$Y;class BY{constructor(t){Lc(this,"cachedGraphs");Lc(this,"cachedWidgets");Lc(this,"inner");this.inner=t,this.cachedGraphs=new Map,this.cachedWidgets=new Map}async getAdditionGraphData(t){let r=this.cachedGraphs.get(t);return r!==void 0||(r=await this.inner.getAdditionGraphData(t),this.cachedGraphs.set(t,r)),r}async getAdditionWidgetData(t){let r=this.cachedWidgets.get(t);return r!==void 0||(r=await this.inner.getAdditionWidgetData(t),this.cachedWidgets.set(t,r)),r}}const v6=et.createContext({getAdditionGraphData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data")),getAdditionWidgetData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data"))});function aSe(e){return new BY(e)}const W0=({func:e,children:t})=>{const[r,i]=$e.useState(()=>({status:0,func:e}));return r.status===0&&i(c=>({...c,status:1})),r.status===1&&(i(c=>({...c,status:2})),r.func().then(c=>i(o=>({...o,status:3,result:c}))).catch(()=>i(c=>({...c,status:4})))),je.jsx(je.Fragment,{children:r.status===3?t&&t(r.result):r.status===4?je.jsx(Cr,{align:"center",children:"Failed"}):r.status===2?je.jsx(Qr,{textAlign:"center",children:je.jsx(eE,{})}):null})},zY=e=>je.jsx(v6.Consumer,{children:t=>je.jsx(W0,{func:()=>t.getAdditionGraphData(e.graphId),children:r=>je.jsx(Ad,{...r,widgetSize:e.widgetSize})})});var y6=function(){if(typeof Map<"u")return Map;function e(t,r){var i=-1;return t.some(function(c,o){return c[0]===r?(i=o,!0):!1}),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var i=e(this.__entries__,r),c=this.__entries__[i];return c&&c[1]},t.prototype.set=function(r,i){var c=e(this.__entries__,r);~c?this.__entries__[c][1]=i:this.__entries__.push([r,i])},t.prototype.delete=function(r){var i=this.__entries__,c=e(i,r);~c&&i.splice(c,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,i){i===void 0&&(i=null);for(var c=0,o=this.__entries__;c0},e.prototype.connect_=function(){!U0||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),YY?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!U0||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,i=r===void 0?"":r,c=VY.some(function(o){return!!~i.indexOf(o)});c&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),b6=function(e,t){for(var r=0,i=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Ol(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new nG(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ol(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(i){return new rG(i.target,i.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w6=typeof WeakMap<"u"?new WeakMap:new y6,_6=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=GY.getInstance(),i=new aG(t,r,this);w6.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){_6.prototype[e]=function(){var t;return(t=w6.get(this))[e].apply(t,arguments)}});var iG=function(){return typeof Uf.ResizeObserver<"u"?Uf.ResizeObserver:_6}(),oG=["client","offset","scroll","bounds","margin"];function tT(e){var t=[];return oG.forEach(function(r){e[r]&&t.push(r)}),t}function nT(e,t){var r={};if(t.indexOf("client")>-1&&(r.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(r.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(r.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var i=e.getBoundingClientRect();r.bounds={top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height}}if(t.indexOf("margin")>-1){var c=getComputedStyle(e);r.margin={top:c?parseInt(c.marginTop):0,right:c?parseInt(c.marginRight):0,bottom:c?parseInt(c.marginBottom):0,left:c?parseInt(c.marginLeft):0}}return r}function lG(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function sG(e){return function(t){var r,i;return i=r=function(c){tE(o,c);function o(){for(var n,l=arguments.length,f=new Array(l),s=0;s"u"?Ma:window,Jc=["moz","webkit"],ml="AnimationFrame",Al=ki["request"+ml],Nu=ki["cancel"+ml]||ki["cancelRequest"+ml];for(var Ks=0;!Al&&Ksk*10&&(P.accumulatedTime=0),P.accumulatedTime===0){P.animationID=null,P.startAnimationIfNecessary();return}var A=(P.accumulatedTime-Math.floor(P.accumulatedTime/k)*k)/k,z=Math.floor(P.accumulatedTime/k),B={},$={},j={},N={};for(var E in O)if(Object.prototype.hasOwnProperty.call(O,E)){var W=O[E];if(typeof W=="number")j[E]=W,N[E]=0,B[E]=W,$[E]=0;else{for(var G=P.state.lastIdealStyle[E],L=P.state.lastIdealVelocity[E],q=0;qk*10&&(D.accumulatedTime=0),D.accumulatedTime===0){D.animationID=null,D.startAnimationIfNecessary();return}for(var z=(D.accumulatedTime-Math.floor(D.accumulatedTime/k)*k)/k,B=Math.floor(D.accumulatedTime/k),$=[],j=[],N=[],E=[],W=0;Wa[g])return-1;if(h>l[g]&&ya[g])return 1;if(p>l[g]&&mM*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}for(var E=(A.accumulatedTime-Math.floor(A.accumulatedTime/M)*M)/M,W=Math.floor(A.accumulatedTime/M),G=P(A.props.willEnter,A.props.willLeave,A.props.didLeave,A.state.mergedPropsStyles,$,A.state.currentStyles,A.state.currentVelocities,A.state.lastIdealStyles,A.state.lastIdealVelocities),L=G[0],q=G[1],H=G[2],V=G[3],te=G[4],ee=0;ee-1}var rX=nX,aX=ih;function iX(e,t){var r=this.__data__,i=aX(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}var oX=iX,lX=WG,sX=KG,uX=eX,cX=rX,fX=oX;function Hl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=vJ}var N1=yJ,bJ=lh,xJ=N1;function wJ(e){return e!=null&&xJ(e.length)&&!bJ(e)}var Zl=wJ,_J=Zl,TJ=Fa;function kJ(e){return TJ(e)&&_J(e)}var N6=kJ,Gf={exports:{}};function MJ(){return!1}var SJ=MJ;Gf.exports;(function(e,t){var r=Ca,i=SJ,c=t&&!t.nodeType&&t,o=c&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===c,n=a?r.Buffer:void 0,l=n?n.isBuffer:void 0,f=l||i;e.exports=f})(Gf,Gf.exports);var ph=Gf.exports,CJ=Li,OJ=I1,AJ=Fa,PJ="[object Object]",DJ=Function.prototype,EJ=Object.prototype,j6=DJ.toString,RJ=EJ.hasOwnProperty,LJ=j6.call(Object);function IJ(e){if(!AJ(e)||CJ(e)!=PJ)return!1;var t=OJ(e);if(t===null)return!0;var r=RJ.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&j6.call(r)==LJ}var j1=IJ;const Bu=ir(j1);var FJ=Li,NJ=N1,jJ=Fa,$J="[object Arguments]",BJ="[object Array]",zJ="[object Boolean]",qJ="[object Date]",WJ="[object Error]",UJ="[object Function]",HJ="[object Map]",VJ="[object Number]",YJ="[object Object]",GJ="[object RegExp]",XJ="[object Set]",ZJ="[object String]",KJ="[object WeakMap]",JJ="[object ArrayBuffer]",QJ="[object DataView]",eQ="[object Float32Array]",tQ="[object Float64Array]",nQ="[object Int8Array]",rQ="[object Int16Array]",aQ="[object Int32Array]",iQ="[object Uint8Array]",oQ="[object Uint8ClampedArray]",lQ="[object Uint16Array]",sQ="[object Uint32Array]",wr={};wr[eQ]=wr[tQ]=wr[nQ]=wr[rQ]=wr[aQ]=wr[iQ]=wr[oQ]=wr[lQ]=wr[sQ]=!0;wr[$J]=wr[BJ]=wr[JJ]=wr[zJ]=wr[QJ]=wr[qJ]=wr[WJ]=wr[UJ]=wr[HJ]=wr[VJ]=wr[YJ]=wr[GJ]=wr[XJ]=wr[ZJ]=wr[KJ]=!1;function uQ(e){return jJ(e)&&NJ(e.length)&&!!wr[FJ(e)]}var cQ=uQ;function fQ(e){return function(t){return e(t)}}var Kl=fQ,Xf={exports:{}};Xf.exports;(function(e,t){var r=M6,i=t&&!t.nodeType&&t,c=i&&!0&&e&&!e.nodeType&&e,o=c&&c.exports===i,a=o&&r.process,n=function(){try{var l=c&&c.require&&c.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=n})(Xf,Xf.exports);var gh=Xf.exports,dQ=cQ,hQ=Kl,vT=gh,yT=vT&&vT.isTypedArray,pQ=yT?hQ(yT):dQ,$1=pQ;function gQ(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var $6=gQ,mQ=R1,vQ=lc,yQ=Object.prototype,bQ=yQ.hasOwnProperty;function xQ(e,t,r){var i=e[t];(!(bQ.call(e,t)&&vQ(i,r))||r===void 0&&!(t in e))&&mQ(e,t,r)}var B1=xQ,wQ=B1,_Q=R1;function TQ(e,t,r,i){var c=!r;r||(r={});for(var o=-1,a=t.length;++o-1&&e%1==0&&e0){if(++t>=Eee)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var W6=Iee,Fee=Dee,Nee=W6,jee=Nee(Fee),q1=jee,$ee=Vo,Bee=q6,zee=q1;function qee(e,t){return zee(Bee(e,t,$ee),e+"")}var mh=qee,Wee=lc,Uee=Zl,Hee=sc,Vee=Va;function Yee(e,t,r){if(!Vee(r))return!1;var i=typeof t;return(i=="number"?Uee(r)&&Hee(t,r.length):i=="string"&&t in r)?Wee(r[t],e):!1}var W1=Yee,Gee=mh,Xee=W1;function Zee(e){return Gee(function(t,r){var i=-1,c=r.length,o=c>1?r[c-1]:void 0,a=c>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(c--,o):void 0,a&&Xee(r[0],r[1],a)&&(o=c<3?void 0:o,c=1),t=Object(t);++it?1:e>=t?0:NaN}function V1(e){let t=e,r=e;e.length===1&&(t=(a,n)=>e(a)-n,r=lne(e));function i(a,n,l,f){for(l==null&&(l=0),f==null&&(f=a.length);l>>1;r(a[s],n)<0?l=s+1:f=s}return l}function c(a,n,l,f){for(l==null&&(l=0),f==null&&(f=a.length);l>>1;r(a[s],n)>0?f=s:l=s+1}return l}function o(a,n,l,f){l==null&&(l=0),f==null&&(f=a.length);const s=i(a,n,l,f-1);return s>l&&t(a[s-1],n)>-t(a[s],n)?s-1:s}return{left:i,center:o,right:c}}function lne(e){return(t,r)=>X6(e(t),r)}function sne(e){return e===null?NaN:+e}const une=V1(X6),cne=une.right;V1(sne).center;var nv=Math.sqrt(50),rv=Math.sqrt(10),av=Math.sqrt(2);function iv(e,t,r){var i,c=-1,o,a,n;if(t=+t,e=+e,r=+r,e===t&&r>0)return[e];if((i=t0){let l=Math.round(e/n),f=Math.round(t/n);for(l*nt&&--f,a=new Array(o=f-l+1);++ct&&--f,a=new Array(o=f-l+1);++c=0?(o>=nv?10:o>=rv?5:o>=av?2:1)*Math.pow(10,c):-Math.pow(10,-c)/(o>=nv?10:o>=rv?5:o>=av?2:1)}function ov(e,t,r){var i=Math.abs(t-e)/Math.max(0,r),c=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/c;return o>=nv?c*=10:o>=rv?c*=5:o>=av&&(c*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ef(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ef(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=pne.exec(e))?new Ea(t[1],t[2],t[3],1):(t=gne.exec(e))?new Ea(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=mne.exec(e))?ef(t[1],t[2],t[3],t[4]):(t=vne.exec(e))?ef(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=yne.exec(e))?FT(t[1],t[2]/100,t[3]/100,1):(t=bne.exec(e))?FT(t[1],t[2]/100,t[3]/100,t[4]):PT.hasOwnProperty(e)?RT(PT[e]):e==="transparent"?new Ea(NaN,NaN,NaN,0):null}function RT(e){return new Ea(e>>16&255,e>>8&255,e&255,1)}function ef(e,t,r,i){return i<=0&&(e=t=r=NaN),new Ea(e,t,r,i)}function wne(e){return e instanceof fc||(e=Ao(e)),e?(e=e.rgb(),new Ea(e.r,e.g,e.b,e.opacity)):new Ea}function Po(e,t,r,i){return arguments.length===1?wne(e):new Ea(e,t,r,i??1)}function Ea(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}G1(Ea,Po,J6(fc,{brighter:function(e){return e=e==null?Zf:Math.pow(Zf,e),new Ea(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?zu:Math.pow(zu,e),new Ea(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:LT,formatHex:LT,formatRgb:IT,toString:IT}));function LT(){return"#"+jm(this.r)+jm(this.g)+jm(this.b)}function IT(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function jm(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function FT(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ci(e,t,r,i)}function Q6(e){if(e instanceof ci)return new ci(e.h,e.s,e.l,e.opacity);if(e instanceof fc||(e=Ao(e)),!e)return new ci;if(e instanceof ci)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,c=Math.min(t,r,i),o=Math.max(t,r,i),a=NaN,n=o-c,l=(o+c)/2;return n?(t===o?a=(r-i)/n+(r0&&l<1?0:a,new ci(a,n,l,e.opacity)}function _ne(e,t,r,i){return arguments.length===1?Q6(e):new ci(e,t,r,i??1)}function ci(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}G1(ci,_ne,J6(fc,{brighter:function(e){return e=e==null?Zf:Math.pow(Zf,e),new ci(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?zu:Math.pow(zu,e),new ci(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,c=2*r-i;return new Ea($m(e>=240?e-240:e+120,c,i),$m(e,c,i),$m(e<120?e+240:e-120,c,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function $m(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const X1=e=>()=>e;function Tne(e,t){return function(r){return e+r*t}}function kne(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function Mne(e){return(e=+e)==1?eO:function(t,r){return r-t?kne(t,r,e):X1(isNaN(t)?r:t)}}function eO(e,t){var r=t-e;return r?Tne(e,r):X1(isNaN(e)?t:e)}const NT=function e(t){var r=Mne(t);function i(c,o){var a=r((c=Po(c)).r,(o=Po(o)).r),n=r(c.g,o.g),l=r(c.b,o.b),f=eO(c.opacity,o.opacity);return function(s){return c.r=a(s),c.g=n(s),c.b=l(s),c.opacity=f(s),c+""}}return i.gamma=e,i}(1);function Sne(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),c;return function(o){for(c=0;cr&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(c=c[0])?n[a]?n[a]+=c:n[++a]=c:(n[++a]=null,l.push({i:a,x:Kf(i,c)})),r=Bm.lastIndex;return rt&&(r=e,e=t,t=r),function(i){return Math.max(e,Math.min(t,i))}}function jne(e,t,r){var i=e[0],c=e[1],o=t[0],a=t[1];return c2?$ne:jne,l=f=null,u}function u(d){return d==null||isNaN(d=+d)?o:(l||(l=n(e.map(i),t,r)))(i(a(d)))}return u.invert=function(d){return a(c((f||(f=n(t,e.map(i),Kf)))(d)))},u.domain=function(d){return arguments.length?(e=Array.from(d,Fne),s()):e.slice()},u.range=function(d){return arguments.length?(t=Array.from(d),s()):t.slice()},u.rangeRound=function(d){return t=Array.from(d),r=Lne,s()},u.clamp=function(d){return arguments.length?(a=d?!0:hl,s()):a!==hl},u.interpolate=function(d){return arguments.length?(r=d,s()):r},u.unknown=function(d){return arguments.length?(o=d,u):o},function(d,h){return i=d,c=h,s()}}function nO(){return tO()(hl,hl)}function Bne(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Jf(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,i=e.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+e.slice(r+1)]}function Pl(e){return e=Jf(Math.abs(e)),e?e[1]:NaN}function zne(e,t){return function(r,i){for(var c=r.length,o=[],a=0,n=e[0],l=0;c>0&&n>0&&(l+n+1>i&&(n=Math.max(1,i-l)),o.push(r.substring(c-=n,c+n)),!((l+=n+1)>i));)n=e[a=(a+1)%e.length];return o.reverse().join(t)}}function qne(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Wne=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qf(e){if(!(t=Wne.exec(e)))throw new Error("invalid format: "+e);var t;return new J1({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Qf.prototype=J1.prototype;function J1(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}J1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Une(e){e:for(var t=e.length,r=1,i=-1,c;r0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(c+1):e}var rO;function Hne(e,t){var r=Jf(e,t);if(!r)return e+"";var i=r[0],c=r[1],o=c-(rO=Math.max(-8,Math.min(8,Math.floor(c/3)))*3)+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+Jf(e,Math.max(0,t+o-1))[0]}function $T(e,t){var r=Jf(e,t);if(!r)return e+"";var i=r[0],c=r[1];return c<0?"0."+new Array(-c).join("0")+i:i.length>c+1?i.slice(0,c+1)+"."+i.slice(c+1):i+new Array(c-i.length+2).join("0")}const BT={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:Bne,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return $T(e*100,t)},r:$T,s:Hne,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function zT(e){return e}var qT=Array.prototype.map,WT=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Vne(e){var t=e.grouping===void 0||e.thousands===void 0?zT:zne(qT.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",c=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?zT:qne(qT.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",n=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function f(u){u=Qf(u);var d=u.fill,h=u.align,p=u.sign,m=u.symbol,y=u.zero,v=u.width,g=u.comma,b=u.precision,x=u.trim,_=u.type;_==="n"?(g=!0,_="g"):BT[_]||(b===void 0&&(b=12),x=!0,_="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var w=m==="$"?r:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",k=m==="$"?i:/[%p]/.test(_)?a:"",T=BT[_],M=/[defgprs%]/.test(_);b=b===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function S(C){var P=w,D=k,O,R,F;if(_==="c")D=T(C)+D,C="";else{C=+C;var A=C<0||1/C<0;if(C=isNaN(C)?l:T(Math.abs(C),b),x&&(C=Une(C)),A&&+C==0&&p!=="+"&&(A=!1),P=(A?p==="("?p:n:p==="-"||p==="("?"":p)+P,D=(_==="s"?WT[8+rO/3]:"")+D+(A&&p==="("?")":""),M){for(O=-1,R=C.length;++OF||F>57){D=(F===46?c+C.slice(O+1):C.slice(O))+D,C=C.slice(0,O);break}}}g&&!y&&(C=t(C,1/0));var z=P.length+C.length+D.length,B=z>1)+P+C+D+B.slice(z);break;default:C=B+P+C+D;break}return o(C)}return S.toString=function(){return u+""},S}function s(u,d){var h=f((u=Qf(u),u.type="f",u)),p=Math.max(-8,Math.min(8,Math.floor(Pl(d)/3)))*3,m=Math.pow(10,-p),y=WT[8+p/3];return function(v){return h(m*v)+y}}return{format:f,formatPrefix:s}}var tf,rs,aO;Yne({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Yne(e){return tf=Vne(e),rs=tf.format,aO=tf.formatPrefix,tf}function Gne(e){return Math.max(0,-Pl(Math.abs(e)))}function Xne(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Pl(t)/3)))*3-Pl(Math.abs(e)))}function Zne(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Pl(t)-Pl(e))+1}function Kne(e,t,r,i){var c=ov(e,t,r),o;switch(i=Qf(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(o=Xne(c,a))&&(i.precision=o),aO(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=Zne(c,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=Gne(c))&&(i.precision=o-(i.type==="%")*2);break}}return rs(i)}function Jne(e){var t=e.domain;return e.ticks=function(r){var i=t();return iv(i[0],i[i.length-1],r??10)},e.tickFormat=function(r,i){var c=t();return Kne(c[0],c[c.length-1],r??10,i)},e.nice=function(r){r==null&&(r=10);var i=t(),c=0,o=i.length-1,a=i[c],n=i[o],l,f,s=10;for(n0;){if(f=Z6(a,n,r),f===l)return i[c]=a,i[o]=n,t(i);if(f>0)a=Math.floor(a/f)*f,n=Math.ceil(n/f)*f;else if(f<0)a=Math.ceil(a*f)/f,n=Math.floor(n*f)/f;else break;l=f}return e},e}function Do(){var e=nO();return e.copy=function(){return K1(e,Do())},ns.apply(e,arguments),Jne(e)}function iO(e,t){e=e.slice();var r=0,i=e.length-1,c=e[r],o=e[i],a;return o0){for(;d<=h;++d)for(m=1,p=o(d);ms)break;g.push(y)}}else for(;d<=h;++d)for(m=i-1,p=o(d);m>=1;--m)if(y=p*m,!(ys)break;g.push(y)}g.length*20))return l;do l.push(f=new Date(+o)),t(o,n),e(o);while(f=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;t(a,-1),!o(a););else for(;--n>=0;)for(;t(a,1),!o(a););})},r&&(c.count=function(o,a){return zm.setTime(+o),qm.setTime(+a),e(zm),e(qm),Math.floor(r(zm,qm))},c.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?c.filter(i?function(a){return i(a)%o===0}:function(a){return c.count(0,a)%o===0}):c}),c}var ed=na(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});ed.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?na(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):ed};ed.range;const _i=1e3,Wa=_i*60,Ti=Wa*60,Eo=Ti*24,Q1=Eo*7,YT=Eo*30,Wm=Eo*365;var ko=na(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*_i)},function(e,t){return(t-e)/_i},function(e){return e.getUTCSeconds()});ko.range;var eb=na(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*_i)},function(e,t){e.setTime(+e+t*Wa)},function(e,t){return(t-e)/Wa},function(e){return e.getMinutes()});eb.range;var tb=na(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*_i-e.getMinutes()*Wa)},function(e,t){e.setTime(+e+t*Ti)},function(e,t){return(t-e)/Ti},function(e){return e.getHours()});tb.range;var dc=na(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Wa)/Eo,e=>e.getDate()-1);dc.range;function Yo(e){return na(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Wa)/Q1})}var yh=Yo(0),td=Yo(1),ire=Yo(2),ore=Yo(3),Dl=Yo(4),lre=Yo(5),sre=Yo(6);yh.range;td.range;ire.range;ore.range;Dl.range;lre.range;sre.range;var nb=na(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});nb.range;var Ci=na(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Ci.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:na(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};Ci.range;var rb=na(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Wa)},function(e,t){return(t-e)/Wa},function(e){return e.getUTCMinutes()});rb.range;var ab=na(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Ti)},function(e,t){return(t-e)/Ti},function(e){return e.getUTCHours()});ab.range;var hc=na(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Eo},function(e){return e.getUTCDate()-1});hc.range;function Go(e){return na(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/Q1})}var bh=Go(0),nd=Go(1),ure=Go(2),cre=Go(3),El=Go(4),fre=Go(5),dre=Go(6);bh.range;nd.range;ure.range;cre.range;El.range;fre.range;dre.range;var ib=na(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});ib.range;var Oi=na(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Oi.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:na(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};Oi.range;function lO(e,t,r,i,c,o){const a=[[ko,1,_i],[ko,5,5*_i],[ko,15,15*_i],[ko,30,30*_i],[o,1,Wa],[o,5,5*Wa],[o,15,15*Wa],[o,30,30*Wa],[c,1,Ti],[c,3,3*Ti],[c,6,6*Ti],[c,12,12*Ti],[i,1,Eo],[i,2,2*Eo],[r,1,Q1],[t,1,YT],[t,3,3*YT],[e,1,Wm]];function n(f,s,u){const d=sy).right(a,d);if(h===a.length)return e.every(ov(f/Wm,s/Wm,u));if(h===0)return ed.every(Math.max(ov(f,s,u),1));const[p,m]=a[d/a[h-1][2]53)return null;"w"in U||(U.w=1),"Z"in U?(Y=Hm(Qs(U.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?nd.ceil(Y):nd(Y),Y=hc.offset(Y,(U.V-1)*7),U.y=Y.getUTCFullYear(),U.m=Y.getUTCMonth(),U.d=Y.getUTCDate()+(U.w+6)%7):(Y=Um(Qs(U.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?td.ceil(Y):td(Y),Y=dc.offset(Y,(U.V-1)*7),U.y=Y.getFullYear(),U.m=Y.getMonth(),U.d=Y.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),Z="Z"in U?Hm(Qs(U.y,0,1)).getUTCDay():Um(Qs(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(Z+5)%7:U.w+U.U*7-(Z+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,Hm(U)):Um(U)}}function T(V,te,ee,U){for(var Q=0,Y=te.length,Z=ee.length,X,re;Q=Z)return-1;if(X=te.charCodeAt(Q++),X===37){if(X=te.charAt(Q++),re=_[X in GT?te.charAt(Q++):X],!re||(U=re(V,ee,U))<0)return-1}else if(X!=ee.charCodeAt(U++))return-1}return U}function M(V,te,ee){var U=f.exec(te.slice(ee));return U?(V.p=s.get(U[0].toLowerCase()),ee+U[0].length):-1}function S(V,te,ee){var U=h.exec(te.slice(ee));return U?(V.w=p.get(U[0].toLowerCase()),ee+U[0].length):-1}function C(V,te,ee){var U=u.exec(te.slice(ee));return U?(V.w=d.get(U[0].toLowerCase()),ee+U[0].length):-1}function P(V,te,ee){var U=v.exec(te.slice(ee));return U?(V.m=g.get(U[0].toLowerCase()),ee+U[0].length):-1}function D(V,te,ee){var U=m.exec(te.slice(ee));return U?(V.m=y.get(U[0].toLowerCase()),ee+U[0].length):-1}function O(V,te,ee){return T(V,t,te,ee)}function R(V,te,ee){return T(V,r,te,ee)}function F(V,te,ee){return T(V,i,te,ee)}function A(V){return a[V.getDay()]}function z(V){return o[V.getDay()]}function B(V){return l[V.getMonth()]}function $(V){return n[V.getMonth()]}function j(V){return c[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function E(V){return a[V.getUTCDay()]}function W(V){return o[V.getUTCDay()]}function G(V){return l[V.getUTCMonth()]}function L(V){return n[V.getUTCMonth()]}function q(V){return c[+(V.getUTCHours()>=12)]}function H(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=w(V+="",b);return te.toString=function(){return V},te},parse:function(V){var te=k(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=w(V+="",x);return te.toString=function(){return V},te},utcParse:function(V){var te=k(V+="",!0);return te.toString=function(){return V},te}}}var GT={"-":"",_:" ",0:"0"},ra=/^\s*\d+/,yre=/^%/,bre=/[\\^$*+?|[\]().{}]/g;function nr(e,t,r){var i=e<0?"-":"",c=(i?-e:e)+"",o=c.length;return i+(o[t.toLowerCase(),r]))}function wre(e,t,r){var i=ra.exec(t.slice(r,r+1));return i?(e.w=+i[0],r+i[0].length):-1}function _re(e,t,r){var i=ra.exec(t.slice(r,r+1));return i?(e.u=+i[0],r+i[0].length):-1}function Tre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.U=+i[0],r+i[0].length):-1}function kre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.V=+i[0],r+i[0].length):-1}function Mre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.W=+i[0],r+i[0].length):-1}function XT(e,t,r){var i=ra.exec(t.slice(r,r+4));return i?(e.y=+i[0],r+i[0].length):-1}function ZT(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function Sre(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function Cre(e,t,r){var i=ra.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function Ore(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function KT(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function Are(e,t,r){var i=ra.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function JT(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function Pre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function Dre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function Ere(e,t,r){var i=ra.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function Rre(e,t,r){var i=ra.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function Lre(e,t,r){var i=yre.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function Ire(e,t,r){var i=ra.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function Fre(e,t,r){var i=ra.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function QT(e,t){return nr(e.getDate(),t,2)}function Nre(e,t){return nr(e.getHours(),t,2)}function jre(e,t){return nr(e.getHours()%12||12,t,2)}function $re(e,t){return nr(1+dc.count(Ci(e),e),t,3)}function sO(e,t){return nr(e.getMilliseconds(),t,3)}function Bre(e,t){return sO(e,t)+"000"}function zre(e,t){return nr(e.getMonth()+1,t,2)}function qre(e,t){return nr(e.getMinutes(),t,2)}function Wre(e,t){return nr(e.getSeconds(),t,2)}function Ure(e){var t=e.getDay();return t===0?7:t}function Hre(e,t){return nr(yh.count(Ci(e)-1,e),t,2)}function uO(e){var t=e.getDay();return t>=4||t===0?Dl(e):Dl.ceil(e)}function Vre(e,t){return e=uO(e),nr(Dl.count(Ci(e),e)+(Ci(e).getDay()===4),t,2)}function Yre(e){return e.getDay()}function Gre(e,t){return nr(td.count(Ci(e)-1,e),t,2)}function Xre(e,t){return nr(e.getFullYear()%100,t,2)}function Zre(e,t){return e=uO(e),nr(e.getFullYear()%100,t,2)}function Kre(e,t){return nr(e.getFullYear()%1e4,t,4)}function Jre(e,t){var r=e.getDay();return e=r>=4||r===0?Dl(e):Dl.ceil(e),nr(e.getFullYear()%1e4,t,4)}function Qre(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+nr(t/60|0,"0",2)+nr(t%60,"0",2)}function ek(e,t){return nr(e.getUTCDate(),t,2)}function eae(e,t){return nr(e.getUTCHours(),t,2)}function tae(e,t){return nr(e.getUTCHours()%12||12,t,2)}function nae(e,t){return nr(1+hc.count(Oi(e),e),t,3)}function cO(e,t){return nr(e.getUTCMilliseconds(),t,3)}function rae(e,t){return cO(e,t)+"000"}function aae(e,t){return nr(e.getUTCMonth()+1,t,2)}function iae(e,t){return nr(e.getUTCMinutes(),t,2)}function oae(e,t){return nr(e.getUTCSeconds(),t,2)}function lae(e){var t=e.getUTCDay();return t===0?7:t}function sae(e,t){return nr(bh.count(Oi(e)-1,e),t,2)}function fO(e){var t=e.getUTCDay();return t>=4||t===0?El(e):El.ceil(e)}function uae(e,t){return e=fO(e),nr(El.count(Oi(e),e)+(Oi(e).getUTCDay()===4),t,2)}function cae(e){return e.getUTCDay()}function fae(e,t){return nr(nd.count(Oi(e)-1,e),t,2)}function dae(e,t){return nr(e.getUTCFullYear()%100,t,2)}function hae(e,t){return e=fO(e),nr(e.getUTCFullYear()%100,t,2)}function pae(e,t){return nr(e.getUTCFullYear()%1e4,t,4)}function gae(e,t){var r=e.getUTCDay();return e=r>=4||r===0?El(e):El.ceil(e),nr(e.getUTCFullYear()%1e4,t,4)}function mae(){return"+0000"}function tk(){return"%"}function nk(e){return+e}function rk(e){return Math.floor(+e/1e3)}var ll,dO,hO;vae({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function vae(e){return ll=vre(e),dO=ll.format,ll.parse,hO=ll.utcFormat,ll.utcParse,ll}function yae(e){return new Date(e)}function bae(e){return e instanceof Date?+e:+new Date(+e)}function ob(e,t,r,i,c,o,a,n,l,f){var s=nO(),u=s.invert,d=s.domain,h=f(".%L"),p=f(":%S"),m=f("%I:%M"),y=f("%I %p"),v=f("%a %d"),g=f("%b %d"),b=f("%B"),x=f("%Y");function _(w){return(l(w)=1?(r=1,t-1):Math.floor(r*t),c=e[i],o=e[i+1],a=i>0?e[i-1]:2*c-o,n=ir&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(c=c[0])?n[a]?n[a]+=c:n[++a]=c:(n[++a]=null,l.push({i:a,x:uv(i,c)})),r=Vm.lastIndex;return r-1}var fb=rie;function aie(e,t,r){for(var i=-1,c=e==null?0:e.length;++i=die&&(o=fie,a=!1,t=new oie(t));e:for(;++cmo)if(!(Math.abs(s*n-l*f)>mo)||!c)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var d=r-o,h=i-a,p=n*n+l*l,m=d*d+h*h,y=Math.sqrt(p),v=Math.sqrt(u),g=c*Math.tan((fv-Math.acos((p+u-m)/(2*y*v)))/2),b=g/v,x=g/y;Math.abs(b-1)>mo&&(this._+="L"+(e+b*f)+","+(t+b*s)),this._+="A"+c+","+c+",0,0,"+ +(s*d>f*h)+","+(this._x1=e+x*n)+","+(this._y1=t+x*l)}},arc:function(e,t,r,i,c,o){e=+e,t=+t,r=+r,o=!!o;var a=r*Math.cos(i),n=r*Math.sin(i),l=e+a,f=t+n,s=1^o,u=o?i-c:c-i;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+l+","+f:(Math.abs(this._x1-l)>mo||Math.abs(this._y1-f)>mo)&&(this._+="L"+l+","+f),r&&(u<0&&(u=u%dv+dv),u>xie?this._+="A"+r+","+r+",0,1,"+s+","+(e-a)+","+(t-n)+"A"+r+","+r+",0,1,"+s+","+(this._x1=l)+","+(this._y1=f):u>mo&&(this._+="A"+r+","+r+",0,"+ +(u>=fv)+","+s+","+(this._x1=e+r*Math.cos(c))+","+(this._y1=t+r*Math.sin(c))))},rect:function(e,t,r,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function(){return this._}};function ca(e){return function(){return e}}var ik=1e-12;function MO(e){this._context=e}MO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function pb(e){return new MO(e)}function SO(e){return e[0]}function CO(e){return e[1]}function OO(){var e=SO,t=CO,r=ca(!0),i=null,c=pb,o=null;function a(n){var l,f=n.length,s,u=!1,d;for(i==null&&(o=c(d=hb())),l=0;l<=f;++l)!(l=d;--h)n.point(g[h],b[h]);n.lineEnd(),n.areaEnd()}y&&(g[u]=+e(m,u,s),b[u]=+r(m,u,s),n.point(t?+t(m,u,s):g[u],i?+i(m,u,s):b[u]))}if(v)return n=null,v+""||null}function f(){return OO().defined(c).curve(a).context(o)}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:ca(+s),t=null,l):e},l.x0=function(s){return arguments.length?(e=typeof s=="function"?s:ca(+s),l):e},l.x1=function(s){return arguments.length?(t=s==null?null:typeof s=="function"?s:ca(+s),l):t},l.y=function(s){return arguments.length?(r=typeof s=="function"?s:ca(+s),i=null,l):r},l.y0=function(s){return arguments.length?(r=typeof s=="function"?s:ca(+s),l):r},l.y1=function(s){return arguments.length?(i=s==null?null:typeof s=="function"?s:ca(+s),l):i},l.lineX0=l.lineY0=function(){return f().x(e).y(r)},l.lineY1=function(){return f().x(e).y(i)},l.lineX1=function(){return f().x(t).y(r)},l.defined=function(s){return arguments.length?(c=typeof s=="function"?s:ca(!!s),l):c},l.curve=function(s){return arguments.length?(a=s,o!=null&&(n=a(o)),l):a},l.context=function(s){return arguments.length?(s==null?o=n=null:n=a(o=s),l):o},l}var ok=Array.prototype.slice;function Qi(){}function ad(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Yh(e){this._context=e}Yh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ad(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ad(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _ie(e){return new Yh(e)}function AO(e){this._context=e}AO.prototype={areaStart:Qi,areaEnd:Qi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ad(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Tie(e){return new AO(e)}function PO(e){this._context=e}PO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:ad(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kie(e){return new PO(e)}function DO(e,t){this._basis=new Yh(e),this._beta=t}DO.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],c=t[0],o=e[r]-i,a=t[r]-c,n=-1,l;++n<=r;)l=n/r,this._basis.point(this._beta*e[n]+(1-this._beta)*(i+l*o),this._beta*t[n]+(1-this._beta)*(c+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Mie=function e(t){function r(i){return t===1?new Yh(i):new DO(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function id(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function gb(e,t){this._context=e,this._k=(1-t)/6}gb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:id(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:id(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Sie=function e(t){function r(i){return new gb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function mb(e,t){this._context=e,this._k=(1-t)/6}mb.prototype={areaStart:Qi,areaEnd:Qi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:id(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Cie=function e(t){function r(i){return new mb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function vb(e,t){this._context=e,this._k=(1-t)/6}vb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:id(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Oie=function e(t){function r(i){return new vb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function yb(e,t,r){var i=e._x1,c=e._y1,o=e._x2,a=e._y2;if(e._l01_a>ik){var n=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*n-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,c=(c*n-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>ik){var f=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,s=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*f+e._x1*e._l23_2a-t*e._l12_2a)/s,a=(a*f+e._y1*e._l23_2a-r*e._l12_2a)/s}e._context.bezierCurveTo(i,c,o,a,e._x2,e._y2)}function EO(e,t){this._context=e,this._alpha=t}EO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:yb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Aie=function e(t){function r(i){return t?new EO(i,t):new gb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function RO(e,t){this._context=e,this._alpha=t}RO.prototype={areaStart:Qi,areaEnd:Qi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:yb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Pie=function e(t){function r(i){return t?new RO(i,t):new mb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function LO(e,t){this._context=e,this._alpha=t}LO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:yb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Die=function e(t){function r(i){return t?new LO(i,t):new vb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function IO(e){this._context=e}IO.prototype={areaStart:Qi,areaEnd:Qi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Eie(e){return new IO(e)}function lk(e){return e<0?-1:1}function sk(e,t,r){var i=e._x1-e._x0,c=t-e._x1,o=(e._y1-e._y0)/(i||c<0&&-0),a=(r-e._y1)/(c||i<0&&-0),n=(o*c+a*i)/(i+c);return(lk(o)+lk(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(n))||0}function uk(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Ym(e,t,r){var i=e._x0,c=e._y0,o=e._x1,a=e._y1,n=(o-i)/3;e._context.bezierCurveTo(i+n,c+n*t,o-n,a-n*r,o,a)}function od(e){this._context=e}od.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ym(this,this._t0,uk(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ym(this,uk(this,r=sk(this,e,t)),r);break;default:Ym(this,this._t0,r=sk(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function FO(e){this._context=new NO(e)}(FO.prototype=Object.create(od.prototype)).point=function(e,t){od.prototype.point.call(this,t,e)};function NO(e){this._context=e}NO.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,c,o){this._context.bezierCurveTo(t,e,i,r,o,c)}};function Rie(e){return new od(e)}function Lie(e){return new FO(e)}function jO(e){this._context=e}jO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=ck(e),c=ck(t),o=0,a=1;a=0;--t)c[t]=(a[t]-c[t+1])/o[t];for(o[r-1]=(e[r]+c[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Fie(e){return new Gh(e,.5)}function Nie(e){return new Gh(e,0)}function jie(e){return new Gh(e,1)}function Rl(e,t){if((a=e.length)>1)for(var r=1,i,c,o=e[t[0]],a,n=o.length;r=0;)r[t]=t;return r}function $ie(e,t){return e[t]}function $O(){var e=ca([]),t=Ll,r=Rl,i=$ie;function c(o){var a=e.apply(this,arguments),n,l=o.length,f=a.length,s=new Array(f),u;for(n=0;n0){for(var r,i,c=0,o=e[0].length,a;c0)for(var r,i=0,c,o,a,n,l,f=e[t[0]].length;i0?(c[0]=a,c[1]=a+=o):o<0?(c[1]=n,c[0]=n+=o):(c[0]=0,c[1]=o)}function zie(e,t){if((c=e.length)>0){for(var r=0,i=e[t[0]],c,o=i.length;r0)||!((o=(c=e[t[0]]).length)>0))){for(var r=0,i=1,c,o,a;io&&(o=c,r=t);return r}function BO(e){var t=e.map(zO);return Ll(e).sort(function(r,i){return t[r]-t[i]})}function zO(e){for(var t=0,r=-1,i=e.length,c;++rg&&(g=f),w=y*y*_,b=Math.max(g/w,w/v),b>x){y-=f;break}x=b}a.push(l={value:y,dice:h1?i:1)},r}(qO);function Xie(e,t,r,i,c){var o=e.children,a,n=o.length,l,f=new Array(n+1);for(f[0]=l=a=0;a=d-1){var g=o[u];g.x0=p,g.y0=m,g.x1=y,g.y1=v;return}for(var b=f[u],x=h/2+b,_=u+1,w=d-1;_>>1;f[k]v-m){var S=(p*M+y*T)/h;s(u,_,T,p,m,S,v),s(_,d,M,S,m,y,v)}else{var C=(m*M+v*T)/h;s(u,_,T,p,m,y,C),s(_,d,M,p,C,y,v)}}}function Zie(e,t,r,i,c){(e.depth&1?Zh:Xh)(e,t,r,i,c)}const Kie=function e(t){function r(i,c,o,a,n){if((l=i._squarify)&&l.ratio===t)for(var l,f,s,u,d=-1,h,p=l.length,m=i.value;++d1?i:1)},r}(qO);var Gm=new Date,Xm=new Date;function aa(e,t,r,i){function c(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return c.floor=function(o){return e(o=new Date(+o)),o},c.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},c.round=function(o){var a=c(o),n=c.ceil(o);return o-a0))return l;do l.push(f=new Date(+o)),t(o,n),e(o);while(f=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;t(a,-1),!o(a););else for(;--n>=0;)for(;t(a,1),!o(a););})},r&&(c.count=function(o,a){return Gm.setTime(+o),Xm.setTime(+a),e(Gm),e(Xm),Math.floor(r(Gm,Xm))},c.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?c.filter(i?function(a){return i(a)%o===0}:function(a){return c.count(0,a)%o===0}):c}),c}var Wu=aa(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Wu.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?aa(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):Wu};Wu.range;var ld=1e3,Ro=6e4,sd=36e5,UO=864e5,HO=6048e5,pv=aa(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*ld)},function(e,t){return(t-e)/ld},function(e){return e.getUTCSeconds()});pv.range;var VO=aa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ld)},function(e,t){e.setTime(+e+t*Ro)},function(e,t){return(t-e)/Ro},function(e){return e.getMinutes()});VO.range;var YO=aa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ld-e.getMinutes()*Ro)},function(e,t){e.setTime(+e+t*sd)},function(e,t){return(t-e)/sd},function(e){return e.getHours()});YO.range;var Kh=aa(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ro)/UO},function(e){return e.getDate()-1});Kh.range;function Xo(e){return aa(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ro)/HO})}var ud=Xo(0),Uu=Xo(1),GO=Xo(2),XO=Xo(3),Lo=Xo(4),ZO=Xo(5),KO=Xo(6);ud.range;Uu.range;GO.range;XO.range;Lo.range;ZO.range;KO.range;var JO=aa(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});JO.range;var eo=aa(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});eo.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:aa(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};eo.range;var QO=aa(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ro)},function(e,t){return(t-e)/Ro},function(e){return e.getUTCMinutes()});QO.range;var e8=aa(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*sd)},function(e,t){return(t-e)/sd},function(e){return e.getUTCHours()});e8.range;var Jh=aa(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/UO},function(e){return e.getUTCDate()-1});Jh.range;function Zo(e){return aa(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/HO})}var cd=Zo(0),Hu=Zo(1),t8=Zo(2),n8=Zo(3),Io=Zo(4),r8=Zo(5),a8=Zo(6);cd.range;Hu.range;t8.range;n8.range;Io.range;r8.range;a8.range;var i8=aa(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});i8.range;var to=aa(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});to.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:aa(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};to.range;function Zm(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Km(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function nu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Jie(e){var t=e.dateTime,r=e.date,i=e.time,c=e.periods,o=e.days,a=e.shortDays,n=e.months,l=e.shortMonths,f=ru(c),s=au(c),u=ru(o),d=au(o),h=ru(a),p=au(a),m=ru(n),y=au(n),v=ru(l),g=au(l),b={a:A,A:z,b:B,B:$,c:null,d:mk,e:mk,f:woe,g:Doe,G:Roe,H:yoe,I:boe,j:xoe,L:o8,m:_oe,M:Toe,p:j,q:N,Q:bk,s:xk,S:koe,u:Moe,U:Soe,V:Coe,w:Ooe,W:Aoe,x:null,X:null,y:Poe,Y:Eoe,Z:Loe,"%":yk},x={a:E,A:W,b:G,B:L,c:null,d:vk,e:vk,f:joe,g:Goe,G:Zoe,H:Ioe,I:Foe,j:Noe,L:s8,m:$oe,M:Boe,p:q,q:H,Q:bk,s:xk,S:zoe,u:qoe,U:Woe,V:Uoe,w:Hoe,W:Voe,x:null,X:null,y:Yoe,Y:Xoe,Z:Koe,"%":yk},_={a:S,A:C,b:P,B:D,c:O,d:pk,e:pk,f:poe,g:hk,G:dk,H:gk,I:gk,j:coe,L:hoe,m:uoe,M:foe,p:M,q:soe,Q:moe,s:voe,S:doe,u:roe,U:aoe,V:ioe,w:noe,W:ooe,x:R,X:F,y:hk,Y:dk,Z:loe,"%":goe};b.x=w(r,b),b.X=w(i,b),b.c=w(t,b),x.x=w(r,x),x.X=w(i,x),x.c=w(t,x);function w(V,te){return function(ee){var U=[],Q=-1,Y=0,Z=V.length,X,re,ie;for(ee instanceof Date||(ee=new Date(+ee));++Q53)return null;"w"in U||(U.w=1),"Z"in U?(Y=Km(nu(U.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?Hu.ceil(Y):Hu(Y),Y=Jh.offset(Y,(U.V-1)*7),U.y=Y.getUTCFullYear(),U.m=Y.getUTCMonth(),U.d=Y.getUTCDate()+(U.w+6)%7):(Y=Zm(nu(U.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?Uu.ceil(Y):Uu(Y),Y=Kh.offset(Y,(U.V-1)*7),U.y=Y.getFullYear(),U.m=Y.getMonth(),U.d=Y.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),Z="Z"in U?Km(nu(U.y,0,1)).getUTCDay():Zm(nu(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(Z+5)%7:U.w+U.U*7-(Z+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,Km(U)):Zm(U)}}function T(V,te,ee,U){for(var Q=0,Y=te.length,Z=ee.length,X,re;Q=Z)return-1;if(X=te.charCodeAt(Q++),X===37){if(X=te.charAt(Q++),re=_[X in fk?te.charAt(Q++):X],!re||(U=re(V,ee,U))<0)return-1}else if(X!=ee.charCodeAt(U++))return-1}return U}function M(V,te,ee){var U=f.exec(te.slice(ee));return U?(V.p=s[U[0].toLowerCase()],ee+U[0].length):-1}function S(V,te,ee){var U=h.exec(te.slice(ee));return U?(V.w=p[U[0].toLowerCase()],ee+U[0].length):-1}function C(V,te,ee){var U=u.exec(te.slice(ee));return U?(V.w=d[U[0].toLowerCase()],ee+U[0].length):-1}function P(V,te,ee){var U=v.exec(te.slice(ee));return U?(V.m=g[U[0].toLowerCase()],ee+U[0].length):-1}function D(V,te,ee){var U=m.exec(te.slice(ee));return U?(V.m=y[U[0].toLowerCase()],ee+U[0].length):-1}function O(V,te,ee){return T(V,t,te,ee)}function R(V,te,ee){return T(V,r,te,ee)}function F(V,te,ee){return T(V,i,te,ee)}function A(V){return a[V.getDay()]}function z(V){return o[V.getDay()]}function B(V){return l[V.getMonth()]}function $(V){return n[V.getMonth()]}function j(V){return c[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function E(V){return a[V.getUTCDay()]}function W(V){return o[V.getUTCDay()]}function G(V){return l[V.getUTCMonth()]}function L(V){return n[V.getUTCMonth()]}function q(V){return c[+(V.getUTCHours()>=12)]}function H(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=w(V+="",b);return te.toString=function(){return V},te},parse:function(V){var te=k(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=w(V+="",x);return te.toString=function(){return V},te},utcParse:function(V){var te=k(V+="",!0);return te.toString=function(){return V},te}}}var fk={"-":"",_:" ",0:"0"},ia=/^\s*\d+/,Qie=/^%/,eoe=/[\\^$*+?|[\]().{}]/g;function rr(e,t,r){var i=e<0?"-":"",c=(i?-e:e)+"",o=c.length;return i+(o68?1900:2e3),r+i[0].length):-1}function loe(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function soe(e,t,r){var i=ia.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function uoe(e,t,r){var i=ia.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function pk(e,t,r){var i=ia.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function coe(e,t,r){var i=ia.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function gk(e,t,r){var i=ia.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function foe(e,t,r){var i=ia.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function doe(e,t,r){var i=ia.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function hoe(e,t,r){var i=ia.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function poe(e,t,r){var i=ia.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function goe(e,t,r){var i=Qie.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function moe(e,t,r){var i=ia.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function voe(e,t,r){var i=ia.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function mk(e,t){return rr(e.getDate(),t,2)}function yoe(e,t){return rr(e.getHours(),t,2)}function boe(e,t){return rr(e.getHours()%12||12,t,2)}function xoe(e,t){return rr(1+Kh.count(eo(e),e),t,3)}function o8(e,t){return rr(e.getMilliseconds(),t,3)}function woe(e,t){return o8(e,t)+"000"}function _oe(e,t){return rr(e.getMonth()+1,t,2)}function Toe(e,t){return rr(e.getMinutes(),t,2)}function koe(e,t){return rr(e.getSeconds(),t,2)}function Moe(e){var t=e.getDay();return t===0?7:t}function Soe(e,t){return rr(ud.count(eo(e)-1,e),t,2)}function l8(e){var t=e.getDay();return t>=4||t===0?Lo(e):Lo.ceil(e)}function Coe(e,t){return e=l8(e),rr(Lo.count(eo(e),e)+(eo(e).getDay()===4),t,2)}function Ooe(e){return e.getDay()}function Aoe(e,t){return rr(Uu.count(eo(e)-1,e),t,2)}function Poe(e,t){return rr(e.getFullYear()%100,t,2)}function Doe(e,t){return e=l8(e),rr(e.getFullYear()%100,t,2)}function Eoe(e,t){return rr(e.getFullYear()%1e4,t,4)}function Roe(e,t){var r=e.getDay();return e=r>=4||r===0?Lo(e):Lo.ceil(e),rr(e.getFullYear()%1e4,t,4)}function Loe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rr(t/60|0,"0",2)+rr(t%60,"0",2)}function vk(e,t){return rr(e.getUTCDate(),t,2)}function Ioe(e,t){return rr(e.getUTCHours(),t,2)}function Foe(e,t){return rr(e.getUTCHours()%12||12,t,2)}function Noe(e,t){return rr(1+Jh.count(to(e),e),t,3)}function s8(e,t){return rr(e.getUTCMilliseconds(),t,3)}function joe(e,t){return s8(e,t)+"000"}function $oe(e,t){return rr(e.getUTCMonth()+1,t,2)}function Boe(e,t){return rr(e.getUTCMinutes(),t,2)}function zoe(e,t){return rr(e.getUTCSeconds(),t,2)}function qoe(e){var t=e.getUTCDay();return t===0?7:t}function Woe(e,t){return rr(cd.count(to(e)-1,e),t,2)}function u8(e){var t=e.getUTCDay();return t>=4||t===0?Io(e):Io.ceil(e)}function Uoe(e,t){return e=u8(e),rr(Io.count(to(e),e)+(to(e).getUTCDay()===4),t,2)}function Hoe(e){return e.getUTCDay()}function Voe(e,t){return rr(Hu.count(to(e)-1,e),t,2)}function Yoe(e,t){return rr(e.getUTCFullYear()%100,t,2)}function Goe(e,t){return e=u8(e),rr(e.getUTCFullYear()%100,t,2)}function Xoe(e,t){return rr(e.getUTCFullYear()%1e4,t,4)}function Zoe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Io(e):Io.ceil(e),rr(e.getUTCFullYear()%1e4,t,4)}function Koe(){return"+0000"}function yk(){return"%"}function bk(e){return+e}function xk(e){return Math.floor(+e/1e3)}var sl,xb,c8,f8;Joe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Joe(e){return sl=Jie(e),xb=sl.format,c8=sl.parse,sl.utcFormat,f8=sl.utcParse,sl}var iu={},ou={},wk;function Qoe(){if(wk)return ou;wk=1,ou.__esModule=!0,ou.default=void 0;var e=function(i){if(typeof i=="string")return i;if(i)return i.displayName||i.name||"Component"},t=e;return ou.default=t,ou}var _k;function as(){if(_k)return iu;_k=1;var e=vn;iu.__esModule=!0,iu.default=void 0;var t=e(Qoe()),r=function(o,a){return a+"("+(0,t.default)(o)+")"},i=r;return iu.default=i,iu}var Ii={},lu={},Tk;function d8(){if(Tk)return lu;Tk=1,lu.__esModule=!0,lu.default=void 0;var e=function(i,c){return function(o){return o[i]=c,o}},t=e;return lu.default=t,lu}var ele=vn;Ii.__esModule=!0;var wb=Ii.default=void 0,tle=ele(d8()),nle=function(t){return(0,tle.default)("displayName",t)},rle=nle;wb=Ii.default=rle;var su={},kk;function ale(){if(kk)return su;kk=1;var e=vn;su.__esModule=!0,su.default=void 0;var t=$e;e(Ii),e(as());var r=function(o){return function(a){var n=(0,t.createFactory)(a),l=function(s){return n(o(s))};return l}},i=r;return su.default=i,su}var Qh=vn;Qh(hr());Qh(as());Qh(Ii);Qh(ale());function ile(e,t){for(var r=-1,i=e==null?0:e.length;++rn))return!1;var f=o.get(e),s=o.get(t);if(f&&s)return f==t&&s==e;var u=-1,d=!0,h=r&fle?new lle:void 0;for(o.set(e,t),o.set(t,e);++u{const e=document.querySelector("head");return e||un(),e},d3=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function eH(e,t){const r=Xn(()=>JU(e),[e]),i=$e.useRef(null),u=$e.useRef(null),o=Cn(ea(c=>{const d=u.current;d||un(),d.textContent=c}),[]),a=Cn(c=>{const d=i.current;d||un(),d.textContent=c},[]);Ia(()=>{!i.current&&!u.current||un();const c=d3(t),d=d3(t);return i.current=c,u.current=d,c.setAttribute(`${Sl}-always`,e),d.setAttribute(`${Sl}-dynamic`,e),_m().appendChild(c),_m().appendChild(d),a(r.always),o(r.resting),()=>{const h=p=>{const m=p.current;m||un(),_m().removeChild(m),p.current=null};h(i),h(u)}},[t,a,o,r.always,r.resting,e]);const n=Cn(()=>o(r.dragging),[o,r.dragging]),l=Cn(c=>{if(c==="DROP"){o(r.dropAnimating);return}o(r.userCancel)},[o,r.dropAnimating,r.userCancel]),f=Cn(()=>{u.current&&o(r.resting)},[o,r.resting]);return Xn(()=>({dragging:n,dropping:l,resting:f}),[n,l,f])}function BC(e,t){return Array.from(e.querySelectorAll(t))}var zC=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function Gd(e){return e instanceof zC(e).HTMLElement}function tH(e,t){const r=`[${Cl.contextId}="${e}"]`,i=BC(document,r);if(!i.length)return null;const u=i.find(o=>o.getAttribute(Cl.draggableId)===t);return!u||!Gd(u)?null:u}function nH(e){const t=$e.useRef({}),r=$e.useRef(null),i=$e.useRef(null),u=$e.useRef(!1),o=Cn(function(d,h){const p={id:d,focus:h};return t.current[d]=p,function(){const y=t.current;y[d]!==p&&delete y[d]}},[]),a=Cn(function(d){const h=tH(e,d);h&&h!==document.activeElement&&h.focus()},[e]),n=Cn(function(d,h){r.current===d&&(r.current=h)},[]),l=Cn(function(){i.current||u.current&&(i.current=requestAnimationFrame(()=>{i.current=null;const d=r.current;d&&a(d)}))},[a]),f=Cn(function(d){r.current=null;const h=document.activeElement;h&&h.getAttribute(Cl.draggableId)===d&&(r.current=d)},[]);return Ia(()=>(u.current=!0,function(){u.current=!1;const d=i.current;d&&cancelAnimationFrame(d)}),[]),Xn(()=>({register:o,tryRecordFocus:f,tryRestoreFocusRecorded:l,tryShiftRecord:n}),[o,f,l,n])}function rH(){const e={draggables:{},droppables:{}},t=[];function r(c){return t.push(c),function(){const h=t.indexOf(c);h!==-1&&t.splice(h,1)}}function i(c){t.length&&t.forEach(d=>d(c))}function u(c){return e.draggables[c]||null}function o(c){const d=u(c);return d||un(),d}const a={register:c=>{e.draggables[c.descriptor.id]=c,i({type:"ADDITION",value:c})},update:(c,d)=>{const h=e.draggables[d.descriptor.id];h&&h.uniqueId===c.uniqueId&&(delete e.draggables[d.descriptor.id],e.draggables[c.descriptor.id]=c)},unregister:c=>{const d=c.descriptor.id,h=u(d);h&&c.uniqueId===h.uniqueId&&(delete e.draggables[d],e.droppables[c.descriptor.droppableId]&&i({type:"REMOVAL",value:c}))},getById:o,findById:u,exists:c=>!!u(c),getAllByType:c=>Object.values(e.draggables).filter(d=>d.descriptor.type===c)};function n(c){return e.droppables[c]||null}function l(c){const d=n(c);return d||un(),d}const f={register:c=>{e.droppables[c.descriptor.id]=c},unregister:c=>{const d=n(c.descriptor.id);d&&c.uniqueId===d.uniqueId&&delete e.droppables[c.descriptor.id]},getById:l,findById:n,exists:c=>!!n(c),getAllByType:c=>Object.values(e.droppables).filter(d=>d.descriptor.type===c)};function s(){e.draggables={},e.droppables={},t.length=0}return{draggable:a,droppable:f,subscribe:r,clean:s}}function aH(){const e=Xn(rH,[]);return $e.useEffect(()=>function(){et.version.startsWith("16")||et.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var m1=et.createContext(null),qf=()=>{const e=document.body;return e||un(),e};const iH={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var oH=iH;const lH=e=>`rfd-announcement-${e}`;function sH(e){const t=Xn(()=>lH(e),[e]),r=$e.useRef(null);return $e.useEffect(function(){const o=document.createElement("div");return r.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),Gt(o.style,oH),qf().appendChild(o),function(){setTimeout(function(){const l=qf();l.contains(o)&&l.removeChild(o),o===r.current&&(r.current=null)})}},[t]),Cn(u=>{const o=r.current;if(o){o.textContent=u;return}},[])}let qC=0;const WC={separator:"::"};function uH(){qC=0}function cH(e,t){return t===void 0&&(t=WC),Xn(()=>`${e}${t.separator}${qC++}`,[t.separator,e])}function fH(e,t){t===void 0&&(t=WC);const r=et.useId();return Xn(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}var v1="useId"in et?fH:cH;function dH(e){let{contextId:t,uniqueId:r}=e;return`rfd-hidden-text-${t}-${r}`}function hH(e){let{contextId:t,text:r}=e;const i=v1("hidden-text",{separator:"-"}),u=Xn(()=>dH({contextId:t,uniqueId:i}),[i,t]);return $e.useEffect(function(){const a=document.createElement("div");return a.id=u,a.textContent=r,a.style.display="none",qf().appendChild(a),function(){const l=qf();l.contains(a)&&l.removeChild(a)}},[u,r]),u}var Xd=et.createContext(null);function UC(e){const t=$e.useRef(e);return $e.useEffect(()=>{t.current=e}),t}function pH(){let e=null;function t(){return!!e}function r(a){return a===e}function i(a){e&&un();const n={abandon:a};return e=n,n}function u(){e||un(),e=null}function o(){e&&(e.abandon(),u())}return{isClaimed:t,isActive:r,claim:i,release:u,tryAbandon:o}}function Iu(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const gH=9,mH=13,y1=27,HC=32,vH=33,yH=34,bH=35,xH=36,wH=37,_H=38,TH=39,kH=40,MH={[mH]:!0,[gH]:!0};var VC=e=>{MH[e.keyCode]&&e.preventDefault()};const SH=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(i=>`on${i}`in document)||e})();var Zd=SH;const YC=0,h3=5;function CH(e,t){return Math.abs(t.x-e.x)>=h3||Math.abs(t.y-e.y)>=h3}const p3={type:"IDLE"};function OH(e){let{cancel:t,completed:r,getPhase:i,setPhase:u}=e;return[{eventName:"mousemove",fn:o=>{const{button:a,clientX:n,clientY:l}=o;if(a!==YC)return;const f={x:n,y:l},s=i();if(s.type==="DRAGGING"){o.preventDefault(),s.actions.move(f);return}s.type!=="PENDING"&&un();const c=s.point;if(!CH(c,f))return;o.preventDefault();const d=s.actions.fluidLift(f);u({type:"DRAGGING",actions:d})}},{eventName:"mouseup",fn:o=>{const a=i();if(a.type!=="DRAGGING"){t();return}o.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:o=>{i().type==="DRAGGING"&&o.preventDefault(),t()}},{eventName:"keydown",fn:o=>{if(i().type==="PENDING"){t();return}if(o.keyCode===y1){o.preventDefault(),t();return}VC(o)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{i().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:o=>{const a=i();if(a.type==="IDLE"&&un(),a.actions.shouldRespectForcePress()){t();return}o.preventDefault()}},{eventName:Zd,fn:t}]}function GC(e){const t=$e.useRef(p3),r=$e.useRef(Gi),i=Xn(()=>({eventName:"mousedown",fn:function(c){if(c.defaultPrevented||c.button!==YC||c.ctrlKey||c.metaKey||c.shiftKey||c.altKey)return;const d=e.findClosestDraggableId(c);if(!d)return;const h=e.tryGetLock(d,a,{sourceEvent:c});if(!h)return;c.preventDefault();const p={x:c.clientX,y:c.clientY};r.current(),f(h,p)}}),[e]),u=Xn(()=>({eventName:"webkitmouseforcewillbegin",fn:s=>{if(s.defaultPrevented)return;const c=e.findClosestDraggableId(s);if(!c)return;const d=e.findOptionsForDraggable(c);d&&(d.shouldRespectForcePress||e.canGetLock(c)&&s.preventDefault())}}),[e]),o=Cn(function(){const c={passive:!1,capture:!0};r.current=qa(window,[u,i],c)},[u,i]),a=Cn(()=>{t.current.type!=="IDLE"&&(t.current=p3,r.current(),o())},[o]),n=Cn(()=>{const s=t.current;a(),s.type==="DRAGGING"&&s.actions.cancel({shouldBlockNextClick:!0}),s.type==="PENDING"&&s.actions.abort()},[a]),l=Cn(function(){const c={capture:!0,passive:!1},d=OH({cancel:n,completed:a,getPhase:()=>t.current,setPhase:h=>{t.current=h}});r.current=qa(window,d,c)},[n,a]),f=Cn(function(c,d){t.current.type!=="IDLE"&&un(),t.current={type:"PENDING",point:d,actions:c},l()},[l]);Ia(function(){return o(),function(){r.current()}},[o])}function AH(){}const PH={[yH]:!0,[vH]:!0,[xH]:!0,[bH]:!0};function DH(e,t){function r(){t(),e.cancel()}function i(){t(),e.drop()}return[{eventName:"keydown",fn:u=>{if(u.keyCode===y1){u.preventDefault(),r();return}if(u.keyCode===HC){u.preventDefault(),i();return}if(u.keyCode===kH){u.preventDefault(),e.moveDown();return}if(u.keyCode===_H){u.preventDefault(),e.moveUp();return}if(u.keyCode===TH){u.preventDefault(),e.moveRight();return}if(u.keyCode===wH){u.preventDefault(),e.moveLeft();return}if(PH[u.keyCode]){u.preventDefault();return}VC(u)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:Zd,fn:r}]}function XC(e){const t=$e.useRef(AH),r=Xn(()=>({eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==HC)return;const a=e.findClosestDraggableId(o);if(!a)return;const n=e.tryGetLock(a,s,{sourceEvent:o});if(!n)return;o.preventDefault();let l=!0;const f=n.snapLift();t.current();function s(){l||un(),l=!1,t.current(),i()}t.current=qa(window,DH(f,s),{capture:!0,passive:!1})}}),[e]),i=Cn(function(){const o={passive:!1,capture:!0};t.current=qa(window,[r],o)},[r]);Ia(function(){return i(),function(){t.current()}},[i])}const Tm={type:"IDLE"},EH=120,RH=.15;function LH(e){let{cancel:t,getPhase:r}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:i=>{i.preventDefault()}},{eventName:"keydown",fn:i=>{if(r().type!=="DRAGGING"){t();return}i.keyCode===y1&&i.preventDefault(),t()}},{eventName:Zd,fn:t}]}function IH(e){let{cancel:t,completed:r,getPhase:i}=e;return[{eventName:"touchmove",options:{capture:!1},fn:u=>{const o=i();if(o.type!=="DRAGGING"){t();return}o.hasMoved=!0;const{clientX:a,clientY:n}=u.touches[0],l={x:a,y:n};u.preventDefault(),o.actions.move(l)}},{eventName:"touchend",fn:u=>{const o=i();if(o.type!=="DRAGGING"){t();return}u.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:u=>{if(i().type!=="DRAGGING"){t();return}u.preventDefault(),t()}},{eventName:"touchforcechange",fn:u=>{const o=i();o.type==="IDLE"&&un();const a=u.touches[0];if(!a||!(a.force>=RH))return;const l=o.actions.shouldRespectForcePress();if(o.type==="PENDING"){l&&t();return}if(l){if(o.hasMoved){u.preventDefault();return}t();return}u.preventDefault()}},{eventName:Zd,fn:t}]}function ZC(e){const t=$e.useRef(Tm),r=$e.useRef(Gi),i=Cn(function(){return t.current},[]),u=Cn(function(h){t.current=h},[]),o=Xn(()=>({eventName:"touchstart",fn:function(h){if(h.defaultPrevented)return;const p=e.findClosestDraggableId(h);if(!p)return;const m=e.tryGetLock(p,n,{sourceEvent:h});if(!m)return;const y=h.touches[0],{clientX:v,clientY:g}=y,b={x:v,y:g};r.current(),c(m,b)}}),[e]),a=Cn(function(){const h={capture:!0,passive:!1};r.current=qa(window,[o],h)},[o]),n=Cn(()=>{const d=t.current;d.type!=="IDLE"&&(d.type==="PENDING"&&clearTimeout(d.longPressTimerId),u(Tm),r.current(),a())},[a,u]),l=Cn(()=>{const d=t.current;n(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[n]),f=Cn(function(){const h={capture:!0,passive:!1},p={cancel:l,completed:n,getPhase:i},m=qa(window,IH(p),h),y=qa(window,LH(p),h);r.current=function(){m(),y()}},[l,i,n]),s=Cn(function(){const h=i();h.type!=="PENDING"&&un();const p=h.actions.fluidLift(h.point);u({type:"DRAGGING",actions:p,hasMoved:!1})},[i,u]),c=Cn(function(h,p){i().type!=="IDLE"&&un();const m=setTimeout(s,EH);u({type:"PENDING",point:p,actions:h,longPressTimerId:m}),f()},[f,i,u,s]);Ia(function(){return a(),function(){r.current();const p=i();p.type==="PENDING"&&(clearTimeout(p.longPressTimerId),u(Tm))}},[i,a,u]),Ia(function(){return qa(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const FH=["input","button","textarea","select","option","optgroup","video","audio"];function KC(e,t){if(t==null)return!1;if(FH.includes(t.tagName.toLowerCase()))return!0;const i=t.getAttribute("contenteditable");return i==="true"||i===""?!0:t===e?!1:KC(e,t.parentElement)}function NH(e,t){const r=t.target;return Gd(r)?KC(e,r):!1}var jH=e=>Ja(e.getBoundingClientRect()).center;function $H(e){return e instanceof zC(e).Element}const BH=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(i=>i in Element.prototype)||e})();function JC(e,t){return e==null?null:e[BH](t)?e:JC(e.parentElement,t)}function zH(e,t){return e.closest?e.closest(t):JC(e,t)}function qH(e){return`[${Cl.contextId}="${e}"]`}function WH(e,t){const r=t.target;if(!$H(r))return null;const i=qH(e),u=zH(r,i);return!u||!Gd(u)?null:u}function UH(e,t){const r=WH(e,t);return r?r.getAttribute(Cl.draggableId):null}function HH(e,t){const r=`[${B0.contextId}="${e}"]`,u=BC(document,r).find(o=>o.getAttribute(B0.id)===t);return!u||!Gd(u)?null:u}function VH(e){e.preventDefault()}function Yc(e){let{expected:t,phase:r,isLockActive:i,shouldWarn:u}=e;return!(!i()||t!==r)}function QC(e){let{lockAPI:t,store:r,registry:i,draggableId:u}=e;if(t.isClaimed())return!1;const o=i.draggable.findById(u);return!(!o||!o.options.isEnabled||!FC(r.getState(),u))}function YH(e){let{lockAPI:t,contextId:r,store:i,registry:u,draggableId:o,forceSensorStop:a,sourceEvent:n}=e;if(!QC({lockAPI:t,store:i,registry:u,draggableId:o}))return null;const f=u.draggable.getById(o),s=HH(r,f.descriptor.id);if(!s||n&&!f.options.canDragInteractiveElements&&NH(s,n))return null;const c=t.claim(a||Gi);let d="PRE_DRAG";function h(){return f.options.shouldRespectForcePress}function p(){return t.isActive(c)}function m(w,k){Yc({expected:w,phase:d,isLockActive:p,shouldWarn:!0})&&i.dispatch(k())}const y=m.bind(null,"DRAGGING");function v(w){function k(){t.release(),d="COMPLETED"}d!=="PRE_DRAG"&&(k(),un()),i.dispatch(LW(w.liftActionArgs)),d="DRAGGING";function T(M,S){if(S===void 0&&(S={shouldBlockNextClick:!1}),w.cleanup(),S.shouldBlockNextClick){const C=qa(window,[{eventName:"click",fn:VH,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(C)}k(),i.dispatch(OC({reason:M}))}return{isActive:()=>Yc({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,drop:M=>T("DROP",M),cancel:M=>T("CANCEL",M),...w.actions}}function g(w){const k=Au(M=>{y(()=>CC({client:M}))});return{...v({liftActionArgs:{id:o,clientSelection:w,movementMode:"FLUID"},cleanup:()=>k.cancel(),actions:{move:k}}),move:k}}function b(){const w={moveUp:()=>y(WW),moveRight:()=>y(HW),moveDown:()=>y(UW),moveLeft:()=>y(VW)};return v({liftActionArgs:{id:o,clientSelection:jH(s),movementMode:"SNAP"},cleanup:Gi,actions:w})}function x(){Yc({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}return{isActive:()=>Yc({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,fluidLift:g,snapLift:b,abort:x}}const GH=[GC,XC,ZC];function XH(e){let{contextId:t,store:r,registry:i,customSensors:u,enableDefaultSensors:o}=e;const a=[...o?GH:[],...u||[]],n=$e.useState(()=>pH())[0],l=Cn(function(v,g){Iu(v)&&!Iu(g)&&n.tryAbandon()},[n]);Ia(function(){let v=r.getState();return r.subscribe(()=>{const b=r.getState();l(v,b),v=b})},[n,r,l]),Ia(()=>n.tryAbandon,[n.tryAbandon]);const f=Cn(y=>QC({lockAPI:n,registry:i,store:r,draggableId:y}),[n,i,r]),s=Cn((y,v,g)=>YH({lockAPI:n,registry:i,contextId:t,store:r,draggableId:y,forceSensorStop:v||null,sourceEvent:g&&g.sourceEvent?g.sourceEvent:null}),[t,n,i,r]),c=Cn(y=>UH(t,y),[t]),d=Cn(y=>{const v=i.draggable.findById(y);return v?v.options:null},[i.draggable]),h=Cn(function(){n.isClaimed()&&(n.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(u1()))},[n,r]),p=Cn(()=>n.isClaimed(),[n]),m=Xn(()=>({canGetLock:f,tryGetLock:s,findClosestDraggableId:c,findOptionsForDraggable:d,tryReleaseLock:h,isLockClaimed:p}),[f,s,c,d,h,p]);for(let y=0;y({onBeforeCapture:t=>{const r=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};et.version.startsWith("16")||et.version.startsWith("17")?r():hy.flushSync(r)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),KH=e=>({...Lu,...e.autoScrollerOptions,durationDampening:{...Lu.durationDampening,...e.autoScrollerOptions}});function Fs(e){return e.current||un(),e.current}function JH(e){const{contextId:t,setCallbacks:r,sensors:i,nonce:u,dragHandleUsageInstructions:o}=e,a=$e.useRef(null),n=UC(e),l=Cn(()=>ZH(n.current),[n]),f=Cn(()=>KH(n.current),[n]),s=sH(t),c=hH({contextId:t,text:o}),d=eH(t,u),h=Cn(S=>{Fs(a).dispatch(S)},[]),p=Xn(()=>q_({publishWhileDragging:FW,updateDroppableScroll:jW,updateDroppableIsEnabled:$W,updateDroppableIsCombineEnabled:BW,collectionStarting:NW},h),[h]),m=aH(),y=Xn(()=>DU(m,p),[m,p]),v=Xn(()=>GU({scrollWindow:EU,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:f,...q_({move:CC},h)}),[y.scrollDroppable,h,f]),g=nH(t),b=Xn(()=>CU({announce:s,autoScroller:v,dimensionMarshal:y,focusMarshal:g,getResponders:l,styleMarshal:d}),[s,v,y,g,l,d]);a.current=b;const x=Cn(()=>{const S=Fs(a);S.getState().phase!=="IDLE"&&S.dispatch(u1())},[]),_=Cn(()=>{const S=Fs(a).getState();return S.phase==="DROP_ANIMATING"?!0:S.phase==="IDLE"?!1:S.isDragging},[]),w=Xn(()=>({isDragging:_,tryAbort:x}),[_,x]);r(w);const k=Cn(S=>FC(Fs(a).getState(),S),[]),T=Cn(()=>go(Fs(a).getState()),[]),M=Xn(()=>({marshal:y,focus:g,contextId:t,canLift:k,isMovementAllowed:T,dragHandleUsageInstructionsId:c,registry:m}),[t,y,c,g,k,T,m]);return XH({contextId:t,store:b,registry:m,customSensors:i||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),$e.useEffect(()=>x,[x]),et.createElement(Xd.Provider,{value:M},et.createElement(hq,{context:m1,store:b},e.children))}let e6=0;function QH(){e6=0}function eV(){return Xn(()=>`${e6++}`,[])}function tV(){return et.useId()}var nV="useId"in et?tV:eV;function rV(){"useId"in et||(QH(),uH())}function aV(e){const t=nV(),r=e.dragHandleUsageInstructions||df.dragHandleUsageInstructions;return et.createElement(_q,null,i=>et.createElement(JH,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const g3={dragging:5e3,dropAnimating:4500},iV=(e,t)=>t?ku.drop(t.duration):e?ku.snap:ku.fluid,oV=(e,t)=>{if(e)return t?Ru.opacity.drop:Ru.opacity.combining},lV=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function sV(e){const r=e.dimension.client,{offset:i,combineWith:u,dropping:o}=e,a=!!u,n=lV(e),l=!!o,f=l?j0.drop(i,a):j0.moveTo(i);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:iV(n,o),transform:f,opacity:oV(a,l),zIndex:l?g3.dropAnimating:g3.dragging,pointerEvents:"none"}}function uV(e){return{transform:j0.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function cV(e){return e.type==="DRAGGING"?sV(e):uV(e)}function fV(e,t,r){r===void 0&&(r=ta);const i=window.getComputedStyle(t),u=t.getBoundingClientRect(),o=nC(u,i),a=jf(o,r),n={client:o,tagName:t.tagName.toLowerCase(),display:i.display},l={x:o.marginBox.width,y:o.marginBox.height};return{descriptor:e,placeholder:n,displaceBy:l,client:o,page:a}}function dV(e){const t=v1("draggable"),{descriptor:r,registry:i,getDraggableRef:u,canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:n}=e,l=Xn(()=>({canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:n}),[o,n,a]),f=Cn(h=>{const p=u();return p||un(),fV(r,p,h)},[r,u]),s=Xn(()=>({uniqueId:t,descriptor:r,options:l,getDimension:f}),[r,f,l,t]),c=$e.useRef(s),d=$e.useRef(!0);Ia(()=>(i.draggable.register(c.current),()=>i.draggable.unregister(c.current)),[i.draggable]),Ia(()=>{if(d.current){d.current=!1;return}const h=c.current;c.current=s,i.draggable.update(s,h)},[s,i.draggable])}var b1=et.createContext(null);function Wf(e){const t=$e.useContext(e);return t||un(),t}function hV(e){e.preventDefault()}const pV=e=>{const t=$e.useRef(null),r=Cn(function(w){w===void 0&&(w=null),t.current=w},[]),i=Cn(()=>t.current,[]),{contextId:u,dragHandleUsageInstructionsId:o,registry:a}=Wf(Xd),{type:n,droppableId:l}=Wf(b1),f=Xn(()=>({id:e.draggableId,index:e.index,type:n,droppableId:l}),[e.draggableId,e.index,n,l]),{children:s,draggableId:c,isEnabled:d,shouldRespectForcePress:h,canDragInteractiveElements:p,isClone:m,mapped:y,dropAnimationFinished:v}=e;if(!m){const w=Xn(()=>({descriptor:f,registry:a,getDraggableRef:i,canDragInteractiveElements:p,shouldRespectForcePress:h,isEnabled:d}),[f,a,i,p,h,d]);dV(w)}const g=Xn(()=>d?{tabIndex:0,role:"button","aria-describedby":o,"data-rfd-drag-handle-draggable-id":c,"data-rfd-drag-handle-context-id":u,draggable:!1,onDragStart:hV}:null,[u,o,c,d]),b=Cn(w=>{y.type==="DRAGGING"&&y.dropping&&w.propertyName==="transform"&&(et.version.startsWith("16")||et.version.startsWith("17")?v():hy.flushSync(v))},[v,y]),x=Xn(()=>{const w=cV(y),k=y.type==="DRAGGING"&&y.dropping?b:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":u,"data-rfd-draggable-id":c,style:w,onTransitionEnd:k},dragHandleProps:g}},[u,g,c,y,b,r]),_=Xn(()=>({draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}),[f.droppableId,f.id,f.index,f.type]);return et.createElement(et.Fragment,null,s(x,y.snapshot,_))};var gV=pV,t6=(e,t)=>e===t,n6=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};const mV=e=>e.combine?e.combine.draggableId:null,vV=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function yV(){const e=ea((u,o)=>({x:u,y:o})),t=ea(function(u,o,a,n,l){return a===void 0&&(a=null),n===void 0&&(n=null),l===void 0&&(l=null),{isDragging:!0,isClone:o,isDropAnimating:!!l,dropAnimation:l,mode:u,draggingOver:a,combineWith:n,combineTargetFor:null}}),r=ea(function(u,o,a,n,l,f,s){return l===void 0&&(l=null),f===void 0&&(f=null),s===void 0&&(s=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:f,mode:o,offset:u,dimension:a,forceShouldAnimate:s,snapshot:t(o,n,l,f,null)}}});return(u,o)=>{if(Iu(u)){if(u.critical.draggable.id!==o.draggableId)return null;const a=u.current.client.offset,n=u.dimensions.draggables[o.draggableId],l=La(u.impact),f=vV(u.impact),s=u.forceShouldAnimate;return r(e(a.x,a.y),u.movementMode,n,o.isClone,l,f,s)}if(u.phase==="DROP_ANIMATING"){const a=u.completed;if(a.result.draggableId!==o.draggableId)return null;const n=o.isClone,l=u.dimensions.draggables[o.draggableId],f=a.result,s=f.mode,c=n6(f),d=mV(f),p={duration:u.dropDuration,curve:f1.drop,moveTo:u.newHomeClientOffset,opacity:d?Ru.opacity.drop:null,scale:d?Ru.scale.drop:null};return{mapped:{type:"DRAGGING",offset:u.newHomeClientOffset,dimension:l,dropping:p,draggingOver:c,combineWith:d,mode:s,forceShouldAnimate:null,snapshot:t(s,n,c,d,p)}}}return null}}function r6(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const bV={mapped:{type:"SECONDARY",offset:ta,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:r6(null)}};function xV(){const e=ea((a,n)=>({x:a,y:n})),t=ea(r6),r=ea(function(a,n,l){return n===void 0&&(n=null),{mapped:{type:"SECONDARY",offset:a,combineTargetFor:n,shouldAnimateDisplacement:l,snapshot:t(n)}}}),i=a=>a?r(ta,a,!0):null,u=(a,n,l,f)=>{const s=l.displaced.visible[a],c=!!(f.inVirtualList&&f.effected[a]),d=Hd(l),h=d&&d.draggableId===a?n:null;if(!s){if(!c)return i(h);if(l.displaced.invisible[a])return null;const y=zl(f.displacedBy.point),v=e(y.x,y.y);return r(v,h,!0)}if(c)return i(h);const p=l.displacedBy.point,m=e(p.x,p.y);return r(m,h,s.shouldAnimate)};return(a,n)=>{if(Iu(a))return a.critical.draggable.id===n.draggableId?null:u(n.draggableId,a.critical.draggable.id,a.impact,a.afterCritical);if(a.phase==="DROP_ANIMATING"){const l=a.completed;return l.result.draggableId===n.draggableId?null:u(n.draggableId,l.result.draggableId,l.impact,l.afterCritical)}return null}}const wV=()=>{const e=yV(),t=xV();return(i,u)=>e(i,u)||t(i,u)||bV},_V={dropAnimationFinished:AC},TV=eC(wV,_V,null,{context:m1,areStatePropsEqual:t6})(gV);var kV=TV;function a6(e){return Wf(b1).isUsingCloneFor===e.draggableId&&!e.isClone?null:et.createElement(kV,e)}function MV(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,i=!!e.shouldRespectForcePress;return et.createElement(a6,Gt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:i}))}const i6=e=>t=>e===t,SV=i6("scroll"),CV=i6("auto"),m3=(e,t)=>t(e.overflowX)||t(e.overflowY),OV=e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return m3(r,SV)||m3(r,CV)},AV=()=>!1,o6=e=>e==null?null:e===document.body?AV()?e:null:e===document.documentElement?null:OV(e)?e:o6(e.parentElement);var PV=o6,z0=e=>({x:e.scrollLeft,y:e.scrollTop});const l6=e=>e?window.getComputedStyle(e).position==="fixed"?!0:l6(e.parentElement):!1;var DV=e=>{const t=PV(e),r=l6(e);return{closestScrollable:t,isFixedOnPage:r}},EV=e=>{let{descriptor:t,isEnabled:r,isCombineEnabled:i,isFixedOnPage:u,direction:o,client:a,page:n,closest:l}=e;const f=(()=>{if(!l)return null;const{scrollSize:h,client:p}=l,m=RC({scrollHeight:h.scrollHeight,scrollWidth:h.scrollWidth,height:p.paddingBox.height,width:p.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:p,scrollSize:h,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:m,diff:{value:ta,displacement:ta}}}})(),s=o==="vertical"?a1:dC,c=Ml({page:n,withPlaceholder:null,axis:s,frame:f});return{descriptor:t,isCombineEnabled:i,isFixedOnPage:u,axis:s,isEnabled:r,client:a,page:n,frame:f,subject:c}};const RV=(e,t)=>{const r=rC(e);if(!t||e!==t)return r;const i=r.paddingBox.top-t.scrollTop,u=r.paddingBox.left-t.scrollLeft,o=i+t.scrollHeight,a=u+t.scrollWidth,l=e1({top:i,right:a,bottom:o,left:u},r.border);return t1({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})};var LV=e=>{let{ref:t,descriptor:r,env:i,windowScroll:u,direction:o,isDropDisabled:a,isCombineEnabled:n,shouldClipSubject:l}=e;const f=i.closestScrollable,s=RV(t,f),c=jf(s,u),d=(()=>{if(!f)return null;const p=rC(f),m={scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth};return{client:p,page:jf(p,u),scroll:z0(f),scrollSize:m,shouldClipSubject:l}})();return EV({descriptor:r,isEnabled:!a,isCombineEnabled:n,isFixedOnPage:i.isFixedOnPage,direction:o,client:s,page:c,closest:d})};const IV={passive:!1},FV={passive:!0};var v3=e=>e.shouldPublishImmediately?IV:FV;const Gc=e=>e&&e.env.closestScrollable||null;function NV(e){const t=$e.useRef(null),r=Wf(Xd),i=v1("droppable"),{registry:u,marshal:o}=r,a=UC(e),n=Xn(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=$e.useRef(n),f=Xn(()=>ea((x,_)=>{t.current||un();const w={x,y:_};o.updateDroppableScroll(n.id,w)}),[n.id,o]),s=Cn(()=>{const x=t.current;return!x||!x.env.closestScrollable?ta:z0(x.env.closestScrollable)},[]),c=Cn(()=>{const x=s();f(x.x,x.y)},[s,f]),d=Xn(()=>Au(c),[c]),h=Cn(()=>{const x=t.current,_=Gc(x);if(x&&_||un(),x.scrollOptions.shouldPublishImmediately){c();return}d()},[d,c]),p=Cn((x,_)=>{t.current&&un();const w=a.current,k=w.getDroppableRef();k||un();const T=DV(k),M={ref:k,descriptor:n,env:T,scrollOptions:_};t.current=M;const S=LV({ref:k,descriptor:n,env:T,windowScroll:x,direction:w.direction,isDropDisabled:w.isDropDisabled,isCombineEnabled:w.isCombineEnabled,shouldClipSubject:!w.ignoreContainerClipping}),C=T.closestScrollable;return C&&(C.setAttribute(f3.contextId,r.contextId),C.addEventListener("scroll",h,v3(M.scrollOptions))),S},[r.contextId,n,h,a]),m=Cn(()=>{const x=t.current,_=Gc(x);return x&&_||un(),z0(_)},[]),y=Cn(()=>{const x=t.current;x||un();const _=Gc(x);t.current=null,_&&(d.cancel(),_.removeAttribute(f3.contextId),_.removeEventListener("scroll",h,v3(x.scrollOptions)))},[h,d]),v=Cn(x=>{const _=t.current;_||un();const w=Gc(_);w||un(),w.scrollTop+=x.y,w.scrollLeft+=x.x},[]),g=Xn(()=>({getDimensionAndWatchScroll:p,getScrollWhileDragging:m,dragStopped:y,scroll:v}),[y,p,m,v]),b=Xn(()=>({uniqueId:i,descriptor:n,callbacks:g}),[g,n,i]);Ia(()=>(l.current=b.descriptor,u.droppable.register(b),()=>{t.current&&y(),u.droppable.unregister(b)}),[g,n,y,b,o,u.droppable]),Ia(()=>{t.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),Ia(()=>{t.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function km(){}const y3={width:0,height:0,margin:Aq},jV=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;return t||i==="close"?y3:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}},$V=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;const u=jV({isAnimatingOpenOnMount:t,placeholder:r,animate:i});return{display:r.display,boxSizing:"border-box",width:u.width,height:u.height,marginTop:u.margin.top,marginRight:u.margin.right,marginBottom:u.margin.bottom,marginLeft:u.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?ku.placeholder:null}},BV=e=>{const t=$e.useRef(null),r=Cn(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:i,onTransitionEnd:u,onClose:o,contextId:a}=e,[n,l]=$e.useState(e.animate==="open");$e.useEffect(()=>n?i!=="open"?(r(),l(!1),km):t.current?km:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):km,[i,n,r]);const f=Cn(c=>{c.propertyName==="height"&&(u(),i==="close"&&o())},[i,o,u]),s=$V({isAnimatingOpenOnMount:n,animate:e.animate,placeholder:e.placeholder});return et.createElement(e.placeholder.tagName,{style:s,"data-rfd-placeholder-context-id":a,onTransitionEnd:f,ref:e.innerRef})};var zV=et.memo(BV);class qV extends et.PureComponent{constructor(){super(...arguments),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,r){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const WV=e=>{const t=$e.useContext(Xd);t||un();const{contextId:r,isMovementAllowed:i}=t,u=$e.useRef(null),o=$e.useRef(null),{children:a,droppableId:n,type:l,mode:f,direction:s,ignoreContainerClipping:c,isDropDisabled:d,isCombineEnabled:h,snapshot:p,useClone:m,updateViewportMaxScroll:y,getContainerForClone:v}=e,g=Cn(()=>u.current,[]),b=Cn(function(C){C===void 0&&(C=null),u.current=C},[]);Cn(()=>o.current,[]);const x=Cn(function(C){C===void 0&&(C=null),o.current=C},[]),_=Cn(()=>{i()&&y({maxScroll:IC()})},[i,y]);NV({droppableId:n,type:l,mode:f,direction:s,isDropDisabled:d,isCombineEnabled:h,ignoreContainerClipping:c,getDroppableRef:g});const w=Xn(()=>et.createElement(qV,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},C=>{let{onClose:P,data:D,animate:O}=C;return et.createElement(zV,{placeholder:D,onClose:P,innerRef:x,animate:O,contextId:r,onTransitionEnd:_})}),[r,_,e.placeholder,e.shouldAnimatePlaceholder,x]),k=Xn(()=>({innerRef:b,placeholder:w,droppableProps:{"data-rfd-droppable-id":n,"data-rfd-droppable-context-id":r}}),[r,n,w,b]),T=m?m.dragging.draggableId:null,M=Xn(()=>({droppableId:n,type:l,isUsingCloneFor:T}),[n,T,l]);function S(){if(!m)return null;const{dragging:C,render:P}=m,D=et.createElement(a6,{draggableId:C.draggableId,index:C.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(O,R)=>P(O,R,C));return q9.createPortal(D,v())}return et.createElement(b1.Provider,{value:M},a(k,p),S())};var UV=WV;function HV(){return document.body||un(),document.body}const b3={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:HV},s6=e=>{let t={...e},r;for(r in b3)e[r]===void 0&&(t={...t,[r]:b3[r]});return t},Mm=(e,t)=>e===t.droppable.type,x3=(e,t)=>t.draggables[e.draggable.id],VV=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=ea(o=>({draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}})),i=ea((o,a,n,l,f,s)=>{const c=f.descriptor.id;if(f.descriptor.droppableId===o){const p=s?{render:s,dragging:r(f.descriptor)}:null,m={isDraggingOver:n,draggingOverWith:n?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!1,snapshot:m,useClone:p}}if(!a)return t;if(!l)return e;const h={isDraggingOver:n,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!0,snapshot:h,useClone:null}});return(o,a)=>{const n=s6(a),l=n.droppableId,f=n.type,s=!n.isDropDisabled,c=n.renderClone;if(Iu(o)){const d=o.critical;if(!Mm(f,d))return t;const h=x3(d,o.dimensions),p=La(o.impact)===l;return i(l,s,p,p,h,c)}if(o.phase==="DROP_ANIMATING"){const d=o.completed;if(!Mm(f,d.critical))return t;const h=x3(d.critical,o.dimensions);return i(l,s,n6(d.result)===l,La(d.impact)===l,h,c)}if(o.phase==="IDLE"&&o.completed&&!o.shouldFlush){const d=o.completed;if(!Mm(f,d.critical))return t;const h=La(d.impact)===l,p=!!(d.impact.at&&d.impact.at.type==="COMBINE"),m=d.critical.droppable.id===l;return h?p?e:t:m?e:t}return t}},YV={updateViewportMaxScroll:qW},GV=eC(VV,YV,(e,t,r)=>({...s6(r),...e,...t}),{context:m1,areStatePropsEqual:t6})(UV);var XV=GV;const ZV=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:aV,Draggable:MV,Droppable:XV,resetServerContext:rV,useKeyboardSensor:XC,useMouseSensor:GC,useTouchSensor:ZC},Symbol.toStringTag,{value:"Module"})),x1=qn(ZV);var w3;function KV(){return w3||(w3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),u=t(Bo),o=t(Jr()),a=t(V4),n=t(zz),l=t(Wd),f=t(Or),s=m($e),c=x1,d=Qa(),h=Ju();function p(x){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(p=function(T){return T?w:_})(x)}function m(x,_){if(x&&x.__esModule)return x;if(x===null||r(x)!=="object"&&typeof x!="function")return{default:x};var w=p(_);if(w&&w.has(x))return w.get(x);var k={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in x)if(M!=="default"&&Object.prototype.hasOwnProperty.call(x,M)){var S=T?Object.getOwnPropertyDescriptor(x,M):null;S&&(S.get||S.set)?Object.defineProperty(k,M,S):k[M]=x[M]}return k.default=x,w&&w.set(x,k),k}function y(x,_){var w=Object.keys(x);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(x);_&&(k=k.filter(function(T){return Object.getOwnPropertyDescriptor(x,T).enumerable})),w.push.apply(w,k)}return w}function v(x){for(var _=1;_0&&s.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.groupedBy),x.groupColumns.map(function(P,D){return s.default.createElement(c.Draggable,{key:P.tableData.id.toString(),draggableId:P.tableData.id.toString(),index:D},function(O,R){var F;return s.default.createElement(u.default,(0,i.default)({ref:O.innerRef},O.draggableProps,O.dragHandleProps,{sx:T(R.isDragging,O.draggableProps.style)}),s.default.createElement(n.default,(0,i.default)({},O.dragHandleProps,k.groupChipProps,{onClick:function(){return x.onSortChanged(P)},label:s.default.createElement(u.default,{sx:{display:"flex",alignItems:"center"}},s.default.createElement(u.default,{sx:{float:"left"}},P.title),P.tableData.groupSort&&s.default.createElement(w.SortArrow,{sx:{transition:"300ms ease all",transform:P.tableData.groupSort==="asc"?"rotate(-180deg)":"none",fontSize:18}})),sx:v({boxShadow:"none",textTransform:"none"},(F=k.groupChipProps)!==null&&F!==void 0?F:{}),onDelete:function(){return x.onGroupRemoved(P,D)}})))})}),x.groupColumns.length===0&&s.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.placeholder),S.placeholder)}))}g.defaultProps={},g.propTypes={forwardedRef:f.default.element,className:f.default.string,onSortChanged:f.default.func,onGroupRemoved:f.default.func,onGroupChange:f.default.func,persistentGroupingsId:f.default.string};var b=s.default.forwardRef(function(_,w){return s.default.createElement(g,(0,i.default)({},_,{forwardedRef:w}))});e.default=b}(pm)),pm}var Sm={},_3;function JV(){return _3||(_3=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Jr()),u=t(ao()),o=t($l()),a=t(gi),n=t(Ai),l=t(Bl),f=t(zo),s=t(Or),c=t($e),d=Qa();function h(v,g){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);g&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,x)}return b}function p(v){for(var g=1;g0&&_++;var w=v.groups[v.level],k;v.groupData.isExpanded&&(v.groups.length>v.level+1?k=v.groupData.groups.map(function(j,N){return c.default.createElement(v.components.GroupRow,{actions:v.actions,key:j.value||""+N,columns:v.columns,components:v.components,detailPanel:v.detailPanel,getFieldValue:v.getFieldValue,groupData:j,groups:v.groups,level:v.level+1,path:[].concat((0,o.default)(v.path),[N]),onGroupExpandChanged:v.onGroupExpandChanged,onGroupSelected:v.onGroupSelected,onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,isTreeData:v.isTreeData,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}):k=v.groupData.data.map(function(j,N){return j.tableData.editing?c.default.createElement(v.components.EditRow,{columns:v.columns,components:v.components,data:j,path:[].concat((0,o.default)(v.path),[j.tableData.uuid]),localization:v.localization,key:N,mode:j.tableData.editing,isTreeData:v.isTreeData,detailPanel:v.detailPanel,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,getFieldValue:v.getFieldValue,onBulkEditRowChanged:v.onBulkEditRowChanged,scrollWidth:v.scrollWidth}):c.default.createElement(v.components.Row,{actions:v.actions,key:N,columns:v.columns,components:v.components,data:j,detailPanel:v.detailPanel,level:(v.level||0)+1,getFieldValue:v.getFieldValue,path:[].concat((0,o.default)(v.path),[j.tableData.uuid]),onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,isTreeData:v.isTreeData,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}));for(var T=[],M=0;M0&&A!==z,checked:A===z,onChange:function(N,E){return v.onGroupSelected&&v.onGroupSelected(E,v.groupData.path)},style:{marginRight:8}}),c.default.createElement("b",null,C,P)))),k)}m.defaultProps={columns:[],groups:[],level:0},m.propTypes={actions:s.default.array,columns:s.default.arrayOf(s.default.object),components:s.default.object,cellEditable:s.default.object,detailPanel:s.default.oneOfType([s.default.func,s.default.arrayOf(s.default.object)]),forwardedRef:s.default.element,getFieldValue:s.default.func,groupData:s.default.object,groups:s.default.arrayOf(s.default.object),hasAnyEditingRow:s.default.bool,icons:s.default.object,isTreeData:s.default.bool.isRequired,level:s.default.number,localization:s.default.object,onBulkEditRowChanged:s.default.func,onCellEditFinished:s.default.func,onCellEditStarted:s.default.func,onEditingApproved:s.default.func,onEditingCanceled:s.default.func,onGroupExpandChanged:s.default.func,onRowClick:s.default.func,onGroupSelected:s.default.func,onRowSelected:s.default.func,onToggleDetailPanel:s.default.func.isRequired,onTreeExpandChanged:s.default.func.isRequired,path:s.default.arrayOf(s.default.number),scrollWidth:s.default.number.isRequired,treeDataMaxLevel:s.default.number};var y=c.default.forwardRef(function(g,b){return c.default.createElement(m,(0,r.default)({},g,{forwardedRef:b}))});e.default=y}(Sm)),Sm}var Cm={};const QV=qn(W9),eY=qn(U9);var T3;function tY(){return T3||(T3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=T,e.styles=e.default=void 0;var i=t(Bo),u=t(qo),o=t(hr()),a=t(Jr()),n=t(ao()),l=t(jl()),f=t($e),s=t(Or),c=t(QV),d=t(Ai),h=t(gi),p=t(eY),m=t(zo),y=x1,v=_(Ri()),g=Qa(),b=["onColumnResized","classes","sx","columns"];function x(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,F=new WeakMap;return(x=function(z){return z?F:R})(O)}function _(O,R){if(O&&O.__esModule)return O;if(O===null||r(O)!=="object"&&typeof O!="function")return{default:O};var F=x(R);if(F&&F.has(O))return F.get(O);var A={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var $=z?Object.getOwnPropertyDescriptor(O,B):null;$&&($.get||$.set)?Object.defineProperty(A,B,$):A[B]=O[B]}return A.default=O,F&&F.set(O,A),A}function w(O,R){var F=Object.keys(O);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(O);R&&(A=A.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),F.push.apply(F,A)}return F}function k(O){for(var R=1;R-1)&&!ce.tableData.hiddden}).sort(function(ce,ye){return ce.tableData.columnOrder-ye.tableData.columnOrder}).map(function(ce,ye,J){var ne=ce.align!==void 0?ce.align:["numeric","currency"].indexOf(ce.type)!==-1?"right":"left",de=ce.title;if(j.draggable&&ce.draggable!==!1?de=f.default.createElement(y.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:ye,style:{zIndex:99}},function(ue,ge){return f.default.createElement("div",(0,o.default)({ref:ue.innerRef},ue.draggableProps,ue.dragHandleProps,{style:ge.isDragging?ue.draggableProps.style:{position:"relative",minWidth:0,display:"flex",flexDirection:ne==="right"?"row-reverse":void 0}}),ce.sorting!==!1&&B.sorting&&B.allowSorting?f.default.createElement(S,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:j.thirdSortClick,onOrderChange:B.onOrderChange,orderByCollection:B.orderByCollection,showColumnSortOrder:j.showColumnSortOrder,sortOrderIndicatorStyle:j.sortOrderIndicatorStyle},ce.title):ce.title)}):ce.sorting!==!1&&B.sorting&&B.allowSorting&&(de=f.default.createElement(S,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:j.thirdSortClick,onOrderChange:B.onOrderChange,orderByCollection:B.orderByCollection,showColumnSortOrder:j.showColumnSortOrder,sortOrderIndicatorStyle:j.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(de=f.default.createElement(u.default,{title:ce.tooltip,placement:"bottom"},f.default.createElement("span",null,de))),j.tableLayout==="fixed"&&j.columnResizable&&ce.resizable!==!1&&!(j.tableWidth==="full"&&ye===J.length-1)){var xe=N.Resize?N.Resize:function(ue){return f.default.createElement(i.default,(0,o.default)({},ue,{"data-test-id":"drag_handle"}))};de=f.default.createElement(i.default,{sx:C.headerWrap(ne==="right")},f.default.createElement(i.default,{sx:C.headerContent(ne==="right")},de),f.default.createElement("div",null),f.default.createElement(xe,{sx:C.headerResize((q==null?void 0:q.col)&&q.col.tableData.id===ce.tableData.id),onMouseDown:function(ge){return Y(ge,ce,ye)}}))}return f.default.createElement(h.default,{key:ce.tableData.id,align:ne,sx:C.header,style:le(ce),size:Me,"aria-label":ce.ariaLabel},de)})}function pe(){var Me=v.selectionMaxWidth(k(k({},B),{},{options:j}),B.treeDataMaxLevel);return f.default.createElement(h.default,{padding:"none",key:"key-selection-column",sx:C.header,style:k(k({},j.headerStyle),{},{width:Me})},j.showSelectAllCheckbox&&f.default.createElement(m.default,(0,o.default)({indeterminate:B.selectedCount>0&&B.selectedCount0&&B.selectedCount>=B.dataCount,onChange:function(ye,J){return B.onAllSelected&&B.onAllSelected(J)}},j.headerSelectionProps)))}function Te(){return f.default.createElement(h.default,{padding:"none",key:"key-detail-panel-column",sx:C.header,style:j.headerStyle})}var Se=se();if(j.selection&&Se.splice(0,0,pe()),B.showActionsColumn)if(j.actionsColumnIndex>=0){var Oe=0;j.selection&&(Oe=1),Se.splice(j.actionsColumnIndex+Oe,0,ie())}else j.actionsColumnIndex===-1&&Se.push(ie());return B.hasDetailPanel&&j.showDetailPanelIcon&&(j.detailPanelColumnAlignment==="right"?Se.push(Te()):Se.splice(0,0,Te())),B.isTreeData>0&&Se.splice(0,0,f.default.createElement(h.default,{padding:"none",key:"key-tree-data-header",sx:C.header,style:j.headerStyle})),Q.filter(function(Me){return Me.tableData.groupOrder>-1}).forEach(function(Me){Se.splice(0,0,f.default.createElement(h.default,{padding:"checkbox",key:"key-group-header"+Me.tableData.id,sx:C.header,style:j.headerStyle}))}),f.default.createElement(c.default,{ref:B.forwardedRef,classes:F,sx:A},f.default.createElement(d.default,{sx:C.headerRow},Se))}var M=function(R,F,A,z,B){return A.tableData.id!==R?B&&F||"asc":F==="asc"?"desc":F==="desc"&&z?"":"asc"};function S(O){var R=O.columnDef,F=O.keepSortDirectionOnColumnSwitch,A=O.icon,z=O.thirdSortClick,B=O.onOrderChange,$=O.children,j=O.orderByCollection,N=O.showColumnSortOrder,E=O.sortOrderIndicatorStyle,W=j.find(function(H){var V=H.orderBy;return V===R.tableData.id}),G=(W||F)&&W&&W.orderDirection||"asc",L="none";W&&G==="asc"?L=R.ariaSortAsc||"ascending":W&&G==="desc"&&(L=R.ariaSortDesc||"descending");var q=W&&W.orderBy;return f.default.createElement(f.default.Fragment,null,f.default.createElement(p.default,{role:"columnheader","aria-sort":L,"aria-label":R.ariaLabel,IconComponent:A,active:!!W,"data-testid":"mtableheader-sortlabel",direction:G,onClick:function(){var V=M(q,G,R,z,F);B(R.tableData.id,V,W&&W.sortOrder)}},$),f.default.createElement("span",{style:k(k({},E),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},N&&W?W.sortOrder:""))}T.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},T.propTypes={columns:s.default.array.isRequired,classes:s.default.object,sx:s.default.object,dataCount:s.default.number,hasDetailPanel:s.default.bool.isRequired,selectedCount:s.default.number,onAllSelected:s.default.func,onOrderChange:s.default.func,showActionsColumn:s.default.bool,orderByCollection:s.default.array,showColumnSortOrder:s.default.bool,tooltip:s.default.string,allowSorting:s.default.bool};var C={headerRow:{zIndex:10},header:{top:0},headerWrap:function(R){return{display:"flex",alignItems:"center",position:"relative",left:4}},headerWrapRight:function(R){return{display:"flex",alignItems:"center",pr:R?1:void 0,position:"relative",left:4,justifyContent:"flex-end"}},headerContent:function(R){return{minWidth:0,display:"flex",flex:"1 0 100%",flexDirection:R?"row-reverse":void 0,justifyContent:"flex-start",alignItems:"center",width:"100%",position:"relative"}},headerResize:function(R){return{color:R?"primary.main":"inherit",flex:1,cursor:"col-resize",position:"absolute",height:"100%",width:16,display:"flex",justifyContent:"center",right:-8,zIndex:20}}};e.styles=C;var P=f.default.forwardRef(function(R,F){return f.default.createElement(T,(0,o.default)({},R,{forwardedRef:F}))}),D=f.default.memo(P);e.default=D}(Cm)),Cm}var Om={};const nY=qn(H9);var k3;function rY(){return k3||(k3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),u=t(Bl),o=t(qo),a=t(Bo),n=t(nY),l=t(Or),f=t($e),s=Nl,c=p(Ri()),d=Qa();function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function m(b){var x=(0,s.useTheme)(),_=(0,d.useLocalizationStore)().pagination,w=(0,d.useIconStore)(),k=function(G){b.onPageChange(G,0)},T=function(G){b.onPageChange(G,b.page-1)},M=function(G){b.onPageChange(G,b.page+1)},S=function(G){return function(L){b.onPageChange(L,G)}},C=function(G){b.onPageChange(G,Math.max(0,Math.ceil(b.count/b.rowsPerPage)-1))};function P(W,G,L,q){var H=[];q=Math.max(1,Math.min(10,q));for(var V=Math.max(W-q+1,0);V<=Math.min(G+q-1,L);V++){var te=V===b.page?"contained":"text";H.push(f.default.createElement(n.default,{size:"small",style:{boxShadow:"none",maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px"},disabled:V===b.page,variant:te,onClick:S(V),key:V},V+1))}return f.default.createElement("span",null,H)}var D=b.count,O=b.page,R=b.rowsPerPage,F=b.showFirstLastPageButtons,A=b.numberOfPagesAround,z=Math.ceil(D/R)-1,B=Math.max(O-1,0),$=Math.min(z,O+1),j=c.parseFirstLastPageButtons(F,x.direction==="rtl"),N=j.first,E=j.last;return f.default.createElement(a.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:b.forwardedRef},N&&f.default.createElement(o.default,{title:_.firstTooltip},f.default.createElement("span",null,f.default.createElement(u.default,{onClick:k,disabled:O===0,"aria-label":_.firstAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.LastPage,null):f.default.createElement(w.FirstPage,null)))),f.default.createElement(o.default,{title:_.previousTooltip},f.default.createElement("span",null,f.default.createElement(u.default,{onClick:T,disabled:O===0,"aria-label":_.previousAriaLabel},f.default.createElement(w.PreviousPage,null)))),f.default.createElement(a.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},P(B,$,z,A)),f.default.createElement(o.default,{title:_.nextTooltip},f.default.createElement("span",null,f.default.createElement(u.default,{onClick:M,disabled:O>=z,"aria-label":_.nextAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.PreviousPage,null):f.default.createElement(w.NextPage,null)))),E&&f.default.createElement(o.default,{title:_.lastTooltip},f.default.createElement("span",null,f.default.createElement(u.default,{onClick:C,disabled:O>=Math.ceil(D/R)-1,"aria-label":_.lastAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.FirstPage,null):f.default.createElement(w.LastPage,null)))))}m.propTypes={onPageChange:l.default.func,page:l.default.number,forwardedRef:l.default.func,count:l.default.number,rowsPerPage:l.default.number,numberOfPagesAround:l.default.number,classes:l.default.object,theme:l.default.any,showFirstLastPageButtons:l.default.oneOfType([l.default.object,l.default.bool])},m.defaultProps={showFirstLastPageButtons:!0};var y=f.default.forwardRef(function(x,_){return f.default.createElement(m,(0,i.default)({},x,{forwardedRef:_}))}),v=y,g=v;e.default=g}(Om)),Om}var Am={},M3;function aY(){return M3||(M3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),u=t(Bo),o=t(Bl),a=t(qo),n=t(Wd),l=t(Or),f=t($e),s=Nl,c=p(Ri()),d=Ju();function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function m(b){var x=(0,s.useTheme)(),_=(0,d.useIconStore)(),w=(0,d.useLocalizationStore)().pagination,k=function(B){b.onPageChange(B,0)},T=function(B){b.onPageChange(B,b.page-1)},M=function(B){b.onPageChange(B,b.page+1)},S=function(B){b.onPageChange(B,Math.max(0,Math.ceil(b.count/b.rowsPerPage)-1))},C=b.count,P=b.page,D=b.rowsPerPage,O=b.showFirstLastPageButtons,R=c.parseFirstLastPageButtons(O,x.direction==="rtl"),F=R.first,A=R.last;return f.default.createElement(u.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:b.forwardedRef},F&&f.default.createElement(a.default,{title:w.firstTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:k,disabled:P===0,"aria-label":w.firstAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(_.LastPage,null):f.default.createElement(_.FirstPage,null)))),f.default.createElement(a.default,{title:w.previousTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:T,disabled:P===0,"aria-label":w.previousAriaLabel},x.direction==="rtl"?f.default.createElement(_.NextPage,null):f.default.createElement(_.PreviousPage,null)))),f.default.createElement(n.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},w.labelDisplayedRows.replace("{from}",b.count===0?0:b.page*b.rowsPerPage+1).replace("{to}",Math.min((b.page+1)*b.rowsPerPage,b.count)).replace("{count}",b.count)),f.default.createElement(a.default,{title:w.nextTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:M,disabled:P>=Math.ceil(C/D)-1,"aria-label":w.nextAriaLabel},x.direction==="rtl"?f.default.createElement(_.PreviousPage,null):f.default.createElement(_.NextPage,null)))),A&&f.default.createElement(a.default,{title:w.lastTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:S,disabled:P>=Math.ceil(C/D)-1,"aria-label":w.lastAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(_.FirstPage,null):f.default.createElement(_.LastPage,null)))))}m.propTypes={onPageChange:l.default.func,page:l.default.number,count:l.default.number,rowsPerPage:l.default.number,classes:l.default.object,localization:l.default.object,showFirstLastPageButtons:l.default.oneOfType([l.default.object,l.default.bool]),forwardedRef:l.default.func},m.defaultProps={showFirstLastPageButtons:!0};var y=f.default.forwardRef(function(x,_){return f.default.createElement(m,(0,i.default)({},x,{forwardedRef:_}))}),v=y,g=v;e.default=g}(Am)),Am}var Pm={},S3;function iY(){return S3||(S3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var i=t(Ai),u=t(Ur()),o=t($l()),a=t(gi),n=t(Jr()),l=p($e),f=qd(),s=p(Ri()),c=Qa(),d=t(Or);function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function m(b,x){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(b);x&&(w=w.filter(function(k){return Object.getOwnPropertyDescriptor(b,k).enumerable})),_.push.apply(_,w)}return _}function y(b){for(var x=1;x1&&arguments[1]!==void 0?arguments[1]:1,R=s.elementSize(y(y({},_),{},{options:k})),F=O*s.baseIconSize(y(y({},_),{},{options:k}));return l.createElement(a.default,{key:"placeholder.".concat(D),size:R,padding:"none",style:{width:F,padding:"0px 5px",boxSizing:"border-box"}})}var M=[],S=[],C=0;if(k.selection&&M.push(T(C++)),_.actions&&_.actions.filter(function(D){return D.position==="row"||typeof D=="function"}).length>0){var P=s.rowActions(_).length;k.actionsColumnIndex===-1?S.push(T(C++,P)):k.actionsColumnIndex>=0&&M.push(T(C++,P))}return _.detailPanel&&k.showDetailPanelIcon&&(k.detailPanelColumnAlignment==="right"?S.push(T(C++)):M.push(T(C++))),_.isTreeData&&M.push(T(C++)),l.createElement(i.default,null,M,(0,o.default)(x).sort(function(D,O){return D.tableData.columnOrder-O.tableData.columnOrder}).map(function(D,O){var R=w({index:D.tableData.columnOrder,column:D,columns:x}),F=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",A="",z=(0,f.getStyle)({columnDef:D,scrollWidth:0});return(0,u.default)(R)==="object"&&R!==null?(A=R.value,z=R.style):A=R,l.createElement(a.default,{key:O,style:z,align:F},A)}),S)}v.propTypes={columns:d.default.array,renderSummaryRow:d.default.func};var g=v;e.default=g}(Pm)),Pm}var Dm={};const oY=qn(V9);var C3;function lY(){return C3||(C3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=M,e.default=void 0;var i=t(hr()),u=t(Jr()),o=t(Bo),a=t(ao()),n=t(zo),l=t(U4),f=t(Bl),s=t(oY),c=t(_y),d=t(Rd),h=t(V4),p=t(qo),m=t(Wd),y=Nl,v=t(Or),g=_($e),b=Qa();function x(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,F=new WeakMap;return(x=function(z){return z?F:R})(O)}function _(O,R){if(O&&O.__esModule)return O;if(O===null||r(O)!=="object"&&typeof O!="function")return{default:O};var F=x(R);if(F&&F.has(O))return F.get(O);var A={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var $=z?Object.getOwnPropertyDescriptor(O,B):null;$&&($.get||$.set)?Object.defineProperty(A,B,$):A[B]=O[B]}return A.default=O,F&&F.set(O,A),A}function w(O,R){var F=Object.keys(O);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(O);R&&(A=A.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),F.push.apply(F,A)}return F}function k(O){for(var R=1;ROe.tableData.columnOrder?1:-1}),pe=P(O.data()),Te=pe.map(function(Se){return se.reduce(function(Oe,Me){var ce;return typeof Me.customExport=="function"?ce=Me.customExport(Se):ce=O.getFieldValue(Se,Me),Oe[Me.field]=ce,Oe},{})});return[se,Te]};function Y(){return te.search?g.default.createElement(d.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:S.searchField,value:B,onChange:function(se){return U(se.target.value)},placeholder:F.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:g.default.createElement(l.default,{position:"start"},g.default.createElement(p.default,{title:F.searchTooltip},g.default.createElement(V.Search,{fontSize:"small"}))),endAdornment:g.default.createElement(l.default,{position:"end"},g.default.createElement(f.default,{disabled:!B,onClick:function(){return U("")},"aria-label":F.clearSearchAriaLabel},g.default.createElement(V.ResetSearch,{fontSize:"small","aria-label":"clear"}))),style:te.searchFieldStyle,inputProps:{"aria-label":F.searchAriaLabel}}}):null}function Z(le){var se=le?"toolbarOnSelect":"toolbar";return g.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!le&&g.default.createElement("span",null,g.default.createElement(p.default,{title:F.showColumnsTitle},g.default.createElement(f.default,{color:"inherit",onClick:function(Te){return H(Te.currentTarget)},"aria-label":F.showColumnsAriaLabel},g.default.createElement(V.ViewColumn,null))),g.default.createElement(s.default,{anchorEl:q,open:!!q,onClose:function(){return H(null)}},g.default.createElement(c.default,{key:"text",disabled:!0,style:{opacity:1,fontWeight:600,fontSize:12}},F.addRemoveColumns),O.columns.map(function(pe){var Te=pe.hiddenByColumnsButton!==void 0?pe.hiddenByColumnsButton:O.columnsHiddenInColumnsButton;return Te?null:g.default.createElement("li",{key:pe.tableData.id},g.default.createElement(c.default,{sx:S.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(pe.tableData.id),disabled:pe.removable===!1},g.default.createElement(n.default,{checked:!pe.hidden,id:"column-toggle-".concat(pe.tableData.id),onChange:function(){return O.onColumnsChanged(pe,!pe.hidden)}}),g.default.createElement("span",null,pe.title)))}))),te.exportMenu.length>0&&g.default.createElement("span",null,g.default.createElement(p.default,{title:F.exportTitle},g.default.createElement(f.default,{color:"inherit",onClick:function(Te){return W(Te.currentTarget)},"aria-label":F.exportAriaLabel},g.default.createElement(V.Export,null))),g.default.createElement(s.default,{anchorEl:E,open:!!E,onClose:function(){return W(null)}},te.exportMenu.map(function(pe,Te){var Se=Q(),Oe=(0,a.default)(Se,2),Me=Oe[0],ce=Oe[1];return g.default.createElement(c.default,{key:"".concat(pe.label).concat(Te),onClick:function(){pe.exportFunc(Me,ce,{searchedData:O.dataManager.searchedData,filteredData:O.dataManager.filteredData,groupedData:O.dataManager.groupedData,selectedData:ee}),W(null)}},pe.label)}))),g.default.createElement("span",null,g.default.createElement(O.components.Actions,{actions:O.actions&&O.actions.filter(function(pe){return pe.position===se}),data:le?ee:void 0,components:O.components})))}function X(){return g.default.createElement(o.default,{sx:S.actions},g.default.createElement("div",null,Z(ee.length>0)))}function re(le){var se=typeof le=="string"?g.default.createElement(m.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},le):le;return g.default.createElement(o.default,{sx:S.title},se)}var ie=te.showTextRowsSelected&&ee.length>0?typeof F.nRowsSelected=="function"?F.nRowsSelected(ee.length):F.nRowsSelected.replace("{0}",ee.length):te.showTitle?O.title:null;return g.default.createElement(h.default,{ref:O.forwardedRef,className:O.className,sx:k(k({},S.root),te.showTextRowsSelected&&ee.length>0?S.highlight(R):{})},ie&&re(ie),te.searchFieldAlignment==="left"&&Y(),te.toolbarButtonAlignment==="left"&&X(),g.default.createElement(o.default,{sx:S.spacer}),te.searchFieldAlignment==="right"&&Y(),te.toolbarButtonAlignment==="right"&&X())}M.defaultProps={actions:[],columns:[],columnsHiddenInColumnsButton:!1,searchText:"",originalData:[],title:"No Title!"},M.propTypes={actions:v.default.array,className:v.default.string,columns:v.default.array,components:v.default.object.isRequired,getFieldValue:v.default.func.isRequired,onColumnsChanged:v.default.func.isRequired,dataManager:v.default.object.isRequired,searchText:v.default.string,onSearchChanged:v.default.func.isRequired,originalData:v.default.array,title:v.default.oneOfType([v.default.element,v.default.string]),renderData:v.default.array,data:v.default.oneOfType([v.default.array,v.default.func]),exportAllData:v.default.bool,exportMenu:v.default.arrayOf(v.default.shape({name:v.default.string,handler:v.default.func})),searchAutoFocus:v.default.bool,classes:v.default.object};var S={root:{paddingRight:1,paddingLeft:2},highlight:function(R){return R.palette.mode==="light"?{color:R.palette.secondary.main,backgroundColor:(0,y.lighten)(R.palette.secondary.light,.85)}:{color:R.palette.text.primary,backgroundColor:R.palette.secondary.dark}},spacer:{flex:"1 1 10%"},actions:{color:"text.secondary"},title:{overflow:"hidden"},searchField:{minWidth:150,paddingLeft:2},formControlLabel:{px:1}},C=g.default.forwardRef(function(R,F){return g.default.createElement(M,(0,i.default)({},R,{forwardedRef:F}))});function P(O){for(var R=O;Array.isArray((F=R)===null||F===void 0||(A=F[0])===null||A===void 0?void 0:A.data);){var F,A;R=R.map(function(z){return z.groups.length!==0?z.groups:z.data}).flat()}return R}var D=g.default.memo(C);e.default=D}(Dm)),Dm}var O3;function Kd(){return O3||(O3=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MTableCustomIcon",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"MTableScrollbar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"MTableSummaryRow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return r.default}});var r=t(sE()),i=t(KE()),u=t(eR()),o=t(nR()),a=t(lR()),n=t(yz()),l=t(bz()),f=t(Tz()),s=t(kz()),c=t(Oz()),d=t(Dz()),h=t(Ez()),p=t(Rz()),m=t(H4()),y=t(KV()),v=t(JV()),g=t(tY()),b=t(rY()),x=t(aY()),_=t(iY()),w=t(lY())}(cg)),cg}var A3;function u6(){return A3||(A3=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(lE),i=Kd(),u={Action:i.MTableAction,Actions:i.MTableActions,Body:i.MTableBody,Cell:i.MTableCell,Container:i.Container,EditCell:i.MTableEditCell,EditField:i.MTableEditField,EditRow:i.MTableEditRow,FilterRow:i.MTableFilterRow,Groupbar:i.MTableGroupbar,GroupRow:i.MTableGroupRow,Header:i.MTableHeader,OverlayLoading:i.OverlayLoading,OverlayError:i.OverlayError,Pagination:r.default,Row:i.MTableBodyRow,SummaryRow:i.MTableSummaryRow,Toolbar:i.MTableToolbar};e.default=u}(ug)),ug}var P3;function sY(){if(P3)return gs;P3=1;var e=vn;Object.defineProperty(gs,"__esModule",{value:!0}),gs.defaultProps=void 0;var t=e(u6()),r=e(MS()),i=e(TS()),u=e(kS()),o={actions:[],classes:{},columns:[],components:t.default,data:[],icons:r.default,isLoading:!1,title:"Table Title",options:u.default,localization:i.default,style:{}};return gs.defaultProps=o,gs}var Ns={},js={},D3;function w1(){if(D3)return js;D3=1,Object.defineProperty(js,"__esModule",{value:!0}),js.ALL_COLUMNS=void 0;var e="all_columns";return js.ALL_COLUMNS=e,js}var E3;function uY(){if(E3)return Ns;E3=1;var e=vn;Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.propTypes=void 0;var t=e(Or),r=w1(),i=t.default.shape({current:t.default.element}),u=t.default.shape({classes:t.default.object,innerRef:i}),o={actions:t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]).isRequired,isFreeAction:t.default.bool,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"]),tooltip:t.default.string,onClick:t.default.func.isRequired,onMouseEnter:t.default.func,onMouseLeave:t.default.func,iconProps:t.default.object,disabled:t.default.bool,hidden:t.default.bool}),t.default.shape({action:t.default.func,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"])})])),renderSummaryRow:t.default.func,columns:t.default.arrayOf(t.default.shape({cellStyle:t.default.oneOfType([t.default.object,t.default.func]),currencySetting:t.default.shape({locale:t.default.string,currencyCode:t.default.string,minimumFractionDigits:t.default.number,maximumFractionDigits:t.default.number}),ariaLabel:t.default.string,ariaSortAsc:t.default.oneOf(["ascending","descending","none","other"]),ariaSortDesc:t.default.oneOf(["ascending","descending","none","other"]),draggable:t.default.bool,customFilterAndSearch:t.default.func,customSort:t.default.func,customExport:t.default.func,defaultFilter:t.default.any,defaultSort:t.default.oneOf(["asc","desc"]),editComponent:t.default.oneOfType([t.default.element,t.default.func]),emptyValue:t.default.oneOfType([t.default.string,t.default.node,t.default.func]),export:t.default.bool,field:t.default.oneOfType([t.default.string,t.default.arrayOf(t.default.string)]),filtering:t.default.bool,filterCellStyle:t.default.object,filterPlaceholder:t.default.string,filterComponent:t.default.oneOfType([t.default.element,t.default.func]),grouping:t.default.bool,headerStyle:t.default.object,hidden:t.default.bool,hideFilterIcon:t.default.bool,initialEditValue:t.default.any,lookup:t.default.object,editable:t.default.oneOfType([t.default.func,t.default.oneOf(["always","onUpdate","onAdd","never"])]),removable:t.default.bool,render:t.default.func,searchable:t.default.bool,sorting:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),type:t.default.oneOf(["string","boolean","numeric","date","datetime","time","currency"])})).isRequired,components:t.default.shape({Action:t.default.oneOfType([t.default.element,t.default.func,u]),Actions:t.default.oneOfType([t.default.element,t.default.func,u]),Body:t.default.oneOfType([t.default.element,t.default.func,u]),Cell:t.default.oneOfType([t.default.element,t.default.func,u]),Container:t.default.oneOfType([t.default.element,t.default.func,u]),EditField:t.default.oneOfType([t.default.element,t.default.func,u]),EditRow:t.default.oneOfType([t.default.element,t.default.func,u]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,u]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,u]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,u]),Header:t.default.oneOfType([t.default.element,t.default.func,u]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,u]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,u]),Pagination:t.default.oneOfType([t.default.element,t.default.func,u]),Row:t.default.oneOfType([t.default.element,t.default.func,u]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,u])}),data:t.default.oneOfType([t.default.arrayOf(t.default.object),t.default.func]).isRequired,editable:t.default.shape({isEditable:t.default.func,isBulkEditable:t.default.func,isDeletable:t.default.func,onRowAdd:t.default.func,onRowUpdate:t.default.func,onRowDelete:t.default.func,onRowAddCancelled:t.default.func,onRowUpdateCancelled:t.default.func,isEditHidden:t.default.func,isDeleteHidden:t.default.func}),detailPanel:t.default.oneOfType([t.default.func,t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({disabled:t.default.bool,icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]),openIcon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]),tooltip:t.default.string,render:t.default.func.isRequired})]))]),icons:t.default.shape({Add:t.default.oneOfType([t.default.element,t.default.func,i]),Check:t.default.oneOfType([t.default.element,t.default.func,i]),Clear:t.default.oneOfType([t.default.element,t.default.func,i]),Delete:t.default.oneOfType([t.default.element,t.default.func,i]),DetailPanel:t.default.oneOfType([t.default.element,t.default.func,i]),Edit:t.default.oneOfType([t.default.element,t.default.func,i]),Export:t.default.oneOfType([t.default.element,t.default.func,i]),Filter:t.default.oneOfType([t.default.element,t.default.func,i]),FirstPage:t.default.oneOfType([t.default.element,t.default.func,i]),LastPage:t.default.oneOfType([t.default.element,t.default.func,i]),NextPage:t.default.oneOfType([t.default.element,t.default.func,i]),PreviousPage:t.default.oneOfType([t.default.element,t.default.func,i]),Refresh:t.default.oneOfType([t.default.element,t.default.func,i]),ResetSearch:t.default.oneOfType([t.default.element,t.default.func,i]),Search:t.default.oneOfType([t.default.element,t.default.func,i]),SortArrow:t.default.oneOfType([t.default.element,t.default.func,i]),ThirdStateCheck:t.default.oneOfType([t.default.element,t.default.func,i]),ViewColumn:t.default.oneOfType([t.default.element,t.default.func,i])}),isLoading:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),options:t.default.shape({actionsCellStyle:t.default.object,editCellStyle:t.default.object,idSynonym:t.default.string,detailPanelColumnStyle:t.default.object,actionsColumnIndex:t.default.number,addRowPosition:t.default.oneOf(["first","last"]),columnsButton:t.default.bool,defaultExpanded:t.default.oneOfType([t.default.bool,t.default.func]),debounceInterval:t.default.number,detailPanelType:t.default.oneOf(["single","multiple"]),doubleHorizontalScroll:t.default.bool,emptyRowsWhenPaging:t.default.bool,exportAllData:t.default.bool,exportMenu:t.default.arrayOf(t.default.shape({label:t.default.string,exportFunc:t.default.func})),filtering:t.default.bool,filterCellStyle:t.default.object,filterRowStyle:t.default.object,header:t.default.bool,headerSelectionProps:t.default.object,headerStyle:t.default.object,hideFilterIcons:t.default.bool,initialPage:t.default.number,maxBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),minBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),loadingType:t.default.oneOf(["overlay","linear"]),overflowY:t.default.oneOf(["visible","hidden","scroll","auto","initial","inherit","overlay"]),padding:t.default.oneOf(["normal","dense"]),paging:t.default.bool,pageSize:t.default.number,pageSizeOptions:t.default.arrayOf(t.default.number),paginationType:t.default.oneOf(["normal","stepped"]),paginationPosition:t.default.oneOf(["bottom","top","both"]),persistentGroupingsId:t.default.string,rowStyle:t.default.oneOfType([t.default.object,t.default.func]),search:t.default.bool,searchText:t.default.string,searchDebounceDelay:t.default.number,toolbarButtonAlignment:t.default.oneOf(["left","right"]),searchFieldAlignment:t.default.oneOf(["left","right"]),searchFieldStyle:t.default.object,searchAutoFocus:t.default.bool,searchFieldVariant:t.default.oneOf(["standard","filled","outlined"]),selection:t.default.bool,selectionProps:t.default.oneOfType([t.default.object,t.default.func]),showEmptyDataSourceMessage:t.default.bool,showFirstLastPageButtons:t.default.oneOfType([t.default.object,t.default.bool]),showSelectAllCheckbox:t.default.bool,showSelectGroupCheckbox:t.default.bool,showTitle:t.default.bool,showTextRowsSelected:t.default.bool,sorting:t.default.bool,defaultOrderByCollection:t.default.arrayOf(t.default.shape({orderBy:t.default.number,orderDirection:t.default.string,sortOrder:t.default.number,orderIndex:t.default.number})),maxColumnSort:t.default.oneOf([0,1,2,3,4,5,6,7,8,9,10,r.ALL_COLUMNS]),showColumnSortOrder:t.default.bool,sortOrderIndicatorStyle:t.default.object,keepSortDirectionOnColumnSwitch:t.default.bool,clientSorting:t.default.bool,toolbar:t.default.bool,thirdSortClick:t.default.bool,numberOfPagesAround:t.default.oneOf([1,2,3,4,5,6,7,8,9,10])}),localization:t.default.shape({grouping:t.default.shape({groupedBy:t.default.string,placeholder:t.default.string}),pagination:t.default.object,toolbar:t.default.object,header:t.default.object,body:t.default.object}),initialFormData:t.default.object,onSearchChange:t.default.func,onFilterChange:t.default.func,onColumnDragged:t.default.func,onColumnResized:t.default.func,onGroupRemoved:t.default.func,onGroupChange:t.default.func,onSelectionChange:t.default.func,onRowsPerPageChange:t.default.func,onPageChange:t.default.func,onChangeColumnHidden:t.default.func,onOrderChange:t.default.func,onOrderCollectionChange:t.default.func,onRowClick:t.default.func,onRowDoubleClick:t.default.func,onTreeExpandChange:t.default.func,onQueryChange:t.default.func,onBulkEditOpen:t.default.func,tableRef:t.default.any,style:t.default.object,page:t.default.number,totalCount:t.default.number};return Ns.propTypes=o,Ns}var Em={};const cY=qn(Y9),fY=qn(G9),dY=qn(X9);var Rm,R3;function hY(){if(R3)return Rm;R3=1;function e(t,r,i){var u,o,a,n,l;r==null&&(r=100);function f(){var c=Date.now()-n;c=0?u=setTimeout(f,r-c):(u=null,i||(l=t.apply(a,o),a=o=null))}var s=function(){a=this,o=arguments,n=Date.now();var c=i&&!u;return u||(u=setTimeout(f,r)),c&&(l=t.apply(a,o),a=o=null),l};return s.clear=function(){u&&(clearTimeout(u),u=null)},s.flush=function(){u&&(l=t.apply(a,o),a=o=null,clearTimeout(u),u=null)},s}return e.debounce=e,Rm=e,Rm}var Lm={};const pY=qn(CL);var Im={},$s={},Xc={},L3;function c6(){if(L3)return Xc;L3=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return Xc}var ol={},Bs={},zs={},I3;function gY(){if(I3)return zs;I3=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return zs.default=e,zs}var F3;function Jd(){if(F3)return Bs;F3=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=void 0;var e=t(gY());function t(u){return u&&u.__esModule?u:{default:u}}function r(u){return typeof u=="string"&&e.default.test(u)}var i=r;return Bs.default=i,Bs}var N3;function Qd(){if(N3)return ol;N3=1,Object.defineProperty(ol,"__esModule",{value:!0}),ol.default=void 0,ol.unsafeStringify=i;var e=t(Jd());function t(a){return a&&a.__esModule?a:{default:a}}const r=[];for(let a=0;a<256;++a)r.push((a+256).toString(16).slice(1));function i(a,n=0){return r[a[n+0]]+r[a[n+1]]+r[a[n+2]]+r[a[n+3]]+"-"+r[a[n+4]]+r[a[n+5]]+"-"+r[a[n+6]]+r[a[n+7]]+"-"+r[a[n+8]]+r[a[n+9]]+"-"+r[a[n+10]]+r[a[n+11]]+r[a[n+12]]+r[a[n+13]]+r[a[n+14]]+r[a[n+15]]}function u(a,n=0){const l=i(a,n);if(!(0,e.default)(l))throw TypeError("Stringified UUID is invalid");return l}var o=u;return ol.default=o,ol}var j3;function mY(){if(j3)return $s;j3=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.default=void 0;var e=r(c6()),t=Qd();function r(f){return f&&f.__esModule?f:{default:f}}let i,u,o=0,a=0;function n(f,s,c){let d=s&&c||0;const h=s||new Array(16);f=f||{};let p=f.node||i,m=f.clockseq!==void 0?f.clockseq:u;if(p==null||m==null){const _=f.random||(f.rng||e.default)();p==null&&(p=i=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),m==null&&(m=u=(_[6]<<8|_[7])&16383)}let y=f.msecs!==void 0?f.msecs:Date.now(),v=f.nsecs!==void 0?f.nsecs:a+1;const g=y-o+(v-a)/1e4;if(g<0&&f.clockseq===void 0&&(m=m+1&16383),(g<0||y>o)&&f.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=y,a=v,u=m,y+=122192928e5;const b=((y&268435455)*1e4+v)%4294967296;h[d++]=b>>>24&255,h[d++]=b>>>16&255,h[d++]=b>>>8&255,h[d++]=b&255;const x=y/4294967296*1e4&268435455;h[d++]=x>>>8&255,h[d++]=x&255,h[d++]=x>>>24&15|16,h[d++]=x>>>16&255,h[d++]=m>>>8|128,h[d++]=m&255;for(let _=0;_<6;++_)h[d+_]=p[_];return s||(0,t.unsafeStringify)(h)}var l=n;return $s.default=l,$s}var qs={},Wi={},Ws={},$3;function f6(){if($3)return Ws;$3=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var e=t(Jd());function t(u){return u&&u.__esModule?u:{default:u}}function r(u){if(!(0,e.default)(u))throw TypeError("Invalid UUID");let o;const a=new Uint8Array(16);return a[0]=(o=parseInt(u.slice(0,8),16))>>>24,a[1]=o>>>16&255,a[2]=o>>>8&255,a[3]=o&255,a[4]=(o=parseInt(u.slice(9,13),16))>>>8,a[5]=o&255,a[6]=(o=parseInt(u.slice(14,18),16))>>>8,a[7]=o&255,a[8]=(o=parseInt(u.slice(19,23),16))>>>8,a[9]=o&255,a[10]=(o=parseInt(u.slice(24,36),16))/1099511627776&255,a[11]=o/4294967296&255,a[12]=o>>>24&255,a[13]=o>>>16&255,a[14]=o>>>8&255,a[15]=o&255,a}var i=r;return Ws.default=i,Ws}var B3;function d6(){if(B3)return Wi;B3=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.URL=Wi.DNS=void 0,Wi.default=a;var e=Qd(),t=r(f6());function r(n){return n&&n.__esModule?n:{default:n}}function i(n){n=unescape(encodeURIComponent(n));const l=[];for(let f=0;f>5]>>>v%32&255,b=parseInt(y.charAt(g>>>4&15)+y.charAt(g&15),16);p.push(b)}return p}function r(h){return(h+64>>>9<<4)+14+1}function i(h,p){h[p>>5]|=128<>5]|=(h[y/8]&255)<>16)+(p>>16)+(m>>16)<<16|m&65535}function a(h,p){return h<>>32-p}function n(h,p,m,y,v,g){return o(a(o(o(p,h),o(y,g)),v),m)}function l(h,p,m,y,v,g,b){return n(p&m|~p&y,h,p,v,g,b)}function f(h,p,m,y,v,g,b){return n(p&y|m&~y,h,p,v,g,b)}function s(h,p,m,y,v,g,b){return n(p^m^y,h,p,v,g,b)}function c(h,p,m,y,v,g,b){return n(m^(p|~y),h,p,v,g,b)}var d=e;return Us.default=d,Us}var q3;function yY(){if(q3)return qs;q3=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=void 0;var e=r(d6()),t=r(vY());function r(o){return o&&o.__esModule?o:{default:o}}var u=(0,e.default)("v3",48,t.default);return qs.default=u,qs}var Hs={},Vs={},W3;function bY(){if(W3)return Vs;W3=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Vs.default=t,Vs}var U3;function xY(){if(U3)return Hs;U3=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var e=i(bY()),t=i(c6()),r=Qd();function i(a){return a&&a.__esModule?a:{default:a}}function u(a,n,l){if(e.default.randomUUID&&!n&&!a)return e.default.randomUUID();a=a||{};const f=a.random||(a.rng||t.default)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,n){l=l||0;for(let s=0;s<16;++s)n[l+s]=f[s];return n}return(0,r.unsafeStringify)(f)}var o=u;return Hs.default=o,Hs}var Ys={},Gs={},H3;function wY(){if(H3)return Gs;H3=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.default=void 0;function e(u,o,a,n){switch(u){case 0:return o&a^~o&n;case 1:return o^a^n;case 2:return o&a^o&n^a&n;case 3:return o^a^n}}function t(u,o){return u<>>32-o}function r(u){const o=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof u=="string"){const s=unescape(encodeURIComponent(u));u=[];for(let c=0;c>>0;y=m,m=p,p=t(h,30)>>>0,h=d,d=b}a[0]=a[0]+d>>>0,a[1]=a[1]+h>>>0,a[2]=a[2]+p>>>0,a[3]=a[3]+m>>>0,a[4]=a[4]+y>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,a[0]&255,a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,a[1]&255,a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,a[2]&255,a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,a[3]&255,a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,a[4]&255]}var i=r;return Gs.default=i,Gs}var V3;function _Y(){if(V3)return Ys;V3=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.default=void 0;var e=r(d6()),t=r(wY());function r(o){return o&&o.__esModule?o:{default:o}}var u=(0,e.default)("v5",80,t.default);return Ys.default=u,Ys}var Xs={},Y3;function TY(){if(Y3)return Xs;Y3=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Xs.default=e,Xs}var Zs={},G3;function kY(){if(G3)return Zs;G3=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.default=void 0;var e=t(Jd());function t(u){return u&&u.__esModule?u:{default:u}}function r(u){if(!(0,e.default)(u))throw TypeError("Invalid UUID");return parseInt(u.slice(14,15),16)}var i=r;return Zs.default=i,Zs}var X3;function MY(){return X3||(X3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return a.default}});var t=s(mY()),r=s(yY()),i=s(xY()),u=s(_Y()),o=s(TY()),a=s(kY()),n=s(Jd()),l=s(Qd()),f=s(f6());function s(c){return c&&c.__esModule?c:{default:c}}}(Im)),Im}var Z3;function SY(){return Z3||(Z3=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t($l()),i=t(Dd()),u=t(Ed()),o=t(Jr()),a=t(pY),n=MY(),l=qd(),f=Ri(),s=w1();function c(v,g){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);g&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,x)}return b}function d(v){for(var g=1;g=v.length?{done:!0}:{done:!1,value:v[x++]}},e:function(S){throw S},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,k=!1,T;return{s:function(){b=b.call(v)},n:function(){var S=b.next();return w=S.done,S},e:function(S){k=!0,T=S},f:function(){try{!w&&b.return!=null&&b.return()}finally{if(k)throw T}}}}function p(v,g){if(v){if(typeof v=="string")return m(v,g);var b=Object.prototype.toString.call(v).slice(8,-1);if(b==="Object"&&v.constructor&&(b=v.constructor.name),b==="Map"||b==="Set")return Array.from(v);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return m(v,g)}}function m(v,g){(g==null||g>v.length)&&(g=v.length);for(var b=0,x=new Array(g);b0?T(S.groups):S.data.forEach(function(C){C.tableData.checked!==b&&(C.tableData.checked=C.tableData.disabled?!1:b,g.selectedCount=g.selectedCount+(b?1:-1))})})};k([_])}),(0,o.default)(this,"getOrderByCollection",function(){return g.orderByCollection.filter(function(b){return b.sortOrder})}),(0,o.default)(this,"sortOrderCollection",function(b){return b.sort(function(x,_){return x.sortOrder?_.sortOrder?x.sortOrder-_.sortOrder:-1:1})}),(0,o.default)(this,"startCellEditable",function(b,x){b.tableData.editCellList=[].concat((0,r.default)(b.tableData.editCellList||[]),[x])}),(0,o.default)(this,"finishCellEditable",function(b,x){if(b.tableData.editCellList){var _=b.tableData.editCellList.findIndex(function(w){return w.tableData.id.toString()===x.tableData.id.toString()});_!==-1&&b.tableData.editCellList.splice(_,1)}}),(0,o.default)(this,"clearBulkEditChangedRows",function(){g.bulkEditChangedRows={}}),(0,o.default)(this,"onBulkEditRowChanged",function(b,x){g.bulkEditChangedRows[b.tableData.id]={oldData:b,newData:x}}),(0,o.default)(this,"expandTreeForNodes",function(b){b.forEach(function(x){for(var _=x;g.parentFunc(_,g.data);){var w=g.parentFunc(_,g.data);w&&(w.tableData.isTreeExpanded=!0),_=w}})}),(0,o.default)(this,"findDataByPath",function(b,x){if(g.isDataType("tree")){var _=x.reduce(function(T,M){return T&&T.tableData&&T.tableData.childRows&&T.tableData.childRows.find(function(S){return S&&S.tableData.uuid===M})},{tableData:{childRows:b}});return _}else{var w={groups:b},k=x.reduce(function(T,M){return T.groups.length>0?T.groups[M]:T.data?T.data[M]||T.data.find(function(S){var C;return((C=S.tableData)===null||C===void 0?void 0:C.uuid)===M}):void 0},w);return k}}),(0,o.default)(this,"getFieldValue",function(b,x){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,w=typeof b[x.field]<"u"?b[x.field]:(0,l.selectFromObject)(b,x.field);return x.lookup&&_&&(w=x.lookup[w]),w}),(0,o.default)(this,"getRenderState",function(){return g.filtered===!1&&g.filterData(),g.searched===!1&&g.searchData(),g.grouped===!1&&g.isDataType("group")&&g.groupData(),g.treefied===!1&&g.isDataType("tree")&&g.treefyData(),g.sorted===!1&&g.sortData(),g.paged===!1&&g.pageData(),{columns:g.columns,currentPage:g.currentPage,data:g.sortedData,lastEditingRow:g.lastEditingRow,orderByCollection:g.orderByCollection,maxColumnSort:g.maxColumnSort,originalData:(0,r.default)(g.data),pageSize:g.pageSize,renderData:g.pagedData,searchText:g.searchText,selectedCount:g.selectedCount,treefiedDataLength:g.treefiedDataLength,treeDataMaxLevel:g.treeDataMaxLevel,groupedDataLength:g.groupedDataLength,tableStyleWidth:g.tableStyleWidth}}),(0,o.default)(this,"filterData",function(){g.searched=g.grouped=g.treefied=g.sorted=g.paged=!1,g.filteredData=(0,r.default)(g.data),g.applyFilters&&g.columns.filter(function(b){return b.tableData.filterValue!==void 0}).forEach(function(b){var x=b.lookup,_=b.type,w=b.tableData;b.customFilterAndSearch?g.filteredData=g.filteredData.filter(function(k){return!!b.customFilterAndSearch(w.filterValue,k,b)}):x?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b,!1);return!w.filterValue||w.filterValue.length===0||w.filterValue.indexOf(T!=null&&T.toString())>-1}):_==="numeric"?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T+""===w.filterValue}):_==="boolean"&&w.filterValue?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T&&w.filterValue==="checked"||!T&&w.filterValue==="unchecked"}):["date","datetime"].includes(_)?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b),M=T?new Date(T):null;if(M&&M.toString()!=="Invalid Date"){var S=w.filterValue,C="",P="";return _==="date"?(C=(0,a.default)(M,"MM/dd/yyyy"),P=(0,a.default)(S,"MM/dd/yyyy")):_==="datetime"&&(C=(0,a.default)(M,"MM/dd/yyyy - HH:mm"),P=(0,a.default)(S,"MM/dd/yyyy - HH:mm")),C===P}return!0}):_==="time"?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b),M=T||null;if(M){var S=w.filterValue,C=(0,a.default)(S,"HH:mm");return M===C}return!0}):g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T!=null&&T.toString().toUpperCase().includes(w.filterValue.toUpperCase())})}),g.filtered=!0}),(0,o.default)(this,"searchData",function(){if(g.grouped=g.treefied=g.sorted=g.paged=!1,g.searchedData=(0,r.default)(g.filteredData),g.searchText&&g.applySearch){var b=g.searchText.trim();g.searchedData=g.searchedData.filter(function(x){return g.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(b,x,_);if(_.field){var w=g.getFieldValue(x,_);if(w)return w.toString().toUpperCase().includes(b.toUpperCase())}return!1})})}g.searched=!0}),(0,o.default)(this,"clearCriteria",function(){g.changeOrder(-1,""),g.changeSearchText("");var b=h(g.columns),x;try{for(b.s();!(x=b.n()).done;){var _=x.value;g.changeFilterValue(_.tableData.id,"")}}catch(w){b.e(w)}finally{b.f()}g.changeSearchText(""),g.changePaging(0)})}return(0,u.default)(v,[{key:"setData",value:function(b,x){var _=this;this.selectedCount=0;var w={};this.data.length!==0&&this.data[0][x]!==void 0&&(w=this.data.reduce(function(k,T){return k[T.tableData.id]=T.tableData,k},{})),this.data=b.map(function(k,T){var M=w[k[x]]||{},S=d(d({index:T,id:k[x]||T,uuid:k.uuid||(0,n.v4)()},M),k.tableData);S.checked&&_.selectedCount++;var C=d(d({},k),{},{tableData:S});return _.lastDetailPanelRow&&_.lastDetailPanelRow.tableData===M&&(_.lastDetailPanelRow=C),_.lastEditingRow&&_.lastEditingRow.tableData===M&&(_.lastEditingRow=C),C}),this.filtered=!1}},{key:"setTableWidth",value:function(b){this.tableWidth=b}},{key:"setColumns",value:function(b){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=0,k=[];this.columns=b.map(function(S,C){var P,D=(0,f.widthToNumber)(S.width),O=typeof S.width=="number"?S.width+"px":S.width;O&&(isNaN(D)?k.push(O):w+=D);var R=x.find(function(z){var B=z.id;return B===C}),F=(P=_[S.field])!==null&&P!==void 0?P:{},A=d(d(d(d({columnOrder:C,filterValue:S.defaultFilter,groupOrder:S.defaultGroupOrder,groupSort:S.defaultGroupSort||"asc",width:O,initialWidth:O,widthPx:isNaN(D)?void 0:D,additionalWidth:0},F),R?R.tableData:{}),S.tableData),{},{id:C});return S.tableData=A,S});var T=this.columns.filter(function(S){return S.hidden||S.columnDef&&S.columnDef.tableData&&S.columnDef.tableData.width?!1:S.width===void 0}),M=(w!==0?"".concat(w,"px"):"0px")+(k.length>0?" - "+k.join(" - "):"");T.forEach(function(S){S.tableData.width=S.tableData.initialWidth="calc((100% - ".concat(M,") / ").concat(T.length,")")}),this.tableStyleWidth=this.tableWidth==="full"||T.length>0||k.length>0?"100%":w}},{key:"setDefaultExpanded",value:function(b){this.defaultExpanded=b}},{key:"setClientSorting",value:function(b){this.clientSorting=!!b}},{key:"setMaxColumnSort",value:function(b){var x=this.columns.filter(function(_){return _.sorting!==!1}).length;b===s.ALL_COLUMNS?this.maxColumnSort=x:this.maxColumnSort=Math.min(b,x)}},{key:"setOrderByCollection",value:function(){var b=this.getOrderByCollection(),x=this.columns.map(function(_){var w=_.tableData.id,k=b.find(function(T){return T.orderBy===w});return k?d({},k):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});x=this.sortOrderCollection(x),this.orderByCollection=(0,r.default)(x)}},{key:"setDefaultOrderByCollection",value:function(b){this.defaultOrderByCollection=(0,r.default)(b)}},{key:"getDefaultOrderByCollection",value:function(){return this.defaultOrderByCollection}},{key:"changeApplySearch",value:function(b){this.applySearch=b,this.searched=!1}},{key:"changeApplyFilters",value:function(b){this.applyFilters=b,this.filtered=!1}},{key:"changeApplySort",value:function(b){this.applySort=b,this.sorted=!1}},{key:"changePaging",value:function(b){this.paging=b,this.paged=!1}},{key:"changeCurrentPage",value:function(b){this.currentPage=b,this.paged=!1}},{key:"changePageSize",value:function(b){this.pageSize=b,this.paged=!1}},{key:"changeParentFunc",value:function(b){this.parentFunc=b}},{key:"changeFilterValue",value:function(b,x){var _=this.columns.find(function(w){return w.tableData.id===b});_.tableData.filterValue=x,this.filtered=!1}},{key:"changeRowSelected",value:function(b,x){var _=this,w=this.findDataByPath(this.sortedData,x);w.tableData.checked=b,this.selectedCount=this.selectedCount+(b?1:-1);var k=function T(M){M.tableData.childRows&&M.tableData.childRows.forEach(function(S){S.tableData.checked!==b&&(S.tableData.checked=b,_.selectedCount=_.selectedCount+(b?1:-1)),T(S)})};k(w),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(b,x){var _=this.findDataByPath(this.sortedData,b);(_.tableData.showDetailPanel||"").toString()===x.toString()?_.tableData.showDetailPanel=void 0:_.tableData.showDetailPanel=x,this.detailPanelType==="single"&&this.lastDetailPanelRow&&this.lastDetailPanelRow!==_&&(this.lastDetailPanelRow.tableData.showDetailPanel=void 0),this.lastDetailPanelRow=_}},{key:"changeGroupExpand",value:function(b){var x=this.findDataByPath(this.sortedData,b);x.isExpanded=!x.isExpanded}},{key:"changeSearchText",value:function(b){this.searchText=b,this.searched=!1,this.currentPage=0}},{key:"changeSearchDebounce",value:function(b){this.searchDebounceDelay=b}},{key:"changeRowEditing",value:function(b,x){b?(b.tableData.editing=x,this.lastEditingRow&&this.lastEditingRow!==b&&(this.lastEditingRow.tableData.editing=void 0),x?this.lastEditingRow=b:this.lastEditingRow=void 0):this.lastEditingRow&&(this.lastEditingRow.tableData.editing=void 0,this.lastEditingRow=void 0)}},{key:"changeBulkEditOpen",value:function(b){this.bulkEditOpen=b}},{key:"changeAllSelected",value:function(b,x){var _=0,w=function(S){var C=x instanceof Function?x(S):{disabled:!1};return S.tableData.disabled||C.disabled?!1:b};if(this.isDataType("group")){var k=function M(S){S.forEach(function(C){C.groups.length>0?M(C.groups):C.data.forEach(function(P){P.tableData.checked=w(P),_++})})};k(this.groupedData)}else{var T=function M(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){C.tableData.checked=w(S),M(C)})};this.searchedData.forEach(function(M){M.tableData.checked=w(M),T(M)}),_=this.searchedData.length}this.selectedCount=b?_:0}},{key:"changeColumnOrder",value:function(b,x,_){var w=[],k=this.getOrderByCollection();k.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,w=this.orderByCollection.map(function(T){return T.sortOrder?T.sortOrder-=1:T.orderBy===b&&x&&(T.sortOrder=k.length,T.orderDirection=x),T})):w=this.orderByCollection.map(function(T){return T.orderBy===b&&x?(T.orderDirection=x,T.sortOrder=_||k.length+1):!x&&T.orderBy===b?(T.orderDirection=x,T.sortOrder=void 0):!x&&_-1}).sort(function(W,G){return W.tableData.groupOrder-G.tableData.groupOrder});if(b.destination.droppableId==="groups"&&b.source.droppableId==="groups"){x=Math.min(b.destination.index,b.source.index);var w=Math.max(b.destination.index,b.source.index);if(_=_.slice(x,w+1),b.destination.index-1})&&(x="group"),b===x}},{key:"sort",value:function(b,x,_){if(_==="numeric")return b-x;if(b!==x){if(!b)return-1;if(!x)return 1}return bx?1:0}},{key:"sortList",value:function(b){if(!this.clientSorting)return b;var x=this.orderByCollection.map(function(M){return M.orderBy}),_=new Map;this.columns.forEach(function(M){var S=M.tableData.id;x.includes(S)&&_.set(S,M)});var w=this.sort,k=this.getFieldValue,T=this.orderByCollection;return b.sort(function M(S,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:T,O=D[0],R=O.orderBy,F=O.orderDirection,A=P.get(R),z=0;A.customSort?F==="desc"?z=A.customSort(C,S,"row",F):z=A.customSort(S,C,"row",F):(z=w(k(S,A),k(C,A),A.type),z=F.toLowerCase()==="desc"?z*-1:z);var B=z===0&&D.filter(function($){return $.sortOrder!==void 0}).length!==1;return B?M(S,C,P,D.slice(1)):z})}},{key:"groupData",value:function(){var b=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var x=(0,r.default)(this.searchedData),_=this.columns.filter(function(k){return k.tableData.groupOrder>-1}).sort(function(k,T){return k.tableData.groupOrder-T.tableData.groupOrder}),w=x.reduce(function(k,T){var M=k;return M=_.reduce(function(S,C){var P=T[C.field]||(0,l.selectFromObject)(T,C.field),D;if(S.groupsIndex[P]!==void 0&&(D=S.groups[S.groupsIndex[P]]),!D){var O=[].concat((0,r.default)(S.path||[]),[P]),R=b.findGroupByGroupPath(b.groupedData,O)||{isExpanded:typeof b.defaultExpanded=="boolean"?b.defaultExpanded:!1};D={value:P,groups:[],groupsIndex:{},data:[],isExpanded:R.isExpanded,path:O},S.groups.push(D),S.groupsIndex[P]=S.groups.length-1}return D},M),M.data.push(T),b.groupedDataLength++,k},{groups:[],groupsIndex:{}});this.groupedData=w.groups,this.grouped=!0,this.rootGroupsIndex=w.groupsIndex}},{key:"treefyData",value:function(){var b=this;this.sorted=this.paged=!1,this.data.forEach(function(T){return T.tableData.childRows=null}),this.treefiedData=[],this.treefiedDataLength=0,this.treeDataMaxLevel=0,(this.searchText||this.columns.some(function(T){return T.tableData.filterValue}))&&(this.data.forEach(function(T){T.tableData.isTreeExpanded=!1}),this.expandTreeForNodes(this.searchedData));var x=function T(M){M.tableData.markedForTreeRemove=!1;var S=b.parentFunc(M,b.data);S?(S.tableData.childRows=S.tableData.childRows||[],S.tableData.childRows.includes(M)||(S.tableData.childRows.push(M),b.treefiedDataLength++),T(S),M.tableData.path=[].concat((0,r.default)(S.tableData.path),[M.tableData.uuid]),b.treeDataMaxLevel=Math.max(b.treeDataMaxLevel,M.tableData.path.length)):b.treefiedData.includes(M)||(b.treefiedData.push(M),b.treefiedDataLength++,M.tableData.path=[M.tableData.uuid])};this.data.forEach(function(T){x(T)});var _=function(M){var S=b.treefiedData;M.tableData.path.forEach(function(C){S.tableData&&S.tableData.childRows&&(S=S.tableData.childRows),Array.isArray(S)&&(S=S.find(function(P){return P.tableData.uuid===C}))}),S.tableData.markedForTreeRemove=!0},w=function T(M){M.tableData.childRows&&M.tableData.childRows.forEach(function(S){T(S)}),M.tableData.markedForTreeRemove=!1};this.data.forEach(function(T){if(!b.searchText&&!b.columns.some(function(C){return C.tableData.filterValue})&&T.tableData.isTreeExpanded===void 0){var M=typeof b.defaultExpanded=="boolean"?b.defaultExpanded:b.defaultExpanded(T);T.tableData.isTreeExpanded=M}var S=T.tableData.isTreeExpanded;!S&&b.searchedData.indexOf(T)<0&&_(T)}),this.data.forEach(function(T){b.searchedData.indexOf(T)>-1&&w(T)});var k=function T(M){for(var S=M.length-1;S>=0;S--){var C=M[S];C.tableData.childRows&&T(C.tableData.childRows),C.tableData.markedForTreeRemove&&M.splice(S,1)}};k(this.treefiedData),this.treefiedDataLength=this.treefiedData.length,this.treefied=!0}},{key:"sortData",value:function(){var b=this;if(this.paged=!1,this.isDataType("group")){this.sortedData=(0,r.default)(this.groupedData);var x=this.columns.filter(function(M){return M.tableData.groupOrder>-1}).sort(function(M,S){return M.tableData.groupOrder-S.tableData.groupOrder}),_=function(S,C){return C.customSort?S.sort(C.tableData.groupSort==="desc"?function(P,D){return C.customSort(D.value,P.value,"group",C.tableData.groupSort)}:function(P,D){return C.customSort(P.value,D.value,"group",C.tableData.groupSort)}):S.sort(C.tableData.groupSort==="desc"?function(P,D){return b.sort(D.value,P.value,C.type)}:function(P,D){return b.sort(P.value,D.value,C.type)})};this.sortedData=_(this.sortedData,x[0]);var w=function(S){return S.reduce(function(C,P){return C[P.value]=S.findIndex(function(D){return D.value===P.value}),C},{})},k=function M(S,C){S.forEach(function(P){if(P.groups.length>0){var D=x[C];P.groups=_(P.groups,D),P.groupsIndex=w(P.groups),M(P.groups,C+1)}else b.maxColumnSort>0&&b.getOrderByCollection().length>0?P.data=b.sortList(P.data):b.maxColumnSort>0&&(P.data=P.data.sort(function(O,R){return b.data.findIndex(function(F){return F.tableData.id===O.tableData.id})-b.data.findIndex(function(F){return F.tableData.id===R.tableData.id})}))})};k(this.sortedData,1)}else if(this.isDataType("tree")){if(this.sortedData=(0,r.default)(this.treefiedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0){this.sortedData=this.sortList(this.sortedData);var T=function M(S){S.forEach(function(C){C.tableData.childRows&&(C.tableData.childRows=b.sortList(C.tableData.childRows),M(C.tableData.childRows))})};T(this.sortedData)}}else this.isDataType("normal")&&(this.sortedData=(0,r.default)(this.searchedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0&&this.applySort&&(this.sortedData=this.sortList(this.sortedData)));this.sorted=!0}},{key:"pageData",value:function(){if(this.pagedData=(0,r.default)(this.sortedData),this.paging){var b=this.currentPage*this.pageSize,x=b+this.pageSize;this.pagedData=this.pagedData.slice(b,x)}this.paged=!0}}]),v}();e.default=y}(Lm)),Lm}var K3;function CY(){return K3||(K3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(cY),u=t(fY),o=t(Ai),a=t(hr()),n=t(Bo),l=t($l()),f=t(dY),s=t(Ur()),c=t(ao()),d=t(Dd()),h=t(Ed()),p=t(by()),m=t(yy()),y=t(xy()),v=t(wy()),g=t(Jr()),b=t($e),x=hY(),_=t(_S()),w=C(Ri()),k=x1,T=t(SY()),M=Kd();function S(B){if(typeof WeakMap!="function")return null;var $=new WeakMap,j=new WeakMap;return(S=function(E){return E?j:$})(B)}function C(B,$){if(B&&B.__esModule)return B;if(B===null||r(B)!=="object"&&typeof B!="function")return{default:B};var j=S($);if(j&&j.has(B))return j.get(B);var N={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var W in B)if(W!=="default"&&Object.prototype.hasOwnProperty.call(B,W)){var G=E?Object.getOwnPropertyDescriptor(B,W):null;G&&(G.get||G.set)?Object.defineProperty(N,W,G):N[W]=B[W]}return N.default=B,j&&j.set(B,N),N}function P(B,$){var j=Object.keys(B);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(B);$&&(N=N.filter(function(E){return Object.getOwnPropertyDescriptor(B,E).enumerable})),j.push.apply(j,N)}return j}function D(B){for(var $=1;$"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var F=function(B){(0,m.default)(j,B);var $=O(j);function j(N){var E;(0,d.default)(this,j),E=$.call(this,N),(0,g.default)((0,p.default)(E),"dataManager",new T.default),(0,g.default)((0,p.default)(E),"checkedForFunctions",!1),(0,g.default)((0,p.default)(E),"clearCriteria",function(){E.dataManager.clearCriteria(),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"isRemoteData",function(L){return!Array.isArray((L||E.props).data)}),(0,g.default)((0,p.default)(E),"onAllSelected",function(L){E.dataManager.changeAllSelected(L,E.props.options.selectionProps),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,g.default)((0,p.default)(E),"onGroupSelected",function(L,q){E.dataManager.changeGroupSelected(L,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,g.default)((0,p.default)(E),"onChangeColumnHidden",function(L,q){E.dataManager.changeColumnHidden(L,q),E.setState(E.dataManager.getRenderState(),function(){E.props.onChangeColumnHidden&&E.props.onChangeColumnHidden(L,q)})}),(0,g.default)((0,p.default)(E),"onChangeGroupOrder",function(L){E.dataManager.changeGroupOrder(L.tableData.id),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onChangeOrder",function(L,q,H){E.dataManager.changeColumnOrder(L,q,H);var V=E.dataManager.getOrderByCollection();if(E.isRemoteData()){var te=D({},E.state.query);te.page=0,te.orderBy=E.state.columns.find(function(ee){return ee.tableData.id===L}),te.orderDirection=q,console.warn("Properties orderBy and orderDirection had been deprecated when remote data, please start using orderByCollection instead"),te.orderByCollection=V,E.onQueryChange(te,function(){E.props.onOrderChange&&E.props.onOrderChange(L,q),E.props.onOrderCollectionChange&&E.props.onOrderCollectionChange(V)})}else E.setState(E.dataManager.getRenderState(),function(){E.props.onOrderChange&&E.props.onOrderChange(L,q),E.props.onOrderCollectionChange&&E.props.onOrderCollectionChange(V)})}),(0,g.default)((0,p.default)(E),"onPageChange",function(L,q){if(E.isRemoteData()){var H=D({},E.state.query);H.page=q,E.onQueryChange(H,function(){E.props.onPageChange&&E.props.onPageChange(q,H.pageSize)})}else E.dataManager.changeCurrentPage(q),E.setState(E.dataManager.getRenderState(),function(){E.props.onPageChange&&E.props.onPageChange(q,E.state.pageSize)})}),(0,g.default)((0,p.default)(E),"onRowsPerPageChange",function(L){var q=L.target.value;E.dataManager.changePageSize(q);var H=function(){E.props.onPageChange&&E.props.onPageChange(0,q),E.props.onRowsPerPageChange&&E.props.onRowsPerPageChange(q)};if(E.isRemoteData()){var V=D({},E.state.query);V.pageSize=L.target.value,V.page=0,E.onQueryChange(V,H)}else E.dataManager.changeCurrentPage(0),E.setState(E.dataManager.getRenderState(),H)}),(0,g.default)((0,p.default)(E),"onDragEnd",function(L){!L||!L.source||!L.destination||(E.dataManager.changeByDrag(L),E.setState(E.dataManager.getRenderState(),function(){E.props.onColumnDragged&&L.destination.droppableId==="headers"&&L.source.droppableId==="headers"&&E.props.onColumnDragged(L.source.index,L.destination.index)}))}),(0,g.default)((0,p.default)(E),"onGroupExpandChanged",function(L){E.dataManager.changeGroupExpand(L),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onGroupRemoved",function(L,q){var H={combine:null,destination:{droppableId:"headers",index:0},draggableId:L.tableData.id,mode:"FLUID",reason:"DROP",source:{index:q,droppableId:"groups"},type:"DEFAULT"};E.dataManager.changeByDrag(H),E.setState(E.dataManager.getRenderState(),function(){E.props.onGroupRemoved&&E.props.onGroupRemoved(L,q)})}),(0,g.default)((0,p.default)(E),"onEditingApproved",function(L,q,H){L==="add"&&E.props.editable&&E.props.editable.onRowAdd?E.setState({isLoading:!0},function(){E.props.editable.onRowAdd(q).then(function(V){E.setState({isLoading:!1,showAddRow:!1},function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"add"};E.setState({isLoading:!1,errorState:te})})}):L==="update"&&E.props.editable&&E.props.editable.onRowUpdate?E.setState({isLoading:!0},function(){E.props.editable.onRowUpdate(q,H).then(function(V){E.dataManager.changeRowEditing(H),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"update"};E.setState({isLoading:!1,errorState:te})})}):L==="delete"&&E.props.editable&&E.props.editable.onRowDelete?E.setState({isLoading:!0},function(){E.props.editable.onRowDelete(Object.entries(H).reduce(function(V,te){var ee=(0,c.default)(te,2),U=ee[0],Q=ee[1];return U!=="tableData"&&(V[U]=Q),V},{})).then(function(V){E.dataManager.changeRowEditing(H),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"delete"};E.setState({isLoading:!1,errorState:te})})}):L==="bulk"&&E.props.editable&&E.props.editable.onBulkUpdate&&E.setState({isLoading:!0},function(){E.props.editable.onBulkUpdate(E.dataManager.bulkEditChangedRows).then(function(V){E.dataManager.changeBulkEditOpen(!1),E.props.onBulkEditOpen&&E.props.onBulkEditOpen(!1),E.dataManager.clearBulkEditChangedRows(),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"bulk edit"};E.setState({isLoading:!1,errorState:te})})})}),(0,g.default)((0,p.default)(E),"onEditingCanceled",function(L,q){L==="add"?(E.props.editable.onRowAddCancelled&&E.props.editable.onRowAddCancelled(),E.setState({showAddRow:!1})):L==="update"?(E.props.editable.onRowUpdateCancelled&&E.props.editable.onRowUpdateCancelled(),E.dataManager.changeRowEditing(q),E.setState(E.dataManager.getRenderState())):L==="delete"&&(E.dataManager.changeRowEditing(q),E.setState(E.dataManager.getRenderState()))}),(0,g.default)((0,p.default)(E),"retry",function(){E.onQueryChange(E.state.query)}),(0,g.default)((0,p.default)(E),"onQueryChange",function(L,q){L=D(D(D({},E.state.query),L),{},{error:E.state.errorState}),E.setState({isLoading:!0,errorState:void 0},function(){E.props.data(L).then(function(H){L.totalCount=H.totalCount,L.page=H.page;var V=D(D({},L),{},{totalCount:H.totalCount,page:H.page});E.dataManager.setData(H.data,E.props.options.idSynonym),E.setState(D(D({isLoading:!1,errorState:!1},E.dataManager.getRenderState()),{},{query:V}),function(){q&&q()})}).catch(function(H){var V={message:(0,s.default)(H)==="object"?H.message:H!==void 0?H:E.props.localization.error,errorCause:"query"};E.setState(D({isLoading:!1,errorState:V},E.dataManager.getRenderState()))})})}),(0,g.default)((0,p.default)(E),"onRowSelected",function(L,q,H){E.dataManager.changeRowSelected(L.target.checked,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange(H)})}),(0,g.default)((0,p.default)(E),"onSelectionChange",function(L){if(E.props.onSelectionChange){var q=[],H=function(te){te.forEach(function(ee){ee.tableData.checked&&q.push(ee)})};H(E.state.originalData),E.props.onSelectionChange(q,L)}}),(0,g.default)((0,p.default)(E),"onSearchChangeDebounce",(0,x.debounce)(function(L){if(E.isRemoteData()){var q=D({},E.state.query);q.page=0,q.search=L,E.onQueryChange(q,function(){E.props.onSearchChange&&E.props.onSearchChange(L)})}else E.setState(E.dataManager.getRenderState(),function(){E.props.onSearchChange&&E.props.onSearchChange(L)})},E.props.options.debounceInterval)),(0,g.default)((0,p.default)(E),"onFilterChange",function(L,q){E.dataManager.changeFilterValue(L,q),E.setState({},E.onFilterChangeDebounce)}),(0,g.default)((0,p.default)(E),"onFilterChangeDebounce",(0,x.debounce)(function(){if(E.isRemoteData()){var L=D({},E.state.query);L.page=0,L.filters=E.state.columns.filter(function(q){return q.tableData.filterValue}).map(function(q){return{column:q,operator:"=",value:q.tableData.filterValue}}),E.onQueryChange(L,function(){E.props.onFilterChange&&E.props.onFilterChange(L.filters)})}else E.setState(E.dataManager.getRenderState(),function(){if(E.props.onFilterChange){var q=E.state.columns.filter(function(H){return H.tableData.filterValue}).map(function(H){return{column:H,operator:"=",value:H.tableData.filterValue}});E.props.onFilterChange(q)}})},E.props.options.debounceInterval)),(0,g.default)((0,p.default)(E),"onTreeExpandChanged",function(L,q){E.dataManager.changeTreeExpand(L),E.setState(E.dataManager.getRenderState(),function(){E.props.onTreeExpandChange&&E.props.onTreeExpandChange(q,q.tableData.isTreeExpanded)})}),(0,g.default)((0,p.default)(E),"onToggleDetailPanel",function(L,q){E.dataManager.changeDetailPanelVisibility(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onCellEditStarted",function(L,q){E.dataManager.startCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onCellEditFinished",function(L,q){E.dataManager.finishCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onEditRowDataChanged",function(L,q){E.dataManager.setEditRowData(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onColumnResized",function(L,q,H,V){var te=function(Q){return D(D(D({field:Q.field,width:Q.tableData.width,widthPx:Q.tableData.widthPx},Q.id&&{id:Q.id}),Q.minWidth&&{minWidth:Q.minWidth}),Q.maxWidth&&{maxWidth:Q.maxWidth})},ee=E.dataManager.onColumnResized(L,q,H,V);E.setState(E.dataManager.getRenderState(),function(){q===0&&E.props.onColumnResized&&ee.length>0&&E.props.onColumnResized(ee.map(function(U){return te(U)}),E.state.columns.map(function(U){return te(U)}))})}),(0,g.default)((0,p.default)(E),"renderTable",function(L){var q;return b.default.createElement(f.default,{sx:L.sx,style:D(D({},L.options.tableWidth==="variable"&&{width:E.state.tableStyleWidth}),{},{tableLayout:L.options.fixedColumns&&(L.options.fixedColumns.left||L.options.fixedColumns.right)?"fixed":L.options.tableLayout})},L.options.header&&b.default.createElement(L.components.Header,{actions:E.state.actions,columns:E.state.columns,selectedCount:E.state.selectedCount,dataCount:L.parentChildData?E.dataManager.searchedData.length:E.state.columns.some(function(H){return H.tableData.groupOrder>-1})?E.state.groupedDataLength:E.state.data.length,hasDetailPanel:!!L.detailPanel,showActionsColumn:!E.dataManager.bulkEditOpen&&E.state.actions&&E.state.actions.some(function(H){return H.position==="row"||typeof H=="function"}),onAllSelected:E.onAllSelected,onOrderChange:E.onChangeOrder,isTreeData:E.props.parentChildData!==void 0,treeDataMaxLevel:E.state.treeDataMaxLevel,onColumnResized:E.onColumnResized,scrollWidth:E.state.width,sorting:L.options.sorting||E.dataManager.maxColumnSort!==0,allowSorting:E.dataManager.maxColumnSort!==0,orderByCollection:E.dataManager.getOrderByCollection(),tableWidth:(q=L.options.tableWidth)!==null&&q!==void 0?q:"full"}),b.default.createElement(L.components.Body,{actions:E.state.actions,components:E.props.components,renderData:E.state.renderData,data:E.state.data,renderSummaryRow:E.props.renderSummaryRow,currentPage:E.isRemoteData()?0:E.state.currentPage,initialFormData:L.initialFormData,pageSize:E.state.pageSize,columns:E.state.columns,errorState:E.state.errorState,detailPanel:L.detailPanel,options:L.options,getFieldValue:E.dataManager.getFieldValue,isTreeData:E.props.parentChildData!==void 0,onFilterChanged:E.onFilterChange,onRowSelected:E.onRowSelected,onGroupSelected:E.onGroupSelected,onToggleDetailPanel:E.onToggleDetailPanel,onGroupExpandChanged:E.onGroupExpandChanged,onTreeExpandChanged:E.onTreeExpandChanged,onEditingCanceled:E.onEditingCanceled,onEditingApproved:E.onEditingApproved,onRowClick:E.props.onRowClick,onRowDoubleClick:E.props.onRowDoubleClick,showAddRow:E.state.showAddRow,hasAnyEditingRow:!!(E.state.lastEditingRow||E.state.showAddRow),hasDetailPanel:!!L.detailPanel,treeDataMaxLevel:E.state.treeDataMaxLevel,cellEditable:L.cellEditable,onCellEditStarted:E.onCellEditStarted,onCellEditFinished:E.onCellEditFinished,onRowEditStarted:E.onRowEditStarted,bulkEditOpen:E.dataManager.bulkEditOpen,bulkEditChangedRows:E.dataManager.bulkEditChangedRows,onBulkEditRowChanged:E.dataManager.onBulkEditRowChanged,scrollWidth:E.state.width}))}),(0,g.default)((0,p.default)(E),"onRowEditStarted",function(L){var q;(q=E.props.editable)!==null&&q!==void 0&&q.onRowUpdate&&(E.dataManager.changeRowEditing(L,"update"),E.setState(D(D({},E.dataManager.getRenderState()),{},{showAddRow:!1})))}),(0,g.default)((0,p.default)(E),"getColumnsWidth",function(L,q){var H=[],V=w.actionsColumnWidth(L);if(V>0&&(q>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=q)&&H.push(V+"px"),L.options.selection&&q>0){var te=w.selectionMaxWidth(L,E.state.treeDataMaxLevel);H.push(te+"px")}for(var ee=0;ee=0?ee:E.state.columns.length-1-ee];U.tableData&&(typeof U.tableData.width=="number"?H.push(U.tableData.width+"px"):H.push(U.tableData.width))}return"calc("+H.join(" + ")+")"}),(0,g.default)((0,p.default)(E),"getRenderData",function(){return E.props.options.exportAllData?E.state.data:E.state.renderData});var W=E.getProps(N);E.setDataManagerFields(W,!0);var G=E.dataManager.getRenderState();return E.state=D(D({data:[],errorState:void 0},G),{},{query:{filters:G.columns.filter(function(L){return L.tableData.filterValue}).map(function(L){return{column:L,operator:"=",value:L.tableData.filterValue}}),orderBy:G.columns.find(function(L){return L.tableData.id===G.orderBy}),orderDirection:G.orderDirection,orderByCollection:G.orderByCollection,page:0,pageSize:W.options.pageSize,search:G.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:W.actions}),E.tableContainerDiv=b.default.createRef(),E}return(0,h.default)(j,[{key:"componentDidMount",value:function(){var E=this;this.setState(D(D({},this.dataManager.getRenderState()),{},{width:this.tableContainerDiv.current.scrollWidth}),function(){E.isRemoteData()&&E.onQueryChange(D(D({},E.state.query),{},{page:E.props.options.initialPage||0})),E.props.onDoubleRowClick!==void 0&&console.warn("Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`"),E.props.options.sorting!==void 0&&console.warn("Property `sorting` has been deprecated, please start using `maxColumnSort` instead. https://github.com/material-table-core/core/pull/619")})}},{key:"setDataManagerFields",value:function(E,W,G){var L,q=this,H={};if(E.options.persistentGroupingsId&&localStorage){var V=localStorage.getItem("material-table-groupings");V&&(V=JSON.parse(V),V[E.options.persistentGroupingsId]&&V[E.options.persistentGroupingsId].forEach(function(Te){H[Te.field]={groupOrder:Te.groupOrder,groupSort:Te.groupSort,columnOrder:Te.columnOrder}}))}this.dataManager.setTableWidth((L=E.options.tableWidth)!==null&&L!==void 0?L:"full"),this.dataManager.setColumns(E.columns,G,H),this.dataManager.setDefaultExpanded(E.options.defaultExpanded),this.dataManager.changeRowEditing();var te=E.options,ee=te.clientSorting,U=te.grouping,Q=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(U?1:Q),this.dataManager.setOrderByCollection(),this.isRemoteData(E)?(this.dataManager.changeApplySearch(!1),this.dataManager.changeApplyFilters(!1),this.dataManager.changeApplySort(!1)):(this.dataManager.changeApplySearch(!0),this.dataManager.changeApplyFilters(!0),this.dataManager.changeApplySort(!0),this.dataManager.setData(E.data,E.options.idSynonym));var Y=this.dataManager.getDefaultOrderByCollection(),Z=E.options.defaultOrderByCollection,X=[],re="",ie="";if(Z&&Z.length>0)X=(0,l.default)(Z).slice(0,Q),X=this.dataManager.sortOrderCollection(X),re=JSON.stringify(X),ie=JSON.stringify(Y),re!==ie&&this.dataManager.setDefaultOrderByCollection(X);else{var le=A(E.columns,G,this.dataManager.maxColumnSort);X=(0,l.default)(le[0]),re=JSON.stringify(X),ie=JSON.stringify((0,l.default)(le[1]))}var se=JSON.stringify(this.dataManager.orderByCollection),pe=W||!this.isRemoteData()&&X.length&&re!==ie&&re!==se;pe&&X.length>0&&Q>0&&X.forEach(function(Te){var Se=Te.orderBy,Oe=Te.orderDirection,Me=Te.sortOrder;return q.dataManager.changeColumnOrder(Se,Oe,Me)}),W&&this.dataManager.changeSearchText(E.options.searchText||""),W&&this.dataManager.changeSearchDebounce(E.options.searchDebounceDelay),W&&this.dataManager.changeCurrentPage(E.options.initialPage?E.options.initialPage:0),W&&this.dataManager.changePageSize(E.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:E.options.paging),W&&this.dataManager.changeParentFunc(E.parentChildData),this.dataManager.changeDetailPanelType(E.options.detailPanelType)}},{key:"cleanColumns",value:function(E){return E.map(function(W){var G=D({},W);return delete G.tableData,G})}},{key:"componentDidUpdate",value:function(E){var W=this.cleanColumns(E.columns),G=this.cleanColumns(this.props.columns),L=!(0,_.default)(W,G),q=L||!(0,_.default)(E.options,this.props.options);if(this.isRemoteData()||(q=q||!(0,_.default)(E.data,this.props.data)),E.options.pageSize!==this.props.options.pageSize&&this.dataManager.changePageSize(this.props.options.pageSize),q){var H=this.getProps(this.props);this.setDataManagerFields(H,!1,E.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:H.actions}))}var V=this.isRemoteData()?this.state.query.totalCount:this.state.data.length,te=this.isRemoteData()?this.state.query.page:this.state.currentPage,ee=this.isRemoteData()?this.state.query.pageSize:this.state.pageSize;V<=ee*te&&te!==0&&!this.state.isLoading&&this.onPageChange(null,Math.max(0,Math.ceil(V/ee)-1))}},{key:"getProps",value:function(E){var W=this,G=D({},E||this.props),L=this.props.localization.body;if(G.options.selection?G.actions=G.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"toolbarOnSelect"}:D(D({},H),{},{position:"toolbarOnSelect"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}):G.actions=G.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"row"}:D(D({},H),{},{position:"row"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}),G.editable){var q;G.editable.onRowAdd&&G.actions.push({icon:G.icons.Add,tooltip:L.addTooltip,position:"toolbar",disabled:!!this.dataManager.lastEditingRow,onClick:function(){W.dataManager.changeRowEditing(),W.state.showAddRow&&W.props.editable.onRowAddCancelled&&W.props.editable.onRowAddCancelled(),W.setState(D(D({},W.dataManager.getRenderState()),{},{showAddRow:!W.state.showAddRow}))}}),G.editable.onRowUpdate&&G.actions.push(function(H){return{icon:G.icons.Edit,tooltip:G.editable.editTooltip?G.editable.editTooltip(H):L.editTooltip,disabled:G.editable.isEditable&&!G.editable.isEditable(H),hidden:G.editable.isEditHidden&&G.editable.isEditHidden(H),onClick:function(te,ee){W.onRowEditStarted(ee)}}}),G.editable.onRowDelete&&G.actions.push(function(H){return{icon:G.icons.Delete,tooltip:G.editable.deleteTooltip?G.editable.deleteTooltip(H):L.deleteTooltip,disabled:G.editable.isDeletable&&!G.editable.isDeletable(H),hidden:G.editable.isDeleteHidden&&G.editable.isDeleteHidden(H),onClick:function(te,ee){W.dataManager.changeRowEditing(ee,"delete"),W.setState(D(D({},W.dataManager.getRenderState()),{},{showAddRow:!1}))}}}),G.editable.onBulkUpdate&&(G.actions.push({icon:G.icons.Edit,tooltip:L.bulkEditTooltip,position:"toolbar",hidden:this.dataManager.bulkEditOpen,disabled:G.isBulkEditable&&G.isBulkEditable(),onClick:function(){W.dataManager.changeBulkEditOpen(!0),W.props.onBulkEditOpen&&W.props.onBulkEditOpen(!0),W.setState(W.dataManager.getRenderState())}}),G.actions.push({icon:G.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return W.onEditingApproved("bulk")}}),G.actions.push({icon:G.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){W.dataManager.changeBulkEditOpen(!1),W.props.onBulkEditOpen&&W.props.onBulkEditOpen(!1),W.dataManager.clearBulkEditChangedRows(),W.setState(W.dataManager.getRenderState())}})),(q=this.state)!==null&&q!==void 0&&q.showAddRow&&G.editable.onRowAdd&&G.actions.filter(function(H){return H.position==="row"}).length===0&&G.actions.push({icon:void 0,position:"row",onClick:function(){},disabled:!0})}return G}},{key:"renderFooter",value:function(){var E=this.getProps();if(E.options.paging){var W=this.isRemoteData()?Math.min(E.page,Math.floor(E.totalCount/this.state.pageSize)):this.state.currentPage,G=this.isRemoteData()?E.totalCount:this.state.data.length;return b.default.createElement(f.default,null,b.default.createElement(u.default,{style:{display:"grid"}},b.default.createElement(o.default,{style:{display:"grid"}},b.default.createElement(E.components.Pagination,{sx:{display:"flex",justifyContent:E.options.paginationAlignment?E.options.paginationAlignment:"flex-end",overflowX:"auto","& .MuiTablePagination-displayedRows":{display:"none"}},colSpan:3,count:this.isRemoteData()?this.state.query.totalCount:G,rowsPerPage:this.state.pageSize,rowsPerPageOptions:E.options.pageSizeOptions,SelectProps:{renderValue:function(q){return b.default.createElement(n.default,{sx:{padding:"0px 5px"}},q+" "+E.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:W,onPageChange:this.onPageChange,onRowsPerPageChange:this.onRowsPerPageChange,ActionsComponent:function(q){return E.options.paginationType==="normal"?b.default.createElement(M.MTablePagination,(0,a.default)({},q,{showFirstLastPageButtons:E.options.showFirstLastPageButtons})):b.default.createElement(M.MTableSteppedPagination,(0,a.default)({},q,{showFirstLastPageButtons:E.options.showFirstLastPageButtons,numberOfPagesAround:E.options.numberOfPagesAround}))},labelRowsPerPage:E.localization.pagination.labelRowsPerPage}))))}}},{key:"render",value:function(){var E=this,W=this.getProps();return b.default.createElement(k.DragDropContext,{onDragEnd:this.onDragEnd,nonce:W.options.cspNonce},b.default.createElement(this.props.components.Container,{style:D({position:"relative"},W.style)},W.options.paginationPosition==="top"||W.options.paginationPosition==="both"?this.renderFooter():null,W.options.toolbar&&b.default.createElement(this.props.components.Toolbar,{actions:W.actions,components:this.props.components,originalData:this.state.originalData,columns:this.state.columns,selectedCount:this.state.selectedCount,getFieldValue:this.dataManager.getFieldValue,data:this.getRenderData,title:W.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),W.options.grouping&&b.default.createElement(this.props.components.Groupbar,{groupColumns:this.state.columns.filter(function(G){return G.tableData.groupOrder>-1}).sort(function(G,L){return G.tableData.groupOrder-L.tableData.groupOrder}),onSortChanged:this.onChangeGroupOrder,onGroupRemoved:this.onGroupRemoved,onGroupChange:this.props.onGroupChange,persistentGroupingsId:W.options.persistentGroupingsId}),b.default.createElement(M.MTableScrollbar,{double:W.options.doubleHorizontalScroll},b.default.createElement(k.Droppable,{droppableId:"headers",direction:"horizontal"},function(G,L){var q=E.renderTable(W);return b.default.createElement("div",{ref:G.innerRef},b.default.createElement("div",{ref:E.tableContainerDiv,style:{maxHeight:W.options.maxBodyHeight,minHeight:W.options.minBodyHeight,overflowY:W.options.overflowY}},E.state.width&&W.options.fixedColumns&&W.options.fixedColumns.right?b.default.createElement("div",{style:{width:E.getColumnsWidth(W,-1*W.options.fixedColumns.right),position:"absolute",top:0,right:0,boxShadow:"-2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},b.default.createElement("div",{style:{width:E.state.width,background:"white",transform:"translateX(calc(".concat(E.getColumnsWidth(W,-1*W.options.fixedColumns.right)," - 100%))")}},q)):null,b.default.createElement("div",null,q),E.state.width&&W.options.fixedColumns&&W.options.fixedColumns.left?b.default.createElement("div",{style:{width:E.getColumnsWidth(W,W.options.fixedColumns.left),position:"absolute",top:0,left:0,boxShadow:"2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},b.default.createElement("div",{style:{width:E.state.width,background:"white"},onKeyDown:function(V){V.key==="Tab"&&V.preventDefault()}},q)):null),G.placeholder)})),(this.state.isLoading||W.isLoading)&&W.options.loadingType==="linear"&&b.default.createElement("div",{style:{position:"relative",width:"100%"}},b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"}},b.default.createElement(i.default,null))),W.options.paginationPosition==="bottom"||W.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||W.isLoading)&&W.options.loadingType==="overlay"&&b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},b.default.createElement(this.props.components.OverlayLoading,{theme:W.theme})),this.state.errorState&&this.state.errorState.errorCause==="query"&&b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},b.default.createElement(this.props.components.OverlayError,{error:this.state.errorState,retry:this.retry,theme:W.theme}))))}}]),j}(b.default.Component);e.default=F;function A(B,$,j){var N=[],E=[];return j>0&&(N=z(B,j)),$&&(E=z($,j)),[N,E]}function z(B,$){var j=B.filter(function(N){return N.defaultSort&&N.sorting!==!1});return j.slice(0,$).map(function(N,E){return{orderBy:N.tableData?N.tableData.id:B.findIndex(function(W){return W.field===N.field}),orderDirection:N.defaultSort,sortOrder:E+1}})}}(Em)),Em}(function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return s.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return f.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return f.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return f.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return f.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return f.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return f.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return f.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return f.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return f.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return f.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return f.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return f.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return f.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return f.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return f.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return l.useLocalizationStore}});var r=t(hr()),i=t($e),u=sY(),o=uY(),a=t(CY()),n=Nl,l=Ju(),f=Kd(),s=w1();a.default.defaultProps=u.defaultProps,a.default.propTypes=o.propTypes;var c=(0,l.withContext)(function(d){var h=(0,n.useTheme)(),p=(0,l.useMergeProps)(d),m=p.localization,y=p.options,v=p.components;return i.default.createElement(a.default,(0,r.default)({},d,{theme:h,options:y,components:v,localization:m,ref:d.tableRef}))});e.default=c})(fS);const OY=ir(fS);var _1={},AY=vn;Object.defineProperty(_1,"__esModule",{value:!0});var h6=_1.default=void 0,PY=AY(Xr()),DY=je,EY=(0,PY.default)((0,DY.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");h6=_1.default=EY;class RY{constructor(t){Lc(this,"cachedGraphs");Lc(this,"cachedWidgets");Lc(this,"inner");this.inner=t,this.cachedGraphs=new Map,this.cachedWidgets=new Map}async getAdditionGraphData(t){let r=this.cachedGraphs.get(t);return r!==void 0||(r=await this.inner.getAdditionGraphData(t),this.cachedGraphs.set(t,r)),r}async getAdditionWidgetData(t){let r=this.cachedWidgets.get(t);return r!==void 0||(r=await this.inner.getAdditionWidgetData(t),this.cachedWidgets.set(t,r)),r}}const p6=et.createContext({getAdditionGraphData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data")),getAdditionWidgetData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data"))});function aSe(e){return new RY(e)}const LY=e=>{const t=e.activeTab===-1?0:e.activeTab;return je.jsxs("div",{children:[je.jsx(eS,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map(r=>je.jsx(S0,{disabled:r.disabled??!1,label:je.jsx(Qr,{className:e.tabStyle,children:je.jsxs(Qr,{display:"flex",sx:{fontSize:"0.875rem"},children:[je.jsx("span",{children:r.icon}),r.title]})})}))}),je.jsx(Qr,{children:e.tabs.map((r,i)=>je.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==i,children:(e.activeTab===-1?0:e.activeTab)!==i?je.jsx("div",{}):r.tab}))})]})},T1=e=>{const[t,r]=$e.useState({activeTab:0});return je.jsx(et.Fragment,{children:je.jsx(LY,{activeTab:t.activeTab,onNewTabSelected:(i,u)=>r(o=>({...o,activeTab:u})),tabs:e.tabs})})},q0=({func:e,children:t})=>{const[r,i]=$e.useState(()=>({status:0,func:e}));return r.status===0&&i(u=>({...u,status:1})),r.status===1&&(i(u=>({...u,status:2})),r.func().then(u=>i(o=>({...o,status:3,result:u}))).catch(()=>i(u=>({...u,status:4})))),je.jsx(je.Fragment,{children:r.status===3?t&&r.result&&t(r.result):r.status===4?je.jsx(Cr,{align:"center",children:"Failed"}):r.status===2?je.jsx(Qr,{textAlign:"center",children:je.jsx(Z9,{})}):null})},g6=e=>je.jsxs(py,{severity:e.data.severity,children:[je.jsx(gy,{children:e.data.title}),e.data.text]}),m6=()=>je.jsx("div",{children:"Not implemented"}),IY=e=>e.type??"graph",J3=(e,t,r)=>{switch(IY(t)){case"graph":{const i=()=>e.getAdditionGraphData(t.id),u=o=>je.jsx(Ad,{...o,widgetSize:r});return je.jsx(q0,{func:i,children:u})}case"widget":{const i=()=>e.getAdditionWidgetData(t.id),u=o=>xc(t.id,o);return je.jsx(q0,{func:i,children:u})}default:return je.jsx(m6,{})}},k1=e=>je.jsx(p6.Consumer,{children:t=>je.jsxs(Qr,{children:[e.details.parts.length>1?je.jsx(T1,{tabs:e.details.parts.map(r=>({title:r.title,tab:J3(t,r,e.widgetSize)}))}):J3(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?je.jsx(je.Fragment,{}):e.details.insights.map(r=>je.jsx(g6,{data:r},r.text+r.title+r.severity))]})}),FY=e=>je.jsx(p6.Consumer,{children:t=>je.jsx(q0,{func:()=>t.getAdditionGraphData(e.graphId),children:r=>je.jsx(Ad,{...r,widgetSize:e.widgetSize})})});var W0={exports:{}},U0={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;function r(i){var u={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(u[o]=0);return u}e.exports=t.default})(U0,U0.exports);var M1=U0.exports,H0={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;function r(i){var u={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(u[o]=typeof i[o]=="number"?i[o]:i[o].val);return u}e.exports=t.default})(H0,H0.exports);var eh=H0.exports,V0={exports:{}};(function(e,t){t.__esModule=!0,t.default=i;var r=[0,0];function i(u,o,a,n,l,f,s){var c=-l*(o-n),d=-f*a,h=c+d,p=a+h*u,m=o+p*u;return Math.abs(p)"u"?Ma:window,Zc=["moz","webkit"],ml="AnimationFrame",Ol=ki["request"+ml],Fu=ki["cancel"+ml]||ki["cancelRequest"+ml];for(var Ks=0;!Ol&&Ksk*10&&(P.accumulatedTime=0),P.accumulatedTime===0){P.animationID=null,P.startAnimationIfNecessary();return}var A=(P.accumulatedTime-Math.floor(P.accumulatedTime/k)*k)/k,z=Math.floor(P.accumulatedTime/k),B={},$={},j={},N={};for(var E in O)if(Object.prototype.hasOwnProperty.call(O,E)){var W=O[E];if(typeof W=="number")j[E]=W,N[E]=0,B[E]=W,$[E]=0;else{for(var G=P.state.lastIdealStyle[E],L=P.state.lastIdealVelocity[E],q=0;qk*10&&(D.accumulatedTime=0),D.accumulatedTime===0){D.animationID=null,D.startAnimationIfNecessary();return}for(var z=(D.accumulatedTime-Math.floor(D.accumulatedTime/k)*k)/k,B=Math.floor(D.accumulatedTime/k),$=[],j=[],N=[],E=[],W=0;Wa[g])return-1;if(h>l[g]&&ya[g])return 1;if(p>l[g]&&mM*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}for(var E=(A.accumulatedTime-Math.floor(A.accumulatedTime/M)*M)/M,W=Math.floor(A.accumulatedTime/M),G=P(A.props.willEnter,A.props.willLeave,A.props.didLeave,A.state.mergedPropsStyles,$,A.state.currentStyles,A.state.currentVelocities,A.state.lastIdealStyles,A.state.lastIdealVelocities),L=G[0],q=G[1],H=G[2],V=G[3],te=G[4],ee=0;ee0},e.prototype.connect_=function(){!ev||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),aG?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ev||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,i=r===void 0?"":r,u=rG.some(function(o){return!!~i.indexOf(o)});u&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),b6=function(e,t){for(var r=0,i=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Al(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new hG(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Al(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(i){return new pG(i.target,i.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w6=typeof WeakMap<"u"?new WeakMap:new y6,_6=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=iG.getInstance(),i=new gG(t,r,this);w6.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){_6.prototype[e]=function(){var t;return(t=w6.get(this))[e].apply(t,arguments)}});var mG=function(){return typeof Uf.ResizeObserver<"u"?Uf.ResizeObserver:_6}(),vG=["client","offset","scroll","bounds","margin"];function tT(e){var t=[];return vG.forEach(function(r){e[r]&&t.push(r)}),t}function nT(e,t){var r={};if(t.indexOf("client")>-1&&(r.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(r.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(r.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var i=e.getBoundingClientRect();r.bounds={top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height}}if(t.indexOf("margin")>-1){var u=getComputedStyle(e);r.margin={top:u?parseInt(u.marginTop):0,right:u?parseInt(u.marginRight):0,bottom:u?parseInt(u.marginBottom):0,left:u?parseInt(u.marginLeft):0}}return r}function yG(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function bG(e){return function(t){var r,i;return i=r=function(u){K9(o,u);function o(){for(var n,l=arguments.length,f=new Array(l),s=0;s-1}var JG=KG,QG=ih;function eX(e,t){var r=this.__data__,i=QG(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}var tX=eX,nX=jG,rX=VG,aX=XG,iX=JG,oX=tX;function Hl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=dJ}var j1=hJ,pJ=lh,gJ=j1;function mJ(e){return e!=null&&gJ(e.length)&&!pJ(e)}var Zl=mJ,vJ=Zl,yJ=Fa;function bJ(e){return yJ(e)&&vJ(e)}var F6=bJ,Gf={exports:{}};function xJ(){return!1}var wJ=xJ;Gf.exports;(function(e,t){var r=Ca,i=wJ,u=t&&!t.nodeType&&t,o=u&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===u,n=a?r.Buffer:void 0,l=n?n.isBuffer:void 0,f=l||i;e.exports=f})(Gf,Gf.exports);var ph=Gf.exports,_J=Li,TJ=F1,kJ=Fa,MJ="[object Object]",SJ=Function.prototype,CJ=Object.prototype,N6=SJ.toString,OJ=CJ.hasOwnProperty,AJ=N6.call(Object);function PJ(e){if(!kJ(e)||_J(e)!=MJ)return!1;var t=TJ(e);if(t===null)return!0;var r=OJ.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&N6.call(r)==AJ}var $1=PJ;const Bu=ir($1);var DJ=Li,EJ=j1,RJ=Fa,LJ="[object Arguments]",IJ="[object Array]",FJ="[object Boolean]",NJ="[object Date]",jJ="[object Error]",$J="[object Function]",BJ="[object Map]",zJ="[object Number]",qJ="[object Object]",WJ="[object RegExp]",UJ="[object Set]",HJ="[object String]",VJ="[object WeakMap]",YJ="[object ArrayBuffer]",GJ="[object DataView]",XJ="[object Float32Array]",ZJ="[object Float64Array]",KJ="[object Int8Array]",JJ="[object Int16Array]",QJ="[object Int32Array]",eQ="[object Uint8Array]",tQ="[object Uint8ClampedArray]",nQ="[object Uint16Array]",rQ="[object Uint32Array]",wr={};wr[XJ]=wr[ZJ]=wr[KJ]=wr[JJ]=wr[QJ]=wr[eQ]=wr[tQ]=wr[nQ]=wr[rQ]=!0;wr[LJ]=wr[IJ]=wr[YJ]=wr[FJ]=wr[GJ]=wr[NJ]=wr[jJ]=wr[$J]=wr[BJ]=wr[zJ]=wr[qJ]=wr[WJ]=wr[UJ]=wr[HJ]=wr[VJ]=!1;function aQ(e){return RJ(e)&&EJ(e.length)&&!!wr[DJ(e)]}var iQ=aQ;function oQ(e){return function(t){return e(t)}}var Kl=oQ,Xf={exports:{}};Xf.exports;(function(e,t){var r=k6,i=t&&!t.nodeType&&t,u=i&&!0&&e&&!e.nodeType&&e,o=u&&u.exports===i,a=o&&r.process,n=function(){try{var l=u&&u.require&&u.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=n})(Xf,Xf.exports);var gh=Xf.exports,lQ=iQ,sQ=Kl,mT=gh,vT=mT&&mT.isTypedArray,uQ=vT?sQ(vT):lQ,B1=uQ;function cQ(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var j6=cQ,fQ=L1,dQ=lc,hQ=Object.prototype,pQ=hQ.hasOwnProperty;function gQ(e,t,r){var i=e[t];(!(pQ.call(e,t)&&dQ(i,r))||r===void 0&&!(t in e))&&fQ(e,t,r)}var z1=gQ,mQ=z1,vQ=L1;function yQ(e,t,r,i){var u=!r;r||(r={});for(var o=-1,a=t.length;++o-1&&e%1==0&&e0){if(++t>=Cee)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var q6=Pee,Dee=See,Eee=q6,Ree=Eee(Dee),W1=Ree,Lee=Vo,Iee=z6,Fee=W1;function Nee(e,t){return Fee(Iee(e,t,Lee),e+"")}var mh=Nee,jee=lc,$ee=Zl,Bee=sc,zee=Va;function qee(e,t,r){if(!zee(r))return!1;var i=typeof t;return(i=="number"?$ee(r)&&Bee(t,r.length):i=="string"&&t in r)?jee(r[t],e):!1}var U1=qee,Wee=mh,Uee=U1;function Hee(e){return Wee(function(t,r){var i=-1,u=r.length,o=u>1?r[u-1]:void 0,a=u>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(u--,o):void 0,a&&Uee(r[0],r[1],a)&&(o=u<3?void 0:o,u=1),t=Object(t);++it?1:e>=t?0:NaN}function Y1(e){let t=e,r=e;e.length===1&&(t=(a,n)=>e(a)-n,r=nne(e));function i(a,n,l,f){for(l==null&&(l=0),f==null&&(f=a.length);l>>1;r(a[s],n)<0?l=s+1:f=s}return l}function u(a,n,l,f){for(l==null&&(l=0),f==null&&(f=a.length);l>>1;r(a[s],n)>0?f=s:l=s+1}return l}function o(a,n,l,f){l==null&&(l=0),f==null&&(f=a.length);const s=i(a,n,l,f-1);return s>l&&t(a[s-1],n)>-t(a[s],n)?s-1:s}return{left:i,center:o,right:u}}function nne(e){return(t,r)=>G6(e(t),r)}function rne(e){return e===null?NaN:+e}const ane=Y1(G6),ine=ane.right;Y1(rne).center;var tv=Math.sqrt(50),nv=Math.sqrt(10),rv=Math.sqrt(2);function av(e,t,r){var i,u=-1,o,a,n;if(t=+t,e=+e,r=+r,e===t&&r>0)return[e];if((i=t0){let l=Math.round(e/n),f=Math.round(t/n);for(l*nt&&--f,a=new Array(o=f-l+1);++ut&&--f,a=new Array(o=f-l+1);++u=0?(o>=tv?10:o>=nv?5:o>=rv?2:1)*Math.pow(10,u):-Math.pow(10,-u)/(o>=tv?10:o>=nv?5:o>=rv?2:1)}function iv(e,t,r){var i=Math.abs(t-e)/Math.max(0,r),u=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/u;return o>=tv?u*=10:o>=nv?u*=5:o>=rv&&(u*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Jc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Jc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=une.exec(e))?new Ea(t[1],t[2],t[3],1):(t=cne.exec(e))?new Ea(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fne.exec(e))?Jc(t[1],t[2],t[3],t[4]):(t=dne.exec(e))?Jc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=hne.exec(e))?IT(t[1],t[2]/100,t[3]/100,1):(t=pne.exec(e))?IT(t[1],t[2]/100,t[3]/100,t[4]):AT.hasOwnProperty(e)?ET(AT[e]):e==="transparent"?new Ea(NaN,NaN,NaN,0):null}function ET(e){return new Ea(e>>16&255,e>>8&255,e&255,1)}function Jc(e,t,r,i){return i<=0&&(e=t=r=NaN),new Ea(e,t,r,i)}function mne(e){return e instanceof fc||(e=Ao(e)),e?(e=e.rgb(),new Ea(e.r,e.g,e.b,e.opacity)):new Ea}function Po(e,t,r,i){return arguments.length===1?mne(e):new Ea(e,t,r,i??1)}function Ea(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}X1(Ea,Po,K6(fc,{brighter:function(e){return e=e==null?Zf:Math.pow(Zf,e),new Ea(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?zu:Math.pow(zu,e),new Ea(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:RT,formatHex:RT,formatRgb:LT,toString:LT}));function RT(){return"#"+jm(this.r)+jm(this.g)+jm(this.b)}function LT(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function jm(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function IT(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ci(e,t,r,i)}function J6(e){if(e instanceof ci)return new ci(e.h,e.s,e.l,e.opacity);if(e instanceof fc||(e=Ao(e)),!e)return new ci;if(e instanceof ci)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,u=Math.min(t,r,i),o=Math.max(t,r,i),a=NaN,n=o-u,l=(o+u)/2;return n?(t===o?a=(r-i)/n+(r0&&l<1?0:a,new ci(a,n,l,e.opacity)}function vne(e,t,r,i){return arguments.length===1?J6(e):new ci(e,t,r,i??1)}function ci(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}X1(ci,vne,K6(fc,{brighter:function(e){return e=e==null?Zf:Math.pow(Zf,e),new ci(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?zu:Math.pow(zu,e),new ci(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,u=2*r-i;return new Ea($m(e>=240?e-240:e+120,u,i),$m(e,u,i),$m(e<120?e+240:e-120,u,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function $m(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Z1=e=>()=>e;function yne(e,t){return function(r){return e+r*t}}function bne(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function xne(e){return(e=+e)==1?Q6:function(t,r){return r-t?bne(t,r,e):Z1(isNaN(t)?r:t)}}function Q6(e,t){var r=t-e;return r?yne(e,r):Z1(isNaN(e)?t:e)}const FT=function e(t){var r=xne(t);function i(u,o){var a=r((u=Po(u)).r,(o=Po(o)).r),n=r(u.g,o.g),l=r(u.b,o.b),f=Q6(u.opacity,o.opacity);return function(s){return u.r=a(s),u.g=n(s),u.b=l(s),u.opacity=f(s),u+""}}return i.gamma=e,i}(1);function wne(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),u;return function(o){for(u=0;ur&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(u=u[0])?n[a]?n[a]+=u:n[++a]=u:(n[++a]=null,l.push({i:a,x:Kf(i,u)})),r=Bm.lastIndex;return rt&&(r=e,e=t,t=r),function(i){return Math.max(e,Math.min(t,i))}}function Rne(e,t,r){var i=e[0],u=e[1],o=t[0],a=t[1];return u2?Lne:Rne,l=f=null,c}function c(d){return d==null||isNaN(d=+d)?o:(l||(l=n(e.map(i),t,r)))(i(a(d)))}return c.invert=function(d){return a(u((f||(f=n(t,e.map(i),Kf)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,Dne),s()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),s()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),r=Ane,s()},c.clamp=function(d){return arguments.length?(a=d?!0:hl,s()):a!==hl},c.interpolate=function(d){return arguments.length?(r=d,s()):r},c.unknown=function(d){return arguments.length?(o=d,c):o},function(d,h){return i=d,u=h,s()}}function tO(){return eO()(hl,hl)}function Ine(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Jf(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,i=e.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+e.slice(r+1)]}function Pl(e){return e=Jf(Math.abs(e)),e?e[1]:NaN}function Fne(e,t){return function(r,i){for(var u=r.length,o=[],a=0,n=e[0],l=0;u>0&&n>0&&(l+n+1>i&&(n=Math.max(1,i-l)),o.push(r.substring(u-=n,u+n)),!((l+=n+1)>i));)n=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Nne(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var jne=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qf(e){if(!(t=jne.exec(e)))throw new Error("invalid format: "+e);var t;return new Q1({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Qf.prototype=Q1.prototype;function Q1(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Q1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $ne(e){e:for(var t=e.length,r=1,i=-1,u;r0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(u+1):e}var nO;function Bne(e,t){var r=Jf(e,t);if(!r)return e+"";var i=r[0],u=r[1],o=u-(nO=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+Jf(e,Math.max(0,t+o-1))[0]}function jT(e,t){var r=Jf(e,t);if(!r)return e+"";var i=r[0],u=r[1];return u<0?"0."+new Array(-u).join("0")+i:i.length>u+1?i.slice(0,u+1)+"."+i.slice(u+1):i+new Array(u-i.length+2).join("0")}const $T={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:Ine,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return jT(e*100,t)},r:jT,s:Bne,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function BT(e){return e}var zT=Array.prototype.map,qT=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zne(e){var t=e.grouping===void 0||e.thousands===void 0?BT:Fne(zT.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",u=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?BT:Nne(zT.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",n=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function f(c){c=Qf(c);var d=c.fill,h=c.align,p=c.sign,m=c.symbol,y=c.zero,v=c.width,g=c.comma,b=c.precision,x=c.trim,_=c.type;_==="n"?(g=!0,_="g"):$T[_]||(b===void 0&&(b=12),x=!0,_="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var w=m==="$"?r:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",k=m==="$"?i:/[%p]/.test(_)?a:"",T=$T[_],M=/[defgprs%]/.test(_);b=b===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function S(C){var P=w,D=k,O,R,F;if(_==="c")D=T(C)+D,C="";else{C=+C;var A=C<0||1/C<0;if(C=isNaN(C)?l:T(Math.abs(C),b),x&&(C=$ne(C)),A&&+C==0&&p!=="+"&&(A=!1),P=(A?p==="("?p:n:p==="-"||p==="("?"":p)+P,D=(_==="s"?qT[8+nO/3]:"")+D+(A&&p==="("?")":""),M){for(O=-1,R=C.length;++OF||F>57){D=(F===46?u+C.slice(O+1):C.slice(O))+D,C=C.slice(0,O);break}}}g&&!y&&(C=t(C,1/0));var z=P.length+C.length+D.length,B=z>1)+P+C+D+B.slice(z);break;default:C=B+P+C+D;break}return o(C)}return S.toString=function(){return c+""},S}function s(c,d){var h=f((c=Qf(c),c.type="f",c)),p=Math.max(-8,Math.min(8,Math.floor(Pl(d)/3)))*3,m=Math.pow(10,-p),y=qT[8+p/3];return function(v){return h(m*v)+y}}return{format:f,formatPrefix:s}}var Qc,rs,rO;qne({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function qne(e){return Qc=zne(e),rs=Qc.format,rO=Qc.formatPrefix,Qc}function Wne(e){return Math.max(0,-Pl(Math.abs(e)))}function Une(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Pl(t)/3)))*3-Pl(Math.abs(e)))}function Hne(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Pl(t)-Pl(e))+1}function Vne(e,t,r,i){var u=iv(e,t,r),o;switch(i=Qf(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(o=Une(u,a))&&(i.precision=o),rO(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=Hne(u,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=Wne(u))&&(i.precision=o-(i.type==="%")*2);break}}return rs(i)}function Yne(e){var t=e.domain;return e.ticks=function(r){var i=t();return av(i[0],i[i.length-1],r??10)},e.tickFormat=function(r,i){var u=t();return Vne(u[0],u[u.length-1],r??10,i)},e.nice=function(r){r==null&&(r=10);var i=t(),u=0,o=i.length-1,a=i[u],n=i[o],l,f,s=10;for(n0;){if(f=X6(a,n,r),f===l)return i[u]=a,i[o]=n,t(i);if(f>0)a=Math.floor(a/f)*f,n=Math.ceil(n/f)*f;else if(f<0)a=Math.ceil(a*f)/f,n=Math.floor(n*f)/f;else break;l=f}return e},e}function Do(){var e=tO();return e.copy=function(){return J1(e,Do())},ns.apply(e,arguments),Yne(e)}function aO(e,t){e=e.slice();var r=0,i=e.length-1,u=e[r],o=e[i],a;return o0){for(;d<=h;++d)for(m=1,p=o(d);ms)break;g.push(y)}}else for(;d<=h;++d)for(m=i-1,p=o(d);m>=1;--m)if(y=p*m,!(ys)break;g.push(y)}g.length*20))return l;do l.push(f=new Date(+o)),t(o,n),e(o);while(f=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;t(a,-1),!o(a););else for(;--n>=0;)for(;t(a,1),!o(a););})},r&&(u.count=function(o,a){return zm.setTime(+o),qm.setTime(+a),e(zm),e(qm),Math.floor(r(zm,qm))},u.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?u.filter(i?function(a){return i(a)%o===0}:function(a){return u.count(0,a)%o===0}):u}),u}var ed=na(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});ed.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?na(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):ed};ed.range;const _i=1e3,Wa=_i*60,Ti=Wa*60,Eo=Ti*24,eb=Eo*7,VT=Eo*30,Wm=Eo*365;var ko=na(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*_i)},function(e,t){return(t-e)/_i},function(e){return e.getUTCSeconds()});ko.range;var tb=na(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*_i)},function(e,t){e.setTime(+e+t*Wa)},function(e,t){return(t-e)/Wa},function(e){return e.getMinutes()});tb.range;var nb=na(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*_i-e.getMinutes()*Wa)},function(e,t){e.setTime(+e+t*Ti)},function(e,t){return(t-e)/Ti},function(e){return e.getHours()});nb.range;var dc=na(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Wa)/Eo,e=>e.getDate()-1);dc.range;function Yo(e){return na(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Wa)/eb})}var yh=Yo(0),td=Yo(1),ere=Yo(2),tre=Yo(3),Dl=Yo(4),nre=Yo(5),rre=Yo(6);yh.range;td.range;ere.range;tre.range;Dl.range;nre.range;rre.range;var rb=na(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});rb.range;var Ci=na(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Ci.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:na(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};Ci.range;var ab=na(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Wa)},function(e,t){return(t-e)/Wa},function(e){return e.getUTCMinutes()});ab.range;var ib=na(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Ti)},function(e,t){return(t-e)/Ti},function(e){return e.getUTCHours()});ib.range;var hc=na(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Eo},function(e){return e.getUTCDate()-1});hc.range;function Go(e){return na(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/eb})}var bh=Go(0),nd=Go(1),are=Go(2),ire=Go(3),El=Go(4),ore=Go(5),lre=Go(6);bh.range;nd.range;are.range;ire.range;El.range;ore.range;lre.range;var ob=na(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});ob.range;var Oi=na(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Oi.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:na(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};Oi.range;function oO(e,t,r,i,u,o){const a=[[ko,1,_i],[ko,5,5*_i],[ko,15,15*_i],[ko,30,30*_i],[o,1,Wa],[o,5,5*Wa],[o,15,15*Wa],[o,30,30*Wa],[u,1,Ti],[u,3,3*Ti],[u,6,6*Ti],[u,12,12*Ti],[i,1,Eo],[i,2,2*Eo],[r,1,eb],[t,1,VT],[t,3,3*VT],[e,1,Wm]];function n(f,s,c){const d=sy).right(a,d);if(h===a.length)return e.every(iv(f/Wm,s/Wm,c));if(h===0)return ed.every(Math.max(iv(f,s,c),1));const[p,m]=a[d/a[h-1][2]53)return null;"w"in U||(U.w=1),"Z"in U?(Y=Hm(Qs(U.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?nd.ceil(Y):nd(Y),Y=hc.offset(Y,(U.V-1)*7),U.y=Y.getUTCFullYear(),U.m=Y.getUTCMonth(),U.d=Y.getUTCDate()+(U.w+6)%7):(Y=Um(Qs(U.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?td.ceil(Y):td(Y),Y=dc.offset(Y,(U.V-1)*7),U.y=Y.getFullYear(),U.m=Y.getMonth(),U.d=Y.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),Z="Z"in U?Hm(Qs(U.y,0,1)).getUTCDay():Um(Qs(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(Z+5)%7:U.w+U.U*7-(Z+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,Hm(U)):Um(U)}}function T(V,te,ee,U){for(var Q=0,Y=te.length,Z=ee.length,X,re;Q=Z)return-1;if(X=te.charCodeAt(Q++),X===37){if(X=te.charAt(Q++),re=_[X in YT?te.charAt(Q++):X],!re||(U=re(V,ee,U))<0)return-1}else if(X!=ee.charCodeAt(U++))return-1}return U}function M(V,te,ee){var U=f.exec(te.slice(ee));return U?(V.p=s.get(U[0].toLowerCase()),ee+U[0].length):-1}function S(V,te,ee){var U=h.exec(te.slice(ee));return U?(V.w=p.get(U[0].toLowerCase()),ee+U[0].length):-1}function C(V,te,ee){var U=c.exec(te.slice(ee));return U?(V.w=d.get(U[0].toLowerCase()),ee+U[0].length):-1}function P(V,te,ee){var U=v.exec(te.slice(ee));return U?(V.m=g.get(U[0].toLowerCase()),ee+U[0].length):-1}function D(V,te,ee){var U=m.exec(te.slice(ee));return U?(V.m=y.get(U[0].toLowerCase()),ee+U[0].length):-1}function O(V,te,ee){return T(V,t,te,ee)}function R(V,te,ee){return T(V,r,te,ee)}function F(V,te,ee){return T(V,i,te,ee)}function A(V){return a[V.getDay()]}function z(V){return o[V.getDay()]}function B(V){return l[V.getMonth()]}function $(V){return n[V.getMonth()]}function j(V){return u[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function E(V){return a[V.getUTCDay()]}function W(V){return o[V.getUTCDay()]}function G(V){return l[V.getUTCMonth()]}function L(V){return n[V.getUTCMonth()]}function q(V){return u[+(V.getUTCHours()>=12)]}function H(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=w(V+="",b);return te.toString=function(){return V},te},parse:function(V){var te=k(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=w(V+="",x);return te.toString=function(){return V},te},utcParse:function(V){var te=k(V+="",!0);return te.toString=function(){return V},te}}}var YT={"-":"",_:" ",0:"0"},ra=/^\s*\d+/,hre=/^%/,pre=/[\\^$*+?|[\]().{}]/g;function nr(e,t,r){var i=e<0?"-":"",u=(i?-e:e)+"",o=u.length;return i+(o[t.toLowerCase(),r]))}function mre(e,t,r){var i=ra.exec(t.slice(r,r+1));return i?(e.w=+i[0],r+i[0].length):-1}function vre(e,t,r){var i=ra.exec(t.slice(r,r+1));return i?(e.u=+i[0],r+i[0].length):-1}function yre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.U=+i[0],r+i[0].length):-1}function bre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.V=+i[0],r+i[0].length):-1}function xre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.W=+i[0],r+i[0].length):-1}function GT(e,t,r){var i=ra.exec(t.slice(r,r+4));return i?(e.y=+i[0],r+i[0].length):-1}function XT(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function wre(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function _re(e,t,r){var i=ra.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function Tre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function ZT(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function kre(e,t,r){var i=ra.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function KT(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function Mre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function Sre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function Cre(e,t,r){var i=ra.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function Ore(e,t,r){var i=ra.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function Are(e,t,r){var i=hre.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function Pre(e,t,r){var i=ra.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function Dre(e,t,r){var i=ra.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function JT(e,t){return nr(e.getDate(),t,2)}function Ere(e,t){return nr(e.getHours(),t,2)}function Rre(e,t){return nr(e.getHours()%12||12,t,2)}function Lre(e,t){return nr(1+dc.count(Ci(e),e),t,3)}function lO(e,t){return nr(e.getMilliseconds(),t,3)}function Ire(e,t){return lO(e,t)+"000"}function Fre(e,t){return nr(e.getMonth()+1,t,2)}function Nre(e,t){return nr(e.getMinutes(),t,2)}function jre(e,t){return nr(e.getSeconds(),t,2)}function $re(e){var t=e.getDay();return t===0?7:t}function Bre(e,t){return nr(yh.count(Ci(e)-1,e),t,2)}function sO(e){var t=e.getDay();return t>=4||t===0?Dl(e):Dl.ceil(e)}function zre(e,t){return e=sO(e),nr(Dl.count(Ci(e),e)+(Ci(e).getDay()===4),t,2)}function qre(e){return e.getDay()}function Wre(e,t){return nr(td.count(Ci(e)-1,e),t,2)}function Ure(e,t){return nr(e.getFullYear()%100,t,2)}function Hre(e,t){return e=sO(e),nr(e.getFullYear()%100,t,2)}function Vre(e,t){return nr(e.getFullYear()%1e4,t,4)}function Yre(e,t){var r=e.getDay();return e=r>=4||r===0?Dl(e):Dl.ceil(e),nr(e.getFullYear()%1e4,t,4)}function Gre(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+nr(t/60|0,"0",2)+nr(t%60,"0",2)}function QT(e,t){return nr(e.getUTCDate(),t,2)}function Xre(e,t){return nr(e.getUTCHours(),t,2)}function Zre(e,t){return nr(e.getUTCHours()%12||12,t,2)}function Kre(e,t){return nr(1+hc.count(Oi(e),e),t,3)}function uO(e,t){return nr(e.getUTCMilliseconds(),t,3)}function Jre(e,t){return uO(e,t)+"000"}function Qre(e,t){return nr(e.getUTCMonth()+1,t,2)}function eae(e,t){return nr(e.getUTCMinutes(),t,2)}function tae(e,t){return nr(e.getUTCSeconds(),t,2)}function nae(e){var t=e.getUTCDay();return t===0?7:t}function rae(e,t){return nr(bh.count(Oi(e)-1,e),t,2)}function cO(e){var t=e.getUTCDay();return t>=4||t===0?El(e):El.ceil(e)}function aae(e,t){return e=cO(e),nr(El.count(Oi(e),e)+(Oi(e).getUTCDay()===4),t,2)}function iae(e){return e.getUTCDay()}function oae(e,t){return nr(nd.count(Oi(e)-1,e),t,2)}function lae(e,t){return nr(e.getUTCFullYear()%100,t,2)}function sae(e,t){return e=cO(e),nr(e.getUTCFullYear()%100,t,2)}function uae(e,t){return nr(e.getUTCFullYear()%1e4,t,4)}function cae(e,t){var r=e.getUTCDay();return e=r>=4||r===0?El(e):El.ceil(e),nr(e.getUTCFullYear()%1e4,t,4)}function fae(){return"+0000"}function ek(){return"%"}function tk(e){return+e}function nk(e){return Math.floor(+e/1e3)}var ll,fO,dO;dae({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function dae(e){return ll=dre(e),fO=ll.format,ll.parse,dO=ll.utcFormat,ll.utcParse,ll}function hae(e){return new Date(e)}function pae(e){return e instanceof Date?+e:+new Date(+e)}function lb(e,t,r,i,u,o,a,n,l,f){var s=tO(),c=s.invert,d=s.domain,h=f(".%L"),p=f(":%S"),m=f("%I:%M"),y=f("%I %p"),v=f("%a %d"),g=f("%b %d"),b=f("%B"),x=f("%Y");function _(w){return(l(w)=1?(r=1,t-1):Math.floor(r*t),u=e[i],o=e[i+1],a=i>0?e[i-1]:2*u-o,n=ir&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(u=u[0])?n[a]?n[a]+=u:n[++a]=u:(n[++a]=null,l.push({i:a,x:sv(i,u)})),r=Vm.lastIndex;return r-1}var db=Jae;function Qae(e,t,r){for(var i=-1,u=e==null?0:e.length;++i=lie&&(o=oie,a=!1,t=new tie(t));e:for(;++umo)if(!(Math.abs(s*n-l*f)>mo)||!u)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var d=r-o,h=i-a,p=n*n+l*l,m=d*d+h*h,y=Math.sqrt(p),v=Math.sqrt(c),g=u*Math.tan((cv-Math.acos((p+c-m)/(2*y*v)))/2),b=g/v,x=g/y;Math.abs(b-1)>mo&&(this._+="L"+(e+b*f)+","+(t+b*s)),this._+="A"+u+","+u+",0,0,"+ +(s*d>f*h)+","+(this._x1=e+x*n)+","+(this._y1=t+x*l)}},arc:function(e,t,r,i,u,o){e=+e,t=+t,r=+r,o=!!o;var a=r*Math.cos(i),n=r*Math.sin(i),l=e+a,f=t+n,s=1^o,c=o?i-u:u-i;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+l+","+f:(Math.abs(this._x1-l)>mo||Math.abs(this._y1-f)>mo)&&(this._+="L"+l+","+f),r&&(c<0&&(c=c%fv+fv),c>gie?this._+="A"+r+","+r+",0,1,"+s+","+(e-a)+","+(t-n)+"A"+r+","+r+",0,1,"+s+","+(this._x1=l)+","+(this._y1=f):c>mo&&(this._+="A"+r+","+r+",0,"+ +(c>=cv)+","+s+","+(this._x1=e+r*Math.cos(u))+","+(this._y1=t+r*Math.sin(u))))},rect:function(e,t,r,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function(){return this._}};function ca(e){return function(){return e}}var ak=1e-12;function kO(e){this._context=e}kO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function gb(e){return new kO(e)}function MO(e){return e[0]}function SO(e){return e[1]}function CO(){var e=MO,t=SO,r=ca(!0),i=null,u=gb,o=null;function a(n){var l,f=n.length,s,c=!1,d;for(i==null&&(o=u(d=pb())),l=0;l<=f;++l)!(l=d;--h)n.point(g[h],b[h]);n.lineEnd(),n.areaEnd()}y&&(g[c]=+e(m,c,s),b[c]=+r(m,c,s),n.point(t?+t(m,c,s):g[c],i?+i(m,c,s):b[c]))}if(v)return n=null,v+""||null}function f(){return CO().defined(u).curve(a).context(o)}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:ca(+s),t=null,l):e},l.x0=function(s){return arguments.length?(e=typeof s=="function"?s:ca(+s),l):e},l.x1=function(s){return arguments.length?(t=s==null?null:typeof s=="function"?s:ca(+s),l):t},l.y=function(s){return arguments.length?(r=typeof s=="function"?s:ca(+s),i=null,l):r},l.y0=function(s){return arguments.length?(r=typeof s=="function"?s:ca(+s),l):r},l.y1=function(s){return arguments.length?(i=s==null?null:typeof s=="function"?s:ca(+s),l):i},l.lineX0=l.lineY0=function(){return f().x(e).y(r)},l.lineY1=function(){return f().x(e).y(i)},l.lineX1=function(){return f().x(t).y(r)},l.defined=function(s){return arguments.length?(u=typeof s=="function"?s:ca(!!s),l):u},l.curve=function(s){return arguments.length?(a=s,o!=null&&(n=a(o)),l):a},l.context=function(s){return arguments.length?(s==null?o=n=null:n=a(o=s),l):o},l}var ik=Array.prototype.slice;function Qi(){}function ad(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Yh(e){this._context=e}Yh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ad(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ad(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vie(e){return new Yh(e)}function OO(e){this._context=e}OO.prototype={areaStart:Qi,areaEnd:Qi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ad(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yie(e){return new OO(e)}function AO(e){this._context=e}AO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:ad(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bie(e){return new AO(e)}function PO(e,t){this._basis=new Yh(e),this._beta=t}PO.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],u=t[0],o=e[r]-i,a=t[r]-u,n=-1,l;++n<=r;)l=n/r,this._basis.point(this._beta*e[n]+(1-this._beta)*(i+l*o),this._beta*t[n]+(1-this._beta)*(u+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const xie=function e(t){function r(i){return t===1?new Yh(i):new PO(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function id(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function mb(e,t){this._context=e,this._k=(1-t)/6}mb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:id(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:id(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const wie=function e(t){function r(i){return new mb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function vb(e,t){this._context=e,this._k=(1-t)/6}vb.prototype={areaStart:Qi,areaEnd:Qi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:id(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const _ie=function e(t){function r(i){return new vb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function yb(e,t){this._context=e,this._k=(1-t)/6}yb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:id(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Tie=function e(t){function r(i){return new yb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function bb(e,t,r){var i=e._x1,u=e._y1,o=e._x2,a=e._y2;if(e._l01_a>ak){var n=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*n-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,u=(u*n-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>ak){var f=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,s=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*f+e._x1*e._l23_2a-t*e._l12_2a)/s,a=(a*f+e._y1*e._l23_2a-r*e._l12_2a)/s}e._context.bezierCurveTo(i,u,o,a,e._x2,e._y2)}function DO(e,t){this._context=e,this._alpha=t}DO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:bb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const kie=function e(t){function r(i){return t?new DO(i,t):new mb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function EO(e,t){this._context=e,this._alpha=t}EO.prototype={areaStart:Qi,areaEnd:Qi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:bb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Mie=function e(t){function r(i){return t?new EO(i,t):new vb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function RO(e,t){this._context=e,this._alpha=t}RO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Sie=function e(t){function r(i){return t?new RO(i,t):new yb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function LO(e){this._context=e}LO.prototype={areaStart:Qi,areaEnd:Qi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Cie(e){return new LO(e)}function ok(e){return e<0?-1:1}function lk(e,t,r){var i=e._x1-e._x0,u=t-e._x1,o=(e._y1-e._y0)/(i||u<0&&-0),a=(r-e._y1)/(u||i<0&&-0),n=(o*u+a*i)/(i+u);return(ok(o)+ok(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(n))||0}function sk(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Ym(e,t,r){var i=e._x0,u=e._y0,o=e._x1,a=e._y1,n=(o-i)/3;e._context.bezierCurveTo(i+n,u+n*t,o-n,a-n*r,o,a)}function od(e){this._context=e}od.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ym(this,this._t0,sk(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ym(this,sk(this,r=lk(this,e,t)),r);break;default:Ym(this,this._t0,r=lk(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function IO(e){this._context=new FO(e)}(IO.prototype=Object.create(od.prototype)).point=function(e,t){od.prototype.point.call(this,t,e)};function FO(e){this._context=e}FO.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,u,o){this._context.bezierCurveTo(t,e,i,r,o,u)}};function Oie(e){return new od(e)}function Aie(e){return new IO(e)}function NO(e){this._context=e}NO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=uk(e),u=uk(t),o=0,a=1;a=0;--t)u[t]=(a[t]-u[t+1])/o[t];for(o[r-1]=(e[r]+u[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Die(e){return new Gh(e,.5)}function Eie(e){return new Gh(e,0)}function Rie(e){return new Gh(e,1)}function Rl(e,t){if((a=e.length)>1)for(var r=1,i,u,o=e[t[0]],a,n=o.length;r=0;)r[t]=t;return r}function Lie(e,t){return e[t]}function jO(){var e=ca([]),t=Ll,r=Rl,i=Lie;function u(o){var a=e.apply(this,arguments),n,l=o.length,f=a.length,s=new Array(f),c;for(n=0;n0){for(var r,i,u=0,o=e[0].length,a;u0)for(var r,i=0,u,o,a,n,l,f=e[t[0]].length;i0?(u[0]=a,u[1]=a+=o):o<0?(u[1]=n,u[0]=n+=o):(u[0]=0,u[1]=o)}function Fie(e,t){if((u=e.length)>0){for(var r=0,i=e[t[0]],u,o=i.length;r0)||!((o=(u=e[t[0]]).length)>0))){for(var r=0,i=1,u,o,a;io&&(o=u,r=t);return r}function $O(e){var t=e.map(BO);return Ll(e).sort(function(r,i){return t[r]-t[i]})}function BO(e){for(var t=0,r=-1,i=e.length,u;++rg&&(g=f),w=y*y*_,b=Math.max(g/w,w/v),b>x){y-=f;break}x=b}a.push(l={value:y,dice:h1?i:1)},r}(zO);function Uie(e,t,r,i,u){var o=e.children,a,n=o.length,l,f=new Array(n+1);for(f[0]=l=a=0;a=d-1){var g=o[c];g.x0=p,g.y0=m,g.x1=y,g.y1=v;return}for(var b=f[c],x=h/2+b,_=c+1,w=d-1;_>>1;f[k]v-m){var S=(p*M+y*T)/h;s(c,_,T,p,m,S,v),s(_,d,M,S,m,y,v)}else{var C=(m*M+v*T)/h;s(c,_,T,p,m,y,C),s(_,d,M,p,C,y,v)}}}function Hie(e,t,r,i,u){(e.depth&1?Zh:Xh)(e,t,r,i,u)}const Vie=function e(t){function r(i,u,o,a,n){if((l=i._squarify)&&l.ratio===t)for(var l,f,s,c,d=-1,h,p=l.length,m=i.value;++d1?i:1)},r}(zO);var Gm=new Date,Xm=new Date;function aa(e,t,r,i){function u(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return u.floor=function(o){return e(o=new Date(+o)),o},u.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},u.round=function(o){var a=u(o),n=u.ceil(o);return o-a0))return l;do l.push(f=new Date(+o)),t(o,n),e(o);while(f=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;t(a,-1),!o(a););else for(;--n>=0;)for(;t(a,1),!o(a););})},r&&(u.count=function(o,a){return Gm.setTime(+o),Xm.setTime(+a),e(Gm),e(Xm),Math.floor(r(Gm,Xm))},u.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?u.filter(i?function(a){return i(a)%o===0}:function(a){return u.count(0,a)%o===0}):u}),u}var Wu=aa(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Wu.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?aa(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):Wu};Wu.range;var ld=1e3,Ro=6e4,sd=36e5,WO=864e5,UO=6048e5,hv=aa(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*ld)},function(e,t){return(t-e)/ld},function(e){return e.getUTCSeconds()});hv.range;var HO=aa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ld)},function(e,t){e.setTime(+e+t*Ro)},function(e,t){return(t-e)/Ro},function(e){return e.getMinutes()});HO.range;var VO=aa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ld-e.getMinutes()*Ro)},function(e,t){e.setTime(+e+t*sd)},function(e,t){return(t-e)/sd},function(e){return e.getHours()});VO.range;var Kh=aa(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ro)/WO},function(e){return e.getDate()-1});Kh.range;function Xo(e){return aa(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ro)/UO})}var ud=Xo(0),Uu=Xo(1),YO=Xo(2),GO=Xo(3),Lo=Xo(4),XO=Xo(5),ZO=Xo(6);ud.range;Uu.range;YO.range;GO.range;Lo.range;XO.range;ZO.range;var KO=aa(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});KO.range;var eo=aa(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});eo.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:aa(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};eo.range;var JO=aa(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ro)},function(e,t){return(t-e)/Ro},function(e){return e.getUTCMinutes()});JO.range;var QO=aa(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*sd)},function(e,t){return(t-e)/sd},function(e){return e.getUTCHours()});QO.range;var Jh=aa(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/WO},function(e){return e.getUTCDate()-1});Jh.range;function Zo(e){return aa(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/UO})}var cd=Zo(0),Hu=Zo(1),e8=Zo(2),t8=Zo(3),Io=Zo(4),n8=Zo(5),r8=Zo(6);cd.range;Hu.range;e8.range;t8.range;Io.range;n8.range;r8.range;var a8=aa(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});a8.range;var to=aa(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});to.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:aa(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};to.range;function Zm(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Km(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function nu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Yie(e){var t=e.dateTime,r=e.date,i=e.time,u=e.periods,o=e.days,a=e.shortDays,n=e.months,l=e.shortMonths,f=ru(u),s=au(u),c=ru(o),d=au(o),h=ru(a),p=au(a),m=ru(n),y=au(n),v=ru(l),g=au(l),b={a:A,A:z,b:B,B:$,c:null,d:gk,e:gk,f:moe,g:Soe,G:Ooe,H:hoe,I:poe,j:goe,L:i8,m:voe,M:yoe,p:j,q:N,Q:yk,s:bk,S:boe,u:xoe,U:woe,V:_oe,w:Toe,W:koe,x:null,X:null,y:Moe,Y:Coe,Z:Aoe,"%":vk},x={a:E,A:W,b:G,B:L,c:null,d:mk,e:mk,f:Roe,g:Woe,G:Hoe,H:Poe,I:Doe,j:Eoe,L:l8,m:Loe,M:Ioe,p:q,q:H,Q:yk,s:bk,S:Foe,u:Noe,U:joe,V:$oe,w:Boe,W:zoe,x:null,X:null,y:qoe,Y:Uoe,Z:Voe,"%":vk},_={a:S,A:C,b:P,B:D,c:O,d:hk,e:hk,f:uoe,g:dk,G:fk,H:pk,I:pk,j:ioe,L:soe,m:aoe,M:ooe,p:M,q:roe,Q:foe,s:doe,S:loe,u:Jie,U:Qie,V:eoe,w:Kie,W:toe,x:R,X:F,y:dk,Y:fk,Z:noe,"%":coe};b.x=w(r,b),b.X=w(i,b),b.c=w(t,b),x.x=w(r,x),x.X=w(i,x),x.c=w(t,x);function w(V,te){return function(ee){var U=[],Q=-1,Y=0,Z=V.length,X,re,ie;for(ee instanceof Date||(ee=new Date(+ee));++Q53)return null;"w"in U||(U.w=1),"Z"in U?(Y=Km(nu(U.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?Hu.ceil(Y):Hu(Y),Y=Jh.offset(Y,(U.V-1)*7),U.y=Y.getUTCFullYear(),U.m=Y.getUTCMonth(),U.d=Y.getUTCDate()+(U.w+6)%7):(Y=Zm(nu(U.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?Uu.ceil(Y):Uu(Y),Y=Kh.offset(Y,(U.V-1)*7),U.y=Y.getFullYear(),U.m=Y.getMonth(),U.d=Y.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),Z="Z"in U?Km(nu(U.y,0,1)).getUTCDay():Zm(nu(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(Z+5)%7:U.w+U.U*7-(Z+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,Km(U)):Zm(U)}}function T(V,te,ee,U){for(var Q=0,Y=te.length,Z=ee.length,X,re;Q=Z)return-1;if(X=te.charCodeAt(Q++),X===37){if(X=te.charAt(Q++),re=_[X in ck?te.charAt(Q++):X],!re||(U=re(V,ee,U))<0)return-1}else if(X!=ee.charCodeAt(U++))return-1}return U}function M(V,te,ee){var U=f.exec(te.slice(ee));return U?(V.p=s[U[0].toLowerCase()],ee+U[0].length):-1}function S(V,te,ee){var U=h.exec(te.slice(ee));return U?(V.w=p[U[0].toLowerCase()],ee+U[0].length):-1}function C(V,te,ee){var U=c.exec(te.slice(ee));return U?(V.w=d[U[0].toLowerCase()],ee+U[0].length):-1}function P(V,te,ee){var U=v.exec(te.slice(ee));return U?(V.m=g[U[0].toLowerCase()],ee+U[0].length):-1}function D(V,te,ee){var U=m.exec(te.slice(ee));return U?(V.m=y[U[0].toLowerCase()],ee+U[0].length):-1}function O(V,te,ee){return T(V,t,te,ee)}function R(V,te,ee){return T(V,r,te,ee)}function F(V,te,ee){return T(V,i,te,ee)}function A(V){return a[V.getDay()]}function z(V){return o[V.getDay()]}function B(V){return l[V.getMonth()]}function $(V){return n[V.getMonth()]}function j(V){return u[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function E(V){return a[V.getUTCDay()]}function W(V){return o[V.getUTCDay()]}function G(V){return l[V.getUTCMonth()]}function L(V){return n[V.getUTCMonth()]}function q(V){return u[+(V.getUTCHours()>=12)]}function H(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=w(V+="",b);return te.toString=function(){return V},te},parse:function(V){var te=k(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=w(V+="",x);return te.toString=function(){return V},te},utcParse:function(V){var te=k(V+="",!0);return te.toString=function(){return V},te}}}var ck={"-":"",_:" ",0:"0"},ia=/^\s*\d+/,Gie=/^%/,Xie=/[\\^$*+?|[\]().{}]/g;function rr(e,t,r){var i=e<0?"-":"",u=(i?-e:e)+"",o=u.length;return i+(o68?1900:2e3),r+i[0].length):-1}function noe(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function roe(e,t,r){var i=ia.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function aoe(e,t,r){var i=ia.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function hk(e,t,r){var i=ia.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function ioe(e,t,r){var i=ia.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function pk(e,t,r){var i=ia.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function ooe(e,t,r){var i=ia.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function loe(e,t,r){var i=ia.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function soe(e,t,r){var i=ia.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function uoe(e,t,r){var i=ia.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function coe(e,t,r){var i=Gie.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function foe(e,t,r){var i=ia.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function doe(e,t,r){var i=ia.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function gk(e,t){return rr(e.getDate(),t,2)}function hoe(e,t){return rr(e.getHours(),t,2)}function poe(e,t){return rr(e.getHours()%12||12,t,2)}function goe(e,t){return rr(1+Kh.count(eo(e),e),t,3)}function i8(e,t){return rr(e.getMilliseconds(),t,3)}function moe(e,t){return i8(e,t)+"000"}function voe(e,t){return rr(e.getMonth()+1,t,2)}function yoe(e,t){return rr(e.getMinutes(),t,2)}function boe(e,t){return rr(e.getSeconds(),t,2)}function xoe(e){var t=e.getDay();return t===0?7:t}function woe(e,t){return rr(ud.count(eo(e)-1,e),t,2)}function o8(e){var t=e.getDay();return t>=4||t===0?Lo(e):Lo.ceil(e)}function _oe(e,t){return e=o8(e),rr(Lo.count(eo(e),e)+(eo(e).getDay()===4),t,2)}function Toe(e){return e.getDay()}function koe(e,t){return rr(Uu.count(eo(e)-1,e),t,2)}function Moe(e,t){return rr(e.getFullYear()%100,t,2)}function Soe(e,t){return e=o8(e),rr(e.getFullYear()%100,t,2)}function Coe(e,t){return rr(e.getFullYear()%1e4,t,4)}function Ooe(e,t){var r=e.getDay();return e=r>=4||r===0?Lo(e):Lo.ceil(e),rr(e.getFullYear()%1e4,t,4)}function Aoe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rr(t/60|0,"0",2)+rr(t%60,"0",2)}function mk(e,t){return rr(e.getUTCDate(),t,2)}function Poe(e,t){return rr(e.getUTCHours(),t,2)}function Doe(e,t){return rr(e.getUTCHours()%12||12,t,2)}function Eoe(e,t){return rr(1+Jh.count(to(e),e),t,3)}function l8(e,t){return rr(e.getUTCMilliseconds(),t,3)}function Roe(e,t){return l8(e,t)+"000"}function Loe(e,t){return rr(e.getUTCMonth()+1,t,2)}function Ioe(e,t){return rr(e.getUTCMinutes(),t,2)}function Foe(e,t){return rr(e.getUTCSeconds(),t,2)}function Noe(e){var t=e.getUTCDay();return t===0?7:t}function joe(e,t){return rr(cd.count(to(e)-1,e),t,2)}function s8(e){var t=e.getUTCDay();return t>=4||t===0?Io(e):Io.ceil(e)}function $oe(e,t){return e=s8(e),rr(Io.count(to(e),e)+(to(e).getUTCDay()===4),t,2)}function Boe(e){return e.getUTCDay()}function zoe(e,t){return rr(Hu.count(to(e)-1,e),t,2)}function qoe(e,t){return rr(e.getUTCFullYear()%100,t,2)}function Woe(e,t){return e=s8(e),rr(e.getUTCFullYear()%100,t,2)}function Uoe(e,t){return rr(e.getUTCFullYear()%1e4,t,4)}function Hoe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Io(e):Io.ceil(e),rr(e.getUTCFullYear()%1e4,t,4)}function Voe(){return"+0000"}function vk(){return"%"}function yk(e){return+e}function bk(e){return Math.floor(+e/1e3)}var sl,wb,u8,c8;Yoe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Yoe(e){return sl=Yie(e),wb=sl.format,u8=sl.parse,sl.utcFormat,c8=sl.utcParse,sl}var iu={},ou={},xk;function Goe(){if(xk)return ou;xk=1,ou.__esModule=!0,ou.default=void 0;var e=function(i){if(typeof i=="string")return i;if(i)return i.displayName||i.name||"Component"},t=e;return ou.default=t,ou}var wk;function as(){if(wk)return iu;wk=1;var e=vn;iu.__esModule=!0,iu.default=void 0;var t=e(Goe()),r=function(o,a){return a+"("+(0,t.default)(o)+")"},i=r;return iu.default=i,iu}var Ii={},lu={},_k;function f8(){if(_k)return lu;_k=1,lu.__esModule=!0,lu.default=void 0;var e=function(i,u){return function(o){return o[i]=u,o}},t=e;return lu.default=t,lu}var Xoe=vn;Ii.__esModule=!0;var _b=Ii.default=void 0,Zoe=Xoe(f8()),Koe=function(t){return(0,Zoe.default)("displayName",t)},Joe=Koe;_b=Ii.default=Joe;var su={},Tk;function Qoe(){if(Tk)return su;Tk=1;var e=vn;su.__esModule=!0,su.default=void 0;var t=$e;e(Ii),e(as());var r=function(o){return function(a){var n=(0,t.createFactory)(a),l=function(s){return n(o(s))};return l}},i=r;return su.default=i,su}var Qh=vn;Qh(hr());Qh(as());Qh(Ii);Qh(Qoe());function ele(e,t){for(var r=-1,i=e==null?0:e.length;++rn))return!1;var f=o.get(e),s=o.get(t);if(f&&s)return f==t&&s==e;var c=-1,d=!0,h=r&ole?new nle:void 0;for(o.set(e,t),o.set(t,e);++c1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(mce,`{ +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=k8,t.componentWillReceiveProps=M8),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=S8;var n=t.componentDidUpdate;t.componentDidUpdate=function(f,s,c){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:c;n.call(this,f,s,d)}}return e}const Kse=Object.freeze(Object.defineProperty({__proto__:null,polyfill:Zse},Symbol.toStringTag,{value:"Module"})),Jse=qn(Kse);var uu={},qk;function Qse(){if(qk)return uu;qk=1,uu.__esModule=!0,uu.default=void 0;var e=function(i,u){for(var o={},a=0;a1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(fce,`{ /* [wrapped with `+t+`] */ -`)}var yce=vce;function bce(e,t){for(var r=-1,i=e==null?0:e.length;++r1&&g.reverse(),s&&l0&&r(n)?t>1?H8(n,t-1,r,i,c):Gde(c,n):i||(c[c.length]=n)}return c}var Pb=H8,Zde=Pb;function Kde(e){var t=e==null?0:e.length;return t?Zde(e,1):[]}var Jde=Kde,Qde=Jde,ehe=q6,the=q1;function nhe(e){return the(ehe(e,void 0,Qde),e+"")}var V8=nhe,rhe=Wde,ahe=V8,ihe=ahe(function(e,t){return e==null?{}:rhe(e,t)}),ohe=ihe;const lhe=ir(ohe);var Mo=function(){};function Fo(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return $e.useMemo(function(){var c=Lhe({},wv,i);return{margin:c,innerWidth:t-c.left-c.right,innerHeight:r-c.top-c.bottom,outerWidth:t,outerHeight:r}},[t,r,i.top,i.right,i.bottom,i.left])},Fhe=function(t){return $e.useMemo(function(){return X8(G8,t)},[t])},Nhe=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?xb(t.slice("5")):rs(t):function(r){return r}},Vu=function(t){return $e.useMemo(function(){return Nhe(t)},[t])},Eb=$e.createContext(),jhe={},J8=function(t){var r=t.theme,i=r===void 0?jhe:r,c=t.children,o=Fhe(i);return et.createElement(Eb.Provider,{value:o},c)};J8.propTypes={children:oe.node.isRequired,theme:oe.object};var Hr=function(){return $e.useContext(Eb)};function hf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hf=function(r){return typeof r}:hf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},hf(e)}function _v(){return _v=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function zhe(e,t){if(e==null)return{};var r={},i=Object.keys(e),c,o;for(o=0;o=0)&&(r[c]=e[c]);return r}function qhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Whe(e,t){for(var r=0;r"u"||l[f].value!==this.newInters[f].value)&&(this.newInters[f]=l[f],this.stepValues[f]=this.currentStepValues[f]+1,this.stepInterpolators[f]=this.newInters[f].interpolator(this.oldValues[f],this.newInters[f].value)),l[f]=Pn(this.stepValues[f],this.newInters[f].config));return et.createElement(Si,_v({},n,{style:l}),function(s){var u={};for(var d in s)if(i.stepValues[d]){i.currentStepValues[d]=s[d];var h=i.currentStepValues[d]-i.stepValues[d]+1;i.oldValues[d]=u[d]=i.stepInterpolators[d](h)}return a($he({},s,u))})}}]),t}($e.PureComponent);bo(op,"propTypes",{children:oe.func.isRequired,style:oe.func.isRequired});var Q8=$e.createContext(),lp=function(t){var r=t.children,i=t.animate,c=t.stiffness,o=t.damping,a=$e.useMemo(function(){return{animate:i,springConfig:{stiffness:c,damping:o}}},[i,c,o]);return et.createElement(Q8.Provider,{value:a},r)};lp.propTypes={children:oe.node.isRequired,animate:oe.bool.isRequired,stiffness:oe.number.isRequired,damping:oe.number.isRequired};lp.defaultProps={animate:!0,stiffness:90,damping:15};var Oa=function(){return $e.useContext(Q8)};function Ghe(e){for(var t=1;t0&&a>0;return et.createElement(Fu,{bounds:!0,onResize:function(f){i.setState({dimensions:f.bounds})}},function(l){var f=l.measureRef;return et.createElement("div",{ref:f,style:{width:"100%",height:"100%"}},n&&i.props.children({width:o,height:a}))})}}]),t}($e.Component);tA(up,"propTypes",{children:oe.func.isRequired});var nA=function(t){var r=t.id,i=t.colors;return et.createElement("linearGradient",{id:r,x1:0,x2:0,y1:0,y2:1},i.map(function(c){var o=c.offset,a=c.color,n=c.opacity;return et.createElement("stop",{key:o,offset:"".concat(o,"%"),stopColor:a,stopOpacity:n!==void 0?n:1})}))};nA.propTypes={id:oe.string.isRequired,colors:oe.arrayOf(oe.shape({offset:oe.number.isRequired,color:oe.string.isRequired})).isRequired};var rA={linearGradient:nA},cp=$e.memo(function(e){var t=e.id,r=e.background,i=e.color,c=e.size,o=e.padding,a=e.stagger,n=c+o,l=c/2,f=o/2;return a===!0&&(n=c*2+o*2),et.createElement("pattern",{id:t,width:n,height:n,patternUnits:"userSpaceOnUse"},et.createElement("rect",{width:n,height:n,fill:r}),et.createElement("circle",{cx:f+l,cy:f+l,r:l,fill:i}),a&&et.createElement("circle",{cx:o*1.5+c+l,cy:o*1.5+c+l,r:l,fill:i}))});cp.displayName="PatternDots";cp.propTypes={id:oe.string.isRequired,color:oe.string.isRequired,background:oe.string.isRequired,size:oe.number.isRequired,padding:oe.number.isRequired,stagger:oe.bool.isRequired};cp.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var Cv=function(t){return t*Math.PI/180},lpe=function(t){return 180*t/Math.PI},spe=function(t,r){return{x:Math.cos(t)*r,y:Math.sin(t)*r}},upe=function(t){var r=t%360;return r<0&&(r+=360),r},cpe={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},fp=$e.memo(function(e){var t=e.id,r=e.spacing,i=e.rotation,c=e.background,o=e.color,a=e.lineWidth,n=Math.round(i)%360,l=Math.abs(r);n>180?n=n-360:n>90?n=n-180:n<-180?n=n+360:n<-90&&(n=n+180);var f=l,s=l,u;return n===0?u=` +`)}var hce=dce;function pce(e,t){for(var r=-1,i=e==null?0:e.length;++r1&&g.reverse(),s&&l0&&r(n)?t>1?U8(n,t-1,r,i,u):Wde(u,n):i||(u[u.length]=n)}return u}var Db=U8,Hde=Db;function Vde(e){var t=e==null?0:e.length;return t?Hde(e,1):[]}var Yde=Vde,Gde=Yde,Xde=z6,Zde=W1;function Kde(e){return Zde(Xde(e,void 0,Gde),e+"")}var H8=Kde,Jde=jde,Qde=H8,ehe=Qde(function(e,t){return e==null?{}:Jde(e,t)}),the=ehe;const nhe=ir(the);var Mo=function(){};function Fo(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return $e.useMemo(function(){var u=Ahe({},xv,i);return{margin:u,innerWidth:t-u.left-u.right,innerHeight:r-u.top-u.bottom,outerWidth:t,outerHeight:r}},[t,r,i.top,i.right,i.bottom,i.left])},Dhe=function(t){return $e.useMemo(function(){return G8(Y8,t)},[t])},Ehe=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?wb(t.slice("5")):rs(t):function(r){return r}},Vu=function(t){return $e.useMemo(function(){return Ehe(t)},[t])},Rb=$e.createContext(),Rhe={},K8=function(t){var r=t.theme,i=r===void 0?Rhe:r,u=t.children,o=Dhe(i);return et.createElement(Rb.Provider,{value:o},u)};K8.propTypes={children:oe.node.isRequired,theme:oe.object};var Hr=function(){return $e.useContext(Rb)};function hf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hf=function(r){return typeof r}:hf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},hf(e)}function wv(){return wv=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Fhe(e,t){if(e==null)return{};var r={},i=Object.keys(e),u,o;for(o=0;o=0)&&(r[u]=e[u]);return r}function Nhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jhe(e,t){for(var r=0;r"u"||l[f].value!==this.newInters[f].value)&&(this.newInters[f]=l[f],this.stepValues[f]=this.currentStepValues[f]+1,this.stepInterpolators[f]=this.newInters[f].interpolator(this.oldValues[f],this.newInters[f].value)),l[f]=Pn(this.stepValues[f],this.newInters[f].config));return et.createElement(Si,wv({},n,{style:l}),function(s){var c={};for(var d in s)if(i.stepValues[d]){i.currentStepValues[d]=s[d];var h=i.currentStepValues[d]-i.stepValues[d]+1;i.oldValues[d]=c[d]=i.stepInterpolators[d](h)}return a(Lhe({},s,c))})}}]),t}($e.PureComponent);bo(op,"propTypes",{children:oe.func.isRequired,style:oe.func.isRequired});var J8=$e.createContext(),lp=function(t){var r=t.children,i=t.animate,u=t.stiffness,o=t.damping,a=$e.useMemo(function(){return{animate:i,springConfig:{stiffness:u,damping:o}}},[i,u,o]);return et.createElement(J8.Provider,{value:a},r)};lp.propTypes={children:oe.node.isRequired,animate:oe.bool.isRequired,stiffness:oe.number.isRequired,damping:oe.number.isRequired};lp.defaultProps={animate:!0,stiffness:90,damping:15};var Oa=function(){return $e.useContext(J8)};function Whe(e){for(var t=1;t0&&a>0;return et.createElement(Nu,{bounds:!0,onResize:function(f){i.setState({dimensions:f.bounds})}},function(l){var f=l.measureRef;return et.createElement("div",{ref:f,style:{width:"100%",height:"100%"}},n&&i.props.children({width:o,height:a}))})}}]),t}($e.Component);eA(up,"propTypes",{children:oe.func.isRequired});var tA=function(t){var r=t.id,i=t.colors;return et.createElement("linearGradient",{id:r,x1:0,x2:0,y1:0,y2:1},i.map(function(u){var o=u.offset,a=u.color,n=u.opacity;return et.createElement("stop",{key:o,offset:"".concat(o,"%"),stopColor:a,stopOpacity:n!==void 0?n:1})}))};tA.propTypes={id:oe.string.isRequired,colors:oe.arrayOf(oe.shape({offset:oe.number.isRequired,color:oe.string.isRequired})).isRequired};var nA={linearGradient:tA},cp=$e.memo(function(e){var t=e.id,r=e.background,i=e.color,u=e.size,o=e.padding,a=e.stagger,n=u+o,l=u/2,f=o/2;return a===!0&&(n=u*2+o*2),et.createElement("pattern",{id:t,width:n,height:n,patternUnits:"userSpaceOnUse"},et.createElement("rect",{width:n,height:n,fill:r}),et.createElement("circle",{cx:f+l,cy:f+l,r:l,fill:i}),a&&et.createElement("circle",{cx:o*1.5+u+l,cy:o*1.5+u+l,r:l,fill:i}))});cp.displayName="PatternDots";cp.propTypes={id:oe.string.isRequired,color:oe.string.isRequired,background:oe.string.isRequired,size:oe.number.isRequired,padding:oe.number.isRequired,stagger:oe.bool.isRequired};cp.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var Sv=function(t){return t*Math.PI/180},npe=function(t){return 180*t/Math.PI},rpe=function(t,r){return{x:Math.cos(t)*r,y:Math.sin(t)*r}},ape=function(t){var r=t%360;return r<0&&(r+=360),r},ipe={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},fp=$e.memo(function(e){var t=e.id,r=e.spacing,i=e.rotation,u=e.background,o=e.color,a=e.lineWidth,n=Math.round(i)%360,l=Math.abs(r);n>180?n=n-360:n>90?n=n-180:n<-180?n=n+360:n<-90&&(n=n+180);var f=l,s=l,c;return n===0?c=` M 0 0 L `.concat(f,` 0 M 0 `).concat(s," L ").concat(f," ").concat(s,` - `):n===90?u=` + `):n===90?c=` M 0 0 L 0 `.concat(s,` M `).concat(f," 0 L ").concat(f," ").concat(s,` - `):(f=Math.abs(l/Math.sin(Cv(n))),s=l/Math.sin(Cv(90-n)),n>0?u=` + `):(f=Math.abs(l/Math.sin(Sv(n))),s=l/Math.sin(Sv(90-n)),n>0?c=` M 0 `.concat(-s," L ").concat(f*2," ").concat(s,` M `).concat(-f," ").concat(-s," L ").concat(f," ").concat(s,` M `).concat(-f," 0 L ").concat(f," ").concat(s*2,` - `):u=` + `):c=` M `.concat(-f," ").concat(s," L ").concat(f," ").concat(-s,` M `).concat(-f," ").concat(s*2," L ").concat(f*2," ").concat(-s,` M 0 `).concat(s*2," L ").concat(f*2,` 0 - `)),et.createElement("pattern",{id:t,width:f,height:s,patternUnits:"userSpaceOnUse"},et.createElement("rect",{width:f,height:s,fill:c,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),et.createElement("path",{d:u,strokeWidth:a,stroke:o,strokeLinecap:"square"}))});fp.displayName="PatternLines";fp.propTypes={id:oe.string.isRequired,spacing:oe.number.isRequired,rotation:oe.number.isRequired,background:oe.string.isRequired,color:oe.string.isRequired,lineWidth:oe.number.isRequired};fp.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var dp=$e.memo(function(e){var t=e.id,r=e.background,i=e.color,c=e.size,o=e.padding,a=e.stagger,n=c+o,l=o/2;return a===!0&&(n=c*2+o*2),et.createElement("pattern",{id:t,width:n,height:n,patternUnits:"userSpaceOnUse"},et.createElement("rect",{width:n,height:n,fill:r}),et.createElement("rect",{x:l,y:l,width:c,height:c,fill:i}),a&&et.createElement("rect",{x:o*1.5+c,y:o*1.5+c,width:c,height:c,fill:i}))});dp.displayName="PatternSquares";dp.propTypes={id:oe.string.isRequired,color:oe.string.isRequired,background:oe.string.isRequired,size:oe.number.isRequired,padding:oe.number.isRequired,stagger:oe.bool.isRequired};dp.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var aA={patternDots:cp,patternLines:fp,patternSquares:dp};function fpe(e,t){if(e==null)return{};var r=dpe(e,t),i,c;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function dpe(e,t){if(e==null)return{};var r={},i=Object.keys(e),c,o;for(o=0;o=0)&&(r[c]=e[c]);return r}function iA(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,r=t===void 0?"theme":t,i=e.destKey,c=i===void 0?"theme":i;return Ko(tp(vM({},r,oe.object)),pa([r],function(o){return vM({},c,X8(G8,o[r]))}))};function gf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gf=function(r){return typeof r}:gf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},gf(e)}function wpe(e,t){if(e==null)return{};var r=_pe(e,t),i,c;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function _pe(e,t){if(e==null)return{};var r={},i=Object.keys(e),c,o;for(o=0;o=0)&&(r[c]=e[c]);return r}function Tpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kpe(e,t){for(var r=0;r3&&arguments[3]!==void 0?arguments[3]:{},o=c.dataKey,a=c.colorKey,n=a===void 0?"color":a,l=c.targetKey,f=l===void 0?"fill":l,s=[],u={};return t.length&&r.length&&(s=Dpe(t),r.forEach(function(d){for(var h=function(v){var g=i[v],b=g.id,x=g.match;if(Npe(x,d,o)){var _=t.find(function(O){var R=O.id;return R===b});if(_){if(Fpe.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var w=Zi(d,n),k=_.background,T=_.color,M=b;_.background==="inherit"&&(M="".concat(M,".bg.").concat(w),k=w),_.color==="inherit"&&(M="".concat(M,".fg.").concat(w),T=w),_o(d,f,"url(#".concat(M,")")),u[M]||(s.push(o0({},_,{id:M,background:k,color:T})),u[M]=1)}else _o(d,f,"url(#".concat(b,")"));else if(Ipe.includes(_.type)){var S=_.colors.map(function(O){var R=O.color;return R});if(S.includes("inherit")){var C=Zi(d,n),P=b,D=o0({},_,{colors:_.colors.map(function(O,R){return O.color!=="inherit"?O:(P="".concat(P,".").concat(R,".").concat(C),o0({},O,{color:O.color==="inherit"?C:O.color}))})});D.id=P,_o(d,f,"url(#".concat(P,")")),u[P]||(s.push(D),u[P]=1)}else _o(d,f,"url(#".concat(b,")"))}}return"break"}},p=0;p-1}function hge(e,t){var r=this.__data__,i=pp(r,e);return i<0?r.push([e,t]):r[i][1]=t,this}ls.prototype.clear=uge;ls.prototype.delete=cge;ls.prototype.get=fge;ls.prototype.has=dge;ls.prototype.set=hge;function Qo(e){var t=-1,r=e?e.length:0;for(this.clear();++t11))throw new Error("Invalid size '".concat(t.size,"' for diverging color scheme '").concat(t.scheme,"', must be between 3~11"));var l=To(mf[t.scheme][t.size||11]),f=function(h){return l(i(h))};return f.scale=l,f}if(Qge(t.scheme)){if(t.size!==void 0&&(t.size<3||t.size>9))throw new Error("Invalid size '".concat(t.size,"' for sequential color scheme '").concat(t.scheme,"', must be between 3~9"));var s=To(mf[t.scheme][t.size||9]),u=function(h){return s(i(h))};return u.scale=s,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},AA=function(t,r){return $e.useMemo(function(){return OA(t,r)},[t,r])};function tme(e,t){return ame(e)||rme(e,t)||nme()}function nme(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function rme(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var r=[],i=!0,c=!1,o=void 0;try{for(var a=e[Symbol.iterator](),n;!(i=(n=a.next()).done)&&(r.push(n.value),!(t&&r.length===t));i=!0);}catch(l){c=!0,o=l}finally{try{!i&&a.return!=null&&a.return()}finally{if(c)throw o}}return r}}function ame(e){if(Array.isArray(e))return e}var vf=function(t,r){if(typeof t=="function")return function(d){return t(d)};if(kA(t)){if(t.theme!==void 0){if(r===void 0)throw new Error("Unable to use color from theme as no theme was provided");var i=pd(r,t.theme);if(i===void 0)throw new Error("Color from theme is undefined at path: '".concat(t.theme,"'"));return function(){return i}}if(t.from!==void 0){var c=function(h){return pd(h,t.from)};if(Array.isArray(t.modifiers)){var o=[],a=!0,n=!1,l=void 0;try{for(var f=function(){var h=u.value,p=tme(h,2),m=p[0],y=p[1];if(m==="brighter")o.push(function(v){return v.brighter(y)});else if(m==="darker")o.push(function(v){return v.darker(y)});else if(m==="opacity")o.push(function(v){return v.opacity=y,v});else throw new Error("Invalid color modifier: '".concat(m,"', must be one of: 'brighter', 'darker', 'opacity'"))},s=t.modifiers[Symbol.iterator](),u;!(a=(u=s.next()).done);a=!0)f()}catch(d){n=!0,l=d}finally{try{!a&&s.return!=null&&s.return()}finally{if(n)throw l}}return o.length===0?c:function(d){return o.reduce(function(h,p){return p(h)},Po(c(d))).toString()}}return c}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return t}},gd=function(t,r){return $e.useMemo(function(){return vf(t,r)},[t,r])},zb=oe.oneOfType([oe.func,oe.arrayOf(oe.string),oe.shape({scheme:oe.oneOf(eme).isRequired,size:oe.number}),oe.shape({datum:oe.string.isRequired}),oe.string]),ime=oe.oneOfType([oe.func,oe.string]),s0=oe.oneOfType([oe.string,oe.func,oe.shape({theme:oe.string.isRequired}),oe.shape({from:oe.string.isRequired,modifiers:oe.arrayOf(oe.array)})]),ome=Li,lme=Fa,sme="[object Number]";function ume(e){return typeof e=="number"||lme(e)&&ome(e)==sme}var cme=ume;const mp=ir(cme);function fme(e){for(var t=1;t0?(v=d.align.right,g=d.baseline.center):(c==="after"&&l>0||c==="before"&&l<0)&&(v=d.align.left,g=d.baseline.center)):(y=function(_){return{x:0,y:h(_)}},p.lineX=a*(c==="after"?1:-1),m.textX=(a+n)*(c==="after"?1:-1),c==="after"?v=d.align.left:v=d.align.right);var b=u.map(function(x){return fme({key:x,value:x},y(x),p,m)});return{ticks:b,textAlign:v,textBaseline:g}},LA=function(t,r){if(!t||typeof t=="function")return t;if(r.type==="time"){var i=xb(t);return function(c){return i(new Date(c))}}return rs(t)},Ev=function(t){var r=t.width,i=t.height,c=t.scale,o=t.axis,a=t.values,n=Array.isArray(a)?a:void 0,l=mp(a)?a:void 0,f=n||EA(c,l),s=c.bandwidth?PA(c):c,u;return o==="x"?u=f.map(function(d){return{key:"".concat(d),x1:s(d),x2:s(d),y1:0,y2:i}}):o==="y"&&(u=f.map(function(d){return{key:"".concat(d),x1:0,x2:r,y1:s(d),y2:s(d)}})),u},IA={ticksPosition:oe.oneOf(["before","after"]),tickValues:oe.oneOfType([oe.number,oe.arrayOf(oe.oneOfType([oe.number,oe.string,oe.instanceOf(Date)])),oe.string]),tickSize:oe.number,tickPadding:oe.number,tickRotation:oe.number,format:oe.oneOfType([oe.func,oe.string]),renderTick:oe.func,legend:oe.node,legendPosition:oe.oneOf(["start","middle","end"]),legendOffset:oe.number},ga=oe.shape(IA);function Rv(){return Rv=Object.assign||function(e){for(var t=1;t0&&(t.lineWidth=T.axis.domain.line.strokeWidth,t.lineCap="square",t.strokeStyle=T.axis.domain.line.stroke,t.beginPath(),t.moveTo(0,0),t.lineTo(i==="x"?f:0,i==="x"?0:f),t.stroke()),S.forEach(function(A){T.axis.ticks.line.strokeWidth>0&&(t.lineWidth=T.axis.ticks.line.strokeWidth,t.lineCap="square",t.strokeStyle=T.axis.ticks.line.stroke,t.beginPath(),t.moveTo(A.x,A.y),t.lineTo(A.x+A.lineX,A.y+A.lineY),t.stroke());var z=g!==void 0?g(A.value):A.value;t.save(),t.translate(A.x+A.textX,A.y+A.textY),t.rotate(kM(v)),t.fillStyle=T.axis.ticks.text.fill,t.fillText(z,0,0),t.restore()}),b!==void 0){var D=0,O=0,R=0,F;i==="y"?(R=-90,D=k,_==="start"?(F="start",O=f):_==="middle"?(F="center",O=f/2):_==="end"&&(F="end")):(O=k,_==="start"?F="start":_==="middle"?(F="center",D=f/2):_==="end"&&(F="end",D=f)),t.translate(D,O),t.rotate(kM(R)),t.font="".concat(T.axis.legend.text.fontWeight?"".concat(T.axis.legend.text.fontWeight," "):"").concat(T.axis.legend.text.fontSize,"px ").concat(T.axis.legend.text.fontFamily),t.fillStyle=T.axis.legend.text.fill,t.textAlign=F,t.textBaseline="middle",t.fillText(b,0,0)}t.restore()},Mme=["top","right","bottom","left"],Yb=function(t,r){var i=r.xScale,c=r.yScale,o=r.width,a=r.height,n=r.top,l=r.right,f=r.bottom,s=r.left,u=r.theme,d={top:n,right:l,bottom:f,left:s};Mme.forEach(function(h){var p=d[h];if(!p)return null;var m=h==="top"||h==="bottom",y=h==="top"||h==="left"?"before":"after",v=m?i:c,g=LA(p.format,v);kme(t,_me({},p,{axis:m?"x":"y",x:h==="right"?o:0,y:h==="bottom"?a:0,scale:v,format:g,length:m?o:a,ticksPosition:y,theme:u}))})},Il=function(t,r){var i=r.width,c=r.height,o=r.scale,a=r.axis,n=r.values,l=Ev({width:i,height:c,scale:o,axis:a,values:n});l.forEach(function(f){t.beginPath(),t.moveTo(f.x1,f.y1),t.lineTo(f.x2,f.y2),t.stroke()})},vp="row",yp="column",Gb="top",Xb="top-right",Zb="right",Kb="bottom-right",Jb="bottom",Qb="bottom-left",ex="left",$A="top-left",tx="center",bp="left-to-right",xp="right-to-left",wp="top-to-bottom",_p="bottom-to-top";function Sme(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function lpe(e,t){if(e==null)return{};var r={},i=Object.keys(e),u,o;for(o=0;o=0)&&(r[u]=e[u]);return r}function aA(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,r=t===void 0?"theme":t,i=e.destKey,u=i===void 0?"theme":i;return Ko(tp(mM({},r,oe.object)),pa([r],function(o){return mM({},u,G8(Y8,o[r]))}))};function gf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gf=function(r){return typeof r}:gf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},gf(e)}function mpe(e,t){if(e==null)return{};var r=vpe(e,t),i,u;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function vpe(e,t){if(e==null)return{};var r={},i=Object.keys(e),u,o;for(o=0;o=0)&&(r[u]=e[u]);return r}function ype(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bpe(e,t){for(var r=0;r3&&arguments[3]!==void 0?arguments[3]:{},o=u.dataKey,a=u.colorKey,n=a===void 0?"color":a,l=u.targetKey,f=l===void 0?"fill":l,s=[],c={};return t.length&&r.length&&(s=Spe(t),r.forEach(function(d){for(var h=function(v){var g=i[v],b=g.id,x=g.match;if(Epe(x,d,o)){var _=t.find(function(O){var R=O.id;return R===b});if(_){if(Dpe.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var w=Zi(d,n),k=_.background,T=_.color,M=b;_.background==="inherit"&&(M="".concat(M,".bg.").concat(w),k=w),_.color==="inherit"&&(M="".concat(M,".fg.").concat(w),T=w),_o(d,f,"url(#".concat(M,")")),c[M]||(s.push(o0({},_,{id:M,background:k,color:T})),c[M]=1)}else _o(d,f,"url(#".concat(b,")"));else if(Ppe.includes(_.type)){var S=_.colors.map(function(O){var R=O.color;return R});if(S.includes("inherit")){var C=Zi(d,n),P=b,D=o0({},_,{colors:_.colors.map(function(O,R){return O.color!=="inherit"?O:(P="".concat(P,".").concat(R,".").concat(C),o0({},O,{color:O.color==="inherit"?C:O.color}))})});D.id=P,_o(d,f,"url(#".concat(P,")")),c[P]||(s.push(D),c[P]=1)}else _o(d,f,"url(#".concat(b,")"))}}return"break"}},p=0;p0?(v=d.align.right,g=d.baseline.center):(u==="after"&&l>0||u==="before"&&l<0)&&(v=d.align.left,g=d.baseline.center)):(y=function(_){return{x:0,y:h(_)}},p.lineX=a*(u==="after"?1:-1),m.textX=(a+n)*(u==="after"?1:-1),u==="after"?v=d.align.left:v=d.align.right);var b=c.map(function(x){return jpe({key:x,value:x},y(x),p,m)});return{ticks:b,textAlign:v,textBaseline:g}},vA=function(t,r){if(!t||typeof t=="function")return t;if(r.type==="time"){var i=wb(t);return function(u){return i(new Date(u))}}return rs(t)},Dv=function(t){var r=t.width,i=t.height,u=t.scale,o=t.axis,a=t.values,n=Array.isArray(a)?a:void 0,l=pp(a)?a:void 0,f=n||gA(u,l),s=u.bandwidth?hA(u):u,c;return o==="x"?c=f.map(function(d){return{key:"".concat(d),x1:s(d),x2:s(d),y1:0,y2:i}}):o==="y"&&(c=f.map(function(d){return{key:"".concat(d),x1:0,x2:r,y1:s(d),y2:s(d)}})),c},yA={ticksPosition:oe.oneOf(["before","after"]),tickValues:oe.oneOfType([oe.number,oe.arrayOf(oe.oneOfType([oe.number,oe.string,oe.instanceOf(Date)])),oe.string]),tickSize:oe.number,tickPadding:oe.number,tickRotation:oe.number,format:oe.oneOfType([oe.func,oe.string]),renderTick:oe.func,legend:oe.node,legendPosition:oe.oneOf(["start","middle","end"]),legendOffset:oe.number},ga=oe.shape(yA);function Ev(){return Ev=Object.assign||function(e){for(var t=1;t0&&(t.lineWidth=T.axis.domain.line.strokeWidth,t.lineCap="square",t.strokeStyle=T.axis.domain.line.stroke,t.beginPath(),t.moveTo(0,0),t.lineTo(i==="x"?f:0,i==="x"?0:f),t.stroke()),S.forEach(function(A){T.axis.ticks.line.strokeWidth>0&&(t.lineWidth=T.axis.ticks.line.strokeWidth,t.lineCap="square",t.strokeStyle=T.axis.ticks.line.stroke,t.beginPath(),t.moveTo(A.x,A.y),t.lineTo(A.x+A.lineX,A.y+A.lineY),t.stroke());var z=g!==void 0?g(A.value):A.value;t.save(),t.translate(A.x+A.textX,A.y+A.textY),t.rotate(bM(v)),t.fillStyle=T.axis.ticks.text.fill,t.fillText(z,0,0),t.restore()}),b!==void 0){var D=0,O=0,R=0,F;i==="y"?(R=-90,D=k,_==="start"?(F="start",O=f):_==="middle"?(F="center",O=f/2):_==="end"&&(F="end")):(O=k,_==="start"?F="start":_==="middle"?(F="center",D=f/2):_==="end"&&(F="end",D=f)),t.translate(D,O),t.rotate(bM(R)),t.font="".concat(T.axis.legend.text.fontWeight?"".concat(T.axis.legend.text.fontWeight," "):"").concat(T.axis.legend.text.fontSize,"px ").concat(T.axis.legend.text.fontFamily),t.fillStyle=T.axis.legend.text.fill,t.textAlign=F,t.textBaseline="middle",t.fillText(b,0,0)}t.restore()},Jpe=["top","right","bottom","left"],Wb=function(t,r){var i=r.xScale,u=r.yScale,o=r.width,a=r.height,n=r.top,l=r.right,f=r.bottom,s=r.left,c=r.theme,d={top:n,right:l,bottom:f,left:s};Jpe.forEach(function(h){var p=d[h];if(!p)return null;var m=h==="top"||h==="bottom",y=h==="top"||h==="left"?"before":"after",v=m?i:u,g=vA(p.format,v);Kpe(t,Xpe({},p,{axis:m?"x":"y",x:h==="right"?o:0,y:h==="bottom"?a:0,scale:v,format:g,length:m?o:a,ticksPosition:y,theme:c}))})},Il=function(t,r){var i=r.width,u=r.height,o=r.scale,a=r.axis,n=r.values,l=Dv({width:i,height:u,scale:o,axis:a,values:n});l.forEach(function(f){t.beginPath(),t.moveTo(f.x1,f.y1),t.lineTo(f.x2,f.y2),t.stroke()})},gp="row",mp="column",Ub="top",Hb="top-right",Vb="right",Yb="bottom-right",Gb="bottom",Xb="bottom-left",Zb="left",_A="top-left",Kb="center",vp="left-to-right",yp="right-to-left",bp="top-to-bottom",xp="bottom-to-top";function Qpe(e){for(var t=1;t0){var E=x.filter(function(G){var L=G.on;return L==="hover"}),W=E.reduce(function(G,L){return _f({},G,L.style)},{});T(W)}g!==void 0&&g(a,N)},[g,a,x]),P=$e.useCallback(function(){if(x.length>0){var N=x.filter(function(W){var G=W.on;return G!=="hover"}),E=N.reduce(function(W,G){return _f({},W,G.style)},{});T(E)}b!==void 0&&b(a,event)},[b,a,x]),D=zA({direction:n,justify:l,symbolSize:k.symbolSize||h,symbolSpacing:p,width:c,height:o}),O=D.symbolX,R=D.symbolY,F=D.labelX,A=D.labelY,z=D.labelAnchor,B=D.labelAlignment,$=[v,g,b].some(function(N){return N!==void 0}),j;return $u(d)?j=d:j=l0e[d],et.createElement("g",{transform:"translate(".concat(r,",").concat(i,")"),style:{opacity:k.itemOpacity!==void 0?k.itemOpacity:u}},et.createElement("rect",{width:c,height:o,fill:k.itemBackground||s,style:{cursor:$?"pointer":"auto"},onClick:S,onMouseEnter:C,onMouseLeave:P}),et.createElement(j,{id:a.id,x:O,y:R,size:k.symbolSize||h,fill:a.fill||a.color,borderWidth:k.symbolBorderWidth!==void 0?k.symbolBorderWidth:m,borderColor:k.symbolBorderColor||y}),et.createElement("text",{textAnchor:z,style:_f({},M.legends.text,{fill:k.itemTextColor||f,dominantBaseline:B,pointerEvents:"none",userSelect:"none"}),x:F,y:A},a.label))};Vi.displayName="LegendSvgItem";Vi.propTypes=_f({data:Mp.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired,textColor:oe.string,background:oe.string,opacity:oe.number,direction:oe.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:oe.bool.isRequired},Tp,kp);Vi.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};function s0e(e){for(var t=1;t=T0e){var f=t?null:w0e(e);if(f)return _0e(f);a=!1,c=x0e,l=new v0e}else l=t?[]:n;e:for(;++it||o&&a&&l&&!n&&!f||i&&a&&l||!r&&l||!c)return 1;if(!i&&!o&&!f&&e=n)return l;var f=r[i];return l*(f=="desc"?-1:1)}}return e.index-t.index}var Uve=Wve,f0=vh,Hve=cc,Vve=hx,Yve=Nve,Gve=$ve,Xve=Kl,Zve=Uve,Kve=Vo,Jve=ba;function Qve(e,t,r){t.length?t=f0(t,function(o){return Jve(o)?function(a){return Hve(a,o.length===1?o[0]:o)}:o}):t=[Kve];var i=-1;t=f0(t,Xve(Vve));var c=Yve(e,function(o,a,n){var l=f0(t,function(f){return f(o)});return{criteria:l,index:++i,value:o}});return Gve(c,function(o,a){return Zve(o,a,r)})}var eye=Qve,tye=Pb,nye=eye,rye=mh,OM=W1,aye=rye(function(e,t){if(e==null)return[];var r=t.length;return r>1&&OM(e,t[0],t[1])?t=[]:r>2&&OM(t[0],t[1],t[2])&&(t=[t[0]]),nye(e,tye(t,1),[])}),iye=aye;const oye=ir(iye);var lye=Li,sye=Fa,uye="[object Date]";function cye(e){return sye(e)&&lye(e)==uye}var fye=cye,dye=fye,hye=Kl,AM=gh,PM=AM&&AM.isDate,pye=PM?hye(PM):dye,gye=pye;const mye=ir(gye);var vye=function(t,r,i,c){var o=t.axis,a=t.min,n=a===void 0?0:a,l=t.max,f=l===void 0?"auto":l,s=t.stacked,u=s===void 0?!1:s,d=t.reverse,h=d===void 0?!1:d,p=r[o],m=o==="x"?i:c,y=n;n==="auto"&&(y=u===!0?p.minStacked:p.min);var v=f;f==="auto"&&(v=u===!0?p.maxStacked:p.max);var g=Do().rangeRound(o==="x"?[0,m]:[m,0]);return h===!0?g.domain([v,y]):g.domain([y,v]),g.type="linear",g.stacked=u,g},yye={type:oe.oneOf(["linear"]).isRequired,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),stacked:oe.bool,reverse:oe.bool},bye=function(t,r,i,c){var o=t.axis,a=t.base,n=a===void 0?10:a,l=t.min,f=l===void 0?"auto":l,s=t.max,u=s===void 0?"auto":s,d=r[o],h=o==="x"?i:c,p=d.all.some(function(x){return x===0}),m,y=!1;if(d.all.forEach(function(x){y!==!0&&(m===void 0?m=Math.sign(x):Math.sign(x)!==m&&(y=!0))}),p||y)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join(` -`));var v=f;f==="auto"&&(v=d.min);var g=u;u==="auto"&&(g=d.max);var b=oO().domain([v,g]).rangeRound(o==="x"?[0,h]:[h,0]).base(n).nice();return b.type="log",b},xye={type:oe.oneOf(["log"]).isRequired,base:oe.number,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number])},wye=function(t,r,i,c){var o=t.axis,a=r[o],n=o==="x"?i:c,l=dne().range([0,n]).domain(a.all);return l.type="point",l},_ye={type:oe.oneOf(["point"]).isRequired},xi;function ho(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var px="millisecond",ZA="second",KA="minute",JA="hour",QA="day",e7="month",t7="year",Tye=[px,ZA,KA,JA,QA,e7,t7],ul=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],kye=(xi={},ho(xi,px,[]),ho(xi,ZA,ul.slice(0,1)),ho(xi,KA,ul.slice(0,2)),ho(xi,JA,ul.slice(0,3)),ho(xi,QA,ul.slice(0,4)),ho(xi,e7,ul.slice(0,5)),ho(xi,t7,ul.slice(0,6)),xi),Mye=function(t){return function(r){return kye[t].forEach(function(i){i(r)}),r}},n7=function(t){var r=t.format,i=r===void 0?"native":r,c=t.precision,o=c===void 0?"millisecond":c,a=t.useUTC,n=a===void 0?!0:a,l=Mye(o);if(i==="native")return function(s){return l(s)};var f=n?f8(i):c8(i);return function(s){return l(f(s))}},Sye=function(t,r,i,c){var o=t.axis,a=t.format,n=a===void 0?"native":a,l=t.precision,f=l===void 0?px:l,s=t.min,u=s===void 0?"auto":s,d=t.max,h=d===void 0?"auto":d,p=t.useUTC,m=p===void 0?!0:p,y=r[o],v=o==="x"?i:c,g=n7({format:n,precision:f,useUTC:m}),b=u;u==="auto"?b=y.min:n!=="native"&&(b=g(u));var x=h;h==="auto"?x=y.max:n!=="native"&&(x=g(h));var _=m?wae():xae();return _.domain([b,x]).range([0,v]),_.type="time",_.useUTC=m,_},Cye={type:oe.oneOf(["time"]).isRequired,format:oe.string,precision:oe.oneOf(Tye)};function vd(e){return Pye(e)||Aye(e)||Oye()}function Oye(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Aye(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Pye(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},o=c.getValue,a=o===void 0?function(h){return h.data[r]}:o,n=c.setValue,l=n===void 0?function(h,p){h.data[r]=p}:n;if(i.type==="linear")t.forEach(function(h){h.data.forEach(function(p){l(p,a(p)===null?null:parseFloat(a(p)))})});else if(i.type==="time"&&i.format!=="native"){var f=n7(i);t.forEach(function(h){h.data.forEach(function(p){l(p,a(p)===null?null:f(a(p)))})})}var s=[];t.forEach(function(h){h.data.forEach(function(p){s.push(a(p))})});var u,d;return i.type==="linear"?(s=SM(s),s=oye(s,function(h){return h}),u=Math.min.apply(Math,vd(s)),d=Math.max.apply(Math,vd(s))):i.type==="time"?(s=Xu(s,function(h){return h.getTime()}),s=s.slice(0).sort(function(h,p){return p-h}).reverse(),u=s[0],d=Sn(s)):(s=SM(s),u=s[0],d=Sn(s)),{all:s,min:u,max:d}},a7=function(t,r,i,c){var o=Eye(t),a=[];i[o].all.forEach(function(n){var l=mye(n)?Lye:Rye,f=[];c.forEach(function(s){var u=s.data.find(function(m){return l(m.data[o],n)}),d=null,h=null;if(u!==void 0){if(d=u.data[t],d!==null){var p=Sn(f);p===void 0?h=d:p!==null&&(h=p+d)}u.data["".concat(t,"Stacked")]=h}f.push(h),a.push(h)})}),a=a.filter(function(n){return n!==null}),i[t].minStacked=Math.min.apply(Math,vd(a)),i[t].maxStacked=Math.max.apply(Math,vd(a))},Fye=function(t,r,i){return a7("x",t,r,i)},Nye=function(t,r,i){return a7("y",t,r,i)},yd=oe.oneOfType([oe.shape(yye),oe.shape(_ye),oe.shape(Cye),oe.shape(xye)]);const RM=Math.pow(2,-52),rf=new Uint32Array(512);class bd{static from(t,r=qye,i=Wye){const c=t.length,o=new Float64Array(c*2);for(let a=0;a>1;if(r>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const i=Math.max(2*r-5,0);this._triangles=new Uint32Array(i*3),this._halfedges=new Int32Array(i*3),this._hashSize=Math.ceil(Math.sqrt(r)),this._hullPrev=new Uint32Array(r),this._hullNext=new Uint32Array(r),this._hullTri=new Uint32Array(r),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(r),this._dists=new Float64Array(r),this.update()}update(){const{coords:t,_hullPrev:r,_hullNext:i,_hullTri:c,_hullHash:o}=this,a=t.length>>1;let n=1/0,l=1/0,f=-1/0,s=-1/0;for(let S=0;Sf&&(f=C),P>s&&(s=P),this._ids[S]=S}const u=(n+f)/2,d=(l+s)/2;let h=1/0,p,m,y;for(let S=0;S0&&(m=S,h=C)}let b=t[2*m],x=t[2*m+1],_=1/0;for(let S=0;SD&&(S[C++]=O,D=this._dists[O])}this.hull=S.subarray(0,C),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(af(v,g,b,x,w,k)){const S=m,C=b,P=x;m=y,b=w,x=k,y=S,w=C,k=P}const T=zye(v,g,b,x,w,k);this._cx=T.x,this._cy=T.y;for(let S=0;S0&&Math.abs(O-C)<=RM&&Math.abs(R-P)<=RM||(C=O,P=R,D===p||D===m||D===y))continue;let F=0;for(let j=0,N=this._hashKey(O,R);j0?3-r:1+r)/4}function d0(e,t,r,i){const c=e-r,o=t-i;return c*c+o*o}function h0(e,t,r,i,c,o){const a=(i-t)*(c-e),n=(r-e)*(o-t);return Math.abs(a-n)>=33306690738754716e-32*Math.abs(a+n)?a-n:0}function af(e,t,r,i,c,o){return(h0(c,o,e,t,r,i)||h0(e,t,r,i,c,o)||h0(r,i,c,o,e,t))<0}function $ye(e,t,r,i,c,o,a,n){const l=e-a,f=t-n,s=r-a,u=i-n,d=c-a,h=o-n,p=l*l+f*f,m=s*s+u*u,y=d*d+h*h;return l*(u*y-m*h)-f*(s*y-m*d)+p*(s*h-u*d)<0}function Bye(e,t,r,i,c,o){const a=r-e,n=i-t,l=c-e,f=o-t,s=a*a+n*n,u=l*l+f*f,d=.5/(a*f-n*l),h=(f*s-n*u)*d,p=(a*u-l*s)*d;return h*h+p*p}function zye(e,t,r,i,c,o){const a=r-e,n=i-t,l=c-e,f=o-t,s=a*a+n*n,u=l*l+f*f,d=.5/(a*f-n*l),h=e+(f*s-n*u)*d,p=t+(a*u-l*s)*d;return{x:h,y:p}}function pl(e,t,r,i){if(i-r<=20)for(let c=r+1;c<=i;c++){const o=e[c],a=t[o];let n=c-1;for(;n>=r&&t[e[n]]>a;)e[n+1]=e[n--];e[n+1]=o}else{const c=r+i>>1;let o=r+1,a=i;hu(e,c,o),t[e[r]]>t[e[i]]&&hu(e,r,i),t[e[o]]>t[e[i]]&&hu(e,o,i),t[e[r]]>t[e[o]]&&hu(e,r,o);const n=e[o],l=t[n];for(;;){do o++;while(t[e[o]]l);if(a=a-r?(pl(e,t,o,i),pl(e,t,r,a-1)):(pl(e,t,r,a-1),pl(e,t,o,i))}}function hu(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}function qye(e){return e[0]}function Wye(e){return e[1]}const LM=1e-6;class So{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,r){this._+=`L${this._x1=+t},${this._y1=+r}`}arc(t,r,i){t=+t,r=+r,i=+i;const c=t+i,o=r;if(i<0)throw new Error("negative radius");this._x1===null?this._+=`M${c},${o}`:(Math.abs(this._x1-c)>LM||Math.abs(this._y1-o)>LM)&&(this._+="L"+c+","+o),i&&(this._+=`A${i},${i},0,1,1,${t-i},${r}A${i},${i},0,1,1,${this._x1=c},${this._y1=o}`)}rect(t,r,i,c){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${+i}v${+c}h${-i}Z`}value(){return this._||null}}class Uv{constructor(){this._=[]}moveTo(t,r){this._.push([t,r])}closePath(){this._.push(this._[0].slice())}lineTo(t,r){this._.push([t,r])}value(){return this._.length?this._:null}}let Uye=class{constructor(t,[r,i,c,o]=[0,0,960,500]){if(!((c=+c)>=(r=+r))||!((o=+o)>=(i=+i)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=c,this.xmin=r,this.ymax=o,this.ymin=i,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:r,triangles:i},vectors:c}=this,o=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let h=0,p=0,m=i.length,y,v;h1;)o-=2;for(let a=2;a4)for(let a=0;a0){if(r>=this.ymax)return null;(a=(this.ymax-r)/c)0){if(t>=this.xmax)return null;(a=(this.xmax-t)/i)this.xmax?2:0)|(rthis.ymax?8:0)}};const Hye=2*Math.PI,cl=Math.pow;function Vye(e){return e[0]}function Yye(e){return e[1]}function Gye(e){const{triangles:t,coords:r}=e;for(let i=0;i1e-10)return!1}return!0}function Xye(e,t,r){return[e+Math.sin(e+t)*r,t+Math.cos(e-t)*r]}class Op{static from(t,r=Vye,i=Yye,c){return new Op("length"in t?Zye(t,r,i,c):Float64Array.from(Kye(t,r,i,c)))}constructor(t){this._delaunator=new bd(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,r=this.points;if(t.hull&&t.hull.length>2&&Gye(t)){this.collinear=Int32Array.from({length:r.length/2},(d,h)=>h).sort((d,h)=>r[2*d]-r[2*h]||r[2*d+1]-r[2*h+1]);const l=this.collinear[0],f=this.collinear[this.collinear.length-1],s=[r[2*l],r[2*l+1],r[2*f],r[2*f+1]],u=1e-8*Math.hypot(s[3]-s[1],s[2]-s[0]);for(let d=0,h=r.length/2;d0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=c[0],this.triangles[1]=c[1],this.triangles[2]=c[1],a[c[0]]=1,c.length===2&&(a[c[1]]=0))}voronoi(t){return new Uye(this,t)}*neighbors(t){const{inedges:r,hull:i,_hullIndex:c,halfedges:o,triangles:a,collinear:n}=this;if(n){const u=n.indexOf(t);u>0&&(yield n[u-1]),u=0&&o!==i&&o!==c;)i=o;return o}_step(t,r,i){const{inedges:c,hull:o,_hullIndex:a,halfedges:n,triangles:l,points:f}=this;if(c[t]===-1||!f.length)return(t+1)%(f.length>>1);let s=t,u=cl(r-f[t*2],2)+cl(i-f[t*2+1],2);const d=c[t];let h=d;do{let p=l[h];const m=cl(r-f[p*2],2)+cl(i-f[p*2+1],2);if(m0&&(de.lineWidth=H.grid.line.strokeWidth,de.strokeStyle=H.grid.line.stroke,k&&Il(de,{width:W,height:G,scale:re,axis:"x",values:T}),M&&Il(de,{width:W,height:G,scale:ie,axis:"y",values:S})),xe==="axes"&&Yb(de,{xScale:re,yScale:ie,width:W,height:G,top:C,right:P,bottom:D,left:O,theme:H}),xe==="areas"&&m===!0&&(de.save(),de.globalAlpha=v,Z.context(de),X.forEach(function(ge){de.fillStyle=ge.color,de.beginPath(),Z(ge.data.map(function(be){return be.position})),de.fill()}),de.restore()),xe==="lines"&&(Y.context(de),X.forEach(function(ge){de.strokeStyle=ge.color,de.lineWidth=p,de.beginPath(),Y(ge.data.map(function(be){return be.position})),de.stroke()})),xe==="points"&&g===!0&&b>0&&le.forEach(function(ge){de.fillStyle=ge.color,de.beginPath(),de.arc(ge.x,ge.y,b/2,0,2*Math.PI),de.fill(),_>0&&(de.strokeStyle=ge.borderColor,de.lineWidth=_,de.stroke())}),xe==="mesh"&&A===!0&&(o7(de,Te),ee&&l7(de,Te,ee.index)),xe==="legends"){var ue=X.map(function(ge){return{id:ge.id,label:ge.id,color:ge.color}}).reverse();R.forEach(function(ge){dx(de,B1e({},ge,{data:ge.data||ue,containerWidth:W,containerHeight:G,theme:H}))})}})},[j,L,q,d,H,Y,X,re,ie,k,T,M,S,C,P,D,O,R,le,g,b,ee]);var Se=$e.useCallback(function(de){var xe=Yu(j.current,de),ue=BM(xe,2),ge=ue[0],be=ue[1];if(!Fb(E.left,E.top,W,G,ge,be))return null;var we=pe.find(ge-E.left,be-E.top);return le[we]},[j,E,W,G,pe]),Oe=Ul(),Me=Oe.showTooltipFromEvent,ce=Oe.hideTooltip,ye=$e.useCallback(function(de){var xe=Se(de);U(xe),xe?Me(et.createElement($,{point:xe}),de):ce()},[Se,U,Me,ce,$]),J=$e.useCallback(function(de){ce(),U(null),ee&&z&&z(ee,de)},[ce,U,z]),ne=$e.useCallback(function(de){if(B){var xe=Se(de);xe&&B(xe,de)}},[Se,B]);return et.createElement("canvas",{ref:j,width:L*o,height:q*o,style:{width:L,height:q,cursor:F?"auto":"normal"},onMouseEnter:F?ye:void 0,onMouseMove:F?ye:void 0,onMouseLeave:F?J:void 0,onClick:F?ne:void 0})};yx.propTypes=g1e;yx.defaultProps=m1e;var H1e=hp(yx);function Yv(){return Yv=Object.assign||function(e){for(var t=1;tje.jsx(Qr,{sx:{maxWidth:200,height:50},children:je.jsx(V1e,{data:[{id:"1",data:e.data[e.xField].map((t,r)=>({x:t,y:e.data[e.yField][r]}))}],margin:{top:0,right:0,bottom:0,left:0},xScale:{type:"linear",min:0,max:25},axisTop:null,colors:[e.color],axisRight:null,enableGridX:!1,enableGridY:!1})}),G1e=Y1e;var X1e=XA;function Z1e(e,t){var r=[];return X1e(e,function(i,c,o){t(i,c,o)&&r.push(i)}),r}var K1e=Z1e,J1e=g8,Q1e=K1e,ebe=hx,tbe=ba;function nbe(e,t){var r=tbe(e)?J1e:Q1e;return r(e,ebe(t))}var rbe=nbe;const abe=ir(rbe);var ibe=Jl,obe=pc;function lbe(e,t){return e&&ibe(t,obe(t),e)}var sbe=lbe,ube=Jl,cbe=uc;function fbe(e,t){return e&&ube(t,cbe(t),e)}var dbe=fbe,hbe=Jl,pbe=kb;function gbe(e,t){return hbe(e,pbe(e),t)}var mbe=gbe,vbe=Tb,ybe=I1,bbe=kb,xbe=m8,wbe=Object.getOwnPropertySymbols,_be=wbe?function(e){for(var t=[];e;)vbe(t,bbe(e)),e=ybe(e);return t}:xbe,w7=_be,Tbe=Jl,kbe=w7;function Mbe(e,t){return Tbe(e,kbe(e),t)}var Sbe=Mbe,Cbe=p8,Obe=w7,Abe=uc;function Pbe(e){return Cbe(e,Abe,Obe)}var _7=Pbe,Dbe=Object.prototype,Ebe=Dbe.hasOwnProperty;function Rbe(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Ebe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Lbe=Rbe,Ibe=L1;function Fbe(e,t){var r=t?Ibe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Nbe=Fbe,jbe=/\w*$/;function $be(e){var t=new e.constructor(e.source,jbe.exec(e));return t.lastIndex=e.lastIndex,t}var Bbe=$be,zM=Vl,qM=zM?zM.prototype:void 0,WM=qM?qM.valueOf:void 0;function zbe(e){return WM?Object(WM.call(e)):{}}var qbe=zbe,Wbe=L1,Ube=Nbe,Hbe=Bbe,Vbe=qbe,Ybe=R6,Gbe="[object Boolean]",Xbe="[object Date]",Zbe="[object Map]",Kbe="[object Number]",Jbe="[object RegExp]",Qbe="[object Set]",exe="[object String]",txe="[object Symbol]",nxe="[object ArrayBuffer]",rxe="[object DataView]",axe="[object Float32Array]",ixe="[object Float64Array]",oxe="[object Int8Array]",lxe="[object Int16Array]",sxe="[object Int32Array]",uxe="[object Uint8Array]",cxe="[object Uint8ClampedArray]",fxe="[object Uint16Array]",dxe="[object Uint32Array]";function hxe(e,t,r){var i=e.constructor;switch(t){case nxe:return Wbe(e);case Gbe:case Xbe:return new i(+e);case rxe:return Ube(e,r);case axe:case ixe:case oxe:case lxe:case sxe:case uxe:case cxe:case fxe:case dxe:return Ybe(e,r);case Zbe:return new i;case Kbe:case exe:return new i(e);case Jbe:return Hbe(e);case Qbe:return new i;case txe:return Vbe(e)}}var pxe=hxe,gxe=ep,mxe=Fa,vxe="[object Map]";function yxe(e){return mxe(e)&&gxe(e)==vxe}var bxe=yxe,xxe=bxe,wxe=Kl,UM=gh,HM=UM&&UM.isMap,_xe=HM?wxe(HM):xxe,Txe=_xe,kxe=ep,Mxe=Fa,Sxe="[object Set]";function Cxe(e){return Mxe(e)&&kxe(e)==Sxe}var Oxe=Cxe,Axe=Oxe,Pxe=Kl,VM=gh,YM=VM&&VM.isSet,Dxe=YM?Pxe(YM):Axe,Exe=Dxe,Rxe=ch,Lxe=N8,Ixe=B1,Fxe=sbe,Nxe=dbe,jxe=D6,$xe=fh,Bxe=mbe,zxe=Sbe,qxe=v8,Wxe=_7,Uxe=ep,Hxe=Lbe,Vxe=pxe,Yxe=I6,Gxe=ba,Xxe=ph,Zxe=Txe,Kxe=Va,Jxe=Exe,Qxe=pc,e2e=uc,t2e=1,n2e=2,r2e=4,T7="[object Arguments]",a2e="[object Array]",i2e="[object Boolean]",o2e="[object Date]",l2e="[object Error]",k7="[object Function]",s2e="[object GeneratorFunction]",u2e="[object Map]",c2e="[object Number]",M7="[object Object]",f2e="[object RegExp]",d2e="[object Set]",h2e="[object String]",p2e="[object Symbol]",g2e="[object WeakMap]",m2e="[object ArrayBuffer]",v2e="[object DataView]",y2e="[object Float32Array]",b2e="[object Float64Array]",x2e="[object Int8Array]",w2e="[object Int16Array]",_2e="[object Int32Array]",T2e="[object Uint8Array]",k2e="[object Uint8ClampedArray]",M2e="[object Uint16Array]",S2e="[object Uint32Array]",gr={};gr[T7]=gr[a2e]=gr[m2e]=gr[v2e]=gr[i2e]=gr[o2e]=gr[y2e]=gr[b2e]=gr[x2e]=gr[w2e]=gr[_2e]=gr[u2e]=gr[c2e]=gr[M7]=gr[f2e]=gr[d2e]=gr[h2e]=gr[p2e]=gr[T2e]=gr[k2e]=gr[M2e]=gr[S2e]=!0;gr[l2e]=gr[k7]=gr[g2e]=!1;function Tf(e,t,r,i,c,o){var a,n=t&t2e,l=t&n2e,f=t&r2e;if(r&&(a=c?r(e,i,c,o):r(e)),a!==void 0)return a;if(!Kxe(e))return e;var s=Gxe(e);if(s){if(a=Hxe(e),!n)return $xe(e,a)}else{var u=Uxe(e),d=u==k7||u==s2e;if(Xxe(e))return jxe(e,n);if(u==M7||u==T7||d&&!c){if(a=l||d?{}:Yxe(e),!n)return l?zxe(e,Nxe(a,e)):Bxe(e,Fxe(a,e))}else{if(!gr[u])return c?e:{};a=Vxe(e,u,n)}}o||(o=new Rxe);var h=o.get(e);if(h)return h;o.set(e,a),Jxe(e)?e.forEach(function(y){a.add(Tf(y,t,r,y,e,o))}):Zxe(e)&&e.forEach(function(y,v){a.set(v,Tf(y,t,r,v,e,o))});var p=f?l?Wxe:qxe:l?e2e:Qxe,m=s?void 0:p(e);return Lxe(m||e,function(y,v){m&&(v=y,y=e[v]),Ixe(a,v,Tf(y,t,r,v,e,o))}),a}var C2e=Tf;function O2e(e,t,r){var i=-1,c=e.length;t<0&&(t=-t>c?0:c+t),r=r>c?c:r,r<0&&(r+=c),c=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(c);++i1),o}),Y2e(e,Z2e(e),r),i&&(r=U2e(r,K2e|J2e|Q2e,G2e));for(var c=t.length;c--;)H2e(r,t[c]);return r}),twe=ewe;const S7=ir(twe);var nwe=oe.shape({match:oe.oneOfType([oe.func,oe.object]).isRequired,type:oe.oneOf(["circle","rect","dot"]).isRequired,noteX:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteY:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteWidth:oe.number,noteTextOffset:oe.number,note:oe.oneOfType([oe.node,oe.func]).isRequired,offset:oe.number}),xd={noteWidth:120,noteTextOffset:8,animate:!0,motionStiffness:90,motionDamping:13};function rwe(e){for(var t=1;t180?(_-=u,k-=u):k+=u,{points:[[y,v],[p,m],[k,T]],text:[_,w],angle:g+90}},C7=function(t){var r=t.items,i=t.annotations,c=t.getPosition,o=t.getDimensions;return $e.useMemo(function(){return owe({items:r,annotations:i,getPosition:c,getDimensions:o})},[r,i,c,o])},uwe=function(t){var r=t.type,i=t.containerWidth,c=t.containerHeight,o=t.x,a=t.y,n=t.size,l=t.width,f=t.height,s=t.noteX,u=t.noteY,d=t.noteWidth,h=t.noteTextOffset;return $e.useMemo(function(){return swe({type:r,containerWidth:i,containerHeight:c,x:o,y:a,size:n,width:l,height:f,noteX:s,noteY:u,noteWidth:d,noteTextOffset:h})},[r,i,c,o,a,n,l,f,s,u,d,h])};function cwe(e){for(var t=1;t0&&et.createElement("text",{x:r,y:i,style:cwe({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:o.annotations.text.outlineWidth*2,stroke:o.annotations.text.outlineColor})},c),et.createElement("text",{x:r,y:i,style:S7(o.annotations.text,["outlineWidth","outlineColor"])},c))});Zu.displayName="AnnotationNote";Zu.propTypes={datum:oe.object.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};Zu.defaultProps={};function dwe(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:GM({},c.annotations.outline,{fill:"none",strokeWidth:c.annotations.outline.strokeWidth+c.annotations.outline.outlineWidth*2,stroke:c.annotations.outline.outlineColor})}),et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:c.annotations.outline}))}):et.createElement(et.Fragment,null,c.annotations.outline.outlineWidth>0&&et.createElement("circle",{cx:t,cy:r,r:i/2,style:GM({},c.annotations.outline,{fill:"none",strokeWidth:c.annotations.outline.strokeWidth+c.annotations.outline.outlineWidth*2,stroke:c.annotations.outline.outlineColor})}),et.createElement("circle",{cx:t,cy:r,r:i/2,style:c.annotations.outline}))});bx.displayName="CircleAnnotationOutline";bx.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};function XM(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:XM({},c.annotations.outline,{fill:"none",strokeWidth:c.annotations.outline.outlineWidth*2,stroke:c.annotations.outline.outlineColor})}),et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:c.annotations.symbol}))}):et.createElement(et.Fragment,null,c.annotations.outline.outlineWidth>0&&et.createElement("circle",{cx:t,cy:r,r:i/2,style:XM({},c.annotations.outline,{fill:"none",strokeWidth:c.annotations.outline.outlineWidth*2,stroke:c.annotations.outline.outlineColor})}),et.createElement("circle",{cx:t,cy:r,r:i/2,style:c.annotations.symbol}))});Rp.displayName="DotAnnotationOutline";Rp.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};Rp.defaultProps={size:4};function ZM(e){for(var t=1;t0&&et.createElement("rect",{x:f.x,y:f.y,width:f.width,height:f.height,style:ZM({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+o.annotations.outline.outlineWidth*2,stroke:o.annotations.outline.outlineColor})}),et.createElement("rect",{x:f.x,y:f.y,width:f.width,height:f.height,style:o.annotations.outline}))}):et.createElement(et.Fragment,null,o.annotations.outline.outlineWidth>0&&et.createElement("rect",{x:t-i/2,y:r-c/2,width:i,height:c,style:ZM({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+o.annotations.outline.outlineWidth*2,stroke:o.annotations.outline.outlineColor})}),et.createElement("rect",{x:t-i/2,y:r-c/2,width:i,height:c,style:o.annotations.outline}))});xx.displayName="RectAnnotationOutline";xx.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired};var vc=$e.memo(function(e){var t=e.datum,r=e.type,i=e.containerWidth,c=e.containerHeight,o=e.x,a=e.y,n=e.size,l=e.width,f=e.height,s=e.noteX,u=e.noteY,d=e.noteWidth,h=e.noteTextOffset,p=e.note,m=Oa(),y=m.animate,v=m.springConfig,g=uwe({type:r,containerWidth:i,containerHeight:c,x:o,y:a,size:n,width:l,height:f,noteX:s,noteY:u,noteWidth:d,noteTextOffset:h});return et.createElement(et.Fragment,null,et.createElement(Ku,{points:g.points,isOutline:!0}),r==="circle"&&et.createElement(bx,{x:o,y:a,size:n}),r==="dot"&&et.createElement(Rp,{x:o,y:a,size:n}),r==="rect"&&et.createElement(xx,{x:o,y:a,width:l,height:f}),et.createElement(Ku,{points:g.points}),!y&&et.createElement(Zu,{x:g.text[0],y:g.text[1],note:p}),y&&et.createElement(Si,{style:{x:Pn(g.text[0],v),y:Pn(g.text[1],v)}},function(b){return et.createElement(Zu,{datum:t,x:b.x,y:b.y,note:p})}))});vc.displayName="Annotation";vc.propTypes={datum:oe.object.isRequired,type:oe.oneOf(["circle","rect","dot"]).isRequired,containerWidth:oe.number.isRequired,containerHeight:oe.number.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number,width:oe.number,height:oe.number,noteX:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteY:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteWidth:oe.number.isRequired,noteTextOffset:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};vc.defaultProps={noteWidth:xd.noteWidth,noteTextOffset:xd.noteTextOffset};function vwe(e){for(var t=1;tje.jsx(Qr,{sx:{maxWidth:200,height:50},children:je.jsx(zwe,{data:[{id:"1",data:e.data[e.xField].map((t,r)=>({x:t,y:e.data[e.yField][r]}))}],margin:{top:3,right:3,bottom:3,left:3},xScale:{type:"linear",min:0,max:1e3},nodeSize:4,colors:[e.color],useMesh:!1,axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),Ywe=Vwe;var Gwe=Ql;function Xwe(e,t,r){for(var i=-1,c=e.length;++it}var a_e=r_e,i_e=$7,o_e=a_e,l_e=Vo;function s_e(e){return e&&e.length?i_e(e,l_e,o_e):void 0}var u_e=s_e;const z7=ir(u_e);var c_e=Math.ceil,f_e=Math.max;function d_e(e,t,r,i){for(var c=-1,o=f_e(c_e((t-e)/(r||1)),0),a=Array(o);o--;)a[i?o:++c]=e,e+=r;return a}var h_e=d_e,p_e=h_e,g_e=W1,p0=q8;function m_e(e){return function(t,r,i){return i&&typeof i!="number"&&g_e(t,r,i)&&(r=i=void 0),t=p0(t),r===void 0?(r=t,t=0):r=p0(r),i=i===void 0?t0&&(l=0)),Do().rangeRound(o).domain([l,n])},A_e=function(t){var r=t.data,i=t.getIndex,c=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,u=t.padding,d=u===void 0?0:u,h=t.innerPadding,p=h===void 0?0:h,m=Fp(r,i,[0,l],d),y=n?[0,f]:[f,0],v=W7(r,c,o,a,y),g=(m.bandwidth()-p*(c.length-1))/c.length,b=v(0),x=function(T){return T>0?v(T):b},_=function(T,M){return T>0?b-M:v(T)-b};n&&(x=function(T){return T<0?v(T):b},_=function(T,M){return T<0?b-M:v(T)-b});var w=[];return g>0&&c.forEach(function(k,T){q7(m.domain().length).forEach(function(M){var S=m(i(r[M]))+g*T+p*T,C=x(r[M][k]),P=_(r[M][k],C);if(g>0&&P>0){var D={id:k,value:r[M][k],index:M,indexValue:i(r[M]),data:r[M]};w.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:S,y:C,width:g,height:P,color:s(D)})}})}),{xScale:m,yScale:v,bars:w}},P_e=function(t){var r=t.data,i=t.getIndex,c=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,u=t.padding,d=u===void 0?0:u,h=t.innerPadding,p=h===void 0?0:h,m=n?[l,0]:[0,l],y=W7(r,c,o,a,m),v=Fp(r,i,[f,0],d),g=(v.bandwidth()-p*(c.length-1))/c.length,b=y(0),x=function(T){return T>0?b:y(T)},_=function(T,M){return T>0?y(T)-b:b-M};n&&(x=function(T){return T<0?b:y(T)},_=function(T,M){return T<0?y(T)-b:b-M});var w=[];return g>0&&c.forEach(function(k,T){q7(v.domain().length).forEach(function(M){var S=x(r[M][k]),C=v(i(r[M]))+g*T+p*T,P=_(r[M][k],S);if(P>0){var D={id:k,value:r[M][k],index:M,indexValue:i(r[M]),data:r[M]};w.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:S,y:C,width:P,height:g,color:s(D)})}})}),{xScale:y,yScale:v,bars:w}},U7=function(t){return t.layout==="vertical"?A_e(t):P_e(t)},H7=function(t,r,i,c){var o=M_e(t,2),a=r;a==="auto"&&(a=B7(o));var n=i;return n==="auto"&&(n=z7(o)),Do().rangeRound(c).domain([a,n])},D_e=function(t){var r=t.data,i=t.getIndex,c=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,u=t.padding,d=u===void 0?0:u,h=t.innerPadding,p=h===void 0?0:h,m=$O().keys(c).offset(bb)(r),y=Fp(r,i,[0,l],d),v=n?[0,f]:[f,0],g=H7(m,o,a,v),b=[],x=y.bandwidth(),_=function(T){return g(T[1])},w=function(T,M){return g(T[0])-M};return n&&(_=function(T){return g(T[0])},w=function(T,M){return g(T[1])-M}),x>0&&m.forEach(function(k){y.domain().forEach(function(T,M){var S=k[M],C=y(i(S.data)),P=_(S),D=w(S,P);if(p>0&&(P+=p*.5,D-=p),D>0){var O={id:k.key,value:S.data[k.key],index:M,indexValue:T,data:S.data};b.push({key:"".concat(k.key,".").concat(T),data:O,x:C,y:P,width:x,height:D,color:s(O)})}})}),{xScale:y,yScale:g,bars:b}},E_e=function(t){var r=t.data,i=t.getIndex,c=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,u=t.padding,d=u===void 0?0:u,h=t.innerPadding,p=h===void 0?0:h,m=$O().keys(c).offset(bb)(r),y=n?[l,0]:[0,l],v=H7(m,o,a,y),g=Fp(r,i,[f,0],d),b=[],x=g.bandwidth(),_=function(T){return v(T[0])},w=function(T,M){return v(T[1])-M};return n&&(_=function(T){return v(T[1])},w=function(T,M){return v(T[0])-M}),x>0&&m.forEach(function(k){g.domain().forEach(function(T,M){var S=k[M],C=g(i(S.data)),P={id:k.key,value:S.data[k.key],index:M,indexValue:T,data:S.data},D=_(S),O=w(S,D);p>0&&(D+=p*.5,O-=p),O>0&&b.push({key:"".concat(k.key,".").concat(T),data:P,x:D,y:C,width:O,height:x,color:s(P)})})}),{xScale:v,yScale:g,bars:b}},V7=function(t){return t.layout==="vertical"?D_e(t):E_e(t)},R_e=function(t,r,i,c,o){var a=Xu(t.map(function(n){return{id:n.data.id,label:n.data.id,color:n.color,fill:n.data.fill}}),function(n){var l=n.id;return l});return(r==="vertical"&&c==="stacked"&&i==="column"&&o!==!0||r==="horizontal"&&c==="stacked"&&o===!0)&&a.reverse(),a},L_e=function(t){return Xu(t.map(function(r){return{id:r.data.indexValue,label:r.data.indexValue,color:r.color,fill:r.data.fill}}),function(r){var i=r.id;return i})},I_e=function(t){var r=t.from,i=t.bars,c=t.layout,o=t.direction,a=t.groupMode,n=t.reverse;return r==="indexes"?L_e(i):R_e(i,c,o,a,n)};function Jv(e){for(var t=1;t0&&ce0&&ye0&&(this.ctx.lineWidth=M.grid.line.strokeWidth,this.ctx.strokeStyle=M.grid.line.stroke,O&&Il(this.ctx,{width:s,height:u,scale:B.xScale,axis:"x",values:R}),F&&Il(this.ctx,{width:s,height:u,scale:B.yScale,axis:"y",values:A})),this.ctx.strokeStyle="#dddddd";var $=Xu(B.bars.map(function(N){return{id:N.data.id,label:N.data.id,color:N.color,fill:N.data.fill}}).reverse(),function(N){var E=N.id;return E}),j=Xu(B.bars.map(function(N){return{id:N.data.indexValue,label:N.data.indexValue,color:N.color,fill:N.data.fill}}),function(N){var E=N.id;return E});D.forEach(function(N){var E;if(N.dataFrom==="keys"?E=$:N.dataFrom==="indexes"&&(E=j),E===void 0)return null;dx(c.ctx,t5({},N,{data:E,containerWidth:s,containerHeight:u,itemTextColor:"#999",symbolSize:16,theme:M}))}),Yb(this.ctx,{xScale:B.xScale,yScale:B.yScale,width:s,height:u,top:_,right:w,bottom:k,left:T,theme:M}),B.bars.forEach(function(N){var E=N.x,W=N.y,G=N.color,L=N.width,q=N.height;c.ctx.fillStyle=G,C>0&&(c.ctx.strokeStyle=P(N),c.ctx.lineWidth=C),c.ctx.beginPath(),c.ctx.rect(E,W,L,q),c.ctx.fill(),C>0&&c.ctx.stroke()})}},{key:"render",value:function(){var i=this,c=this.props,o=c.outerWidth,a=c.outerHeight,n=c.pixelRatio,l=c.isInteractive,f=c.theme;return et.createElement(sp,{isInteractive:l,theme:f,animate:!1},function(s){var u=s.showTooltip,d=s.hideTooltip;return et.createElement("canvas",{ref:function(p){i.surface=p},width:o*n,height:a*n,style:{width:o,height:a},onMouseEnter:i.handleMouseHover(u,d),onMouseMove:i.handleMouseHover(u,d),onMouseLeave:i.handleMouseLeave(d),onClick:i.handleClick})})}}]),t}($e.Component);J7.propTypes=G7;var e3e=wb("BarCanvas")(X7(J7));function ny(){return ny=Object.assign||function(e){for(var t=1;tje.jsx(Qr,{sx:{maxWidth:200,height:50},children:je.jsx(t3e,{data:e.data[e.xField].map((t,r)=>({id:t,x:e.data[e.yField][r]})),margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),r3e=n3e,a3e=e=>e.type??"graph",a5=(e,t,r)=>{switch(a3e(t)){case"graph":{const i=()=>e.getAdditionGraphData(t.id),c=o=>je.jsx(Ad,{...o,widgetSize:r});return je.jsx(W0,{func:i,children:c})}case"widget":{const i=()=>e.getAdditionWidgetData(t.id),c=o=>xc(t.id,o);return je.jsx(W0,{func:i,children:c})}default:return je.jsx(hS,{})}},Tx=e=>je.jsx(v6.Consumer,{children:t=>je.jsxs(Qr,{children:[e.details.parts.length>1?je.jsx(vy,{tabs:e.details.parts.map(r=>({title:r.title,tab:a5(t,r,e.widgetSize)}))}):a5(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?je.jsx(je.Fragment,{}):e.details.insights.map(r=>je.jsx(sS,{data:r}))]})}),i3e=new Map([["line",(e,t)=>t[e.field]?je.jsx(G1e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})],["scatter",(e,t)=>t[e.field]?je.jsx(Ywe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})],["histogram",(e,t)=>t[e.field]?je.jsx(r3e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})]]),i5=e=>e.map(t=>({def:t,gen:i3e.get(t.type??"string")})).map(({def:t,gen:r})=>r?{...t,type:void 0,render:i=>r(t,i)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),o3e=e=>{const[t,r]=$e.useState({open:!1,anchorEl:void 0});return je.jsxs(Qr,{sx:{width:50},onClick:i=>r(c=>({open:!c.open,anchorEl:i.currentTarget})),children:[je.jsx(m6,{}),je.jsx(K5,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:je.jsx(Cr,{p:1,children:e.longText})})]})},l3e=e=>{const{columns:t,data:r}=e,i={search:!0,showTitle:!1,pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42},emptyRowsWhenPaging:!1};return je.jsx(et.Fragment,{children:je.jsx(IY,{columns:e.showInfoColumn??!1?[...i5(t),{title:"Info",render:c=>{var o,a,n;return je.jsx(et.Fragment,{children:(o=c.details)!=null&&o.insights?je.jsx(o3e,{longText:`${(a=c.details)==null?void 0:a.insights[0].title}: ${(n=c.details)==null?void 0:n.insights[0].text}`}):je.jsx("div",{})})},width:50}]:[...i5(t)],data:r,detailPanel:({rowData:c})=>c.graphId?je.jsx(zY,{graphId:c.graphId,widgetSize:e.widgetSize}):c.details?je.jsx(Tx,{details:c.details,widgetSize:e.widgetSize}):null,options:i})})},s3e=e=>je.jsx(vy,{tabs:e.tabs.map(t=>({title:t.title,tab:xc(e.id+"1",t.widget)}))});var kx={},u3e=vn;Object.defineProperty(kx,"__esModule",{value:!0});var Q7=kx.default=void 0,c3e=u3e(Xr()),f3e=je,d3e=(0,c3e.default)((0,f3e.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"}),"ExpandLessSharp");Q7=kx.default=d3e;var Mx={},h3e=vn;Object.defineProperty(Mx,"__esModule",{value:!0});var eP=Mx.default=void 0,p3e=h3e(Xr()),g3e=je,m3e=(0,p3e.default)((0,g3e.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"}),"ExpandMoreSharp");eP=Mx.default=m3e;const v3e=e=>{var n,l;const[t,r]=$e.useState(!1),i=lS(),c=(n=e.graph)==null?void 0:n.data.some(({type:f})=>f==="histogram"),a=(i==null?void 0:i.isXaxisAsCategorical)&&!c?{type:"category",categoryorder:"category ascending"}:{};return je.jsx(et.Fragment,{children:je.jsxs(Jn,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[je.jsxs(Jn,{item:!0,xs:2,children:[je.jsx(Cr,{variant:"h5",children:e.header}),je.jsx(Cr,{variant:"subtitle1",children:e.description})]}),je.jsx(Jn,{item:!0,xs:e.graph===void 0?10:5,children:je.jsxs(tS,{children:[je.jsx(nS,{children:je.jsxs(Af,{children:[je.jsx(Hi,{}),e.metricsValuesHeaders.map((f,s)=>je.jsx(Hi,{children:f},f+s))]})}),je.jsx(rS,{children:e.metrics.map((f,s)=>je.jsxs(Af,{children:[je.jsx(Hi,{children:f.label}),f.values.map((u,d)=>je.jsx(Hi,{children:u},String(u)+d))]},f.label+s))})]})}),e.graph===void 0?je.jsx(je.Fragment,{}):je.jsx(Jn,{item:!0,xs:5,children:je.jsx(fS,{data:e.graph.data,layout:{...e.graph.layout,title:void 0,xaxis:{...(l=e.graph.layout)==null?void 0:l.xaxis,...a}},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?je.jsx(je.Fragment,{}):je.jsxs(je.Fragment,{children:[je.jsx(Jn,{item:!0,xs:12,children:je.jsx(di,{variant:"outlined",startIcon:t?je.jsx(Q7,{}):je.jsx(eP,{}),onClick:()=>r(f=>!f),children:"Details"})}),je.jsx(Jn,{item:!0,xs:12,children:je.jsx(my,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(Tx,{details:e.details,widgetSize:e.widgetSize})})})]})]})})};var Sx={},y3e=vn;Object.defineProperty(Sx,"__esModule",{value:!0});var tP=Sx.default=void 0,b3e=y3e(Xr()),x3e=je,w3e=(0,b3e.default)((0,x3e.jsx)("path",{d:"m14 7-5 5 5 5V7z"}),"ArrowLeft");tP=Sx.default=w3e;var Cx={},_3e=vn;Object.defineProperty(Cx,"__esModule",{value:!0});var nP=Cx.default=void 0,T3e=_3e(Xr()),k3e=je,M3e=(0,T3e.default)((0,k3e.jsx)("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");nP=Cx.default=M3e;const S3e=e=>{const[t,r]=et.useState({page:0}),i=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return je.jsxs(dS,{children:[i.map((c,o)=>xc(`wi_${o}`,c)),je.jsxs(Jn,{item:!0,xs:12,children:[je.jsx(di,{startIcon:je.jsx(tP,{}),disabled:t.page===0,onClick:()=>r(c=>({page:c.page-1})),children:"Previous"}),je.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),je.jsx(di,{endIcon:je.jsx(nP,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>r(c=>({page:c.page+1})),children:"Next"})]})]})};function C3e(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const O3e=/[ \t\n\f\r]/g;function A3e(e){return typeof e=="object"?e.type==="text"?o5(e.value):!1:o5(e)}function o5(e){return e.replace(O3e,"")===""}class yc{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}}yc.prototype.property={};yc.prototype.normal={};yc.prototype.space=null;function rP(e,t){const r={},i={};let c=-1;for(;++c4&&r.slice(0,4)==="data"&&L3e.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(s5,j3e);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!s5.test(o)){let a=o.replace(I3e,N3e);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}c=Ox}return new c(i,t)}function N3e(e){return"-"+e.toLowerCase()}function j3e(e){return e.charAt(1).toUpperCase()}const $3e={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},B3e=rP([oP,iP,uP,cP,E3e],"html"),fP=rP([oP,iP,uP,cP,R3e],"svg");function z3e(e){return e.join(" ").trim()}var Ax={exports:{}},u5=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,q3e=/\n/g,W3e=/^\s*/,U3e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,H3e=/^:\s*/,V3e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Y3e=/^[;\s]*/,G3e=/^\s+|\s+$/g,X3e=` -`,c5="/",f5="*",xo="",Z3e="comment",K3e="declaration",J3e=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,i=1;function c(p){var m=p.match(q3e);m&&(r+=m.length);var y=p.lastIndexOf(X3e);i=~y?p.length-y:i+p.length}function o(){var p={line:r,column:i};return function(m){return m.position=new a(p),f(),m}}function a(p){this.start=p,this.end={line:r,column:i},this.source=t.source}a.prototype.content=e;function n(p){var m=new Error(t.source+":"+r+":"+i+": "+p);if(m.reason=p,m.filename=t.source,m.line=r,m.column=i,m.source=e,!t.silent)throw m}function l(p){var m=p.exec(e);if(m){var y=m[0];return c(y),e=e.slice(y.length),m}}function f(){l(W3e)}function s(p){var m;for(p=p||[];m=u();)m!==!1&&p.push(m);return p}function u(){var p=o();if(!(c5!=e.charAt(0)||f5!=e.charAt(1))){for(var m=2;xo!=e.charAt(m)&&(f5!=e.charAt(m)||c5!=e.charAt(m+1));)++m;if(m+=2,xo===e.charAt(m-1))return n("End of comment missing");var y=e.slice(2,m-2);return i+=2,c(y),e=e.slice(m),i+=2,p({type:Z3e,comment:y})}}function d(){var p=o(),m=l(U3e);if(m){if(u(),!l(H3e))return n("property missing ':'");var y=l(V3e),v=p({type:K3e,property:d5(m[0].replace(u5,xo)),value:y?d5(y[0].replace(u5,xo)):xo});return l(Y3e),v}}function h(){var p=[];s(p);for(var m;m=d();)m!==!1&&(p.push(m),s(p));return p}return f(),h()};function d5(e){return e?e.replace(G3e,xo):xo}var Q3e=J3e;function dP(e,t){var r=null;if(!e||typeof e!="string")return r;for(var i,c=Q3e(e),o=typeof t=="function",a,n,l=0,f=c.length;l0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function nTe(e){const t=Px(e),r=hP(e);if(t&&r)return{start:t,end:r}}function Mu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?h5(e.position):"start"in e||"end"in e?h5(e):"line"in e||"column"in e?iy(e):""}function iy(e){return p5(e&&e.line)+":"+p5(e&&e.column)}function h5(e){return iy(e&&e.start)+"-"+iy(e&&e.end)}function p5(e){return e&&typeof e=="number"?e:1}class xa extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let c="",o={},a=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?c=t:!o.cause&&t&&(a=!0,c=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?o.ruleId=i:(o.source=i.slice(0,l),o.ruleId=i.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const n=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=n?n.column:void 0,this.fatal=void 0,this.file,this.message=c,this.line=n?n.line:void 0,this.name=Mu(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}xa.prototype.file="";xa.prototype.name="";xa.prototype.reason="";xa.prototype.message="";xa.prototype.stack="";xa.prototype.column=void 0;xa.prototype.line=void 0;xa.prototype.ancestors=void 0;xa.prototype.cause=void 0;xa.prototype.fatal=void 0;xa.prototype.place=void 0;xa.prototype.ruleId=void 0;xa.prototype.source=void 0;const Dx={}.hasOwnProperty,rTe=new Map,aTe=/[A-Z]/g,iTe=/-([a-z])/g,oTe=new Set(["table","tbody","thead","tfoot","tr"]),lTe=new Set(["td","th"]);function sTe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=cTe(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=uTe(r,t.jsx,t.jsxs)}const c={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?fP:B3e,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=gP(c,e,void 0);return o&&typeof o!="string"?o:c.create(e,c.Fragment,{children:o||void 0},void 0)}function gP(e,t,r){if(t.type==="element"||t.type==="root"){const i=e.schema;let c=i;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(c=fP,e.schema=c),e.ancestors.push(t);let o=fTe(e,t);const a=dTe(e,e.ancestors);let n=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(o&&oTe.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!A3e(l):!0})),Dx.call(e.components,t.tagName)){const l=t.tagName;n=e.components[l],typeof n!="string"&&n!==e.Fragment&&e.passNode&&(a.node=t)}else n=t.tagName;if(o.length>0){const l=o.length>1?o:o[0];l&&(a.children=l)}return e.schema=i,e.create(t,n,a,r)}if(t.type==="text")return t.value}function uTe(e,t,r){return i;function i(c,o,a,n){const f=Array.isArray(a.children)?r:t;return n?f(o,a,n):f(o,a)}}function cTe(e,t){return r;function r(i,c,o,a){const n=Array.isArray(o.children),l=Px(i);return t(c,o,a,n,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function fTe(e,t){const r=[];let i=-1;const c=e.passKeys?new Map:rTe;for(;++i-1&&e.test(String.fromCharCode(r))}}const kTe={'"':"quot","&":"amp","<":"lt",">":"gt"};function MTe(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+kTe[r]+";"}}function STe(e,t){const r=MTe(tl(e||""));if(!t)return r;const i=r.indexOf(":"),c=r.indexOf("?"),o=r.indexOf("#"),a=r.indexOf("/");return i<0||a>-1&&i>a||c>-1&&i>c||o>-1&&i>o||t.test(r.slice(0,i))?r:""}function tl(e){const t=[];let r=-1,i=0,c=0;for(;++r55295&&o<57344){const n=e.charCodeAt(r+1);o<56320&&n>56319&&n<57344?(a=String.fromCharCode(o,n),c=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(i,r),encodeURIComponent(a)),i=r+c+1,a=""),c&&(r+=c,c=0)}return t.join("")+e.slice(i)}const CTe={};function OTe(e,t){const r=CTe,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,c=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return vP(e,i,c)}function vP(e,t,r){if(ATe(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return g5(e.children,t,r)}return Array.isArray(e)?g5(e,t,r):""}function g5(e,t,r){const i=[];let c=-1;for(;++cc?0:c+t:t=t>c?c:t,r=r>0?r:0,i.length<1e4)a=Array.from(i),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);o0?(pi(e,e.length,0,t),e):t}const v5={}.hasOwnProperty;function PTe(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function bl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function vr(e,t,r,i){const c=i?i-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return ar(l)?(e.enter(r),n(l)):t(l)}function n(l){return ar(l)&&o++a))return;const k=t.events.length;let T=k,M,S;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(M){S=t.events[T][1].end;break}M=!0}for(v(i),w=k;wb;){const _=r[x];t.containerState=_[1],_[0].exit.call(t,e)}r.length=b}function g(){c.write([null]),o=void 0,c=void 0,t.containerState._closeFlow=void 0}}function NTe(e,t,r){return vr(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function b5(e){if(e===null||Sa(e)||TTe(e))return 1;if(_Te(e))return 2}function Rx(e,t,r){const i=[];let c=-1;for(;++c1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const u=Object.assign({},e[i][1].end),d=Object.assign({},e[r][1].start);x5(u,-l),x5(d,l),a={type:l>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[i][1].end)},n={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[r][1].start)},c={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},n.end)},e[i][1].end=Object.assign({},a.start),e[r][1].start=Object.assign({},n.end),f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=za(f,[["enter",e[i][1],t],["exit",e[i][1],t]])),f=za(f,[["enter",c,t],["enter",a,t],["exit",a,t],["enter",o,t]]),f=za(f,Rx(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),f=za(f,[["exit",o,t],["enter",n,t],["exit",n,t],["exit",c,t]]),e[r][1].end.offset-e[r][1].start.offset?(s=2,f=za(f,[["enter",e[r][1],t],["exit",e[r][1],t]])):s=0,pi(e,i-1,r-i+3,f),r=i+f.length-s-2;break}}for(r=-1;++r0&&ar(w)?vr(e,g,"linePrefix",o+1)(w):g(w)}function g(w){return w===null||Fn(w)?e.check(w5,m,x)(w):(e.enter("codeFlowValue"),b(w))}function b(w){return w===null||Fn(w)?(e.exit("codeFlowValue"),g(w)):(e.consume(w),b)}function x(w){return e.exit("codeFenced"),t(w)}function _(w,k,T){let M=0;return S;function S(R){return w.enter("lineEnding"),w.consume(R),w.exit("lineEnding"),C}function C(R){return w.enter("codeFencedFence"),ar(R)?vr(w,P,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):P(R)}function P(R){return R===n?(w.enter("codeFencedFenceSequence"),D(R)):T(R)}function D(R){return R===n?(M++,w.consume(R),D):M>=a?(w.exit("codeFencedFenceSequence"),ar(R)?vr(w,O,"whitespace")(R):O(R)):T(R)}function O(R){return R===null||Fn(R)?(w.exit("codeFencedFence"),k(R)):T(R)}}}function XTe(e,t,r){const i=this;return c;function c(a){return a===null?r(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}const v0={name:"codeIndented",tokenize:KTe},ZTe={tokenize:JTe,partial:!0};function KTe(e,t,r){const i=this;return c;function c(f){return e.enter("codeIndented"),vr(e,o,"linePrefix",5)(f)}function o(f){const s=i.events[i.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?a(f):r(f)}function a(f){return f===null?l(f):Fn(f)?e.attempt(ZTe,a,l)(f):(e.enter("codeFlowValue"),n(f))}function n(f){return f===null||Fn(f)?(e.exit("codeFlowValue"),a(f)):(e.consume(f),n)}function l(f){return e.exit("codeIndented"),t(f)}}function JTe(e,t,r){const i=this;return c;function c(a){return i.parser.lazy[i.now().line]?r(a):Fn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),c):vr(e,o,"linePrefix",5)(a)}function o(a){const n=i.events[i.events.length-1];return n&&n[1].type==="linePrefix"&&n[2].sliceSerialize(n[1],!0).length>=4?t(a):Fn(a)?c(a):r(a)}}const QTe={name:"codeText",tokenize:nke,resolve:eke,previous:tke};function eke(e){let t=e.length-4,r=3,i,c;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i=4?t(a):e.interrupt(i.parser.constructs.flow,r,t)(a)}}function TP(e,t,r,i,c,o,a,n,l){const f=l||Number.POSITIVE_INFINITY;let s=0;return u;function u(v){return v===60?(e.enter(i),e.enter(c),e.enter(o),e.consume(v),e.exit(o),d):v===null||v===32||v===41||oy(v)?r(v):(e.enter(i),e.enter(a),e.enter(n),e.enter("chunkString",{contentType:"string"}),m(v))}function d(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(c),e.exit(i),t):(e.enter(n),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===62?(e.exit("chunkString"),e.exit(n),d(v)):v===null||v===60||Fn(v)?r(v):(e.consume(v),v===92?p:h)}function p(v){return v===60||v===62||v===92?(e.consume(v),h):h(v)}function m(v){return!s&&(v===null||v===41||Sa(v))?(e.exit("chunkString"),e.exit(n),e.exit(a),e.exit(i),t(v)):s999||h===null||h===91||h===93&&!l||h===94&&!n&&"_hiddenFootnoteSupport"in a.parser.constructs?r(h):h===93?(e.exit(o),e.enter(c),e.consume(h),e.exit(c),e.exit(i),t):Fn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(h){return h===null||h===91||h===93||Fn(h)||n++>999?(e.exit("chunkString"),s(h)):(e.consume(h),l||(l=!ar(h)),h===92?d:u)}function d(h){return h===91||h===92||h===93?(e.consume(h),n++,u):u(h)}}function MP(e,t,r,i,c,o){let a;return n;function n(d){return d===34||d===39||d===40?(e.enter(i),e.enter(c),e.consume(d),e.exit(c),a=d===40?41:d,l):r(d)}function l(d){return d===a?(e.enter(c),e.consume(d),e.exit(c),e.exit(i),t):(e.enter(o),f(d))}function f(d){return d===a?(e.exit(o),l(a)):d===null?r(d):Fn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),vr(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(d))}function s(d){return d===a||d===null||Fn(d)?(e.exit("chunkString"),f(d)):(e.consume(d),d===92?u:s)}function u(d){return d===a||d===92?(e.consume(d),s):s(d)}}function Su(e,t){let r;return i;function i(c){return Fn(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),r=!0,i):ar(c)?vr(e,i,r?"linePrefix":"lineSuffix")(c):t(c)}}const uke={name:"definition",tokenize:fke},cke={tokenize:dke,partial:!0};function fke(e,t,r){const i=this;let c;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return kP.call(i,e,n,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function n(h){return c=bl(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return Sa(h)?Su(e,f)(h):f(h)}function f(h){return TP(e,s,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function s(h){return e.attempt(cke,u,u)(h)}function u(h){return ar(h)?vr(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Fn(h)?(e.exit("definition"),i.parser.defined.push(c),t(h)):r(h)}}function dke(e,t,r){return i;function i(n){return Sa(n)?Su(e,c)(n):r(n)}function c(n){return MP(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(n)}function o(n){return ar(n)?vr(e,a,"whitespace")(n):a(n)}function a(n){return n===null||Fn(n)?t(n):r(n)}}const hke={name:"hardBreakEscape",tokenize:pke};function pke(e,t,r){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),c}function c(o){return Fn(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}const gke={name:"headingAtx",tokenize:vke,resolve:mke};function mke(e,t){let r=e.length-2,i=3,c,o;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(c={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},o={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},pi(e,i,r-i+1,[["enter",c,t],["enter",o,t],["exit",o,t],["exit",c,t]])),e}function vke(e,t,r){let i=0;return c;function c(s){return e.enter("atxHeading"),o(s)}function o(s){return e.enter("atxHeadingSequence"),a(s)}function a(s){return s===35&&i++<6?(e.consume(s),a):s===null||Sa(s)?(e.exit("atxHeadingSequence"),n(s)):r(s)}function n(s){return s===35?(e.enter("atxHeadingSequence"),l(s)):s===null||Fn(s)?(e.exit("atxHeading"),t(s)):ar(s)?vr(e,n,"whitespace")(s):(e.enter("atxHeadingText"),f(s))}function l(s){return s===35?(e.consume(s),l):(e.exit("atxHeadingSequence"),n(s))}function f(s){return s===null||s===35||Sa(s)?(e.exit("atxHeadingText"),n(s)):(e.consume(s),f)}}const yke=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],T5=["pre","script","style","textarea"],bke={name:"htmlFlow",tokenize:Tke,resolveTo:_ke,concrete:!0},xke={tokenize:Mke,partial:!0},wke={tokenize:kke,partial:!0};function _ke(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Tke(e,t,r){const i=this;let c,o,a,n,l;return f;function f(E){return s(E)}function s(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),u}function u(E){return E===33?(e.consume(E),d):E===47?(e.consume(E),o=!0,m):E===63?(e.consume(E),c=3,i.interrupt?t:$):fi(E)?(e.consume(E),a=String.fromCharCode(E),y):r(E)}function d(E){return E===45?(e.consume(E),c=2,h):E===91?(e.consume(E),c=5,n=0,p):fi(E)?(e.consume(E),c=4,i.interrupt?t:$):r(E)}function h(E){return E===45?(e.consume(E),i.interrupt?t:$):r(E)}function p(E){const W="CDATA[";return E===W.charCodeAt(n++)?(e.consume(E),n===W.length?i.interrupt?t:P:p):r(E)}function m(E){return fi(E)?(e.consume(E),a=String.fromCharCode(E),y):r(E)}function y(E){if(E===null||E===47||E===62||Sa(E)){const W=E===47,G=a.toLowerCase();return!W&&!o&&T5.includes(G)?(c=1,i.interrupt?t(E):P(E)):yke.includes(a.toLowerCase())?(c=6,W?(e.consume(E),v):i.interrupt?t(E):P(E)):(c=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(E):o?g(E):b(E))}return E===45||Ra(E)?(e.consume(E),a+=String.fromCharCode(E),y):r(E)}function v(E){return E===62?(e.consume(E),i.interrupt?t:P):r(E)}function g(E){return ar(E)?(e.consume(E),g):S(E)}function b(E){return E===47?(e.consume(E),S):E===58||E===95||fi(E)?(e.consume(E),x):ar(E)?(e.consume(E),b):S(E)}function x(E){return E===45||E===46||E===58||E===95||Ra(E)?(e.consume(E),x):_(E)}function _(E){return E===61?(e.consume(E),w):ar(E)?(e.consume(E),_):b(E)}function w(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),l=E,k):ar(E)?(e.consume(E),w):T(E)}function k(E){return E===l?(e.consume(E),l=null,M):E===null||Fn(E)?r(E):(e.consume(E),k)}function T(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Sa(E)?_(E):(e.consume(E),T)}function M(E){return E===47||E===62||ar(E)?b(E):r(E)}function S(E){return E===62?(e.consume(E),C):r(E)}function C(E){return E===null||Fn(E)?P(E):ar(E)?(e.consume(E),C):r(E)}function P(E){return E===45&&c===2?(e.consume(E),F):E===60&&c===1?(e.consume(E),A):E===62&&c===4?(e.consume(E),j):E===63&&c===3?(e.consume(E),$):E===93&&c===5?(e.consume(E),B):Fn(E)&&(c===6||c===7)?(e.exit("htmlFlowData"),e.check(xke,N,D)(E)):E===null||Fn(E)?(e.exit("htmlFlowData"),D(E)):(e.consume(E),P)}function D(E){return e.check(wke,O,N)(E)}function O(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),R}function R(E){return E===null||Fn(E)?D(E):(e.enter("htmlFlowData"),P(E))}function F(E){return E===45?(e.consume(E),$):P(E)}function A(E){return E===47?(e.consume(E),a="",z):P(E)}function z(E){if(E===62){const W=a.toLowerCase();return T5.includes(W)?(e.consume(E),j):P(E)}return fi(E)&&a.length<8?(e.consume(E),a+=String.fromCharCode(E),z):P(E)}function B(E){return E===93?(e.consume(E),$):P(E)}function $(E){return E===62?(e.consume(E),j):E===45&&c===2?(e.consume(E),$):P(E)}function j(E){return E===null||Fn(E)?(e.exit("htmlFlowData"),N(E)):(e.consume(E),j)}function N(E){return e.exit("htmlFlow"),t(E)}}function kke(e,t,r){const i=this;return c;function c(a){return Fn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):r(a)}function o(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}function Mke(e,t,r){return i;function i(c){return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),e.attempt(Np,t,r)}}const Ske={name:"htmlText",tokenize:Cke};function Cke(e,t,r){const i=this;let c,o,a;return n;function n($){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume($),l}function l($){return $===33?(e.consume($),f):$===47?(e.consume($),_):$===63?(e.consume($),b):fi($)?(e.consume($),T):r($)}function f($){return $===45?(e.consume($),s):$===91?(e.consume($),o=0,p):fi($)?(e.consume($),g):r($)}function s($){return $===45?(e.consume($),h):r($)}function u($){return $===null?r($):$===45?(e.consume($),d):Fn($)?(a=u,A($)):(e.consume($),u)}function d($){return $===45?(e.consume($),h):u($)}function h($){return $===62?F($):$===45?d($):u($)}function p($){const j="CDATA[";return $===j.charCodeAt(o++)?(e.consume($),o===j.length?m:p):r($)}function m($){return $===null?r($):$===93?(e.consume($),y):Fn($)?(a=m,A($)):(e.consume($),m)}function y($){return $===93?(e.consume($),v):m($)}function v($){return $===62?F($):$===93?(e.consume($),v):m($)}function g($){return $===null||$===62?F($):Fn($)?(a=g,A($)):(e.consume($),g)}function b($){return $===null?r($):$===63?(e.consume($),x):Fn($)?(a=b,A($)):(e.consume($),b)}function x($){return $===62?F($):b($)}function _($){return fi($)?(e.consume($),w):r($)}function w($){return $===45||Ra($)?(e.consume($),w):k($)}function k($){return Fn($)?(a=k,A($)):ar($)?(e.consume($),k):F($)}function T($){return $===45||Ra($)?(e.consume($),T):$===47||$===62||Sa($)?M($):r($)}function M($){return $===47?(e.consume($),F):$===58||$===95||fi($)?(e.consume($),S):Fn($)?(a=M,A($)):ar($)?(e.consume($),M):F($)}function S($){return $===45||$===46||$===58||$===95||Ra($)?(e.consume($),S):C($)}function C($){return $===61?(e.consume($),P):Fn($)?(a=C,A($)):ar($)?(e.consume($),C):M($)}function P($){return $===null||$===60||$===61||$===62||$===96?r($):$===34||$===39?(e.consume($),c=$,D):Fn($)?(a=P,A($)):ar($)?(e.consume($),P):(e.consume($),O)}function D($){return $===c?(e.consume($),c=void 0,R):$===null?r($):Fn($)?(a=D,A($)):(e.consume($),D)}function O($){return $===null||$===34||$===39||$===60||$===61||$===96?r($):$===47||$===62||Sa($)?M($):(e.consume($),O)}function R($){return $===47||$===62||Sa($)?M($):r($)}function F($){return $===62?(e.consume($),e.exit("htmlTextData"),e.exit("htmlText"),t):r($)}function A($){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),z}function z($){return ar($)?vr(e,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):B($)}function B($){return e.enter("htmlTextData"),a($)}}const Lx={name:"labelEnd",tokenize:Rke,resolveTo:Eke,resolveAll:Dke},Oke={tokenize:Lke},Ake={tokenize:Ike},Pke={tokenize:Fke};function Dke(e){let t=-1;for(;++t=3&&(f===null||Fn(f))?(e.exit("thematicBreak"),t(f)):r(f)}function l(f){return f===c?(e.consume(f),i++,l):(e.exit("thematicBreakSequence"),ar(f)?vr(e,n,"whitespace")(f):n(f))}}const Ta={name:"list",tokenize:Hke,continuation:{tokenize:Vke},exit:Gke},Wke={tokenize:Xke,partial:!0},Uke={tokenize:Yke,partial:!0};function Hke(e,t,r){const i=this,c=i.events[i.events.length-1];let o=c&&c[1].type==="linePrefix"?c[2].sliceSerialize(c[1],!0).length:0,a=0;return n;function n(h){const p=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:ly(h)){if(i.containerState.type||(i.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Cf,r,f)(h):f(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return ly(h)&&++a<10?(e.consume(h),l):(!i.interrupt||a<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),f(h)):r(h)}function f(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(Np,i.interrupt?r:s,e.attempt(Wke,d,u))}function s(h){return i.containerState.initialBlankLine=!0,o++,d(h)}function u(h){return ar(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Vke(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(Np,c,o);function c(n){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,vr(e,t,"listItemIndent",i.containerState.size+1)(n)}function o(n){return i.containerState.furtherBlankLines||!ar(n)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(n)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Uke,t,a)(n))}function a(n){return i.containerState._closeFlow=!0,i.interrupt=void 0,vr(e,e.attempt(Ta,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n)}}function Yke(e,t,r){const i=this;return vr(e,c,"listItemIndent",i.containerState.size+1);function c(o){const a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?t(o):r(o)}}function Gke(e){e.exit(this.containerState.type)}function Xke(e,t,r){const i=this;return vr(e,c,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function c(o){const a=i.events[i.events.length-1];return!ar(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}const k5={name:"setextUnderline",tokenize:Kke,resolveTo:Zke};function Zke(e,t){let r=e.length,i,c,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(c=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);const a={type:"setextHeading",start:Object.assign({},e[c][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[c][1].type="setextHeadingText",o?(e.splice(c,0,["enter",a,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end=Object.assign({},e[o][1].end)):e[i][1]=a,e.push(["exit",a,t]),e}function Kke(e,t,r){const i=this;let c;return o;function o(f){let s=i.events.length,u;for(;s--;)if(i.events[s][1].type!=="lineEnding"&&i.events[s][1].type!=="linePrefix"&&i.events[s][1].type!=="content"){u=i.events[s][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||u)?(e.enter("setextHeadingLine"),c=f,a(f)):r(f)}function a(f){return e.enter("setextHeadingLineSequence"),n(f)}function n(f){return f===c?(e.consume(f),n):(e.exit("setextHeadingLineSequence"),ar(f)?vr(e,l,"lineSuffix")(f):l(f))}function l(f){return f===null||Fn(f)?(e.exit("setextHeadingLine"),t(f)):r(f)}}const Jke={tokenize:Qke};function Qke(e){const t=this,r=e.attempt(Np,i,e.attempt(this.parser.constructs.flowInitial,c,vr(e,e.attempt(this.parser.constructs.flow,c,e.attempt(ake,c)),"linePrefix")));return r;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function c(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const eMe={resolveAll:CP()},tMe=SP("string"),nMe=SP("text");function SP(e){return{tokenize:t,resolveAll:CP(e==="text"?rMe:void 0)};function t(r){const i=this,c=this.parser.constructs[e],o=r.attempt(c,a,n);return a;function a(s){return f(s)?o(s):n(s)}function n(s){if(s===null){r.consume(s);return}return r.enter("data"),r.consume(s),l}function l(s){return f(s)?(r.exit("data"),o(s)):(r.consume(s),l)}function f(s){if(s===null)return!0;const u=c[s];let d=-1;if(u)for(;++d-1){const n=a[0];typeof n=="string"?a[0]=n.slice(i):a.shift()}o>0&&a.push(e[c].slice(0,o))}return a}function oMe(e,t){let r=-1;const i=[];let c;for(;++r0){var E=x.filter(function(G){var L=G.on;return L==="hover"}),W=E.reduce(function(G,L){return xf({},G,L.style)},{});T(W)}g!==void 0&&g(a,N)},[g,a,x]),P=$e.useCallback(function(){if(x.length>0){var N=x.filter(function(W){var G=W.on;return G!=="hover"}),E=N.reduce(function(W,G){return xf({},W,G.style)},{});T(E)}b!==void 0&&b(a,event)},[b,a,x]),D=kA({direction:n,justify:l,symbolSize:k.symbolSize||h,symbolSpacing:p,width:u,height:o}),O=D.symbolX,R=D.symbolY,F=D.labelX,A=D.labelY,z=D.labelAnchor,B=D.labelAlignment,$=[v,g,b].some(function(N){return N!==void 0}),j;return $u(d)?j=d:j=Lge[d],et.createElement("g",{transform:"translate(".concat(r,",").concat(i,")"),style:{opacity:k.itemOpacity!==void 0?k.itemOpacity:c}},et.createElement("rect",{width:u,height:o,fill:k.itemBackground||s,style:{cursor:$?"pointer":"auto"},onClick:S,onMouseEnter:C,onMouseLeave:P}),et.createElement(j,{id:a.id,x:O,y:R,size:k.symbolSize||h,fill:a.fill||a.color,borderWidth:k.symbolBorderWidth!==void 0?k.symbolBorderWidth:m,borderColor:k.symbolBorderColor||y}),et.createElement("text",{textAnchor:z,style:xf({},M.legends.text,{fill:k.itemTextColor||f,dominantBaseline:B,pointerEvents:"none",userSelect:"none"}),x:F,y:A},a.label))};Vi.displayName="LegendSvgItem";Vi.propTypes=xf({data:Tp.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired,textColor:oe.string,background:oe.string,opacity:oe.number,direction:oe.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:oe.bool.isRequired},wp,_p);Vi.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};function Ige(e){for(var t=1;tt}var Xge=Gge,Zge=AA,Kge=Xge,Jge=Vo;function Qge(e){return e&&e.length?Zge(e,Jge,Kge):void 0}var eme=Qge;const DA=ir(eme);var tme=Math.ceil,nme=Math.max;function rme(e,t,r,i){for(var u=-1,o=nme(tme((t-e)/(r||1)),0),a=Array(o);o--;)a[i?o:++u]=e,e+=r;return a}var ame=rme,ime=ame,ome=U1,s0=z8;function lme(e){return function(t,r,i){return i&&typeof i!="number"&&ome(t,r,i)&&(r=i=void 0),t=s0(t),r===void 0?(r=t,t=0):r=s0(r),i=i===void 0?t=x0e){var f=t?null:y0e(e);if(f)return b0e(f);a=!1,u=v0e,l=new p0e}else l=t?[]:n;e:for(;++i-1}function ove(e,t){var r=this.__data__,i=Op(r,e);return i<0?r.push([e,t]):r[i][1]=t,this}ls.prototype.clear=nve;ls.prototype.delete=rve;ls.prototype.get=ave;ls.prototype.has=ive;ls.prototype.set=ove;function Qo(e){var t=-1,r=e?e.length:0;for(this.clear();++t11))throw new Error("Invalid size '".concat(t.size,"' for diverging color scheme '").concat(t.scheme,"', must be between 3~11"));var l=To(wf[t.scheme][t.size||11]),f=function(h){return l(i(h))};return f.scale=l,f}if(Vve(t.scheme)){if(t.size!==void 0&&(t.size<3||t.size>9))throw new Error("Invalid size '".concat(t.size,"' for sequential color scheme '").concat(t.scheme,"', must be between 3~9"));var s=To(wf[t.scheme][t.size||9]),c=function(h){return s(i(h))};return c.scale=s,c}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},KA=function(t,r){return $e.useMemo(function(){return ZA(t,r)},[t,r])};function Gve(e,t){return Kve(e)||Zve(e,t)||Xve()}function Xve(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Zve(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var r=[],i=!0,u=!1,o=void 0;try{for(var a=e[Symbol.iterator](),n;!(i=(n=a.next()).done)&&(r.push(n.value),!(t&&r.length===t));i=!0);}catch(l){u=!0,o=l}finally{try{!i&&a.return!=null&&a.return()}finally{if(u)throw o}}return r}}function Kve(e){if(Array.isArray(e))return e}var _f=function(t,r){if(typeof t=="function")return function(d){return t(d)};if(VA(t)){if(t.theme!==void 0){if(r===void 0)throw new Error("Unable to use color from theme as no theme was provided");var i=gd(r,t.theme);if(i===void 0)throw new Error("Color from theme is undefined at path: '".concat(t.theme,"'"));return function(){return i}}if(t.from!==void 0){var u=function(h){return gd(h,t.from)};if(Array.isArray(t.modifiers)){var o=[],a=!0,n=!1,l=void 0;try{for(var f=function(){var h=c.value,p=Gve(h,2),m=p[0],y=p[1];if(m==="brighter")o.push(function(v){return v.brighter(y)});else if(m==="darker")o.push(function(v){return v.darker(y)});else if(m==="opacity")o.push(function(v){return v.opacity=y,v});else throw new Error("Invalid color modifier: '".concat(m,"', must be one of: 'brighter', 'darker', 'opacity'"))},s=t.modifiers[Symbol.iterator](),c;!(a=(c=s.next()).done);a=!0)f()}catch(d){n=!0,l=d}finally{try{!a&&s.return!=null&&s.return()}finally{if(n)throw l}}return o.length===0?u:function(d){return o.reduce(function(h,p){return p(h)},Po(u(d))).toString()}}return u}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return t}},md=function(t,r){return $e.useMemo(function(){return _f(t,r)},[t,r])},px=oe.oneOfType([oe.func,oe.arrayOf(oe.string),oe.shape({scheme:oe.oneOf(Yve).isRequired,size:oe.number}),oe.shape({datum:oe.string.isRequired}),oe.string]),Jve=oe.oneOfType([oe.func,oe.string]),f0=oe.oneOfType([oe.string,oe.func,oe.shape({theme:oe.string.isRequired}),oe.shape({from:oe.string.isRequired,modifiers:oe.arrayOf(oe.array)})]),Qve=A6,eye=pc;function tye(e,t){return e&&Qve(e,t,eye)}var nye=tye,rye=Zl;function aye(e,t){return function(r,i){if(r==null)return r;if(!rye(r))return e(r,i);for(var u=r.length,o=t?u:-1,a=Object(r);(t?o--:++ou?0:u+t),r=r>u?u:r,r<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(u);++i1),o}),lxe(e,cxe(e),r),i&&(r=axe(r,fxe|dxe|hxe,sxe));for(var u=t.length;u--;)ixe(r,t[u]);return r}),gxe=pxe;const a7=ir(gxe);var mxe=oe.shape({match:oe.oneOfType([oe.func,oe.object]).isRequired,type:oe.oneOf(["circle","rect","dot"]).isRequired,noteX:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteY:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteWidth:oe.number,noteTextOffset:oe.number,note:oe.oneOfType([oe.node,oe.func]).isRequired,offset:oe.number}),vd={noteWidth:120,noteTextOffset:8,animate:!0,motionStiffness:90,motionDamping:13};function vxe(e){for(var t=1;t180?(_-=c,k-=c):k+=c,{points:[[y,v],[p,m],[k,T]],text:[_,w],angle:g+90}},i7=function(t){var r=t.items,i=t.annotations,u=t.getPosition,o=t.getDimensions;return $e.useMemo(function(){return xxe({items:r,annotations:i,getPosition:u,getDimensions:o})},[r,i,u,o])},Txe=function(t){var r=t.type,i=t.containerWidth,u=t.containerHeight,o=t.x,a=t.y,n=t.size,l=t.width,f=t.height,s=t.noteX,c=t.noteY,d=t.noteWidth,h=t.noteTextOffset;return $e.useMemo(function(){return _xe({type:r,containerWidth:i,containerHeight:u,x:o,y:a,size:n,width:l,height:f,noteX:s,noteY:c,noteWidth:d,noteTextOffset:h})},[r,i,u,o,a,n,l,f,s,c,d,h])};function kxe(e){for(var t=1;t0&&et.createElement("text",{x:r,y:i,style:kxe({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:o.annotations.text.outlineWidth*2,stroke:o.annotations.text.outlineColor})},u),et.createElement("text",{x:r,y:i,style:a7(o.annotations.text,["outlineWidth","outlineColor"])},u))});Zu.displayName="AnnotationNote";Zu.propTypes={datum:oe.object.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};Zu.defaultProps={};function Sxe(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:RM({},u.annotations.outline,{fill:"none",strokeWidth:u.annotations.outline.strokeWidth+u.annotations.outline.outlineWidth*2,stroke:u.annotations.outline.outlineColor})}),et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:u.annotations.outline}))}):et.createElement(et.Fragment,null,u.annotations.outline.outlineWidth>0&&et.createElement("circle",{cx:t,cy:r,r:i/2,style:RM({},u.annotations.outline,{fill:"none",strokeWidth:u.annotations.outline.strokeWidth+u.annotations.outline.outlineWidth*2,stroke:u.annotations.outline.outlineColor})}),et.createElement("circle",{cx:t,cy:r,r:i/2,style:u.annotations.outline}))});gx.displayName="CircleAnnotationOutline";gx.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};function LM(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:LM({},u.annotations.outline,{fill:"none",strokeWidth:u.annotations.outline.outlineWidth*2,stroke:u.annotations.outline.outlineColor})}),et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:u.annotations.symbol}))}):et.createElement(et.Fragment,null,u.annotations.outline.outlineWidth>0&&et.createElement("circle",{cx:t,cy:r,r:i/2,style:LM({},u.annotations.outline,{fill:"none",strokeWidth:u.annotations.outline.outlineWidth*2,stroke:u.annotations.outline.outlineColor})}),et.createElement("circle",{cx:t,cy:r,r:i/2,style:u.annotations.symbol}))});Pp.displayName="DotAnnotationOutline";Pp.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};Pp.defaultProps={size:4};function IM(e){for(var t=1;t0&&et.createElement("rect",{x:f.x,y:f.y,width:f.width,height:f.height,style:IM({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+o.annotations.outline.outlineWidth*2,stroke:o.annotations.outline.outlineColor})}),et.createElement("rect",{x:f.x,y:f.y,width:f.width,height:f.height,style:o.annotations.outline}))}):et.createElement(et.Fragment,null,o.annotations.outline.outlineWidth>0&&et.createElement("rect",{x:t-i/2,y:r-u/2,width:i,height:u,style:IM({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+o.annotations.outline.outlineWidth*2,stroke:o.annotations.outline.outlineColor})}),et.createElement("rect",{x:t-i/2,y:r-u/2,width:i,height:u,style:o.annotations.outline}))});mx.displayName="RectAnnotationOutline";mx.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired};var vc=$e.memo(function(e){var t=e.datum,r=e.type,i=e.containerWidth,u=e.containerHeight,o=e.x,a=e.y,n=e.size,l=e.width,f=e.height,s=e.noteX,c=e.noteY,d=e.noteWidth,h=e.noteTextOffset,p=e.note,m=Oa(),y=m.animate,v=m.springConfig,g=Txe({type:r,containerWidth:i,containerHeight:u,x:o,y:a,size:n,width:l,height:f,noteX:s,noteY:c,noteWidth:d,noteTextOffset:h});return et.createElement(et.Fragment,null,et.createElement(Ku,{points:g.points,isOutline:!0}),r==="circle"&&et.createElement(gx,{x:o,y:a,size:n}),r==="dot"&&et.createElement(Pp,{x:o,y:a,size:n}),r==="rect"&&et.createElement(mx,{x:o,y:a,width:l,height:f}),et.createElement(Ku,{points:g.points}),!y&&et.createElement(Zu,{x:g.text[0],y:g.text[1],note:p}),y&&et.createElement(Si,{style:{x:Pn(g.text[0],v),y:Pn(g.text[1],v)}},function(b){return et.createElement(Zu,{datum:t,x:b.x,y:b.y,note:p})}))});vc.displayName="Annotation";vc.propTypes={datum:oe.object.isRequired,type:oe.oneOf(["circle","rect","dot"]).isRequired,containerWidth:oe.number.isRequired,containerHeight:oe.number.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number,width:oe.number,height:oe.number,noteX:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteY:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteWidth:oe.number.isRequired,noteTextOffset:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};vc.defaultProps={noteWidth:vd.noteWidth,noteTextOffset:vd.noteTextOffset};var Dp=function(t,r,i,u){return G1().rangeRound(i).domain(t.map(r)).padding(u)};function FM(e){return Rxe(e)||Exe(e)||Dxe()}function Dxe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Exe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Rxe(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&(l=0)),Do().rangeRound(o).domain([l,n])},Lxe=function(t){var r=t.data,i=t.getIndex,u=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,c=t.padding,d=c===void 0?0:c,h=t.innerPadding,p=h===void 0?0:h,m=Dp(r,i,[0,l],d),y=n?[0,f]:[f,0],v=o7(r,u,o,a,y),g=(m.bandwidth()-p*(u.length-1))/u.length,b=v(0),x=function(T){return T>0?v(T):b},_=function(T,M){return T>0?b-M:v(T)-b};n&&(x=function(T){return T<0?v(T):b},_=function(T,M){return T<0?b-M:v(T)-b});var w=[];return g>0&&u.forEach(function(k,T){EA(m.domain().length).forEach(function(M){var S=m(i(r[M]))+g*T+p*T,C=x(r[M][k]),P=_(r[M][k],C);if(g>0&&P>0){var D={id:k,value:r[M][k],index:M,indexValue:i(r[M]),data:r[M]};w.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:S,y:C,width:g,height:P,color:s(D)})}})}),{xScale:m,yScale:v,bars:w}},Ixe=function(t){var r=t.data,i=t.getIndex,u=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,c=t.padding,d=c===void 0?0:c,h=t.innerPadding,p=h===void 0?0:h,m=n?[l,0]:[0,l],y=o7(r,u,o,a,m),v=Dp(r,i,[f,0],d),g=(v.bandwidth()-p*(u.length-1))/u.length,b=y(0),x=function(T){return T>0?b:y(T)},_=function(T,M){return T>0?y(T)-b:b-M};n&&(x=function(T){return T<0?b:y(T)},_=function(T,M){return T<0?y(T)-b:b-M});var w=[];return g>0&&u.forEach(function(k,T){EA(v.domain().length).forEach(function(M){var S=x(r[M][k]),C=v(i(r[M]))+g*T+p*T,P=_(r[M][k],S);if(P>0){var D={id:k,value:r[M][k],index:M,indexValue:i(r[M]),data:r[M]};w.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:S,y:C,width:P,height:g,color:s(D)})}})}),{xScale:y,yScale:v,bars:w}},l7=function(t){return t.layout==="vertical"?Lxe(t):Ixe(t)},s7=function(t,r,i,u){var o=mme(t,2),a=r;a==="auto"&&(a=PA(o));var n=i;return n==="auto"&&(n=DA(o)),Do().rangeRound(u).domain([a,n])},Fxe=function(t){var r=t.data,i=t.getIndex,u=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,c=t.padding,d=c===void 0?0:c,h=t.innerPadding,p=h===void 0?0:h,m=jO().keys(u).offset(xb)(r),y=Dp(r,i,[0,l],d),v=n?[0,f]:[f,0],g=s7(m,o,a,v),b=[],x=y.bandwidth(),_=function(T){return g(T[1])},w=function(T,M){return g(T[0])-M};return n&&(_=function(T){return g(T[0])},w=function(T,M){return g(T[1])-M}),x>0&&m.forEach(function(k){y.domain().forEach(function(T,M){var S=k[M],C=y(i(S.data)),P=_(S),D=w(S,P);if(p>0&&(P+=p*.5,D-=p),D>0){var O={id:k.key,value:S.data[k.key],index:M,indexValue:T,data:S.data};b.push({key:"".concat(k.key,".").concat(T),data:O,x:C,y:P,width:x,height:D,color:s(O)})}})}),{xScale:y,yScale:g,bars:b}},Nxe=function(t){var r=t.data,i=t.getIndex,u=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,c=t.padding,d=c===void 0?0:c,h=t.innerPadding,p=h===void 0?0:h,m=jO().keys(u).offset(xb)(r),y=n?[l,0]:[0,l],v=s7(m,o,a,y),g=Dp(r,i,[f,0],d),b=[],x=g.bandwidth(),_=function(T){return v(T[0])},w=function(T,M){return v(T[1])-M};return n&&(_=function(T){return v(T[1])},w=function(T,M){return v(T[0])-M}),x>0&&m.forEach(function(k){g.domain().forEach(function(T,M){var S=k[M],C=g(i(S.data)),P={id:k.key,value:S.data[k.key],index:M,indexValue:T,data:S.data},D=_(S),O=w(S,D);p>0&&(D+=p*.5,O-=p),O>0&&b.push({key:"".concat(k.key,".").concat(T),data:P,x:D,y:C,width:O,height:x,color:s(P)})})}),{xScale:v,yScale:g,bars:b}},u7=function(t){return t.layout==="vertical"?Fxe(t):Nxe(t)},jxe=function(t,r,i,u,o){var a=Gu(t.map(function(n){return{id:n.data.id,label:n.data.id,color:n.color,fill:n.data.fill}}),function(n){var l=n.id;return l});return(r==="vertical"&&u==="stacked"&&i==="column"&&o!==!0||r==="horizontal"&&u==="stacked"&&o===!0)&&a.reverse(),a},$xe=function(t){return Gu(t.map(function(r){return{id:r.data.indexValue,label:r.data.indexValue,color:r.color,fill:r.data.fill}}),function(r){var i=r.id;return i})},Bxe=function(t){var r=t.from,i=t.bars,u=t.layout,o=t.direction,a=t.groupMode,n=t.reverse;return r==="indexes"?$xe(i):jxe(i,u,o,a,n)};function Wv(e){for(var t=1;t0&&ce0&&ye0&&(this.ctx.lineWidth=M.grid.line.strokeWidth,this.ctx.strokeStyle=M.grid.line.stroke,O&&Il(this.ctx,{width:s,height:c,scale:B.xScale,axis:"x",values:R}),F&&Il(this.ctx,{width:s,height:c,scale:B.yScale,axis:"y",values:A})),this.ctx.strokeStyle="#dddddd";var $=Gu(B.bars.map(function(N){return{id:N.data.id,label:N.data.id,color:N.color,fill:N.data.fill}}).reverse(),function(N){var E=N.id;return E}),j=Gu(B.bars.map(function(N){return{id:N.data.indexValue,label:N.data.indexValue,color:N.color,fill:N.data.fill}}),function(N){var E=N.id;return E});D.forEach(function(N){var E;if(N.dataFrom==="keys"?E=$:N.dataFrom==="indexes"&&(E=j),E===void 0)return null;sx(u.ctx,jM({},N,{data:E,containerWidth:s,containerHeight:c,itemTextColor:"#999",symbolSize:16,theme:M}))}),Wb(this.ctx,{xScale:B.xScale,yScale:B.yScale,width:s,height:c,top:_,right:w,bottom:k,left:T,theme:M}),B.bars.forEach(function(N){var E=N.x,W=N.y,G=N.color,L=N.width,q=N.height;u.ctx.fillStyle=G,C>0&&(u.ctx.strokeStyle=P(N),u.ctx.lineWidth=C),u.ctx.beginPath(),u.ctx.rect(E,W,L,q),u.ctx.fill(),C>0&&u.ctx.stroke()})}},{key:"render",value:function(){var i=this,u=this.props,o=u.outerWidth,a=u.outerHeight,n=u.pixelRatio,l=u.isInteractive,f=u.theme;return et.createElement(sp,{isInteractive:l,theme:f,animate:!1},function(s){var c=s.showTooltip,d=s.hideTooltip;return et.createElement("canvas",{ref:function(p){i.surface=p},width:o*n,height:a*n,style:{width:o,height:a},onMouseEnter:i.handleMouseHover(c,d),onMouseMove:i.handleMouseHover(c,d),onMouseLeave:i.handleMouseLeave(d),onClick:i.handleClick})})}}]),t}($e.Component);g7.propTypes=f7;var i2e=_b("BarCanvas")(d7(g7));function Yv(){return Yv=Object.assign||function(e){for(var t=1;tje.jsx(Qr,{sx:{maxWidth:200,height:50},children:je.jsx(o2e,{data:e.data[e.xField].map((t,r)=>({id:t,x:e.data[e.yField][r]})),margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),s2e=l2e;var u2e=IA;function c2e(e){return e&&e.length?u2e(e):[]}var f2e=c2e;const zM=ir(f2e);var d2e=JA,h2e=Zl;function p2e(e,t){var r=-1,i=h2e(e)?Array(e.length):[];return d2e(e,function(u,o,a){i[++r]=t(u,o,a)}),i}var g2e=p2e;function m2e(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var v2e=m2e,qM=Ql;function y2e(e,t){if(e!==t){var r=e!==void 0,i=e===null,u=e===e,o=qM(e),a=t!==void 0,n=t===null,l=t===t,f=qM(t);if(!n&&!f&&!o&&e>t||o&&a&&l&&!n&&!f||i&&a&&l||!r&&l||!u)return 1;if(!i&&!o&&!f&&e=n)return l;var f=r[i];return l*(f=="desc"?-1:1)}}return e.index-t.index}var _2e=w2e,d0=vh,T2e=cc,k2e=ux,M2e=g2e,S2e=v2e,C2e=Kl,O2e=_2e,A2e=Vo,P2e=ba;function D2e(e,t,r){t.length?t=d0(t,function(o){return P2e(o)?function(a){return T2e(a,o.length===1?o[0]:o)}:o}):t=[A2e];var i=-1;t=d0(t,C2e(k2e));var u=M2e(e,function(o,a,n){var l=d0(t,function(f){return f(o)});return{criteria:l,index:++i,value:o}});return S2e(u,function(o,a){return O2e(o,a,r)})}var E2e=D2e,R2e=Db,L2e=E2e,I2e=mh,WM=U1,F2e=I2e(function(e,t){if(e==null)return[];var r=t.length;return r>1&&WM(e,t[0],t[1])?t=[]:r>2&&WM(t[0],t[1],t[2])&&(t=[t[0]]),L2e(e,R2e(t,1),[])}),N2e=F2e;const j2e=ir(N2e);var $2e=Li,B2e=Fa,z2e="[object Date]";function q2e(e){return B2e(e)&&$2e(e)==z2e}var W2e=q2e,U2e=W2e,H2e=Kl,UM=gh,HM=UM&&UM.isDate,V2e=HM?H2e(HM):U2e,Y2e=V2e;const G2e=ir(Y2e);var X2e=function(t,r,i,u){var o=t.axis,a=t.min,n=a===void 0?0:a,l=t.max,f=l===void 0?"auto":l,s=t.stacked,c=s===void 0?!1:s,d=t.reverse,h=d===void 0?!1:d,p=r[o],m=o==="x"?i:u,y=n;n==="auto"&&(y=c===!0?p.minStacked:p.min);var v=f;f==="auto"&&(v=c===!0?p.maxStacked:p.max);var g=Do().rangeRound(o==="x"?[0,m]:[m,0]);return h===!0?g.domain([v,y]):g.domain([y,v]),g.type="linear",g.stacked=c,g},Z2e={type:oe.oneOf(["linear"]).isRequired,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),stacked:oe.bool,reverse:oe.bool},K2e=function(t,r,i,u){var o=t.axis,a=t.base,n=a===void 0?10:a,l=t.min,f=l===void 0?"auto":l,s=t.max,c=s===void 0?"auto":s,d=r[o],h=o==="x"?i:u,p=d.all.some(function(x){return x===0}),m,y=!1;if(d.all.forEach(function(x){y!==!0&&(m===void 0?m=Math.sign(x):Math.sign(x)!==m&&(y=!0))}),p||y)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join(` +`));var v=f;f==="auto"&&(v=d.min);var g=c;c==="auto"&&(g=d.max);var b=iO().domain([v,g]).rangeRound(o==="x"?[0,h]:[h,0]).base(n).nice();return b.type="log",b},J2e={type:oe.oneOf(["log"]).isRequired,base:oe.number,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number])},Q2e=function(t,r,i,u){var o=t.axis,a=r[o],n=o==="x"?i:u,l=lne().range([0,n]).domain(a.all);return l.type="point",l},ewe={type:oe.oneOf(["point"]).isRequired},xi;function ho(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vx="millisecond",m7="second",v7="minute",y7="hour",b7="day",x7="month",w7="year",twe=[vx,m7,v7,y7,b7,x7,w7],ul=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],nwe=(xi={},ho(xi,vx,[]),ho(xi,m7,ul.slice(0,1)),ho(xi,v7,ul.slice(0,2)),ho(xi,y7,ul.slice(0,3)),ho(xi,b7,ul.slice(0,4)),ho(xi,x7,ul.slice(0,5)),ho(xi,w7,ul.slice(0,6)),xi),rwe=function(t){return function(r){return nwe[t].forEach(function(i){i(r)}),r}},_7=function(t){var r=t.format,i=r===void 0?"native":r,u=t.precision,o=u===void 0?"millisecond":u,a=t.useUTC,n=a===void 0?!0:a,l=rwe(o);if(i==="native")return function(s){return l(s)};var f=n?c8(i):u8(i);return function(s){return l(f(s))}},awe=function(t,r,i,u){var o=t.axis,a=t.format,n=a===void 0?"native":a,l=t.precision,f=l===void 0?vx:l,s=t.min,c=s===void 0?"auto":s,d=t.max,h=d===void 0?"auto":d,p=t.useUTC,m=p===void 0?!0:p,y=r[o],v=o==="x"?i:u,g=_7({format:n,precision:f,useUTC:m}),b=c;c==="auto"?b=y.min:n!=="native"&&(b=g(c));var x=h;h==="auto"?x=y.max:n!=="native"&&(x=g(h));var _=m?mae():gae();return _.domain([b,x]).range([0,v]),_.type="time",_.useUTC=m,_},iwe={type:oe.oneOf(["time"]).isRequired,format:oe.string,precision:oe.oneOf(twe)};function bd(e){return swe(e)||lwe(e)||owe()}function owe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function lwe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function swe(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},o=u.getValue,a=o===void 0?function(h){return h.data[r]}:o,n=u.setValue,l=n===void 0?function(h,p){h.data[r]=p}:n;if(i.type==="linear")t.forEach(function(h){h.data.forEach(function(p){l(p,a(p)===null?null:parseFloat(a(p)))})});else if(i.type==="time"&&i.format!=="native"){var f=_7(i);t.forEach(function(h){h.data.forEach(function(p){l(p,a(p)===null?null:f(a(p)))})})}var s=[];t.forEach(function(h){h.data.forEach(function(p){s.push(a(p))})});var c,d;return i.type==="linear"?(s=zM(s),s=j2e(s,function(h){return h}),c=Math.min.apply(Math,bd(s)),d=Math.max.apply(Math,bd(s))):i.type==="time"?(s=Gu(s,function(h){return h.getTime()}),s=s.slice(0).sort(function(h,p){return p-h}).reverse(),c=s[0],d=Sn(s)):(s=zM(s),c=s[0],d=Sn(s)),{all:s,min:c,max:d}},k7=function(t,r,i,u){var o=cwe(t),a=[];i[o].all.forEach(function(n){var l=G2e(n)?dwe:fwe,f=[];u.forEach(function(s){var c=s.data.find(function(m){return l(m.data[o],n)}),d=null,h=null;if(c!==void 0){if(d=c.data[t],d!==null){var p=Sn(f);p===void 0?h=d:p!==null&&(h=p+d)}c.data["".concat(t,"Stacked")]=h}f.push(h),a.push(h)})}),a=a.filter(function(n){return n!==null}),i[t].minStacked=Math.min.apply(Math,bd(a)),i[t].maxStacked=Math.max.apply(Math,bd(a))},pwe=function(t,r,i){return k7("x",t,r,i)},gwe=function(t,r,i){return k7("y",t,r,i)},xd=oe.oneOfType([oe.shape(Z2e),oe.shape(ewe),oe.shape(iwe),oe.shape(J2e)]);const GM=Math.pow(2,-52),nf=new Uint32Array(512);class wd{static from(t,r=xwe,i=wwe){const u=t.length,o=new Float64Array(u*2);for(let a=0;a>1;if(r>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const i=Math.max(2*r-5,0);this._triangles=new Uint32Array(i*3),this._halfedges=new Int32Array(i*3),this._hashSize=Math.ceil(Math.sqrt(r)),this._hullPrev=new Uint32Array(r),this._hullNext=new Uint32Array(r),this._hullTri=new Uint32Array(r),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(r),this._dists=new Float64Array(r),this.update()}update(){const{coords:t,_hullPrev:r,_hullNext:i,_hullTri:u,_hullHash:o}=this,a=t.length>>1;let n=1/0,l=1/0,f=-1/0,s=-1/0;for(let S=0;Sf&&(f=C),P>s&&(s=P),this._ids[S]=S}const c=(n+f)/2,d=(l+s)/2;let h=1/0,p,m,y;for(let S=0;S0&&(m=S,h=C)}let b=t[2*m],x=t[2*m+1],_=1/0;for(let S=0;SD&&(S[C++]=O,D=this._dists[O])}this.hull=S.subarray(0,C),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(rf(v,g,b,x,w,k)){const S=m,C=b,P=x;m=y,b=w,x=k,y=S,w=C,k=P}const T=bwe(v,g,b,x,w,k);this._cx=T.x,this._cy=T.y;for(let S=0;S0&&Math.abs(O-C)<=GM&&Math.abs(R-P)<=GM||(C=O,P=R,D===p||D===m||D===y))continue;let F=0;for(let j=0,N=this._hashKey(O,R);j0?3-r:1+r)/4}function h0(e,t,r,i){const u=e-r,o=t-i;return u*u+o*o}function p0(e,t,r,i,u,o){const a=(i-t)*(u-e),n=(r-e)*(o-t);return Math.abs(a-n)>=33306690738754716e-32*Math.abs(a+n)?a-n:0}function rf(e,t,r,i,u,o){return(p0(u,o,e,t,r,i)||p0(e,t,r,i,u,o)||p0(r,i,u,o,e,t))<0}function vwe(e,t,r,i,u,o,a,n){const l=e-a,f=t-n,s=r-a,c=i-n,d=u-a,h=o-n,p=l*l+f*f,m=s*s+c*c,y=d*d+h*h;return l*(c*y-m*h)-f*(s*y-m*d)+p*(s*h-c*d)<0}function ywe(e,t,r,i,u,o){const a=r-e,n=i-t,l=u-e,f=o-t,s=a*a+n*n,c=l*l+f*f,d=.5/(a*f-n*l),h=(f*s-n*c)*d,p=(a*c-l*s)*d;return h*h+p*p}function bwe(e,t,r,i,u,o){const a=r-e,n=i-t,l=u-e,f=o-t,s=a*a+n*n,c=l*l+f*f,d=.5/(a*f-n*l),h=e+(f*s-n*c)*d,p=t+(a*c-l*s)*d;return{x:h,y:p}}function pl(e,t,r,i){if(i-r<=20)for(let u=r+1;u<=i;u++){const o=e[u],a=t[o];let n=u-1;for(;n>=r&&t[e[n]]>a;)e[n+1]=e[n--];e[n+1]=o}else{const u=r+i>>1;let o=r+1,a=i;pu(e,u,o),t[e[r]]>t[e[i]]&&pu(e,r,i),t[e[o]]>t[e[i]]&&pu(e,o,i),t[e[r]]>t[e[o]]&&pu(e,r,o);const n=e[o],l=t[n];for(;;){do o++;while(t[e[o]]l);if(a=a-r?(pl(e,t,o,i),pl(e,t,r,a-1)):(pl(e,t,r,a-1),pl(e,t,o,i))}}function pu(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}function xwe(e){return e[0]}function wwe(e){return e[1]}const XM=1e-6;class So{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,r){this._+=`L${this._x1=+t},${this._y1=+r}`}arc(t,r,i){t=+t,r=+r,i=+i;const u=t+i,o=r;if(i<0)throw new Error("negative radius");this._x1===null?this._+=`M${u},${o}`:(Math.abs(this._x1-u)>XM||Math.abs(this._y1-o)>XM)&&(this._+="L"+u+","+o),i&&(this._+=`A${i},${i},0,1,1,${t-i},${r}A${i},${i},0,1,1,${this._x1=u},${this._y1=o}`)}rect(t,r,i,u){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${+i}v${+u}h${-i}Z`}value(){return this._||null}}class Gv{constructor(){this._=[]}moveTo(t,r){this._.push([t,r])}closePath(){this._.push(this._[0].slice())}lineTo(t,r){this._.push([t,r])}value(){return this._.length?this._:null}}let _we=class{constructor(t,[r,i,u,o]=[0,0,960,500]){if(!((u=+u)>=(r=+r))||!((o=+o)>=(i=+i)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=u,this.xmin=r,this.ymax=o,this.ymin=i,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:r,triangles:i},vectors:u}=this,o=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let h=0,p=0,m=i.length,y,v;h1;)o-=2;for(let a=2;a4)for(let a=0;a0){if(r>=this.ymax)return null;(a=(this.ymax-r)/u)0){if(t>=this.xmax)return null;(a=(this.xmax-t)/i)this.xmax?2:0)|(rthis.ymax?8:0)}};const Twe=2*Math.PI,cl=Math.pow;function kwe(e){return e[0]}function Mwe(e){return e[1]}function Swe(e){const{triangles:t,coords:r}=e;for(let i=0;i1e-10)return!1}return!0}function Cwe(e,t,r){return[e+Math.sin(e+t)*r,t+Math.cos(e-t)*r]}class Ep{static from(t,r=kwe,i=Mwe,u){return new Ep("length"in t?Owe(t,r,i,u):Float64Array.from(Awe(t,r,i,u)))}constructor(t){this._delaunator=new wd(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,r=this.points;if(t.hull&&t.hull.length>2&&Swe(t)){this.collinear=Int32Array.from({length:r.length/2},(d,h)=>h).sort((d,h)=>r[2*d]-r[2*h]||r[2*d+1]-r[2*h+1]);const l=this.collinear[0],f=this.collinear[this.collinear.length-1],s=[r[2*l],r[2*l+1],r[2*f],r[2*f+1]],c=1e-8*Math.hypot(s[3]-s[1],s[2]-s[0]);for(let d=0,h=r.length/2;d0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=u[0],this.triangles[1]=u[1],this.triangles[2]=u[1],a[u[0]]=1,u.length===2&&(a[u[1]]=0))}voronoi(t){return new _we(this,t)}*neighbors(t){const{inedges:r,hull:i,_hullIndex:u,halfedges:o,triangles:a,collinear:n}=this;if(n){const c=n.indexOf(t);c>0&&(yield n[c-1]),c=0&&o!==i&&o!==u;)i=o;return o}_step(t,r,i){const{inedges:u,hull:o,_hullIndex:a,halfedges:n,triangles:l,points:f}=this;if(u[t]===-1||!f.length)return(t+1)%(f.length>>1);let s=t,c=cl(r-f[t*2],2)+cl(i-f[t*2+1],2);const d=u[t];let h=d;do{let p=l[h];const m=cl(r-f[p*2],2)+cl(i-f[p*2+1],2);if(m0&&(de.lineWidth=H.grid.line.strokeWidth,de.strokeStyle=H.grid.line.stroke,k&&Il(de,{width:W,height:G,scale:re,axis:"x",values:T}),M&&Il(de,{width:W,height:G,scale:ie,axis:"y",values:S})),xe==="axes"&&Wb(de,{xScale:re,yScale:ie,width:W,height:G,top:C,right:P,bottom:D,left:O,theme:H}),xe==="areas"&&m===!0&&(de.save(),de.globalAlpha=v,Z.context(de),X.forEach(function(ge){de.fillStyle=ge.color,de.beginPath(),Z(ge.data.map(function(be){return be.position})),de.fill()}),de.restore()),xe==="lines"&&(Y.context(de),X.forEach(function(ge){de.strokeStyle=ge.color,de.lineWidth=p,de.beginPath(),Y(ge.data.map(function(be){return be.position})),de.stroke()})),xe==="points"&&g===!0&&b>0&&le.forEach(function(ge){de.fillStyle=ge.color,de.beginPath(),de.arc(ge.x,ge.y,b/2,0,2*Math.PI),de.fill(),_>0&&(de.strokeStyle=ge.borderColor,de.lineWidth=_,de.stroke())}),xe==="mesh"&&A===!0&&(S7(de,Te),ee&&C7(de,Te,ee.index)),xe==="legends"){var ue=X.map(function(ge){return{id:ge.id,label:ge.id,color:ge.color}}).reverse();R.forEach(function(ge){sx(de,h_e({},ge,{data:ge.data||ue,containerWidth:W,containerHeight:G,theme:H}))})}})},[j,L,q,d,H,Y,X,re,ie,k,T,M,S,C,P,D,O,R,le,g,b,ee]);var Se=$e.useCallback(function(de){var xe=Yu(j.current,de),ue=e5(xe,2),ge=ue[0],be=ue[1];if(!Nb(E.left,E.top,W,G,ge,be))return null;var we=pe.find(ge-E.left,be-E.top);return le[we]},[j,E,W,G,pe]),Oe=Ul(),Me=Oe.showTooltipFromEvent,ce=Oe.hideTooltip,ye=$e.useCallback(function(de){var xe=Se(de);U(xe),xe?Me(et.createElement($,{point:xe}),de):ce()},[Se,U,Me,ce,$]),J=$e.useCallback(function(de){ce(),U(null),ee&&z&&z(ee,de)},[ce,U,z]),ne=$e.useCallback(function(de){if(B){var xe=Se(de);xe&&B(xe,de)}},[Se,B]);return et.createElement("canvas",{ref:j,width:L*o,height:q*o,style:{width:L,height:q,cursor:F?"auto":"normal"},onMouseEnter:F?ye:void 0,onMouseMove:F?ye:void 0,onMouseLeave:F?J:void 0,onClick:F?ne:void 0})};wx.propTypes=qwe;wx.defaultProps=Wwe;var y_e=hp(wx);function Kv(){return Kv=Object.assign||function(e){for(var t=1;tje.jsx(Qr,{sx:{maxWidth:200,height:50},children:je.jsx(b_e,{data:[{id:"1",data:e.data[e.xField].map((t,r)=>({x:t,y:e.data[e.yField][r]}))}],margin:{top:0,right:0,bottom:0,left:0},xScale:{type:"linear",min:0,max:25},axisTop:null,colors:[e.color],axisRight:null,enableGridX:!1,enableGridY:!1})}),w_e=x_e;function __e(e){for(var t=1;tje.jsx(Qr,{sx:{maxWidth:200,height:50},children:je.jsx(V_e,{data:[{id:"1",data:e.data[e.xField].map((t,r)=>({x:t,y:e.data[e.yField][r]}))}],margin:{top:3,right:3,bottom:3,left:3},xScale:{type:"linear",min:0,max:1e3},nodeSize:4,colors:[e.color],useMesh:!1,axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),J_e=K_e,Q_e=new Map([["line",(e,t)=>t[e.field]?je.jsx(w_e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})],["scatter",(e,t)=>t[e.field]?je.jsx(J_e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})],["histogram",(e,t)=>t[e.field]?je.jsx(s2e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})]]),r5=e=>e.map(t=>({def:t,gen:Q_e.get(t.type??"string")})).map(({def:t,gen:r})=>r?{...t,type:void 0,render:i=>r(t,i)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),e3e=e=>{const[t,r]=$e.useState({open:!1,anchorEl:void 0});return je.jsxs(Qr,{sx:{width:50},onClick:i=>r(u=>({open:!u.open,anchorEl:i.currentTarget})),children:[je.jsx(h6,{}),je.jsx(tS,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:je.jsx(Cr,{p:1,children:e.longText})})]})},t3e=e=>{const{columns:t,data:r}=e,i={search:!0,showTitle:!1,pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42},emptyRowsWhenPaging:!1};return je.jsx(et.Fragment,{children:je.jsx(OY,{columns:e.showInfoColumn??!1?[...r5(t),{title:"Info",render:u=>{var o,a,n;return je.jsx(et.Fragment,{children:(o=u.details)!=null&&o.insights?je.jsx(e3e,{longText:`${(a=u.details)==null?void 0:a.insights[0].title}: ${(n=u.details)==null?void 0:n.insights[0].text}`}):je.jsx("div",{})})},width:50}]:[...r5(t)],data:r,detailPanel:({rowData:u})=>u.graphId?je.jsx(FY,{graphId:u.graphId,widgetSize:e.widgetSize}):u.details?je.jsx(k1,{details:u.details,widgetSize:e.widgetSize}):null,options:i})})},a5=e=>je.jsxs("div",{children:[je.jsx(Cr,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),je.jsx(Cr,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),n3e=e=>je.jsx(et.Fragment,{children:e.counters.length===1?je.jsx(a5,{...e.counters[0]}):je.jsx(Jn,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map(t=>je.jsx(Jn,{item:!0,xs:!0,component:Qr,height:"100%",children:je.jsx(Qr,{children:je.jsx(a5,{...t})})},t.label+t.value))})}),r3e=e=>je.jsxs("div",{children:[je.jsxs(Qr,{display:"flex",alignItems:"center",children:[je.jsx(Qr,{width:"100%",mr:1,children:je.jsx(J9,{variant:"determinate",value:e.value/e.maxValue*100})}),je.jsx(Qr,{minWidth:35,children:je.jsx(Cr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),je.jsx(Qr,{width:"100%",children:je.jsx(Cr,{variant:"body2",color:"textSecondary",children:e.details??""})})]});var kx={},a3e=vn;Object.defineProperty(kx,"__esModule",{value:!0});var J7=kx.default=void 0,i3e=a3e(Xr()),o3e=je,l3e=(0,i3e.default)((0,o3e.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"}),"ExpandLessSharp");J7=kx.default=l3e;var Mx={},s3e=vn;Object.defineProperty(Mx,"__esModule",{value:!0});var Q7=Mx.default=void 0,u3e=s3e(Xr()),c3e=je,f3e=(0,u3e.default)((0,c3e.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"}),"ExpandMoreSharp");Q7=Mx.default=f3e;const d3e=e=>{var n,l;const[t,r]=$e.useState(!1),i=lS(),u=(n=e.graph)==null?void 0:n.data.some(({type:f})=>f==="histogram"),a=(i==null?void 0:i.isXaxisAsCategorical)&&!u?{type:"category",categoryorder:"category ascending"}:{};return je.jsx(et.Fragment,{children:je.jsxs(Jn,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[je.jsxs(Jn,{item:!0,xs:2,children:[je.jsx(Cr,{variant:"h5",children:e.header}),je.jsx(Cr,{variant:"subtitle1",children:e.description})]}),je.jsx(Jn,{item:!0,xs:e.graph===void 0?10:5,children:je.jsxs(nS,{children:[je.jsx(rS,{children:je.jsxs(Pf,{children:[je.jsx(Hi,{}),e.metricsValuesHeaders.map(f=>je.jsx(Hi,{children:f}))]})}),je.jsx(aS,{children:e.metrics.map(f=>je.jsxs(Pf,{children:[je.jsx(Hi,{children:f.label}),f.values.map(s=>je.jsx(Hi,{children:s}))]}))})]})}),e.graph===void 0?je.jsx(je.Fragment,{}):je.jsx(Jn,{item:!0,xs:5,children:je.jsx(cS,{data:e.graph.data,layout:{...e.graph.layout,title:void 0,xaxis:{...(l=e.graph.layout)==null?void 0:l.xaxis,...a}},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?je.jsx(je.Fragment,{}):je.jsxs(je.Fragment,{children:[je.jsx(Jn,{item:!0,xs:12,children:je.jsx(di,{variant:"outlined",startIcon:t?je.jsx(J7,{}):je.jsx(Q7,{}),onClick:()=>r(f=>!f),children:"Details"})}),je.jsx(Jn,{item:!0,xs:12,children:je.jsx(my,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(k1,{details:e.details,widgetSize:e.widgetSize})})})]})]})})},h3e=e=>je.jsx(T1,{tabs:e.graphs.map(t=>({title:t.title,tab:je.jsx(Ad,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),p3e=e=>je.jsx(T1,{tabs:e.tabs.map(t=>({title:t.title,tab:xc(`${e.id}1`,t.widget)}))}),g3e=e=>je.jsx(Q9,{children:je.jsxs(nS,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[je.jsx(rS,{children:je.jsxs(Pf,{children:[je.jsx(Hi,{children:e.header[0]},-1),e.header.slice(1).map(t=>je.jsx(Hi,{align:"right",children:t},t))]})}),je.jsx(aS,{children:e.data.map(t=>je.jsxs(Pf,{children:[je.jsx(Hi,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map(r=>je.jsx(Hi,{align:"right",children:r},r))]},t[0]))})]})});function m3e(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const v3e=/[ \t\n\f\r]/g;function y3e(e){return typeof e=="object"?e.type==="text"?i5(e.value):!1:i5(e)}function i5(e){return e.replace(v3e,"")===""}class yc{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}}yc.prototype.property={};yc.prototype.normal={};yc.prototype.space=null;function eP(e,t){const r={},i={};let u=-1;for(;++u4&&r.slice(0,4)==="data"&&T3e.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(l5,C3e);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!l5.test(o)){let a=o.replace(k3e,S3e);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}u=Sx}return new u(i,t)}function S3e(e){return"-"+e.toLowerCase()}function C3e(e){return e.charAt(1).toUpperCase()}const O3e={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},A3e=eP([rP,nP,oP,lP,w3e],"html"),sP=eP([rP,nP,oP,lP,_3e],"svg");function P3e(e){return e.join(" ").trim()}var Cx={exports:{}},s5=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,D3e=/\n/g,E3e=/^\s*/,R3e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,L3e=/^:\s*/,I3e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,F3e=/^[;\s]*/,N3e=/^\s+|\s+$/g,j3e=` +`,u5="/",c5="*",xo="",$3e="comment",B3e="declaration",z3e=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,i=1;function u(p){var m=p.match(D3e);m&&(r+=m.length);var y=p.lastIndexOf(j3e);i=~y?p.length-y:i+p.length}function o(){var p={line:r,column:i};return function(m){return m.position=new a(p),f(),m}}function a(p){this.start=p,this.end={line:r,column:i},this.source=t.source}a.prototype.content=e;function n(p){var m=new Error(t.source+":"+r+":"+i+": "+p);if(m.reason=p,m.filename=t.source,m.line=r,m.column=i,m.source=e,!t.silent)throw m}function l(p){var m=p.exec(e);if(m){var y=m[0];return u(y),e=e.slice(y.length),m}}function f(){l(E3e)}function s(p){var m;for(p=p||[];m=c();)m!==!1&&p.push(m);return p}function c(){var p=o();if(!(u5!=e.charAt(0)||c5!=e.charAt(1))){for(var m=2;xo!=e.charAt(m)&&(c5!=e.charAt(m)||u5!=e.charAt(m+1));)++m;if(m+=2,xo===e.charAt(m-1))return n("End of comment missing");var y=e.slice(2,m-2);return i+=2,u(y),e=e.slice(m),i+=2,p({type:$3e,comment:y})}}function d(){var p=o(),m=l(R3e);if(m){if(c(),!l(L3e))return n("property missing ':'");var y=l(I3e),v=p({type:B3e,property:f5(m[0].replace(s5,xo)),value:y?f5(y[0].replace(s5,xo)):xo});return l(F3e),v}}function h(){var p=[];s(p);for(var m;m=d();)m!==!1&&(p.push(m),s(p));return p}return f(),h()};function f5(e){return e?e.replace(N3e,xo):xo}var q3e=z3e;function uP(e,t){var r=null;if(!e||typeof e!="string")return r;for(var i,u=q3e(e),o=typeof t=="function",a,n,l=0,f=u.length;l0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function H3e(e){const t=Ox(e),r=cP(e);if(t&&r)return{start:t,end:r}}function Mu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?d5(e.position):"start"in e||"end"in e?d5(e):"line"in e||"column"in e?ay(e):""}function ay(e){return h5(e&&e.line)+":"+h5(e&&e.column)}function d5(e){return ay(e&&e.start)+"-"+ay(e&&e.end)}function h5(e){return e&&typeof e=="number"?e:1}class xa extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let u="",o={},a=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?u=t:!o.cause&&t&&(a=!0,u=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?o.ruleId=i:(o.source=i.slice(0,l),o.ruleId=i.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const n=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=n?n.column:void 0,this.fatal=void 0,this.file,this.message=u,this.line=n?n.line:void 0,this.name=Mu(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}xa.prototype.file="";xa.prototype.name="";xa.prototype.reason="";xa.prototype.message="";xa.prototype.stack="";xa.prototype.column=void 0;xa.prototype.line=void 0;xa.prototype.ancestors=void 0;xa.prototype.cause=void 0;xa.prototype.fatal=void 0;xa.prototype.place=void 0;xa.prototype.ruleId=void 0;xa.prototype.source=void 0;const Ax={}.hasOwnProperty,V3e=new Map,Y3e=/[A-Z]/g,G3e=/-([a-z])/g,X3e=new Set(["table","tbody","thead","tfoot","tr"]),Z3e=new Set(["td","th"]);function K3e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Q3e(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=J3e(r,t.jsx,t.jsxs)}const u={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?sP:A3e,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=dP(u,e,void 0);return o&&typeof o!="string"?o:u.create(e,u.Fragment,{children:o||void 0},void 0)}function dP(e,t,r){if(t.type==="element"||t.type==="root"){const i=e.schema;let u=i;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(u=sP,e.schema=u),e.ancestors.push(t);let o=eTe(e,t);const a=tTe(e,e.ancestors);let n=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(o&&X3e.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!y3e(l):!0})),Ax.call(e.components,t.tagName)){const l=t.tagName;n=e.components[l],typeof n!="string"&&n!==e.Fragment&&e.passNode&&(a.node=t)}else n=t.tagName;if(o.length>0){const l=o.length>1?o:o[0];l&&(a.children=l)}return e.schema=i,e.create(t,n,a,r)}if(t.type==="text")return t.value}function J3e(e,t,r){return i;function i(u,o,a,n){const f=Array.isArray(a.children)?r:t;return n?f(o,a,n):f(o,a)}}function Q3e(e,t){return r;function r(i,u,o,a){const n=Array.isArray(o.children),l=Ox(i);return t(u,o,a,n,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function eTe(e,t){const r=[];let i=-1;const u=e.passKeys?new Map:V3e;for(;++i-1&&e.test(String.fromCharCode(r))}}const hTe={'"':"quot","&":"amp","<":"lt",">":"gt"};function pTe(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+hTe[r]+";"}}function gTe(e,t){const r=pTe(tl(e||""));if(!t)return r;const i=r.indexOf(":"),u=r.indexOf("?"),o=r.indexOf("#"),a=r.indexOf("/");return i<0||a>-1&&i>a||u>-1&&i>u||o>-1&&i>o||t.test(r.slice(0,i))?r:""}function tl(e){const t=[];let r=-1,i=0,u=0;for(;++r55295&&o<57344){const n=e.charCodeAt(r+1);o<56320&&n>56319&&n<57344?(a=String.fromCharCode(o,n),u=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(i,r),encodeURIComponent(a)),i=r+u+1,a=""),u&&(r+=u,u=0)}return t.join("")+e.slice(i)}const mTe={};function vTe(e,t){const r=mTe,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,u=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return pP(e,i,u)}function pP(e,t,r){if(yTe(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return p5(e.children,t,r)}return Array.isArray(e)?p5(e,t,r):""}function p5(e,t,r){const i=[];let u=-1;for(;++uu?0:u+t:t=t>u?u:t,r=r>0?r:0,i.length<1e4)a=Array.from(i),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);o0?(pi(e,e.length,0,t),e):t}const m5={}.hasOwnProperty;function bTe(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function bl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function vr(e,t,r,i){const u=i?i-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return ar(l)?(e.enter(r),n(l)):t(l)}function n(l){return ar(l)&&o++a))return;const k=t.events.length;let T=k,M,S;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(M){S=t.events[T][1].end;break}M=!0}for(v(i),w=k;wb;){const _=r[x];t.containerState=_[1],_[0].exit.call(t,e)}r.length=b}function g(){u.write([null]),o=void 0,u=void 0,t.containerState._closeFlow=void 0}}function STe(e,t,r){return vr(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function y5(e){if(e===null||Sa(e)||dTe(e))return 1;if(fTe(e))return 2}function Dx(e,t,r){const i=[];let u=-1;for(;++u1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const c=Object.assign({},e[i][1].end),d=Object.assign({},e[r][1].start);b5(c,-l),b5(d,l),a={type:l>1?"strongSequence":"emphasisSequence",start:c,end:Object.assign({},e[i][1].end)},n={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[r][1].start)},u={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},n.end)},e[i][1].end=Object.assign({},a.start),e[r][1].start=Object.assign({},n.end),f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=za(f,[["enter",e[i][1],t],["exit",e[i][1],t]])),f=za(f,[["enter",u,t],["enter",a,t],["exit",a,t],["enter",o,t]]),f=za(f,Dx(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),f=za(f,[["exit",o,t],["enter",n,t],["exit",n,t],["exit",u,t]]),e[r][1].end.offset-e[r][1].start.offset?(s=2,f=za(f,[["enter",e[r][1],t],["exit",e[r][1],t]])):s=0,pi(e,i-1,r-i+3,f),r=i+f.length-s-2;break}}for(r=-1;++r0&&ar(w)?vr(e,g,"linePrefix",o+1)(w):g(w)}function g(w){return w===null||Fn(w)?e.check(x5,m,x)(w):(e.enter("codeFlowValue"),b(w))}function b(w){return w===null||Fn(w)?(e.exit("codeFlowValue"),g(w)):(e.consume(w),b)}function x(w){return e.exit("codeFenced"),t(w)}function _(w,k,T){let M=0;return S;function S(R){return w.enter("lineEnding"),w.consume(R),w.exit("lineEnding"),C}function C(R){return w.enter("codeFencedFence"),ar(R)?vr(w,P,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):P(R)}function P(R){return R===n?(w.enter("codeFencedFenceSequence"),D(R)):T(R)}function D(R){return R===n?(M++,w.consume(R),D):M>=a?(w.exit("codeFencedFenceSequence"),ar(R)?vr(w,O,"whitespace")(R):O(R)):T(R)}function O(R){return R===null||Fn(R)?(w.exit("codeFencedFence"),k(R)):T(R)}}}function jTe(e,t,r){const i=this;return u;function u(a){return a===null?r(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}const v0={name:"codeIndented",tokenize:BTe},$Te={tokenize:zTe,partial:!0};function BTe(e,t,r){const i=this;return u;function u(f){return e.enter("codeIndented"),vr(e,o,"linePrefix",5)(f)}function o(f){const s=i.events[i.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?a(f):r(f)}function a(f){return f===null?l(f):Fn(f)?e.attempt($Te,a,l)(f):(e.enter("codeFlowValue"),n(f))}function n(f){return f===null||Fn(f)?(e.exit("codeFlowValue"),a(f)):(e.consume(f),n)}function l(f){return e.exit("codeIndented"),t(f)}}function zTe(e,t,r){const i=this;return u;function u(a){return i.parser.lazy[i.now().line]?r(a):Fn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u):vr(e,o,"linePrefix",5)(a)}function o(a){const n=i.events[i.events.length-1];return n&&n[1].type==="linePrefix"&&n[2].sliceSerialize(n[1],!0).length>=4?t(a):Fn(a)?u(a):r(a)}}const qTe={name:"codeText",tokenize:HTe,resolve:WTe,previous:UTe};function WTe(e){let t=e.length-4,r=3,i,u;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i=4?t(a):e.interrupt(i.parser.constructs.flow,r,t)(a)}}function xP(e,t,r,i,u,o,a,n,l){const f=l||Number.POSITIVE_INFINITY;let s=0;return c;function c(v){return v===60?(e.enter(i),e.enter(u),e.enter(o),e.consume(v),e.exit(o),d):v===null||v===32||v===41||iy(v)?r(v):(e.enter(i),e.enter(a),e.enter(n),e.enter("chunkString",{contentType:"string"}),m(v))}function d(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(u),e.exit(i),t):(e.enter(n),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===62?(e.exit("chunkString"),e.exit(n),d(v)):v===null||v===60||Fn(v)?r(v):(e.consume(v),v===92?p:h)}function p(v){return v===60||v===62||v===92?(e.consume(v),h):h(v)}function m(v){return!s&&(v===null||v===41||Sa(v))?(e.exit("chunkString"),e.exit(n),e.exit(a),e.exit(i),t(v)):s999||h===null||h===91||h===93&&!l||h===94&&!n&&"_hiddenFootnoteSupport"in a.parser.constructs?r(h):h===93?(e.exit(o),e.enter(u),e.consume(h),e.exit(u),e.exit(i),t):Fn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||Fn(h)||n++>999?(e.exit("chunkString"),s(h)):(e.consume(h),l||(l=!ar(h)),h===92?d:c)}function d(h){return h===91||h===92||h===93?(e.consume(h),n++,c):c(h)}}function _P(e,t,r,i,u,o){let a;return n;function n(d){return d===34||d===39||d===40?(e.enter(i),e.enter(u),e.consume(d),e.exit(u),a=d===40?41:d,l):r(d)}function l(d){return d===a?(e.enter(u),e.consume(d),e.exit(u),e.exit(i),t):(e.enter(o),f(d))}function f(d){return d===a?(e.exit(o),l(a)):d===null?r(d):Fn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),vr(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(d))}function s(d){return d===a||d===null||Fn(d)?(e.exit("chunkString"),f(d)):(e.consume(d),d===92?c:s)}function c(d){return d===a||d===92?(e.consume(d),s):s(d)}}function Su(e,t){let r;return i;function i(u){return Fn(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),r=!0,i):ar(u)?vr(e,i,r?"linePrefix":"lineSuffix")(u):t(u)}}const JTe={name:"definition",tokenize:eke},QTe={tokenize:tke,partial:!0};function eke(e,t,r){const i=this;let u;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return wP.call(i,e,n,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function n(h){return u=bl(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return Sa(h)?Su(e,f)(h):f(h)}function f(h){return xP(e,s,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function s(h){return e.attempt(QTe,c,c)(h)}function c(h){return ar(h)?vr(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Fn(h)?(e.exit("definition"),i.parser.defined.push(u),t(h)):r(h)}}function tke(e,t,r){return i;function i(n){return Sa(n)?Su(e,u)(n):r(n)}function u(n){return _P(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(n)}function o(n){return ar(n)?vr(e,a,"whitespace")(n):a(n)}function a(n){return n===null||Fn(n)?t(n):r(n)}}const nke={name:"hardBreakEscape",tokenize:rke};function rke(e,t,r){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),u}function u(o){return Fn(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}const ake={name:"headingAtx",tokenize:oke,resolve:ike};function ike(e,t){let r=e.length-2,i=3,u,o;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(u={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},o={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},pi(e,i,r-i+1,[["enter",u,t],["enter",o,t],["exit",o,t],["exit",u,t]])),e}function oke(e,t,r){let i=0;return u;function u(s){return e.enter("atxHeading"),o(s)}function o(s){return e.enter("atxHeadingSequence"),a(s)}function a(s){return s===35&&i++<6?(e.consume(s),a):s===null||Sa(s)?(e.exit("atxHeadingSequence"),n(s)):r(s)}function n(s){return s===35?(e.enter("atxHeadingSequence"),l(s)):s===null||Fn(s)?(e.exit("atxHeading"),t(s)):ar(s)?vr(e,n,"whitespace")(s):(e.enter("atxHeadingText"),f(s))}function l(s){return s===35?(e.consume(s),l):(e.exit("atxHeadingSequence"),n(s))}function f(s){return s===null||s===35||Sa(s)?(e.exit("atxHeadingText"),n(s)):(e.consume(s),f)}}const lke=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],_5=["pre","script","style","textarea"],ske={name:"htmlFlow",tokenize:dke,resolveTo:fke,concrete:!0},uke={tokenize:pke,partial:!0},cke={tokenize:hke,partial:!0};function fke(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function dke(e,t,r){const i=this;let u,o,a,n,l;return f;function f(E){return s(E)}function s(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),c}function c(E){return E===33?(e.consume(E),d):E===47?(e.consume(E),o=!0,m):E===63?(e.consume(E),u=3,i.interrupt?t:$):fi(E)?(e.consume(E),a=String.fromCharCode(E),y):r(E)}function d(E){return E===45?(e.consume(E),u=2,h):E===91?(e.consume(E),u=5,n=0,p):fi(E)?(e.consume(E),u=4,i.interrupt?t:$):r(E)}function h(E){return E===45?(e.consume(E),i.interrupt?t:$):r(E)}function p(E){const W="CDATA[";return E===W.charCodeAt(n++)?(e.consume(E),n===W.length?i.interrupt?t:P:p):r(E)}function m(E){return fi(E)?(e.consume(E),a=String.fromCharCode(E),y):r(E)}function y(E){if(E===null||E===47||E===62||Sa(E)){const W=E===47,G=a.toLowerCase();return!W&&!o&&_5.includes(G)?(u=1,i.interrupt?t(E):P(E)):lke.includes(a.toLowerCase())?(u=6,W?(e.consume(E),v):i.interrupt?t(E):P(E)):(u=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(E):o?g(E):b(E))}return E===45||Ra(E)?(e.consume(E),a+=String.fromCharCode(E),y):r(E)}function v(E){return E===62?(e.consume(E),i.interrupt?t:P):r(E)}function g(E){return ar(E)?(e.consume(E),g):S(E)}function b(E){return E===47?(e.consume(E),S):E===58||E===95||fi(E)?(e.consume(E),x):ar(E)?(e.consume(E),b):S(E)}function x(E){return E===45||E===46||E===58||E===95||Ra(E)?(e.consume(E),x):_(E)}function _(E){return E===61?(e.consume(E),w):ar(E)?(e.consume(E),_):b(E)}function w(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),l=E,k):ar(E)?(e.consume(E),w):T(E)}function k(E){return E===l?(e.consume(E),l=null,M):E===null||Fn(E)?r(E):(e.consume(E),k)}function T(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Sa(E)?_(E):(e.consume(E),T)}function M(E){return E===47||E===62||ar(E)?b(E):r(E)}function S(E){return E===62?(e.consume(E),C):r(E)}function C(E){return E===null||Fn(E)?P(E):ar(E)?(e.consume(E),C):r(E)}function P(E){return E===45&&u===2?(e.consume(E),F):E===60&&u===1?(e.consume(E),A):E===62&&u===4?(e.consume(E),j):E===63&&u===3?(e.consume(E),$):E===93&&u===5?(e.consume(E),B):Fn(E)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(uke,N,D)(E)):E===null||Fn(E)?(e.exit("htmlFlowData"),D(E)):(e.consume(E),P)}function D(E){return e.check(cke,O,N)(E)}function O(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),R}function R(E){return E===null||Fn(E)?D(E):(e.enter("htmlFlowData"),P(E))}function F(E){return E===45?(e.consume(E),$):P(E)}function A(E){return E===47?(e.consume(E),a="",z):P(E)}function z(E){if(E===62){const W=a.toLowerCase();return _5.includes(W)?(e.consume(E),j):P(E)}return fi(E)&&a.length<8?(e.consume(E),a+=String.fromCharCode(E),z):P(E)}function B(E){return E===93?(e.consume(E),$):P(E)}function $(E){return E===62?(e.consume(E),j):E===45&&u===2?(e.consume(E),$):P(E)}function j(E){return E===null||Fn(E)?(e.exit("htmlFlowData"),N(E)):(e.consume(E),j)}function N(E){return e.exit("htmlFlow"),t(E)}}function hke(e,t,r){const i=this;return u;function u(a){return Fn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):r(a)}function o(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}function pke(e,t,r){return i;function i(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(Np,t,r)}}const gke={name:"htmlText",tokenize:mke};function mke(e,t,r){const i=this;let u,o,a;return n;function n($){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume($),l}function l($){return $===33?(e.consume($),f):$===47?(e.consume($),_):$===63?(e.consume($),b):fi($)?(e.consume($),T):r($)}function f($){return $===45?(e.consume($),s):$===91?(e.consume($),o=0,p):fi($)?(e.consume($),g):r($)}function s($){return $===45?(e.consume($),h):r($)}function c($){return $===null?r($):$===45?(e.consume($),d):Fn($)?(a=c,A($)):(e.consume($),c)}function d($){return $===45?(e.consume($),h):c($)}function h($){return $===62?F($):$===45?d($):c($)}function p($){const j="CDATA[";return $===j.charCodeAt(o++)?(e.consume($),o===j.length?m:p):r($)}function m($){return $===null?r($):$===93?(e.consume($),y):Fn($)?(a=m,A($)):(e.consume($),m)}function y($){return $===93?(e.consume($),v):m($)}function v($){return $===62?F($):$===93?(e.consume($),v):m($)}function g($){return $===null||$===62?F($):Fn($)?(a=g,A($)):(e.consume($),g)}function b($){return $===null?r($):$===63?(e.consume($),x):Fn($)?(a=b,A($)):(e.consume($),b)}function x($){return $===62?F($):b($)}function _($){return fi($)?(e.consume($),w):r($)}function w($){return $===45||Ra($)?(e.consume($),w):k($)}function k($){return Fn($)?(a=k,A($)):ar($)?(e.consume($),k):F($)}function T($){return $===45||Ra($)?(e.consume($),T):$===47||$===62||Sa($)?M($):r($)}function M($){return $===47?(e.consume($),F):$===58||$===95||fi($)?(e.consume($),S):Fn($)?(a=M,A($)):ar($)?(e.consume($),M):F($)}function S($){return $===45||$===46||$===58||$===95||Ra($)?(e.consume($),S):C($)}function C($){return $===61?(e.consume($),P):Fn($)?(a=C,A($)):ar($)?(e.consume($),C):M($)}function P($){return $===null||$===60||$===61||$===62||$===96?r($):$===34||$===39?(e.consume($),u=$,D):Fn($)?(a=P,A($)):ar($)?(e.consume($),P):(e.consume($),O)}function D($){return $===u?(e.consume($),u=void 0,R):$===null?r($):Fn($)?(a=D,A($)):(e.consume($),D)}function O($){return $===null||$===34||$===39||$===60||$===61||$===96?r($):$===47||$===62||Sa($)?M($):(e.consume($),O)}function R($){return $===47||$===62||Sa($)?M($):r($)}function F($){return $===62?(e.consume($),e.exit("htmlTextData"),e.exit("htmlText"),t):r($)}function A($){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),z}function z($){return ar($)?vr(e,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):B($)}function B($){return e.enter("htmlTextData"),a($)}}const Ex={name:"labelEnd",tokenize:_ke,resolveTo:wke,resolveAll:xke},vke={tokenize:Tke},yke={tokenize:kke},bke={tokenize:Mke};function xke(e){let t=-1;for(;++t=3&&(f===null||Fn(f))?(e.exit("thematicBreak"),t(f)):r(f)}function l(f){return f===u?(e.consume(f),i++,l):(e.exit("thematicBreakSequence"),ar(f)?vr(e,n,"whitespace")(f):n(f))}}const Ta={name:"list",tokenize:Lke,continuation:{tokenize:Ike},exit:Nke},Eke={tokenize:jke,partial:!0},Rke={tokenize:Fke,partial:!0};function Lke(e,t,r){const i=this,u=i.events[i.events.length-1];let o=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,a=0;return n;function n(h){const p=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:oy(h)){if(i.containerState.type||(i.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Cf,r,f)(h):f(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return oy(h)&&++a<10?(e.consume(h),l):(!i.interrupt||a<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),f(h)):r(h)}function f(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(Np,i.interrupt?r:s,e.attempt(Eke,d,c))}function s(h){return i.containerState.initialBlankLine=!0,o++,d(h)}function c(h){return ar(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Ike(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(Np,u,o);function u(n){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,vr(e,t,"listItemIndent",i.containerState.size+1)(n)}function o(n){return i.containerState.furtherBlankLines||!ar(n)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(n)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Rke,t,a)(n))}function a(n){return i.containerState._closeFlow=!0,i.interrupt=void 0,vr(e,e.attempt(Ta,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n)}}function Fke(e,t,r){const i=this;return vr(e,u,"listItemIndent",i.containerState.size+1);function u(o){const a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?t(o):r(o)}}function Nke(e){e.exit(this.containerState.type)}function jke(e,t,r){const i=this;return vr(e,u,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(o){const a=i.events[i.events.length-1];return!ar(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}const T5={name:"setextUnderline",tokenize:Bke,resolveTo:$ke};function $ke(e,t){let r=e.length,i,u,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(u=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);const a={type:"setextHeading",start:Object.assign({},e[u][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[u][1].type="setextHeadingText",o?(e.splice(u,0,["enter",a,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end=Object.assign({},e[o][1].end)):e[i][1]=a,e.push(["exit",a,t]),e}function Bke(e,t,r){const i=this;let u;return o;function o(f){let s=i.events.length,c;for(;s--;)if(i.events[s][1].type!=="lineEnding"&&i.events[s][1].type!=="linePrefix"&&i.events[s][1].type!=="content"){c=i.events[s][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||c)?(e.enter("setextHeadingLine"),u=f,a(f)):r(f)}function a(f){return e.enter("setextHeadingLineSequence"),n(f)}function n(f){return f===u?(e.consume(f),n):(e.exit("setextHeadingLineSequence"),ar(f)?vr(e,l,"lineSuffix")(f):l(f))}function l(f){return f===null||Fn(f)?(e.exit("setextHeadingLine"),t(f)):r(f)}}const zke={tokenize:qke};function qke(e){const t=this,r=e.attempt(Np,i,e.attempt(this.parser.constructs.flowInitial,u,vr(e,e.attempt(this.parser.constructs.flow,u,e.attempt(YTe,u)),"linePrefix")));return r;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function u(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Wke={resolveAll:kP()},Uke=TP("string"),Hke=TP("text");function TP(e){return{tokenize:t,resolveAll:kP(e==="text"?Vke:void 0)};function t(r){const i=this,u=this.parser.constructs[e],o=r.attempt(u,a,n);return a;function a(s){return f(s)?o(s):n(s)}function n(s){if(s===null){r.consume(s);return}return r.enter("data"),r.consume(s),l}function l(s){return f(s)?(r.exit("data"),o(s)):(r.consume(s),l)}function f(s){if(s===null)return!0;const c=u[s];let d=-1;if(c)for(;++d-1){const n=a[0];typeof n=="string"?a[0]=n.slice(i):a.shift()}o>0&&a.push(e[u].slice(0,o))}return a}function Xke(e,t){let r=-1;const i=[];let u;for(;++r0){const de=ye.tokenStack[ye.tokenStack.length-1];(de[1]||S5).call(ye,void 0,de[0])}for(ce.position={start:Ui(Me.length>0?Me[0][1].start:{line:1,column:1,offset:0}),end:Ui(Me.length>0?Me[Me.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne1?"-"+n:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const f={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,f),e.applyData(t,f)}function RMe(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function LMe(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function PP(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const c=e.all(t),o=c[0];o&&o.type==="text"?o.value="["+o.value:c.unshift({type:"text",value:"["});const a=c[c.length-1];return a&&a.type==="text"?a.value+=i:c.push({type:"text",value:i}),c}function IMe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return PP(e,t);const c={src:tl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(c.title=i.title);const o={type:"element",tagName:"img",properties:c,children:[]};return e.patch(t,o),e.applyData(t,o)}function FMe(e,t){const r={src:tl(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function NMe(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function jMe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return PP(e,t);const c={href:tl(i.url||"")};i.title!==null&&i.title!==void 0&&(c.title=i.title);const o={type:"element",tagName:"a",properties:c,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function $Me(e,t){const r={href:tl(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function BMe(e,t,r){const i=e.all(t),c=r?zMe(r):DP(t),o={},a=[];if(typeof t.checked=="boolean"){const s=i[0];let u;s&&s.type==="element"&&s.tagName==="p"?u=s:(u={type:"element",tagName:"p",properties:{},children:[]},i.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let n=-1;for(;++n1}function qMe(e,t){const r={},i=e.all(t);let c=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++c0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},n=Px(t.children[1]),l=hP(t.children[t.children.length-1]);n&&l&&(a.position={start:n,end:l}),c.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(c,!0)};return e.patch(t,o),e.applyData(t,o)}function YMe(e,t,r){const i=r?r.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,n=a?a.length:t.children.length;let l=-1;const f=[];for(;++l0,!0),i[0]),c=i.index+i[0].length,i=r.exec(t);return o.push(A5(t.slice(c),c>0,!1)),o.join("")}function A5(e,t,r){let i=0,c=e.length;if(t){let o=e.codePointAt(i);for(;o===C5||o===O5;)i++,o=e.codePointAt(i)}if(r){let o=e.codePointAt(c-1);for(;o===C5||o===O5;)c--,o=e.codePointAt(c-1)}return c>i?e.slice(i,c):""}function ZMe(e,t){const r={type:"text",value:XMe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function KMe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const JMe={blockquote:CMe,break:OMe,code:AMe,delete:PMe,emphasis:DMe,footnoteReference:EMe,heading:RMe,html:LMe,imageReference:IMe,image:FMe,inlineCode:NMe,linkReference:jMe,link:$Me,listItem:BMe,list:qMe,paragraph:WMe,root:UMe,strong:HMe,table:VMe,tableCell:GMe,tableRow:YMe,text:ZMe,thematicBreak:KMe,toml:lf,yaml:lf,definition:lf,footnoteDefinition:lf};function lf(){}const EP=-1,jp=0,_d=1,Td=2,Ix=3,Fx=4,Nx=5,jx=6,RP=7,LP=8,P5=typeof self=="object"?self:globalThis,QMe=(e,t)=>{const r=(c,o)=>(e.set(o,c),c),i=c=>{if(e.has(c))return e.get(c);const[o,a]=t[c];switch(o){case jp:case EP:return r(a,c);case _d:{const n=r([],c);for(const l of a)n.push(i(l));return n}case Td:{const n=r({},c);for(const[l,f]of a)n[i(l)]=i(f);return n}case Ix:return r(new Date(a),c);case Fx:{const{source:n,flags:l}=a;return r(new RegExp(n,l),c)}case Nx:{const n=r(new Map,c);for(const[l,f]of a)n.set(i(l),i(f));return n}case jx:{const n=r(new Set,c);for(const l of a)n.add(i(l));return n}case RP:{const{name:n,message:l}=a;return r(new P5[n](l),c)}case LP:return r(BigInt(a),c);case"BigInt":return r(Object(BigInt(a)),c)}return r(new P5[o](a),c)};return i},D5=e=>QMe(new Map,e)(0),fl="",{toString:e5e}={},{keys:t5e}=Object,mu=e=>{const t=typeof e;if(t!=="object"||!e)return[jp,t];const r=e5e.call(e).slice(8,-1);switch(r){case"Array":return[_d,fl];case"Object":return[Td,fl];case"Date":return[Ix,fl];case"RegExp":return[Fx,fl];case"Map":return[Nx,fl];case"Set":return[jx,fl]}return r.includes("Array")?[_d,r]:r.includes("Error")?[RP,r]:[Td,r]},sf=([e,t])=>e===jp&&(t==="function"||t==="symbol"),n5e=(e,t,r,i)=>{const c=(a,n)=>{const l=i.push(a)-1;return r.set(n,l),l},o=a=>{if(r.has(a))return r.get(a);let[n,l]=mu(a);switch(n){case jp:{let s=a;switch(l){case"bigint":n=LP,s=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);s=null;break;case"undefined":return c([EP],a)}return c([n,s],a)}case _d:{if(l)return c([l,[...a]],a);const s=[],u=c([n,s],a);for(const d of a)s.push(o(d));return u}case Td:{if(l)switch(l){case"BigInt":return c([l,a.toString()],a);case"Boolean":case"Number":case"String":return c([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const s=[],u=c([n,s],a);for(const d of t5e(a))(e||!sf(mu(a[d])))&&s.push([o(d),o(a[d])]);return u}case Ix:return c([n,a.toISOString()],a);case Fx:{const{source:s,flags:u}=a;return c([n,{source:s,flags:u}],a)}case Nx:{const s=[],u=c([n,s],a);for(const[d,h]of a)(e||!(sf(mu(d))||sf(mu(h))))&&s.push([o(d),o(h)]);return u}case jx:{const s=[],u=c([n,s],a);for(const d of a)(e||!sf(mu(d)))&&s.push(o(d));return u}}const{message:f}=a;return c([n,{name:l,message:f}],a)};return o},E5=(e,{json:t,lossy:r}={})=>{const i=[];return n5e(!(t||r),!!t,new Map,i)(e),i},kd=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?D5(E5(e,t)):structuredClone(e):(e,t)=>D5(E5(e,t));function r5e(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function a5e(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function i5e(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||r5e,i=e.options.footnoteBackLabel||a5e,c=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},n=[];let l=-1;for(;++l0&&p.push({type:"text",value:" "});let g=typeof r=="string"?r:r(l,h);typeof g=="string"&&(g={type:"text",value:g}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,h),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const y=s[s.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const g=y.children[y.children.length-1];g&&g.type==="text"?g.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...p)}else s.push(...p);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(s,!0)};e.patch(f,v),n.push(v)}if(n.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...kd(a),id:"footnote-label"},children:[{type:"text",value:c}]},{type:"text",value:` +`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&u)continue;a=" ";break}default:a=String.fromCharCode(o)}u=o===-2,i.push(a)}return i.join("")}const Zke={42:Ta,43:Ta,45:Ta,48:Ta,49:Ta,50:Ta,51:Ta,52:Ta,53:Ta,54:Ta,55:Ta,56:Ta,57:Ta,62:mP},Kke={91:JTe},Jke={[-2]:v0,[-1]:v0,32:v0},Qke={35:ake,42:Cf,45:[T5,Cf],60:ske,61:T5,95:Cf,96:w5,126:w5},eMe={38:yP,92:vP},tMe={[-5]:y0,[-4]:y0,[-3]:y0,33:Ske,38:yP,42:ly,60:[ATe,gke],91:Oke,92:[nke,vP],93:Ex,95:ly,96:qTe},nMe={null:[ly,Wke]},rMe={null:[42,95]},aMe={null:[]},iMe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:rMe,contentInitial:Kke,disable:aMe,document:Zke,flow:Qke,flowInitial:Jke,insideSpan:nMe,string:eMe,text:tMe},Symbol.toStringTag,{value:"Module"}));function oMe(e){const r=bTe([iMe,...(e||{}).extensions||[]]),i={defined:[],lazy:{},constructs:r,content:u(_Te),document:u(kTe),flow:u(zke),string:u(Uke),text:u(Hke)};return i;function u(o){return a;function a(n){return Yke(i,o,n)}}}function lMe(e){for(;!bP(e););return e}const k5=/[\0\t\n\r]/g;function sMe(){let e=1,t="",r=!0,i;return u;function u(o,a,n){const l=[];let f,s,c,d,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),c=0,t="",r&&(o.charCodeAt(0)===65279&&c++,r=void 0);c0){const de=ye.tokenStack[ye.tokenStack.length-1];(de[1]||M5).call(ye,void 0,de[0])}for(ce.position={start:Ui(Me.length>0?Me[0][1].start:{line:1,column:1,offset:0}),end:Ui(Me.length>0?Me[Me.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne1?"-"+n:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const f={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,f),e.applyData(t,f)}function _Me(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function TMe(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function CP(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const u=e.all(t),o=u[0];o&&o.type==="text"?o.value="["+o.value:u.unshift({type:"text",value:"["});const a=u[u.length-1];return a&&a.type==="text"?a.value+=i:u.push({type:"text",value:i}),u}function kMe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return CP(e,t);const u={src:tl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(u.title=i.title);const o={type:"element",tagName:"img",properties:u,children:[]};return e.patch(t,o),e.applyData(t,o)}function MMe(e,t){const r={src:tl(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function SMe(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function CMe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return CP(e,t);const u={href:tl(i.url||"")};i.title!==null&&i.title!==void 0&&(u.title=i.title);const o={type:"element",tagName:"a",properties:u,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function OMe(e,t){const r={href:tl(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function AMe(e,t,r){const i=e.all(t),u=r?PMe(r):OP(t),o={},a=[];if(typeof t.checked=="boolean"){const s=i[0];let c;s&&s.type==="element"&&s.tagName==="p"?c=s:(c={type:"element",tagName:"p",properties:{},children:[]},i.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let n=-1;for(;++n1}function DMe(e,t){const r={},i=e.all(t);let u=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++u0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},n=Ox(t.children[1]),l=cP(t.children[t.children.length-1]);n&&l&&(a.position={start:n,end:l}),u.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(u,!0)};return e.patch(t,o),e.applyData(t,o)}function FMe(e,t,r){const i=r?r.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,n=a?a.length:t.children.length;let l=-1;const f=[];for(;++l0,!0),i[0]),u=i.index+i[0].length,i=r.exec(t);return o.push(O5(t.slice(u),u>0,!1)),o.join("")}function O5(e,t,r){let i=0,u=e.length;if(t){let o=e.codePointAt(i);for(;o===S5||o===C5;)i++,o=e.codePointAt(i)}if(r){let o=e.codePointAt(u-1);for(;o===S5||o===C5;)u--,o=e.codePointAt(u-1)}return u>i?e.slice(i,u):""}function $Me(e,t){const r={type:"text",value:jMe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function BMe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const zMe={blockquote:mMe,break:vMe,code:yMe,delete:bMe,emphasis:xMe,footnoteReference:wMe,heading:_Me,html:TMe,imageReference:kMe,image:MMe,inlineCode:SMe,linkReference:CMe,link:OMe,listItem:AMe,list:DMe,paragraph:EMe,root:RMe,strong:LMe,table:IMe,tableCell:NMe,tableRow:FMe,text:$Me,thematicBreak:BMe,toml:af,yaml:af,definition:af,footnoteDefinition:af};function af(){}const AP=-1,jp=0,_d=1,Td=2,Rx=3,Lx=4,Ix=5,Fx=6,PP=7,DP=8,A5=typeof self=="object"?self:globalThis,qMe=(e,t)=>{const r=(u,o)=>(e.set(o,u),u),i=u=>{if(e.has(u))return e.get(u);const[o,a]=t[u];switch(o){case jp:case AP:return r(a,u);case _d:{const n=r([],u);for(const l of a)n.push(i(l));return n}case Td:{const n=r({},u);for(const[l,f]of a)n[i(l)]=i(f);return n}case Rx:return r(new Date(a),u);case Lx:{const{source:n,flags:l}=a;return r(new RegExp(n,l),u)}case Ix:{const n=r(new Map,u);for(const[l,f]of a)n.set(i(l),i(f));return n}case Fx:{const n=r(new Set,u);for(const l of a)n.add(i(l));return n}case PP:{const{name:n,message:l}=a;return r(new A5[n](l),u)}case DP:return r(BigInt(a),u);case"BigInt":return r(Object(BigInt(a)),u)}return r(new A5[o](a),u)};return i},P5=e=>qMe(new Map,e)(0),fl="",{toString:WMe}={},{keys:UMe}=Object,mu=e=>{const t=typeof e;if(t!=="object"||!e)return[jp,t];const r=WMe.call(e).slice(8,-1);switch(r){case"Array":return[_d,fl];case"Object":return[Td,fl];case"Date":return[Rx,fl];case"RegExp":return[Lx,fl];case"Map":return[Ix,fl];case"Set":return[Fx,fl]}return r.includes("Array")?[_d,r]:r.includes("Error")?[PP,r]:[Td,r]},of=([e,t])=>e===jp&&(t==="function"||t==="symbol"),HMe=(e,t,r,i)=>{const u=(a,n)=>{const l=i.push(a)-1;return r.set(n,l),l},o=a=>{if(r.has(a))return r.get(a);let[n,l]=mu(a);switch(n){case jp:{let s=a;switch(l){case"bigint":n=DP,s=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);s=null;break;case"undefined":return u([AP],a)}return u([n,s],a)}case _d:{if(l)return u([l,[...a]],a);const s=[],c=u([n,s],a);for(const d of a)s.push(o(d));return c}case Td:{if(l)switch(l){case"BigInt":return u([l,a.toString()],a);case"Boolean":case"Number":case"String":return u([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const s=[],c=u([n,s],a);for(const d of UMe(a))(e||!of(mu(a[d])))&&s.push([o(d),o(a[d])]);return c}case Rx:return u([n,a.toISOString()],a);case Lx:{const{source:s,flags:c}=a;return u([n,{source:s,flags:c}],a)}case Ix:{const s=[],c=u([n,s],a);for(const[d,h]of a)(e||!(of(mu(d))||of(mu(h))))&&s.push([o(d),o(h)]);return c}case Fx:{const s=[],c=u([n,s],a);for(const d of a)(e||!of(mu(d)))&&s.push(o(d));return c}}const{message:f}=a;return u([n,{name:l,message:f}],a)};return o},D5=(e,{json:t,lossy:r}={})=>{const i=[];return HMe(!(t||r),!!t,new Map,i)(e),i},kd=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?P5(D5(e,t)):structuredClone(e):(e,t)=>P5(D5(e,t));function VMe(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function YMe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function GMe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||VMe,i=e.options.footnoteBackLabel||YMe,u=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},n=[];let l=-1;for(;++l0&&p.push({type:"text",value:" "});let g=typeof r=="string"?r:r(l,h);typeof g=="string"&&(g={type:"text",value:g}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,h),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const y=s[s.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const g=y.children[y.children.length-1];g&&g.type==="text"?g.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...p)}else s.push(...p);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(s,!0)};e.patch(f,v),n.push(v)}if(n.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...kd(a),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(n,!0)},{type:"text",value:` -`}]}}const IP=function(e){if(e==null)return u5e;if(typeof e=="function")return $p(e);if(typeof e=="object")return Array.isArray(e)?o5e(e):l5e(e);if(typeof e=="string")return s5e(e);throw new Error("Expected function, string, or object as test")};function o5e(e){const t=[];let r=-1;for(;++r":""))+")"})}return d;function d(){let h=FP,p,m,y;if((!t||o(l,f,s[s.length-1]||void 0))&&(h=p5e(r(l,s)),h[0]===R5))return h;if("children"in l&&l.children){const v=l;if(v.children&&h[0]!==d5e)for(m=(i?v.children.length:-1)+a,y=s.concat(v);m>-1&&m":""))+")"})}return d;function d(){let h=RP,p,m,y;if((!t||o(l,f,s[s.length-1]||void 0))&&(h=r5e(r(l,s)),h[0]===E5))return h;if("children"in l&&l.children){const v=l;if(v.children&&h[0]!==t5e)for(m=(i?v.children.length:-1)+a,y=s.concat(v);m>-1&&m0&&r.push({type:"text",value:` -`}),r}function L5(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function I5(e,t){const r=m5e(e,t),i=r.one(e,void 0),c=i5e(r),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return c&&o.children.push({type:"text",value:` -`},c),o}function w5e(e,t){return e&&"run"in e?async function(r,i){const c=I5(r,t);await e.run(c,i)}:function(r){return I5(r,t||e)}}function F5(e){if(e)throw e}var Of=Object.prototype.hasOwnProperty,jP=Object.prototype.toString,N5=Object.defineProperty,j5=Object.getOwnPropertyDescriptor,$5=function(t){return typeof Array.isArray=="function"?Array.isArray(t):jP.call(t)==="[object Array]"},B5=function(t){if(!t||jP.call(t)!=="[object Object]")return!1;var r=Of.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&Of.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!i)return!1;var c;for(c in t);return typeof c>"u"||Of.call(t,c)},z5=function(t,r){N5&&r.name==="__proto__"?N5(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},q5=function(t,r){if(r==="__proto__")if(Of.call(t,r)){if(j5)return j5(t,r).value}else return;return t[r]},_5e=function e(){var t,r,i,c,o,a,n=arguments[0],l=1,f=arguments.length,s=!1;for(typeof n=="boolean"&&(s=n,n=arguments[1]||{},l=2),(n==null||typeof n!="object"&&typeof n!="function")&&(n={});la.length;let l;n&&a.push(c);try{l=e.apply(this,a)}catch(f){const s=f;if(n&&r)throw s;return c(s)}n||(l instanceof Promise?l.then(o,c):l instanceof Error?c(l):o(l))}function c(a,...n){r||(r=!0,t(a,...n))}function o(a){c(null,a)}}const oi={basename:M5e,dirname:S5e,extname:C5e,join:O5e,sep:"/"};function M5e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bc(e);let r=0,i=-1,c=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;c--;)if(e.codePointAt(c)===47){if(o){r=c+1;break}}else i<0&&(o=!0,i=c+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,n=t.length-1;for(;c--;)if(e.codePointAt(c)===47){if(o){r=c+1;break}}else a<0&&(o=!0,a=c+1),n>-1&&(e.codePointAt(c)===t.codePointAt(n--)?n<0&&(i=c):(n=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)}function S5e(e){if(bc(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function C5e(e){bc(e);let t=e.length,r=-1,i=0,c=-1,o=0,a;for(;t--;){const n=e.codePointAt(t);if(n===47){if(a){i=t+1;break}continue}r<0&&(a=!0,r=t+1),n===46?c<0?c=t:o!==1&&(o=1):c>-1&&(o=-1)}return c<0||r<0||o===0||o===1&&c===r-1&&c===i+1?"":e.slice(c,r)}function O5e(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function P5e(e,t){let r="",i=0,c=-1,o=0,a=-1,n,l;for(;++a<=e.length;){if(a2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",i=0):(r=r.slice(0,l),i=r.length-1-r.lastIndexOf("/")),c=a,o=0;continue}}else if(r.length>0){r="",i=0,c=a,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(c+1,a):r=e.slice(c+1,a),i=a-c-1;c=a,o=0}else n===46&&o>-1?o++:o=-1}return r}function bc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const D5e={cwd:E5e};function E5e(){return"/"}function fy(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function R5e(e){if(typeof e=="string")e=new URL(e);else if(!fy(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return L5e(e)}function L5e(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r0){let[h,...p]=s;const m=i[d][1];cy(m)&&cy(h)&&(h=b0(!0,m,h)),i[d]=[f,h,...p]}}}}const j5e=new $x().freeze();function T0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function k0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function M0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function U5(e){if(!cy(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function H5(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function uf(e){return $5e(e)?e:new $P(e)}function $5e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function B5e(e){return typeof e=="string"||z5e(e)}function z5e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const V5={}.hasOwnProperty,q5e="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Y5=[],G5={allowDangerousHtml:!0},W5e=/^(https?|ircs?|mailto|xmpp)$/i,U5e=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function BP(e){const t=e.allowedElements,r=e.allowElement,i=e.children||"",c=e.className,o=e.components,a=e.disallowedElements,n=e.rehypePlugins||Y5,l=e.remarkPlugins||Y5,f=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...G5}:G5,s=e.skipHtml,u=e.unwrapDisallowed,d=e.urlTransform||H5e,h=j5e().use(SMe).use(l).use(w5e,f).use(n),p=new $P;typeof i=="string"&&(p.value=i);for(const g of U5e)Object.hasOwn(e,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+q5e+g.id,void 0);const m=h.parse(p);let y=h.runSync(m,p);return c&&(y={type:"element",tagName:"div",properties:{className:c},children:y.type==="root"?y.children:[y]}),NP(y,v),sTe(y,{Fragment:je.Fragment,components:o,ignoreInvalidStyle:!0,jsx:je.jsx,jsxs:je.jsxs,passKeys:!0,passNode:!0});function v(g,b,x){if(g.type==="raw"&&x&&typeof b=="number")return s?x.children.splice(b,1):x.children[b]={type:"text",value:g.value},b;if(g.type==="element"){let _;for(_ in m0)if(V5.call(m0,_)&&V5.call(g.properties,_)){const w=g.properties[_],k=m0[_];(k===null||k.includes(g.tagName))&&(g.properties[_]=d(String(w||""),_,g))}}if(g.type==="element"){let _=t?!t.includes(g.tagName):a?a.includes(g.tagName):!1;if(!_&&r&&typeof b=="number"&&(_=!r(g,b,x)),_&&x&&typeof b=="number")return u&&g.children?x.children.splice(b,1,...g.children):x.children.splice(b,1),b}}}function H5e(e){return STe(e,W5e)}const V5e=e=>je.jsx(je.Fragment,{children:je.jsx(BP,{children:e.text})}),X5=["unknown","success","warning","fail"],zP=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},qP=({title:e,description:t,state:r,details:i})=>{const[c,o]=$e.useState({active:!1}),a=i!=null&&i.parts.length>0;return X5.includes(r)||(console.error(`unexpected state: ${r} (expected one of [${X5.join(", ")}])`),r="unknown"),je.jsx(je.Fragment,{children:je.jsxs(Qr,{children:[je.jsxs(dy,{severity:zP(r),action:a?je.jsx(di,{onClick:()=>o(n=>({active:!n.active})),color:"inherit",size:"small",children:"Details"}):null,children:[je.jsx(hy,{children:e}),je.jsx(BP,{children:t})]}),a?je.jsx(my,{in:c.active,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(Qr,{style:{padding:"2px"},children:je.jsx(Tx,{details:i,widgetSize:2})})}):je.jsx(je.Fragment,{})]})})},Y5e=({type:e,availableTypes:t,onChange:r})=>je.jsx(je.Fragment,{children:je.jsx(nE,{variant:"standard",value:e,onChange:i=>r(i.target.value),native:!0,children:t.map(i=>je.jsx("option",{value:i.id,children:i.title},i.id))})}),G5e=({groupInfo:e,tests:t})=>{const[r,i]=$e.useState({active:!1});return je.jsx(je.Fragment,{children:je.jsxs(Qr,{mt:2,px:2,children:[je.jsxs(dy,{severity:zP(e.severity??"unknown"),icon:!1,action:je.jsx(di,{onClick:()=>i(c=>({active:!c.active})),color:"inherit",size:"small",children:r.active?"Hide":"Show"}),children:[je.jsx(hy,{children:e.title}),e.description]}),je.jsx(my,{in:r.active,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(Jn,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map((c,o)=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(qP,{...c})},o))})})]})})},X5e=({type:e,groupsInfo:t,tests:r})=>{function i(n){if(n==="status")return[t.find(s=>s.id===n).values,s=>s.state];const l=t.find(s=>s.id===n);if(l===void 0)throw"unexpected type";return[l.values.find(s=>s.id=="no group")!==void 0?l.values:[...l.values,{id:"no group",title:"No Group",sortIndex:-1,description:"No group of this type was provided"}],s=>s.groups[n]??"no group"]}const[c,o]=i(e),a=r.reduce((n,l)=>(n.set(o(l),[...n.get(o(l))??[],l]),n),new Map);return je.jsx(je.Fragment,{children:je.jsx(Jn,{container:!0,spacing:2,children:Array.from(a.entries()).map(([n,l])=>[c.find(f=>f.id===n)??{id:n,title:n},l]).sort((n,l)=>(n[0].sortIndex??0)-(l[0].sortIndex??0)).map(([n,l],f)=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(G5e,{groupInfo:n,tests:l})},`test_${f}`))})})},Z5e=[{id:"none",title:"All tests",values:[]},{id:"status",title:"By test status",values:[{id:"success",title:"Passed tests",sortIndex:3,description:"",severity:"success"},{id:"fail",title:"Failed tests",sortIndex:1,description:"",severity:"fail"},{id:"warning",title:"Failed non-critical tests",sortIndex:2,description:"",severity:"warning"},{id:"error",title:"Tests with execution errors",sortIndex:2,description:"",severity:"error"}]}],K5e=({tests:e,testGroupTypes:t})=>{const[r,i]=et.useState({group_type:"none"}),c=[];for(let a=0;as===f)===-1&&c.push(f)}const o=[...Z5e,...(t??[]).filter(a=>c.findIndex(n=>n===a.id)!==-1)];return je.jsx(je.Fragment,{children:je.jsxs(Jn,{container:!0,spacing:2,children:[je.jsx(Jn,{item:!0,xs:12,children:je.jsx(Y5e,{type:r.group_type,availableTypes:o,onChange:a=>i({group_type:a})})}),je.jsx(Jn,{item:!0,xs:12,children:je.jsx(Jn,{container:!0,spacing:2,children:r.group_type==="none"?e.map((a,n)=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(qP,{...a})},`test_${n}`)):je.jsx(X5e,{type:r.group_type,groupsInfo:o,tests:e})})})]})})};function J5e(e){return e===cf.Small?3:e===cf.Medium?6:(e===cf.Big,12)}function xc(e,t,r){let i=je.jsx(hS,{});if(t.type==="counter")i=je.jsx(oE,{...t.params});else if(t.type==="percent")i=je.jsx(lE,{...t.params});else if(t.type==="big_graph")i=je.jsx(Ad,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")i=je.jsx(dE,{...t.params,widgetSize:t.size});else if(t.type==="tabs")i=je.jsx(s3e,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")i=je.jsx(hE,{...t.params});else if(t.type==="big_table")i=je.jsx(l3e,{...t.params,widgetSize:t.size});else if(t.type==="group")i=je.jsx(dS,{children:t.widgets.map((c,o)=>xc(`wi_${o}`,c))});else if(t.type==="rich_data")i=je.jsx(v3e,{...t.params,widgetSize:t.size});else if(t.type==="list"){const c=t;i=je.jsx(S3e,{widgets:c.widgets,pageSize:c.pageSize,widgetSize:t.size})}else t.type==="text"?i=je.jsx(V5e,{...t.params}):t.type==="test_suite"&&(i=je.jsx(K5e,{...t.params}));return je.jsx(iE,{size:J5e(t.size),ItemWrapper:r,children:{...t,content:i}},e)}const oSe=({widgets:e,ItemWrapper:t})=>je.jsx(je.Fragment,{children:e.length>0&&e.map((r,i)=>je.jsx(et.Fragment,{children:xc(`wi_${i}`,r,t)},r.id))});export{aSe as C,oSe as D,v6 as a}; +`}),r}function R5(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function L5(e,t){const r=i5e(e,t),i=r.one(e,void 0),u=GMe(r),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return u&&o.children.push({type:"text",value:` +`},u),o}function c5e(e,t){return e&&"run"in e?async function(r,i){const u=L5(r,t);await e.run(u,i)}:function(r){return L5(r,t||e)}}function I5(e){if(e)throw e}var Of=Object.prototype.hasOwnProperty,IP=Object.prototype.toString,F5=Object.defineProperty,N5=Object.getOwnPropertyDescriptor,j5=function(t){return typeof Array.isArray=="function"?Array.isArray(t):IP.call(t)==="[object Array]"},$5=function(t){if(!t||IP.call(t)!=="[object Object]")return!1;var r=Of.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&Of.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!i)return!1;var u;for(u in t);return typeof u>"u"||Of.call(t,u)},B5=function(t,r){F5&&r.name==="__proto__"?F5(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},z5=function(t,r){if(r==="__proto__")if(Of.call(t,r)){if(N5)return N5(t,r).value}else return;return t[r]},f5e=function e(){var t,r,i,u,o,a,n=arguments[0],l=1,f=arguments.length,s=!1;for(typeof n=="boolean"&&(s=n,n=arguments[1]||{},l=2),(n==null||typeof n!="object"&&typeof n!="function")&&(n={});la.length;let l;n&&a.push(u);try{l=e.apply(this,a)}catch(f){const s=f;if(n&&r)throw s;return u(s)}n||(l instanceof Promise?l.then(o,u):l instanceof Error?u(l):o(l))}function u(a,...n){r||(r=!0,t(a,...n))}function o(a){u(null,a)}}const oi={basename:p5e,dirname:g5e,extname:m5e,join:v5e,sep:"/"};function p5e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bc(e);let r=0,i=-1,u=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;u--;)if(e.codePointAt(u)===47){if(o){r=u+1;break}}else i<0&&(o=!0,i=u+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,n=t.length-1;for(;u--;)if(e.codePointAt(u)===47){if(o){r=u+1;break}}else a<0&&(o=!0,a=u+1),n>-1&&(e.codePointAt(u)===t.codePointAt(n--)?n<0&&(i=u):(n=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)}function g5e(e){if(bc(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function m5e(e){bc(e);let t=e.length,r=-1,i=0,u=-1,o=0,a;for(;t--;){const n=e.codePointAt(t);if(n===47){if(a){i=t+1;break}continue}r<0&&(a=!0,r=t+1),n===46?u<0?u=t:o!==1&&(o=1):u>-1&&(o=-1)}return u<0||r<0||o===0||o===1&&u===r-1&&u===i+1?"":e.slice(u,r)}function v5e(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function b5e(e,t){let r="",i=0,u=-1,o=0,a=-1,n,l;for(;++a<=e.length;){if(a2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",i=0):(r=r.slice(0,l),i=r.length-1-r.lastIndexOf("/")),u=a,o=0;continue}}else if(r.length>0){r="",i=0,u=a,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(u+1,a):r=e.slice(u+1,a),i=a-u-1;u=a,o=0}else n===46&&o>-1?o++:o=-1}return r}function bc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const x5e={cwd:w5e};function w5e(){return"/"}function cy(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function _5e(e){if(typeof e=="string")e=new URL(e);else if(!cy(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return T5e(e)}function T5e(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r0){let[h,...p]=s;const m=i[d][1];uy(m)&&uy(h)&&(h=b0(!0,m,h)),i[d]=[f,h,...p]}}}}const C5e=new Nx().freeze();function T0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function k0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function M0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function W5(e){if(!uy(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function U5(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function lf(e){return O5e(e)?e:new FP(e)}function O5e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function A5e(e){return typeof e=="string"||P5e(e)}function P5e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const H5={}.hasOwnProperty,D5e="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",V5=[],Y5={allowDangerousHtml:!0},E5e=/^(https?|ircs?|mailto|xmpp)$/i,R5e=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function NP(e){const t=e.allowedElements,r=e.allowElement,i=e.children||"",u=e.className,o=e.components,a=e.disallowedElements,n=e.rehypePlugins||V5,l=e.remarkPlugins||V5,f=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Y5}:Y5,s=e.skipHtml,c=e.unwrapDisallowed,d=e.urlTransform||L5e,h=C5e().use(gMe).use(l).use(c5e,f).use(n),p=new FP;typeof i=="string"&&(p.value=i);for(const g of R5e)Object.hasOwn(e,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+D5e+g.id,void 0);const m=h.parse(p);let y=h.runSync(m,p);return u&&(y={type:"element",tagName:"div",properties:{className:u},children:y.type==="root"?y.children:[y]}),LP(y,v),K3e(y,{Fragment:je.Fragment,components:o,ignoreInvalidStyle:!0,jsx:je.jsx,jsxs:je.jsxs,passKeys:!0,passNode:!0});function v(g,b,x){if(g.type==="raw"&&x&&typeof b=="number")return s?x.children.splice(b,1):x.children[b]={type:"text",value:g.value},b;if(g.type==="element"){let _;for(_ in m0)if(H5.call(m0,_)&&H5.call(g.properties,_)){const w=g.properties[_],k=m0[_];(k===null||k.includes(g.tagName))&&(g.properties[_]=d(String(w||""),_,g))}}if(g.type==="element"){let _=t?!t.includes(g.tagName):a?a.includes(g.tagName):!1;if(!_&&r&&typeof b=="number"&&(_=!r(g,b,x)),_&&x&&typeof b=="number")return c&&g.children?x.children.splice(b,1,...g.children):x.children.splice(b,1),b}}}function L5e(e){return gTe(e,E5e)}const G5=["unknown","success","warning","fail"],jP=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},$P=({title:e,description:t,state:r,details:i})=>{const[u,o]=$e.useState({active:!1}),a=i!=null&&i.parts.length>0;return G5.includes(r)||(console.error(`unexpected state: ${r} (expected one of [${G5.join(", ")}])`),r="unknown"),je.jsx(je.Fragment,{children:je.jsxs(Qr,{children:[je.jsxs(py,{severity:jP(r),action:a?je.jsx(di,{onClick:()=>o(n=>({active:!n.active})),color:"inherit",size:"small",children:"Details"}):null,children:[je.jsx(gy,{children:e}),je.jsx(NP,{children:t})]}),a?je.jsx(my,{in:u.active,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(Qr,{style:{padding:"2px"},children:je.jsx(k1,{details:i,widgetSize:2})})}):je.jsx(je.Fragment,{})]})})},I5e=({type:e,availableTypes:t,onChange:r})=>je.jsx(je.Fragment,{children:je.jsx(eE,{variant:"standard",value:e,onChange:i=>r(i.target.value),native:!0,children:t.map(i=>je.jsx("option",{value:i.id,children:i.title},i.id))})}),F5e=({groupInfo:e,tests:t})=>{const[r,i]=$e.useState({active:!1});return je.jsx(je.Fragment,{children:je.jsxs(Qr,{mt:2,px:2,children:[je.jsxs(py,{severity:jP(e.severity??"unknown"),icon:!1,action:je.jsx(di,{onClick:()=>i(u=>({active:!u.active})),color:"inherit",size:"small",children:r.active?"Hide":"Show"}),children:[je.jsx(gy,{children:e.title}),e.description]}),je.jsx(my,{in:r.active,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(Jn,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map(u=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx($P,{...u})}))})})]})})},N5e=({type:e,groupsInfo:t,tests:r})=>{function i(n){if(n==="status")return[t.find(s=>s.id===n).values,s=>s.state];const l=t.find(s=>s.id===n);if(l===void 0)throw"unexpected type";return[l.values.find(s=>s.id==="no group")!==void 0?l.values:[...l.values,{id:"no group",title:"No Group",sortIndex:-1,description:"No group of this type was provided"}],s=>s.groups[n]??"no group"]}const[u,o]=i(e),a=r.reduce((n,l)=>(n.set(o(l),[...n.get(o(l))??[],l]),n),new Map);return je.jsx(je.Fragment,{children:je.jsx(Jn,{container:!0,spacing:2,children:Array.from(a.entries()).map(([n,l])=>[u.find(f=>f.id===n)??{id:n,title:n},l]).sort((n,l)=>(n[0].sortIndex??0)-(l[0].sortIndex??0)).map(([n,l])=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(F5e,{groupInfo:n,tests:l})}))})})},j5e=[{id:"none",title:"All tests",values:[]},{id:"status",title:"By test status",values:[{id:"success",title:"Passed tests",sortIndex:3,description:"",severity:"success"},{id:"fail",title:"Failed tests",sortIndex:1,description:"",severity:"fail"},{id:"warning",title:"Failed non-critical tests",sortIndex:2,description:"",severity:"warning"},{id:"error",title:"Tests with execution errors",sortIndex:2,description:"",severity:"error"}]}],$5e=({tests:e,testGroupTypes:t})=>{const[r,i]=et.useState({group_type:"none"}),u=[];for(let a=0;as===f)===-1&&u.push(f)}const o=[...j5e,...(t??[]).filter(a=>u.findIndex(n=>n===a.id)!==-1)];return je.jsx(je.Fragment,{children:je.jsxs(Jn,{container:!0,spacing:2,children:[je.jsx(Jn,{item:!0,xs:12,children:je.jsx(I5e,{type:r.group_type,availableTypes:o,onChange:a=>i({group_type:a})})}),je.jsx(Jn,{item:!0,xs:12,children:je.jsx(Jn,{container:!0,spacing:2,children:r.group_type==="none"?e.map(a=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx($P,{...a})},a.title+a.description)):je.jsx(N5e,{type:r.group_type,groupsInfo:o,tests:e})})})]})})},B5e=e=>je.jsx(je.Fragment,{children:je.jsx(NP,{children:e.text})});function sf(e){return e.palette.mode==="dark"?iS:oS}function uf(e){return e.palette.mode==="light"?oS:iS}const fy=e=>{const[t,r]=$e.useState({open:!1});return je.jsxs(Q5,{elevation:0,onClick:i=>r(u=>({open:!u.open,anchorEl:i.currentTarget})),sx:[{color:i=>uf(i)(i.palette.info.main,.6),backgroundColor:i=>sf(i)(i.palette.info.main,.9)},e.data.state==="success"&&{color:i=>uf(i)(i.palette.success.main,.6),backgroundColor:i=>sf(i)(i.palette.success.main,.9)},e.data.state==="warning"&&{color:i=>uf(i)(i.palette.warning.main,.6),backgroundColor:i=>sf(i)(i.palette.warning.main,.9)},e.data.state==="error"&&{color:i=>uf(i)(i.palette.error.main,.6),backgroundColor:i=>sf(i)(i.palette.error.main,.9)}],children:[je.jsx(Cr,{align:"center",variant:"h6",component:"div",children:e.data.value}),je.jsx(Cr,{align:"center",variant:"body1",component:"div",children:e.data.text}),je.jsx(tS,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??je.jsx(Cr,{padding:1,children:e.data.longText})})]})},X5=e=>{const{alertStats:t}=e;return je.jsx(fy,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:je.jsx(Cr,{sx:{pr:1},children:je.jsxs("ul",{children:[je.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),je.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),je.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function z5e(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const q5e=e=>{const{size:t,ItemWrapper:r}=e,i=e.children.alertsPosition??"row",{id:u,title:o,details:a,content:n,alerts:l,alertStats:f,insights:s}=e.children,c=l===void 0?!1:l.length>0,d=s===void 0?!1:s.length>0,h=je.jsx(tE,{sx:{border:"1px solid",borderColor:"#d6d6d6",borderRadius:"4px"},elevation:0,children:je.jsx(nE,{children:je.jsxs(Jn,{container:!0,spacing:1,direction:"column",children:[i==="row"?je.jsxs(Jn,{container:!0,spacing:1,item:!0,children:[je.jsxs(Jn,{item:!0,xs:c&&i==="row"?9:12,children:[o?je.jsx(Cr,{fontWeight:500,variant:"h5",children:o}):je.jsx("div",{}),je.jsx("div",{children:n}),a?je.jsx(Cr,{variant:"subtitle1",children:a}):je.jsx("div",{})]}),c?je.jsx(Jn,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:l?je.jsxs(et.Fragment,{children:[f?je.jsx(Jn,{item:!0,children:je.jsx(X5,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,children:je.jsx(fy,{data:p})}))]}):je.jsx("div",{})}):je.jsx("div",{})]}):je.jsxs(et.Fragment,{children:[je.jsxs(Jn,{item:!0,children:[o?je.jsx(Cr,{variant:"h5",children:o}):je.jsx("div",{}),je.jsx("div",{children:n}),a?je.jsx(Cr,{variant:"subtitle1",children:a}):je.jsx("div",{})]}),c?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(Jn,{container:!0,direction:"row",spacing:1,children:l?je.jsxs(et.Fragment,{children:[f?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(X5,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(fy,{data:p})}))]}):je.jsx("div",{})})}):je.jsx("div",{})]}),d?s==null?void 0:s.map(p=>je.jsx(Jn,{item:!0,xs:!0,sm:!0,md:!0,children:je.jsx(g6,{data:p})})):je.jsx("div",{})]})})});return je.jsx(Jn,{item:!0,...z5e(t),children:r?r({id:u,children:h}):h})};class BP extends et.Component{render(){return je.jsx(Jn,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}var jx={},W5e=vn;Object.defineProperty(jx,"__esModule",{value:!0});var zP=jx.default=void 0,U5e=W5e(Xr()),H5e=je,V5e=(0,U5e.default)((0,H5e.jsx)("path",{d:"m14 7-5 5 5 5V7z"}),"ArrowLeft");zP=jx.default=V5e;var $x={},Y5e=vn;Object.defineProperty($x,"__esModule",{value:!0});var qP=$x.default=void 0,G5e=Y5e(Xr()),X5e=je,Z5e=(0,G5e.default)((0,X5e.jsx)("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");qP=$x.default=Z5e;const K5e=e=>{const[t,r]=et.useState({page:0}),i=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return je.jsxs(BP,{children:[i.map((u,o)=>xc(`wi_${o}`,u)),je.jsxs(Jn,{item:!0,xs:12,children:[je.jsx(di,{startIcon:je.jsx(zP,{}),disabled:t.page===0,onClick:()=>r(u=>({page:u.page-1})),children:"Previous"}),je.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),je.jsx(di,{endIcon:je.jsx(qP,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>r(u=>({page:u.page+1})),children:"Next"})]})]})};function J5e(e){return e===cf.Small?3:e===cf.Medium?6:(e===cf.Big,12)}function xc(e,t,r){let i=je.jsx(m6,{});if(t.type==="counter")i=je.jsx(n3e,{...t.params});else if(t.type==="percent")i=je.jsx(r3e,{...t.params});else if(t.type==="big_graph")i=je.jsx(Ad,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")i=je.jsx(h3e,{...t.params,widgetSize:t.size});else if(t.type==="tabs")i=je.jsx(p3e,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")i=je.jsx(g3e,{...t.params});else if(t.type==="big_table")i=je.jsx(t3e,{...t.params,widgetSize:t.size});else if(t.type==="group")i=je.jsx(BP,{children:t.widgets.map((u,o)=>xc(`wi_${o}`,u))});else if(t.type==="rich_data")i=je.jsx(d3e,{...t.params,widgetSize:t.size});else if(t.type==="list"){const u=t;i=je.jsx(K5e,{widgets:u.widgets,pageSize:u.pageSize,widgetSize:t.size})}else t.type==="text"?i=je.jsx(B5e,{...t.params}):t.type==="test_suite"&&(i=je.jsx($5e,{...t.params}));return je.jsx(q5e,{size:J5e(t.size),ItemWrapper:r,children:{...t,content:i}},e)}const oSe=({widgets:e,ItemWrapper:t})=>je.jsx(je.Fragment,{children:e.length>0&&e.map((r,i)=>je.jsx(et.Fragment,{children:xc(`wi_${i}`,r,t)},r.id))});export{aSe as C,oSe as D,p6 as a}; diff --git a/src/evidently/ui/assets/static/js/DashboardViewParams-CHXlEHLP.js b/src/evidently/ui/assets/static/js/DashboardViewParams-CHXlEHLP.js deleted file mode 100644 index 6c10e8ce0d..0000000000 --- a/src/evidently/ui/assets/static/js/DashboardViewParams-CHXlEHLP.js +++ /dev/null @@ -1 +0,0 @@ -import{R as a,r as t}from"./vendor-t0l2jWQ9.js";const s=a.createContext(null),o=()=>t.useContext(s);export{s as D,o as u}; diff --git a/src/evidently/ui/assets/static/js/DashboardViewParams-DnRSqG_L.js b/src/evidently/ui/assets/static/js/DashboardViewParams-DnRSqG_L.js new file mode 100644 index 0000000000..85913322c7 --- /dev/null +++ b/src/evidently/ui/assets/static/js/DashboardViewParams-DnRSqG_L.js @@ -0,0 +1 @@ +import{R as a,r as t}from"./vendor-COAUpDWz.js";const s=a.createContext(null),o=()=>t.useContext(s);export{s as D,o as u}; diff --git a/src/evidently/ui/assets/static/js/DashboardWidgets-CSvA9GhO.js b/src/evidently/ui/assets/static/js/DashboardWidgets-Bd_rYhaA.js similarity index 54% rename from src/evidently/ui/assets/static/js/DashboardWidgets-CSvA9GhO.js rename to src/evidently/ui/assets/static/js/DashboardWidgets-Bd_rYhaA.js index cd58d1f548..72dee4a3c2 100644 --- a/src/evidently/ui/assets/static/js/DashboardWidgets-CSvA9GhO.js +++ b/src/evidently/ui/assets/static/js/DashboardWidgets-Bd_rYhaA.js @@ -1 +1 @@ -import{j as r,T as e,G as i}from"./vendor-t0l2jWQ9.js";import{D as n}from"./DashboardContent-C6JeNogA.js";import"./DashboardViewParams-CHXlEHLP.js";import"./createSvgIcon-LdZl81St.js";import"./Edit-BJOpF2nO.js";const h=({widgets:t,ItemWrapper:a})=>t.length===0?r.jsx(e,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):r.jsx(r.Fragment,{children:r.jsx(i,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:r.jsx(n,{widgets:t,ItemWrapper:a})})});export{h as DashboardWidgets}; +import{j as r,T as e,G as i}from"./vendor-COAUpDWz.js";import{D as n}from"./DashboardContent-DSoVlerH.js";import"./DashboardViewParams-DnRSqG_L.js";import"./createSvgIcon-63W_9W2b.js";import"./Edit-ByX95MPl.js";const h=({widgets:t,ItemWrapper:a})=>t.length===0?r.jsx(e,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):r.jsx(r.Fragment,{children:r.jsx(i,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:r.jsx(n,{widgets:t,ItemWrapper:a})})});export{h as DashboardWidgets}; diff --git a/src/evidently/ui/assets/static/js/Edit-BJOpF2nO.js b/src/evidently/ui/assets/static/js/Edit-ByX95MPl.js similarity index 69% rename from src/evidently/ui/assets/static/js/Edit-BJOpF2nO.js rename to src/evidently/ui/assets/static/js/Edit-ByX95MPl.js index b2ce3e2715..7089c253fa 100644 --- a/src/evidently/ui/assets/static/js/Edit-BJOpF2nO.js +++ b/src/evidently/ui/assets/static/js/Edit-ByX95MPl.js @@ -1 +1 @@ -import{r,i as t}from"./createSvgIcon-LdZl81St.js";import{j as a}from"./vendor-t0l2jWQ9.js";var e={},u=t;Object.defineProperty(e,"__esModule",{value:!0});var i=e.default=void 0,o=u(r()),d=a,l=(0,o.default)((0,d.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");i=e.default=l;export{e as E,i as d}; +import{r,i as t}from"./createSvgIcon-63W_9W2b.js";import{j as a}from"./vendor-COAUpDWz.js";var e={},u=t;Object.defineProperty(e,"__esModule",{value:!0});var i=e.default=void 0,o=u(r()),d=a,l=(0,o.default)((0,d.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");i=e.default=l;export{e as E,i as d}; diff --git a/src/evidently/ui/assets/static/js/createSvgIcon-LdZl81St.js b/src/evidently/ui/assets/static/js/createSvgIcon-63W_9W2b.js similarity index 86% rename from src/evidently/ui/assets/static/js/createSvgIcon-LdZl81St.js rename to src/evidently/ui/assets/static/js/createSvgIcon-63W_9W2b.js index 6f298cb736..d04852e41d 100644 --- a/src/evidently/ui/assets/static/js/createSvgIcon-LdZl81St.js +++ b/src/evidently/ui/assets/static/js/createSvgIcon-63W_9W2b.js @@ -1 +1 @@ -import{aw as i,bG as o}from"./vendor-t0l2jWQ9.js";var a={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(a);var f=a.exports,u={};const s=i(o);var n;function p(){return n||(n=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=s}(u)),u}export{f as i,p as r}; +import{ap as i,bF as o}from"./vendor-COAUpDWz.js";var a={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(a);var f=a.exports,u={};const s=i(o);var n;function p(){return n||(n=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=s}(u)),u}export{f as i,p as r}; diff --git a/src/evidently/ui/assets/static/js/index-DsPNOD6z.js b/src/evidently/ui/assets/static/js/index-6B-NzMF5.js similarity index 71% rename from src/evidently/ui/assets/static/js/index-DsPNOD6z.js rename to src/evidently/ui/assets/static/js/index-6B-NzMF5.js index af9182fdef..14fc7edbbd 100644 --- a/src/evidently/ui/assets/static/js/index-DsPNOD6z.js +++ b/src/evidently/ui/assets/static/js/index-6B-NzMF5.js @@ -1 +1 @@ -import{a9 as p,h as o,X as h,j as e,G as c}from"./vendor-t0l2jWQ9.js";import{a as m,C as g,D as _}from"./DashboardContent-C6JeNogA.js";import{r as n,J as i}from"./index-CKJqPvPP.js";import"./DashboardViewParams-CHXlEHLP.js";import"./createSvgIcon-LdZl81St.js";import"./Edit-BJOpF2nO.js";const I={crumb:(s,{pathname:t,params:a})=>({to:t,linkText:String(a.snapshotId)}),hide:{snapshotList:!0}},G=({api:s})=>{const{projectId:t,snapshotId:a}=p();o(t),o(a);const d=h();return e.jsx(e.Fragment,{children:e.jsx(m.Provider,{value:g({getAdditionGraphData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(i),getAdditionWidgetData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(i)}),children:e.jsx(c,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:e.jsx(_,{widgets:d.widgets})})})})};export{G as SnapshotTemplate,I as handle}; +import{a8 as p,h as o,X as h,j as e,G as c}from"./vendor-COAUpDWz.js";import{r as n,J as i}from"./index-MyhbAVH4.js";import{a as m,C as g,D as _}from"./DashboardContent-DSoVlerH.js";import"./DashboardViewParams-DnRSqG_L.js";import"./createSvgIcon-63W_9W2b.js";import"./Edit-ByX95MPl.js";const I={crumb:(s,{pathname:t,params:a})=>({to:t,linkText:String(a.snapshotId)}),hide:{snapshotList:!0}},G=({api:s})=>{const{projectId:t,snapshotId:a}=p();o(t),o(a);const d=h();return e.jsx(e.Fragment,{children:e.jsx(m.Provider,{value:g({getAdditionGraphData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(i),getAdditionWidgetData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(i)}),children:e.jsx(c,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:e.jsx(_,{widgets:d.widgets})})})})};export{G as SnapshotTemplate,I as handle}; diff --git a/src/evidently/ui/assets/static/js/index-BrZb1t9C.js b/src/evidently/ui/assets/static/js/index-BrZb1t9C.js new file mode 100644 index 0000000000..2f2a0065e5 --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-BrZb1t9C.js @@ -0,0 +1 @@ +import{R as React,j as jsxRuntimeExports,W as Button,aa as Popper,ab as Grow,a1 as Paper,ac as ClickAwayListener,ad as MenuList,M as MenuItem,r as reactExports,B as Box,ae as Chip,I as IconButton,a8 as useParams,X as useLoaderData,H as useMatches,a0 as useSubmit,O as useNavigation,h as invariant,t as useSearchParams,a9 as useLocalStorage,Z as Outlet,T as Typography,af as Table,ag as TableHead,ah as TableRow,ai as TableCell,aj as TableSortLabel,ak as TableBody,v as dayjs,N as Link,a3 as Tooltip,al as DeleteIcon,G as Grid,am as Autocomplete,a7 as TextField,F as FormControlLabel,n as Switch}from"./vendor-COAUpDWz.js";import{r as requireCreateSvgIcon,i as interopRequireDefaultExports}from"./createSvgIcon-63W_9W2b.js";import{d as default_1$1}from"./ContentCopy-CTB-bCQn.js";const options=[{title:"Download HTML",format:"html"},{title:"Download JSON",format:"json"}];function DownloadButton(e){const[t,n]=React.useState(!1),s=React.useRef(null),i=(l,d)=>{window.open(`${l}?report_format=${d}`,"_blank"),n(!1)},a=()=>{n(l=>!l)},m=l=>{var d;(d=s.current)!=null&&d.contains(l.target)||n(!1)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button,{disabled:e.disabled,variant:e.variant,ref:s,color:"primary","aria-controls":t?"split-button-menu":void 0,"aria-expanded":t?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:a,children:"Download"}),jsxRuntimeExports.jsx(Popper,{open:t,anchorEl:s.current,transition:!0,children:({TransitionProps:l,placement:d})=>jsxRuntimeExports.jsx(Grow,{...l,style:{transformOrigin:d==="bottom"?"center top":"center bottom"},children:jsxRuntimeExports.jsx(Paper,{children:jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:m,children:jsxRuntimeExports.jsx(MenuList,{id:"split-button-menu",children:options.map(x=>jsxRuntimeExports.jsx(MenuItem,{onClick:()=>i(e.downloadLink,x.format),children:x.title},x.format))})})})})})]})}var CloseRounded={},_interopRequireDefault=interopRequireDefaultExports;Object.defineProperty(CloseRounded,"__esModule",{value:!0});var default_1=CloseRounded.default=void 0,_createSvgIcon=_interopRequireDefault(requireCreateSvgIcon()),_jsxRuntime=jsxRuntimeExports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}),"CloseRounded");default_1=CloseRounded.default=_default;const HidedTags=({onClick:e,tags:t,limitTags:n=2})=>{const[s,i]=reactExports.useState(!1);return jsxRuntimeExports.jsxs(Box,{display:"flex",alignContent:"center",flexWrap:"wrap",children:[t.slice(0,n).map(a=>jsxRuntimeExports.jsx(Chip,{onClick:()=>e(a),label:a,style:{margin:3}},a)),s&&t.slice(n).map(a=>jsxRuntimeExports.jsx(Chip,{onClick:()=>e(a),label:a,style:{margin:3}},a)),!s&&t.length>n&&jsxRuntimeExports.jsx(Chip,{variant:"outlined",label:`+${t.length-n}`,style:{margin:3,borderColor:"grey"},onClick:()=>i(!0)},"+N"),t.length>0&&s&&jsxRuntimeExports.jsx(IconButton,{style:{margin:3},onClick:()=>i(!1),children:jsxRuntimeExports.jsx(default_1,{fontSize:"small"})})]})},TextWithCopyIcon=({showText:e,copyText:t})=>jsxRuntimeExports.jsxs(Box,{children:[e,jsxRuntimeExports.jsx(IconButton,{size:"small",style:{marginLeft:10},onClick:()=>navigator.clipboard.writeText(t),children:jsxRuntimeExports.jsx(default_1$1,{fontSize:"small"})})]});function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function objectSize(e){return Array.isArray(e)?e.length:isObject(e)?Object.keys(e).length:0}function stringifyForCopying(e,t){if(typeof e=="string")return e;try{return JSON.stringify(e,(n,s)=>{switch(typeof s){case"bigint":return String(s)+"n";case"number":case"boolean":case"object":case"string":return s;default:return String(s)}},t)}catch(n){return`${n.name}: ${n.message}`||"JSON.stringify failed"}}function isCollapsed(e,t,n,s,i,a){if(a&&a.collapsed!==void 0)return!!a.collapsed;if(typeof s=="boolean")return s;if(typeof s=="number"&&t>s)return!0;const m=objectSize(e);if(typeof s=="function"){const l=safeCall(s,[{node:e,depth:t,indexOrName:n,size:m}]);if(typeof l=="boolean")return l}return!!(Array.isArray(e)&&m>i||isObject(e)&&m>i)}function ifDisplay(e,t,n){return typeof e=="boolean"?e:!!(typeof e=="number"&&t>e||e==="collapsed"&&n||e==="expanded"&&!n)}function safeCall(e,t){try{return e(...t)}catch(n){reportError(n)}}function editableAdd(e){if(e===!0||isObject(e)&&e.add===!0)return!0}function editableEdit(e){if(e===!0||isObject(e)&&e.edit===!0)return!0}function editableDelete(e){if(e===!0||isObject(e)&&e.delete===!0)return!0}function isReactComponent(e){return typeof e=="function"}function customAdd(e){return!e||e.add===void 0||!!e.add}function customEdit(e){return!e||e.edit===void 0||!!e.edit}function customDelete(e){return!e||e.delete===void 0||!!e.delete}function customCopy(e){return!e||e.enableClipboard===void 0||!!e.enableClipboard}function resolveEvalFailedNewValue(e,t){return e==="string"?t.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):t}var _path$7;function _extends$7(){return _extends$7=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const i=stringifyForCopying(e);s.stopPropagation(),navigator.clipboard.writeText(i),n(!0),setTimeout(()=>n(!1),3e3)},className:"json-view--copy"})}function NameValue({indexOrName:e,value:t,depth:n,parent:s,deleteHandle:i,editHandle:a}){return jsxRuntimeExports.jsxs("div",Object.assign({className:"json-view--pair"},{children:[jsxRuntimeExports.jsx("span",Object.assign({className:typeof e=="number"?"json-view--index":"json-view--property"},{children:e})),":"," ",jsxRuntimeExports.jsx(JsonNode,{node:t,depth:n+1,deleteHandle:i,editHandle:a,parent:s,indexOrName:e})]}))}var _path$4,_path2$3;function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(e){for(var t=1;t{b(isCollapsed(e,t,n,a,l,i))},[a,l]);const O=reactExports.useCallback((o,p,k)=>{Array.isArray(e)?e[+o]=p:e&&(e[o]=p),h&&h({newValue:p,oldValue:k,depth:t,src:u,indexOrName:o,parentType:E?"object":"array"}),c&&c({type:"edit",depth:t,src:u,indexOrName:o,parentType:E?"object":"array"}),R()},[e,h,c,R]),C=o=>{Array.isArray(e)?e.splice(+o,1):e&&delete e[o],R()},[N,w]=reactExports.useState(!1),r=()=>{w(!1),s&&s(n),x&&x({value:e,depth:t,src:u,indexOrName:n,parentType:E?"object":"array"}),c&&c({type:"delete",depth:t,src:u,indexOrName:n,parentType:E?"object":"array"})},[f,T]=reactExports.useState(!1),y=reactExports.useRef(null),S=()=>{var o;if(E){const p=(o=y.current)===null||o===void 0?void 0:o.value;p&&(e[p]=null,y.current&&(y.current.value=""),T(!1),g&&g({indexOrName:p,depth:t,src:u,parentType:"object"}),c&&c({type:"add",indexOrName:p,depth:t,src:u,parentType:"object"}))}else if(Array.isArray(e)){const p=e;p.push(null),g&&g({indexOrName:p.length-1,depth:t,src:u,parentType:"array"}),c&&c({type:"add",indexOrName:p.length-1,depth:t,src:u,parentType:"array"})}R()},D=o=>{o.key==="Enter"?(o.preventDefault(),S()):o.key==="Escape"&&A()},_=N||f,A=()=>{w(!1),T(!1)},$=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!j&&!_&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>b(!0)},{children:[ifDisplay(v,t,j)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(e)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),f&&E&&jsxRuntimeExports.jsx("input",{className:"json-view--input",placeholder:"property",ref:y,onKeyDown:D}),_&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:f?S:r}),_&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:A}),!j&&!_&&m&&customCopy(i)&&jsxRuntimeExports.jsx(CopyButton,{node:e}),!j&&!_&&editableAdd(d)&&customAdd(i)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{E?(T(!0),setTimeout(()=>{var o;return(o=y.current)===null||o===void 0?void 0:o.focus()})):S()}}),!j&&!_&&editableDelete(d)&&customDelete(i)&&s&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>w(!0)})]});return Array.isArray(e)?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),$,j?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>b(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:e.map((o,p)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:p,value:o,depth:t,parent:e,deleteHandle:C,editHandle:O},String(n)+String(p)))})),jsxRuntimeExports.jsx("span",{children:"]"}),j&&ifDisplay(v,t,j)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>b(!1),className:"jv-size"},{children:[objectSize(e)," Items"]}))]}):E?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),$,j?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>b(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:Object.entries(e).map(([o,p])=>jsxRuntimeExports.jsx(NameValue,{indexOrName:o,value:p,depth:t,parent:e,deleteHandle:C,editHandle:O},String(n)+String(o)))})),jsxRuntimeExports.jsx("span",{children:"}"}),j&&ifDisplay(v,t,j)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>b(!1),className:"jv-size"},{children:[objectSize(e)," Items"]}))]}):null}const LongString=React.forwardRef(({str:e,className:t,ctrlClick:n},s)=>{let{collapseStringMode:i,collapseStringsAfterLength:a}=reactExports.useContext(JsonViewContext);const[m,l]=reactExports.useState(!0);a=a>0?a:0;const d=e.replace(/\s+/g," "),x=u=>{(u.ctrlKey||u.metaKey)&&n?n(u):l(!m)};if(e.length<=a)return jsxRuntimeExports.jsxs("span",Object.assign({className:t,onClick:n},{children:['"',e,'"']}));if(i==="address")return e.length<=10?jsxRuntimeExports.jsxs("span",Object.assign({className:t,onClick:n},{children:['"',e,'"']})):jsxRuntimeExports.jsxs("span",Object.assign({onClick:x,className:t+" cursor-pointer"},{children:['"',m?d.slice(0,6)+"..."+d.slice(-4):e,'"']}));if(i==="directly")return jsxRuntimeExports.jsxs("span",Object.assign({onClick:x,className:t+" cursor-pointer"},{children:['"',m?d.slice(0,a)+"...":e,'"']}));if(i==="word"){let u=a,g=a+1,h=d,c=1;for(;;){if(/\W/.test(e[u])){h=e.slice(0,u);break}if(/\W/.test(e[g])){h=e.slice(0,g);break}if(c===6){h=e.slice(0,a);break}c++,u--,g++}return jsxRuntimeExports.jsxs("span",Object.assign({onClick:x,className:t+" cursor-pointer"},{children:['"',m?h+"...":e,'"']}))}return jsxRuntimeExports.jsxs("span",Object.assign({className:t},{children:['"',e,'"']}))});var _path;function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t{setEditing(!0),setTimeout(()=>{var e,t;(e=window.getSelection())===null||e===void 0||e.selectAllChildren(valueRef.current),(t=valueRef.current)===null||t===void 0||t.focus()})},done=reactExports.useCallback(()=>{const newValue=valueRef.current.innerText;try{const evalValue=eval(newValue);editHandle&&editHandle(indexOrName,evalValue,node)}catch(e){const t=resolveEvalFailedNewValue(type,newValue);editHandle&&editHandle(indexOrName,t,node)}setEditing(!1)},[editHandle]),cancel=()=>{setEditing(!1),setDeleting(!1)},deleteHandle=()=>{setDeleting(!1),_deleteHandle&&_deleteHandle(indexOrName),onDelete&&onDelete({value:node,depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object"}),onChange&&onChange({depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object",type:"delete"})},handleKeyDown=reactExports.useCallback(e=>{e.key==="Enter"?(e.preventDefault(),done()):e.key==="Escape"&&cancel()},[done]),isEditing=editing||deleting,ctrlClick=!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle?e=>{(e.ctrlKey||e.metaKey)&&edit()}:void 0,Icons=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[isEditing&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:deleting?deleteHandle:done}),isEditing&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:cancel}),!isEditing&&enableClipboard&&customCopy(customReturn)&&jsxRuntimeExports.jsx(CopyButton,{node}),!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle&&jsxRuntimeExports.jsx(SvgEdit,{className:"json-view--edit",onClick:edit}),!isEditing&&editableDelete(editable)&&customDelete(customReturn)&&_deleteHandle&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>setDeleting(!0)})]});let className="json-view--string";switch(typeof(customReturn==null?void 0:customReturn.className)=="string"&&(className+=" "+customReturn.className),type){case"number":case"bigint":className="json-view--number";break;case"boolean":className="json-view--boolean";break;case"object":className="json-view--null";break}deleting&&(className+=" json-view--deleting");let displayValue=String(node);type==="bigint"&&(displayValue+="n");const EditingElement=reactExports.useMemo(()=>jsxRuntimeExports.jsx("span",{contentEditable:!0,className,dangerouslySetInnerHTML:{__html:type==="string"?`"${displayValue}"`:displayValue},ref:valueRef,onKeyDown:handleKeyDown}),[displayValue,type,handleKeyDown]);return type==="string"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:node.length>collapseStringsAfterLength?jsxRuntimeExports.jsx(LongString,{str:node,ref:valueRef,className,ctrlClick}):jsxRuntimeExports.jsxs("span",Object.assign({className,onClick:ctrlClick},{children:['"',displayValue,'"']})),Icons]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:jsxRuntimeExports.jsx("span",Object.assign({className,onClick:ctrlClick},{children:displayValue})),Icons]})}}const JsonViewContext=reactExports.createContext({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",collapseObjectsAfterLength:20,collapsed:!1,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,displaySize:void 0});function JsonView({src:e,collapseStringsAfterLength:t=99,collapseStringMode:n="directly",collapseObjectsAfterLength:s=99,collapsed:i,enableClipboard:a=!0,editable:m=!1,onEdit:l,onDelete:d,onAdd:x,onChange:u,dark:g=!1,theme:h="default",customizeNode:c,displaySize:R}){const[v,E]=reactExports.useState(0),j=reactExports.useCallback(()=>E(b=>++b),[]);return jsxRuntimeExports.jsx(JsonViewContext.Provider,Object.assign({value:{src:e,collapseStringsAfterLength:t,collapseStringMode:n,collapseObjectsAfterLength:s,collapsed:i,enableClipboard:a,editable:m,onEdit:l,onDelete:d,onAdd:x,onChange:u,forceUpdate:j,customizeNode:c,displaySize:R}},{children:jsxRuntimeExports.jsx("code",Object.assign({className:"json-view"+(g?" dark":"")+(h&&h!=="default"?" json-view_"+h:"")},{children:jsxRuntimeExports.jsx(JsonNode,{node:e,depth:1})}))}))}function useUpdateQueryStringValueWithoutNavigation(e,t){reactExports.useEffect(()=>{const n=new URLSearchParams(window.location.search),s=n.get(e)??"";if(t===s)return;t?n.set(e,t):n.delete(e);const i=[window.location.pathname,n.toString()].filter(Boolean).join("?");window.history.replaceState(null,"",i)},[e,t])}const shouldRevalidate=()=>!0,handle={crumb:(e,{pathname:t})=>({to:t,linkText:t.split("/").reverse()[0]==="reports"?"Reports":"Test Suites"})},metadataToOneString=e=>Object.values(e).map(t=>Array.isArray(t)?t.join(" "):typeof t=="object"?metadataToOneString(t):t).join(" "),SnapshotsListTemplate=({type:e,slots:t})=>{const{projectId:n}=useParams(),s=useLoaderData(),i=useMatches(),a=useSubmit(),l=useNavigation().state!=="idle";invariant(n);const[d]=useSearchParams(),[x,u]=reactExports.useState("desc"),[g,h]=useLocalStorage("show-full-json-metadata",!1),[c,R]=reactExports.useState(()=>{var r;return((r=d.get("tags"))==null?void 0:r.split(","))||[]}),[v,E]=reactExports.useState(()=>d.get("metadata-query")||"");useUpdateQueryStringValueWithoutNavigation("tags",c.join(",")),useUpdateQueryStringValueWithoutNavigation("metadata-query",String(v));const j=i.find(({handle:r})=>{var f;return((f=r==null?void 0:r.hide)==null?void 0:f.snapshotList)===!0}),b=reactExports.useMemo(()=>Array.from(new Set(s.flatMap(({tags:r})=>r))),[s]),O=reactExports.useMemo(()=>s.filter(({tags:r})=>c.every(f=>r.includes(f))),[s,c]),C=reactExports.useMemo(()=>O.filter(({metadata:r})=>v===""?!0:metadataToOneString(r).includes(v)),[O,v]),N=reactExports.useMemo(()=>x===void 0?C:C.sort((r,f)=>{const[T,y]=[Date.parse(r.timestamp),Date.parse(f.timestamp)],S=T-y;return x==="desc"?-S:x==="asc"?S:0}),[C,x]);if(j)return jsxRuntimeExports.jsx(Outlet,{});const w=jsxRuntimeExports.jsx(Box,{sx:{padding:2},children:jsxRuntimeExports.jsxs(Grid,{container:!0,gap:2,alignItems:"flex-end",justifyContent:"space-around",children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:4,children:jsxRuntimeExports.jsx(Autocomplete,{multiple:!0,limitTags:2,value:c,onChange:(r,f)=>R(f),options:b,renderInput:r=>jsxRuntimeExports.jsx(TextField,{...r,variant:"standard",label:"Filter by Tags"})})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:7,children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"flex-end",gap:2,children:[jsxRuntimeExports.jsx(TextField,{fullWidth:!0,value:v,onChange:r=>E(r.target.value),variant:"standard",label:"Search in Metadata"}),jsxRuntimeExports.jsx(Box,{minWidth:220,display:"flex",justifyContent:"center",children:jsxRuntimeExports.jsx(FormControlLabel,{control:jsxRuntimeExports.jsx(Switch,{checked:g,onChange:r=>h(r.target.checked)}),label:"Hide Metadata"})}),jsxRuntimeExports.jsx(Box,{display:"flex",justifyContent:"flex-end",children:jsxRuntimeExports.jsxs(Button,{sx:{minWidth:160},variant:"outlined",onClick:()=>a({action:"reload-snapshots"},{method:"post",replace:!0,encType:"application/json"}),color:"primary",disabled:l,children:["refresh ",e]})})]})})]})});return s.length===0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[w,jsxRuntimeExports.jsxs(Typography,{my:3,variant:"h4",align:"center",children:["You don't have any ",e," yet."]})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[w,jsxRuntimeExports.jsxs(Table,{children:[jsxRuntimeExports.jsxs(TableHead,{children:[jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{children:e==="reports"?"Report ID":e==="test suites"?"Test Suite ID":"indefined"}),jsxRuntimeExports.jsx(TableCell,{children:"Tags"}),jsxRuntimeExports.jsx(TableCell,{children:"Metadata"}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(TableSortLabel,{active:!!x,direction:x,onClick:()=>{u(r=>{if(r===void 0)return"desc";if(r==="desc")return"asc"})},children:"Timestamp"})}),jsxRuntimeExports.jsx(TableCell,{align:"center",children:"Actions"})]}),jsxRuntimeExports.jsx(TableRow,{})]}),jsxRuntimeExports.jsx(TableBody,{children:N.map(r=>jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(TextWithCopyIcon,{showText:r.id,copyText:r.id})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Box,{maxWidth:250,children:jsxRuntimeExports.jsx(HidedTags,{onClick:f=>{c.includes(f)||R([...c,f])},tags:r.tags})})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(JsonView,{collapsed:g,src:r.metadata,theme:"atom",enableClipboard:!1})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Typography,{variant:"body2",children:dayjs(r.timestamp).locale("en-gb").format("llll")})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsxs(Box,{display:"flex",justifyContent:"center",gap:1,children:[t!=null&&t.ViewButton?jsxRuntimeExports.jsx(t.ViewButton,{snapshotId:r.id,projectId:n}):jsxRuntimeExports.jsx(Button,{disabled:l,component:Link,to:`${r.id}`,children:"View"}),jsxRuntimeExports.jsx(DownloadButton,{variant:(t==null?void 0:t.donwloadButtonVariant)||"outlined",disabled:l,downloadLink:`/api/projects/${n}/${r.id}/download`}),(t==null?void 0:t.additionalSnapshotActions)&&jsxRuntimeExports.jsx(t.additionalSnapshotActions,{snapshotId:r.id,projectId:n}),jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsx(Tooltip,{title:"delete snapshot",placement:"top",children:jsxRuntimeExports.jsx(IconButton,{onClick:()=>{confirm("Are you sure?")===!0&&a({action:"delete-snapshot",snapshotId:r.id},{method:"post",replace:!0,encType:"application/json"})},color:"primary",disabled:l,children:jsxRuntimeExports.jsx(DeleteIcon,{})})})})]})})]},`r-${r.id}`))})]})]})};export{SnapshotsListTemplate,handle,shouldRevalidate}; diff --git a/src/evidently/ui/assets/static/js/index-By5ZMnyu.js b/src/evidently/ui/assets/static/js/index-By5ZMnyu.js new file mode 100644 index 0000000000..b0039255d2 --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-By5ZMnyu.js @@ -0,0 +1 @@ +import{R as K,j as x,z as we,r as ue,O as Ce,a0 as at,a1 as Dt,B as ee,I as St,a2 as ot,a3 as Et,a4 as kt,a5 as jt,a6 as Tt,a7 as Xe,W as Ot,K as Ct,N as Lt,T as Te,X as Rt,G as Nt}from"./vendor-COAUpDWz.js";import{r as Pt,i as Mt}from"./createSvgIcon-63W_9W2b.js";import{d as Bt}from"./Edit-ByX95MPl.js";var ce=e=>e.type==="checkbox",ie=e=>e instanceof Date,O=e=>e==null;const lt=e=>typeof e=="object";var k=e=>!O(e)&&!Array.isArray(e)&<(e)&&!ie(e),Ut=e=>k(e)&&e.target?ce(e.target)?e.target.checked:e.target.value:e,It=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,qt=(e,i)=>e.has(It(i)),Wt=e=>{const i=e.constructor&&e.constructor.prototype;return k(i)&&i.hasOwnProperty("isPrototypeOf")},Le=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function G(e){let i;const s=Array.isArray(e);if(e instanceof Date)i=new Date(e);else if(e instanceof Set)i=new Set(e);else if(!(Le&&(e instanceof Blob||e instanceof FileList))&&(s||k(e)))if(i=s?[]:{},!s&&!Wt(e))i=e;else for(const t in e)e.hasOwnProperty(t)&&(i[t]=G(e[t]));else return e;return i}var fe=e=>Array.isArray(e)?e.filter(Boolean):[],E=e=>e===void 0,d=(e,i,s)=>{if(!i||!k(e))return s;const t=fe(i.split(/[,[\].]+?/)).reduce((o,a)=>O(o)?o:o[a],e);return E(t)||t===e?E(e[i])?s:e[i]:t},Q=e=>typeof e=="boolean";const Ye={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},M={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},z={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};K.createContext(null);var Ht=(e,i,s,t=!0)=>{const o={defaultValues:i._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const u=a;return i._proxyFormState[u]!==M.all&&(i._proxyFormState[u]=!t||M.all),e[u]}});return o},N=e=>k(e)&&!Object.keys(e).length,$t=(e,i,s,t)=>{s(e);const{name:o,...a}=e;return N(a)||Object.keys(a).length>=Object.keys(i).length||Object.keys(a).find(u=>i[u]===M.all)},De=e=>Array.isArray(e)?e:[e];function zt(e){const i=K.useRef(e);i.current=e,K.useEffect(()=>{const s=!e.disabled&&i.current.subject&&i.current.subject.subscribe({next:i.current.next});return()=>{s&&s.unsubscribe()}},[e.disabled])}var W=e=>typeof e=="string",Gt=(e,i,s,t,o)=>W(e)?(t&&i.watch.add(e),d(s,e,o)):Array.isArray(e)?e.map(a=>(t&&i.watch.add(a),d(s,a))):(t&&(i.watchAll=!0),s),Re=e=>/^\w*$/.test(e),ut=e=>fe(e.replace(/["|']|\]/g,"").split(/\.|\[/));function V(e,i,s){let t=-1;const o=Re(i)?[i]:ut(i),a=o.length,u=a-1;for(;++ti?{...s[e],types:{...s[e]&&s[e].types?s[e].types:{},[t]:o||!0}}:{};const Oe=(e,i,s)=>{for(const t of s||Object.keys(e)){const o=d(e,t);if(o){const{_f:a,...u}=o;if(a&&i(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else k(u)&&Oe(u,i)}}};var Je=e=>({isOnSubmit:!e||e===M.onSubmit,isOnBlur:e===M.onBlur,isOnChange:e===M.onChange,isOnAll:e===M.all,isOnTouch:e===M.onTouched}),Qe=(e,i,s)=>!s&&(i.watchAll||i.watch.has(e)||[...i.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),Kt=(e,i,s)=>{const t=fe(d(e,s));return V(t,"root",i[s]),V(e,s,t),e},Ne=e=>e.type==="file",X=e=>typeof e=="function",he=e=>{if(!Le)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},ye=e=>W(e),Pe=e=>e.type==="radio",ge=e=>e instanceof RegExp;const Ze={value:!1,isValid:!1},et={value:!0,isValid:!0};var ft=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(s=>s&&s.checked&&!s.disabled).map(s=>s.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!E(e[0].attributes.value)?E(e[0].value)||e[0].value===""?et:{value:e[0].value,isValid:!0}:et:Ze}return Ze};const tt={isValid:!1,value:null};var dt=e=>Array.isArray(e)?e.reduce((i,s)=>s&&s.checked&&!s.disabled?{isValid:!0,value:s.value}:i,tt):tt;function rt(e,i,s="validate"){if(ye(e)||Array.isArray(e)&&e.every(ye)||Q(e)&&!e)return{type:s,message:ye(e)?e:"",ref:i}}var se=e=>k(e)&&!ge(e)?e:{value:e,message:""},st=async(e,i,s,t,o)=>{const{ref:a,refs:u,required:g,maxLength:v,minLength:w,min:B,max:A,pattern:p,validate:U,name:C,valueAsNumber:me,mount:de,disabled:pe}=e._f,m=d(i,C);if(!de||pe)return{};const P=u?u[0]:a,H=_=>{t&&P.reportValidity&&(P.setCustomValidity(Q(_)?"":_||""),P.reportValidity())},j={},ne=Pe(a),te=ce(a),be=ne||te,I=(me||Ne(a))&&E(a.value)&&E(m)||he(a)&&a.value===""||m===""||Array.isArray(m)&&!m.length,Y=ct.bind(null,C,s,j),$=(_,b,D,L=z.maxLength,R=z.minLength)=>{const q=_?b:D;j[C]={type:_?L:R,message:q,ref:a,...Y(_?L:R,q)}};if(o?!Array.isArray(m)||!m.length:g&&(!be&&(I||O(m))||Q(m)&&!m||te&&!ft(u).isValid||ne&&!dt(u).isValid)){const{value:_,message:b}=ye(g)?{value:!!g,message:g}:se(g);if(_&&(j[C]={type:z.required,message:b,ref:P,...Y(z.required,b)},!s))return H(b),j}if(!I&&(!O(B)||!O(A))){let _,b;const D=se(A),L=se(B);if(!O(m)&&!isNaN(m)){const R=a.valueAsNumber||m&&+m;O(D.value)||(_=R>D.value),O(L.value)||(b=Rnew Date(new Date().toDateString()+" "+oe),J=a.type=="time",ae=a.type=="week";W(D.value)&&m&&(_=J?q(m)>q(D.value):ae?m>D.value:R>new Date(D.value)),W(L.value)&&m&&(b=J?q(m)+_.value,L=!O(b.value)&&m.length<+b.value;if((D||L)&&($(D,_.message,b.message),!s))return H(j[C].message),j}if(p&&!I&&W(m)){const{value:_,message:b}=se(p);if(ge(_)&&!m.match(_)&&(j[C]={type:z.pattern,message:b,ref:a,...Y(z.pattern,b)},!s))return H(b),j}if(U){if(X(U)){const _=await U(m,i),b=rt(_,P);if(b&&(j[C]={...b,...Y(z.validate,b.message)},!s))return H(b.message),j}else if(k(U)){let _={};for(const b in U){if(!N(_)&&!s)break;const D=rt(await U[b](m,i),P,b);D&&(_={...D,...Y(b,D.message)},H(D.message),s&&(j[C]=_))}if(!N(_)&&(j[C]={ref:P,..._},!s))return j}}return H(!0),j};function Xt(e,i){const s=i.slice(0,-1).length;let t=0;for(;t{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}}var ve=e=>O(e)||!lt(e);function Z(e,i){if(ve(e)||ve(i))return e===i;if(ie(e)&&ie(i))return e.getTime()===i.getTime();const s=Object.keys(e),t=Object.keys(i);if(s.length!==t.length)return!1;for(const o of s){const a=e[o];if(!t.includes(o))return!1;if(o!=="ref"){const u=i[o];if(ie(a)&&ie(u)||k(a)&&k(u)||Array.isArray(a)&&Array.isArray(u)?!Z(a,u):a!==u)return!1}}return!0}var yt=e=>e.type==="select-multiple",Jt=e=>Pe(e)||ce(e),Ee=e=>he(e)&&e.isConnected,ht=e=>{for(const i in e)if(X(e[i]))return!0;return!1};function xe(e,i={}){const s=Array.isArray(e);if(k(e)||s)for(const t in e)Array.isArray(e[t])||k(e[t])&&!ht(e[t])?(i[t]=Array.isArray(e[t])?[]:{},xe(e[t],i[t])):O(e[t])||(i[t]=!0);return i}function gt(e,i,s){const t=Array.isArray(e);if(k(e)||t)for(const o in e)Array.isArray(e[o])||k(e[o])&&!ht(e[o])?E(i)||ve(s[o])?s[o]=Array.isArray(e[o])?xe(e[o],[]):{...xe(e[o])}:gt(e[o],O(i)?{}:i[o],s[o]):s[o]=!Z(e[o],i[o]);return s}var ke=(e,i)=>gt(e,i,xe(i)),vt=(e,{valueAsNumber:i,valueAsDate:s,setValueAs:t})=>E(e)?e:i?e===""?NaN:e&&+e:s&&W(e)?new Date(e):t?t(e):e;function je(e){const i=e.ref;if(!(e.refs?e.refs.every(s=>s.disabled):i.disabled))return Ne(i)?i.files:Pe(i)?dt(e.refs).value:yt(i)?[...i.selectedOptions].map(({value:s})=>s):ce(i)?ft(e.refs).value:vt(E(i.value)?e.ref.value:i.value,e)}var Qt=(e,i,s,t)=>{const o={};for(const a of e){const u=d(i,a);u&&V(o,a,u._f)}return{criteriaMode:s,names:[...e],fields:o,shouldUseNativeValidation:t}},le=e=>E(e)?e:ge(e)?e.source:k(e)?ge(e.value)?e.value.source:e.value:e,Zt=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function it(e,i,s){const t=d(e,s);if(t||Re(s))return{error:t,name:s};const o=s.split(".");for(;o.length;){const a=o.join("."),u=d(i,a),g=d(e,a);if(u&&!Array.isArray(u)&&s!==a)return{name:s};if(g&&g.type)return{name:a,error:g};o.pop()}return{name:s}}var er=(e,i,s,t,o)=>o.isOnAll?!1:!s&&o.isOnTouch?!(i||e):(s?t.isOnBlur:o.isOnBlur)?!e:(s?t.isOnChange:o.isOnChange)?e:!0,tr=(e,i)=>!fe(d(e,i)).length&&T(e,i);const rr={mode:M.onSubmit,reValidateMode:M.onChange,shouldFocusError:!0};function sr(e={},i){let s={...rr,...e},t={submitCount:0,isDirty:!1,isLoading:X(s.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},o={},a=k(s.defaultValues)||k(s.values)?G(s.defaultValues||s.values)||{}:{},u=s.shouldUnregister?{}:G(a),g={action:!1,mount:!1,watch:!1},v={mount:new Set,unMount:new Set,array:new Set,watch:new Set},w,B=0;const A={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Se(),array:Se(),state:Se()},U=e.resetOptions&&e.resetOptions.keepDirtyValues,C=Je(s.mode),me=Je(s.reValidateMode),de=s.criteriaMode===M.all,pe=r=>n=>{clearTimeout(B),B=setTimeout(r,n)},m=async r=>{if(A.isValid||r){const n=s.resolver?N((await I()).errors):await $(o,!0);n!==t.isValid&&p.state.next({isValid:n})}},P=r=>A.isValidating&&p.state.next({isValidating:r}),H=(r,n=[],l,y,f=!0,c=!0)=>{if(y&&l){if(g.action=!0,c&&Array.isArray(d(o,r))){const h=l(d(o,r),y.argA,y.argB);f&&V(o,r,h)}if(c&&Array.isArray(d(t.errors,r))){const h=l(d(t.errors,r),y.argA,y.argB);f&&V(t.errors,r,h),tr(t.errors,r)}if(A.touchedFields&&c&&Array.isArray(d(t.touchedFields,r))){const h=l(d(t.touchedFields,r),y.argA,y.argB);f&&V(t.touchedFields,r,h)}A.dirtyFields&&(t.dirtyFields=ke(a,u)),p.state.next({name:r,isDirty:b(r,n),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else V(u,r,n)},j=(r,n)=>{V(t.errors,r,n),p.state.next({errors:t.errors})},ne=(r,n,l,y)=>{const f=d(o,r);if(f){const c=d(u,r,E(l)?d(a,r):l);E(c)||y&&y.defaultChecked||n?V(u,r,n?c:je(f._f)):R(r,c),g.mount&&m()}},te=(r,n,l,y,f)=>{let c=!1,h=!1;const F={name:r};if(!l||y){A.isDirty&&(h=t.isDirty,t.isDirty=F.isDirty=b(),c=h!==F.isDirty);const S=Z(d(a,r),n);h=d(t.dirtyFields,r),S?T(t.dirtyFields,r):V(t.dirtyFields,r,!0),F.dirtyFields=t.dirtyFields,c=c||A.dirtyFields&&h!==!S}if(l){const S=d(t.touchedFields,r);S||(V(t.touchedFields,r,l),F.touchedFields=t.touchedFields,c=c||A.touchedFields&&S!==l)}return c&&f&&p.state.next(F),c?F:{}},be=(r,n,l,y)=>{const f=d(t.errors,r),c=A.isValid&&Q(n)&&t.isValid!==n;if(e.delayError&&l?(w=pe(()=>j(r,l)),w(e.delayError)):(clearTimeout(B),w=null,l?V(t.errors,r,l):T(t.errors,r)),(l?!Z(f,l):f)||!N(y)||c){const h={...y,...c&&Q(n)?{isValid:n}:{},errors:t.errors,name:r};t={...t,...h},p.state.next(h)}P(!1)},I=async r=>s.resolver(u,s.context,Qt(r||v.mount,o,s.criteriaMode,s.shouldUseNativeValidation)),Y=async r=>{const{errors:n}=await I(r);if(r)for(const l of r){const y=d(n,l);y?V(t.errors,l,y):T(t.errors,l)}else t.errors=n;return n},$=async(r,n,l={valid:!0})=>{for(const y in r){const f=r[y];if(f){const{_f:c,...h}=f;if(c){const F=v.array.has(c.name),S=await st(f,u,de,s.shouldUseNativeValidation&&!n,F);if(S[c.name]&&(l.valid=!1,n))break;!n&&(d(S,c.name)?F?Kt(t.errors,S,c.name):V(t.errors,c.name,S[c.name]):T(t.errors,c.name))}h&&await $(h,n,l)}}return l.valid},_=()=>{for(const r of v.unMount){const n=d(o,r);n&&(n._f.refs?n._f.refs.every(l=>!Ee(l)):!Ee(n._f.ref))&&_e(r)}v.unMount=new Set},b=(r,n)=>(r&&n&&V(u,r,n),!Z(Be(),a)),D=(r,n,l)=>Gt(r,v,{...g.mount?u:E(n)?a:W(r)?{[r]:n}:n},l,n),L=r=>fe(d(g.mount?u:a,r,e.shouldUnregister?d(a,r,[]):[])),R=(r,n,l={})=>{const y=d(o,r);let f=n;if(y){const c=y._f;c&&(!c.disabled&&V(u,r,vt(n,c)),f=he(c.ref)&&O(n)?"":n,yt(c.ref)?[...c.ref.options].forEach(h=>h.selected=f.includes(h.value)):c.refs?ce(c.ref)?c.refs.length>1?c.refs.forEach(h=>(!h.defaultChecked||!h.disabled)&&(h.checked=Array.isArray(f)?!!f.find(F=>F===h.value):f===h.value)):c.refs[0]&&(c.refs[0].checked=!!f):c.refs.forEach(h=>h.checked=h.value===f):Ne(c.ref)?c.ref.value="":(c.ref.value=f,c.ref.type||p.values.next({name:r,values:{...u}})))}(l.shouldDirty||l.shouldTouch)&&te(r,f,l.shouldTouch,l.shouldDirty,!0),l.shouldValidate&&oe(r)},q=(r,n,l)=>{for(const y in n){const f=n[y],c=`${r}.${y}`,h=d(o,c);(v.array.has(r)||!ve(f)||h&&!h._f)&&!ie(f)?q(c,f,l):R(c,f,l)}},J=(r,n,l={})=>{const y=d(o,r),f=v.array.has(r),c=G(n);V(u,r,c),f?(p.array.next({name:r,values:{...u}}),(A.isDirty||A.dirtyFields)&&l.shouldDirty&&p.state.next({name:r,dirtyFields:ke(a,u),isDirty:b(r,c)})):y&&!y._f&&!O(c)?q(r,c,l):R(r,c,l),Qe(r,v)&&p.state.next({...t}),p.values.next({name:r,values:{...u}}),!g.mount&&i()},ae=async r=>{const n=r.target;let l=n.name,y=!0;const f=d(o,l),c=()=>n.type?je(f._f):Ut(r);if(f){let h,F;const S=c(),re=r.type===Ye.BLUR||r.type===Ye.FOCUS_OUT,At=!Zt(f._f)&&!s.resolver&&!d(t.errors,l)&&!f._f.deps||er(re,d(t.touchedFields,l),t.isSubmitted,me,C),Ae=Qe(l,v,re);V(u,l,S),re?(f._f.onBlur&&f._f.onBlur(r),w&&w(0)):f._f.onChange&&f._f.onChange(r);const Fe=te(l,S,re,!1),Ft=!N(Fe)||Ae;if(!re&&p.values.next({name:l,type:r.type,values:{...u}}),At)return A.isValid&&m(),Ft&&p.state.next({name:l,...Ae?{}:Fe});if(!re&&Ae&&p.state.next({...t}),P(!0),s.resolver){const{errors:Ge}=await I([l]),wt=it(t.errors,o,l),Ke=it(Ge,o,wt.name||l);h=Ke.error,l=Ke.name,F=N(Ge)}else h=(await st(f,u,de,s.shouldUseNativeValidation))[l],y=Number.isNaN(S)||S===d(u,l,S),y&&(h?F=!1:A.isValid&&(F=await $(o,!0)));y&&(f._f.deps&&oe(f._f.deps),be(l,F,h,Fe))}},oe=async(r,n={})=>{let l,y;const f=De(r);if(P(!0),s.resolver){const c=await Y(E(r)?r:f);l=N(c),y=r?!f.some(h=>d(c,h)):l}else r?(y=(await Promise.all(f.map(async c=>{const h=d(o,c);return await $(h&&h._f?{[c]:h}:h)}))).every(Boolean),!(!y&&!t.isValid)&&m()):y=l=await $(o);return p.state.next({...!W(r)||A.isValid&&l!==t.isValid?{}:{name:r},...s.resolver||!r?{isValid:l}:{},errors:t.errors,isValidating:!1}),n.shouldFocus&&!y&&Oe(o,c=>c&&d(t.errors,c),r?f:v.mount),y},Be=r=>{const n={...a,...g.mount?u:{}};return E(r)?n:W(r)?d(n,r):r.map(l=>d(n,l))},Ue=(r,n)=>({invalid:!!d((n||t).errors,r),isDirty:!!d((n||t).dirtyFields,r),isTouched:!!d((n||t).touchedFields,r),error:d((n||t).errors,r)}),bt=r=>{r&&De(r).forEach(n=>T(t.errors,n)),p.state.next({errors:r?t.errors:{}})},Ie=(r,n,l)=>{const y=(d(o,r,{_f:{}})._f||{}).ref;V(t.errors,r,{...n,ref:y}),p.state.next({name:r,errors:t.errors,isValid:!1}),l&&l.shouldFocus&&y&&y.focus&&y.focus()},_t=(r,n)=>X(r)?p.values.subscribe({next:l=>r(D(void 0,n),l)}):D(r,n,!0),_e=(r,n={})=>{for(const l of r?De(r):v.mount)v.mount.delete(l),v.array.delete(l),n.keepValue||(T(o,l),T(u,l)),!n.keepError&&T(t.errors,l),!n.keepDirty&&T(t.dirtyFields,l),!n.keepTouched&&T(t.touchedFields,l),!s.shouldUnregister&&!n.keepDefaultValue&&T(a,l);p.values.next({values:{...u}}),p.state.next({...t,...n.keepDirty?{isDirty:b()}:{}}),!n.keepIsValid&&m()},qe=({disabled:r,name:n,field:l,fields:y})=>{if(Q(r)){const f=r?void 0:d(u,n,je(l?l._f:d(y,n)._f));V(u,n,f),te(n,f,!1,!1,!0)}},Ve=(r,n={})=>{let l=d(o,r);const y=Q(n.disabled);return V(o,r,{...l||{},_f:{...l&&l._f?l._f:{ref:{name:r}},name:r,mount:!0,...n}}),v.mount.add(r),l?qe({field:l,disabled:n.disabled,name:r}):ne(r,!0,n.value),{...y?{disabled:n.disabled}:{},...s.progressive?{required:!!n.required,min:le(n.min),max:le(n.max),minLength:le(n.minLength),maxLength:le(n.maxLength),pattern:le(n.pattern)}:{},name:r,onChange:ae,onBlur:ae,ref:f=>{if(f){Ve(r,n),l=d(o,r);const c=E(f.value)&&f.querySelectorAll&&f.querySelectorAll("input,select,textarea")[0]||f,h=Jt(c),F=l._f.refs||[];if(h?F.find(S=>S===c):c===l._f.ref)return;V(o,r,{_f:{...l._f,...h?{refs:[...F.filter(Ee),c,...Array.isArray(d(a,r))?[{}]:[]],ref:{type:c.type,name:r}}:{ref:c}}}),ne(r,!1,void 0,c)}else l=d(o,r,{}),l._f&&(l._f.mount=!1),(s.shouldUnregister||n.shouldUnregister)&&!(qt(v.array,r)&&g.action)&&v.unMount.add(r)}}},We=()=>s.shouldFocusError&&Oe(o,r=>r&&d(t.errors,r),v.mount),He=(r,n)=>async l=>{l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let y=G(u);if(p.state.next({isSubmitting:!0}),s.resolver){const{errors:f,values:c}=await I();t.errors=f,y=c}else await $(o);T(t.errors,"root"),N(t.errors)?(p.state.next({errors:{}}),await r(y,l)):(n&&await n({...t.errors},l),We(),setTimeout(We)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:N(t.errors),submitCount:t.submitCount+1,errors:t.errors})},Vt=(r,n={})=>{d(o,r)&&(E(n.defaultValue)?J(r,d(a,r)):(J(r,n.defaultValue),V(a,r,n.defaultValue)),n.keepTouched||T(t.touchedFields,r),n.keepDirty||(T(t.dirtyFields,r),t.isDirty=n.defaultValue?b(r,d(a,r)):b()),n.keepError||(T(t.errors,r),A.isValid&&m()),p.state.next({...t}))},$e=(r,n={})=>{const l=r?G(r):a,y=G(l),f=r&&!N(r)?y:a;if(n.keepDefaultValues||(a=l),!n.keepValues){if(n.keepDirtyValues||U)for(const c of v.mount)d(t.dirtyFields,c)?V(f,c,d(u,c)):J(c,d(f,c));else{if(Le&&E(r))for(const c of v.mount){const h=d(o,c);if(h&&h._f){const F=Array.isArray(h._f.refs)?h._f.refs[0]:h._f.ref;if(he(F)){const S=F.closest("form");if(S){S.reset();break}}}}o={}}u=e.shouldUnregister?n.keepDefaultValues?G(a):{}:G(f),p.array.next({values:{...f}}),p.values.next({values:{...f}})}v={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!g.mount&&i(),g.mount=!A.isValid||!!n.keepIsValid,g.watch=!!e.shouldUnregister,p.state.next({submitCount:n.keepSubmitCount?t.submitCount:0,isDirty:n.keepDirty?t.isDirty:!!(n.keepDefaultValues&&!Z(r,a)),isSubmitted:n.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:n.keepDirtyValues?t.dirtyFields:n.keepDefaultValues&&r?ke(a,r):{},touchedFields:n.keepTouched?t.touchedFields:{},errors:n.keepErrors?t.errors:{},isSubmitSuccessful:n.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},ze=(r,n)=>$e(X(r)?r(u):r,n);return{control:{register:Ve,unregister:_e,getFieldState:Ue,handleSubmit:He,setError:Ie,_executeSchema:I,_getWatch:D,_getDirty:b,_updateValid:m,_removeUnmounted:_,_updateFieldArray:H,_updateDisabledField:qe,_getFieldArray:L,_reset:$e,_resetDefaultValues:()=>X(s.defaultValues)&&s.defaultValues().then(r=>{ze(r,s.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:r=>{t={...t,...r}},_subjects:p,_proxyFormState:A,get _fields(){return o},get _formValues(){return u},get _state(){return g},set _state(r){g=r},get _defaultValues(){return a},get _names(){return v},set _names(r){v=r},get _formState(){return t},set _formState(r){t=r},get _options(){return s},set _options(r){s={...s,...r}}},trigger:oe,register:Ve,handleSubmit:He,watch:_t,setValue:J,getValues:Be,reset:ze,resetField:Vt,clearErrors:bt,unregister:_e,setError:Ie,setFocus:(r,n={})=>{const l=d(o,r),y=l&&l._f;if(y){const f=y.refs?y.refs[0]:y.ref;f.focus&&(f.focus(),n.shouldSelect&&f.select())}},getFieldState:Ue}}function ir(e={}){const i=K.useRef(),s=K.useRef(),[t,o]=K.useState({isDirty:!1,isValidating:!1,isLoading:X(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:X(e.defaultValues)?void 0:e.defaultValues});i.current||(i.current={...sr(e,()=>o(u=>({...u}))),formState:t});const a=i.current.control;return a._options=e,zt({subject:a._subjects.state,next:u=>{$t(u,a._proxyFormState,a._updateFormState)&&o({...a._formState})}}),K.useEffect(()=>{e.values&&!Z(e.values,s.current)?(a._reset(e.values,a._options.resetOptions),s.current=e.values):a._resetDefaultValues()},[e.values,a]),K.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),i.current.formState=Ht(t,a),i.current}var nt=function(e,i,s){if(e&&"reportValidity"in e){var t=d(s,i);e.setCustomValidity(t&&t.message||""),e.reportValidity()}},xt=function(e,i){var s=function(o){var a=i.fields[o];a&&a.ref&&"reportValidity"in a.ref?nt(a.ref,o,e):a.refs&&a.refs.forEach(function(u){return nt(u,o,e)})};for(var t in i.fields)s(t)},nr=function(e,i){i.shouldUseNativeValidation&&xt(e,i);var s={};for(var t in e){var o=d(i.fields,t),a=Object.assign(e[t]||{},{ref:o&&o.ref});if(or(i.names||Object.keys(e),t)){var u=Object.assign({},ar(d(s,t)));V(u,"root",a),V(s,t,u)}else V(s,t,a)}return s},ar=function(e){return Array.isArray(e)?e.filter(Boolean):[]},or=function(e,i){return e.some(function(s){return s.startsWith(i+".")})},lr=function(e,i){for(var s={};e.length;){var t=e[0],o=t.code,a=t.message,u=t.path.join(".");if(!s[u])if("unionErrors"in t){var g=t.unionErrors[0].errors[0];s[u]={message:g.message,type:g.code}}else s[u]={message:a,type:o};if("unionErrors"in t&&t.unionErrors.forEach(function(B){return B.errors.forEach(function(A){return e.push(A)})}),i){var v=s[u].types,w=v&&v[t.code];s[u]=ct(u,i,s,o,w?[].concat(w,t.message):t.message)}e.shift()}return s},ur=function(e,i,s){return s===void 0&&(s={}),function(t,o,a){try{return Promise.resolve(function(u,g){try{var v=Promise.resolve(e[s.mode==="sync"?"parse":"parseAsync"](t,i)).then(function(w){return a.shouldUseNativeValidation&&xt({},a),{errors:{},values:s.raw?t:w}})}catch(w){return g(w)}return v&&v.then?v.then(void 0,g):v}(0,function(u){if(function(g){return g.errors!=null}(u))return{values:{},errors:nr(lr(u.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw u}))}catch(u){return Promise.reject(u)}}},Me={},cr=Mt;Object.defineProperty(Me,"__esModule",{value:!0});var mt=Me.default=void 0,fr=cr(Pt()),dr=x,yr=(0,fr.default)((0,dr.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");mt=Me.default=yr;const hr=we.object({name:we.string().min(3),description:we.string()}),pt=({project:e,action:i})=>{var A,p;const t=Ce().state!=="idle",{setFocus:o,register:a,handleSubmit:u,formState:{errors:g,dirtyFields:v}}=ir({resolver:ur(hr),defaultValues:{name:e.name||"",description:e.description||""}}),{palette:w}=jt(),B=at();return ue.useEffect(()=>o("name"),[o]),x.jsx(x.Fragment,{children:x.jsxs(Tt,{onSubmit:u(({name:U,description:C})=>B({...e,name:U,description:C,action:i},{method:"put",replace:!0,encType:"application/json"})),style:{opacity:t?.5:1},children:[x.jsx(Xe,{...a("name"),error:!!g.name,helperText:(A=g.name)==null?void 0:A.message,placeholder:"Name",InputProps:{style:{color:w.primary.main,fontSize:"20px",fontWeight:"500"}},disabled:t,variant:"standard"}),x.jsx(Xe,{...a("description"),error:!!g.description,helperText:(p=g.description)==null?void 0:p.message,placeholder:"Description",disabled:t,fullWidth:!0,variant:"standard"}),x.jsx(ee,{sx:{display:"flex",justifyContent:"right"},children:x.jsx(Ot,{variant:"outlined",disabled:t||Object.keys(v).length===0||Object.keys(g).length>0,style:{marginTop:"10px"},color:"primary",type:"submit",children:"Save"})})]})})},gr=({project:e})=>x.jsxs(x.Fragment,{children:[x.jsx(Ct,{component:Lt,to:`projects/${e.id}`,children:x.jsx(Te,{variant:"h6",children:e.name})}),x.jsx(Te,{style:{whiteSpace:"pre-line"},variant:"body1",children:e.description})]}),vr=({project:e})=>{const[i,s]=ue.useState(!1),o=Ce().state!=="idle",a=at();return ue.useEffect(()=>s(!1),[e]),x.jsxs(Dt,{sx:{m:1,p:2,position:"relative","&:hover .action-buttons":{opacity:1}},children:[x.jsx(ee,{style:{position:"absolute",top:"5px",right:"5px"},children:x.jsxs(ee,{sx:{opacity:0,transition:u=>u.transitions.create("opacity",{duration:u.transitions.duration.enteringScreen})},className:"action-buttons",display:"flex",columnGap:1,children:[x.jsx(St,{disabled:o||i,onClick:()=>{confirm("Are you sure you want to delete this project?")===!0&&a({projectId:e.id,action:"delete-project"},{method:"post",replace:!0,encType:"application/json"})},children:x.jsx(mt,{})}),x.jsx(ot,{disabled:o,color:"primary",value:"edit-mode",selected:i,size:"small",sx:{border:"none",borderRadius:"50%"},onChange:()=>s(u=>!u),children:x.jsx(Bt,{})})]})}),i?x.jsx(pt,{project:e,action:"edit-project"}):x.jsx(gr,{project:e})]})},xr=()=>{const[e,i]=ue.useState(!1),[s,t]=ue.useState(!1),o=Ce(),a=o.state!=="idle";return!s&&o.state==="submitting"&&t(!0),s&&o.state==="idle"&&(t(!1),i(!1)),x.jsxs(ee,{py:2,children:[x.jsx(ee,{display:"flex",justifyContent:"center",children:x.jsx(Et,{title:"Create new project",children:x.jsx(ot,{size:"small",selected:e,disabled:a,color:"primary",value:"check",sx:{border:"none",borderRadius:"50%"},onChange:()=>i(u=>!u),children:x.jsx(kt,{})})})}),e&&x.jsx(ee,{p:3,display:"flex",flexDirection:"column",rowGap:1,children:x.jsx(pt,{project:{name:"",description:""},action:"create-new-project"})})]})},Fr=()=>{const e=Rt();return x.jsxs(x.Fragment,{children:[x.jsx(Te,{align:"center",variant:"h5",children:e.length>0?"Project List":"You don't have any projects yet"}),x.jsxs(ee,{m:"auto",mt:2,maxWidth:600,children:[x.jsx(xr,{}),x.jsx(Nt,{container:!0,direction:"column",justifyContent:"center",alignItems:"stretch",children:e.map(i=>x.jsx(K.Fragment,{children:x.jsx(vr,{project:i})},i.id))})]})]})};export{Fr as Component}; diff --git a/src/evidently/ui/assets/static/js/index-DpaWFHTR.js b/src/evidently/ui/assets/static/js/index-CFjUf3L-.js similarity index 84% rename from src/evidently/ui/assets/static/js/index-DpaWFHTR.js rename to src/evidently/ui/assets/static/js/index-CFjUf3L-.js index dbc23eb7cf..cf939ad15b 100644 --- a/src/evidently/ui/assets/static/js/index-DpaWFHTR.js +++ b/src/evidently/ui/assets/static/js/index-CFjUf3L-.js @@ -1 +1 @@ -import{H as d,X as c,j as e,B as x,G as o,T as m,I as p,_ as j,K as u,N as h,$ as b,Z as T}from"./vendor-t0l2jWQ9.js";import{d as f}from"./ContentCopy-B2vBgiMr.js";import"./createSvgIcon-LdZl81St.js";const v={crumb:(s,{pathname:i})=>({to:i,linkText:(s==null?void 0:s.name)||"undefined"})},a=({tabsConfig:s=[]})=>{const i=d(),n=c(),r=s.findIndex(t=>i.find(({id:l})=>l===t.id));return e.jsxs(x,{mt:2,children:[e.jsx(o,{container:!0,spacing:2,direction:"row",justifyContent:"flex-start",alignItems:"flex-end",children:e.jsx(o,{item:!0,xs:12,children:e.jsxs(m,{sx:{color:"#aaa"},variant:"body2",children:[`project id: ${n.id}`,e.jsx(p,{size:"small",style:{marginLeft:10},onClick:()=>{navigator.clipboard.writeText(n.id)},children:e.jsx(f,{fontSize:"small"})})]})})}),s.length>0&&e.jsx(j,{value:r,"aria-label":"simple tabs example",indicatorColor:"primary",children:s.map(t=>e.jsx(u,{component:h,to:t.link,children:e.jsx(b,{label:t.label||t.id,value:t.id})},t.id))}),e.jsx(T,{})]})},k=[{id:"dashboard",link:".",label:"Dashboard"},{id:"reports",link:"reports",label:"Reports"},{id:"test_suites",link:"test-suites",label:"Test suites"}],B=()=>e.jsx(a,{tabsConfig:k}),C=()=>e.jsx(a,{});export{B as Component,a as ProjectTemplate,C as ProjectWithoutTabs,v as handle}; +import{H as d,X as c,j as e,B as x,G as o,T as m,I as p,_ as j,K as u,N as h,$ as b,Z as T}from"./vendor-COAUpDWz.js";import{d as f}from"./ContentCopy-CTB-bCQn.js";import"./createSvgIcon-63W_9W2b.js";const v={crumb:(s,{pathname:i})=>({to:i,linkText:(s==null?void 0:s.name)||"undefined"})},a=({tabsConfig:s=[]})=>{const i=d(),n=c(),r=s.findIndex(t=>i.find(({id:l})=>l===t.id));return e.jsxs(x,{mt:2,children:[e.jsx(o,{container:!0,spacing:2,direction:"row",justifyContent:"flex-start",alignItems:"flex-end",children:e.jsx(o,{item:!0,xs:12,children:e.jsxs(m,{sx:{color:"#aaa"},variant:"body2",children:[`project id: ${n.id}`,e.jsx(p,{size:"small",style:{marginLeft:10},onClick:()=>{navigator.clipboard.writeText(n.id)},children:e.jsx(f,{fontSize:"small"})})]})})}),s.length>0&&e.jsx(j,{value:r,"aria-label":"simple tabs example",indicatorColor:"primary",children:s.map(t=>e.jsx(u,{component:h,to:t.link,children:e.jsx(b,{label:t.label||t.id,value:t.id})},t.id))}),e.jsx(T,{})]})},k=[{id:"dashboard",link:".",label:"Dashboard"},{id:"reports",link:"reports",label:"Reports"},{id:"test_suites",link:"test-suites",label:"Test suites"}],B=()=>e.jsx(a,{tabsConfig:k}),C=()=>e.jsx(a,{});export{B as Component,a as ProjectTemplate,C as ProjectWithoutTabs,v as handle}; diff --git a/src/evidently/ui/assets/static/js/index-CIEFkcKx.js b/src/evidently/ui/assets/static/js/index-CIEFkcKx.js deleted file mode 100644 index b20ef4a7ca..0000000000 --- a/src/evidently/ui/assets/static/js/index-CIEFkcKx.js +++ /dev/null @@ -1 +0,0 @@ -import{j as x,R as K,z as we,r as ue,O as Ce,a0 as ot,a1 as St,B as ee,I as Et,a2 as lt,a3 as Xe,a4 as kt,a5 as jt,a6 as Tt,a7 as Ot,a8 as Ye,W as Ct,K as Lt,N as Rt,T as Te,X as Nt,G as Pt}from"./vendor-t0l2jWQ9.js";import{d as Mt}from"./Edit-BJOpF2nO.js";import{r as Bt,i as Ut}from"./createSvgIcon-LdZl81St.js";var Le={},It=Ut;Object.defineProperty(Le,"__esModule",{value:!0});var ut=Le.default=void 0,qt=It(Bt()),Wt=x,Ht=(0,qt.default)((0,Wt.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");ut=Le.default=Ht;var ce=e=>e.type==="checkbox",ie=e=>e instanceof Date,O=e=>e==null;const ct=e=>typeof e=="object";var k=e=>!O(e)&&!Array.isArray(e)&&ct(e)&&!ie(e),$t=e=>k(e)&&e.target?ce(e.target)?e.target.checked:e.target.value:e,zt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Gt=(e,i)=>e.has(zt(i)),Kt=e=>{const i=e.constructor&&e.constructor.prototype;return k(i)&&i.hasOwnProperty("isPrototypeOf")},Re=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function G(e){let i;const s=Array.isArray(e);if(e instanceof Date)i=new Date(e);else if(e instanceof Set)i=new Set(e);else if(!(Re&&(e instanceof Blob||e instanceof FileList))&&(s||k(e)))if(i=s?[]:{},!s&&!Kt(e))i=e;else for(const t in e)e.hasOwnProperty(t)&&(i[t]=G(e[t]));else return e;return i}var fe=e=>Array.isArray(e)?e.filter(Boolean):[],E=e=>e===void 0,d=(e,i,s)=>{if(!i||!k(e))return s;const t=fe(i.split(/[,[\].]+?/)).reduce((o,a)=>O(o)?o:o[a],e);return E(t)||t===e?E(e[i])?s:e[i]:t},Q=e=>typeof e=="boolean";const Je={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},M={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},z={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};K.createContext(null);var Xt=(e,i,s,t=!0)=>{const o={defaultValues:i._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const u=a;return i._proxyFormState[u]!==M.all&&(i._proxyFormState[u]=!t||M.all),e[u]}});return o},N=e=>k(e)&&!Object.keys(e).length,Yt=(e,i,s,t)=>{s(e);const{name:o,...a}=e;return N(a)||Object.keys(a).length>=Object.keys(i).length||Object.keys(a).find(u=>i[u]===M.all)},De=e=>Array.isArray(e)?e:[e];function Jt(e){const i=K.useRef(e);i.current=e,K.useEffect(()=>{const s=!e.disabled&&i.current.subject&&i.current.subject.subscribe({next:i.current.next});return()=>{s&&s.unsubscribe()}},[e.disabled])}var W=e=>typeof e=="string",Qt=(e,i,s,t,o)=>W(e)?(t&&i.watch.add(e),d(s,e,o)):Array.isArray(e)?e.map(a=>(t&&i.watch.add(a),d(s,a))):(t&&(i.watchAll=!0),s),Ne=e=>/^\w*$/.test(e),ft=e=>fe(e.replace(/["|']|\]/g,"").split(/\.|\[/));function V(e,i,s){let t=-1;const o=Ne(i)?[i]:ft(i),a=o.length,u=a-1;for(;++ti?{...s[e],types:{...s[e]&&s[e].types?s[e].types:{},[t]:o||!0}}:{};const Oe=(e,i,s)=>{for(const t of s||Object.keys(e)){const o=d(e,t);if(o){const{_f:a,...u}=o;if(a&&i(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else k(u)&&Oe(u,i)}}};var Qe=e=>({isOnSubmit:!e||e===M.onSubmit,isOnBlur:e===M.onBlur,isOnChange:e===M.onChange,isOnAll:e===M.all,isOnTouch:e===M.onTouched}),Ze=(e,i,s)=>!s&&(i.watchAll||i.watch.has(e)||[...i.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),Zt=(e,i,s)=>{const t=fe(d(e,s));return V(t,"root",i[s]),V(e,s,t),e},Pe=e=>e.type==="file",X=e=>typeof e=="function",he=e=>{if(!Re)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},ye=e=>W(e),Me=e=>e.type==="radio",ge=e=>e instanceof RegExp;const et={value:!1,isValid:!1},tt={value:!0,isValid:!0};var yt=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(s=>s&&s.checked&&!s.disabled).map(s=>s.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!E(e[0].attributes.value)?E(e[0].value)||e[0].value===""?tt:{value:e[0].value,isValid:!0}:tt:et}return et};const rt={isValid:!1,value:null};var ht=e=>Array.isArray(e)?e.reduce((i,s)=>s&&s.checked&&!s.disabled?{isValid:!0,value:s.value}:i,rt):rt;function st(e,i,s="validate"){if(ye(e)||Array.isArray(e)&&e.every(ye)||Q(e)&&!e)return{type:s,message:ye(e)?e:"",ref:i}}var se=e=>k(e)&&!ge(e)?e:{value:e,message:""},it=async(e,i,s,t,o)=>{const{ref:a,refs:u,required:g,maxLength:v,minLength:w,min:B,max:A,pattern:p,validate:U,name:C,valueAsNumber:me,mount:de,disabled:pe}=e._f,m=d(i,C);if(!de||pe)return{};const P=u?u[0]:a,H=_=>{t&&P.reportValidity&&(P.setCustomValidity(Q(_)?"":_||""),P.reportValidity())},j={},ne=Me(a),te=ce(a),be=ne||te,I=(me||Pe(a))&&E(a.value)&&E(m)||he(a)&&a.value===""||m===""||Array.isArray(m)&&!m.length,Y=dt.bind(null,C,s,j),$=(_,b,D,L=z.maxLength,R=z.minLength)=>{const q=_?b:D;j[C]={type:_?L:R,message:q,ref:a,...Y(_?L:R,q)}};if(o?!Array.isArray(m)||!m.length:g&&(!be&&(I||O(m))||Q(m)&&!m||te&&!yt(u).isValid||ne&&!ht(u).isValid)){const{value:_,message:b}=ye(g)?{value:!!g,message:g}:se(g);if(_&&(j[C]={type:z.required,message:b,ref:P,...Y(z.required,b)},!s))return H(b),j}if(!I&&(!O(B)||!O(A))){let _,b;const D=se(A),L=se(B);if(!O(m)&&!isNaN(m)){const R=a.valueAsNumber||m&&+m;O(D.value)||(_=R>D.value),O(L.value)||(b=Rnew Date(new Date().toDateString()+" "+oe),J=a.type=="time",ae=a.type=="week";W(D.value)&&m&&(_=J?q(m)>q(D.value):ae?m>D.value:R>new Date(D.value)),W(L.value)&&m&&(b=J?q(m)+_.value,L=!O(b.value)&&m.length<+b.value;if((D||L)&&($(D,_.message,b.message),!s))return H(j[C].message),j}if(p&&!I&&W(m)){const{value:_,message:b}=se(p);if(ge(_)&&!m.match(_)&&(j[C]={type:z.pattern,message:b,ref:a,...Y(z.pattern,b)},!s))return H(b),j}if(U){if(X(U)){const _=await U(m,i),b=st(_,P);if(b&&(j[C]={...b,...Y(z.validate,b.message)},!s))return H(b.message),j}else if(k(U)){let _={};for(const b in U){if(!N(_)&&!s)break;const D=st(await U[b](m,i),P,b);D&&(_={...D,...Y(b,D.message)},H(D.message),s&&(j[C]=_))}if(!N(_)&&(j[C]={ref:P,..._},!s))return j}}return H(!0),j};function er(e,i){const s=i.slice(0,-1).length;let t=0;for(;t{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}}var ve=e=>O(e)||!ct(e);function Z(e,i){if(ve(e)||ve(i))return e===i;if(ie(e)&&ie(i))return e.getTime()===i.getTime();const s=Object.keys(e),t=Object.keys(i);if(s.length!==t.length)return!1;for(const o of s){const a=e[o];if(!t.includes(o))return!1;if(o!=="ref"){const u=i[o];if(ie(a)&&ie(u)||k(a)&&k(u)||Array.isArray(a)&&Array.isArray(u)?!Z(a,u):a!==u)return!1}}return!0}var gt=e=>e.type==="select-multiple",rr=e=>Me(e)||ce(e),Ee=e=>he(e)&&e.isConnected,vt=e=>{for(const i in e)if(X(e[i]))return!0;return!1};function xe(e,i={}){const s=Array.isArray(e);if(k(e)||s)for(const t in e)Array.isArray(e[t])||k(e[t])&&!vt(e[t])?(i[t]=Array.isArray(e[t])?[]:{},xe(e[t],i[t])):O(e[t])||(i[t]=!0);return i}function xt(e,i,s){const t=Array.isArray(e);if(k(e)||t)for(const o in e)Array.isArray(e[o])||k(e[o])&&!vt(e[o])?E(i)||ve(s[o])?s[o]=Array.isArray(e[o])?xe(e[o],[]):{...xe(e[o])}:xt(e[o],O(i)?{}:i[o],s[o]):s[o]=!Z(e[o],i[o]);return s}var ke=(e,i)=>xt(e,i,xe(i)),mt=(e,{valueAsNumber:i,valueAsDate:s,setValueAs:t})=>E(e)?e:i?e===""?NaN:e&&+e:s&&W(e)?new Date(e):t?t(e):e;function je(e){const i=e.ref;if(!(e.refs?e.refs.every(s=>s.disabled):i.disabled))return Pe(i)?i.files:Me(i)?ht(e.refs).value:gt(i)?[...i.selectedOptions].map(({value:s})=>s):ce(i)?yt(e.refs).value:mt(E(i.value)?e.ref.value:i.value,e)}var sr=(e,i,s,t)=>{const o={};for(const a of e){const u=d(i,a);u&&V(o,a,u._f)}return{criteriaMode:s,names:[...e],fields:o,shouldUseNativeValidation:t}},le=e=>E(e)?e:ge(e)?e.source:k(e)?ge(e.value)?e.value.source:e.value:e,ir=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function nt(e,i,s){const t=d(e,s);if(t||Ne(s))return{error:t,name:s};const o=s.split(".");for(;o.length;){const a=o.join("."),u=d(i,a),g=d(e,a);if(u&&!Array.isArray(u)&&s!==a)return{name:s};if(g&&g.type)return{name:a,error:g};o.pop()}return{name:s}}var nr=(e,i,s,t,o)=>o.isOnAll?!1:!s&&o.isOnTouch?!(i||e):(s?t.isOnBlur:o.isOnBlur)?!e:(s?t.isOnChange:o.isOnChange)?e:!0,ar=(e,i)=>!fe(d(e,i)).length&&T(e,i);const or={mode:M.onSubmit,reValidateMode:M.onChange,shouldFocusError:!0};function lr(e={},i){let s={...or,...e},t={submitCount:0,isDirty:!1,isLoading:X(s.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},o={},a=k(s.defaultValues)||k(s.values)?G(s.defaultValues||s.values)||{}:{},u=s.shouldUnregister?{}:G(a),g={action:!1,mount:!1,watch:!1},v={mount:new Set,unMount:new Set,array:new Set,watch:new Set},w,B=0;const A={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Se(),array:Se(),state:Se()},U=e.resetOptions&&e.resetOptions.keepDirtyValues,C=Qe(s.mode),me=Qe(s.reValidateMode),de=s.criteriaMode===M.all,pe=r=>n=>{clearTimeout(B),B=setTimeout(r,n)},m=async r=>{if(A.isValid||r){const n=s.resolver?N((await I()).errors):await $(o,!0);n!==t.isValid&&p.state.next({isValid:n})}},P=r=>A.isValidating&&p.state.next({isValidating:r}),H=(r,n=[],l,y,f=!0,c=!0)=>{if(y&&l){if(g.action=!0,c&&Array.isArray(d(o,r))){const h=l(d(o,r),y.argA,y.argB);f&&V(o,r,h)}if(c&&Array.isArray(d(t.errors,r))){const h=l(d(t.errors,r),y.argA,y.argB);f&&V(t.errors,r,h),ar(t.errors,r)}if(A.touchedFields&&c&&Array.isArray(d(t.touchedFields,r))){const h=l(d(t.touchedFields,r),y.argA,y.argB);f&&V(t.touchedFields,r,h)}A.dirtyFields&&(t.dirtyFields=ke(a,u)),p.state.next({name:r,isDirty:b(r,n),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else V(u,r,n)},j=(r,n)=>{V(t.errors,r,n),p.state.next({errors:t.errors})},ne=(r,n,l,y)=>{const f=d(o,r);if(f){const c=d(u,r,E(l)?d(a,r):l);E(c)||y&&y.defaultChecked||n?V(u,r,n?c:je(f._f)):R(r,c),g.mount&&m()}},te=(r,n,l,y,f)=>{let c=!1,h=!1;const F={name:r};if(!l||y){A.isDirty&&(h=t.isDirty,t.isDirty=F.isDirty=b(),c=h!==F.isDirty);const S=Z(d(a,r),n);h=d(t.dirtyFields,r),S?T(t.dirtyFields,r):V(t.dirtyFields,r,!0),F.dirtyFields=t.dirtyFields,c=c||A.dirtyFields&&h!==!S}if(l){const S=d(t.touchedFields,r);S||(V(t.touchedFields,r,l),F.touchedFields=t.touchedFields,c=c||A.touchedFields&&S!==l)}return c&&f&&p.state.next(F),c?F:{}},be=(r,n,l,y)=>{const f=d(t.errors,r),c=A.isValid&&Q(n)&&t.isValid!==n;if(e.delayError&&l?(w=pe(()=>j(r,l)),w(e.delayError)):(clearTimeout(B),w=null,l?V(t.errors,r,l):T(t.errors,r)),(l?!Z(f,l):f)||!N(y)||c){const h={...y,...c&&Q(n)?{isValid:n}:{},errors:t.errors,name:r};t={...t,...h},p.state.next(h)}P(!1)},I=async r=>s.resolver(u,s.context,sr(r||v.mount,o,s.criteriaMode,s.shouldUseNativeValidation)),Y=async r=>{const{errors:n}=await I(r);if(r)for(const l of r){const y=d(n,l);y?V(t.errors,l,y):T(t.errors,l)}else t.errors=n;return n},$=async(r,n,l={valid:!0})=>{for(const y in r){const f=r[y];if(f){const{_f:c,...h}=f;if(c){const F=v.array.has(c.name),S=await it(f,u,de,s.shouldUseNativeValidation&&!n,F);if(S[c.name]&&(l.valid=!1,n))break;!n&&(d(S,c.name)?F?Zt(t.errors,S,c.name):V(t.errors,c.name,S[c.name]):T(t.errors,c.name))}h&&await $(h,n,l)}}return l.valid},_=()=>{for(const r of v.unMount){const n=d(o,r);n&&(n._f.refs?n._f.refs.every(l=>!Ee(l)):!Ee(n._f.ref))&&_e(r)}v.unMount=new Set},b=(r,n)=>(r&&n&&V(u,r,n),!Z(Be(),a)),D=(r,n,l)=>Qt(r,v,{...g.mount?u:E(n)?a:W(r)?{[r]:n}:n},l,n),L=r=>fe(d(g.mount?u:a,r,e.shouldUnregister?d(a,r,[]):[])),R=(r,n,l={})=>{const y=d(o,r);let f=n;if(y){const c=y._f;c&&(!c.disabled&&V(u,r,mt(n,c)),f=he(c.ref)&&O(n)?"":n,gt(c.ref)?[...c.ref.options].forEach(h=>h.selected=f.includes(h.value)):c.refs?ce(c.ref)?c.refs.length>1?c.refs.forEach(h=>(!h.defaultChecked||!h.disabled)&&(h.checked=Array.isArray(f)?!!f.find(F=>F===h.value):f===h.value)):c.refs[0]&&(c.refs[0].checked=!!f):c.refs.forEach(h=>h.checked=h.value===f):Pe(c.ref)?c.ref.value="":(c.ref.value=f,c.ref.type||p.values.next({name:r,values:{...u}})))}(l.shouldDirty||l.shouldTouch)&&te(r,f,l.shouldTouch,l.shouldDirty,!0),l.shouldValidate&&oe(r)},q=(r,n,l)=>{for(const y in n){const f=n[y],c=`${r}.${y}`,h=d(o,c);(v.array.has(r)||!ve(f)||h&&!h._f)&&!ie(f)?q(c,f,l):R(c,f,l)}},J=(r,n,l={})=>{const y=d(o,r),f=v.array.has(r),c=G(n);V(u,r,c),f?(p.array.next({name:r,values:{...u}}),(A.isDirty||A.dirtyFields)&&l.shouldDirty&&p.state.next({name:r,dirtyFields:ke(a,u),isDirty:b(r,c)})):y&&!y._f&&!O(c)?q(r,c,l):R(r,c,l),Ze(r,v)&&p.state.next({...t}),p.values.next({name:r,values:{...u}}),!g.mount&&i()},ae=async r=>{const n=r.target;let l=n.name,y=!0;const f=d(o,l),c=()=>n.type?je(f._f):$t(r);if(f){let h,F;const S=c(),re=r.type===Je.BLUR||r.type===Je.FOCUS_OUT,Ft=!ir(f._f)&&!s.resolver&&!d(t.errors,l)&&!f._f.deps||nr(re,d(t.touchedFields,l),t.isSubmitted,me,C),Ae=Ze(l,v,re);V(u,l,S),re?(f._f.onBlur&&f._f.onBlur(r),w&&w(0)):f._f.onChange&&f._f.onChange(r);const Fe=te(l,S,re,!1),wt=!N(Fe)||Ae;if(!re&&p.values.next({name:l,type:r.type,values:{...u}}),Ft)return A.isValid&&m(),wt&&p.state.next({name:l,...Ae?{}:Fe});if(!re&&Ae&&p.state.next({...t}),P(!0),s.resolver){const{errors:Ge}=await I([l]),Dt=nt(t.errors,o,l),Ke=nt(Ge,o,Dt.name||l);h=Ke.error,l=Ke.name,F=N(Ge)}else h=(await it(f,u,de,s.shouldUseNativeValidation))[l],y=Number.isNaN(S)||S===d(u,l,S),y&&(h?F=!1:A.isValid&&(F=await $(o,!0)));y&&(f._f.deps&&oe(f._f.deps),be(l,F,h,Fe))}},oe=async(r,n={})=>{let l,y;const f=De(r);if(P(!0),s.resolver){const c=await Y(E(r)?r:f);l=N(c),y=r?!f.some(h=>d(c,h)):l}else r?(y=(await Promise.all(f.map(async c=>{const h=d(o,c);return await $(h&&h._f?{[c]:h}:h)}))).every(Boolean),!(!y&&!t.isValid)&&m()):y=l=await $(o);return p.state.next({...!W(r)||A.isValid&&l!==t.isValid?{}:{name:r},...s.resolver||!r?{isValid:l}:{},errors:t.errors,isValidating:!1}),n.shouldFocus&&!y&&Oe(o,c=>c&&d(t.errors,c),r?f:v.mount),y},Be=r=>{const n={...a,...g.mount?u:{}};return E(r)?n:W(r)?d(n,r):r.map(l=>d(n,l))},Ue=(r,n)=>({invalid:!!d((n||t).errors,r),isDirty:!!d((n||t).dirtyFields,r),isTouched:!!d((n||t).touchedFields,r),error:d((n||t).errors,r)}),_t=r=>{r&&De(r).forEach(n=>T(t.errors,n)),p.state.next({errors:r?t.errors:{}})},Ie=(r,n,l)=>{const y=(d(o,r,{_f:{}})._f||{}).ref;V(t.errors,r,{...n,ref:y}),p.state.next({name:r,errors:t.errors,isValid:!1}),l&&l.shouldFocus&&y&&y.focus&&y.focus()},Vt=(r,n)=>X(r)?p.values.subscribe({next:l=>r(D(void 0,n),l)}):D(r,n,!0),_e=(r,n={})=>{for(const l of r?De(r):v.mount)v.mount.delete(l),v.array.delete(l),n.keepValue||(T(o,l),T(u,l)),!n.keepError&&T(t.errors,l),!n.keepDirty&&T(t.dirtyFields,l),!n.keepTouched&&T(t.touchedFields,l),!s.shouldUnregister&&!n.keepDefaultValue&&T(a,l);p.values.next({values:{...u}}),p.state.next({...t,...n.keepDirty?{isDirty:b()}:{}}),!n.keepIsValid&&m()},qe=({disabled:r,name:n,field:l,fields:y})=>{if(Q(r)){const f=r?void 0:d(u,n,je(l?l._f:d(y,n)._f));V(u,n,f),te(n,f,!1,!1,!0)}},Ve=(r,n={})=>{let l=d(o,r);const y=Q(n.disabled);return V(o,r,{...l||{},_f:{...l&&l._f?l._f:{ref:{name:r}},name:r,mount:!0,...n}}),v.mount.add(r),l?qe({field:l,disabled:n.disabled,name:r}):ne(r,!0,n.value),{...y?{disabled:n.disabled}:{},...s.progressive?{required:!!n.required,min:le(n.min),max:le(n.max),minLength:le(n.minLength),maxLength:le(n.maxLength),pattern:le(n.pattern)}:{},name:r,onChange:ae,onBlur:ae,ref:f=>{if(f){Ve(r,n),l=d(o,r);const c=E(f.value)&&f.querySelectorAll&&f.querySelectorAll("input,select,textarea")[0]||f,h=rr(c),F=l._f.refs||[];if(h?F.find(S=>S===c):c===l._f.ref)return;V(o,r,{_f:{...l._f,...h?{refs:[...F.filter(Ee),c,...Array.isArray(d(a,r))?[{}]:[]],ref:{type:c.type,name:r}}:{ref:c}}}),ne(r,!1,void 0,c)}else l=d(o,r,{}),l._f&&(l._f.mount=!1),(s.shouldUnregister||n.shouldUnregister)&&!(Gt(v.array,r)&&g.action)&&v.unMount.add(r)}}},We=()=>s.shouldFocusError&&Oe(o,r=>r&&d(t.errors,r),v.mount),He=(r,n)=>async l=>{l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let y=G(u);if(p.state.next({isSubmitting:!0}),s.resolver){const{errors:f,values:c}=await I();t.errors=f,y=c}else await $(o);T(t.errors,"root"),N(t.errors)?(p.state.next({errors:{}}),await r(y,l)):(n&&await n({...t.errors},l),We(),setTimeout(We)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:N(t.errors),submitCount:t.submitCount+1,errors:t.errors})},At=(r,n={})=>{d(o,r)&&(E(n.defaultValue)?J(r,d(a,r)):(J(r,n.defaultValue),V(a,r,n.defaultValue)),n.keepTouched||T(t.touchedFields,r),n.keepDirty||(T(t.dirtyFields,r),t.isDirty=n.defaultValue?b(r,d(a,r)):b()),n.keepError||(T(t.errors,r),A.isValid&&m()),p.state.next({...t}))},$e=(r,n={})=>{const l=r?G(r):a,y=G(l),f=r&&!N(r)?y:a;if(n.keepDefaultValues||(a=l),!n.keepValues){if(n.keepDirtyValues||U)for(const c of v.mount)d(t.dirtyFields,c)?V(f,c,d(u,c)):J(c,d(f,c));else{if(Re&&E(r))for(const c of v.mount){const h=d(o,c);if(h&&h._f){const F=Array.isArray(h._f.refs)?h._f.refs[0]:h._f.ref;if(he(F)){const S=F.closest("form");if(S){S.reset();break}}}}o={}}u=e.shouldUnregister?n.keepDefaultValues?G(a):{}:G(f),p.array.next({values:{...f}}),p.values.next({values:{...f}})}v={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!g.mount&&i(),g.mount=!A.isValid||!!n.keepIsValid,g.watch=!!e.shouldUnregister,p.state.next({submitCount:n.keepSubmitCount?t.submitCount:0,isDirty:n.keepDirty?t.isDirty:!!(n.keepDefaultValues&&!Z(r,a)),isSubmitted:n.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:n.keepDirtyValues?t.dirtyFields:n.keepDefaultValues&&r?ke(a,r):{},touchedFields:n.keepTouched?t.touchedFields:{},errors:n.keepErrors?t.errors:{},isSubmitSuccessful:n.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},ze=(r,n)=>$e(X(r)?r(u):r,n);return{control:{register:Ve,unregister:_e,getFieldState:Ue,handleSubmit:He,setError:Ie,_executeSchema:I,_getWatch:D,_getDirty:b,_updateValid:m,_removeUnmounted:_,_updateFieldArray:H,_updateDisabledField:qe,_getFieldArray:L,_reset:$e,_resetDefaultValues:()=>X(s.defaultValues)&&s.defaultValues().then(r=>{ze(r,s.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:r=>{t={...t,...r}},_subjects:p,_proxyFormState:A,get _fields(){return o},get _formValues(){return u},get _state(){return g},set _state(r){g=r},get _defaultValues(){return a},get _names(){return v},set _names(r){v=r},get _formState(){return t},set _formState(r){t=r},get _options(){return s},set _options(r){s={...s,...r}}},trigger:oe,register:Ve,handleSubmit:He,watch:Vt,setValue:J,getValues:Be,reset:ze,resetField:At,clearErrors:_t,unregister:_e,setError:Ie,setFocus:(r,n={})=>{const l=d(o,r),y=l&&l._f;if(y){const f=y.refs?y.refs[0]:y.ref;f.focus&&(f.focus(),n.shouldSelect&&f.select())}},getFieldState:Ue}}function ur(e={}){const i=K.useRef(),s=K.useRef(),[t,o]=K.useState({isDirty:!1,isValidating:!1,isLoading:X(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:X(e.defaultValues)?void 0:e.defaultValues});i.current||(i.current={...lr(e,()=>o(u=>({...u}))),formState:t});const a=i.current.control;return a._options=e,Jt({subject:a._subjects.state,next:u=>{Yt(u,a._proxyFormState,a._updateFormState)&&o({...a._formState})}}),K.useEffect(()=>{e.values&&!Z(e.values,s.current)?(a._reset(e.values,a._options.resetOptions),s.current=e.values):a._resetDefaultValues()},[e.values,a]),K.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),i.current.formState=Xt(t,a),i.current}var at=function(e,i,s){if(e&&"reportValidity"in e){var t=d(s,i);e.setCustomValidity(t&&t.message||""),e.reportValidity()}},pt=function(e,i){var s=function(o){var a=i.fields[o];a&&a.ref&&"reportValidity"in a.ref?at(a.ref,o,e):a.refs&&a.refs.forEach(function(u){return at(u,o,e)})};for(var t in i.fields)s(t)},cr=function(e,i){i.shouldUseNativeValidation&&pt(e,i);var s={};for(var t in e){var o=d(i.fields,t),a=Object.assign(e[t]||{},{ref:o&&o.ref});if(dr(i.names||Object.keys(e),t)){var u=Object.assign({},fr(d(s,t)));V(u,"root",a),V(s,t,u)}else V(s,t,a)}return s},fr=function(e){return Array.isArray(e)?e.filter(Boolean):[]},dr=function(e,i){return e.some(function(s){return s.startsWith(i+".")})},yr=function(e,i){for(var s={};e.length;){var t=e[0],o=t.code,a=t.message,u=t.path.join(".");if(!s[u])if("unionErrors"in t){var g=t.unionErrors[0].errors[0];s[u]={message:g.message,type:g.code}}else s[u]={message:a,type:o};if("unionErrors"in t&&t.unionErrors.forEach(function(B){return B.errors.forEach(function(A){return e.push(A)})}),i){var v=s[u].types,w=v&&v[t.code];s[u]=dt(u,i,s,o,w?[].concat(w,t.message):t.message)}e.shift()}return s},hr=function(e,i,s){return s===void 0&&(s={}),function(t,o,a){try{return Promise.resolve(function(u,g){try{var v=Promise.resolve(e[s.mode==="sync"?"parse":"parseAsync"](t,i)).then(function(w){return a.shouldUseNativeValidation&&pt({},a),{errors:{},values:s.raw?t:w}})}catch(w){return g(w)}return v&&v.then?v.then(void 0,g):v}(0,function(u){if(function(g){return g.errors!=null}(u))return{values:{},errors:cr(yr(u.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw u}))}catch(u){return Promise.reject(u)}}};const gr=we.object({name:we.string().min(3),description:we.string()}),bt=({project:e,action:i})=>{var A,p;const t=Ce().state!=="idle",{setFocus:o,register:a,handleSubmit:u,formState:{errors:g,dirtyFields:v}}=ur({resolver:hr(gr),defaultValues:{name:e.name||"",description:e.description||""}}),{palette:w}=Tt(),B=ot();return ue.useEffect(()=>o("name"),[o]),x.jsx(x.Fragment,{children:x.jsxs(Ot,{onSubmit:u(({name:U,description:C})=>B({...e,name:U,description:C,action:i},{method:"put",replace:!0,encType:"application/json"})),style:{opacity:t?.5:1},children:[x.jsx(Ye,{...a("name"),error:!!g.name,helperText:(A=g.name)==null?void 0:A.message,placeholder:"Name",InputProps:{style:{color:w.primary.main,fontSize:"20px",fontWeight:"500"}},disabled:t,variant:"standard"}),x.jsx(Ye,{...a("description"),error:!!g.description,helperText:(p=g.description)==null?void 0:p.message,placeholder:"Description",disabled:t,fullWidth:!0,variant:"standard"}),x.jsx(ee,{sx:{display:"flex",justifyContent:"right"},children:x.jsx(Ct,{variant:"outlined",disabled:t||Object.keys(v).length===0||Object.keys(g).length>0,style:{marginTop:"10px"},color:"primary",type:"submit",children:"Save"})})]})})},vr=({project:e})=>x.jsxs(x.Fragment,{children:[x.jsx(Lt,{component:Rt,to:`projects/${e.id}`,children:x.jsx(Te,{variant:"h6",children:e.name})}),x.jsx(Te,{style:{whiteSpace:"pre-line"},variant:"body1",children:e.description})]}),xr=({project:e})=>{const[i,s]=ue.useState(!1),o=Ce().state!=="idle",a=ot();return ue.useEffect(()=>s(!1),[e]),x.jsxs(St,{sx:{m:1,p:2,position:"relative","&:hover .action-buttons":{opacity:1}},children:[x.jsx(ee,{style:{position:"absolute",top:"5px",right:"5px"},children:x.jsxs(ee,{sx:{opacity:0,transition:u=>u.transitions.create("opacity",{duration:u.transitions.duration.enteringScreen})},className:"action-buttons",display:"flex",columnGap:1,children:[x.jsx(Et,{disabled:o||i,onClick:()=>{confirm("Are you sure you want to delete this project?")===!0&&a({projectId:e.id,action:"delete-project"},{method:"post",replace:!0,encType:"application/json"})},children:x.jsx(ut,{})}),x.jsx(lt,{disabled:o,color:"primary",value:"edit-mode",selected:i,size:"small",sx:{border:"none",borderRadius:"50%"},onChange:()=>s(u=>!u),children:x.jsx(Mt,{})})]})}),i?x.jsx(bt,{project:e,action:"edit-project"}):x.jsx(vr,{project:e})]})},mr=()=>{const[e,i]=Xe(!1),[s,t]=Xe(!1),o=Ce(),a=o.state!=="idle";return ue.useEffect(()=>{o.state==="submitting"&&t(!0)},[o.state==="submitting"]),ue.useEffect(()=>{s&&o.state==="idle"&&(i(!1),t(!1))},[s,o.state==="idle"]),x.jsxs(ee,{py:2,children:[x.jsx(ee,{display:"flex",justifyContent:"center",children:x.jsx(kt,{title:"Create new project",children:x.jsx(lt,{size:"small",selected:e,disabled:a,color:"primary",value:"check",sx:{border:"none",borderRadius:"50%"},onChange:()=>i(),children:x.jsx(jt,{})})})}),e&&x.jsx(ee,{p:3,display:"flex",flexDirection:"column",rowGap:1,children:x.jsx(bt,{project:{name:"",description:""},action:"create-new-project"})})]})},wr=()=>{const e=Nt();return x.jsxs(x.Fragment,{children:[x.jsx(Te,{align:"center",variant:"h5",children:e.length>0?"Project List":"You don't have any projects yet"}),x.jsxs(ee,{m:"auto",mt:2,maxWidth:600,children:[x.jsx(mr,{}),x.jsx(Pt,{container:!0,direction:"column",justifyContent:"center",alignItems:"stretch",children:e.map(i=>x.jsx(K.Fragment,{children:x.jsx(xr,{project:i})},i.id))})]})]})};export{wr as Component}; diff --git a/src/evidently/ui/assets/static/js/index-CKJqPvPP.js b/src/evidently/ui/assets/static/js/index-CKJqPvPP.js deleted file mode 100644 index a2b1de4aa6..0000000000 --- a/src/evidently/ui/assets/static/js/index-CKJqPvPP.js +++ /dev/null @@ -1,3 +0,0 @@ -const __vite__fileDeps=["static/js/index-CcLP2flX.js","static/js/vendor-t0l2jWQ9.js","static/js/createSvgIcon-LdZl81St.js","static/js/index-D3gH4vx9.js","static/js/DashboardViewParams-CHXlEHLP.js","static/js/DashboardWidgets-CSvA9GhO.js","static/js/DashboardContent-C6JeNogA.js","static/js/Edit-BJOpF2nO.js","static/js/index-DsPNOD6z.js","static/js/index-DzU7Itgo.js","static/js/ContentCopy-B2vBgiMr.js","static/css/index-C5isHALn.css","static/js/index-DpaWFHTR.js","static/js/index-CIEFkcKx.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -var X=Object.defineProperty;var Z=(e,t,s)=>t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var T=(e,t,s)=>(Z(e,typeof t!="symbol"?t+"":t,s),s);import{c as z,g as _,u as ee,j as r,A as B,a as $,i as te,T as I,b as re,R,r as F,S as se,B as k,I as oe,C as ne,d as ie,e as ae,f as ce,h as w,k as he,l as le,L as de,m as ue,G as O,F as pe,n as fe,o as me,p as je,q as xe,M as p,D as G,s as ye,t as _e,v as L,z as u,w as ge,x as Ee,y as ve,E as Se}from"./vendor-t0l2jWQ9.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function s(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=s(i);fetch(i.href,o)}})();const{transitions:P}=z(),y="#ed0500",be="#ded5d5",ke=z({shape:{borderRadius:5},palette:{primary:{main:_[900],light:_[200]},secondary:{main:y,dark:"#c10400",light:_[200]},background:{default:"#fff",paper:"#fff"}},components:{MuiLink:{styleOverrides:{root:{transition:P.create("color",{duration:P.duration.enteringScreen}),"&:hover":{color:y}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:y}}},MuiButton:{styleOverrides:{contained:{"&:hover":{background:_[800]}},outlined:{"&:hover":{color:y,borderColor:y,background:"#fff"}},text:{"&:hover":{color:y,borderColor:y}}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px","&:hover":{background:_[200]}}}},MuiIconButton:{styleOverrides:{root:{transition:P.create("color",{duration:P.duration.enteringScreen}),color:_[900],"&:hover":{color:y}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:P.create("color",{duration:P.duration.enteringScreen}),color:_[900],"&:hover":{color:y},"&.Mui-disabled":{border:"unset",background:_[100]}}}},MuiToggleButtonGroup:{defaultProps:{color:"secondary"}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{styleOverrides:{root:{boxShadow:"unset",border:"1px solid",borderColor:be}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}}),v=()=>{var t;const e=ee();return r.jsxs(B,{severity:"error",children:[r.jsx($,{children:"Something went wrong"}),te(e)&&r.jsxs(r.Fragment,{children:[r.jsx(I,{fontWeight:"bold",children:[`Status: ${e.status}`,typeof((t=e.data)==null?void 0:t.detail)=="string"&&e.data.detail].filter(Boolean).join(", ")}),typeof e.data=="string"&&r.jsx(I,{children:e.data})]}),typeof e=="string"&&r.jsx(I,{fontWeight:"bold",children:e})]})},H=({data:e})=>{const[t,s]=R.useState(!1),n=R.useRef(null);return F.useEffect(()=>{e!=null&&e.error&&(n.current=e.error,s(!0))},[e]),r.jsx(se,{open:t,onClose:(i,o)=>{o!=="clickaway"&&s(!1)},children:r.jsx(B,{severity:"error",children:r.jsxs(k,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:2,children:[r.jsxs(k,{children:[r.jsx($,{children:"Something went wrong"}),n.current&&r.jsx(I,{fontWeight:"bold",children:[typeof n.current.status_code=="number"&&`Status: ${n.current.status_code}`,typeof n.current.detail=="string"&&n.current.detail].filter(Boolean).join(", ")})]}),r.jsx(k,{children:r.jsx(oe,{size:"small","aria-label":"close",color:"inherit",onClick:()=>{s(!1)},children:r.jsx(ne,{})})})]})})})},M=()=>{const e=re();return r.jsx(H,{data:e})},we=()=>{var s;const t=(s=ie().find(n=>{var i;return!!((i=n.data)!=null&&i.error)}))==null?void 0:s.data;return r.jsx(H,{data:t})},Pe="modulepreload",Ie=function(e){return"/"+e},U={},E=function(t,s,n){let i=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.all(s.map(c=>{if(c=Ie(c),c in U)return;U[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const l=document.createElement("link");if(l.rel=f?"stylesheet":Pe,f||(l.as="script",l.crossOrigin=""),l.href=c,a&&l.setAttribute("nonce",a),document.head.appendChild(l),f)return new Promise((j,A)=>{l.addEventListener("load",j),l.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${c}`)))})}))}return i.then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})};function d(e){return e!=null&&e.notThrowExc?Oe:Te}const Te=e=>{const{data:t,error:s,response:n}=e;if(s)throw ae(s,{status:n.status});return t},Oe=e=>{const{data:t,error:s,response:n}=e;return s?{error:{...s,status_code:n.status}}:t},Ce=({api:e})=>({loader:()=>e.GET("/api/version").then(d())}),De=ce,S=De({baseUrl:"/"}),Le="/static/img/logo.png",{loader:Ae}=Ce({api:S}),Re={path:"/",lazy:async()=>{const{HomeComponentTemplate:e,...t}=await E(()=>import("./index-CcLP2flX.js"),__vite__mapDeps([0,1,2]));return{Component:()=>r.jsxs(r.Fragment,{children:[r.jsx(we,{}),r.jsx(e,{logoSrc:Le})]}),...t}},loader:Ae,ErrorBoundary:v},W=e=>{if(e.id)return{...e,id:e.id};throw`"id" is missing in object: ${JSON.stringify(e)}`},J=e=>{if(e.headers.get("Content-type")!=="application/json")throw new Response("Unsupported Media Type",{status:415})},Fe=({api:e})=>({loader:({params:t})=>{const{projectId:s}=t;return w(s),e.GET("/api/projects/{project_id}/info",{params:{path:{project_id:s}}}).then(d()).then(W)}});function V(e){return typeof e!=typeof new Date?(console.log(`not a date ${typeof e}: ${e}`),e):`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}T${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`}const g={FROM:"date_from",TO:"date_to"},Be=e=>{let t=e.get(g.FROM),s=e.get(g.TO);return{date_from:t,date_to:s}},$e=({dataRanges:e})=>{const[t,s]=_e(),{date_from:n,date_to:i}=Be(t),o=L(n||e.minDate),a=L(i||e.maxDate);return{isCorrectTimeInterval:o.isValid()&&a.isValid()&&(o.isSame(a)||o.isBefore(a)),date_from:o,date_to:a,setSearchParams:s}},mt=({dataRanges:e,isDashboardHideDates:t,setIsDashboardHideDates:s,isShowDateFilter:n})=>{const i=he(),{isCorrectTimeInterval:o,date_from:a,date_to:c,setSearchParams:f}=$e({dataRanges:e}),[h,l]=F.useState({date_from:a,date_to:c}),j=le(h,300),A=o?"":"incorrect time interval";return F.useEffect(()=>{var C,D;if(i)return;const m=(C=j==null?void 0:j.date_to)==null?void 0:C.toDate(),x=(D=j==null?void 0:j.date_from)==null?void 0:D.toDate();f(b=>(b.delete(g.FROM),b.delete(g.TO),x&&b.append(g.FROM,V(x)),m&&b.append(g.TO,V(m)),b),{preventScrollReset:!0,replace:!0})},[j]),r.jsx(de,{dateAdapter:ue,adapterLocale:"en-gb",children:r.jsxs(O,{container:!0,padding:1,zIndex:1,gap:2,justifyContent:"flex-end",alignItems:"flex-end",children:[r.jsx(O,{item:!0,children:r.jsx(k,{minWidth:180,display:"flex",justifyContent:"center",children:r.jsx(pe,{control:r.jsx(fe,{checked:t,onChange:m=>s(m.target.checked)}),label:"Show in order"})})}),n&&r.jsxs(r.Fragment,{children:[r.jsx(O,{item:!0,xs:12,md:2,children:r.jsxs(me,{fullWidth:!0,children:[r.jsx(je,{children:"Period"}),r.jsxs(xe,{variant:"standard",defaultValue:"",onChange:m=>{const[x,C]=m.target.value.split(",");if(x===""){l({date_from:null,date_to:null});return}const[D,b]=[Number(x),C],N=e.maxDate.subtract(D,b);l({date_from:N.isBefore(e.minDate)?e.minDate:N,date_to:e.maxDate})},children:[r.jsx(p,{value:"",children:r.jsx("em",{children:"None"})}),r.jsx(p,{value:"10,minutes",children:"Last 10 Minutes"}),r.jsx(p,{value:"30,minutes",children:"Last 30 Minutes"}),r.jsx(p,{value:"1,hours",children:"Last 1 Hours"}),r.jsx(p,{value:"2,hours",children:"Last 2 Hours"}),r.jsx(p,{value:"8,hours",children:"Last 8 Hours"}),r.jsx(p,{value:"24,hours",children:"Last 24 Hours"}),r.jsx(p,{value:"7,days",children:"Last 7 Days"}),r.jsx(p,{value:"14,days",children:"Last 14 Days"}),r.jsx(p,{value:"28,days",children:"Last 28 Days"}),r.jsx(p,{value:"60,days",children:"Last 60 Days"})]})]})}),r.jsx(O,{item:!0,children:r.jsxs(k,{display:"flex",alignItems:"center",gap:2,children:[r.jsx(G,{minDate:e.minDate,maxDate:e.maxDate&&c,slotProps:{textField:{variant:"standard"}},label:"From",value:h.date_from,onChange:m=>l(x=>({...x,date_from:m}))}),r.jsx(k,{height:1,display:"flex",alignItems:"center",children:r.jsx(I,{children:" - "})}),r.jsx(G,{minDate:e.minDate&&a,maxDate:e.maxDate,slotProps:{textField:{variant:"standard"}},label:"To",value:h.date_to,onChange:m=>l(x=>({...x,date_to:m}))})]})}),r.jsx(O,{item:!0,xs:12,children:r.jsx(ye,{unmountOnExit:!0,in:!o,children:r.jsxs(B,{severity:"error",children:[r.jsx($,{children:"Error"}),A]})})})]})]})})};class Me{constructor(){T(this,"at",0);T(this,"ch","");T(this,"text","");T(this,"escapee",{'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` -`,r:"\r",t:" "})}error(t){throw{name:"SyntaxError",message:t,at:this.at,text:this.text}}next(){return this.ch=this.text.charAt(this.at++)}check(t){t!==this.ch&&this.error(`Expected '${t}' instead of '${this.ch}'`),this.ch=this.text.charAt(this.at++)}number(){var t="";if(this.ch==="-"&&(t="-",this.check("-")),this.ch==="I")return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),-1/0;for(;this.ch>="0"&&this.ch<="9";)t+=this.ch,this.next();if(this.ch===".")for(t+=".";this.next()&&this.ch>="0"&&this.ch<="9";)t+=this.ch;if(this.ch==="e"||this.ch==="E")for(t+=this.ch,this.next(),(this.ch==="-"||this.ch==="+")&&(t+=this.ch,this.next());this.ch>="0"&&this.ch<="9";)t+=this.ch,this.next();return+t}string(){var t,s,n="",i;if(this.ch==='"')for(;this.next();){if(this.ch==='"')return this.next(),n;if(this.ch==="\\")if(this.next(),this.ch==="u"){for(i=0,s=0;s<4&&(t=parseInt(this.next(),16),!!isFinite(t));s++)i=i*16+t;n+=String.fromCharCode(i)}else if(this.escapee[this.ch])n+=this.escapee[this.ch];else break;else n+=this.ch}this.error("Bad string")}white(){for(;this.ch&&this.ch<=" ";)this.next()}word(){switch(this.ch){case"t":return this.check("t"),this.check("r"),this.check("u"),this.check("e"),!0;case"f":return this.check("f"),this.check("a"),this.check("l"),this.check("s"),this.check("e"),!1;case"n":return this.check("n"),this.check("u"),this.check("l"),this.check("l"),null;case"N":return this.check("N"),this.check("a"),this.check("N"),NaN;case"I":return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),1/0}this.error("Unexpected '"+this.ch+"'")}array(){var t=[];if(this.ch==="["){if(this.check("["),this.white(),this.ch==="]")return this.check("]"),t;for(;this.ch;){if(t.push(this.value()),this.white(),this.ch==="]")return this.check("]"),t;this.check(","),this.white()}}this.error("Bad array")}object(){var t,s={};if(this.ch==="{"){if(this.check("{"),this.white(),this.ch==="}")return this.check("}"),s;for(;this.ch;){if(t=this.string(),this.white(),this.check(":"),Object.hasOwnProperty.call(s,t)&&this.error('Duplicate key "'+t+'"'),s[t]=this.value(),this.white(),this.ch==="}")return this.check("}"),s;this.check(","),this.white()}}this.error("Bad object")}value(){switch(this.white(),this.ch){case"{":return this.object();case"[":return this.array();case'"':return this.string();case"-":return this.number();default:return this.ch>="0"&&this.ch<="9"?this.number():this.word()}}parse(t,s){let n;return this.text=t,this.at=0,this.ch=" ",n=this.value(),this.white(),this.ch&&this.error("Syntax error"),s!==void 0?function i(o,a){var c,f,h=o[a];if(h&&typeof h=="object")for(c in h)Object.prototype.hasOwnProperty.call(h,c)&&(f=i(h,c),f!==void 0?h[c]=f:delete h[c]);return s.call(o,a,h)}({"":n},""):n}}const q=e=>new Me().parse(e),Ne=({api:e})=>({loader:({params:t,request:s})=>{w(t.projectId);const{searchParams:n}=new URL(s.url);let i=n.get(g.FROM),o=n.get(g.TO);return i&&!L(i).isValid()&&(i=null),o&&!L(o).isValid()&&(o=null),e.GET("/api/projects/{project_id}/dashboard",{params:{path:{project_id:t.projectId},query:{timestamp_start:i,timestamp_end:o}},parseAs:"text"}).then(d()).then(q)}}),{loader:Ge}=Ne({api:S}),Ue={index:!0,id:"dashboard",lazy:async()=>{const[{DashboardComponentTemplate:e},{DashboardWidgets:t}]=await Promise.all([E(()=>import("./index-D3gH4vx9.js"),__vite__mapDeps([3,1,4])),E(()=>import("./DashboardWidgets-CSvA9GhO.js"),__vite__mapDeps([5,1,6,4,2,7]))]);return{Component:()=>r.jsx(e,{Dashboard:({data:{widgets:s}})=>r.jsx(t,{widgets:s})})}},loader:Ge,ErrorBoundary:v},Q={RELOAD_SNAPSHOTS:"reload-snapshots",DELETE_SNAPSHOT:"delete-snapshot"},Ve=u.object({action:u.literal(Q.RELOAD_SNAPSHOTS)}),ze=u.object({action:u.literal(Q.DELETE_SNAPSHOT),snapshotId:u.string().uuid()}),Y=e=>async({request:t,params:s})=>{w(s.projectId),J(t);const n=await t.json();if(Ve.safeParse(n).success)return e.GET("/api/projects/{project_id}/reload",{params:{path:{project_id:s.projectId}}}).then(d({notThrowExc:!0}));const o=ze.safeParse(n);return o.success?e.DELETE("/api/projects/{project_id}/{snapshot_id}",{params:{path:{project_id:s.projectId,snapshot_id:o.data.snapshotId}}}).then(d({notThrowExc:!0})):{error:{status_code:!1,detail:"Unknown action"}}},He=({api:e})=>({loader:({params:t})=>(w(t.projectId),t.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/reports",{params:{path:{project_id:t.projectId}}}).then(d())),action:Y(e)}),We=({api:e})=>({loader:({params:t})=>(w(t.projectId),t.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/test_suites",{params:{path:{project_id:t.projectId}}}).then(d())),action:Y(e)}),Je=({api:e})=>({loader:({params:t})=>{const{projectId:s,snapshotId:n}=t;return w(s),w(n),e.GET("/api/projects/{project_id}/{snapshot_id}/data",{params:{path:{project_id:s,snapshot_id:n}},parseAs:"text"}).then(d()).then(q)}}),{loader:qe}=Je({api:S}),K={path:":snapshotId",lazy:async()=>{const{SnapshotTemplate:e,...t}=await E(()=>import("./index-DsPNOD6z.js"),__vite__mapDeps([8,1,6,4,2,7]));return{Component:()=>r.jsx(e,{api:S}),...t}},loader:qe,ErrorBoundary:v},{loader:Qe,action:Ye}=He({api:S}),Ke={id:"reports",path:"reports",lazy:async()=>{const{SnapshotsListTemplate:e,...t}=await E(()=>import("./index-DzU7Itgo.js"),__vite__mapDeps([9,1,10,2,11]));return{...t,Component:()=>r.jsxs(r.Fragment,{children:[r.jsx(M,{}),r.jsx(e,{type:"reports"})]})}},loader:Qe,action:Ye,ErrorBoundary:v,children:[K]},{loader:Xe,action:Ze}=We({api:S}),et={id:"test_suites",path:"test-suites",lazy:async()=>{const{SnapshotsListTemplate:e,...t}=await E(()=>import("./index-DzU7Itgo.js"),__vite__mapDeps([9,1,10,2,11]));return{...t,Component:()=>r.jsxs(r.Fragment,{children:[r.jsx(M,{}),r.jsx(e,{type:"test suites"})]})}},loader:Xe,action:Ze,ErrorBoundary:v,children:[K]},{loader:tt}=Fe({api:S}),rt={path:"projects/:projectId",lazy:()=>E(()=>import("./index-DpaWFHTR.js"),__vite__mapDeps([12,1,10,2])),loader:tt,ErrorBoundary:v,children:[Ue,Ke,et]},st=u.object({action:u.literal("edit-project")}),ot=u.object({action:u.literal("create-new-project")}),nt=u.object({action:u.literal("delete-project"),projectId:u.string().uuid()}),it=({api:e})=>({loader:()=>e.GET("/api/projects").then(d()).then(t=>t.map(W)),action:async({request:t})=>{J(t);const s=await t.json();if(ot.safeParse(s).success)return e.POST("/api/projects",{body:s}).then(d({notThrowExc:!0}));const n=nt.safeParse(s);if(n.success)return e.DELETE("/api/projects/{project_id}",{params:{path:{project_id:n.data.projectId}}}).then(d({notThrowExc:!0}));if(st.safeParse(s).success)return e.POST("/api/projects/{project_id}/info",{params:{path:{project_id:s.id}},body:s}).then(d({notThrowExc:!0}));throw"Undefined action"}}),{loader:at,action:ct}=it({api:S}),ht={index:!0,lazy:()=>E(()=>import("./index-CIEFkcKx.js"),__vite__mapDeps([13,1,7,2])).then(e=>({...e,Component:()=>r.jsxs(r.Fragment,{children:[r.jsx(M,{}),r.jsx(e.Component,{})]})})),loader:at,action:ct,ErrorBoundary:v},lt={path:"*",Component:()=>r.jsx(k,{display:"flex",justifyContent:"center",children:r.jsx(I,{variant:"h4",children:"Page Not Found"})})},dt={...Re,children:[ht,rt,lt],ErrorBoundary:v},ut=ge([dt]);Ee.createRoot(document.getElementById("root")).render(r.jsx(R.StrictMode,{children:r.jsx(ve,{theme:ke,children:r.jsx(Se,{router:ut})})}));export{mt as D,q as J,d as r}; diff --git a/src/evidently/ui/assets/static/js/index-D3gH4vx9.js b/src/evidently/ui/assets/static/js/index-CNFsm67C.js similarity index 69% rename from src/evidently/ui/assets/static/js/index-D3gH4vx9.js rename to src/evidently/ui/assets/static/js/index-CNFsm67C.js index ca6bfe9e38..751989be8a 100644 --- a/src/evidently/ui/assets/static/js/index-D3gH4vx9.js +++ b/src/evidently/ui/assets/static/js/index-CNFsm67C.js @@ -1 +1 @@ -import{a9 as d,h as D,X as l,v as e,aa as p,j as s}from"./vendor-t0l2jWQ9.js";import{D as x}from"./index-CKJqPvPP.js";import{D as c}from"./DashboardViewParams-CHXlEHLP.js";const b=({Dashboard:o})=>{const{projectId:r}=d();D(r);const a=l(),m=a.min_timestamp!==null&&a.max_timestamp!==null,i={minDate:e(a.min_timestamp),maxDate:e(a.max_timestamp)},[t,n]=p("dashboard-hide-dates",!1);return s.jsxs(s.Fragment,{children:[s.jsx(x,{dataRanges:i,isShowDateFilter:m,isDashboardHideDates:t,setIsDashboardHideDates:n}),s.jsx(c.Provider,{value:{isXaxisAsCategorical:t},children:s.jsx(o,{data:a})})]})};export{b as DashboardComponentTemplate}; +import{a8 as d,h as D,X as l,v as e,a9 as p,j as s}from"./vendor-COAUpDWz.js";import{D as x}from"./index-MyhbAVH4.js";import{D as c}from"./DashboardViewParams-DnRSqG_L.js";const b=({Dashboard:o})=>{const{projectId:r}=d();D(r);const a=l(),m=a.min_timestamp!==null&&a.max_timestamp!==null,i={minDate:e(a.min_timestamp),maxDate:e(a.max_timestamp)},[t,n]=p("dashboard-hide-dates",!1);return s.jsxs(s.Fragment,{children:[s.jsx(x,{dataRanges:i,isShowDateFilter:m,isDashboardHideDates:t,setIsDashboardHideDates:n}),s.jsx(c.Provider,{value:{isXaxisAsCategorical:t},children:s.jsx(o,{data:a})})]})};export{b as DashboardComponentTemplate}; diff --git a/src/evidently/ui/assets/static/js/index-CcLP2flX.js b/src/evidently/ui/assets/static/js/index-CcLP2flX.js deleted file mode 100644 index 0d99e0e449..0000000000 --- a/src/evidently/ui/assets/static/js/index-CcLP2flX.js +++ /dev/null @@ -1 +0,0 @@ -import{H as f,j as t,B as l,J as x,K as c,N as h,O as v,d as m,P as g,Q as j,r as y,U as O,V as _,T as P,I as w,W as B,X as R,Y as b,Z as D}from"./vendor-t0l2jWQ9.js";import{r as I,i as M}from"./createSvgIcon-LdZl81St.js";const H=e=>{var s;return typeof((s=e==null?void 0:e.handle)==null?void 0:s.crumb)=="function"},N=()=>{const s=f().filter(H).map(({handle:r,data:a,id:o,pathname:n,params:i})=>r.crumb(a,{id:o,pathname:n,params:i}));return t.jsx(l,{children:t.jsx(x,{"aria-label":"breadcrumb",children:s.map(r=>t.jsx(c,{component:h,color:"inherit",to:r.to,children:r.linkText},r.to))})})},T=()=>{const e=v(),s=m(),{state:r}=g();return e.state!=="idle"||s.some(({state:o})=>o!=="idle")||r!=="idle"?t.jsx(l,{width:1,sx:{position:"fixed",top:0,left:0,zIndex:99999},children:t.jsx(j,{sx:{height:"3px"}})}):null};var u={},W=M;Object.defineProperty(u,"__esModule",{value:!0});var d=u.default=void 0;S(y);var q=W(I()),C=t;function p(e){if(typeof WeakMap!="function")return null;var s=new WeakMap,r=new WeakMap;return(p=function(a){return a?r:s})(e)}function S(e,s){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=p(s);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=o?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(a,n,i):a[n]=e[n]}return a.default=e,r&&r.set(e,a),a}var L=(0,q.default)((0,C.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");d=u.default=L;function A({version:e,authComponent:s,logoSrc:r}){return t.jsx(t.Fragment,{children:t.jsx(O,{position:"static",color:"transparent",children:t.jsxs(_,{children:[t.jsxs(P,{variant:"h6",sx:{flexGrow:1},children:[t.jsx("img",{src:r,height:"55px"}),t.jsx("span",{style:{verticalAlign:"super",fontSize:"0.75rem"},children:e})]}),s,t.jsx(c,{href:"https://github.com/evidentlyai/evidently",children:t.jsx(w,{children:t.jsx(d,{})})}),t.jsx(c,{href:"https://docs.evidentlyai.com/",children:t.jsx(B,{children:"Docs"})})]})})})}const G=({logoSrc:e,authComponent:s})=>{const{version:r}=R();return t.jsxs(t.Fragment,{children:[t.jsx(A,{authComponent:s,version:r,logoSrc:e}),t.jsx(T,{}),t.jsx(b,{}),t.jsxs(l,{p:3,children:[t.jsx(N,{}),t.jsx(D,{})]})]})},k={crumb:()=>({to:"/",linkText:"Home"})};export{G as HomeComponentTemplate,k as handle}; diff --git a/src/evidently/ui/assets/static/js/index-DU-KQm24.js b/src/evidently/ui/assets/static/js/index-DU-KQm24.js new file mode 100644 index 0000000000..690bec8682 --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-DU-KQm24.js @@ -0,0 +1 @@ +import{H as f,j as t,B as l,J as x,K as c,N as h,O as v,d as m,P as g,Q as j,r as y,U as O,V as _,T as P,I as w,W as B,X as R,Y as b,Z as D}from"./vendor-COAUpDWz.js";import{r as I,i as M}from"./createSvgIcon-63W_9W2b.js";const H=e=>{var a;return typeof((a=e==null?void 0:e.handle)==null?void 0:a.crumb)=="function"},N=()=>{const a=f().filter(H).map(({handle:r,data:s,id:o,pathname:n,params:i})=>r.crumb(s,{id:o,pathname:n,params:i}));return t.jsx(l,{children:t.jsx(x,{"aria-label":"breadcrumb",children:a.map(r=>t.jsx(c,{component:h,color:"inherit",to:r.to,children:r.linkText},r.to))})})},T=()=>{const e=v(),a=m(),{state:r}=g();return e.state!=="idle"||a.some(({state:o})=>o!=="idle")||r!=="idle"?t.jsx(l,{width:1,sx:{position:"fixed",top:0,left:0,zIndex:99999},children:t.jsx(j,{sx:{height:"3px"}})}):null};var u={},W=M;Object.defineProperty(u,"__esModule",{value:!0});var d=u.default=void 0;S(y);var q=W(I()),C=t;function p(e){if(typeof WeakMap!="function")return null;var a=new WeakMap,r=new WeakMap;return(p=function(s){return s?r:a})(e)}function S(e,a){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=p(a);if(r&&r.has(e))return r.get(e);var s={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=o?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(s,n,i):s[n]=e[n]}return s.default=e,r&&r.set(e,s),s}var L=(0,q.default)((0,C.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");d=u.default=L;function A({version:e,authComponent:a,logoSrc:r}){return t.jsx(t.Fragment,{children:t.jsx(O,{position:"static",color:"transparent",children:t.jsxs(_,{children:[t.jsxs(P,{variant:"h6",sx:{flexGrow:1},children:[t.jsx("img",{src:r,height:"55px",alt:"evidently logo"}),t.jsx("span",{style:{verticalAlign:"super",fontSize:"0.75rem"},children:e})]}),a,t.jsx(c,{href:"https://github.com/evidentlyai/evidently",children:t.jsx(w,{children:t.jsx(d,{})})}),t.jsx(c,{href:"https://docs.evidentlyai.com/",children:t.jsx(B,{children:"Docs"})})]})})})}const G=({logoSrc:e,authComponent:a})=>{const{version:r}=R();return t.jsxs(t.Fragment,{children:[t.jsx(A,{authComponent:a,version:r,logoSrc:e}),t.jsx(T,{}),t.jsx(b,{}),t.jsxs(l,{p:3,children:[t.jsx(N,{}),t.jsx(D,{})]})]})},k={crumb:()=>({to:"/",linkText:"Home"})};export{G as HomeComponentTemplate,k as handle}; diff --git a/src/evidently/ui/assets/static/js/index-DzU7Itgo.js b/src/evidently/ui/assets/static/js/index-DzU7Itgo.js deleted file mode 100644 index eb888cf932..0000000000 --- a/src/evidently/ui/assets/static/js/index-DzU7Itgo.js +++ /dev/null @@ -1 +0,0 @@ -import{R as React,j as jsxRuntimeExports,W as Button,ab as Popper,ac as Grow,a1 as Paper,ad as ClickAwayListener,ae as MenuList,M as MenuItem,r as reactExports,B as Box,af as Chip,I as IconButton,a9 as useParams,X as useLoaderData,H as useMatches,a0 as useSubmit,O as useNavigation,h as invariant,t as useSearchParams,aa as useLocalStorage,Z as Outlet,T as Typography,ag as Table,ah as TableHead,ai as TableRow,aj as TableCell,ak as TableSortLabel,al as TableBody,v as dayjs,N as Link,a4 as Tooltip,am as DeleteIcon,G as Grid,an as Autocomplete,a8 as TextField,F as FormControlLabel,n as Switch}from"./vendor-t0l2jWQ9.js";import{d as default_1$1}from"./ContentCopy-B2vBgiMr.js";import{r as requireCreateSvgIcon,i as interopRequireDefaultExports}from"./createSvgIcon-LdZl81St.js";const options=[{title:"Download HTML",format:"html"},{title:"Download JSON",format:"json"}];function DownloadButton(e){const[t,n]=React.useState(!1),s=React.useRef(null),i=(l,p)=>{window.open(`${l}?report_format=${p}`,"_blank"),n(!1)},a=()=>{n(l=>!l)},m=l=>{s.current&&s.current.contains(l.target)||n(!1)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button,{disabled:e.disabled,variant:e.variant,ref:s,color:"primary","aria-controls":t?"split-button-menu":void 0,"aria-expanded":t?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:a,children:"Download"}),jsxRuntimeExports.jsx(Popper,{open:t,anchorEl:s.current,transition:!0,children:({TransitionProps:l,placement:p})=>jsxRuntimeExports.jsx(Grow,{...l,style:{transformOrigin:p==="bottom"?"center top":"center bottom"},children:jsxRuntimeExports.jsx(Paper,{children:jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:m,children:jsxRuntimeExports.jsx(MenuList,{id:"split-button-menu",children:options.map(d=>jsxRuntimeExports.jsx(MenuItem,{onClick:()=>i(e.downloadLink,d.format),children:d.title},d.format))})})})})})]})}var CloseRounded={},_interopRequireDefault=interopRequireDefaultExports;Object.defineProperty(CloseRounded,"__esModule",{value:!0});var default_1=CloseRounded.default=void 0,_createSvgIcon=_interopRequireDefault(requireCreateSvgIcon()),_jsxRuntime=jsxRuntimeExports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}),"CloseRounded");default_1=CloseRounded.default=_default;const HidedTags=({onClick:e,tags:t,limitTags:n=2})=>{const[s,i]=reactExports.useState(!1);return jsxRuntimeExports.jsxs(Box,{display:"flex",alignContent:"center",flexWrap:"wrap",children:[t.slice(0,n).map(a=>jsxRuntimeExports.jsx(Chip,{onClick:()=>e(a),label:a,style:{margin:3}},a)),s&&t.slice(n).map(a=>jsxRuntimeExports.jsx(Chip,{onClick:()=>e(a),label:a,style:{margin:3}},a)),!s&&t.length>n&&jsxRuntimeExports.jsx(Chip,{variant:"outlined",label:`+${t.length-n}`,style:{margin:3,borderColor:"grey"},onClick:()=>i(!0)},"+N"),t.length>0&&s&&jsxRuntimeExports.jsx(IconButton,{style:{margin:3},onClick:()=>i(!1),children:jsxRuntimeExports.jsx(default_1,{fontSize:"small"})})]})},TextWithCopyIcon=({showText:e,copyText:t})=>jsxRuntimeExports.jsxs(Box,{children:[e,jsxRuntimeExports.jsx(IconButton,{size:"small",style:{marginLeft:10},onClick:()=>navigator.clipboard.writeText(t),children:jsxRuntimeExports.jsx(default_1$1,{fontSize:"small"})})]});function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function objectSize(e){return Array.isArray(e)?e.length:isObject(e)?Object.keys(e).length:0}function stringifyForCopying(e,t){if(typeof e=="string")return e;try{return JSON.stringify(e,(n,s)=>{switch(typeof s){case"bigint":return String(s)+"n";case"number":case"boolean":case"object":case"string":return s;default:return String(s)}},t)}catch(n){return`${n.name}: ${n.message}`||"JSON.stringify failed"}}function isCollapsed(e,t,n,s,i,a){if(a&&a.collapsed!==void 0)return!!a.collapsed;if(typeof s=="boolean")return s;if(typeof s=="number"&&t>s)return!0;const m=objectSize(e);if(typeof s=="function"){const l=safeCall(s,[{node:e,depth:t,indexOrName:n,size:m}]);if(typeof l=="boolean")return l}return!!(Array.isArray(e)&&m>i||isObject(e)&&m>i)}function ifDisplay(e,t,n){return typeof e=="boolean"?e:!!(typeof e=="number"&&t>e||e==="collapsed"&&n||e==="expanded"&&!n)}function safeCall(e,t){try{return e(...t)}catch(n){reportError(n)}}function editableAdd(e){if(e===!0||isObject(e)&&e.add===!0)return!0}function editableEdit(e){if(e===!0||isObject(e)&&e.edit===!0)return!0}function editableDelete(e){if(e===!0||isObject(e)&&e.delete===!0)return!0}function isReactComponent(e){return typeof e=="function"}function customAdd(e){return!e||e.add===void 0||!!e.add}function customEdit(e){return!e||e.edit===void 0||!!e.edit}function customDelete(e){return!e||e.delete===void 0||!!e.delete}function customCopy(e){return!e||e.enableClipboard===void 0||!!e.enableClipboard}function resolveEvalFailedNewValue(e,t){return e==="string"?t.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):t}var _path$7;function _extends$7(){return _extends$7=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const i=stringifyForCopying(e);s.stopPropagation(),navigator.clipboard.writeText(i),n(!0),setTimeout(()=>n(!1),3e3)},className:"json-view--copy"})}function NameValue({indexOrName:e,value:t,depth:n,parent:s,deleteHandle:i,editHandle:a}){return jsxRuntimeExports.jsxs("div",Object.assign({className:"json-view--pair"},{children:[jsxRuntimeExports.jsx("span",Object.assign({className:typeof e=="number"?"json-view--index":"json-view--property"},{children:e})),":"," ",jsxRuntimeExports.jsx(JsonNode,{node:t,depth:n+1,deleteHandle:i,editHandle:a,parent:s,indexOrName:e})]}))}var _path$4,_path2$3;function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(e){for(var t=1;t{b(isCollapsed(e,t,n,a,l,i))},[a,l]);const O=reactExports.useCallback((o,x,k)=>{Array.isArray(e)?e[+o]=x:e&&(e[o]=x),h&&h({newValue:x,oldValue:k,depth:t,src:u,indexOrName:o,parentType:E?"object":"array"}),c&&c({type:"edit",depth:t,src:u,indexOrName:o,parentType:E?"object":"array"}),R()},[e,h,c,R]),C=o=>{Array.isArray(e)?e.splice(+o,1):e&&delete e[o],R()},[N,w]=reactExports.useState(!1),r=()=>{w(!1),s&&s(n),d&&d({value:e,depth:t,src:u,indexOrName:n,parentType:E?"object":"array"}),c&&c({type:"delete",depth:t,src:u,indexOrName:n,parentType:E?"object":"array"})},[f,T]=reactExports.useState(!1),y=reactExports.useRef(null),S=()=>{var o;if(E){const x=(o=y.current)===null||o===void 0?void 0:o.value;x&&(e[x]=null,y.current&&(y.current.value=""),T(!1),g&&g({indexOrName:x,depth:t,src:u,parentType:"object"}),c&&c({type:"add",indexOrName:x,depth:t,src:u,parentType:"object"}))}else if(Array.isArray(e)){const x=e;x.push(null),g&&g({indexOrName:x.length-1,depth:t,src:u,parentType:"array"}),c&&c({type:"add",indexOrName:x.length-1,depth:t,src:u,parentType:"array"})}R()},D=o=>{o.key==="Enter"?(o.preventDefault(),S()):o.key==="Escape"&&A()},_=N||f,A=()=>{w(!1),T(!1)},$=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!j&&!_&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>b(!0)},{children:[ifDisplay(v,t,j)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(e)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),f&&E&&jsxRuntimeExports.jsx("input",{className:"json-view--input",placeholder:"property",ref:y,onKeyDown:D}),_&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:f?S:r}),_&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:A}),!j&&!_&&m&&customCopy(i)&&jsxRuntimeExports.jsx(CopyButton,{node:e}),!j&&!_&&editableAdd(p)&&customAdd(i)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{E?(T(!0),setTimeout(()=>{var o;return(o=y.current)===null||o===void 0?void 0:o.focus()})):S()}}),!j&&!_&&editableDelete(p)&&customDelete(i)&&s&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>w(!0)})]});return Array.isArray(e)?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),$,j?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>b(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:e.map((o,x)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:x,value:o,depth:t,parent:e,deleteHandle:C,editHandle:O},String(n)+String(x)))})),jsxRuntimeExports.jsx("span",{children:"]"}),j&&ifDisplay(v,t,j)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>b(!1),className:"jv-size"},{children:[objectSize(e)," Items"]}))]}):E?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),$,j?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>b(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:Object.entries(e).map(([o,x])=>jsxRuntimeExports.jsx(NameValue,{indexOrName:o,value:x,depth:t,parent:e,deleteHandle:C,editHandle:O},String(n)+String(o)))})),jsxRuntimeExports.jsx("span",{children:"}"}),j&&ifDisplay(v,t,j)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>b(!1),className:"jv-size"},{children:[objectSize(e)," Items"]}))]}):null}const LongString=React.forwardRef(({str:e,className:t,ctrlClick:n},s)=>{let{collapseStringMode:i,collapseStringsAfterLength:a}=reactExports.useContext(JsonViewContext);const[m,l]=reactExports.useState(!0);a=a>0?a:0;const p=e.replace(/\s+/g," "),d=u=>{(u.ctrlKey||u.metaKey)&&n?n(u):l(!m)};if(e.length<=a)return jsxRuntimeExports.jsxs("span",Object.assign({className:t,onClick:n},{children:['"',e,'"']}));if(i==="address")return e.length<=10?jsxRuntimeExports.jsxs("span",Object.assign({className:t,onClick:n},{children:['"',e,'"']})):jsxRuntimeExports.jsxs("span",Object.assign({onClick:d,className:t+" cursor-pointer"},{children:['"',m?p.slice(0,6)+"..."+p.slice(-4):e,'"']}));if(i==="directly")return jsxRuntimeExports.jsxs("span",Object.assign({onClick:d,className:t+" cursor-pointer"},{children:['"',m?p.slice(0,a)+"...":e,'"']}));if(i==="word"){let u=a,g=a+1,h=p,c=1;for(;;){if(/\W/.test(e[u])){h=e.slice(0,u);break}if(/\W/.test(e[g])){h=e.slice(0,g);break}if(c===6){h=e.slice(0,a);break}c++,u--,g++}return jsxRuntimeExports.jsxs("span",Object.assign({onClick:d,className:t+" cursor-pointer"},{children:['"',m?h+"...":e,'"']}))}return jsxRuntimeExports.jsxs("span",Object.assign({className:t},{children:['"',e,'"']}))});var _path;function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t{setEditing(!0),setTimeout(()=>{var e,t;(e=window.getSelection())===null||e===void 0||e.selectAllChildren(valueRef.current),(t=valueRef.current)===null||t===void 0||t.focus()})},done=reactExports.useCallback(()=>{const newValue=valueRef.current.innerText;try{const evalValue=eval(newValue);editHandle&&editHandle(indexOrName,evalValue,node)}catch(e){const t=resolveEvalFailedNewValue(type,newValue);editHandle&&editHandle(indexOrName,t,node)}setEditing(!1)},[editHandle]),cancel=()=>{setEditing(!1),setDeleting(!1)},deleteHandle=()=>{setDeleting(!1),_deleteHandle&&_deleteHandle(indexOrName),onDelete&&onDelete({value:node,depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object"}),onChange&&onChange({depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object",type:"delete"})},handleKeyDown=reactExports.useCallback(e=>{e.key==="Enter"?(e.preventDefault(),done()):e.key==="Escape"&&cancel()},[done]),isEditing=editing||deleting,ctrlClick=!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle?e=>{(e.ctrlKey||e.metaKey)&&edit()}:void 0,Icons=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[isEditing&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:deleting?deleteHandle:done}),isEditing&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:cancel}),!isEditing&&enableClipboard&&customCopy(customReturn)&&jsxRuntimeExports.jsx(CopyButton,{node}),!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle&&jsxRuntimeExports.jsx(SvgEdit,{className:"json-view--edit",onClick:edit}),!isEditing&&editableDelete(editable)&&customDelete(customReturn)&&_deleteHandle&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>setDeleting(!0)})]});let className="json-view--string";switch(typeof(customReturn==null?void 0:customReturn.className)=="string"&&(className+=" "+customReturn.className),type){case"number":case"bigint":className="json-view--number";break;case"boolean":className="json-view--boolean";break;case"object":className="json-view--null";break}deleting&&(className+=" json-view--deleting");let displayValue=String(node);type==="bigint"&&(displayValue+="n");const EditingElement=reactExports.useMemo(()=>jsxRuntimeExports.jsx("span",{contentEditable:!0,className,dangerouslySetInnerHTML:{__html:type==="string"?`"${displayValue}"`:displayValue},ref:valueRef,onKeyDown:handleKeyDown}),[displayValue,type,handleKeyDown]);return type==="string"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:node.length>collapseStringsAfterLength?jsxRuntimeExports.jsx(LongString,{str:node,ref:valueRef,className,ctrlClick}):jsxRuntimeExports.jsxs("span",Object.assign({className,onClick:ctrlClick},{children:['"',displayValue,'"']})),Icons]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:jsxRuntimeExports.jsx("span",Object.assign({className,onClick:ctrlClick},{children:displayValue})),Icons]})}}const JsonViewContext=reactExports.createContext({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",collapseObjectsAfterLength:20,collapsed:!1,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,displaySize:void 0});function JsonView({src:e,collapseStringsAfterLength:t=99,collapseStringMode:n="directly",collapseObjectsAfterLength:s=99,collapsed:i,enableClipboard:a=!0,editable:m=!1,onEdit:l,onDelete:p,onAdd:d,onChange:u,dark:g=!1,theme:h="default",customizeNode:c,displaySize:R}){const[v,E]=reactExports.useState(0),j=reactExports.useCallback(()=>E(b=>++b),[]);return jsxRuntimeExports.jsx(JsonViewContext.Provider,Object.assign({value:{src:e,collapseStringsAfterLength:t,collapseStringMode:n,collapseObjectsAfterLength:s,collapsed:i,enableClipboard:a,editable:m,onEdit:l,onDelete:p,onAdd:d,onChange:u,forceUpdate:j,customizeNode:c,displaySize:R}},{children:jsxRuntimeExports.jsx("code",Object.assign({className:"json-view"+(g?" dark":"")+(h&&h!=="default"?" json-view_"+h:"")},{children:jsxRuntimeExports.jsx(JsonNode,{node:e,depth:1})}))}))}function useUpdateQueryStringValueWithoutNavigation(e,t){reactExports.useEffect(()=>{const n=new URLSearchParams(window.location.search),s=n.get(e)??"";if(t===s)return;t?n.set(e,t):n.delete(e);const i=[window.location.pathname,n.toString()].filter(Boolean).join("?");window.history.replaceState(null,"",i)},[e,t])}const shouldRevalidate=()=>!0,handle={crumb:(e,{pathname:t})=>({to:t,linkText:t.split("/").reverse()[0]==="reports"?"Reports":"Test Suites"})},metadataToOneString=e=>Object.values(e).map(t=>Array.isArray(t)?t.join(" "):typeof t=="object"?metadataToOneString(t):t).join(" "),SnapshotsListTemplate=({type:e,slots:t})=>{const{projectId:n}=useParams(),s=useLoaderData(),i=useMatches(),a=useSubmit(),l=useNavigation().state!=="idle";invariant(n);const[p]=useSearchParams(),[d,u]=reactExports.useState("desc"),[g,h]=useLocalStorage("show-full-json-metadata",!1),[c,R]=reactExports.useState(()=>{var r;return((r=p.get("tags"))==null?void 0:r.split(","))||[]}),[v,E]=reactExports.useState(()=>p.get("metadata-query")||"");useUpdateQueryStringValueWithoutNavigation("tags",c.join(",")),useUpdateQueryStringValueWithoutNavigation("metadata-query",String(v));const j=i.find(({handle:r})=>{var f;return((f=r==null?void 0:r.hide)==null?void 0:f.snapshotList)===!0}),b=reactExports.useMemo(()=>Array.from(new Set(s.flatMap(({tags:r})=>r))),[s]),O=reactExports.useMemo(()=>s.filter(({tags:r})=>c.every(f=>r.includes(f))),[s,c]),C=reactExports.useMemo(()=>O.filter(({metadata:r})=>v===""?!0:metadataToOneString(r).includes(v)),[O,v]),N=reactExports.useMemo(()=>d===void 0?C:C.sort((r,f)=>{const[T,y]=[Date.parse(r.timestamp),Date.parse(f.timestamp)],S=T-y;return d==="desc"?-S:d==="asc"?S:0}),[C,d]);if(j)return jsxRuntimeExports.jsx(Outlet,{});const w=jsxRuntimeExports.jsx(Box,{sx:{padding:2},children:jsxRuntimeExports.jsxs(Grid,{container:!0,gap:2,alignItems:"flex-end",justifyContent:"space-around",children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:4,children:jsxRuntimeExports.jsx(Autocomplete,{multiple:!0,limitTags:2,value:c,onChange:(r,f)=>R(f),options:b,renderInput:r=>jsxRuntimeExports.jsx(TextField,{...r,variant:"standard",label:"Filter by Tags"})})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:7,children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"flex-end",gap:2,children:[jsxRuntimeExports.jsx(TextField,{fullWidth:!0,value:v,onChange:r=>E(r.target.value),variant:"standard",label:"Search in Metadata"}),jsxRuntimeExports.jsx(Box,{minWidth:220,display:"flex",justifyContent:"center",children:jsxRuntimeExports.jsx(FormControlLabel,{control:jsxRuntimeExports.jsx(Switch,{checked:g,onChange:r=>h(r.target.checked)}),label:"Hide Metadata"})}),jsxRuntimeExports.jsx(Box,{display:"flex",justifyContent:"flex-end",children:jsxRuntimeExports.jsxs(Button,{sx:{minWidth:160},variant:"outlined",onClick:()=>a({action:"reload-snapshots"},{method:"post",replace:!0,encType:"application/json"}),color:"primary",disabled:l,children:["refresh ",e]})})]})})]})});return s.length===0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[w,jsxRuntimeExports.jsxs(Typography,{my:3,variant:"h4",align:"center",children:["You don't have any ",e," yet."]})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[w,jsxRuntimeExports.jsxs(Table,{children:[jsxRuntimeExports.jsxs(TableHead,{children:[jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{children:e==="reports"?"Report ID":e==="test suites"?"Test Suite ID":"indefined"}),jsxRuntimeExports.jsx(TableCell,{children:"Tags"}),jsxRuntimeExports.jsx(TableCell,{children:"Metadata"}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(TableSortLabel,{active:!!d,direction:d,onClick:()=>{u(r=>{if(r===void 0)return"desc";if(r==="desc")return"asc"})},children:"Timestamp"})}),jsxRuntimeExports.jsx(TableCell,{align:"center",children:"Actions"})]}),jsxRuntimeExports.jsx(TableRow,{})]}),jsxRuntimeExports.jsx(TableBody,{children:N.map(r=>jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(TextWithCopyIcon,{showText:r.id,copyText:r.id})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Box,{maxWidth:250,children:jsxRuntimeExports.jsx(HidedTags,{onClick:f=>{c.includes(f)||R([...c,f])},tags:r.tags})})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(JsonView,{collapsed:g,src:r.metadata,theme:"atom",enableClipboard:!1})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Typography,{variant:"body2",children:dayjs(r.timestamp).locale("en-gb").format("llll")})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsxs(Box,{display:"flex",justifyContent:"center",gap:1,children:[t!=null&&t.ViewButton?jsxRuntimeExports.jsx(t.ViewButton,{snapshotId:r.id,projectId:n}):jsxRuntimeExports.jsx(Button,{disabled:l,component:Link,to:`${r.id}`,children:"View"}),jsxRuntimeExports.jsx(DownloadButton,{variant:(t==null?void 0:t.donwloadButtonVariant)||"outlined",disabled:l,downloadLink:`/api/projects/${n}/${r.id}/download`}),(t==null?void 0:t.additionalSnapshotActions)&&jsxRuntimeExports.jsx(t.additionalSnapshotActions,{snapshotId:r.id,projectId:n}),jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsx(Tooltip,{title:"delete snapshot",placement:"top",children:jsxRuntimeExports.jsx(IconButton,{onClick:()=>{confirm("Are you sure?")===!0&&a({action:"delete-snapshot",snapshotId:r.id},{method:"post",replace:!0,encType:"application/json"})},color:"primary",disabled:l,children:jsxRuntimeExports.jsx(DeleteIcon,{})})})})]})})]},`r-${r.id}`))})]})]})};export{SnapshotsListTemplate,handle,shouldRevalidate}; diff --git a/src/evidently/ui/assets/static/js/index-MyhbAVH4.js b/src/evidently/ui/assets/static/js/index-MyhbAVH4.js new file mode 100644 index 0000000000..48c93d5c84 --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-MyhbAVH4.js @@ -0,0 +1,3 @@ +const __vite__fileDeps=["static/js/index-DU-KQm24.js","static/js/vendor-COAUpDWz.js","static/js/createSvgIcon-63W_9W2b.js","static/js/index-CNFsm67C.js","static/js/DashboardViewParams-DnRSqG_L.js","static/js/DashboardWidgets-Bd_rYhaA.js","static/js/DashboardContent-DSoVlerH.js","static/js/Edit-ByX95MPl.js","static/js/index-6B-NzMF5.js","static/js/index-BrZb1t9C.js","static/js/ContentCopy-CTB-bCQn.js","static/css/index-C5isHALn.css","static/js/index-CFjUf3L-.js","static/js/index-By5ZMnyu.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +var Z=Object.defineProperty;var ee=(e,t,s)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var w=(e,t,s)=>(ee(e,typeof t!="symbol"?t+"":t,s),s);import{c as H,g as _,u as te,j as r,A as N,a as B,i as re,T as k,b as se,R,r as F,S as oe,B as I,I as ne,C as ie,d as ae,e as ce,f as he,h as T,k as le,l as de,L as ue,m as pe,G as O,F as fe,n as me,o as je,p as xe,q as ye,M as p,D as V,s as _e,t as ge,v as D,z as u,w as Ee,x as ve,y as be,E as Se}from"./vendor-COAUpDWz.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function s(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=s(i);fetch(i.href,o)}})();const{transitions:P}=H(),y="#ed0500",Ie="#ded5d5",Te=H({shape:{borderRadius:5},palette:{primary:{main:_[900],light:_[200]},secondary:{main:y,dark:"#c10400",light:_[200]},background:{default:"#fff",paper:"#fff"}},components:{MuiLink:{styleOverrides:{root:{transition:P.create("color",{duration:P.duration.enteringScreen}),"&:hover":{color:y}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:y}}},MuiButton:{styleOverrides:{contained:{"&:hover":{background:_[800]}},outlined:{"&:hover":{color:y,borderColor:y,background:"#fff"}},text:{"&:hover":{color:y,borderColor:y}}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px","&:hover":{background:_[200]}}}},MuiIconButton:{styleOverrides:{root:{transition:P.create("color",{duration:P.duration.enteringScreen}),color:_[900],"&:hover":{color:y}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:P.create("color",{duration:P.duration.enteringScreen}),color:_[900],"&:hover":{color:y},"&.Mui-disabled":{border:"unset",background:_[100]}}}},MuiToggleButtonGroup:{defaultProps:{color:"secondary"}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{styleOverrides:{root:{boxShadow:"unset",border:"1px solid",borderColor:Ie}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}}),v=()=>{var t;const e=te();return r.jsxs(N,{severity:"error",children:[r.jsx(B,{children:"Something went wrong"}),re(e)&&r.jsxs(r.Fragment,{children:[r.jsx(k,{fontWeight:"bold",children:[`Status: ${e.status}`,typeof((t=e.data)==null?void 0:t.detail)=="string"&&e.data.detail].filter(Boolean).join(", ")}),typeof e.data=="string"&&r.jsx(k,{children:e.data})]}),typeof e=="string"&&r.jsx(k,{fontWeight:"bold",children:e})]})},W=({data:e})=>{const[t,s]=R.useState(!1),n=R.useRef(null);return F.useEffect(()=>{e!=null&&e.error&&(n.current=e.error,s(!0))},[e]),r.jsx(oe,{open:t,onClose:(i,o)=>{o!=="clickaway"&&s(!1)},children:r.jsx(N,{severity:"error",children:r.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:2,children:[r.jsxs(I,{children:[r.jsx(B,{children:"Something went wrong"}),n.current&&r.jsx(k,{fontWeight:"bold",children:[typeof n.current.status_code=="number"&&`Status: ${n.current.status_code}`,typeof n.current.detail=="string"&&n.current.detail].filter(Boolean).join(", ")})]}),r.jsx(I,{children:r.jsx(ne,{size:"small","aria-label":"close",color:"inherit",onClick:()=>{s(!1)},children:r.jsx(ie,{})})})]})})})},$=()=>{const e=se();return r.jsx(W,{data:e})},Pe=()=>{var s;const t=(s=ae().find(n=>{var i;return!!((i=n.data)!=null&&i.error)}))==null?void 0:s.data;return r.jsx(W,{data:t})},ke={path:"*",Component:()=>r.jsx(I,{display:"flex",justifyContent:"center",children:r.jsx(k,{variant:"h4",children:"Page Not Found"})})},we="modulepreload",Oe=function(e){return"/"+e},G={},E=function(t,s,n){let i=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.all(s.map(c=>{if(c=Oe(c),c in G)return;G[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const l=document.createElement("link");if(l.rel=f?"stylesheet":we,f||(l.as="script",l.crossOrigin=""),l.href=c,a&&l.setAttribute("nonce",a),document.head.appendChild(l),f)return new Promise((j,A)=>{l.addEventListener("load",j),l.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${c}`)))})}))}return i.then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})};function d(e){return e!=null&&e.notThrowExc?Le:Ce}const Ce=e=>{const{data:t,error:s,response:n}=e;if(s)throw ce(s,{status:n.status});return t},Le=e=>{const{data:t,error:s,response:n}=e;return s?{error:{...s,status_code:n.status}}:t},De=({api:e})=>({loader:()=>e.GET("/api/version").then(d())}),Ae=he,b=Ae({baseUrl:"/"}),Re="/static/img/logo.png",{loader:Fe}=De({api:b}),Ne={path:"/",lazy:async()=>{const{HomeComponentTemplate:e,...t}=await E(()=>import("./index-DU-KQm24.js"),__vite__mapDeps([0,1,2]));return{Component:()=>r.jsxs(r.Fragment,{children:[r.jsx(Pe,{}),r.jsx(e,{logoSrc:Re})]}),...t}},loader:Fe,ErrorBoundary:v},J=e=>{if(e.id)return{...e,id:e.id};throw`"id" is missing in object: ${JSON.stringify(e)}`},q=e=>{if(e.headers.get("Content-type")!=="application/json")throw new Response("Unsupported Media Type",{status:415})},Be=({api:e})=>({loader:({params:t})=>{const{projectId:s}=t;return T(s),e.GET("/api/projects/{project_id}/info",{params:{path:{project_id:s}}}).then(d()).then(J)}});function U(e){return`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}T${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`}const g={FROM:"date_from",TO:"date_to"},$e=e=>{const t=e.get(g.FROM),s=e.get(g.TO);return{date_from:t,date_to:s}},Me=({dataRanges:e})=>{const[t,s]=ge(),{date_from:n,date_to:i}=$e(t),o=D(n||e.minDate),a=D(i||e.maxDate);return{isCorrectTimeInterval:o.isValid()&&a.isValid()&&(o.isSame(a)||o.isBefore(a)),date_from:o,date_to:a,setSearchParams:s}},jt=({dataRanges:e,isDashboardHideDates:t,setIsDashboardHideDates:s,isShowDateFilter:n})=>{const i=le(),{isCorrectTimeInterval:o,date_from:a,date_to:c,setSearchParams:f}=Me({dataRanges:e}),[h,l]=F.useState({date_from:a,date_to:c}),j=de(h,300),A=o?"":"incorrect time interval";return F.useEffect(()=>{var C,L;if(i)return;const m=(C=j==null?void 0:j.date_to)==null?void 0:C.toDate(),x=(L=j==null?void 0:j.date_from)==null?void 0:L.toDate();f(S=>(S.delete(g.FROM),S.delete(g.TO),x&&S.append(g.FROM,U(x)),m&&S.append(g.TO,U(m)),S),{preventScrollReset:!0,replace:!0})},[j,i]),r.jsx(ue,{dateAdapter:pe,adapterLocale:"en-gb",children:r.jsxs(O,{container:!0,padding:1,zIndex:1,gap:2,justifyContent:"flex-end",alignItems:"flex-end",children:[r.jsx(O,{item:!0,children:r.jsx(I,{minWidth:180,display:"flex",justifyContent:"center",children:r.jsx(fe,{control:r.jsx(me,{checked:t,onChange:m=>s(m.target.checked)}),label:"Show in order"})})}),n&&r.jsxs(r.Fragment,{children:[r.jsx(O,{item:!0,xs:12,md:2,children:r.jsxs(je,{fullWidth:!0,children:[r.jsx(xe,{children:"Period"}),r.jsxs(ye,{variant:"standard",defaultValue:"",onChange:m=>{const[x,C]=m.target.value.split(",");if(x===""){l({date_from:null,date_to:null});return}const[L,S]=[Number(x),C],M=e.maxDate.subtract(L,S);l({date_from:M.isBefore(e.minDate)?e.minDate:M,date_to:e.maxDate})},children:[r.jsx(p,{value:"",children:r.jsx("em",{children:"None"})}),r.jsx(p,{value:"10,minutes",children:"Last 10 Minutes"}),r.jsx(p,{value:"30,minutes",children:"Last 30 Minutes"}),r.jsx(p,{value:"1,hours",children:"Last 1 Hours"}),r.jsx(p,{value:"2,hours",children:"Last 2 Hours"}),r.jsx(p,{value:"8,hours",children:"Last 8 Hours"}),r.jsx(p,{value:"24,hours",children:"Last 24 Hours"}),r.jsx(p,{value:"7,days",children:"Last 7 Days"}),r.jsx(p,{value:"14,days",children:"Last 14 Days"}),r.jsx(p,{value:"28,days",children:"Last 28 Days"}),r.jsx(p,{value:"60,days",children:"Last 60 Days"})]})]})}),r.jsx(O,{item:!0,children:r.jsxs(I,{display:"flex",alignItems:"center",gap:2,children:[r.jsx(V,{minDate:e.minDate,maxDate:e.maxDate&&c,slotProps:{textField:{variant:"standard"}},label:"From",value:h.date_from,onChange:m=>l(x=>({...x,date_from:m}))}),r.jsx(I,{height:1,display:"flex",alignItems:"center",children:r.jsx(k,{children:" - "})}),r.jsx(V,{minDate:e.minDate&&a,maxDate:e.maxDate,slotProps:{textField:{variant:"standard"}},label:"To",value:h.date_to,onChange:m=>l(x=>({...x,date_to:m}))})]})}),r.jsx(O,{item:!0,xs:12,children:r.jsx(_e,{unmountOnExit:!0,in:!o,children:r.jsxs(N,{severity:"error",children:[r.jsx(B,{children:"Error"}),A]})})})]})]})})};class Ve{constructor(){w(this,"at",0);w(this,"ch","");w(this,"text","");w(this,"escapee",{'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` +`,r:"\r",t:" "})}error(t){throw{name:"SyntaxError",message:t,at:this.at,text:this.text}}next(){return this.ch=this.text.charAt(this.at++)}check(t){t!==this.ch&&this.error(`Expected '${t}' instead of '${this.ch}'`),this.ch=this.text.charAt(this.at++)}number(){var t="";if(this.ch==="-"&&(t="-",this.check("-")),this.ch==="I")return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),Number.NEGATIVE_INFINITY;for(;this.ch>="0"&&this.ch<="9";)t+=this.ch,this.next();if(this.ch===".")for(t+=".";this.next()&&this.ch>="0"&&this.ch<="9";)t+=this.ch;if(this.ch==="e"||this.ch==="E")for(t+=this.ch,this.next(),(this.ch==="-"||this.ch==="+")&&(t+=this.ch,this.next());this.ch>="0"&&this.ch<="9";)t+=this.ch,this.next();return+t}string(){var t,s,n="",i;if(this.ch==='"')for(;this.next();){if(this.ch==='"')return this.next(),n;if(this.ch==="\\")if(this.next(),this.ch==="u"){for(i=0,s=0;s<4&&(t=Number.parseInt(this.next(),16),!!isFinite(t));s++)i=i*16+t;n+=String.fromCharCode(i)}else if(this.escapee[this.ch])n+=this.escapee[this.ch];else break;else n+=this.ch}this.error("Bad string")}white(){for(;this.ch&&this.ch<=" ";)this.next()}word(){switch(this.ch){case"t":return this.check("t"),this.check("r"),this.check("u"),this.check("e"),!0;case"f":return this.check("f"),this.check("a"),this.check("l"),this.check("s"),this.check("e"),!1;case"n":return this.check("n"),this.check("u"),this.check("l"),this.check("l"),null;case"N":return this.check("N"),this.check("a"),this.check("N"),Number.NaN;case"I":return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),Number.POSITIVE_INFINITY}this.error("Unexpected '"+this.ch+"'")}array(){var t=[];if(this.ch==="["){if(this.check("["),this.white(),this.ch==="]")return this.check("]"),t;for(;this.ch;){if(t.push(this.value()),this.white(),this.ch==="]")return this.check("]"),t;this.check(","),this.white()}}this.error("Bad array")}object(){var t,s={};if(this.ch==="{"){if(this.check("{"),this.white(),this.ch==="}")return this.check("}"),s;for(;this.ch;){if(t=this.string(),this.white(),this.check(":"),Object.hasOwnProperty.call(s,t)&&this.error('Duplicate key "'+t+'"'),s[t]=this.value(),this.white(),this.ch==="}")return this.check("}"),s;this.check(","),this.white()}}this.error("Bad object")}value(){switch(this.white(),this.ch){case"{":return this.object();case"[":return this.array();case'"':return this.string();case"-":return this.number();default:return this.ch>="0"&&this.ch<="9"?this.number():this.word()}}parse(t,s){let n;return this.text=t,this.at=0,this.ch=" ",n=this.value(),this.white(),this.ch&&this.error("Syntax error"),s!==void 0?function i(o,a){var c,f,h=o[a];if(h&&typeof h=="object")for(c in h)Object.prototype.hasOwnProperty.call(h,c)&&(f=i(h,c),f!==void 0?h[c]=f:delete h[c]);return s.call(o,a,h)}({"":n},""):n}}const Y=e=>new Ve().parse(e),Ge=({api:e})=>({loader:({params:t,request:s})=>{T(t.projectId);const{searchParams:n}=new URL(s.url);let i=n.get(g.FROM),o=n.get(g.TO);return i&&!D(i).isValid()&&(i=null),o&&!D(o).isValid()&&(o=null),e.GET("/api/projects/{project_id}/dashboard",{params:{path:{project_id:t.projectId},query:{timestamp_start:i,timestamp_end:o}},parseAs:"text"}).then(d()).then(Y)}}),{loader:Ue}=Ge({api:b}),ze={index:!0,id:"dashboard",lazy:async()=>{const[{DashboardComponentTemplate:e},{DashboardWidgets:t}]=await Promise.all([E(()=>import("./index-CNFsm67C.js"),__vite__mapDeps([3,1,4])),E(()=>import("./DashboardWidgets-Bd_rYhaA.js"),__vite__mapDeps([5,1,6,4,2,7]))]);return{Component:()=>r.jsx(e,{Dashboard:({data:{widgets:s}})=>r.jsx(t,{widgets:s})})}},loader:Ue,ErrorBoundary:v},Q={RELOAD_SNAPSHOTS:"reload-snapshots",DELETE_SNAPSHOT:"delete-snapshot"},He=u.object({action:u.literal(Q.RELOAD_SNAPSHOTS)}),We=u.object({action:u.literal(Q.DELETE_SNAPSHOT),snapshotId:u.string().uuid()}),K=e=>async({request:t,params:s})=>{T(s.projectId),q(t);const n=await t.json();if(He.safeParse(n).success)return e.GET("/api/projects/{project_id}/reload",{params:{path:{project_id:s.projectId}}}).then(d({notThrowExc:!0}));const o=We.safeParse(n);return o.success?e.DELETE("/api/projects/{project_id}/{snapshot_id}",{params:{path:{project_id:s.projectId,snapshot_id:o.data.snapshotId}}}).then(d({notThrowExc:!0})):{error:{status_code:!1,detail:"Unknown action"}}},Je=({api:e})=>({loader:({params:t})=>(T(t.projectId),t.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/reports",{params:{path:{project_id:t.projectId}}}).then(d())),action:K(e)}),qe=({api:e})=>({loader:({params:t})=>(T(t.projectId),t.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/test_suites",{params:{path:{project_id:t.projectId}}}).then(d())),action:K(e)}),Ye=({api:e})=>({loader:({params:t})=>{const{projectId:s,snapshotId:n}=t;return T(s),T(n),e.GET("/api/projects/{project_id}/{snapshot_id}/data",{params:{path:{project_id:s,snapshot_id:n}},parseAs:"text"}).then(d()).then(Y)}}),{loader:Qe}=Ye({api:b}),X={path:":snapshotId",lazy:async()=>{const{SnapshotTemplate:e,...t}=await E(()=>import("./index-6B-NzMF5.js"),__vite__mapDeps([8,1,6,4,2,7]));return{Component:()=>r.jsx(e,{api:b}),...t}},loader:Qe,ErrorBoundary:v},{loader:Ke,action:Xe}=Je({api:b}),Ze={id:"reports",path:"reports",lazy:async()=>{const{SnapshotsListTemplate:e,...t}=await E(()=>import("./index-BrZb1t9C.js"),__vite__mapDeps([9,1,2,10,11]));return{...t,Component:()=>r.jsxs(r.Fragment,{children:[r.jsx($,{}),r.jsx(e,{type:"reports"})]})}},loader:Ke,action:Xe,ErrorBoundary:v,children:[X]},{loader:et,action:tt}=qe({api:b}),rt={id:"test_suites",path:"test-suites",lazy:async()=>{const{SnapshotsListTemplate:e,...t}=await E(()=>import("./index-BrZb1t9C.js"),__vite__mapDeps([9,1,2,10,11]));return{...t,Component:()=>r.jsxs(r.Fragment,{children:[r.jsx($,{}),r.jsx(e,{type:"test suites"})]})}},loader:et,action:tt,ErrorBoundary:v,children:[X]},{loader:st}=Be({api:b}),ot={path:"projects/:projectId",lazy:()=>E(()=>import("./index-CFjUf3L-.js"),__vite__mapDeps([12,1,10,2])),loader:st,ErrorBoundary:v,children:[ze,Ze,rt]},nt=u.object({action:u.literal("edit-project")}),it=u.object({action:u.literal("create-new-project")}),at=u.object({action:u.literal("delete-project"),projectId:u.string().uuid()}),ct=({api:e})=>({loader:()=>e.GET("/api/projects").then(d()).then(t=>t.map(J)),action:async({request:t})=>{q(t);const s=await t.json();if(it.safeParse(s).success)return e.POST("/api/projects",{body:s}).then(d({notThrowExc:!0}));const n=at.safeParse(s);if(n.success)return e.DELETE("/api/projects/{project_id}",{params:{path:{project_id:n.data.projectId}}}).then(d({notThrowExc:!0}));if(nt.safeParse(s).success)return e.POST("/api/projects/{project_id}/info",{params:{path:{project_id:s.id}},body:s}).then(d({notThrowExc:!0}));throw"Undefined action"}}),{loader:ht,action:lt}=ct({api:b}),dt={index:!0,lazy:()=>E(()=>import("./index-By5ZMnyu.js"),__vite__mapDeps([13,1,2,7])).then(e=>({...e,Component:()=>r.jsxs(r.Fragment,{children:[r.jsx($,{}),r.jsx(e.Component,{})]})})),loader:ht,action:lt,ErrorBoundary:v},ut={...Ne,children:[dt,ot,ke],ErrorBoundary:v},pt=Ee([ut]),z=document.getElementById("root");z&&ve.createRoot(z).render(r.jsx(R.StrictMode,{children:r.jsx(be,{theme:Te,children:r.jsx(Se,{router:pt})})}));export{jt as D,Y as J,d as r}; diff --git a/src/evidently/ui/assets/static/js/vendor-t0l2jWQ9.js b/src/evidently/ui/assets/static/js/vendor-COAUpDWz.js similarity index 67% rename from src/evidently/ui/assets/static/js/vendor-t0l2jWQ9.js rename to src/evidently/ui/assets/static/js/vendor-COAUpDWz.js index 943df906a1..820209fd5b 100644 --- a/src/evidently/ui/assets/static/js/vendor-t0l2jWQ9.js +++ b/src/evidently/ui/assets/static/js/vendor-COAUpDWz.js @@ -6,7 +6,7 @@ function Kk(e,t){for(var n=0;n>>1,ie=I[J];if(0>>1;Jo(Q,F))Ko(H,Q)?(I[J]=H,I[K]=F,J=K):(I[J]=Q,I[U]=F,J=U);else if(Ko(H,F))I[J]=H,I[K]=F,J=K;else break e}}return L}function o(I,L){var F=I.sortIndex-L.sortIndex;return F!==0?F:I.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,i=a.now();e.unstable_now=function(){return a.now()-i}}var l=[],c=[],u=1,d=null,f=3,b=!1,w=!1,p=!1,S=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(I){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=I)r(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function x(I){if(p=!1,C(I),!w)if(n(l)!==null)w=!0,O(T);else{var L=n(c);L!==null&&j(x,L.startTime-I)}}function T(I,L){w=!1,p&&(p=!1,h(M),M=-1),b=!0;var F=f;try{for(C(L),d=n(l);d!==null&&(!(d.expirationTime>L)||I&&!E());){var J=d.callback;if(typeof J=="function"){d.callback=null,f=d.priorityLevel;var ie=J(d.expirationTime<=L);L=e.unstable_now(),typeof ie=="function"?d.callback=ie:d===n(l)&&r(l),C(L)}else r(l);d=n(l)}if(d!==null)var ue=!0;else{var U=n(c);U!==null&&j(x,U.startTime-L),ue=!1}return ue}finally{d=null,f=F,b=!1}}var y=!1,k=null,M=-1,$=5,R=-1;function E(){return!(e.unstable_now()-R<$)}function A(){if(k!==null){var I=e.unstable_now();R=I;var L=!0;try{L=k(!0,I)}finally{L?N():(y=!1,k=null)}}else y=!1}var N;if(typeof g=="function")N=function(){g(A)};else if(typeof MessageChannel<"u"){var _=new MessageChannel,D=_.port2;_.port1.onmessage=A,N=function(){D.postMessage(null)}}else N=function(){S(A,0)};function O(I){k=I,y||(y=!0,N())}function j(I,L){M=S(function(){I(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){w||b||(w=!0,O(T))},e.unstable_forceFrameRate=function(I){0>I||125J?(I.sortIndex=F,t(c,I),n(l)===null&&I===n(c)&&(p?(h(M),M=-1):p=!0,j(x,F-J))):(I.sortIndex=ie,t(l,I),w||b||(w=!0,O(T))),I},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(I){var L=f;return function(){var F=f;f=L;try{return I.apply(this,arguments)}finally{f=F}}}})(dx);ux.exports=dx;var mT=ux.exports;/** + */(function(e){function t(I,L){var F=I.length;I.push(L);e:for(;0>>1,ie=I[J];if(0>>1;Jo(Q,F))Ko(H,Q)?(I[J]=H,I[K]=F,J=K):(I[J]=Q,I[U]=F,J=U);else if(Ko(H,F))I[J]=H,I[K]=F,J=K;else break e}}return L}function o(I,L){var F=I.sortIndex-L.sortIndex;return F!==0?F:I.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,i=a.now();e.unstable_now=function(){return a.now()-i}}var l=[],c=[],u=1,d=null,f=3,b=!1,w=!1,p=!1,S=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(I){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=I)r(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function x(I){if(p=!1,C(I),!w)if(n(l)!==null)w=!0,O(T);else{var L=n(c);L!==null&&j(x,L.startTime-I)}}function T(I,L){w=!1,p&&(p=!1,h(M),M=-1),b=!0;var F=f;try{for(C(L),d=n(l);d!==null&&(!(d.expirationTime>L)||I&&!E());){var J=d.callback;if(typeof J=="function"){d.callback=null,f=d.priorityLevel;var ie=J(d.expirationTime<=L);L=e.unstable_now(),typeof ie=="function"?d.callback=ie:d===n(l)&&r(l),C(L)}else r(l);d=n(l)}if(d!==null)var ue=!0;else{var U=n(c);U!==null&&j(x,U.startTime-L),ue=!1}return ue}finally{d=null,f=F,b=!1}}var v=!1,k=null,M=-1,$=5,R=-1;function E(){return!(e.unstable_now()-R<$)}function A(){if(k!==null){var I=e.unstable_now();R=I;var L=!0;try{L=k(!0,I)}finally{L?N():(v=!1,k=null)}}else v=!1}var N;if(typeof g=="function")N=function(){g(A)};else if(typeof MessageChannel<"u"){var _=new MessageChannel,D=_.port2;_.port1.onmessage=A,N=function(){D.postMessage(null)}}else N=function(){S(A,0)};function O(I){k=I,v||(v=!0,N())}function j(I,L){M=S(function(){I(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){w||b||(w=!0,O(T))},e.unstable_forceFrameRate=function(I){0>I||125J?(I.sortIndex=F,t(c,I),n(l)===null&&I===n(c)&&(p?(h(M),M=-1):p=!0,j(x,F-J))):(I.sortIndex=ie,t(l,I),w||b||(w=!0,O(T))),I},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(I){var L=f;return function(){var F=f;f=L;try{return I.apply(this,arguments)}finally{f=F}}}})(dx);ux.exports=dx;var mT=ux.exports;/** * @license React * react-dom.production.min.js * @@ -30,42 +30,14 @@ function Kk(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ip=Object.prototype.hasOwnProperty,gT=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,iv={},lv={};function vT(e){return Ip.call(lv,e)?!0:Ip.call(iv,e)?!1:gT.test(e)?lv[e]=!0:(iv[e]=!0,!1)}function yT(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function bT(e,t,n,r){if(t===null||typeof t>"u"||yT(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mn(e,t,n,r,o,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var fn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fn[e]=new Mn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fn[t]=new Mn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fn[e]=new Mn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fn[e]=new Mn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){fn[e]=new Mn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fn[e]=new Mn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fn[e]=new Mn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fn[e]=new Mn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fn[e]=new Mn(e,5,!1,e.toLowerCase(),null,!1,!1)});var lm=/[\-:]([a-z])/g;function cm(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(lm,cm);fn[t]=new Mn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(lm,cm);fn[t]=new Mn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(lm,cm);fn[t]=new Mn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fn[e]=new Mn(e,1,!1,e.toLowerCase(),null,!1,!1)});fn.xlinkHref=new Mn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fn[e]=new Mn(e,1,!1,e.toLowerCase(),null,!0,!0)});function um(e,t,n,r){var o=fn.hasOwnProperty(t)?fn[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ip=Object.prototype.hasOwnProperty,gT=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,iv={},lv={};function vT(e){return Ip.call(lv,e)?!0:Ip.call(iv,e)?!1:gT.test(e)?lv[e]=!0:(iv[e]=!0,!1)}function yT(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function bT(e,t,n,r){if(t===null||typeof t>"u"||yT(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mn(e,t,n,r,o,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var fn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fn[e]=new Mn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fn[t]=new Mn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fn[e]=new Mn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fn[e]=new Mn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){fn[e]=new Mn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fn[e]=new Mn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fn[e]=new Mn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fn[e]=new Mn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fn[e]=new Mn(e,5,!1,e.toLowerCase(),null,!1,!1)});var lm=/[\-:]([a-z])/g;function cm(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(lm,cm);fn[t]=new Mn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(lm,cm);fn[t]=new Mn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(lm,cm);fn[t]=new Mn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fn[e]=new Mn(e,1,!1,e.toLowerCase(),null,!1,!1)});fn.xlinkHref=new Mn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fn[e]=new Mn(e,1,!1,e.toLowerCase(),null,!0,!0)});function um(e,t,n,r){var o=fn.hasOwnProperty(t)?fn[t]:null;(o!==null?o.type!==0:r||!(2i||o[a]!==s[i]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=i);break}}}finally{zf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ji(e):""}function xT(e){switch(e.tag){case 5:return ji(e.type);case 16:return ji("Lazy");case 13:return ji("Suspense");case 19:return ji("SuspenseList");case 0:case 2:case 15:return e=Vf(e.type,!1),e;case 11:return e=Vf(e.type.render,!1),e;case 1:return e=Vf(e.type,!0),e;default:return""}}function Np(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fa:return"Fragment";case da:return"Portal";case Op:return"Profiler";case dm:return"StrictMode";case Lp:return"Suspense";case Ap:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mx:return(e.displayName||"Context")+".Consumer";case hx:return(e._context.displayName||"Context")+".Provider";case fm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pm:return t=e.displayName||null,t!==null?t:Np(e.type)||"Memo";case Fo:t=e._payload,e=e._init;try{return Np(e(t))}catch{}}return null}function CT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Np(t);case 8:return t===dm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ns(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wT(e){var t=vx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kc(e){e._valueTracker||(e._valueTracker=wT(e))}function yx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Su(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jp(e,t){var n=t.checked;return Bt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ns(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bx(e,t){t=t.checked,t!=null&&um(e,"checked",t,!1)}function Fp(e,t){bx(e,t);var n=ns(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bp(e,t.type,n):t.hasOwnProperty("defaultValue")&&Bp(e,t.type,ns(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Bp(e,t,n){(t!=="number"||Su(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fi=Array.isArray;function Ra(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Tc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ST=["Webkit","ms","Moz","O"];Object.keys(Gi).forEach(function(e){ST.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gi[t]=Gi[e]})});function Sx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gi.hasOwnProperty(e)&&Gi[e]?(""+t).trim():t+"px"}function kx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Sx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var kT=Bt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Up(e,t){if(t){if(kT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function Wp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hp=null;function hm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yp=null,$a=null,Da=null;function hv(e){if(e=oc(e)){if(typeof Yp!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=Sd(t),Yp(e.stateNode,e.type,t))}}function Tx(e){$a?Da?Da.push(e):Da=[e]:$a=e}function Px(){if($a){var e=$a,t=Da;if(Da=$a=null,hv(e),t)for(e=0;e>>=0,e===0?32:31-(LT(e)/AT|0)|0}var Pc=64,Mc=4194304;function Bi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,a=n&268435455;if(a!==0){var i=a&~o;i!==0?r=Bi(i):(s&=a,s!==0&&(r=Bi(s)))}else a=n&~o,a!==0?r=Bi(a):s!==0&&(r=Bi(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function nc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$r(t),e[t]=n}function BT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=qi),Sv=" ",kv=!1;function Yx(e,t){switch(e){case"keyup":return hP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pa=!1;function gP(e,t){switch(e){case"compositionend":return Kx(t);case"keypress":return t.which!==32?null:(kv=!0,Sv);case"textInput":return e=t.data,e===Sv&&kv?null:e;default:return null}}function vP(e,t){if(pa)return e==="compositionend"||!wm&&Yx(e,t)?(e=Wx(),nu=bm=Ho=null,pa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Rv(n)}}function Qx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xx(){for(var e=window,t=Su();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Su(e.document)}return t}function Sm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function PP(e){var t=Xx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qx(n.ownerDocument.documentElement,n)){if(r!==null&&Sm(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=$v(n,s);var a=$v(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ha=null,Xp=null,Xi=null,Jp=!1;function Dv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jp||ha==null||ha!==Su(r)||(r=ha,"selectionStart"in r&&Sm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xi&&xl(Xi,r)||(Xi=r,r=Du(Xp,"onSelect"),0va||(e.current=sh[va],sh[va]=null,va--)}function Mt(e,t){va++,sh[va]=e.current,e.current=t}var rs={},bn=cs(rs),En=cs(!1),_s=rs;function Wa(e,t){var n=e.type.contextTypes;if(!n)return rs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function _n(e){return e=e.childContextTypes,e!=null}function _u(){$t(En),$t(bn)}function Nv(e,t,n){if(bn.current!==rs)throw Error(Te(168));Mt(bn,t),Mt(En,n)}function i1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Te(108,CT(e)||"Unknown",o));return Bt({},n,r)}function Iu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rs,_s=bn.current,Mt(bn,e),Mt(En,En.current),!0}function jv(e,t,n){var r=e.stateNode;if(!r)throw Error(Te(169));n?(e=i1(e,t,_s),r.__reactInternalMemoizedMergedChildContext=e,$t(En),$t(bn),Mt(bn,e)):$t(En),Mt(En,n)}var uo=null,kd=!1,np=!1;function l1(e){uo===null?uo=[e]:uo.push(e)}function jP(e){kd=!0,l1(e)}function us(){if(!np&&uo!==null){np=!0;var e=0,t=bt;try{var n=uo;for(bt=1;e>=a,o-=a,po=1<<32-$r(t)+o|n<M?($=k,k=null):$=k.sibling;var R=f(h,k,C[M],x);if(R===null){k===null&&(k=$);break}e&&k&&R.alternate===null&&t(h,k),g=s(R,g,M),y===null?T=R:y.sibling=R,y=R,k=$}if(M===C.length)return n(h,k),It&&ys(h,M),T;if(k===null){for(;MM?($=k,k=null):$=k.sibling;var E=f(h,k,R.value,x);if(E===null){k===null&&(k=$);break}e&&k&&E.alternate===null&&t(h,k),g=s(E,g,M),y===null?T=E:y.sibling=E,y=E,k=$}if(R.done)return n(h,k),It&&ys(h,M),T;if(k===null){for(;!R.done;M++,R=C.next())R=d(h,R.value,x),R!==null&&(g=s(R,g,M),y===null?T=R:y.sibling=R,y=R);return It&&ys(h,M),T}for(k=r(h,k);!R.done;M++,R=C.next())R=b(k,h,M,R.value,x),R!==null&&(e&&R.alternate!==null&&k.delete(R.key===null?M:R.key),g=s(R,g,M),y===null?T=R:y.sibling=R,y=R);return e&&k.forEach(function(A){return t(h,A)}),It&&ys(h,M),T}function S(h,g,C,x){if(typeof C=="object"&&C!==null&&C.type===fa&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Sc:e:{for(var T=C.key,y=g;y!==null;){if(y.key===T){if(T=C.type,T===fa){if(y.tag===7){n(h,y.sibling),g=o(y,C.props.children),g.return=h,h=g;break e}}else if(y.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Fo&&Hv(T)===y.type){n(h,y.sibling),g=o(y,C.props),g.ref=Si(h,y,C),g.return=h,h=g;break e}n(h,y);break}else t(h,y);y=y.sibling}C.type===fa?(g=Rs(C.props.children,h.mode,x,C.key),g.return=h,h=g):(x=uu(C.type,C.key,C.props,null,h.mode,x),x.ref=Si(h,g,C),x.return=h,h=x)}return a(h);case da:e:{for(y=C.key;g!==null;){if(g.key===y)if(g.tag===4&&g.stateNode.containerInfo===C.containerInfo&&g.stateNode.implementation===C.implementation){n(h,g.sibling),g=o(g,C.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else t(h,g);g=g.sibling}g=up(C,h.mode,x),g.return=h,h=g}return a(h);case Fo:return y=C._init,S(h,g,y(C._payload),x)}if(Fi(C))return w(h,g,C,x);if(yi(C))return p(h,g,C,x);Oc(h,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,g!==null&&g.tag===6?(n(h,g.sibling),g=o(g,C),g.return=h,h=g):(n(h,g),g=cp(C,h.mode,x),g.return=h,h=g),a(h)):n(h,g)}return S}var Ya=g1(!0),v1=g1(!1),sc={},Xr=cs(sc),kl=cs(sc),Tl=cs(sc);function ks(e){if(e===sc)throw Error(Te(174));return e}function _m(e,t){switch(Mt(Tl,t),Mt(kl,e),Mt(Xr,sc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vp(t,e)}$t(Xr),Mt(Xr,t)}function Ka(){$t(Xr),$t(kl),$t(Tl)}function y1(e){ks(Tl.current);var t=ks(Xr.current),n=Vp(t,e.type);t!==n&&(Mt(kl,e),Mt(Xr,n))}function Im(e){kl.current===e&&($t(Xr),$t(kl))}var Nt=cs(0);function Fu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rp=[];function Om(){for(var e=0;en?n:4,e(!0);var r=op.transition;op.transition={};try{e(!1),t()}finally{bt=n,op.transition=r}}function O1(){return mr().memoizedState}function VP(e,t,n){var r=Jo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},L1(e))A1(t,n);else if(n=f1(e,t,n,r),n!==null){var o=kn();Dr(n,e,r,o),N1(n,t,r)}}function UP(e,t,n){var r=Jo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(L1(e))A1(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,i=s(a,n);if(o.hasEagerState=!0,o.eagerState=i,Ir(i,a)){var l=t.interleaved;l===null?(o.next=o,Dm(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=f1(e,t,o,r),n!==null&&(o=kn(),Dr(n,e,r,o),N1(n,t,r))}}function L1(e){var t=e.alternate;return e===jt||t!==null&&t===jt}function A1(e,t){Ji=Bu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function N1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gm(e,n)}}var zu={readContext:hr,useCallback:pn,useContext:pn,useEffect:pn,useImperativeHandle:pn,useInsertionEffect:pn,useLayoutEffect:pn,useMemo:pn,useReducer:pn,useRef:pn,useState:pn,useDebugValue:pn,useDeferredValue:pn,useTransition:pn,useMutableSource:pn,useSyncExternalStore:pn,useId:pn,unstable_isNewReconciler:!1},WP={readContext:hr,useCallback:function(e,t){return Wr().memoizedState=[e,t===void 0?null:t],e},useContext:hr,useEffect:Kv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,au(4194308,4,$1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return au(4194308,4,e,t)},useInsertionEffect:function(e,t){return au(4,2,e,t)},useMemo:function(e,t){var n=Wr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=VP.bind(null,jt,e),[r.memoizedState,e]},useRef:function(e){var t=Wr();return e={current:e},t.memoizedState=e},useState:Yv,useDebugValue:Fm,useDeferredValue:function(e){return Wr().memoizedState=e},useTransition:function(){var e=Yv(!1),t=e[0];return e=zP.bind(null,e[1]),Wr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=jt,o=Wr();if(It){if(n===void 0)throw Error(Te(407));n=n()}else{if(n=t(),an===null)throw Error(Te(349));Os&30||C1(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Kv(S1.bind(null,r,s,e),[e]),r.flags|=2048,Rl(9,w1.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Wr(),t=an.identifierPrefix;if(It){var n=ho,r=po;n=(r&~(1<<32-$r(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pl++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=i);break}}}finally{zf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ji(e):""}function xT(e){switch(e.tag){case 5:return ji(e.type);case 16:return ji("Lazy");case 13:return ji("Suspense");case 19:return ji("SuspenseList");case 0:case 2:case 15:return e=Vf(e.type,!1),e;case 11:return e=Vf(e.type.render,!1),e;case 1:return e=Vf(e.type,!0),e;default:return""}}function Np(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fa:return"Fragment";case da:return"Portal";case Op:return"Profiler";case dm:return"StrictMode";case Lp:return"Suspense";case Ap:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mx:return(e.displayName||"Context")+".Consumer";case hx:return(e._context.displayName||"Context")+".Provider";case fm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pm:return t=e.displayName||null,t!==null?t:Np(e.type)||"Memo";case Fo:t=e._payload,e=e._init;try{return Np(e(t))}catch{}}return null}function CT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Np(t);case 8:return t===dm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ns(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wT(e){var t=vx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kc(e){e._valueTracker||(e._valueTracker=wT(e))}function yx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Su(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jp(e,t){var n=t.checked;return Bt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ns(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bx(e,t){t=t.checked,t!=null&&um(e,"checked",t,!1)}function Fp(e,t){bx(e,t);var n=ns(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bp(e,t.type,n):t.hasOwnProperty("defaultValue")&&Bp(e,t.type,ns(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Bp(e,t,n){(t!=="number"||Su(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fi=Array.isArray;function Ra(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Tc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ST=["Webkit","ms","Moz","O"];Object.keys(Gi).forEach(function(e){ST.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gi[t]=Gi[e]})});function Sx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gi.hasOwnProperty(e)&&Gi[e]?(""+t).trim():t+"px"}function kx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Sx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var kT=Bt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Up(e,t){if(t){if(kT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function Wp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hp=null;function hm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yp=null,$a=null,Da=null;function hv(e){if(e=oc(e)){if(typeof Yp!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=Sd(t),Yp(e.stateNode,e.type,t))}}function Tx(e){$a?Da?Da.push(e):Da=[e]:$a=e}function Px(){if($a){var e=$a,t=Da;if(Da=$a=null,hv(e),t)for(e=0;e>>=0,e===0?32:31-(LT(e)/AT|0)|0}var Pc=64,Mc=4194304;function Bi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,a=n&268435455;if(a!==0){var i=a&~o;i!==0?r=Bi(i):(s&=a,s!==0&&(r=Bi(s)))}else a=n&~o,a!==0?r=Bi(a):s!==0&&(r=Bi(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function nc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$r(t),e[t]=n}function BT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=qi),Sv=" ",kv=!1;function Yx(e,t){switch(e){case"keyup":return hP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pa=!1;function gP(e,t){switch(e){case"compositionend":return Kx(t);case"keypress":return t.which!==32?null:(kv=!0,Sv);case"textInput":return e=t.data,e===Sv&&kv?null:e;default:return null}}function vP(e,t){if(pa)return e==="compositionend"||!wm&&Yx(e,t)?(e=Wx(),nu=bm=Ho=null,pa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Rv(n)}}function Qx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xx(){for(var e=window,t=Su();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Su(e.document)}return t}function Sm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function PP(e){var t=Xx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qx(n.ownerDocument.documentElement,n)){if(r!==null&&Sm(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=$v(n,s);var a=$v(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ha=null,Xp=null,Xi=null,Jp=!1;function Dv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jp||ha==null||ha!==Su(r)||(r=ha,"selectionStart"in r&&Sm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xi&&xl(Xi,r)||(Xi=r,r=Du(Xp,"onSelect"),0va||(e.current=sh[va],sh[va]=null,va--)}function Mt(e,t){va++,sh[va]=e.current,e.current=t}var rs={},bn=cs(rs),En=cs(!1),_s=rs;function Wa(e,t){var n=e.type.contextTypes;if(!n)return rs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function _n(e){return e=e.childContextTypes,e!=null}function _u(){$t(En),$t(bn)}function Nv(e,t,n){if(bn.current!==rs)throw Error(Te(168));Mt(bn,t),Mt(En,n)}function i1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Te(108,CT(e)||"Unknown",o));return Bt({},n,r)}function Iu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rs,_s=bn.current,Mt(bn,e),Mt(En,En.current),!0}function jv(e,t,n){var r=e.stateNode;if(!r)throw Error(Te(169));n?(e=i1(e,t,_s),r.__reactInternalMemoizedMergedChildContext=e,$t(En),$t(bn),Mt(bn,e)):$t(En),Mt(En,n)}var uo=null,kd=!1,np=!1;function l1(e){uo===null?uo=[e]:uo.push(e)}function jP(e){kd=!0,l1(e)}function us(){if(!np&&uo!==null){np=!0;var e=0,t=bt;try{var n=uo;for(bt=1;e>=a,o-=a,po=1<<32-$r(t)+o|n<M?($=k,k=null):$=k.sibling;var R=f(h,k,C[M],x);if(R===null){k===null&&(k=$);break}e&&k&&R.alternate===null&&t(h,k),g=s(R,g,M),v===null?T=R:v.sibling=R,v=R,k=$}if(M===C.length)return n(h,k),It&&ys(h,M),T;if(k===null){for(;MM?($=k,k=null):$=k.sibling;var E=f(h,k,R.value,x);if(E===null){k===null&&(k=$);break}e&&k&&E.alternate===null&&t(h,k),g=s(E,g,M),v===null?T=E:v.sibling=E,v=E,k=$}if(R.done)return n(h,k),It&&ys(h,M),T;if(k===null){for(;!R.done;M++,R=C.next())R=d(h,R.value,x),R!==null&&(g=s(R,g,M),v===null?T=R:v.sibling=R,v=R);return It&&ys(h,M),T}for(k=r(h,k);!R.done;M++,R=C.next())R=b(k,h,M,R.value,x),R!==null&&(e&&R.alternate!==null&&k.delete(R.key===null?M:R.key),g=s(R,g,M),v===null?T=R:v.sibling=R,v=R);return e&&k.forEach(function(A){return t(h,A)}),It&&ys(h,M),T}function S(h,g,C,x){if(typeof C=="object"&&C!==null&&C.type===fa&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Sc:e:{for(var T=C.key,v=g;v!==null;){if(v.key===T){if(T=C.type,T===fa){if(v.tag===7){n(h,v.sibling),g=o(v,C.props.children),g.return=h,h=g;break e}}else if(v.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Fo&&Hv(T)===v.type){n(h,v.sibling),g=o(v,C.props),g.ref=Si(h,v,C),g.return=h,h=g;break e}n(h,v);break}else t(h,v);v=v.sibling}C.type===fa?(g=Rs(C.props.children,h.mode,x,C.key),g.return=h,h=g):(x=uu(C.type,C.key,C.props,null,h.mode,x),x.ref=Si(h,g,C),x.return=h,h=x)}return a(h);case da:e:{for(v=C.key;g!==null;){if(g.key===v)if(g.tag===4&&g.stateNode.containerInfo===C.containerInfo&&g.stateNode.implementation===C.implementation){n(h,g.sibling),g=o(g,C.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else t(h,g);g=g.sibling}g=up(C,h.mode,x),g.return=h,h=g}return a(h);case Fo:return v=C._init,S(h,g,v(C._payload),x)}if(Fi(C))return w(h,g,C,x);if(yi(C))return p(h,g,C,x);Oc(h,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,g!==null&&g.tag===6?(n(h,g.sibling),g=o(g,C),g.return=h,h=g):(n(h,g),g=cp(C,h.mode,x),g.return=h,h=g),a(h)):n(h,g)}return S}var Ya=g1(!0),v1=g1(!1),sc={},Xr=cs(sc),kl=cs(sc),Tl=cs(sc);function ks(e){if(e===sc)throw Error(Te(174));return e}function _m(e,t){switch(Mt(Tl,t),Mt(kl,e),Mt(Xr,sc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vp(t,e)}$t(Xr),Mt(Xr,t)}function Ka(){$t(Xr),$t(kl),$t(Tl)}function y1(e){ks(Tl.current);var t=ks(Xr.current),n=Vp(t,e.type);t!==n&&(Mt(kl,e),Mt(Xr,n))}function Im(e){kl.current===e&&($t(Xr),$t(kl))}var Nt=cs(0);function Fu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rp=[];function Om(){for(var e=0;en?n:4,e(!0);var r=op.transition;op.transition={};try{e(!1),t()}finally{bt=n,op.transition=r}}function O1(){return mr().memoizedState}function VP(e,t,n){var r=Jo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},L1(e))A1(t,n);else if(n=f1(e,t,n,r),n!==null){var o=kn();Dr(n,e,r,o),N1(n,t,r)}}function UP(e,t,n){var r=Jo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(L1(e))A1(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,i=s(a,n);if(o.hasEagerState=!0,o.eagerState=i,Ir(i,a)){var l=t.interleaved;l===null?(o.next=o,Dm(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=f1(e,t,o,r),n!==null&&(o=kn(),Dr(n,e,r,o),N1(n,t,r))}}function L1(e){var t=e.alternate;return e===jt||t!==null&&t===jt}function A1(e,t){Ji=Bu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function N1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gm(e,n)}}var zu={readContext:hr,useCallback:pn,useContext:pn,useEffect:pn,useImperativeHandle:pn,useInsertionEffect:pn,useLayoutEffect:pn,useMemo:pn,useReducer:pn,useRef:pn,useState:pn,useDebugValue:pn,useDeferredValue:pn,useTransition:pn,useMutableSource:pn,useSyncExternalStore:pn,useId:pn,unstable_isNewReconciler:!1},WP={readContext:hr,useCallback:function(e,t){return Wr().memoizedState=[e,t===void 0?null:t],e},useContext:hr,useEffect:Kv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,au(4194308,4,$1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return au(4194308,4,e,t)},useInsertionEffect:function(e,t){return au(4,2,e,t)},useMemo:function(e,t){var n=Wr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=VP.bind(null,jt,e),[r.memoizedState,e]},useRef:function(e){var t=Wr();return e={current:e},t.memoizedState=e},useState:Yv,useDebugValue:Fm,useDeferredValue:function(e){return Wr().memoizedState=e},useTransition:function(){var e=Yv(!1),t=e[0];return e=zP.bind(null,e[1]),Wr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=jt,o=Wr();if(It){if(n===void 0)throw Error(Te(407));n=n()}else{if(n=t(),an===null)throw Error(Te(349));Os&30||C1(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Kv(S1.bind(null,r,s,e),[e]),r.flags|=2048,Rl(9,w1.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Wr(),t=an.identifierPrefix;if(It){var n=ho,r=po;n=(r&~(1<<32-$r(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Gr]=t,e[Sl]=r,Y1(e,t,!1,!1),t.stateNode=e;e:{switch(a=Wp(n,r),n){case"dialog":Rt("cancel",e),Rt("close",e),o=r;break;case"iframe":case"object":case"embed":Rt("load",e),o=r;break;case"video":case"audio":for(o=0;oZa&&(t.flags|=128,r=!0,ki(s,!1),t.lanes=4194304)}else{if(!r)if(e=Fu(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ki(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!It)return hn(t),null}else 2*Gt()-s.renderingStartTime>Za&&n!==1073741824&&(t.flags|=128,r=!0,ki(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(n=s.last,n!==null?n.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Gt(),t.sibling=null,n=Nt.current,Mt(Nt,r?n&1|2:n&1),t):(hn(t),null);case 22:case 23:return Hm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Un&1073741824&&(hn(t),t.subtreeFlags&6&&(t.flags|=8192)):hn(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function XP(e,t){switch(Tm(t),t.tag){case 1:return _n(t.type)&&_u(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ka(),$t(En),$t(bn),Om(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Im(t),null;case 13:if($t(Nt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(Nt),null;case 4:return Ka(),null;case 10:return $m(t.type._context),null;case 22:case 23:return Hm(),null;case 24:return null;default:return null}}var Ac=!1,vn=!1,JP=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function Ca(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Wt(e,t,r)}else n.current=null}function vh(e,t,n){try{n()}catch(r){Wt(e,t,r)}}var ny=!1;function eM(e,t){if(eh=Ru,e=Xx(),Sm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var a=0,i=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var b;d!==n||o!==0&&d.nodeType!==3||(i=a+o),d!==s||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(b=d.firstChild)!==null;)f=d,d=b;for(;;){if(d===e)break t;if(f===n&&++c===o&&(i=a),f===s&&++u===r&&(l=a),(b=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=b}n=i===-1||l===-1?null:{start:i,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(th={focusedElem:e,selectionRange:n},Ru=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){t=Ve;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var p=w.memoizedProps,S=w.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?p:Sr(t.type,p),S);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Te(163))}}catch(x){Wt(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}return w=ny,ny=!1,w}function el(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&vh(t,n,s)}o=o.next}while(o!==r)}}function Md(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function yh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Z1(e){var t=e.alternate;t!==null&&(e.alternate=null,Z1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Gr],delete t[Sl],delete t[oh],delete t[AP],delete t[NP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function q1(e){return e.tag===5||e.tag===3||e.tag===4}function ry(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||q1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Eu));else if(r!==4&&(e=e.child,e!==null))for(bh(e,t,n),e=e.sibling;e!==null;)bh(e,t,n),e=e.sibling}function xh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xh(e,t,n),e=e.sibling;e!==null;)xh(e,t,n),e=e.sibling}var cn=null,kr=!1;function Oo(e,t,n){for(n=n.child;n!==null;)Q1(e,t,n),n=n.sibling}function Q1(e,t,n){if(Qr&&typeof Qr.onCommitFiberUnmount=="function")try{Qr.onCommitFiberUnmount(bd,n)}catch{}switch(n.tag){case 5:vn||Ca(n,t);case 6:var r=cn,o=kr;cn=null,Oo(e,t,n),cn=r,kr=o,cn!==null&&(kr?(e=cn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):cn.removeChild(n.stateNode));break;case 18:cn!==null&&(kr?(e=cn,n=n.stateNode,e.nodeType===8?tp(e.parentNode,n):e.nodeType===1&&tp(e,n),yl(e)):tp(cn,n.stateNode));break;case 4:r=cn,o=kr,cn=n.stateNode.containerInfo,kr=!0,Oo(e,t,n),cn=r,kr=o;break;case 0:case 11:case 14:case 15:if(!vn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&vh(n,t,a),o=o.next}while(o!==r)}Oo(e,t,n);break;case 1:if(!vn&&(Ca(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Wt(n,t,i)}Oo(e,t,n);break;case 21:Oo(e,t,n);break;case 22:n.mode&1?(vn=(r=vn)||n.memoizedState!==null,Oo(e,t,n),vn=r):Oo(e,t,n);break;default:Oo(e,t,n)}}function oy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new JP),t.forEach(function(r){var o=cM.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function wr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~s}if(r=o,r=Gt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nM(r/1960))-r,10e?16:e,Yo===null)var r=!1;else{if(e=Yo,Yo=null,Wu=0,ft&6)throw Error(Te(331));var o=ft;for(ft|=4,Ve=e.current;Ve!==null;){var s=Ve,a=s.child;if(Ve.flags&16){var i=s.deletions;if(i!==null){for(var l=0;lGt()-Um?Ms(e,0):Vm|=n),In(e,t)}function sC(e,t){t===0&&(e.mode&1?(t=Mc,Mc<<=1,!(Mc&130023424)&&(Mc=4194304)):t=1);var n=kn();e=Co(e,t),e!==null&&(nc(e,t,n),In(e,n))}function lM(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sC(e,n)}function cM(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Te(314))}r!==null&&r.delete(t),sC(e,n)}var aC;aC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||En.current)$n=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $n=!1,qP(e,t,n);$n=!!(e.flags&131072)}else $n=!1,It&&t.flags&1048576&&c1(t,Lu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;iu(e,t),e=t.pendingProps;var o=Wa(t,bn.current);_a(t,n),o=Am(null,t,r,e,o,n);var s=Nm();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_n(r)?(s=!0,Iu(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Em(t),o.updater=Td,t.stateNode=o,o._reactInternals=t,uh(t,r,e,n),t=ph(null,t,r,!0,s,n)):(t.tag=0,It&&s&&km(t),Sn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(iu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=dM(r),e=Sr(r,e),o){case 0:t=fh(null,t,r,e,n);break e;case 1:t=Jv(null,t,r,e,n);break e;case 11:t=Qv(null,t,r,e,n);break e;case 14:t=Xv(null,t,r,Sr(r.type,e),n);break e}throw Error(Te(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Sr(r,o),fh(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Sr(r,o),Jv(e,t,r,o,n);case 3:e:{if(U1(t),e===null)throw Error(Te(387));r=t.pendingProps,s=t.memoizedState,o=s.element,p1(e,t),ju(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Ga(Error(Te(423)),t),t=ey(e,t,r,n,o);break e}else if(r!==o){o=Ga(Error(Te(424)),t),t=ey(e,t,r,n,o);break e}else for(Kn=qo(t.stateNode.containerInfo.firstChild),Gn=t,It=!0,Pr=null,n=v1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ha(),r===o){t=wo(e,t,n);break e}Sn(e,t,r,n)}t=t.child}return t;case 5:return y1(t),e===null&&ih(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,a=o.children,nh(r,o)?a=null:s!==null&&nh(r,s)&&(t.flags|=32),V1(e,t),Sn(e,t,a,n),t.child;case 6:return e===null&&ih(t),null;case 13:return W1(e,t,n);case 4:return _m(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ya(t,null,r,n):Sn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Sr(r,o),Qv(e,t,r,o,n);case 7:return Sn(e,t,t.pendingProps,n),t.child;case 8:return Sn(e,t,t.pendingProps.children,n),t.child;case 12:return Sn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,Mt(Au,r._currentValue),r._currentValue=a,s!==null)if(Ir(s.value,a)){if(s.children===o.children&&!En.current){t=wo(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var i=s.dependencies;if(i!==null){a=s.child;for(var l=i.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=vo(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),lh(s.return,n,t),i.lanes|=n;break}l=l.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(Te(341));a.lanes|=n,i=a.alternate,i!==null&&(i.lanes|=n),lh(a,n,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Sn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,_a(t,n),o=hr(o),r=r(o),t.flags|=1,Sn(e,t,r,n),t.child;case 14:return r=t.type,o=Sr(r,t.pendingProps),o=Sr(r.type,o),Xv(e,t,r,o,n);case 15:return B1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Sr(r,o),iu(e,t),t.tag=1,_n(r)?(e=!0,Iu(t)):e=!1,_a(t,n),m1(t,r,o),uh(t,r,o,n),ph(null,t,r,!0,e,n);case 19:return H1(e,t,n);case 22:return z1(e,t,n)}throw Error(Te(156,t.tag))};function iC(e,t){return Ix(e,t)}function uM(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dr(e,t,n,r){return new uM(e,t,n,r)}function Km(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dM(e){if(typeof e=="function")return Km(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fm)return 11;if(e===pm)return 14}return 2}function es(e,t){var n=e.alternate;return n===null?(n=dr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function uu(e,t,n,r,o,s){var a=2;if(r=e,typeof e=="function")Km(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case fa:return Rs(n.children,o,s,t);case dm:a=8,o|=8;break;case Op:return e=dr(12,n,t,o|2),e.elementType=Op,e.lanes=s,e;case Lp:return e=dr(13,n,t,o),e.elementType=Lp,e.lanes=s,e;case Ap:return e=dr(19,n,t,o),e.elementType=Ap,e.lanes=s,e;case gx:return $d(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hx:a=10;break e;case mx:a=9;break e;case fm:a=11;break e;case pm:a=14;break e;case Fo:a=16,r=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=dr(a,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Rs(e,t,n,r){return e=dr(7,e,r,t),e.lanes=n,e}function $d(e,t,n,r){return e=dr(22,e,r,t),e.elementType=gx,e.lanes=n,e.stateNode={isHidden:!1},e}function cp(e,t,n){return e=dr(6,e,null,t),e.lanes=n,e}function up(e,t,n){return t=dr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fM(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wf(0),this.expirationTimes=Wf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wf(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gm(e,t,n,r,o,s,a,i,l){return e=new fM(e,t,n,i,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=dr(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Em(s),e}function pM(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dC)}catch(e){console.error(e)}}dC(),cx.exports=er;var Od=cx.exports;const Fc=Eo(Od);var fy=Od;av.createRoot=fy.createRoot,av.hydrateRoot=fy.hydrateRoot;/** - * @remix-run/router v1.9.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function qa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function bM(){return Math.random().toString(36).substr(2,8)}function hy(e,t){return{usr:e.state,key:e.key,idx:t}}function Dl(e,t,n,r){return n===void 0&&(n=null),_t({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ds(t):t,{state:n,key:t&&t.key||r||bM()})}function os(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ds(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function xM(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,a=o.history,i=Jt.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(_t({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){i=Jt.Pop;let S=u(),h=S==null?null:S-c;c=S,l&&l({action:i,location:p.location,delta:h})}function f(S,h){i=Jt.Push;let g=Dl(p.location,S,h);c=u()+1;let C=hy(g,c),x=p.createHref(g);try{a.pushState(C,"",x)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(x)}s&&l&&l({action:i,location:p.location,delta:1})}function b(S,h){i=Jt.Replace;let g=Dl(p.location,S,h);c=u();let C=hy(g,c),x=p.createHref(g);a.replaceState(C,"",x),s&&l&&l({action:i,location:p.location,delta:0})}function w(S){let h=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof S=="string"?S:os(S);return nt(h,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,h)}let p={get action(){return i},get location(){return e(o,a)},listen(S){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(py,d),l=S,()=>{o.removeEventListener(py,d),l=null}},createHref(S){return t(o,S)},createURL:w,encodeLocation(S){let h=w(S);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:f,replace:b,go(S){return a.go(S)}};return p}var Kt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Kt||(Kt={}));const CM=new Set(["lazy","caseSensitive","path","id","index","children"]);function wM(e){return e.index===!0}function Th(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,s)=>{let a=[...n,s],i=typeof o.id=="string"?o.id:a.join("-");if(nt(o.index!==!0||!o.children,"Cannot specify children on an index route"),nt(!r[i],'Found a route id collision on id "'+i+`". Route id's must be globally unique within Data Router usages`),wM(o)){let l=_t({},o,t(o),{id:i});return r[i]=l,l}else{let l=_t({},o,t(o),{id:i,children:void 0});return r[i]=l,o.children&&(l.children=Th(o.children,t,a,r)),l}})}function Sa(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ds(t):t,o=So(r.pathname||"/",n);if(o==null)return null;let s=pC(e);SM(s);let a=null;for(let i=0;a==null&&i{let l={relativePath:i===void 0?s.path||"":i,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};l.relativePath.startsWith("/")&&(nt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Jr([r,l.relativePath]),u=n.concat(l);s.children&&s.children.length>0&&(nt(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),pC(s.children,t,u,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:DM(c,s.index),routesMeta:u})};return e.forEach((s,a)=>{var i;if(s.path===""||!((i=s.path)!=null&&i.includes("?")))o(s,a);else for(let l of hC(s.path))o(s,a,l)}),t}function hC(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let a=hC(r.join("/")),i=[];return i.push(...a.map(l=>l===""?s:[s,l].join("/"))),o&&i.push(...a),i.map(l=>e.startsWith("/")&&l===""?"/":l)}function SM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:EM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const kM=/^:\w+$/,TM=3,PM=2,MM=1,RM=10,$M=-2,my=e=>e==="*";function DM(e,t){let n=e.split("/"),r=n.length;return n.some(my)&&(r+=$M),t&&(r+=PM),n.filter(o=>!my(o)).reduce((o,s)=>o+(kM.test(s)?TM:s===""?MM:RM),r)}function EM(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function _M(e,t){let{routesMeta:n}=e,r={},o="/",s=[];for(let a=0;a{if(u==="*"){let f=i[d]||"";a=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}return c[u]=AM(i[d]||"",u),c},{}),pathname:s,pathnameBase:a,pattern:e}}function OM(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),qa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,i)=>(r.push(i),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function LM(e){try{return decodeURI(e)}catch(t){return qa(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function AM(e,t){try{return decodeURIComponent(e)}catch(n){return qa(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function So(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function NM(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ds(e):e;return{pathname:n?n.startsWith("/")?n:jM(n,t):t,search:BM(r),hash:zM(o)}}function jM(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function dp(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Ld(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Xm(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ds(e):(o=_t({},e),nt(!o.pathname||!o.pathname.includes("?"),dp("?","pathname","search",o)),nt(!o.pathname||!o.pathname.includes("#"),dp("#","pathname","hash",o)),nt(!o.search||!o.search.includes("#"),dp("#","search","hash",o)));let s=e===""||o.pathname==="",a=s?"/":o.pathname,i;if(r||a==null)i=n;else{let d=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}i=d>=0?t[d]:"/"}let l=NM(o,i),c=a&&a!=="/"&&a.endsWith("/"),u=(s||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Jr=e=>e.join("/").replace(/\/\/+/g,"/"),FM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),BM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,zM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,lH=function(t,n){n===void 0&&(n={});let r=typeof n=="number"?{status:n}:n,o=new Headers(r.headers);return o.has("Content-Type")||o.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(t),_t({},r,{headers:o}))};class Jm{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function mC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const gC=["post","put","patch","delete"],VM=new Set(gC),UM=["get",...gC],WM=new Set(UM),HM=new Set([301,302,303,307,308]),YM=new Set([307,308]),fp={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},KM={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Pi={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},vC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,GM=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function ZM(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;nt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let W=e.detectErrorBoundary;o=B=>({hasErrorBoundary:W(B)})}else o=GM;let s={},a=Th(e.routes,o,void 0,s),i,l=e.basename||"/",c=_t({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),u=null,d=new Set,f=null,b=null,w=null,p=e.hydrationData!=null,S=Sa(a,e.history.location,l),h=null;if(S==null){let W=ar(404,{pathname:e.history.location.pathname}),{matches:B,route:Y}=Sy(a);S=B,h={[Y.id]:W}}let g=!S.some(W=>W.route.lazy)&&(!S.some(W=>W.route.loader)||e.hydrationData!=null),C,x={historyAction:e.history.action,location:e.history.location,matches:S,initialized:g,navigation:fp,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||h,fetchers:new Map,blockers:new Map},T=Jt.Pop,y=!1,k,M=!1,$=!1,R=[],E=[],A=new Map,N=0,_=-1,D=new Map,O=new Set,j=new Map,I=new Map,L=new Map,F=!1;function J(){return u=e.history.listen(W=>{let{action:B,location:Y,delta:fe}=W;if(F){F=!1;return}qa(L.size===0||fe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Pe=Ee({currentLocation:x.location,nextLocation:Y,historyAction:B});if(Pe&&fe!=null){F=!0,e.history.go(fe*-1),Ue(Pe,{state:"blocked",location:Y,proceed(){Ue(Pe,{state:"proceeding",proceed:void 0,reset:void 0,location:Y}),e.history.go(fe)},reset(){let _e=new Map(x.blockers);_e.set(Pe,Pi),U({blockers:_e})}});return}return oe(B,Y)}),x.initialized||oe(Jt.Pop,x.location),C}function ie(){u&&u(),d.clear(),k&&k.abort(),x.fetchers.forEach((W,B)=>$e(B)),x.blockers.forEach((W,B)=>He(B))}function ue(W){return d.add(W),()=>d.delete(W)}function U(W){x=_t({},x,W),d.forEach(B=>B(x))}function Q(W,B){var Y,fe;let Pe=x.actionData!=null&&x.navigation.formMethod!=null&&Tr(x.navigation.formMethod)&&x.navigation.state==="loading"&&((Y=W.state)==null?void 0:Y._isRedirect)!==!0,_e;B.actionData?Object.keys(B.actionData).length>0?_e=B.actionData:_e=null:Pe?_e=x.actionData:_e=null;let Be=B.loaderData?wy(x.loaderData,B.loaderData,B.matches||[],B.errors):x.loaderData,je=x.blockers;je.size>0&&(je=new Map(je),je.forEach((lt,Ye)=>je.set(Ye,Pi)));let Ne=y===!0||x.navigation.formMethod!=null&&Tr(x.navigation.formMethod)&&((fe=W.state)==null?void 0:fe._isRedirect)!==!0;i&&(a=i,i=void 0),M||T===Jt.Pop||(T===Jt.Push?e.history.push(W,W.state):T===Jt.Replace&&e.history.replace(W,W.state)),U(_t({},B,{actionData:_e,loaderData:Be,historyAction:T,location:W,initialized:!0,navigation:fp,revalidation:"idle",restoreScrollPosition:wt(W,B.matches||x.matches),preventScrollReset:Ne,blockers:je})),T=Jt.Pop,y=!1,M=!1,$=!1,R=[],E=[]}async function K(W,B){if(typeof W=="number"){e.history.go(W);return}let Y=Ph(x.location,x.matches,l,c.v7_prependBasename,W,B==null?void 0:B.fromRouteId,B==null?void 0:B.relative),{path:fe,submission:Pe,error:_e}=gy(c.v7_normalizeFormMethod,!1,Y,B),Be=x.location,je=Dl(x.location,fe,B&&B.state);je=_t({},je,e.history.encodeLocation(je));let Ne=B&&B.replace!=null?B.replace:void 0,lt=Jt.Push;Ne===!0?lt=Jt.Replace:Ne===!1||Pe!=null&&Tr(Pe.formMethod)&&Pe.formAction===x.location.pathname+x.location.search&&(lt=Jt.Replace);let Ye=B&&"preventScrollReset"in B?B.preventScrollReset===!0:void 0,Ge=Ee({currentLocation:Be,nextLocation:je,historyAction:lt});if(Ge){Ue(Ge,{state:"blocked",location:je,proceed(){Ue(Ge,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),K(W,B)},reset(){let et=new Map(x.blockers);et.set(Ge,Pi),U({blockers:et})}});return}return await oe(lt,je,{submission:Pe,pendingError:_e,preventScrollReset:Ye,replace:B&&B.replace})}function H(){if(Re(),U({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){oe(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}oe(T||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation})}}async function oe(W,B,Y){k&&k.abort(),k=null,T=W,M=(Y&&Y.startUninterruptedRevalidation)===!0,yt(x.location,x.matches),y=(Y&&Y.preventScrollReset)===!0;let fe=i||a,Pe=Y&&Y.overrideNavigation,_e=Sa(fe,B,l);if(!_e){let et=ar(404,{pathname:B.pathname}),{matches:st,route:Fn}=Sy(fe);we(),Q(B,{matches:st,loaderData:{},errors:{[Fn.id]:et}});return}if(x.initialized&&!$&&eR(x.location,B)&&!(Y&&Y.submission&&Tr(Y.submission.formMethod))){Q(B,{matches:_e});return}k=new AbortController;let Be=Ri(e.history,B,k.signal,Y&&Y.submission),je,Ne;if(Y&&Y.pendingError)Ne={[ka(_e).route.id]:Y.pendingError};else if(Y&&Y.submission&&Tr(Y.submission.formMethod)){let et=await me(Be,B,Y.submission,_e,{replace:Y.replace});if(et.shortCircuited)return;je=et.pendingActionData,Ne=et.pendingActionError,Pe=pp(B,Y.submission),Be=new Request(Be.url,{signal:Be.signal})}let{shortCircuited:lt,loaderData:Ye,errors:Ge}=await ye(Be,B,_e,Pe,Y&&Y.submission,Y&&Y.fetcherSubmission,Y&&Y.replace,je,Ne);lt||(k=null,Q(B,_t({matches:_e},je?{actionData:je}:{},{loaderData:Ye,errors:Ge})))}async function me(W,B,Y,fe,Pe){Pe===void 0&&(Pe={}),Re();let _e=oR(B,Y);U({navigation:_e});let Be,je=Rh(fe,B);if(!je.route.action&&!je.route.lazy)Be={type:Kt.error,error:ar(405,{method:W.method,pathname:B.pathname,routeId:je.route.id})};else if(Be=await Mi("action",W,je,fe,s,o,l),W.signal.aborted)return{shortCircuited:!0};if(Oa(Be)){let Ne;return Pe&&Pe.replace!=null?Ne=Pe.replace:Ne=Be.location===x.location.pathname+x.location.search,await se(x,Be,{submission:Y,replace:Ne}),{shortCircuited:!0}}if(rl(Be)){let Ne=ka(fe,je.route.id);return(Pe&&Pe.replace)!==!0&&(T=Jt.Push),{pendingActionData:{},pendingActionError:{[Ne.route.id]:Be.error}}}if(Ts(Be))throw ar(400,{type:"defer-action"});return{pendingActionData:{[je.route.id]:Be.data}}}async function ye(W,B,Y,fe,Pe,_e,Be,je,Ne){let lt=fe||pp(B,Pe),Ye=Pe||_e||Py(lt),Ge=i||a,[et,st]=vy(e.history,x,Y,Ye,B,$,R,E,j,O,Ge,l,je,Ne);if(we(Xe=>!(Y&&Y.some(zt=>zt.route.id===Xe))||et&&et.some(zt=>zt.route.id===Xe)),_=++N,et.length===0&&st.length===0){let Xe=te();return Q(B,_t({matches:Y,loaderData:{},errors:Ne||null},je?{actionData:je}:{},Xe?{fetchers:new Map(x.fetchers)}:{})),{shortCircuited:!0}}if(!M){st.forEach(zt=>{let le=x.fetchers.get(zt.key),re=$i(void 0,le?le.data:void 0);x.fetchers.set(zt.key,re)});let Xe=je||x.actionData;U(_t({navigation:lt},Xe?Object.keys(Xe).length===0?{actionData:null}:{actionData:Xe}:{},st.length>0?{fetchers:new Map(x.fetchers)}:{}))}st.forEach(Xe=>{A.has(Xe.key)&&G(Xe.key),Xe.controller&&A.set(Xe.key,Xe.controller)});let Fn=()=>st.forEach(Xe=>G(Xe.key));k&&k.signal.addEventListener("abort",Fn);let{results:Cn,loaderResults:Dt,fetcherResults:Pt}=await Oe(x.matches,Y,et,st,W);if(W.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",Fn),st.forEach(Xe=>A.delete(Xe.key));let Ot=ky(Cn);if(Ot){if(Ot.idx>=et.length){let Xe=st[Ot.idx-et.length].key;O.add(Xe)}return await se(x,Ot.result,{replace:Be}),{shortCircuited:!0}}let{loaderData:nn,errors:Bn}=Cy(x,Y,et,Dt,Ne,st,Pt,I);I.forEach((Xe,zt)=>{Xe.subscribe(le=>{(le||Xe.done)&&I.delete(zt)})});let rn=te(),zn=De(_),zr=rn||zn||st.length>0;return _t({loaderData:nn,errors:Bn},zr?{fetchers:new Map(x.fetchers)}:{})}function ee(W){return x.fetchers.get(W)||KM}function pe(W,B,Y,fe){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");A.has(W)&&G(W);let Pe=i||a,_e=Ph(x.location,x.matches,l,c.v7_prependBasename,Y,B,fe==null?void 0:fe.relative),Be=Sa(Pe,_e,l);if(!Be){ge(W,B,ar(404,{pathname:_e}));return}let{path:je,submission:Ne,error:lt}=gy(c.v7_normalizeFormMethod,!0,_e,fe);if(lt){ge(W,B,lt);return}let Ye=Rh(Be,je);if(y=(fe&&fe.preventScrollReset)===!0,Ne&&Tr(Ne.formMethod)){X(W,B,je,Ye,Be,Ne);return}j.set(W,{routeId:B,path:je}),he(W,B,je,Ye,Be,Ne)}async function X(W,B,Y,fe,Pe,_e){if(Re(),j.delete(W),!fe.route.action&&!fe.route.lazy){let de=ar(405,{method:_e.formMethod,pathname:Y,routeId:B});ge(W,B,de);return}let Be=x.fetchers.get(W),je=sR(_e,Be);x.fetchers.set(W,je),U({fetchers:new Map(x.fetchers)});let Ne=new AbortController,lt=Ri(e.history,Y,Ne.signal,_e);A.set(W,Ne);let Ye=N,Ge=await Mi("action",lt,fe,Pe,s,o,l);if(lt.signal.aborted){A.get(W)===Ne&&A.delete(W);return}if(Oa(Ge))if(A.delete(W),_>Ye){let de=sa(void 0);x.fetchers.set(W,de),U({fetchers:new Map(x.fetchers)});return}else{O.add(W);let de=$i(_e);return x.fetchers.set(W,de),U({fetchers:new Map(x.fetchers)}),se(x,Ge,{fetcherSubmission:_e})}if(rl(Ge)){ge(W,B,Ge.error);return}if(Ts(Ge))throw ar(400,{type:"defer-action"});let et=x.navigation.location||x.location,st=Ri(e.history,et,Ne.signal),Fn=i||a,Cn=x.navigation.state!=="idle"?Sa(Fn,x.navigation.location,l):x.matches;nt(Cn,"Didn't find any matches after fetcher action");let Dt=++N;D.set(W,Dt);let Pt=$i(_e,Ge.data);x.fetchers.set(W,Pt);let[Ot,nn]=vy(e.history,x,Cn,_e,et,$,R,E,j,O,Fn,l,{[fe.route.id]:Ge.data},void 0);nn.filter(de=>de.key!==W).forEach(de=>{let Le=de.key,tt=x.fetchers.get(Le),Lt=$i(void 0,tt?tt.data:void 0);x.fetchers.set(Le,Lt),A.has(Le)&&G(Le),de.controller&&A.set(Le,de.controller)}),U({fetchers:new Map(x.fetchers)});let Bn=()=>nn.forEach(de=>G(de.key));Ne.signal.addEventListener("abort",Bn);let{results:rn,loaderResults:zn,fetcherResults:zr}=await Oe(x.matches,Cn,Ot,nn,st);if(Ne.signal.aborted)return;Ne.signal.removeEventListener("abort",Bn),D.delete(W),A.delete(W),nn.forEach(de=>A.delete(de.key));let Xe=ky(rn);if(Xe){if(Xe.idx>=Ot.length){let de=nn[Xe.idx-Ot.length].key;O.add(de)}return se(x,Xe.result)}let{loaderData:zt,errors:le}=Cy(x,x.matches,Ot,zn,void 0,nn,zr,I);if(x.fetchers.has(W)){let de=sa(Ge.data);x.fetchers.set(W,de)}let re=De(Dt);x.navigation.state==="loading"&&Dt>_?(nt(T,"Expected pending action"),k&&k.abort(),Q(x.navigation.location,{matches:Cn,loaderData:zt,errors:le,fetchers:new Map(x.fetchers)})):(U(_t({errors:le,loaderData:wy(x.loaderData,zt,Cn,le)},re||nn.length>0?{fetchers:new Map(x.fetchers)}:{})),$=!1)}async function he(W,B,Y,fe,Pe,_e){let Be=x.fetchers.get(W),je=$i(_e,Be?Be.data:void 0);x.fetchers.set(W,je),U({fetchers:new Map(x.fetchers)});let Ne=new AbortController,lt=Ri(e.history,Y,Ne.signal);A.set(W,Ne);let Ye=N,Ge=await Mi("loader",lt,fe,Pe,s,o,l);if(Ts(Ge)&&(Ge=await xC(Ge,lt.signal,!0)||Ge),A.get(W)===Ne&&A.delete(W),lt.signal.aborted)return;if(Oa(Ge))if(_>Ye){let st=sa(void 0);x.fetchers.set(W,st),U({fetchers:new Map(x.fetchers)});return}else{O.add(W),await se(x,Ge);return}if(rl(Ge)){let st=ka(x.matches,B);x.fetchers.delete(W),U({fetchers:new Map(x.fetchers),errors:{[st.route.id]:Ge.error}});return}nt(!Ts(Ge),"Unhandled fetcher deferred data");let et=sa(Ge.data);x.fetchers.set(W,et),U({fetchers:new Map(x.fetchers)})}async function se(W,B,Y){let{submission:fe,fetcherSubmission:Pe,replace:_e}=Y===void 0?{}:Y;B.revalidate&&($=!0);let Be=Dl(W.location,B.location,{_isRedirect:!0});if(nt(Be,"Expected a location on the redirect navigation"),n){let et=!1;if(B.reloadDocument)et=!0;else if(vC.test(B.location)){const st=e.history.createURL(B.location);et=st.origin!==t.location.origin||So(st.pathname,l)==null}if(et){_e?t.location.replace(B.location):t.location.assign(B.location);return}}k=null;let je=_e===!0?Jt.Replace:Jt.Push,{formMethod:Ne,formAction:lt,formEncType:Ye}=W.navigation;!fe&&!Pe&&Ne&<&&Ye&&(fe=Py(W.navigation));let Ge=fe||Pe;if(YM.has(B.status)&&Ge&&Tr(Ge.formMethod))await oe(je,Be,{submission:_t({},Ge,{formAction:B.location}),preventScrollReset:y});else{let et=pp(Be,fe);await oe(je,Be,{overrideNavigation:et,fetcherSubmission:Pe,preventScrollReset:y})}}async function Oe(W,B,Y,fe,Pe){let _e=await Promise.all([...Y.map(Ne=>Mi("loader",Pe,Ne,B,s,o,l)),...fe.map(Ne=>Ne.matches&&Ne.match&&Ne.controller?Mi("loader",Ri(e.history,Ne.path,Ne.controller.signal),Ne.match,Ne.matches,s,o,l):{type:Kt.error,error:ar(404,{pathname:Ne.path})})]),Be=_e.slice(0,Y.length),je=_e.slice(Y.length);return await Promise.all([Ty(W,Y,Be,Be.map(()=>Pe.signal),!1,x.loaderData),Ty(W,fe.map(Ne=>Ne.match),je,fe.map(Ne=>Ne.controller?Ne.controller.signal:null),!0)]),{results:_e,loaderResults:Be,fetcherResults:je}}function Re(){$=!0,R.push(...we()),j.forEach((W,B)=>{A.has(B)&&(E.push(B),G(B))})}function ge(W,B,Y){let fe=ka(x.matches,B);$e(W),U({errors:{[fe.route.id]:Y},fetchers:new Map(x.fetchers)})}function $e(W){let B=x.fetchers.get(W);A.has(W)&&!(B&&B.state==="loading"&&D.has(W))&&G(W),j.delete(W),D.delete(W),O.delete(W),x.fetchers.delete(W)}function G(W){let B=A.get(W);nt(B,"Expected fetch controller: "+W),B.abort(),A.delete(W)}function Z(W){for(let B of W){let Y=ee(B),fe=sa(Y.data);x.fetchers.set(B,fe)}}function te(){let W=[],B=!1;for(let Y of O){let fe=x.fetchers.get(Y);nt(fe,"Expected fetcher: "+Y),fe.state==="loading"&&(O.delete(Y),W.push(Y),B=!0)}return Z(W),B}function De(W){let B=[];for(let[Y,fe]of D)if(fe0}function Ae(W,B){let Y=x.blockers.get(W)||Pi;return L.get(W)!==B&&L.set(W,B),Y}function He(W){x.blockers.delete(W),L.delete(W)}function Ue(W,B){let Y=x.blockers.get(W)||Pi;nt(Y.state==="unblocked"&&B.state==="blocked"||Y.state==="blocked"&&B.state==="blocked"||Y.state==="blocked"&&B.state==="proceeding"||Y.state==="blocked"&&B.state==="unblocked"||Y.state==="proceeding"&&B.state==="unblocked","Invalid blocker state transition: "+Y.state+" -> "+B.state);let fe=new Map(x.blockers);fe.set(W,B),U({blockers:fe})}function Ee(W){let{currentLocation:B,nextLocation:Y,historyAction:fe}=W;if(L.size===0)return;L.size>1&&qa(!1,"A router only supports one blocker at a time");let Pe=Array.from(L.entries()),[_e,Be]=Pe[Pe.length-1],je=x.blockers.get(_e);if(!(je&&je.state==="proceeding")&&Be({currentLocation:B,nextLocation:Y,historyAction:fe}))return _e}function we(W){let B=[];return I.forEach((Y,fe)=>{(!W||W(fe))&&(Y.cancel(),B.push(fe),I.delete(fe))}),B}function ke(W,B,Y){if(f=W,w=B,b=Y||null,!p&&x.navigation===fp){p=!0;let fe=wt(x.location,x.matches);fe!=null&&U({restoreScrollPosition:fe})}return()=>{f=null,w=null,b=null}}function qe(W,B){return b&&b(W,B.map(fe=>fC(fe,x.loaderData)))||W.key}function yt(W,B){if(f&&w){let Y=qe(W,B);f[Y]=w()}}function wt(W,B){if(f){let Y=qe(W,B),fe=f[Y];if(typeof fe=="number")return fe}return null}function Se(W){s={},i=Th(W,o,void 0,s)}return C={get basename(){return l},get state(){return x},get routes(){return a},initialize:J,subscribe:ue,enableScrollRestoration:ke,navigate:K,fetch:pe,revalidate:H,createHref:W=>e.history.createHref(W),encodeLocation:W=>e.history.encodeLocation(W),getFetcher:ee,deleteFetcher:$e,dispose:ie,getBlocker:Ae,deleteBlocker:He,_internalFetchControllers:A,_internalActiveDeferreds:I,_internalSetRoutes:Se},C}function qM(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ph(e,t,n,r,o,s,a){let i,l;if(s!=null&&a!=="path"){i=[];for(let u of t)if(i.push(u),u.route.id===s){l=u;break}}else i=t,l=t[t.length-1];let c=Xm(o||".",Ld(i).map(u=>u.pathnameBase),So(e.pathname,n)||e.pathname,a==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!eg(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Jr([n,c.pathname])),os(c)}function gy(e,t,n,r){if(!r||!qM(r))return{path:n};if(r.formMethod&&!rR(r.formMethod))return{path:n,error:ar(405,{method:r.formMethod})};let o=()=>({path:n,error:ar(400,{type:"invalid-body"})}),s=r.formMethod||"get",a=e?s.toUpperCase():s.toLowerCase(),i=bC(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Tr(a))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((b,w)=>{let[p,S]=w;return""+b+p+"="+S+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:i,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!Tr(a))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:i,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}nt(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=Mh(r.formData),c=r.formData;else if(r.body instanceof FormData)l=Mh(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=xy(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=xy(l)}catch{return o()}let u={formMethod:a,formAction:i,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Tr(u.formMethod))return{path:n,submission:u};let d=ds(n);return t&&d.search&&eg(d.search)&&l.append("index",""),d.search="?"+l,{path:os(d),submission:u}}function QM(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function vy(e,t,n,r,o,s,a,i,l,c,u,d,f,b){let w=b?Object.values(b)[0]:f?Object.values(f)[0]:void 0,p=e.createURL(t.location),S=e.createURL(o),h=b?Object.keys(b)[0]:void 0,C=QM(n,h).filter((T,y)=>{if(T.route.lazy)return!0;if(T.route.loader==null)return!1;if(XM(t.loaderData,t.matches[y],T)||a.some($=>$===T.route.id))return!0;let k=t.matches[y],M=T;return yy(T,_t({currentUrl:p,currentParams:k.params,nextUrl:S,nextParams:M.params},r,{actionResult:w,defaultShouldRevalidate:s||p.pathname+p.search===S.pathname+S.search||p.search!==S.search||yC(k,M)}))}),x=[];return l.forEach((T,y)=>{if(!n.some(E=>E.route.id===T.routeId))return;let k=Sa(u,T.path,d);if(!k){x.push({key:y,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let M=t.fetchers.get(y),$=Rh(k,T.path),R=!1;c.has(y)?R=!1:i.includes(y)?R=!0:M&&M.state!=="idle"&&M.data===void 0?R=s:R=yy($,_t({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:S,nextParams:n[n.length-1].params},r,{actionResult:w,defaultShouldRevalidate:s})),R&&x.push({key:y,routeId:T.routeId,path:T.path,matches:k,match:$,controller:new AbortController})}),[C,x]}function XM(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function yC(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function yy(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function by(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];nt(o,"No route found in manifest");let s={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";qa(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!CM.has(a)&&(s[a]=r[a])}Object.assign(o,s),Object.assign(o,_t({},t(o),{lazy:void 0}))}async function Mi(e,t,n,r,o,s,a,i){i===void 0&&(i={});let l,c,u,d=w=>{let p,S=new Promise((h,g)=>p=g);return u=()=>p(),t.signal.addEventListener("abort",u),Promise.race([w({request:t,params:n.params,context:i.requestContext}),S])};try{let w=n.route[e];if(n.route.lazy)if(w){let p,S=await Promise.all([d(w).catch(h=>{p=h}),by(n.route,s,o)]);if(p)throw p;c=S[0]}else if(await by(n.route,s,o),w=n.route[e],w)c=await d(w);else if(e==="action"){let p=new URL(t.url),S=p.pathname+p.search;throw ar(405,{method:t.method,pathname:S,routeId:n.route.id})}else return{type:Kt.data,data:void 0};else if(w)c=await d(w);else{let p=new URL(t.url),S=p.pathname+p.search;throw ar(404,{pathname:S})}nt(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(w){l=Kt.error,c=w}finally{u&&t.signal.removeEventListener("abort",u)}if(nR(c)){let w=c.status;if(HM.has(w)){let h=c.headers.get("Location");if(nt(h,"Redirects returned/thrown from loaders/actions must have a Location header"),!vC.test(h))h=Ph(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,h);else if(!i.isStaticRequest){let g=new URL(t.url),C=h.startsWith("//")?new URL(g.protocol+h):new URL(h),x=So(C.pathname,a)!=null;C.origin===g.origin&&x&&(h=C.pathname+C.search+C.hash)}if(i.isStaticRequest)throw c.headers.set("Location",h),c;return{type:Kt.redirect,status:w,location:h,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(i.isRouteRequest)throw{type:l===Kt.error?Kt.error:Kt.data,response:c};let p,S=c.headers.get("Content-Type");return S&&/\bapplication\/json\b/.test(S)?p=await c.json():p=await c.text(),l===Kt.error?{type:l,error:new Jm(w,c.statusText,p),headers:c.headers}:{type:Kt.data,data:p,statusCode:c.status,headers:c.headers}}if(l===Kt.error)return{type:l,error:c};if(tR(c)){var f,b;return{type:Kt.deferred,deferredData:c,statusCode:(f=c.init)==null?void 0:f.status,headers:((b=c.init)==null?void 0:b.headers)&&new Headers(c.init.headers)}}return{type:Kt.data,data:c}}function Ri(e,t,n,r){let o=e.createURL(bC(t)).toString(),s={signal:n};if(r&&Tr(r.formMethod)){let{formMethod:a,formEncType:i}=r;s.method=a.toUpperCase(),i==="application/json"?(s.headers=new Headers({"Content-Type":i}),s.body=JSON.stringify(r.json)):i==="text/plain"?s.body=r.text:i==="application/x-www-form-urlencoded"&&r.formData?s.body=Mh(r.formData):s.body=r.formData}return new Request(o,s)}function Mh(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function xy(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function JM(e,t,n,r,o){let s={},a=null,i,l=!1,c={};return n.forEach((u,d)=>{let f=t[d].route.id;if(nt(!Oa(u),"Cannot handle redirect results in processLoaderData"),rl(u)){let b=ka(e,f),w=u.error;r&&(w=Object.values(r)[0],r=void 0),a=a||{},a[b.route.id]==null&&(a[b.route.id]=w),s[f]=void 0,l||(l=!0,i=mC(u.error)?u.error.status:500),u.headers&&(c[f]=u.headers)}else Ts(u)?(o.set(f,u.deferredData),s[f]=u.deferredData.data):s[f]=u.data,u.statusCode!=null&&u.statusCode!==200&&!l&&(i=u.statusCode),u.headers&&(c[f]=u.headers)}),r&&(a=r,s[Object.keys(r)[0]]=void 0),{loaderData:s,errors:a,statusCode:i||200,loaderHeaders:c}}function Cy(e,t,n,r,o,s,a,i){let{loaderData:l,errors:c}=JM(t,n,r,o,i);for(let u=0;ur.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Sy(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ar(e,t){let{pathname:n,routeId:r,method:o,type:s}=t===void 0?{}:t,a="Unknown Server Error",i="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?i="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":s==="defer-action"?i="defer() is not supported in actions":s==="invalid-body"&&(i="Unable to encode submission body")):e===403?(a="Forbidden",i='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",i='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?i="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(i='Invalid request method "'+o.toUpperCase()+'"')),new Jm(e||500,a,new Error(i),!0)}function ky(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Oa(n))return{result:n,idx:t}}}function bC(e){let t=typeof e=="string"?ds(e):e;return os(_t({},t,{hash:""}))}function eR(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ts(e){return e.type===Kt.deferred}function rl(e){return e.type===Kt.error}function Oa(e){return(e&&e.type)===Kt.redirect}function tR(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function nR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function rR(e){return WM.has(e.toLowerCase())}function Tr(e){return VM.has(e.toLowerCase())}async function Ty(e,t,n,r,o,s){for(let a=0;ad.route.id===l.route.id),u=c!=null&&!yC(c,l)&&(s&&s[l.route.id])!==void 0;if(Ts(i)&&(o||u)){let d=r[a];nt(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await xC(i,d,o).then(f=>{f&&(n[a]=f||n[a])})}}}async function xC(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Kt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Kt.error,error:o}}return{type:Kt.data,data:e.deferredData.data}}}function eg(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Rh(e,t){let n=typeof t=="string"?ds(t).search:t.search;if(e[e.length-1].route.index&&eg(n||""))return e[e.length-1];let r=Ld(e);return r[r.length-1]}function Py(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:s,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(s!=null)return{formMethod:t,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function pp(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function oR(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function $i(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function sR(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function sa(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}/** - * React Router v6.16.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),a=v.useRef(!1);return wC(()=>{a.current=!0}),v.useCallback(function(l,c){if(c===void 0&&(c={}),!a.current)return;if(typeof l=="number"){n.go(l);return}let u=Xm(l,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Jr([t,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[t,n,s,o,e])}const lR=v.createContext(null);function cR(e){let t=v.useContext(Ar).outlet;return t&&v.createElement(lR.Provider,{value:e},t)}function cH(){let{matches:e}=v.useContext(Ar),t=e[e.length-1];return t?t.params:{}}function rg(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=v.useContext(Ar),{pathname:o}=Ks(),s=JSON.stringify(Ld(r).map(a=>a.pathnameBase));return v.useMemo(()=>Xm(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function uR(e,t,n){ic()||nt(!1);let{navigator:r}=v.useContext(Io),{matches:o}=v.useContext(Ar),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let i=s?s.pathnameBase:"/";s&&s.route;let l=Ks(),c;c=l;let u=c.pathname||"/",d=i==="/"?u:u.slice(i.length)||"/",f=Sa(e,{pathname:d});return mR(f&&f.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:Jr([i,r.encodeLocation?r.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?i:Jr([i,r.encodeLocation?r.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n)}function dR(){let e=xR(),t=mC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,null)}const fR=v.createElement(dR,null);class pR extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?v.createElement(Ar.Provider,{value:this.props.routeContext},v.createElement(CC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hR(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(ac);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Ar.Provider,{value:t},r)}function mR(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let s=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let i=s.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id]));i>=0||nt(!1),s=s.slice(0,Math.min(s.length,i+1))}return s.reduceRight((i,l,c)=>{let u=l.route.id?a==null?void 0:a[l.route.id]:null,d=null;n&&(d=l.route.errorElement||fR);let f=t.concat(s.slice(0,c+1)),b=()=>{let w;return u?w=d:l.route.Component?w=v.createElement(l.route.Component,null):l.route.element?w=l.route.element:w=i,v.createElement(hR,{match:l,routeContext:{outlet:i,matches:f,isDataRoute:n!=null},children:w})};return n&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?v.createElement(pR,{location:n.location,revalidation:n.revalidation,component:d,error:u,children:b(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):b()},null)}var og=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(og||{}),Or=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Or||{});function kC(e){let t=v.useContext(ac);return t||nt(!1),t}function fi(e){let t=v.useContext(tg);return t||nt(!1),t}function gR(e){let t=v.useContext(Ar);return t||nt(!1),t}function Ad(e){let t=gR(),n=t.matches[t.matches.length-1];return n.route.id||nt(!1),n.route.id}function vR(){return Ad(Or.UseRouteId)}function yR(){return fi(Or.UseNavigation).navigation}function uH(){let e=kC(og.UseRevalidator),t=fi(Or.UseRevalidator);return v.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function bR(){let{matches:e,loaderData:t}=fi(Or.UseMatches);return v.useMemo(()=>e.map(n=>fC(n,t)),[e,t])}function dH(){let e=fi(Or.UseLoaderData),t=Ad(Or.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function fH(){let e=fi(Or.UseActionData);return v.useContext(Ar)||nt(!1),Object.values((e==null?void 0:e.actionData)||{})[0]}function xR(){var e;let t=v.useContext(CC),n=fi(Or.UseRouteError),r=Ad(Or.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function CR(){let{router:e}=kC(og.UseNavigateStable),t=Ad(Or.UseNavigateStable),n=v.useRef(!1);return wC(()=>{n.current=!0}),v.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,$h({fromRouteId:t},s)))},[e,t])}const wR="startTransition",My=wu[wR];function pH(e){let{fallbackElement:t,router:n,future:r}=e,[o,s]=v.useState(n.state),{v7_startTransition:a}=r||{},i=v.useCallback(d=>{a&&My?My(()=>s(d)):s(d)},[s,a]);v.useLayoutEffect(()=>n.subscribe(i),[n,i]);let l=v.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:d=>n.navigate(d),push:(d,f,b)=>n.navigate(d,{state:f,preventScrollReset:b==null?void 0:b.preventScrollReset}),replace:(d,f,b)=>n.navigate(d,{replace:!0,state:f,preventScrollReset:b==null?void 0:b.preventScrollReset})}),[n]),c=n.basename||"/",u=v.useMemo(()=>({router:n,navigator:l,static:!1,basename:c}),[n,l,c]);return v.createElement(v.Fragment,null,v.createElement(ac.Provider,{value:u},v.createElement(tg.Provider,{value:o},v.createElement(kR,{basename:c,location:o.location,navigationType:o.historyAction,navigator:l},o.initialized?v.createElement(SR,{routes:n.routes,state:o}):t))),null)}function SR(e){let{routes:t,state:n}=e;return uR(t,void 0,n)}function hH(e){return cR(e.context)}function kR(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Jt.Pop,navigator:s,static:a=!1}=e;ic()&&nt(!1);let i=t.replace(/^\/*/,"/"),l=v.useMemo(()=>({basename:i,navigator:s,static:a}),[i,s,a]);typeof r=="string"&&(r=ds(r));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:b="default"}=r,w=v.useMemo(()=>{let p=So(c,i);return p==null?null:{location:{pathname:p,search:u,hash:d,state:f,key:b},navigationType:o}},[i,c,u,d,f,b,o]);return w==null?null:v.createElement(Io.Provider,{value:l},v.createElement(ng.Provider,{children:n,value:w}))}new Promise(()=>{});function TR(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:v.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:v.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.16.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}const du="get",hp="application/x-www-form-urlencoded";function Nd(e){return e!=null&&typeof e.tagName=="string"}function PR(e){return Nd(e)&&e.tagName.toLowerCase()==="button"}function MR(e){return Nd(e)&&e.tagName.toLowerCase()==="form"}function RR(e){return Nd(e)&&e.tagName.toLowerCase()==="input"}function $R(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function DR(e,t){return e.button===0&&(!t||t==="_self")&&!$R(e)}function Dh(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function ER(e,t){let n=Dh(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}let Bc=null;function _R(){if(Bc===null)try{new FormData(document.createElement("form"),0),Bc=!1}catch{Bc=!0}return Bc}const IR=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function mp(e){return e!=null&&!IR.has(e)?null:e}function OR(e,t){let n,r,o,s,a;if(MR(e)){let i=e.getAttribute("action");r=i?So(i,t):null,n=e.getAttribute("method")||du,o=mp(e.getAttribute("enctype"))||hp,s=new FormData(e)}else if(PR(e)||RR(e)&&(e.type==="submit"||e.type==="image")){let i=e.form;if(i==null)throw new Error('Cannot submit a