diff --git a/src/evidently/ui/assets/index.html b/src/evidently/ui/assets/index.html index 77919863cd..7a397e7d3c 100644 --- a/src/evidently/ui/assets/index.html +++ b/src/evidently/ui/assets/index.html @@ -11,8 +11,7 @@ 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/DashboardContent-CtUoNzcD.js b/src/evidently/ui/assets/static/js/DashboardContent-CtUoNzcD.js deleted file mode 100644 index 46cfc174a9..0000000000 --- a/src/evidently/ui/assets/static/js/DashboardContent-CtUoNzcD.js +++ /dev/null @@ -1,305 +0,0 @@ -var QD=Object.defineProperty;var e9=(e,t,r)=>t in e?QD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Nc=(e,t,r)=>(e9(e,typeof t!="symbol"?t+"":t,r),r);import{ay as ir,r as $e,az as Or,j as je,aA as qn,aB as t9,aC as n9,aD as r9,aE as Sa,aF as a9,aG as i9,aH as o9,aI as l9,aJ as s9,aK as u9,aL as c9,aM as f9,aN as d9,aO as h9,aP as p9,aQ as g9,aR as m9,aS as v9,aT as y9,aU as b9,aV as bn,aW as wr,aX as _r,aY as wn,T as Cr,aZ as Gt,a_ as Ef,a$ as Vn,b0 as x9,b1 as Tr,b2 as fr,b3 as w9,b4 as gy,b5 as Od,b6 as eS,b7 as tS,b8 as _9,b9 as _l,ba as my,bb as T9,ag as Ad,bc as ro,I as jl,bd as k9,be as M9,bf as nS,bg as S9,bh as oe,bi as C9,G as Jn,a2 as hi,bj as O9,al as A9,aa as rS,bk as P9,bl as sg,am as D9,bm as E9,bn as R9,bo as z2,bp as L9,a as vy,a7 as aS,bq as I9,a8 as A0,br as F9,bs as N9,bt as j9,bu as $9,bv as B9,bw as z9,bx as q9,by as W9,bz as U9,bA as q2,bB as H9,bC as yy,m as V9,R as et,bD as Y9,bE as G9,bF as X9,bG as Z9,bH as K9,bI as J9,bJ as Q9,bK as eE,B as Jr,bL as tE,d as by,bM as nE,bN as rE,_ as iS,X as aE,ar as oS,as as lS,at as Rf,au as Vi,aw as sS,bO as iE,bP as oE,w as xy,bQ as lE,v as sE,bR as uS,bS as cS,bT as uE,bU as cE,bV as fE,bW as dE}from"./vendor-DoRIiF9A.js";import{u as fS}from"./DashboardViewParams-mNv_VOpq.js";import{u as dS,A as wy,a as _y}from"./index-BqCr-mCb.js";var hf=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(hf||{}),hS={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(g){var y=f.getFromId(h,g.xref),v=f.getFromId(h,g.yref),m=f.getRefType(g.xref),b=f.getRefType(g.yref);g._extremes={},m==="range"&&d(g,y),b==="range"&&d(g,v)})}function d(h,p){var g,y=p._id,v=y.charAt(0),m=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(m)],{ppadplus:S,ppadminus:C}),F=f.findExtremes(p,[p.r2c(b)],{ppadplus:Math.max(w,D),ppadminus:Math.max(k,O)});g={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,g=f.findExtremes(p,[p.r2c(m)],{ppadplus:Math.max(w,S,D),ppadminus:Math.max(k,C,O)});h._extremes[y]=g}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 g,y,v,m,b,x,_,w=h._fullLayout.annotations,k=[],T=[],M=[],S=(p||[]).length;for(g=0;g0||g.explicitOff.length>0},onClick:function(h,p){var g,y,v=u(h,p),m=v.on,b=v.off.concat(v.explicitOff),x={},_=h._fullLayout.annotations;if(m.length||b.length){for(g=0;g.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(g.setClipUrl,X?W:null,M);else{var Ve=Y+_e-ye.top,We=Y+ve-ye.left;se.call(v.positionText,We,Ve).call(g.setClipUrl,X?W:null,M)}re.select("rect").call(g.setRect,Y,Y,de,xe),Z.call(g.setRect,U/2,U/2,ue-U,ge-U),ee.call(g.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=g.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(g.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}),m(ee,st)},clickFn:function(Ke,nt){S.captureevents&&M.emit("plotly_clickannotation",pe(nt))},doneFn:function(){m(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"){m={x:+g.attr("x1"),y:+g.attr("y1")},b={x:+g.attr("x2"),y:+g.attr("y2")};var R=m.x-b.x,F=m.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,g.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);m.x-=B,m.y-=$,g.attr({x1:m.x,y1:m.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="'+g+'"]').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,g,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),g=0;g=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 m=l(y).toRgb();return"rgba("+Math.round(m.r)+", "+Math.round(m.g)+", "+Math.round(m.b)+", "+v+")"},u.combine=function(y,v){var m=l(y).toRgb();if(m.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-m.a)+m.r*m.a,g:x.g*(1-m.a)+m.g*m.a,b:x.b*(1-m.a)+m.b*m.a};return l(_).toRgbString()},u.contrast=function(y,v,m){var b=l(y);return b.getAlpha()!==1&&(b=l(u.combine(y,p))),(b.isDark()?v?b.lighten(v):p:m?b.darken(m):h).toString()},u.stroke=function(y,v){var m=l(v);y.style({stroke:u.tinyRGB(m),"stroke-opacity":m.getAlpha()})},u.fill=function(y,v){var m=l(v);y.style({fill:u.tinyRGB(m),"fill-opacity":m.getAlpha()})},u.clean=function(y){if(y&&typeof y=="object"){var v,m,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(m=0;m0?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",g(Math.round(se.l),Math.round(se.t)));var ze,Ne=$.select("."+O.cbtitleunshift).attr("transform",g(-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=m.bBox(ve),ut=It.width,(Je=It.height)>_e&&(wt[1]-=(Je-_e)/2)):zt.node()&&!zt.classed(O.jsPlaceholder)&&(It=m.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",g(wt[0],wt[1])),qe.setScale()}}else ut&&(Oe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Mt.attr("transform",g(wt[0],wt[1])),qe.setScale())}$.selectAll("."+O.cbfills+",."+O.cblines).attr("transform",E?g(0,Math.round(se.h*(1-qe.domain[1]))):g(Math.round(se.w*qe.domain[0]),0)),kt.attr("transform",E?g(0,Math.round(-se.t)):g(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)m.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(m.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=m.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=m.bBox(We)).width,Ve=It.height):(zt=(It=m.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",g(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",g(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=m.bBox(Nt),gt=m.getTranslate($);Vt.each(function(Rt,$t){var Yt=St-1;if($t===0||$t===Yt){var Xt,Bt=m.bBox(this),Wt=m.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+g(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 g,y=(p=p||{}).cLetter||"c",v=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:h==="marker.line"),m="showScaleDflt"in p?p.showScaleDflt:y==="z",b=typeof p.colorscaleDflt=="string"?u[p.colorscaleDflt]:null,x=p.editTypeOverride||"",_=h?h+".":"";"colorAttr"in p?(g=p.colorAttr,p.colorAttr):d(_+(g={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 g==="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:m,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,g=u._fullLayout,y=h.vals,v=h.containerStr,m=v?f.nestedProperty(d,v).get():d,b=s(m),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&&(_=m._colorAx&&l(_)?Math.min(_,T()):T()),w===void 0?w=M():x&&(w=m._colorAx&&l(w)?Math.max(w,M()):M()),x&&k!==void 0&&(w-k>k-_?_=k-(w-k):w-k=0?g.colorscale.sequential:g.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 g=0;g=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 g(){var v=document.createElement("div");v.className="dragcover";var m=v.style;return m.position="fixed",m.left=0,m.right=0,m.top=0,m.bottom=0,m.zIndex=999999999,m.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 m,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);m=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=m,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=g},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,g){(h=s(h))._fullLayout&&f.clear(h._fullLayout._uid+u.HOVERID),d.raw(h,p,g)},d.raw=function(h,p){var g=h._fullLayout,y=h._hoverdata;p||(p={}),p.target&&!h._dragged&&l.triggerHandler(h,"plotly_beforehover",p)===!1||(g._hoverlayer.selectAll("g").remove(),g._hoverlayer.selectAll("line").remove(),g._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),g=n(21081),y=f.strTranslate,v=n(63893),m=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",g=Math.sqrt(2),y=Math.sqrt(3),v=Math.PI,m=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=m(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);m&&C.style("opacity",0).transition().duration(g.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()?m&&(F=F.transition().duration(g.duration).ease(g.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()?m&&(z=z.transition().duration(g.duration).ease(g.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||{},g=l.select(this);g.selectAll("path.yerror").style("stroke-width",h.thickness+"px").call(f.stroke,h.color),p.copy_ystyle&&(p=h),g.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 g=0;g=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 Pn=qe._module.hoverPoints(ze,ct,bt,"closest",{hoverLayer:Oe._hoverlayer});if(Pn&&(Pn=Pn.filter(function(lr){return lr.spikeDistance<=Ee})),Pn&&Pn.length){var xn,Dn=Pn.filter(function(lr){return lr.xa.showspikes&&lr.xa.spikesnap!=="hovered data"});if(Dn.length){var tr=Dn[0];f(tr.x0)&&f(tr.y0)&&(xn=_e(tr),(!kt.vLinePoint||kt.vLinePoint.spikeDistance>xn.spikeDistance)&&(kt.vLinePoint=xn))}var ia=Pn.filter(function(lr){return lr.ya.showspikes&&lr.ya.spikesnap!=="hovered data"});if(ia.length){var fa=ia[0];f(fa.x0)&&f(fa.y0)&&(xn=_e(fa),(!kt.hLinePoint||kt.hLinePoint.spikeDistance>xn.spikeDistance)&&(kt.hLinePoint=xn))}}}}}function ve(Zt,pn,nn){for(var Kt,Cn=null,_n=1/0,Pn=0;Pn0&&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=m.combine(Oe.plot_bgcolor||m.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 Cn,_n,Pn,xn,Dn,tr,ia,fa=pn?"xa":"ya",lr=pn?"ya":"xa",ni=0,Ar=1,ur=Zt.size(),kr=new Array(ur),oa=0,On=Kt.minX,on=Kt.maxX,$n=Kt.minY,Pr=Kt.maxY,Ln=function(Tn){return Tn*nn._invScaleX},Bn=function(Tn){return Tn*nn._invScaleY};function jn(Tn){var Dr=Tn[0],Pa=Tn[Tn.length-1];if(_n=Dr.pmin-Dr.pos-Dr.dp+Dr.size,Pn=Pa.pos+Pa.dp+Pa.size-Dr.pmax,_n>.01){for(Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp+=_n;Cn=!1}if(!(Pn<.01)){if(_n<-.01){for(Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp-=Pn;Cn=!1}if(Cn){var Br=0;for(xn=0;xnDr.pmax&&Br++;for(xn=Tn.length-1;xn>=0&&!(Br<=0);xn--)(tr=Tn[xn]).pos>Dr.pmax-1&&(tr.del=!0,Br--);for(xn=0;xn=0;Dn--)Tn[Dn].dp-=Pn;for(xn=Tn.length-1;xn>=0&&!(Br<=0);xn--)(tr=Tn[xn]).pos+tr.dp+tr.size>Dr.pmax&&(tr.del=!0,Br--)}}}for(Zt.each(function(Tn){var Dr=Tn[fa],Pa=Tn[lr],Br=Dr._id.charAt(0)==="x",Ni=Dr.range;oa===0&&Ni&&Ni[0]>Ni[1]!==Br&&(Ar=-1);var ji=0,vi=Br?nn.width:nn.height;if(nn.hovermode==="x"||nn.hovermode==="y"){var ri,Xa,yi=E(Tn,pn),fs=Tn.anchor,rl=fs==="end"?-1:1;if(fs==="middle")Xa=(ri=Tn.crossPos+(Br?Bn(yi.y-Tn.by/2):Ln(Tn.bx/2+Tn.tx2width/2)))+(Br?Bn(Tn.by):Ln(Tn.bx));else if(Br)Xa=(ri=Tn.crossPos+Bn(R+yi.y)-Bn(Tn.by/2-R))+Bn(Tn.by);else{var ds=Ln(rl*R+yi.x),lo=ds+Ln(rl*Tn.bx);ri=Tn.crossPos+Math.min(ds,lo),Xa=Tn.crossPos+Math.max(ds,lo)}Br?$n!==void 0&&Pr!==void 0&&Math.min(Xa,Pr)-Math.max(ri,$n)>1&&(Pa.side==="left"?(ji=Pa._mainLinePosition,vi=nn.width):vi=Pa._mainLinePosition):On!==void 0&&on!==void 0&&Math.min(Xa,on)-Math.max(ri,On)>1&&(Pa.side==="top"?(ji=Pa._mainLinePosition,vi=nn.height):vi=Pa._mainLinePosition)}kr[oa++]=[{datum:Tn,traceIndex:Tn.trace.index,dp:0,pos:Tn.pos,posref:Tn.posref,size:Tn.by*(Br?P:1)/2,pmin:ji,pmax:vi}]}),kr.sort(function(Tn,Dr){return Tn[0].posref-Dr[0].posref||Ar*(Dr[0].traceIndex-Tn[0].traceIndex)});!Cn&&ni<=ur;){for(ni++,Cn=!0,xn=0;xn.01&&br.pmin===Mr.pmin&&br.pmax===Mr.pmax){for(Dn=Lr.length-1;Dn>=0;Dn--)Lr[Dn].dp+=_n;for(Un.push.apply(Un,Lr),kr.splice(xn+1,1),ia=0,Dn=Un.length-1;Dn>=0;Dn--)ia+=Un[Dn].dp;for(Pn=ia/Un.length,Dn=Un.length-1;Dn>=0;Dn--)Un[Dn].dp-=Pn;Cn=!1}else xn++}kr.forEach(jn)}for(xn=kr.length-1;xn>=0;xn--){var ja=kr[xn];for(Dn=ja.length-1;Dn>=0;Dn--){var _a=ja[Dn],la=_a.datum;la.offset=_a.dp,la.del=_a.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 Cn=nn[Kt],_n=Zt._hoverdata[Kt];if(Cn.curveNumber!==_n.curveNumber||String(Cn.pointNumber)!==String(_n.pointNumber)||String(Cn.pointNumbers)!==String(_n.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||m.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||m.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(g.positionText,re(ge),ie(be)),le.tx2width&&(se.select("text.name").call(g.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=m.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?m.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?m.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 g.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 g=d.legend;function y(v){p.font[v]||(p.font[v]=g?d.legend.font[v]:d.font[v])}d&&s(d.hovermode)&&(p.font||(p.font={}),y("size"),y("family"),y("color"),g?(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,g,y){return f.castOption(p,g,"hoverlabel."+y)},castHoverinfo:function(p,g,y){return f.castOption(p,y,"hoverinfo",function(v){return f.coerceHoverinfo({hoverinfo:v},{_module:p._module},g)})},hover:h.hover,unhover:s.unhover,loneHover:h.loneHover,loneUnhover:function(p){var g=f.isD3Selection(p)?p:l.select(p);g.selectAll("g.hovertext").remove(),g.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(m,b){return l.coerce(d,h,f,m,b)}s(d,h)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var g=h._has("mapbox"),y=h._has("geo"),v=h._basePlotModules.length;h.dragmode==="zoom"&&((g||y)&&v===1||g&&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,m,b){var x=m[b+"axes"],_=Object.keys((v._splomAxes||{})[b]||{});return Array.isArray(x)?x:_.length?_:void 0}function g(v,m,b,x,_,w){var k=m(v+"gap",b),T=m("domain."+v);m(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,m,b,x,_){var w,k=new Array(b);function T(M,S){m.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&&m._splomGridDflt&&(R=m._splomGridDflt.xside,F=m._splomGridDflt.yside),P._domains={x:g("x",$,z,R,O),y:g("y",$,B,F,D,A)}}else delete m.grid}function $(j,N){return l.coerce(b,P,h,j,N)}},contentDefaults:function(v,m){var b=m.grid;if(b&&b._domains){var x,_,w,k,T,M,S,C=v.grid||{},P=m._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&&(m[y]=void 0),(B!==!1||x.uirevision)&&(w("uirevision",m.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(m[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,m){var b,x=m.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(g.stroke,L.bordercolor).call(g.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(m.scrollBarEnterAttrs).call(g.fill,m.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=m.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+m.titlePad))),ne._height=Math.ceil(Math.max(ne._height+lt[1],ne._titleHeight+2*(ke+m.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*m.titlePad-pt):Qe.title.side==="top right"&&(Je=Qe._width-2*it-2*m.titlePad-pt),y.positionText(Ne,it+m.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(m.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*m.scrollBarMargin,Ye=L._height-L._effHeight,at=qe/Ye,lt=Math.min(L._scrollY||0,Ye);le.attr({width:L._width-2*xe+m.scrollBarWidth+m.scrollBarMargin,height:L._effHeight-xe,x:xe/2,y:xe/2}),ie.select("rect").attr({width:L._width-2*xe+m.scrollBarWidth+m.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,m.scrollBarMargin+Ne*it,m.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*m.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(g.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*m.itemGap),y.positionText(pe,re+m.titlePad,re+ie);else{var Oe=2*m.itemGap+V.itemwidth;ee.groupTitle&&(Oe=m.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*m.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=g.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&&g.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._,g=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:m,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,g){if(p.length){var y=p[0][0];if(y){var v=y.getAttribute("d"),m=g.gd,b=m._fullLayout.newselection,x=g.plotinfo,_=x.xaxis,w=x.yaxis,k=g.isActiveSelection,T=g.dragmode,M=(m.layout||{}).selections||[];if(!l(T)&&k!==void 0){var S=m._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=m(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)),g=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:g({},{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,m,b,x,_){var w=y/2,k=_;if(v==="pixel"){var T=x?u.extractPathCoords(x,_?s.paramIsY:s.paramIsX):[m,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 g(y,v,m,b,x){var _=y.type==="category"||y.type==="multicategory"?y.r2c:y.d2c;if(v!==void 0)return[_(v),_(m)];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,m=l.filterVisible(v.shapes);if(m.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&&(g(R),delete R._fullLayout._activeShapeIndex,T(R))}o.exports={draw:T,drawOne:C,eraseActiveShape:function(R){if(S(R)){g(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,m=C+d.x1}else v=p(d.x0),m=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"+m+","+x;if(_==="rect")return"M"+v+","+b+"H"+m+"V"+x+"H"+v+"Z";var D=(v+m)/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),g=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: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: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(g,y,v){function m(k,T){return l.coerce(g,y,s,k,T)}for(var b=f(g,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(g,y,v){function m(b,x){return l.coerce(g,y,s,b,x)}m("visible",f(g,y,{name:"buttons",handleItemDefaults:p}).length>0)&&(m("active"),m("direction"),m("type"),m("showactive"),m("x"),m("y"),l.noneOrAll(g,y,["x","y"]),m("xanchor"),m("yanchor"),m("pad.t"),m("pad.r"),m("pad.b"),m("pad.l"),l.coerceFont(m,"font",v.font),m("bgcolor",v.paper_bgcolor),m("bordercolor"),m("borderwidth"))}function p(g,y){function v(m,b){return l.coerce(g,y,d,m,b)}v("visible",g.method==="skip"||Array.isArray(g.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}o.exports=function(g,y){f(g,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,g=n(18783).LINE_SPACING,y=n(75909),v=n(25849);function m(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,m);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>m&&(j=m-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,g)},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 g=h+this._hbarXMin,y=g+this._hbarTranslateMax;h=(u.constrain(l.event.x,g,y)-g)/(y-g)*(this.position.w-this._box.w)}if(this.vbar){var v=p+this._vbarYMin,m=v+this._vbarTranslateMax;p=(u.constrain(l.event.y,v,m)-v)/(m-v)*(this.position.h-this._box.h)}this.setTranslate(h,p)},d.prototype.setTranslate=function(h,p){var g=this.position.w-this._box.w,y=this.position.h-this._box.h;if(h=u.constrain(h||0,0,g),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/g;this.hbar.call(s.setTranslate,h+v*this._hbarTranslateMax,p)}if(this.vbar){var m=p/y;this.vbar.call(s.setTranslate,h,p+m*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,m){return s(m-v,d)}function g(v,m){if(h(m))return!0;var b,x;m[0](x=f(x,d))&&(x+=d);var _=f(v,d),w=_+d;return _>=b&&_<=x||w>=b&&w<=x}function y(v,m,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,m,b,x,_){return y(null,v,m,b,x,_,0)},pathSector:function(v,m,b,x,_){return y(null,v,m,b,x,_,1)},pathAnnulus:function(v,m,b,x,_,w){return y(v,m,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,g){if(u(h)){if(u(h[0])){for(var y=g,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||g(_);typeof b=="string"&&k.test(b)?x.set(b):x.set(_)},validateFunction:function(b,x){var _=x.dflt;return b===_||typeof b=="string"&&!!g(_).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:g}if(typeof N!="string"&&typeof N!="number")return g;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 g;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 g;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 g}return re?(re.toJD()-x)*y+Y*v+Z*m+X*b:g}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?g: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)!==g};var P=90*y,D=3*v,O=5*m;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 g;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 g;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===g)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/m),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)+` -`+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:g+M*D}}function h(p,g,y,v,m){var b=v*p+m*g;if(b<0)return v*v+m*m;if(b>y){var x=v-p,_=m-g;return x*x+_*_}var w=v*g-m*p;return w*w/y}a.segmentsIntersect=d,a.segmentDistance=function(p,g,y,v,m,b,x,_){if(d(p,g,y,v,m,b,x,_))return 0;var w=y-p,k=v-g,T=x-m,M=_-b,S=w*w+k*k,C=T*T+M*M,P=Math.min(h(w,k,S,m-p,b-g),h(w,k,S,x-p,_-g),h(T,M,C,p-m,g-b),h(T,M,C,y-m,v-b));return Math.sqrt(P)},a.getTextLocation=function(p,g,y,v){if(p===f&&v===s||(l={},f=p,s=v),l[y])return l[y];var m=p.getPointAtLength(u(y-v/2,g)),b=p.getPointAtLength(u(y+v/2,g)),x=Math.atan((b.y-m.y)/(b.x-m.x)),_=p.getPointAtLength(u(y,g)),w={x:(4*_.x+m.x+b.x)/6,y:(4*_.y+m.y+b.y)/6,theta:x};return l[y]=w,w},a.clearLocationCache=function(){f=null},a.getVisibleSegment=function(p,g,y){var v,m,b=g.left,x=g.right,_=g.top,w=g.bottom,k=0,T=p.getTotalLength(),M=T;function S(P){var D=p.getPointAtLength(P);P===0?v=D:P===T&&(m=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-m.x)<.1&&Math.abs(v.y-m.y)<.1}},a.findPointOnPath=function(p,g,y,v){for(var m,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=m:S=m,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,g=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 m=n(73627);y.isTypedArray=m.isTypedArray,y.isArrayOrTypedArray=m.isArrayOrTypedArray,y.isArray1D=m.isArray1D,y.ensureArray=m.ensureArray,y.concat=m.concat,y.maxRowLength=m.maxRowLength,y.minRowLength=m.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,g,y;d=d||"name",h=h||"value";var v={};u&&u.length?(y=l(s,u),g=y.get()):g=s,u=u||"";var m={};if(g)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,m){return function(){var b,x,_,w,k,T=v;for(w=0;w/g),x=0;xg||M===f||Mv||k&&m(w))}:function(w,k){var T=w[0],M=w[1];if(T===f||Tg||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,g=0;function y(v){u.push(v);var m=h.length,b=p;h.splice(g+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 m;return typeof navigator<"u"&&(m=navigator.userAgent),m&&m.headers&&typeof m.headers["user-agent"]=="string"&&(m=m.headers["user-agent"]),m}())!="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;g--){var y=h[g];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;hm}function y(v,m){return v>=m}a.findBin=function(v,m,b){if(l(m.start))return b?Math.ceil((v-m.start)/m.size-d)-1:Math.floor((v-m.start)/m.size+d);var x,_,w=0,k=m.length,T=0,M=k>1?(m[k-1]-m[0])/(k-1):1;for(_=M>=0?b?h:p:b?y:g,v+=M*d*(b?-1:1)*(M>=0?1:-1);w90&&f.log("Long binary search..."),w-1},a.sorterAsc=function(v,m){return v-m},a.sorterDes=function(v,m){return m-v},a.distinctVals=function(v){var m,b=v.slice();for(b.sort(a.sorterAsc),m=b.length-1;m>-1&&b[m]===u;m--);for(var x,_=b[m]-b[0]||1,w=_/(m||1)/1e4,k=[],T=0;T<=m;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,m,b){for(var x,_=0,w=m.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(m)}return x?v:v.reverse()},a.findIndexOfMin=function(v,m){m=m||s;for(var b,x=1/0,_=0;_d.length)&&(h=d.length),l(u)||(u=!1),f(d[0])){for(g=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 g=f.tester.append("image").attr("style",l.STYLE),y=window.getComputedStyle(g.node()).imageRendering;u=h.some(function(v){var m=v[1];return y===m||y===m.toLowerCase()}),g.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(g,"\\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"},m={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?g():d.timer=setTimeout(function(){g(),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],g=0;g0&&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(g),!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=m.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[m.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=m.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 m.draw(we,ke,{skipTitle:!0})}:function(we){return m.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=m.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"],g.getComponentMethod("annotations","convertCoords")(ue,_e,pt,Ne),g.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"),g.getComponentMethod("annotations","convertCoords")(ue,Ft,Vt,Ne),g.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=m.getFromId(ue,ht))&&Qe._constraintGroup;if(yt)for(var qt in ct.calc=!0,yt)it[qt]||(m.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&&(m=v);var x,_=g+"["+m+"]";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),g=n(91424),y=n(92998),v=n(64168),m=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=m.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(g.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),g=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,m){var b,x,_,w;function k(N){return!(N in m)||u.validate(m[N],y[N])}if(m=m||{},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")&&m.width!==null||!k("height")&&m.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(m,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:m.width===null&&l(w.width)&&(A.width=w.width),P?A.height=P:m.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=g,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 g(k,T,M,S,C,P){P=P||[];for(var D=Object.keys(k),O=0;Oz.length&&S.push(m("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(m("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(m("dynamic",C,F.concat(G,W),q,H)):S.push(m("value",C,F.concat(G,W),q))}else S.push(m("array",C,F.concat(G),A[G]));else for(G=0;G1&&P.push(m("object","layout"))),f.supplyDefaults(D);for(var O=D._fullData,R=M.length,F=0;F0&&Math.round(x)===x))return{vals:y};m=x}for(var _=p.calendar,w=v==="start",k=v==="end",T=h[g+"period0"],M=s(T,_)||0,S=[],C=[],P=[],D=y.length,O=0;Oz;)A=u(A,-m,_);for(;A<=z;)A=u(A,m,_);F=u(A,-m,_)}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),g=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-m(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 m(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),g=n(92998),y=n(7901),v=n(91424),m=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?(oa=ur-1,On=ur):(oa=ur,On=ur);var on,$n=lr[oa].value,Pr=lr[On].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(ni.rangebreaks&&jn>0){for(var Lr=0,br=0;br<84;br++){var Mr=(br+.5)/84;ni.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",Cn=1;ve.tickmode==="auto"&&(Cn=ve.tickfont?ve.tickfont.size:12);var _n=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 Pn=ve.c2p(Dt[Ve].value);(Kt?_n>Pn-Cn:_nFt||DnFt&&(xn.periodX=Ft),Dn10||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(On,on){return On.autoshift?on[On.overlaying][On.side]:On.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?On.bottom-jn:0,Un))));var Lr=0,br=0;if(_e._shiftPusher&&(Lr=Math.max(Un,On.height>0?Ln==="l"?jn-On.left:On.right-jn:0),_e.title.text!==st._dfltTitle[tt]&&(br=(_e._titleStandoff||0)+(_e._titleScoot||0),Ln==="l"&&(br+=ct(_e))),_e._fullDepth=Math.max(Lr,br)),_e.automargin){on={x:0,y:0,r:0,l:0,t:0,b:0};var Mr=[0,1],ja=typeof _e._shift=="number"?_e._shift:0;if(tt==="x"){if(Ln==="b"?on[Ln]=_e._depth:(on[Ln]=_e._depth=Math.max(On.width>0?jn-On.top:0,Un),Mr.reverse()),On.width>0){var _a=On.right-(_e._offset+_e._length);_a>0&&(on.xr=1,on.r=_a);var la=_e._offset-On.left;la>0&&(on.xl=0,on.l=la)}}else if(Ln==="l"?(_e._depth=Math.max(On.height>0?jn-On.left:0,Un),on[Ln]=_e._depth-ja):(_e._depth=Math.max(On.height>0?On.right-jn:0,Un),on[Ln]=_e._depth+ja,Mr.reverse()),On.height>0){var Tn=On.bottom-(_e._offset+_e._length);Tn>0&&(on.yb=0,on.b=Tn);var Dr=_e._offset-On.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 oa(On){var on=mt+(On||"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),br=v.bBox(Lr.node().parentNode);Ln=Math.min(Ln,br.top),Bn=Math.max(Bn,br.bottom),jn=Math.min(jn,br.left),Un=Math.max(Un,br.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,m))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),m(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),g(C,P,D,O),q){var H=O.isMinor;O.isMinor=!0,g(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(g,y){var v,m,b,x=y.dataAttr||g._id.charAt(0),_={};if(y.axData)v=y.axData;else for(v=[],m=0;mS?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&&m.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(g.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=g),f.noneOrAll(s.domain,u.domain,g),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,g=l(f);u("tickprefix")&&u("showtickprefix",g),u("ticksuffix",p)&&u("showticksuffix",g)}},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 g,y=u("range"),v=s.getAutorangeDflt(y,d),m=u("autorange",v);!y||(y[0]!==null||y[1]!==null)&&(y[0]!==null&&y[1]!==null||m!=="reversed"&&m!==!0)&&(y[0]===null||m!=="min"&&m!=="max reversed")&&(y[1]===null||m!=="max"&&m!=="min reversed")||(y=void 0,delete s.range,s.autorange=!0,g=!0),g||(m=u("autorange",v=s.getAutorangeDflt(y,d))),m&&(l(u,m,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,g=s.dateTime2ms,y=s.ensureNumber,v=s.isArrayOrTypedArray,m=n(50606),b=m.FP_SAFE,x=m.BADNUM,_=m.LOG_CLIP,w=m.ONEWEEK,k=m.ONEDAY,T=m.ONEHOUR,M=m.ONEMIN,S=m.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=g(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=g(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;reg.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),g=l(d,"box-violin"),y=l(d._fullInput||{},"candlestick");return g&&!y&&h===p&&d[p]===void 0&&d[p+"0"]===void 0}o.exports=function(d,h,p,g){p("autotypenumbers",g.autotypenumbersDflt),p("type",(g.splomStash||{}).type)==="-"&&(function(y,v){if(y.type==="-"){var m,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(m=0;m0?".":"")+m;f.isPlainObject(b)?h(b,g,x,v+1):g(x,m,b)}})}a.manageCommandObserver=function(p,g,y,v){var m={},b=!0;g&&g._commandObserver&&(m=g._commandObserver),m.cache||(m.cache={}),m.lookupTable={};var x=a.hasSimpleAPICommandBindings(p,y,m.lookupTable);if(g&&g._commandObserver){if(x)return m;if(g._commandObserver.remove)return g._commandObserver.remove(),g._commandObserver=null,m}if(x){s(p,x,m.cache),m.check=function(){if(b){var k=s(p,x,m.cache);return k.changed&&v&&m.lookupTable[k.value]!==void 0&&(m.disable(),Promise.resolve(v({value:k.value,type:x.type,prop:x.prop,traces:x.traces,index:m.lookupTable[k.value]})).then(m.enable,m.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],m.check);m.remove=function(){for(var k=0;k<_.length;k++)p._removeInternalListener(_[k],m.check)}}else f.log("Unable to automatically bind plot updates to API command"),m.lookupTable={},m.remove=function(){};return m.disable=function(){b=!1},m.enable=function(){b=!0},g&&(g._commandObserver=m),m},a.hasSimpleAPICommandBindings=function(p,g,y){var v,m,b=g.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(g.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=g.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=g.constrain(H-ee.l-ee.r,2,se),ze=g.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=m.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=g.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(g.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&&!g.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)}):g.isTypedArray(ie)?g.simpleMap(ie,g.identity):g.isJSDate(ie)?g.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"),g(_,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),g=n(91424),y=n(21994),v=n(1426).extendFlat,m=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(),g.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(g.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),g=n(10820),y=h.extendFlat,v=h.extendDeepAll;function m(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[g]].title={text:""});for(g=0;g")!==-1?"":F.html(z).text()});return F.remove(),A}(O)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(g,"'"),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;Bg))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,m){var b=m.mcc||v.marker.color,x=m.mlcc||v.marker.line.color,_=d(v,m);return s.opacity(b)?b:s.opacity(x)&&_?x:void 0}o.exports={hoverPoints:function(v,m,b,x,_){var w=g(v,m,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:g,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 g(T,M){return s.coerce(d,h,u,T,M)}for(var y=!1,v=!1,m=!1,b={},x=g("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(xn){return g(tn,tn.c2l(xn),!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,g(Bt,Bt.c2l(pn),!0).text);var Cn=s.castOption($t,nn.i,"text");(Cn===0||Cn)&&(Kt.text=Cn),Kt.value=nn.s,Kt.valueLabel=Kt[Wt+"Label"]=Zt(nn.s);var _n={};M(_n,$t,nn.i),(cn||_n.x===void 0)&&(_n.x=sn?Kt.value:Kt.label),(cn||_n.y===void 0)&&(_n.y=sn?Kt.label:Kt.value),(cn||_n.xLabel===void 0)&&(_n.xLabel=sn?Kt.valueLabel:Kt.labelLabel),(cn||_n.yLabel===void 0)&&(_n.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 Pn=s.castOption($t,nn.i,"customdata");return Pn&&(Kt.customdata=Pn),s.texttemplateString(Yt,Kt,Tt._d3locale,_n,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(Pn){return g($t?At:Lt,+Pn,!0).text}var Wt,tn,cn=Rt.textinfo,ln=Tt[Ot],an=cn.split("+"),sn=[],Zt=function(Pn){return an.indexOf(Pn)!==-1};if(Zt("label")&&sn.push((tn=Tt[Ot].p,g($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 Cn=0;Zt("percent initial")&&Cn++,Zt("percent previous")&&Cn++,Zt("percent total")&&Cn++;var _n=Cn>1;Zt("percent initial")&&(Wt=s.formatPercent(ln.begR),_n&&(Wt+=" of initial"),sn.push(Wt)),Zt("percent previous")&&(Wt=s.formatPercent(ln.difR),_n&&(Wt+=" of previous"),sn.push(Wt)),Zt("percent total")&&(Wt=s.formatPercent(ln.sumR),_n&&(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),g=f.c2p(s?n.p1:n.s1,!0);return u?[(d+h)/2,(p+g)/2]:s?[h,(p+g)/2]:[(d+h)/2,g]}o.exports=function(n,l){var f,s=n.cd,u=n.xaxis,d=n.yaxis,h=s[0].trace,p=h.type==="funnel",g=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,g,y){var v=p("marker.color",g),m=f(d,"marker");m&&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,m),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),g=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:m(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=m(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 g(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 m(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,g,y){var v,m,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(m=0;m0?(D="v",O=F>0?Math.min(z,A):Math.min(A)):F>0?(D="h",O=Math.min(z)):O=0;if(O){m._length=O;var W=b("orientation",D);m._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,m,["x","y"],x)}else m.visible=!1}function y(v,m,b,x){var _=x.prefix,w=l.coerce2(v,m,p,"marker.outliercolor"),k=b("marker.line.outliercolor"),T="outliers";m._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",m.line.color),b("marker.line.color"),b("marker.line.width"),M==="suspectedoutliers"&&(b("marker.line.outliercolor",m.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 m.marker;var S=b("hoveron");S!=="all"&&S.indexOf("points")===-1||b("hovertemplate"),l.coerceSelectionMarkerOpacity(m,b)}o.exports={supplyDefaults:function(v,m,b,x){function _(O,R){return l.coerce(v,m,p,O,R)}if(g(v,m,_,x),m.visible!==!1){u(v,m,x,_),_("xhoverformat"),_("yhoverformat");var w=m._hasPreCompStats;w&&(_("lowerfence"),_("upperfence")),_("line.color",(v.marker||{}).color||b),_("line.width"),_("fillcolor",s.addOpacity(m.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,m,_,{prefix:"box"})}},crossTraceDefaults:function(v,m){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,m,b)}function h(p,g,y,v){var m,b,x=g.val,_=g.pos,w=!!_.rangebreaks,k=v.bPos,T=v.bPosPxOffset||0,M=y.boxmean||(y.meanline||{}).visible;Array.isArray(v.bdPos)?(m=v.bdPos[0],b=v.bdPos[1]):(m=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-m)+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,g,y,v){var m=p._context.staticPlot,b=g.xaxis,x=g.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,m),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,g=-1/0,y=1/0;for(l=0;l":b>g&&(f.prefixBoundary=!0);break;case"<":(bg||f.starts.length&&m===y)&&(f.prefixBoundary=!0);break;case"][":v=Math.min(b[0],b[1]),m=Math.max(b[0],b[1]),vg&&(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,g=d.line,y=p.size||1,v=p.coloring,m=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=m);h._line={color:v==="lines"?m:g.color,width:p.showlines!==!1?g.width:0,dash:g.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,g=h.COMPARISON_OPS2;o.exports=function(y,v,m,b,x,_){var w,k,T,M=v.contours,S=m("contours.operation");M._operation=p[S],function(C,P){var D;g.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))}(m,M),S==="="?w=M.showlines=!0:(w=m("contours.showlines"),T=m("fillcolor",u((y.line||{}).color||x,.5))),w&&(k=m("line.color",T&&d(T)?u(v.fillcolor,1):x),m("line.width",2),m("line.dash")),m("line.smoothing"),f(m,b,k,_)}},64237:function(o,a,n){var l=n(74808),f=n(92770);function s(h,p){var g,y=Array.isArray(p);function v(m){return f(m)?+m:null}return l.COMPARISON_OPS2.indexOf(h)!==-1?g=v(y?p[0]:p):l.INTERVAL_OPS.indexOf(h)!==-1?g=y?[v(p[0]),v(p[1])]:[v(p),v(p)]:l.SET_OPS.indexOf(h)!==-1&&(g=y?p.map(v):[v(p)]),g}function u(h){return function(p){p=s(h,p);var g=Math.min(p[0],p[1]),y=Math.max(p[0],p[1]);return{start:g,end:y,size:y-g}}}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,g=function(m){return m.reverse()},y=function(m){return m};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,g,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,g,p),w=[d(h,p,[-_[0],-_[1]])],k=h.z.length,T=h.z[0].length,M=p.slice(),S=_.slice();for(m=0;m<1e4;m++){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]||g&&C)break;x=h.crossings[b]}m===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(m=1;m=ee;m--)if((P=te[m])=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)/g)+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,g,y,v,m,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,m=h.start,b=h.end,x=u._input.contours;m>b&&(h.start=x.start=b,b=h.end=x.end=m,m=h.start),h.size>0||(v=m===b?1:s(m,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 g=l.select(this),y=p[0].trace,v=y.contours,m=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;g.selectAll("g.contourlevel").each(function(C){l.select(this).selectAll("path").call(f.lineGroupStyle,m.width,w?T(C.level):m.color,m.dash)});var M=v.labelfont;if(g.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):m.color)})}),_)g.selectAll("g.contourfill path").style("fill",y.fillcolor);else if(k){var S;g.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),g.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 g,y=d("contours.coloring"),v="";y==="fill"&&(g=d("contours.showlines")),g!==!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),g=n(1426).extendFlat;o.exports=g({z:{valType:"data_array",editType:"calc"},x:g({},l.x,{impliedEdits:{xtype:"array"}}),x0:g({},l.x0,{impliedEdits:{xtype:"scaled"}}),dx:g({},l.dx,{impliedEdits:{xtype:"scaled"}}),y:g({},l.y,{impliedEdits:{ytype:"array"}}),y0:g({},l.y0,{impliedEdits:{ytype:"scaled"}}),dy:g({},l.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:g({},l.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:g({},l.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:g({},l.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:g({},l.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:g({},l.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:g({},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:g({},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),g=n(4742),y=n(824),v=n(43907),m=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--)(g=((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,g],x.splice(p,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(h in y)b[h]=y[h],m.push(y[h])}return m.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,g,y){y||(y={});var v,m,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,g=1;for(u(d,h),p=0;p.01;p++)g=u(d,h,s(g));return g>.01&&l.log("interp2d didn't converge quickly",g),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,g){var y,v,m,b=[],x=l.traceIs(s,"contour"),_=l.traceIs(s,"histogram"),w=l.traceIs(s,"gl2d");if(f(u)&&u.length>1&&!_&&g.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]],m=1;m0;)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=m(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,Cn){var _n=pn[Kt.bin0];if(_n===void 0)return lt(void 0,1);var Pn,xn=pn[Kt.bin1],Dn=nn[Kt.bin0],tr=nn[Kt.bin1],ia=xn-_n||0,fa=Dn-_n||0;return Pn=xn===void 0?tr===void 0?0:Dn===void 0?2*(tr-_n):2*(2*tr-Dn-_n)/3:tr===void 0?Dn===void 0?0:2*(2*_n-xn-Dn)/3:Dn===void 0?2*(2*tr-xn-_n)/3:tr+_n-xn-Dn,lt(_n+Kt.frac*ia+Cn.frac*(fa+Kt.frac*Pn))}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=g({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 m(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=g(W,B,!1,T);(W+G)/2<$+x&&(W=G)}return j&&S?g(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),g=n(42174),y=n(40965);function v(m,b,x,_,w){var k,T,M,S,C,P,D,O=_+"bins",R=m._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(m,b){var x,_,w,k,T=[],M=[],S=b.orientation==="h",C=u.getFromId(m,S?b.yaxis:b.xaxis),P=S?"y":"x",D={x:"y",y:"x"}[P],O=b[P+"calendar"],R=b.cumulative,F=v(m,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"}],g=["x","y"];o.exports=function(y,v){var m,b,x,_,w,k,T,M=v._histogramBinOpts={},S=[],C={},P=[];function D(H,V){return l.coerce(m._input,m,m._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*g.dy),0)>0)){var m,b=Math.floor((d-p.x0)/g.dx),x=Math.floor(Math.abs(h-p.y0)/g.dy);if(g._hasZ?m=p.z[x][b]:g._hasSource&&(m=g._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(b,x,1,1).data),m){var _,w=p.hi||g.hoverinfo;if(w){var k=w.split("+");k.indexOf("all")!==-1&&(k=["color"]),k.indexOf("color")!==-1&&(_=!0)}var T,M=s.colormodel[g.colormodel],S=M.colormodel||g.colormodel,C=S.length,P=g._scaler(m),D=M.suffix,O=[];(g.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(g.hovertext)&&Array.isArray(g.hovertext[x])?T=g.hovertext[x][b]:Array.isArray(g.text)&&Array.isArray(g.text[x])&&(T=g.text[x][b]);var R=v.c2p(p.y0+(x+.5)*g.dy),F=p.x0+(b+.5)*g.dx,A=p.y0+(x+.5)*g.dy,z="["+m.slice(0,g.colormodel.length).join(", ")+"]";return[f.extendFlat(u,{index:[x,b],x0:y.c2p(p.x0+b*g.dx),x1:y.c2p(p.x0+(b+1)*g.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(g,y,v,m){var b=y.xaxis,x=y.yaxis,_=!g._context._exportedPlot&&h();f.makeTraceGroups(m,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})});g._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}),(g.type==="funnelarea"?D:g.sort)&&m.sort(function(z,B){return B.v-z.v}),m[0]&&(m[0].vTotal=P),m},crossTraceCalc:function(p,g){var y=(g||{}).type;y||(y="pie");var v=p._fullLayout,m=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:m,hasValues:b,len:x}}function g(y,v,m,b,x){b("marker.line.width")&&b("marker.line.color",x?void 0:m.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=m.paper_bgcolor)}o.exports={handleLabelsAndValues:p,handleMarkerDefaults:g,supplyDefaults:function(y,v,m,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,g(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,m(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",g(ce.x,ce.y)+p(Math.min(1,ce.scale))+g(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,g=l.select(this);g.style({opacity:p.opacity}),g.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 g=h.marker.line,y=f(g.color,d.pts)||l.defaultLine,v=f(g.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),g=n(565),y=n(49508),v=n(11058),m=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=g(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,g,y){y||(y={});var v=(u.marker||{}).color;g("line.color",h),f(u,"line")?s(u,d,p,g,{prefix:"line.",cLetter:"c"}):g("line.color",!l(v)&&v||h),g("line.width"),y.noDash||g("line.dash"),y.backoff&&g("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),g=p.segmentsIntersect,y=p.constrain,v=n(47581);o.exports=function(m,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=m.length,le=new Array(ie),se=0;function pe(Je){var ut=m[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=g(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=m.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=m,m++),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,g,y,v){var m=u.isBubble(d),b=(d.line||{}).color;v=v||{},b&&(p=b),y("marker.symbol"),y("marker.opacity",m?.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,g,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:m?l.background:l.defaultLine),f(d,"marker.line")&&s(d,h,g,y,{prefix:"marker.line.",cLetter:"c"}),y("marker.line.width",m?1:0)),m&&(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,g){if(g||(g={x:!0,y:!0}),g.x){var y=p("xperiod");y&&(p("xperiod0",s(y,d.xcalendar)),p("xperiodalignment"))}if(g.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),g=n(34621),y=n(68687),v=n(61082).tester;function m(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=g(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){m(b,R,x,O,D,this,k)})})):M.each(function(O,R){m(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,g=f.cd,y=f.xaxis,v=f.yaxis,m=[],b=g[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,g={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=g,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}}}(m,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,m),A=0;A<_;A++)P(b[A])?(z(C,A),O[R++]=F(A)):T&&R++;m._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,m.prototype),ne}function m(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"),!m.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 m.from(xe,ne,de);var ue=function(ge){if(m.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 m.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(m.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=m.from(ne,xe)),m.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(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}}),m.poolSize=8192,m.from=function(J,ne,de){return b(J,ne,de)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array),m.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)},m.allocUnsafe=function(J){return _(J)},m.allocUnsafeSlow=function(J){return _(J)},m.isBuffer=function(J){return J!=null&&J._isBuffer===!0&&J!==m.prototype},m.compare=function(J,ne){if(Se(J,Uint8Array)&&(J=m.from(J,J.offset,J.byteLength)),Se(ne,Uint8Array)&&(ne=m.from(ne,ne.offset,ne.byteLength)),!m.isBuffer(J)||!m.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?(m.isBuffer(ge)||(ge=m.from(ge)),ge.copy(xe,ue)):Uint8Array.prototype.set.call(xe,ge,ue);else{if(!m.isBuffer(ge))throw new TypeError('"list" argument must be an Array of Buffers');ge.copy(xe,ue)}ue+=ge.length}return xe},m.byteLength=M,m.prototype._isBuffer=!0,m.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+=" ... "),""},g&&(m.prototype[g]=m.prototype.inspect),m.prototype.compare=function(J,ne,de,xe,ue){if(Se(J,Uint8Array)&&(J=m.from(J,J.offset,J.byteLength)),!m.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}},m.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(!m.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}m.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},m.prototype.readUint8=m.prototype.readUInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),this[J]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]|this[J+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]<<8|this[J+1]},m.prototype.readUint32LE=m.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]},m.prototype.readUint32BE=m.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])},m.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},m.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},m.prototype.readInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),128&this[J]?-1*(255-this[J]+1):this[J]},m.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},m.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},m.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},m.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]},m.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)},m.prototype.readFloatBE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),p.read(this,J,!1,23,4)},m.prototype.readDoubleLE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!0,52,8)},m.prototype.readDoubleBE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!1,52,8)},m.prototype.writeUintLE=m.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},m.prototype.writeUint8=m.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},m.prototype.writeUint16LE=m.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},m.prototype.writeUint16BE=m.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},m.prototype.writeUint32LE=m.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},m.prototype.writeUint32BE=m.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},m.prototype.writeBigUInt64LE=ce(function(J){return H(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeBigUInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.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},m.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},m.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},m.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},m.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},m.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},m.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},m.prototype.writeBigInt64LE=ce(function(J){return H(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeBigInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeFloatLE=function(J,ne,de){return ee(this,J,ne,!0,de)},m.prototype.writeFloatBE=function(J,ne,de){return ee(this,J,ne,!1,de)},m.prototype.writeDoubleLE=function(J,ne,de){return U(this,J,ne,!0,de)},m.prototype.writeDoubleBE=function(J,ne,de){return U(this,J,ne,!1,de)},m.prototype.copy=function(J,ne,de,xe){if(!m.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 g(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,m=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){m.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 vn(en){Jt(),en({type:"zoom",scale:Fe.k,translate:[Fe.x,Fe.y]})}function kn(en){--vt||(en({type:"zoomend"}),K=null)}function yn(){var en=this,fn=Pt.of(en,arguments),En=0,In=s.select(g(en)).on(dt,function(){En=1,Ht(s.mouse(en),Wn),vn(fn)}).on(xt,function(){In.on(dt,null).on(xt,null),cr(En),kn(fn)}),Wn=ft(s.mouse(en)),cr=lt(en);Rc.call(en),gn(fn)}function Nn(){var en,fn=this,En=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 da(){var Xr=s.touches(fn);return en=Fe.k,Xr.forEach(function(Nr){Nr.identifier in In&&(In[Nr.identifier]=ft(Nr))}),Xr}function Ka(){var Xr=s.event.target;s.select(Xr).on(Ir,ii).on(Sr,oi),Vr.push(Xr);for(var Nr=s.event.changedTouches,va=0,ya=Nr.length;va1){xi=Ta[0];var Bi=Ta[1],Fc=xi[0]-Bi[0],B2=xi[1]-Bi[1];Wn=Fc*Fc+B2*B2}}function ii(){var Xr,Nr,va,ya,Ta=s.touches(fn);Rc.call(fn);for(var Ba=0,xi=Ta.length;Ba360?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 Cn(){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 _n(){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(){Cn(),_n()},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=Pn,ae=xn;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-br(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 Tn(K),ae=Ln(K.site),kr.insert(Le,ae),Le.edge=ae.edge=Br(K.site,Le.site),la(K),void la(ae);if(ae){Tn(K),Tn(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};Ni(ae.edge,Fe,Ct,ft),Le.edge=Br(Fe,I,null,ft),ae.edge=Br(I,Ct,null,ft),la(K),la(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 br(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 ja(I,K){return K.angle-I.angle}function _a(){ri(this),this.x=this.y=this.arc=this.site=this.cy=null}function la(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 _a;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=On._;_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}On.insert(Pt,ot),Pt||(oa=ot)}}}}function Tn(I){var K=I.circle;K&&(K.P||(oa=K.N),On.remove(K),$n.push(K),ri(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 ji((Jt=rt.site,gn=ot,vn=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 rl(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 rl(Pe(Le)).cells.forEach(function(He,Xe){for(var rt,vt,Ct,dt,xt=He.site,ot=He.edges.sort(ja),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:bi(ae,fe)})),me=Wp.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(yn,Nn,Yn,dr,en,fn,En,In){if(!isNaN(Yn)&&!isNaN(dr))if(yn.leaf){var Wn=yn.x,cr=yn.y;if(Wn!=null)if(C(Wn-Yn)+C(cr-dr)<.01)vn(yn,Nn,Yn,dr,en,fn,En,In);else{var Ir=yn.point;yn.x=yn.y=yn.point=null,vn(yn,Ir,Wn,cr,en,fn,En,In),vn(yn,Nn,Yn,dr,en,fn,En,In)}else yn.x=Yn,yn.y=dr,yn.point=Nn}else vn(yn,Nn,Yn,dr,en,fn,En,In)}function vn(yn,Nn,Yn,dr,en,fn,En,In){var Wn=.5*(en+En),cr=.5*(fn+In),Ir=Yn>=Wn,Sr=dr>=cr,Vr=Sr<<1|Ir;yn.leaf=!1,Ir?en=Wn:En=Wn,Sr?fn=cr:In=cr,gn(yn=yn.nodes[Vr]||(yn.nodes[Vr]={leaf:!0,nodes:[],point:null,x:null,y:null}),Nn,Yn,dr,en,fn,En,In)}Qt>Jt?Pt=xt+Qt:ot=dt+Jt;var kn={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(yn){gn(kn,yn,+_t(yn,++vt),+ft(yn,vt),dt,xt,ot,Pt)}};if(kn.visit=function(yn){hs(yn,kn,dt,xt,ot,Pt)},kn.find=function(yn){return function(Nn,Yn,dr,en,fn,En,In){var Wn,cr=1/0;return function Ir(Sr,Vr,Fr,Yr,da){if(!(Vr>En||Fr>In||Yr=Ta)<<1|Yn>=ya,xi=Ba+4;Ba=0&&!(ae=s.interpolators[fe](I,K)););return ae}function kc(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 KP(I){return 1-Math.cos(I*ut)}function JP(I){return Math.pow(2,10*(I-1))}function QP(I){return 1-Math.sqrt(1-I*I)}function eD(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 Vx(I,K){return K-=I,function(ae){return Math.round(I+K*ae)}}function Yx(I){var K,ae,fe,he=[I.a,I.b],me=[I.c,I.d],Ce=Xx(he),Pe=Gx(he,me),Le=Xx(((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=VP.get(fe)||Wx,he=YP.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=Vx,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 Yx(fe?fe.matrix:tD)})(I)},Yx.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var tD={a:1,b:0,c:0,d:1,e:0,f:0};function al(I){return I.length?I.pop()+",":""}function Zx(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:bi(he[0],me[0])},{i:Le-2,x:bi(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(al(Ce)+"rotate(",null,")")-2,x:bi(he,me)})):me&&Ce.push(al(Ce)+"rotate("+me+")")}(I.rotate,K.rotate,ae,fe),function(he,me,Ce,Pe){he!==me?Pe.push({i:Ce.push(al(Ce)+"skewX(",null,")")-2,x:bi(he,me)}):me&&Ce.push(al(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(al(Ce)+"scale(",null,",",null,")");Pe.push({i:Le-4,x:bi(he[0],me[0])},{i:Le-2,x:bi(he[1],me[1])})}else me[0]===1&&me[1]===1||Ce.push(al(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],vn=Le[1];for(ft=0;ft=0;)ae.push(he[fe])}function ai(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 ai(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&&(gs(he,function(me){me.children&&(me.value=0)}),ai(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 _D(I){return I.reduce(TD,0)}function TD(I,K){return I+K[1]}function kD(I,K){return e2(I,Math.ceil(Math.log(K.length)/Math.LN2+1))}function e2(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 MD(I){return[s.min(I),s.max(I)]}function SD(I,K){return I.value-K.value}function Vp(I,K){var ae=I._pack_next;I._pack_next=K,K._pack_prev=I,K._pack_next=ae,ae._pack_prev=K}function t2(I,K){I._pack_next=K,K._pack_prev=I}function n2(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 r2(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(CD),(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(i2(ae,fe,he=K[2]),_t(he),Vp(ae,he),ae._pack_prev=he,Vp(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 e2(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(SD),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,ai(Le,function(vt){vt.r=+Xe(vt.value)}),ai(Le,r2),ae){var rt=ae*(I?1:Math.max(2*Le.r/Fe,2*Le.r/He))/2;ai(Le,function(vt){vt.r+=rt}),ai(Le,r2),ai(Le,function(vt){vt.r-=rt})}return a2(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},ps(he,K)},s.layout.tree=function(){var I=s.layout.hierarchy().sort(null).value(null),K=o2,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,vn=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);gs(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=Gp(_t),ot=Yp(ot),_t&&ot;)ft=Yp(ft),(Pt=Gp(Pt)).a=vt,(xt=_t.z+Qt-ot.z-Ut+K(_t._,ot._))>0&&(AD(PD(_t,vt,dt),vt,xt),Ut+=xt,Ht+=xt),Qt+=_t.m,Ut+=ot.m,Jt+=ft.m,Ht+=Pt.m;_t&&!Gp(Pt)&&(Pt.t=_t,Pt.m+=Qt-Ht),ot&&!Yp(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},ps(he,I)},s.layout.cluster=function(){var I=s.layout.hierarchy().sort(null).value(null),K=o2,ae=[1,1],fe=!1;function he(me,Ce){var Pe,Le=I.call(this,me,Ce),Fe=Le[0],He=0;ai(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=l2(Fe),rt=s2(Fe),vt=Xe.x-K(Xe,rt)/2,Ct=rt.x+K(rt,Xe)/2;return ai(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},ps(he,I)},s.layout.treemap=function(){var I,K=s.layout.hierarchy(),ae=Math.round,fe=[1,1],he=null,me=Xp,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?RD:DD,Fe=fe?rD:nD;return he=Le(I,K,Fe,ae),me=Le(K,I,Fe,so),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(Vx)},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 Jp(I,Le)},Pe.tickFormat=function(Le,Fe){return d3_scale_linearTickFormat(I,Le,Fe)},Pe.nice=function(Le){return h2(I,Le),Ce()},Pe.copy=function(){return f2(I,K,ae,fe)},Ce()}function d2(I,K){return s.rebind(I,K,"range","rangeRound","interpolate","clamp")}function h2(I,K){return Zp(I,c2(Kp(I,K)[2])),Zp(I,c2(Kp(I,K)[2])),I}function Kp(I,K){K==null&&(K=10);var ae=Mc(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 Jp(I,K){return s.range.apply(s,Kp(I,K))}function p2(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=Zp(fe.map(he),ae?Math:LD);return I.domain(Pe),fe=Pe.map(me),Ce},Ce.ticks=function(){var Pe=Mc(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 p2(I.copy(),K,ae,fe)},d2(Ce,I)}s.scale.linear=function(){return f2([0,1],[0,1],so,!1)},s.scale.log=function(){return p2(s.scale.linear().domain([0,1]),10,!0,[1,10])};var LD={floor:function(I){return-Math.ceil(-I)},ceil:function(I){return-Math.floor(-I)}};function g2(I,K,ae){var fe=Cc(K),he=Cc(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 Jp(ae,Ce)},me.tickFormat=function(Ce,Pe){return d3_scale_linearTickFormat(ae,Ce,Pe)},me.nice=function(Ce){return me.domain(h2(ae,Ce))},me.exponent=function(Ce){return arguments.length?(fe=Cc(K=Ce),he=Cc(1/K),I.domain(ae.map(fe)),me):K},me.copy=function(){return g2(I.copy(),K,ae)},d2(me,I)}function Cc(I){return function(K){return K<0?-Math.pow(-K,I):Math.pow(K,I)}}function m2(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,vn,kn=0,yn=0,Nn=[];if((Pt=(+Ce.apply(this,arguments)||0)/2)&&(ot=fe===Oc?Math.sqrt(Fe*Fe+He*He):+fe.apply(this,arguments),Ct||(yn*=-1),He&&(yn=Mt(ot/He*Math.sin(Pt))),Fe&&(kn=Mt(ot/Fe*Math.sin(Pt)))),He){_t=He*Math.cos(Xe+yn),ft=He*Math.sin(Xe+yn),Ut=He*Math.cos(rt-yn),Ht=He*Math.sin(rt-yn);var Yn=Math.abs(rt-Xe-2*yn)<=it?0:1;if(yn&&Ac(_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-kn),Jt=Fe*Math.sin(rt-kn),gn=Fe*Math.cos(Xe+kn),vn=Fe*Math.sin(Xe+kn);var en=Math.abs(Xe-rt+2*kn)<=it?0:1;if(kn&&Ac(Qt,Jt,gn,vn)===1-Ct^en){var fn=(Xe+rt)/2;Qt=Fe*Math.cos(fn),Jt=Fe*Math.sin(fn),gn=vn=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 Pc(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,vn=Ht-Ct,kn=Qt-dt,yn=Jt-Ct,Nn=gn-dt;return vn*vn+kn*kn>yn*yn+Nn*Nn&&(Ht=Jt,Qt=gn),[[Ht-Le,Qt-Fe],[Ht*ae/_t,Qt*ae/_t]]}function T2(){return!0}function k2(I){var K=Pn,ae=xn,fe=T2,he=Za,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":eg,"step-after":tg,basis:S2,"basis-open":function(I){if(I.length<4)return Za(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($a($i,me)+","+$a($i,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 Za(I){return I.length>1?I.join("L"):I+"Z"}function M2(I){return I.join("L")+"Z"}function eg(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=D2,K=E2,ae=R2;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=R2,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=HD,K=UD;function ae(fe,he){return(I2.get(I.call(this,fe,he))||L2)(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 I2=s.map({circle:L2,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*F2)),ae=K*F2;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/Ec),ae=K*Ec/2;return"M0,"+ae+"L"+K+","+-ae+" "+-K+","+-ae+"Z"},"triangle-up":function(I){var K=Math.sqrt(I/Ec),ae=K*Ec/2;return"M0,"+-ae+"L"+K+","+ae+" "+-K+","+ae+"Z"}});s.svg.symbolTypes=I2.keys();var Ec=Math.sqrt(3),F2=Math.tan(30*pt);se.transition=function(I){for(var K,ae,fe=uo||++j2,he=og(I),me=[],Ce=Lc||{time:Date.now(),ease:ZP,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?uo?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),vn=s.mouse(ot),kn=s.select(g(ot)).on("keydown.brush",function(){s.event.keyCode==32&&(Jt||(dt=null,vn[0]-=me[1],vn[1]-=Ce[1],Jt=2),ee())}).on("keyup.brush",function(){s.event.keyCode==32&&Jt==2&&(vn[0]+=me[1],vn[1]+=Ce[1],Jt=0,ee())});if(s.event.changedTouches?kn.on("touchmove.brush",Yn).on("touchend.brush",en):kn.on("mousemove.brush",Yn).on("mouseup.brush",en),ft.interrupt().selectAll("*").interrupt(),Jt)vn[0]=me[0]-vn[0],vn[1]=Ce[0]-vn[1];else if(Ut){var yn=+/w$/.test(Ut),Nn=+/^n/.test(Ut);xt=[me[1-yn]-vn[0],Ce[1-Nn]-vn[1]],vn[0]=me[yn],vn[1]=Ce[Nn]}else s.event.altKey&&(dt=vn.slice());function Yn(){var fn=s.mouse(ot),En=!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]),vn[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&&g($,z.prototype),$},p.apply(null,arguments)}function g(D,O){return g=Object.setPrototypeOf||function(R,F){return R.__proto__=F,R},g(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 m=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 m(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(` -`),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],` - -`)+"".concat(le[0]," !== ").concat(se[0],` -`)}else if(U!=="strictEqualObject"&&Se<(l.stderr&&l.stderr.isTTY?l.stderr.columns:80)){for(;le[0][pe]===se[0][pe];)pe++;pe>2&&(Te=` - `.concat(function(we,ke){if(ke=Math.floor(ke),we.length==0||ke==0)return"";var Ae=we.length*ke;for(ke=Math.floor(Math.log(ke)/Math.log(2));ke;)we+=we,ke--;return we+we.substring(0,Ae-we.length)}(" ",pe),"^"),pe=0)}}for(var Oe=le[le.length-1],Me=se[se.length-1];Oe===Me&&(pe++<2?X=` - `.concat(Oe).concat(X):Q=Oe,le.pop(),se.pop(),le.length!==0&&se.length!==0);)Oe=le[le.length-1],Me=se[se.length-1];var ce=Math.max(le.length,se.length);if(ce===0){var ye=ie.split(` -`);if(ye.length>30)for(ye[26]="".concat(_,"...").concat(T);ye.length>27;)ye.pop();return"".concat(M.notIdentical,` - -`).concat(ye.join(` -`),` -`)}pe>3&&(X=` -`.concat(_,"...").concat(T).concat(X),re=!0),Q!==""&&(X=` - `.concat(Q).concat(X),Q="");var J=0,ne=M[U]+` -`.concat(w,"+ actual").concat(T," ").concat(k,"- expected").concat(T),de=" ".concat(_,"...").concat(T," Lines skipped");for(pe=0;pe1&&pe>2&&(xe>4?(Y+=` -`.concat(_,"...").concat(T),re=!0):xe>3&&(Y+=` - `.concat(se[pe-2]),J++),Y+=` - `.concat(se[pe-1]),J++),Z=pe,Q+=` -`.concat(k,"-").concat(T," ").concat(se[pe]),J++;else if(se.length1&&pe>2&&(xe>4?(Y+=` -`.concat(_,"...").concat(T),re=!0):xe>3&&(Y+=` - `.concat(le[pe-2]),J++),Y+=` - `.concat(le[pe-1]),J++),Z=pe,Y+=` -`.concat(w,"+").concat(T," ").concat(le[pe]),J++;else{var ue=se[pe],ge=le[pe],be=ge!==ue&&(!x(ge,",")||ge.slice(0,-1)!==ue);be&&x(ue,",")&&ue.slice(0,-1)===ge&&(be=!1,ge+=","),be?(xe>1&&pe>2&&(xe>4?(Y+=` -`.concat(_,"...").concat(T),re=!0):xe>3&&(Y+=` - `.concat(le[pe-2]),J++),Y+=` - `.concat(le[pe-1]),J++),Z=pe,Y+=` -`.concat(w,"+").concat(T," ").concat(ge),Q+=` -`.concat(k,"-").concat(T," ").concat(ue),J+=2):(Y+=Q,Q="",xe!==1&&pe!==0||(Y+=` - `.concat(ge),J++))}if(J>20&&pe30)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,` - -`).concat(L.join(` -`),` -`)))}else{var q=C(N),H="",V=M[$];$==="notDeepEqual"||$==="notEqual"?(q="".concat(M[$],` - -`).concat(q)).length>1024&&(q="".concat(q.slice(0,1021),"...")):(H="".concat(C(E)),q.length>512&&(q="".concat(q.slice(0,509),"...")),H.length>512&&(H="".concat(H.slice(0,509),"...")),$==="deepEqual"||$==="equal"?q="".concat(V,` - -`).concat(q,` - -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&&g(A,z)}(O,D),R=O,F=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:m.custom,value:function(A,z){return m(this,function(B){for(var $=1;$2?"one of ".concat(v," ").concat(y.slice(0,m-1).join(", "),", or ")+y[m-1]:m===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,m){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(g(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(g(v,"type"))}return _+". Received type ".concat(l(m))},TypeError),p("ERR_INVALID_ARG_VALUE",function(y,v){var m=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(m,". Received ").concat(b)},TypeError),p("ERR_INVALID_RETURN_VALUE",function(y,v,m){var b;return b=m&&m.constructor&&m.constructor.name?"instance of ".concat(m.constructor.name):"type ".concat(l(m)),"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),m=0;m0,"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[]},g=Number.isNaN?Number.isNaN:n(15567);function y(Z){return Z.call.bind(Z)}var v=y(Object.prototype.hasOwnProperty),m=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?m-4:m;for(y=0;y>16&255,x[_++]=g>>8&255,x[_++]=255&g;return b===2&&(g=l[p.charCodeAt(y)]<<2|l[p.charCodeAt(y+1)]>>4,x[_++]=255&g),b===1&&(g=l[p.charCodeAt(y)]<<10|l[p.charCodeAt(y+1)]<<4|l[p.charCodeAt(y+2)]>>2,x[_++]=g>>8&255,x[_++]=255&g),x},a.fromByteArray=function(p){for(var g,y=p.length,v=y%3,m=[],b=16383,x=0,_=y-v;x<_;x+=b)m.push(h(p,x,x+b>_?_:x+b));return v===1?(g=p[y-1],m.push(n[g>>2]+n[g<<4&63]+"==")):v===2&&(g=(p[y-2]<<8)+p[y-1],m.push(n[g>>10]+n[g>>4&63]+n[g<<2&63]+"=")),m.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 g=p.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=p.indexOf("=");return y===-1&&(y=g),[y,y===g?0:4-y%4]}function h(p,g,y){for(var v,m,b=[],x=g;x>18&63]+n[m>>12&63]+n[m>>6&63]+n[63&m]);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),g=f("%Math.max%");if(p)try{p({},"a",{value:1})}catch{p=null}o.exports=function(v){var m=d(l,u,arguments);return h&&p&&h(m,"length").configurable&&p(m,"length",{value:1+g(0,v.length-(arguments.length-1))}),m};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 g(_){return _}var y,v,m=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?g:(w=m.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?g:function(A){return function(z){return z.replace(/[0-9]/g,function(B){return A[+B]})}}(m.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 g(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=g(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?g(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,g(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 m,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)}m=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=m.format,m.parse,x=m.utcFormat,m.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 m},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 g},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 g},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,g=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,m=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 g(y){return u(y=arguments.length===0?new Date:new Date(+y)),y}return g.floor=function(y){return u(y=new Date(+y)),y},g.ceil=function(y){return u(y=new Date(y-1)),d(y,1),u(y),y},g.round=function(y){var v=g(y),m=g.ceil(y);return y-v0))return x;do x.push(b=new Date(+y)),d(y,m),u(y);while(b=v)for(;u(v),!y(v);)v.setTime(v-1)},function(v,m){if(v>=v)if(m<0)for(;++m<=0;)for(;d(v,-1),!y(v););else for(;--m>=0;)for(;d(v,1),!y(v););})},h&&(g.count=function(y,v){return l.setTime(+y),f.setTime(+v),u(l),u(f),Math.floor(h(l,f))},g.every=function(y){return y=Math.floor(y),isFinite(y)&&y>0?y>1?g.filter(p?function(v){return p(v)%y==0}:function(v){return g.count(0,v)%y==0}):g:null}),g}},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 m},b3:function(){return p},fz:function(){return k},g4:function(){return v},hB:function(){return g},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),g=s(4),y=s(5),v=s(6),m=u.range,b=d.range,x=h.range,_=p.range,w=g.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 g},mC:function(){return y},sy:function(){return h},vm:function(){return m},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),g=s(4),y=s(5),v=s(6),m=u.range,b=d.range,x=h.range,_=p.range,w=g.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,g=function(v,m,b,x){if(m in v){if(x===!0){if(v[m]===b)return}else if(typeof(_=x)!="function"||s.call(_)!=="[object Function]"||!x())return}var _;p?d(v,m,{configurable:!0,enumerable:!1,value:b,writable:!0}):v[m]=b},y=function(v,m){var b=arguments.length>2?arguments[2]:{},x=l(m);f&&(x=u.call(x,Object.getOwnPropertySymbols(m)));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 g(){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=g.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):m.call(_,w)},s.prototype.listenerCount=m,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(g,y,v){for(var m=0,b=g.length;m"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%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%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%":m,"%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%":g,"%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===m&&(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],g=n[7],y=n[8],v=n[9],m=n[10],b=n[11],x=n[12],_=n[13],w=n[14],k=n[15];return a[0]=h*(m*k-b*w)-v*(p*k-g*w)+_*(p*b-g*m),a[1]=-(f*(m*k-b*w)-v*(s*k-u*w)+_*(s*b-u*m)),a[2]=f*(p*k-g*w)-h*(s*k-u*w)+_*(s*g-u*p),a[3]=-(f*(p*b-g*m)-h*(s*b-u*m)+v*(s*g-u*p)),a[4]=-(d*(m*k-b*w)-y*(p*k-g*w)+x*(p*b-g*m)),a[5]=l*(m*k-b*w)-y*(s*k-u*w)+x*(s*b-u*m),a[6]=-(l*(p*k-g*w)-d*(s*k-u*w)+x*(s*g-u*p)),a[7]=l*(p*b-g*m)-d*(s*b-u*m)+y*(s*g-u*p),a[8]=d*(v*k-b*_)-y*(h*k-g*_)+x*(h*b-g*v),a[9]=-(l*(v*k-b*_)-y*(f*k-u*_)+x*(f*b-u*v)),a[10]=l*(h*k-g*_)-d*(f*k-u*_)+x*(f*g-u*h),a[11]=-(l*(h*b-g*v)-d*(f*b-u*v)+y*(f*g-u*h)),a[12]=-(d*(v*w-m*_)-y*(h*w-p*_)+x*(h*m-p*v)),a[13]=l*(v*w-m*_)-y*(f*w-s*_)+x*(f*m-s*v),a[14]=-(l*(h*w-p*_)-d*(f*w-s*_)+x*(f*p-s*h)),a[15]=l*(h*m-p*v)-d*(f*m-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],g=a[8],y=a[9],v=a[10],m=a[11],b=a[12],x=a[13],_=a[14],w=a[15];return(n*d-l*u)*(v*w-m*_)-(n*h-f*u)*(y*w-m*x)+(n*p-s*u)*(y*_-v*x)+(l*h-f*d)*(g*w-m*b)-(l*p-s*d)*(g*_-v*b)+(f*p-s*h)*(g*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,g=l*d,y=f*d,v=f*h,m=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]=m-w,a[3]=0,a[4]=y-k,a[5]=1-g-x,a[6]=b+_,a[7]=0,a[8]=m+w,a[9]=b-_,a[10]=1-g-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],g=Math.sqrt(d*d+h*h+p*p);return Math.abs(g)<1e-6?null:(d*=g=1/g,h*=g,p*=g,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,g=u+u,y=f*h,v=f*p,m=f*g,b=s*p,x=s*g,_=u*g,w=d*h,k=d*p,T=d*g;return a[0]=1-(b+_),a[1]=v+T,a[2]=m-k,a[3]=0,a[4]=v-T,a[5]=1-(y+_),a[6]=x+w,a[7]=0,a[8]=m+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),g=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)*g,a[11]=-1,a[12]=0,a[13]=0,a[14]=d*u*2*g,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],g=n[7],y=n[8],v=n[9],m=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*g-u*d,C=f*p-s*h,P=f*g-u*h,D=s*g-u*p,O=y*_-v*x,R=y*w-m*x,F=y*k-b*x,A=v*w-m*_,z=v*k-b*_,B=m*k-b*w,$=T*B-M*z+S*A+C*F-P*R+D*O;return $?($=1/$,a[0]=(h*B-p*z+g*A)*$,a[1]=(s*z-f*B-u*A)*$,a[2]=(_*D-w*P+k*C)*$,a[3]=(m*P-v*D-b*C)*$,a[4]=(p*F-d*B-g*R)*$,a[5]=(l*B-s*F+u*R)*$,a[6]=(w*S-x*D-k*M)*$,a[7]=(y*D-m*S+b*M)*$,a[8]=(d*z-h*F+g*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+m*T)*$,a):null}},65551:function(o,a,n){var l=n(71551);o.exports=function(f,s,u,d){var h,p,g,y,v,m,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*_,g=S*x-C*b,(w=Math.sqrt(h*h+p*p+g*g))?(h*=w=1/w,p*=w,g*=w):(h=0,p=0,g=0),y=x*g-_*p,v=_*h-b*g,m=b*p-x*h,(w=Math.sqrt(y*y+v*v+m*m))?(y*=w=1/w,v*=w,m*=w):(y=0,v=0,m=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]=g,f[9]=m,f[10]=_,f[11]=0,f[12]=-(h*k+p*T+g*M),f[13]=-(y*k+v*T+m*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],g=n[6],y=n[7],v=n[8],m=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*m+P*w,a[2]=M*u+S*g+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*m+P*w,a[6]=M*u+S*g+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*m+P*w,a[10]=M*u+S*g+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*m+P*w,a[14]=M*u+S*g+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),g=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*g,a[11]=0,a[12]=(n+l)*h,a[13]=(s+f)*p,a[14]=(d+u)*g,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),g=2/(s+u);return a[0]=p,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=g,a[6]=0,a[7]=0,a[8]=-(d-h)*p*.5,a[9]=(s-u)*g*.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,g,y,v,m,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],g=n[2],y=n[3],v=n[4],m=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+m*S+w*C,a[2]=g*M+b*S+k*C,a[3]=y*M+x*S+T*C,a[4]=h*P+v*D+_*O,a[5]=p*P+m*D+w*O,a[6]=g*P+b*D+k*O,a[7]=y*P+x*D+T*O,a[8]=h*R+v*F+_*A,a[9]=p*R+m*F+w*A,a[10]=g*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],g=n[8],y=n[9],v=n[10],m=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+g*f,a[5]=d*s+y*f,a[6]=h*s+v*f,a[7]=p*s+m*f,a[8]=g*s-u*f,a[9]=y*s-d*f,a[10]=v*s-h*f,a[11]=m*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],g=n[8],y=n[9],v=n[10],m=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-g*f,a[1]=d*s-y*f,a[2]=h*s-v*f,a[3]=p*s-m*f,a[8]=u*f+g*s,a[9]=d*f+y*s,a[10]=h*f+v*s,a[11]=p*f+m*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],g=n[4],y=n[5],v=n[6],m=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+g*f,a[1]=d*s+y*f,a[2]=h*s+v*f,a[3]=p*s+m*f,a[4]=g*s-u*f,a[5]=y*s-d*f,a[6]=v*s-h*f,a[7]=m*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,g,y,v,m,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],g=n[6],y=n[7],v=n[8],m=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]=g,a[7]=y,a[8]=v,a[9]=m,a[10]=b,a[11]=x,a[12]=f*_+h*w+v*k+n[12],a[13]=s*_+p*w+m*k+n[13],a[14]=u*_+g*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,g=(1<>1,v=-7,m=f?u-1:0,b=f?-1:1,x=n[l+m];for(m+=b,d=x&(1<<-v)-1,x>>=-v,v+=p;v>0;d=256*d+n[l+m],m+=b,v-=8);for(h=d&(1<<-v)-1,d>>=-v,v+=s;v>0;h=256*h+n[l+m],m+=b,v-=8);if(d===0)d=1-y;else{if(d===g)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,g,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*(g=Math.pow(2,-h))<1&&(h--,g*=2),(l+=h+m>=1?b/g:b*Math.pow(2,1-m))*g>=2&&(h++,g/=2),h+m>=v?(p=0,h=v):h+m>=1?(p=(l*g-1)*Math.pow(2,u),h+=m):(p=l*Math.pow(2,m-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(m){m!==n&&(f=null)}else f=null;var s=/^\s*class\b/,u=function(m){try{var b=l.call(m);return s.test(b)}catch{return!1}},d=function(m){try{return!u(m)&&(l.call(m),!0)}catch{return!1}},h=Object.prototype.toString,p=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var v=document.all;h.call(v)===h.call(document.all)&&(y=function(m){if((g||!m)&&(m===void 0||typeof m=="object"))try{var b=h.call(m);return(b==="[object HTMLAllCollection]"||b==="[object HTML document.all class]"||b==="[object HTMLCollection]"||b==="[object Object]")&&m("")==null}catch{}return!1})}o.exports=f?function(m){if(y(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;try{f(m,null,a)}catch(b){if(b!==n)return!1}return!u(m)&&d(m)}:function(m){if(y(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;if(p)return d(m);if(u(m))return!1;var b=h.call(m);return!(b!=="[object Function]"&&b!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(b))&&d(m)}},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 g=function(){if(!d)return!1;try{return Function("return function*() {}")()}catch{}}();l=!!g&&h(g)}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,g=f(),y=s("Array.prototype.indexOf",!0)||function(x,_){for(var w=0;w-1}return!!h&&function(w){var k=!1;return l(m,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,g=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 m(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"||!m)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(g){var y=g.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<(m-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),g=!1,y=s();function v(m,b,x){var _=l.segments(m),w=l.segments(b),k=x(l.combine(_,w));return l.polygon(k)}l={buildLog:function(m){return m===!0?g=f():m===!1&&(g=!1),g!==!1&&g.list},epsilon:function(m){return y.epsilon(m)},segments:function(m){var b=u(!0,y,g);return m.regions.forEach(b.addRegion),{segments:b.calculate(m.inverted),inverted:m.inverted}},combine:function(m,b){return{combined:u(!1,y,g).calculate(m.segments,m.inverted,b.segments,b.inverted),inverted1:m.inverted,inverted2:b.inverted}},selectUnion:function(m){return{segments:h.union(m.combined,g),inverted:m.inverted1||m.inverted2}},selectIntersect:function(m){return{segments:h.intersect(m.combined,g),inverted:m.inverted1&&m.inverted2}},selectDifference:function(m){return{segments:h.difference(m.combined,g),inverted:m.inverted1&&!m.inverted2}},selectDifferenceRev:function(m){return{segments:h.differenceRev(m.combined,g),inverted:!m.inverted1&&m.inverted2}},selectXor:function(m){return{segments:h.xor(m.combined,g),inverted:m.inverted1!==m.inverted2}},polygon:function(m){return{regions:d(m.segments,y,g),inverted:m.inverted}},polygonFromGeoJSON:function(m){return p.toPolygon(l,m)},polygonToGeoJSON:function(m){return p.fromPolygon(l,y,m)},union:function(m,b){return v(m,b,l.selectUnion)},intersect:function(m,b){return v(m,b,l.selectIntersect)},difference:function(m,b){return v(m,b,l.selectDifference)},differenceRev:function(m,b){return v(m,b,l.selectDifferenceRev)},xor:function(m,b){return v(m,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],g=l[0];return(h-u)*(l[1]-d)-(p-d)*(g-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],g=h*d+u*p;return!(g-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]),g=1;g0})}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:m,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:m,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(m){for(var b,x,_,w=m[m.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:g,count:y,entry_offset:s+this.start,data_length:m,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 m=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,m),D=d(y,w+m,b);v.item_loc[T]={length:D,offset:P+S}}w+=C*(m+b)}}function p(y,v){for(var m=l(y,4),b=6,x=0;xM.width||T.width===M.width&&T.height>M.height?T:M}),x=m.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},g=0;gp.width||v>p.height)&&(p=m)}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 g,y,v=h[p++];v===255;)v=h[p++];if(208<=v&&v<=217||v===1)g=0;else{if(!(192<=v&&v<=254)||h.length-p<2)return;g=l(h,p)-2,p+=2}if(v===217||v===218)return;if(v===225&&g>=10&&s(h,p,d)&&(y=u.get_orientation(h.slice(p+6,p+g))),g>=5&&192<=v&&v<=207&&v!==196&&v!==200&&v!==204){if(h.length-p0&&(m.orientation=y),m}p+=g}}},6303:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).Ag,u=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(m,b){return{width:1+(m[b+6]<<16|m[b+5]<<8|m[b+4]),height:1+(m[b+9]<m.length)){for(;b+8=10?x=x||g(m,b+8):k==="VP8L"&&T>=9?x=x||y(m,b+8):k==="VP8X"&&T>=10?x=x||v(m,b+8):k==="EXIF"&&(_=d.get_orientation(m.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,g,y;if(typeof s=="string"&&(h="not ",s.substr(0,4)===h)?(d="must not be",s=s.replace(/^not /,"")):d="must be",function(m,b,x){return(x===void 0||x>m.length)&&(x=m.length),m.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>(g=f).length||g.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(m){var b=[];for(var x in m)b.push(x);return b};o.exports=g;var s=n(40410),u=n(37493);n(42018)(g,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"),g=Symbol("ended"),y=Symbol("lastPromise"),v=Symbol("handlePromise"),m=Symbol("stream");function b(T,M){return{value:T,done:M}}function x(T){var M=T[d];if(M!==null){var S=T[m].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[m]},next:function(){var T=this,M=this[p];if(M!==null)return Promise.reject(M);if(this[g])return Promise.resolve(b(void 0,!0));if(this[m].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[g]?R(b(void 0,!0)):O[v](R,F)},F)}}(C,this));else{var P=this[m].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[m].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={},m,{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,g,{value:T._readableState.endEmitted,writable:!0}),s(M,v,{value:function(C,P){var D=S[m].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[g]=!0}),T.on("readable",_.bind(null,S)),S}},31125:function(o,a,n){function l(p,g){var y=Object.keys(p);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(p);g&&(v=v.filter(function(m){return Object.getOwnPropertyDescriptor(p,m).enumerable})),y.push.apply(y,v)}return y}function f(p,g,y){return g in p?Object.defineProperty(p,g,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[g]=y,p}function s(p,g){for(var y=0;y0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:"unshift",value:function(v){var m={data:v,next:this.head};this.length===0&&(this.tail=m),this.head=m,++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 m=this.head,b=""+m.data;m=m.next;)b+=v+m.data;return b}},{key:"concat",value:function(v){if(this.length===0)return u.alloc(0);for(var m,b,x,_=u.allocUnsafe(v>>>0),w=this.head,k=0;w;)m=w.data,b=_,x=k,u.prototype.copy.call(m,b,x),k+=w.data.length,w=w.next;return _}},{key:"consume",value:function(v,m){var b;return v_.length?_.length:v;if(w===_.length?x+=_:x+=_.slice(0,v),(v-=w)==0){w===_.length?(++b,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=_.slice(w));break}++b}return this.length-=b,x}},{key:"_getBuffer",value:function(v){var m=u.allocUnsafe(v),b=this.head,x=1;for(b.data.copy(m),v-=b.data.length;b=b.next;){var _=b.data,w=v>_.length?_.length:v;if(_.copy(m,m.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,m}},{key:h,value:function(v,m){return d(this,function(b){for(var x=1;x0,function(T){m||(m=T),T&&x.forEach(h),k||(x.forEach(h),b(m))})});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,g,y){return p.highWaterMark!=null?p.highWaterMark:g?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=g,this.end=y,x=3;break;default:return this.write=v,void(this.end=m)}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 g(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 m(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=g,k._skipBytes=y,T&&(k._passthrough=v),T?k._transform=b:k._write=m};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 g(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 m(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(g){g!=="%%"&&(h++,g==="%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 g=new Array(arguments.length),y=0;y0)return function(g){if(!((g=String(g)).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(g);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(g){return g>=f?Math.round(g/f)+"d":g>=l?Math.round(g/l)+"h":g>=n?Math.round(g/n)+"m":g>=a?Math.round(g/a)+"s":g+"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,g=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,g(pe.r,0)),g:p(255,g(pe.g,0)),b:p(255,g(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 m(Y,Z,X){Y=N(Y,255),Z=N(Z,255),X=N(X,255);var re,ie,le=g(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=m(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=m(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,g(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,g(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",g=d(Object.prototype.toString),y=d(Number.prototype.valueOf),v=d(String.prototype.valueOf),m=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 g(N)==="[object Map]"}function k(N){return g(N)==="[object Set]"}function T(N){return g(N)==="[object WeakMap]"}function M(N){return g(N)==="[object WeakSet]"}function S(N){return g(N)==="[object ArrayBuffer]"}function C(N){return typeof ArrayBuffer<"u"&&(S.working?S(N):N instanceof ArrayBuffer)}function P(N){return g(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 g(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,m)}function $(N){return h&&_(N,b)}function j(N){return p&&_(N,x)}a.isSharedArrayBuffer=F,a.isAsyncFunction=function(N){return g(N)==="[object AsyncFunction]"},a.isMapIterator=function(N){return g(N)==="[object Map Iterator]"},a.isSetIterator=function(N){return g(N)==="[object Set Iterator]"},a.isGeneratorObject=function(N){return g(N)==="[object Generator]"},a.isWebAssemblyCompiledModule=function(N){return g(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=g),v(E,j,E.depth)}function g(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 m(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 m(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=" "+m(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 m(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(` -`)>-1&&(H=L?H.split(` -`).map(function(te){return" "+te}).join(` -`).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,g=f(),y=s("String.prototype.slice"),v={},m=Object.getPrototypeOf;h&&u&&m&&l(g,function(x){if(typeof p[x]=="function"){var _=new p[x];if(Symbol.toStringTag in _){var w=m(_),k=u(w,Symbol.toStringTag);if(!k){var T=m(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(m){this.local=this.regionalOptions[m||""]||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(m,b){if(typeof m=="string"){var x=m.match(h);return x?x[0]:""}var _=this._validateYear(m),w=m.month(),k=""+this.toChineseMonth(_,w);return b&&k.length<2&&(k="0"+k),this.isIntercalaryMonth(_,w)&&(k+="i"),k},monthNames:function(m){if(typeof m=="string"){var b=m.match(p);return b?b[0]:""}var x=this._validateYear(m),_=m.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},monthNamesShort:function(m){if(typeof m=="string"){var b=m.match(g);return b?b[0]:""}var x=this._validateYear(m),_=m.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},parseMonth:function(m,b){m=this._validateYear(m);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(m,_,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(m,b){if(m.year&&(m=m.year()),typeof m!="number"||m<1888||m>2111)throw b.replace(/\{0\}/,this.local.name);return m},toMonthIndex:function(m,b,x){var _=this.intercalaryMonth(m);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(m,b){m.year&&(b=(m=m.year()).month());var x=this.intercalaryMonth(m);if(b<0||b>(x?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x?b>13},isIntercalaryMonth:function(m,b){m.year&&(b=(m=m.year()).month());var x=this.intercalaryMonth(m);return!!x&&x===b},leapYear:function(m){return this.intercalaryMonth(m)!==0},weekOfYear:function(m,b,x){var _,w=this._validateYear(m,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(m,b,x)-_.toJD();return 1+Math.floor(C/7)},monthsInYear:function(m){return this.leapYear(m)?13:12},daysInMonth:function(m,b){m.year&&(b=m.month(),m=m.year()),m=this._validateYear(m);var x=y[m-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(m,b,x){return(this.dayOfWeek(m,b,x)||7)<6},toJD:function(m,b,x){var _=this._validate(m,k,x,l.local.invalidDate);m=this._validateYear(_.year()),b=_.month(),x=_.day();var w=this.isIntercalaryMonth(m,b),k=this.toChineseMonth(m,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}(m,k,x,w);return s.toJD(T.year,T.month,T.day)},fromJD:function(m){var b=s.fromJD(m),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(m){var b=m.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(m,b,x){var _=m.year(),w=m.month(),k=this.isIntercalaryMonth(_,w),T=this.toChineseMonth(_,w),M=Object.getPrototypeOf(u.prototype).add.call(this,m,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,g=/^闰?十?[一二三四五六七八九]?/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,g=d-30*(p-1)+1;return this.newDate(h,p,g)}}),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 g=this.newDate(d,h,p);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.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 g=this.dayOfWeek(d,h,p);return g>=2&&g<=6},extraInfo:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate);return{century:u[Math.floor((g.year()-1)/100)+1]||""}},toJD:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate);return d=g.year()+(g.year()<0?1:0),h=g.month(),(p=g.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,g=d-32*(p-1)+1;return this.newDate(h<=0?h-1:h,p,g)}});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,g=d-30*(p-1)+1;return this.newDate(h,p,g)}}),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 g=this.newDate(d,h,p);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.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 g=this._validate(d,h,p,l.local.invalidDate);return{yearType:(this.leapYear(g)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(g)%10-3]}},toJD:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate);d=g.year(),h=g.month(),p=g.day();var y=d<=0?d+1:d,v=this.jdEpoch+this._delay1(y)+this._delay2(y)+p+1;if(h<7){for(var m=7;m<=this.monthsInYear(d);m++)v+=this.daysInMonth(d,m);for(m=1;m=this.toJD(h===-1?1:h+1,7,1);)h++;for(var p=dthis.toJD(h,p,this.daysInMonth(h,p));)p++;var g=d-this.toJD(h,p,1)+1;return this.newDate(h,p,g)}}),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),g=Math.floor((d-p)/30.6001),y=g-Math.floor(g<14?1:13),v=h-Math.floor(y>2?4716:4715),m=d-p-Math.floor(30.6001*g);return v<=0&&v--,this.newDate(v,y,m)}}),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,g=0;g19||g>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,g){return this._validate(h,p,g,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,g){return this._validate(h,p,g,l.local.invalidDate).day()},weekDay:function(h,p,g){return this._validate(h,p,g,l.local.invalidDate),!0},extraInfo:function(h,p,g){var y=this._validate(h,p,g,l.local.invalidDate).toJD(),v=this._toHaab(y),m=this._toTzolkin(y);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[m[0]-1],tzolkinDay:m[0],tzolkinTrecena:m[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,g){var y=this._validate(h,p,g,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 g=Math.floor(h/20),y=h%20;return this.newDate(p,g,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 g=this.newDate(d,h,p);return g.add(1-(g.dayOfWeek()||7),"d"),Math.floor((g.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 g=this._validate(d,h,p,l.local.invalidMonth);(d=g.year())<0&&d++;for(var y=g.day(),v=1;v=this.toJD(h+1,1,1);)h++;for(var p=d-Math.floor(this.toJD(h,1,1)+.5)+1,g=1;p>this.daysInMonth(h,g);)p-=this.daysInMonth(h,g),g++;return this.newDate(h,g,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 g=l.instance(),y=0,v=d,m=u;this._createMissingCalendarData(u);var b=u-(v>9||v===9&&h>=this.NEPALI_CALENDAR_DATA[m][0]?56:57);for(d!==9&&(y=h,v--);v!==9;)v<=0&&(v=12,m--),y+=this.NEPALI_CALENDAR_DATA[m][v],v--;return d===9?(y+=h-this.NEPALI_CALENDAR_DATA[m][0])<0&&(y+=g.daysInYear(b)):y+=this.NEPALI_CALENDAR_DATA[m][9]-this.NEPALI_CALENDAR_DATA[m][0],g.newDate(b,1,1).add(y,"d").toJD()},fromJD:function(u){var d=l.instance().fromJD(u),h=d.year(),p=d.dayOfYear(),g=h+56;this._createMissingCalendarData(g);for(var y=9,v=this.NEPALI_CALENDAR_DATA[g][0],m=this.NEPALI_CALENDAR_DATA[g][y]-v+1;p>m;)++y>12&&(y=1,g++),m+=this.NEPALI_CALENDAR_DATA[g][y];var b=this.NEPALI_CALENDAR_DATA[g][y]-(m-p);return this.newDate(g,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 g=this.newDate(d,h,p);return g.add(-(g.dayOfWeek()+1)%7,"d"),Math.floor((g.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 g=this._validate(d,h,p,l.local.invalidDate);d=g.year(),h=g.month(),p=g.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),g=u(h,1029983),y=2820;if(g!==1029982){var v=Math.floor(g/366),m=u(g,366);y=Math.floor((2134*v+2816*m+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 g=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(g.year()),s.weekOfYear(d,g.month(),g.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 g=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(g.year()),s.toJD(d,g.month(),g.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 g=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(g.year()),s.weekOfYear(d,g.month(),g.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 g=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(g.year()),s.toJD(d,g.month(),g.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 g=this.newDate(d,h,p);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.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,g=0,y=0;yp)return u[g]-u[g-1];g++}return 30},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate),y=12*(g.year()-1)+g.month()-15292;return g.day()+u[y-1]-1+24e5-.5},fromJD:function(d){for(var h=d-24e5+.5,p=0,g=0;gh);g++)p++;var y=p+15292,v=Math.floor((y-1)/12),m=v+1,b=y-12*v,x=h-u[p-1]+1;return this.newDate(m,b,x)},isValid:function(d,h,p){var g=l.baseCalendar.prototype.isValid.apply(this,arguments);return g&&(g=(d=d.year!=null?d.year:d)>=1276&&d<=1500),g},_validate:function(d,h,p,g){var y=l.baseCalendar.prototype._validate.apply(this,arguments);if(y.year<1276||y.year>1500)throw g.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(g,y,v,m){if(this._calendar=g,this._year=y,this._month=v,this._day=m,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(g,y){return"000000".substring(0,y-(g=""+g).length)+g}function d(){this.shortYearCutoff="+10"}function h(g){this.local=this.regionalOptions[g]||this.regionalOptions[""]}l(f.prototype,{instance:function(g,y){g=(g||"gregorian").toLowerCase(),y=y||"";var v=this._localCals[g+"-"+y];if(!v&&this.calendars[g]&&(v=new this.calendars[g](y),this._localCals[g+"-"+y]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,g);return v},newDate:function(g,y,v,m,b){return(m=(g!=null&&g.year?g.calendar():typeof m=="string"?this.instance(m,b):m)||this.instance()).newDate(g,y,v)},substituteDigits:function(g){return function(y){return(y+"").replace(/[0-9]/g,function(v){return g[v]})}},substituteChineseDigits:function(g,y){return function(v){for(var m="",b=0;v>0;){var x=v%10;m=(x===0?"":g[x]+y[b])+m,b++,v=Math.floor(v/10)}return m.indexOf(g[1]+y[1])===0&&(m=m.substr(1)),m||g[0]}}}),l(s.prototype,{newDate:function(g,y,v){return this._calendar.newDate(g??this,y,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,y,v){if(!this._calendar.isValid(g,y,v))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=g,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(g,y){return this._calendar.add(this,g,y)},set:function(g,y){return this._calendar.set(this,g,y)},compareTo:function(g){if(this._calendar.name!==g._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,g._calendar.local.name);var y=this._year!==g._year?this._year-g._year:this._month!==g._month?this.monthOfYear()-g.monthOfYear():this._day-g._day;return y===0?0:y<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?"-":"")+u(Math.abs(this.year()),4)+"-"+u(this.month(),2)+"-"+u(this.day(),2)}}),l(d.prototype,{_validateLevel:0,newDate:function(g,y,v){return g==null?this.today():(g.year&&(this._validate(g,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),v=g.day(),y=g.month(),g=g.year()),new s(this,g,y,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(g){return this._validate(g,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(g){var y=this._validate(g,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(y.year()<0?"-":"")+u(Math.abs(y.year()),4)},monthsInYear:function(g){return this._validate(g,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(g,y){var v=this._validate(g,y,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(g,y){var v=(y+this.firstMonth-2*this.minMonth)%this.monthsInYear(g)+this.minMonth;return this._validate(g,v,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),v},daysInYear:function(g){var y=this._validate(g,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(y)?366:365},dayOfYear:function(g,y,v){var m=this._validate(g,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return m.toJD()-this.newDate(m.year(),this.fromMonthOfYear(m.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(g,y,v){var m=this._validate(g,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(m))+2)%this.daysInWeek()},extraInfo:function(g,y,v){return this._validate(g,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(g,y,v){return this._validate(g,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(g,this._add(g,y,v),y,v)},_add:function(g,y,v){if(this._validateLevel++,v==="d"||v==="w"){var m=g.toJD()+y*(v==="w"?this.daysInWeek():1),b=g.calendar().fromJD(m);return this._validateLevel--,[b.year(),b.month(),b.day()]}try{var x=g.year()+(v==="y"?y:0),_=g.monthOfYear()+(v==="m"?y:0);b=g.day(),v==="y"?(g.month()!==this.fromMonthOfYear(x,_)&&(_=this.newDate(x,g.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(g,y,v,m){if(!(this.hasYearZero||m!=="y"&&m!=="m"||y[0]!==0&&g.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"]}[m],x=v<0?-1:1;y=this._add(g,v*b[0]+x*b[1],b[2])}return g.date(y[0],y[1],y[2])},set:function(g,y,v){this._validate(g,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var m=v==="y"?y:g.year(),b=v==="m"?y:g.month(),x=v==="d"?y:g.day();return v!=="y"&&v!=="m"||(x=Math.min(x,this.daysInMonth(m,b))),g.date(m,b,x)},isValid:function(g,y,v){this._validateLevel++;var m=this.hasYearZero||g!==0;if(m){var b=this.newDate(g,y,this.minDay);m=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(g,y,v){var m=this._validate(g,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),b=new Date(m.year(),m.month()-1,m.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(g){return this.newDate(g.getFullYear(),g.getMonth()+1,g.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,g,y=(d=d||{}).dayNamesShort||this.local.dayNamesShort,v=d.dayNames||this.local.dayNames,m=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 g=this;return u=u?u.newDate():null,s==null?u:typeof s=="string"?function(y){try{return g.parseDate(h,y,p)}catch{}for(var v=((y=y.toLowerCase()).match(/^c/)&&d?d.newDate():null)||g.today(),m=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,b=m.exec(y);b;)v.add(parseInt(b[1],10),b[2]||"d"),b=m.exec(y);return v}(s):typeof s=="number"?isNaN(s)||s===1/0||s===-1/0?u:g.today().add(s,"d"):g.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"],m=["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||m.forEach(function(P){C.el.on(P,C.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||m.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}})(pS);const gE=ir(pS),gS=gE(pE),ml={data:{barpolar:[{marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],bar:[{error_x:{color:"#f2f5fa"},error_y:{color:"#f2f5fa"},marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],carpet:[{aaxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},baxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},type:"carpet"}],choropleth:[{colorbar:{outlinewidth:0,ticks:""},type:"choropleth"}],contourcarpet:[{colorbar:{outlinewidth:0,ticks:""},type:"contourcarpet"}],contour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"contour"}],heatmapgl:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmapgl"}],heatmap:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmap"}],histogram2dcontour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2dcontour"}],histogram2d:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2d"}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],mesh3d:[{colorbar:{outlinewidth:0,ticks:""},type:"mesh3d"}],parcoords:[{line:{colorbar:{outlinewidth:0,ticks:""}},type:"parcoords"}],pie:[{automargin:!0,type:"pie"}],scatter3d:[{line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatter3d"}],scattercarpet:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattercarpet"}],scattergeo:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattergeo"}],scattergl:[{marker:{line:{color:"#283442"}},type:"scattergl"}],scattermapbox:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattermapbox"}],scatterpolargl:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolargl"}],scatterpolar:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolar"}],scatter:[{marker:{line:{color:"#283442"}},type:"scatter"}],scatterternary:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterternary"}],surface:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"surface"}],table:[{cells:{fill:{color:"#506784"},line:{color:"rgb(17,17,17)"}},header:{fill:{color:"#2a3f5f"},line:{color:"rgb(17,17,17)"}},type:"table"}]},layout:{annotationdefaults:{arrowcolor:"#f2f5fa",arrowhead:0,arrowwidth:1},autotypenumbers:"strict",coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]],sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#f2f5fa"},geo:{bgcolor:"rgb(17,17,17)",lakecolor:"rgb(17,17,17)",landcolor:"rgb(17,17,17)",showlakes:!0,showland:!0,subunitcolor:"#506784"},hoverlabel:{align:"left"},hovermode:"closest",mapbox:{style:"dark"},paper_bgcolor:"rgb(17,17,17)",plot_bgcolor:"rgb(17,17,17)",polar:{angularaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",radialaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},scene:{xaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},yaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},zaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"}},shapedefaults:{line:{color:"#f2f5fa"}},sliderdefaults:{bgcolor:"#C8D4E3",bordercolor:"rgb(17,17,17)",borderwidth:1,tickwidth:0},ternary:{aaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},baxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",caxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},title:{x:.05},updatemenudefaults:{bgcolor:"#506784",borderwidth:0,showactive:!1},xaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2},yaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2}}},Pd=e=>{var n,l,f,s;const t=fS(),r=dS(),i=e.data.some(({type:u})=>u==="histogram"),c=(t==null?void 0:t.isXaxisAsCategorical)&&!i,o=r==="dark"?{template:{...ml,layout:{...ml.layout,colorway:((l=(n=e.layout.template)==null?void 0:n.layout)==null?void 0:l.colorway)||((f=ml.layout)==null?void 0:f.colorway)}}}:void 0,a=c?{type:"category",categoryorder:"category ascending"}:void 0;return je.jsx("div",{children:je.jsx(gS,{data:e.data,layout:{...e.layout,...o,title:void 0,xaxis:{...(s=e.layout)==null?void 0:s.xaxis,...a}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}})})};var mS={},vS={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})(vS);var Rn=vS.exports,ug={exports:{}},W2;function hr(){return W2||(W2=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:()=>{(bE?"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},xS=e=>e?X2(e):X2;var wS={exports:{}},_S={},TS={exports:{}},kS={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Tl=$e;function xE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wE=typeof Object.is=="function"?Object.is:xE,_E=Tl.useState,TE=Tl.useEffect,kE=Tl.useLayoutEffect,ME=Tl.useDebugValue;function SE(e,t){var r=t(),i=_E({inst:{value:r,getSnapshot:t}}),c=i[0].inst,o=i[1];return kE(function(){c.value=r,c.getSnapshot=t,bg(c)&&o({inst:c})},[e,r,t]),TE(function(){return bg(c)&&o({inst:c}),e(function(){bg(c)&&o({inst:c})})},[e]),ME(r),r}function bg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!wE(e,r)}catch{return!0}}function CE(e,t){return t()}var OE=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?CE:SE;kS.useSyncExternalStore=Tl.useSyncExternalStore!==void 0?Tl.useSyncExternalStore:OE;TS.exports=kS;var MS=TS.exports;/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Dd=$e,AE=MS;function PE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DE=typeof Object.is=="function"?Object.is:PE,EE=AE.useSyncExternalStore,RE=Dd.useRef,LE=Dd.useEffect,IE=Dd.useMemo,FE=Dd.useDebugValue;_S.useSyncExternalStoreWithSelector=function(e,t,r,i,c){var o=RE(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=IE(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,DE(s,h))return p;var g=i(h);return c!==void 0&&c(p,g)?p:(s=h,u=g)}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=EE(e,o[0],o[1]);return LE(function(){a.hasValue=!0,a.value=n},[n]),FE(n),n};wS.exports=_S;var NE=wS.exports;const jE=ir(NE),{useSyncExternalStoreWithSelector:$E}=jE;function SS(e,t=e.getState,r){const i=$E(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return $e.useDebugValue(i),i}const Z2=e=>{const t=typeof e=="function"?xS(e):e,r=(i,c)=>SS(t,i,c);return Object.assign(r,t),r},CS=e=>e?Z2(e):Z2;var BE=e=>CS(e);const zE=Object.freeze(Object.defineProperty({__proto__:null,create:CS,createStore:xS,default:BE,useStore:SS},Symbol.toStringTag,{value:"Module"})),qE=qn(zE);var jc={exports:{}},xg={exports:{}},K2;function WE(){return K2||(K2=1,function(e,t){(function(r,i){e.exports=i()})(Sa,function(){var r=typeof Promise=="function",i=typeof self=="object"?self:Sa,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()),g=h&&Object.getPrototypeOf(new Map().entries()),y=s&&typeof Array.prototype[Symbol.iterator]=="function",v=y&&Object.getPrototypeOf([][Symbol.iterator]()),m=s&&typeof String.prototype[Symbol.iterator]=="function",b=m&&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===g?"Map Iterator":a&&S===p?"Set Iterator":y&&S===v?"Array Iterator":m&&S===b?"String Iterator":S===null?"Object":Object.prototype.toString.call(k).slice(x,_)}return w})}(xg)),xg.exports}var J2;function OS(){if(J2)return jc.exports;J2=1;/*! - * deep-eql - * Copyright(c) 2013 Jake Luer - * MIT Licensed - */var e=WE();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 - * @param {Mixed} rightHandOperand - * @param {MemoizeMap} memoizeMap - * @returns {Boolean|null} result -*/function i(w,k,T){if(!T||x(w)||x(k))return null;var M=T.get(w);if(M){var S=M.get(k);if(typeof S=="boolean")return S}return null}/*! - * Set the result of the equality into the MemoizeMap - * - * @param {Mixed} leftHandOperand - * @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))}}/*! - * Primary Export - */jc.exports=o,jc.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 - * @param {Mixed} rightHandOperand - * @param {Object} [options] (optional) Additional options - * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality. - * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of - 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 m(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)}}/*! - * Compare two Regular Expressions for equality. - * - * @param {RegExp} leftHandOperand - * @param {RegExp} rightHandOperand - * @return {Boolean} result - */function f(w,k){return w.toString()===k.toString()}/*! - * Compare two Sets/Maps for equality. Faster than other equality functions. - * - * @param {Set} leftHandOperand - * @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)}/*! - * 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}(Ag)),Ag.exports}var Mw;function Bl(){return Mw||(Mw=1,function(e){var t=cR();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}(Og)),Og.exports}var Sw;function fR(){return Sw||(Sw=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(uR),i=t(hr()),c=t(Bl()),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}(Cg)),Cg}var Pg={};const zo=qn(l9);var Dg={exports:{}},Cw;function dR(){return Cw||(Cw=1,function(e,t){(function(i,c){e.exports=c($e)})(Sa,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(g,y){for(var v=0;vr.length)&&(i=r.length);for(var c=0,o=new Array(i);c0&&R++,g.hasDetailPanel&&R++,g.isTreeData&&R++,l.default.createElement(a.default,{style:{height:O*(v.paging&&v.emptyRowsWhenPaging?g.pageSize:1)},key:"empty-0"},l.default.createElement(n.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:g.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||g.bulkEditOpen)return l.default.createElement(g.components.EditRow,{columns:b,components:g.components,data:D,errorState:g.errorState,icons:m,localization:y.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 R=g.isTreeData?[D.tableData.uuid]:[O+g.pageSize*g.currentPage];return l.default.createElement(g.components.Row,{components:g.components,data:D,index:O,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:R,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 w(P,D){return D.map(function(O,R){return l.default.createElement(g.components.GroupRow,{actions:g.actions,cellEditable:g.cellEditable,columns:g.columns,components:g.components,detailPanel:g.detailPanel,getFieldValue:g.getFieldValue,groupData:O,groups:P,hasAnyEditingRow:g.hasAnyEditingRow,icons:m,isTreeData:g.isTreeData,key:O.value==null?""+R:O.value,level:0,localization:y.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:[R+g.pageSize*g.currentPage],scrollWidth:g.scrollWidth,treeDataMaxLevel:g.treeDataMaxLevel})})}function k(){return g.showAddRow&&l.default.createElement(g.components.EditRow,{columns:b,components:g.components,data:g.initialFormData,detailPanel:g.detailPanel,errorState:g.errorState,getFieldValue:g.getFieldValue,icons:m,isTreeData:g.isTreeData,key:"key-add-row",localization:y.editRow,mode:"add",onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,scrollWidth:g.scrollWidth})}var T=g.renderData,M=g.columns.filter(function(P){return P.tableData.groupOrder>-1}).sort(function(P,D){return P.tableData.groupOrder-D.tableData.groupOrder}),S=0;v.paging&&g.pageSize>T.length&&(S=g.pageSize-T.length);var C=l.default.useMemo(function(){return g.renderSummaryRow?function(P){return g.renderSummaryRow(d(d({},P),{},{data:g.data,currentData:g.currentData}))}:void 0},[g.data]);return l.default.createElement(i.default,{ref:g.forwardedRef},v.filtering&&l.default.createElement(g.components.FilterRow,{columns:b,icons:m,hasActions:g.actions.some(function(P){return P.position==="row"||typeof P=="function"}),onFilterChanged:g.onFilterChanged,localization:y.filterRow,hasDetailPanel:!!g.detailPanel,isTreeData:g.isTreeData,scrollWidth:g.scrollWidth,hideFilterIcons:g.options.hideFilterIcons}),v.addRowPosition==="first"&&k(),M.length>0?w(M,T):_(T),v.addRowPosition==="last"&&k(),l.default.createElement(g.components.SummaryRow,{columns:b,renderSummaryRow:C,rowProps:g}),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}(Eg)),Eg}var $g={},Bg={exports:{}},Fw;function Ed(){return Fw||(Fw=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}(Bg)),Bg.exports}var zg={exports:{}},Nw;function Rd(){return Nw||(Nw=1,function(e){var t=bS();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||Si(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 P0(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 Id(e,t){dn(2,arguments);var r=hn(e).getTime(),i=sr(t);return new Date(r+i)}function _R(e,t){dn(2,arguments);var r=sr(t);return Id(e,r*1e3)}var TR=6e4;function kR(e,t){dn(2,arguments);var r=sr(t);return Id(e,r*TR)}var MR=36e5;function SR(e,t){dn(2,arguments);var r=sr(t);return Id(e,r*MR)}function CR(e,t){dn(2,arguments);var r=sr(t),i=r*7;return P0(e,i)}function pf(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 Ww(e,t){dn(2,arguments);var r=sr(t);return pf(e,r*12)}function OR(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getFullYear()-i.getFullYear()}function ku(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 AR(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=ku(r,i),o=Math.abs(OR(r,i));r.setFullYear(1584),i.setFullYear(1584);var a=ku(r,i)===-c,n=c*(o-Number(a));return n===0?0:n}function PR(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 D0(e){dn(1,arguments);var t=hn(e);return t.setHours(23,59,59,999),t}function E0(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 DR(e){dn(1,arguments);var t=hn(e);return D0(t).getTime()===E0(t).getTime()}function NS(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=ku(r,i),o=Math.abs(PR(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=ku(r,i)===-c;DR(hn(e))&&o===1&&ku(e,i)===1&&(n=!1),a=c*(o-Number(n))}return a===0?0:a}var Uw={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},ER="trunc";function nc(e){return e?Uw[e]:Uw[ER]}function RR(e,t,r){dn(2,arguments);var i=NS(e,t)/3;return nc(void 0)(i)}function Lf(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 kl(e){dn(1,arguments);var t=hn(e);return t.setHours(0,0,0,0),t}var LR=864e5;function IR(e,t){dn(2,arguments);var r=kl(e),i=kl(t),c=r.getTime()-Lf(r),o=i.getTime()-Lf(i);return Math.round((c-o)/LR)}function Hw(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 jS(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=Hw(r,i),o=Math.abs(IR(r,i));r.setDate(r.getDate()-c*o);var a=+(Hw(r,i)===-c),n=c*(o-a);return n===0?0:n}function FR(e,t,r){dn(2,arguments);var i=jS(e,t)/7;return nc(void 0)(i)}var Fd=6e4,Nd=36e5,NR=1e3;function jd(e,t){return dn(2,arguments),hn(e).getTime()-hn(t).getTime()}function jR(e,t,r){dn(2,arguments);var i=jd(e,t)/Nd;return nc(void 0)(i)}function $R(e,t,r){dn(2,arguments);var i=jd(e,t)/Fd;return nc(void 0)(i)}function BR(e,t,r){dn(2,arguments);var i=jd(e,t)/1e3;return nc(void 0)(i)}function zR(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 qR={};function ao(){return qR}function Yg(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ao(),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 VR(e){dn(1,arguments);var t=zS(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var i=Ml(r);return i}var YR=6048e5;function qS(e){dn(1,arguments);var t=hn(e),r=Ml(t).getTime()-VR(t).getTime();return Math.round(r/YR)+1}function Oo(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ao(),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 g=Oo(p,t),y=new Date(0);y.setUTCFullYear(u,0,h),y.setUTCHours(0,0,0,0);var v=Oo(y,t);return s.getTime()>=g.getTime()?u+1:s.getTime()>=v.getTime()?u:u-1}function GR(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ao(),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=Ay(e,t),h=new Date(0);h.setUTCFullYear(d,0,u),h.setUTCHours(0,0,0,0);var p=Oo(h,t);return p}var XR=6048e5;function WS(e,t){dn(1,arguments);var r=hn(e),i=Oo(r,t).getTime()-GR(r,t).getTime();return Math.round(i/XR)+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)}},il={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ZR={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 zi.y(t,r)},Y:function(t,r,i,c){var o=Ay(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=zS(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 zi.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=WS(t,c);return r==="wo"?i.ordinalNumber(o,{unit:"week"}):Hn(o,r.length)},I:function(t,r,i){var c=qS(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"}):zi.d(t,r)},D:function(t,r,i){var c=HR(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=il.noon:c===0?o=il.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=il.evening:c>=12?o=il.afternoon:c>=4?o=il.morning:o=il.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 zi.h(t,r)},H:function(t,r,i){return r==="Ho"?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):zi.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"}):zi.m(t,r)},s:function(t,r,i){return r==="so"?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):zi.s(t,r)},S:function(t,r){return zi.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 Yw(a);case"XXXX":case"XX":return go(a);case"XXXXX":case"XXX":default:return go(a,":")}},x:function(t,r,i,c){var o=c._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return Yw(a);case"xxxx":case"xx":return go(a);case"xxxxx":case"xxx":default:return go(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"+Vw(a,":");case"OOOO":default:return"GMT"+go(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"+Vw(a,":");case"zzzz":default:return"GMT"+go(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 Vw(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 Yw(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Hn(Math.abs(e)/60,2)}return go(e,t)}function go(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 Gw=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"})}},US=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"})}},KR=function(t,r){var i=t.match(/(P+)(p+)?/)||[],c=i[1],o=i[2];if(!o)return Gw(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}}",Gw(c,r)).replace("{{time}}",US(o,r))},R0={p:US,P:KR},JR=["D","DD"],QR=["YY","YYYY"];function HS(e){return JR.indexOf(e)!==-1}function VS(e){return QR.indexOf(e)!==-1}function If(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 eL={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"}},tL=function(t,r,i){var c,o=eL[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 Xg(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 nL={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},rL={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},aL={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iL={date:Xg({formats:nL,defaultWidth:"full"}),time:Xg({formats:rL,defaultWidth:"full"}),dateTime:Xg({formats:aL,defaultWidth:"full"})},oL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},lL=function(t,r,i,c){return oL[t]};function Ls(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 sL={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},uL={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},cL={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"]},fL={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"]},dL={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"}},hL={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"}},pL=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"},gL={ordinalNumber:pL,era:Ls({values:sL,defaultWidth:"wide"}),quarter:Ls({values:uL,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ls({values:cL,defaultWidth:"wide"}),day:Ls({values:fL,defaultWidth:"wide"}),dayPeriod:Ls({values:dL,defaultWidth:"wide",formattingValues:hL,defaultFormattingWidth:"wide"})};function Is(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)?vL(n,function(u){return u.test(a)}):mL(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 mL(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function vL(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 bL=/^(\d+)(th|st|nd|rd)?/i,xL=/\d+/i,wL={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},_L={any:[/^b/i,/^(a|c)/i]},TL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},kL={any:[/1/i,/2/i,/3/i,/4/i]},ML={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},SL={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]},CL={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},OL={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]},AL={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},PL={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}},DL={ordinalNumber:yL({matchPattern:bL,parsePattern:xL,valueCallback:function(t){return parseInt(t,10)}}),era:Is({matchPatterns:wL,defaultMatchWidth:"wide",parsePatterns:_L,defaultParseWidth:"any"}),quarter:Is({matchPatterns:TL,defaultMatchWidth:"wide",parsePatterns:kL,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Is({matchPatterns:ML,defaultMatchWidth:"wide",parsePatterns:SL,defaultParseWidth:"any"}),day:Is({matchPatterns:CL,defaultMatchWidth:"wide",parsePatterns:OL,defaultParseWidth:"any"}),dayPeriod:Is({matchPatterns:AL,defaultMatchWidth:"any",parsePatterns:PL,defaultParseWidth:"any"})},$d={code:"en-US",formatDistance:tL,formatLong:iL,formatRelative:lL,localize:gL,match:DL,options:{weekStartsOn:0,firstWeekContainsDate:1}},EL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,RL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,LL=/^'([^]*?)'?$/,IL=/''/g,FL=/[a-zA-Z]/;function YS(e,t,r){var i,c,o,a,n,l,f,s,u,d,h,p,g,y,v,m,b,x;dn(2,arguments);var _=String(t),w=ao(),k=(i=(c=r==null?void 0:r.locale)!==null&&c!==void 0?c:w.locale)!==null&&i!==void 0?i:$d,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=(g=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(v=r.locale)===null||v===void 0||(m=v.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&g!==void 0?g: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(!$S(S))throw new RangeError("Invalid time value");var C=Lf(S),P=BS(S,C),D={firstWeekContainsDate:T,weekStartsOn:M,locale:k,_originalDate:S},O=_.match(RL).map(function(R){var F=R[0];if(F==="p"||F==="P"){var A=R0[F];return A(R,k.formatLong)}return R}).join("").match(EL).map(function(R){if(R==="''")return"'";var F=R[0];if(F==="'")return NL(R);var A=ZR[F];if(A)return!(r!=null&&r.useAdditionalWeekYearTokens)&&VS(R)&&If(R,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&HS(R)&&If(R,t,String(e)),A(P,R,k.localize,D);if(F.match(FL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return R}).join("");return O}function NL(e){var t=e.match(LL);return t?t[1].replace(IL,"'"):e}const jL=Object.freeze(Object.defineProperty({__proto__:null,default:YS},Symbol.toStringTag,{value:"Module"}));function $L(e){dn(1,arguments);var t=hn(e),r=t.getDate();return r}function BL(e){dn(1,arguments);var t=hn(e),r=t.getDay();return r}function GS(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 zL(e){dn(1,arguments);var t=hn(e),r=t.getHours();return r}function qL(e){dn(1,arguments);var t=hn(e),r=t.getMinutes();return r}function WL(e){dn(1,arguments);var t=hn(e),r=t.getMonth();return r}function UL(e){dn(1,arguments);var t=hn(e),r=t.getSeconds();return r}function HL(e){return dn(1,arguments),hn(e).getFullYear()}function $c(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getTime()>i.getTime()}function ol(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 JL(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&&b9(e,t)}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ff(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 eI(e,t){if(t&&(Si(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bn(e)}function er(e){var t=QL();return function(){var i=Ff(e),c;if(t){var o=Ff(this).constructor;c=Reflect.construct(i,arguments,o)}else c=i.apply(this,arguments);return eI(this,c)}}function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tI(e,t){if(Si(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Si(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XS(e){var t=tI(e,"string");return Si(t)==="symbol"?t:String(t)}function nI(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 QS(e){return e%400===0||e%4===0&&e%100!==0}var lI=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=JS(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),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;a0}},{key:"set",value:function(c,o,a,n){var l=Ay(c,n);if(a.isTwoDigitYear){var f=JS(a.year,l);return c.setUTCFullYear(f,0,n.firstWeekContainsDate),c.setUTCHours(0,0,0,0),Oo(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),Oo(c,n)}}]),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=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),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<=4}},{key:"set",value:function(c,o,a){return c.setUTCMonth((a-1)*3,1),c.setUTCHours(0,0,0,0),c}}]),r}(or),hI=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),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=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 gI(e,t,r){dn(2,arguments);var i=hn(e),c=sr(t),o=WS(i,r)-c;return i.setUTCDate(i.getUTCDate()-o*7),i}var mI=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 Oo(gI(c,a,n),n)}}]),r}(or);function vI(e,t){dn(2,arguments);var r=hn(e),i=sr(t),c=qS(r)-i;return r.setUTCDate(r.getUTCDate()-c*7),r}var 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<=53}},{key:"set",value:function(c,o,a){return Ml(vI(c,a))}}]),r}(or),bI=[31,28,31,30,31,30,31,31,30,31,30,31],xI=[31,29,31,30,31,30,31,31,30,31,30,31],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=1&&o<=xI[l]:o>=1&&o<=bI[l]}},{key:"set",value:function(c,o,a){return c.setUTCDate(a),c.setUTCHours(0,0,0,0),c}}]),r}(or),_I=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 Dy(e,t,r){var i,c,o,a,n,l,f,s;dn(2,arguments);var u=ao(),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),g=h.getUTCDay(),y=p%7,v=(y+7)%7,m=(v=0&&o<=6}},{key:"set",value:function(c,o,a,n){return c=Dy(c,a,n),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=0&&o<=6}},{key:"set",value:function(c,o,a,n){return c=Dy(c,a,n),c.setUTCHours(0,0,0,0),c}}]),r}(or),MI=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=Dy(c,a,n),c.setUTCHours(0,0,0,0),c}}]),r}(or);function SI(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=SI(c,a),c.setUTCHours(0,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=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),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<=23}},{key:"set",value:function(c,o,a){return c.setUTCHours(a,0,0,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=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),LI=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),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=0&&o<=59}},{key:"set",value:function(c,o,a){return c.setUTCMinutes(a,0,0),c}}]),r}(or),FI=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),NI=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=(g=(y=(v=i==null?void 0:i.weekStartsOn)!==null&&v!==void 0?v:i==null||(m=i.locale)===null||m===void 0||(b=m.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&y!==void 0?y:T.weekStartsOn)!==null&&g!==void 0?g:(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 iI],O=k.match(UI).map(function(H){var V=H[0];if(V in R0){var te=R0[V];return te(H,M.formatLong)}return H}).join("").match(WI),R=[],F=Kw(O),A;try{var z=function(){var V=A.value;!(i!=null&&i.useAdditionalWeekYearTokens)&&VS(V)&&If(V,k,e),!(i!=null&&i.useAdditionalDayOfYearTokens)&&HS(V)&&If(V,k,e);var te=V[0],ee=qI[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(GI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(V==="''"?V="'":te==="'"&&(V=ZI(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(Si(B)==="object")return B.v}}catch(H){F.e(H)}finally{F.f()}if(w.length>0&&YI.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=BS(j,Lf(j)),E={},W=Kw($),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],JL(E,q[1])):N=q}}catch(H){W.e(H)}finally{W.f()}return N}function ZI(e){return e.match(HI)[1].replace(VI,"'")}function KI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setDate(i),r}function JI(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 eF(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=GS(a);return r.setMonth(i,Math.min(o,n)),r}function tF(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setSeconds(i),r}function nF(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(i),r)}function Bc(e){dn(1,arguments);var t=hn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Zg(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ao(),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],qc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(qc.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){var c=qc.timezone.exec(i);c?(t.time=i.replace(c[1],""),t.timezone=c[1]):t.time=i}return t}function lF(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 sF(e,t){if(t===null)return new Date(NaN);var r=e.match(rF);if(!r)return new Date(NaN);var i=!!r[4],c=Fs(r[1]),o=Fs(r[2])-1,a=Fs(r[3]),n=Fs(r[4]),l=Fs(r[5])-1;if(i)return gF(t,n,l)?fF(t,n,l):new Date(NaN);var f=new Date(0);return!hF(t,o,a)||!pF(t,c)?new Date(NaN):(f.setUTCFullYear(t,o,Math.max(c,a)),f)}function Fs(e){return e?parseInt(e):1}function uF(e){var t=e.match(aF);if(!t)return NaN;var r=Kg(t[1]),i=Kg(t[2]),c=Kg(t[3]);return mF(r,i,c)?r*Nd+i*Fd+c*1e3:NaN}function Kg(e){return e&&parseFloat(e.replace(",","."))||0}function cF(e){if(e==="Z")return 0;var t=e.match(iF);if(!t)return 0;var r=t[1]==="+"?-1:1,i=parseInt(t[2]),c=t[3]&&parseInt(t[3])||0;return vF(i,c)?r*(i*Nd+c*Fd):NaN}function fF(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 dF=[31,null,31,30,31,30,31,31,30,31,30,31];function t4(e){return e%400===0||e%4===0&&e%100!==0}function hF(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(dF[t]||(t4(e)?29:28))}function pF(e,t){return t>=1&&t<=(t4(e)?366:365)}function gF(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function mF(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function vF(e,t){return t>=0&&t<=59}const yF=Object.freeze(Object.defineProperty({__proto__:null,default:e4},Symbol.toStringTag,{value:"Module"}));function bF(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 g=Math.abs(p),y=Hn(Math.floor(g/60),2),v=Hn(g%60,2),m=p<0?"+":"-";l="".concat(m).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 xF(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 L0={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})(L0,L0.exports);var wF=L0.exports;const n4=ir(wF),_F={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 TF{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||$d;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=n4[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=>e4(i),this.toISO=i=>bF(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)=>_R(i,c),this.addMinutes=(i,c)=>kR(i,c),this.addHours=(i,c)=>SR(i,c),this.addDays=(i,c)=>P0(i,c),this.addWeeks=(i,c)=>CR(i,c),this.addMonths=(i,c)=>pf(i,c),this.addYears=(i,c)=>Ww(i,c),this.isValid=i=>$S(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 AR(i,n);case"quarters":return RR(i,n);case"months":return NS(i,n);case"weeks":return FR(i,n);case"days":return jS(i,n);case"hours":return jR(i,n);case"minutes":return $R(i,n);case"seconds":return BR(i,n);default:return jd(i,n)}},this.isAfter=(i,c)=>$c(i,c),this.isBefore=(i,c)=>ol(i,c),this.startOfDay=i=>kl(i),this.endOfDay=i=>D0(i),this.getHours=i=>zL(i),this.setHours=(i,c)=>JI(i,c),this.setMinutes=(i,c)=>QI(i,c),this.getSeconds=i=>UL(i),this.setSeconds=(i,c)=>tF(i,c),this.isSameDay=(i,c)=>YL(i,c),this.isSameMonth=(i,c)=>XL(i,c),this.isSameYear=(i,c)=>GL(i,c),this.isSameHour=(i,c)=>ZL(i,c),this.startOfYear=i=>zc(i),this.endOfYear=i=>Gg(i),this.startOfMonth=i=>Bc(i),this.endOfMonth=i=>E0(i),this.startOfWeek=i=>Zg(i,{locale:this.locale}),this.endOfWeek=i=>Yg(i,{locale:this.locale}),this.getYear=i=>HL(i),this.setYear=(i,c)=>nF(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:XI(i,c,new Date,{locale:this.locale}),this.format=(i,c)=>this.formatByString(i,this.formats[c]),this.formatByString=(i,c)=>YS(i,c,{locale:this.locale}),this.isEqual=(i,c)=>i===null&&c===null?!0:VL(i,c),this.isNull=i=>i===null,this.isAfterDay=(i,c)=>$c(i,D0(c)),this.isBeforeDay=(i,c)=>ol(i,kl(c)),this.isBeforeYear=(i,c)=>ol(i,zc(c)),this.isAfterYear=(i,c)=>$c(i,Gg(c)),this.isWithinRange=(i,[c,o])=>xF(i,{start:c,end:o}),this.formatNumber=i=>i,this.getMinutes=i=>qL(i),this.getDate=i=>$L(i),this.setDate=(i,c)=>KI(i,c),this.getMonth=i=>WL(i),this.getDaysInMonth=i=>GS(i),this.setMonth=(i,c)=>eF(i,c),this.getMeridiemText=i=>i==="am"?"AM":"PM",this.getNextMonth=i=>pf(i,1),this.getPreviousMonth=i=>pf(i,-1),this.getMonthArray=i=>{const o=[zc(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 zR({start:Zg(i,{locale:this.locale}),end:Yg(i,{locale:this.locale})}).map(c=>this.formatByString(c,"EEEEEE"))},this.getWeekArray=i=>{const c=Zg(Bc(i),{locale:this.locale}),o=Yg(E0(i),{locale:this.locale});let a=0,n=c;const l=[];let f=null;for(;ol(n,o);){const s=Math.floor(a/7);l[s]=l[s]||[];const u=BL(n);f!==u&&(f=u,l[s].push(n),a+=1),n=P0(n,1)}return l},this.getYearRange=(i,c)=>{const o=zc(i),a=Gg(c),n=[];let l=o;for(;ol(l,a);)n.push(l),l=Ww(l,1);return n},this.locale=t,this.formats=Object.assign({},_F,r)}isBeforeMonth(t,r){return ol(t,Bc(r))}isAfterMonth(t,r){return $c(t,Bc(r))}}const kF={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 MF extends TF{constructor(...t){super(...t),this.formatTokenMap=kF,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=n4[o],n=this.locale||$d;return a(c,n.formatLong,{})}return c}).join("")},this.getFormatHelperText=r=>this.expandFormat(r).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const SF=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:MF},Symbol.toStringTag,{value:"Module"})),r4=qn(SF);function a4(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 i4=(e,t)=>r=>{(r.key==="Enter"||r.key===" ")&&(e(r),r.preventDefault(),r.stopPropagation())},o4=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?o4(t.shadowRoot):t:null};function CF(e){return _r("PrivatePickersMonth",e)}const I0=wr("PrivatePickersMonth",["root","selected"]),OF=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],AF=e=>{const{classes:t,selected:r}=e;return Tr({root:["root",r&&"selected"]},CF,t)},PF=wn(Cr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${I0.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:Ef(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${I0.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),Jw=()=>{},DF=e=>{const{disabled:t,onSelect:r,selected:i,value:c,tabIndex:o,hasFocus:a,onFocus:n=Jw,onBlur:l=Jw}=e,f=Vn(e,OF),s=AF(e),u=()=>{r(c)},d=$e.useRef(null);return x9(()=>{if(a){var h;(h=d.current)==null||h.focus()}},[a]),je.jsx(PF,Gt({ref:d,component:"button",type:"button",className:s.root,tabIndex:o,onClick:u,onKeyDown:i4(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)}}}}),EF={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"},RF=Rr(EF),LF={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ę"},IF=Rr(LF),FF={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"},NF=Rr(FF),jF={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ç"},$F=Rr(jF),Wc={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},Qw={calendar:"Kalenderansicht",clock:"Uhransicht"},BF={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 ${Qw[t]} wechseln`:`${Qw[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=Wc[e])!=null?i:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${Wc.hours}`,minutesClockNumberText:e=>`${e} ${Wc.minutes}`,secondsClockNumberText:e=>`${e} ${Wc.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"},zF=Rr(BF),qF={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},WF={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 ${qF[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"},UF=Rr(WF),HF={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:"انتخاب ساعت"},VF=Rr(HF),YF={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},e_={calendar:"kalenteri",clock:"kello"},GF={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 ${e_[t]}näkymään`:`${e_[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 ${YF[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ä"},XF=Rr(GF),ZF={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},t_={calendar:"kalendáře",clock:"času"},KF={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í ${t_[t]}`:`Zobrazení ${t_[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=ZF[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"},JF=Rr(KF),QF={hours:"heures",minutes:"minutes",seconds:"secondes"},n_={calendar:"calendrier",clock:"horloge"},eN={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 ${n_[t]}`:`passer du ${n_[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"},tN=Rr(eN),Uc={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},r_={calendar:"naptár",clock:"óra"},nN={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 ${r_[t]} nézetre`:`${r_[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=Uc[e])!=null?i:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${Uc.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${Uc.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${Uc.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"},rN=Rr(nN),l4={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"},s4=l4,aN=Rr(l4),iN={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"},oN=Rr(iN),lN={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"},sN=Rr(lN),uN={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},cN={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 ${uN[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"},fN=Rr(cN),dN={hours:"小时",minutes:"分钟",seconds:"秒"},hN={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,r)=>`Select ${dN[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:"选择日期"},pN=Rr(hN),gN={hours:"시간을",minutes:"분을",seconds:"초를"},mN={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)=>`${gN[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:"선택한 날짜"},vN=Rr(mN),yN={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"},bN=Rr(yN),Hc={hours:"時間",minutes:"分",seconds:"秒"},a_={calendar:"カレンダー表示",clock:"時計表示"},xN={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${a_[t]}に切り替える`:`${a_[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,r)=>{var i;return`${(i=Hc[e])!=null?i:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${r.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${Hc.hours}`,minutesClockNumberText:e=>`${e} ${Hc.minutes}`,secondsClockNumberText:e=>`${e} ${Hc.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:"日付を選択"},wN=Rr(xN),_N={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:"оберіть дату"},TN=Rr(_N),kN={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:"تاریخ منتخب کریں"},MN=Rr(kN),Jg={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},SN={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${Jg[t]}`:`Выгляд ${Jg[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,r)=>`Абярыце ${Jg[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:"абраць дату"},CN=Rr(SN),ON={hours:"часы",minutes:"минуты",seconds:"секунды"},i_={calendar:"календарный",clock:"часовой"},AN={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${i_[t]} вид`:`Открыт ${i_[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,r)=>`Выбрать ${ON[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(AN),Ey=$e.createContext(null);function DN(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({},s4,l??{})}),[s,f,l]);return je.jsx(Ey.Provider,{value:u,children:r})}const rc=()=>{const e=$e.useContext(Ey);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},yr=()=>rc().utils,ac=()=>rc().defaultDates,ti=()=>rc().localeText,ic=()=>{const e=yr();return $e.useRef(e.date()).current};function u4(e){return _r("MuiMonthPicker",e)}const EN=wr("MuiMonthPicker",["root"]),Mu=({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},Ry=(e,t)=>{const r=e.date(t);return e.isValid(r)?r:null},Va=(e,t,r)=>{if(t==null)return r;const i=e.date(t);return e.isValid(i)?i:r},RN=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],LN=e=>{const{classes:t}=e;return Tr({root:["root"]},u4,t)};function IN(e,t){const r=yr(),i=ac(),c=fr({props:e,name:t});return Gt({disableFuture:!1,disablePast:!1},c,{minDate:Va(r,c.minDate,i.minDate),maxDate:Va(r,c.maxDate,i.maxDate)})}const FN=wn("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),c4=$e.forwardRef(function(t,r){const i=yr(),c=ic(),o=IN(t,"MuiMonthPicker"),{className:a,date:n,disabled:l,disableFuture:f,disablePast:s,maxDate:u,minDate:d,onChange:h,shouldDisableMonth:p,readOnly:g,disableHighlightToday:y,autoFocus:v=!1,onMonthFocus:m,hasFocus:b,onFocusedViewChange:x}=o,_=Vn(o,RN),w=o,k=LN(w),T=w9(),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(g)return;const W=i.setMonth(M,E);h(W,"finish")},[R,F]=gy({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),m&&m(E))},[D,i,M,A,m]);$e.useEffect(()=>{P(E=>S!==null&&E!==S?S:E)},[S]);const B=Od(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(FN,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(DF,{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 Ly(e,t,r){const{value:i,onError:c}=e,o=rc(),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 Iy=({props:e,value:t,adapter:r})=>{const i=r.utils.date(),c=r.utils.date(t),o=Va(r.utils,e.minDate,r.defaultDates.minDate),a=Va(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}},f4=({shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:c})=>{const o=rc();return $e.useCallback(a=>Iy({adapter:o,value:a,props:{shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:c}})!==null,[o,e,t,r,i,c])},NN=(e,t)=>e===t,Fy=e=>Ly(e,Iy,NN),jN=(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")}},$N=({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=ic(),d=yr(),h=$e.useRef(jN(!!l,c,d)).current,[p,g]=$e.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:e||u,currentMonth:d.startOfMonth((s=e??t)!=null?s:u),slideDirection:"left"}),y=$e.useCallback(_=>{g(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]),m=f4({shouldDisableDate:f,minDate:a,maxDate:o,disableFuture:r,disablePast:i}),b=$e.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),x=$e.useCallback((_,w)=>{m(_)||g({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:w})},[m]);return{calendarState:p,changeMonth:v,changeFocusedDay:x,isDateDisabled:m,onMonthSwitchingAnimationEnd:b,handleChangeMonth:y}},BN=e=>_r("MuiPickersFadeTransitionGroup",e),zN=wr("MuiPickersFadeTransitionGroup",["root"]),qN=e=>{const{classes:t}=e;return Tr({root:["root"]},BN,t)},o_=500,WN=wn(eS,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function d4(e){const t=fr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:r,className:i,reduceAnimations:c,transKey:o}=t,a=qN(t);return c?r:je.jsx(WN,{className:jr(a.root,i),children:je.jsx(tS,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:o_,enter:o_/2,exit:0},children:r},o)})}const Pu=36,oc=2,Ny=320,UN=358;function h4(e){return _r("MuiPickersDay",e)}const xu=wr("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),HN=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],VN=e=>{const{selected:t,disableMargin:r,disableHighlightToday:i,today:c,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:n,classes:l}=e;return Tr({root:["root",t&&"selected",o&&"disabled",!r&&"dayWithMargin",!i&&c&&"today",a&&n&&"dayOutsideMonth",a&&!n&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},h4,l)},p4=({theme:e,ownerState:t})=>Gt({},e.typography.caption,{width:Pu,height:Pu,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:Ef(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:Ef(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${xu.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${xu.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}},[`&.${xu.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${oc}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${xu.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),g4=(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]},YN=wn(_9,{name:"MuiPickersDay",slot:"Root",overridesResolver:g4})(p4),GN=wn("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:g4})(({theme:e,ownerState:t})=>Gt({},p4({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Qg=()=>{},XN=$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=Qg,onBlur:p=Qg,onKeyDown:g=Qg,onMouseDown:y,outsideCurrentMonth:v,selected:m=!1,showDaysOutsideCurrentMonth:b=!1,children:x,today:_=!1}=i,w=Vn(i,HN),k=Gt({},i,{autoFocus:c,disabled:n,disableHighlightToday:l,disableMargin:f,selected:m,showDaysOutsideCurrentMonth:b,today:_}),T=VN(k),M=yr(),S=$e.useRef(null),C=_l(S,r);my(()=>{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(GN,{className:jr(T.root,T.hiddenDaySpacingFiller,o),ownerState:k,role:w.role}):je.jsx(YN,Gt({className:jr(T.root,o),ownerState:k,ref:C,centerRipple:!0,disabled:n,tabIndex:m?0:-1,onKeyDown:O=>g(O,a),onFocus:O=>h(O,a),onBlur:O=>p(O,a),onClick:D,onMouseDown:P},w,{children:x||M.format(a,"dayOfMonth")}))}),ZN=(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,m4=$e.memo(XN,ZN),KN=e=>_r("PrivatePickersSlideTransition",e),sa=wr("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),JN=["children","className","reduceAnimations","slideDirection","transKey"],QN=e=>{const{classes:t}=e;return Tr({root:["root"]},KN,t)},v4=350,ej=wn(eS,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${sa["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${sa["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${sa.slideEnterActive}`]:t.slideEnterActive},{[`.${sa.slideExit}`]:t.slideExit},{[`.${sa["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${sa["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:v4,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},[`& .${sa["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${sa["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${sa.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${sa.slideExit}`]:{transform:"translate(0%)"},[`& .${sa["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${sa["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),tj=e=>{const{children:t,className:r,reduceAnimations:i,slideDirection:c,transKey:o}=e,a=Vn(e,JN),n=QN(e);if(i)return je.jsx("div",{className:jr(n.root,r),children:t});const l={exit:sa.slideExit,enterActive:sa.slideEnterActive,enter:sa[`slideEnter-${c}`],exitActive:sa[`slideExitActiveLeft-${c}`]};return je.jsx(ej,{className:jr(n.root,r),childFactory:f=>$e.cloneElement(f,{classNames:l}),role:"presentation",children:je.jsx(T9,Gt({mountOnEnter:!0,unmountOnExit:!0,timeout:v4,classNames:l},a,{children:t}),o)})},nj=e=>_r("MuiDayPicker",e),rj=wr("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),aj=e=>{const{classes:t}=e;return Tr({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},nj,t)},ij=e=>e.charAt(0).toUpperCase(),y4=(Pu+oc*2)*6,oj=wn("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),lj=wn(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})),sj=wn("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:y4}),uj=wn(tj,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:y4}),cj=wn("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),fj=wn("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${oc}px 0`,display:"flex",justifyContent:"center"});function dj(e){const t=ic(),r=yr(),i=fr({props:e,name:"MuiDayPicker"}),c=aj(i),{onFocusedDayChange:o,className:a,currentMonth:n,selectedDays:l,disabled:f,disableHighlightToday:s,focusedDay:u,isMonthSwitchingAnimating:d,loading:h,onSelectedDaysChange:p,onMonthSwitchingAnimationEnd:g,readOnly:y,reduceAnimations:v,renderDay:m,renderLoading:b=()=>je.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:x,slideDirection:_,TransitionProps:w,disablePast:k,disableFuture:T,minDate:M,maxDate:S,shouldDisableDate:C,dayOfWeekFormatter:P=ij,hasFocus:D,onFocusedViewChange:O,gridLabelId:R}=i,F=f4({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=Ad();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=Mu({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=Mu({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)?Mu({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(oj,{role:"row",className:c.header,children:r.getWeekdays().map((U,Q)=>{var Y;return je.jsx(lj,{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(sj,{className:c.loadingContainer,children:b()}):je.jsx(uj,Gt({transKey:H,onExited:g,reduceAnimations:v,slideDirection:_,className:jr(a,c.slideTransition)},w,{nodeRef:V,children:je.jsx(cj,{ref:V,role:"rowgroup",className:c.monthContainer,children:r.getWeekArray(n).map(U=>je.jsx(fj,{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"),m?m(Q,q,re):$e.createElement(m4,Gt({},re,{key:re.key}))})},`week-${U[0]}`))})}))]})}function jy({onChange:e,onViewChange:t,openTo:r,view:i,views:c}){var o,a;const[n,l]=gy({name:"Picker",state:"view",controlled:i,default:r&&bo(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,g)=>{const y=g==="finish";e(p,y&&s?"partial":g),y&&d()},[s,e,d]),nextView:s,previousView:f,openNext:d,openView:n,setOpenView:u}}const hj=ro(je.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),pj=ro(je.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),gj=ro(je.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),b4=ro(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"),x4=ro(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"),mj=ro(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"),vj=ro(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"),yj=ro(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 bj(e){return _r("MuiPickersArrowSwitcher",e)}wr("MuiPickersArrowSwitcher",["root","spacer","button"]);const xj=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],wj=e=>{const{classes:t}=e;return Tr({root:["root"],spacer:["spacer"],button:["button"]},bj,t)},_j=wn("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Tj=wn("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),l_=wn(jl,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Gt({},e.hidden&&{visibility:"hidden"})),w4=$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:g}=i,y=Vn(i,xj),m=Ad().direction==="rtl",b=(n==null?void 0:n.leftArrowButton)||{},x=(a==null?void 0:a.LeftArrowIcon)||pj,_=(n==null?void 0:n.rightArrowButton)||{},w=(a==null?void 0:a.RightArrowIcon)||gj,k=i,T=wj(k);return je.jsxs(_j,Gt({ref:r,className:jr(T.root,o),ownerState:k},y,{children:[je.jsx(l_,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:m?je.jsx(w,{}):je.jsx(x,{})})),c?je.jsx(Cr,{variant:"subtitle1",component:"span",children:c}):je.jsx(Tj,{className:T.spacer,ownerState:k}),je.jsx(l_,Gt({as:a==null?void 0:a.RightArrowButton,size:"small","aria-label":g,title:g,edge:"start",disabled:s,onClick:p},_,{className:jr(T.button,_.className),ownerState:Gt({},k,_,{hidden:u}),children:m?je.jsx(x,{}):je.jsx(w,{})}))]}))}),kj=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,F0=(e,t,r)=>r&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Mj=(e,t,r,i)=>{const c=F0(i.getHours(e),t,r);return i.setHours(e,c)},s_=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),_4=(e=!1,t)=>(r,i)=>e?t.isAfter(r,i):s_(r,t)>s_(i,t);function Sj(e,{disableFuture:t,maxDate:r}){const i=yr();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 Cj(e,{disablePast:t,minDate:r}){const i=yr();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 T4(e,t,r){const i=yr(),c=kj(e,i),o=$e.useCallback(a=>{const n=e==null?null:Mj(e,a,!!t,i);r(n,"partial")},[t,e,r,i]);return{meridiemMode:c,handleMeridiemChange:o}}const k4=e=>()=>{},Oj=e=>_r("MuiPickersCalendarHeader",e),Aj=wr("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Pj=e=>{const{classes:t}=e;return Tr({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Oj,t)},Dj=wn("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}),Ej=wn("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})),Rj=wn("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Lj=wn(jl,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),Ij=wn(hj,{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)"})),Fj=k4();function Nj(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:g,rightArrowButtonText:y,views:v,labelId:m}=t;Fj({leftArrowButtonText:f,rightArrowButtonText:y,getViewSwitchingButtonText:l});const b=ti(),x=f??b.previousMonth,_=y??b.nextMonth,w=l??b.calendarViewSwitchingButtonAriaLabel,k=yr(),T=Pj(t),M=i.switchViewButton||{},S=()=>d(k.getNextMonth(c),"left"),C=()=>d(k.getPreviousMonth(c),"right"),P=Sj(c,{disableFuture:a,maxDate:s}),D=Cj(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(Dj,{ownerState:R,className:T.root,children:[je.jsxs(Ej,{role:"presentation",onClick:O,ownerState:R,"aria-live":"polite",className:T.labelContainer,children:[je.jsx(d4,{reduceAnimations:g,transKey:k.format(c,"monthAndYear"),children:je.jsx(Rj,{id:m,ownerState:R,className:T.label,children:k.format(c,"monthAndYear")})}),v.length>1&&!o&&je.jsx(Lj,Gt({size:"small",as:r.SwitchViewButton,"aria-label":w(p),className:T.switchViewButton},M,{children:je.jsx(Ij,{as:r.SwitchViewIcon,ownerState:R,className:T.switchViewIcon})}))]}),je.jsx(tS,{in:p==="day",children:je.jsx(w4,{leftArrowButtonText:x,rightArrowButtonText:_,components:r,componentsProps:i,onLeftClick:C,onRightClick:S,isLeftDisabled:D,isRightDisabled:P})})]})}const Di=$e.createContext(null);function jj(e){return _r("PrivatePickersYear",e)}const _o=wr("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),$j=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],Bj=e=>{const{wrapperVariant:t,disabled:r,selected:i,classes:c}=e,o={root:["root",t&&`mode${k9(t)}`],yearButton:["yearButton",r&&"disabled",i&&"selected"]};return Tr(o,jj,c)},zj=wn("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${_o.modeDesktop}`]:t.modeDesktop},{[`&.${_o.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Gt({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),qj=wn("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${_o.disabled}`]:t.disabled},{[`&.${_o.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:Ef(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${_o.disabled}`]:{color:e.palette.text.secondary},[`&.${_o.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),u_=()=>{},Wj=$e.forwardRef(function(t,r){const{autoFocus:i,className:c,children:o,disabled:a,onClick:n,onKeyDown:l,value:f,tabIndex:s,onFocus:u=u_,onBlur:d=u_}=t,h=Vn(t,$j),p=$e.useRef(null),g=_l(p,r),y=$e.useContext(Di),v=Gt({},t,{wrapperVariant:y}),m=Bj(v);return $e.useEffect(()=>{i&&p.current.focus()},[i]),je.jsx(zj,{className:jr(m.root,c),ownerState:v,children:je.jsx(qj,Gt({ref:g,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:m.yearButton,ownerState:v},h,{children:o}))})});function M4(e){return _r("MuiYearPicker",e)}const Uj=wr("MuiYearPicker",["root"]),Hj=e=>{const{classes:t}=e;return Tr({root:["root"]},M4,t)};function Vj(e,t){const r=yr(),i=ac(),c=fr({props:e,name:t});return Gt({disablePast:!1,disableFuture:!1},c,{minDate:Va(r,c.minDate,i.minDate),maxDate:Va(r,c.maxDate,i.maxDate)})}const Yj=wn("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"}),S4=$e.forwardRef(function(t,r){const i=ic(),c=Ad(),o=yr(),a=Vj(t,"MuiYearPicker"),{autoFocus:n,className:l,date:f,disabled:s,disableFuture:u,disablePast:d,maxDate:h,minDate:p,onChange:g,readOnly:y,shouldDisableYear:v,disableHighlightToday:m,onYearFocus:b,hasFocus:x,onFocusedViewChange:_}=a,w=a,k=Hj(w),T=$e.useMemo(()=>f??o.startOfYear(i),[i,o,f]),M=$e.useMemo(()=>f!=null?o.getYear(f):m?null:o.getYear(i),[i,f,o,m]),S=$e.useContext(Di),C=$e.useRef(null),[P,D]=$e.useState(()=>M||o.getYear(i)),[O,R]=M9({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);g(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=_l(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(Wj,{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"))})})}),$y=wn("div")({overflowX:"hidden",width:Ny,maxHeight:UN,display:"flex",flexDirection:"column",margin:"0 auto"}),Gj=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),C4=e=>_r("MuiCalendarPicker",e),Xj=wr("MuiCalendarPicker",["root","viewTransitionContainer"]),Zj=["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"],Kj=e=>{const{classes:t}=e;return Tr({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},C4,t)};function Jj(e,t){const r=yr(),i=ac(),c=fr({props:e,name:t});return Gt({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:Gj,renderLoading:()=>je.jsx("span",{children:"..."})},c,{minDate:Va(r,c.minDate,i.minDate),maxDate:Va(r,c.maxDate,i.maxDate)})}const Qj=wn($y,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),e$=wn(d4,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),O4=$e.forwardRef(function(t,r){const i=yr(),c=nS(),o=Jj(t,"MuiCalendarPicker"),{autoFocus:a,onViewChange:n,date:l,disableFuture:f,disablePast:s,defaultCalendarMonth:u,onChange:d,onYearChange:h,onMonthChange:p,reduceAnimations:g,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:m,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,Zj),{openView:R,setOpenView:F,openNext:A}=jy({view:b,views:x,openTo:_,onChange:d,onViewChange:n}),{calendarState:z,changeFocusedDay:B,changeMonth:$,handleChangeMonth:j,isDateDisabled:N,onMonthSwitchingAnimationEnd:E}=$N({date:l,defaultCalendarMonth:u,reduceAnimations:g,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)?Mu({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)?Mu({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=Kj(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]=gy({name:"DayPicker",state:"focusedView",controlled:P,default:a?R:null}),X=Y!==null,re=Od(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(Nj,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:g,labelId:Q})),je.jsx(e$,{reduceAnimations:g,className:H.viewTransitionContainer,transKey:R,ownerState:q,children:je.jsxs("div",{children:[R==="year"&&je.jsx(S4,Gt({},O,V,U,{autoFocus:a,date:l,onChange:G,shouldDisableYear:m,hasFocus:X,onFocusedViewChange:re("year")})),R==="month"&&je.jsx(c4,Gt({},V,U,{autoFocus:a,hasFocus:X,className:w,date:l,onChange:W,shouldDisableMonth:v,onFocusedViewChange:re("month")})),R==="day"&&je.jsx(dj,Gt({},O,z,V,U,{autoFocus:a,onMonthSwitchingAnimationEnd:E,onFocusedDayChange:B,reduceAnimations:g,selectedDays:[l],onSelectedDaysChange:L,shouldDisableDate:y,hasFocus:X,onFocusedViewChange:re("day"),gridLabelId:Q}))]})})]})}),A4=e=>_r("MuiCalendarPickerSkeleton",e),t$=wr("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),n$=["className"],r$=e=>{const{classes:t}=e;return Tr({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},A4,t)},a$=wn("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),i$=wn("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${oc}px 0`,display:"flex",justifyContent:"center"}),P4=wn(S9,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Gt({margin:`0 ${oc}px`},e.day===0&&{visibility:"hidden"}));P4.propTypes={ownerState:oe.shape({day:oe.number.isRequired}).isRequired};const o$=[[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 l$(e){const t=fr({props:e,name:"MuiCalendarPickerSkeleton"}),{className:r}=t,i=Vn(t,n$),c=r$(i);return je.jsx(a$,Gt({className:jr(c.root,r)},i,{children:o$.map((o,a)=>je.jsx(i$,{className:c.week,children:o.map((n,l)=>je.jsx(P4,{variant:"circular",width:Pu,height:Pu,className:c.daySkeleton,ownerState:{day:n}},l))},a))}))}const Sl=220,Gi=36,Du={x:Sl/2,y:Sl/2},D4={x:Du.x,y:0},s$=D4.x-Du.x,u$=D4.y-Du.y,c$=e=>e*(180/Math.PI),E4=(e,t,r)=>{const i=t-Du.x,c=r-Du.y,o=Math.atan2(s$,u$)-Math.atan2(i,c);let a=c$(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}},f$=(e,t,r=1)=>{const i=r*6;let{value:c}=E4(i,e,t);return c=c*r%60,c},d$=(e,t,r)=>{const{value:i,distance:c}=E4(30,e,t);let o=i||12;return r?o%=12:c{const{classes:t}=e;return Tr({root:["root"],thumb:["thumb"]},h$,t)},v$=wn("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"])})),y$=wn("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% - ${Gi/2}px)`,border:`${(Gi-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function b$(e){const t=fr({props:e,name:"MuiClockPointer"}),{className:r,isInner:i,type:c,value:o}=t,a=Vn(t,g$),n=$e.useRef(c);$e.useEffect(()=>{n.current=c},[c]);const l=Gt({},t,{shouldAnimate:n.current!==c}),f=m$(l),s=()=>{let d=360/(c==="hours"?12:60)*o;return c==="hours"&&o>12&&(d-=360),{height:Math.round((i?.26:.4)*Sl),transform:`rotateZ(${d}deg)`}};return je.jsx(v$,Gt({style:s(),className:jr(r,f.root),ownerState:l},a,{children:je.jsx(y$,{ownerState:l,className:f.thumb})}))}function x$(e){return _r("MuiClock",e)}const w$=wr("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),_$=e=>{const{classes:t}=e;return C9({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},x$,t)},T$=wn("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),k$=wn("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"}),M$=wn("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),S$=wn("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"}})),C$=wn("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%)"})),O$=wn(jl,{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}})),A$=wn(jl,{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 P$(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:g,disabled:y,readOnly:v,className:m}=t,b=t,x=yr(),_=$e.useContext(Di),w=$e.useRef(!1),k=_$(b),T=f(g,p),M=!r&&p==="hours"&&(g<1||g>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"?f$(N,E,u):d$(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:g%5===0,[p,g]),A=p==="minutes"?u:1,z=$e.useRef(null);my(()=>{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(g+A,"partial"),$.preventDefault();break;case"ArrowDown":S(g-A,"partial"),$.preventDefault();break}};return je.jsxs(T$,{className:jr(m,k.root),children:[je.jsxs(k$,{className:k.clock,children:[je.jsx(S$,{onTouchMove:P,onTouchEnd:D,onMouseUp:R,onMouseMove:O,ownerState:{disabled:y},className:k.squareMask}),!T&&je.jsxs($e.Fragment,{children:[je.jsx(C$,{className:k.pin}),a&&je.jsx(b$,{type:p,value:g,isInner:M,hasSelected:F})]}),je.jsx(M$,{"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(O$,{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(A$,{disabled:y||s===null,onClick:v?void 0:()=>l("pm"),ownerState:b,className:k.pmButton,children:je.jsx(Cr,{variant:"caption",children:"PM"})})]})]})}function D$(e){return _r("MuiClockNumber",e)}const wu=wr("MuiClockNumber",["root","selected","disabled"]),E$=["className","disabled","index","inner","label","selected"],R$=e=>{const{classes:t,selected:r,disabled:i}=e;return Tr({root:["root",r&&"selected",i&&"disabled"]},D$,t)},L$=wn("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${wu.disabled}`]:t.disabled},{[`&.${wu.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Gt({height:Gi,width:Gi,position:"absolute",left:`calc((100% - ${Gi}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},[`&.${wu.selected}`]:{color:e.palette.primary.contrastText},[`&.${wu.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Gt({},e.typography.body2,{color:e.palette.text.secondary})));function R4(e){const t=fr({props:e,name:"MuiClockNumber"}),{className:r,disabled:i,index:c,inner:o,label:a,selected:n}=t,l=Vn(t,E$),f=t,s=R$(f),u=c%12/12*Math.PI*2-Math.PI/2,d=(Sl-Gi-2)/2*(o?.65:1),h=Math.round(Math.cos(u)*d),p=Math.round(Math.sin(u)*d);return je.jsx(L$,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+(Sl-Gi)/2}px`},ownerState:f},l,{children:a}))}const I$=({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(R4,{id:p?c:void 0,index:u,inner:h,selected:p,disabled:i(u),label:d,"aria-label":r(d)},u))}return n},c_=({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(R4,{label:n,id:f?c:void 0,index:l+1,inner:!1,disabled:r(a),selected:f,"aria-label":i(n)},a)})};function L4(e){return _r("MuiClockPicker",e)}const F$=wr("MuiClockPicker",["root","arrowSwitcher"]),N$=e=>{const{classes:t}=e;return Tr({root:["root"],arrowSwitcher:["arrowSwitcher"]},L4,t)},j$=wn($y,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),$$=wn(w4,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),B$=k4(),I4=$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:g,maxTime:y,minTime:v,minutesStep:m=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;B$({leftArrowButtonText:g,rightArrowButtonText:b,getClockLabelText:u,getHoursClockNumberText:d,getMinutesClockNumberText:h,getSecondsClockNumberText:p});const O=ti(),R=g??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}=jy({view:k,views:T,openTo:M,onViewChange:S,onChange:w}),L=ic(),q=yr(),H=$e.useMemo(()=>f||q.setSeconds(q.setMinutes(q.setHours(L,0),0),0),[f,L,q]),{meridiemMode:V,handleMeridiemChange:te}=T4(H,c,G),ee=$e.useCallback((X,re)=>{const ie=_4(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=F0(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,m)}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,m,x,q]),U=nS(),Q=$e.useMemo(()=>{switch(j){case"hours":{const X=(re,ie)=>{const le=F0(re,V,c);G(q.setHours(H,le),ie)};return{onChange:X,value:q.getHours(H),children:I$({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:c_({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:c_({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=N$(Y);return je.jsxs(j$,{ref:r,className:jr(Z.root,C),ownerState:Y,children:[_&&je.jsx($$,{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(P$,Gt({autoFocus:a,date:f,ampmInClock:o,type:j,ampm:c,getClockLabelText:A,minutesStep:m,isTimeDisabled:ee,meridiemMode:V,handleMeridiemChange:te,selectedId:U,disabled:P,readOnly:D},Q))]})}),F4=e=>e.length===1&&e[0]==="year",N4=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,z$=(e,t)=>F4(e)?{inputFormat:t.formats.year}:N4(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function By(e,t){var r;const i=yr(),c=ac(),o=fr({props:e,name:t}),a=(r=o.views)!=null?r:["year","day"];return Gt({openTo:"day",disableFuture:!1,disablePast:!1},z$(a,i),o,{views:a,minDate:Va(i,o.minDate,c.minDate),maxDate:Va(i,o.maxDate,c.maxDate)})}const zy={emptyValue:null,getTodayValue:e=>e.date(),parseInput:Ry,areValuesEqual:(e,t,r)=>e.isEqual(t,r)};function j4(e){return _r("MuiPickersToolbar",e)}const qy=wr("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),q$=e=>{const{classes:t,isLandscape:r}=e;return Tr({root:["root"],content:["content"],penIconButton:["penIconButton",r&&"penIconButtonLandscape"]},j4,t)},W$=wn("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"})),U$=wn(Jn,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Gt({flex:1},!e.isLandscape&&{alignItems:"center"})),H$=wn(jl,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${qy.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),V$=e=>e==="clock"?je.jsx(x4,{color:"inherit"}):je.jsx(b4,{color:"inherit"}),Wy=$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=ti(),g=q$(h);return je.jsxs(W$,{ref:r,className:jr(g.root,o),ownerState:h,children:[je.jsx(Cr,{color:"text.secondary",variant:"overline",children:u}),je.jsxs(U$,{container:!0,justifyContent:"space-between",className:g.content,ownerState:h,direction:n?f:"row",alignItems:n?"flex-start":"flex-end",children:[c,je.jsx(H$,{onClick:s,className:g.penIconButton,ownerState:h,color:"inherit","aria-label":a?a(l,d):p.inputModeToggleButtonAriaLabel(l,d),children:l?V$(d):je.jsx(vj,{color:"inherit"})})]})]})});function Y$(e){return _r("MuiDatePickerToolbar",e)}const G$=wr("MuiDatePickerToolbar",["root","title"]),X$=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],Z$=e=>{const{classes:t}=e;return Tr({root:["root"],title:["title"]},Y$,t)},K$=wn(Wy,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),J$=wn(Cr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Gt({},e.isLandscape&&{margin:"auto 16px auto auto"})),Uy=$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,X$),h=yr(),p=ti(),g=Z$(i),y=s??p.datePickerDefaultToolbarTitle,v=$e.useMemo(()=>c?l?h.formatByString(c,l):F4(u)?h.format(c,"year"):N4(u)?h.format(c,"month"):/en/.test(h.getCurrentLocaleCode())?h.format(c,"normalDateWithWeekday"):h.format(c,"normalDate"):f,[c,l,f,h,u]),m=i;return je.jsx(K$,Gt({ref:r,toolbarTitle:y,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:n,isLandscape:o,className:g.root},d,{children:je.jsx(J$,{variant:"h4",align:o?"left":"center",ownerState:m,className:g.title,children:v})}))}),Q$=["onAccept","onClear","onCancel","onSetToday","actions"],Hy=e=>{const{onAccept:t,onClear:r,onCancel:i,onSetToday:c,actions:o}=e,a=Vn(e,Q$),n=$e.useContext(Di),l=ti(),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(hi,{onClick:r,children:l.clearButtonLabel},u);case"cancel":return je.jsx(hi,{onClick:i,children:l.cancelButtonLabel},u);case"accept":return je.jsx(hi,{onClick:t,children:l.okButtonLabel},u);case"today":return je.jsx(hi,{onClick:c,children:l.todayButtonLabel},u);default:return null}});return je.jsx(O9,Gt({},a,{children:s}))};function eB(e){return _r("MuiPickersPopper",e)}wr("MuiPickersPopper",["root","paper"]);const tB=["onClick","onTouchStart"],nB=e=>{const{classes:t}=e;return Tr({root:["root"],paper:["paper"]},eB,t)},rB=wn(A9,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),aB=wn(rS,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Gt({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function iB(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=Od(l=>{if(!o.current)return;const f=i.current;i.current=!1;const s=sg(c.current);if(!c.current||"clientX"in l&&iB(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=sg(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=sg(c.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),i.current=!1}}},[e,a]),[c,n,n]}function lB(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:g=D9,TrapFocusProps:y,PaperProps:v={},components:m,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=o4(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[d,p]);const[_,w,k]=oB(d,a??n),T=$e.useRef(null),M=_l(T,o),S=_l(M,_),C=r,P=nB(C),{onClick:D,onTouchStart:O}=v,R=Vn(v,tB),F=B=>{B.key==="Escape"&&(B.stopPropagation(),n())},A=(t=m==null?void 0:m.ActionBar)!=null?t:Hy,z=(m==null?void 0:m.PaperContent)||$e.Fragment;return je.jsx(rB,Gt({transition:!0,role:p,open:d,anchorEl:i,onKeyDown:F,className:P.root},h,{children:({TransitionProps:B,placement:$})=>je.jsx(P9,Gt({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:p==="tooltip",isEnabled:()=>!0},y,{children:je.jsx(g,Gt({},B,{children:je.jsx(aB,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 Vy(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,g=$e.useRef(null),y=_l(r.inputRef,g);return je.jsxs(Di.Provider,{value:"desktop",children:[je.jsx(i,Gt({},r,{inputRef:y})),je.jsx(lB,{role:"dialog",open:f,anchorEl:g.current,TransitionComponent:d,PopperProps:s,PaperProps:u,onClose:o,onCancel:a,onClear:c,onAccept:n,onSetToday:l,components:h,componentsProps:p,children:t})]})}const sB=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,g=l.slice(f.selectionStart).search(e.accept||/\d/g),y=g!==-1?g:0,v=w=>(w.match(e.accept||/\d/g)||[]).join(""),m=v(l.substr(0,f.selectionStart)),b=w=>{let k=0,T=0;for(let M=0;M!==m.length;++M){let S=w.indexOf(m[M],k)+1,C=v(w).indexOf(m[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}},N0=(e,t,r)=>{const i=e.date(t);return t===null?"":e.isValid(i)?e.formatByString(i,r):""},jf="_",$4="2019-11-21T22:30:00.000",B4="2019-01-01T09:00:00.000";function uB(e,t,r,i){if(e)return e;const o=i.formatByString(i.date(B4),t).replace(r,jf),a=i.formatByString(i.date($4),t).replace(r,"_");return o===a?o:""}function cB(e,t,r,i){if(!e)return!1;const o=i.formatByString(i.date(B4),t).replace(r,jf),a=i.formatByString(i.date($4),t).replace(r,"_"),n=a===o&&e===a;return!n&&i.lib,n}const fB=(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===jf?l:a+l;return i+=f.length,o===r.length-1&&n&&n!==jf?f?f+n:"":f}).join("")},dB=({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=yr(),g=p.getFormatHelperText(c),{shouldUseMaskedInput:y,maskToUse:v}=$e.useMemo(()=>{if(r)return{shouldUseMaskedInput:!1,maskToUse:""};const O=uB(n,c,e,p);return{shouldUseMaskedInput:cB(O,c,e,p),maskToUse:O}},[e,r,c,n,p]),m=$e.useMemo(()=>y&&v?fB(v,e):O=>O,[e,v,y]),b=f===null?null:p.date(f),[x,_]=$e.useState(b),[w,k]=$e.useState(N0(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 $=N0(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=sB({value:w,onChange:C,format:u||m});return Gt({label:a,disabled:t,error:h,inputProps:Gt({},y?P:{value:w,onChange:O=>{C(O.currentTarget.value)}},{disabled:t,placeholder:g,readOnly:s,type:y?"tel":"text"},o)},d)},hB=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],Bd=$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,hB),p=ti(),g=a??p.openDatePickerDialogue,y=yr(),v=dB(h),m=(n==null?void 0:n.position)||"end",b=c.OpenPickerIcon||b4;return d(Gt({ref:r,inputRef:f,className:i},v,{InputProps:Gt({},l,{[`${m}Adornment`]:o?void 0:je.jsx(E9,Gt({position:m},n,{children:je.jsx(jl,Gt({edge:m,disabled:h.disabled||h.readOnly,"aria-label":g(h.rawValue,y)},u,{onClick:s,children:je.jsx(b,{})}))}))})}))});function f_(){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 pB=(e,t)=>{const[r,i]=$e.useState(f_);return my(()=>{const o=()=>{i(f_())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),bo(e,["hours","minutes","seconds"])?!1:(t||r)==="landscape"},gB=({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 mB(e){return _r("MuiCalendarOrClockPicker",e)}wr("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const vB=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],yB=e=>{const{classes:t}=e;return Tr({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},mB,t)},bB=wn("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),xB=wn("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Gt({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),wB={fullWidth:!0},d_=e=>e==="year"||e==="month"||e==="day",h_=e=>e==="hours"||e==="minutes"||e==="seconds";function Ei(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:g,toolbarPlaceholder:y,toolbarTitle:v,views:m,dateRangeIcon:b,timeIcon:x,hideTabs:_}=i,w=Vn(i,vB),k=(t=w.components)==null?void 0:t.Tabs,T=pB(m,u),M=$e.useContext(Di),S=yB(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}=jy({view:void 0,views:m,openTo:s,onChange:D,onViewChange:O}),{focusedView:z,setFocusedView:B}=gB({autoFocus:c,openView:R});return je.jsxs(xB,{ownerState:{isLandscape:T},className:S.root,children:[C&&je.jsx(p,Gt({},w,{views:m,isLandscape:T,parsedValue:o,onChange:D,setOpenView:F,openView:R,toolbarTitle:v,toolbarFormat:g,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($y,{children:n?je.jsx(bB,{className:S.mobileKeyboardInputView,children:je.jsx(Bd,Gt({},a,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:wB}))}):je.jsxs($e.Fragment,{children:[d_(R)&&je.jsx(O4,Gt({autoFocus:c,date:o,onViewChange:F,onChange:A,view:R,views:m.filter(d_),focusedView:z,onFocusedViewChange:B},w)),h_(R)&&je.jsx(I4,Gt({},w,{autoFocus:c,date:o,view:R,views:m.filter(h_),onChange:A,onViewChange:F,showViewSwitcher:M==="desktop"}))]})})]})}const _B=({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}},Ri=(e,t)=>{const{onAccept:r,onChange:i,value:c,closeOnSelect:o}=e,a=yr(),{isOpen:n,setIsOpen:l}=_B(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 g=$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),m=$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:m,inputProps:x,wrapperProps:g};return $e.useDebugValue(_,()=>({MuiPickerState:{dateState:d,other:_}})),_},TB=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],z4=$e.forwardRef(function(t,r){const i=By(t,"MuiDesktopDatePicker"),c=Fy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,zy),{PopperProps:l,PaperProps:f,ToolbarComponent:s=Uy,TransitionComponent:u,components:d,componentsProps:h}=i,p=Vn(i,TB),g=Gt({},a,p,{components:d,componentsProps:h,ref:r,validationError:c});return je.jsx(Vy,Gt({},n,{DateInputProps:g,KeyboardDateInputComponent:Bd,PopperProps:l,PaperProps:f,TransitionComponent:u,components:d,componentsProps:h,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:g,components:d,componentsProps:h},p))}))}),kB=wn(R9)({[`& .${z2.container}`]:{outline:0},[`& .${z2.paper}`]:{outline:0,minWidth:Ny}}),MB=wn(L9)({"&:first-of-type":{padding:0}}),SB=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:Hy;return je.jsxs(kB,Gt({open:f,onClose:a},i,{children:[je.jsx(MB,{children:r}),je.jsx(d,Gt({onAccept:c,onClear:o,onCancel:n,onSetToday:l,actions:["cancel","accept"]},u==null?void 0:u.actionBar))]}))},CB=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function Yy(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,CB);return je.jsxs(Di.Provider,{value:"mobile",children:[je.jsx(s,Gt({components:u},h,r)),je.jsx(SB,{DialogProps:i,onAccept:c,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,components:u,componentsProps:d,children:t})]})}const Gy=$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,g=ti(),y=c??g.openDatePickerDialogue,v=yr(),m=$e.useMemo(()=>Gt({},a,{readOnly:!0}),[a]),b=N0(v,s,o),x=Od(_=>{_.stopPropagation(),f()});return u(Gt({label:l,disabled:i,ref:r,inputRef:n,error:h,InputProps:m,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:i4(f)})},d))}),OB=["ToolbarComponent","value","onChange","components","componentsProps"],q4=$e.forwardRef(function(t,r){const i=By(t,"MuiMobileDatePicker"),c=Fy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,zy),{ToolbarComponent:l=Uy,components:f,componentsProps:s}=i,u=Vn(i,OB),d=Gt({},a,u,{components:f,componentsProps:s,ref:r,validationError:c});return je.jsx(Yy,Gt({},u,n,{DateInputProps:d,PureDateInputComponent:Gy,components:f,componentsProps:s,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:f,componentsProps:s},u))}))}),AB=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],PB=$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,AB);return vy(c,{defaultMatches:!0})?je.jsx(z4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(q4,Gt({ref:r,DialogProps:o},l))});function Xy(e,t){var r,i,c,o,a;const n=fr({props:e,name:t}),l=yr(),f=ac(),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:Va(l,(i=n.minDateTime)!=null?i:n.minDate,f.minDate),maxDate:Va(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 Zy={emptyValue:null,getTodayValue:e=>e.date(),parseInput:Ry,areValuesEqual:(e,t,r)=>e.isEqual(t,r)},DB=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function EB(e){return _r("PrivatePickersToolbarText",e)}const p_=wr("PrivatePickersToolbarText",["root","selected"]),RB=["className","selected","value"],LB=e=>{const{classes:t,selected:r}=e;return Tr({root:["root",r&&"selected"]},EB,t)},IB=wn(Cr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${p_.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${p_.selected}`]:{color:e.palette.text.primary}})),Ky=$e.forwardRef(function(t,r){const{className:i,value:c}=t,o=Vn(t,RB),a=LB(t);return je.jsx(IB,Gt({ref:r,className:jr(i,a.root),component:"span"},o,{children:c}))}),FB=["align","className","selected","typographyClassName","value","variant"],NB=e=>{const{classes:t}=e;return Tr({root:["root"]},j4,t)},jB=wn(hi,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),ci=$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,FB),u=NB(i);return je.jsx(jB,Gt({variant:"text",ref:r,className:jr(o,u.root)},s,{children:je.jsx(Ky,{align:c,className:n,variant:f,value:l,selected:a})}))});function $B(e){return _r("MuiDateTimePickerToolbar",e)}const BB=wr("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),zB=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],qB=e=>{const{classes:t}=e;return Tr({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},$B,t)},WB=wn(Wy,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${qy.penIconButton}`]:Gt({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),UB=wn("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),HB=wn("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),g_=wn(Ky,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function Jy(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,zB),h=t,p=yr(),g=ti(),y=qB(h),v=s??g.dateTimePickerDefaultToolbarTitle,m=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(WB,Gt({toolbarTitle:v,isMobileKeyboardViewOpen:c,toggleMobileKeyboardView:n,className:y.root,viewType:DB(o)},d,{isLandscape:!1,ownerState:h,children:[je.jsxs(UB,{className:y.dateContainer,ownerState:h,children:[u.includes("year")&&je.jsx(ci,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:o==="year",value:i?p.format(i,"year"):"–"}),u.includes("day")&&je.jsx(ci,{tabIndex:-1,variant:"h4",onClick:()=>a("day"),selected:o==="day",value:b})]}),je.jsxs(HB,{className:y.timeContainer,ownerState:h,children:[u.includes("hours")&&je.jsx(ci,{variant:"h3",onClick:()=>a("hours"),selected:o==="hours",value:i?m(i):"--"}),u.includes("minutes")&&je.jsxs($e.Fragment,{children:[je.jsx(g_,{variant:"h3",value:":",className:y.separator,ownerState:h}),je.jsx(ci,{variant:"h3",onClick:()=>a("minutes"),selected:o==="minutes",value:i?p.format(i,"minutes"):"--"})]}),u.includes("seconds")&&je.jsxs($e.Fragment,{children:[je.jsx(g_,{variant:"h3",value:":",className:y.separator,ownerState:h}),je.jsx(ci,{variant:"h3",onClick:()=>a("seconds"),selected:o==="seconds",value:i?p.format(i,"seconds"):"--"})]})]})]}))}const W4=({adapter:e,value:t,props:r})=>{const{minTime:i,maxTime:c,minutesStep:o,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:n}=r,l=e.utils.date(t),f=_4(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}},VB=(e,t)=>e===t,Qy=e=>Ly(e,W4,VB),YB=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],GB=({props:e,value:t,adapter:r})=>{const{minDate:i,maxDate:c,disableFuture:o,shouldDisableDate:a,disablePast:n}=e,l=Vn(e,YB),f=Iy({adapter:r,value:t,props:{minDate:i,maxDate:c,disableFuture:o,shouldDisableDate:a,disablePast:n}});return f!==null?f:W4({adapter:r,value:t,props:l})},XB=(e,t)=>e===t;function e1(e){return Ly(e,GB,XB)}function ZB(e){return _r("MuiDateTimePickerTabs",e)}const KB=wr("MuiDateTimePickerTabs",["root"]),JB=e=>["day","month","year"].includes(e)?"date":"time",QB=e=>e==="date"?"day":"hours",ez=e=>{const{classes:t}=e;return Tr({root:["root"]},ZB,t)},tz=wn(aS,{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}`,[`& .${I9.indicator}`]:{bottom:"auto",top:0}})),zd=function(t){const r=fr({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:i=je.jsx(mj,{}),onChange:c,timeIcon:o=je.jsx(yj,{}),view:a}=r,n=ti(),l=$e.useContext(Di),f=Gt({},r,{wrapperVariant:l}),s=ez(f),u=(d,h)=>{c(QB(h))};return je.jsxs(tz,{ownerState:f,variant:"fullWidth",value:JB(a),onChange:u,className:s.root,children:[je.jsx(A0,{value:"date","aria-label":n.dateTableLabel,icon:je.jsx($e.Fragment,{children:i})}),je.jsx(A0,{value:"time","aria-label":n.timeTableLabel,icon:je.jsx($e.Fragment,{children:o})})]})},nz=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],U4=$e.forwardRef(function(t,r){const i=Xy(t,"MuiDesktopDateTimePicker"),c=e1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,Zy),{PaperProps:l,PopperProps:f,ToolbarComponent:s=Jy,TransitionComponent:u,components:d,componentsProps:h,hideTabs:p=!0}=i,g=Vn(i,nz),y=$e.useMemo(()=>Gt({Tabs:zd},d),[d]),v=Gt({},a,g,{components:y,componentsProps:h,ref:r,validationError:c});return je.jsx(Vy,Gt({},n,{DateInputProps:v,KeyboardDateInputComponent:Bd,PopperProps:f,PaperProps:l,TransitionComponent:u,components:y,componentsProps:h,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:v,components:y,componentsProps:h,hideTabs:p},g))}))}),rz=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],H4=$e.forwardRef(function(t,r){const i=Xy(t,"MuiMobileDateTimePicker"),c=e1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,Zy),{ToolbarComponent:l=Jy,components:f,componentsProps:s,hideTabs:u=!1}=i,d=Vn(i,rz),h=$e.useMemo(()=>Gt({Tabs:zd},f),[f]),p=Gt({},a,d,{components:h,componentsProps:s,ref:r,validationError:c});return je.jsx(Yy,Gt({},d,n,{DateInputProps:p,PureDateInputComponent:Gy,components:h,componentsProps:s,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:p,components:h,componentsProps:s,hideTabs:u},d))}))}),az=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],iz=$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,az);return vy(c,{defaultMatches:!0})?je.jsx(U4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(H4,Gt({ref:r,DialogProps:o},l))});function t1(e,t){var r;const i=fr({props:e,name:t}),c=yr(),o=(r=i.ampm)!=null?r:c.is12HourCycleInCurrentLocale(),n=ti().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:x4},i.components)})}const n1={emptyValue:null,parseInput:Ry,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 oz(e){return _r("MuiTimePickerToolbar",e)}const vl=wr("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),lz=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],sz=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 Tr(c,oz,i)},uz=wn(Wy,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${qy.penIconButtonLandscape}`]:{marginTop:"auto"}}),cz=wn(Ky,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),fz=wn("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${vl.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${vl.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"})),dz=wn("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${vl.ampmLabel}`]:t.ampmLabel},{[`&.${vl.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%"},{[`& .${vl.ampmLabel}`]:{fontSize:17}}));function r1(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,g=Vn(t,lz),y=yr(),v=ti(),m=u??v.timePickerDefaultToolbarTitle,b=Ad(),x=!!(r&&!i),{meridiemMode:_,handleMeridiemChange:w}=T4(c,r,n),k=C=>r?y.format(C,"hours12h"):y.format(C,"hours24h"),T=t,M=sz(Gt({},T,{theme:b})),S=je.jsx(cz,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:M.separator});return je.jsxs(uz,Gt({viewType:"clock",landscapeDirection:"row",toolbarTitle:m,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:s,ownerState:T,className:M.root},g,{children:[je.jsxs(fz,{className:M.hourMinuteLabel,ownerState:T,children:[bo(d,"hours")&&je.jsx(ci,{tabIndex:-1,variant:"h3",onClick:()=>f("hours"),selected:l==="hours",value:c?k(c):"--"}),bo(d,["hours","minutes"])&&S,bo(d,"minutes")&&je.jsx(ci,{tabIndex:-1,variant:"h3",onClick:()=>f("minutes"),selected:l==="minutes",value:c?y.format(c,"minutes"):"--"}),bo(d,["minutes","seconds"])&&S,bo(d,"seconds")&&je.jsx(ci,{variant:"h3",onClick:()=>f("seconds"),selected:l==="seconds",value:c?y.format(c,"seconds"):"--"})]}),x&&je.jsxs(dz,{className:M.ampmSelection,ownerState:T,children:[je.jsx(ci,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:M.ampmLabel,value:y.getMeridiemText("am"),onClick:p?void 0:()=>w("am"),disabled:h}),je.jsx(ci,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:M.ampmLabel,value:y.getMeridiemText("pm"),onClick:p?void 0:()=>w("pm"),disabled:h})]})]}))}const hz=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],V4=$e.forwardRef(function(t,r){const i=t1(t,"MuiDesktopTimePicker"),c=Qy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,n1),{PaperProps:l,PopperProps:f,ToolbarComponent:s=r1,TransitionComponent:u,components:d,componentsProps:h}=i,p=Vn(i,hz),g=Gt({},a,p,{components:d,componentsProps:h,ref:r,validationError:c});return je.jsx(Vy,Gt({},n,{DateInputProps:g,KeyboardDateInputComponent:Bd,PopperProps:f,PaperProps:l,TransitionComponent:u,components:d,componentsProps:h,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:g,components:d,componentsProps:h},p))}))}),pz=["ToolbarComponent","value","onChange","components","componentsProps"],Y4=$e.forwardRef(function(t,r){const i=t1(t,"MuiMobileTimePicker"),c=Qy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,n1),{ToolbarComponent:l=r1,components:f,componentsProps:s}=i,u=Vn(i,pz),d=Gt({},a,u,{components:f,componentsProps:s,ref:r,validationError:c});return je.jsx(Yy,Gt({},u,n,{DateInputProps:d,PureDateInputComponent:Gy,components:f,componentsProps:s,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:f,componentsProps:s},u))}))});function gz(e){return _r("MuiPickerStaticWrapper",e)}wr("MuiPickerStaticWrapper",["root","content"]);const mz=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],vz=e=>{const{classes:t}=e;return Tr({root:["root"],content:["content"]},gz,t)},yz=wn("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),bz=wn("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:Ny,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function qd(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,mz),h=vz(r),p=(t=f==null?void 0:f.ActionBar)!=null?t:Hy,g=(f==null?void 0:f.PaperContent)||$e.Fragment;return je.jsx(Di.Provider,{value:i,children:je.jsxs(yz,Gt({className:jr(h.root,u)},d,{children:[je.jsx(bz,{className:h.content,children:je.jsx(g,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 xz=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],wz=$e.forwardRef(function(t,r){const i=By(t,"MuiStaticDatePicker"),{ToolbarComponent:c=Uy,displayStaticWrapperAs:o="mobile",components:a,componentsProps:n,className:l}=i,f=Vn(i,xz),{pickerProps:s,inputProps:u,wrapperProps:d}=Ri(i,zy),h=Fy(i)!==null,p=Gt({},u,f,{ref:r,validationError:h,components:a});return je.jsx(qd,Gt({displayStaticWrapperAs:o,components:a,componentsProps:n,className:l},d,{children:je.jsx(Ei,Gt({},s,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:c,DateInputProps:p,components:a,componentsProps:n},f))}))}),_z=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],Tz=$e.forwardRef(function(t,r){const i=Xy(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:c="mobile",ToolbarComponent:o=Jy,components:a,componentsProps:n,hideTabs:l=c==="desktop",className:f}=i,s=Vn(i,_z),{pickerProps:u,inputProps:d,wrapperProps:h}=Ri(i,Zy),p=e1(i)!==null,g=$e.useMemo(()=>Gt({Tabs:zd},a),[a]),y=Gt({},d,s,{ref:r,validationError:p,components:g,componentsProps:n});return je.jsx(qd,Gt({displayStaticWrapperAs:c,components:g,componentsProps:n,className:f},h,{children:je.jsx(Ei,Gt({},u,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:y,components:g,componentsProps:n,hideTabs:l},s))}))}),kz=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],Mz=$e.forwardRef(function(t,r){const i=t1(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:c="mobile",ToolbarComponent:o=r1,components:a,componentsProps:n,className:l}=i,f=Vn(i,kz),s=Qy(i)!==null,{pickerProps:u,inputProps:d,wrapperProps:h}=Ri(i,n1),p=Gt({},d,f,{ref:r,validationError:s,components:a,componentsProps:n});return je.jsx(qd,Gt({displayStaticWrapperAs:c,components:a,componentsProps:n,className:l},h,{children:je.jsx(Ei,Gt({},u,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:p,components:a,componentsProps:n},f))}))}),Sz=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Cz=$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,Sz);return vy(c,{defaultMatches:!0})?je.jsx(V4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(Y4,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 Oz=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:O4,CalendarPickerSkeleton:l$,ClockPicker:I4,DEFAULT_LOCALE:s4,DatePicker:PB,DateTimePicker:iz,DateTimePickerTabs:zd,DesktopDatePicker:z4,DesktopDateTimePicker:U4,DesktopTimePicker:V4,LocalizationProvider:DN,MobileDatePicker:q4,MobileDateTimePicker:H4,MobileTimePicker:Y4,MonthPicker:c4,MuiPickersAdapterContext:Ey,PickerStaticWrapper:qd,PickersDay:m4,StaticDatePicker:wz,StaticDateTimePicker:Tz,StaticTimePicker:Mz,TimePicker:Cz,YearPicker:S4,beBY:CN,calendarPickerClasses:Xj,calendarPickerSkeletonClasses:t$,clockClasses:w$,clockNumberClasses:wu,clockPickerClasses:F$,clockPointerClasses:p$,csCZ:JF,datePickerToolbarClasses:G$,dateTimePickerTabsClasses:KB,dateTimePickerToolbarClasses:BB,dayPickerClasses:rj,deDE:zF,enUS:aN,esES:UF,faIR:VF,fiFI:XF,frFR:tN,getCalendarPickerSkeletonUtilityClass:A4,getCalendarPickerUtilityClass:C4,getClockPickerUtilityClass:L4,getMonthPickerUtilityClass:u4,getPickersDayUtilityClass:h4,getYearPickerUtilityClass:M4,huHU:rN,isIS:bN,itIT:fN,jaJP:wN,koKR:vN,monthPickerClasses:EN,nbNO:oN,nlNL:RF,pickersCalendarHeaderClasses:Aj,pickersDayClasses:xu,pickersFadeTransitionGroupClasses:zN,pickersMonthClasses:I0,pickersSlideTransitionClasses:sa,pickersYearClasses:_o,plPL:IF,ptBR:NF,ruRU:PN,svSE:sN,timePickerToolbarClasses:vl,trTR:$F,ukUA:TN,urPK:MN,yearPickerClasses:Uj,zhCN:pN},Symbol.toStringTag,{value:"Module"})),G4=qn(Oz);var m_;function Az(){return m_||(m_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Bl()),c=t(Ed()),o=t(Rd()),a=t(ky()),n=t(Sy()),l=t(Cy()),f=t($e),s=t(Ld),u=t(qo),d=t(IS),h=t(Oy),p=t(FS),g=t(bR),y=t(xR),v=t(wR),m=r4,b=G4,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(g.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(g.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:m.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:m.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:m.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}($g)),$g}var em={},Vc={},v_;function X4(){if(v_)return Vc;v_=1;var e=Rn;Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.validateInput=o;var t=e(Kr()),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 m=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=g(g({},M),T.props.columnDef.cellStyle(T.state.value,T.props.rowData)):M=g(g({},M),T.props.columnDef.cellStyle),typeof T.props.cellEditable.cellStyle=="function"?M=g(g({},M),T.props.cellEditable.cellStyle(T.state.value,T.props.rowData,T.props.columnDef)):M=g(g({},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);m.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},m.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=m;e.default=b}(em)),em}var tm={},nm={exports:{}},rm={exports:{}},b_;function Dz(){return b_||(b_=1,function(e){function t(r){if(Array.isArray(r))return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(rm)),rm.exports}var am={exports:{}},x_;function Ez(){return x_||(x_=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}(am)),am.exports}var im={exports:{}},w_;function Rz(){return w_||(w_=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}(im)),im.exports}var __;function io(){return __||(__=1,function(e){var t=Dz(),r=Ez(),i=RS(),c=Rz();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}(nm)),nm.exports}const ql=qn(F9),Wo=qn(N9);var T_;function Lz(){return T_||(T_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Kr()),c=t(Ur()),o=t(io()),a=t($e),n=t(Or),l=t(Ty),f=t(ql),s=t(Wo);function u(g,y){var v=Object.keys(g);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(g);y&&(m=m.filter(function(b){return Object.getOwnPropertyDescriptor(g,b).enumerable})),v.push.apply(v,m)}return v}function d(g){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,g()}},m({rowData:n.data}))))}return Yc}var Zr={},S_;function Li(){if(S_)return Zr;S_=1;var e=Rn;Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.widthToNumber=Zr.selectionMaxWidth=Zr.rowActions=Zr.reducePercentsInCalc=Zr.parseFirstLastPageButtons=Zr.elementSize=Zr.baseIconSize=Zr.actionsColumnWidth=void 0;var t=e(Kr()),r=e(Ur());function i(h,p){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);p&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable})),g.push.apply(g,y)}return g}function c(h){for(var p=1;p1){var v=y[1];return p.replace(/\d*%/,"".concat(g*(v/100),"px"))}return p.replace(/\d*%/,"".concat(g,"px"))};Zr.reducePercentsInCalc=s;var u=function(p){return typeof p=="number"?p:!p||!p.match(/^\s*\d+(px)?\s*$/)?NaN:Number(p.replace(/px$/,""))};Zr.widthToNumber=u;var d=function(p,g){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)),g&&(y={first:y.last,last:y.first}),y};return Zr.parseFirstLastPageButtons=d,Zr}var Gc={},C_;function jz(){if(C_)return Gc;C_=1;var e=Rn;Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.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 g=setTimeout(p,250);a.current=g}else p()}},[]);return s}return Gc}var O_;function $z(){return O_||(O_=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(zl()),c=t(Pi),o=t(Wo),a=t(ql),n=t(qo),l=t(hr()),f=t(mi),s=t(Kr()),u=t(Bl()),d=t($e),h=t(Or),p=Nz(),g=w(Li()),y=jz(),v=Jd(),m=ei(),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=g.elementSize(A),Me=q.length*g.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=g.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=g.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}(lm)),lm}var sm={},qi={};const Bz=qn(yF);var A_;function zz(){if(A_)return qi;A_=1;var e=Rn;Object.defineProperty(qi,"__esModule",{value:!0}),qi.getCurrencyValue=o,qi.getEmptyValue=c,qi.getRenderValue=a,qi.isoDateRegex=void 0;var t=e($e),r=e(Bz),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)?)?)?$/;qi.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 qi}var Wi={},P_;function Wd(){if(P_)return Wi;P_=1;var e=Rn,t=Ur();Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.getStyle=s,Wi.setObjectByKey=Wi.selectFromObject=void 0;var r=e(Kr()),i=o(Li());function c(u){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(c=function(g){return g?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={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in u)if(y!=="default"&&Object.prototype.hasOwnProperty.call(u,y)){var v=g?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(g){return Object.getOwnPropertyDescriptor(u,g).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,g.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,g.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}(cm)),cm}var fm={},dm={},co={},L_;function a1(){if(L_)return co;L_=1;var e=Rn;Object.defineProperty(co,"__esModule",{value:!0}),co.getLocalizedFilterPlaceHolder=co.getLocalizationData=void 0;var t=e(Kr()),r=K4();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(m,(0,i.default)({},_,{forwardedRef:w}))});e.default=b}(hm)),hm}var pm={};const Z4=qn(q9);var N_;function Xz(){return N_||(N_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Ld),c=t(Z4),o=t(Wo),a=t($e),n=a1();function l(s){var u,d,h=s.columnDef,p=s.icons,g=s.localization,y=s.hideFilterIcons,v=s.onFilterChanged,m=s.forwardedRef,b=(0,n.getLocalizationData)(g),x=p.Filter;return a.default.createElement(i.default,{ref:m,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,g),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}(pm)),pm}var gm={},j_;function Zz(){return j_||(j_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(qo),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}(gm)),gm}var mm={},$_;function Kz(){return $_||($_=1,function(e){var t=Rn,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 g=h?Object.getOwnPropertyDescriptor(f,p):null;g&&(g.get||g.set)?Object.defineProperty(d,p,g):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}(mm)),mm}var B_;function K4(){return B_||(B_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=y,e.default=void 0;var r=t(Pi),i=t(mi),c=t(Kr()),o=t(hr()),a=t($e),n=t(Or),l=t(Hz()),f=t(Gz()),s=t(Xz()),u=t(Zz()),d=t(Kz()),h=tc();function p(m,b){var x=Object.keys(m);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(m);b&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(m,w).enumerable})),x.push.apply(x,_)}return x}function g(m){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:g(g({},b.filterCellStyle),T.filterCellStyle)},x(T))});if(b.selection&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-selection-column"})),m.hasActions)if(b.actionsColumnIndex===-1)_.push(a.default.createElement(i.default,{key:"key-action-column"}));else{var w=0;m.selection&&(w=1),_.splice(b.actionsColumnIndex+w,0,a.default.createElement(i.default,{key:"key-action-column"}))}if(m.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 m.isTreeData>0&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-tree-data-filter"})),m.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:m.forwardedRef,style:g({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}(fm)),fm}var vm={};const J4=qn(W9),Jz=qn(U9);function z_(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 q_(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ma(1));return r(Q4)(e,t)}if(typeof e!="function")throw new Error(Ma(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(Ma(3));return o}function u(g){if(typeof g!="function")throw new Error(Ma(4));if(l)throw new Error(Ma(5));var y=!0;return f(),n.push(g),function(){if(y){if(l)throw new Error(Ma(6));y=!1,f();var m=n.indexOf(g);n.splice(m,1),a=null}}}function d(g){if(!Qz(g))throw new Error(Ma(7));if(typeof g.type>"u")throw new Error(Ma(8));if(l)throw new Error(Ma(9));try{l=!0,o=c(o,g)}finally{l=!1}for(var y=a=n,v=0;vt6=e,rq=()=>t6,Y_=Symbol.for("react-redux-context"),G_=typeof globalThis<"u"?globalThis:{};function aq(){var e;if(!$e.createContext)return{};const t=(e=G_[Y_])!=null?e:G_[Y_]=new Map;let r=t.get($e.createContext);return r||(r=$e.createContext(null),t.set($e.createContext,r)),r}const n6=aq(),iq=()=>{throw new Error("uSES not initialized!")},oq=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function lq(e,t,r,i,{areStatesEqual:c,areOwnPropsEqual:o,areStatePropsEqual:a}){let n=!1,l,f,s,u,d;function h(m,b){return l=m,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 g(){return e.dependsOnOwnProps&&(s=e(l,f)),t.dependsOnOwnProps&&(u=t(i,f)),d=r(s,u,f),d}function y(){const m=e(l,f),b=!a(m,s);return s=m,b&&(d=r(s,u,f)),d}function v(m,b){const x=!o(b,f),_=!c(m,l,b,f);return l=m,f=b,x&&_?p():x?g():_?y():d}return function(b,x){return n?v(b,x):h(b,x)}}function sq(e,t){let{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:c}=t,o=Vn(t,oq);const a=r(e,o),n=i(e,o),l=c(e,o);return lq(a,n,l,e,o)}function uq(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 j0(e){return function(r){const i=e(r);function c(){return i}return c.dependsOnOwnProps=!1,c}}function X_(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function r6(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=X_(e);let f=o(n,l);return typeof f=="function"&&(o.mapToProps=f,o.dependsOnOwnProps=X_(f),f=o(n,l)),f},o}}function i1(e,t){return(r,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}function cq(e){return e&&typeof e=="object"?j0(t=>uq(e,t)):e?typeof e=="function"?r6(e):i1(e,"mapDispatchToProps"):j0(t=>({dispatch:t}))}function fq(e){return e?typeof e=="function"?r6(e):i1(e,"mapStateToProps"):j0(()=>({}))}function dq(e,t,r){return Gt({},r,e,t)}function hq(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 pq(e){return e?typeof e=="function"?hq(e):i1(e,"mergeProps"):()=>dq}function gq(){const e=rq();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 Z_={notify(){},get:()=>[]};function a6(e,t){let r,i=Z_,c=0,o=!1;function a(g){s();const y=i.subscribe(g);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=gq())}function u(){c--,r&&c===0&&(r(),r=void 0,i.clear(),i=Z_)}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 mq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$f=mq?$e.useLayoutEffect:$e.useEffect;function K_(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function bm(e,t){if(K_(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{i6=e},bq=[null,null];function xq(e,t,r){$f(()=>e(...t),r)}function wq(e,t,r,i,c,o){e.current=i,r.current=!1,c.current&&(c.current=null,o())}function _q(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 g=t.getState();let y,v;try{y=i(g,c.current)}catch(m){v=m,d=m}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 Tq(e,t){return e===t}function o6(e,t,r,{pure:i,areStatesEqual:c=Tq,areOwnPropsEqual:o=bm,areStatePropsEqual:a=bm,areMergedPropsEqual:n=bm,forwardRef:l=!1,context:f=n6}={}){const s=f,u=fq(e),d=cq(t),h=pq(r),p=!!e;return y=>{const v=y.displayName||y.name||"Component",m=`Connect(${v})`,b={shouldHandleStateChanges:p,displayName:m,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,vq);return[k.context,U,Q]},[k]),C=$e.useMemo(()=>T&&T.Consumer&&H9.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(()=>sq(R.dispatch,b),[R]),[z,B]=$e.useMemo(()=>{if(!p)return bq;const U=a6(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();$f(()=>(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?_q(p,R,z,A,N,j,W,G,E,B,Q):()=>{},[z]);xq(wq,[N,j,W,S,E,B]);let V;try{V=i6(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}$f(()=>{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=m,l){const T=$e.forwardRef(function(S,C){return $e.createElement(w,Gt({},S,{reactReduxForwardedRef:C}))});return T.displayName=m,T.WrappedComponent=y,q2(T,y)}return q2(w,y)}}function kq({store:e,context:t,children:r,serverState:i,stabilityCheck:c="once",noopCheck:o="once"}){const a=$e.useMemo(()=>{const f=a6(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]);$f(()=>{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||n6;return $e.createElement(l.Provider,{value:a},r)}yq(MS.useSyncExternalStore);nq(yy.unstable_batchedUpdates);function Mq(e,t){if(e.length!==t.length)return!1;for(var r=0;r{const o=Dq(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 Eq="Invariant failed";class qf extends Error{}qf.prototype.toString=function(){return this.message};function un(e,t){throw new qf(Eq)}class Rq extends et.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=Xi,this.onWindowError=t=>{const r=this.getCallbacks();r.isDragging()&&r.tryAbort(),t.error instanceof qf&&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=Wa(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof qf){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Lq=` - 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 -`,Wf=e=>e+1,Iq=e=>` - You have lifted an item in position ${Wf(e.source.index)} -`,f6=(e,t)=>{const r=e.droppableId===t.droppableId,i=Wf(e.index),c=Wf(t.index);return r?` - You have moved the item from position ${i} - to position ${c} - `:` - You have moved the item from position ${i} - in list ${e.droppableId} - to list ${t.droppableId} - in position ${c} - `},d6=(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} - `,Fq=e=>{const t=e.destination;if(t)return f6(e.source,t);const r=e.combine;return r?d6(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},e3=e=>` - The item has returned to its starting position - of ${Wf(e.index)} -`,Nq=e=>{if(e.reason==="CANCEL")return` - Movement cancelled. - ${e3(e.source)} - `;const t=e.destination,r=e.combine;return t?` - You have dropped the item. - ${f6(e.source,t)} - `:r?` - You have dropped the item. - ${d6(e.draggableId,e.source,r)} - `:` - The item has been dropped while not over a drop area. - ${e3(e.source)} - `},jq={dragHandleUsageInstructions:Lq,onDragStart:Iq,onDragUpdate:Fq,onDragEnd:Nq};var gf=jq;const ea={x:0,y:0},ca=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Ea=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Zi=(e,t)=>e.x===t.x&&e.y===t.y,Wl=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Ao=function(e,t,r){return r===void 0&&(r=0),e==="x"?{x:t,y:r}:{x:r,y:t}},Ru=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),t3=(e,t)=>Math.min(...t.map(r=>Ru(e,r))),h6=e=>t=>({x:e(t.x),y:e(t.y)});var $q=(e,t)=>{const r=Qa({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 lc=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),n3=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}],Bq={top:0,right:0,bottom:0,left:0},zq=(e,t)=>t?lc(e,t.scroll.diff.displacement):e,qq=(e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e,Wq=(e,t)=>t&&t.shouldClipSubject?$q(t.pageMarginBox,e):Qa(e);var Cl=e=>{let{page:t,withPlaceholder:r,axis:i,frame:c}=e;const o=zq(t.marginBox,c),a=qq(o,i,r),n=Wq(a,c);return{page:t,withPlaceholder:r,active:n}},s1=(e,t)=>{e.frame||un();const r=e.frame,i=Ea(t,r.scroll.initial),c=Wl(i),o={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:i,displacement:c},max:r.scroll.max}},a=Cl({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:a}};const p6=Qr(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),g6=Qr(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),Hd=Qr(e=>Object.values(e)),Uq=Qr(e=>Object.values(e));var Ul=Qr((e,t)=>Uq(t).filter(i=>e===i.descriptor.droppableId).sort((i,c)=>i.descriptor.index-c.descriptor.index));function u1(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Vd(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Yd=Qr((e,t)=>t.filter(r=>r.descriptor.id!==e.descriptor.id)),Hq=e=>{let{isMovingForward:t,draggable:r,destination:i,insideDestination:c,previousImpact:o}=e;if(!i.isCombineEnabled||!u1(o))return null;function n(p){const g={type:"COMBINE",combine:{draggableId:p,droppableId:i.descriptor.id}};return{...o,at:g}}const l=o.displaced.all,f=l.length?l[0]:null;if(t)return f?n(f):null;const s=Yd(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)},Hl=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const m6={point:ea,value:0},Lu={invisible:{},visible:{},all:[]},Vq={displaced:Lu,displacedBy:m6,at:null};var Yq=Vq,Ha=(e,t)=>r=>e<=r&&r<=t,v6=e=>{const t=Ha(e.top,e.bottom),r=Ha(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}},Gq=e=>{const t=Ha(e.top,e.bottom),r=Ha(e.left,e.right);return i=>t(i.top)&&t(i.bottom)&&r(i.left)&&r(i.right)};const c1={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},y6={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var Xq=e=>t=>{const r=Ha(t.top,t.bottom),i=Ha(t.left,t.right);return c=>e===c1?r(c.top)&&r(c.bottom):i(c.left)&&i(c.right)};const Zq=(e,t)=>{const r=t.frame?t.frame.scroll.diff.displacement:ea;return lc(e,r)},Kq=(e,t,r)=>t.subject.active?r(t.subject.active)(e):!1,Jq=(e,t,r)=>r(t)(e),f1=e=>{let{target:t,destination:r,viewport:i,withDroppableDisplacement:c,isVisibleThroughFrameFn:o}=e;const a=c?Zq(t,r):t;return Kq(a,r,o)&&Jq(a,i,o)},Qq=e=>f1({...e,isVisibleThroughFrameFn:v6}),b6=e=>f1({...e,isVisibleThroughFrameFn:Gq}),eW=e=>f1({...e,isVisibleThroughFrameFn:Xq(e.destination.axis)}),tW=(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 nW(e,t){const r=e.page.marginBox,i={top:t.point.y,right:0,bottom:0,left:t.point.x};return Qa(o1(r,i))}function Iu(e){let{afterDragging:t,destination:r,displacedBy:i,viewport:c,forceShouldAnimate:o,last:a}=e;return t.reduce(function(l,f){const s=nW(f,i),u=f.descriptor.id;if(l.all.push(u),!Qq({target:s,destination:r,viewport:c,withDroppableDisplacement:!0}))return l.invisible[f.descriptor.id]=!0,l;const h=tW(u,a,o),p={draggableId:u,shouldAnimate:h};return l.visible[u]=p,l},{all:[],visible:{},invisible:{}})}function rW(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function r3(e){let{insideDestination:t,inHomeList:r,displacedBy:i,destination:c}=e;const o=rW(t,{inHomeList:r});return{displaced:Lu,displacedBy:i,at:{type:"REORDER",destination:{droppableId:c.descriptor.id,index:o}}}}function Uf(e){let{draggable:t,insideDestination:r,destination:i,viewport:c,displacedBy:o,last:a,index:n,forceShouldAnimate:l}=e;const f=Hl(t,i);if(n==null)return r3({insideDestination:r,inHomeList:f,displacedBy:o,destination:i});const s=r.find(g=>g.descriptor.index===n);if(!s)return r3({insideDestination:r,inHomeList:f,displacedBy:o,destination:i});const u=Yd(t,r),d=r.indexOf(s),h=u.slice(d);return{displaced:Iu({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 Qi(e,t){return!!t.effected[e]}var aW=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 Qi(a,o)?t?l:l-1:t?l+1:l},iW=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},oW=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=iW({isMovingForward:t,isInHomeList:r,location:s.destination,insideDestination:a});return d==null?null:Uf({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:d})}const u=aW({isMovingForward:t,destination:o,displaced:n.displaced,draggables:c,combine:s.combine,afterCritical:f});return u==null?null:Uf({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:u})},lW=e=>{let{displaced:t,afterCritical:r,combineWith:i,displacedBy:c}=e;const o=!!(t.visible[i]||t.invisible[i]);return Qi(i,r)?o?ea:Wl(c.point):o?c.point:ea},sW=e=>{let{afterCritical:t,impact:r,draggables:i}=e;const c=Vd(r);c||un();const o=c.draggableId,a=i[o].page.borderBox.center,n=lW({displaced:r.displaced,afterCritical:t,combineWith:o,displacedBy:r.displacedBy});return ca(a,n)};const x6=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,uW=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,d1=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,a3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Ao(t.line,r.marginBox[t.end]+x6(t,i),d1(t,r.marginBox,i))},i3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Ao(t.line,r.marginBox[t.start]-uW(t,i),d1(t,r.marginBox,i))},cW=e=>{let{axis:t,moveInto:r,isMoving:i}=e;return Ao(t.line,r.contentBox[t.start]+x6(t,i),d1(t,r.contentBox,i))};var fW=e=>{let{impact:t,draggable:r,draggables:i,droppable:c,afterCritical:o}=e;const a=Ul(c.descriptor.id,i),n=r.page,l=c.axis;if(!a.length)return cW({axis:l,moveInto:c.page,isMoving:n});const{displaced:f,displacedBy:s}=t,u=f.all[0];if(u){const h=i[u];if(Qi(u,o))return i3({axis:l,moveRelativeTo:h.page,isMoving:n});const p=Bf(h.page,s.point);return i3({axis:l,moveRelativeTo:p,isMoving:n})}const d=a[a.length-1];if(d.descriptor.id===r.descriptor.id)return n.borderBox.center;if(Qi(d.descriptor.id,o)){const h=Bf(d.page,Wl(o.displacedBy.point));return a3({axis:l,moveRelativeTo:h,isMoving:n})}return a3({axis:l,moveRelativeTo:d.page,isMoving:n})},$0=(e,t)=>{const r=e.frame;return r?ca(t,r.scroll.diff.displacement):t};const dW=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"?fW({impact:t,draggable:r,draggables:c,droppable:i,afterCritical:o}):sW({impact:t,draggables:c,afterCritical:o})};var Gd=e=>{const t=dW(e),r=e.droppable;return r?$0(r,t):t},w6=(e,t)=>{const r=Ea(t,e.scroll.initial),i=Wl(r);return{frame:Qa({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 o3(e,t){return e.map(r=>t[r])}function hW(e,t){for(let r=0;r{let{impact:t,viewport:r,destination:i,draggables:c,maxScrollChange:o}=e;const a=w6(r,ca(r.scroll.current,o)),n=i.frame?s1(i,ca(i.frame.scroll.current,o)):i,l=t.displaced,f=Iu({afterDragging:o3(l.all,c),destination:i,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),s=Iu({afterDragging:o3(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(g=>{const y=hW(g,h);if(y){d[g]=y;return}u[g]=!0}),{...t,displaced:{all:l.all,invisible:u,visible:d}}},gW=(e,t)=>ca(e.scroll.diff.displacement,t),h1=e=>{let{pageBorderBoxCenter:t,draggable:r,viewport:i}=e;const c=gW(i,t),o=Ea(c,r.page.borderBox.center);return ca(r.client.borderBox.center,o)},_6=e=>{let{draggable:t,destination:r,newPageBorderBoxCenter:i,viewport:c,withDroppableDisplacement:o,onlyOnMainAxis:a=!1}=e;const n=Ea(i,t.page.borderBox.center),f={target:lc(t.page.borderBox,n),destination:r,withDroppableDisplacement:o,viewport:c};return a?eW(f):b6(f)},mW=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=Ul(i.descriptor.id,c),u=Hl(r,i),d=Hq({isMovingForward:t,draggable:r,destination:i,insideDestination:s,previousImpact:o})||oW({isMovingForward:t,isInHomeList:u,draggable:r,draggables:c,destination:i,insideDestination:s,previousImpact:o,viewport:a,afterCritical:f});if(!d)return null;const h=Gd({impact:d,draggable:r,droppable:i,draggables:c,afterCritical:f});if(_6({draggable:r,destination:i,newPageBorderBoxCenter:h,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:h1({pageBorderBoxCenter:h,draggable:r,viewport:a}),impact:d,scrollJumpRequest:null};const g=Ea(h,n),y=pW({impact:d,viewport:a,destination:i,draggables:c,maxScrollChange:g});return{clientSelection:l,impact:y,scrollJumpRequest:g}};const ba=e=>{const t=e.subject.active;return t||un(),t};var vW=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=Ha(a[n.start],a[n.end]),f=Hd(c).filter(u=>u!==i).filter(u=>u.isEnabled).filter(u=>!!u.subject.active).filter(u=>v6(o.frame)(ba(u))).filter(u=>{const d=ba(u);return t?a[n.crossAxisEnd]{const d=ba(u),h=Ha(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=ba(u)[n.crossAxisStart],p=ba(d)[n.crossAxisStart];return t?h-p:p-h}).filter((u,d,h)=>ba(u)[n.crossAxisStart]===ba(h[0])[n.crossAxisStart]);if(!f.length)return null;if(f.length===1)return f[0];const s=f.filter(u=>Ha(ba(u)[n.start],ba(u)[n.end])(r[n.line]));return s.length===1?s[0]:s.length>1?s.sort((u,d)=>ba(u)[n.start]-ba(d)[n.start])[0]:f.sort((u,d)=>{const h=t3(r,n3(ba(u))),p=t3(r,n3(ba(d)));return h!==p?h-p:ba(u)[n.start]-ba(d)[n.start]})[0]};const l3=(e,t)=>{const r=e.page.borderBox.center;return Qi(e.descriptor.id,t)?Ea(r,t.displacedBy.point):r},yW=(e,t)=>{const r=e.page.borderBox;return Qi(e.descriptor.id,t)?lc(r,Wl(t.displacedBy.point)):r};var bW=e=>{let{pageBorderBoxCenter:t,viewport:r,destination:i,insideDestination:c,afterCritical:o}=e;return c.filter(n=>b6({target:yW(n,o),destination:i,viewport:r.frame,withDroppableDisplacement:!0})).sort((n,l)=>{const f=Ru(t,$0(i,l3(n,o))),s=Ru(t,$0(i,l3(l,o)));return f{const i=e.axis;if(e.descriptor.mode==="virtual")return Ao(i.line,t[i.line]);const c=e.subject.page.contentBox[i.size],l=Ul(e.descriptor.id,r).reduce((f,s)=>f+s.client.marginBox[i.size],0)+t[i.line]-c;return l<=0?null:Ao(i.line,l)},T6=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),k6=(e,t,r)=>{const i=e.frame;Hl(t,e)&&un(),e.subject.withPlaceholder&&un();const c=sc(e.axis,t.displaceBy).point,o=xW(e,c,r),a={placeholderSize:c,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!i){const s=Cl({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:s}}const n=o?ca(i.scroll.max,o):i.scroll.max,l=T6(i,n),f=Cl({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:f,frame:l}},wW=e=>{const t=e.subject.withPlaceholder;t||un();const r=e.frame;if(!r){const a=Cl({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:a}}const i=t.oldFrameMaxScroll;i||un();const c=T6(r,i),o=Cl({page:e.subject.page,axis:e.axis,frame:c,withPlaceholder:null});return{...e,subject:o,frame:c}};var _W=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:Lu,displacedBy:m6,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},h=Gd({impact:d,draggable:c,droppable:a,draggables:o,afterCritical:l}),p=Hl(c,a)?a:k6(a,c,o);return _6({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=sc(a.axis,c.displaceBy);return Uf({draggable:c,insideDestination:i,destination:a,viewport:n,displacedBy:u,last:Lu,index:s})},TW=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:r,draggable:i,isOver:c,draggables:o,droppables:a,viewport:n,afterCritical:l}=e;const f=vW({isMovingForward:t,pageBorderBoxCenter:r,source:c,droppables:a,viewport:n});if(!f)return null;const s=Ul(f.descriptor.id,o),u=bW({pageBorderBoxCenter:r,viewport:n,destination:f,insideDestination:s,afterCritical:l}),d=_W({previousPageBorderBoxCenter:r,destination:f,draggable:i,draggables:o,moveRelativeTo:u,insideDestination:s,viewport:n,afterCritical:l});if(!d)return null;const h=Gd({impact:d,draggable:i,droppable:f,draggables:o,afterCritical:l});return{clientSelection:h1({pageBorderBoxCenter:h,draggable:i,viewport:n}),impact:d,scrollJumpRequest:null}},Ia=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const kW=(e,t)=>{const r=Ia(e);return r?t[r]:null};var MW=e=>{let{state:t,type:r}=e;const i=kW(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?mW({isMovingForward:f,previousPageBorderBoxCenter:u,draggable:s,destination:a,draggables:d,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):TW({isMovingForward:f,previousPageBorderBoxCenter:u,draggable:s,isOver:a,draggables:d,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function mo(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function M6(e){const t=Ha(e.top,e.bottom),r=Ha(e.left,e.right);return function(c){return t(c.y)&&r(c.x)}}function SW(e,t){return e.leftt.left&&e.topt.top}function CW(e){let{pageBorderBox:t,draggable:r,candidates:i}=e;const c=r.page.borderBox.center,o=i.map(a=>{const n=a.axis,l=Ao(a.axis.line,t.center[n.line],a.page.borderBox.center[n.crossAxisLine]);return{id:a.descriptor.id,distance:Ru(c,l)}}).sort((a,n)=>n.distance-a.distance);return o[0]?o[0].id:null}function OW(e){let{pageBorderBox:t,draggable:r,droppables:i}=e;const c=Hd(i).filter(o=>{if(!o.isEnabled)return!1;const a=o.subject.active;if(!a||!SW(t,a))return!1;if(M6(a)(t.center))return!0;const n=o.axis,l=a.center[n.crossAxisLine],f=t[n.crossAxisStart],s=t[n.crossAxisEnd],u=Ha(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:CW({pageBorderBox:t,draggable:r,candidates:c}):null}const S6=(e,t)=>Qa(lc(e,t));var AW=(e,t)=>{const r=e.frame;return r?S6(t,r.scroll.diff.value):t};function C6(e){let{displaced:t,id:r}=e;return!!(t.visible[r]||t.invisible[r])}function PW(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 DW=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:r,destination:i,insideDestination:c,last:o,viewport:a,afterCritical:n}=e;const l=i.axis,f=sc(i.axis,r.displaceBy),s=f.value,u=t[l.start],d=t[l.end],p=Yd(r,c).find(y=>{const v=y.descriptor.id,m=y.page.borderBox.center[l.line],b=Qi(v,n),x=C6({displaced:o,id:v});return b?x?d<=m: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=sc(c.axis,t.displaceBy),f=l.value,s=r[n.start],u=r[n.end],h=Yd(t,o).find(g=>{const y=g.descriptor.id,v=g.page.borderBox,b=v[n.size]/EW,x=Qi(y,a),_=C6({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=S6(r.page.borderBox,t),f=OW({pageBorderBox:l,draggable:r,droppables:c});if(!f)return Yq;const s=c[f],u=Ul(s.descriptor.id,i),d=AW(s,l);return RW({pageBorderBoxWithDroppableScroll:d,draggable:r,previousImpact:o,destination:s,insideDestination:u,afterCritical:n})||DW({pageBorderBoxWithDroppableScroll:d,draggable:r,destination:s,insideDestination:u,last:o.displaced,viewport:a,afterCritical:n})},p1=(e,t)=>({...e,[t.descriptor.id]:t});const LW=e=>{let{previousImpact:t,impact:r,droppables:i}=e;const c=Ia(t),o=Ia(r);if(!c||c===o)return i;const a=i[c];if(!a.subject.withPlaceholder)return i;const n=wW(a);return p1(i,n)};var IW=e=>{let{draggable:t,draggables:r,droppables:i,previousImpact:c,impact:o}=e;const a=LW({previousImpact:c,impact:o,droppables:i}),n=Ia(o);if(!n)return a;const l=i[n];if(Hl(t,l)||l.subject.withPlaceholder)return a;const f=k6(l,t,r);return p1(a,f)},Su=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=Ea(f,t.initial.client.selection),u={offset:s,selection:f,borderBoxCenter:ca(t.initial.client.borderBoxCenter,s)},d={selection:ca(u.selection,n.scroll.current),borderBoxCenter:ca(u.borderBoxCenter,n.scroll.current),offset:ca(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],g=o||O6({pageOffset:d.offset,draggable:p,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:n,afterCritical:t.afterCritical}),y=IW({draggable:p,impact:g,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return{...t,current:h,dimensions:{draggables:l.draggables,droppables:y},impact:g,viewport:n,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null}};function FW(e,t){return e.map(r=>t[r])}var A6=e=>{let{impact:t,viewport:r,draggables:i,destination:c,forceShouldAnimate:o}=e;const a=t.displaced,n=FW(a.all,i),l=Iu({afterDragging:n,destination:c,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:o,last:a});return{...t,displaced:l}},P6=e=>{let{impact:t,draggable:r,droppable:i,draggables:c,viewport:o,afterCritical:a}=e;const n=Gd({impact:t,draggable:r,draggables:c,droppable:i,afterCritical:a});return h1({pageBorderBoxCenter:n,draggable:r,viewport:o})},D6=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=Ia(c);s||un();const u=l[s],d=A6({impact:c,viewport:o,destination:u,draggables:n}),h=P6({impact:d,draggable:f,droppable:u,draggables:n,viewport:o,afterCritical:t.afterCritical});return Su({impact:d,clientSelection:h,state:t,dimensions:a,viewport:o})},NW=e=>({index:e.index,droppableId:e.droppableId}),E6=e=>{let{draggable:t,home:r,draggables:i,viewport:c}=e;const o=sc(r.axis,t.displaceBy),a=Ul(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:Iu({afterDragging:l,destination:r,displacedBy:o,last:null,viewport:c.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:NW(t.descriptor)}},afterCritical:s}},jW=(e,t)=>({draggables:e.draggables,droppables:p1(e.droppables,t)}),$W=e=>{let{draggable:t,offset:r,initialWindowScroll:i}=e;const c=Bf(t.client,r),o=zf(c,i);return{...t,placeholder:{...t.placeholder,client:c},client:c,page:o}},BW=e=>{const t=e.frame;return t||un(),t},zW=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=BW(n).scroll.diff.value,s=ca(c,f);return $W({draggable:o,offset:s,initialWindowScroll:i.scroll.initial})})},qW=e=>{let{state:t,published:r}=e;const i=r.modified.map(m=>{const b=t.dimensions.droppables[m.droppableId];return s1(b,m.scroll)}),c={...t.dimensions.droppables,...p6(i)},o=g6(zW({additions:r.additions,updatedDroppables:c,viewport:t.viewport})),a={...t.dimensions.draggables,...o};r.removals.forEach(m=>{delete a[m]});const n={droppables:c,draggables:a},l=Ia(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}=E6({draggable:s,home:u,draggables:a,viewport:t.viewport}),p=f&&f.isCombineEnabled?t.impact:d,g=O6({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:g,onLiftImpact:d,dimensions:n,afterCritical:h,forceShouldAnimate:!1};return t.phase==="COLLECTING"?y:{...y,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const B0=e=>e.movementMode==="SNAP",wm=(e,t,r)=>{const i=jW(e.dimensions,t);return!B0(e)||r?Su({state:e,dimensions:i}):D6({state:e,dimensions:i})};function _m(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const s3={phase:"IDLE",completed:null,shouldFlush:!1};var WW=function(e,t){if(e===void 0&&(e=s3),t.type==="FLUSH")return{...s3,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:ea},s={client:f,page:{selection:ca(f.selection,c.scroll.initial),borderBoxCenter:ca(f.selection,c.scroll.initial),offset:ca(f.selection,c.scroll.diff.value)}},u=Hd(o.droppables).every(g=>!g.isFixedOnPage),{impact:d,afterCritical:h}=E6({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(),qW({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;mo(e)||un();const{client:r}=t.payload;return Zi(r,e.current.client.selection)?e:Su({state:e,clientSelection:r,impact:B0(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return _m(e);mo(e)||un();const{id:r,newScroll:i}=t.payload,c=e.dimensions.droppables[r];if(!c)return e;const o=s1(c,i);return wm(e,o,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;mo(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 wm(e,o,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;mo(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 wm(e,o,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;mo(e)||un(),e.isWindowScrollAllowed||un();const r=t.payload.newScroll;if(Zi(e.viewport.scroll.current,r))return _m(e);const i=w6(e.viewport,r);return B0(e)?D6({state:e,viewport:i}):Su({state:e,viewport:i})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!mo(e))return e;const r=t.payload.maxScroll;if(Zi(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=MW({state:e,type:t.type});return r?Su({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 UW=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),HW=e=>({type:"LIFT",payload:e}),VW=e=>({type:"INITIAL_PUBLISH",payload:e}),YW=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),GW=()=>({type:"COLLECTION_STARTING",payload:null}),XW=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),ZW=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),KW=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),R6=e=>({type:"MOVE",payload:e}),JW=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),QW=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),eU=()=>({type:"MOVE_UP",payload:null}),tU=()=>({type:"MOVE_DOWN",payload:null}),nU=()=>({type:"MOVE_RIGHT",payload:null}),rU=()=>({type:"MOVE_LEFT",payload:null}),g1=()=>({type:"FLUSH",payload:null}),aU=e=>({type:"DROP_ANIMATE",payload:e}),m1=e=>({type:"DROP_COMPLETE",payload:e}),L6=e=>({type:"DROP",payload:e}),iU=e=>({type:"DROP_PENDING",payload:e}),I6=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var oU=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(m1({completed:f.completed})),r().phase!=="IDLE"&&un(),i(g1()),i(UW({draggableId:a,movementMode:l}));const u={draggableId:a,scrollOptions:{shouldPublishImmediately:l==="SNAP"}},{critical:d,dimensions:h,viewport:p}=e.startPublishing(u);i(VW({critical:d,dimensions:h,clientSelection:n,movementMode:l,viewport:p}))}},lU=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 v1={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Fu={opacity:{drop:0,combining:.7},scale:{drop:.75}},F6={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},fo=`${F6.outOfTheWay}s ${v1.outOfTheWay}`,Cu={fluid:`opacity ${fo}`,snap:`transform ${fo}, opacity ${fo}`,drop:e=>{const t=`${e}s ${v1.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${fo}`,placeholder:`height ${fo}, width ${fo}, margin ${fo}`},u3=e=>Zi(e,ea)?void 0:`translate(${e.x}px, ${e.y}px)`,z0={moveTo:u3,drop:(e,t)=>{const r=u3(e);if(r)return t?`${r} scale(${Fu.scale.drop})`:r}},{minDropTime:q0,maxDropTime:N6}=F6,sU=N6-q0,c3=1500,uU=.6;var cU=e=>{let{current:t,destination:r,reason:i}=e;const c=Ru(t,r);if(c<=0)return q0;if(c>=c3)return N6;const o=c/c3,a=q0+sU*o,n=i==="CANCEL"?a*uU:a;return Number(n.toFixed(2))},fU=e=>{let{impact:t,draggable:r,dimensions:i,viewport:c,afterCritical:o}=e;const{draggables:a,droppables:n}=i,l=Ia(t),f=l?n[l]:null,s=n[r.descriptor.droppableId],u=P6({impact:t,draggable:r,draggables:a,afterCritical:o,droppable:f||s,viewport:c});return Ea(u,r.client.borderBox.center)},dU=e=>{let{draggables:t,reason:r,lastImpact:i,home:c,viewport:o,onLiftImpact:a}=e;return!i.at||r!=="DROP"?{impact:A6({draggables:t,impact:a,destination:c,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:i.at.type==="REORDER"?{impact:i,didDropInsideDroppable:!0}:{impact:{...i,displaced:Lu},didDropInsideDroppable:!0}};const hU=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(iU({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}=dU({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?u1(u):null,p=d?Vd(u):null,g={index:l.draggable.index,droppableId:l.droppable.id},y={draggableId:s.descriptor.id,type:s.descriptor.type,source:g,reason:a,mode:o.movementMode,destination:h,combine:p},v=fU({impact:u,draggable:s,dimensions:f,viewport:o.viewport,afterCritical:o.afterCritical}),m={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:u};if(!(!Zi(o.current.client.offset,v)||!!y.combine)){r(m1({completed:m}));return}const x=cU({current:o.current.client.offset,destination:v,reason:a});r(aU({newHomeClientOffset:v,dropDuration:x,completed:m}))}};var pU=hU,j6=()=>({x:window.pageXOffset,y:window.pageYOffset});function gU(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function mU(e){let{onWindowScroll:t}=e;function r(){t(j6())}const i=Eu(r),c=gU(i);let o=Xi;function a(){return o!==Xi}function n(){a()&&un(),o=Wa(window,[c])}function l(){a()||un(),i.cancel(),o(),o=Xi}return{start:n,stop:l,isActive:a}}const vU=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",yU=e=>{const t=mU({onWindowScroll:r=>{e.dispatch(JW({newScroll:r}))}});return r=>i=>{!t.isActive()&&i.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&vU(i)&&t.stop(),r(i)}};var bU=yU,xU=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},wU=()=>{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 _U=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,TU=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,kU=(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},Ns=(e,t)=>{t()},Xc=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Tm(e,t,r,i){if(!e){r(i(t));return}const c=xU(r);e(t,{announce:c}),c.wasCalled()||r(i(t))}var MU=(e,t)=>{const r=wU();let i=null;const c=(u,d)=>{i&&un(),Ns("onBeforeCapture",()=>{const h=e().onBeforeCapture;h&&h({draggableId:u,mode:d})})},o=(u,d)=>{i&&un(),Ns("onBeforeDragStart",()=>{const h=e().onBeforeDragStart;h&&h(Xc(u,d))})},a=(u,d)=>{i&&un();const h=Xc(u,d);i={mode:d,lastCritical:u,lastLocation:h.source,lastCombine:null},r.add(()=>{Ns("onDragStart",()=>Tm(e().onDragStart,h,t,gf.onDragStart))})},n=(u,d)=>{const h=u1(d),p=Vd(d);i||un();const g=!kU(u,i.lastCritical);g&&(i.lastCritical=u);const y=!_U(i.lastLocation,h);y&&(i.lastLocation=h);const v=!TU(i.lastCombine,p);if(v&&(i.lastCombine=p),!g&&!y&&!v)return;const m={...Xc(u,i.mode),combine:p,destination:h};r.add(()=>{Ns("onDragUpdate",()=>Tm(e().onDragUpdate,m,t,gf.onDragUpdate))})},l=()=>{i||un(),r.flush()},f=u=>{i||un(),i=null,Ns("onDragEnd",()=>Tm(e().onDragEnd,u,t,gf.onDragEnd))};return{beforeCapture:c,beforeStart:o,start:a,update:n,flush:l,drop:f,abort:()=>{if(!i)return;const u={...Xc(i.lastCritical,i.mode),combine:null,destination:null,reason:"CANCEL"};f(u)}}},SU=(e,t)=>{const r=MU(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 CU=e=>t=>r=>{if(r.type!=="DROP_ANIMATION_FINISHED"){t(r);return}const i=e.getState();i.phase!=="DROP_ANIMATING"&&un(),e.dispatch(m1({completed:i.completed}))};var OU=CU;const AU=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(I6())}};r=requestAnimationFrame(()=>{r=null,t=Wa(window,[a])})}};var PU=AU,DU=e=>()=>t=>r=>{(r.type==="DROP_COMPLETE"||r.type==="FLUSH"||r.type==="DROP_ANIMATE")&&e.stopPublishing(),t(r)},EU=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 RU=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var LU=e=>t=>r=>i=>{if(RU(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 IU=e=>t=>r=>{if(t(r),r.type!=="PUBLISH_WHILE_DRAGGING")return;const i=e.getState();i.phase==="DROP_PENDING"&&(i.isWaiting||e.dispatch(L6({reason:i.reason})))};var FU=IU;const NU=e6;var jU=e=>{let{dimensionMarshal:t,focusMarshal:r,styleMarshal:i,getResponders:c,announce:o,autoScroller:a}=e;return Q4(WW,NU(eq(lU(i),DU(t),oU(t),pU,OU,PU,FU,LU(a),bU,EU(r),SU(c,o))))};const km=()=>({additions:{},removals:{},modified:{}});function $U(e){let{registry:t,callbacks:r}=e,i=km(),c=null;const o=()=>{c||(r.collectionStarting(),c=requestAnimationFrame(()=>{c=null;const{additions:f,removals:s,modified:u}=i,d=Object.keys(f).map(g=>t.draggable.getById(g).getDimension(ea)).sort((g,y)=>g.descriptor.index-y.descriptor.index),h=Object.keys(u).map(g=>{const v=t.droppable.getById(g).callbacks.getScrollWhileDragging();return{droppableId:g,scroll:v}}),p={additions:d,removals:Object.keys(s),modified:h};i=km(),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=km())}}}var $6=e=>{let{scrollHeight:t,scrollWidth:r,height:i,width:c}=e;const o=Ea({x:r,y:t},{x:c,y:i});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},B6=()=>{const e=document.documentElement;return e||un(),e},z6=()=>{const e=B6();return $6({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},BU=()=>{const e=j6(),t=z6(),r=e.y,i=e.x,c=B6(),o=c.clientWidth,a=c.clientHeight,n=i+o,l=r+a;return{frame:Qa({top:r,left:i,right:n,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:ea,displacement:ea}}}},zU=e=>{let{critical:t,scrollOptions:r,registry:i}=e;const c=BU(),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:g6(l),droppables:p6(n)},critical:t,viewport:c}};function f3(e,t,r){return!(r.descriptor.id===t.id||r.descriptor.type!==t.type||e.droppable.getById(r.descriptor.droppableId).descriptor.mode!=="virtual")}var qU=(e,t)=>{let r=null;const i=$U({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"&&f3(e,h,d.value)&&i.add(d.value),d.type==="REMOVAL"&&f3(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),g={draggable:h.descriptor,droppable:p.descriptor},y=e.subscribe(f);return r={critical:g,unsubscribe:y},zU({critical:g,registry:e,scrollOptions:d.scrollOptions})},stopPublishing:l}},q6=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",WU=e=>{window.scrollBy(e.x,e.y)};const UU=Qr(e=>Hd(e).filter(t=>!(!t.isEnabled||!t.frame))),HU=(e,t)=>UU(t).find(i=>(i.frame||un(),M6(i.frame.pageMarginBox)(e)))||null;var VU=e=>{let{center:t,destination:r,droppables:i}=e;if(r){const o=i[r];return o.frame?o:null}return HU(t,i)};const Nu={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var YU=function(e,t,r){r===void 0&&(r=()=>Nu);const i=r(),c=e[t.size]*i.startFromPercentage,o=e[t.size]*i.maxScrollAtPercentage;return{startScrollingFrom:c,maxScrollValueAt:o}},W6=e=>{let{startOfRange:t,endOfRange:r,current:i}=e;const c=r-t;return c===0?0:(i-t)/c},y1=1,GU=function(e,t,r){r===void 0&&(r=()=>Nu);const i=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return i.maxPixelScroll;if(e===t.startScrollingFrom)return y1;const o=1-W6({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=i.maxPixelScroll*i.ease(o);return Math.ceil(a)},XU=(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=GU(t,r,o);return a===0?0:c?Math.max(XU(a,i,o),y1):a},h3=e=>{let{container:t,distanceToEdges:r,dragStartTime:i,axis:c,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=YU(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 KU=h6(e=>e===0?0:e);var U6=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=h3({container:r,distanceToEdges:n,dragStartTime:t,axis:c1,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),f=h3({container:r,distanceToEdges:n,dragStartTime:t,axis:y6,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),s=KU({x:f,y:l});if(Zi(s,ea))return null;const u=ZU({container:r,subject:i,proposedScroll:s});return u?Zi(u,ea)?null:u:null};const JU=h6(e=>e===0?0:e>0?1:-1),b1=(()=>{const e=(t,r)=>t<0?t:t>r?t-r:0;return t=>{let{current:r,max:i,change:c}=t;const o=ca(r,c),a={x:e(o.x,i.x),y:e(o.y,i.y)};return Zi(a,ea)?null:a}})(),H6=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=JU(i),a=b1({max:c,current:r,change:o});return!a||o.x!==0&&a.x===0||o.y!==0&&a.y===0},x1=(e,t)=>H6({current:e.scroll.current,max:e.scroll.max,change:t}),QU=(e,t)=>{if(!x1(e,t))return null;const r=e.scroll.max,i=e.scroll.current;return b1({current:i,max:r,change:t})},w1=(e,t)=>{const r=e.frame;return r?H6({current:r.scroll.current,max:r.scroll.max,change:t}):!1},eH=(e,t)=>{const r=e.frame;return!r||!w1(e,t)?null:b1({current:r.scroll.current,max:r.scroll.max,change:t})};var tH=e=>{let{viewport:t,subject:r,center:i,dragStartTime:c,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=U6({dragStartTime:c,container:t.frame,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return n&&x1(t,n)?n:null},nH=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=U6({dragStartTime:c,container:n.pageMarginBox,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return l&&w1(t,l)?l:null},p3=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=tH({dragStartTime:r,viewport:d,subject:f,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});if(h){c(h);return}}const s=VU({center:n,destination:Ia(t.impact),droppables:t.dimensions.droppables});if(!s)return;const u=nH({dragStartTime:r,droppable:s,subject:f,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});u&&o(s.descriptor.id,u)},rH=e=>{let{scrollWindow:t,scrollDroppable:r,getAutoScrollerOptions:i=()=>Nu}=e;const c=Eu(t),o=Eu(r);let a=null;const n=s=>{a||un();const{shouldUseTimeDampening:u,dragStartTime:d}=a;p3({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};p3({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}},aH=e=>{let{move:t,scrollDroppable:r,scrollWindow:i}=e;const c=(l,f)=>{const s=ca(l.current.client.selection,f);t({client:s})},o=(l,f)=>{if(!w1(l,f))return f;const s=eH(l,f);if(!s)return r(l.descriptor.id,f),null;const u=Ea(f,s);return r(l.descriptor.id,u),Ea(f,u)},a=(l,f,s)=>{if(!l||!x1(f,s))return s;const u=QU(f,s);if(!u)return i(s),null;const d=Ea(s,u);return i(d),Ea(s,d)};return l=>{const f=l.scrollJumpRequest;if(!f)return;const s=Ia(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)}},iH=e=>{let{scrollDroppable:t,scrollWindow:r,move:i,getAutoScrollerOptions:c}=e;const o=rH({scrollWindow:r,scrollDroppable:t,getAutoScrollerOptions:c}),a=aH({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 Ol="data-rfd",Al=(()=>{const e=`${Ol}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),W0=(()=>{const e=`${Ol}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),oH=(()=>{const e=`${Ol}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),g3={contextId:`${Ol}-scroll-container-context-id`},lH=e=>t=>`[${t}="${e}"]`,js=(e,t)=>e.map(r=>{const i=r.styles[t];return i?`${r.selector} { ${i} }`:""}).join(" "),sH="pointer-events: none;";var uH=e=>{const t=lH(e),r=(()=>{const n=` - cursor: -webkit-grab; - cursor: grab; - `;return{selector:t(Al.contextId),styles:{always:` - -webkit-touch-callout: none; - -webkit-tap-highlight-color: rgba(0,0,0,0); - touch-action: manipulation; - `,resting:n,dragging:sH,dropAnimating:n}}})(),i=(()=>{const n=` - transition: ${Cu.outOfTheWay}; - `;return{selector:t(W0.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}})(),c={selector:t(oH.contextId),styles:{always:"overflow-anchor: none;"}},a=[i,r,c,{selector:"body",styles:{dragging:` - cursor: grabbing; - cursor: -webkit-grabbing; - user-select: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - overflow-anchor: none; - `}}];return{always:js(a,"always"),resting:js(a,"resting"),dragging:js(a,"dragging"),dropAnimating:js(a,"dropAnimating"),userCancel:js(a,"userCancel")}};const cH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?$e.useLayoutEffect:$e.useEffect;var Fa=cH;const Mm=()=>{const e=document.querySelector("head");return e||un(),e},m3=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function fH(e,t){const r=Xn(()=>uH(e),[e]),i=$e.useRef(null),c=$e.useRef(null),o=Sn(Qr(u=>{const d=c.current;d||un(),d.textContent=u}),[]),a=Sn(u=>{const d=i.current;d||un(),d.textContent=u},[]);Fa(()=>{!i.current&&!c.current||un();const u=m3(t),d=m3(t);return i.current=u,c.current=d,u.setAttribute(`${Ol}-always`,e),d.setAttribute(`${Ol}-dynamic`,e),Mm().appendChild(u),Mm().appendChild(d),a(r.always),o(r.resting),()=>{const h=p=>{const g=p.current;g||un(),Mm().removeChild(g),p.current=null};h(i),h(c)}},[t,a,o,r.always,r.resting,e]);const n=Sn(()=>o(r.dragging),[o,r.dragging]),l=Sn(u=>{if(u==="DROP"){o(r.dropAnimating);return}o(r.userCancel)},[o,r.dropAnimating,r.userCancel]),f=Sn(()=>{c.current&&o(r.resting)},[o,r.resting]);return Xn(()=>({dragging:n,dropping:l,resting:f}),[n,l,f])}function V6(e,t){return Array.from(e.querySelectorAll(t))}var Y6=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function Xd(e){return e instanceof Y6(e).HTMLElement}function dH(e,t){const r=`[${Al.contextId}="${e}"]`,i=V6(document,r);if(!i.length)return null;const c=i.find(o=>o.getAttribute(Al.draggableId)===t);return!c||!Xd(c)?null:c}function hH(e){const t=$e.useRef({}),r=$e.useRef(null),i=$e.useRef(null),c=$e.useRef(!1),o=Sn(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=Sn(function(d){const h=dH(e,d);h&&h!==document.activeElement&&h.focus()},[e]),n=Sn(function(d,h){r.current===d&&(r.current=h)},[]),l=Sn(function(){i.current||c.current&&(i.current=requestAnimationFrame(()=>{i.current=null;const d=r.current;d&&a(d)}))},[a]),f=Sn(function(d){r.current=null;const h=document.activeElement;h&&h.getAttribute(Al.draggableId)===d&&(r.current=d)},[]);return Fa(()=>(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 pH(){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 gH(){const e=Xn(pH,[]);return $e.useEffect(()=>function(){et.version.startsWith("16")||et.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var _1=et.createContext(null),Hf=()=>{const e=document.body;return e||un(),e};const mH={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 vH=mH;const yH=e=>`rfd-announcement-${e}`;function bH(e){const t=Xn(()=>yH(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,vH),Hf().appendChild(o),function(){setTimeout(function(){const l=Hf();l.contains(o)&&l.removeChild(o),o===r.current&&(r.current=null)})}},[t]),Sn(c=>{const o=r.current;if(o){o.textContent=c;return}},[])}let G6=0;const X6={separator:"::"};function xH(){G6=0}function wH(e,t){return t===void 0&&(t=X6),Xn(()=>`${e}${t.separator}${G6++}`,[t.separator,e])}function _H(e,t){t===void 0&&(t=X6);const r=et.useId();return Xn(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}var T1="useId"in et?_H:wH;function TH(e){let{contextId:t,uniqueId:r}=e;return`rfd-hidden-text-${t}-${r}`}function kH(e){let{contextId:t,text:r}=e;const i=T1("hidden-text",{separator:"-"}),c=Xn(()=>TH({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",Hf().appendChild(a),function(){const l=Hf();l.contains(a)&&l.removeChild(a)}},[c,r]),c}var Zd=et.createContext(null);function Z6(e){const t=$e.useRef(e);return $e.useEffect(()=>{t.current=e}),t}function MH(){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 ju(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const SH=9,CH=13,k1=27,K6=32,OH=33,AH=34,PH=35,DH=36,EH=37,RH=38,LH=39,IH=40,FH={[CH]:!0,[SH]:!0};var J6=e=>{FH[e.keyCode]&&e.preventDefault()};const NH=(()=>{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 Kd=NH;const Q6=0,v3=5;function jH(e,t){return Math.abs(t.x-e.x)>=v3||Math.abs(t.y-e.y)>=v3}const y3={type:"IDLE"};function $H(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!==Q6)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(!jH(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===k1){o.preventDefault(),t();return}J6(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:Kd,fn:t}]}function eC(e){const t=$e.useRef(y3),r=$e.useRef(Xi),i=Xn(()=>({eventName:"mousedown",fn:function(u){if(u.defaultPrevented||u.button!==Q6||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=Sn(function(){const u={passive:!1,capture:!0};r.current=Wa(window,[c,i],u)},[c,i]),a=Sn(()=>{t.current.type!=="IDLE"&&(t.current=y3,r.current(),o())},[o]),n=Sn(()=>{const s=t.current;a(),s.type==="DRAGGING"&&s.actions.cancel({shouldBlockNextClick:!0}),s.type==="PENDING"&&s.actions.abort()},[a]),l=Sn(function(){const u={capture:!0,passive:!1},d=$H({cancel:n,completed:a,getPhase:()=>t.current,setPhase:h=>{t.current=h}});r.current=Wa(window,d,u)},[n,a]),f=Sn(function(u,d){t.current.type!=="IDLE"&&un(),t.current={type:"PENDING",point:d,actions:u},l()},[l]);Fa(function(){return o(),function(){r.current()}},[o])}function BH(){}const zH={[AH]:!0,[OH]:!0,[DH]:!0,[PH]:!0};function qH(e,t){function r(){t(),e.cancel()}function i(){t(),e.drop()}return[{eventName:"keydown",fn:c=>{if(c.keyCode===k1){c.preventDefault(),r();return}if(c.keyCode===K6){c.preventDefault(),i();return}if(c.keyCode===IH){c.preventDefault(),e.moveDown();return}if(c.keyCode===RH){c.preventDefault(),e.moveUp();return}if(c.keyCode===LH){c.preventDefault(),e.moveRight();return}if(c.keyCode===EH){c.preventDefault(),e.moveLeft();return}if(zH[c.keyCode]){c.preventDefault();return}J6(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:Kd,fn:r}]}function tC(e){const t=$e.useRef(BH),r=Xn(()=>({eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==K6)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=Wa(window,qH(f,s),{capture:!0,passive:!1})}}),[e]),i=Sn(function(){const o={passive:!1,capture:!0};t.current=Wa(window,[r],o)},[r]);Fa(function(){return i(),function(){t.current()}},[i])}const Sm={type:"IDLE"},WH=120,UH=.15;function HH(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===k1&&i.preventDefault(),t()}},{eventName:Kd,fn:t}]}function VH(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>=UH))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:Kd,fn:t}]}function nC(e){const t=$e.useRef(Sm),r=$e.useRef(Xi),i=Sn(function(){return t.current},[]),c=Sn(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 g=e.tryGetLock(p,n,{sourceEvent:h});if(!g)return;const y=h.touches[0],{clientX:v,clientY:m}=y,b={x:v,y:m};r.current(),u(g,b)}}),[e]),a=Sn(function(){const h={capture:!0,passive:!1};r.current=Wa(window,[o],h)},[o]),n=Sn(()=>{const d=t.current;d.type!=="IDLE"&&(d.type==="PENDING"&&clearTimeout(d.longPressTimerId),c(Sm),r.current(),a())},[a,c]),l=Sn(()=>{const d=t.current;n(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[n]),f=Sn(function(){const h={capture:!0,passive:!1},p={cancel:l,completed:n,getPhase:i},g=Wa(window,VH(p),h),y=Wa(window,HH(p),h);r.current=function(){g(),y()}},[l,i,n]),s=Sn(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=Sn(function(h,p){i().type!=="IDLE"&&un();const g=setTimeout(s,WH);c({type:"PENDING",point:p,actions:h,longPressTimerId:g}),f()},[f,i,c,s]);Fa(function(){return a(),function(){r.current();const p=i();p.type==="PENDING"&&(clearTimeout(p.longPressTimerId),c(Sm))}},[i,a,c]),Fa(function(){return Wa(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const YH=["input","button","textarea","select","option","optgroup","video","audio"];function rC(e,t){if(t==null)return!1;if(YH.includes(t.tagName.toLowerCase()))return!0;const i=t.getAttribute("contenteditable");return i==="true"||i===""?!0:t===e?!1:rC(e,t.parentElement)}function GH(e,t){const r=t.target;return Xd(r)?rC(e,r):!1}var XH=e=>Qa(e.getBoundingClientRect()).center;function ZH(e){return e instanceof Y6(e).Element}const KH=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(i=>i in Element.prototype)||e})();function aC(e,t){return e==null?null:e[KH](t)?e:aC(e.parentElement,t)}function JH(e,t){return e.closest?e.closest(t):aC(e,t)}function QH(e){return`[${Al.contextId}="${e}"]`}function eV(e,t){const r=t.target;if(!ZH(r))return null;const i=QH(e),c=JH(r,i);return!c||!Xd(c)?null:c}function tV(e,t){const r=eV(e,t);return r?r.getAttribute(Al.draggableId):null}function nV(e,t){const r=`[${W0.contextId}="${e}"]`,c=V6(document,r).find(o=>o.getAttribute(W0.id)===t);return!c||!Xd(c)?null:c}function rV(e){e.preventDefault()}function Zc(e){let{expected:t,phase:r,isLockActive:i,shouldWarn:c}=e;return!(!i()||t!==r)}function iC(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||!q6(r.getState(),c))}function aV(e){let{lockAPI:t,contextId:r,store:i,registry:c,draggableId:o,forceSensorStop:a,sourceEvent:n}=e;if(!iC({lockAPI:t,store:i,registry:c,draggableId:o}))return null;const f=c.draggable.getById(o),s=nV(r,f.descriptor.id);if(!s||n&&!f.options.canDragInteractiveElements&&GH(s,n))return null;const u=t.claim(a||Xi);let d="PRE_DRAG";function h(){return f.options.shouldRespectForcePress}function p(){return t.isActive(u)}function g(w,k){Zc({expected:w,phase:d,isLockActive:p,shouldWarn:!0})&&i.dispatch(k())}const y=g.bind(null,"DRAGGING");function v(w){function k(){t.release(),d="COMPLETED"}d!=="PRE_DRAG"&&(k(),un()),i.dispatch(HW(w.liftActionArgs)),d="DRAGGING";function T(M,S){if(S===void 0&&(S={shouldBlockNextClick:!1}),w.cleanup(),S.shouldBlockNextClick){const C=Wa(window,[{eventName:"click",fn:rV,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(C)}k(),i.dispatch(L6({reason:M}))}return{isActive:()=>Zc({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,drop:M=>T("DROP",M),cancel:M=>T("CANCEL",M),...w.actions}}function m(w){const k=Eu(M=>{y(()=>R6({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(eU),moveRight:()=>y(nU),moveDown:()=>y(tU),moveLeft:()=>y(rU)};return v({liftActionArgs:{id:o,clientSelection:XH(s),movementMode:"SNAP"},cleanup:Xi,actions:w})}function x(){Zc({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}return{isActive:()=>Zc({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,fluidLift:m,snapLift:b,abort:x}}const iV=[eC,tC,nC];function oV(e){let{contextId:t,store:r,registry:i,customSensors:c,enableDefaultSensors:o}=e;const a=[...o?iV:[],...c||[]],n=$e.useState(()=>MH())[0],l=Sn(function(v,m){ju(v)&&!ju(m)&&n.tryAbandon()},[n]);Fa(function(){let v=r.getState();return r.subscribe(()=>{const b=r.getState();l(v,b),v=b})},[n,r,l]),Fa(()=>n.tryAbandon,[n.tryAbandon]);const f=Sn(y=>iC({lockAPI:n,registry:i,store:r,draggableId:y}),[n,i,r]),s=Sn((y,v,m)=>aV({lockAPI:n,registry:i,contextId:t,store:r,draggableId:y,forceSensorStop:v||null,sourceEvent:m&&m.sourceEvent?m.sourceEvent:null}),[t,n,i,r]),u=Sn(y=>tV(t,y),[t]),d=Sn(y=>{const v=i.draggable.findById(y);return v?v.options:null},[i.draggable]),h=Sn(function(){n.isClaimed()&&(n.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(g1()))},[n,r]),p=Sn(()=>n.isClaimed(),[n]),g=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():yy.flushSync(r)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),sV=e=>({...Nu,...e.autoScrollerOptions,durationDampening:{...Nu.durationDampening,...e.autoScrollerOptions}});function $s(e){return e.current||un(),e.current}function uV(e){const{contextId:t,setCallbacks:r,sensors:i,nonce:c,dragHandleUsageInstructions:o}=e,a=$e.useRef(null),n=Z6(e),l=Sn(()=>lV(n.current),[n]),f=Sn(()=>sV(n.current),[n]),s=bH(t),u=kH({contextId:t,text:o}),d=fH(t,c),h=Sn(S=>{$s(a).dispatch(S)},[]),p=Xn(()=>V_({publishWhileDragging:YW,updateDroppableScroll:XW,updateDroppableIsEnabled:ZW,updateDroppableIsCombineEnabled:KW,collectionStarting:GW},h),[h]),g=gH(),y=Xn(()=>qU(g,p),[g,p]),v=Xn(()=>iH({scrollWindow:WU,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:f,...V_({move:R6},h)}),[y.scrollDroppable,h,f]),m=hH(t),b=Xn(()=>jU({announce:s,autoScroller:v,dimensionMarshal:y,focusMarshal:m,getResponders:l,styleMarshal:d}),[s,v,y,m,l,d]);a.current=b;const x=Sn(()=>{const S=$s(a);S.getState().phase!=="IDLE"&&S.dispatch(g1())},[]),_=Sn(()=>{const S=$s(a).getState();return S.phase==="DROP_ANIMATING"?!0:S.phase==="IDLE"?!1:S.isDragging},[]),w=Xn(()=>({isDragging:_,tryAbort:x}),[_,x]);r(w);const k=Sn(S=>q6($s(a).getState(),S),[]),T=Sn(()=>mo($s(a).getState()),[]),M=Xn(()=>({marshal:y,focus:m,contextId:t,canLift:k,isMovementAllowed:T,dragHandleUsageInstructionsId:u,registry:g}),[t,y,u,m,k,T,g]);return oV({contextId:t,store:b,registry:g,customSensors:i||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),$e.useEffect(()=>x,[x]),et.createElement(Zd.Provider,{value:M},et.createElement(kq,{context:_1,store:b},e.children))}let oC=0;function cV(){oC=0}function fV(){return Xn(()=>`${oC++}`,[])}function dV(){return et.useId()}var hV="useId"in et?dV:fV;function pV(){"useId"in et||(cV(),xH())}function gV(e){const t=hV(),r=e.dragHandleUsageInstructions||gf.dragHandleUsageInstructions;return et.createElement(Rq,null,i=>et.createElement(uV,{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 b3={dragging:5e3,dropAnimating:4500},mV=(e,t)=>t?Cu.drop(t.duration):e?Cu.snap:Cu.fluid,vV=(e,t)=>{if(e)return t?Fu.opacity.drop:Fu.opacity.combining},yV=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function bV(e){const r=e.dimension.client,{offset:i,combineWith:c,dropping:o}=e,a=!!c,n=yV(e),l=!!o,f=l?z0.drop(i,a):z0.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:mV(n,o),transform:f,opacity:vV(a,l),zIndex:l?b3.dropAnimating:b3.dragging,pointerEvents:"none"}}function xV(e){return{transform:z0.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function wV(e){return e.type==="DRAGGING"?bV(e):xV(e)}function _V(e,t,r){r===void 0&&(r=ea);const i=window.getComputedStyle(t),c=t.getBoundingClientRect(),o=s6(c,i),a=zf(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 TV(e){const t=T1("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=Sn(h=>{const p=c();return p||un(),_V(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);Fa(()=>(i.draggable.register(u.current),()=>i.draggable.unregister(u.current)),[i.draggable]),Fa(()=>{if(d.current){d.current=!1;return}const h=u.current;u.current=s,i.draggable.update(s,h)},[s,i.draggable])}var M1=et.createContext(null);function Vf(e){const t=$e.useContext(e);return t||un(),t}function kV(e){e.preventDefault()}const MV=e=>{const t=$e.useRef(null),r=Sn(function(w){w===void 0&&(w=null),t.current=w},[]),i=Sn(()=>t.current,[]),{contextId:c,dragHandleUsageInstructionsId:o,registry:a}=Vf(Zd),{type:n,droppableId:l}=Vf(M1),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:g,mapped:y,dropAnimationFinished:v}=e;if(!g){const w=Xn(()=>({descriptor:f,registry:a,getDraggableRef:i,canDragInteractiveElements:p,shouldRespectForcePress:h,isEnabled:d}),[f,a,i,p,h,d]);TV(w)}const m=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:kV}:null,[c,o,u,d]),b=Sn(w=>{y.type==="DRAGGING"&&y.dropping&&w.propertyName==="transform"&&(et.version.startsWith("16")||et.version.startsWith("17")?v():yy.flushSync(v))},[v,y]),x=Xn(()=>{const w=wV(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:m}},[c,m,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 SV=MV,lC=(e,t)=>e===t,sC=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};const CV=e=>e.combine?e.combine.draggableId:null,OV=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function AV(){const e=Qr((c,o)=>({x:c,y:o})),t=Qr(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=Qr(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(ju(c)){if(c.critical.draggable.id!==o.draggableId)return null;const a=c.current.client.offset,n=c.dimensions.draggables[o.draggableId],l=Ia(c.impact),f=OV(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=sC(f),d=CV(f),p={duration:c.dropDuration,curve:v1.drop,moveTo:c.newHomeClientOffset,opacity:d?Fu.opacity.drop:null,scale:d?Fu.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 uC(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const PV={mapped:{type:"SECONDARY",offset:ea,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:uC(null)}};function DV(){const e=Qr((a,n)=>({x:a,y:n})),t=Qr(uC),r=Qr(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(ea,a,!0):null,c=(a,n,l,f)=>{const s=l.displaced.visible[a],u=!!(f.inVirtualList&&f.effected[a]),d=Vd(l),h=d&&d.draggableId===a?n:null;if(!s){if(!u)return i(h);if(l.displaced.invisible[a])return null;const y=Wl(f.displacedBy.point),v=e(y.x,y.y);return r(v,h,!0)}if(u)return i(h);const p=l.displacedBy.point,g=e(p.x,p.y);return r(g,h,s.shouldAnimate)};return(a,n)=>{if(ju(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 EV=()=>{const e=AV(),t=DV();return(i,c)=>e(i,c)||t(i,c)||PV},RV={dropAnimationFinished:I6},LV=o6(EV,RV,null,{context:_1,areStatePropsEqual:lC})(SV);var IV=LV;function cC(e){return Vf(M1).isUsingCloneFor===e.draggableId&&!e.isClone?null:et.createElement(IV,e)}function FV(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,i=!!e.shouldRespectForcePress;return et.createElement(cC,Gt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:i}))}const fC=e=>t=>e===t,NV=fC("scroll"),jV=fC("auto"),x3=(e,t)=>t(e.overflowX)||t(e.overflowY),$V=e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return x3(r,NV)||x3(r,jV)},BV=()=>!1,dC=e=>e==null?null:e===document.body?BV()?e:null:e===document.documentElement?null:$V(e)?e:dC(e.parentElement);var zV=dC,U0=e=>({x:e.scrollLeft,y:e.scrollTop});const hC=e=>e?window.getComputedStyle(e).position==="fixed"?!0:hC(e.parentElement):!1;var qV=e=>{const t=zV(e),r=hC(e);return{closestScrollable:t,isFixedOnPage:r}},WV=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,g=$6({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:g,diff:{value:ea,displacement:ea}}}})(),s=o==="vertical"?c1:y6,u=Cl({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 UV=(e,t)=>{const r=u6(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=o1({top:i,right:a,bottom:o,left:c},r.border);return l1({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})};var HV=e=>{let{ref:t,descriptor:r,env:i,windowScroll:c,direction:o,isDropDisabled:a,isCombineEnabled:n,shouldClipSubject:l}=e;const f=i.closestScrollable,s=UV(t,f),u=zf(s,c),d=(()=>{if(!f)return null;const p=u6(f),g={scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth};return{client:p,page:zf(p,c),scroll:U0(f),scrollSize:g,shouldClipSubject:l}})();return WV({descriptor:r,isEnabled:!a,isCombineEnabled:n,isFixedOnPage:i.isFixedOnPage,direction:o,client:s,page:u,closest:d})};const VV={passive:!1},YV={passive:!0};var w3=e=>e.shouldPublishImmediately?VV:YV;const Kc=e=>e&&e.env.closestScrollable||null;function GV(e){const t=$e.useRef(null),r=Vf(Zd),i=T1("droppable"),{registry:c,marshal:o}=r,a=Z6(e),n=Xn(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=$e.useRef(n),f=Xn(()=>Qr((x,_)=>{t.current||un();const w={x,y:_};o.updateDroppableScroll(n.id,w)}),[n.id,o]),s=Sn(()=>{const x=t.current;return!x||!x.env.closestScrollable?ea:U0(x.env.closestScrollable)},[]),u=Sn(()=>{const x=s();f(x.x,x.y)},[s,f]),d=Xn(()=>Eu(u),[u]),h=Sn(()=>{const x=t.current,_=Kc(x);if(x&&_||un(),x.scrollOptions.shouldPublishImmediately){u();return}d()},[d,u]),p=Sn((x,_)=>{t.current&&un();const w=a.current,k=w.getDroppableRef();k||un();const T=qV(k),M={ref:k,descriptor:n,env:T,scrollOptions:_};t.current=M;const S=HV({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(g3.contextId,r.contextId),C.addEventListener("scroll",h,w3(M.scrollOptions))),S},[r.contextId,n,h,a]),g=Sn(()=>{const x=t.current,_=Kc(x);return x&&_||un(),U0(_)},[]),y=Sn(()=>{const x=t.current;x||un();const _=Kc(x);t.current=null,_&&(d.cancel(),_.removeAttribute(g3.contextId),_.removeEventListener("scroll",h,w3(x.scrollOptions)))},[h,d]),v=Sn(x=>{const _=t.current;_||un();const w=Kc(_);w||un(),w.scrollTop+=x.y,w.scrollLeft+=x.x},[]),m=Xn(()=>({getDimensionAndWatchScroll:p,getScrollWhileDragging:g,dragStopped:y,scroll:v}),[y,p,g,v]),b=Xn(()=>({uniqueId:i,descriptor:n,callbacks:m}),[m,n,i]);Fa(()=>(l.current=b.descriptor,c.droppable.register(b),()=>{t.current&&y(),c.droppable.unregister(b)}),[m,n,y,b,o,c.droppable]),Fa(()=>{t.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),Fa(()=>{t.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function Cm(){}const _3={width:0,height:0,margin:Bq},XV=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;return t||i==="close"?_3:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}},ZV=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;const c=XV({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"?Cu.placeholder:null}},KV=e=>{const t=$e.useRef(null),r=Sn(()=>{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),Cm):t.current?Cm:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):Cm,[i,n,r]);const f=Sn(u=>{u.propertyName==="height"&&(c(),i==="close"&&o())},[i,o,c]),s=ZV({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 JV=et.memo(KV);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 eY=e=>{const t=$e.useContext(Zd);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:g,updateViewportMaxScroll:y,getContainerForClone:v}=e,m=Sn(()=>c.current,[]),b=Sn(function(C){C===void 0&&(C=null),c.current=C},[]);Sn(()=>o.current,[]);const x=Sn(function(C){C===void 0&&(C=null),o.current=C},[]),_=Sn(()=>{i()&&y({maxScroll:z6()})},[i,y]);GV({droppableId:n,type:l,mode:f,direction:s,isDropDisabled:d,isCombineEnabled:h,ignoreContainerClipping:u,getDroppableRef:m});const w=Xn(()=>et.createElement(QV,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},C=>{let{onClose:P,data:D,animate:O}=C;return et.createElement(JV,{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=g?g.dragging.draggableId:null,M=Xn(()=>({droppableId:n,type:l,isUsingCloneFor:T}),[n,T,l]);function S(){if(!g)return null;const{dragging:C,render:P}=g,D=et.createElement(cC,{draggableId:C.draggableId,index:C.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(O,R)=>P(O,R,C));return Y9.createPortal(D,v())}return et.createElement(M1.Provider,{value:M},a(k,p),S())};var tY=eY;function nY(){return document.body||un(),document.body}const T3={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:nY},pC=e=>{let t={...e},r;for(r in T3)e[r]===void 0&&(t={...t,[r]:T3[r]});return t},Om=(e,t)=>e===t.droppable.type,k3=(e,t)=>t.draggables[e.draggable.id],rY=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=Qr(o=>({draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}})),i=Qr((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,g={isDraggingOver:n,draggingOverWith:n?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!1,snapshot:g,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=pC(a),l=n.droppableId,f=n.type,s=!n.isDropDisabled,u=n.renderClone;if(ju(o)){const d=o.critical;if(!Om(f,d))return t;const h=k3(d,o.dimensions),p=Ia(o.impact)===l;return i(l,s,p,p,h,u)}if(o.phase==="DROP_ANIMATING"){const d=o.completed;if(!Om(f,d.critical))return t;const h=k3(d.critical,o.dimensions);return i(l,s,sC(d.result)===l,Ia(d.impact)===l,h,u)}if(o.phase==="IDLE"&&o.completed&&!o.shouldFlush){const d=o.completed;if(!Om(f,d.critical))return t;const h=Ia(d.impact)===l,p=!!(d.impact.at&&d.impact.at.type==="COMBINE"),g=d.critical.droppable.id===l;return h?p?e:t:g?e:t}return t}},aY={updateViewportMaxScroll:QW},iY=o6(rY,aY,(e,t,r)=>({...pC(r),...e,...t}),{context:_1,areStatePropsEqual:lC})(tY);var oY=iY;const lY=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:gV,Draggable:FV,Droppable:oY,resetServerContext:pV,useKeyboardSensor:tC,useMouseSensor:eC,useTouchSensor:nC},Symbol.toStringTag,{value:"Module"})),S1=qn(lY);var M3;function sY(){return M3||(M3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),c=t(zo),o=t(Kr()),a=t(J4),n=t(Jz),l=t(Ud),f=t(Or),s=g($e),u=S1,d=ei(),h=tc();function p(x){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(p=function(T){return T?w:_})(x)}function g(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)}))}m.defaultProps={},m.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(m,(0,i.default)({},_,{forwardedRef:w}))});e.default=b}(vm)),vm}var Am={},S3;function uY(){return S3||(S3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Kr()),c=t(io()),o=t(zl()),a=t(mi),n=t(Pi),l=t(ql),f=t(qo),s=t(Or),u=t($e),d=ei();function h(v,m){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);m&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,x)}return b}function p(v){for(var m=1;m0&&_++;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)}g.defaultProps={columns:[],groups:[],level:0},g.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(m,b){return u.default.createElement(g,(0,r.default)({},m,{forwardedRef:b}))});e.default=y}(Am)),Am}var Pm={};const cY=qn(G9),fY=qn(X9);var C3;function dY(){return C3||(C3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=T,e.styles=e.default=void 0;var i=t(zo),c=t(Wo),o=t(hr()),a=t(Kr()),n=t(io()),l=t(Bl()),f=t($e),s=t(Or),u=t(cY),d=t(Pi),h=t(mi),p=t(fY),g=t(qo),y=S1,v=_(Li()),m=ei(),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(g.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}(Pm)),Pm}var Dm={};const hY=qn(Z9);var O3;function pY(){return O3||(O3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),c=t(ql),o=t(Wo),a=t(zo),n=t(hY),l=t(Or),f=t($e),s=$l,u=p(Li()),d=ei();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 g(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)))))}g.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])},g.defaultProps={showFirstLastPageButtons:!0};var y=f.default.forwardRef(function(x,_){return f.default.createElement(g,(0,i.default)({},x,{forwardedRef:_}))}),v=y,m=v;e.default=m}(Dm)),Dm}var Em={},A3;function gY(){return A3||(A3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),c=t(zo),o=t(ql),a=t(Wo),n=t(Ud),l=t(Or),f=t($e),s=$l,u=p(Li()),d=tc();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 g(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)))))}g.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},g.defaultProps={showFirstLastPageButtons:!0};var y=f.default.forwardRef(function(x,_){return f.default.createElement(g,(0,i.default)({},x,{forwardedRef:_}))}),v=y,m=v;e.default=m}(Em)),Em}var Rm={},P3;function mY(){return P3||(P3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var i=t(Pi),c=t(Ur()),o=t(zl()),a=t(mi),n=t(Kr()),l=p($e),f=Wd(),s=p(Li()),u=ei(),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 g(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 m=v;e.default=m}(Rm)),Rm}var Lm={};const vY=qn(K9);var D3;function yY(){return D3||(D3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=M,e.default=void 0;var i=t(hr()),c=t(Kr()),o=t(zo),a=t(io()),n=t(qo),l=t(Z4),f=t(ql),s=t(vY),u=t(Oy),d=t(Ld),h=t(J4),p=t(Wo),g=t(Ud),y=$l,v=t(Or),m=_($e),b=ei();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?m.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:m.default.createElement(l.default,{position:"start"},m.default.createElement(p.default,{title:F.searchTooltip},m.default.createElement(V.Search,{fontSize:"small"}))),endAdornment:m.default.createElement(l.default,{position:"end"},m.default.createElement(f.default,{disabled:!B,onClick:function(){return U("")},"aria-label":F.clearSearchAriaLabel},m.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 m.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!le&&m.default.createElement("span",null,m.default.createElement(p.default,{title:F.showColumnsTitle},m.default.createElement(f.default,{color:"inherit",onClick:function(Te){return H(Te.currentTarget)},"aria-label":F.showColumnsAriaLabel},m.default.createElement(V.ViewColumn,null))),m.default.createElement(s.default,{anchorEl:q,open:!!q,onClose:function(){return H(null)}},m.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:m.default.createElement("li",{key:pe.tableData.id},m.default.createElement(u.default,{sx:S.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(pe.tableData.id),disabled:pe.removable===!1},m.default.createElement(n.default,{checked:!pe.hidden,id:"column-toggle-".concat(pe.tableData.id),onChange:function(){return O.onColumnsChanged(pe,!pe.hidden)}}),m.default.createElement("span",null,pe.title)))}))),te.exportMenu.length>0&&m.default.createElement("span",null,m.default.createElement(p.default,{title:F.exportTitle},m.default.createElement(f.default,{color:"inherit",onClick:function(Te){return W(Te.currentTarget)},"aria-label":F.exportAriaLabel},m.default.createElement(V.Export,null))),m.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 m.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)}))),m.default.createElement("span",null,m.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 m.default.createElement(o.default,{sx:S.actions},m.default.createElement("div",null,Z(ee.length>0)))}function re(le){var se=typeof le=="string"?m.default.createElement(g.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},le):le;return m.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 m.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(),m.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=m.default.forwardRef(function(R,F){return m.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=m.default.memo(C);e.default=D}(Lm)),Lm}var E3;function Jd(){return E3||(E3=1,function(e){var t=Rn;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 g.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 m.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(vE()),i=t(sR()),c=t(fR()),o=t(hR()),a=t(yR()),n=t(Az()),l=t(Pz()),f=t(Lz()),s=t(Iz()),u=t($z()),d=t(qz()),h=t(Wz()),p=t(Uz()),g=t(K4()),y=t(sY()),v=t(uY()),m=t(dY()),b=t(pY()),x=t(gY()),_=t(mY()),w=t(yY())}(fg)),fg}var R3;function gC(){return R3||(R3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(mE),i=Jd(),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}(cg)),cg}var L3;function bY(){if(L3)return vs;L3=1;var e=Rn;Object.defineProperty(vs,"__esModule",{value:!0}),vs.defaultProps=void 0;var t=e(gC()),r=e(DS()),i=e(AS()),c=e(PS()),o={actions:[],classes:{},columns:[],components:t.default,data:[],icons:r.default,isLoading:!1,title:"Table Title",options:c.default,localization:i.default,style:{}};return vs.defaultProps=o,vs}var Bs={},zs={},I3;function C1(){if(I3)return zs;I3=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.ALL_COLUMNS=void 0;var e="all_columns";return zs.ALL_COLUMNS=e,zs}var F3;function xY(){if(F3)return Bs;F3=1;var e=Rn;Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.propTypes=void 0;var t=e(Or),r=C1(),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 Bs.propTypes=o,Bs}var Im={};const wY=qn(J9),_Y=qn(Q9),TY=qn(eE);var Fm,N3;function kY(){if(N3)return Fm;N3=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,Fm=e,Fm}var Nm={};const MY=qn(jL);var jm={},qs={},Jc={},j3;function mC(){if(j3)return Jc;j3=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.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 Jc}var ll={},Ws={},Us={},$3;function SY(){if($3)return Us;$3=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.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 Us.default=e,Us}var B3;function Qd(){if(B3)return Ws;B3=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var e=t(SY());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 Ws.default=i,Ws}var z3;function eh(){if(z3)return ll;z3=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.default=void 0,ll.unsafeStringify=i;var e=t(Qd());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 ll.default=o,ll}var q3;function CY(){if(q3)return qs;q3=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=void 0;var e=r(mC()),t=eh();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,g=f.clockseq!==void 0?f.clockseq:c;if(p==null||g==null){const _=f.random||(f.rng||e.default)();p==null&&(p=i=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),g==null&&(g=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 m=y-o+(v-a)/1e4;if(m<0&&f.clockseq===void 0&&(g=g+1&16383),(m<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=g,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++]=g>>>8|128,h[d++]=g&255;for(let _=0;_<6;++_)h[d+_]=p[_];return s||(0,t.unsafeStringify)(h)}var l=n;return qs.default=l,qs}var Hs={},Ui={},Vs={},W3;function vC(){if(W3)return Vs;W3=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.default=void 0;var e=t(Qd());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 Vs.default=i,Vs}var U3;function yC(){if(U3)return Ui;U3=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.URL=Ui.DNS=void 0,Ui.default=a;var e=eh(),t=r(vC());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(m>>>4&15)+y.charAt(m&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)+(g>>16)<<16|g&65535}function a(h,p){return h<>>32-p}function n(h,p,g,y,v,m){return o(a(o(o(p,h),o(y,m)),v),g)}function l(h,p,g,y,v,m,b){return n(p&g|~p&y,h,p,v,m,b)}function f(h,p,g,y,v,m,b){return n(p&y|g&~y,h,p,v,m,b)}function s(h,p,g,y,v,m,b){return n(p^g^y,h,p,v,m,b)}function u(h,p,g,y,v,m,b){return n(g^(p|~y),h,p,v,m,b)}var d=e;return Ys.default=d,Ys}var V3;function AY(){if(V3)return Hs;V3=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var e=r(yC()),t=r(OY());function r(o){return o&&o.__esModule?o:{default:o}}var c=(0,e.default)("v3",48,t.default);return Hs.default=c,Hs}var Gs={},Xs={},Y3;function PY(){if(Y3)return Xs;Y3=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Xs.default=t,Xs}var G3;function DY(){if(G3)return Gs;G3=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.default=void 0;var e=i(PY()),t=i(mC()),r=eh();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 Gs.default=o,Gs}var Zs={},Ks={},X3;function EY(){if(X3)return Ks;X3=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.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=g,g=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]+g>>>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 Ks.default=i,Ks}var Z3;function RY(){if(Z3)return Zs;Z3=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.default=void 0;var e=r(yC()),t=r(EY());function r(o){return o&&o.__esModule?o:{default:o}}var c=(0,e.default)("v5",80,t.default);return Zs.default=c,Zs}var Js={},K3;function LY(){if(K3)return Js;K3=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Js.default=e,Js}var Qs={},J3;function IY(){if(J3)return Qs;J3=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.default=void 0;var e=t(Qd());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 Qs.default=i,Qs}var Q3;function FY(){return Q3||(Q3=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(CY()),r=s(AY()),i=s(DY()),c=s(RY()),o=s(LY()),a=s(IY()),n=s(Qd()),l=s(eh()),f=s(vC());function s(u){return u&&u.__esModule?u:{default:u}}}(jm)),jm}var eT;function NY(){return eT||(eT=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(zl()),i=t(Ed()),c=t(Rd()),o=t(Kr()),a=t(MY),n=FY(),l=Wd(),f=Li(),s=C1();function u(v,m){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);m&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,x)}return b}function d(v){for(var m=1;m=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,m){if(v){if(typeof v=="string")return g(v,m);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 g(v,m)}}function g(v,m){(m==null||m>v.length)&&(m=v.length);for(var b=0,x=new Array(m);b0?T(S.groups):S.data.forEach(function(C){C.tableData.checked!==b&&(C.tableData.checked=C.tableData.disabled?!1:b,m.selectedCount=m.selectedCount+(b?1:-1))})})};k([_])}),(0,o.default)(this,"getOrderByCollection",function(){return m.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(){m.bulkEditChangedRows={}}),(0,o.default)(this,"onBulkEditRowChanged",function(b,x){m.bulkEditChangedRows[b.tableData.id]={oldData:b,newData:x}}),(0,o.default)(this,"expandTreeForNodes",function(b){b.forEach(function(x){for(var _=x;m.parentFunc(_,m.data);){var w=m.parentFunc(_,m.data);w&&(w.tableData.isTreeExpanded=!0),_=w}})}),(0,o.default)(this,"findDataByPath",function(b,x){if(m.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 m.filtered===!1&&m.filterData(),m.searched===!1&&m.searchData(),m.grouped===!1&&m.isDataType("group")&&m.groupData(),m.treefied===!1&&m.isDataType("tree")&&m.treefyData(),m.sorted===!1&&m.sortData(),m.paged===!1&&m.pageData(),{columns:m.columns,currentPage:m.currentPage,data:m.sortedData,lastEditingRow:m.lastEditingRow,orderByCollection:m.orderByCollection,maxColumnSort:m.maxColumnSort,originalData:(0,r.default)(m.data),pageSize:m.pageSize,renderData:m.pagedData,searchText:m.searchText,selectedCount:m.selectedCount,treefiedDataLength:m.treefiedDataLength,treeDataMaxLevel:m.treeDataMaxLevel,groupedDataLength:m.groupedDataLength,tableStyleWidth:m.tableStyleWidth}}),(0,o.default)(this,"filterData",function(){m.searched=m.grouped=m.treefied=m.sorted=m.paged=!1,m.filteredData=(0,r.default)(m.data),m.applyFilters&&m.columns.filter(function(b){return b.tableData.filterValue!==void 0}).forEach(function(b){var x=b.lookup,_=b.type,w=b.tableData;b.customFilterAndSearch?m.filteredData=m.filteredData.filter(function(k){return!!b.customFilterAndSearch(w.filterValue,k,b)}):x?m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b,!1);return!w.filterValue||w.filterValue.length===0||w.filterValue.indexOf(T!=null&&T.toString())>-1}):_==="numeric"?m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b);return T+""===w.filterValue}):_==="boolean"&&w.filterValue?m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b);return T&&w.filterValue==="checked"||!T&&w.filterValue==="unchecked"}):["date","datetime"].includes(_)?m.filteredData=m.filteredData.filter(function(k){var T=m.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"?m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b),M=T||null;if(M){var S=w.filterValue,C=(0,a.default)(S,"HH:mm");return M===C}return!0}):m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b);return T!=null&&T.toString().toUpperCase().includes(w.filterValue.toUpperCase())})}),m.filtered=!0}),(0,o.default)(this,"searchData",function(){if(m.grouped=m.treefied=m.sorted=m.paged=!1,m.searchedData=(0,r.default)(m.filteredData),m.searchText&&m.applySearch){var b=m.searchText.trim();m.searchedData=m.searchedData.filter(function(x){return m.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(b,x,_);if(_.field){var w=m.getFieldValue(x,_);if(w)return w.toString().toUpperCase().includes(b.toUpperCase())}return!1})})}m.searched=!0}),(0,o.default)(this,"clearCriteria",function(){m.changeOrder(-1,""),m.changeSearchText("");var b=h(m.columns),x;try{for(b.s();!(x=b.n()).done;){var _=x.value;m.changeFilterValue(_.tableData.id,"")}}catch(w){b.e(w)}finally{b.f()}m.changeSearchText(""),m.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}(Nm)),Nm}var tT;function jY(){return tT||(tT=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(wY),c=t(_Y),o=t(Pi),a=t(hr()),n=t(zo),l=t(zl()),f=t(TY),s=t(Ur()),u=t(io()),d=t(Ed()),h=t(Rd()),p=t(My()),g=t(ky()),y=t(Sy()),v=t(Cy()),m=t(Kr()),b=t($e),x=kY(),_=t(OS()),w=C(Li()),k=S1,T=t(NY()),M=Jd();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,g.default)(j,B);var $=O(j);function j(N){var E;(0,d.default)(this,j),E=$.call(this,N),(0,m.default)((0,p.default)(E),"dataManager",new T.default),(0,m.default)((0,p.default)(E),"checkedForFunctions",!1),(0,m.default)((0,p.default)(E),"clearCriteria",function(){E.dataManager.clearCriteria(),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"isRemoteData",function(L){return!Array.isArray((L||E.props).data)}),(0,m.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,m.default)((0,p.default)(E),"onGroupSelected",function(L,q){E.dataManager.changeGroupSelected(L,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,m.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,m.default)((0,p.default)(E),"onChangeGroupOrder",function(L){E.dataManager.changeGroupOrder(L.tableData.id),E.setState(E.dataManager.getRenderState())}),(0,m.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,m.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,m.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,m.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,m.default)((0,p.default)(E),"onGroupExpandChanged",function(L){E.dataManager.changeGroupExpand(L),E.setState(E.dataManager.getRenderState())}),(0,m.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,m.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,m.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,m.default)((0,p.default)(E),"retry",function(){E.onQueryChange(E.state.query)}),(0,m.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,m.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,m.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,m.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,m.default)((0,p.default)(E),"onFilterChange",function(L,q){E.dataManager.changeFilterValue(L,q),E.setState({},E.onFilterChangeDebounce)}),(0,m.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,m.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,m.default)((0,p.default)(E),"onToggleDetailPanel",function(L,q){E.dataManager.changeDetailPanelVisibility(L,q),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"onCellEditStarted",function(L,q){E.dataManager.startCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"onCellEditFinished",function(L,q){E.dataManager.finishCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"onEditRowDataChanged",function(L,q){E.dataManager.setEditRowData(L,q),E.setState(E.dataManager.getRenderState())}),(0,m.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,m.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,m.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,m.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,m.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}})}}(Im)),Im}(function(e){var t=Rn;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=bY(),o=xY(),a=t(jY()),n=$l,l=tc(),f=Jd(),s=C1();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),g=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:g,ref:d.tableRef}))});e.default=u})(mS);const $Y=ir(mS);class BY{constructor(t){Nc(this,"cachedGraphs");Nc(this,"cachedWidgets");Nc(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 bC=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 G5e(e){return new BY(e)}const zY=e=>{const t=e.activeTab===-1?0:e.activeTab;return je.jsxs("div",{children:[je.jsx(aS,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map(r=>je.jsx(A0,{disabled:r.disabled??!1,label:je.jsx(Jr,{className:e.tabStyle,children:je.jsxs(Jr,{display:"flex",sx:{fontSize:"0.875rem"},children:[je.jsx("span",{children:r.icon}),r.title]})})}))}),je.jsx(Jr,{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}))})]})},O1=e=>{const[t,r]=$e.useState({activeTab:0});return je.jsx(et.Fragment,{children:je.jsx(zY,{activeTab:t.activeTab,onNewTabSelected:(i,c)=>r(o=>({...o,activeTab:c})),tabs:e.tabs})})},H0=({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&&r.result&&t(r.result):r.status===4?je.jsx(Cr,{align:"center",children:"Failed"}):r.status===2?je.jsx(Jr,{textAlign:"center",children:je.jsx(tE,{})}):null})},xC=e=>je.jsxs(wy,{severity:e.data.severity,children:[je.jsx(by,{children:e.data.title}),e.data.text]}),wC=()=>je.jsx("div",{children:"Not implemented"}),qY=e=>e.type??"graph",nT=(e,t,r)=>{switch(qY(t)){case"graph":{const i=()=>e.getAdditionGraphData(t.id),c=o=>je.jsx(Pd,{...o,widgetSize:r});return je.jsx(H0,{func:i,children:c})}case"widget":{const i=()=>e.getAdditionWidgetData(t.id),c=o=>Tc(t.id,o);return je.jsx(H0,{func:i,children:c})}default:return je.jsx(wC,{})}},A1=e=>je.jsx(bC.Consumer,{children:t=>je.jsxs(Jr,{children:[e.details.parts.length>1?je.jsx(O1,{tabs:e.details.parts.map(r=>({title:r.title,tab:nT(t,r,e.widgetSize)}))}):nT(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?je.jsx(je.Fragment,{}):e.details.insights.map(r=>je.jsx(xC,{data:r},r.text+r.title+r.severity))]})}),WY=e=>je.jsx(bC.Consumer,{children:t=>je.jsx(H0,{func:()=>t.getAdditionGraphData(e.graphId),children:r=>je.jsx(Pd,{...r,widgetSize:e.widgetSize})})});var V0={exports:{}},Y0={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;function r(i){var c={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(c[o]=0);return c}e.exports=t.default})(Y0,Y0.exports);var P1=Y0.exports,G0={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;function r(i){var c={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(c[o]=typeof i[o]=="number"?i[o]:i[o].val);return c}e.exports=t.default})(G0,G0.exports);var th=G0.exports,X0={exports:{}};(function(e,t){t.__esModule=!0,t.default=i;var r=[0,0];function i(c,o,a,n,l,f,s){var u=-l*(o-n),d=-f*a,h=u+d,p=a+h*c,g=o+p*c;return Math.abs(p)"u"?Sa:window,Qc=["moz","webkit"],yl="AnimationFrame",Pl=Mi["request"+yl],$u=Mi["cancel"+yl]||Mi["cancelRequest"+yl];for(var eu=0;!Pl&&euk*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[m])return-1;if(h>l[m]&&ya[m])return 1;if(p>l[m]&&gM*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(){!rv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fG?(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(){!rv||!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=cG.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}(),kC=function(e,t){for(var r=0,i=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Dl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new xG(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 Dl(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 wG(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}(),SC=typeof WeakMap<"u"?new WeakMap:new TC,CC=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=dG.getInstance(),i=new _G(t,r,this);SC.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){CC.prototype[e]=function(){var t;return(t=SC.get(this))[e].apply(t,arguments)}});var TG=function(){return typeof Yf.ResizeObserver<"u"?Yf.ResizeObserver:CC}(),kG=["client","offset","scroll","bounds","margin"];function iT(e){var t=[];return kG.forEach(function(r){e[r]&&t.push(r)}),t}function oT(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 MG(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){nE(o,c);function o(){for(var n,l=arguments.length,f=new Array(l),s=0;s-1}var iX=aX,oX=oh;function lX(e,t){var r=this.__data__,i=oX(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}var sX=lX,uX=HG,cX=QG,fX=nX,dX=iX,hX=sX;function Yl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=bJ}var W1=xJ,wJ=sh,_J=W1;function TJ(e){return e!=null&&_J(e.length)&&!wJ(e)}var Jl=TJ,kJ=Jl,MJ=Na;function SJ(e){return MJ(e)&&kJ(e)}var zC=SJ,Kf={exports:{}};function CJ(){return!1}var OJ=CJ;Kf.exports;(function(e,t){var r=Oa,i=OJ,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})(Kf,Kf.exports);var gh=Kf.exports,AJ=Ii,PJ=z1,DJ=Na,EJ="[object Object]",RJ=Function.prototype,LJ=Object.prototype,qC=RJ.toString,IJ=LJ.hasOwnProperty,FJ=qC.call(Object);function NJ(e){if(!DJ(e)||AJ(e)!=EJ)return!1;var t=PJ(e);if(t===null)return!0;var r=IJ.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&qC.call(r)==FJ}var U1=NJ;const Wu=ir(U1);var jJ=Ii,$J=W1,BJ=Na,zJ="[object Arguments]",qJ="[object Array]",WJ="[object Boolean]",UJ="[object Date]",HJ="[object Error]",VJ="[object Function]",YJ="[object Map]",GJ="[object Number]",XJ="[object Object]",ZJ="[object RegExp]",KJ="[object Set]",JJ="[object String]",QJ="[object WeakMap]",eQ="[object ArrayBuffer]",tQ="[object DataView]",nQ="[object Float32Array]",rQ="[object Float64Array]",aQ="[object Int8Array]",iQ="[object Int16Array]",oQ="[object Int32Array]",lQ="[object Uint8Array]",sQ="[object Uint8ClampedArray]",uQ="[object Uint16Array]",cQ="[object Uint32Array]",xr={};xr[nQ]=xr[rQ]=xr[aQ]=xr[iQ]=xr[oQ]=xr[lQ]=xr[sQ]=xr[uQ]=xr[cQ]=!0;xr[zJ]=xr[qJ]=xr[eQ]=xr[WJ]=xr[tQ]=xr[UJ]=xr[HJ]=xr[VJ]=xr[YJ]=xr[GJ]=xr[XJ]=xr[ZJ]=xr[KJ]=xr[JJ]=xr[QJ]=!1;function fQ(e){return BJ(e)&&$J(e.length)&&!!xr[jJ(e)]}var dQ=fQ;function hQ(e){return function(t){return e(t)}}var Ql=hQ,Jf={exports:{}};Jf.exports;(function(e,t){var r=AC,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})(Jf,Jf.exports);var mh=Jf.exports,pQ=dQ,gQ=Ql,xT=mh,wT=xT&&xT.isTypedArray,mQ=wT?gQ(wT):pQ,H1=mQ;function vQ(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var WC=vQ,yQ=$1,bQ=cc,xQ=Object.prototype,wQ=xQ.hasOwnProperty;function _Q(e,t,r){var i=e[t];(!(wQ.call(e,t)&&bQ(i,r))||r===void 0&&!(t in e))&&yQ(e,t,r)}var V1=_Q,TQ=V1,kQ=$1;function MQ(e,t,r,i){var c=!r;r||(r={});for(var o=-1,a=t.length;++o-1&&e%1==0&&e0){if(++t>=Lee)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var YC=Nee,jee=Ree,$ee=YC,Bee=$ee(jee),G1=Bee,zee=Yo,qee=VC,Wee=G1;function Uee(e,t){return Wee(qee(e,t,zee),e+"")}var vh=Uee,Hee=cc,Vee=Jl,Yee=fc,Gee=Ya;function Xee(e,t,r){if(!Gee(r))return!1;var i=typeof t;return(i=="number"?Vee(r)&&Yee(t,r.length):i=="string"&&t in r)?Hee(r[t],e):!1}var X1=Xee,Zee=vh,Kee=X1;function Jee(e){return Zee(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&&Kee(r[0],r[1],a)&&(o=c<3?void 0:o,c=1),t=Object(t);++it?1:e>=t?0:NaN}function J1(e){let t=e,r=e;e.length===1&&(t=(a,n)=>e(a)-n,r=une(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 une(e){return(t,r)=>QC(e(t),r)}function cne(e){return e===null?NaN:+e}const fne=J1(QC),dne=fne.right;J1(cne).center;var av=Math.sqrt(50),iv=Math.sqrt(10),ov=Math.sqrt(2);function lv(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>=av?10:o>=iv?5:o>=ov?2:1)*Math.pow(10,c):-Math.pow(10,-c)/(o>=av?10:o>=iv?5:o>=ov?2:1)}function sv(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>=av?c*=10:o>=iv?c*=5:o>=ov&&(c*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?tf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?tf(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=mne.exec(e))?new Ra(t[1],t[2],t[3],1):(t=vne.exec(e))?new Ra(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=yne.exec(e))?tf(t[1],t[2],t[3],t[4]):(t=bne.exec(e))?tf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xne.exec(e))?$T(t[1],t[2]/100,t[3]/100,1):(t=wne.exec(e))?$T(t[1],t[2]/100,t[3]/100,t[4]):RT.hasOwnProperty(e)?FT(RT[e]):e==="transparent"?new Ra(NaN,NaN,NaN,0):null}function FT(e){return new Ra(e>>16&255,e>>8&255,e&255,1)}function tf(e,t,r,i){return i<=0&&(e=t=r=NaN),new Ra(e,t,r,i)}function Tne(e){return e instanceof pc||(e=Po(e)),e?(e=e.rgb(),new Ra(e.r,e.g,e.b,e.opacity)):new Ra}function Do(e,t,r,i){return arguments.length===1?Tne(e):new Ra(e,t,r,i??1)}function Ra(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}eb(Ra,Do,n8(pc,{brighter:function(e){return e=e==null?Qf:Math.pow(Qf,e),new Ra(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Uu:Math.pow(Uu,e),new Ra(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:NT,formatHex:NT,formatRgb:jT,toString:jT}));function NT(){return"#"+zm(this.r)+zm(this.g)+zm(this.b)}function jT(){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 zm(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function $T(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new fi(e,t,r,i)}function r8(e){if(e instanceof fi)return new fi(e.h,e.s,e.l,e.opacity);if(e instanceof pc||(e=Po(e)),!e)return new fi;if(e instanceof fi)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 fi(a,n,l,e.opacity)}function kne(e,t,r,i){return arguments.length===1?r8(e):new fi(e,t,r,i??1)}function fi(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}eb(fi,kne,n8(pc,{brighter:function(e){return e=e==null?Qf:Math.pow(Qf,e),new fi(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Uu:Math.pow(Uu,e),new fi(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 Ra(qm(e>=240?e-240:e+120,c,i),qm(e,c,i),qm(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 qm(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 tb=e=>()=>e;function Mne(e,t){return function(r){return e+r*t}}function Sne(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 Cne(e){return(e=+e)==1?a8:function(t,r){return r-t?Sne(t,r,e):tb(isNaN(t)?r:t)}}function a8(e,t){var r=t-e;return r?Mne(e,r):tb(isNaN(e)?t:e)}const BT=function e(t){var r=Cne(t);function i(c,o){var a=r((c=Do(c)).r,(o=Do(o)).r),n=r(c.g,o.g),l=r(c.b,o.b),f=a8(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 One(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:ed(i,c)})),r=Wm.lastIndex;return rt&&(r=e,e=t,t=r),function(i){return Math.max(e,Math.min(t,i))}}function Bne(e,t,r){var i=e[0],c=e[1],o=t[0],a=t[1];return c2?zne:Bne,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),ed)))(d)))},u.domain=function(d){return arguments.length?(e=Array.from(d,jne),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=Fne,s()},u.clamp=function(d){return arguments.length?(a=d?!0:pl,s()):a!==pl},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 o8(){return i8()(pl,pl)}function qne(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function td(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 El(e){return e=td(Math.abs(e)),e?e[1]:NaN}function Wne(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 Une(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Hne=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nd(e){if(!(t=Hne.exec(e)))throw new Error("invalid format: "+e);var t;return new ab({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]})}nd.prototype=ab.prototype;function ab(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+""}ab.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 Vne(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 l8;function Yne(e,t){var r=td(e,t);if(!r)return e+"";var i=r[0],c=r[1],o=c-(l8=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")+td(e,Math.max(0,t+o-1))[0]}function qT(e,t){var r=td(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 WT={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:qne,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 qT(e*100,t)},r:qT,s:Yne,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function UT(e){return e}var HT=Array.prototype.map,VT=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Gne(e){var t=e.grouping===void 0||e.thousands===void 0?UT:Wne(HT.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?UT:Une(HT.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=nd(u);var d=u.fill,h=u.align,p=u.sign,g=u.symbol,y=u.zero,v=u.width,m=u.comma,b=u.precision,x=u.trim,_=u.type;_==="n"?(m=!0,_="g"):WT[_]||(b===void 0&&(b=12),x=!0,_="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var w=g==="$"?r:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",k=g==="$"?i:/[%p]/.test(_)?a:"",T=WT[_],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=Vne(C)),A&&+C==0&&p!=="+"&&(A=!1),P=(A?p==="("?p:n:p==="-"||p==="("?"":p)+P,D=(_==="s"?VT[8+l8/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}}}m&&!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=nd(u),u.type="f",u)),p=Math.max(-8,Math.min(8,Math.floor(El(d)/3)))*3,g=Math.pow(10,-p),y=VT[8+p/3];return function(v){return h(g*v)+y}}return{format:f,formatPrefix:s}}var nf,is,s8;Xne({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Xne(e){return nf=Gne(e),is=nf.format,s8=nf.formatPrefix,nf}function Zne(e){return Math.max(0,-El(Math.abs(e)))}function Kne(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(El(t)/3)))*3-El(Math.abs(e)))}function Jne(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,El(t)-El(e))+1}function Qne(e,t,r,i){var c=sv(e,t,r),o;switch(i=nd(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(o=Kne(c,a))&&(i.precision=o),s8(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=Jne(c,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=Zne(c))&&(i.precision=o-(i.type==="%")*2);break}}return is(i)}function ere(e){var t=e.domain;return e.ticks=function(r){var i=t();return lv(i[0],i[i.length-1],r??10)},e.tickFormat=function(r,i){var c=t();return Qne(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=e8(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 Eo(){var e=o8();return e.copy=function(){return rb(e,Eo())},as.apply(e,arguments),ere(e)}function u8(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(g=1,p=o(d);gs)break;m.push(y)}}else for(;d<=h;++d)for(g=i-1,p=o(d);g>=1;--g)if(y=p*g,!(ys)break;m.push(y)}m.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 Um.setTime(+o),Hm.setTime(+a),e(Um),e(Hm),Math.floor(r(Um,Hm))},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 rd=ta(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});rd.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ta(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):rd};rd.range;const Ti=1e3,Ua=Ti*60,ki=Ua*60,Ro=ki*24,ib=Ro*7,ZT=Ro*30,Vm=Ro*365;var Mo=ta(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Ti)},function(e,t){return(t-e)/Ti},function(e){return e.getUTCSeconds()});Mo.range;var ob=ta(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ti)},function(e,t){e.setTime(+e+t*Ua)},function(e,t){return(t-e)/Ua},function(e){return e.getMinutes()});ob.range;var lb=ta(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ti-e.getMinutes()*Ua)},function(e,t){e.setTime(+e+t*ki)},function(e,t){return(t-e)/ki},function(e){return e.getHours()});lb.range;var gc=ta(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ua)/Ro,e=>e.getDate()-1);gc.range;function Go(e){return ta(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())*Ua)/ib})}var bh=Go(0),ad=Go(1),lre=Go(2),sre=Go(3),Rl=Go(4),ure=Go(5),cre=Go(6);bh.range;ad.range;lre.range;sre.range;Rl.range;ure.range;cre.range;var sb=ta(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()});sb.range;var Oi=ta(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()});Oi.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ta(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)})};Oi.range;var ub=ta(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ua)},function(e,t){return(t-e)/Ua},function(e){return e.getUTCMinutes()});ub.range;var cb=ta(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ki)},function(e,t){return(t-e)/ki},function(e){return e.getUTCHours()});cb.range;var mc=ta(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Ro},function(e){return e.getUTCDate()-1});mc.range;function Xo(e){return ta(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)/ib})}var xh=Xo(0),id=Xo(1),fre=Xo(2),dre=Xo(3),Ll=Xo(4),hre=Xo(5),pre=Xo(6);xh.range;id.range;fre.range;dre.range;Ll.range;hre.range;pre.range;var fb=ta(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()});fb.range;var Ai=ta(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()});Ai.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ta(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)})};Ai.range;function f8(e,t,r,i,c,o){const a=[[Mo,1,Ti],[Mo,5,5*Ti],[Mo,15,15*Ti],[Mo,30,30*Ti],[o,1,Ua],[o,5,5*Ua],[o,15,15*Ua],[o,30,30*Ua],[c,1,ki],[c,3,3*ki],[c,6,6*ki],[c,12,12*ki],[i,1,Ro],[i,2,2*Ro],[r,1,ib],[t,1,ZT],[t,3,3*ZT],[e,1,Vm]];function n(f,s,u){const d=sy).right(a,d);if(h===a.length)return e.every(sv(f/Vm,s/Vm,u));if(h===0)return rd.every(Math.max(sv(f,s,u),1));const[p,g]=a[d/a[h-1][2]53)return null;"w"in U||(U.w=1),"Z"in U?(Y=Gm(nu(U.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?id.ceil(Y):id(Y),Y=mc.offset(Y,(U.V-1)*7),U.y=Y.getUTCFullYear(),U.m=Y.getUTCMonth(),U.d=Y.getUTCDate()+(U.w+6)%7):(Y=Ym(nu(U.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?ad.ceil(Y):ad(Y),Y=gc.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?Gm(nu(U.y,0,1)).getUTCDay():Ym(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,Gm(U)):Ym(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 KT?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=m.get(U[0].toLowerCase()),ee+U[0].length):-1}function D(V,te,ee){var U=g.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 KT={"-":"",_:" ",0:"0"},na=/^\s*\d+/,xre=/^%/,wre=/[\\^$*+?|[\]().{}]/g;function nr(e,t,r){var i=e<0?"-":"",c=(i?-e:e)+"",o=c.length;return i+(o[t.toLowerCase(),r]))}function Tre(e,t,r){var i=na.exec(t.slice(r,r+1));return i?(e.w=+i[0],r+i[0].length):-1}function kre(e,t,r){var i=na.exec(t.slice(r,r+1));return i?(e.u=+i[0],r+i[0].length):-1}function Mre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.U=+i[0],r+i[0].length):-1}function Sre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.V=+i[0],r+i[0].length):-1}function Cre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.W=+i[0],r+i[0].length):-1}function JT(e,t,r){var i=na.exec(t.slice(r,r+4));return i?(e.y=+i[0],r+i[0].length):-1}function QT(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function Ore(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 Are(e,t,r){var i=na.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function Pre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function ek(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function Dre(e,t,r){var i=na.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function tk(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function Ere(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function Rre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function Lre(e,t,r){var i=na.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function Ire(e,t,r){var i=na.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function Fre(e,t,r){var i=xre.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function Nre(e,t,r){var i=na.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function jre(e,t,r){var i=na.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function nk(e,t){return nr(e.getDate(),t,2)}function $re(e,t){return nr(e.getHours(),t,2)}function Bre(e,t){return nr(e.getHours()%12||12,t,2)}function zre(e,t){return nr(1+gc.count(Oi(e),e),t,3)}function d8(e,t){return nr(e.getMilliseconds(),t,3)}function qre(e,t){return d8(e,t)+"000"}function Wre(e,t){return nr(e.getMonth()+1,t,2)}function Ure(e,t){return nr(e.getMinutes(),t,2)}function Hre(e,t){return nr(e.getSeconds(),t,2)}function Vre(e){var t=e.getDay();return t===0?7:t}function Yre(e,t){return nr(bh.count(Oi(e)-1,e),t,2)}function h8(e){var t=e.getDay();return t>=4||t===0?Rl(e):Rl.ceil(e)}function Gre(e,t){return e=h8(e),nr(Rl.count(Oi(e),e)+(Oi(e).getDay()===4),t,2)}function Xre(e){return e.getDay()}function Zre(e,t){return nr(ad.count(Oi(e)-1,e),t,2)}function Kre(e,t){return nr(e.getFullYear()%100,t,2)}function Jre(e,t){return e=h8(e),nr(e.getFullYear()%100,t,2)}function Qre(e,t){return nr(e.getFullYear()%1e4,t,4)}function eae(e,t){var r=e.getDay();return e=r>=4||r===0?Rl(e):Rl.ceil(e),nr(e.getFullYear()%1e4,t,4)}function tae(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+nr(t/60|0,"0",2)+nr(t%60,"0",2)}function rk(e,t){return nr(e.getUTCDate(),t,2)}function nae(e,t){return nr(e.getUTCHours(),t,2)}function rae(e,t){return nr(e.getUTCHours()%12||12,t,2)}function aae(e,t){return nr(1+mc.count(Ai(e),e),t,3)}function p8(e,t){return nr(e.getUTCMilliseconds(),t,3)}function iae(e,t){return p8(e,t)+"000"}function oae(e,t){return nr(e.getUTCMonth()+1,t,2)}function lae(e,t){return nr(e.getUTCMinutes(),t,2)}function sae(e,t){return nr(e.getUTCSeconds(),t,2)}function uae(e){var t=e.getUTCDay();return t===0?7:t}function cae(e,t){return nr(xh.count(Ai(e)-1,e),t,2)}function g8(e){var t=e.getUTCDay();return t>=4||t===0?Ll(e):Ll.ceil(e)}function fae(e,t){return e=g8(e),nr(Ll.count(Ai(e),e)+(Ai(e).getUTCDay()===4),t,2)}function dae(e){return e.getUTCDay()}function hae(e,t){return nr(id.count(Ai(e)-1,e),t,2)}function pae(e,t){return nr(e.getUTCFullYear()%100,t,2)}function gae(e,t){return e=g8(e),nr(e.getUTCFullYear()%100,t,2)}function mae(e,t){return nr(e.getUTCFullYear()%1e4,t,4)}function vae(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ll(e):Ll.ceil(e),nr(e.getUTCFullYear()%1e4,t,4)}function yae(){return"+0000"}function ak(){return"%"}function ik(e){return+e}function ok(e){return Math.floor(+e/1e3)}var sl,m8,v8;bae({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 bae(e){return sl=bre(e),m8=sl.format,sl.parse,v8=sl.utcFormat,sl.utcParse,sl}function xae(e){return new Date(e)}function wae(e){return e instanceof Date?+e:+new Date(+e)}function db(e,t,r,i,c,o,a,n,l,f){var s=o8(),u=s.invert,d=s.domain,h=f(".%L"),p=f(":%S"),g=f("%I:%M"),y=f("%I %p"),v=f("%a %d"),m=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:fv(i,c)})),r=Xm.lastIndex;return r-1}var vb=iie;function oie(e,t,r){for(var i=-1,c=e==null?0:e.length;++i=pie&&(o=hie,a=!1,t=new sie(t));e:for(;++cvo)if(!(Math.abs(s*n-l*f)>vo)||!c)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var d=r-o,h=i-a,p=n*n+l*l,g=d*d+h*h,y=Math.sqrt(p),v=Math.sqrt(u),m=c*Math.tan((hv-Math.acos((p+u-g)/(2*y*v)))/2),b=m/v,x=m/y;Math.abs(b-1)>vo&&(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)>vo||Math.abs(this._y1-f)>vo)&&(this._+="L"+l+","+f),r&&(u<0&&(u=u%pv+pv),u>_ie?this._+="A"+r+","+r+",0,1,"+s+","+(e-a)+","+(t-n)+"A"+r+","+r+",0,1,"+s+","+(this._x1=l)+","+(this._y1=f):u>vo&&(this._+="A"+r+","+r+",0,"+ +(u>=hv)+","+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 ua(e){return function(){return e}}var sk=1e-12;function A8(e){this._context=e}A8.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 xb(e){return new A8(e)}function P8(e){return e[0]}function D8(e){return e[1]}function E8(){var e=P8,t=D8,r=ua(!0),i=null,c=xb,o=null;function a(n){var l,f=n.length,s,u=!1,d;for(i==null&&(o=c(d=bb())),l=0;l<=f;++l)!(l=d;--h)n.point(m[h],b[h]);n.lineEnd(),n.areaEnd()}y&&(m[u]=+e(g,u,s),b[u]=+r(g,u,s),n.point(t?+t(g,u,s):m[u],i?+i(g,u,s):b[u]))}if(v)return n=null,v+""||null}function f(){return E8().defined(c).curve(a).context(o)}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:ua(+s),t=null,l):e},l.x0=function(s){return arguments.length?(e=typeof s=="function"?s:ua(+s),l):e},l.x1=function(s){return arguments.length?(t=s==null?null:typeof s=="function"?s:ua(+s),l):t},l.y=function(s){return arguments.length?(r=typeof s=="function"?s:ua(+s),i=null,l):r},l.y0=function(s){return arguments.length?(r=typeof s=="function"?s:ua(+s),l):r},l.y1=function(s){return arguments.length?(i=s==null?null:typeof s=="function"?s:ua(+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:ua(!!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 uk=Array.prototype.slice;function eo(){}function ld(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 Gh(e){this._context=e}Gh.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:ld(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:ld(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kie(e){return new Gh(e)}function R8(e){this._context=e}R8.prototype={areaStart:eo,areaEnd:eo,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:ld(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Mie(e){return new R8(e)}function L8(e){this._context=e}L8.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:ld(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Sie(e){return new L8(e)}function I8(e,t){this._basis=new Gh(e),this._beta=t}I8.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 Cie=function e(t){function r(i){return t===1?new Gh(i):new I8(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function sd(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 wb(e,t){this._context=e,this._k=(1-t)/6}wb.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:sd(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:sd(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 wb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function _b(e,t){this._context=e,this._k=(1-t)/6}_b.prototype={areaStart:eo,areaEnd:eo,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:sd(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 Aie=function e(t){function r(i){return new _b(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Tb(e,t){this._context=e,this._k=(1-t)/6}Tb.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:sd(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 Pie=function e(t){function r(i){return new Tb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function kb(e,t,r){var i=e._x1,c=e._y1,o=e._x2,a=e._y2;if(e._l01_a>sk){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>sk){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 F8(e,t){this._context=e,this._alpha=t}F8.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:kb(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 F8(i,t):new wb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function N8(e,t){this._context=e,this._alpha=t}N8.prototype={areaStart:eo,areaEnd:eo,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:kb(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 Eie=function e(t){function r(i){return t?new N8(i,t):new _b(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function j8(e,t){this._context=e,this._alpha=t}j8.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:kb(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 Rie=function e(t){function r(i){return t?new j8(i,t):new Tb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function $8(e){this._context=e}$8.prototype={areaStart:eo,areaEnd:eo,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 Lie(e){return new $8(e)}function ck(e){return e<0?-1:1}function fk(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(ck(o)+ck(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(n))||0}function dk(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Zm(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 ud(e){this._context=e}ud.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:Zm(this,this._t0,dk(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,Zm(this,dk(this,r=fk(this,e,t)),r);break;default:Zm(this,this._t0,r=fk(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function B8(e){this._context=new z8(e)}(B8.prototype=Object.create(ud.prototype)).point=function(e,t){ud.prototype.point.call(this,t,e)};function z8(e){this._context=e}z8.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 Iie(e){return new ud(e)}function Fie(e){return new B8(e)}function q8(e){this._context=e}q8.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=hk(e),c=hk(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 jie(e){return new Xh(e,.5)}function $ie(e){return new Xh(e,0)}function Bie(e){return new Xh(e,1)}function Il(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 zie(e,t){return e[t]}function W8(){var e=ua([]),t=Fl,r=Il,i=zie;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 Wie(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 U8(e){var t=e.map(H8);return Fl(e).sort(function(r,i){return t[r]-t[i]})}function H8(e){for(var t=0,r=-1,i=e.length,c;++rm&&(m=f),w=y*y*_,b=Math.max(m/w,w/v),b>x){y-=f;break}x=b}a.push(l={value:y,dice:h1?i:1)},r}(V8);function Kie(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 m=o[u];m.x0=p,m.y0=g,m.x1=y,m.y1=v;return}for(var b=f[u],x=h/2+b,_=u+1,w=d-1;_>>1;f[k]v-g){var S=(p*M+y*T)/h;s(u,_,T,p,g,S,v),s(_,d,M,S,g,y,v)}else{var C=(g*M+v*T)/h;s(u,_,T,p,g,y,C),s(_,d,M,p,C,y,v)}}}function Jie(e,t,r,i,c){(e.depth&1?Kh:Zh)(e,t,r,i,c)}const Qie=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,g=i.value;++d1?i:1)},r}(V8);var Km=new Date,Jm=new Date;function ra(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 Km.setTime(+o),Jm.setTime(+a),e(Km),e(Jm),Math.floor(r(Km,Jm))},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 Vu=ra(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Vu.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ra(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):Vu};Vu.range;var cd=1e3,Lo=6e4,fd=36e5,G8=864e5,X8=6048e5,mv=ra(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*cd)},function(e,t){return(t-e)/cd},function(e){return e.getUTCSeconds()});mv.range;var Z8=ra(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cd)},function(e,t){e.setTime(+e+t*Lo)},function(e,t){return(t-e)/Lo},function(e){return e.getMinutes()});Z8.range;var K8=ra(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cd-e.getMinutes()*Lo)},function(e,t){e.setTime(+e+t*fd)},function(e,t){return(t-e)/fd},function(e){return e.getHours()});K8.range;var Jh=ra(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())*Lo)/G8},function(e){return e.getDate()-1});Jh.range;function Zo(e){return ra(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())*Lo)/X8})}var dd=Zo(0),Yu=Zo(1),J8=Zo(2),Q8=Zo(3),Io=Zo(4),e7=Zo(5),t7=Zo(6);dd.range;Yu.range;J8.range;Q8.range;Io.range;e7.range;t7.range;var n7=ra(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()});n7.range;var to=ra(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()});to.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ra(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)})};to.range;var r7=ra(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Lo)},function(e,t){return(t-e)/Lo},function(e){return e.getUTCMinutes()});r7.range;var a7=ra(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*fd)},function(e,t){return(t-e)/fd},function(e){return e.getUTCHours()});a7.range;var Qh=ra(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/G8},function(e){return e.getUTCDate()-1});Qh.range;function Ko(e){return ra(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)/X8})}var hd=Ko(0),Gu=Ko(1),i7=Ko(2),o7=Ko(3),Fo=Ko(4),l7=Ko(5),s7=Ko(6);hd.range;Gu.range;i7.range;o7.range;Fo.range;l7.range;s7.range;var u7=ra(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()});u7.range;var no=ra(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()});no.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ra(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)})};no.range;function Qm(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 e0(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 iu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function eoe(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=ou(c),s=lu(c),u=ou(o),d=lu(o),h=ou(a),p=lu(a),g=ou(n),y=lu(n),v=ou(l),m=lu(l),b={a:A,A:z,b:B,B:$,c:null,d:bk,e:bk,f:Toe,g:Roe,G:Ioe,H:xoe,I:woe,j:_oe,L:c7,m:koe,M:Moe,p:j,q:N,Q:_k,s:Tk,S:Soe,u:Coe,U:Ooe,V:Aoe,w:Poe,W:Doe,x:null,X:null,y:Eoe,Y:Loe,Z:Foe,"%":wk},x={a:E,A:W,b:G,B:L,c:null,d:xk,e:xk,f:Boe,g:Zoe,G:Joe,H:Noe,I:joe,j:$oe,L:d7,m:zoe,M:qoe,p:q,q:H,Q:_k,s:Tk,S:Woe,u:Uoe,U:Hoe,V:Voe,w:Yoe,W:Goe,x:null,X:null,y:Xoe,Y:Koe,Z:Qoe,"%":wk},_={a:S,A:C,b:P,B:D,c:O,d:vk,e:vk,f:moe,g:mk,G:gk,H:yk,I:yk,j:doe,L:goe,m:foe,M:hoe,p:M,q:coe,Q:yoe,s:boe,S:poe,u:ioe,U:ooe,V:loe,w:aoe,W:soe,x:R,X:F,y:mk,Y:gk,Z:uoe,"%":voe};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=e0(iu(U.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?Gu.ceil(Y):Gu(Y),Y=Qh.offset(Y,(U.V-1)*7),U.y=Y.getUTCFullYear(),U.m=Y.getUTCMonth(),U.d=Y.getUTCDate()+(U.w+6)%7):(Y=Qm(iu(U.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?Yu.ceil(Y):Yu(Y),Y=Jh.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?e0(iu(U.y,0,1)).getUTCDay():Qm(iu(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,e0(U)):Qm(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 pk?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=m[U[0].toLowerCase()],ee+U[0].length):-1}function D(V,te,ee){var U=g.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 pk={"-":"",_:" ",0:"0"},aa=/^\s*\d+/,toe=/^%/,noe=/[\\^$*+?|[\]().{}]/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 uoe(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 coe(e,t,r){var i=aa.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function foe(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function vk(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function doe(e,t,r){var i=aa.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function yk(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function hoe(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function poe(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function goe(e,t,r){var i=aa.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function moe(e,t,r){var i=aa.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function voe(e,t,r){var i=toe.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function yoe(e,t,r){var i=aa.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function boe(e,t,r){var i=aa.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function bk(e,t){return rr(e.getDate(),t,2)}function xoe(e,t){return rr(e.getHours(),t,2)}function woe(e,t){return rr(e.getHours()%12||12,t,2)}function _oe(e,t){return rr(1+Jh.count(to(e),e),t,3)}function c7(e,t){return rr(e.getMilliseconds(),t,3)}function Toe(e,t){return c7(e,t)+"000"}function koe(e,t){return rr(e.getMonth()+1,t,2)}function Moe(e,t){return rr(e.getMinutes(),t,2)}function Soe(e,t){return rr(e.getSeconds(),t,2)}function Coe(e){var t=e.getDay();return t===0?7:t}function Ooe(e,t){return rr(dd.count(to(e)-1,e),t,2)}function f7(e){var t=e.getDay();return t>=4||t===0?Io(e):Io.ceil(e)}function Aoe(e,t){return e=f7(e),rr(Io.count(to(e),e)+(to(e).getDay()===4),t,2)}function Poe(e){return e.getDay()}function Doe(e,t){return rr(Yu.count(to(e)-1,e),t,2)}function Eoe(e,t){return rr(e.getFullYear()%100,t,2)}function Roe(e,t){return e=f7(e),rr(e.getFullYear()%100,t,2)}function Loe(e,t){return rr(e.getFullYear()%1e4,t,4)}function Ioe(e,t){var r=e.getDay();return e=r>=4||r===0?Io(e):Io.ceil(e),rr(e.getFullYear()%1e4,t,4)}function Foe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rr(t/60|0,"0",2)+rr(t%60,"0",2)}function xk(e,t){return rr(e.getUTCDate(),t,2)}function Noe(e,t){return rr(e.getUTCHours(),t,2)}function joe(e,t){return rr(e.getUTCHours()%12||12,t,2)}function $oe(e,t){return rr(1+Qh.count(no(e),e),t,3)}function d7(e,t){return rr(e.getUTCMilliseconds(),t,3)}function Boe(e,t){return d7(e,t)+"000"}function zoe(e,t){return rr(e.getUTCMonth()+1,t,2)}function qoe(e,t){return rr(e.getUTCMinutes(),t,2)}function Woe(e,t){return rr(e.getUTCSeconds(),t,2)}function Uoe(e){var t=e.getUTCDay();return t===0?7:t}function Hoe(e,t){return rr(hd.count(no(e)-1,e),t,2)}function h7(e){var t=e.getUTCDay();return t>=4||t===0?Fo(e):Fo.ceil(e)}function Voe(e,t){return e=h7(e),rr(Fo.count(no(e),e)+(no(e).getUTCDay()===4),t,2)}function Yoe(e){return e.getUTCDay()}function Goe(e,t){return rr(Gu.count(no(e)-1,e),t,2)}function Xoe(e,t){return rr(e.getUTCFullYear()%100,t,2)}function Zoe(e,t){return e=h7(e),rr(e.getUTCFullYear()%100,t,2)}function Koe(e,t){return rr(e.getUTCFullYear()%1e4,t,4)}function Joe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Fo(e):Fo.ceil(e),rr(e.getUTCFullYear()%1e4,t,4)}function Qoe(){return"+0000"}function wk(){return"%"}function _k(e){return+e}function Tk(e){return Math.floor(+e/1e3)}var ul,Sb,p7,g7;ele({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 ele(e){return ul=eoe(e),Sb=ul.format,p7=ul.parse,ul.utcFormat,g7=ul.utcParse,ul}var su={},uu={},kk;function tle(){if(kk)return uu;kk=1,uu.__esModule=!0,uu.default=void 0;var e=function(i){if(typeof i=="string")return i;if(i)return i.displayName||i.name||"Component"},t=e;return uu.default=t,uu}var Mk;function os(){if(Mk)return su;Mk=1;var e=Rn;su.__esModule=!0,su.default=void 0;var t=e(tle()),r=function(o,a){return a+"("+(0,t.default)(o)+")"},i=r;return su.default=i,su}var Fi={},cu={},Sk;function m7(){if(Sk)return cu;Sk=1,cu.__esModule=!0,cu.default=void 0;var e=function(i,c){return function(o){return o[i]=c,o}},t=e;return cu.default=t,cu}var nle=Rn;Fi.__esModule=!0;var Cb=Fi.default=void 0,rle=nle(m7()),ale=function(t){return(0,rle.default)("displayName",t)},ile=ale;Cb=Fi.default=ile;var fu={},Ck;function ole(){if(Ck)return fu;Ck=1;var e=Rn;fu.__esModule=!0,fu.default=void 0;var t=$e;e(Fi),e(os());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 fu.default=i,fu}var ep=Rn;ep(hr());ep(os());ep(Fi);ep(ole());function lle(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&hle?new ule:void 0;for(o.set(e,t),o.set(t,e);++u1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(yce,`{ -/* [wrapped with `+t+`] */ -`)}var xce=bce;function wce(e,t){for(var r=-1,i=e==null?0:e.length;++r1&&m.reverse(),s&&l0&&r(n)?t>1?X7(n,t-1,r,i,c):Zde(c,n):i||(c[c.length]=n)}return c}var Fb=X7,Jde=Fb;function Qde(e){var t=e==null?0:e.length;return t?Jde(e,1):[]}var ehe=Qde,the=ehe,nhe=VC,rhe=G1;function ahe(e){return rhe(nhe(e,void 0,the),e+"")}var Z7=ahe,ihe=Hde,ohe=Z7,lhe=ohe(function(e,t){return e==null?{}:ihe(e,t)}),she=lhe;const uhe=ir(she);var So=function(){};function No(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return $e.useMemo(function(){var c=Fhe({},Tv,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])},jhe=function(t){return $e.useMemo(function(){return Q7(J7,t)},[t])},$he=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?Sb(t.slice("5")):is(t):function(r){return r}},Xu=function(t){return $e.useMemo(function(){return $he(t)},[t])},jb=$e.createContext(),Bhe={},nO=function(t){var r=t.theme,i=r===void 0?Bhe:r,c=t.children,o=jhe(i);return et.createElement(jb.Provider,{value:o},c)};nO.propTypes={children:oe.node.isRequired,theme:oe.object};var Hr=function(){return $e.useContext(jb)};function mf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mf=function(r){return typeof r}:mf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mf(e)}function kv(){return kv=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Whe(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 Uhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hhe(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]=An(this.stepValues[f],this.newInters[f].config));return et.createElement(Ci,kv({},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(zhe({},s,u))})}}]),t}($e.PureComponent);xo(lp,"propTypes",{children:oe.func.isRequired,style:oe.func.isRequired});var rO=$e.createContext(),sp=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(rO.Provider,{value:a},r)};sp.propTypes={children:oe.node.isRequired,animate:oe.bool.isRequired,stiffness:oe.number.isRequired,damping:oe.number.isRequired};sp.defaultProps={animate:!0,stiffness:90,damping:15};var Aa=function(){return $e.useContext(rO)};function Zhe(e){for(var t=1;t0&&a>0;return et.createElement(Bu,{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);iO(cp,"propTypes",{children:oe.func.isRequired});var oO=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})}))};oO.propTypes={id:oe.string.isRequired,colors:oe.arrayOf(oe.shape({offset:oe.number.isRequired,color:oe.string.isRequired})).isRequired};var lO={linearGradient:oO},fp=$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}))});fp.displayName="PatternDots";fp.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};fp.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var Av=function(t){return t*Math.PI/180},upe=function(t){return 180*t/Math.PI},cpe=function(t,r){return{x:Math.cos(t)*r,y:Math.sin(t)*r}},fpe=function(t){var r=t%360;return r<0&&(r+=360),r},dpe={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"}}},dp=$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=` - M 0 0 L `.concat(f,` 0 - M 0 `).concat(s," L ").concat(f," ").concat(s,` - `):n===90?u=` - M 0 0 L 0 `.concat(s,` - M `).concat(f," 0 L ").concat(f," ").concat(s,` - `):(f=Math.abs(l/Math.sin(Av(n))),s=l/Math.sin(Av(90-n)),n>0?u=` - 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=` - 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"}))});dp.displayName="PatternLines";dp.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};dp.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var hp=$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}))});hp.displayName="PatternSquares";hp.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};hp.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var sO={patternDots:fp,patternLines:dp,patternSquares:hp};function hpe(e,t){if(e==null)return{};var r=ppe(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 ppe(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 uO(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 Jo(np(xM({},r,oe.object)),ha([r],function(o){return xM({},c,Q7(J7,o[r]))}))};function yf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yf=function(r){return typeof r}:yf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},yf(e)}function Tpe(e,t){if(e==null)return{};var r=kpe(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 kpe(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 Mpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Spe(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=Rpe(t),r.forEach(function(d){for(var h=function(v){var m=i[v],b=m.id,x=m.match;if($pe(x,d,o)){var _=t.find(function(O){var R=O.id;return R===b});if(_){if(jpe.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var w=Ki(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),To(d,f,"url(#".concat(M,")")),u[M]||(s.push(u0({},_,{id:M,background:k,color:T})),u[M]=1)}else To(d,f,"url(#".concat(b,")"));else if(Npe.includes(_.type)){var S=_.colors.map(function(O){var R=O.color;return R});if(S.includes("inherit")){var C=Ki(d,n),P=b,D=u0({},_,{colors:_.colors.map(function(O,R){return O.color!=="inherit"?O:(P="".concat(P,".").concat(R,".").concat(C),u0({},O,{color:O.color==="inherit"?C:O.color}))})});D.id=P,To(d,f,"url(#".concat(P,")")),u[P]||(s.push(D),u[P]=1)}else To(d,f,"url(#".concat(b,")"))}}return"break"}},p=0;p0?(v=d.align.right,m=d.baseline.center):(c==="after"&&l>0||c==="before"&&l<0)&&(v=d.align.left,m=d.baseline.center)):(y=function(_){return{x:0,y:h(_)}},p.lineX=a*(c==="after"?1:-1),g.textX=(a+n)*(c==="after"?1:-1),c==="after"?v=d.align.left:v=d.align.right);var b=u.map(function(x){return Hpe({key:x,value:x},y(x),p,g)});return{ticks:b,textAlign:v,textBaseline:m}},_O=function(t,r){if(!t||typeof t=="function")return t;if(r.type==="time"){var i=Sb(t);return function(c){return i(new Date(c))}}return is(t)},Lv=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=gp(a)?a:void 0,f=n||xO(c,l),s=c.bandwidth?yO(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},TO={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},pa=oe.shape(TO);function Iv(){return Iv=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=m!==void 0?m(A.value):A.value;t.save(),t.translate(A.x+A.textX,A.y+A.textY),t.rotate(TM(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(TM(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()},ige=["top","right","bottom","left"],Gb=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};ige.forEach(function(h){var p=d[h];if(!p)return null;var g=h==="top"||h==="bottom",y=h==="top"||h==="left"?"before":"after",v=g?i:c,m=_O(p.format,v);age(t,nge({},p,{axis:g?"x":"y",x:h==="right"?o:0,y:h==="bottom"?a:0,scale:v,format:m,length:g?o:a,ticksPosition:y,theme:u}))})},Nl=function(t,r){var i=r.width,c=r.height,o=r.scale,a=r.axis,n=r.values,l=Lv({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()})},mp="row",vp="column",Xb="top",Zb="top-right",Kb="right",Jb="bottom-right",Qb="bottom",ex="bottom-left",tx="left",CO="top-left",nx="center",yp="left-to-right",bp="right-to-left",xp="top-to-bottom",wp="bottom-to-top";function oge(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 Tf({},G,L.style)},{});T(W)}m!==void 0&&m(a,N)},[m,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 Tf({},W,G.style)},{});T(E)}b!==void 0&&b(a,event)},[b,a,x]),D=AO({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,m,b].some(function(N){return N!==void 0}),j;return qu(d)?j=d:j=zge[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:g,borderColor:k.symbolBorderColor||y}),et.createElement("text",{textAnchor:z,style:Tf({},M.legends.text,{fill:k.itemTextColor||f,dominantBaseline:B,pointerEvents:"none",userSelect:"none"}),x:F,y:A},a.label))};Yi.displayName="LegendSvgItem";Yi.propTypes=Tf({data:kp.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},_p,Tp);Yi.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 qge(e){for(var t=1;tt}var nme=tme,rme=LO,ame=nme,ime=Yo;function ome(e){return e&&e.length?rme(e,ime,ame):void 0}var lme=ome;const FO=ir(lme);var sme=Math.ceil,ume=Math.max;function cme(e,t,r,i){for(var c=-1,o=ume(sme((t-e)/(r||1)),0),a=Array(o);o--;)a[i?o:++c]=e,e+=r;return a}var fme=cme,dme=fme,hme=X1,f0=V7;function pme(e){return function(t,r,i){return i&&typeof i!="number"&&hme(t,r,i)&&(r=i=void 0),t=f0(t),r===void 0?(r=t,t=0):r=f0(r),i=i===void 0?t=C0e){var f=t?null:M0e(e);if(f)return S0e(f);a=!1,c=k0e,l=new w0e}else l=t?[]:n;e:for(;++i-1}function hve(e,t){var r=this.__data__,i=Ap(r,e);return i<0?r.push([e,t]):r[i][1]=t,this}us.prototype.clear=uve;us.prototype.delete=cve;us.prototype.get=fve;us.prototype.has=dve;us.prototype.set=hve;function el(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=ko(kf[t.scheme][t.size||11]),f=function(h){return l(i(h))};return f.scale=l,f}if(Qve(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=ko(kf[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}},nA=function(t,r){return $e.useMemo(function(){return tA(t,r)},[t,r])};function tye(e,t){return aye(e)||rye(e,t)||nye()}function nye(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function rye(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 aye(e){if(Array.isArray(e))return e}var Mf=function(t,r){if(typeof t=="function")return function(d){return t(d)};if(KO(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=yd(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 yd(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=tye(h,2),g=p[0],y=p[1];if(g==="brighter")o.push(function(v){return v.brighter(y)});else if(g==="darker")o.push(function(v){return v.darker(y)});else if(g==="opacity")o.push(function(v){return v.opacity=y,v});else throw new Error("Invalid color modifier: '".concat(g,"', 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)},Do(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}},bd=function(t,r){return $e.useMemo(function(){return Mf(t,r)},[t,r])},bx=oe.oneOfType([oe.func,oe.arrayOf(oe.string),oe.shape({scheme:oe.oneOf(eye).isRequired,size:oe.number}),oe.shape({datum:oe.string.isRequired}),oe.string]),iye=oe.oneOfType([oe.func,oe.string]),p0=oe.oneOfType([oe.string,oe.func,oe.shape({theme:oe.string.isRequired}),oe.shape({from:oe.string.isRequired,modifiers:oe.arrayOf(oe.array)})]),oye=LC,lye=vc;function sye(e,t){return e&&oye(e,t,lye)}var uye=sye,cye=Jl;function fye(e,t){return function(r,i){if(r==null)return r;if(!cye(r))return e(r,i);for(var c=r.length,o=t?c:-1,a=Object(r);(t?o--:++oc?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}),pxe(e,vxe(e),r),i&&(r=fxe(r,yxe|bxe|xxe,gxe));for(var c=t.length;c--;)dxe(r,t[c]);return r}),_xe=wxe;const uA=ir(_xe);var Txe=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 kxe(e){for(var t=1;t180?(_-=u,k-=u):k+=u,{points:[[y,v],[p,g],[k,T]],text:[_,w],angle:m+90}},cA=function(t){var r=t.items,i=t.annotations,c=t.getPosition,o=t.getDimensions;return $e.useMemo(function(){return Cxe({items:r,annotations:i,getPosition:c,getDimensions:o})},[r,i,c,o])},Pxe=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 Axe({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 Dxe(e){for(var t=1;t0&&et.createElement("text",{x:r,y:i,style:Dxe({},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:uA(o.annotations.text,["outlineWidth","outlineColor"])},c))});Qu.displayName="AnnotationNote";Qu.propTypes={datum:oe.object.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};Qu.defaultProps={};function Rxe(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:NM({},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:NM({},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}))});xx.displayName="CircleAnnotationOutline";xx.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};function jM(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:jM({},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:jM({},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}))});Dp.displayName="DotAnnotationOutline";Dp.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};Dp.defaultProps={size:4};function $M(e){for(var t=1;t0&&et.createElement("rect",{x:f.x,y:f.y,width:f.width,height:f.height,style:$M({},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:$M({},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}))});wx.displayName="RectAnnotationOutline";wx.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired};var xc=$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,g=Aa(),y=g.animate,v=g.springConfig,m=Pxe({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(ec,{points:m.points,isOutline:!0}),r==="circle"&&et.createElement(xx,{x:o,y:a,size:n}),r==="dot"&&et.createElement(Dp,{x:o,y:a,size:n}),r==="rect"&&et.createElement(wx,{x:o,y:a,width:l,height:f}),et.createElement(ec,{points:m.points}),!y&&et.createElement(Qu,{x:m.text[0],y:m.text[1],note:p}),y&&et.createElement(Ci,{style:{x:An(m.text[0],v),y:An(m.text[1],v)}},function(b){return et.createElement(Qu,{datum:t,x:b.x,y:b.y,note:p})}))});xc.displayName="Annotation";xc.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};xc.defaultProps={noteWidth:xd.noteWidth,noteTextOffset:xd.noteTextOffset};var Ep=function(t,r,i,c){return Q1().rangeRound(i).domain(t.map(r)).padding(c)};function BM(e){return Bxe(e)||$xe(e)||jxe()}function jxe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function $xe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Bxe(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&(l=0)),Eo().rangeRound(o).domain([l,n])},zxe=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,g=Ep(r,i,[0,l],d),y=n?[0,f]:[f,0],v=fA(r,c,o,a,y),m=(g.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 m>0&&c.forEach(function(k,T){NO(g.domain().length).forEach(function(M){var S=g(i(r[M]))+m*T+p*T,C=x(r[M][k]),P=_(r[M][k],C);if(m>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:m,height:P,color:s(D)})}})}),{xScale:g,yScale:v,bars:w}},qxe=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,g=n?[l,0]:[0,l],y=fA(r,c,o,a,g),v=Ep(r,i,[f,0],d),m=(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 m>0&&c.forEach(function(k,T){NO(v.domain().length).forEach(function(M){var S=x(r[M][k]),C=v(i(r[M]))+m*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:m,color:s(D)})}})}),{xScale:y,yScale:v,bars:w}},dA=function(t){return t.layout==="vertical"?zxe(t):qxe(t)},hA=function(t,r,i,c){var o=Tme(t,2),a=r;a==="auto"&&(a=IO(o));var n=i;return n==="auto"&&(n=FO(o)),Eo().rangeRound(c).domain([a,n])},Wxe=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,g=W8().keys(c).offset(Mb)(r),y=Ep(r,i,[0,l],d),v=n?[0,f]:[f,0],m=hA(g,o,a,v),b=[],x=y.bandwidth(),_=function(T){return m(T[1])},w=function(T,M){return m(T[0])-M};return n&&(_=function(T){return m(T[0])},w=function(T,M){return m(T[1])-M}),x>0&&g.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:m,bars:b}},Uxe=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,g=W8().keys(c).offset(Mb)(r),y=n?[l,0]:[0,l],v=hA(g,o,a,y),m=Ep(r,i,[f,0],d),b=[],x=m.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&&g.forEach(function(k){m.domain().forEach(function(T,M){var S=k[M],C=m(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:m,bars:b}},pA=function(t){return t.layout==="vertical"?Wxe(t):Uxe(t)},Hxe=function(t,r,i,c,o){var a=Ku(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},Vxe=function(t){return Ku(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})},Yxe=function(t){var r=t.from,i=t.bars,c=t.layout,o=t.direction,a=t.groupMode,n=t.reverse;return r==="indexes"?Vxe(i):Hxe(i,c,o,a,n)};function Vv(e){for(var t=1;t0&&ce0&&ye0&&(this.ctx.lineWidth=M.grid.line.strokeWidth,this.ctx.strokeStyle=M.grid.line.stroke,O&&Nl(this.ctx,{width:s,height:u,scale:B.xScale,axis:"x",values:R}),F&&Nl(this.ctx,{width:s,height:u,scale:B.yScale,axis:"y",values:A})),this.ctx.strokeStyle="#dddddd";var $=Ku(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=Ku(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;hx(c.ctx,qM({},N,{data:E,containerWidth:s,containerHeight:u,itemTextColor:"#999",symbolSize:16,theme:M}))}),Gb(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(up,{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);xA.propTypes=mA;var d2e=Cb("BarCanvas")(vA(xA));function Zv(){return Zv=Object.assign||function(e){for(var t=1;t{const t=_y();return je.jsx(Jr,{sx:{maxWidth:200,height:50},children:je.jsx(h2e,{data:e.data[e.xField].map((r,i)=>({id:r,x:e.data[e.yField][i]})),theme:t,margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})})},g2e=p2e;var m2e=BO;function v2e(e){return e&&e.length?m2e(e):[]}var y2e=v2e;const HM=ir(y2e);var b2e=rA,x2e=Jl;function w2e(e,t){var r=-1,i=x2e(e)?Array(e.length):[];return b2e(e,function(c,o,a){i[++r]=t(c,o,a)}),i}var _2e=w2e;function T2e(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var k2e=T2e,VM=ts;function M2e(e,t){if(e!==t){var r=e!==void 0,i=e===null,c=e===e,o=VM(e),a=t!==void 0,n=t===null,l=t===t,f=VM(t);if(!n&&!f&&!o&&e>t||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 A2e=O2e,g0=yh,P2e=hc,D2e=px,E2e=_2e,R2e=k2e,L2e=Ql,I2e=A2e,F2e=Yo,N2e=xa;function j2e(e,t,r){t.length?t=g0(t,function(o){return N2e(o)?function(a){return P2e(a,o.length===1?o[0]:o)}:o}):t=[F2e];var i=-1;t=g0(t,L2e(D2e));var c=E2e(e,function(o,a,n){var l=g0(t,function(f){return f(o)});return{criteria:l,index:++i,value:o}});return R2e(c,function(o,a){return I2e(o,a,r)})}var $2e=j2e,B2e=Fb,z2e=$2e,q2e=vh,YM=X1,W2e=q2e(function(e,t){if(e==null)return[];var r=t.length;return r>1&&YM(e,t[0],t[1])?t=[]:r>2&&YM(t[0],t[1],t[2])&&(t=[t[0]]),z2e(e,B2e(t,1),[])}),U2e=W2e;const H2e=ir(U2e);var V2e=Ii,Y2e=Na,G2e="[object Date]";function X2e(e){return Y2e(e)&&V2e(e)==G2e}var Z2e=X2e,K2e=Z2e,J2e=Ql,GM=mh,XM=GM&&GM.isDate,Q2e=XM?J2e(XM):K2e,ewe=Q2e;const twe=ir(ewe);var nwe=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],g=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 m=Eo().rangeRound(o==="x"?[0,g]:[g,0]);return h===!0?m.domain([v,y]):m.domain([y,v]),m.type="linear",m.stacked=u,m},rwe={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},awe=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}),g,y=!1;if(d.all.forEach(function(x){y!==!0&&(g===void 0?g=Math.sign(x):Math.sign(x)!==g&&(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 m=u;u==="auto"&&(m=d.max);var b=c8().domain([v,m]).rangeRound(o==="x"?[0,h]:[h,0]).base(n).nice();return b.type="log",b},iwe={type:oe.oneOf(["log"]).isRequired,base:oe.number,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number])},owe=function(t,r,i,c){var o=t.axis,a=r[o],n=o==="x"?i:c,l=pne().range([0,n]).domain(a.all);return l.type="point",l},lwe={type:oe.oneOf(["point"]).isRequired},wi;function po(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _x="millisecond",wA="second",_A="minute",TA="hour",kA="day",MA="month",SA="year",swe=[_x,wA,_A,TA,kA,MA,SA],cl=[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)}],uwe=(wi={},po(wi,_x,[]),po(wi,wA,cl.slice(0,1)),po(wi,_A,cl.slice(0,2)),po(wi,TA,cl.slice(0,3)),po(wi,kA,cl.slice(0,4)),po(wi,MA,cl.slice(0,5)),po(wi,SA,cl.slice(0,6)),wi),cwe=function(t){return function(r){return uwe[t].forEach(function(i){i(r)}),r}},CA=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=cwe(o);if(i==="native")return function(s){return l(s)};var f=n?g7(i):p7(i);return function(s){return l(f(s))}},fwe=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?_x:l,s=t.min,u=s===void 0?"auto":s,d=t.max,h=d===void 0?"auto":d,p=t.useUTC,g=p===void 0?!0:p,y=r[o],v=o==="x"?i:c,m=CA({format:n,precision:f,useUTC:g}),b=u;u==="auto"?b=y.min:n!=="native"&&(b=m(u));var x=h;h==="auto"?x=y.max:n!=="native"&&(x=m(h));var _=g?Tae():_ae();return _.domain([b,x]).range([0,v]),_.type="time",_.useUTC=g,_},dwe={type:oe.oneOf(["time"]).isRequired,format:oe.string,precision:oe.oneOf(swe)};function _d(e){return gwe(e)||pwe(e)||hwe()}function hwe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function pwe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function gwe(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=CA(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=HM(s),s=H2e(s,function(h){return h}),u=Math.min.apply(Math,_d(s)),d=Math.max.apply(Math,_d(s))):i.type==="time"?(s=Ku(s,function(h){return h.getTime()}),s=s.slice(0).sort(function(h,p){return p-h}).reverse(),u=s[0],d=Mn(s)):(s=HM(s),u=s[0],d=Mn(s)),{all:s,min:u,max:d}},AA=function(t,r,i,c){var o=vwe(t),a=[];i[o].all.forEach(function(n){var l=twe(n)?bwe:ywe,f=[];c.forEach(function(s){var u=s.data.find(function(g){return l(g.data[o],n)}),d=null,h=null;if(u!==void 0){if(d=u.data[t],d!==null){var p=Mn(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,_d(a)),i[t].maxStacked=Math.max.apply(Math,_d(a))},wwe=function(t,r,i){return AA("x",t,r,i)},_we=function(t,r,i){return AA("y",t,r,i)},Td=oe.oneOfType([oe.shape(rwe),oe.shape(lwe),oe.shape(dwe),oe.shape(iwe)]);const JM=Math.pow(2,-52),of=new Uint32Array(512);class kd{static from(t,r=Cwe,i=Owe){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,g,y;for(let S=0;S0&&(g=S,h=C)}let b=t[2*g],x=t[2*g+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(lf(v,m,b,x,w,k)){const S=g,C=b,P=x;g=y,b=w,x=k,y=S,w=C,k=P}const T=Swe(v,m,b,x,w,k);this._cx=T.x,this._cy=T.y;for(let S=0;S0&&Math.abs(O-C)<=JM&&Math.abs(R-P)<=JM||(C=O,P=R,D===p||D===g||D===y))continue;let F=0;for(let j=0,N=this._hashKey(O,R);j0?3-r:1+r)/4}function m0(e,t,r,i){const c=e-r,o=t-i;return c*c+o*o}function v0(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 lf(e,t,r,i,c,o){return(v0(c,o,e,t,r,i)||v0(e,t,r,i,c,o)||v0(r,i,c,o,e,t))<0}function kwe(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,g=s*s+u*u,y=d*d+h*h;return l*(u*y-g*h)-f*(s*y-g*d)+p*(s*h-u*d)<0}function Mwe(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 Swe(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 gl(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;vu(e,c,o),t[e[r]]>t[e[i]]&&vu(e,r,i),t[e[o]]>t[e[i]]&&vu(e,o,i),t[e[r]]>t[e[o]]&&vu(e,r,o);const n=e[o],l=t[n];for(;;){do o++;while(t[e[o]]l);if(a=a-r?(gl(e,t,o,i),gl(e,t,r,a-1)):(gl(e,t,r,a-1),gl(e,t,o,i))}}function vu(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}function Cwe(e){return e[0]}function Owe(e){return e[1]}const QM=1e-6;class Co{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)>QM||Math.abs(this._y1-o)>QM)&&(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 Kv{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 Awe=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,g=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 Pwe=2*Math.PI,fl=Math.pow;function Dwe(e){return e[0]}function Ewe(e){return e[1]}function Rwe(e){const{triangles:t,coords:r}=e;for(let i=0;i1e-10)return!1}return!0}function Lwe(e,t,r){return[e+Math.sin(e+t)*r,t+Math.cos(e-t)*r]}class Rp{static from(t,r=Dwe,i=Ewe,c){return new Rp("length"in t?Iwe(t,r,i,c):Float64Array.from(Fwe(t,r,i,c)))}constructor(t){this._delaunator=new kd(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&&Rwe(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 Awe(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=fl(r-f[t*2],2)+fl(i-f[t*2+1],2);const d=c[t];let h=d;do{let p=l[h];const g=fl(r-f[p*2],2)+fl(i-f[p*2+1],2);if(g0&&(de.lineWidth=H.grid.line.strokeWidth,de.strokeStyle=H.grid.line.stroke,k&&Nl(de,{width:W,height:G,scale:re,axis:"x",values:T}),M&&Nl(de,{width:W,height:G,scale:ie,axis:"y",values:S})),xe==="axes"&&Gb(de,{xScale:re,yScale:ie,width:W,height:G,top:C,right:P,bottom:D,left:O,theme:H}),xe==="areas"&&g===!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"&&m===!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&&(DA(de,Te),ee&&EA(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){hx(de,x_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,m,b,ee]);var Se=$e.useCallback(function(de){var xe=Zu(j.current,de),ue=a5(xe,2),ge=ue[0],be=ue[1];if(!qb(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=Vl(),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})};Sx.propTypes=Xwe;Sx.defaultProps=Zwe;var M_e=pp(Sx);function ey(){return ey=Object.assign||function(e){for(var t=1;t{const t=_y();return je.jsx(Jr,{sx:{maxWidth:200,height:50},children:je.jsx(S_e,{data:[{id:"1",data:e.data[e.xField].map((r,i)=>({x:r,y:e.data[e.yField][i]}))}],theme:t,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})})},O_e=C_e;function A_e(e){for(var t=1;t{const t=_y();return je.jsx(Jr,{sx:{maxWidth:200,height:50},children:je.jsx(Q_e,{data:[{id:"1",data:e.data[e.xField].map((r,i)=>({x:r,y:e.data[e.yField][i]}))}],theme:t,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})})},i3e=a3e,o3e=new Map([["line",(e,t)=>t[e.field]?je.jsx(O_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(i3e,{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(g2e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})]]),l5=e=>e.map(t=>({def:t,gen:o3e.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"}),l3e=e=>{const[t,r]=$e.useState({open:!1,anchorEl:void 0});return je.jsxs(Jr,{sx:{width:50},onClick:i=>r(c=>({open:!c.open,anchorEl:i.currentTarget})),children:[je.jsx(rE,{}),je.jsx(iS,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:je.jsx(Cr,{p:1,children:e.longText})})]})},s3e=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($Y,{columns:e.showInfoColumn??!1?[...l5(t),{title:"Info",render:c=>{var o,a,n;return je.jsx(et.Fragment,{children:(o=c.details)!=null&&o.insights?je.jsx(l3e,{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}]:[...l5(t)],data:r,detailPanel:({rowData:c})=>c.graphId?je.jsx(WY,{graphId:c.graphId,widgetSize:e.widgetSize}):c.details?je.jsx(A1,{details:c.details,widgetSize:e.widgetSize}):null,options:i})})},s5=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})]}),u3e=e=>je.jsx(et.Fragment,{children:e.counters.length===1?je.jsx(s5,{...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:Jr,height:"100%",children:je.jsx(Jr,{children:je.jsx(s5,{...t})})},t.label+t.value))})}),c3e=e=>je.jsxs("div",{children:[je.jsxs(Jr,{display:"flex",alignItems:"center",children:[je.jsx(Jr,{width:"100%",mr:1,children:je.jsx(aE,{variant:"determinate",value:e.value/e.maxValue*100})}),je.jsx(Jr,{minWidth:35,children:je.jsx(Cr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),je.jsx(Jr,{width:"100%",children:je.jsx(Cr,{variant:"body2",color:"textSecondary",children:e.details??""})})]}),f3e=e=>{var f,s,u,d,h,p;const[t,r]=$e.useState(!1),i=fS(),c=dS(),o=(f=e.graph)==null?void 0:f.data.some(({type:g})=>g==="histogram"),a=(i==null?void 0:i.isXaxisAsCategorical)&&!o,n=c==="dark"?{template:{...ml,layout:{...ml.layout,colorway:((d=(u=(s=e.graph)==null?void 0:s.layout.template)==null?void 0:u.layout)==null?void 0:d.colorway)||((h=ml.layout)==null?void 0:h.colorway)}}}:void 0,l=a?{type:"category",categoryorder:"category ascending"}:void 0;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(oS,{children:[je.jsx(lS,{children:je.jsxs(Rf,{children:[je.jsx(Vi,{}),e.metricsValuesHeaders.map(g=>je.jsx(Vi,{children:g}))]})}),je.jsx(sS,{children:e.metrics.map(g=>je.jsxs(Rf,{children:[je.jsx(Vi,{children:g.label}),g.values.map(y=>je.jsx(Vi,{children:y}))]}))})]})}),e.graph===void 0?je.jsx(je.Fragment,{}):je.jsx(Jn,{item:!0,xs:5,children:je.jsx(gS,{data:e.graph.data,layout:{...e.graph.layout,...n,title:void 0,xaxis:{...(p=e.graph.layout)==null?void 0:p.xaxis,...l}},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(hi,{variant:"outlined",startIcon:t?je.jsx(iE,{}):je.jsx(oE,{}),onClick:()=>r(g=>!g),children:"Details"})}),je.jsx(Jn,{item:!0,xs:12,children:je.jsx(xy,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(A1,{details:e.details,widgetSize:e.widgetSize})})})]})]})})},d3e=e=>je.jsx(O1,{tabs:e.graphs.map(t=>({title:t.title,tab:je.jsx(Pd,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),h3e=e=>je.jsx(O1,{tabs:e.tabs.map(t=>({title:t.title,tab:Tc(`${e.id}1`,t.widget)}))}),p3e=e=>je.jsx(lE,{children:je.jsxs(oS,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[je.jsx(lS,{children:je.jsxs(Rf,{children:[je.jsx(Vi,{children:e.header[0]},-1),e.header.slice(1).map(t=>je.jsx(Vi,{align:"right",children:t},t))]})}),je.jsx(sS,{children:e.data.map(t=>je.jsxs(Rf,{children:[je.jsx(Vi,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map(r=>je.jsx(Vi,{align:"right",children:r},r))]},t[0]))})]})});function g3e(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const m3e=/[ \t\n\f\r]/g;function v3e(e){return typeof e=="object"?e.type==="text"?u5(e.value):!1:u5(e)}function u5(e){return e.replace(m3e,"")===""}class wc{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}}wc.prototype.property={};wc.prototype.normal={};wc.prototype.space=null;function rP(e,t){const r={},i={};let c=-1;for(;++c4&&r.slice(0,4)==="data"&&_3e.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(f5,S3e);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!f5.test(o)){let a=o.replace(T3e,M3e);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}c=Ax}return new c(i,t)}function M3e(e){return"-"+e.toLowerCase()}function S3e(e){return e.charAt(1).toUpperCase()}const C3e={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"},O3e=rP([oP,iP,uP,cP,x3e],"html"),fP=rP([oP,iP,uP,cP,w3e],"svg");function A3e(e){return e.join(" ").trim()}var Px={exports:{}},d5=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,P3e=/\n/g,D3e=/^\s*/,E3e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,R3e=/^:\s*/,L3e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,I3e=/^[;\s]*/,F3e=/^\s+|\s+$/g,N3e=` -`,h5="/",p5="*",wo="",j3e="comment",$3e="declaration",B3e=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 g=p.match(P3e);g&&(r+=g.length);var y=p.lastIndexOf(N3e);i=~y?p.length-y:i+p.length}function o(){var p={line:r,column:i};return function(g){return g.position=new a(p),f(),g}}function a(p){this.start=p,this.end={line:r,column:i},this.source=t.source}a.prototype.content=e;function n(p){var g=new Error(t.source+":"+r+":"+i+": "+p);if(g.reason=p,g.filename=t.source,g.line=r,g.column=i,g.source=e,!t.silent)throw g}function l(p){var g=p.exec(e);if(g){var y=g[0];return c(y),e=e.slice(y.length),g}}function f(){l(D3e)}function s(p){var g;for(p=p||[];g=u();)g!==!1&&p.push(g);return p}function u(){var p=o();if(!(h5!=e.charAt(0)||p5!=e.charAt(1))){for(var g=2;wo!=e.charAt(g)&&(p5!=e.charAt(g)||h5!=e.charAt(g+1));)++g;if(g+=2,wo===e.charAt(g-1))return n("End of comment missing");var y=e.slice(2,g-2);return i+=2,c(y),e=e.slice(g),i+=2,p({type:j3e,comment:y})}}function d(){var p=o(),g=l(E3e);if(g){if(u(),!l(R3e))return n("property missing ':'");var y=l(L3e),v=p({type:$3e,property:g5(g[0].replace(d5,wo)),value:y?g5(y[0].replace(d5,wo)):wo});return l(I3e),v}}function h(){var p=[];s(p);for(var g;g=d();)g!==!1&&(p.push(g),s(p));return p}return f(),h()};function g5(e){return e?e.replace(F3e,wo):wo}var z3e=B3e;function dP(e,t){var r=null;if(!e||typeof e!="string")return r;for(var i,c=z3e(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 U3e(e){const t=Dx(e),r=hP(e);if(t&&r)return{start:t,end:r}}function Ou(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?m5(e.position):"start"in e||"end"in e?m5(e):"line"in e||"column"in e?ly(e):""}function ly(e){return v5(e&&e.line)+":"+v5(e&&e.column)}function m5(e){return ly(e&&e.start)+"-"+ly(e&&e.end)}function v5(e){return e&&typeof e=="number"?e:1}class wa 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=Ou(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}}wa.prototype.file="";wa.prototype.name="";wa.prototype.reason="";wa.prototype.message="";wa.prototype.stack="";wa.prototype.column=void 0;wa.prototype.line=void 0;wa.prototype.ancestors=void 0;wa.prototype.cause=void 0;wa.prototype.fatal=void 0;wa.prototype.place=void 0;wa.prototype.ruleId=void 0;wa.prototype.source=void 0;const Ex={}.hasOwnProperty,H3e=new Map,V3e=/[A-Z]/g,Y3e=/-([a-z])/g,G3e=new Set(["table","tbody","thead","tfoot","tr"]),X3e=new Set(["td","th"]);function Z3e(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=J3e(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=K3e(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:O3e,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=Q3e(e,t);const a=eTe(e,e.ancestors);let n=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(o&&G3e.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!v3e(l):!0})),Ex.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 K3e(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 J3e(e,t){return r;function r(i,c,o,a){const n=Array.isArray(o.children),l=Dx(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 Q3e(e,t){const r=[];let i=-1;const c=e.passKeys?new Map:H3e;for(;++i-1&&e.test(String.fromCharCode(r))}}const dTe={'"':"quot","&":"amp","<":"lt",">":"gt"};function hTe(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+dTe[r]+";"}}function pTe(e,t){const r=hTe(nl(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 nl(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 gTe={};function mTe(e,t){const r=gTe,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(vTe(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 y5(e.children,t,r)}return Array.isArray(e)?y5(e,t,r):""}function y5(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?(gi(e,e.length,0,t),e):t}const x5={}.hasOwnProperty;function yTe(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 wl(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 m(){c.write([null]),o=void 0,c=void 0,t.containerState._closeFlow=void 0}}function MTe(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 _5(e){if(e===null||Ca(e)||fTe(e))return 1;if(cTe(e))return 2}function Lx(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);T5(u,-l),T5(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=qa(f,[["enter",e[i][1],t],["exit",e[i][1],t]])),f=qa(f,[["enter",c,t],["enter",a,t],["exit",a,t],["enter",o,t]]),f=qa(f,Lx(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),f=qa(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=qa(f,[["enter",e[r][1],t],["exit",e[r][1],t]])):s=0,gi(e,i-1,r-i+3,f),r=i+f.length-s-2;break}}for(r=-1;++r0&&ar(w)?vr(e,m,"linePrefix",o+1)(w):m(w)}function m(w){return w===null||Fn(w)?e.check(k5,g,x)(w):(e.enter("codeFlowValue"),b(w))}function b(w){return w===null||Fn(w)?(e.exit("codeFlowValue"),m(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 NTe(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 x0={name:"codeIndented",tokenize:$Te},jTe={tokenize:BTe,partial:!0};function $Te(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(jTe,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 BTe(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 zTe={name:"codeText",tokenize:UTe,resolve:qTe,previous:WTe};function qTe(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||sy(v)?r(v):(e.enter(i),e.enter(a),e.enter(n),e.enter("chunkString",{contentType:"string"}),g(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 g(v){return!s&&(v===null||v===41||Ca(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 Au(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 KTe={name:"definition",tokenize:QTe},JTe={tokenize:eke,partial:!0};function QTe(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=wl(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 Ca(h)?Au(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(JTe,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 eke(e,t,r){return i;function i(n){return Ca(n)?Au(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 tke={name:"hardBreakEscape",tokenize:nke};function nke(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 rke={name:"headingAtx",tokenize:ike,resolve:ake};function ake(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"},gi(e,i,r-i+1,[["enter",c,t],["enter",o,t],["exit",o,t],["exit",c,t]])),e}function ike(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||Ca(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||Ca(s)?(e.exit("atxHeadingText"),n(s)):(e.consume(s),f)}}const oke=["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"],S5=["pre","script","style","textarea"],lke={name:"htmlFlow",tokenize:fke,resolveTo:cke,concrete:!0},ske={tokenize:hke,partial:!0},uke={tokenize:dke,partial:!0};function cke(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 fke(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,g):E===63?(e.consume(E),c=3,i.interrupt?t:$):di(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):di(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 g(E){return di(E)?(e.consume(E),a=String.fromCharCode(E),y):r(E)}function y(E){if(E===null||E===47||E===62||Ca(E)){const W=E===47,G=a.toLowerCase();return!W&&!o&&S5.includes(G)?(c=1,i.interrupt?t(E):P(E)):oke.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?m(E):b(E))}return E===45||La(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 m(E){return ar(E)?(e.consume(E),m):S(E)}function b(E){return E===47?(e.consume(E),S):E===58||E===95||di(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||La(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||Ca(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(ske,N,D)(E)):E===null||Fn(E)?(e.exit("htmlFlowData"),D(E)):(e.consume(E),P)}function D(E){return e.check(uke,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 S5.includes(W)?(e.consume(E),j):P(E)}return di(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 dke(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 hke(e,t,r){return i;function i(c){return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),e.attempt(jp,t,r)}}const pke={name:"htmlText",tokenize:gke};function gke(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):di($)?(e.consume($),T):r($)}function f($){return $===45?(e.consume($),s):$===91?(e.consume($),o=0,p):di($)?(e.consume($),m):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?g:p):r($)}function g($){return $===null?r($):$===93?(e.consume($),y):Fn($)?(a=g,A($)):(e.consume($),g)}function y($){return $===93?(e.consume($),v):g($)}function v($){return $===62?F($):$===93?(e.consume($),v):g($)}function m($){return $===null||$===62?F($):Fn($)?(a=m,A($)):(e.consume($),m)}function b($){return $===null?r($):$===63?(e.consume($),x):Fn($)?(a=b,A($)):(e.consume($),b)}function x($){return $===62?F($):b($)}function _($){return di($)?(e.consume($),w):r($)}function w($){return $===45||La($)?(e.consume($),w):k($)}function k($){return Fn($)?(a=k,A($)):ar($)?(e.consume($),k):F($)}function T($){return $===45||La($)?(e.consume($),T):$===47||$===62||Ca($)?M($):r($)}function M($){return $===47?(e.consume($),F):$===58||$===95||di($)?(e.consume($),S):Fn($)?(a=M,A($)):ar($)?(e.consume($),M):F($)}function S($){return $===45||$===46||$===58||$===95||La($)?(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||Ca($)?M($):(e.consume($),O)}function R($){return $===47||$===62||Ca($)?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 Ix={name:"labelEnd",tokenize:wke,resolveTo:xke,resolveAll:bke},mke={tokenize:_ke},vke={tokenize:Tke},yke={tokenize:kke};function bke(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 ka={name:"list",tokenize:Rke,continuation:{tokenize:Lke},exit:Fke},Dke={tokenize:Nke,partial:!0},Eke={tokenize:Ike,partial:!0};function Rke(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:uy(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(Pf,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 uy(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(jp,i.interrupt?r:s,e.attempt(Dke,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 Lke(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(jp,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(Eke,t,a)(n))}function a(n){return i.containerState._closeFlow=!0,i.interrupt=void 0,vr(e,e.attempt(ka,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n)}}function Ike(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 Fke(e){e.exit(this.containerState.type)}function Nke(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 C5={name:"setextUnderline",tokenize:$ke,resolveTo:jke};function jke(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 $ke(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 Bke={tokenize:zke};function zke(e){const t=this,r=e.attempt(jp,i,e.attempt(this.parser.constructs.flowInitial,c,vr(e,e.attempt(this.parser.constructs.flow,c,e.attempt(VTe,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 qke={resolveAll:CP()},Wke=SP("string"),Uke=SP("text");function SP(e){return{tokenize:t,resolveAll:CP(e==="text"?Hke: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 Gke(e,t){let r=-1;const i=[];let c;for(;++r0){const de=ye.tokenStack[ye.tokenStack.length-1];(de[1]||A5).call(ye,void 0,de[0])}for(ce.position={start:Hi(Me.length>0?Me[0][1].start:{line:1,column:1,offset:0}),end:Hi(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 wMe(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 _Me(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 TMe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return PP(e,t);const c={src:nl(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 kMe(e,t){const r={src:nl(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 MMe(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 SMe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return PP(e,t);const c={href:nl(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 CMe(e,t){const r={href:nl(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 OMe(e,t,r){const i=e.all(t),c=r?AMe(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 PMe(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=Dx(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 IMe(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(E5(t.slice(c),c>0,!1)),o.join("")}function E5(e,t,r){let i=0,c=e.length;if(t){let o=e.codePointAt(i);for(;o===P5||o===D5;)i++,o=e.codePointAt(i)}if(r){let o=e.codePointAt(c-1);for(;o===P5||o===D5;)c--,o=e.codePointAt(c-1)}return c>i?e.slice(i,c):""}function jMe(e,t){const r={type:"text",value:NMe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function $Me(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const BMe={blockquote:gMe,break:mMe,code:vMe,delete:yMe,emphasis:bMe,footnoteReference:xMe,heading:wMe,html:_Me,imageReference:TMe,image:kMe,inlineCode:MMe,linkReference:SMe,link:CMe,listItem:OMe,list:PMe,paragraph:DMe,root:EMe,strong:RMe,table:LMe,tableCell:FMe,tableRow:IMe,text:jMe,thematicBreak:$Me,toml:sf,yaml:sf,definition:sf,footnoteDefinition:sf};function sf(){}const EP=-1,$p=0,Md=1,Sd=2,Fx=3,Nx=4,jx=5,$x=6,RP=7,LP=8,R5=typeof self=="object"?self:globalThis,zMe=(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 $p:case EP:return r(a,c);case Md:{const n=r([],c);for(const l of a)n.push(i(l));return n}case Sd:{const n=r({},c);for(const[l,f]of a)n[i(l)]=i(f);return n}case Fx:return r(new Date(a),c);case Nx:{const{source:n,flags:l}=a;return r(new RegExp(n,l),c)}case jx:{const n=r(new Map,c);for(const[l,f]of a)n.set(i(l),i(f));return n}case $x:{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 R5[n](l),c)}case LP:return r(BigInt(a),c);case"BigInt":return r(Object(BigInt(a)),c)}return r(new R5[o](a),c)};return i},L5=e=>zMe(new Map,e)(0),dl="",{toString:qMe}={},{keys:WMe}=Object,bu=e=>{const t=typeof e;if(t!=="object"||!e)return[$p,t];const r=qMe.call(e).slice(8,-1);switch(r){case"Array":return[Md,dl];case"Object":return[Sd,dl];case"Date":return[Fx,dl];case"RegExp":return[Nx,dl];case"Map":return[jx,dl];case"Set":return[$x,dl]}return r.includes("Array")?[Md,r]:r.includes("Error")?[RP,r]:[Sd,r]},uf=([e,t])=>e===$p&&(t==="function"||t==="symbol"),UMe=(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]=bu(a);switch(n){case $p:{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 Md:{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 Sd:{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 WMe(a))(e||!uf(bu(a[d])))&&s.push([o(d),o(a[d])]);return u}case Fx:return c([n,a.toISOString()],a);case Nx:{const{source:s,flags:u}=a;return c([n,{source:s,flags:u}],a)}case jx:{const s=[],u=c([n,s],a);for(const[d,h]of a)(e||!(uf(bu(d))||uf(bu(h))))&&s.push([o(d),o(h)]);return u}case $x:{const s=[],u=c([n,s],a);for(const d of a)(e||!uf(bu(d)))&&s.push(o(d));return u}}const{message:f}=a;return c([n,{name:l,message:f}],a)};return o},I5=(e,{json:t,lossy:r}={})=>{const i=[];return UMe(!(t||r),!!t,new Map,i)(e),i},Cd=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?L5(I5(e,t)):structuredClone(e):(e,t)=>L5(I5(e,t));function HMe(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 VMe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function YMe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||HMe,i=e.options.footnoteBackLabel||VMe,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 m=typeof r=="string"?r:r(l,h);typeof m=="string"&&(m={type:"text",value:m}),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(m)?m:[m]})}const y=s[s.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const m=y.children[y.children.length-1];m&&m.type==="text"?m.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:{...Cd(a),id:"footnote-label"},children:[{type:"text",value:c}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(n,!0)},{type:"text",value:` -`}]}}const IP=function(e){if(e==null)return KMe;if(typeof e=="function")return Bp(e);if(typeof e=="object")return Array.isArray(e)?GMe(e):XMe(e);if(typeof e=="string")return ZMe(e);throw new Error("Expected function, string, or object as test")};function GMe(e){const t=[];let r=-1;for(;++r":""))+")"})}return d;function d(){let h=FP,p,g,y;if((!t||o(l,f,s[s.length-1]||void 0))&&(h=n5e(r(l,s)),h[0]===F5))return h;if("children"in l&&l.children){const v=l;if(v.children&&h[0]!==e5e)for(g=(i?v.children.length:-1)+a,y=s.concat(v);g>-1&&g0&&r.push({type:"text",value:` -`}),r}function N5(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function j5(e,t){const r=a5e(e,t),i=r.one(e,void 0),c=YMe(r),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return c&&o.children.push({type:"text",value:` -`},c),o}function u5e(e,t){return e&&"run"in e?async function(r,i){const c=j5(r,t);await e.run(c,i)}:function(r){return j5(r,t||e)}}function $5(e){if(e)throw e}var Df=Object.prototype.hasOwnProperty,jP=Object.prototype.toString,B5=Object.defineProperty,z5=Object.getOwnPropertyDescriptor,q5=function(t){return typeof Array.isArray=="function"?Array.isArray(t):jP.call(t)==="[object Array]"},W5=function(t){if(!t||jP.call(t)!=="[object Object]")return!1;var r=Df.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&Df.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!i)return!1;var c;for(c in t);return typeof c>"u"||Df.call(t,c)},U5=function(t,r){B5&&r.name==="__proto__"?B5(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},H5=function(t,r){if(r==="__proto__")if(Df.call(t,r)){if(z5)return z5(t,r).value}else return;return t[r]},c5e=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 li={basename:h5e,dirname:p5e,extname:g5e,join:m5e,sep:"/"};function h5e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_c(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 p5e(e){if(_c(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 g5e(e){_c(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 m5e(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function y5e(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 _c(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const b5e={cwd:x5e};function x5e(){return"/"}function hy(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function w5e(e){if(typeof e=="string")e=new URL(e);else if(!hy(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 _5e(e)}function _5e(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 g=i[d][1];dy(g)&&dy(h)&&(h=_0(!0,g,h)),i[d]=[f,h,...p]}}}}const S5e=new Bx().freeze();function S0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function C0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function O0(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 Y5(e){if(!dy(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function G5(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function cf(e){return C5e(e)?e:new $P(e)}function C5e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function O5e(e){return typeof e=="string"||A5e(e)}function A5e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const X5={}.hasOwnProperty,P5e="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Z5=[],K5={allowDangerousHtml:!0},D5e=/^(https?|ircs?|mailto|xmpp)$/i,E5e=[{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||Z5,l=e.remarkPlugins||Z5,f=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...K5}:K5,s=e.skipHtml,u=e.unwrapDisallowed,d=e.urlTransform||R5e,h=S5e().use(pMe).use(l).use(u5e,f).use(n),p=new $P;typeof i=="string"&&(p.value=i);for(const m of E5e)Object.hasOwn(e,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+P5e+m.id,void 0);const g=h.parse(p);let y=h.runSync(g,p);return c&&(y={type:"element",tagName:"div",properties:{className:c},children:y.type==="root"?y.children:[y]}),NP(y,v),Z3e(y,{Fragment:je.Fragment,components:o,ignoreInvalidStyle:!0,jsx:je.jsx,jsxs:je.jsxs,passKeys:!0,passNode:!0});function v(m,b,x){if(m.type==="raw"&&x&&typeof b=="number")return s?x.children.splice(b,1):x.children[b]={type:"text",value:m.value},b;if(m.type==="element"){let _;for(_ in b0)if(X5.call(b0,_)&&X5.call(m.properties,_)){const w=m.properties[_],k=b0[_];(k===null||k.includes(m.tagName))&&(m.properties[_]=d(String(w||""),_,m))}}if(m.type==="element"){let _=t?!t.includes(m.tagName):a?a.includes(m.tagName):!1;if(!_&&r&&typeof b=="number"&&(_=!r(m,b,x)),_&&x&&typeof b=="number")return u&&m.children?x.children.splice(b,1,...m.children):x.children.splice(b,1),b}}}function R5e(e){return pTe(e,D5e)}const J5=["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 J5.includes(r)||(console.error(`unexpected state: ${r} (expected one of [${J5.join(", ")}])`),r="unknown"),je.jsx(je.Fragment,{children:je.jsxs(Jr,{children:[je.jsxs(wy,{severity:zP(r),action:a?je.jsx(hi,{onClick:()=>o(n=>({active:!n.active})),color:"inherit",size:"small",children:"Details"}):null,children:[je.jsx(by,{children:e}),je.jsx(BP,{children:t})]}),a?je.jsx(xy,{in:c.active,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(Jr,{style:{padding:"2px"},children:je.jsx(A1,{details:i,widgetSize:2})})}):je.jsx(je.Fragment,{})]})})},L5e=({type:e,availableTypes:t,onChange:r})=>je.jsx(je.Fragment,{children:je.jsx(sE,{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))})}),I5e=({groupInfo:e,tests:t})=>{const[r,i]=$e.useState({active:!1});return je.jsx(je.Fragment,{children:je.jsxs(Jr,{mt:2,px:2,children:[je.jsxs(wy,{severity:zP(e.severity??"unknown"),icon:!1,action:je.jsx(hi,{onClick:()=>i(c=>({active:!c.active})),color:"inherit",size:"small",children:r.active?"Hide":"Show"}),children:[je.jsx(by,{children:e.title}),e.description]}),je.jsx(xy,{in:r.active,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(Jn,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map(c=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(qP,{...c})}))})})]})})},F5e=({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])=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(I5e,{groupInfo:n,tests:l})}))})})},N5e=[{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"}]}],j5e=({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=[...N5e,...(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(L5e,{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(qP,{...a})},a.title+a.description)):je.jsx(F5e,{type:r.group_type,groupsInfo:o,tests:e})})})]})})},$5e=e=>je.jsx(je.Fragment,{children:je.jsx(BP,{children:e.text})});function ff(e){return e.palette.mode==="dark"?uS:cS}function df(e){return e.palette.mode==="light"?cS:uS}const py=e=>{const[t,r]=$e.useState({open:!1});return je.jsxs(rS,{elevation:0,onClick:i=>r(c=>({open:!c.open,anchorEl:i.currentTarget})),sx:[{border:"1px solid",borderColor:i=>i.palette.divider},{color:i=>df(i)(i.palette.info.main,.6),backgroundColor:i=>ff(i)(i.palette.info.main,.9)},e.data.state==="success"&&{color:i=>df(i)(i.palette.success.main,.6),backgroundColor:i=>ff(i)(i.palette.success.main,.9)},e.data.state==="warning"&&{color:i=>df(i)(i.palette.warning.main,.6),backgroundColor:i=>ff(i)(i.palette.warning.main,.9)},e.data.state==="error"&&{color:i=>df(i)(i.palette.error.main,.6),backgroundColor:i=>ff(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(iS,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??je.jsx(Cr,{padding:1,children:e.data.longText})})]})},Q5=e=>{const{alertStats:t}=e;return je.jsx(py,{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 B5e(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 z5e=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(uE,{elevation:0,children:je.jsx(cE,{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(Q5,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,children:je.jsx(py,{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(Q5,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(py,{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(xC,{data:p})})):je.jsx("div",{})]})})});return je.jsx(Jn,{item:!0,...B5e(t),children:r?r({id:c,children:h}):h})};class WP extends et.Component{render(){return je.jsx(Jn,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}const q5e=e=>{const[t,r]=et.useState({page:0}),i=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return je.jsxs(WP,{children:[i.map((c,o)=>Tc(`wi_${o}`,c)),je.jsxs(Jn,{item:!0,xs:12,children:[je.jsx(hi,{startIcon:je.jsx(fE,{}),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(hi,{endIcon:je.jsx(dE,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>r(c=>({page:c.page+1})),children:"Next"})]})]})};function W5e(e){return e===hf.Small?3:e===hf.Medium?6:(e===hf.Big,12)}function Tc(e,t,r){let i=je.jsx(wC,{});if(t.type==="counter")i=je.jsx(u3e,{...t.params});else if(t.type==="percent")i=je.jsx(c3e,{...t.params});else if(t.type==="big_graph")i=je.jsx(Pd,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")i=je.jsx(d3e,{...t.params,widgetSize:t.size});else if(t.type==="tabs")i=je.jsx(h3e,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")i=je.jsx(p3e,{...t.params});else if(t.type==="big_table")i=je.jsx(s3e,{...t.params,widgetSize:t.size});else if(t.type==="group")i=je.jsx(WP,{children:t.widgets.map((c,o)=>Tc(`wi_${o}`,c))});else if(t.type==="rich_data")i=je.jsx(f3e,{...t.params,widgetSize:t.size});else if(t.type==="list"){const c=t;i=je.jsx(q5e,{widgets:c.widgets,pageSize:c.pageSize,widgetSize:t.size})}else t.type==="text"?i=je.jsx($5e,{...t.params}):t.type==="test_suite"&&(i=je.jsx(j5e,{...t.params}));return je.jsx(z5e,{size:W5e(t.size),ItemWrapper:r,children:{...t,content:i}},e)}const Z5e=({widgets:e,ItemWrapper:t})=>je.jsx(je.Fragment,{children:e.length>0&&e.map((r,i)=>je.jsx(et.Fragment,{children:Tc(`wi_${i}`,r,t)},r.id))});export{G5e as C,Z5e as D,bC as a}; diff --git a/src/evidently/ui/assets/static/js/DashboardContent-EFtJQGo_.js b/src/evidently/ui/assets/static/js/DashboardContent-EFtJQGo_.js new file mode 100644 index 0000000000..7d5afbdc72 --- /dev/null +++ b/src/evidently/ui/assets/static/js/DashboardContent-EFtJQGo_.js @@ -0,0 +1,379 @@ +var IE=Object.defineProperty;var FE=(e,t,n)=>t in e?IE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var eo=(e,t,n)=>(FE(e,typeof t!="symbol"?t+"":t,n),n);import{S as lr,a7 as $E,a8 as jE,a9 as NE,aa as Nf,ab as zE,ac as BE,ad as qE,ae as UE,af as WE,ag as HE,ah as Fs,ai as br,aj as sr,ak as VE,al as hC,am as pC,an as YE,ao as hv,ap as GE,aq as XE,ar as So,as as ba,at as Ww,au as Hw,av as ld,aw as ZE,ax as KE,ay as gC,j as Ie,az as JE,aA as QE,aB as mC,aC as vC,aD as eR,aE as kc,aF as yC,aG as tR,aH as nR,aI as rR,aJ as aR,a as po,aK as iR,aL as oR,aM as lR,aN as Mc,aO as s1,aP as sR,aQ as bC,aR as uR,aS as cR,s as en,aT as fR,aU as dR,aV as hR,aW as pR,aX as gR,aY as mR,aZ as Sc,a_ as u1,a$ as vR,b0 as yR,b1 as bR,b2 as xR,b3 as wR,b4 as _R,b5 as TR,q as rl,p as pr,b6 as kR,b7 as Fr,b8 as MR,t as ra,b9 as SR,k as CR,ba as zf,bb as OR,bc as PR,m as Fa,bd as xC,be as zl,bf as rh,bg as Cc,l as go,bh as wC,bi as AR,o as Yn,bj as et,bk as _C,_ as Gt,h as Hn,i as qn,b as je,d as _a,bl as DR,e as Vr,f as Un,bm as Vw,w as rs,bn as ER,bo as RR,I as ci,bp as LR,bq as IR,T as dr,br as FR,bs as pv,bt as $R,C as jR,bu as NR,bv as zR,W as na,bw as BR,B as fi,bx as qR,by as UR,bz as WR,bA as sd,bB as HR,bC as VR,F as c1,Z as YR,bD as GR,bE as XR,bF as f1,X as ZR,bG as KR,bH as JR,bI as QR,bJ as eL,bK as tL,bL as nL,bM as rL,$ as aL,bN as iL,bO as oL,bP as TC,bQ as lL,bR as sL,bS as zu,L as uL,bT as kC,bU as cL,bV as fL,bW as dL,O as MC,bX as hL,bY as pL,a0 as d1,bZ as gL,b_ as mL,b$ as vL,c0 as yL,c1 as bL,c2 as h1,c3 as xL,c4 as wL,c5 as p1,c6 as _L,c7 as TL,c8 as Ja,c9 as kL,ca as ML,cb as SL,cc as g1,cd as CL,ce as OL,cf as SC,cg as PL,ch as AL,ci as DL,cj as EL,ck as RL,cl as LL,n as IL,cm as Ju,cn as FL,co as $L,cp as jL,cq as NL,cr as zL,E as BL,cs as qL,ct as UL,cu as CC,cv as Wn,Q as La,cw as WL,cx as xn,M as HL,D as OC,A as VL,G as tr,P as YL,y as GL,x as XL,v as m1,H as PC,J as ZL,K as gv,cy as Yw,cz as v1,cA as KL,a1 as y1,a2 as b1,cB as x1,cC as AC}from"./index-umZ6I6N8.js";var DC={exports:{}},JL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",QL=JL,eI=QL;function EC(){}function RC(){}RC.resetWarningCache=EC;var tI=function(){function e(i,s,o,a,r,l){if(l!==eI){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:RC,resetWarningCache:EC};return n.PropTypes=n,n};DC.exports=tI();var Or=DC.exports;const oe=lr(Or);var nI=!1;function rI(e){if(e.sheet)return e.sheet;for(var t=0;t6)switch(So(e,t+1)){case 109:if(So(e,t+4)!==45)break;case 102:return br(e,/(.+:)(.+)-([^]+)/,"$1"+sr+"$2-$3$1"+ld+(So(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hw(e,"stretch")?IC(br(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(So(e,t+1)!==115)break;case 6444:switch(So(e,Ww(e)-3-(~Hw(e,"!important")&&10))){case 107:return br(e,":",":"+sr)+e;case 101:return br(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+sr+(So(e,14)===45?"inline-":"")+"box$3$1"+sr+"$2$3$1"+ba+"$2box$3")+e}break;case 5936:switch(So(e,t+11)){case 114:return sr+e+ba+br(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return sr+e+ba+br(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return sr+e+ba+br(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return sr+e+ba+e+e}return e}var cI=function(t,n,i,s){if(t.length>-1&&!t.return)switch(t.type){case VE:t.return=IC(t.value,t.length);break;case HE:return Nf([Fs(t,{value:br(t.value,"@","@"+sr)})],s);case UE:if(t.length)return WE(t.props,function(o){switch(ZE(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nf([Fs(t,{props:[br(o,/:(read-\w+)/,":"+ld+"$1")]})],s);case"::placeholder":return Nf([Fs(t,{props:[br(o,/:(plac\w+)/,":"+sr+"input-$1")]}),Fs(t,{props:[br(o,/:(plac\w+)/,":"+ld+"$1")]}),Fs(t,{props:[br(o,/:(plac\w+)/,ba+"input-$1")]})],s)}return""})}},fI=[cI],dI=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(g){var y=g.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var s=t.stylisPlugins||fI,o={},a,r=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var y=g.getAttribute("data-emotion").split(" "),v=1;v{const t=dI(e);class n extends LC{constructor(s){super(s),this.prepend=t.sheet.prepend}}return t.sheet=new n({key:t.key,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy,prepend:t.sheet.prepend,insertionPoint:t.sheet.insertionPoint}),t};let mv;typeof document=="object"&&(mv=hI({key:"css",prepend:!0}));function pI(e){const{injectFirst:t,children:n}=e;return t&&mv?Ie.jsx(JE,{value:mv,children:n}):n}function gI(e,t){return()=>null}function mI(e,t){return()=>null}function vI(e,t,n,i,s){return null}function yI(e){const{defaultProps:t={},mixins:n={},overrides:i={},palette:s={},props:o={},styleOverrides:a={},...r}=e,l={...r,components:{}};Object.keys(t).forEach(g=>{const y=l.components[g]||{};y.defaultProps=t[g],l.components[g]=y}),Object.keys(o).forEach(g=>{const y=l.components[g]||{};y.defaultProps=o[g],l.components[g]=y}),Object.keys(a).forEach(g=>{const y=l.components[g]||{};y.styleOverrides=a[g],l.components[g]=y}),Object.keys(i).forEach(g=>{const y=l.components[g]||{};y.styleOverrides=i[g],l.components[g]=y}),l.spacing=QE(e.spacing);const c=mC(e.breakpoints||{}),u=l.spacing;l.mixins={gutters:(g={})=>({paddingLeft:u(2),paddingRight:u(2),...g,[c.up("sm")]:{paddingLeft:u(3),paddingRight:u(3),...g[c.up("sm")]}}),...n};const{type:f,mode:d,...h}=s,p=d||f||"light";return l.palette={text:{hint:p==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:p,type:p,...h},l}function bI(e,...t){return vC(eR({unstable_strictMode:!0},e),...t)}let Xw=!1;function xI(e){return Xw||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join(` +`)),Xw=!0),e}function Zw(e){return String(parseFloat(e)).length===String(e).length}function w1(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Ii(e){return parseFloat(e)}function wI(e){return(t,n)=>{const i=w1(t);if(i===n)return t;let s=Ii(t);i!=="px"&&(i==="em"||i==="rem")&&(s=Ii(t)*Ii(e));let o=s;if(n!=="px")if(n==="em")o=s/Ii(e);else if(n==="rem")o=s/Ii(e);else return t;return parseFloat(o.toFixed(5))+n}}function _I({size:e,grid:t}){const n=e-e%t,i=n+t;return e-n{let c=t+r*l;o!==null&&(c=o(c)),a[`@media (min-width:${l}px)`]={[e]:`${Math.round(c*1e4)/1e4}${i}`}}),a}function MI(e,t={}){const{breakpoints:n=["sm","md","lg"],disableAlign:i=!1,factor:s=2,variants:o=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,a={...e};a.typography={...a.typography};const r=a.typography,l=wI(r.htmlFontSize),c=n.map(u=>a.breakpoints.values[u]);return o.forEach(u=>{const f=r[u];if(!f)return;const d=parseFloat(l(f.fontSize,"rem"));if(d<=1)return;const h=d,p=1+(h-1)/s;let{lineHeight:g}=f;if(!Zw(g)&&!i)throw new Error(kc(6));Zw(g)||(g=parseFloat(l(g,"rem"))/parseFloat(d));let y=null;i||(y=v=>_I({size:v,grid:TI({pixels:4,lineHeight:g,htmlFontSize:r.htmlFontSize})})),r[u]={...f,...kI({cssProperty:"fontSize",min:p,max:h,unit:"rem",breakpoints:c,transform:y})}}),a}function SI(){throw new Error(kc(14))}function CI(){throw new Error(kc(15))}function OI(){throw new Error(kc(16))}let Kw=!1;function PI(...e){return Kw||(console.warn(["MUI: The `experimental_extendTheme` has been stabilized.","","You should use `import { extendTheme } from '@mui/material/styles'`"].join(` +`)),Kw=!0),yC(...e)}function AI(){throw new Error(kc(19))}const DI=Object.freeze(Object.defineProperty({__proto__:null,CssVarsProvider:tR,Experimental_CssVarsProvider:nR,StyledEngineProvider:pI,THEME_ID:rR,ThemeProvider:aR,adaptV4Theme:yI,alpha:po,createColorScheme:iR,createMuiTheme:oR,createStyles:xI,createTheme:vC,createTransitions:lR,css:Mc,darken:s1,decomposeColor:sR,duration:bC,easing:uR,emphasize:cR,experimentalStyled:en,experimental_extendTheme:PI,experimental_sx:AI,extendTheme:yC,getContrastRatio:fR,getInitColorSchemeScript:dR,getLuminance:hR,getOverlayAlpha:pR,hexToRgb:gR,hslToRgb:mR,keyframes:Sc,lighten:u1,makeStyles:SI,private_createMixins:vR,private_createTypography:yR,private_excludeVariablesFromRoot:bR,recomposeColor:xR,responsiveFontSizes:MI,rgbToHex:wR,shouldSkipGeneratingVar:_R,styled:en,unstable_createBreakpoints:mC,unstable_createMuiStrictModeTheme:bI,unstable_getUnit:w1,unstable_toUnitless:Ii,useColorScheme:TR,useTheme:rl,useThemeProps:pr,withStyles:CI,withTheme:OI},Symbol.toStringTag,{value:"Module"})),EI={configure:e=>{kR.configure(e)}},RI=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Fr,createChainedFunction:MR,createSvgIcon:ra,debounce:SR,deprecatedPropType:gI,isMuiElement:CR,ownerDocument:zf,ownerWindow:OR,requirePropFactory:mI,setRef:PR,unstable_ClassNameGenerator:EI,unstable_memoTheme:Fa,unstable_useEnhancedEffect:xC,unstable_useId:zl,unsupportedProp:vI,useControlled:rh,useEventCallback:Cc,useForkRef:go},Symbol.toStringTag,{value:"Module"}));function LI(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function II(e,t){e.classList?e.classList.add(t):LI(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Jw(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function FI(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Jw(e.className,t):e.setAttribute("class",Jw(e.className&&e.className.baseVal||"",t))}var $I=function(t,n){return t&&n&&n.split(" ").forEach(function(i){return II(t,i)})},Vg=function(t,n){return t&&n&&n.split(" ").forEach(function(i){return FI(t,i)})},_1=function(e){wC(t,e);function t(){for(var i,s=arguments.length,o=new Array(s),a=0;a{const{orientation:t,classes:n}=e,i={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Un(i,FC,n)},BI=en("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Fa(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),qI=en("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),UI=en("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Bl=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiCollapse"}),{addEndListener:s,children:o,className:a,collapsedSize:r="0px",component:l,easing:c,in:u,onEnter:f,onEntered:d,onEntering:h,onExit:p,onExited:g,onExiting:y,orientation:v="vertical",style:m,timeout:b=bC.standard,TransitionComponent:w=_C,..._}=i,x={...i,orientation:v,collapsedSize:r},k=zI(x),T=rl(),M=DR(),S=je.useRef(null),C=je.useRef(),A=typeof r=="number"?`${r}px`:r,D=v==="horizontal",O=D?"width":"height",R=je.useRef(null),F=go(n,R),P=L=>q=>{if(L){const W=R.current;q===void 0?L(W):L(W,q)}},z=()=>S.current?S.current[D?"clientWidth":"clientHeight"]:0,B=P((L,q)=>{S.current&&D&&(S.current.style.position="absolute"),L.style[O]=A,f&&f(L,q)}),N=P((L,q)=>{const W=z();S.current&&D&&(S.current.style.position="");const{duration:V,easing:te}=Vw({style:m,timeout:b,easing:c},{mode:"enter"});if(b==="auto"){const ee=T.transitions.getAutoHeightDuration(W);L.style.transitionDuration=`${ee}ms`,C.current=ee}else L.style.transitionDuration=typeof V=="string"?V:`${V}ms`;L.style[O]=`${W}px`,L.style.transitionTimingFunction=te,h&&h(L,q)}),j=P((L,q)=>{L.style[O]="auto",d&&d(L,q)}),$=P(L=>{L.style[O]=`${z()}px`,p&&p(L)}),E=P(g),U=P(L=>{const q=z(),{duration:W,easing:V}=Vw({style:m,timeout:b,easing:c},{mode:"exit"});if(b==="auto"){const te=T.transitions.getAutoHeightDuration(q);L.style.transitionDuration=`${te}ms`,C.current=te}else L.style.transitionDuration=typeof W=="string"?W:`${W}ms`;L.style[O]=A,L.style.transitionTimingFunction=V,y&&y(L)}),G=L=>{b==="auto"&&M.start(C.current||0,L),s&&s(R.current,L)};return Ie.jsx(w,{in:u,onEnter:B,onEntered:j,onEntering:N,onExit:$,onExited:E,onExiting:U,addEndListener:G,nodeRef:R,timeout:b==="auto"?null:b,..._,children:(L,q)=>Ie.jsx(BI,{as:l,className:Vr(k.root,a,{entered:k.entered,exited:!u&&A==="0px"&&k.hidden}[L]),style:{[D?"minWidth":"minHeight"]:A,...m},ref:F,...q,ownerState:{...x,state:L},children:Ie.jsx(qI,{ownerState:{...x,state:L},className:k.wrapper,ref:S,children:Ie.jsx(UI,{ownerState:{...x,state:L},className:k.wrapperInner,children:o})})})})});Bl&&(Bl.muiSupportAuto=!0);const WI=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:NI,default:Bl,getCollapseUtilityClass:FC},Symbol.toStringTag,{value:"Module"})),HI=Object.freeze(Object.defineProperty({__proto__:null,default:rs,getPaperUtilityClass:ER,paperClasses:RR},Symbol.toStringTag,{value:"Module"})),VI=Object.freeze(Object.defineProperty({__proto__:null,default:ci,getIconButtonUtilityClass:LR,iconButtonClasses:IR},Symbol.toStringTag,{value:"Module"})),YI=Object.freeze(Object.defineProperty({__proto__:null,default:dr,getTypographyUtilityClass:FR,typographyClasses:pv},Symbol.toStringTag,{value:"Module"})),GI=Object.freeze(Object.defineProperty({__proto__:null,chipClasses:$R,default:jR,getChipUtilityClass:NR},Symbol.toStringTag,{value:"Module"})),XI=Object.freeze(Object.defineProperty({__proto__:null,boxClasses:zR,default:na},Symbol.toStringTag,{value:"Module"})),ZI=Object.freeze(Object.defineProperty({__proto__:null,buttonClasses:BR,default:fi,getButtonUtilityClass:qR},Symbol.toStringTag,{value:"Module"}));function KI(e){return Hn("MuiCard",e)}qn("MuiCard",["root"]);const JI=e=>{const{classes:t}=e;return Un({root:["root"]},KI,t)},QI=en(rs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),eF=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiCard"}),{className:s,raised:o=!1,...a}=i,r={...i,raised:o},l=JI(r);return Ie.jsx(QI,{className:Vr(l.root,s),elevation:o?8:void 0,ref:n,ownerState:r,...a})});function tF(e){return Hn("MuiCardContent",e)}qn("MuiCardContent",["root"]);const nF=e=>{const{classes:t}=e;return Un({root:["root"]},tF,t)},rF=en("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),aF=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiCardContent"}),{className:s,component:o="div",...a}=i,r={...i,component:o},l=nF(r);return Ie.jsx(rF,{as:o,className:Vr(l.root,s),ownerState:r,ref:n,...a})}),iF=ra(Ie.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),oF=ra(Ie.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),lF=ra(Ie.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function $C(e){return Hn("MuiCheckbox",e)}const sF=qn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Bf=sF,uF=e=>{const{classes:t,indeterminate:n,color:i,size:s}=e,o={root:["root",n&&"indeterminate",`color${Fr(i)}`,`size${Fr(s)}`]},a=Un(o,$C,t);return{...t,...a}},cF=en(UR,{shouldForwardProp:e=>WR(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Fr(n.size)}`],n.color!=="default"&&t[`color${Fr(n.color)}`]]}})(Fa(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:po(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(sd()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:po(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(sd()).map(([t])=>({props:{color:t},style:{[`&.${Bf.checked}, &.${Bf.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Bf.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),fF=Ie.jsx(oF,{}),dF=Ie.jsx(iF,{}),hF=Ie.jsx(lF,{}),pF=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiCheckbox"}),{checkedIcon:s=fF,color:o="primary",icon:a=dF,indeterminate:r=!1,indeterminateIcon:l=hF,inputProps:c,size:u="medium",disableRipple:f=!1,className:d,...h}=i,p=r?l:a,g=r?l:s,y={...i,disableRipple:f,color:o,indeterminate:r,size:u},v=uF(y);return Ie.jsx(cF,{type:"checkbox",inputProps:{"data-indeterminate":r,...c},icon:je.cloneElement(p,{fontSize:p.props.fontSize??u}),checkedIcon:je.cloneElement(g,{fontSize:g.props.fontSize??u}),ownerState:y,ref:n,className:Vr(v.root,d),disableRipple:f,...h,classes:v})}),gF=pF,mF=Object.freeze(Object.defineProperty({__proto__:null,checkboxClasses:Bf,default:gF,getCheckboxUtilityClass:$C},Symbol.toStringTag,{value:"Module"}));function jC(e){return Hn("MuiCircularProgress",e)}const vF=qn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),yF=vF,to=44,vv=Sc` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`,yv=Sc` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`,bF=typeof vv!="string"?Mc` + animation: ${vv} 1.4s linear infinite; + `:null,xF=typeof yv!="string"?Mc` + animation: ${yv} 1.4s ease-in-out infinite; + `:null,wF=e=>{const{classes:t,variant:n,color:i,disableShrink:s}=e,o={root:["root",n,`color${Fr(i)}`],svg:["svg"],circle:["circle",`circle${Fr(n)}`,s&&"circleDisableShrink"]};return Un(o,jC,t)},_F=en("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Fr(n.color)}`]]}})(Fa(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:bF||{animation:`${vv} 1.4s linear infinite`}},...Object.entries(e.palette).filter(sd()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),TF=en("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),kF=en("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Fr(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Fa(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:xF||{animation:`${yv} 1.4s ease-in-out infinite`}}]}))),MF=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiCircularProgress"}),{className:s,color:o="primary",disableShrink:a=!1,size:r=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate",...d}=i,h={...i,color:o,disableShrink:a,size:r,thickness:c,value:u,variant:f},p=wF(h),g={},y={},v={};if(f==="determinate"){const m=2*Math.PI*((to-c)/2);g.strokeDasharray=m.toFixed(3),v["aria-valuenow"]=Math.round(u),g.strokeDashoffset=`${((100-u)/100*m).toFixed(3)}px`,y.transform="rotate(-90deg)"}return Ie.jsx(_F,{className:Vr(p.root,s),style:{width:r,height:r,...y,...l},ownerState:h,ref:n,role:"progressbar",...v,...d,children:Ie.jsx(TF,{className:p.svg,ownerState:h,viewBox:`${to/2} ${to/2} ${to} ${to}`,children:Ie.jsx(kF,{className:p.circle,style:g,ownerState:h,cx:to,cy:to,r:(to-c)/2,fill:"none",strokeWidth:c})})})}),NC=MF,SF=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:yF,default:NC,getCircularProgressUtilityClass:jC},Symbol.toStringTag,{value:"Module"}));function CF(e){return Hn("MuiDialog",e)}const Hu=qn("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),OF=je.createContext({}),PF=en(HR,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),AF=e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:s,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${Fr(n)}`],paper:["paper",`paperScroll${Fr(n)}`,`paperWidth${Fr(String(i))}`,s&&"paperFullWidth",o&&"paperFullScreen"]};return Un(a,CF,t)},DF=en(VR,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),EF=en("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Fr(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),RF=en(rs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Fr(n.scroll)}`],t[`paperWidth${Fr(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Fa(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Hu.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Hu.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Hu.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),LF=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiDialog"}),s=rl(),o={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":r,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:f,className:d,disableEscapeKeyDown:h=!1,fullScreen:p=!1,fullWidth:g=!1,maxWidth:y="sm",onBackdropClick:v,onClick:m,onClose:b,open:w,PaperComponent:_=rs,PaperProps:x={},scroll:k="paper",TransitionComponent:T=c1,transitionDuration:M=o,TransitionProps:S,...C}=i,A={...i,disableEscapeKeyDown:h,fullScreen:p,fullWidth:g,maxWidth:y,scroll:k},D=AF(A),O=je.useRef(),R=B=>{O.current=B.target===B.currentTarget},F=B=>{m&&m(B),O.current&&(O.current=null,v&&v(B),b&&b(B,"backdropClick"))},P=zl(r),z=je.useMemo(()=>({titleId:P}),[P]);return Ie.jsx(DF,{className:Vr(D.root,d),closeAfterTransition:!0,components:{Backdrop:PF},componentsProps:{backdrop:{transitionDuration:M,as:c,...u}},disableEscapeKeyDown:h,onClose:b,open:w,ref:n,onClick:F,ownerState:A,...C,children:Ie.jsx(T,{appear:!0,in:w,timeout:M,role:"presentation",...S,children:Ie.jsx(EF,{className:Vr(D.container),onMouseDown:R,ownerState:A,children:Ie.jsx(RF,{as:_,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":P,"aria-modal":l,...x,className:Vr(D.paper,x.className),ownerState:A,children:Ie.jsx(OF.Provider,{value:z,children:f})})})})})});function IF(e){return Hn("MuiDialogActions",e)}qn("MuiDialogActions",["root","spacing"]);const FF=e=>{const{classes:t,disableSpacing:n}=e;return Un({root:["root",!n&&"spacing"]},IF,t)},$F=en("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),jF=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:o=!1,...a}=i,r={...i,disableSpacing:o},l=FF(r);return Ie.jsx($F,{className:Vr(l.root,s),ownerState:r,ref:n,...a})});function NF(e){return Hn("MuiDialogContent",e)}qn("MuiDialogContent",["root","dividers"]);const zF=qn("MuiDialogTitle",["root"]),BF=e=>{const{classes:t,dividers:n}=e;return Un({root:["root",n&&"dividers"]},NF,t)},qF=en("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Fa(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${zF.root} + &`]:{paddingTop:0}}}]}))),UF=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiDialogContent"}),{className:s,dividers:o=!1,...a}=i,r={...i,dividers:o},l=BF(r);return Ie.jsx(qF,{className:Vr(l.root,s),ownerState:r,ref:n,...a})}),WF=Object.freeze(Object.defineProperty({__proto__:null,default:YR,formControlClasses:GR,getFormControlUtilityClasses:XR,useFormControl:f1},Symbol.toStringTag,{value:"Module"})),HF=Object.freeze(Object.defineProperty({__proto__:null,default:ZR,formControlLabelClasses:KR,getFormControlLabelUtilityClasses:JR},Symbol.toStringTag,{value:"Module"}));function zC(e){return Hn("MuiFormGroup",e)}const VF=qn("MuiFormGroup",["root","row","error"]),YF=VF,GF=e=>{const{classes:t,row:n,error:i}=e;return Un({root:["root",n&&"row",i&&"error"]},zC,t)},XF=en("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),ZF=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiFormGroup"}),{className:s,row:o=!1,...a}=i,r=f1(),l=QR({props:i,muiFormControl:r,states:["error"]}),c={...i,row:o,error:l.error},u=GF(c);return Ie.jsx(XF,{className:Vr(u.root,s),ownerState:c,ref:n,...a})}),KF=ZF,JF=Object.freeze(Object.defineProperty({__proto__:null,default:KF,formGroupClasses:YF,getFormGroupUtilityClass:zC},Symbol.toStringTag,{value:"Module"})),QF=Object.freeze(Object.defineProperty({__proto__:null,default:eL,formHelperTextClasses:tL,getFormHelperTextUtilityClasses:nL},Symbol.toStringTag,{value:"Module"}));function BC(e){return Hn("MuiIcon",e)}const e$=qn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),t$=e$,n$=e=>{const{color:t,fontSize:n,classes:i}=e,s={root:["root",t!=="inherit"&&`color${Fr(t)}`,`fontSize${Fr(n)}`]};return Un(s,BC,i)},r$=en("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Fr(n.color)}`],t[`fontSize${Fr(n.fontSize)}`]]}})(Fa(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,variants:[{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography.pxToRem(20)}},{props:{fontSize:"medium"},style:{fontSize:e.typography.pxToRem(24)}},{props:{fontSize:"large"},style:{fontSize:e.typography.pxToRem(36)}},{props:{color:"action"},style:{color:(e.vars||e).palette.action.active}},{props:{color:"disabled"},style:{color:(e.vars||e).palette.action.disabled}},{props:{color:"inherit"},style:{color:void 0}},...Object.entries(e.palette).filter(sd()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),bv=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiIcon"}),{baseClassName:s="material-icons",className:o,color:a="inherit",component:r="span",fontSize:l="medium",...c}=i,u={...i,baseClassName:s,color:a,component:r,fontSize:l},f=n$(u);return Ie.jsx(r$,{as:r,className:Vr(s,"notranslate",f.root,o),ownerState:u,"aria-hidden":!0,ref:n,...c})});bv&&(bv.muiName="Icon");const a$=bv,i$=Object.freeze(Object.defineProperty({__proto__:null,default:a$,getIconUtilityClass:BC,iconClasses:t$},Symbol.toStringTag,{value:"Module"}));function qC(e){return Hn("MuiInputAdornment",e)}const o$=qn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),xv=o$;var Qw;const l$=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fr(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},s$=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:s,size:o,variant:a}=e,r={root:["root",n&&"disablePointerEvents",s&&`position${Fr(s)}`,a,i&&"hiddenLabel",o&&`size${Fr(o)}`]};return Un(r,qC,t)},u$=en("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:l$})(Fa(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${xv.positionStart}&:not(.${xv.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),c$=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiInputAdornment"}),{children:s,className:o,component:a="div",disablePointerEvents:r=!1,disableTypography:l=!1,position:c,variant:u,...f}=i,d=f1()||{};let h=u;u&&d.variant,d&&!h&&(h=d.variant);const p={...i,hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:r,position:c,variant:h},g=s$(p);return Ie.jsx(rL.Provider,{value:null,children:Ie.jsx(u$,{as:a,ownerState:p,className:Vr(g.root,o),ref:n,...f,children:typeof s=="string"&&!l?Ie.jsx(dr,{color:"textSecondary",children:s}):Ie.jsxs(je.Fragment,{children:[c==="start"?Qw||(Qw=Ie.jsx("span",{className:"notranslate",children:"​"})):null,s]})})})}),UC=c$,f$=Object.freeze(Object.defineProperty({__proto__:null,default:UC,getInputAdornmentUtilityClass:qC,inputAdornmentClasses:xv},Symbol.toStringTag,{value:"Module"})),d$=Object.freeze(Object.defineProperty({__proto__:null,default:aL,getInputLabelUtilityClasses:iL,inputLabelClasses:oL},Symbol.toStringTag,{value:"Module"})),h$=Object.freeze(Object.defineProperty({__proto__:null,default:TC,getLinearProgressUtilityClass:lL,linearProgressClasses:sL},Symbol.toStringTag,{value:"Module"})),p$=e=>{const{classes:t,inset:n,primary:i,secondary:s,dense:o}=e;return Un({root:["root",n&&"inset",o&&"dense",i&&s&&"multiline"],primary:["primary"],secondary:["secondary"]},kC,t)},g$=en("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zu.primary}`]:t.primary},{[`& .${zu.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${pv.root}:where(& .${zu.primary})`]:{display:"block"},[`.${pv.root}:where(& .${zu.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),m$=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiListItemText"}),{children:s,className:o,disableTypography:a=!1,inset:r=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f,...d}=i,{dense:h}=je.useContext(uL);let p=l??s,g=u;const y={...i,disableTypography:a,inset:r,primary:!!p,secondary:!!g,dense:h},v=p$(y);return p!=null&&p.type!==dr&&!a&&(p=Ie.jsx(dr,{variant:h?"body2":"body1",className:v.primary,component:c!=null&&c.variant?void 0:"span",...c,children:p})),g!=null&&g.type!==dr&&!a&&(g=Ie.jsx(dr,{variant:"body2",className:v.secondary,color:"textSecondary",...f,children:g})),Ie.jsxs(g$,{className:Vr(v.root,o),ownerState:y,ref:n,...d,children:[p,g]})}),v$=m$,y$=Object.freeze(Object.defineProperty({__proto__:null,default:v$,getListItemTextUtilityClass:kC,listItemTextClasses:zu},Symbol.toStringTag,{value:"Module"})),b$=Object.freeze(Object.defineProperty({__proto__:null,default:cL,getMenuUtilityClass:fL,menuClasses:dL},Symbol.toStringTag,{value:"Module"})),x$=Object.freeze(Object.defineProperty({__proto__:null,default:MC,getMenuItemUtilityClass:hL,menuItemClasses:pL},Symbol.toStringTag,{value:"Module"})),w$=ra(Ie.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),_$=ra(Ie.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),T$=Object.freeze(Object.defineProperty({__proto__:null,default:d1,getSelectUtilityClasses:gL,selectClasses:mL},Symbol.toStringTag,{value:"Module"}));function k$(e){return Hn("MuiSkeleton",e)}qn("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const M$=e=>{const{classes:t,variant:n,animation:i,hasChildren:s,width:o,height:a}=e;return Un({root:["root",n,i,s&&"withChildren",s&&!o&&"fitContent",s&&!a&&"heightAuto"]},k$,t)},wv=Sc` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`,_v=Sc` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`,S$=typeof wv!="string"?Mc` + animation: ${wv} 2s ease-in-out 0.5s infinite; + `:null,C$=typeof _v!="string"?Mc` + &::after { + animation: ${_v} 2s linear 0.5s infinite; + } + `:null,O$=en("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(Fa(({theme:e})=>{const t=w1(e.shape.borderRadius)||"px",n=Ii(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:po(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:i})=>i.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:i})=>i.hasChildren&&!i.width,style:{maxWidth:"fit-content"}},{props:({ownerState:i})=>i.hasChildren&&!i.height,style:{height:"auto"}},{props:{animation:"pulse"},style:S$||{animation:`${wv} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( + 90deg, + transparent, + ${(e.vars||e).palette.action.hover}, + transparent + )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:C$||{"&::after":{animation:`${_v} 2s linear 0.5s infinite`}}}]}})),P$=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiSkeleton"}),{animation:s="pulse",className:o,component:a="span",height:r,style:l,variant:c="text",width:u,...f}=i,d={...i,animation:s,component:a,variant:c,hasChildren:!!f.children},h=M$(d);return Ie.jsx(O$,{as:a,ref:n,className:Vr(h.root,o),ownerState:d,...f,style:{width:u,height:r,...l}})}),A$=Object.freeze(Object.defineProperty({__proto__:null,default:vL,getTooltipUtilityClass:yL,tooltipClasses:bL},Symbol.toStringTag,{value:"Module"})),D$=Object.freeze(Object.defineProperty({__proto__:null,default:h1,getTableUtilityClass:xL,tableClasses:wL},Symbol.toStringTag,{value:"Module"})),E$=Object.freeze(Object.defineProperty({__proto__:null,default:p1,getTableBodyUtilityClass:_L,tableBodyClasses:TL},Symbol.toStringTag,{value:"Module"})),R$=Object.freeze(Object.defineProperty({__proto__:null,default:Ja,getTableCellUtilityClass:kL,tableCellClasses:ML},Symbol.toStringTag,{value:"Module"}));function L$(e){return Hn("MuiTableContainer",e)}qn("MuiTableContainer",["root"]);const I$=e=>{const{classes:t}=e;return Un({root:["root"]},L$,t)},F$=en("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),$$=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiTableContainer"}),{className:s,component:o="div",...a}=i,r={...i,component:o},l=I$(r);return Ie.jsx(F$,{ref:n,as:o,className:Vr(l.root,s),ownerState:r,...a})});function WC(e){return Hn("MuiTableFooter",e)}const j$=qn("MuiTableFooter",["root"]),N$=j$,z$=e=>{const{classes:t}=e;return Un({root:["root"]},WC,t)},B$=en("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),q$={variant:"footer"},e_="tfoot",U$=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiTableFooter"}),{className:s,component:o=e_,...a}=i,r={...i,component:o},l=z$(r);return Ie.jsx(SL.Provider,{value:q$,children:Ie.jsx(B$,{as:o,className:Vr(l.root,s),ref:n,role:o===e_?null:"rowgroup",ownerState:r,...a})})}),W$=U$,H$=Object.freeze(Object.defineProperty({__proto__:null,default:W$,getTableFooterUtilityClass:WC,tableFooterClasses:N$},Symbol.toStringTag,{value:"Module"})),V$=Object.freeze(Object.defineProperty({__proto__:null,default:g1,getTableHeadUtilityClass:CL,tableHeadClasses:OL},Symbol.toStringTag,{value:"Module"})),Y$=Object.freeze(Object.defineProperty({__proto__:null,default:SC,getToolbarUtilityClass:PL,toolbarClasses:AL},Symbol.toStringTag,{value:"Module"})),G$=je.forwardRef(function(t,n){const{backIconButtonProps:i,count:s,disabled:o=!1,getItemAriaLabel:a,nextIconButtonProps:r,onPageChange:l,page:c,rowsPerPage:u,showFirstButton:f,showLastButton:d,slots:h={},slotProps:p={},...g}=t,y=DL(),v=j=>{l(j,0)},m=j=>{l(j,c-1)},b=j=>{l(j,c+1)},w=j=>{l(j,Math.max(0,Math.ceil(s/u)-1))},_=h.firstButton??ci,x=h.lastButton??ci,k=h.nextButton??ci,T=h.previousButton??ci,M=h.firstButtonIcon??w$,S=h.lastButtonIcon??_$,C=h.nextButtonIcon??EL,A=h.previousButtonIcon??RL,D=y?x:_,O=y?k:T,R=y?T:k,F=y?_:x,P=y?p.lastButton:p.firstButton,z=y?p.nextButton:p.previousButton,B=y?p.previousButton:p.nextButton,N=y?p.firstButton:p.lastButton;return Ie.jsxs("div",{ref:n,...g,children:[f&&Ie.jsx(D,{onClick:v,disabled:o||c===0,"aria-label":a("first",c),title:a("first",c),...P,children:y?Ie.jsx(S,{...p.lastButtonIcon}):Ie.jsx(M,{...p.firstButtonIcon})}),Ie.jsx(O,{onClick:m,disabled:o||c===0,color:"inherit","aria-label":a("previous",c),title:a("previous",c),...z??i,children:y?Ie.jsx(C,{...p.nextButtonIcon}):Ie.jsx(A,{...p.previousButtonIcon})}),Ie.jsx(R,{onClick:b,disabled:o||(s!==-1?c>=Math.ceil(s/u)-1:!1),color:"inherit","aria-label":a("next",c),title:a("next",c),...B??r,children:y?Ie.jsx(A,{...p.previousButtonIcon}):Ie.jsx(C,{...p.nextButtonIcon})}),d&&Ie.jsx(F,{onClick:w,disabled:o||c>=Math.ceil(s/u)-1,"aria-label":a("last",c),title:a("last",c),...N,children:y?Ie.jsx(M,{...p.firstButtonIcon}):Ie.jsx(S,{...p.lastButtonIcon})})]})});function HC(e){return Hn("MuiTablePagination",e)}const X$=qn("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Rl=X$;var t_;const Z$=en(Ja,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(Fa(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),K$=en(SC,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Rl.actions}`]:t.actions,...t.toolbar})})(Fa(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Rl.actions}`]:{flexShrink:0,marginLeft:20}}))),J$=en("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Q$=en("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(Fa(({theme:e})=>({...e.typography.body2,flexShrink:0}))),ej=en(d1,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Rl.selectIcon}`]:t.selectIcon,[`& .${Rl.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Rl.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),tj=en(MC,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),nj=en("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(Fa(({theme:e})=>({...e.typography.body2,flexShrink:0})));function rj({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function aj(e){return`Go to ${e} page`}const ij=e=>{const{classes:t}=e;return Un({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},HC,t)},oj=je.forwardRef(function(t,n){const i=_a({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=G$,backIconButtonProps:o,className:a,colSpan:r,component:l=Ja,count:c,disabled:u=!1,getItemAriaLabel:f=aj,labelDisplayedRows:d=rj,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:p,onPageChange:g,onRowsPerPageChange:y,page:v,rowsPerPage:m,rowsPerPageOptions:b=[10,25,50,100],SelectProps:w={},showFirstButton:_=!1,showLastButton:x=!1,slotProps:k={},slots:T={},...M}=i,S=i,C=ij(S),A=(k==null?void 0:k.select)??w,D=A.native?"option":tj;let O;(l===Ja||l==="td")&&(O=r||1e3);const R=zl(A.id),F=zl(A.labelId),P=()=>c===-1?(v+1)*m:m===-1?c:Math.min(c,(v+1)*m);return Ie.jsx(Z$,{colSpan:O,ref:n,as:l,ownerState:S,className:Vr(C.root,a),...M,children:Ie.jsxs(K$,{className:C.toolbar,children:[Ie.jsx(J$,{className:C.spacer}),b.length>1&&Ie.jsx(Q$,{className:C.selectLabel,id:F,children:h}),b.length>1&&Ie.jsx(ej,{variant:"standard",...!A.variant&&{input:t_||(t_=Ie.jsx(LL,{}))},value:m,onChange:y,id:R,labelId:F,...A,classes:{...A.classes,root:Vr(C.input,C.selectRoot,(A.classes||{}).root),select:Vr(C.select,(A.classes||{}).select),icon:Vr(C.selectIcon,(A.classes||{}).icon)},disabled:u,children:b.map(z=>je.createElement(D,{...!IL(D)&&{ownerState:S},className:C.menuItem,key:z.label?z.label:z,value:z.value?z.value:z},z.label?z.label:z))}),Ie.jsx(nj,{className:C.displayedRows,children:d({from:c===0?0:v*m+1,to:P(),count:c===-1?-1:c,page:v})}),Ie.jsx(s,{className:C.actions,backIconButtonProps:o,count:c,nextIconButtonProps:p,onPageChange:g,page:v,rowsPerPage:m,showFirstButton:_,showLastButton:x,slotProps:k.actions,slots:T.actions,getItemAriaLabel:f,disabled:u})]})})}),lj=oj,sj=Object.freeze(Object.defineProperty({__proto__:null,default:lj,getTablePaginationUtilityClass:HC,tablePaginationClasses:Rl},Symbol.toStringTag,{value:"Module"})),uj=Object.freeze(Object.defineProperty({__proto__:null,default:Ju,getTableRowUtilityClass:FL,tableRowClasses:$L},Symbol.toStringTag,{value:"Module"})),cj=Object.freeze(Object.defineProperty({__proto__:null,default:jL,getTableSortLabelUtilityClass:NL,tableSortLabelClasses:zL},Symbol.toStringTag,{value:"Module"})),fj=Object.freeze(Object.defineProperty({__proto__:null,default:BL,getTextFieldUtilityClass:qL,textFieldClasses:UL},Symbol.toStringTag,{value:"Module"})),dj=ra(Ie.jsx("path",{d:"m14 7-5 5 5 5z"}),"ArrowLeft"),hj=ra(Ie.jsx("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),pj=ra(Ie.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLessSharp"),gj=ra(Ie.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMoreSharp"),mj=ra(Ie.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");class vj{constructor(){eo(this,"at",0);eo(this,"ch","");eo(this,"text","");eo(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,n,i="",s;if(this.ch==='"')for(;this.next();){if(this.ch==='"')return this.next(),i;if(this.ch==="\\")if(this.next(),this.ch==="u"){for(s=0,n=0;n<4&&(t=Number.parseInt(this.next(),16),!!isFinite(t));n++)s=s*16+t;i+=String.fromCharCode(s)}else if(this.escapee[this.ch])i+=this.escapee[this.ch];else break;else i+=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,n={};if(this.ch==="{"){if(this.check("{"),this.white(),this.ch==="}")return this.check("}"),n;for(;this.ch;){if(t=this.string(),this.white(),this.check(":"),Object.hasOwnProperty.call(n,t)&&this.error('Duplicate key "'+t+'"'),n[t]=this.value(),this.white(),this.ch==="}")return this.check("}"),n;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,n){let i;return this.text=t,this.at=0,this.ch=" ",i=this.value(),this.white(),this.ch&&this.error("Syntax error"),n!==void 0?function s(o,a){var r,l,c=o[a];if(c&&typeof c=="object")for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(l=s(c,r),l!==void 0?c[r]=l:delete c[r]);return n.call(o,a,c)}({"":i},""):i}}const i7e=e=>new vj().parse(e);var qf=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(qf||{}),VC={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(n,i){e.exports=i()})(self,function(){return function(){var n={98847:function(o,a,r){var l=r(71828),c={"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 u in c){var f=u.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");l.addStyleRule(f,c[u])}},98222:function(o,a,r){o.exports=r(82887)},27206:function(o,a,r){o.exports=r(60822)},5224:function(o,a,r){o.exports=r(83832)},59509:function(o,a,r){o.exports=r(72201)},49866:function(o,a,r){o.exports=r(99442)},19548:function(o,a,r){o.exports=r(8729)},61039:function(o,a,r){o.exports=r(14382)},24296:function(o,a,r){o.exports=r(43102)},58872:function(o,a,r){o.exports=r(92165)},65591:function(o,a,r){o.exports=r(36071)},69738:function(o,a,r){o.exports=r(43905)},92650:function(o,a,r){o.exports=r(35902)},73434:function(o,a,r){o.exports=r(94507)},760:function(o,a,r){var l=r(19548);l.register([r(27206),r(5224),r(58872),r(65591),r(69738),r(92650),r(49866),r(25743),r(6197),r(73434),r(54201),r(98222),r(61039),r(24296),r(66398),r(59509)]),o.exports=l},54201:function(o,a,r){o.exports=r(58810)},25743:function(o,a,r){o.exports=r(52979)},66398:function(o,a,r){o.exports=r(32275)},6197:function(o,a,r){o.exports=r(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,r){var l=r(82884),c=r(41940),u=r(85555),f=r(44467).templatedArray;r(24695),o.exports=f("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:c({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",u.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",u.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",u.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",u.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:c({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(o,a,r){var l=r(71828),c=r(89298),u=r(92605).draw;function f(h){var p=h._fullLayout;l.filterVisible(p.annotations).forEach(function(g){var y=c.getFromId(h,g.xref),v=c.getFromId(h,g.yref),m=c.getRefType(g.xref),b=c.getRefType(g.yref);g._extremes={},m==="range"&&d(g,y),b==="range"&&d(g,v)})}function d(h,p){var g,y=p._id,v=y.charAt(0),m=h[v],b=h["a"+v],w=h[v+"ref"],_=h["a"+v+"ref"],x=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,A=3*h.startarrowsize*h.arrowwidth||0,D=A+T,O=A-T;if(_===w){var R=c.findExtremes(p,[p.r2c(m)],{ppadplus:S,ppadminus:C}),F=c.findExtremes(p,[p.r2c(b)],{ppadplus:Math.max(x,D),ppadminus:Math.max(k,O)});g={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,g=c.findExtremes(p,[p.r2c(m)],{ppadplus:Math.max(x,S,D),ppadminus:Math.max(k,C,O)});h._extremes[y]=g}o.exports=function(h){var p=h._fullLayout;if(l.filterVisible(p.annotations).length&&h._fullData.length)return l.syncOrAsync([u,f],h)}},44317:function(o,a,r){var l=r(71828),c=r(73972),u=r(44467).arrayEditor;function f(h,p){var g,y,v,m,b,w,_,x=h._fullLayout.annotations,k=[],T=[],M=[],S=(p||[]).length;for(g=0;g0||g.explicitOff.length>0},onClick:function(h,p){var g,y,v=f(h,p),m=v.on,b=v.off.concat(v.explicitOff),w={},_=h._fullLayout.annotations;if(m.length||b.length){for(g=0;g.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var we=!1,ke=["x","y"],Pe=0;Pe1)&&(Ye===qe?((Je=at.r2fraction(S["a"+We]))<0||Je>1)&&(we=!0):we=!0),Ee=at._offset+at.r2p(S[We]),Fe=.5}else{var ut=kt==="domain";We==="x"?(Re=S[We],Ee=ut?at._offset+at._length*Re:Ee=z.l+z.w*Re):(Re=1-S[We],Ee=ut?at._offset+at._length*Re:Ee=z.t+z.h*Re),Fe=S.showarrow?.5:Re}if(S.showarrow){it.head=Ee;var pt=S["a"+We];if(ze=ct*be(.5,S.xanchor)-bt*be(.5,S.yanchor),Ye===qe){var It=h.getRefType(Ye);It==="domain"?(We==="y"&&(pt=1-pt),it.tail=at._offset+at._length*pt):It==="paper"?We==="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=ze}else it.tail=Ee+pt,De=ze+pt;it.text=it.tail+ze;var Mt=P[We==="x"?"width":"height"];if(qe==="paper"&&(it.head=f.constrain(it.head,1,Mt-1)),Ye==="pixel"){var Bt=-Math.max(it.tail-3,it.text),wt=Math.min(it.tail+3,it.text)-Mt;Bt>0?(it.tail+=Bt,it.text+=Bt):wt>0&&(it.tail-=wt,it.text-=wt)}it.tail+=Qe,it.head+=Qe}else De=ze=Be*be(Fe,Ne),it.text=Ee+ze;it.text+=Qe,ze+=Qe,De+=Qe,S["_"+We+"padplus"]=Be/2+De,S["_"+We+"padminus"]=Be/2-De,S["_"+We+"size"]=Be,S["_"+We+"shift"]=ze}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(g.setClipUrl,X?U:null,M);else{var Ve=Y+_e-ye.top,Ue=Y+ve-ye.left;se.call(v.positionText,Ue,Ve).call(g.setClipUrl,X?U:null,M)}re.select("rect").call(g.setRect,Y,Y,de,xe),Z.call(g.setRect,H/2,H/2,ue-H,ge-H),ee.call(g.setTranslate,Math.round(G.x.text-ue/2),Math.round(G.y.text-ge/2)),W.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,$t=f.rotationXYMatrix(L,Vt,St),Dt=f.apply2DTransform($t),gt=f.apply2DTransform2($t),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(on,un){return on^!!f.segmentsIntersect(st,mt,st+1e6,mt+1e6,un[0],un[1],un[2],un[3])},!1)){Ot.forEach(function(on){var un=f.segmentsIntersect(tt,Ft,st,mt,on[0],on[1],on[2],on[3]);un&&(tt=un.x,Ft=un.y)});var Pt=S.arrowwidth,Lt=S.arrowcolor,Rt=S.arrowside,Nt=q.append("g").style({opacity:p.opacity(Lt)}).classed("annotation-arrow-g",!0),Yt=Nt.append("path").attr("d","M"+tt+","+Ft+"L"+st+","+mt).style("stroke-width",Pt+"px").call(p.stroke,p.rgb(Lt));if(_(Yt,Rt,S),B.annotationPosition&&Yt.node().parentNode&&!A){var Xt=st,zt=mt;if(S.standoff){var Ut=Math.sqrt(Math.pow(st-tt,2)+Math.pow(mt-Ft,2));Xt+=S.standoff*(tt-st)/Ut,zt+=S.standoff*(Ft-mt)/Ut}var nn,fn,sn=Nt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(tt-Xt)+","+(Ft-zt),transform:d(Xt,zt)}).style("stroke-width",Pt+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)");b.init({element:sn.node(),gd:M,prepFn:function(){var on=g.getTranslate(ee);nn=on.x,fn=on.y,D&&D.autorange&&j(D._name+".autorange",!0),O&&O.autorange&&j(O._name+".autorange",!0)},moveFn:function(on,un){var Zt=Dt(nn,fn),gn=Zt[0]+on,rn=Zt[1]+un;ee.call(g.setTranslate,gn,rn),$("x",k(D,on,"x",z,S)),$("y",k(O,un,"y",z,S)),S.axref===S.xref&&$("ax",k(D,on,"ax",z,S)),S.ayref===S.yref&&$("ay",k(O,un,"ay",z,S)),Nt.attr("transform",d(on,un)),W.attr({transform:"rotate("+L+","+gn+","+rn+")"})},doneFn:function(){c.call("_guiRelayout",M,E());var on=document.querySelector(".js-notes-box-panel");on&&on.redraw(on.selectedObj)}})}}};S.showarrow&&Ge(0,0),V&&b.init({element:ee.node(),gd:M,prepFn:function(){Ze=W.attr("transform")},moveFn:function(Ke,nt){var st="pointer";if(S.showarrow)S.axref===S.xref?$("ax",k(D,Ke,"ax",z,S)):$("ax",S.ax+Ke),S.ayref===S.yref?$("ay",k(O,nt,"ay",z.w,S)):$("ay",S.ay+nt),Ge(Ke,nt);else{if(A)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,$t=S.y-(S._yshift+S.yshift)/z.h-St/2;tt=b.align($t-nt/z.h,St,0,1,S.yanchor)}$("x",mt),$("y",tt),D&&O||(st=b.getCursor(D?.5:mt,O?.5:tt,S.xanchor,S.yanchor))}W.attr({transform:d(Ke,nt)+Ze}),m(ee,st)},clickFn:function(Ke,nt){S.captureevents&&M.emit("plotly_clickannotation",pe(nt))},doneFn:function(){m(ee),c.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,A=y.indexOf("end")>=0,D=k.backoff*M+v.standoff,O=T.backoff*S+v.startstandoff;if(x.nodeName==="line"){m={x:+g.attr("x1"),y:+g.attr("y1")},b={x:+g.attr("x2"),y:+g.attr("y2")};var R=m.x-b.x,F=m.y-b.y;if(_=(w=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 P=D*Math.cos(w),z=D*Math.sin(w);b.x+=P,b.y+=z,g.attr({x2:b.x,y2:b.y})}if(O){if(O*O>R*R+F*F)return void q();var B=O*Math.cos(w),N=O*Math.sin(w);m.x-=B,m.y-=N,g.attr({x1:m.x,y1:m.y})}}else if(x.nodeName==="path"){var j=x.getTotalLength(),$="";if(j1){v=!0;break}}v?f.fullLayout._infolayer.select(".annotation-"+f.id+'[data-index="'+g+'"]').remove():(y._pdata=c(f.glplot.cameraParams,[d.xaxis.r2l(y.x)*h[0],d.yaxis.r2l(y.y)*h[1],d.zaxis.r2l(y.z)*h[2]]),l(f.graphDiv,y,g,f.id,y._xa,y._ya))}}},2468:function(o,a,r){var l=r(73972),c=r(71828);o.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:r(26997)}}},layoutAttributes:r(26997),handleDefaults:r(20226),includeBasePlot:function(u,f){var d=l.subplotsRegistry.gl3d;if(d)for(var h=d.attrRegex,p=Object.keys(u),g=0;g=0)))return y;if(_===3)b[_]>1&&(b[_]=1);else if(b[_]>=1)return y}var x=Math.round(255*b[0])+", "+Math.round(255*b[1])+", "+Math.round(255*b[2]);return w?"rgba("+x+", "+b[3]+")":"rgb("+x+")"}f.tinyRGB=function(y){var v=y.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},f.rgb=function(y){return f.tinyRGB(l(y))},f.opacity=function(y){return y?l(y).getAlpha():0},f.addOpacity=function(y,v){var m=l(y).toRgb();return"rgba("+Math.round(m.r)+", "+Math.round(m.g)+", "+Math.round(m.b)+", "+v+")"},f.combine=function(y,v){var m=l(y).toRgb();if(m.a===1)return l(y).toRgbString();var b=l(v||p).toRgb(),w=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:w.r*(1-m.a)+m.r*m.a,g:w.g*(1-m.a)+m.g*m.a,b:w.b*(1-m.a)+m.b*m.a};return l(_).toRgbString()},f.contrast=function(y,v,m){var b=l(y);return b.getAlpha()!==1&&(b=l(f.combine(y,p))),(b.isDark()?v?b.lighten(v):p:m?b.darken(m):h).toString()},f.stroke=function(y,v){var m=l(v);y.style({stroke:f.tinyRGB(m),"stroke-opacity":m.getAlpha()})},f.fill=function(y,v){var m=l(v);y.style({fill:f.tinyRGB(m),"fill-opacity":m.getAlpha()})},f.clean=function(y){if(y&&typeof y=="object"){var v,m,b,w,_=Object.keys(y);for(v=0;v<_.length;v++)if(w=y[b=_[v]],b.substr(b.length-5)==="color")if(Array.isArray(w))for(m=0;m0?wt>=Ze:wt<=Ze));ve++)wt>Ke&&wt0?wt>=Ze:wt<=Ze));ve++)wt>Bt[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?[ze+Y/se.h,ze+we-Y/se.h]:[ze+Q/se.w,ze+we-Q/se.w],qe.setScale(),N.attr("transform",g(Math.round(se.l),Math.round(se.t)));var Be,Ne=N.select("."+O.cbtitleunshift).attr("transform",g(-Math.round(se.l),-Math.round(se.t))),Qe=qe.ticklabelposition,it=qe.title.font.size,kt=N.select("."+O.cbaxis),Je=0,ut=0;function pt(It,Mt){var Bt={propContainer:qe,propName:j._propPrefix+"title",traceIndex:j._traceIndex,_meta:j._meta,placeholder:le._dfltTitle.colorbar,containerGroup:N.select("."+O.cbtitle)},wt=It.charAt(0)==="h"?It.substr(1):"h"+It;N.selectAll("."+wt+",."+wt+"-math-group").remove(),w.draw($,It,y(Bt,Mt||{}))}return p.syncOrAsync([u.previousPromises,function(){var It,Mt;(E&&Ye||!E&&!Ye)&&(Oe==="top"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Pe*(1-ze-we)+3+.75*it),Oe==="bottom"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Pe*(1-ze)-3-.25*it),Oe==="right"&&(Mt=Y+se.t+Pe*X+3+.75*it,It=Q+se.l+ke*ze),pt(qe._id+"title",{attributes:{x:It,y:Mt,"text-anchor":E?"start":"middle"}}))},function(){if(!E&&!Ye||E&&Ye){var It,Mt=N.select("."+O.cbtitle),Bt=Mt.select("text"),wt=[-W/2,W/2],ve=Mt.select(".h"+qe._id+"title-math-group").node(),_e=15.6;if(Bt.node()&&(_e=parseInt(Bt.node().style.fontSize,10)*C),ve?(It=m.bBox(ve),ut=It.width,(Je=It.height)>_e&&(wt[1]-=(Je-_e)/2)):Bt.node()&&!Bt.classed(O.jsPlaceholder)&&(It=m.bBox(Bt.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(Bt);wt[1]+=(1-Ve)*_e}Mt.attr("transform",g(wt[0],wt[1])),qe.setScale()}}else ut&&(Oe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Mt.attr("transform",g(wt[0],wt[1])),qe.setScale())}N.selectAll("."+O.cbfills+",."+O.cblines).attr("transform",E?g(0,Math.round(se.h*(1-qe.domain[1]))):g(Math.round(se.w*qe.domain[0]),0)),kt.attr("transform",E?g(0,Math.round(-se.t)):g(Math.round(-se.l),0));var Ue=N.select("."+O.cbfills).selectAll("rect."+O.cbfill).attr("style","").data(de);Ue.enter().append("rect").classed(O.cbfill,!0).attr("style",""),Ue.exit().remove();var Ze=Me.map(qe.c2p).map(Math.round).sort(function(mt,tt){return mt-tt});Ue.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)m.gradient(Vt,$,j._id,E?"vertical":"horizontalreversed",j._fillgradient,"fill");else{var St=ye(mt).replace("e-","");Vt.attr("fill",c(St).toHexString())}});var Ge=N.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(m.lineGroupStyle,Te.width,ce(mt),Te.dash)}),kt.selectAll("g."+qe._id+"tick,path").remove();var Ke=Ee+ue+(W||0)/2-(j.ticks==="outside"?1:0),nt=d.calcTicks(qe),st=d.getTickSigns(qe)[2];return d.drawTicks($,qe,{vals:qe.ticks==="inside"?d.clipEnds(qe,nt):nt,layer:kt,path:d.makeTickPath(qe,Ke,st),transFn:d.makeTransTickFn(qe)}),d.drawLabels($,qe,{vals:nt,layer:kt,transFn:d.makeTransTickLabelFn(qe),labelFns:d.makeLabelFns(qe,Ke)})},function(){if(E&&!Ye||!E&&Ye){var It,Mt,Bt=qe.position||0,wt=qe._offset+qe._length/2;if(Oe==="right")Mt=wt,It=se.l+ke*Bt+10+it*(qe.showticklabels?1:.5);else if(It=wt,Oe==="bottom"&&(Mt=se.t+Pe*Bt+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+Pe*Bt+10-ue-C*it*ve}pt((E?"h":"v")+qe._id+"title",{avoid:{selection:l.select($).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}})}},u.previousPromises,function(){var It,Mt=ue+W/2;Qe.indexOf("inside")===-1&&(It=m.bBox(kt.node()),Mt+=E?It.width:It.height),Be=Ne.select("text");var Bt=0,wt=E&&Oe==="top",ve=!E&&Oe==="right",_e=0;if(Be.node()&&!Be.classed(O.jsPlaceholder)){var Ve,Ue=Ne.select(".h"+qe._id+"title-math-group").node();Ue&&(E&&Ye||!E&&!Ye)?(Bt=(It=m.bBox(Ue)).width,Ve=It.height):(Bt=(It=m.bBox(Ne.node())).right-se.l-(E?Ee:We),Ve=It.bottom-se.t-(E?We:Ee),E||Oe!=="top"||(Mt+=It.height,_e=It.height)),ve&&(Be.attr("transform",g(Bt/2+it/2,0)),Bt*=2),Mt=Math.max(Mt,E?Bt:Ve)}var Ze=2*(E?Q:Y)+Mt+V+W/2,Ge=0;!E&&Se.text&&H==="bottom"&&X<=0&&(Ze+=Ge=Ze/2,_e+=Ge),le._hColorbarMoveTitle=Ge,le._hColorbarMoveCBTitle=_e;var Ke=V+W,nt=(E?Ee:We)-Ke/2-(E?Q:0),st=(E?We:Ee)-(E?be:Y+_e-Ge);N.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(Bt-10,0):0;N.selectAll("."+O.cboutline).attr("x",(E?Ee:We+Q)+mt).attr("y",(E?We+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":W});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,N.attr("transform",g(tt,Ft)),!E&&(V||c(te).getAlpha()&&!c.equals(le.paper_bgcolor,te))){var Vt=kt.selectAll("text"),St=Vt[0].length,$t=N.select("."+O.cbbg).node(),Dt=m.bBox($t),gt=m.getTranslate(N);Vt.each(function(Rt,Nt){var Yt=St-1;if(Nt===0||Nt===Yt){var Xt,zt=m.bBox(this),Ut=m.getTranslate(this);if(Nt===Yt){var nn=zt.right+Ut.x;(Xt=Dt.right+gt.x+We-V-2+Z-nn)>0&&(Xt=0)}else if(Nt===0){var fn=zt.left+Ut.x;(Xt=Dt.left+gt.x+We+V+2-fn)<0&&(Xt=0)}Xt&&(St<3?this.setAttribute("transform","translate("+Xt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ht={},yt=A[ee],qt=D[ee],Et=A[H],jt=D[H],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+U*Et,ht.yb=X-U*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+U*yt,ht.xr=Z-U*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",Pt=j.x<.5?"l":"r";$._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?u.autoMargin($,j._id,ht):ie?$._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]:re||E?$._fullLayout._reservedMargin[j._id][Pt]=Lt[Pt]:$._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]}],$)}(z,P,R);B&&B.then&&(R._promises||[]).push(B),R._context.edits.colorbarPosition&&function(N,j,$){var E,U,G,L=j.orientation==="v",q=$._fullLayout._size;h.init({element:N.node(),gd:$,prepFn:function(){E=N.attr("transform"),v(N)},moveFn:function(W,V){N.attr("transform",E+g(W,V)),U=h.align((L?j._uFrac:j._vFrac)+W/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(U,G,j.xanchor,j.yanchor);v(N,te)},doneFn:function(){if(v(N),U!==void 0&&G!==void 0){var W={};W[j._propPrefix+"x"]=U,W[j._propPrefix+"y"]=G,j._traceIndex!==void 0?f.call("_guiRestyle",$,W,j._traceIndex):f.call("_guiRelayout",$,W)}}})}(z,P,R)}),F.exit().each(function(P){u.autoMargin(R,P._id)}).remove(),F.order()}}},76228:function(o,a,r){var l=r(71828);o.exports=function(c){return l.isPlainObject(c.colorbar)}},12311:function(o,a,r){o.exports={moduleType:"component",name:"colorbar",attributes:r(63583),supplyDefaults:r(62499),draw:r(98981).draw,hasColorbar:r(76228)}},50693:function(o,a,r){var l=r(63583),c=r(30587).counter,u=r(78607),f=r(63282).scales;function d(h){return"`"+h+"`"}u(f),o.exports=function(h,p){h=h||"";var g,y=(p=p||{}).cLetter||"c",v=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:h==="marker.line"),m="showScaleDflt"in p?p.showScaleDflt:y==="z",b=typeof p.colorscaleDflt=="string"?f[p.colorscaleDflt]:null,w=p.editTypeOverride||"",_=h?h+".":"";"colorAttr"in p?(g=p.colorAttr,p.colorAttr):d(_+(g={z:"z",c:"color"}[y]));var x=y+"auto",k=y+"min",T=y+"max",M=y+"mid",S={};S[k]=S[T]=void 0;var C={};C[x]=!1;var A={};return g==="color"&&(A.color={valType:"color",arrayOk:!0,editType:w||"style"},p.anim&&(A.color.anim=!0)),A[x]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:S},A[k]={valType:"number",dflt:null,editType:w||"plot",impliedEdits:C},A[T]={valType:"number",dflt:null,editType:w||"plot",impliedEdits:C},A[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:S},A.colorscale={valType:"colorscale",editType:"calc",dflt:b,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:p.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(A.showscale={valType:"boolean",dflt:m,editType:"calc"},A.colorbar=l),p.noColorAxis||(A.coloraxis={valType:"subplotid",regex:c("coloraxis"),dflt:null,editType:"calc"}),A}},78803:function(o,a,r){var l=r(92770),c=r(71828),u=r(52075).extractOpts;o.exports=function(f,d,h){var p,g=f._fullLayout,y=h.vals,v=h.containerStr,m=v?c.nestedProperty(d,v).get():d,b=u(m),w=b.auto!==!1,_=b.min,x=b.max,k=b.mid,T=function(){return c.aggNums(Math.min,null,y)},M=function(){return c.aggNums(Math.max,null,y)};_===void 0?_=T():w&&(_=m._colorAx&&l(_)?Math.min(_,T()):T()),x===void 0?x=M():w&&(x=m._colorAx&&l(x)?Math.max(x,M()):M()),w&&k!==void 0&&(x-k>k-_?_=k-(x-k):x-k=0?g.colorscale.sequential:g.colorscale.sequentialminus,b._sync("colorscale",p))}},33046:function(o,a,r){var l=r(71828),c=r(52075).hasColorscale,u=r(52075).extractOpts;o.exports=function(f,d){function h(w,_){var x=w["_"+_];x!==void 0&&(w[_]=x)}function p(w,_){var x=_.container?l.nestedProperty(w,_.container).get():w;if(x)if(x.coloraxis)x._colorAx=d[x.coloraxis];else{var k=u(x),T=k.auto;(T||k.min===void 0)&&h(x,_.min),(T||k.max===void 0)&&h(x,_.max),k.autocolorscale&&h(x,"colorscale")}}for(var g=0;g=0;T--,M++){var S=_[T];k[M]=[1-S[0],S[1]]}return k}function b(_,x){x=x||{};for(var k=_.domain,T=_.range,M=T.length,S=new Array(M),C=0;C1.3333333333333333-h?d:h}},70461:function(o,a,r){var l=r(71828),c=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];o.exports=function(u,f,d,h){return u=d==="left"?0:d==="center"?1:d==="right"?2:l.constrain(Math.floor(3*u),0,2),f=h==="bottom"?0:h==="middle"?1:h==="top"?2:l.constrain(Math.floor(3*f),0,2),c[f][u]}},64505:function(o,a){a.selectMode=function(r){return r==="lasso"||r==="select"},a.drawMode=function(r){return r==="drawclosedpath"||r==="drawopenpath"||r==="drawline"||r==="drawrect"||r==="drawcircle"},a.openMode=function(r){return r==="drawline"||r==="drawopenpath"},a.rectMode=function(r){return r==="select"||r==="drawline"||r==="drawrect"||r==="drawcircle"},a.freeMode=function(r){return r==="lasso"||r==="drawclosedpath"||r==="drawopenpath"},a.selectingOrDrawing=function(r){return a.freeMode(r)||a.rectMode(r)}},28569:function(o,a,r){var l=r(48956),c=r(57035),u=r(38520),f=r(71828).removeElement,d=r(85555),h=o.exports={};h.align=r(92807),h.getCursor=r(70461);var p=r(26041);function g(){var v=document.createElement("div");v.className="dragcover";var m=v.style;return m.position="fixed",m.left=0,m.right=0,m.top=0,m.bottom=0,m.zIndex=999999999,m.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 m,b,w,_,x,k,T,M,S=v.gd,C=1,A=S._context.doubleClickDelay,D=v.element;S._mouseDownTime||(S._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=R,u?(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,N){return Math.abs(z)A&&(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 N=y(z);(B=document.createEvent("MouseEvents")).initMouseEvent("click",z.bubbles,z.cancelable,z.view,z.detail,z.screenX,z.screenY,N[0],N[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=g},26041:function(o,a,r){var l=r(11086),c=r(79990),u=r(24401).getGraphDiv,f=r(26675),d=o.exports={};d.wrapped=function(h,p,g){(h=u(h))._fullLayout&&c.clear(h._fullLayout._uid+f.HOVERID),d.raw(h,p,g)},d.raw=function(h,p){var g=h._fullLayout,y=h._hoverdata;p||(p={}),p.target&&!h._dragged&&l.triggerHandler(h,"plotly_beforehover",p)===!1||(g._hoverlayer.selectAll("g").remove(),g._hoverlayer.selectAll("line").remove(),g._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,r){var l=r(39898),c=r(71828),u=c.numberFormat,f=r(92770),d=r(84267),h=r(73972),p=r(7901),g=r(21081),y=c.strTranslate,v=r(63893),m=r(77922),b=r(18783).LINE_SPACING,w=r(37822).DESELECTDIM,_=r(34098),x=r(39984),k=r(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){c.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!!(f(de)&&f(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&&f(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=r(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 A(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(f(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=u("~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),Pe=Y(ce,J);ye.attr("d",A(we,be,ke,Pe))}var Ee,De,Re,Fe=!1;if(ce.so)Re=ge.outlierwidth,De=ge.outliercolor,Ee=ue.outliercolor;else{var ze=(ge||{}).width;Re=(ce.mlw+1||ze+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,De="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):c.isArrayOrTypedArray(ge.color)?p.defaultLine:ge.color,c.isArrayOrTypedArray(ue.color)&&(Ee=p.defaultLine,Fe=!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 We=ue.gradient,qe=ce.mgt;qe?Fe=!0:qe=We&&We.type,c.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?Fe=!0:lt=We.color;var ct=J.uid;Fe&&(ct+="-"+ce.i),T.gradient(ye,de,ct,qe,[[0,lt],[1,Ee]],"fill")}else if(at){var bt=!1,Be=Ye.fgcolor;!Be&&xe&&xe.color&&(Be=xe.color,bt=!0);var Ne=T.getPatternAttr(Be,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||c.isArrayOrTypedArray(Ye.shape)||c.isArrayOrTypedArray(Ye.bgcolor)||c.isArrayOrTypedArray(Ye.fgcolor)||c.isArrayOrTypedArray(Ye.size)||c.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 c.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)?x(ce):function(){return(J.size||6)/2}),ce.selectedpoints&&c.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,Pe=we!==void 0;(c.isArrayOrTypedArray(ge)||ke||Pe)&&(ye.selectedOpacityFn=function(at){var lt=at.mo===void 0?de.opacity:at.mo;return at.selected?ke?be:lt:Pe?we:w*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 Fe=de.size,ze=xe.size,We=ue.size,qe=ze!==void 0,Ye=We!==void 0;return h.traceIs(ce,"symbols")&&(qe||Ye)&&(ye.selectedSizeFn=function(at){var lt=at.mrc||Fe/2;return at.selected?qe?ze/2:lt:Ye?We/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 Pe=ke.tc||ge;return ke.selected?be||Pe:we||(be?Pe:p.addOpacity(Pe,w))},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",A(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 $(ce,ye,J){return J&&(ce=W(ce)),ye?U(ce[1]):E(ce[0])}function E(ce){var ye=l.round(ce,2);return P=ye,ye}function U(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,Pe=(we*we*xe-be*be*ge)*ne,Ee=3*we*(be+we),De=3*be*(be+we);return[[E(ye[0]+(Ee&&ke/Ee)),U(ye[1]+(Ee&&Pe/Ee))],[E(ye[0]-(De&&ke/De)),U(ye[1]-(De&&Pe/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?c.extractOption(ge,ye,"txt","texttemplate"):c.extractOption(ge,ye,"tx","text");if(we||we===0){if(xe){var ke=ye._module.formatLabels,Pe=ke?ke(ge,ye,ue):{},Ee={};k(Ee,ye,ge.i);var De=ye._meta||{};we=c.texttemplateString(we,Pe,ue._d3locale,Ee,ge,De)}var Re=ge.tp||ye.textposition,Fe=j(ge,ye),ze=ne?ne(ge):ge.tc||ye.textfont.color;be.call(T.font,ge.tf||ye.textfont.family,Fe,ze).text(we).call(v.convertToTspans,J).call(N,Re,Fe,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");N(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<=Pe&<>=we||lt>=Pe&<<=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])+","+U(J[0][1]),de=J.length,xe=1;xe=1e4&&(T.savedBBoxes={},V=0),J&&(T.savedBBoxes[J]=De),V++,c.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 H=/\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(H,"");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],Pe=ce.lonlat[1],Ee=ye._geo.project([ke,Pe+1e-5]),De=ye._geo.project([ke+1e-5,Pe]),Re=pe(De[1]-ne,De[0]-J),Fe=pe(Ee[1]-ne,Ee[0]-J);if(xe==="north")we=de/180*Math.PI;else if(xe==="previous"){var ze=ke/180*Math.PI,We=Pe/180*Math.PI,qe=Z/180*Math.PI,Ye=X/180*Math.PI,at=qe-ze,lt=Te(Ye)*Se(at),ct=Se(Ye)*Te(We)-Te(Ye)*Se(We)*Te(at);we=-pe(lt,ct)-Math.PI,Z=ke,X=Pe}var bt=Oe(Re,[Te(we),0]),Be=Oe(Fe,[Se(we),0]);de=pe(bt[1]+Be[1],bt[0]+Be[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&&f(J)&&f(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,r){var l,c,u,f,d=r(95616),h=r(39898).round,p="M0,0Z",g=Math.sqrt(2),y=Math.sqrt(3),v=Math.PI,m=Math.cos,b=Math.sin;function w(x){return x===null}function _(x,k,T){if(!(x&&x%360!=0||k))return T;if(u===x&&f===k&&l===T)return c;function M($,E){var U=m($),G=b($),L=E[0],q=E[1]+(k||0);return[L*U-q*G,L*G+q*U]}u=x,f=k,l=T;for(var S=x/180*v,C=0,A=0,D=d(T),O="",R=0;R0,b=d._context.staticPlot;h.each(function(w){var _,x=w[0].trace,k=x.error_x||{},T=x.error_y||{};x.ids&&(_=function(A){return A.id});var M=f.hasMarkers(x)&&x.marker.maxdisplayed>0;T.visible||k.visible||(w=[]);var S=l.select(this).selectAll("g.errorbar").data(w,_);if(S.exit().remove(),w.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);m&&C.style("opacity",0).transition().duration(g.duration).style("opacity",1),u.setClipUrl(S,p.layerClipId,d),S.each(function(A){var D=l.select(this),O=function(N,j,$){var E={x:j.c2p(N.x),y:$.c2p(N.y)};return N.yh!==void 0&&(E.yh=$.c2p(N.yh),E.ys=$.c2p(N.ys),c(E.ys)||(E.noYS=!0,E.ys=$.c2p(N.ys,!0))),N.xh!==void 0&&(E.xh=j.c2p(N.xh),E.xs=j.c2p(N.xs),c(E.xs)||(E.noXS=!0,E.xs=j.c2p(N.xs,!0))),E}(A,y,v);if(!M||A.vis){var R,F=D.select("path.yerror");if(T.visible&&c(O.x)&&c(O.yh)&&c(O.ys)){var P=T.width;R="M"+(O.x-P)+","+O.yh+"h"+2*P+"m-"+P+",0V"+O.ys,O.noYS||(R+="m-"+P+",0h"+2*P),F.size()?m&&(F=F.transition().duration(g.duration).ease(g.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&&c(O.y)&&c(O.xh)&&c(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()?m&&(z=z.transition().duration(g.duration).ease(g.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,r){var l=r(39898),c=r(7901);o.exports=function(u){u.each(function(f){var d=f[0].trace,h=d.error_y||{},p=d.error_x||{},g=l.select(this);g.selectAll("path.yerror").style("stroke-width",h.thickness+"px").call(c.stroke,h.color),p.copy_ystyle&&(p=h),g.selectAll("path.xerror").style("stroke-width",p.thickness+"px").call(c.stroke,p.color)})}},77914:function(o,a,r){var l=r(41940),c=r(528).hoverlabel,u=r(1426).extendFlat;o.exports={hoverlabel:{bgcolor:u({},c.bgcolor,{arrayOk:!0}),bordercolor:u({},c.bordercolor,{arrayOk:!0}),font:l({arrayOk:!0,editType:"none"}),align:u({},c.align,{arrayOk:!0}),namelength:u({},c.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(o,a,r){var l=r(71828),c=r(73972);function u(f,d,h,p){p=p||l.identity,Array.isArray(f)&&(d[0][h]=p(f))}o.exports=function(f){var d=f.calcdata,h=f._fullLayout;function p(b){return function(w){return l.coerceHoverinfo({hoverinfo:w},{_module:b._module},h)}}for(var g=0;g=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?x.flat(Se,le.xval):x.p2c(de,ut),Re="yval"in le?x.flat(Se,le.yval):x.p2c(xe,pt),!c(De[0])||!c(Re[0]))return f.warn("Fx.hover failed",le,ie),b.unhoverRaw(ie,le)}var Bt=1/0;function wt(Zt,gn){for(ze=0;zeNe&&(Qe.splice(0,Ne),Bt=Qe[0].distance),ye&&Ee!==0&&Qe.length===0){Be.distance=Ee,Be.index=!1;var An=qe._module.hoverPoints(Be,ct,bt,"closest",{hoverLayer:Oe._hoverlayer});if(An&&(An=An.filter(function(fr){return fr.spikeDistance<=Ee})),An&&An.length){var wn,Dn=An.filter(function(fr){return fr.xa.showspikes&&fr.xa.spikesnap!=="hovered data"});if(Dn.length){var ar=Dn[0];c(ar.x0)&&c(ar.y0)&&(wn=_e(ar),(!kt.vLinePoint||kt.vLinePoint.spikeDistance>wn.spikeDistance)&&(kt.vLinePoint=wn))}var fa=An.filter(function(fr){return fr.ya.showspikes&&fr.ya.spikesnap!=="hovered data"});if(fa.length){var va=fa[0];c(va.x0)&&c(va.y0)&&(wn=_e(va),(!kt.hLinePoint||kt.hLinePoint.spikeDistance>wn.spikeDistance)&&(kt.hLinePoint=wn))}}}}}function ve(Zt,gn,rn){for(var Kt,Cn=null,_n=1/0,An=0;An0&&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(Fe=0;Fe1||Qe.length>1)||ke==="closest"&&Je&&Qe.length>1,fn=m.combine(Oe.plot_bgcolor||m.background,Oe.paper_bgcolor),sn=j(Qe,{gd:ie,hovermode:ke,rotateLabels:nn,bgColor:fn,container:Oe._hoverlayer,outerContainer:Oe._paper.node(),commonLabelOpts:Oe.hoverlabel,hoverdistance:Oe.hoverdistance}),on=sn.hoverLabels;if(x.isUnifiedHover(ke)||(function(Zt,gn,rn,Kt){var Cn,_n,An,wn,Dn,ar,fa,va=gn?"xa":"ya",fr=gn?"ya":"xa",gi=0,Er=1,gr=Zt.size(),Pr=new Array(gr),da=0,On=Kt.minX,ln=Kt.maxX,Nn=Kt.minY,Rr=Kt.maxY,Ln=function(Tn){return Tn*rn._invScaleX},zn=function(Tn){return Tn*rn._invScaleY};function jn(Tn){var Lr=Tn[0],Na=Tn[Tn.length-1];if(_n=Lr.pmin-Lr.pos-Lr.dp+Lr.size,An=Na.pos+Na.dp+Na.size-Lr.pmax,_n>.01){for(Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp+=_n;Cn=!1}if(!(An<.01)){if(_n<-.01){for(Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp-=An;Cn=!1}if(Cn){var Wr=0;for(wn=0;wnLr.pmax&&Wr++;for(wn=Tn.length-1;wn>=0&&!(Wr<=0);wn--)(ar=Tn[wn]).pos>Lr.pmax-1&&(ar.del=!0,Wr--);for(wn=0;wn=0;Dn--)Tn[Dn].dp-=An;for(wn=Tn.length-1;wn>=0&&!(Wr<=0);wn--)(ar=Tn[wn]).pos+ar.dp+ar.size>Lr.pmax&&(ar.del=!0,Wr--)}}}for(Zt.each(function(Tn){var Lr=Tn[va],Na=Tn[fr],Wr=Lr._id.charAt(0)==="x",Zi=Lr.range;da===0&&Zi&&Zi[0]>Zi[1]!==Wr&&(Er=-1);var Ki=0,Pi=Wr?rn.width:rn.height;if(rn.hovermode==="x"||rn.hovermode==="y"){var mi,oi,Ai=E(Tn,gn),As=Tn.anchor,xl=As==="end"?-1:1;if(As==="middle")oi=(mi=Tn.crossPos+(Wr?zn(Ai.y-Tn.by/2):Ln(Tn.bx/2+Tn.tx2width/2)))+(Wr?zn(Tn.by):Ln(Tn.bx));else if(Wr)oi=(mi=Tn.crossPos+zn(R+Ai.y)-zn(Tn.by/2-R))+zn(Tn.by);else{var Ds=Ln(xl*R+Ai.x),To=Ds+Ln(xl*Tn.bx);mi=Tn.crossPos+Math.min(Ds,To),oi=Tn.crossPos+Math.max(Ds,To)}Wr?Nn!==void 0&&Rr!==void 0&&Math.min(oi,Rr)-Math.max(mi,Nn)>1&&(Na.side==="left"?(Ki=Na._mainLinePosition,Pi=rn.width):Pi=Na._mainLinePosition):On!==void 0&&ln!==void 0&&Math.min(oi,ln)-Math.max(mi,On)>1&&(Na.side==="top"?(Ki=Na._mainLinePosition,Pi=rn.height):Pi=Na._mainLinePosition)}Pr[da++]=[{datum:Tn,traceIndex:Tn.trace.index,dp:0,pos:Tn.pos,posref:Tn.posref,size:Tn.by*(Wr?A:1)/2,pmin:Ki,pmax:Pi}]}),Pr.sort(function(Tn,Lr){return Tn[0].posref-Lr[0].posref||Er*(Lr[0].traceIndex-Tn[0].traceIndex)});!Cn&&gi<=gr;){for(gi++,Cn=!0,wn=0;wn.01&&Sr.pmin===Ar.pmin&&Sr.pmax===Ar.pmax){for(Dn=jr.length-1;Dn>=0;Dn--)jr[Dn].dp+=_n;for(Gn.push.apply(Gn,jr),Pr.splice(wn+1,1),fa=0,Dn=Gn.length-1;Dn>=0;Dn--)fa+=Gn[Dn].dp;for(An=fa/Gn.length,Dn=Gn.length-1;Dn>=0;Dn--)Gn[Dn].dp-=An;Cn=!1}else wn++}Pr.forEach(jn)}for(wn=Pr.length-1;wn>=0;wn--){var Ya=Pr[wn];for(Dn=Ya.length-1;Dn>=0;Dn--){var Aa=Ya[Dn],ha=Aa.datum;ha.offset=Aa.dp,ha.del=Aa.del}}}(on,nn,Oe,sn.commonLabelBoundingBox),U(on,nn,Oe._invScaleX,Oe._invScaleY)),Te&&Te.tagName){var un=_.getComponentMethod("annotations","hasClickToShow")(ie,yt);y(l.select(Te),un?"pointer":"")}Te&&!pe&&function(Zt,gn,rn){if(!rn||rn.length!==Zt._hoverdata.length)return!0;for(var Kt=rn.length-1;Kt>=0;Kt--){var Cn=rn[Kt],_n=Zt._hoverdata[Kt];if(Cn.curveNumber!==_n.curveNumber||String(Cn.pointNumber)!==String(_n.pointNumber)||String(Cn.pointNumbers)!==String(_n.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||m.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||m.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"),ze.minX=ht-jt,ze.maxX=ht+jt,ce.side==="top"?(ze.minY=yt-(2*F+qt.height),ze.maxY=yt-F):(ze.minY=yt+F,ze.maxY=yt+(2*F+qt.height))}else{var Tt,Ot,Pt;ye.side==="right"?(Tt="start",Ot=1,Pt="",ht=ce._offset+ce._length):(Tt="end",Ot=-1,Pt="-",ht=ce._offset),yt=ye._offset+(Me.y0+Me.y1)/2,Vt.attr("text-anchor",Tt),Ft.attr("d","M0,0L"+Pt+R+","+R+"V"+(F+qt.height/2)+"h"+Pt+(2*F+qt.width)+"V-"+(F+qt.height/2)+"H"+Pt+R+"V-"+R+"Z"),ze.minY=yt-(F+qt.height/2),ze.maxY=yt+(F+qt.height/2),ye.side==="right"?(ze.minX=ht+R,ze.maxX=ht+R+(2*F+qt.width)):(ze.minX=ht-R-(2*F+qt.width),ze.maxX=ht-R);var Lt,Rt=qt.height/2,Nt=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"&&nn||!fn?nn?(Rt+=Yt/2,tt.anchor="start"):tt.anchor="middle":(Rt-=Yt/2,tt.anchor="end"),tt.crossPos=Rt;else{if(tt.pos=Rt,nn=Lt+Nt/2+sn<=be,fn=Lt-Nt/2-sn>=0,tt.idealAlign!=="left"&&nn||!fn)if(nn)Lt+=Nt/2,tt.anchor="start";else{tt.anchor="middle";var on=sn/2,un=Lt+on-be,Zt=Lt-on;un>0&&(Lt-=un),Zt<0&&(Lt+=-Zt)}else Lt-=Nt/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:ze}}function $(Q,Y,Z,X,re,ie){var le="",se="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=f.templateString(Q.name,Q.trace._meta)),le=W(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=f.hovertemplateString(Se,Oe,X._d3locale,Q.eventData[0]||{},Q.trace._meta)).replace(N,function(Me,ce){return le=W(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 U(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(g.positionText,re(ge),ie(be)),le.tx2width&&(se.select("text.name").call(g.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||c(Me)&&Me===0}var se=Array.isArray(Z)?function(Me,ce){var ye=f.castOption(re,Z,Me);return le(ye)?ye:f.extractOption({},X,"",ce)}:function(Me,ce){return f.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=f.constrain(Q.x0,0,Q.xa._length),Q.x1=f.constrain(Q.x1,0,Q.xa._length),Q.y0=f.constrain(Q.y0,0,Q.ya._length),Q.y1=f.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:w.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:w.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=w.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+Te+" / -"+w.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=w.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Se+" / -"+w.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=m.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=u.readability(ye.color,Oe)<1.5?m.contrast(Oe):ye.color,xe=re.spikemode,ue=re.spikethickness,ge=re.spikecolor||de,be=w.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 Pe,Ee,De=Y.vLinePoint;X=De&&De.xa,re=De&&De.ya,X.spikesnap==="cursor"?(Pe=pe.pointerX,Ee=pe.pointerY):(Pe=X._offset+De.x,Ee=re._offset+De.y);var Re,Fe,ze=u.readability(De.color,Oe)<1.5?m.contrast(Oe):De.color,We=X.spikemode,qe=X.spikethickness,Ye=X.spikecolor||ze,at=w.getPxPosition(Q,X);if(We.indexOf("toaxis")!==-1||We.indexOf("across")!==-1){if(We.indexOf("toaxis")!==-1&&(Re=at,Fe=Ee),We.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,Fe=se.t+(1-lt)*se.h}ie.insert("line",":first-child").attr({x1:Pe,x2:Pe,y1:Re,y2:Fe,"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:Pe,x2:Pe,y1:Re,y2:Fe,"stroke-width":qe+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}We.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:Pe,cy:at-(X.side!=="top"?qe:-qe),r:qe,fill:Ye}).classed("spikeline",!0)}}}function q(Q,Y){return!Y}function W(Q,Y){return g.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 H(Q,Y){var Z=Q._fullLayout,X=Y.getBoundingClientRect(),re=X.left,ie=X.top,le=re+X.width,se=ie+X.height,pe=f.apply3DTransform(Z._invTransform)(re,ie),Te=f.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,r){var l=r(71828),c=r(7901),u=r(23469).isUnifiedHover;o.exports=function(f,d,h,p){p=p||{};var g=d.legend;function y(v){p.font[v]||(p.font[v]=g?d.legend.font[v]:d.font[v])}d&&u(d.hovermode)&&(p.font||(p.font={}),y("size"),y("family"),y("color"),g?(p.bgcolor||(p.bgcolor=c.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,r){var l=r(71828),c=r(528);o.exports=function(u,f){function d(h,p){return f[h]!==void 0?f[h]:l.coerce(u,f,c,h,p)}return d("clickmode"),d("hovermode")}},30211:function(o,a,r){var l=r(39898),c=r(71828),u=r(28569),f=r(23469),d=r(528),h=r(88335);o.exports={moduleType:"component",name:"fx",constants:r(26675),schema:{layout:d},attributes:r(77914),layoutAttributes:d,supplyLayoutGlobalDefaults:r(22774),supplyDefaults:r(54268),supplyLayoutDefaults:r(34938),calc:r(30732),getDistanceFunction:f.getDistanceFunction,getClosest:f.getClosest,inbox:f.inbox,quadrature:f.quadrature,appendArrayPointValue:f.appendArrayPointValue,castHoverOption:function(p,g,y){return c.castOption(p,g,"hoverlabel."+y)},castHoverinfo:function(p,g,y){return c.castOption(p,y,"hoverinfo",function(v){return c.coerceHoverinfo({hoverinfo:v},{_module:p._module},g)})},hover:h.hover,unhover:u.unhover,loneHover:h.loneHover,loneUnhover:function(p){var g=c.isD3Selection(p)?p:l.select(p);g.selectAll("g.hovertext").remove(),g.selectAll(".spikeline").remove()},click:r(75914)}},528:function(o,a,r){var l=r(26675),c=r(41940),u=c({editType:"none"});u.family.dflt=l.HOVERFONT,u.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:u,grouptitlefont:c({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,r){var l=r(71828),c=r(528),u=r(98212),f=r(38048);o.exports=function(d,h){function p(m,b){return l.coerce(d,h,c,m,b)}u(d,h)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var g=h._has("mapbox"),y=h._has("geo"),v=h._basePlotModules.length;h.dragmode==="zoom"&&((g||y)&&v===1||g&&y&&v===2)&&(h.dragmode="pan"),f(d,h,p),l.coerceFont(p,"hoverlabel.grouptitlefont",h.hoverlabel.font)}},22774:function(o,a,r){var l=r(71828),c=r(38048),u=r(528);o.exports=function(f,d){c(f,d,function(h,p){return l.coerce(f,d,u,h,p)})}},83312:function(o,a,r){var l=r(71828),c=r(30587).counter,u=r(27670).Y,f=r(85555).idRegex,d=r(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:[c("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[f.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[f.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:u({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,m,b){var w=m[b+"axes"],_=Object.keys((v._splomAxes||{})[b]||{});return Array.isArray(w)?w:_.length?_:void 0}function g(v,m,b,w,_,x){var k=m(v+"gap",b),T=m("domain."+v);m(v+"side",w);for(var M=new Array(_),S=T[0],C=(T[1]-S)/(_-k),A=C*(1-k),D=0;D<_;D++){var O=S+C*D;M[x?_-1-D:D]=[O,O+A]}return M}function y(v,m,b,w,_){var x,k=new Array(b);function T(M,S){m.indexOf(S)!==-1&&w[S]===void 0?(k[M]=S,w[S]=M):k[M]=""}if(Array.isArray(v))for(x=0;x1){T||M||S||N("pattern")==="independent"&&(T=!0),A._hasSubplotGrid=T;var R,F,P=N("roworder")==="top to bottom",z=T?.2:.1,B=T?.3:.1;C&&m._splomGridDflt&&(R=m._splomGridDflt.xside,F=m._splomGridDflt.yside),A._domains={x:g("x",N,z,R,O),y:g("y",N,B,F,D,P)}}else delete m.grid}function N(j,$){return l.coerce(b,A,h,j,$)}},contentDefaults:function(v,m){var b=m.grid;if(b&&b._domains){var w,_,x,k,T,M,S,C=v.grid||{},A=m._subplots,D=b._hasSubplotGrid,O=b.rows,R=b.columns,F=b.pattern==="independent",P=b._axisMap={};if(D){var z=C.subplots||[];M=b.subplots=new Array(O);var B=1;for(w=0;w(y==="legend"?1:0));if(B===!1&&(m[y]=void 0),(B!==!1||w.uirevision)&&(x("uirevision",m.uirevision),B!==!1)){x("borderwidth");var N,j,$,E=x("orientation")==="h",U=x("yref")==="paper",G=x("xref")==="paper",L="left";if(E?(N=0,l.getComponentMethod("rangeslider","isVisible")(v.xaxis)?U?(j=1.1,$="bottom"):(j=1,$="top"):U?(j=-.1,$="top"):(j=0,$="bottom")):(j=1,$="auto",G?N=1.02:(N=1,L="right")),c.coerce(w,_,{x:{valType:"number",editType:"legend",min:G?-2:0,max:G?3:1,dflt:N}},"x"),c.coerce(w,_,{y:{valType:"number",editType:"legend",min:U?-2:0,max:U?3:1,dflt:j}},"y"),x("traceorder",O),p.isGrouped(m[y])&&x("tracegroupgap"),x("entrywidth"),x("entrywidthmode"),x("itemsizing"),x("itemwidth"),x("itemclick"),x("itemdoubleclick"),x("groupclick"),x("xanchor",L),x("yanchor",$),x("valign"),c.noneOrAll(w,_,["x","y"]),x("title.text")){x("title.side",E?"left":"top");var q=c.extendFlat({},k,{size:c.bigFont(k.size)});c.coerceFont(x,"title.font",q)}}}}o.exports=function(y,v,m){var b,w=m.slice(),_=v.shapes;if(_)for(b=0;b<_.length;b++){var x=_[b];if(x.showlegend){var k={_input:x._input,visible:x.visible,showlegend:x.showlegend,legend:x.legend};w.push(k)}}var T=["legend"];for(b=0;b1)}var X=q.hiddenlabels||[];if(!(V||q.showlegend&&te.length))return G.selectAll("."+W).remove(),q._topdefs.select("#"+U).remove(),u.autoMargin($,W);var re=c.ensureSingle(G,"g",W,function(ce){V||ce.attr("pointer-events","all")}),ie=c.ensureSingleById(q._topdefs,"clipPath",U,function(ce){ce.append("rect")}),le=c.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});le.call(g.stroke,L.bordercolor).call(g.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,pe=c.ensureSingle(re,"g","scrollbox"),Te=L.title;L._titleWidth=0,L._titleHeight=0,Te.text?((se=c.ensureSingle(pe,"text",W+"titletext")).attr("text-anchor","start").call(p.font,Te.font).text(Te.text),z(se,pe,$,L,S)):pe.selectAll("."+W+"titletext").remove();var Se=c.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(m.scrollBarEnterAttrs).call(g.fill,m.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(c.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var ye=ce[0].trace;return f.traceIs(ye,"pie-like")?X.indexOf(ce[0].label)!==-1?.5:1:ye.visible==="legendonly"?.5:1}).each(function(){l.select(this).call(R,$,L)}).call(T,$,L).each(function(){V||l.select(this).call(P,$,W)}),c.syncOrAsync([u.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,Pe=2*ke,Ee=m.itemGap,De=ne.itemwidth+2*Ee,Re=2*(ke+Ee),Fe=N(ne),ze=ne.y<0||ne.y===0&&Fe==="top",We=ne.y>1||ne.y===1&&Fe==="bottom",qe=ne.tracegroupgap,Ye={};ne._maxHeight=Math.max(ze||We?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+Pe,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",Be=ne.x>1||ne.x===1&&ct==="left",Ne=We||ze,Qe=de.width/2;ne._maxWidth=Math.max(bt?Ne&&ct==="left"?ue.l+ue.w:Qe:Be?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(),Bt=kt+Pe+(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)}),Bt?(ne._width=ve+Pe,ne._height=wt+Re):(ne._width=Math.max(Je,Ve)+Pe,ne._height+=wt+Re)}}ne._width=Math.ceil(Math.max(ne._width+lt[0],ne._titleWidth+2*(ke+m.titlePad))),ne._height=Math.ceil(Math.max(ne._height+lt[1],ne._titleHeight+2*(ke+m.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var Ue=ce._context.edits,Ze=Ue.legendText||Ue.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)})}($,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*w,Je=0,ut=Ne.node(),pt=p.bBox(ut).width;Qe.title.side==="top center"?Je=.5*(Qe._width-2*it-2*m.titlePad-pt):Qe.title.side==="top right"&&(Je=Qe._width-2*it-2*m.titlePad-pt),y.positionText(Ne,it+m.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)-_[N(L)]*L._effHeight:q.height*(1-L.y)-_[N(L)]*L._effHeight;var ke=function(Ne,Qe,it,kt){var Je=Ne._fullLayout,ut=Je[Qe],pt=B(ut),It=N(ut),Mt=ut.xref==="paper",Bt=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&&Bt)return u.autoMargin(Ne,Qe,{x:ut.x,y:ut.y,l:ut._width*_[pt],r:ut._width*x[pt],b:ut._effHeight*x[It],t:ut._effHeight*_[It]});Mt?Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]:Bt||ut.orientation==="v"?Ne._fullLayout._reservedMargin[Qe][ve]=_e[ve]:Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]}($,W,be,we);if(ke)return;if(q.margin.autoexpand){var Pe=be,Ee=we;be=ue?c.constrain(be,0,q.width-L._width):Pe,we=ge?c.constrain(we,0,q.height-L._effHeight):Ee,be!==Pe&&c.log("Constrain "+W+".x to make legend fit inside graph"),we!==Ee&&c.log("Constrain "+W+".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||$._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,U,$),p.setRect(Se,0,0,0,0),delete L._scrollY}else{var Re,Fe,ze,We=Math.max(m.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-We-2*m.scrollBarMargin,Ye=L._height-L._effHeight,at=qe/Ye,lt=Math.min(L._scrollY||0,Ye);le.attr({width:L._width-2*xe+m.scrollBarWidth+m.scrollBarMargin,height:L._effHeight-xe,x:xe/2,y:xe/2}),ie.select("rect").attr({width:L._width-2*xe+m.scrollBarWidth+m.scrollBarMargin,height:L._effHeight-2*xe,x:xe,y:xe+lt}),p.setClipUrl(pe,U,$),Be(lt,We,at),re.on("wheel",function(){Be(lt=c.constrain(L._scrollY+l.event.deltaY/qe*Ye,0,Ye),We,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,ze=lt}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Fe=Ne.type==="touchmove"?Ne.changedTouches[0].clientY:Ne.clientY,lt=function(Qe,it,kt){var Je=(kt-it)/at+Qe;return c.constrain(Je,0,Ye)}(ze,Re,Fe),Be(lt,We,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,ze=lt)}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.type==="touchmove"&&(Fe=Ne.changedTouches[0].clientY,lt=function(Qe,it,kt){var Je=(it-kt)/at+Qe;return c.constrain(Je,0,Ye)}(ze,Re,Fe),Be(lt,We,at))});pe.call(bt)}function Be(Ne,Qe,it){L._scrollY=$._fullLayout[W]._scrollY=Ne,p.setTranslate(pe,0,-Ne),p.setRect(Se,L._width,m.scrollBarMargin+Ne*it,m.scrollBarWidth,Qe),ie.select("rect").attr("y",xe+Ne)}$._context.edits.legendPosition&&(re.classed("cursor-move",!0),h.init({element:re.node(),gd:$,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[W+".x"]=ce,Ne[W+".y"]=ye,f.call("_guiRelayout",$,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($,re,it,Ne,Qe)}}))}],$)}}function D($,E,U){var G=$[0],L=G.width,q=E.entrywidthmode,W=G.trace.legendwidth||E.entrywidth;return q==="fraction"?E._maxWidth*W:U+(W||L)}function O($,E,U,G,L){var q=U.data()[0][0].trace,W={event:L,node:U.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:$.data,layout:$.layout,frames:$._transitionData._frames,config:$._context,fullData:$._fullData,fullLayout:$._fullLayout};q._group&&(W.group=q._group),f.traceIs(q,"pie-like")&&(W.label=U.datum()[0].label);var V=d.triggerHandler($,"plotly_legendclick",W);if(G===1){if(V===!1)return;E._clickTimeout=setTimeout(function(){$._fullLayout&&v(U,$,G)},$._context.doubleClickDelay)}else G===2&&(E._clickTimeout&&clearTimeout(E._clickTimeout),$._legendMouseDownTime=0,d.triggerHandler($,"plotly_legenddoubleclick",W)!==!1&&V!==!1&&v(U,$,G))}function R($,E,U){var G,L,q=j(U),W=$.data()[0][0],V=W.trace,te=f.traceIs(V,"pie-like"),ee=!U._inHover&&E._context.edits.legendText&&!te,H=U._maxNameLength;W.groupTitle?(G=W.groupTitle.text,L=W.groupTitle.font):(L=U.font,U.entries?G=W.text:(G=te?W.label:V.name,V._meta&&(G=c.templateString(G,V._meta))));var Q=c.ensureSingle($,"text",q+"text");Q.attr("text-anchor","start").call(p.font,L).text(ee?F(G,H):G);var Y=U.itemwidth+2*m.itemGap;y.positionText(Q,Y,0),ee?Q.call(y.makeEditable,{gd:E,text:G}).call(z,$,E,U).on("edit",function(Z){this.text(F(Z,H)).call(z,$,E,U);var X=W.trace._fullInput||{},re={};if(f.hasTransform(X,"groupby")){var ie=f.getTransformIndices(X,"groupby"),le=ie[ie.length-1],se=c.keyedContainer(X,"transforms["+le+"].styles","target","value.name");se.set(W.trace._group,Z),re=se.constructUpdate()}else re.name=Z;return X._isShape?f.call("_guiRelayout",E,"shapes["+V.index+"].name",re.name):f.call("_guiRestyle",E,re,V.index)}):z(Q,$,E,U)}function F($,E){var U=Math.max(4,E);if($&&$.trim().length>=U/2)return $;for(var G=U-($=$||"").length;G>0;G--)$+=" ";return $}function P($,E,U){var G,L=E._context.doubleClickDelay,q=1,W=c.ensureSingle($,"rect",U+"toggle",function(V){E._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(g.fill,"rgba(0,0,0,0)")});E._context.staticPlot||(W.on("mousedown",function(){(G=new Date().getTime())-E._legendMouseDownTimeL&&(q=Math.max(q-1,1)),O(E,V,$,q,l.event)}}))}function z($,E,U,G,L){G._inHover&&$.attr("data-notex",!0),y.convertToTspans($,U,function(){(function(q,W,V,te){var ee=q.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var H=q.select("g[class*=math-group]"),Q=H.node(),Y=j(V);V||(V=W._fullLayout[Y]);var Z,X,re=V.borderwidth,ie=(te===S?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*w;if(Q){var le=p.bBox(Q);Z=le.height,X=le.width,te===S?p.setTranslate(H,re,re+.75*Z):p.setTranslate(H,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*m.itemGap),y.positionText(pe,re+m.titlePad,re+ie);else{var Oe=2*m.itemGap+V.itemwidth;ee.groupTitle&&(Oe=m.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,U,G,L)})}function B($){return c.isRightAnchor($)?"right":c.isCenterAnchor($)?"center":"left"}function N($){return c.isBottomAnchor($)?"bottom":c.isMiddleAnchor($)?"middle":"top"}function j($){return $._id||"legend"}o.exports=function($,E){if(E)A($,E);else{var U=$._fullLayout,G=U._legends;U._infolayer.selectAll('[class^="legend"]').each(function(){var W=l.select(this),V=W.attr("class").split(" ")[0];V.match(C)&&G.indexOf(V)===-1&&W.remove()});for(var L=0;LB&&(z=B)}F[h][0]._groupMinRank=z,F[h][0]._preGroupSort=h}var N=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:x}o.exports=function(x,k,T){var M=k._fullLayout;T||(T=M.legend);var S=T.itemsizing==="constant",C=T.itemwidth,A=(C+2*m.itemGap)/2,D=f(A,0),O=function(P,z,B,N){var j;if(P+1)j=P;else{if(!(z&&z.width>0))return 0;j=z.width}return S?N:Math.min(j,B)};function R(P,z,B){var N=P[0].trace,j=N.marker||{},$=j.line||{},E=B?N.visible&&N.type===B:c.traceIs(N,"bar"),U=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(E?[P]:[]);U.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),U.exit().remove(),U.each(function(G){var L=l.select(this),q=G[0],W=O(q.mlw,j.line,5,2);L.style("stroke-width",W+"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 H=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-"+N.uid;L.call(d.pattern,"legend",k,se,Y,ie,le,V,Q.fillmode,Z,X,re)}else L.call(h.fill,H);W&&h.stroke(L,q.mlc||$.color)})}function F(P,z,B){var N=P[0],j=N.trace,$=B?j.visible&&j.type===B:c.traceIs(j,B),E=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data($?[P]:[]);if(E.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),E.exit().remove(),E.size()){var U=j.marker||{},G=O(v(U.line.width,N.pts),U.line,5,2),L="pieLike",q=u.minExtend(j,{marker:{line:{width:G}}},L),W=u.minExtend(N,{trace:q},L);y(E,W,q,k)}}x.each(function(P){var z=l.select(this),B=u.ensureSingle(z,"g","layers");B.style("opacity",P[0].trace.opacity);var N=T.valign,j=P[0].lineHeight,$=P[0].height;if(N!=="middle"&&j&&$){var E={top:1,bottom:-1}[N]*(.5*(j-$+3));B.attr("transform",f(0,E))}else B.attr("transform",null);B.selectAll("g.legendfill").data([P]).enter().append("g").classed("legendfill",!0),B.selectAll("g.legendlines").data([P]).enter().append("g").classed("legendlines",!0);var U=B.selectAll("g.legendsymbols").data([P]);U.enter().append("g").classed("legendsymbols",!0),U.selectAll("g.legendpoints").data([P]).enter().append("g").classed("legendpoints",!0)}).each(function(P){var z,B=P[0].trace,N=[];if(B.visible)switch(B.type){case"histogram2d":case"heatmap":N=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":N=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":N=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":N=[["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":N=[["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":N=[["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":N=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":N=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":N=[["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(N);j.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function($,E){var U,G=l.select(this),L=p(B),q=L.colorscale,W=L.reversescale;if(q){if(!z){var V=q.length;U=E===0?q[W?V-1:0][1]:E===1?q[W?0:V-1][1]:q[Math.floor((V-1)/2)][1]}}else{var te=B.vertexcolor||B.facecolor||B.color;U=u.isArrayOrTypedArray(te)?te[E]||te[0]:te}G.attr("d",$[0]),U?G.call(h.fill,U):G.call(function(ee){if(ee.size()){var H="legendfill-"+B.uid;d.gradient(ee,k,H,b(W,z==="radial"),q,"fill")}})})}).each(function(P){var z=P[0].trace,B=z.type==="waterfall";if(P[0]._distinct&&B){var N=P[0].trace[P[0].dir].marker;return P[0].mc=N.color,P[0].mlw=N.line.width,P[0].mlc=N.line.color,R(P,this,"waterfall")}var j=[];z.visible&&B&&(j=P[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 $=l.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(j);$.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),$.exit().remove(),$.each(function(E){var U=l.select(this),G=z[E[0]].marker,L=O(void 0,G.line,5,2);U.attr("d",E[1]).style("stroke-width",L+"px").call(h.fill,G.color),L&&U.call(h.stroke,G.line.color)})}).each(function(P){R(P,this,"funnel")}).each(function(P){R(P,this)}).each(function(P){var z=P[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendbox").data(z.visible&&c.traceIs(z,"box-violin")?[P]:[]);B.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),B.exit().remove(),B.each(function(){var N=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);N.style("stroke-width",j+"px").call(h.fill,z.fillcolor),j&&h.stroke(N,z.line.color)}else{var $=u.minExtend(z,{marker:{size:S?12:u.constrain(z.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});B.call(d.pointStyle,$,k)}})}).each(function(P){F(P,this,"funnelarea")}).each(function(P){F(P,this,"pie")}).each(function(P){var z,B,N=w(P),j=N.showFill,$=N.showLine,E=N.showGradientLine,U=N.showGradientFill,G=N.anyFill,L=N.anyLine,q=P[0],W=q.trace,V=p(W),te=V.colorscale,ee=V.reversescale,H=g.hasMarkers(W)||!G?"M5,0":L?"M5,-2":"M5,-3",Q=l.select(this),Y=Q.select(".legendfill").selectAll("path").data(j||U?[P]:[]);if(Y.enter().append("path").classed("js-fill",!0),Y.exit().remove(),Y.attr("d",H+"h"+C+"v6h-"+C+"z").call(function(re){if(re.size())if(j)d.fillGroupStyle(re,k);else{var ie="legendfill-"+W.uid;d.gradient(re,k,ie,b(ee),te,"fill")}}),$||E){var Z=O(void 0,W.line,10,5);B=u.minExtend(W,{line:{width:Z}}),z=[u.minExtend(q,{trace:B})]}var X=Q.select(".legendlines").selectAll("path").data($||E?[z]:[]);X.enter().append("path").classed("js-line",!0),X.exit().remove(),X.attr("d",H+(E?"l"+C+",0.0001":"h"+C)).call($?d.lineGroupStyle:function(re){if(re.size()){var ie="legendline-"+W.uid;d.lineGroupStyle(re),d.gradient(re,k,ie,b(ee),te,"stroke")}})}).each(function(P){var z,B,N=w(P),j=N.anyFill,$=N.anyLine,E=N.showLine,U=N.showMarker,G=P[0],L=G.trace,q=!U&&!$&&!j&&g.hasText(L);function W(X,re,ie,le){var se=u.nestedProperty(L,X).get(),pe=u.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(U||q||E){var te={},ee={};if(U){te.mc=W("marker.color",V),te.mx=W("marker.symbol",V),te.mo=W("marker.opacity",u.mean,[.2,1]),te.mlc=W("marker.line.color",V),te.mlw=W("marker.line.width",u.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var H=W("marker.size",u.mean,[2,16],12);te.ms=H,ee.marker.size=H}E&&(ee.line={width:W("line.width",V,[0,10],5)}),q&&(te.tx="Aa",te.tp=W("textposition",V),te.ts=10,te.tc=W("textfont.color",V),te.tf=W("textfont.family",V)),z=[u.minExtend(G,te)],(B=u.minExtend(L,ee)).selectedpoints=null,B.texttemplate=null}var Q=l.select(this).select("g.legendpoints"),Y=Q.selectAll("path.scatterpts").data(U?z:[]);Y.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),Y.exit().remove(),Y.call(d.pointStyle,B,k),U&&(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(P){var z=P[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(z.visible&&z.type==="candlestick"?[P,P]:[]);B.enter().append("path").classed("legendcandle",!0).attr("d",function(N,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(N,j){var $=l.select(this),E=z[j?"increasing":"decreasing"],U=O(void 0,E.line,5,2);$.style("stroke-width",U+"px").call(h.fill,E.fillcolor),U&&h.stroke($,E.line.color)})}).each(function(P){var z=P[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(z.visible&&z.type==="ohlc"?[P,P]:[]);B.enter().append("path").classed("legendohlc",!0).attr("d",function(N,j){return j?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(N,j){var $=l.select(this),E=z[j?"increasing":"decreasing"],U=O(void 0,E.line,5,2);$.style("fill","none").call(d.dashLine,E.line.dash,U),U&&h.stroke($,E.line.color)})})}},42068:function(o,a,r){r(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,r){var l=r(73972),c=r(74875),u=r(41675),f=r(24255),d=r(34031).eraseActiveShape,h=r(71828),p=h._,g=o.exports={};function y(M,S){var C,A,D=S.currentTarget,O=D.getAttribute("data-attr"),R=D.getAttribute("data-val")||!0,F=M._fullLayout,P={},z=u.list(M,null,!0),B=F._cartesianSpikesEnabled;if(O==="zoom"){var N,j=R==="in"?.5:2,$=(1+j)/2,E=(1-j)/2;for(A=0;A1?(H=["toggleHover"],Q=["resetViews"]):P?(ee=["zoomInGeo","zoomOutGeo"],H=["hoverClosestGeo"],Q=["resetGeo"]):F?(H=["hoverClosest3d"],Q=["resetCameraDefault3d","resetCameraLastSave3d"]):$?(ee=["zoomInMapbox","zoomOutMapbox"],H=["toggleHover"],Q=["resetViewMapbox"]):N?H=["hoverClosestGl2d"]:z?H=["hoverClosestPie"]:G?(H=["hoverClosestCartesian","hoverCompareCartesian"],Q=["resetViewSankey"]):H=["toggleHover"],R&&(H=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var pe=0;pe0)){var k=function(M,S,C){for(var A=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+Fe<0)return;Ee=ue+Fe,De=ge+Fe;break;case Me:if(Re="col-resize",ue+Fe>Te._length)return;Ee=ue+Fe,De=ge;break;case ce:if(Re="col-resize",ge+Fe<0)return;Ee=ue,De=ge+Fe;break;default:Re="ew-resize",Ee=xe,De=xe+Fe}if(De=0;N--){var j=S.append("path").attr(A).style("opacity",N?.1:D).call(f.stroke,R).call(f.fill,O).call(d.dashLine,N?"solid":P,N?4+F:F);if(b(j,_,T),z){var $=h(_.layout,"selections",T);j.style({cursor:"move"});var E={element:j.node(),plotinfo:M,gd:_,editHelpers:$,isActiveSelection:!0},U=l(C,_);c(U,j,E)}else j.style("pointer-events",N?"all":"none");B[N]=j}var G=B[0];B[1].node().addEventListener("click",function(){return function(L,q){if(v(L)){var W=+q.node().getAttribute("data-index");if(W>=0){if(W===L._fullLayout._activeSelectionIndex)return void w(L);L._fullLayout._activeSelectionIndex=W,L._fullLayout._deactivateSelection=w,y(L)}}}(_,G)})}(_._fullLayout._selectionLayer)}function b(_,x,k){var T=k.xref+k.yref;d.setClipUrl(_,"clip"+x._fullLayout._uid+T,x)}function w(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(u(_),delete _._fullLayout._activeSelectionIndex,y(_))}o.exports={draw:y,drawOne:m,activateLastSelection:function(_){if(v(_)){var x=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=x,_._fullLayout._deactivateSelection=w,y(_)}}}},53777:function(o,a,r){var l=r(79952).P,c=r(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:c({},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,r,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,r){var l=r(64505).selectMode,c=r(51873).clearOutline,u=r(60165),f=u.readPaths,d=u.writePaths,h=u.fixDatesForPaths;o.exports=function(p,g){if(p.length){var y=p[0][0];if(y){var v=y.getAttribute("d"),m=g.gd,b=m._fullLayout.newselection,w=g.plotinfo,_=w.xaxis,x=w.yaxis,k=g.isActiveSelection,T=g.dragmode,M=(m.layout||{}).selections||[];if(!l(T)&&k!==void 0){var S=m._fullLayout._activeSelectionIndex;if(S-1,kt=[];if(function(Mt){return Mt&&Array.isArray(Mt)&&Mt[0].hoverOnBox!==!0}(Qe)){Z(ke,Pe,Fe);var Je=function(Mt,Bt){var wt,ve,_e=Mt[0],Ve=-1,Ue=[];for(ve=0;ve0?function(Mt,Bt){var wt,ve,_e,Ve=[];for(_e=0;_e0&&Ve.push(wt);if(Ve.length===1&&Ve[0]===Bt.searchInfo&&(ve=Bt.searchInfo.cd[0].trace).selectedpoints.length===Bt.pointNumbers.length){for(_e=0;_e1||(ve+=Bt.selectedpoints.length)>1))return!1;return ve===1}(We)&&(ct=se(Je))){for(ze&&ze.remove(),Ne=0;Ne=0})(Re)&&Re._fullLayout._deactivateShape(Re),function(lt){return lt._fullLayout._activeSelectionIndex>=0}(Re)&&Re._fullLayout._deactivateSelection(Re);var Fe=Re._fullLayout._zoomlayer,ze=m(Ee),We=w(Ee);if(ze||We){var qe,Ye,at=Fe.selectAll(".select-outline-"+De.id);at&&Re._fullLayout._outlining&&(ze&&(qe=A(at,ke)),qe&&u.call("_guiRelayout",Re,{shapes:qe}),We&&!te(ke)&&(Ye=D(at,ke)),Ye&&(Re._fullLayout._noEmitSelectedAtStart=!0,u.call("_guiRelayout",Re,{selections:Ye}).then(function(){Pe&&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,Pe,Ee,De){if(!ke.calcdata)return[];var Re,Fe,ze,We=[],qe=Pe.map(re),Ye=Ee.map(re);for(ze=0;ze0?De[0]:Ee;return!!Pe.selectedpoints&&Pe.selectedpoints.indexOf(Re)>-1}function pe(ke,Pe,Ee){var De,Re;for(De=0;De-1&&Pe;if(!Fe&&Pe){var Ot=ne(ke,!0);if(Ot.length){var Pt=Ot[0].xref,Lt=Ot[0].yref;if(Pt&&Lt){var Rt=ue(Ot);ge([B(ke,Pt,"x"),B(ke,Lt,"y")])(jt,Rt)}}ke._fullLayout._noEmitSelectedAtStart?ke._fullLayout._noEmitSelectedAtStart=!1:Tt&&be(ke,jt),ct._reselect=!1}if(!Fe&&ct._deselect){var Nt=ct._deselect;(function(Yt,Xt,zt){for(var Ut=0;Ut=0)bt._fullLayout._deactivateShape(bt);else if(!Ye){var Rt=Be.clickmode;z.done(Et).then(function(){if(z.clear(Et),Pt===2){for($t.remove(),_e=0;_e-1&&ee(Lt,bt,De.xaxes,De.yaxes,De.subplot,De,$t),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,Ue)}).catch(R.error)}},clearOutline:T,clearSelectionsCache:X,selectOnClick:ee}},89827:function(o,a,r){var l=r(50215),c=r(41940),u=r(82196).line,f=r(79952).P,d=r(1426).extendFlat,h=r(44467).templatedArray,p=(r(24695),r(9012)),g=r(5386).R,y=r(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:c({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({},u.color,{editType:"arraydraw"}),width:d({},u.width,{editType:"calc+arraydraw"}),dash:d({},f,{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(y)}),font:c({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,r){var l=r(71828),c=r(89298),u=r(21459),f=r(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,m,b,w,_){var x=y/2,k=_;if(v==="pixel"){var T=w?f.extractPathCoords(w,_?u.paramIsY:u.paramIsX):[m,b],M=l.aggNums(Math.max,null,T),S=l.aggNums(Math.min,null,T),C=S<0?Math.abs(S)+x:x,A=M>0?M+x:x;return{ppad:x,ppadplus:k?C:A,ppadminus:k?A:C}}return{ppad:x}}function g(y,v,m,b,w){var _=y.type==="category"||y.type==="multicategory"?y.r2c:y.d2c;if(v!==void 0)return[_(v),_(m)];if(b){var x,k,T,M,S=1/0,C=-1/0,A=b.match(u.segmentRE);for(y.type==="date"&&(_=f.decodeDate(_)),x=0;xC&&(C=M)));return C>=S?[S,C]:void 0}}o.exports=function(y){var v=y._fullLayout,m=l.filterVisible(v.shapes);if(m.length&&y._fullData.length)for(var b=0;b=re?ie-se:se-ie,-180/Math.PI*Math.atan2(pe,Te)}(C,D,A,O):0),P.call(function(re){return re.call(f.font,F).attr({}),u.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[U]=Oe,N(),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 Ue=_e.xref,Ze=_e.yref,Ge=f.getFromId(Ve,Ue),Ke=f.getFromId(Ve,Ze),nt="";Ue==="paper"||Ge.autorange||(nt+=Ue),Ze==="paper"||Ke.autorange||(nt+=Ze),v.setClipUrl(ve,nt?"clip"+Ve._fullLayout._uid+nt:null,Ve)}(re,ie,X),Je.moveFn=Pe==="move"?pt:It,Je.altKey=wt.altKey)},doneFn:function(){M(X)||(w(re),Bt(se),A(re,X,ie),c.call("_guiRelayout",X,pe.getUpdateObj()))},clickFn:function(){M(X)||Bt(se)}};function ut(wt){if(M(X))Pe=null;else if(ze)Pe=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,Ue=wt.clientX-ve.left,Ze=wt.clientY-ve.top,Ge=!We&&_e>Ee&&Ve>De&&!wt.shiftKey?b.getCursor(Ue/_e,1-Ze/Ve):"move";w(re,Ge),Pe=Ge.split("-")[0]}}function pt(wt,ve){if(ie.type==="path"){var _e=function(Ze){return Ze},Ve=_e,Ue=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(Ze){return Qe(Be(Ze)+wt)},at&&at.type==="date"&&(Ve=x.encodeDate(Ve))),Fe?qe("yanchor",ie.yanchor=it(ye+ve)):(Ue=function(Ze){return it(Ne(Ze)+ve)},ct&&ct.type==="date"&&(Ue=x.encodeDate(Ue))),qe("path",ie.path=D(ke,Ve,Ue))}else Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(qe("x0",ie.x0=Qe(Te+wt)),qe("x1",ie.x1=Qe(Oe+wt))),Fe?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(We){var _e=function(ht){return ht},Ve=_e,Ue=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(ht){return Qe(Be(ht)+wt)},at&&at.type==="date"&&(Ve=x.encodeDate(Ve))),Fe?qe("yanchor",ie.yanchor=it(ye+ve)):(Ue=function(ht){return it(Ne(ht)+ve)},ct&&ct.type==="date"&&(Ue=x.encodeDate(Ue))),qe("path",ie.path=D(ke,Ve,Ue))}else if(ze){if(Pe==="resize-over-start-point"){var Ze=Te+wt,Ge=Fe?Se-ve:Se+ve;qe("x0",ie.x0=Re?Ze:Qe(Ze)),qe("y0",ie.y0=Fe?Ge:it(Ge))}else if(Pe==="resize-over-end-point"){var Ke=Oe+wt,nt=Fe?Me-ve:Me+ve;qe("x1",ie.x1=Re?Ke:Qe(Ke)),qe("y1",ie.y1=Fe?nt:it(nt))}}else{var st=function(ht){return Pe.indexOf(ht)!==-1},mt=st("n"),tt=st("s"),Ft=st("w"),Vt=st("e"),St=mt?J+ve:J,$t=tt?ne+ve:ne,Dt=Ft?de+wt:de,gt=Vt?xe+wt:xe;Fe&&(mt&&(St=J-ve),tt&&($t=ne-ve)),(!Fe&&$t-St>De||Fe&&St-$t>De)&&(qe(ue,ie[ue]=Fe?St:it(St)),qe(ge,ie[ge]=Fe?$t:it($t))),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||Fe)&&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 Ue=Be(Re?ve.xanchor:u.midRange(_e?[ve.x0,ve.x1]:x.extractPathCoords(ve.path,_.paramIsX))),Ze=Ne(Fe?ve.yanchor:u.midRange(_e?[ve.y0,ve.y1]:x.extractPathCoords(ve.path,_.paramIsY)));if(Ue=x.roundPositionForSharpStrokeRendering(Ue,1),Ze=x.roundPositionForSharpStrokeRendering(Ze,1),Re&&Fe){var Ge="M"+(Ue-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"+(Ue-1-1)+","+(Ze-9-1)+"v18 h2 v-18 Z";Ve.attr("d",Ke)}else{var nt="M"+(Ue-9-1)+","+(Ze-1-1)+"h18 v2 h-18 Z";Ve.attr("d",nt)}}()}function Bt(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)*U<=.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"?N(R._fullLayout._shapeUpperLayer):z.xref==="paper"||z.yref==="paper"?N(R._fullLayout._shapeLowerLayer):B._hadPlotinfo?N((B.mainplotinfo||B).shapelayer):N(R._fullLayout._shapeLowerLayer))}function A(R,F,P){var z=(P.xref+P.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,P){return R.replace(_.segmentRE,function(z){var B=0,N=z.charAt(0),j=_.paramIsX[N],$=_.paramIsY[N],E=_.numParams[N];return N+z.substr(1).replace(_.paramRE,function(U){return B>=E||(j[B]?U=F(U):$[B]&&(U=P(U)),B++),U})})}function O(R){S(R)&&R._fullLayout._activeShapeIndex>=0&&(g(R),delete R._fullLayout._activeShapeIndex,T(R))}o.exports={draw:T,drawOne:C,eraseActiveShape:function(R){if(S(R)){g(R);var F=R._fullLayout._activeShapeIndex,P=(R.layout||{}).shapes||[];if(F0&&CH&&(Y="X"),Y});return W>H&&(Q=Q.replace(/[\s,]*X.*/,""),c.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,m=C+d.x1}else v=p(d.x0),m=p(d.x1);if(d.ysizemode==="pixel"){var A=y(d.yanchor);b=A-d.y0,w=A-d.y1}else b=y(d.y0),w=y(d.y1);if(_==="line")return"M"+v+","+b+"L"+m+","+w;if(_==="rect")return"M"+v+","+b+"H"+m+"V"+w+"H"+v+"Z";var D=(v+m)/2,O=(b+w)/2,R=Math.abs(D-v),F=Math.abs(O-b),P="A"+R+","+F,z=D+R+","+O;return"M"+z+P+" 0 1,1 "+D+","+(O-F)+P+" 0 0,1 "+z+"Z"}},89853:function(o,a,r){var l=r(34031);o.exports={moduleType:"component",name:"shapes",layoutAttributes:r(89827),supplyLayoutDefaults:r(84726),supplyDrawNewShapeDefaults:r(45547),includeBasePlot:r(76325)("shapes"),calcAutorange:r(5627),draw:l.draw,drawOne:l.drawOne}},37281:function(o){function a(u,f){return f?f.d2l(u):u}function r(u,f){return f?f.l2d(u):u}function l(u,f){return a(u.x1,f)-a(u.x0,f)}function c(u,f,d){return a(u.y1,d)-a(u.y0,d)}o.exports={x0:function(u){return u.x0},x1:function(u){return u.x1},y0:function(u){return u.y0},y1:function(u){return u.y1},slope:function(u,f,d){return u.type!=="line"?void 0:c(u,0,d)/l(u,f)},dx:l,dy:c,width:function(u,f){return Math.abs(l(u,f))},height:function(u,f,d){return Math.abs(c(u,0,d))},length:function(u,f,d){return u.type!=="line"?void 0:Math.sqrt(Math.pow(l(u,f),2)+Math.pow(c(u,0,d),2))},xcenter:function(u,f){return r((a(u.x1,f)+a(u.x0,f))/2,f)},ycenter:function(u,f,d){return r((a(u.y1,d)+a(u.y0,d))/2,d)}}},75067:function(o,a,r){var l=r(41940),c=r(35025),u=r(1426).extendDeepAll,f=r(30962).overrideAll,d=r(85594),h=r(44467).templatedArray,p=r(98292),g=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=f(h("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:u(c({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,r){var l=r(71828),c=r(85501),u=r(75067),f=r(98292).name,d=u.steps;function h(g,y,v){function m(k,T){return l.coerce(g,y,u,k,T)}for(var b=c(g,y,{name:"steps",handleItemDefaults:p}),w=0,_=0;_0&&(W=W.transition().duration($.transition.duration).ease($.transition.easing)),W.attr("transform",h(q-.5*y.gripWidth,$._dims.currentValueTotalHeight))}}function P(j,$){var E=j._dims;return E.inputAreaStart+y.stepInset+(E.inputAreaLength-2*y.stepInset)*Math.min(1,Math.max(0,$))}function z(j,$){var E=j._dims;return Math.min(1,Math.max(0,($-y.stepInset-E.inputAreaStart)/(E.inputAreaLength-2*y.stepInset-2*E.inputAreaStart)))}function B(j,$,E){var U=E._dims,G=d.ensureSingle(j,"rect",y.railTouchRectClass,function(L){L.call(O,$,j,E).style("pointer-events","all")});G.attr({width:U.inputAreaLength,height:Math.max(U.inputAreaWidth,y.tickOffset+E.ticklen+U.labelHeight)}).call(u.fill,E.bgcolor).attr("opacity",0),f.setTranslate(G,0,U.currentValueTotalHeight)}function N(j,$){var E=$._dims,U=E.inputAreaLength-2*y.railInset,G=d.ensureSingle(j,"rect",y.railRectClass);G.attr({width:U,height:y.railWidth,rx:y.railRadius,ry:y.railRadius,"shape-rendering":"crispEdges"}).call(u.stroke,$.bordercolor).call(u.fill,$.bgcolor).style("stroke-width",$.borderwidth+"px"),f.setTranslate(G,y.railInset,.5*(E.inputAreaWidth-y.railWidth)+E.currentValueTotalHeight)}o.exports=function(j){var $=j._context.staticPlot,E=j._fullLayout,U=function(te,ee){for(var H=te[y.name],Q=[],Y=0;Y0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),c.autoMargin(j,_(te))}if(G.enter().append("g").classed(y.containerClassName,!0).style("cursor",$?null:"ew-resize"),G.exit().each(function(){l.select(this).selectAll("g."+y.groupClassName).each(L)}).remove(),U.length!==0){var q=G.selectAll("g."+y.groupClassName).data(U,x);q.enter().append("g").classed(y.groupClassName,!0),q.exit().each(L).remove();for(var W=0;W0||Oe<0){var J={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[A.side];Q.attr("transform",h(J[0],J[1]))}}}return W.call(V),G&&(N?W.on(".opacity",null):(P=0,z=!0,W.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)})),W.call(y.makeEditable,{gd:w}).on("edit",function(H){C!==void 0?f.call("_guiRestyle",w,M,H,C):f.call("_guiRelayout",w,M,H)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(H){this.text(H||" ").call(y.positionText,D.x,D.y)})),W.classed("js-placeholder",z),R}}},7163:function(o,a,r){var l=r(41940),c=r(22399),u=r(1426).extendFlat,f=r(30962).overrideAll,d=r(35025),h=r(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=f(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:u(d({editType:"arraydraw"}),{}),font:l({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:c.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,r){var l=r(71828),c=r(85501),u=r(7163),f=r(75909).name,d=u.buttons;function h(g,y,v){function m(b,w){return l.coerce(g,y,u,b,w)}m("visible",c(g,y,{name:"buttons",handleItemDefaults:p}).length>0)&&(m("active"),m("direction"),m("type"),m("showactive"),m("x"),m("y"),l.noneOrAll(g,y,["x","y"]),m("xanchor"),m("yanchor"),m("pad.t"),m("pad.r"),m("pad.b"),m("pad.l"),l.coerceFont(m,"font",v.font),m("bgcolor",v.paper_bgcolor),m("bordercolor"),m("borderwidth"))}function p(g,y){function v(m,b){return l.coerce(g,y,d,m,b)}v("visible",g.method==="skip"||Array.isArray(g.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}o.exports=function(g,y){c(g,y,{name:f,handleItemDefaults:h})}},13689:function(o,a,r){var l=r(39898),c=r(74875),u=r(7901),f=r(91424),d=r(71828),h=r(63893),p=r(44467).arrayEditor,g=r(18783).LINE_SPACING,y=r(75909),v=r(25849);function m(P){return P._index}function b(P,z){return+P.attr(y.menuIndexAttrName)===z._index}function w(P,z,B,N,j,$,E,U){z.active=E,p(P.layout,y.name,z).applyUpdate("active",E),z.type==="buttons"?x(P,N,null,null,z):z.type==="dropdown"&&(j.attr(y.menuIndexAttrName,"-1"),_(P,N,j,$,z),U||x(P,N,j,$,z))}function _(P,z,B,N,j){var $=d.ensureSingle(z,"g",y.headerClassName,function(W){W.style("pointer-events","all")}),E=j._dims,U=j.active,G=j.buttons[U]||y.blankHeaderOpts,L={y:j.pad.t,yPad:0,x:j.pad.l,xPad:0,index:0},q={width:E.headerWidth,height:E.headerHeight};$.call(k,j,G,P).call(R,j,L,q),d.ensureSingle(z,"text",y.headerArrowClassName,function(W){W.attr("text-anchor","end").call(f.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}),$.on("click",function(){B.call(F,String(b(B,j)?-1:j._index)),x(P,z,B,N,j)}),$.on("mouseover",function(){$.call(C)}),$.on("mouseout",function(){$.call(A,j)}),f.setTranslate(z,E.lx,E.ly)}function x(P,z,B,N,j){B||(B=z).attr("pointer-events","all");var $=function(Q){return+Q.attr(y.menuIndexAttrName)==-1}(B)&&j.type!=="buttons"?[]:j.buttons,E=j.type==="dropdown"?y.dropdownButtonClassName:y.buttonClassName,U=B.selectAll("g."+E).data(d.filterVisible($)),G=U.enter().append("g").classed(E,!0),L=U.exit();j.type==="dropdown"?(G.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var q=0,W=0,V=j._dims,te=["up","down"].indexOf(j.direction)!==-1;j.type==="dropdown"&&(te?W=V.headerHeight+y.gapButtonHeader:q=V.headerWidth+y.gapButtonHeader),j.type==="dropdown"&&j.direction==="up"&&(W=-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+W+j.pad.t,yPad:y.gapButton,xPad:y.gapButton,index:0},H={l:ee.x+j.borderwidth,t:ee.y+j.borderwidth};U.each(function(Q,Y){var Z=l.select(this);Z.call(k,j,Q,P).call(R,j,ee),Z.on("click",function(){l.event.defaultPrevented||(Q.execute&&(Q.args2&&j.active===Y?(w(P,j,0,z,B,N,-1),c.executeAPICommand(P,Q.method,Q.args2)):(w(P,j,0,z,B,N,Y),c.executeAPICommand(P,Q.method,Q.args))),P.emit("plotly_buttonclicked",{menu:j,button:Q,active:j.active}))}),Z.on("mouseover",function(){Z.call(C)}),Z.on("mouseout",function(){Z.call(A,j),U.call(S,j)})}),U.call(S,j),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=j.direction,N&&(U.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(N)}).remove(),B.length!==0){var $=j.selectAll("g."+y.headerGroupClassName).data(B,m);$.enter().append("g").classed(y.headerGroupClassName,!0);for(var E=d.ensureSingle(j,"g",y.dropdownButtonGroupClassName,function(W){W.style("pointer-events","all")}),U=0;UR,z=d.barLength+2*d.barPad,B=d.barWidth+2*d.barPad,N=k,j=M+S;j+B>m&&(j=m-B);var $=this.container.selectAll("rect.scrollbar-horizontal").data(P?[0]:[]);$.exit().on(".drag",null).remove(),$.enter().append("rect").classed("scrollbar-horizontal",!0).call(c.fill,d.barColor),P?(this.hbar=$.attr({rx:d.barRadius,ry:d.barRadius,x:N,y:j,width:z,height:B}),this._hbarXMin=N+z/2,this._hbarTranslateMax=R-z):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=S>F,U=d.barWidth+2*d.barPad,G=d.barLength+2*d.barPad,L=k+T,q=M;L+U>v&&(L=v-U);var W=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);W.exit().on(".drag",null).remove(),W.enter().append("rect").classed("scrollbar-vertical",!0).call(c.fill,d.barColor),E?(this.vbar=W.attr({rx:d.barRadius,ry:d.barRadius,x:L,y:q,width:U,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?w+U+.5:w+.5,H=_-.5,Q=P?x+B+.5:x+.5,Y=y._topdefs.selectAll("#"+V).data(P||E?[0]:[]);if(Y.exit().remove(),Y.enter().append("clipPath").attr("id",V).append("rect"),P||E?(this._clipRect=Y.select("rect").attr({x:Math.floor(te),y:Math.floor(H),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Q)-Math.floor(H)}),this.container.call(u.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(u.setClipUrl,null),delete this._clipRect),P||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));P&&this.hbar.on(".drag",null).call(X),E&&this.vbar.on(".drag",null).call(X)}this.setTranslate(p,g)},d.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(u.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 g=h+this._hbarXMin,y=g+this._hbarTranslateMax;h=(f.constrain(l.event.x,g,y)-g)/(y-g)*(this.position.w-this._box.w)}if(this.vbar){var v=p+this._vbarYMin,m=v+this._vbarTranslateMax;p=(f.constrain(l.event.y,v,m)-v)/(m-v)*(this.position.h-this._box.h)}this.setTranslate(h,p)},d.prototype.setTranslate=function(h,p){var g=this.position.w-this._box.w,y=this.position.h-this._box.h;if(h=f.constrain(h||0,0,g),p=f.constrain(p||0,0,y),this.translateX=h,this.translateY=p,this.container.call(u.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/g;this.hbar.call(u.setTranslate,h+v*this._hbarTranslateMax,p)}if(this.vbar){var m=p/y;this.vbar.call(u.setTranslate,h,p+m*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,r,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",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+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",r,"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",r,"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(r){return r.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,r){a.version=r(11506).version,r(7417),r(98847);for(var l=r(73972),c=a.register=l.register,u=r(10641),f=Object.keys(u),d=0;d",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(o,a){a.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=.3333333333333333},a.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>.3333333333333333&&r.x<.6666666666666666},a.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=.6666666666666666},a.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=.6666666666666666},a.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>.3333333333333333&&r.y<.6666666666666666},a.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=.3333333333333333}},26348:function(o,a,r){var l=r(64872),c=l.mod,u=l.modHalf,f=Math.PI,d=2*f;function h(v){return Math.abs(v[1]-v[0])>d-1e-14}function p(v,m){return u(m-v,d)}function g(v,m){if(h(m))return!0;var b,w;m[0](w=c(w,d))&&(w+=d);var _=c(v,d),x=_+d;return _>=b&&_<=w||x>=b&&x<=w}function y(v,m,b,w,_,x,k){_=_||0,x=x||0;var T,M,S,C,A,D=h([b,w]);function O(z,B){return[z*Math.cos(B)+_,x-z*Math.sin(B)]}D?(T=0,M=f,S=d):b=_&&v<=x);var _,x},pathArc:function(v,m,b,w,_){return y(null,v,m,b,w,_,0)},pathSector:function(v,m,b,w,_){return y(null,v,m,b,w,_,1)},pathAnnulus:function(v,m,b,w,_,x){return y(v,m,b,w,_,x,1)}}},73627:function(o,a){var r=Array.isArray,l=ArrayBuffer,c=DataView;function u(h){return l.isView(h)&&!(h instanceof c)}function f(h){return r(h)||u(h)}function d(h,p,g){if(f(h)){if(f(h[0])){for(var y=g,v=0;vx.max?w.set(_):w.set(+b)}},integer:{coerceFunction:function(b,w,_,x){b%1||!l(b)||x.min!==void 0&&bx.max?w.set(_):w.set(+b)}},string:{coerceFunction:function(b,w,_,x){if(typeof b!="string"){var k=typeof b=="number";x.strict!==!0&&k?w.set(String(b)):w.set(_)}else x.noBlank&&!b?w.set(_):w.set(b)}},color:{coerceFunction:function(b,w,_){c(b).isValid()?w.set(b):w.set(_)}},colorlist:{coerceFunction:function(b,w,_){Array.isArray(b)&&b.length&&b.every(function(x){return c(x).isValid()})?w.set(b):w.set(_)}},colorscale:{coerceFunction:function(b,w,_){w.set(f.get(b,_))}},angle:{coerceFunction:function(b,w,_){b==="auto"?w.set("auto"):l(b)?w.set(y(+b,360)):w.set(_)}},subplotid:{coerceFunction:function(b,w,_,x){var k=x.regex||g(_);typeof b=="string"&&k.test(b)?w.set(b):w.set(_)},validateFunction:function(b,w){var _=w.dflt;return b===_||typeof b=="string"&&!!g(_).test(b)}},flaglist:{coerceFunction:function(b,w,_,x){if((x.extras||[]).indexOf(b)===-1)if(typeof b=="string"){for(var k=b.split("+"),T=0;T=l&&$<=c?$:g}if(typeof $!="string"&&typeof $!="number")return g;$=String($);var q=S(E),W=$.charAt(0);!q||W!=="G"&&W!=="g"||($=$.substr(1),E="");var V=q&&E.substr(0,7)==="chinese",te=$.match(V?T:k);if(!te)return g;var ee=te[1],H=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 g;var re;ee=Number(ee);try{var ie=_.getComponentMethod("calendars","getCal")(E);if(V){var le=H.charAt(H.length-1)==="i";H=parseInt(H,10),re=ie.newDate(ee,ie.toMonthIndex(ee,H,le),Q)}else re=ie.newDate(ee,Number(H),Q)}catch{return g}return re?(re.toJD()-w)*y+Y*v+Z*m+X*b:g}ee=ee.length===2?(Number(ee)+2e3-M)%100+M:Number(ee),H-=1;var se=new Date(Date.UTC(2e3,H,Q,Y,Z));return se.setUTCFullYear(ee),se.getUTCMonth()!==H||se.getUTCDate()!==Q?g:se.getTime()+X*b},l=a.MIN_MS=a.dateTime2ms("-9999"),c=a.MAX_MS=a.dateTime2ms("9999-12-31 23:59:59.9999"),a.isDateTime=function($,E){return a.dateTime2ms($,E)!==g};var A=90*y,D=3*v,O=5*m;function R($,E,U,G,L){if((E||U||G||L)&&($+=" "+C(E,2)+":"+C(U,2),(G||L)&&($+=":"+C(G,2),L))){for(var q=4;L%10==0;)q-=1,L/=10;$+="."+C(L,q)}return $}a.ms2DateTime=function($,E,U){if(typeof $!="number"||!($>=l&&$<=c))return g;E||(E=0);var G,L,q,W,V,te,ee=Math.floor(10*h($+.05,1)),H=Math.round($-ee/10);if(S(U)){var Q=Math.floor(H/y)+w,Y=Math.floor(h($,y));try{G=_.getComponentMethod("calendars","getCal")(U).fromJD(Q).formatDate("yyyy-mm-dd")}catch{G=x("G%Y-%m-%d")(new Date(H))}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&&$<=c-y))return g;var E=Math.floor(10*h($+.05,1)),U=new Date(Math.round($-E/10));return R(u("%Y-%m-%d")(U),U.getHours(),U.getMinutes(),U.getSeconds(),10*U.getUTCMilliseconds()+E)},a.cleanDate=function($,E,U){if($===g)return E;if(a.isJSDate($)||typeof $=="number"&&isFinite($)){if(S(U))return d.error("JS Dates and milliseconds are incompatible with world calendars",$),E;if(!($=a.ms2DateTimeLocal(+$))&&E!==void 0)return E}else if(!a.isDateTime($,U))return d.error("unrecognized date",$),E;return $};var F=/%\d?f/g,P=/%h/g,z={1:"1",2:"1",3:"2",4:"2"};function B($,E,U,G){$=$.replace(F,function(q){var W=Math.min(+q.charAt(1)||6,6);return(E/1e3%1+2).toFixed(W).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(E+.05));if($=$.replace(P,function(){return z[U("%q")(L)]}),S(G))try{$=_.getComponentMethod("calendars","worldCalFmt")($,E,G)}catch{return"Invalid"}return U($)(L)}var N=[59,59.9,59.99,59.999,59.9999];a.formatDate=function($,E,U,G,L,q){if(L=S(L)&&L,!E)if(U==="y")E=q.year;else if(U==="m")E=q.month;else{if(U!=="d")return function(W,V){var te=h(W+.05,y),ee=C(Math.floor(te/v),2)+":"+C(h(Math.floor(te/m),60),2);if(V!=="M"){f(V)||(V=0);var H=(100+Math.min(h(W/b,60),N[V])).toFixed(V).substr(1);V>0&&(H=H.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+H}return ee}($,U)+` +`+B(q.dayMonthYear,$,G,L);E=q.dayMonth+` +`+q.year}return B(E,$,G,L)};var j=3*y;a.incrementMonth=function($,E,U){U=S(U)&&U;var G=h($,y);if($=Math.round($-G),U)try{var L=Math.round($/y)+w,q=_.getComponentMethod("calendars","getCal")(U),W=q.fromJD(L);return E%12?q.add(W,E,"m"):q.add(W,E/12,"y"),(W.toJD()-w)*y+G}catch{d.error("invalid ms "+$+" in calendar "+U)}var V=new Date($+j);return V.setUTCMonth(V.getUTCMonth()+E)+G-j},a.findExactDates=function($,E){for(var U,G,L=0,q=0,W=0,V=0,te=S(E)&&_.getComponentMethod("calendars","getCal")(E),ee=0;ee<$.length;ee++)if(G=$[ee],f(G)){if(!(G%y))if(te)try{(U=te.fromJD(G/y+w)).day()===1?U.month()===1?L++:q++:W++}catch{}else(U=new Date(G)).getUTCDate()===1?U.getUTCMonth()===0?L++:q++:W++}else V++;W+=q+=L;var H=$.length-V;return{exactYears:L/H,exactMonths:q/H,exactDays:W/H}}},24401:function(o,a,r){var l=r(39898),c=r(47769),u=r(35657),f=r(79576);function d(v){var m=v&&v.parentNode;m&&m.removeChild(v)}function h(v,m,b){var w="plotly.js-style-"+v,_=document.getElementById(w);_||((_=document.createElement("style")).setAttribute("id",w),_.appendChild(document.createTextNode("")),document.head.appendChild(_));var x=_.sheet;x.insertRule?x.insertRule(m+"{"+b+"}",0):x.addRule?x.addRule(m,b,0):c.warn("addStyleRule failed")}function p(v){var m=window.getComputedStyle(v,null),b=m.getPropertyValue("-webkit-transform")||m.getPropertyValue("-moz-transform")||m.getPropertyValue("-ms-transform")||m.getPropertyValue("-o-transform")||m.getPropertyValue("transform");return b==="none"?null:b.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(w){return+w})}function g(v){for(var m=[];y(v);)m.push(v),v=v.parentNode;return m}function y(v){return v&&(v instanceof Element||v instanceof HTMLElement)}o.exports={getGraphDiv:function(v){var m;if(typeof v=="string"){if((m=document.getElementById(v))===null)throw new Error("No DOM element with id '"+v+"' exists on the page.");return m}if(v==null)throw new Error("DOM element provided is null or undefined");return v},isPlotDiv:function(v){var m=l.select(v);return m.node()instanceof HTMLElement&&m.size()&&m.classed("js-plotly-plot")},removeElement:d,addStyleRule:function(v,m){h("global",v,m)},addRelatedStyleRule:h,deleteRelatedStyleRule:function(v){var m="plotly.js-style-"+v,b=document.getElementById(m);b&&d(b)},getFullTransformMatrix:function(v){var m=g(v),b=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return m.forEach(function(w){var _=p(w);if(_){var x=u.convertCssMatrix(_);b=f.multiply(b,b,x)}}),b},getElementTransformMatrix:p,getElementAndAncestors:g,equalDomRects:function(v,m){return v&&m&&v.top===m.top&&v.left===m.left&&v.right===m.right&&v.bottom===m.bottom}}},11086:function(o,a,r){var l=r(15398).EventEmitter,c={init:function(u){if(u._ev instanceof l)return u;var f=new l,d=new l;return u._ev=f,u._internalEv=d,u.on=f.on.bind(f),u.once=f.once.bind(f),u.removeListener=f.removeListener.bind(f),u.removeAllListeners=f.removeAllListeners.bind(f),u._internalOn=d.on.bind(d),u._internalOnce=d.once.bind(d),u._removeInternalListener=d.removeListener.bind(d),u._removeAllInternalListeners=d.removeAllListeners.bind(d),u.emit=function(h,p){typeof jQuery<"u"&&jQuery(u).trigger(h,p),f.emit(h,p),d.emit(h,p)},u},triggerHandler:function(u,f,d){var h,p;typeof jQuery<"u"&&(h=jQuery(u).triggerHandler(f,d));var g=u._ev;if(!g)return h;var y,v=g._events[f];if(!v)return h;function m(b){return b.listener?(g.removeListener(f,b.listener),b.fired?void 0:(b.fired=!0,b.listener.apply(g,[d]))):b.apply(g,[d])}for(v=Array.isArray(v)?v:[v],y=0;y1||D<0||D>1?null:{x:p+x*D,y:g+M*D}}function h(p,g,y,v,m){var b=v*p+m*g;if(b<0)return v*v+m*m;if(b>y){var w=v-p,_=m-g;return w*w+_*_}var x=v*g-m*p;return x*x/y}a.segmentsIntersect=d,a.segmentDistance=function(p,g,y,v,m,b,w,_){if(d(p,g,y,v,m,b,w,_))return 0;var x=y-p,k=v-g,T=w-m,M=_-b,S=x*x+k*k,C=T*T+M*M,A=Math.min(h(x,k,S,m-p,b-g),h(x,k,S,w-p,_-g),h(T,M,C,p-m,g-b),h(T,M,C,y-m,v-b));return Math.sqrt(A)},a.getTextLocation=function(p,g,y,v){if(p===c&&v===u||(l={},c=p,u=v),l[y])return l[y];var m=p.getPointAtLength(f(y-v/2,g)),b=p.getPointAtLength(f(y+v/2,g)),w=Math.atan((b.y-m.y)/(b.x-m.x)),_=p.getPointAtLength(f(y,g)),x={x:(4*_.x+m.x+b.x)/6,y:(4*_.y+m.y+b.y)/6,theta:w};return l[y]=x,x},a.clearLocationCache=function(){c=null},a.getVisibleSegment=function(p,g,y){var v,m,b=g.left,w=g.right,_=g.top,x=g.bottom,k=0,T=p.getTotalLength(),M=T;function S(A){var D=p.getPointAtLength(A);A===0?v=D:A===T&&(m=D);var O=D.xw?D.x-w:0,R=D.y<_?_-D.y:D.y>x?D.y-x: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-m.x)<.1&&Math.abs(v.y-m.y)<.1}},a.findPointOnPath=function(p,g,y,v){for(var m,b,w,_=(v=v||{}).pathLength||p.getTotalLength(),x=v.tolerance||.001,k=v.iterationLimit||30,T=p.getPointAtLength(0)[y]>p.getPointAtLength(_)[y]?-1:1,M=0,S=0,C=_;M0?C=m:S=m,M++}return b}},23389:function(o){o.exports=function(a){return a}},39240:function(o){o.exports=function(a,r){if(!r)return a;var l=1/Math.abs(r),c=l>1?(l*a+l*r)/l:a+r,u=String(c).length;if(u>16){var f=String(r).length;if(u>=String(a).length+f){var d=parseFloat(c).toPrecision(12);d.indexOf("e+")===-1&&(c=+d)}}return c}},71828:function(o,a,r){var l=r(39898),c=r(84096).g0,u=r(60721).WU,f=r(92770),d=r(50606),h=d.FP_SAFE,p=-h,g=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=u(y.adjustFormat(Y))}catch{return y.warnBadFormat(Y),y.noFormat}return Z},y.nestedProperty=r(65487),y.keyedContainer=r(66636),y.relativeAttr=r(6962),y.isPlainObject=r(41965),y.toLogRange=r(58163),y.relinkPrivateKeys=r(51332);var m=r(73627);y.isTypedArray=m.isTypedArray,y.isArrayOrTypedArray=m.isArrayOrTypedArray,y.isArray1D=m.isArray1D,y.ensureArray=m.ensureArray,y.concat=m.concat,y.maxRowLength=m.maxRowLength,y.minRowLength=m.minRowLength;var b=r(64872);y.mod=b.mod,y.modHalf=b.modHalf;var w=r(96554);y.valObjectMeta=w.valObjectMeta,y.coerce=w.coerce,y.coerce2=w.coerce2,y.coerceFont=w.coerceFont,y.coercePattern=w.coercePattern,y.coerceHoverinfo=w.coerceHoverinfo,y.coerceSelectionMarkerOpacity=w.coerceSelectionMarkerOpacity,y.validate=w.validate;var _=r(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 x=r(65888);y.findBin=x.findBin,y.sorterAsc=x.sorterAsc,y.sorterDes=x.sorterDes,y.distinctVals=x.distinctVals,y.roundUp=x.roundUp,y.sort=x.sort,y.findIndexOfMin=x.findIndexOfMin,y.sortObjectKeys=r(78607);var k=r(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=r(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=r(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=r(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=r(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 A=r(1426);y.extendFlat=A.extendFlat,y.extendDeep=A.extendDeep,y.extendDeepAll=A.extendDeepAll,y.extendDeepNoArrays=A.extendDeepNoArrays;var D=r(47769);y.log=D.log,y.warn=D.warn,y.error=D.error;var O=r(30587);y.counterRegex=O.counter;var R=r(79990);y.throttle=R.throttle,y.throttleDone=R.done,y.clearThrottle=R.clear;var F=r(24401);function P(Y){var Z={};for(var X in Y)for(var re=Y[X],ie=0;ieh||Y=Z)&&f(Y)&&Y>=0&&Y%1==0},y.noop=r(64213),y.identity=r(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 U=/^\w*$/;y.templateString=function(Y,Z){var X={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(re,ie){var le;return U.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+)?)$/,W={max:10,count:0,name:"texttemplate",parseMultDiv:!0};y.texttemplateStringForShapes=function(){return te.apply(W,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(Pe){var Ee=Pe.match(q);return Ee?{key:Ee[1],op:Ee[2],number:Number(Ee[3])}:{key:Pe,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 H=y.getFirefoxVersion(),Q=H!==null&&H<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,r){var l=r(65487),c=/^\w*$/;o.exports=function(u,f,d,h){var p,g,y;d=d||"name",h=h||"value";var v={};f&&f.length?(y=l(u,f),g=y.get()):g=u,f=f||"";var m={};if(g)for(p=0;p2)return v[x]=2|v[x],w.set(_,null);if(b){for(p=x;p1){var d=["LOG:"];for(f=0;f1){var h=[];for(f=0;f"),"long")}},u.warn=function(){var f;if(l.logging>0){var d=["WARN:"];for(f=0;f0){var h=[];for(f=0;f"),"stick")}},u.error=function(){var f;if(l.logging>0){var d=["ERROR:"];for(f=0;f0){var h=[];for(f=0;f"),"stick")}}},77310:function(o,a,r){var l=r(39898);o.exports=function(c,u,f){var d=c.selectAll("g."+f.replace(/\s/g,".")).data(u,function(p){return p[0].trace.uid});d.exit().remove(),d.enter().append("g").attr("class",f),d.order();var h=c.classed("rangeplot")?"nodeRangePlot3":"node3";return d.each(function(p){p[0][h]=l.select(this)}),d}},35657:function(o,a,r){var l=r(79576);a.init2dArray=function(c,u){for(var f=new Array(c),d=0;dr/2?a-Math.round(a/r)*r:a}}},65487:function(o,a,r){var l=r(92770),c=r(73627).isArrayOrTypedArray;function u(v,m){return function(){var b,w,_,x,k,T=v;for(x=0;x/g),w=0;wg||M===c||Mv||k&&m(x))}:function(x,k){var T=x[0],M=x[1];if(T===c||Tg||M===c||Mv)return!1;var S,C,A,D,O,R=h.length,F=h[0][0],P=h[0][1],z=0;for(S=1;SMath.max(C,F)||M>Math.max(A,P)))if(Mw||Math.abs(l(y,x))>p)return!0;return!1},u.filter=function(f,d){var h=[f[0]],p=0,g=0;function y(v){f.push(v);var m=h.length,b=p;h.splice(g+1);for(var w=b+1;w1&&y(f.pop()),{addPt:y,raw:f,filtered:h}}},45142:function(o,a,r){var l=r(92770),c=r(35791);o.exports=function(u){var f;if(typeof(f=u&&u.hasOwnProperty("userAgent")?u.userAgent:function(){var m;return typeof navigator<"u"&&(m=navigator.userAgent),m&&m.headers&&typeof m.headers["user-agent"]=="string"&&(m=m.headers["user-agent"]),m}())!="string")return!0;var d=c({ua:{headers:{"user-agent":f}},tablet:!0,featureDetect:!1});if(!d){for(var h=f.split(" "),p=1;p-1;g--){var y=h[g];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,r){if(r instanceof RegExp){for(var l=r.toString(),c=0;cc.queueLength&&(f.undoQueue.queue.shift(),f.undoQueue.index--))},startSequence:function(f){f.undoQueue=f.undoQueue||{index:0,queue:[],sequence:!1},f.undoQueue.sequence=!0,f.undoQueue.beginSequence=!0},stopSequence:function(f){f.undoQueue=f.undoQueue||{index:0,queue:[],sequence:!1},f.undoQueue.sequence=!1,f.undoQueue.beginSequence=!1},undo:function(f){var d,h;if(!(f.undoQueue===void 0||isNaN(f.undoQueue.index)||f.undoQueue.index<=0)){for(f.undoQueue.index--,d=f.undoQueue.queue[f.undoQueue.index],f.undoQueue.inSequence=!0,h=0;h=f.undoQueue.queue.length)){for(d=f.undoQueue.queue[f.undoQueue.index],f.undoQueue.inSequence=!0,h=0;hm}function y(v,m){return v>=m}a.findBin=function(v,m,b){if(l(m.start))return b?Math.ceil((v-m.start)/m.size-d)-1:Math.floor((v-m.start)/m.size+d);var w,_,x=0,k=m.length,T=0,M=k>1?(m[k-1]-m[0])/(k-1):1;for(_=M>=0?b?h:p:b?y:g,v+=M*d*(b?-1:1)*(M>=0?1:-1);x90&&c.log("Long binary search..."),x-1},a.sorterAsc=function(v,m){return v-m},a.sorterDes=function(v,m){return m-v},a.distinctVals=function(v){var m,b=v.slice();for(b.sort(a.sorterAsc),m=b.length-1;m>-1&&b[m]===f;m--);for(var w,_=b[m]-b[0]||1,x=_/(m||1)/1e4,k=[],T=0;T<=m;T++){var M=b[T],S=M-w;w===void 0?(k.push(M),w=M):S>x&&(_=Math.min(_,S),k.push(M),w=M)}return{vals:k,minDiff:_}},a.roundUp=function(v,m,b){for(var w,_=0,x=m.length-1,k=0,T=b?0:1,M=b?1:0,S=b?Math.ceil:Math.floor;_0&&(w=1),b&&w)return v.sort(m)}return w?v:v.reverse()},a.findIndexOfMin=function(v,m){m=m||u;for(var b,w=1/0,_=0;_d.length)&&(h=d.length),l(f)||(f=!1),c(d[0])){for(g=new Array(h),p=0;pu.length-1)return u[u.length-1];var d=f%1;return d*u[Math.ceil(f)]+(1-d)*u[Math.floor(f)]}},3883:function(o,a,r){var l=r(32396),c=r(91424),u=r(71828),f=null;o.exports=function(){if(f!==null)return f;f=!1;var d=u.isIE()||u.isSafari()||u.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")f=h.some(function(v){return p.apply(null,v)});else{var g=c.tester.append("image").attr("style",l.STYLE),y=window.getComputedStyle(g.node()).imageRendering;f=h.some(function(v){var m=v[1];return y===m||y===m.toLowerCase()}),g.remove()}}return f}},63893:function(o,a,r){var l=r(39898),c=r(71828),u=c.strTranslate,f=r(77922),d=r(18783).LINE_SPACING,h=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;a.convertToTspans=function($,E,U){var G=$.text(),L=!$.attr("data-notex")&&E&&E._context.typesetMath&&typeof MathJax<"u"&&G.match(h),q=l.select($.node().parentNode);if(!q.empty()){var W=$.attr("class")?$.attr("class").split(" ")[0]:"text";return W+="-math",q.selectAll("svg."+W).remove(),q.selectAll("g."+W+"-group").remove(),$.style("display",null).attr({"data-unformatted":G,"data-math":"N"}),L?(E&&E._promises||[]).push(new Promise(function(te){$.style("display","none");var ee=parseInt($.node().style.fontSize,10),H={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-"+c.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(g,"\\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 c.log("There was an error in the tex syntax.",Q),Z();le.remove()};se===2?MathJax.Hub.Queue(function(){return re=c.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=c.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 c.warn("No MathJax version:",MathJax.version)})(L[2],H,function(Q,Y,Z){q.selectAll("svg."+W).remove(),q.selectAll("g."+W+"-group").remove();var X=Q&&Q.select("svg");if(!X||!X.node())return V(),void te();var re=q.append("g").classed(W+"-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:W,height:le,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var se=$.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=+$.attr("x"),ce=+$.attr("y"),ye=-(ee||$.node().getBoundingClientRect().height)/4;if(W[0]==="y")re.attr({transform:"rotate("+[-90,Me,ce]+")"+u(-Se/2,ye-Oe/2)});else if(W[0]==="l")ce=ye-Oe/2;else if(W[0]==="a"&&W.indexOf("atitle")!==0)Me=0,ce=ye;else{var J=$.attr("text-anchor");Me-=Se*(J==="middle"?.5:J==="end"?1:0),ce=ce+ye-Oe/2}X.attr({x:Me,y:ce}),U&&U.call($,re),te(re)})})):V(),$}function V(){q.empty()||(W=$.attr("class")+"-math",q.select("svg."+W).remove()),$.text("").style("white-space","pre");var te=function(ee,H){H=H.replace(x," ");var Q,Y=!1,Z=[],X=-1;function re(){X++;var ue=document.createElementNS(f.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.",H),Q=Z[Z.length-1].node}else c.log("Ignoring unexpected end tag .",H)}M.test(H)?re():(Q=ee,Z=[{node:ee}]);for(var pe=H.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"},m={sub:"0.3em",sup:"-0.6em"},b={sub:"-0.21em",sup:"0.42em"},w="​",_=["http:","https:","mailto:","",void 0,":"],x=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,A=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,D=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function O($,E){if(!$)return null;var U=$.match(E),G=U&&(U[3]||U[4]);return G&&z(G)}var R=/(^|;)\s*color:/;a.plainText=function($,E){for(var U=(E=E||{}).len!==void 0&&E.len!==-1?E.len:1/0,G=E.allowedTags!==void 0?E.allowedTags:["br"],L=$.split(k),q=[],W="",V=0,te=0;te3?q.push(ee.substr(0,Z-3)+"..."):q.push(ee.substr(0,Z));break}W=""}}return q.join("")};var F={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},P=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function z($){return $.replace(P,function(E,U){return(U.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)}}(U.charAt(1)==="x"?parseInt(U.substr(2),16):parseInt(U.substr(1),10)):F[U])||E})}function B($){var E=encodeURI(decodeURI($)),U=document.createElement("a"),G=document.createElement("a");U.href=$,G.href=E;var L=U.protocol,q=G.protocol;return _.indexOf(L)!==-1&&_.indexOf(q)!==-1?E:""}function N($,E,U){var G,L,q,W=U.horizontalAlign,V=U.verticalAlign||"top",te=$.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=W==="right"?function(){return te.right-G.width}:W==="center"?function(){return te.left+(te.width-G.width)/2}:function(){return te.left},function(){G=this.node().getBoundingClientRect();var H=q()-ee.left,Q=L()-ee.top,Y=U.gd||{};if(U.gd){Y._fullLayout._calcInverseTransform(Y);var Z=c.apply3DTransform(Y._fullLayout._invTransform)(H,Q);H=Z[0],Q=Z[1]}return this.style({top:Q+"px",left:H+"px","z-index":1e3}),this}}a.convertEntities=z,a.sanitizeHTML=function($){$=$.replace(x," ");for(var E=document.createElement("p"),U=E,G=[],L=$.split(k),q=0;qd.ts+u?g():d.timer=setTimeout(function(){g(),d.timer=null},u)},a.done=function(c){var u=r[c];return u&&u.timer?new Promise(function(f){var d=u.onDone;u.onDone=function(){d&&d(),f(),u.onDone=null}}):Promise.resolve()},a.clear=function(c){if(c)l(r[c]),delete r[c];else for(var u in r)a.clear(u)}},58163:function(o,a,r){var l=r(92770);o.exports=function(c,u){if(c>0)return Math.log(c)/Math.LN10;var f=Math.log(Math.min(u[0],u[1]))/Math.LN10;return l(f)||(f=Math.log(Math.max(u[0],u[1]))/Math.LN10-6),f}},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,r){var l=r(73972);o.exports=function(c){for(var u,f,d=l.layoutArrayContainers,h=l.layoutArrayRegexes,p=c.split("[")[0],g=0;g0&&f.log("Clearing previous rejected promises from queue."),C._promises=[]},a.cleanLayout=function(C){var A,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,P=(d.subplotsRegistry.gl3d||{}).attrRegex,z=Object.keys(C);for(A=0;A3?(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 A=0;A0)return C.substr(0,A)}a.hasParent=function(C,A){for(var D=M(A);D;){if(D in C)return!0;D=M(D)}return!1};var S=["x","y","z"];a.clearAxisTypes=function(C,A,D){for(var O=0;O1&&u.warn("Full array edits are incompatible with other edits",w);var C=v[""][""];if(p(C))y.set(null);else{if(!Array.isArray(C))return u.warn("Unrecognized full array edit value",w,C),!0;y.set(C)}return!T&&(_(M,S),x(g),!0)}var A,D,O,R,F,P,z,B,N=Object.keys(v).map(Number).sort(f),j=y.get(),$=j||[],E=b(S,w).get(),U=[],G=-1,L=$.length;for(A=0;A$.length-(z?0:1))u.warn("index out of range",w,O);else if(P!==void 0)F.length>1&&u.warn("Insertion & removal are incompatible with edits to the same index.",w,O),p(P)?U.push(O):z?(P==="add"&&(P={}),$.splice(O,0,P),E&&E.splice(O,0,{})):u.warn("Unrecognized full object edit value",w,O,P),G===-1&&(G=O);else for(D=0;D=0;A--)$.splice(U[A],1),E&&E.splice(U[A],1);if($.length?j||y.set($):y.set(null),T)return!1;if(_(M,S),k!==c){var q;if(G===-1)q=N;else{for(L=Math.max($.length,L),q=[],A=0;A=G);A++)q.push(O);for(A=G;A=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]),$(ue,ge,"currentIndices"),be===void 0||Array.isArray(be)||(be=[be]),be!==void 0&&$(ue,be,"newIndices"),be!==void 0&&ge.length!==be.length)throw new Error("current and new indices must be of equal length.")}function U(ue,ge,be,we,ke){(function(qe,Ye,at,lt){var ct=f.isPlainObject(lt);if(!Array.isArray(qe.data))throw new Error("gd.data must be an array");if(!f.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 $(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 Pe=function(qe,Ye,at,lt){var ct,bt,Be,Ne,Qe,it=f.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,Fe){ue[Fe]=ue[Re],delete ue[Re]}}function H(ue,ge,be){ue=f.getGraphDiv(ue),A.clearPromiseQueue(ue);var we={};if(typeof ge=="string")we[ge]=be;else{if(!f.isPlainObject(ge))return f.warn("Relayout fail.",ge,be),Promise.reject();we=f.extendFlat({},ge)}Object.keys(we).length&&(ue.changed=!0);var ke=ie(ue,we),Pe=ke.flags;Pe.calc&&(ue.calcdata=void 0);var Ee=[v.previousPromises];Pe.layoutReplot?Ee.push(D.layoutReplot):Object.keys(we).length&&(Q(ue,Pe,ke)||v.supplyDefaults(ue),Pe.legend&&Ee.push(D.doLegend),Pe.layoutstyle&&Ee.push(D.layoutStyles),Pe.axrange&&Y(Ee,ke.rangesAltered),Pe.ticks&&Ee.push(D.doTicksRelayout),Pe.modebar&&Ee.push(D.doModeBar),Pe.camera&&Ee.push(D.doCamera),Pe.colorbars&&Ee.push(D.doColorBars),Ee.push(P)),Ee.push(v.rehover,v.redrag,v.reselect),p.add(ue,H,[ue,ke.undoit],H,[ue,ke.redoit]);var De=f.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,Pe=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 f.coerce(we,ke,w,Ye,at)},Re={};for(var Fe in be.rangesAltered){var ze=m.id2name(Fe);if(we=ue.layout[ze],ke=Pe[ze],b(we,ke,De,Re),ke._matchGroup){for(var We in ke._matchGroup)if(We!==Fe){var qe=Pe[m.id2name(We)];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 Pe in ge){var Ee=m.getFromId(we,Pe);if(ke.push(Pe),(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 m.draw(we,ke,{skipTitle:!0})}:function(we){return m.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,Pe=ue.layout,Ee=ue._fullLayout,De=Ee._guiEditing,Re=W(Ee._preGUI,De),Fe=Object.keys(ge),ze=m.list(ue),We=f.extendDeepAll({},ge),qe={};for(ee(ge),Fe=Object.keys(ge),we=0;we0&&typeof ut.parts[It]!="string";)It--;var Mt=ut.parts[It],Bt=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,Be[Je]=Mt==="reverse"?pt:q(Ve);var Ue=y.getLayoutValObject(Ee,ut.parts);if(Ue&&Ue.impliedEdits&&pt!==null)for(var Ze in Ue.impliedEdits)Ne(f.relativeAttr(Je,Ze),Ue.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(Bt.match(Z))kt(Bt),d(Ee,wt+"._inputRange").set(null);else if(Bt.match(X)){kt(Bt),d(Ee,wt+"._inputRange").set(null);var Ke=d(Ee,wt).get();Ke._inputDomain&&(Ke._input.domain=Ke._inputDomain.slice())}else Bt.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"],g.getComponentMethod("annotations","convertCoords")(ue,_e,pt,Ne),g.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"),g.getComponentMethod("annotations","convertCoords")(ue,Ft,Vt,Ne),g.getComponentMethod("images","convertCoords")(ue,Ft,Vt,Ne)}var St=C.containerArrayMatch(Je);if(St){be=St.array,we=St.index;var $t=St.property,Dt=Ue||{editType:"calc"};we!==""&&$t===""&&(C.isAddVal(pt)?Be[Je]=null:C.isRemoveVal(pt)?Be[Je]=(d(Pe,be).get()||[])[we]:f.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[$t]=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:Ue?O.update(ct,Ue):ct.calc=!0,ut.set(pt))}}for(be in qe)C.applyContainerArrayChanges(ue,Re(Pe,be),qe[be],ct,Re)||(ct.plot=!0);for(var ht in it){var yt=(Qe=m.getFromId(ue,ht))&&Qe._constraintGroup;if(yt)for(var qt in ct.calc=!0,yt)it[qt]||(m.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[Fe]:ke}function De(Fe){return Array.isArray(Pe)?Fe>=Pe.length?Pe[0]:Pe[Fe]:Pe}function Re(Fe,ze){var We=0;return function(){if(Fe&&++We===ze)return Fe()}}return we._frameWaitingCnt===void 0&&(we._frameWaitingCnt=0),new Promise(function(Fe,ze){function We(){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,A.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,Be=Array.isArray(ge);if(bt||Be||!f.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(f.isPlainObject(ge[we])){var qe=ge[we].name,Ye=(Re[qe]||We[qe]||{}).name,at=ge[we].name,lt=Re[Ye]||We[Ye];Ye&&at&&typeof at=="number"&<&&F<5&&(F++,f.warn('addFrames: overwriting frame "'+(Re[Ye]||We[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&&f.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.")),We[qe]={name:qe},ze.push({frame:v.supplyFrameDefaults(ge[we]),index:be&&be[we]!==void 0&&be[we]!==null?be[we]:Fe+we})}ze.sort(function(Je,ut){return Je.index>ut.index?-1:Je.index=0;we--){if(typeof(ke=ze[we].frame).name=="number"&&f.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(Pe=0;Pe=0;be--)we=ge[be],Pe.push({type:"delete",index:we}),Ee.unshift({type:"insert",index:we,value:ke[we]});var De=v.modifyFrames,Re=v.modifyFrames,Fe=[ue,Ee],ze=[ue,Pe];return p&&p.add(ue,De,Fe,Re,ze),v.modifyFrames(ue,Pe)},a.addTraces=function ue(ge,be,we){ge=f.getGraphDiv(ge);var ke,Pe,Ee=[],De=a.deleteTraces,Re=ue,Fe=[ge,Ee],ze=[ge,be];for(function(We,qe,Ye){var at,lt;if(!Array.isArray(We.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&&ze=0&&ze=N.length)return!1;if(R.dimensions===2){if(P++,F.length===P)return R;var j=F[P];if(!S(j))return!1;R=N[B][j]}else R=N[B]}else R=N}}return R}function S(R){return R===Math.round(R)&&R>=0}function C(){var R,F,P={};for(R in y(P,f),l.subplotsRegistry)if((F=l.subplotsRegistry[R]).layoutAttributes)if(Array.isArray(F.attr))for(var z=0;z=j.length)return!1;z=(P=(l.transformsRegistry[j[$].type]||{}).attributes)&&P[F[2]],N=3}else{var E=R._module;if(E||(E=(l.modules[R.type||u.type.dflt]||{})._module),!E)return!1;if(!(z=(P=E.attributes)&&P[B])){var U=E.basePlotModule;U&&U.attributes&&(z=U.attributes[B])}z||(z=u[B])}return M(z,F,N)},a.getLayoutValObject=function(R,F){var P=function(z,B){var N,j,$,E,U=z._basePlotModules;if(U){var G;for(N=0;N=v&&(y._input||{})._templateitemname;b&&(m=v);var w,_=g+"["+m+"]";function x(){w={},b&&(w[_]={},w[_][u]=b)}function k(M,S){b?l.nestedProperty(w[_],M).set(S):w[_+"."+M]=S}function T(){var M=w;return x(),M}return x(),{modifyBase:function(M,S){w[M]=S},modifyItem:k,getUpdateObj:T,applyUpdate:function(M,S){M&&k(M,S);var C=T();for(var A in C)l.nestedProperty(p,A).set(C[A])}}}},61549:function(o,a,r){var l=r(39898),c=r(73972),u=r(74875),f=r(71828),d=r(63893),h=r(33306),p=r(7901),g=r(91424),y=r(92998),v=r(64168),m=r(89298),b=r(18783),w=r(99082),_=w.enforce,x=w.clean,k=r(71739).doAutoRange,T="start";function M(O,R,F){for(var P=0;P=O[1]||z[1]<=O[0])&&B[0]R[0])return!0}return!1}function S(O){var R,F,P,z,B,N,j=O._fullLayout,$=j._size,E=$.p,U=m.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(g.setSize,j.width,j.height),O._context.setBackground(O,j.paper_bgcolor),a.drawMainTitle(O),v.manage(O),!j._has("cartesian"))return u.previousPromises(O);function G(Fe,ze,We){var qe=Fe._lw/2;return Fe._id.charAt(0)==="x"?ze?We==="top"?ze._offset-E-qe:ze._offset+ze._length+E+qe:$.t+$.h*(1-(Fe.position||0))+qe%1:ze?We==="right"?ze._offset+ze._length+E+qe:ze._offset-E-qe:$.l+$.w*(Fe.position||0)+qe%1}for(R=0;R.5?"t":"b",ee=G._fullLayout.margin[te],H=0;return L.yref==="paper"?H=q+L.pad.t+L.pad.b:L.yref==="container"&&(H=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,W,V,G._fullLayout.height,q)+L.pad.t+L.pad.b),H>ee?H:0}(O,F,E);U>0&&(function(G,L,q,W){var V="title.automargin",te=G._fullLayout.title,ee=te.y>.5?"t":"b",H={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=f.isTopAnchor(Z)?re:re-ie,pe=X==="b"?le-se:se;return!(f.isTopAnchor(Z)&&X==="t"||f.isBottomAnchor(Z)&&X==="b")&&pe$?D.push({code:"unused",traceType:P,templateCount:j,dataCount:$}):$>j&&D.push({code:"reused",traceType:P,templateCount:j,dataCount:$})}}else D.push({code:"data"});if(function E(U,G){for(var L in U)if(L.charAt(0)!=="_"){var q=U[L],W=w(U,L,G);c(q)?(Array.isArray(U)&&q._template===!1&&q.templateitemname&&D.push({code:"missing",path:W,templateitemname:q.templateitemname}),E(q,W)):Array.isArray(q)&&_(q)&&E(q,W)}}({data:R,layout:O},""),D.length)return D.map(x)}},403:function(o,a,r){var l=r(92770),c=r(72391),u=r(74875),f=r(71828),d=r(25095),h=r(5900),p=r(70942),g=r(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,m){var b,w,_,x;function k($){return!($ in m)||f.validate(m[$],y[$])}if(m=m||{},f.isPlainObject(v)?(b=v.data||[],w=v.layout||{},_=v.config||{},x={}):(v=f.getGraphDiv(v),b=f.extendDeep([],v.data),w=f.extendDeep({},v.layout),_=v._context,x=v._fullLayout||{}),!k("width")&&m.width!==null||!k("height")&&m.height!==null)throw new Error("Height and width should be pixel values.");if(!k("format"))throw new Error("Export format is not "+f.join2(y.format.values,", "," or ")+".");var T={};function M($,E){return f.coerce(m,T,y,$,E)}var S=M("format"),C=M("width"),A=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 P=f.extendFlat({},w);C?P.width=C:m.width===null&&l(x.width)&&(P.width=x.width),A?P.height=A:m.height===null&&l(x.height)&&(P.height=x.height);var z=f.extendFlat({},_,{_exportedPlot:!0,staticPlot:!0,setBackground:O}),B=d.getRedrawFunc(F);function N(){return new Promise(function($){setTimeout($,d.getDelay(F._fullLayout))})}function j(){return new Promise(function($,E){var U=h(F,S,D),G=F._fullLayout.width,L=F._fullLayout.height;function q(){c.purge(F),document.body.removeChild(F)}if(S==="full-json"){var W=u.graphJson(F,!1,"keepdata","object",!0,!0);return W.version=g,W=JSON.stringify(W),q(),$(R?W:d.encodeJSON(W))}if(q(),S==="svg")return $(R?U:d.encodeSVG(U));var V=document.createElement("canvas");V.id=f.randstr(),p({format:S,width:G,height:L,scale:D,canvas:V,svg:U,promise:!0}).then($).catch(E)})}return new Promise(function($,E){c.newPlot(F,b,P,z).then(B).then(N).then(j).then(function(U){$(function(G){return R?G.replace(d.IMAGE_URL_PREFIX,""):G}(U))}).catch(function(U){E(U)})})}},84936:function(o,a,r){var l=r(71828),c=r(74875),u=r(86281),f=r(72075).dfltConfig,d=l.isPlainObject,h=Array.isArray,p=l.isArrayOrTypedArray;function g(k,T,M,S,C,A){A=A||[];for(var D=Object.keys(k),O=0;Oz.length&&S.push(m("unused",C,F.concat(z.length)));var U,G,L,q,W,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(m("unused",C,F.concat(G,z[G].length)));var ee=z[G].length;for(U=0;U<(te?Math.min(ee,E[G].length):ee);U++)L=te?E[G][U]:E,q=P[G][U],W=z[G][U],l.validate(q,L)?W!==q&&W!==+q&&S.push(m("dynamic",C,F.concat(G,U),q,W)):S.push(m("value",C,F.concat(G,U),q))}else S.push(m("array",C,F.concat(G),P[G]));else for(G=0;G1&&A.push(m("object","layout"))),c.supplyDefaults(D);for(var O=D._fullData,R=M.length,F=0;F0&&Math.round(w)===w))return{vals:y};m=w}for(var _=p.calendar,x=v==="start",k=v==="end",T=h[g+"period0"],M=u(T,_)||0,S=[],C=[],A=[],D=y.length,O=0;Oz;)P=f(P,-m,_);for(;P<=z;)P=f(P,m,_);F=f(P,-m,_)}else{for(P=M+(R=Math.round((z-M)/b))*b;P>z;)P-=b;for(;P<=z;)P+=b;F=P-b}S[O]=x?F:k?P:(F+P)/2,C[O]=F,A[O]=P}return{vals:S,starts:C,ends:A}}},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,r){var l=r(39898),c=r(92770),u=r(71828),f=r(50606).FP_SAFE,d=r(73972),h=r(91424),p=r(41675),g=p.getFromId,y=p.isLinked;function v(O,R){var F,P,z=[],B=O._fullLayout,N=b(B,R,0),j=b(B,R,1),$=_(O,R),E=$.min,U=$.max;if(E.length===0||U.length===0)return u.simpleMap(R.range,R.r2l);var G=E[0].val,L=U[0].val;for(F=1;F0&&((Y=le-N(te)-j(ee))>se?Z/Y>pe&&(H=te,Q=ee,pe=Z/Y):Z/le>pe&&(H={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?U: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?(H.val>=0&&(H={val:0,nopad:1}),Q.val<=0&&(Q={val:0,nopad:1})):ie&&(H.val-pe*N(H)<0&&(H={val:0,nopad:1}),Q.val<=0&&(Q={val:1,nopad:1})),pe=(Q.val-H.val-m(R,te.val,ee.val))/(le-N(H)-j(Q)),z=[H.val-pe*N(H),Q.val+pe*j(Q)];return z=D(z,R),R.limitRange&&R.limitRange(),W&&z.reverse(),u.simpleMap(z,R.l2r||Number)}function m(O,R,F){var P=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(!H){if(U=1/0,G=-1/0,ee)for(P=0;P0&&(U=z),z>G&&z-f&&(U=z),z>G&&z=pe;P--)se(P);return{min:L,max:q,opts:F}},concatExtremes:_};var w=3;function _(O,R,F){var P,z,B,N=R._id,j=O._fullData,$=O._fullLayout,E=[],U=[];function G(te,ee){for(P=0;P=F&&(E.extrapad||!N)){j=!1;break}z(R,E.val)&&E.pad<=F&&(N||!E.extrapad)&&(O.splice($,1),$--)}if(j){var U=B&&R===0;O.push({val:R,pad:U?0:F,extrapad:!U&&N})}}function M(O){return c(O)&&Math.abs(O)=R}function A(O,R,F){return R===void 0||F===void 0||(R=O.d2l(R))=$&&(B=$,F=$),N<=$&&(N=$,P=$)}}return F=function(E,U){var G=U.autorangeoptions;return G&&G.minallowed!==void 0&&A(U,G.minallowed,G.maxallowed)?G.minallowed:G&&G.clipmin!==void 0&&A(U,G.clipmin,G.clipmax)?Math.max(E,U.d2l(G.clipmin)):E}(F,R),P=function(E,U){var G=U.autorangeoptions;return G&&G.maxallowed!==void 0&&A(U,G.minallowed,G.maxallowed)?G.maxallowed:G&&G.clipmax!==void 0&&A(U,G.clipmin,G.clipmax)?Math.min(E,U.d2l(G.clipmax)):E}(P,R),[F,P]}},23074:function(o){o.exports=function(a,r,l){var c,u;if(l){var f=r==="reversed"||r==="min reversed"||r==="max reversed";c=l[f?1:0],u=l[f?0:1]}var d=a("autorangeoptions.minallowed",u===null?c:void 0),h=a("autorangeoptions.maxallowed",c===null?u:void 0);d===void 0&&a("autorangeoptions.clipmin"),h===void 0&&a("autorangeoptions.clipmax"),a("autorangeoptions.include")}},89298:function(o,a,r){var l=r(39898),c=r(92770),u=r(74875),f=r(73972),d=r(71828),h=d.strTranslate,p=r(63893),g=r(92998),y=r(7901),v=r(91424),m=r(13838),b=r(66287),w=r(50606),_=w.ONEMAXYEAR,x=w.ONEAVGYEAR,k=w.ONEMINYEAR,T=w.ONEMAXQUARTER,M=w.ONEAVGQUARTER,S=w.ONEMINQUARTER,C=w.ONEMAXMONTH,A=w.ONEAVGMONTH,D=w.ONEMINMONTH,O=w.ONEWEEK,R=w.ONEDAY,F=R/2,P=w.ONEHOUR,z=w.ONEMIN,B=w.ONESEC,N=w.MINUS_SIGN,j=w.BADNUM,$={K:"zeroline"},E={K:"gridline",L:"path"},U={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"]},W=r(18783),V=W.MID_SHIFT,te=W.CAP_SHIFT,ee=W.LINE_SPACING,H=W.OPPOSITE_SIDE,Q=o.exports={};Q.setConvert=r(21994);var Y=r(4322),Z=r(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=r(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,Ue,Ze,Ge){var Ke=Ue.charAt(Ue.length-1),nt=Ve._fullLayout._subplots[Ke+"axis"],st=Ue+"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,Ue,Ze,Ge){var Ke,nt;if(Q.getRefType(Ue)!=="range")Ke=d.ensureNumber,nt=Ve(Ze,Ge);else{var st=Q.getFromId(_e,Ue);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 Ue(Ze,Ge,Ke,nt){for(var st=f.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),Ue=!1,Ze=0;Ze.3*Nt||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,$t,nt,Ze)),St=Dt;St<=st;)St=Q.tickIncrement(St,$t,!1,Ze);return{start:_e.c2r(Dt,0,Ze),end:_e.c2r(St,0,Ze),size:$t,_dataSpan:st-nt}},Q.prepMinorTicks=function(ve,_e,Ve){if(!_e.minor.dtick){delete ve.dtick;var Ue,Ze=_e.dtick&&c(_e._tmin);if(Ze){var Ge=Q.tickIncrement(_e._tmin,_e.dtick,!0);Ue=[_e._tmin,.99*Ge+.01*_e._tmin]}else{var Ke=d.simpleMap(_e.range,_e.r2l);Ue=[Ke[0],.8*Ke[0]+.2*Ke[1]]}if(ve.range=d.simpleMap(Ue,_e.l2r),ve._isMinor=!0,Q.prepTicks(ve,Ve),Ze){var nt=c(_e.dtick),st=c(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 Ue,Ze=ve.nticks;Ze||(ve.type==="category"||ve.type==="multicategory"?(Ue=ve.tickfont?d.bigFont(ve.tickfont.size||12):15,Ze=ve._length/Ue):(Ue=ve._id.charAt(0)==="y"?40:80,Ze=d.constrain(ve._length/Ue,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!(c(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=P,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],Pt=c(Et.dtick),Lt=Ze==="log"&&!(Pt||Et.dtick.charAt(0)==="L"),Rt=Q.tickFirst(Et,_e);if(yt){if(ve._tmin=Rt,Rt=Ot:zt<=Ot;zt=Q.tickIncrement(zt,Ut,mt,Ge)){if(yt&&Nt++,Et.rangebreaks&&!mt){if(zt=Ft)break}if(Dt.length>Vt||zt===Xt)break;Xt=zt;var nn={value:zt};yt?(Lt&&zt!==(0|zt)&&(nn.simpleLabel=!0),Ke>1&&Nt%Ke&&(nn.skipLabel=!0),Dt.push(nn)):(nn.minor=!0,gt.push(nn))}}else Dt=[],St=J(ve);else yt?(Dt=[],St=ne(ve)):(gt=[],$t=ne(ve))}if(ht&&!(ve.minor.ticks==="inside"&&ve.ticks==="outside"||ve.minor.ticks==="outside"&&ve.ticks==="inside")){for(var fn=Dt.map(function(fr){return fr.value}),sn=[],on=0;on0?(da=gr-1,On=gr):(da=gr,On=gr);var ln,Nn=fr[da].value,Rr=fr[On].value,Ln=Math.abs(Rr-Nn),zn=Er||Ln,jn=0;zn>=k?jn=Ln>=k&&Ln<=_?Ln:x:Er===M&&zn>=S?jn=Ln>=S&&Ln<=T?Ln:M:zn>=D?jn=Ln>=D&&Ln<=C?Ln:A:Er===O&&zn>=O?jn=O:zn>=R?jn=R:Er===F&&zn>=F?jn=F:Er===P&&zn>=P&&(jn=P),jn>=Ln&&(jn=Ln,ln=!0);var Gn=Pr+jn;if(gi.rangebreaks&&jn>0){for(var jr=0,Sr=0;Sr<84;Sr++){var Ar=(Sr+.5)/84;gi.maskBreaks(Pr*(1-Ar)+Ar*Gn)!==j&&jr++}(jn*=jr/84)||(fr[gr].drop=!0),ln&&Ln>O&&(jn=Ln)}(jn>0||gr===0)&&(fr[gr].periodX=Pr+jn/2)}}(Dt,ve,ve._definedDelta),ve.rangebreaks){var Kt=ve._id.charAt(0)==="y",Cn=1;ve.tickmode==="auto"&&(Cn=ve.tickfont?ve.tickfont.size:12);var _n=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 An=ve.c2p(Dt[Ve].value);(Kt?_n>An-Cn:_nFt||DnFt&&(wn.periodX=Ft),Dn10||Ue.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>=P)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(c(_e)||_e.charAt(0)==="L"){var Ke=ve.range.map(ve.r2d||Number);c(_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&&(Fe(ve.exponentformat)&&!ze(st)?ve._tickexponent=3*Math.round((st-1)/3):ve._tickexponent=st)}else ve._tickround=null}function De(ve,_e,Ve){var Ue=ve.tickfont||{};return{x:_e,dx:0,dy:0,text:Ve||"",fontSize:Ue.size,font:Ue.family,fontColor:Ue.color}}Q.autoTicks=function(ve,_e,Ve){var Ue;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>x)_e/=x,Ue=Ze(10),ve.dtick="M"+12*Pe(_e,Ue,de);else if(Ge>A)_e/=A,ve.dtick="M"+Pe(_e,1,xe);else if(Ge>R){if(ve.dtick=Pe(_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>P?ve.dtick=Pe(_e,P,xe):Ge>z?ve.dtick=Pe(_e,z,ue):Ge>B?ve.dtick=Pe(_e,B,ue):(Ue=Ze(10),ve.dtick=Pe(_e,Ue,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,Ue=Ze(10),ve.dtick="L"+Pe(_e,Ue,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,Ue=1,ve.dtick=Pe(_e,Ue,ke)):(ve.tick0=0,Ue=Ze(10),ve.dtick=Pe(_e,Ue,de));if(ve.dtick===0&&(ve.dtick=1),!c(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,Ue){var Ze=Ve?-1:1;if(c(_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,Ue);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,Ue=d.simpleMap(ve.range,Ve,void 0,void 0,_e),Ze=Ue[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,Pt=typeof jt=="string"&&jt.charAt(0);if(Et==="never"&&(Et=""),qt&&Pt!=="L"&&(jt="L3",Pt="L"),Ot||Pt==="L")ht.text=We(Math.pow(10,Tt),gt,Et,qt);else if(c(jt)||Pt==="D"&&d.mod(Tt+.01,1)<.1){var Lt=Math.round(Tt),Rt=Math.abs(Lt),Nt=gt.exponentformat;Nt==="power"||Fe(Nt)&&ze(Lt)?(ht.text=Lt===0?1:Lt===1?"10":"10"+(Lt>1?"":N)+Rt+"",ht.fontSize*=1.25):(Nt==="e"||Nt==="E")&&Rt>2?ht.text="1"+Nt+(Lt>0?"+":N)+Rt:(ht.text=We(Math.pow(10,Tt),gt,"","fakehover"),jt==="D1"&>._id.charAt(0)==="y"&&(ht.dy-=ht.fontSize/6))}else{if(Pt!=="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=We(ht.x,gt,Et,qt);else{var jt=ht.x/180;if(jt===0)ht.text="0";else{var Tt=function(Pt){function Lt(Xt,zt){return Math.abs(Xt-zt)<=1e-6}var Rt=function(Xt){for(var zt=1;!Lt(Math.round(Xt*zt)/zt,Xt);)zt*=10;return zt}(Pt),Nt=Pt*Rt,Yt=Math.abs(function Xt(zt,Ut){return Lt(Ut,0)?zt:Xt(Ut,zt%Ut)}(Nt,Rt));return[Math.round(Nt/Yt),Math.round(Rt/Yt)]}(jt);if(Tt[1]>=100)ht.text=We(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=N+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=We(ht.x,gt,Et,qt)}(ve,Ge,0,nt,St),Ue||(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 $t=ve.labelalias[Ge.text];typeof $t=="string"&&(Ge.text=$t)}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 Ue=Array.isArray(_e)?_e[0]:_e,Ze=Array.isArray(_e)?_e[1]:void 0;if(Ze!==void 0&&Ze!==Ue)return Q.hoverLabelText(ve,Ue,Ve)+" - "+Q.hoverLabelText(ve,Ze,Ve);var Ge=ve.type==="log"&&Ue<=0,Ke=Q.tickText(ve,ve.c2l(Ge?-Ue:Ue),"hover").text;return Ge?Ue===0?"0":N+Ke:Ke};var Re=["f","p","n","μ","m","","k","M","G","T"];function Fe(ve){return ve==="SI"||ve==="B"}function ze(ve){return ve>14||ve<-15}function We(ve,_e,Ve,Ue){var Ze=ve<0,Ge=_e._tickround,Ke=Ve||_e.exponentformat||"B",nt=_e._tickexponent,st=Q.getTickFormat(_e),mt=_e.separatethousands;if(Ue){var tt={exponentformat:Ke,minexponent:_e.minexponent,dtick:_e.showexponent==="none"?_e.dtick:c(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,N);var Ft,Vt=Math.pow(10,-Ge)/2;if(Ke==="none"&&(nt=0),(ve=Math.abs(ve))"+Ft+"":Ke==="B"&&nt===9?ve+="B":Fe(Ke)&&(ve+=Re[nt/3+5])),Ze?N+ve:ve}function qe(ve,_e){if(ve){var Ve=Object.keys(q).reduce(function(Ue,Ze){return _e.indexOf(Ze)!==-1&&q[Ze].forEach(function(Ge){Ue[Ge]=1}),Ue},{});Object.keys(ve).forEach(function(Ue){Ve[Ue]||(Ue.length===1?ve[Ue]=0:delete ve[Ue])})}}function Ye(ve,_e){for(var Ve=[],Ue={},Ze=0;Ze<_e.length;Ze++){var Ge=_e[Ze];Ue[Ge.text2]?Ue[Ge.text2].push(Ge.x):Ue[Ge.text2]=[Ge.x]}for(var Ke in Ue)Ve.push(De(ve,d.interp(Ue[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($t||gt)&&(Dt||ht)}if(ve.tickformatstops&&ve.tickformatstops.length>0)switch(ve.type){case"date":case"linear":for(_e=0;_e=Ke(Ze)))){Ve=Ue;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 Ue,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(On,ln){return On.autoshift?ln[On.overlaying][On.side]:On.shift||0}(_e,Ke));var $t=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(Ue=0;Ue0?On.bottom-jn:0,Gn))));var jr=0,Sr=0;if(_e._shiftPusher&&(jr=Math.max(Gn,On.height>0?Ln==="l"?jn-On.left:On.right-jn:0),_e.title.text!==st._dfltTitle[tt]&&(Sr=(_e._titleStandoff||0)+(_e._titleScoot||0),Ln==="l"&&(Sr+=ct(_e))),_e._fullDepth=Math.max(jr,Sr)),_e.automargin){ln={x:0,y:0,r:0,l:0,t:0,b:0};var Ar=[0,1],Ya=typeof _e._shift=="number"?_e._shift:0;if(tt==="x"){if(Ln==="b"?ln[Ln]=_e._depth:(ln[Ln]=_e._depth=Math.max(On.width>0?jn-On.top:0,Gn),Ar.reverse()),On.width>0){var Aa=On.right-(_e._offset+_e._length);Aa>0&&(ln.xr=1,ln.r=Aa);var ha=_e._offset-On.left;ha>0&&(ln.xl=0,ln.l=ha)}}else if(Ln==="l"?(_e._depth=Math.max(On.height>0?jn-On.left:0,Gn),ln[Ln]=_e._depth-Ya):(_e._depth=Math.max(On.height>0?On.right-jn:0,Gn),ln[Ln]=_e._depth+Ya,Ar.reverse()),On.height>0){var Tn=On.bottom-(_e._offset+_e._length);Tn>0&&(ln.yb=0,ln.b=Tn);var Lr=_e._offset-On.top;Lr>0&&(ln.yt=1,ln.t=Lr)}ln[Ft]=_e.anchor==="free"?_e.position:_e._anchorAxis.domain[Ar[0]],_e.title.text!==st._dfltTitle[tt]&&(ln[Ln]+=ct(_e)+(_e.title.standoff||0)),_e.mirror&&_e.anchor!=="free"&&((Nn={x:0,y:0,r:0,l:0,t:0,b:0})[zn]=_e.linewidth,_e.mirror&&_e.mirror!==!0&&(Nn[zn]+=Gn),_e.mirror===!0||_e.mirror==="ticks"?Nn[Ft]=_e._anchorAxis.domain[Ar[1]]:_e.mirror!=="all"&&_e.mirror!=="allticks"||(Nn[Ft]=[_e._counterDomainMin,_e._counterDomainMax][Ar[1]]))}Pr&&(Rr=f.getComponentMethod("rangeslider","autoMarginOpts")(ve,_e)),typeof _e.automargin=="string"&&(qe(ln,_e.automargin),qe(Nn,_e.automargin)),u.autoMargin(ve,Ne(_e),ln),u.autoMargin(ve,Qe(_e),Nn),u.autoMargin(ve,it(_e),Rr)}),d.syncOrAsync(Er)}}function da(On){var ln=mt+(On||"tick");return Et[ln]||(Et[ln]=function(Nn,Rr){var Ln,zn,jn,Gn;return Nn._selections[Rr].size()?(Ln=1/0,zn=-1/0,jn=1/0,Gn=-1/0,Nn._selections[Rr].each(function(){var jr=Be(this),Sr=v.bBox(jr.node().parentNode);Ln=Math.min(Ln,Sr.top),zn=Math.max(zn,Sr.bottom),jn=Math.min(jn,Sr.left),Gn=Math.max(Gn,Sr.right)})):(Ln=0,zn=0,jn=0,Gn=0),{top:Ln,bottom:zn,left:jn,right:Gn,height:zn-Ln,width:Gn-jn}}(_e,ln)),Et[ln]}},Q.getTickSigns=function(ve,_e){var Ve=ve._id.charAt(0),Ue={x:"top",y:"right"}[Ve],Ze=ve.side===Ue?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,$t=Vt?(Ze.tickwidth||0)/2:0,Dt=3,gt=Ze.tickfont?Ze.tickfont.size:12;return(tt||nt)&&($t+=gt*te,Dt+=(Ze.linewidth||0)/2),(st||mt)&&($t+=(Ze.linewidth||0)/2,Dt+=3),Ft&&St==="top"&&(Dt-=gt*(1-te)),(st||nt)&&($t=-$t),St!=="bottom"&&St!=="right"||(Dt=-Dt),[Vt?$t:0,Ft?Dt:0]}(ve),Ve=_e[0],Ue=_e[1];return ve._id.charAt(0)==="x"?function(Ze){return h(Ve+ve._offset+ve.l2p(at(Ze)),Ue)}:function(Ze){return h(Ue,Ve+ve._offset+ve.l2p(at(Ze)))}},Q.makeTickPath=function(ve,_e,Ve,Ue){Ue||(Ue={});var Ze=Ue.minor;if(Ze&&!ve.minor)return"";var Ge=Ue.len!==void 0?Ue.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 Ue=ve.ticklabelposition||"",Ze=function(Nt){return Ue.indexOf(Nt)!==-1},Ge=Ze("top"),Ke=Ze("left"),nt=Ze("right"),st=Ze("bottom")||Ke||Ge||nt,mt=Ze("inside"),tt=Ue==="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 $t=d.deg2rad(Ve);Ft=St*Math.cos($t)+1,Vt=St*Math.sin($t)}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),Pt=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(Pt)===90&&(mt?ht+=V:ht=Pt===-90&&Tt==="bottom"?te:Pt===90&&Tt==="top"?V:.5,jt=V/2*(Pt/90)),Et.xFn=function(Nt){return Nt.dx+Dt+jt*Nt.fontSize},Et.yFn=function(Nt){return Nt.dy+gt+Nt.fontSize*ht},Et.anchorFn=function(Nt,Yt){if(st){if(Ke)return"end";if(nt)return"start"}return c(Yt)&&Yt!==0&&Yt!==180?Yt*yt<0!==mt?"end":"start":"middle"},Et.heightFn=function(Nt,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(Pt)!==90||(ht=Pt===-90&&Tt==="left"||Pt===90&&Tt==="right"?te:.5),mt){var Lt=c(Pt)?+Pt:0;if(Lt!==0){var Rt=d.deg2rad(Lt);jt=Math.abs(Math.sin(Rt))*te*yt,ht=0}}Et.xFn=function(Nt){return Nt.dx+_e-(Dt+Nt.fontSize*ht)*yt+jt*Nt.fontSize},Et.yFn=function(Nt){return Nt.dy+gt+Nt.fontSize*V},Et.anchorFn=function(Nt,Yt){return c(Yt)&&Math.abs(Yt)===90?"middle":qt?"end":"start"},Et.heightFn=function(Nt,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 Ue=_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."+Ue).data(Ze,lt);Ge.exit().remove(),Ge.enter().append("path").classed(Ue,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),Bt(_e,[G]),Ge.attr("transform",Ve.transFn)},Q.drawGrid=function(ve,_e,Ve){if(Ve=Ve||{},_e.tickmode!=="sync"){var Ue=_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;$t--){var Dt=$t?Vt:St;if(Dt){var gt=Dt.selectAll("path."+Ue).data($t?Ke:Ge,lt);gt.exit().remove(),gt.enter().append("path").classed(Ue,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)}}Bt(_e,[E,U])}},Q.drawZeroLine=function(ve,_e,Ve){Ve=Ve||Ve;var Ue=_e._id+"zl",Ze=Q.shouldShowZeroLine(ve,_e,Ve.counterAxis),Ge=Ve.layer.selectAll("path."+Ue).data(Ze?[{x:0,id:_e._id}]:[]);Ge.exit().remove(),Ge.enter().append("path").classed(Ue,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),Bt(_e,[$])},Q.drawLabels=function(ve,_e,Ve){Ve=Ve||{};var Ue=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),Pt=Ve.transFn.call(jt.node(),Et)+(c(qt)&&+qt!=0?" rotate("+qt+","+st.xFn(Et)+","+(st.yFn(Et)-Et.fontSize/2)+")":""),Lt=p.lineCount(jt),Rt=ee*Et.fontSize,Nt=st.heightFn(Et,c(qt)?+qt:0,(Lt-1)*Rt);if(Nt&&(Pt+=h(0,Nt)),Tt.empty()){var Yt=jt.select("text");Yt.attr({transform:Pt,"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",Pt+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)}),Bt(_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 Pt=Math.min(jt,Tt),Lt=Math.max(jt,Tt),Rt=_e.side,Nt=1/0,Yt=-1/0;for(var Xt in Ft.each(function(nn){var fn=l.select(this);if(fn.select(".text-math-group").empty()){var sn=v.bBox(fn.node()),on=0;Et?(sn.right>Lt||sn.leftLt||sn.top+(_e.tickangle?0:nn.fontSize/4)_e["_visibleLabelMin_"+Ot._id]?Ut.style("display","none"):Lt.K!=="tick"||Pt||Ut.style("display",null)})})})})},St(Ft,tt+1?tt:mt);var $t=null;_e._selections&&(_e._selections[Ke]=Ft);var Dt=[function(){return Vt.length&&Promise.all(Vt)}];_e.automargin&&Ue._redrawFromAutoMarginCount&&tt===90?($t=90,Dt.push(function(){St(Ft,tt)})):Dt.push(function(){if(St(Ft,mt),nt.length&&Ge==="x"&&!c(mt)&&(_e.type!=="log"||String(_e.dtick).charAt(0)!=="D")){$t=0;var yt,qt=0,Et=[];if(Ft.each(function(fn){qt=Math.max(qt,fn.fontSize);var sn=_e.l2p(fn.x),on=Be(this),un=v.bBox(on.node());Et.push({top:0,bottom:10,height:10,left:sn-un.width/2,right:sn+un.width/2+2,width:un.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||"",Pt=function(fn){return Ot.indexOf(fn)!==-1},Lt=Pt("top"),Rt=Pt("left"),Nt=Pt("right"),Yt=Pt("bottom")||Rt||Lt||Nt?(_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}(w,m))return"date";var M=b.autotypenumbers!=="strict";return function(S,C){for(var A=S.length,D=y(A),O=0,R=0,F={},P=0;P2*O}(w,M)?"category":function(S,C){for(var A=S.length,D=0;D=2){var F,P,z="";if(R.length===2){for(F=0;F<2;F++)if(P=S(R[F])){z=x;break}}var B=O("pattern",z);if(B===x)for(F=0;F<2;F++)(P=S(R[F]))&&(A.bounds[F]=R[F]=P-1);if(B)for(F=0;F<2;F++)switch(P=R[F],B){case x:if(!l(P)||(P=+P)!==Math.floor(P)||P<0||P>=7)return void(A.enabled=!1);A.bounds[F]=R[F]=P;break;case k:if(!l(P)||(P=+P)<0||P>24)return void(A.enabled=!1);A.bounds[F]=R[F]=P}if(D.autorange===!1){var N=D.range;if(N[0]N[1])return void(A.enabled=!1)}else if(R[0]>N[0]&&R[1]p?1:-1:+(f.substr(1)||1)-+(d.substr(1)||1)},a.ref2id=function(f){return!!/^[xyz]/.test(f)&&f.split(" ")[0]},a.isLinked=function(f,d){return u(d,f._axisMatchGroups)||u(d,f._axisConstraintGroups)}},15258:function(o){o.exports=function(a,r,l,c){if(r.type==="category"){var u,f=a.categoryarray,d=Array.isArray(f)&&f.length>0;d&&(u="array");var h,p=l("categoryorder",u);p==="array"&&(h=l("categoryarray")),d||p!=="array"||(p=r.categoryorder="trace"),p==="trace"?r._initialCategories=[]:p==="array"?r._initialCategories=h.slice():(h=function(g,y){var v,m,b,w=y.dataAttr||g._id.charAt(0),_={};if(y.axData)v=y.axData;else for(v=[],m=0;mS?C.substr(S):A.substr(M))+D:C+A+k*T:D}function _(k,T){for(var M=T._size,S=M.h/M.w,C={},A=Object.keys(k),D=0;Dp*N)||U){for(M=0;MY&&ieH&&(H=ie);R/=(H-ee)/(2*Q),ee=A.l2r(ee),H=A.l2r(H),A.range=A._input.range=W=0?Math.min(ie,.9):1/(1/Math.max(ie,-.3)+3.222))}function W(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 H(ie){l.select(ie).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Q(ie){j&&ie.data&&ie._context.showTips&&(c.notifier(c._(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,N)/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)Pt._fullLayout._deactivateShape(Pt);else{var Lt=Pt._fullLayout.clickmode;if(H(Pt),Tt!==2||Ne||gt(),Be)Lt.indexOf("select")>-1&&F(Ot,Pt,de,xe,le.id,Ue),Lt.indexOf("event")>-1&&m.click(Pt,Ot,le.id);else if(Tt===1&&Ne){var Rt=Oe?ye:ce,Nt=Oe==="s"||Me==="w"?0:1,Yt=Rt._name+".range["+Nt+"]",Xt=function(nn,fn){var sn,on=nn.range[fn],un=Math.abs(on-nn.range[1-fn]);return nn.type==="date"?on:nn.type==="log"?(sn=Math.ceil(Math.max(0,-Math.log(un)/Math.LN10))+3,u("."+sn+"g")(Math.pow(10,on))):(sn=Math.floor(Math.log(Math.abs(on))/Math.LN10)-Math.floor(Math.log(un)/Math.LN10)+4,u("."+String(sn)+"g")(on))}(Rt,Nt),zt="left",Ut="middle";if(Rt.fixedrange)return;Oe?(Ut=Oe==="n"?"top":"bottom",Rt.side==="right"&&(zt="right")):Me==="e"&&(zt="right"),Pt._context.showAxisRangeEntryBoxes&&l.select(kt).call(g.makeEditable,{gd:Pt,immediate:!0,background:Pt._fullLayout.paper_bgcolor,text:String(Xt),fill:Rt.tickfont?Rt.tickfont.color:"#444",horizontalAlign:zt,verticalAlign:Ut}).on("edit",function(nn){var fn=Rt.d2r(nn);fn!==void 0&&h.call("_guiRelayout",Pt,Yt,fn)})}}}function Ke(Tt,Ot){if(ie._transitioningWithDuration)return!1;var Pt=Math.max(0,Math.min(be,lt*Tt+Je)),Lt=Math.max(0,Math.min(we,ct*Ot+ut)),Rt=Math.abs(Pt-Je),Nt=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,Pt),pt.r=Math.max(Je,Pt),pt.t=Math.min(ut,Lt),pt.b=Math.max(ut,Lt),ke.isSubplotConstrained)Rt>N||Nt>N?(wt="xy",Rt/be>Nt/we?(Nt=Rt*we/be,ut>Lt?pt.t=ut-Nt:pt.b=ut+Nt):(Rt=Nt*be/we,Je>Pt?pt.l=Je-Rt:pt.r=Je+Rt),_e.attr("d",Y(pt))):Yt();else if(Pe.isSubplotConstrained)if(Rt>N||Nt>N){wt="xy";var Xt=Math.min(pt.l/be,(we-pt.b)/we),zt=Math.max(pt.r/be,(we-pt.t)/we);pt.l=Xt*be,pt.r=zt*be,pt.b=(1-Xt)*we,pt.t=(1-zt)*we,_e.attr("d",Y(pt))}else Yt();else!De||Nt0){var Ut;if(Pe.isSubplotConstrained||!Ee&&De.length===1){for(Ut=0;Ut1&&(Lt.maxallowed!==void 0&&Fe===(Lt.range[0]1&&(Rt.maxallowed!==void 0&&ze===(Rt.range[0]A[1]-.000244140625&&(f.domain=g),c.noneOrAll(u.domain,f.domain,g),f.tickmode==="sync"&&(f.tickmode="auto")}return d("layer"),f}},89426:function(o,a,r){var l=r(59652);o.exports=function(c,u,f,d,h){h||(h={});var p=h.tickSuffixDflt,g=l(c);f("tickprefix")&&f("showtickprefix",g),f("ticksuffix",p)&&f("showticksuffix",g)}},23608:function(o,a,r){var l=r(23074);o.exports=function(c,u,f,d){var h=u._template||{},p=u.type||h.type||"-";f("minallowed"),f("maxallowed");var g,y=f("range"),v=u.getAutorangeDflt(y,d),m=f("autorange",v);!y||(y[0]!==null||y[1]!==null)&&(y[0]!==null&&y[1]!==null||m!=="reversed"&&m!==!0)&&(y[0]===null||m!=="min"&&m!=="max reversed")&&(y[1]===null||m!=="max"&&m!=="min reversed")||(y=void 0,delete u.range,u.autorange=!0,g=!0),g||(m=f("autorange",v=u.getAutorangeDflt(y,d))),m&&(l(f,m,y),p!=="linear"&&p!=="-"||f("rangemode")),u.cleanRange()}},42449:function(o,a,r){var l=r(18783).FROM_BL;o.exports=function(c,u,f){f===void 0&&(f=l[c.constraintoward||"center"]);var d=[c.r2l(c.range[0]),c.r2l(c.range[1])],h=d[0]+(d[1]-d[0])*f;c.range=c._input.range=[c.l2r(h+(d[0]-h)*u),c.l2r(h+(d[1]-h)*u)],c.setScale()}},21994:function(o,a,r){var l=r(39898),c=r(84096).g0,u=r(71828),f=u.numberFormat,d=r(92770),h=u.cleanNumber,p=u.ms2DateTime,g=u.dateTime2ms,y=u.ensureNumber,v=u.isArrayOrTypedArray,m=r(50606),b=m.FP_SAFE,w=m.BADNUM,_=m.LOG_CLIP,x=m.ONEWEEK,k=m.ONEDAY,T=m.ONEHOUR,M=m.ONEMIN,S=m.ONESEC,C=r(41675),A=r(85555),D=A.HOUR_PATTERN,O=A.WEEKDAY_PATTERN;function R(P){return Math.pow(10,P)}function F(P){return P!=null}o.exports=function(P,z){z=z||{};var B=P._id||"x",N=B.charAt(0);function j(Z,X){if(Z>0)return Math.log(Z)/Math.LN10;if(Z<=0&&X&&P.range&&P.range.length===2){var re=P.range[0],ie=P.range[1];return .5*(re+ie-2*_*Math.abs(re-ie))}return w}function $(Z,X,re,ie){if((ie||{}).msUTC&&d(Z))return+Z;var le=g(Z,re||P.calendar);if(le===w){if(!d(Z))return w;Z=+Z;var se=Math.floor(10*u.mod(Z+.05,1)),pe=Math.round(Z-se/10);le=g(new Date(pe))+se/10}return le}function E(Z,X,re){return p(Z,X,re||P.calendar)}function U(Z){return P._categories[Math.round(Z)]}function G(Z){if(F(Z)){if(P._categoriesMap===void 0&&(P._categoriesMap={}),P._categoriesMap[Z]!==void 0)return P._categoriesMap[Z];P._categories.push(typeof Z=="number"?String(Z):Z);var X=P._categories.length-1;return P._categoriesMap[Z]=X,X}return w}function L(Z){if(P._categoriesMap)return P._categoriesMap[Z]}function q(Z){var X=L(Z);return X!==void 0?X:d(Z)?+Z:void 0}function W(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,P._m,P._b):w},H=function(Z){return te(Z,P._m,P._b)};if(P.rangebreaks){var Q=N==="y";ee=function(Z){if(!d(Z))return w;var X=P._rangebreaks.length;if(!X)return V(Z,P._m,P._b);var re=Q;P.range[0]>P.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=P._B[se]||0;return isFinite(Oe)?V(Z,P._m2,Oe):0},H=function(Z){var X=P._rangebreaks.length;if(!X)return te(Z,P._m,P._b);for(var re=0,ie=0;ieP._rangebreaks[ie].pmax&&(re=ie+1);return te(Z,P._m2,P._B[re])}}P.c2l=P.type==="log"?j:y,P.l2c=P.type==="log"?R:y,P.l2p=ee,P.p2l=H,P.c2p=P.type==="log"?function(Z,X){return ee(j(Z,X))}:ee,P.p2c=P.type==="log"?function(Z){return R(H(Z))}:H,["linear","-"].indexOf(P.type)!==-1?(P.d2r=P.r2d=P.d2c=P.r2c=P.d2l=P.r2l=h,P.c2d=P.c2r=P.l2d=P.l2r=y,P.d2p=P.r2p=function(Z){return P.l2p(h(Z))},P.p2d=P.p2r=H,P.cleanPos=y):P.type==="log"?(P.d2r=P.d2l=function(Z,X){return j(h(Z),X)},P.r2d=P.r2c=function(Z){return R(h(Z))},P.d2c=P.r2l=h,P.c2d=P.l2r=y,P.c2r=j,P.l2d=R,P.d2p=function(Z,X){return P.l2p(P.d2r(Z,X))},P.p2d=function(Z){return R(H(Z))},P.r2p=function(Z){return P.l2p(h(Z))},P.p2r=H,P.cleanPos=y):P.type==="date"?(P.d2r=P.r2d=u.identity,P.d2c=P.r2c=P.d2l=P.r2l=$,P.c2d=P.c2r=P.l2d=P.l2r=E,P.d2p=P.r2p=function(Z,X,re){return P.l2p($(Z,0,re))},P.p2d=P.p2r=function(Z,X,re){return E(H(Z),X,re)},P.cleanPos=function(Z){return u.cleanDate(Z,w,P.calendar)}):P.type==="category"?(P.d2c=P.d2l=G,P.r2d=P.c2d=P.l2d=U,P.d2r=P.d2l_noadd=q,P.r2c=function(Z){var X=W(Z);return X!==void 0?X:P.fraction2r(.5)},P.l2r=P.c2r=y,P.r2l=W,P.d2p=function(Z){return P.l2p(P.r2c(Z))},P.p2d=function(Z){return U(H(Z))},P.r2p=P.d2p,P.p2r=H,P.cleanPos=function(Z){return typeof Z=="string"&&Z!==""?Z:y(Z)}):P.type==="multicategory"&&(P.r2d=P.c2d=P.l2d=U,P.d2r=P.d2l_noadd=q,P.r2c=function(Z){var X=q(Z);return X!==void 0?X:P.fraction2r(.5)},P.r2c_just_indices=L,P.l2r=P.c2r=y,P.r2l=q,P.d2p=function(Z){return P.l2p(P.r2c(Z))},P.p2d=function(Z){return U(H(Z))},P.r2p=P.d2p,P.p2r=H,P.cleanPos=function(Z){return Array.isArray(Z)||typeof Z=="string"&&Z!==""?Z:y(Z)},P.setupMultiCategory=function(Z){var X,re,ie=P._traceIndices,le=P._matchGroup;if(le&&P._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)}},P.cleanRange=function(Z,X){P._cleanRange(Z,X),P.limitRange(Z)},P._cleanRange=function(Z,X){X||(X={}),Z||(Z="range");var re,ie,le=u.nestedProperty(P,Z).get();if(ie=(ie=P.type==="date"?u.dfltRange(P.calendar):N==="y"?A.DFLTRANGEY:P._name==="realaxis"?[0,1]:X.dfltRange||A.DFLTRANGEX).slice(),P.rangemode!=="tozero"&&P.rangemode!=="nonnegative"||(ie[0]=0),le&&le.length===2){var se=le[0]===null,pe=le[1]===null;for(P.type!=="date"||P.autorange||(le[0]=u.cleanDate(le[0],w,P.calendar),le[1]=u.cleanDate(le[1],w,P.calendar)),re=0;re<2;re++)if(P.type==="date"){if(!u.isDateTime(le[re],P.calendar)){P[Z]=ie;break}if(P.r2l(le[0])===P.r2l(le[1])){var Te=u.constrain(P.r2l(le[0]),u.MIN_MS+1e3,u.MAX_MS-1e3);le[0]=P.l2r(Te-1e3),le[1]=P.l2r(Te+1e3);break}}else{if(!d(le[re])){if(se||pe||!d(le[1-re])){P[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 u.nestedProperty(P,Z).set(ie)},P.setScale=function(Z){var X=z._size;if(P.overlaying){var re=C.getFromId({_fullLayout:z},P.overlaying);P.domain=re.domain}var ie=Z&&P._r?"_r":"range",le=P.calendar;P.cleanRange(ie);var se,pe,Te=P.r2l(P[ie][0],le),Se=P.r2l(P[ie][1],le),Oe=N==="y";if(Oe?(P._offset=X.t+(1-P.domain[1])*X.h,P._length=X.h*(P.domain[1]-P.domain[0]),P._m=P._length/(Te-Se),P._b=-P._m*Se):(P._offset=X.l+P.domain[0]*X.w,P._length=X.w*(P.domain[1]-P.domain[0]),P._m=P._length/(Se-Te),P._b=-P._m*Te),P._rangebreaks=[],P._lBreaks=0,P._m2=0,P._B=[],P.rangebreaks&&(P._rangebreaks=P.locateBreaks(Math.min(Te,Se),Math.max(Te,Se)),P._rangebreaks.length)){for(se=0;seSe&&(Me=!Me),Me&&P._rangebreaks.reverse();var ce=Me?-1:1;for(P._m2=ce*P._length/(Math.abs(Se-Te)-P._lBreaks),P._B.push(-P._m2*(Oe?Se:Te)),se=0;seie&&(ie+=7,leie&&(ie+=24,le=re&&le=re&&Z=Pe.min&&(gePe.max&&(Pe.max=be),we=!1)}we&&pe.push({min:ge,max:be})}};for(re=0;reg.duration?(function(){for(var D={},O=0;O rect").call(f.setTranslate,0,0).call(f.setScale,1,1),M.plot.call(f.setTranslate,S._offset,C._offset).call(f.setScale,1,1);var A=M.plot.selectAll(".scatterlayer .trace");A.selectAll(".point").call(f.setPointGroupScale,1,1),A.selectAll(".textpoint").call(f.setTextPointsScale,1,1),A.call(f.hideOutsideRangePoints,M)}function T(M,S){var C=M.plotinfo,A=C.xaxis,D=C.yaxis,O=A._length,R=D._length,F=!!M.xr1,P=!!M.yr1,z=[];if(F){var B=u.simpleMap(M.xr0,A.r2l),N=u.simpleMap(M.xr1,A.r2l),j=B[1]-B[0],$=N[1]-N[0];z[0]=(B[0]*(1-S)+S*N[0]-B[0])/(B[1]-B[0])*O,z[2]=O*(1-S+S*$/j),A.range[0]=A.l2r(B[0]*(1-S)+S*N[0]),A.range[1]=A.l2r(B[1]*(1-S)+S*N[1])}else z[0]=0,z[2]=O;if(P){var E=u.simpleMap(M.yr0,D.r2l),U=u.simpleMap(M.yr1,D.r2l),G=E[1]-E[0],L=U[1]-U[0];z[1]=(E[1]*(1-S)+S*U[1]-E[1])/(E[0]-E[1])*R,z[3]=R*(1-S+S*L/G),D.range[0]=A.l2r(E[0]*(1-S)+S*U[0]),D.range[1]=D.l2r(E[1]*(1-S)+S*U[1])}else z[1]=0,z[3]=R;d.drawOne(h,A,{skipTitle:!0}),d.drawOne(h,D,{skipTitle:!0}),d.redrawComponents(h,[A._id,D._id]);var q=F?O/z[2]:1,W=P?R/z[3]:1,V=F?z[0]:0,te=P?z[1]:0,ee=F?z[0]/z[2]*O:0,H=P?z[1]/z[3]*R:0,Q=A._offset-ee,Y=D._offset-H;C.clipRect.call(f.setTranslate,V,te).call(f.setScale,1/q,1/W),C.plot.call(f.setTranslate,Q,Y).call(f.setScale,q,W),f.setPointGroupScale(C.zoomScalePts,1/q,1/W),f.setTextPointsScale(C.zoomScaleTxt,1/q,1/W)}d.redrawComponents(h)}},951:function(o,a,r){var l=r(73972).traceIs,c=r(4322);function u(d){return{v:"x",h:"y"}[d.orientation||"v"]}function f(d,h){var p=u(d),g=l(d,"box-violin"),y=l(d._fullInput||{},"candlestick");return g&&!y&&h===p&&d[p]===void 0&&d[p+"0"]===void 0}o.exports=function(d,h,p,g){p("autotypenumbers",g.autotypenumbersDflt),p("type",(g.splomStash||{}).type)==="-"&&(function(y,v){if(y.type==="-"){var m,b=y._id,w=b.charAt(0);b.indexOf("scene")!==-1&&(b=w);var _=function(D,O,R){for(var F=0;F0&&(P["_"+R+"axes"]||{})[O]||(P[R+"axis"]||R)===O&&(f(P,R)||(P[R]||[]).length||P[R+"0"]))return P}}(v,b,w);if(_)if(_.type!=="histogram"||w!=={v:"y",h:"x"}[_.orientation||"v"]){var x=w+"calendar",k=_[x],T={noMultiCategory:!l(_,"cartesian")||l(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&w==={h:"x",v:"y"}[_.orientation||"v"]&&(T.noMultiCategory=!0),T.autotypenumbers=y.autotypenumbers,f(_,w)){var M=u(_),S=[];for(m=0;m0?".":"")+m;c.isPlainObject(b)?h(b,g,w,v+1):g(w,m,b)}})}a.manageCommandObserver=function(p,g,y,v){var m={},b=!0;g&&g._commandObserver&&(m=g._commandObserver),m.cache||(m.cache={}),m.lookupTable={};var w=a.hasSimpleAPICommandBindings(p,y,m.lookupTable);if(g&&g._commandObserver){if(w)return m;if(g._commandObserver.remove)return g._commandObserver.remove(),g._commandObserver=null,m}if(w){u(p,w,m.cache),m.check=function(){if(b){var k=u(p,w,m.cache);return k.changed&&v&&m.lookupTable[k.value]!==void 0&&(m.disable(),Promise.resolve(v({value:k.value,type:w.type,prop:w.prop,traces:w.traces,index:m.lookupTable[k.value]})).then(m.enable,m.enable)),k.changed}};for(var _=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],x=0;x<_.length;x++)p._internalOn(_[x],m.check);m.remove=function(){for(var k=0;k<_.length;k++)p._removeInternalListener(_[k],m.check)}}else c.log("Unable to automatically bind plot updates to API command"),m.lookupTable={},m.remove=function(){};return m.disable=function(){b=!1},m.enable=function(){b=!0},g&&(g._commandObserver=m),m},a.hasSimpleAPICommandBindings=function(p,g,y){var v,m,b=g.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),W.attr(te);var ee=W.select(".js-link-to-tool"),H=W.select(".js-link-spacer"),Q=W.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),H.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 W=l.select(L).append("div").attr("id","hiddenform").style("display","none"),V=W.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(),W.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 W=L._context.locale;W||(W="en-US");var V=!1,te={};function ee(re){for(var ie=!0,le=0;le1&&J.length>1){for(d.getComponentMethod("grid","sizeDefaults")(H,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,Fe){var ze,We=[];Fe.meta&&(ze=Fe._meta={meta:Fe.meta,layout:{meta:Fe.meta}});for(var qe=0;qe0){var Z=1-2*H;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(W.height-te)>1;(le||ie)&&(ie&&(W.width=V),le&&(W.height=te)),L._initialAutoSize||(L._initialAutoSize={width:V,height:te}),S.sanitizeMargins(W)},S.supplyLayoutModuleDefaults=function(L,q,W,V){var te,ee,H,Q=d.componentsRegistry,Y=q._basePlotModules,Z=d.subplotsRegistry.cartesian;for(te in Q)(H=Q[te]).includeBasePlot&&H.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(g.subplotSort);for(ee=0;ee1&&(W.l/=Te,W.r/=Te)}if(ie){var Se=(W.t+W.b)/ie;Se>1&&(W.t/=Se,W.b/=Se)}var Oe=W.xl!==void 0?W.xl:W.x,Me=W.xr!==void 0?W.xr:W.x,ce=W.yt!==void 0?W.yt:W.y,ye=W.yb!==void 0?W.yb:W.y;le[q]={l:{val:Oe,size:W.l+pe},r:{val:Me,size:W.r+pe},b:{val:ye,size:W.b+pe},t:{val:ce,size:W.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,W=q.width,V=q.height;q._size||(q._size={}),N(q);var te=q._size,ee=q.margin,H={t:0,b:0,l:0,r:0},Q=g.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];H[Me]=Math.max(H[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}},H){var J=0;for(var ne in ie)ne!=="base"&&f(ie[ne][ye].size)&&(J=ie[ne][ye].size>J?ie[ne][ye].size:J);var de=Math.max(0,ee[ye]-J);H[ye]=Math.max(0,H[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,Pe=ge.size,Ee=W-H.r-H.l,De=V-H.t-H.b;for(var Re in ie){if(f(we)&&ie[Re].r){var Fe=ie[Re].r.val,ze=ie[Re].r.size;if(Fe>be){var We=(we*Fe+(ze-Ee)*be)/(Fe-be),qe=(ze*(1-be)+(we-Ee)*(1-Fe))/(Fe-be);We+qe>Y+Z&&(Y=We,Z=qe)}}if(f(Pe)&&ie[Re].t){var Ye=ie[Re].t.val,at=ie[Re].t.size;if(Ye>ke){var lt=(Pe*Ye+(at-De)*ke)/(Ye-ke),ct=(at*(1-ke)+(Pe-De)*(1-Ye))/(Ye-ke);lt+ct>re+X&&(re=lt,X=ct)}}}}}var bt=g.constrain(W-ee.l-ee.r,2,se),Be=g.constrain(V-ee.t-ee.b,2,pe),Ne=Math.max(0,W-bt),Qe=Math.max(0,V-Be);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)+H.l,te.r=Math.round(Z)+H.r,te.t=Math.round(X)+H.t,te.b=Math.round(re)+H.b,te.p=Math.round(ee.pad),te.w=Math.round(W)-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=m.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}),W.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=H,L._transitionData&&(function(re){if(re)for(;re.length;)re.shift()}(L._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(W.redraw)return d.call("redraw",L)}).then(function(){L._transitioning=!1,L._transitioningWithDuration=!1,L.emit("plotly_transitioned",[])}).then(X)))}}W.runFn(Z),setTimeout(Z())})}],ee=g.syncOrAsync(te,L);return ee&&ee.then||(ee=Promise.resolve()),ee.then(function(){return L})}S.didMarginChange=function(L,q){for(var W=0;W1)return!0}return!1},S.graphJson=function(L,q,W,V,te,ee){(te&&q&&!L._fullData||te&&!q&&!L._fullLayout)&&S.supplyDefaults(L);var H=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(g.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(W==="keepdata"){if(Te.substr(Te.length-3)==="src")return}else if(W==="keepstream"){if(typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0&&!g.isPlainObject(ie.stream))return}else if(W!=="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)}):g.isTypedArray(ie)?g.simpleMap(ie,g.identity):g.isJSDate(ie)?g.ms2DateTimeLocal(+ie):ie}var X={data:(H||[]).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 W,V,te,ee=L._transitionData._frames,H=L._transitionData._frameHash;for(W=0;W=0;ee--)if(ye[ee].enabled){W._indexToPoints=ye[ee]._indexToPoints;break}V&&V.calc&&(ce=V.calc(L,W))}Array.isArray(ce)&&ce[0]||(ce=[{x:v,y:v}]),ce[0].t||(ce[0].t={}),ce[0].trace=W,Z[Oe]=ce}}for(U(H,Q,Y),te=0;te0){for(var h=[],p=0;p=D&&(R.min=0,F.min=0,P.min=0,_.aaxis&&delete _.aaxis.min,_.baxis&&delete _.baxis.min,_.caxis&&delete _.caxis.min)}function w(_,x,k,T){var M=v[x._name];function S(F,P){return u.coerce(_,x,M,F,P)}S("uirevision",T.uirevision),x.type="linear";var C=S("color"),A=C!==M.color.dflt?C:k.font.color,D=x._name.charAt(0).toUpperCase(),O="Component "+D,R=S("title.text",O);x._hovertitle=R===O?R:D,u.coerceFont(S,"title.font",{family:k.font.family,size:u.bigFont(k.font.size),color:A}),S("min"),g(_,x,S,"linear"),h(_,x,S,"linear"),d(_,x,S,"linear"),p(_,x,S,{outerTicks:!0}),S("showticklabels")&&(u.coerceFont(S,"tickfont",{family:k.font.family,size:k.font.size,color:A}),S("tickangle"),S("tickformat")),y(_,x,S,{dfltColor:C,bgColor:k.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:M}),S("hoverformat"),S("layer")}o.exports=function(_,x,k){f(_,x,k,{type:"ternary",attributes:v,handleDefaults:b,font:x.font,paper_bgcolor:x.paper_bgcolor})}},64380:function(o,a,r){var l=r(39898),c=r(84267),u=r(73972),f=r(71828),d=f.strTranslate,h=f._,p=r(7901),g=r(91424),y=r(21994),v=r(1426).extendFlat,m=r(74875),b=r(89298),w=r(28569),_=r(30211),x=r(64505),k=x.freeMode,T=x.rectMode,M=r(92998),S=r(47322).prepSelect,C=r(47322).selectOnClick,A=r(47322).clearOutline,D=r(47322).clearSelectionsCache,O=r(85555);function R(U,G){this.id=U.id,this.graphDiv=U.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(U){this.container=U._ternarylayer,this.defs=U._defs,this.layoutId=U._uid,this.traceHash={},this.layers={}},F.plot=function(U,G){var L=this,q=G[L.id],W=G._size;L._hasClipOnAxisFalse=!1;for(var V=0;VP*le?W=(V=le)*P:V=(W=ie)/P,te=X*W/ie,ee=re*V/le,L=G.l+G.w*Y-W/2,q=G.t+G.h*(1-Z)-V/2,H.x0=L,H.y0=q,H.w=W,H.h=V,H.sum=se,H.xaxis={type:"linear",range:[pe+2*Se-se,se-pe-2*Te],domain:[Y-te/2,Y+te/2],_id:"x"},y(H.xaxis,H.graphDiv._fullLayout),H.xaxis.setScale(),H.xaxis.isPtWithinRange=function(be){return be.a>=H.aaxis.range[0]&&be.a<=H.aaxis.range[1]&&be.b>=H.baxis.range[1]&&be.b<=H.baxis.range[0]&&be.c>=H.caxis.range[1]&&be.c<=H.caxis.range[0]},H.yaxis={type:"linear",range:[pe,se-Te-Se],domain:[Z-ee/2,Z+ee/2],_id:"y"},y(H.yaxis,H.graphDiv._fullLayout),H.yaxis.setScale(),H.yaxis.isPtWithinRange=function(){return!0};var Oe=H.yaxis.domain[0],Me=H.aaxis=v({},U.aaxis,{range:[pe,se-Te-Se],side:"left",tickangle:(+U.aaxis.tickangle||0)-30,domain:[Oe,Oe+ee*P],anchor:"free",position:0,_id:"y",_length:W});y(Me,H.graphDiv._fullLayout),Me.setScale();var ce=H.baxis=v({},U.baxis,{range:[se-pe-Se,Te],side:"bottom",domain:H.xaxis.domain,anchor:"free",position:0,_id:"x",_length:W});y(ce,H.graphDiv._fullLayout),ce.setScale();var ye=H.caxis=v({},U.caxis,{range:[se-pe-Te,Se],side:"right",tickangle:(+U.caxis.tickangle||0)+30,domain:[Oe,Oe+ee*P],anchor:"free",position:0,_id:"y",_length:W});y(ye,H.graphDiv._fullLayout),ye.setScale();var J="M"+L+","+(q+V)+"h"+W+"l-"+W/2+",-"+V+"Z";H.clipDef.select("path").attr("d",J),H.layers.plotbg.select("path").attr("d",J);var ne="M0,"+V+"h"+W+"l-"+W/2+",-"+V+"Z";H.clipDefRelative.select("path").attr("d",ne);var de=d(L,q);H.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",de),H.clipDefRelative.select("path").attr("transform",null);var xe=d(L-ce._offset,q+V);H.layers.baxis.attr("transform",xe),H.layers.bgrid.attr("transform",xe);var ue=d(L+W/2,q)+"rotate(30)"+d(0,-Me._offset);H.layers.aaxis.attr("transform",ue),H.layers.agrid.attr("transform",ue);var ge=d(L+W/2,q)+"rotate(-30)"+d(0,-ye._offset);H.layers.caxis.attr("transform",ge),H.layers.cgrid.attr("transform",ge),H.drawAxes(!0),H.layers.aline.select("path").attr("d",Me.showline?"M"+L+","+(q+V)+"l"+W/2+",-"+V:"M0,0").call(p.stroke,Me.linecolor||"#000").style("stroke-width",(Me.linewidth||0)+"px"),H.layers.bline.select("path").attr("d",ce.showline?"M"+L+","+(q+V)+"h"+W:"M0,0").call(p.stroke,ce.linecolor||"#000").style("stroke-width",(ce.linewidth||0)+"px"),H.layers.cline.select("path").attr("d",ye.showline?"M"+(L+W/2)+","+q+"l"+W/2+","+V:"M0,0").call(p.stroke,ye.linecolor||"#000").style("stroke-width",(ye.linewidth||0)+"px"),H.graphDiv._context.staticPlot||H.initInteractions(),g.setClipUrl(H.layers.frontplot,H._hasClipOnAxisFalse?null:H.clipId,H.graphDiv)},F.drawAxes=function(U){var G=this,L=G.graphDiv,q=G.id.substr(7)+"title",W=G.layers,V=G.aaxis,te=G.baxis,ee=G.caxis;if(G.drawAx(V),G.drawAx(te),G.drawAx(ee),U){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)),Q=(te.showticklabels?te.tickfont.size:0)+(te.ticks==="outside"?te.ticklen:0)+3;W["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-H,"text-anchor":"middle"}}),W["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"}}),W["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(U){var G,L=this,q=L.graphDiv,W=U._name,V=W.charAt(0),te=U._id,ee=L.layers[W],H=V+"tickLayout",Q=(G=U).ticks+String(G.ticklen)+String(G.showticklabels);L[H]!==Q&&(ee.selectAll("."+te+"tick").remove(),L[H]=Q),U.setScale();var Y=b.calcTicks(U),Z=b.clipEnds(U,Y),X=b.makeTransTickFn(U),re=b.getTickSigns(U)[2],ie=f.deg2rad(30),le=re*(U.linewidth||1)/2,se=re*U.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,U,{vals:U.ticks==="inside"?Z:Y,layer:ee,path:Se,transFn:X,crisp:!1}),b.drawGrid(q,U,{vals:Z,layer:L.layers[V+"grid"],path:Oe,transFn:X,crisp:!1}),b.drawLabels(q,U,{vals:Y,layer:ee,transFn:X,labelFns:b.makeLabelFns(U,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",N="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",$=!0;function E(U){l.select(U).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}F.clearOutline=function(){D(this.dragOptions),A(this.dragOptions.gd)},F.initInteractions=function(){var U,G,L,q,W,V,te,ee,H,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),u.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*U,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,Pe=(1-ge/2-be)*X.w,Ee=(ke+Pe)/2,De=Pe-ke,Re=(1-ge)*X.h,Fe=Re-De/P;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!==W&&(u.call("_guiRelayout",ie,se(te)),$&&ie.data&&ie._context.showTips&&(f.notifier(h(ie,"Double-click to zoom back out"),"long"),$=!1))}function ye(ne,de){var xe=ne/X.xaxis._m,ue=de/X.yaxis._m,ge=[(te={a:W.a-ue,b:W.b+(xe+ue)/2,c:W.c-(xe-ue)/2}).a,te.b,te.c].sort(f.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=(W.a-te.a)*X.yaxis._m,ne=(W.c-te.c-W.b+te.b)*X.xaxis._m);var Pe=d(X.x0+ne,X.y0+de);X.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Pe);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(g.hideOutsideRangePoints,X),ie.emit("plotly_relayouting",se(te))}function J(){u.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],U=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 Pe=ie._fullLayout._invTransform,Ee=f.apply3DTransform(Pe)(L,q);L=Ee[0],q=Ee[1],W={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=W,V=X.aaxis.range[1]-W.a,ee=c(X.graphDiv._fullLayout[X.id].bgcolor).getLuminance(),H="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",H),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,W={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=W,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||w.unhover(ie,ne)},w.init(this.dragOptions)}},73972:function(o,a,r){var l=r(47769),c=r(64213),u=r(75138),f=r(41965),d=r(24401).addStyleRule,h=r(1426),p=r(9012),g=r(10820),y=h.extendFlat,v=h.extendDeepAll;function m(C){var A=C.name,D=C.categories,O=C.meta;if(a.modules[A])l.log("Type "+A+" already registered");else{a.subplotsRegistry[C.basePlotModule.name]||function($){var E=$.name;if(a.subplotsRegistry[E])l.log("Plot type "+E+" already registered.");else for(var U in x($),a.subplotsRegistry[E]=$,a.componentsRegistry)M(U,$.name)}(C.basePlotModule);for(var R={},F=0;F-1&&(w[x[g]].title={text:""});for(g=0;g")!==-1?"":F.html(z).text()});return F.remove(),P}(O)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(g,"'"),c.isIE()&&(O=(O=(O=O.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),O}},75341:function(o,a,r){var l=r(71828);o.exports=function(c,u){for(var f=0;fP+R||!l(F))}for(var B=0;Bg))return d}return h!==void 0?h:f.dflt},a.coerceColor=function(f,d,h){return c(d).isValid()?d:h!==void 0?h:f.dflt},a.coerceEnumerated=function(f,d,h){return f.coerceNumber&&(d=+d),f.values.indexOf(d)!==-1?d:h!==void 0?h:f.dflt},a.getValue=function(f,d){var h;return Array.isArray(f)?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 H=v[T+"a"],Q=v[M+"a"];A=Math.abs(H.r2c(H.range[1])-H.r2c(H.range[0]));var Y=l.getDistanceFunction(w,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($(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"]=H.c2p(F?L(Z):re[0],!0),v[T+"1"]=H.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(H,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 W($(le),E(le),B)}(Z))/2,v[T+"Spike"]=H.c2p(Z.p,!0),f(Z,O,v),v.hovertemplate=O.hovertemplate,v}}function y(v,m){var b=m.mcc||v.marker.color,w=m.mlcc||v.marker.line.color,_=d(v,m);return u.opacity(b)?b:u.opacity(w)&&_?w:void 0}o.exports={hoverPoints:function(v,m,b,w,_){var x=g(v,m,b,w,_);if(x){var k=x.cd,T=k[0].trace,M=k[x.index];return x.color=y(T,M),c.getComponentMethod("errorbars","hoverInfo")(M,T,x),[x]}},hoverOnBars:g,getTraceColor:y}},60822:function(o,a,r){o.exports={attributes:r(1486),layoutAttributes:r(43641),supplyDefaults:r(90769).supplyDefaults,crossTraceDefaults:r(90769).crossTraceDefaults,supplyLayoutDefaults:r(13957),calc:r(92290),crossTraceCalc:r(11661).crossTraceCalc,colorbar:r(4898),arraysToCalcdata:r(75341),plot:r(17295).plot,style:r(16688).style,styleOnSelect:r(16688).styleOnSelect,hoverPoints:r(95423).hoverPoints,eventData:r(58065),selectPoints:r(81974),moduleType:"trace",name:"bar",basePlotModule:r(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,r){var l=r(73972),c=r(89298),u=r(71828),f=r(43641);o.exports=function(d,h,p){function g(T,M){return u.coerce(d,h,f,T,M)}for(var y=!1,v=!1,m=!1,b={},w=g("barmode"),_=0;_0}function F(B){return B==="auto"?0:B}function P(B,N){var j=Math.PI/180*N,$=Math.abs(Math.sin(j)),E=Math.abs(Math.cos(j));return{x:B.width*E+B.height*$,y:B.width*$+B.height*E}}function z(B,N,j,$,E,U){var G=!!U.isHorizontal,L=!!U.constrained,q=U.angle||0,W=U.anchor||"end",V=W==="end",te=W==="start",ee=((U.leftToRight||0)+1)/2,H=1-ee,Q=E.width,Y=E.height,Z=Math.abs(N-B),X=Math.abs($-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,Fe){return Fe&&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 Pe=O(u.ensureSingle(ye,"path"),q,E,U);if(Pe.style("vector-effect",W?"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,N.layerClipId,B),!q.uniformtext.mode&&ie){var Ee=h.makePointStyleFns(H);h.singlePointStyle(Se,Pe,H,Ee,B)}(function(De,Re,Fe,ze,We,qe,Ye,at,lt,ct,bt){var Be,Ne=Re.xaxis,Qe=Re.yaxis,it=De._fullLayout;function kt(Dt,gt,ht){return u.ensureSingle(Dt,"text").text(gt).attr({class:"bartext bartext-"+Be,"text-anchor":"middle","data-notex":1}).call(h.font,ht).call(f.convertToTspans,De)}var Je=ze[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,Pt,Lt,Rt){var Nt=Ot[0].trace,Yt=u.castOption(Nt,Pt,"texttemplate");if(!Yt)return"";var Xt,zt,Ut,nn,fn=Nt.type==="histogram",sn=Nt.type==="waterfall",on=Nt.type==="funnel",un=Nt.orientation==="h";function Zt(wn){return g(nn,nn.c2l(wn),!0).text}un?(Xt="y",zt=Rt,Ut="x",nn=Lt):(Xt="x",zt=Lt,Ut="y",nn=Rt);var gn,rn=Ot[Pt],Kt={};Kt.label=rn.p,Kt.labelLabel=Kt[Xt+"Label"]=(gn=rn.p,g(zt,zt.c2l(gn),!0).text);var Cn=u.castOption(Nt,rn.i,"text");(Cn===0||Cn)&&(Kt.text=Cn),Kt.value=rn.s,Kt.valueLabel=Kt[Ut+"Label"]=Zt(rn.s);var _n={};M(_n,Nt,rn.i),(fn||_n.x===void 0)&&(_n.x=un?Kt.value:Kt.label),(fn||_n.y===void 0)&&(_n.y=un?Kt.label:Kt.value),(fn||_n.xLabel===void 0)&&(_n.xLabel=un?Kt.valueLabel:Kt.labelLabel),(fn||_n.yLabel===void 0)&&(_n.yLabel=un?Kt.labelLabel:Kt.valueLabel),sn&&(Kt.delta=+rn.rawS||rn.s,Kt.deltaLabel=Zt(Kt.delta),Kt.final=rn.v,Kt.finalLabel=Zt(Kt.final),Kt.initial=Kt.final-Kt.delta,Kt.initialLabel=Zt(Kt.initial)),on&&(Kt.value=rn.s,Kt.valueLabel=Zt(Kt.value),Kt.percentInitial=rn.begR,Kt.percentInitialLabel=u.formatPercent(rn.begR),Kt.percentPrevious=rn.difR,Kt.percentPreviousLabel=u.formatPercent(rn.difR),Kt.percentTotal=rn.sumR,Kt.percenTotalLabel=u.formatPercent(rn.sumR));var An=u.castOption(Nt,rn.i,"customdata");return An&&(Kt.customdata=An),u.texttemplateString(Yt,Kt,Tt._d3locale,_n,Kt,Nt._meta||{})}(Dt,gt,ht,yt,qt):jt.textinfo?function(Tt,Ot,Pt,Lt){var Rt=Tt[0].trace,Nt=Rt.orientation==="h",Yt=Rt.type==="waterfall",Xt=Rt.type==="funnel";function zt(An){return g(Nt?Pt:Lt,+An,!0).text}var Ut,nn,fn=Rt.textinfo,sn=Tt[Ot],on=fn.split("+"),un=[],Zt=function(An){return on.indexOf(An)!==-1};if(Zt("label")&&un.push((nn=Tt[Ot].p,g(Nt?Lt:Pt,nn,!0).text)),Zt("text")&&((Ut=u.castOption(Rt,sn.i,"text"))===0||Ut)&&un.push(Ut),Yt){var gn=+sn.rawS||sn.s,rn=sn.v,Kt=rn-gn;Zt("initial")&&un.push(zt(Kt)),Zt("delta")&&un.push(zt(gn)),Zt("final")&&un.push(zt(rn))}if(Xt){Zt("value")&&un.push(zt(sn.s));var Cn=0;Zt("percent initial")&&Cn++,Zt("percent previous")&&Cn++,Zt("percent total")&&Cn++;var _n=Cn>1;Zt("percent initial")&&(Ut=u.formatPercent(sn.begR),_n&&(Ut+=" of initial"),un.push(Ut)),Zt("percent previous")&&(Ut=u.formatPercent(sn.difR),_n&&(Ut+=" of previous"),un.push(Ut)),Zt("percent total")&&(Ut=u.formatPercent(sn.sumR),_n&&(Ut+=" of total"),un.push(Ut))}return un.join("
")}(gt,ht,yt,qt):w.getValue(jt.text,ht),w.coerceString(k,Et)}(it,ze,We,Ne,Qe);Be=function(Dt,gt){var ht=w.getValue(Dt.textposition,gt);return w.coerceEnumerated(T,ht)}(Je,We);var It=ct.mode==="stack"||ct.mode==="relative",Mt=ze[We],Bt=!It||Mt._outmost;if(pt&&Be!=="none"&&(!Mt.isBlank&&qe!==Ye&&at!==lt||Be!=="auto"&&Be!=="inside")){var wt=it.font,ve=b.getBarColor(ze[We],Je),_e=b.getInsideTextFont(Je,We,wt,ve),Ve=b.getOutsideTextFont(Je,We,wt),Ue=Fe.datum();ut?Ne.type==="log"&&Ue.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)))?Be="inside":(Be="outside",Ze.remove(),Ze=null)):Be="inside"),!Ze){var Ft=(Ze=kt(Fe,pt,st=u.ensureUniformFontSize(De,Be==="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=Be==="outside"?function(Dt,gt,ht,yt,qt,Et){var jt,Tt=!!Et.isHorizontal,Ot=!!Et.constrained,Pt=Et.angle||0,Lt=qt.width,Rt=qt.height,Nt=Math.abs(gt-Dt),Yt=Math.abs(yt-ht);jt=Tt?Yt>2*S?S:0:Nt>2*S?S:0;var Xt=1;Ot&&(Xt=Tt?Math.min(1,Yt/Rt):Math.min(1,Nt/Lt));var zt=F(Pt),Ut=P(qt,zt),nn=(Tt?Ut.x:Ut.y)/2,fn=(qt.left+qt.right)/2,sn=(qt.top+qt.bottom)/2,on=(Dt+gt)/2,un=(ht+yt)/2,Zt=0,gn=0,rn=Tt?D(gt,Dt):D(ht,yt);return Tt?(on=gt-rn*jt,Zt=rn*nn):(un=yt+rn*jt,gn=-rn*nn),{textX:fn,textY:sn,targetX:on,targetY:un,anchorX:Zt,anchorY:gn,scale:Xt,rotate:zt}}(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 $t=O(Ze,it,ct,bt);u.setTransormAndDisplay($t,Vt)}else Fe.select("text").remove()})(B,N,ye,te,Oe,ne,de,xe,ue,E,U),N.layerClipId&&h.hideOutsideRangePoint(Se,ye.select("text"),G,L,H.xcalendar,H.ycalendar)});var Te=H.cliponaxis===!1;h.setClipUrl(ee,Te?null:N.layerClipId,B)});p.getComponentMethod("errorbars","plot")(B,V,N,E)},toMoveInsideBar:z}},81974:function(o){function a(r,l,c,u,f){var d=l.c2p(u?r.s0:r.p0,!0),h=l.c2p(u?r.s1:r.p1,!0),p=c.c2p(u?r.p0:r.s0,!0),g=c.c2p(u?r.p1:r.s1,!0);return f?[(d+h)/2,(p+g)/2]:u?[h,(p+g)/2]:[(d+h)/2,g]}o.exports=function(r,l){var c,u=r.cd,f=r.xaxis,d=r.yaxis,h=u[0].trace,p=h.type==="funnel",g=h.orientation==="h",y=[];if(l===!1)for(c=0;c1||O.bargap===0&&O.bargroupgap===0&&!R[0].trace.marker.line.width)&&l.select(this).attr("shape-rendering","crispEdges")}),A.selectAll("g.points").each(function(R){b(l.select(this),R[0].trace,C)}),d.getComponentMethod("errorbars","style")(A)},styleTextPoints:w,styleOnSelect:function(C,A,D){var O=A[0].trace;O.selectedpoints?function(R,F,P){u.selectedPointStyle(R.selectAll("path"),F),function(z,B,N){z.each(function(j){var $,E=l.select(this);if(j.selected){$=f.ensureUniformFontSize(N,_(E,j,B,N));var U=B.selected.textfont&&B.selected.textfont.color;U&&($.color=U),u.font(E,$)}else u.selectedTextStyle(E,B)})}(R.selectAll("text"),F,P)}(D,O,C):(b(D,O,C),d.getComponentMethod("errorbars","style")(D))},getInsideTextFont:k,getOutsideTextFont:T,getBarColor:S,resizeText:h}},98340:function(o,a,r){var l=r(7901),c=r(52075).hasColorscale,u=r(1586),f=r(71828).coercePattern;o.exports=function(d,h,p,g,y){var v=p("marker.color",g),m=c(d,"marker");m&&u(d,h,y,p,{prefix:"marker.",cLetter:"c"}),p("marker.line.color",l.defaultLine),c(d,"marker.line")&&u(d,h,y,p,{prefix:"marker.line.",cLetter:"c"}),p("marker.line.width"),p("marker.opacity"),f(p,"marker.pattern",v,m),p("selected.marker.color"),p("unselected.marker.color")}},72597:function(o,a,r){var l=r(39898),c=r(71828);function u(f){return"_"+f+"Text_minsize"}o.exports={recordMinTextSize:function(f,d,h){if(h.uniformtext.mode){var p=u(f),g=h.uniformtext.minsize,y=d.scale*d.fontSize;d.hide=yj.uf};if(T._hasPreCompStats){var Y=T[A],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:m(j,E,U);var se=Z("upperfence");j.uf=se!==d&&se>=j.q3?se:b(j,E,U);var pe=Z("mean");j.mean=pe!==d?pe:U?f.mean(E,U):(j.q1+j.q3)/2;var Te=Z("sd");j.sd=pe!==d&&Te>=0?Te:U?f.stdev(E,U,j.mean):j.q3-j.q1,j.lo=w(j),j.uo=_(j);var Se=Z("notchspan");Se=Se!==d&&Se>0?Se:x(j,U),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[U-1])),T.notched&&(Oe=Math.min(Oe,j.ln),Me=Math.max(Me,j.un)),j.min=Oe,j.max=Me}else{var ce;f.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=$.filter(Q),B.push(j)}}T._extremes[C._id]=c.findExtremes(C,[X,re],{padded:!0})}else{var ye=C.makeCalcdata(T,A),J=function(Re,Fe){for(var ze=Re.length,We=new Array(ze+1),qe=0;qe=0&&xe0){var Pe,Ee;(j={}).pos=j[O]=ee[M],$=j.pts=de[M].sort(y),U=(E=j[A]=$.map(v)).length,j.min=E[0],j.max=E[U-1],j.mean=f.mean(E,U),j.sd=f.stdev(E,U,j.mean)*T.sdmultiple,j.med=f.interp(E,.5),U%2&&(we||ke)?(we?(Pe=E.slice(0,U/2),Ee=E.slice(U/2+1)):ke&&(Pe=E.slice(0,U/2+1),Ee=E.slice(U/2)),j.q1=f.interp(Pe,.5),j.q3=f.interp(Ee,.5)):(j.q1=f.interp(E,.25),j.q3=f.interp(E,.75)),j.lf=m(j,E,U),j.uf=b(j,E,U),j.lo=w(j),j.uo=_(j);var De=x(j,U);j.ln=j.med-De,j.un=j.med+De,ue=Math.min(ue,j.ln),ge=Math.max(ge,j.un),j.pts2=$.filter(Q),B.push(j)}T._extremes[C._id]=c.findExtremes(C,T.notched?ye.concat([ue,ge]):ye,{padded:!0})}return function(Re,Fe){if(f.isArrayOrTypedArray(Fe.selectedpoints))for(var ze=0;ze0?(B[0].t={num:F[N],dPos:H,posLetter:O,valLetter:A,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[N]++,B):[{t:{empty:!0}}]};var p={text:"tx",hovertext:"htx"};function g(k,T,M){for(var S in p)f.isArrayOrTypedArray(T[S])&&(Array.isArray(M)?f.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 m(k,T,M){return M===0?k.q1:Math.min(k.q1,T[Math.min(f.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(f.findBin(2.5*k.q3-1.5*k.q1,T),0)])}function w(k){return 4*k.q1-3*k.q3}function _(k){return 4*k.q3-3*k.q1}function x(k,T){return T===0?0:1.57*(k.q3-k.q1)/Math.sqrt(T)}},37188:function(o,a,r){var l=r(89298),c=r(71828),u=r(99082).getAxisGroup,f=["v","h"];function d(h,p,g,y){var v,m,b,w=p.calcdata,_=p._fullLayout,x=y._id,k=x.charAt(0),T=[],M=0;for(v=0;v1,O=1-_[h+"gap"],R=1-_[h+"groupgap"];for(v=0;v0){var ie=$.pointpos,le=$.jitter,se=$.marker.size/2,pe=0;ie+le>=0&&((pe=X*(ie+le))>N?(re=!0,Y=se,H=pe):pe>te&&(Y=se,H=N)),pe<=N&&(H=N);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 H=N,Q=j;var Se=new Array(b.length);for(m=0;m0?(D="v",O=F>0?Math.min(z,P):Math.min(P)):F>0?(D="h",O=Math.min(z)):O=0;if(O){m._length=O;var U=b("orientation",D);m._hasPreCompStats?U==="v"&&F===0?(b("x0",0),b("dx",1)):U==="h"&&R===0&&(b("y0",0),b("dy",1)):U==="v"&&F===0?b("x0"):U==="h"&&R===0&&b("y0"),c.getComponentMethod("calendars","handleTraceDefaults")(v,m,["x","y"],w)}else m.visible=!1}function y(v,m,b,w){var _=w.prefix,x=l.coerce2(v,m,p,"marker.outliercolor"),k=b("marker.line.outliercolor"),T="outliers";m._hasPreCompStats?T="all":(x||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",m.line.color),b("marker.line.color"),b("marker.line.width"),M==="suspectedoutliers"&&(b("marker.line.outliercolor",m.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 m.marker;var S=b("hoveron");S!=="all"&&S.indexOf("points")===-1||b("hovertemplate"),l.coerceSelectionMarkerOpacity(m,b)}o.exports={supplyDefaults:function(v,m,b,w){function _(O,R){return l.coerce(v,m,p,O,R)}if(g(v,m,_,w),m.visible!==!1){f(v,m,w,_),_("xhoverformat"),_("yhoverformat");var x=m._hasPreCompStats;x&&(_("lowerfence"),_("upperfence")),_("line.color",(v.marker||{}).color||b),_("line.width"),_("fillcolor",u.addOpacity(m.line.color,.5));var k=!1;if(x){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 A=!1;if(x){var D=_("notchspan");D&&D.length&&(A=!0)}else l.validate(v.notchwidth,p.notchwidth)&&(A=!0);_("notched",A)&&_("notchwidth"),y(v,m,_,{prefix:"box"})}},crossTraceDefaults:function(v,m){var b,w;function _(T){return l.coerce(w._input,w,p,T)}for(var x=0;xM.lo&&(E.so=!0)}return A});T.enter().append("path").classed("point",!0),T.exit().remove(),T.call(u.translatePoints,m,b)}function h(p,g,y,v){var m,b,w=g.val,_=g.pos,x=!!_.rangebreaks,k=v.bPos,T=v.bPosPxOffset||0,M=y.boxmean||(y.meanline||{}).visible;Array.isArray(v.bdPos)?(m=v.bdPos[0],b=v.bdPos[1]):(m=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?c.identity:[]);S.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),S.exit().remove(),S.each(function(C){var A=_.c2l(C.pos+k,!0),D=_.l2p(A-m)+T,O=_.l2p(A+b)+T,R=x?(D+O)/2:_.l2p(A)+T,F=w.c2p(C.mean,!0),P=w.c2p(C.mean-C.sd,!0),z=w.c2p(C.mean+C.sd,!0);y.orientation==="h"?l.select(this).attr("d","M"+F+","+D+"V"+O+(M==="sd"?"m0,0L"+P+","+R+"L"+F+","+D+"L"+z+","+R+"Z":"")):l.select(this).attr("d","M"+D+","+F+"H"+O+(M==="sd"?"m0,0L"+R+","+P+"L"+D+","+F+"L"+R+","+z+"Z":""))})}o.exports={plot:function(p,g,y,v){var m=p._context.staticPlot,b=g.xaxis,w=g.yaxis;c.makeTraceGroups(v,y,"trace boxes").each(function(_){var x,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"?(x=w,k=b):(x=b,k=w),f(T,{pos:x,val:k},C,S,m),d(T,{x:b,y:w},C,S),h(T,{pos:x,val:k},C,S))})},plotBoxAndWhiskers:f,plotPoints:d,plotBoxMean:h}},24626:function(o){o.exports=function(a,r){var l,c,u=a.cd,f=a.xaxis,d=a.yaxis,h=[];if(r===!1)for(l=0;ld.level||d.starts.length&&f===d.level)}break;case"constraint":if(c.prefixBoundary=!1,c.edgepaths.length)return;var h=c.x.length,p=c.y.length,g=-1/0,y=1/0;for(l=0;l":b>g&&(c.prefixBoundary=!0);break;case"<":(bg||c.starts.length&&m===y)&&(c.prefixBoundary=!0);break;case"][":v=Math.min(b[0],b[1]),m=Math.max(b[0],b[1]),vg&&(c.prefixBoundary=!0)}}}},90654:function(o,a,r){var l=r(21081),c=r(86068),u=r(53572);o.exports={min:"zmin",max:"zmax",calc:function(f,d,h){var p=d.contours,g=d.line,y=p.size||1,v=p.coloring,m=c(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=m);h._line={color:v==="lines"?m:g.color,width:p.showlines!==!1?g.width:0,dash:g.dash},h._levels={start:p.start,end:u(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,r){var l=r(92770),c=r(14523),u=r(7901),f=u.addOpacity,d=u.opacity,h=r(74808),p=h.CONSTRAINT_REDUCTION,g=h.COMPARISON_OPS2;o.exports=function(y,v,m,b,w,_){var x,k,T,M=v.contours,S=m("contours.operation");M._operation=p[S],function(C,A){var D;g.indexOf(A.operation)===-1?(C("contours.value",[0,1]),Array.isArray(A.value)?A.value.length>2?A.value=A.value.slice(2):A.length===0?A.value=[0,1]:A.length<2?(D=parseFloat(A.value[0]),A.value=[D,D+1]):A.value=[parseFloat(A.value[0]),parseFloat(A.value[1])]:l(A.value)&&(D=parseFloat(A.value),A.value=[D,D+1])):(C("contours.value",0),l(A.value)||(Array.isArray(A.value)?A.value=parseFloat(A.value[0]):A.value=0))}(m,M),S==="="?x=M.showlines=!0:(x=m("contours.showlines"),T=m("fillcolor",f((y.line||{}).color||w,.5))),x&&(k=m("line.color",T&&d(T)?f(v.fillcolor,1):w),m("line.width",2),m("line.dash")),m("line.smoothing"),c(m,b,k,_)}},64237:function(o,a,r){var l=r(74808),c=r(92770);function u(h,p){var g,y=Array.isArray(p);function v(m){return c(m)?+m:null}return l.COMPARISON_OPS2.indexOf(h)!==-1?g=v(y?p[0]:p):l.INTERVAL_OPS.indexOf(h)!==-1?g=y?[v(p[0]),v(p[1])]:[v(p),v(p)]:l.SET_OPS.indexOf(h)!==-1&&(g=y?p.map(v):[v(p)]),g}function f(h){return function(p){p=u(h,p);var g=Math.min(p[0],p[1]),y=Math.max(p[0],p[1]);return{start:g,end:y,size:y-g}}}function d(h){return function(p){return{start:p=u(h,p),end:1/0,size:1/0}}}o.exports={"[]":f("[]"),"][":f("]["),">":d(">"),"<":d("<"),"=":d("=")}},67217:function(o){o.exports=function(a,r,l,c){var u=c("contours.start"),f=c("contours.end"),d=u===!1||f===!1,h=l("contours.size");!(d?r.autocontour=!0:l("autocontour",!1))&&h||l("ncontours")}},84857:function(o,a,r){var l=r(71828);function c(u){return l.extendFlat({},u,{edgepaths:l.extendDeep([],u.edgepaths),paths:l.extendDeep([],u.paths),starts:l.extendDeep([],u.starts)})}o.exports=function(u,f){var d,h,p,g=function(m){return m.reverse()},y=function(m){return m};switch(f){case"=":case"<":return u;case">":for(u.length!==1&&l.warn("Contour data invalid for the specified inequality operation."),h=u[0],d=0;d1e3){l.warn("Too many contours, clipping at 1000",f);break}return y}},53572:function(o){o.exports=function(a){return a.end+a.size/1e6}},81696:function(o,a,r){var l=r(71828),c=r(36914);function u(h,p,g,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:c.BOTTOMSTART.indexOf(X)!==-1?se=1:c.LEFTSTART.indexOf(X)!==-1?le=1:c.TOPSTART.indexOf(X)!==-1?se=-1:le=-1,[le,se]}(w,g,p),x=[d(h,p,[-_[0],-_[1]])],k=h.z.length,T=h.z[0].length,M=p.slice(),S=_.slice();for(m=0;m<1e4;m++){if(w>20?(w=c.CHOOSESADDLE[w][(_[0]||_[1])<0?0:1],h.crossings[b]=c.SADDLEREMAINDER[w]):delete h.crossings[b],!(_=c.NEWDELTA[w])){l.log("Found bad marching index:",w,p,h.level);break}x.push(d(h,p,_)),p[0]+=_[0],p[1]+=_[1],b=p.join(","),u(x[x.length-1],x[x.length-2],y,v)&&x.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]||g&&C)break;w=h.crossings[b]}m===1e4&&l.log("Infinite loop in contour?");var A,D,O,R,F,P,z,B,N,j,$,E,U,G,L,q=u(x[0],x[x.length-1],y,v),W=0,V=.2*h.smoothing,te=[],ee=0;for(m=1;m=ee;m--)if((A=te[m])=ee&&A+te[D]B&&N--,h.edgepaths[N]=$.concat(x,j));break}Z||(h.edgepaths[B]=x.concat(j))}for(B=0;B=S)&&(h<=M&&(h=M),p>=S&&(p=S),y=Math.floor((p-h)/g)+1,v=0),w=0;wM&&(k.unshift(M),T.unshift(T[0])),k[k.length-1]u?0:1)+(f[0][1]>u?0:2)+(f[1][1]>u?0:4)+(f[1][0]>u?0:8);return d===5||d===10?u>(f[0][0]+f[0][1]+f[1][0]+f[1][1])/4?d===5?713:1114:d===5?104:208:d===15?0:d}o.exports=function(u){var f,d,h,p,g,y,v,m,b,w=u[0].z,_=w.length,x=w[0].length,k=_===2||x===2;for(d=0;d<_-1;d++)for(p=[],d===0&&(p=p.concat(l.BOTTOMSTART)),d===_-2&&(p=p.concat(l.TOPSTART)),f=0;f=0&&(D=L,R=F):Math.abs(A[1]-D[1])<.01?Math.abs(A[1]-L[1])<.01&&(L[0]-A[0])*(D[0]-L[0])>=0&&(D=L,R=F):c.log("endpt to newendpt is not vert. or horz.",A,D,L)}if(A=D,R>=0)break;B+="L"+D}if(R===S.edgepaths.length){c.log("unclosed perimeter path");break}N=R,($=j.indexOf(N)===-1)&&(N=j[0],B+="Z")}for(N=0;ND.center?D.right-F:F-D.left)/(B+Math.abs(Math.sin(z)*R)),$=(P>D.middle?D.bottom-P:P-D.top)/(Math.abs(N)+Math.cos(z)*R);if(j<1||$<1)return 1/0;var E=x.EDGECOST*(1/(j-1)+1/($-1));E+=x.ANGLECOST*z*z;for(var U=F-B,G=P-N,L=F+B,q=P+N,W=0;W2*x.MAXCOST)break;$&&(F/=2),P=(R=z-F/2)+1.5*F}if(j<=x.MAXCOST)return B},a.addLabelData=function(S,C,A,D){var O=C.fontSize,R=C.width+O/3,F=Math.max(0,C.height-O/3),P=S.x,z=S.y,B=S.theta,N=Math.sin(B),j=Math.cos(B),$=function(U,G){return[P+U*j-G*N,z+U*N+G*j]},E=[$(-R/2,-F/2),$(-R/2,F/2),$(R/2,F/2),$(R/2,-F/2)];A.push({text:C.text,x:P,y:z,dy:C.dy,theta:B,level:C.level,width:R,height:F}),D.push(E)},a.drawLabels=function(S,C,A,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,N=z.y-Math.cos(z.theta)*z.dy;l.select(this).text(z.text).attr({x:B,y:N,transform:"rotate("+180*z.theta/Math.PI+" "+B+" "+N+")"}).call(d.convertToTspans,A)}),O){for(var F="",P=0;Ph.end&&(h.start=h.end=(h.start+h.end)/2),f._input.contours||(f._input.contours={}),c.extendFlat(f._input.contours,{start:h.start,end:h.end,size:h.size}),f._input.autocontour=!0}else if(h.type!=="constraint"){var v,m=h.start,b=h.end,w=f._input.contours;m>b&&(h.start=w.start=b,b=h.end=w.end=m,m=h.start),h.size>0||(v=m===b?1:u(m,b,f.ncontours).dtick,w.size=h.size=v)}}},84426:function(o,a,r){var l=r(39898),c=r(91424),u=r(70035),f=r(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 g=l.select(this),y=p[0].trace,v=y.contours,m=y.line,b=v.size||1,w=v.start,_=v.type==="constraint",x=!_&&v.coloring==="lines",k=!_&&v.coloring==="fill",T=x||k?f(y):null;g.selectAll("g.contourlevel").each(function(C){l.select(this).selectAll("path").call(c.lineGroupStyle,m.width,x?T(C.level):m.color,m.dash)});var M=v.labelfont;if(g.selectAll("g.contourlabels text").each(function(C){c.font(l.select(this),{family:M.family,size:M.size,color:M.color||(x?T(C.level):m.color)})}),_)g.selectAll("g.contourfill path").style("fill",y.fillcolor);else if(k){var S;g.selectAll("g.contourfill path").style("fill",function(C){return S===void 0&&(S=C.level),T(C.level+.5*b)}),S===void 0&&(S=w),g.selectAll("g.contourbg path").style("fill",T(S-.5*b))}}),u(d)}},8724:function(o,a,r){var l=r(1586),c=r(14523);o.exports=function(u,f,d,h,p){var g,y=d("contours.coloring"),v="";y==="fill"&&(g=d("contours.showlines")),g!==!1&&(y!=="lines"&&(v=d("line.color","#000")),d("line.width",.5),d("line.dash")),y!=="none"&&(u.showlegend!==!0&&(f.showlegend=!1),f._dfltShowLegend=!1,l(u,f,h,d,{prefix:"",cLetter:"z"})),d("line.smoothing"),c(d,h,v,p)}},21606:function(o,a,r){var l=r(82196),c=r(9012),u=r(41940),f=r(12663).axisHoverFormat,d=r(5386).fF,h=r(5386).si,p=r(50693),g=r(1426).extendFlat;o.exports=g({z:{valType:"data_array",editType:"calc"},x:g({},l.x,{impliedEdits:{xtype:"array"}}),x0:g({},l.x0,{impliedEdits:{xtype:"scaled"}}),dx:g({},l.dx,{impliedEdits:{xtype:"scaled"}}),y:g({},l.y,{impliedEdits:{ytype:"array"}}),y0:g({},l.y0,{impliedEdits:{ytype:"scaled"}}),dy:g({},l.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:g({},l.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:g({},l.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:g({},l.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:g({},l.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:g({},l.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:g({},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:f("x"),yhoverformat:f("y"),zhoverformat:f("z",1),hovertemplate:d(),texttemplate:h({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:u({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:g({},c.showlegend,{dflt:!1})},{transforms:void 0},p("",{cLetter:"z",autoColorDflt:!1}))},90757:function(o,a,r){var l=r(73972),c=r(71828),u=r(89298),f=r(42973),d=r(17562),h=r(78803),p=r(68296),g=r(4742),y=r(824),v=r(43907),m=r(70769),b=r(50606).BADNUM;function w(_){for(var x=[],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--)(g=((b[[(f=(h=w[p])[0])-1,d=h[1]]]||k)[2]+(b[[f+1,d]]||k)[2]+(b[[f,d-1]]||k)[2]+(b[[f,d+1]]||k)[2])/20)&&(y[h]=[f,d,g],w.splice(p,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(h in y)b[h]=y[h],m.push(y[h])}return m.sort(function(M,S){return S[2]-M[2]})}},46248:function(o,a,r){var l=r(30211),c=r(71828),u=r(89298),f=r(21081).extractOpts;o.exports=function(d,h,p,g,y){y||(y={});var v,m,b,w,_=y.isContour,x=d.cd[0],k=x.trace,T=d.xa,M=d.ya,S=x.x,C=x.y,A=x.z,D=x.xCenter,O=x.yCenter,R=x.zmask,F=k.zhoverformat,P=S,z=C;if(d.index!==!1){try{b=Math.round(d.index[1]),w=Math.round(d.index[0])}catch{return void c.error("Error hovering on heatmap, pointNumber must be [row,col], found:",d.index)}if(b<0||b>=A[0].length||w<0||w>A.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(P=[2*S[0]-S[1]],B=1;BS&&(A=Math.max(A,Math.abs(d[y][v]-M)/(C-S))))}return A}o.exports=function(d,h){var p,g=1;for(f(d,h),p=0;p.01;p++)g=f(d,h,u(g));return g>.01&&l.log("interp2d didn't converge quickly",g),d}},58623:function(o,a,r){var l=r(71828);o.exports=function(c,u){c("texttemplate");var f=l.extendFlat({},u.font,{color:"auto",size:"auto"});l.coerceFont(c,"textfont",f)}},70769:function(o,a,r){var l=r(73972),c=r(71828).isArrayOrTypedArray;o.exports=function(u,f,d,h,p,g){var y,v,m,b=[],w=l.traceIs(u,"contour"),_=l.traceIs(u,"histogram"),x=l.traceIs(u,"gl2d");if(c(f)&&f.length>1&&!_&&g.type!=="category"){var k=f.length;if(!(k<=p))return w?f.slice(0,p):f.slice(0,p+1);if(w||x)b=f.slice(0,p);else if(p===1)b=[f[0]-.5,f[0]+.5];else{for(b=[1.5*f[0]-.5*f[1]],m=1;m0;)j=P.c2p(Y[G]),G--;for(j0;)U=z.c2p(Z[G]),G--;U=P._length||j<=0||E>=z._length||U<=0)return W.selectAll("image").data([]).exit().remove(),void M(W);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=m(te,{noNumericCheck:!0,returnArray:!0});Oe==="fast"?(xe=Te?function(gn){return pe-1-gn}:h.identity,ue=Se?function(gn){return se-1-gn}:h.identity):(xe=function(gn){return h.constrain(Math.round(P.c2p(Y[gn])-N),0,J)},ue=function(gn){return h.constrain(Math.round(z.c2p(Z[gn])-E),0,ne)});var we,ke,Pe,Ee,De=ue(0),Re=[De,De],Fe=Te?0:1,ze=Se?0:1,We=0,qe=0,Ye=0,at=0;function lt(gn,rn){if(gn!==void 0){var Kt=be(gn);return Kt[0]=Math.round(Kt[0]),Kt[1]=Math.round(Kt[1]),Kt[2]=Math.round(Kt[2]),We+=rn,qe+=Kt[0]*rn,Ye+=Kt[1]*rn,at+=Kt[2]*rn,Kt}return[0,0,0,0]}function ct(gn,rn,Kt,Cn){var _n=gn[Kt.bin0];if(_n===void 0)return lt(void 0,1);var An,wn=gn[Kt.bin1],Dn=rn[Kt.bin0],ar=rn[Kt.bin1],fa=wn-_n||0,va=Dn-_n||0;return An=wn===void 0?ar===void 0?0:Dn===void 0?2*(ar-_n):2*(2*ar-Dn-_n)/3:ar===void 0?Dn===void 0?0:2*(2*_n-wn-Dn)/3:Dn===void 0?2*(2*ar-wn-_n)/3:ar+_n-wn-Dn,lt(_n+Kt.frac*fa+Cn.frac*(va+Kt.frac*An))}if(Oe!=="default"){var bt,Be=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,Bt=re?C:S;for(G=0;Ggt||gt>z._length))for(L=Vt;Lyt||yt>P._length)){var qt=g({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("
"),Pt=Ot.length,Lt=0;for(q=0;q0&&(S=!0);for(var D=0;Dh){var p=h-f[c];return f[c]=h,p}}return 0},max:function(c,u,f,d){var h=d[u];if(l(h)){if(h=Number(h),!l(f[c]))return f[c]=h,h;if(f[c]p?w>f?w>1.1*c?c:w>1.1*u?u:f:w>d?d:w>h?h:p:Math.pow(10,Math.floor(Math.log(w)/Math.LN10))}function m(w,_,x,k,T,M){if(k&&w>f){var S=b(_,T,M),C=b(x,T,M),A=w===c?0:1;return S[A]!==C[A]}return Math.floor(x/w)-Math.floor(_/w)>.1}function b(w,_,x){var k=_.c2d(w,c,x).split("-");return k[0]===""&&(k.unshift(),k[0]="-"+k[0]),k}o.exports=function(w,_,x,k,T){var M,S,C=-1.1*_,A=-.1*_,D=w-A,O=x[0],R=x[1],F=Math.min(y(O+A,O+D,k,T),y(R+A,R+D,k,T)),P=Math.min(y(O+C,O+A,k,T),y(R+C,R+A,k,T));if(F>P&&Pf){var z=M===c?1:6,B=M===c?"M12":"M1";return function(N,j){var $=k.c2d(N,c,T),E=$.indexOf("-",z);E>0&&($=$.substr(0,E));var U=k.d2c($,0,T);if(Uw.r2l(Z)&&(re=f.tickIncrement(re,P.size,!0,S)),ee.start=w.l2r(re),Y||c.nestedProperty(b,O+".start").set(ee.start)}var ie=P.end,le=w.r2l(te.end),se=le!==void 0;if((P.endFound||se)&&le!==w.r2l(ie)){var pe=se?le:c.aggNums(Math.max,null,C);ee.end=w.l2r(pe),se||c.nestedProperty(b,O+".start").set(ee.end)}var Te="autobin"+_;return b._input[Te]===!1&&(b._input[O]=c.extendFlat({},b[O]||{}),delete b._input[Te],delete b[Te]),[ee,C]}o.exports={calc:function(m,b){var w,_,x,k,T=[],M=[],S=b.orientation==="h",C=f.getFromId(m,S?b.yaxis:b.xaxis),A=S?"y":"x",D={x:"y",y:"x"}[A],O=b[A+"calendar"],R=b.cumulative,F=v(m,b,C,A),P=F[0],z=F[1],B=typeof P.size=="string",N=[],j=B?N:P,$=[],E=[],U=[],G=0,L=b.histnorm,q=b.histfunc,W=L.indexOf("density")!==-1;R.enabled&&W&&(L=L.replace(/ ?density$/,""),W=!1);var V,te=q==="max"||q==="min"?null:0,ee=h.count,H=p[L],Q=!1,Y=function(ne){return C.r2c(ne,0,O)};for(c.isArrayOrTypedArray(b[D])&&q!=="count"&&(V=b[D],Q=q==="avg",ee=h[q]),w=Y(P.start),x=Y(P.end)+(w-f.tickIncrement(w,P.size,!1,O))/1e6;w=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(w=0;w=ce;w--)if(M[w]){ye=w;break}for(w=ce;w<=ye;w++)if(l(T[w])&&l(M[w])){var J={p:T[w],s:M[w],b:0};R.enabled||(J.pts=U[w],le?J.ph0=J.ph1=U[w].length?z[U[w][0]]:T[w]:(b._computePh=!0,J.ph0=re(N[w]),J.ph1=re(N[w+1],!0))),Me.push(J)}return Me.length===1&&(Me[0].width1=f.tickIncrement(Me[0].p,P.size,!1,O)-Me[0].p),d(Me,b),c.isArrayOrTypedArray(b.selectedpoints)&&c.tagSelected(Me,b,Te),Me},calcAllAutoBins:v}},72406:function(o){o.exports={eventDataKeys:["binNumber"]}},82222:function(o,a,r){var l=r(71828),c=r(41675),u=r(73972).traceIs,f=r(26125),d=l.nestedProperty,h=r(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"}],g=["x","y"];o.exports=function(y,v){var m,b,w,_,x,k,T,M=v._histogramBinOpts={},S=[],C={},A=[];function D(W,V){return l.coerce(m._input,m,m._module.attributes,W,V)}function O(W){return W.orientation==="v"?"x":"y"}function R(W,V,te){var ee=W.uid+"__"+te;V||(V=ee);var H=function(X,re){return c.getFromTrace({_fullLayout:v},X,re).type}(W,te),Q=W[te+"calendar"]||"",Y=M[V],Z=!0;Y&&(H===Y.axType&&Q===Y.calendar?(Z=!1,Y.traces.push(W),Y.dirs.push(te)):(V=ee,H!==Y.axType&&l.warn(["Attempted to group the bins of trace",W.index,"set on a","type:"+H,"axis","with bins on","type:"+Y.axType,"axis."].join(" ")),Q!==Y.calendar&&l.warn(["Attempted to group the bins of trace",W.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:[W],dirs:[te],axType:H,calendar:W[te+"calendar"]||""}),W["_"+te+"bingroup"]=V}for(x=0;xN&&F.splice(N,F.length-N),B.length>N&&B.splice(N,B.length-N);var j=[],$=[],E=[],U=typeof R.size=="string",G=typeof z.size=="string",L=[],q=[],W=U?L:R,V=G?q:z,te=0,ee=[],H=[],Q=b.histnorm,Y=b.histfunc,Z=Q.indexOf("density")!==-1,X=Y==="max"||Y==="min"?null:0,re=u.count,ie=f[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=u[Y]);var Se=R.size,Oe=A(R.start),Me=A(R.end)+(Oe-c.tickIncrement(Oe,Se,!1,S))/1e6;for(w=Oe;w=0&&x=0&&k0||l.inbox(h-p.y0,h-(p.y0+p.h*g.dy),0)>0)){var m,b=Math.floor((d-p.x0)/g.dx),w=Math.floor(Math.abs(h-p.y0)/g.dy);if(g._hasZ?m=p.z[w][b]:g._hasSource&&(m=g._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(b,w,1,1).data),m){var _,x=p.hi||g.hoverinfo;if(x){var k=x.split("+");k.indexOf("all")!==-1&&(k=["color"]),k.indexOf("color")!==-1&&(_=!0)}var T,M=u.colormodel[g.colormodel],S=M.colormodel||g.colormodel,C=S.length,A=g._scaler(m),D=M.suffix,O=[];(g.hovertemplate||_)&&(O.push("["+[A[0]+D[0],A[1]+D[1],A[2]+D[2]].join(", ")),C===4&&O.push(", "+A[3]+D[3]),O.push("]"),O=O.join(""),f.extraText=S.toUpperCase()+": "+O),Array.isArray(g.hovertext)&&Array.isArray(g.hovertext[w])?T=g.hovertext[w][b]:Array.isArray(g.text)&&Array.isArray(g.text[w])&&(T=g.text[w][b]);var R=v.c2p(p.y0+(w+.5)*g.dy),F=p.x0+(b+.5)*g.dx,P=p.y0+(w+.5)*g.dy,z="["+m.slice(0,g.colormodel.length).join(", ")+"]";return[c.extendFlat(f,{index:[w,b],x0:y.c2p(p.x0+b*g.dx),x1:y.c2p(p.x0+(b+1)*g.dx),y0:R,y1:R,color:A,xVal:F,xLabelVal:F,yVal:P,yLabelVal:P,zLabelVal:z,text:T,hovertemplateLabels:{zLabel:z,colorLabel:O,"color[0]Label":A[0]+D[0],"color[1]Label":A[1]+D[1],"color[2]Label":A[2]+D[2],"color[3]Label":A[3]+D[3]}})]}}}},94507:function(o,a,r){o.exports={attributes:r(17230),supplyDefaults:r(13245),calc:r(71113),plot:r(60775),style:r(12826),hoverPoints:r(28749),eventData:r(30835),moduleType:"trace",name:"image",basePlotModule:r(93612),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},60775:function(o,a,r){var l=r(39898),c=r(71828),u=c.strTranslate,f=r(77922),d=r(51877),h=r(3883),p=r(32396).STYLE;o.exports=function(g,y,v,m){var b=y.xaxis,w=y.yaxis,_=!g._context._exportedPlot&&h();c.makeTraceGroups(m,v,"im").each(function(x){var k=l.select(this),T=x[0],M=T.trace,S=(M.zsmooth==="fast"||M.zsmooth===!1&&_)&&!M._hasZ&&M._hasSource&&b.type==="linear"&&w.type==="linear";M._realImage=S;var C,A,D,O,R,F,P=T.z,z=T.x0,B=T.y0,N=T.w,j=T.h,$=M.dx,E=M.dy;for(F=0;C===void 0&&F0;)A=b.c2p(z+F*$),F--;for(F=0;O===void 0&&F0;)R=w.c2p(B+F*E),F--;AV[0];if(te||ee){var H=C+U/2,Q=O+G/2;q+="transform:"+u(H+"px",Q+"px")+"scale("+(te?-1:1)+","+(ee?-1:1)+")"+u(-H+"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===N&&M._canvas.el.height===j&&M._canvas.source===M.source)X();else{var re=document.createElement("canvas");re.width=N,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 P[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,N,j).data;re=Z(function(le,se){var pe=4*(se*N+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:U,x:C,y:O})});g._promises.push(Y)}function Z(X){var re=document.createElement("canvas");re.width=U,re.height=G;var ie,le=re.getContext("2d",{willReadFrequently:!0}),se=function(de){return c.constrain(Math.round(b.c2p(z+de*$)-C),0,U)},pe=function(de){return c.constrain(Math.round(w.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}),(g.type==="funnelarea"?D:g.sort)&&m.sort(function(z,B){return B.v-z.v}),m[0]&&(m[0].vTotal=A),m},crossTraceCalc:function(p,g){var y=(g||{}).type;y||(y="pie");var v=p._fullLayout,m=p.calcdata,b=v[y+"colorway"],w=v["_"+y+"colormap"];v["extend"+y+"colors"]&&(b=h(b,f));for(var _=0,x=0;x0){_=!0;break}}_||(w=0)}return{hasLabels:m,hasValues:b,len:w}}function g(y,v,m,b,w){b("marker.line.width")&&b("marker.line.color",w?void 0:m.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=m.paper_bgcolor)}o.exports={handleLabelsAndValues:p,handleMarkerDefaults:g,supplyDefaults:function(y,v,m,b){function w(D,O){return c.coerce(y,v,u,D,O)}var _=p(w("labels"),w("values")),x=_.len;if(v._hasLabels=_.hasLabels,v._hasValues=_.hasValues,!v._hasLabels&&v._hasValues&&(w("label0"),w("dlabel")),x){v._length=x,g(y,v,b,w,!0),w("scalegroup");var k,T=w("text"),M=w("texttemplate");if(M||(k=w("textinfo",Array.isArray(T)?"text+percent":"percent")),w("hovertext"),w("hovertemplate"),M||k&&k!=="none"){var S=w("textposition");d(y,v,b,w,S,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(S)||S==="auto"||S==="outside")&&w("automargin"),(S==="inside"||S==="auto"||Array.isArray(S))&&w("insidetextorientation")}f(v,b,w);var C=w("hole");if(w("title.text")){var A=w("title.position",C?"middle center":"top center");C||A!=="middle center"||(v.title.position="top center"),c.coerceFont(w,"title.font",b.font)}w("sort"),w("direction"),w("rotation"),w("pull")}else v.visible=!1}}},20007:function(o,a,r){var l=r(23469).appendArrayMultiPointValues;o.exports=function(c,u){var f={curveNumber:u.index,pointNumbers:c.pts,data:u._input,fullData:u,label:c.label,color:c.color,value:c.v,percent:c.percent,text:c.text,bbox:c.bbox,v:c.v};return c.pts.length===1&&(f.pointNumber=f.i=c.pts[0]),l(f,u,c.pts),u.type==="funnelarea"&&(delete f.v,delete f.i),f}},22209:function(o,a,r){var l=r(91424),c=r(7901);o.exports=function(u,f,d,h){var p=d.marker.pattern;p&&p.shape?l.pointStyle(u,d,h,f):c.fill(u,f.color)}},53581:function(o,a,r){var l=r(71828);function c(u){return u.indexOf("e")!==-1?u.replace(/[.]?0+e/,"e"):u.indexOf(".")!==-1?u.replace(/[.]?0+$/,""):u}a.formatPiePercent=function(u,f){var d=c((100*u).toPrecision(3));return l.numSeparate(d,f)+"%"},a.formatPieValue=function(u,f){var d=c(u.toPrecision(10));return l.numSeparate(d,f)},a.getFirstFilled=function(u,f){if(Array.isArray(u))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:[x(Y,X)]},{container:Z._hoverlayer.node(),outerContainer:Z._paper.node(),gd:q,inOut_bbox:ce}),Y.bbox=ce[0],H._hasHoverLabel=!0}H._hasHoverEvent=!0,q.emit("plotly_hover",{points:[x(Y,X)],event:l.event})}}),L.on("mouseout",function(Y){var Z=q._fullLayout,X=q._fullData[H.index],re=l.select(this).datum();H._hasHoverEvent&&(Y.originalEvent=l.event,q.emit("plotly_unhover",{points:[x(re,X)],event:l.event}),H._hasHoverEvent=!1),H._hasHoverLabel&&(u.loneUnhover(Z._hoverlayer.node()),H._hasHoverLabel=!1)}),L.on("click",function(Y){var Z=q._fullLayout,X=q._fullData[H.index];q._dragging||Z.hovermode===!1||(q._hoverdata=[x(Y,X)],u.click(q,l.event))})}function M(L,q,W){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)||W.family,ee=_.castOption(L.insidetextfont.size,q.pts)||_.castOption(L.textfont.size,q.pts)||W.size;return{color:V||f.contrast(q.color),family:te,size:ee}}function S(L,q){for(var W,V,te=0;tewe&&we>Pe||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=A(L,V,H,Y,Z)).textPosAngle=(q.startangle+q.stopangle)/2,pe.push(ee)),(se||ie)&&((ee=D(L,V,H,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 A(L,q,W,V,te){q=Math.max(0,q-2*w);var ee=L.width/L.height,H=F(ee,V,q,W);return{scale:2*H/L.height,rCenter:O(ee,H/q),rotate:R(te)}}function D(L,q,W,V,te){q=Math.max(0,q-2*w);var ee=L.height/L.width,H=F(ee,V,q,W);return{scale:2*H/L.width,rCenter:O(ee,H/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,W,V){var te=L+1/(2*Math.tan(q));return W*Math.min(1/(Math.sqrt(te*te+.5)+te),V/(Math.sqrt(L*L+V/2)+L))}function P(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 W=q.pxmid[0],V=q.pxmid[1],te=L.width/2,ee=L.height/2;return W<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+W*W/(V*V)),outside:!0}}function B(L,q){var W,V,te,ee=L.trace,H={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?(H.y-=(1+te)*L.r,Q.ty-=L.titleBox.height):ee.title.position.indexOf("bottom")!==-1&&(H.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,H.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,H.x+=(1+te)*Z,Q.tx-=L.titleBox.width/2),W=X/L.titleBox.width,V=N(L,q)/L.titleBox.height,{x:H.x,y:H.y,scale:Math.min(W,V),tx:Q.tx,ty:Q.ty}}function N(L,q){var W=L.trace,V=q.h*(W.domain.y[1]-W.domain.y[0]);return Math.min(L.titleBox.height,V/2)}function j(L){var q,W=L.pull;if(!W)return 0;if(Array.isArray(W))for(W=0,q=0;qW&&(W=L.pull[q]);return W}function $(L,q){for(var W=[],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/W.vTotal,percentLabel:_.formatPiePercent(Me.v/W.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 W=L.rotate*Math.PI/180,V=Math.cos(W),te=Math.sin(W),ee=(q.left+q.right)/2,H=(q.top+q.bottom)/2;L.textX=ee*V-H*te,L.textY=ee*te+H*V,L.noCenter=!0}o.exports={plot:function(L,q){var W=L._context.staticPlot,V=L._fullLayout,te=V._size;b("pie",V),S(q,L),$(q,te);var ee=h.makeTraceGroups(V._pielayer,q,"trace").each(function(H){var Q=l.select(this),Y=H[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=P(ie,se))})(H),Q.attr("stroke-linejoin","round"),Q.each(function(){var X=l.select(this).selectAll("g.slice").data(H);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":W?"none":"all"}),de.call(T,L,H),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")}U(L,ce,Y);var Pe=_.castOption(Z.textposition,ce.pts),Ee=de.selectAll("g.slicetext").data(ce.text&&Pe!=="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)}),Fe=h.ensureUniformFontSize(L,Pe==="outside"?function(ct,bt,Be){return{color:_.castOption(ct.outsidetextfont.color,bt.pts)||_.castOption(ct.textfont.color,bt.pts)||Be.color,family:_.castOption(ct.outsidetextfont.family,bt.pts)||_.castOption(ct.textfont.family,bt.pts)||Be.family,size:_.castOption(ct.outsidetextfont.size,bt.pts)||_.castOption(ct.textfont.size,bt.pts)||Be.size}}(Z,ce,V.font):M(Z,ce,V.font));Re.text(ce.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(d.font,Fe).call(y.convertToTspans,L);var ze,We=d.bBox(Re.node());if(Pe==="outside")ze=z(We,ce);else if(ze=C(We,ce,Y),Pe==="auto"&&ze.scale<1){var qe=h.ensureUniformFontSize(L,Z.outsidetextfont);Re.call(d.font,qe),ze=z(We=d.bBox(Re.node()),ce)}var Ye=ze.textPosAngle,at=Ye===void 0?ce.pxmid:E(Y.r,Ye);if(ze.targetX=J+at[0]*ze.rCenter+(ze.x||0),ze.targetY=ne+at[1]*ze.rCenter+(ze.y||0),G(ze,We),ze.outside){var lt=ze.targetY;ce.yLabelMin=lt-We.height/2,ce.yLabelMid=lt,ce.yLabelMax=lt+We.height/2,ce.labelExtraX=0,ce.labelExtraY=0,ie=!0}ze.fontSize=Fe.size,m(Z.type,ze,V),H[ye].transform=ze,h.setTransormAndDisplay(Re,ze)})}function De(Re,Fe,ze,We){var qe=We*(Fe[0]-Re[0]),Ye=We*(Fe[1]-Re[1]);return"a"+We*Y.r+","+We*Y.r+" 0 "+ce.largeArc+(ze?" 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",g(ce.x,ce.y)+p(Math.min(1,ce.scale))+g(ce.tx,ce.ty))}),ie&&function(ce,ye){var J,ne,de,xe,ue,ge,be,we,ke,Pe,Ee,De,Re;function Fe(Ye,at){return Ye.pxmid[1]-at.pxmid[1]}function ze(Ye,at){return at.pxmid[1]-Ye.pxmid[1]}function We(Ye,at){at||(at={});var lt,ct,bt,Be,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-Pe.indexOf(Ye)),(Be=bt.cxFinal+xe(bt.px0[0],bt.px1[0])+lt-(Ye.cxFinal+Ye.pxmid[0])-Ye.labelExtraX)*ge>0&&(Ye.labelExtraX+=Be)))}for(ne=0;ne<2;ne++)for(de=ne?Fe:ze,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],Pe=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(f.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;c.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 H=l.select(this);H.attr("dy")&&H.attr("dy",H.attr("dy"))})},0)},formatSliceLabel:U,transformInsideText:C,determineInsideTextFont:M,positionTitleOutside:B,prerenderTitles:S,layoutAreas:$,attachFxHandlers:T,computeTransform:G}},68357:function(o,a,r){var l=r(39898),c=r(63463),u=r(72597).resizeText;o.exports=function(f){var d=f._fullLayout._pielayer.selectAll(".trace");u(f,d,"pie"),d.each(function(h){var p=h[0].trace,g=l.select(this);g.style({opacity:p.opacity}),g.selectAll("path.surface").each(function(y){l.select(this).call(c,y,p,f)})})}},63463:function(o,a,r){var l=r(7901),c=r(53581).castOption,u=r(22209);o.exports=function(f,d,h,p){var g=h.marker.line,y=c(g.color,d.pts)||l.defaultLine,v=c(g.width,d.pts)||0;f.call(u,d,h,p).style("stroke-width",v).call(l.stroke,y)}},75225:function(o,a,r){var l=r(71828);o.exports=function(c,u){for(var f=0;fM&&U[C].gap;)C--;for(D=U[C].s,S=U.length-1;S>C;S--)U[S].s=D;for(;MB[b]&&b=0;b--){var w=f[b];if(w.type==="scatter"&&w.xaxis===v.xaxis&&w.yaxis===v.yaxis){w.opacity=void 0;break}}}}}},17438:function(o,a,r){var l=r(71828),c=r(73972),u=r(82196),f=r(47581),d=r(34098),h=r(67513),p=r(73927),g=r(565),y=r(49508),v=r(11058),m=r(94039),b=r(82410),w=r(28908),_=r(71828).coercePattern;o.exports=function(x,k,T,M){function S(z,B){return l.coerce(x,k,u,z,B)}var C=h(x,k,M,S);if(C||(k.visible=!1),k.visible){p(x,k,M,S),S("xhoverformat"),S("yhoverformat");var A=g(x,k,M,S);M.scattermode==="group"&&k.orientation===void 0&&S("orientation","v");var D=!A&&C=Math.min(Te,Se)&&x<=Math.max(Te,Se)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Me=1-1/Oe,ce=Math.abs(w.c2p(pe.x)-x);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[U][1])>=le&&(W=L[U-1][0],V=L[U][0],ee-te&&(q=W+(V-W)*(le-te)/(ee-te),Z=Math.min(Z,q),X=Math.max(X,q)));Z=Math.max(Z,0),X=Math.min(X,w._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,r){var l=r(34098);o.exports={hasLines:l.hasLines,hasMarkers:l.hasMarkers,hasText:l.hasText,isBubble:l.isBubble,attributes:r(82196),layoutAttributes:r(21479),supplyDefaults:r(17438),crossTraceDefaults:r(34936),supplyLayoutDefaults:r(79334),calc:r(47761).calc,crossTraceCalc:r(72626),arraysToCalcdata:r(75225),plot:r(32663),colorbar:r(4898),formatLabels:r(8225),style:r(16296).style,styleOnSelect:r(16296).styleOnSelect,hoverPoints:r(33720),selectPoints:r(98002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:r(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,r){var l=r(71828),c=r(21479);o.exports=function(u,f){var d,h=f.barmode==="group";f.scattermode==="group"&&(d=h?f.bargap:.2,l.coerce(u,f,c,"scattergap",d))}},11058:function(o,a,r){var l=r(71828).isArrayOrTypedArray,c=r(52075).hasColorscale,u=r(1586);o.exports=function(f,d,h,p,g,y){y||(y={});var v=(f.marker||{}).color;g("line.color",h),c(f,"line")?u(f,d,p,g,{prefix:"line.",cLetter:"c"}):g("line.color",!l(v)&&v||h),g("line.width"),y.noDash||g("line.dash"),y.backoff&&g("line.backoff")}},34621:function(o,a,r){var l=r(91424),c=r(50606),u=c.BADNUM,f=c.LOG_CLIP,d=f+.5,h=f-.5,p=r(71828),g=p.segmentsIntersect,y=p.constrain,v=r(47581);o.exports=function(m,b){var w,_,x,k,T,M,S,C,A,D,O,R,F,P,z,B,N,j,$=b.trace||{},E=b.xaxis,U=b.yaxis,G=E.type==="log",L=U.type==="log",q=E._length,W=U._length,V=b.backoff,te=$.marker,ee=b.connectGaps,H=b.baseTolerance,Q=b.shape,Y=Q==="linear",Z=$.fill&&$.fill!=="none",X=[],re=v.minTolerance,ie=m.length,le=new Array(ie),se=0;function pe(Je){var ut=m[Je];if(!ut)return!1;var pt=b.linearized?E.l2p(ut.x):E.c2p(ut.x),It=b.linearized?U.l2p(ut.y):U.c2p(ut.y);if(pt===u){if(G&&(pt=E.c2p(ut.x,!0)),pt===u)return!1;L&&It===u&&(pt*=Math.abs(E._m*W*(E._m>0?d:h)/(U._m*q*(U._m>0?d:h)))),pt*=1e3}if(It===u){if(L&&(It=U.c2p(ut.y,!0)),It===u)return!1;It*=1e3}return[pt,It]}function Te(Je,ut,pt,It){var Mt=pt-Je,Bt=It-ut,wt=.5-Je,ve=.5-ut,_e=Mt*Mt+Bt*Bt,Ve=Mt*wt+Bt*ve;if(Ve>0&&Ve<_e){var Ue=wt*Bt-ve*Mt;if(Ue*Ue<_e)return!0}}function Se(Je,ut){var pt=Je[0]/q,It=Je[1]/W,Mt=Math.max(0,-pt,pt-1,-It,It-1);return Mt&&N!==void 0&&Te(pt,It,N,j)&&(Mt=0),Mt&&ut&&Te(pt,It,ut[0]/q,ut[1]/W)&&(Mt=0),(1+v.toleranceGrowth*Mt)*H}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=-W*ue,ke=W*(1+ue),Pe=[[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 Bt=Ee(It),wt=Ee(Mt),ve=[];if(Bt&&wt&&De(Bt,wt))return ve;Bt&&ve.push(Bt),wt&&ve.push(wt);var _e=2*p.constrain((It[Je]+Mt[Je])/2,ut,pt)-((Bt||It)[Je]+(wt||Mt)[Je]);return _e&&((Bt&&wt?_e>0==Bt[Je]>wt[Je]?Bt:wt:Bt||wt)[Je]+=_e),ve}}function Fe(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 Bt=ut===le[se-2][0],wt=pt===le[se-2][1];It&&(ut===ge||ut===be)&&Bt?wt?se--:le[se-1]=Je:Mt&&(pt===we||pt===ke)&&wt?Bt?se--:le[se-1]=Je:le[se++]=Je}else le[se++]=Je}function ze(Je){le[se-1][0]!==Je[0]&&le[se-1][1]!==Je[1]&&Fe([ye,J]),Fe(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 Bt=Pe[Mt],wt=g(Je[0],Je[1],ut[0],ut[1],Bt[0],Bt[1],Bt[2],Bt[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&&(ze(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?Fe(ye&&J?(It=ne,Bt=(Mt=Je)[0]-It[0],wt=(Mt[1]-It[1])/Bt,(It[1]*Mt[0]-Mt[1]*It[0])/Bt>0?[wt>0?ge:be,ke]:[wt>0?be:ge,we]):[ye||Me,J||ce]):ye&&J&&Fe([ye,J])),Fe([Me,ce])):ye-Me&&J-ce&&Fe([Me||ye,ce||J]),ne=Je,ye=Me,J=ce}else ne&&ze(xe(ne,Je)[0]),le[se++]=Je;var It,Mt,Bt,wt}for(w=0;wSe(M,Ye))break;x=M,(F=A[0]*C[0]+A[1]*C[1])>O?(O=F,k=M,S=!1):F=m.length||!M)break;qe(M),_=M}}else qe(k)}ne&&Fe([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=[],Be=0;Be=0?p=b:(p=b=m,m++),p0?Math.max(y,h):0}}},4898:function(o){o.exports={container:"marker",min:"cmin",max:"cmax"}},49508:function(o,a,r){var l=r(7901),c=r(52075).hasColorscale,u=r(1586),f=r(34098);o.exports=function(d,h,p,g,y,v){var m=f.isBubble(d),b=(d.line||{}).color;v=v||{},b&&(p=b),y("marker.symbol"),y("marker.opacity",m?.7:1),y("marker.size"),v.noAngle||(y("marker.angle"),v.noAngleRef||y("marker.angleref"),v.noStandOff||y("marker.standoff")),y("marker.color",p),c(d,"marker")&&u(d,h,g,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:m?l.background:l.defaultLine),c(d,"marker.line")&&u(d,h,g,y,{prefix:"marker.line.",cLetter:"c"}),y("marker.line.width",m?1:0)),m&&(y("marker.sizeref"),y("marker.sizemin"),y("marker.sizemode")),v.gradient&&y("marker.gradient.type")!=="none"&&y("marker.gradient.color")}},73927:function(o,a,r){var l=r(71828).dateTick0,c=r(50606).ONEWEEK;function u(f,d){return l(d,f%c==0?1:0)}o.exports=function(f,d,h,p,g){if(g||(g={x:!0,y:!0}),g.x){var y=p("xperiod");y&&(p("xperiod0",u(y,d.xcalendar)),p("xperiodalignment"))}if(g.y){var v=p("yperiod");v&&(p("yperiod0",u(v,d.ycalendar)),p("yperiodalignment"))}}},32663:function(o,a,r){var l=r(39898),c=r(73972),u=r(71828),f=u.ensureSingle,d=u.identity,h=r(91424),p=r(34098),g=r(34621),y=r(68687),v=r(61082).tester;function m(b,w,_,x,k,T,M){var S,C=b._context.staticPlot;(function(xe,ue,ge,be,we){var ke=ge.xaxis,Pe=ge.yaxis,Ee=l.extent(u.simpleMap(ke.range,ke.r2c)),De=l.extent(u.simpleMap(Pe.range,Pe.r2c)),Re=be[0].trace;if(p.hasMarkers(Re)){var Fe=Re.marker.maxdisplayed;if(Fe!==0){var ze=be.filter(function(at){return at.x>=Ee[0]&&at.x<=Ee[1]&&at.y>=De[0]&&at.y<=De[1]}),We=Math.ceil(ze.length/Fe),qe=0;we.forEach(function(at,lt){var ct=at[0].trace;p.hasMarkers(ct)&&ct.marker.maxdisplayed>0&<0;function D(xe){return A?xe.transition():xe}var O=_.xaxis,R=_.yaxis,F=x[0].trace,P=F.line,z=l.select(T),B=f(z,"g","errorbars"),N=f(z,"g","lines"),j=f(z,"g","points"),$=f(z,"g","text");if(c.getComponentMethod("errorbars","plot")(b,B,_,M),F.visible===!0){var E,U;D(z).style("opacity",F.opacity);var G=F.fill.charAt(F.fill.length-1);G!=="x"&&G!=="y"&&(G=""),x[0][_.isRangePlot?"nodeRangePlot3":"node3"]=z;var L,q,W="",V=[],te=F._prevtrace;te&&(W=te._prevRevpath||"",U=te._nextFill,V=te._polygons);var ee,H,Q,Y,Z,X,re,ie="",le="",se=[],pe=u.noop;if(E=F._ownFill,p.hasLines(F)||F.fill!=="none"){for(U&&U.datum(x),["hv","vh","hvh","vhv"].indexOf(P.shape)!==-1?(ee=h.steps(P.shape),H=h.steps(P.shape.split("").reverse().join(""))):ee=H=P.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),P.smoothing):h.smoothopen(xe,P.smoothing)}:function(xe){return"M"+xe.join("L")},Q=function(xe){return H(xe.reverse())},se=g(x,{xaxis:O,yaxis:R,trace:F,connectGaps:F.connectgaps,baseTolerance:Math.max(P.width||1,3)/4,shape:P.shape,backoff:P.backoff,simplify:P.simplify,fill:F.fill}),re=F._polygons=new Array(se.length),S=0;S0,D=y(b,w,_);(M=x.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(P){var z=f(l.select(this),"g","fills");h.setClipUrl(z,F.layerClipId,O);var B=P[0].trace,N=[];B._ownfill&&N.push("_ownFill"),B._nexttrace&&N.push("_nextFill");var j=z.selectAll("g").data(N,d);j.enter().append("g"),j.exit().each(function($){B[$]=null}).remove(),j.order().each(function($){B[$]=f(l.select(this),"path","js-fill")})})}(b,M,w),A?(T&&(S=T()),l.transition().duration(k.duration).ease(k.easing).each("end",function(){S&&S()}).each("interrupt",function(){S&&S()}).each(function(){x.selectAll("g.trace").each(function(O,R){m(b,R,w,O,D,this,k)})})):M.each(function(O,R){m(b,R,w,O,D,this,k)}),C&&M.exit().remove(),x.selectAll("path:not([d])").remove()}},98002:function(o,a,r){var l=r(34098);o.exports=function(c,u){var f,d,h,p,g=c.cd,y=c.xaxis,v=c.yaxis,m=[],b=g[0].trace;if(!l.hasMarkers(b)&&!l.hasText(b))return[];if(u===!1)for(f=0;f"),p.hovertemplate=w.hovertemplate,h}function C(A,D){M.push(A._hovertitle+": "+D)}}},52979:function(o,a,r){o.exports={attributes:r(50413),supplyDefaults:r(46008),colorbar:r(4898),formatLabels:r(93645),calc:r(54337),plot:r(7507),style:r(16296).style,styleOnSelect:r(16296).styleOnSelect,hoverPoints:r(47250),selectPoints:r(98002),eventData:r(4524),moduleType:"trace",name:"scatterternary",basePlotModule:r(61639),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},7507:function(o,a,r){var l=r(32663);o.exports=function(c,u,f){var d=u.plotContainer;d.select(".scatterlayer").selectAll("*").remove();for(var h=u.xaxis,p=u.yaxis,g={xaxis:h,yaxis:p,plot:d,layerClipId:u._hasClipOnAxisFalse?u.clipIdRelative:null},y=u.layers.frontplot.select("g.scatterlayer"),v=0;v0){var A,D,O,R,F,P=h.xa,z=h.ya;x.orientation==="h"?(F=p,A="y",O=z,D="x",R=P):(F=g,A="x",O=P,D="y",R=z);var B=_[h.index];if(F>=B.span[0]&&F<=B.span[1]){var N=c.extendFlat({},h),j=R.c2p(F,!0),$=d.getKdeValue(B,x,F),E=d.getPositionOnKdePath(B,x,j),U=O._offset,G=O._length;N[A+"0"]=E[0],N[A+"1"]=E[1],N[D+"0"]=N[D+"1"]=j,N[D+"Label"]=D+": "+u.hoverLabelText(R,F,x[D+"hoverformat"])+", "+_[0].t.labels.kde+" "+$.toFixed(3);for(var L=0,q=0;qj&&(j=G,$=U)}}return j?P($):d};case"rms":return function(z,B){for(var N=0,j=0,$=0;$":return function(V){return W(V)>L};case">=":return function(V){return W(V)>=L};case"[]":return function(V){var te=W(V);return te>=L[0]&&te<=L[1]};case"()":return function(V){var te=W(V);return te>L[0]&&te=L[0]&&teL[0]&&te<=L[1]};case"][":return function(V){var te=W(V);return te<=L[0]||te>=L[1]};case")(":return function(V){var te=W(V);return teL[1]};case"](":return function(V){var te=W(V);return te<=L[0]||te>L[1]};case")[":return function(V){var te=W(V);return te=L[1]};case"{}":return function(V){return L.indexOf(W(V))!==-1};case"}{":return function(V){return L.indexOf(W(V))===-1}}}(m,u.getDataToCoordFunc(y,v,w,b),x),D={},O={},R=0;T?(S=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set(new Array(_))},C=function(B,N){var j=D[B.astr][N];B.get()[N]=j}):(S=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set([])},C=function(B,N){var j=D[B.astr][N];B.get().push(j)}),z(S);for(var F=f(v.transforms,m),P=0;P<_;P++)A(b[P])?(z(C,P),O[R++]=F(P)):T&&R++;m._indexToPoints=O,v._length=R}}function z(B,N){for(var j=0;j1?"%{group} (%{trace})":"%{group}");var b=h.styles,w=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,m.prototype),ne}function m(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"),!m.isEncoding(be))throw new TypeError("Unknown encoding: "+be);var we=0|M(ge,be),ke=v(we),Pe=ke.write(ge,be);return Pe!==we&&(ke=ke.slice(0,Pe)),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 x(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 m.from(xe,ne,de);var ue=function(ge){if(m.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):x(ge):ge.type==="Buffer"&&Array.isArray(ge.data)?x(ge.data):void 0}(J);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof J[Symbol.toPrimitive]=="function")return m.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 w(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 w(J),v(J<0?0:0|T(J))}function x(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(m.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 U(this,ne,de);case"utf8":case"utf-8":return N(this,ne,de);case"ascii":return $(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 A(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=m.from(ne,xe)),m.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 Pe(Fe,ze){return be===1?Fe[ze]:Fe.readUInt16BE(ze*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,Pe.push(ke),Pe.push(we);return Pe}(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 N(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,Pe=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],Pe=J[ue+2],(192&ke)==128&&(192&Pe)==128&&(De=(15&ge)<<12|(63&ke)<<6|63&Pe)>2047&&(De<55296||De>57343)&&(be=De);break;case 4:ke=J[ue+1],Pe=J[ue+2],Ee=J[ue+3],(192&ke)==128&&(192&Pe)==128&&(192&Ee)==128&&(De=(15&ge)<<18|(63&ke)<<12|(63&Pe)<<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 Fe=Re.length;if(Fe<=j)return String.fromCharCode.apply(String,Re);for(var ze="",We=0;We"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(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}}),m.poolSize=8192,m.from=function(J,ne,de){return b(J,ne,de)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array),m.alloc=function(J,ne,de){return function(xe,ue,ge){return w(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)},m.allocUnsafe=function(J){return _(J)},m.allocUnsafeSlow=function(J){return _(J)},m.isBuffer=function(J){return J!=null&&J._isBuffer===!0&&J!==m.prototype},m.compare=function(J,ne){if(Se(J,Uint8Array)&&(J=m.from(J,J.offset,J.byteLength)),Se(ne,Uint8Array)&&(ne=m.from(ne,ne.offset,ne.byteLength)),!m.isBuffer(J)||!m.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?(m.isBuffer(ge)||(ge=m.from(ge)),ge.copy(xe,ue)):Uint8Array.prototype.set.call(xe,ge,ue);else{if(!m.isBuffer(ge))throw new TypeError('"list" argument must be an Array of Buffers');ge.copy(xe,ue)}ue+=ge.length}return xe},m.byteLength=M,m.prototype._isBuffer=!0,m.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+=" ... "),""},g&&(m.prototype[g]=m.prototype.inspect),m.prototype.compare=function(J,ne,de,xe,ue){if(Se(J,Uint8Array)&&(J=m.from(J,J.offset,J.byteLength)),!m.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),Pe=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 P(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}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function $(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(!m.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 W(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 H(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}m.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},m.prototype.readUint8=m.prototype.readUInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),this[J]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]|this[J+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]<<8|this[J+1]},m.prototype.readUint32LE=m.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]},m.prototype.readUint32BE=m.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])},m.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},m.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},m.prototype.readInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),128&this[J]?-1*(255-this[J]+1):this[J]},m.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},m.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},m.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},m.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]},m.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)},m.prototype.readFloatBE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),p.read(this,J,!1,23,4)},m.prototype.readDoubleLE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!0,52,8)},m.prototype.readDoubleBE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!1,52,8)},m.prototype.writeUintLE=m.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},m.prototype.writeUint8=m.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},m.prototype.writeUint16LE=m.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},m.prototype.writeUint16BE=m.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},m.prototype.writeUint32LE=m.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},m.prototype.writeUint32BE=m.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},m.prototype.writeBigUInt64LE=ce(function(J){return W(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeBigUInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.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},m.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},m.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},m.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},m.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},m.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},m.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},m.prototype.writeBigInt64LE=ce(function(J){return W(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeBigInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeFloatLE=function(J,ne,de){return ee(this,J,ne,!0,de)},m.prototype.writeFloatBE=function(J,ne,de){return ee(this,J,ne,!1,de)},m.prototype.writeDoubleLE=function(J,ne,de){return H(this,J,ne,!0,de)},m.prototype.writeDoubleBE=function(J,ne,de){return H(this,J,ne,!1,de)},m.prototype.copy=function(J,ne,de,xe){if(!m.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=f(be);if(we){var Re=f(this).constructor;Ee=Reflect.construct(De,arguments,Re)}else Ee=De.apply(this,arguments);return function(Fe,ze){if(ze&&(d(ze)==="object"||typeof ze=="function"))return ze;if(ze!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u(Fe)}(this,Ee)});function Pe(){var Ee;return function(De,Re){if(!(De instanceof Re))throw new TypeError("Cannot call a class as a function")}(this,Pe),Ee=ke.call(this),Object.defineProperty(u(Ee),"message",{value:ne.apply(u(Ee),arguments),writable:!0,configurable:!0}),Ee.name="".concat(Ee.name," [").concat(J,"]"),Ee.stack,delete Ee.name,Ee}return ue=Pe,(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}),Pe}(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,Pe,Ee){re(Pe,"offset"),ke[Pe]!==void 0&&ke[Pe+Ee]!==void 0||ie(Pe,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=c,o.exports.isMobile=c,o.exports.default=c;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,r=/CrOS/,l=/android|ipad|playbook|silk/i;function c(u){u||(u={});var f=u.ua;if(f||typeof navigator>"u"||(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;var d=a.test(f)&&!r.test(f)||!!u.tablet&&l.test(f);return!d&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(d=!0),d}},39898:function(o,a,r){var l,c;(function(){var u={version:"3.8.0"},f=[].slice,d=function(I){return f.call(I)},h=self.document;function p(I){return I&&(I.ownerDocument||I.document||I).documentElement}function g(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,m=y.setAttributeNS,b=this.CSSStyleDeclaration.prototype,w=b.setProperty;y.setAttribute=function(K,ae){v.call(this,K,ae+"")},y.setAttributeNS=function(K,ae,fe){m.call(this,K,ae,fe+"")},b.setProperty=function(K,ae,fe){w.call(this,K,ae+"",fe)}}function _(I,K){return IK?1:I>=K?0:NaN}function x(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}}}u.ascending=_,u.descending=function(I,K){return KI?1:K>=I?0:NaN},u.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},u.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},u.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)},u.deviation=function(){var I=u.variance.apply(this,arguments);return I&&Math.sqrt(I)};var M=T(_);function S(I){return I.length}u.bisectLeft=M.left,u.bisect=u.bisectRight=M.right,u.bisector=function(I){return T(I.length===1?function(K,ae){return _(I(K),ae)}:I)},u.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},u.permute=function(I,K){for(var ae=K.length,fe=new Array(ae);ae--;)fe[ae]=I[K[ae]];return fe},u.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 A(I,K){for(var ae in K)Object.defineProperty(I.prototype,ae,{value:K[ae],enumerable:!1})}function D(){this._=Object.create(null)}u.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(Ae){for(var Le=1;Ae*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[$e++],ot=new D;++Ct=fe.length)return Ae;var $e=[],He=he[Le++];return Ae.forEach(function(Xe,rt){$e.push({key:Xe,values:Ce(rt,Le)})}),He?$e.sort(function(Xe,rt){return He(Xe.key,rt.key)}):$e}return ae.map=function(Ae,Le){return me(Le,Ae,0)},ae.entries=function(Ae){return Ce(me(u.map,Ae,0),0)},ae.key=function(Ae){return fe.push(Ae),ae},ae.sortKeys=function(Ae){return he[fe.length-1]=Ae,ae},ae.sortValues=function(Ae){return I=Ae,ae},ae.rollup=function(Ae){return K=Ae,ae},ae},u.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}},u.event=null,u.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),u.selection=function(){return u.select(h.documentElement)};var se=u.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,Ae=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=u.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=Pe.apply(this,arguments);for(var K=-1,ae=this.length;++K0&&(I=I.slice(0,he));var Ce=ze.get(I);function Ae(){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));Ae.call(this),this.addEventListener(I,this[fe]=Le,Le.$=ae),Le._=K}:Ae:K?W:function(){var Le,$e=new RegExp("^__on([^.]+)"+u.requote(I)+"$");for(var He in this)if(Le=He.match($e)){var Xe=this[He];this.removeEventListener(Le[1],Xe,Xe.$),delete this[He]}}}u.selection.enter=De,u.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=[],Ae=-1,Le=this.length;++Ae=fe&&(fe=Ce+1);!(Le=$e[fe])&&++fe1?ut:I<-1?-ut:Math.asin(I)}function Bt(I){return((I=Math.exp(I))+1/I)/2}var wt=Math.SQRT2;u.interpolateZoom=function(I,K){var ae,fe,he=I[0],me=I[1],Ce=I[2],Ae=K[0],Le=K[1],$e=K[2],He=Ae-he,Xe=Le-me,rt=He*He+Xe*Xe;if(rt0&&(tn=tn.transition().duration(rt)),tn.call(_t.event)}function Jt(){Ce&&Ce.domain(me.range().map(function(tn){return(tn-$e.x)/$e.k}).map(me.invert)),Le&&Le.domain(Ae.range().map(function(tn){return(tn-$e.y)/$e.k}).map(Ae.invert))}function mn(tn){vt++||tn({type:"zoomstart"})}function yn(tn){Jt(),tn({type:"zoom",scale:$e.k,translate:[$e.x,$e.y]})}function kn(tn){--vt||(tn({type:"zoomend"}),K=null)}function bn(){var tn=this,dn=At.of(tn,arguments),En=0,In=u.select(g(tn)).on(dt,function(){En=1,Ht(u.mouse(tn),Vn),yn(dn)}).on(xt,function(){In.on(dt,null).on(xt,null),mr(En),kn(dn)}),Vn=ft(u.mouse(tn)),mr=lt(tn);lf.call(tn),mn(dn)}function $n(){var tn,dn=this,En=At.of(dn,arguments),In={},Vn=0,mr=".zoom-"+u.event.changedTouches[0].identifier,Nr="touchmove"+mr,Dr="touchend"+mr,Kr=[],zr=u.select(dn),Jr=lt(dn);function ya(){var ea=u.touches(dn);return tn=$e.k,ea.forEach(function(Br){Br.identifier in In&&(In[Br.identifier]=ft(Br))}),ea}function si(){var ea=u.event.target;u.select(ea).on(Nr,yi).on(Dr,bi),Kr.push(ea);for(var Br=u.event.changedTouches,Ma=0,Sa=Br.length;Ma1){Ei=Da[0];var Qi=Da[1],cf=Ei[0]-Qi[0],Uw=Ei[1]-Qi[1];Vn=cf*cf+Uw*Uw}}function yi(){var ea,Br,Ma,Sa,Da=u.touches(dn);lf.call(dn);for(var Xa=0,Ei=Da.length;Xa360?Ae-=360:Ae<0&&(Ae+=360),Ae<60?fe+(he-fe)*Ae/60:Ae<180?he:Ae<240?fe+(he-fe)*(240-Ae)/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=Nt((I=u.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)},u.hcl=nt;var st=nt.prototype=new Ue;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):Nt((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()},u.lab=tt;var Ft=18,Vt=.95047,St=1,$t=1.08883,Dt=tt.prototype=new Ue;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)*$t)),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)},u.rgb=Et;var Ot=Et.prototype=new Ue;function Pt(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,Ae=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=zt.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,Ae=240&me,Ae|=Ae>>4,Le=15&me,Le|=Le<<4):I.length===7&&(Ce=(16711680&me)>>16,Ae=(65280&me)>>8,Le=255&me)),K(Ce,Ae,Le))}function Rt(I,K,ae){var fe,he,me=Math.min(I/=255,K/=255,ae/=255),Ce=Math.max(I,K,ae),Ae=Ce-me,Le=(Ce+me)/2;return Ae?(he=Le<.5?Ae/(Ce+me):Ae/(2-Ce-me),fe=I==Ce?(K-ae)/Ae+(K0&&Le<1?0:fe),new Ze(fe,he,Le)}function Nt(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)/$t)))}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,Ae)}catch(rt){return void me.error.call(he,rt)}me.load.call(he,He)}else me.error.call(he,Ae)}return self.XDomainRequest&&!("withCredentials"in Ae)&&/^(http(s)?:)?\/\//.test(I)&&(Ae=new XDomainRequest),"onload"in Ae?Ae.onload=Ae.onerror=$e:Ae.onreadystatechange=function(){Ae.readyState>3&&$e()},Ae.onprogress=function(He){var Xe=u.event;u.event=He;try{me.progress.call(he,Ae)}finally{u.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),Ae.open(He,I,!0),K==null||"accept"in Ce||(Ce.accept=K+",*/*"),Ae.setRequestHeader)for(var vt in Ce)Ae.setRequestHeader(vt,Ce[vt]);return K!=null&&Ae.overrideMimeType&&Ae.overrideMimeType(K),Le!=null&&(Ae.responseType=Le),rt!=null&&he.on("error",rt).on("load",function(Ct){rt(null,Ct)}),me.beforesend.call(he,Ae),Ae.send(Xe??null),he},he.abort=function(){return Ae.abort(),he},u.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))}zt.forEach(function(I,K){zt.set(I,jt(K))}),u.functor=Ut,u.xhr=nn(U),u.dsv=function(I,K){var ae=new RegExp('["'+I+` +]`),fe=I.charCodeAt(0);function he($e,He,Xe){arguments.length<3&&(Xe=He,He=null);var rt=fn($e,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($e){return he.parse($e.responseText)}function Ce($e){return function(He){return he.parse(He.responseText,$e)}}function Ae($e){return $e.map(Le).join(I)}function Le($e){return ae.test($e)?'"'+$e.replace(/\"/g,'""')+'"':$e}return he.parse=function($e,He){var Xe;return he.parseRows($e,function(rt,vt){if(Xe)return Xe(rt,vt-1);var Ct=function(dt){for(var xt={},ot=rt.length,At=0;At=xt)return Ct;if(rt)return rt=!1,vt;var Wt=ot;if($e.charCodeAt(Wt)===34){for(var Ht=Wt;Ht++24?(isFinite(K)&&(clearTimeout(Zt),Zt=setTimeout(Kt,K)),un=0):(un=1,gn(Kt))}function Cn(){for(var I=Date.now(),K=sn;K;)I>=K.t&&K.c(I-K.t)&&(K.c=null),K=K.n;return I}function _n(){for(var I,K=sn,ae=1/0;K;)K.c?(K.t1&&(K=I[me[Ce-2]],ae=I[me[Ce-1]],fe=I[Ae],(ae[0]-K[0])*(fe[1]-K[1])-(ae[1]-K[1])*(fe[0]-K[0])<=0);)--Ce;me[Ce++]=Ae}return me.slice(0,Ce)}function ar(I,K){return I[0]-K[0]||I[1]-K[1]}u.timer=function(){rn.apply(this,arguments)},u.timer.flush=function(){Cn(),_n()},u.round=function(I,K){return K?Math.round(I*(K=Math.pow(10,K)))/K:Math.round(I)},u.geom={},u.geom.hull=function(I){var K=An,ae=wn;if(arguments.length)return fe(I);function fe(he){if(he.length<3)return[];var me,Ce=Ut(K),Ae=Ut(ae),Le=he.length,$e=[],He=[];for(me=0;me=0;--me)dt.push(he[$e[Xe[me]][2]]);for(me=+vt;meNe)Ae=Ae.L;else{if(!((he=me-Sr(Ae,Ce))>Ne)){fe>-Ne?(K=Ae.P,ae=Ae):he>-Ne?(K=Ae,ae=Ae.N):K=ae=Ae;break}if(!Ae.R){K=Ae;break}Ae=Ae.R}var Le=Ln(I);if(Pr.insert(K,Le),K||ae){if(K===ae)return Tn(K),ae=Ln(K.site),Pr.insert(Le,ae),Le.edge=ae.edge=Wr(K.site,Le.site),ha(K),void ha(ae);if(ae){Tn(K),Tn(ae);var $e=K.site,He=$e.x,Xe=$e.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),At=rt*rt+vt*vt,_t=dt*dt+xt*xt,ft={x:(xt*At-vt*_t)/ot+He,y:(rt*_t-dt*At)/ot+Xe};Zi(ae.edge,$e,Ct,ft),Le.edge=Wr($e,I,null,ft),ae.edge=Wr(I,Ct,null,ft),ha(K),ha(ae)}else Le.edge=Wr(K.site,Le.site)}}function jr(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 Ae=(ae=Ce.site).x,Le=ae.y,$e=Le-K;if(!$e)return Ae;var He=Ae-fe,Xe=1/me-1/$e,rt=He/$e;return Xe?(-rt+Math.sqrt(rt*rt-2*Xe*(He*He/(-2*$e)-Le+$e/2+he-me/2)))/Xe+fe:(fe+Ae)/2}function Sr(I,K){var ae=I.N;if(ae)return jr(ae,K);var fe=I.site;return fe.y===K?fe.x:1/0}function Ar(I){this.site=I,this.edges=[]}function Ya(I,K){return K.angle-I.angle}function Aa(){mi(this),this.x=this.y=this.arc=this.site=this.cy=null}function ha(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,Ae=he.y,Le=fe.x-Ce,$e=fe.y-Ae,He=me.x-Ce,Xe=2*(Le*(xt=me.y-Ae)-$e*He);if(!(Xe>=-Qe)){var rt=Le*Le+$e*$e,vt=He*He+xt*xt,Ct=(xt*rt-$e*vt)/Xe,dt=(Le*vt-He*rt)/Xe,xt=dt+Ae,ot=Nn.pop()||new Aa;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 At=null,_t=On._;_t;)if(ot.y<_t.y||ot.y===_t.y&&ot.x<=_t.x){if(!_t.L){At=_t.P;break}_t=_t.L}else{if(!_t.R){At=_t;break}_t=_t.R}On.insert(At,ot),At||(da=ot)}}}}function Tn(I){var K=I.circle;K&&(K.P||(da=K.N),On.remove(K),Nn.push(K),mi(K),I.circle=null)}function Lr(I,K){var ae=I.b;if(ae)return!0;var fe,he,me=I.a,Ce=K[0][0],Ae=K[1][0],Le=K[0][1],$e=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=Ae)return;if(rt>Ct){if(me){if(me.y>=$e)return}else me={x:xt,y:Le};ae={x:xt,y:$e}}else{if(me){if(me.y1)if(rt>Ct){if(me){if(me.y>=$e)return}else me={x:(Le-he)/fe,y:Le};ae={x:($e-he)/fe,y:$e}}else{if(me){if(me.y=Ae)return}else me={x:Ce,y:fe*Ce+he};ae={x:Ae,y:fe*Ae+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/=mn,mn<0){if(ot0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}if(ot=rt-Wt,mn||!(ot<0)){if(ot/=mn,mn<0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}else if(mn>0){if(ot0&&(xt.a={x:ft+Ht*Jt,y:Wt+Ht*mn}),Qt<1&&(xt.b={x:ft+Qt*Jt,y:Wt+Qt*mn}),xt}}}}}),dt=vt.length;dt--;)(!Lr(Le=vt[dt],Ae)||!Ct(Le)||C(Le.a.x-Le.b.x)Ne||C(Xe-$e)>Ne)&&(Ct.splice(vt,0,new Ki((Jt=rt.site,mn=ot,yn=C(He-At)Ne?{x:At,y:C(Le-At)Ne?{x:C($e-Wt)Ne?{x:_t,y:C(Le-_t)Ne?{x:C($e-ft)=He&&ot.x<=rt&&ot.y>=Xe&&ot.y<=vt?[[He,vt],[rt,vt],[rt,Xe],[He,Xe]]:[]).point=Le[dt]}),$e}function Ae(Le){return Le.map(function($e,He){return{x:Math.round(fe($e,He)/Ne)*Ne,y:Math.round(he($e,He)/Ne)*Ne,i:He}})}return Ce.links=function(Le){return xl(Ae(Le)).edges.filter(function($e){return $e.l&&$e.r}).map(function($e){return{source:Le[$e.l.i],target:Le[$e.r.i]}})},Ce.triangles=function(Le){var $e=[];return xl(Ae(Le)).cells.forEach(function(He,Xe){for(var rt,vt,Ct,dt,xt=He.site,ot=He.edges.sort(Ya),At=-1,_t=ot.length,ft=ot[_t-1].edge,Wt=ft.l===xt?ft.r:ft.l;++At<_t;)rt=Wt,Wt=(ft=ot[At].edge).l===xt?ft.r:ft.l,Xeme&&(he=K.slice(me,he),Ae[Ce]?Ae[Ce]+=he:Ae[++Ce]=he),(ae=ae[0])===(fe=fe[0])?Ae[Ce]?Ae[Ce]+=fe:Ae[++Ce]=fe:(Ae[++Ce]=null,Le.push({i:Ce,x:Di(ae,fe)})),me=Cg.lastIndex;return meot&&(ot=He.x),He.y>At&&(At=He.y),Xe.push(He.x),rt.push(He.y);else for(vt=0;vtot&&(ot=Wt),Ht>At&&(At=Ht),Xe.push(Wt),rt.push(Ht)}var Qt=ot-dt,Jt=At-xt;function mn(bn,$n,Zn,yr,tn,dn,En,In){if(!isNaN(Zn)&&!isNaN(yr))if(bn.leaf){var Vn=bn.x,mr=bn.y;if(Vn!=null)if(C(Vn-Zn)+C(mr-yr)<.01)yn(bn,$n,Zn,yr,tn,dn,En,In);else{var Nr=bn.point;bn.x=bn.y=bn.point=null,yn(bn,Nr,Vn,mr,tn,dn,En,In),yn(bn,$n,Zn,yr,tn,dn,En,In)}else bn.x=Zn,bn.y=yr,bn.point=$n}else yn(bn,$n,Zn,yr,tn,dn,En,In)}function yn(bn,$n,Zn,yr,tn,dn,En,In){var Vn=.5*(tn+En),mr=.5*(dn+In),Nr=Zn>=Vn,Dr=yr>=mr,Kr=Dr<<1|Nr;bn.leaf=!1,Nr?tn=Vn:En=Vn,Dr?dn=mr:In=mr,mn(bn=bn.nodes[Kr]||(bn.nodes[Kr]={leaf:!0,nodes:[],point:null,x:null,y:null}),$n,Zn,yr,tn,dn,En,In)}Qt>Jt?At=xt+Qt:ot=dt+Jt;var kn={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(bn){mn(kn,bn,+_t(bn,++vt),+ft(bn,vt),dt,xt,ot,At)}};if(kn.visit=function(bn){Es(bn,kn,dt,xt,ot,At)},kn.find=function(bn){return function($n,Zn,yr,tn,dn,En,In){var Vn,mr=1/0;return function Nr(Dr,Kr,zr,Jr,ya){if(!(Kr>En||zr>In||Jr=Da)<<1|Zn>=Sa,Ei=Xa+4;Xa=0&&!(ae=u.interpolators[fe](I,K)););return ae}function Kc(I,K){var ae,fe=[],he=[],me=I.length,Ce=K.length,Ae=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 R9(I){return 1-Math.cos(I*ut)}function L9(I){return Math.pow(2,10*(I-1))}function I9(I){return 1-Math.sqrt(1-I*I)}function F9(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 X2(I,K){return K-=I,function(ae){return Math.round(I+K*ae)}}function Z2(I){var K,ae,fe,he=[I.a,I.b],me=[I.c,I.d],Ce=J2(he),Ae=K2(he,me),Le=J2(((K=me)[0]+=(fe=-Ae)*(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=O9.get(fe)||V2,he=P9.get(he)||U,K=he(fe.apply(null,f.call(arguments,1))),function(me){return me<=0?0:me>=1?1:K(me)}},u.interpolateHcl=function(I,K){I=u.hcl(I),K=u.hcl(K);var ae=I.h,fe=I.c,he=I.l,me=K.h-ae,Ce=K.c-fe,Ae=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+Ae*Le)+""}},u.interpolateHsl=function(I,K){I=u.hsl(I),K=u.hsl(K);var ae=I.h,fe=I.s,he=I.l,me=K.h-ae,Ce=K.s-fe,Ae=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+Ae*Le)+""}},u.interpolateLab=function(I,K){I=u.lab(I),K=u.lab(K);var ae=I.l,fe=I.a,he=I.b,me=K.l-ae,Ce=K.a-fe,Ae=K.b-he;return function(Le){return gt(ae+me*Le,fe+Ce*Le,he+Ae*Le)+""}},u.interpolateRound=X2,u.transform=function(I){var K=h.createElementNS(u.ns.prefix.svg,"g");return(u.transform=function(ae){if(ae!=null){K.setAttribute("transform",ae);var fe=K.transform.baseVal.consolidate()}return new Z2(fe?fe.matrix:$9)})(I)},Z2.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var $9={a:1,b:0,c:0,d:1,e:0,f:0};function wl(I){return I.length?I.pop()+",":""}function Q2(I,K){var ae=[],fe=[];return I=u.transform(I),K=u.transform(K),function(he,me,Ce,Ae){if(he[0]!==me[0]||he[1]!==me[1]){var Le=Ce.push("translate(",null,",",null,")");Ae.push({i:Le-4,x:Di(he[0],me[0])},{i:Le-2,x:Di(he[1],me[1])})}else(me[0]||me[1])&&Ce.push("translate("+me+")")}(I.translate,K.translate,ae,fe),function(he,me,Ce,Ae){he!==me?(he-me>180?me+=360:me-he>180&&(he+=360),Ae.push({i:Ce.push(wl(Ce)+"rotate(",null,")")-2,x:Di(he,me)})):me&&Ce.push(wl(Ce)+"rotate("+me+")")}(I.rotate,K.rotate,ae,fe),function(he,me,Ce,Ae){he!==me?Ae.push({i:Ce.push(wl(Ce)+"skewX(",null,")")-2,x:Di(he,me)}):me&&Ce.push(wl(Ce)+"skewX("+me+")")}(I.skew,K.skew,ae,fe),function(he,me,Ce,Ae){if(he[0]!==me[0]||he[1]!==me[1]){var Le=Ce.push(wl(Ce)+"scale(",null,",",null,")");Ae.push({i:Le-4,x:Di(he[0],me[0])},{i:Le-2,x:Di(he[1],me[1])})}else me[0]===1&&me[1]===1||Ce.push(wl(Ce)+"scale("+me+")")}(I.scale,K.scale,ae,fe),I=K=null,function(he){for(var me,Ce=-1,Ae=fe.length;++Ce0?ae=ft:(I.c=null,I.t=NaN,I=null,Ae.end({type:"end",alpha:ae=0})):ft>0&&(Ae.start({type:"start",alpha:ae=ft}),I=rn(Ce.tick)),Ce):ae},Ce.start=function(){var ft,Wt,Ht,Qt=xt.length,Jt=ot.length,mn=Le[0],yn=Le[1];for(ft=0;ft=0;)ae.push(he[fe])}function vi(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=$e[Le]),He.parent=me,He.depth=me.depth+1;ae&&(me.value=0),me.children=$e}else ae&&(me.value=+ae.call(fe,me,me.depth)||0),delete me.children;return vi(he,function(Xe){var rt,vt;I&&(rt=Xe.children)&&rt.sort(I),ae&&(vt=Xe.parent)&&(vt.value+=Xe.value)}),Ae}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&&(Ls(he,function(me){me.children&&(me.value=0)}),vi(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},u.layout.partition=function(){var I=u.layout.hierarchy(),K=[1,1];function ae(me,Ce,Ae,Le){var $e=me.children;if(me.x=Ce,me.y=me.depth*Le,me.dx=Ae,me.dy=Le,$e&&(He=$e.length)){var He,Xe,rt,vt=-1;for(Ae=me.value?Ae/me.value:0;++vtAe&&(Ae=fe),Ce.push(fe)}for(ae=0;aehe&&(fe=ae,he=K);return fe}function aE(I){return I.reduce(iE,0)}function iE(I,K){return I+K[1]}function oE(I,K){return rw(I,Math.ceil(Math.log(K.length)/Math.LN2+1))}function rw(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 lE(I){return[u.min(I),u.max(I)]}function sE(I,K){return I.value-K.value}function Ag(I,K){var ae=I._pack_next;I._pack_next=K,K._pack_prev=I,K._pack_next=ae,ae._pack_prev=K}function aw(I,K){I._pack_next=K,K._pack_prev=I}function iw(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 ow(I){if((K=I.children)&&(Le=K.length)){var K,ae,fe,he,me,Ce,Ae,Le,$e=1/0,He=-1/0,Xe=1/0,rt=-1/0;if(K.forEach(uE),(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(sw(ae,fe,he=K[2]),_t(he),Ag(ae,he),ae._pack_prev=he,Ag(he,fe),fe=ae._pack_next,me=3;me0)for(Ce=-1;++Ce=Xe[0]&&Le<=Xe[1]&&((Ae=$e[u.bisect(rt,Le,1,Ct)-1]).y+=dt,Ae.push(me[Ce]));return $e}return he.value=function(me){return arguments.length?(K=me,he):K},he.range=function(me){return arguments.length?(ae=Ut(me),he):ae},he.bins=function(me){return arguments.length?(fe=typeof me=="number"?function(Ce){return rw(Ce,me)}:Ut(me),he):fe},he.frequency=function(me){return arguments.length?(I=!!me,he):I},he},u.layout.pack=function(){var I,K=u.layout.hierarchy().sort(sE),ae=0,fe=[1,1];function he(me,Ce){var Ae=K.call(this,me,Ce),Le=Ae[0],$e=fe[0],He=fe[1],Xe=I==null?Math.sqrt:typeof I=="function"?I:function(){return I};if(Le.x=Le.y=0,vi(Le,function(vt){vt.r=+Xe(vt.value)}),vi(Le,ow),ae){var rt=ae*(I?1:Math.max(2*Le.r/$e,2*Le.r/He))/2;vi(Le,function(vt){vt.r+=rt}),vi(Le,ow),vi(Le,function(vt){vt.r-=rt})}return lw(Le,$e/2,He/2,I?1:1/Math.max(2*Le.r/$e,2*Le.r/He)),Ae}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},Rs(he,K)},u.layout.tree=function(){var I=u.layout.hierarchy().sort(null).value(null),K=uw,ae=[1,1],fe=null;function he(Le,$e){var He=I.call(this,Le,$e),Xe=He[0],rt=function(_t){for(var ft,Wt={A:null,children:[_t]},Ht=[Wt];(ft=Ht.pop())!=null;)for(var Qt,Jt=ft.children,mn=0,yn=Jt.length;mnCt.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),At=ae[1]/(dt.depth||1);Ls(Xe,function(_t){_t.x=(_t.x+xt)*ot,_t.y=_t.depth*At})}return He}function me(Le){var $e=Le.children,He=Le.parent.children,Xe=Le.i?He[Le.i-1]:null;if($e.length){(function(vt){for(var Ct,dt=0,xt=0,ot=vt.children,At=ot.length;--At>=0;)(Ct=ot[At]).z+=dt,Ct.m+=dt,dt+=Ct.s+(xt+=Ct.c)})(Le);var rt=($e[0].z+$e[$e.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,At=vt,_t=Ct,ft=ot.parent.children[0],Wt=ot.m,Ht=At.m,Qt=_t.m,Jt=ft.m;_t=Eg(_t),ot=Dg(ot),_t&&ot;)ft=Dg(ft),(At=Eg(At)).a=vt,(xt=_t.z+Qt-ot.z-Wt+K(_t._,ot._))>0&&(fE(dE(_t,vt,dt),vt,xt),Wt+=xt,Ht+=xt),Qt+=_t.m,Wt+=ot.m,Jt+=ft.m,Ht+=At.m;_t&&!Eg(At)&&(At.t=_t,At.m+=Qt-Ht),ot&&!Dg(ft)&&(ft.t=ot,ft.m+=Wt-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 Ae(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?Ae:null,he):fe?null:ae},he.nodeSize=function(Le){return arguments.length?(fe=(ae=Le)==null?null:Ae,he):fe?ae:null},Rs(he,I)},u.layout.cluster=function(){var I=u.layout.hierarchy().sort(null).value(null),K=uw,ae=[1,1],fe=!1;function he(me,Ce){var Ae,Le=I.call(this,me,Ce),$e=Le[0],He=0;vi($e,function(dt){var xt=dt.children;xt&&xt.length?(dt.x=function(ot){return ot.reduce(function(At,_t){return At+_t.x},0)/ot.length}(xt),dt.y=function(ot){return 1+u.max(ot,function(At){return At.y})}(xt)):(dt.x=Ae?He+=K(dt,Ae):0,dt.y=0,Ae=dt)});var Xe=cw($e),rt=fw($e),vt=Xe.x-K(Xe,rt)/2,Ct=rt.x+K(rt,Xe)/2;return vi($e,fe?function(dt){dt.x=(dt.x-$e.x)*ae[0],dt.y=($e.y-dt.y)*ae[1]}:function(dt){dt.x=(dt.x-vt)/(Ct-vt)*ae[0],dt.y=(1-($e.y?dt.y/$e.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},Rs(he,I)},u.layout.treemap=function(){var I,K=u.layout.hierarchy(),ae=Math.round,fe=[1,1],he=null,me=Rg,Ce=!1,Ae="squarify",Le=.5*(1+Math.sqrt(5));function $e(dt,xt){for(var ot,At,_t=-1,ft=dt.length;++_t0;)Wt.push(ot=Ht[_t-1]),Wt.area+=ot.area,Ae!=="squarify"||(At=rt(Wt,Jt))<=Qt?(Ht.pop(),Qt=At):(Wt.area-=Wt.pop().area,vt(Wt,Jt,ft,!1),Jt=Math.min(ft.dx,ft.dy),Wt.length=Wt.area=0,Qt=1/0);Wt.length&&(vt(Wt,Jt,ft,!0),Wt.length=Wt.area=0),xt.forEach(He)}}function Xe(dt){var xt=dt.children;if(xt&&xt.length){var ot,At=me(dt),_t=xt.slice(),ft=[];for($e(_t,At.dx*At.dy/dt.value),ft.area=0;ot=_t.pop();)ft.push(ot),ft.area+=ot.area,ot.z!=null&&(vt(ft,ot.z?At.dx:At.dy,At,!_t.length),ft.length=ft.area=0);xt.forEach(Xe)}}function rt(dt,xt){for(var ot,At=dt.area,_t=0,ft=1/0,Wt=-1,Ht=dt.length;++Wt_t&&(_t=ot));return xt*=xt,(At*=At)?Math.max(xt*_t*Le/At,At/(xt*ft*Le)):1/0}function vt(dt,xt,ot,At){var _t,ft=-1,Wt=dt.length,Ht=ot.x,Qt=ot.y,Jt=xt?ae(dt.area/xt):0;if(xt==ot.dx){for((At||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=u.random.normal.apply(u,arguments);return function(){return Math.exp(I())}},bates:function(I){var K=u.random.irwinHall(I);return function(){return K()/I}},irwinHall:function(I){return function(){for(var K=0,ae=0;ae2?gE:hE,$e=fe?N9:j9;return he=Le(I,K,$e,ae),me=Le(K,I,$e,ko),Ae}function Ae(Le){return he(Le)}return Ae.invert=function(Le){return me(Le)},Ae.domain=function(Le){return arguments.length?(I=Le.map(Number),Ce()):I},Ae.range=function(Le){return arguments.length?(K=Le,Ce()):K},Ae.rangeRound=function(Le){return Ae.range(Le).interpolate(X2)},Ae.clamp=function(Le){return arguments.length?(fe=Le,Ce()):fe},Ae.interpolate=function(Le){return arguments.length?(ae=Le,Ce()):ae},Ae.ticks=function(Le){return Fg(I,Le)},Ae.tickFormat=function(Le,$e){return d3_scale_linearTickFormat(I,Le,$e)},Ae.nice=function(Le){return mw(I,Le),Ce()},Ae.copy=function(){return pw(I,K,ae,fe)},Ce()}function gw(I,K){return u.rebind(I,K,"range","rangeRound","interpolate","clamp")}function mw(I,K){return Lg(I,hw(Ig(I,K)[2])),Lg(I,hw(Ig(I,K)[2])),I}function Ig(I,K){K==null&&(K=10);var ae=Jc(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 Fg(I,K){return u.range.apply(u,Ig(I,K))}function vw(I,K,ae,fe){function he(Ae){return(ae?Math.log(Ae<0?0:Ae):-Math.log(Ae>0?0:-Ae))/Math.log(K)}function me(Ae){return ae?Math.pow(K,Ae):-Math.pow(K,-Ae)}function Ce(Ae){return I(he(Ae))}return Ce.invert=function(Ae){return me(I.invert(Ae))},Ce.domain=function(Ae){return arguments.length?(ae=Ae[0]>=0,I.domain((fe=Ae.map(Number)).map(he)),Ce):fe},Ce.base=function(Ae){return arguments.length?(K=+Ae,I.domain(fe.map(he)),Ce):K},Ce.nice=function(){var Ae=Lg(fe.map(he),ae?Math:mE);return I.domain(Ae),fe=Ae.map(me),Ce},Ce.ticks=function(){var Ae=Jc(fe),Le=[],$e=Ae[0],He=Ae[1],Xe=Math.floor(he($e)),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]<$e;Xe++);for(rt=Le.length;Le[rt-1]>He;rt--);Le=Le.slice(Xe,rt)}return Le},Ce.copy=function(){return vw(I.copy(),K,ae,fe)},gw(Ce,I)}u.scale.linear=function(){return pw([0,1],[0,1],ko,!1)},u.scale.log=function(){return vw(u.scale.linear().domain([0,1]),10,!0,[1,10])};var mE={floor:function(I){return-Math.ceil(-I)},ceil:function(I){return-Math.floor(-I)}};function yw(I,K,ae){var fe=ef(K),he=ef(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 Fg(ae,Ce)},me.tickFormat=function(Ce,Ae){return d3_scale_linearTickFormat(ae,Ce,Ae)},me.nice=function(Ce){return me.domain(mw(ae,Ce))},me.exponent=function(Ce){return arguments.length?(fe=ef(K=Ce),he=ef(1/K),I.domain(ae.map(fe)),me):K},me.copy=function(){return yw(I.copy(),K,ae)},gw(me,I)}function ef(I){return function(K){return K<0?-Math.pow(-K,I):Math.pow(K,I)}}function bw(I,K){var ae,fe,he;function me(Ae){return fe[((ae.get(Ae)||(K.t==="range"?ae.set(Ae,I.push(Ae)):NaN))-1)%fe.length]}function Ce(Ae,Le){return u.range(I.length).map(function($e){return Ae+Le*$e})}return me.domain=function(Ae){if(!arguments.length)return I;I=[],ae=new D;for(var Le,$e=-1,He=Ae.length;++$e0?ae[me-1]:I[0],mert?0:1;if(He<$e&&(dt=He,He=$e,$e=dt),vt>=Je)return Le(He,Ct)+($e?Le($e,1-Ct):"")+"Z";var dt,xt,ot,At,_t,ft,Wt,Ht,Qt,Jt,mn,yn,kn=0,bn=0,$n=[];if((At=(+Ce.apply(this,arguments)||0)/2)&&(ot=fe===tf?Math.sqrt($e*$e+He*He):+fe.apply(this,arguments),Ct||(bn*=-1),He&&(bn=Mt(ot/He*Math.sin(At))),$e&&(kn=Mt(ot/$e*Math.sin(At)))),He){_t=He*Math.cos(Xe+bn),ft=He*Math.sin(Xe+bn),Wt=He*Math.cos(rt-bn),Ht=He*Math.sin(rt-bn);var Zn=Math.abs(rt-Xe-2*bn)<=it?0:1;if(bn&&nf(_t,ft,Wt,Ht)===Ct^Zn){var yr=(Xe+rt)/2;_t=He*Math.cos(yr),ft=He*Math.sin(yr),Wt=Ht=null}}else _t=ft=0;if($e){Qt=$e*Math.cos(rt-kn),Jt=$e*Math.sin(rt-kn),mn=$e*Math.cos(Xe+kn),yn=$e*Math.sin(Xe+kn);var tn=Math.abs(Xe-rt+2*kn)<=it?0:1;if(kn&&nf(Qt,Jt,mn,yn)===1-Ct^tn){var dn=(Xe+rt)/2;Qt=$e*Math.cos(dn),Jt=$e*Math.sin(dn),mn=yn=null}}else Qt=Jt=0;if(vt>Ne&&(dt=Math.min(Math.abs(He-$e)/2,+ae.apply(this,arguments)))>.001){xt=$e0?0:1}function rf(I,K,ae,fe,he){var me=I[0]-K[0],Ce=I[1]-K[1],Ae=(he?fe:-fe)/Math.sqrt(me*me+Ce*Ce),Le=Ae*Ce,$e=-Ae*me,He=I[0]+Le,Xe=I[1]+$e,rt=K[0]+Le,vt=K[1]+$e,Ct=(He+rt)/2,dt=(Xe+vt)/2,xt=rt-He,ot=vt-Xe,At=xt*xt+ot*ot,_t=ae-fe,ft=He*vt-rt*Xe,Wt=(ot<0?-1:1)*Math.sqrt(Math.max(0,_t*_t*At-ft*ft)),Ht=(ft*ot-xt*Wt)/At,Qt=(-ft*xt-ot*Wt)/At,Jt=(ft*ot+xt*Wt)/At,mn=(-ft*xt+ot*Wt)/At,yn=Ht-Ct,kn=Qt-dt,bn=Jt-Ct,$n=mn-dt;return yn*yn+kn*kn>bn*bn+$n*$n&&(Ht=Jt,Qt=mn),[[Ht-Le,Qt-$e],[Ht*ae/_t,Qt*ae/_t]]}function Sw(){return!0}function Cw(I){var K=An,ae=wn,fe=Sw,he=li,me=he.key,Ce=.7;function Ae(Le){var $e,He=[],Xe=[],rt=-1,vt=Le.length,Ct=Ut(K),dt=Ut(ae);function xt(){He.push("M",he(I(Xe),Ce))}for(;++rt1&&he.push("H",fe[0]),he.join("")},"step-before":jg,"step-after":Ng,basis:Pw,"basis-open":function(I){if(I.length<4)return li(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(Ga(Ji,me)+","+Ga(Ji,Ce)),--fe;++fe9&&(me=3*ae/Math.sqrt(me),Ae[Le]=me*fe,Ae[Le+1]=me*he);for(Le=-1;++Le<=$e;)me=(K[Math.min($e,Le+1)][0]-K[Math.max(0,Le-1)][0])/(6*(1+Ae[Le]*Ae[Le])),Ce.push([me||0,Ae[Le]*me||0]);return Ce}(I))}});function li(I){return I.length>1?I.join("L"):I+"Z"}function Ow(I){return I.join("L")+"Z"}function jg(I){for(var K=0,ae=I.length,fe=I[0],he=[fe[0],",",fe[1]];++K1){Ae=K[1],me=I[Le],Le++,fe+="C"+(he[0]+Ce[0])+","+(he[1]+Ce[1])+","+(me[0]-Ae[0])+","+(me[1]-Ae[1])+","+me[0]+","+me[1];for(var $e=2;$eit)+",1 "+He}function Le($e,He,Xe,rt){return"Q 0,0 "+rt}return me.radius=function($e){return arguments.length?(ae=Ut($e),me):ae},me.source=function($e){return arguments.length?(I=Ut($e),me):I},me.target=function($e){return arguments.length?(K=Ut($e),me):K},me.startAngle=function($e){return arguments.length?(fe=Ut($e),me):fe},me.endAngle=function($e){return arguments.length?(he=Ut($e),me):he},me},u.svg.diagonal=function(){var I=Lw,K=Iw,ae=Fw;function fe(he,me){var Ce=I.call(this,he,me),Ae=K.call(this,he,me),Le=(Ce.y+Ae.y)/2,$e=[Ce,{x:Ce.x,y:Le},{x:Ae.x,y:Le},Ae];return"M"+($e=$e.map(ae))[0]+"C"+$e[1]+" "+$e[2]+" "+$e[3]}return fe.source=function(he){return arguments.length?(I=Ut(he),fe):I},fe.target=function(he){return arguments.length?(K=Ut(he),fe):K},fe.projection=function(he){return arguments.length?(ae=he,fe):ae},fe},u.svg.diagonal.radial=function(){var I=u.svg.diagonal(),K=Fw,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],Ae=me[1]-ut;return[Ce*Math.cos(Ae),Ce*Math.sin(Ae)]}}(K=fe)):K},I},u.svg.symbol=function(){var I=CE,K=SE;function ae(fe,he){return(jw.get(I.call(this,fe,he))||$w)(K.call(this,fe,he))}return ae.type=function(fe){return arguments.length?(I=Ut(fe),ae):I},ae.size=function(fe){return arguments.length?(K=Ut(fe),ae):K},ae};var jw=u.map({circle:$w,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*Nw)),ae=K*Nw;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/of),ae=K*of/2;return"M0,"+ae+"L"+K+","+-ae+" "+-K+","+-ae+"Z"},"triangle-up":function(I){var K=Math.sqrt(I/of),ae=K*of/2;return"M0,"+-ae+"L"+K+","+ae+" "+-K+","+ae+"Z"}});u.svg.symbolTypes=jw.keys();var of=Math.sqrt(3),Nw=Math.tan(30*pt);se.transition=function(I){for(var K,ae,fe=Mo||++Bw,he=Wg(I),me=[],Ce=sf||{time:Date.now(),ease:E9,delay:0,duration:250},Ae=-1,Le=this.length;++Ae0;)$e[--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=rn(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)}Hr.call=se.call,Hr.empty=se.empty,Hr.node=se.node,Hr.size=se.size,u.transition=function(I,K){return I&&I.transition?Mo?I.transition(K):I:u.selection().transition(I)},u.transition.prototype=Hr,Hr.select=function(I){var K,ae,fe,he=this.id,me=this.namespace,Ce=[];I=pe(I);for(var Ae=-1,Le=this.length;++Aerect,.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,At=u.select(u.event.target),_t=ae.of(ot,arguments),ft=u.select(ot),Wt=At.datum(),Ht=!/^(n|s)$/.test(Wt)&&fe,Qt=!/^(e|w)$/.test(Wt)&&he,Jt=At.classed("extent"),mn=lt(ot),yn=u.mouse(ot),kn=u.select(g(ot)).on("keydown.brush",function(){u.event.keyCode==32&&(Jt||(dt=null,yn[0]-=me[1],yn[1]-=Ce[1],Jt=2),ee())}).on("keyup.brush",function(){u.event.keyCode==32&&Jt==2&&(yn[0]+=me[1],yn[1]+=Ce[1],Jt=0,ee())});if(u.event.changedTouches?kn.on("touchmove.brush",Zn).on("touchend.brush",tn):kn.on("mousemove.brush",Zn).on("mouseup.brush",tn),ft.interrupt().selectAll("*").interrupt(),Jt)yn[0]=me[0]-yn[0],yn[1]=Ce[0]-yn[1];else if(Wt){var bn=+/w$/.test(Wt),$n=+/^n/.test(Wt);xt=[me[1-bn]-yn[0],Ce[1-$n]-yn[1]],yn[0]=me[bn],yn[1]=Ce[$n]}else u.event.altKey&&(dt=yn.slice());function Zn(){var dn=u.mouse(ot),En=!1;xt&&(dn[0]+=xt[0],dn[1]+=xt[1]),Jt||(u.event.altKey?(dt||(dt=[(me[0]+me[1])/2,(Ce[0]+Ce[1])/2]),yn[0]=me[+(dn[0]1?L-1:0),W=1;W1?L-1:0),W=1;W1?L-1:0),W=1;W1?L-1:0),W=1;W"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,P,z){var B=[null];B.push.apply(B,P);var N=new(Function.bind.apply(F,B));return z&&g(N,z.prototype),N},p.apply(null,arguments)}function g(D,O){return g=Object.setPrototypeOf||function(R,F){return R.__proto__=F,R},g(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 m=r(43827).inspect,b=r(79616).codes.ERR_INVALID_ARG_TYPE;function w(D,O,R){return(R===void 0||R>D.length)&&(R=D.length),D.substring(R-O.length,R)===O}var _="",x="",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 m(D,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var A=function(D){function O(P){var z;if(function(te,ee){if(!(te instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,O),v(P)!=="object"||P===null)throw new b("options","Object",P);var B=P.message,N=P.operator,j=P.stackStartFn,$=P.actual,E=P.expected,U=Error.stackTraceLimit;if(Error.stackTraceLimit=0,B!=null)z=f(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",x="\x1B[32m",T="\x1B[39m",k="\x1B[31m"):(_="",x="",T="",k="")),v($)==="object"&&$!==null&&v(E)==="object"&&E!==null&&"stack"in $&&$ instanceof Error&&"stack"in E&&E instanceof Error&&($=S($),E=S(E)),N==="deepStrictEqual"||N==="strictEqual")z=f(this,y(O).call(this,function(te,ee,H){var Q="",Y="",Z=0,X="",re=!1,ie=C(te),le=ie.split(` +`),se=C(ee).split(` +`),pe=0,Te="";if(H==="strictEqual"&&v(te)==="object"&&v(ee)==="object"&&te!==null&&ee!==null&&(H="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[H],` + +`)+"".concat(le[0]," !== ").concat(se[0],` +`)}else if(H!=="strictEqualObject"&&Se<(l.stderr&&l.stderr.isTTY?l.stderr.columns:80)){for(;le[0][pe]===se[0][pe];)pe++;pe>2&&(Te=` + `.concat(function(we,ke){if(ke=Math.floor(ke),we.length==0||ke==0)return"";var Pe=we.length*ke;for(ke=Math.floor(Math.log(ke)/Math.log(2));ke;)we+=we,ke--;return we+we.substring(0,Pe-we.length)}(" ",pe),"^"),pe=0)}}for(var Oe=le[le.length-1],Me=se[se.length-1];Oe===Me&&(pe++<2?X=` + `.concat(Oe).concat(X):Q=Oe,le.pop(),se.pop(),le.length!==0&&se.length!==0);)Oe=le[le.length-1],Me=se[se.length-1];var ce=Math.max(le.length,se.length);if(ce===0){var ye=ie.split(` +`);if(ye.length>30)for(ye[26]="".concat(_,"...").concat(T);ye.length>27;)ye.pop();return"".concat(M.notIdentical,` + +`).concat(ye.join(` +`),` +`)}pe>3&&(X=` +`.concat(_,"...").concat(T).concat(X),re=!0),Q!==""&&(X=` + `.concat(Q).concat(X),Q="");var J=0,ne=M[H]+` +`.concat(x,"+ actual").concat(T," ").concat(k,"- expected").concat(T),de=" ".concat(_,"...").concat(T," Lines skipped");for(pe=0;pe1&&pe>2&&(xe>4?(Y+=` +`.concat(_,"...").concat(T),re=!0):xe>3&&(Y+=` + `.concat(se[pe-2]),J++),Y+=` + `.concat(se[pe-1]),J++),Z=pe,Q+=` +`.concat(k,"-").concat(T," ").concat(se[pe]),J++;else if(se.length1&&pe>2&&(xe>4?(Y+=` +`.concat(_,"...").concat(T),re=!0):xe>3&&(Y+=` + `.concat(le[pe-2]),J++),Y+=` + `.concat(le[pe-1]),J++),Z=pe,Y+=` +`.concat(x,"+").concat(T," ").concat(le[pe]),J++;else{var ue=se[pe],ge=le[pe],be=ge!==ue&&(!w(ge,",")||ge.slice(0,-1)!==ue);be&&w(ue,",")&&ue.slice(0,-1)===ge&&(be=!1,ge+=","),be?(xe>1&&pe>2&&(xe>4?(Y+=` +`.concat(_,"...").concat(T),re=!0):xe>3&&(Y+=` + `.concat(le[pe-2]),J++),Y+=` + `.concat(le[pe-1]),J++),Z=pe,Y+=` +`.concat(x,"+").concat(T," ").concat(ge),Q+=` +`.concat(k,"-").concat(T," ").concat(ue),J+=2):(Y+=Q,Q="",xe!==1&&pe!==0||(Y+=` + `.concat(ge),J++))}if(J>20&&pe30)for(L[26]="".concat(_,"...").concat(T);L.length>27;)L.pop();z=L.length===1?f(this,y(O).call(this,"".concat(G," ").concat(L[0]))):f(this,y(O).call(this,"".concat(G,` + +`).concat(L.join(` +`),` +`)))}else{var q=C($),W="",V=M[N];N==="notDeepEqual"||N==="notEqual"?(q="".concat(M[N],` + +`).concat(q)).length>1024&&(q="".concat(q.slice(0,1021),"...")):(W="".concat(C(E)),q.length>512&&(q="".concat(q.slice(0,509),"...")),W.length>512&&(W="".concat(W.slice(0,509),"...")),N==="deepEqual"||N==="equal"?q="".concat(V,` + +`).concat(q,` + +should equal + +`):W=" ".concat(N," ").concat(W)),z=f(this,y(O).call(this,"".concat(q).concat(W)))}return Error.stackTraceLimit=U,z.generatedMessage=!B,Object.defineProperty(d(z),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),z.code="ERR_ASSERTION",z.actual=$,z.expected=E,z.operator=N,Error.captureStackTrace&&Error.captureStackTrace(d(z),j),z.stack,z.name="AssertionError",f(z)}var R,F;return function(P,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(z&&z.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),z&&g(P,z)}(O,D),R=O,F=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:m.custom,value:function(P,z){return m(this,function(B){for(var N=1;N2?"one of ".concat(v," ").concat(y.slice(0,m-1).join(", "),", or ")+y[m-1]:m===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,m){var b,w,_,x,k;if(f===void 0&&(f=r(32791)),f(typeof y=="string","'name' must be a string"),typeof v=="string"&&(w="not ",v.substr(0,4)===w)?(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(g(v,"type"));else{var T=(typeof k!="number"&&(k=0),k+1>(x=y).length||x.indexOf(".",k)===-1?"argument":"property");_='The "'.concat(y,'" ').concat(T," ").concat(b," ").concat(g(v,"type"))}return _+". Received type ".concat(l(m))},TypeError),p("ERR_INVALID_ARG_VALUE",function(y,v){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";d===void 0&&(d=r(43827));var b=d.inspect(v);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(y,"' ").concat(m,". Received ").concat(b)},TypeError),p("ERR_INVALID_RETURN_VALUE",function(y,v,m){var b;return b=m&&m.constructor&&m.constructor.name?"instance of ".concat(m.constructor.name):"type ".concat(l(m)),"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),m=0;m0,"At least one arg needs to be specified");var b="The ",w=v.length;switch(v=v.map(function(_){return'"'.concat(_,'"')}),w){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,w-1).join(", "),b+=", and ".concat(v[w-1]," arguments")}return"".concat(b," must be specified")},TypeError),o.exports.codes=h},74061:function(o,a,r){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 c(Z){return c=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},c(Z)}var u=/a/g.flags!==void 0,f=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:r(64003),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},g=Number.isNaN?Number.isNaN:r(15567);function y(Z){return Z.call.bind(Z)}var v=y(Object.prototype.hasOwnProperty),m=y(Object.prototype.propertyIsEnumerable),b=y(Object.prototype.toString),w=r(43827).types,_=w.isAnyArrayBuffer,x=w.isArrayBufferView,k=w.isDate,T=w.isMap,M=w.isRegExp,S=w.isSet,C=w.isNativeError,A=w.isBoxedPrimitive,D=w.isNumberObject,O=w.isStringObject,R=w.isBooleanObject,F=w.isBigIntObject,P=w.isSymbolObject,z=w.isFloat32Array,B=w.isFloat64Array;function N(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(N).concat(p(Z).filter(Object.prototype.propertyIsEnumerable.bind(Z)))}function $(Z,X){if(Z===X)return 0;for(var re=Z.length,ie=X.length,le=0,se=Math.min(re,ie);le0?m-4:m;for(y=0;y>16&255,w[_++]=g>>8&255,w[_++]=255&g;return b===2&&(g=l[p.charCodeAt(y)]<<2|l[p.charCodeAt(y+1)]>>4,w[_++]=255&g),b===1&&(g=l[p.charCodeAt(y)]<<10|l[p.charCodeAt(y+1)]<<4|l[p.charCodeAt(y+2)]>>2,w[_++]=g>>8&255,w[_++]=255&g),w},a.fromByteArray=function(p){for(var g,y=p.length,v=y%3,m=[],b=16383,w=0,_=y-v;w<_;w+=b)m.push(h(p,w,w+b>_?_:w+b));return v===1?(g=p[y-1],m.push(r[g>>2]+r[g<<4&63]+"==")):v===2&&(g=(p[y-2]<<8)+p[y-1],m.push(r[g>>10]+r[g>>4&63]+r[g<<2&63]+"=")),m.join("")};for(var r=[],l=[],c=typeof Uint8Array<"u"?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0;f<64;++f)r[f]=u[f],l[u.charCodeAt(f)]=f;function d(p){var g=p.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=p.indexOf("=");return y===-1&&(y=g),[y,y===g?0:4-y%4]}function h(p,g,y){for(var v,m,b=[],w=g;w>18&63]+r[m>>12&63]+r[m>>6&63]+r[63&m]);return b.join("")}l[45]=62,l[95]=63},6614:function(o,a,r){var l=r(68318),c=r(68222),u=c(l("String.prototype.indexOf"));o.exports=function(f,d){var h=l(f,!!d);return typeof h=="function"&&u(f,".prototype.")>-1?c(h):h}},68222:function(o,a,r){var l=r(77575),c=r(68318),u=c("%Function.prototype.apply%"),f=c("%Function.prototype.call%"),d=c("%Reflect.apply%",!0)||l.call(f,u),h=c("%Object.getOwnPropertyDescriptor%",!0),p=c("%Object.defineProperty%",!0),g=c("%Math.max%");if(p)try{p({},"a",{value:1})}catch{p=null}o.exports=function(v){var m=d(l,f,arguments);return h&&p&&h(m,"length").configurable&&p(m,"length",{value:1+g(0,v.length-(arguments.length-1))}),m};var y=function(){return d(l,u,arguments)};p?p(o.exports,"apply",{value:y}):o.exports.apply=y},60721:function(o,a,r){function l(_,x){if((k=(_=x?_.toExponential(x-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)]}r.d(a,{WU:function(){return v},FF:function(){return w}});var c,u=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function f(_){if(!(x=u.exec(_)))throw new Error("invalid format: "+_);var x;return new d({fill:x[1],align:x[2],sign:x[3],symbol:x[4],zero:x[5],width:x[6],comma:x[7],precision:x[8]&&x[8].slice(1),trim:x[9],type:x[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(_,x){var k=l(_,x);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")}f.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(_,x){return(100*_).toFixed(x)},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(_,x){return _.toExponential(x)},f:function(_,x){return _.toFixed(x)},g:function(_,x){return _.toPrecision(x)},o:function(_){return Math.round(_).toString(8)},p:function(_,x){return h(100*_,x)},r:h,s:function(_,x){var k=l(_,x);if(!k)return _+"";var T=k[0],M=k[1],S=M-(c=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,x+S-1))[0]},X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function g(_){return _}var y,v,m=Array.prototype.map,b=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function w(_){var x,k,T=_.grouping===void 0||_.thousands===void 0?g:(x=m.call(_.grouping,Number),k=_.thousands+"",function(P,z){for(var B=P.length,N=[],j=0,$=x[0],E=0;B>0&&$>0&&(E+$+1>z&&($=Math.max(1,z-E)),N.push(P.substring(B-=$,B+$)),!((E+=$+1)>z));)$=x[j=(j+1)%x.length];return N.reverse().join(k)}),M=_.currency===void 0?"":_.currency[0]+"",S=_.currency===void 0?"":_.currency[1]+"",C=_.decimal===void 0?".":_.decimal+"",A=_.numerals===void 0?g:function(P){return function(z){return z.replace(/[0-9]/g,function(B){return P[+B]})}}(m.call(_.numerals,String)),D=_.percent===void 0?"%":_.percent+"",O=_.minus===void 0?"-":_.minus+"",R=_.nan===void 0?"NaN":_.nan+"";function F(P){var z=(P=f(P)).fill,B=P.align,N=P.sign,j=P.symbol,$=P.zero,E=P.width,U=P.comma,G=P.precision,L=P.trim,q=P.type;q==="n"?(U=!0,q="g"):p[q]||(G===void 0&&(G=12),L=!0,q="g"),($||z==="0"&&B==="=")&&($=!0,z="0",B="=");var W=j==="$"?M:j==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",V=j==="$"?S:/[%p]/.test(q)?D:"",te=p[q],ee=/[defgprs%]/.test(q);function H(Q){var Y,Z,X,re=W,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&&N!=="+"&&(le=!1),re=(le?N==="("?N:O:N==="-"||N==="("?"":N)+re,ie=(q==="s"?b[8+c/3]:"")+ie+(le&&N==="("?")":""),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}}}U&&!$&&(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 A(Q)}return G=G===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,G)):Math.max(0,Math.min(20,G)),H.toString=function(){return P+""},H}return{format:F,formatPrefix:function(P,z){var B,N=F(((P=f(P)).type="f",P)),j=3*Math.max(-8,Math.min(8,Math.floor((B=z,((B=l(Math.abs(B)))?B[1]:NaN)/3)))),$=Math.pow(10,-j),E=b[8+j/3];return function(U){return N($*U)+E}}}}y=w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),v=y.format,y.formatPrefix},84096:function(o,a,r){r.d(a,{i$:function(){return b},Dq:function(){return v},g0:function(){return w}});var l=r(58176),c=r(48480),u=r(59879),f=r(82301),d=r(34823),h=r(79791);function p(Be){if(0<=Be.y&&Be.y<100){var Ne=new Date(-1,Be.m,Be.d,Be.H,Be.M,Be.S,Be.L);return Ne.setFullYear(Be.y),Ne}return new Date(Be.y,Be.m,Be.d,Be.H,Be.M,Be.S,Be.L)}function g(Be){if(0<=Be.y&&Be.y<100){var Ne=new Date(Date.UTC(-1,Be.m,Be.d,Be.H,Be.M,Be.S,Be.L));return Ne.setUTCFullYear(Be.y),Ne}return new Date(Date.UTC(Be.y,Be.m,Be.d,Be.H,Be.M,Be.S,Be.L))}function y(Be,Ne,Qe){return{y:Be,m:Ne,d:Qe,H:0,M:0,S:0,L:0}}function v(Be){var Ne=Be.dateTime,Qe=Be.date,it=Be.time,kt=Be.periods,Je=Be.days,ut=Be.shortDays,pt=Be.months,It=Be.shortMonths,Mt=C(kt),Bt=A(kt),wt=C(Je),ve=A(Je),_e=C(ut),Ve=A(ut),Ue=C(pt),Ze=A(pt),Ge=C(It),Ke=A(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:Pe,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:Fe,w:ze,W:We,x:null,X:null,y:qe,Y:Ye,Z:at,"%":lt},mt={a:function(St,$t,Dt){var gt=_e.exec($t.slice(Dt));return gt?(St.w=Ve[gt[0].toLowerCase()],Dt+gt[0].length):-1},A:function(St,$t,Dt){var gt=wt.exec($t.slice(Dt));return gt?(St.w=ve[gt[0].toLowerCase()],Dt+gt[0].length):-1},b:function(St,$t,Dt){var gt=Ge.exec($t.slice(Dt));return gt?(St.m=Ke[gt[0].toLowerCase()],Dt+gt[0].length):-1},B:function(St,$t,Dt){var gt=Ue.exec($t.slice(Dt));return gt?(St.m=Ze[gt[0].toLowerCase()],Dt+gt[0].length):-1},c:function(St,$t,Dt){return Vt(St,Ne,$t,Dt)},d:E,e:E,f:V,H:G,I:G,j:U,L:W,m:$,M:L,p:function(St,$t,Dt){var gt=Mt.exec($t.slice(Dt));return gt?(St.p=Bt[gt[0].toLowerCase()],Dt+gt[0].length):-1},q:j,Q:ee,s:H,S:q,u:O,U:R,V:F,w:D,W:P,x:function(St,$t,Dt){return Vt(St,Qe,$t,Dt)},X:function(St,$t,Dt){return Vt(St,it,$t,Dt)},y:B,Y:z,Z:N,"%":te};function tt(St,$t){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=g(y(yt.y,0,1))).getUTCDay(),gt=ht>4||ht===0?l.l6.ceil(gt):(0,l.l6)(gt),gt=c.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?u.wA.ceil(gt):(0,u.wA)(gt),gt=f.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?g(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,g(yt)):p(yt)}}function Vt(St,$t,Dt,gt){for(var ht,yt,qt=0,Et=$t.length,jt=Dt.length;qt=jt)return-1;if((ht=$t.charCodeAt(qt++))===37){if(ht=$t.charAt(qt++),!(yt=mt[ht in _?$t.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 $t=tt(St+="",nt);return $t.toString=function(){return St},$t},parse:function(St){var $t=Ft(St+="",!1);return $t.toString=function(){return St},$t},utcFormat:function(St){var $t=tt(St+="",st);return $t.toString=function(){return St},$t},utcParse:function(St){var $t=Ft(St+="",!0);return $t.toString=function(){return St},$t}}}var m,b,w,_={"-":"",_:" ",0:"0"},x=/^\s*\d+/,k=/^%/,T=/[\\^$*+?|[\]().{}]/g;function M(Be,Ne,Qe){var it=Be<0?"-":"",kt=(it?-Be:Be)+"",Je=kt.length;return it+(Je68?1900:2e3),Qe+it[0].length):-1}function N(Be,Ne,Qe){var it=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ne.slice(Qe,Qe+6));return it?(Be.Z=it[1]?0:-(it[2]+(it[3]||"00")),Qe+it[0].length):-1}function j(Be,Ne,Qe){var it=x.exec(Ne.slice(Qe,Qe+1));return it?(Be.q=3*it[0]-3,Qe+it[0].length):-1}function $(Be,Ne,Qe){var it=x.exec(Ne.slice(Qe,Qe+2));return it?(Be.m=it[0]-1,Qe+it[0].length):-1}function E(Be,Ne,Qe){var it=x.exec(Ne.slice(Qe,Qe+2));return it?(Be.d=+it[0],Qe+it[0].length):-1}function U(Be,Ne,Qe){var it=x.exec(Ne.slice(Qe,Qe+3));return it?(Be.m=0,Be.d=+it[0],Qe+it[0].length):-1}function G(Be,Ne,Qe){var it=x.exec(Ne.slice(Qe,Qe+2));return it?(Be.H=+it[0],Qe+it[0].length):-1}function L(Be,Ne,Qe){var it=x.exec(Ne.slice(Qe,Qe+2));return it?(Be.M=+it[0],Qe+it[0].length):-1}function q(Be,Ne,Qe){var it=x.exec(Ne.slice(Qe,Qe+2));return it?(Be.S=+it[0],Qe+it[0].length):-1}function W(Be,Ne,Qe){var it=x.exec(Ne.slice(Qe,Qe+3));return it?(Be.L=+it[0],Qe+it[0].length):-1}function V(Be,Ne,Qe){var it=x.exec(Ne.slice(Qe,Qe+6));return it?(Be.L=Math.floor(it[0]/1e3),Qe+it[0].length):-1}function te(Be,Ne,Qe){var it=k.exec(Ne.slice(Qe,Qe+1));return it?Qe+it[0].length:-1}function ee(Be,Ne,Qe){var it=x.exec(Ne.slice(Qe));return it?(Be.Q=+it[0],Qe+it[0].length):-1}function H(Be,Ne,Qe){var it=x.exec(Ne.slice(Qe));return it?(Be.s=+it[0],Qe+it[0].length):-1}function Q(Be,Ne){return M(Be.getDate(),Ne,2)}function Y(Be,Ne){return M(Be.getHours(),Ne,2)}function Z(Be,Ne){return M(Be.getHours()%12||12,Ne,2)}function X(Be,Ne){return M(1+f.Z.count((0,d.Z)(Be),Be),Ne,3)}function re(Be,Ne){return M(Be.getMilliseconds(),Ne,3)}function ie(Be,Ne){return re(Be,Ne)+"000"}function le(Be,Ne){return M(Be.getMonth()+1,Ne,2)}function se(Be,Ne){return M(Be.getMinutes(),Ne,2)}function pe(Be,Ne){return M(Be.getSeconds(),Ne,2)}function Te(Be){var Ne=Be.getDay();return Ne===0?7:Ne}function Se(Be,Ne){return M(u.OM.count((0,d.Z)(Be)-1,Be),Ne,2)}function Oe(Be,Ne){var Qe=Be.getDay();return Be=Qe>=4||Qe===0?(0,u.bL)(Be):u.bL.ceil(Be),M(u.bL.count((0,d.Z)(Be),Be)+((0,d.Z)(Be).getDay()===4),Ne,2)}function Me(Be){return Be.getDay()}function ce(Be,Ne){return M(u.wA.count((0,d.Z)(Be)-1,Be),Ne,2)}function ye(Be,Ne){return M(Be.getFullYear()%100,Ne,2)}function J(Be,Ne){return M(Be.getFullYear()%1e4,Ne,4)}function ne(Be){var Ne=Be.getTimezoneOffset();return(Ne>0?"-":(Ne*=-1,"+"))+M(Ne/60|0,"0",2)+M(Ne%60,"0",2)}function de(Be,Ne){return M(Be.getUTCDate(),Ne,2)}function xe(Be,Ne){return M(Be.getUTCHours(),Ne,2)}function ue(Be,Ne){return M(Be.getUTCHours()%12||12,Ne,2)}function ge(Be,Ne){return M(1+c.Z.count((0,h.Z)(Be),Be),Ne,3)}function be(Be,Ne){return M(Be.getUTCMilliseconds(),Ne,3)}function we(Be,Ne){return be(Be,Ne)+"000"}function ke(Be,Ne){return M(Be.getUTCMonth()+1,Ne,2)}function Pe(Be,Ne){return M(Be.getUTCMinutes(),Ne,2)}function Ee(Be,Ne){return M(Be.getUTCSeconds(),Ne,2)}function De(Be){var Ne=Be.getUTCDay();return Ne===0?7:Ne}function Re(Be,Ne){return M(l.Ox.count((0,h.Z)(Be)-1,Be),Ne,2)}function Fe(Be,Ne){var Qe=Be.getUTCDay();return Be=Qe>=4||Qe===0?(0,l.hB)(Be):l.hB.ceil(Be),M(l.hB.count((0,h.Z)(Be),Be)+((0,h.Z)(Be).getUTCDay()===4),Ne,2)}function ze(Be){return Be.getUTCDay()}function We(Be,Ne){return M(l.l6.count((0,h.Z)(Be)-1,Be),Ne,2)}function qe(Be,Ne){return M(Be.getUTCFullYear()%100,Ne,2)}function Ye(Be,Ne){return M(Be.getUTCFullYear()%1e4,Ne,4)}function at(){return"+0000"}function lt(){return"%"}function ct(Be){return+Be}function bt(Be){return Math.floor(+Be/1e3)}m=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=m.format,m.parse,w=m.utcFormat,m.utcParse},82301:function(o,a,r){r.d(a,{a:function(){return f}});var l=r(30052),c=r(54263),u=(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())*c.yB)/c.UD},function(d){return d.getDate()-1});a.Z=u;var f=u.range},54263:function(o,a,r){r.d(a,{UD:function(){return f},Y2:function(){return u},Ym:function(){return l},iM:function(){return d},yB:function(){return c}});var l=1e3,c=6e4,u=36e5,f=864e5,d=6048e5},81041:function(o,a,r){r.r(a),r.d(a,{timeDay:function(){return x.Z},timeDays:function(){return x.a},timeFriday:function(){return k.mC},timeFridays:function(){return k.b$},timeHour:function(){return w},timeHours:function(){return _},timeInterval:function(){return l.Z},timeMillisecond:function(){return u},timeMilliseconds:function(){return f},timeMinute:function(){return v},timeMinutes:function(){return m},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 g},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 P},utcMillisecond:function(){return u},utcMilliseconds:function(){return f},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 $},utcSaturday:function(){return B.g4},utcSaturdays:function(){return B.Q_},utcSecond:function(){return p},utcSeconds:function(){return g},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=r(30052),c=(0,l.Z)(function(){},function(U,G){U.setTime(+U+G)},function(U,G){return G-U});c.every=function(U){return U=Math.floor(U),isFinite(U)&&U>0?U>1?(0,l.Z)(function(G){G.setTime(Math.floor(G/U)*U)},function(G,L){G.setTime(+G+L*U)},function(G,L){return(L-G)/U}):c:null};var u=c,f=c.range,d=r(54263),h=(0,l.Z)(function(U){U.setTime(U-U.getMilliseconds())},function(U,G){U.setTime(+U+G*d.Ym)},function(U,G){return(G-U)/d.Ym},function(U){return U.getUTCSeconds()}),p=h,g=h.range,y=(0,l.Z)(function(U){U.setTime(U-U.getMilliseconds()-U.getSeconds()*d.Ym)},function(U,G){U.setTime(+U+G*d.yB)},function(U,G){return(G-U)/d.yB},function(U){return U.getMinutes()}),v=y,m=y.range,b=(0,l.Z)(function(U){U.setTime(U-U.getMilliseconds()-U.getSeconds()*d.Ym-U.getMinutes()*d.yB)},function(U,G){U.setTime(+U+G*d.Y2)},function(U,G){return(G-U)/d.Y2},function(U){return U.getHours()}),w=b,_=b.range,x=r(82301),k=r(59879),T=(0,l.Z)(function(U){U.setDate(1),U.setHours(0,0,0,0)},function(U,G){U.setMonth(U.getMonth()+G)},function(U,G){return G.getMonth()-U.getMonth()+12*(G.getFullYear()-U.getFullYear())},function(U){return U.getMonth()}),M=T,S=T.range,C=r(34823),A=(0,l.Z)(function(U){U.setUTCSeconds(0,0)},function(U,G){U.setTime(+U+G*d.yB)},function(U,G){return(G-U)/d.yB},function(U){return U.getUTCMinutes()}),D=A,O=A.range,R=(0,l.Z)(function(U){U.setUTCMinutes(0,0,0)},function(U,G){U.setTime(+U+G*d.Y2)},function(U,G){return(G-U)/d.Y2},function(U){return U.getUTCHours()}),F=R,P=R.range,z=r(48480),B=r(58176),N=(0,l.Z)(function(U){U.setUTCDate(1),U.setUTCHours(0,0,0,0)},function(U,G){U.setUTCMonth(U.getUTCMonth()+G)},function(U,G){return G.getUTCMonth()-U.getUTCMonth()+12*(G.getUTCFullYear()-U.getUTCFullYear())},function(U){return U.getUTCMonth()}),j=N,$=N.range,E=r(79791)},30052:function(o,a,r){r.d(a,{Z:function(){return u}});var l=new Date,c=new Date;function u(f,d,h,p){function g(y){return f(y=arguments.length===0?new Date:new Date(+y)),y}return g.floor=function(y){return f(y=new Date(+y)),y},g.ceil=function(y){return f(y=new Date(y-1)),d(y,1),f(y),y},g.round=function(y){var v=g(y),m=g.ceil(y);return y-v0))return w;do w.push(b=new Date(+y)),d(y,m),f(y);while(b=v)for(;f(v),!y(v);)v.setTime(v-1)},function(v,m){if(v>=v)if(m<0)for(;++m<=0;)for(;d(v,-1),!y(v););else for(;--m>=0;)for(;d(v,1),!y(v););})},h&&(g.count=function(y,v){return l.setTime(+y),c.setTime(+v),f(l),f(c),Math.floor(h(l,c))},g.every=function(y){return y=Math.floor(y),isFinite(y)&&y>0?y>1?g.filter(p?function(v){return p(v)%y==0}:function(v){return g.count(0,v)%y==0}):g:null}),g}},48480:function(o,a,r){r.d(a,{y:function(){return f}});var l=r(30052),c=r(54263),u=(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)/c.UD},function(d){return d.getUTCDate()-1});a.Z=u;var f=u.range},58176:function(o,a,r){r.d(a,{$3:function(){return b},DK:function(){return w},J1:function(){return h},Ox:function(){return f},QQ:function(){return y},Q_:function(){return T},SU:function(){return m},b3:function(){return p},fz:function(){return k},g4:function(){return v},hB:function(){return g},l6:function(){return d},uy:function(){return _},xj:function(){return x}});var l=r(30052),c=r(54263);function u(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)/c.iM})}var f=u(0),d=u(1),h=u(2),p=u(3),g=u(4),y=u(5),v=u(6),m=f.range,b=d.range,w=h.range,_=p.range,x=g.range,k=y.range,T=v.range},79791:function(o,a,r){r.d(a,{D:function(){return u}});var l=r(30052),c=(0,l.Z)(function(f){f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,d){f.setUTCFullYear(f.getUTCFullYear()+d)},function(f,d){return d.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});c.every=function(f){return isFinite(f=Math.floor(f))&&f>0?(0,l.Z)(function(d){d.setUTCFullYear(Math.floor(d.getUTCFullYear()/f)*f),d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},function(d,h){d.setUTCFullYear(d.getUTCFullYear()+h*f)}):null},a.Z=c;var u=c.range},59879:function(o,a,r){r.d(a,{$t:function(){return x},EY:function(){return v},Ff:function(){return T},Ld:function(){return _},OM:function(){return f},aU:function(){return w},b$:function(){return k},bJ:function(){return b},bL:function(){return g},mC:function(){return y},sy:function(){return h},vm:function(){return m},wA:function(){return d},zg:function(){return p}});var l=r(30052),c=r(54263);function u(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())*c.yB)/c.iM})}var f=u(0),d=u(1),h=u(2),p=u(3),g=u(4),y=u(5),v=u(6),m=f.range,b=d.range,w=h.range,_=p.range,x=g.range,k=y.range,T=v.range},34823:function(o,a,r){r.d(a,{g:function(){return u}});var l=r(30052),c=(0,l.Z)(function(f){f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,d){f.setFullYear(f.getFullYear()+d)},function(f,d){return d.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});c.every=function(f){return isFinite(f=Math.floor(f))&&f>0?(0,l.Z)(function(d){d.setFullYear(Math.floor(d.getFullYear()/f)*f),d.setMonth(0,1),d.setHours(0,0,0,0)},function(d,h){d.setFullYear(d.getFullYear()+h*f)}):null},a.Z=c;var u=c.range},17045:function(o,a,r){var l=r(8709),c=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",u=Object.prototype.toString,f=Array.prototype.concat,d=Object.defineProperty,h=r(55622)(),p=d&&h,g=function(v,m,b,w){if(m in v){if(w===!0){if(v[m]===b)return}else if(typeof(_=w)!="function"||u.call(_)!=="[object Function]"||!w())return}var _;p?d(v,m,{configurable:!0,enumerable:!1,value:b,writable:!0}):v[m]=b},y=function(v,m){var b=arguments.length>2?arguments[2]:{},w=l(m);c&&(w=f.call(w,Object.getOwnPropertySymbols(m)));for(var _=0;_0&&C.length>M&&!C.warned){C.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(x)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=_,D.type=x,D.count=C.length,A=D,console&&console.warn&&console.warn(A)}return _}function g(){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(_,x,k){var T={fired:!1,wrapFn:void 0,target:_,type:x,listener:k},M=g.bind(T);return M.listener=k,T.wrapFn=M,M}function v(_,x,k){var T=_._events;if(T===void 0)return[];var M=T[x];return M===void 0?[]:typeof M=="function"?k?[M.listener||M]:[M]:k?function(S){for(var C=new Array(S.length),A=0;A0&&(S=x[0]),S instanceof Error)throw S;var C=new Error("Unhandled error."+(S?" ("+S.message+")":""));throw C.context=S,C}var A=M[_];if(A===void 0)return!1;if(typeof A=="function")l(A,this,x);else{var D=A.length,O=b(A,D);for(k=0;k=0;S--)if(k[S]===x||k[S].listener===x){C=k[S].listener,M=S;break}if(M<0)return this;M===0?k.shift():function(A,D){for(;D+1=0;T--)this.removeListener(_,x[T]);return this},u.prototype.listeners=function(_){return v(this,_,!0)},u.prototype.rawListeners=function(_){return v(this,_,!1)},u.listenerCount=function(_,x){return typeof _.listenerCount=="function"?_.listenerCount(x):m.call(_,x)},u.prototype.listenerCount=m,u.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},92770:function(o,a,r){var l=r(18546);o.exports=function(c){var u=typeof c;if(u==="string"){var f=c;if((c=+c)==0&&l(f))return!1}else if(u!=="number")return!1;return c-c<1}},31353:function(o,a,r){var l=r(85395),c=Object.prototype.toString,u=Object.prototype.hasOwnProperty;o.exports=function(f,d,h){if(!l(d))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=h),c.call(f)==="[object Array]"?function(g,y,v){for(var m=0,b=g.length;m"u"?l:v(Uint8Array),w={"%AggregateError%":typeof AggregateError>"u"?l:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?l:ArrayBuffer,"%ArrayIteratorPrototype%":y?v([][Symbol.iterator]()):l,"%AsyncFromSyncIteratorPrototype%":l,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%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%":u,"%GeneratorFunction%":m,"%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%":c,"%ThrowTypeError%":g,"%TypedArray%":b,"%TypeError%":f,"%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));w["%Error.prototype%"]=_}var x=function z(B){var N;if(B==="%AsyncFunction%")N=d("async function () {}");else if(B==="%GeneratorFunction%")N=d("function* () {}");else if(B==="%AsyncGeneratorFunction%")N=d("async function* () {}");else if(B==="%AsyncGenerator%"){var j=z("%AsyncGeneratorFunction%");j&&(N=j.prototype)}else if(B==="%AsyncIteratorPrototype%"){var $=z("%AsyncGenerator%");$&&(N=v($.prototype))}return w[B]=N,N},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=r(77575),M=r(35065),S=T.call(Function.call,Array.prototype.concat),C=T.call(Function.apply,Array.prototype.splice),A=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,P=function(z,B){var N,j=z;if(M(k,j)&&(j="%"+(N=k[j])[0]+"%"),M(w,j)){var $=w[j];if($===m&&($=x(j)),$===void 0&&!B)throw new f("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:N,name:j,value:$}}throw new c("intrinsic "+z+" does not exist!")};o.exports=function(z,B){if(typeof z!="string"||z.length===0)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new f('"allowMissing" argument must be a boolean');if(O(/^%?[^%]*%?$/,z)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var N=function(Q){var Y=D(Q,0,1),Z=D(Q,-1);if(Y==="%"&&Z!=="%")throw new c("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&Y!=="%")throw new c("invalid intrinsic syntax, expected opening `%`");var X=[];return A(Q,R,function(re,ie,le,se){X[X.length]=le?A(se,F,"$1"):ie||re}),X}(z),j=N.length>0?N[0]:"",$=P("%"+j+"%",B),E=$.name,U=$.value,G=!1,L=$.alias;L&&(j=L[0],C(N,S([0,1],L)));for(var q=1,W=!0;q=N.length){var H=h(U,V);U=(W=!!H)&&"get"in H&&!("originalValue"in H.get)?H.get:U[V]}else W=M(U,V),U=U[V];W&&!G&&(w[E]=U)}}return U}},85400:function(o){o.exports=function(a,r){var l=r[0],c=r[1],u=r[2],f=r[3],d=r[4],h=r[5],p=r[6],g=r[7],y=r[8],v=r[9],m=r[10],b=r[11],w=r[12],_=r[13],x=r[14],k=r[15];return a[0]=h*(m*k-b*x)-v*(p*k-g*x)+_*(p*b-g*m),a[1]=-(c*(m*k-b*x)-v*(u*k-f*x)+_*(u*b-f*m)),a[2]=c*(p*k-g*x)-h*(u*k-f*x)+_*(u*g-f*p),a[3]=-(c*(p*b-g*m)-h*(u*b-f*m)+v*(u*g-f*p)),a[4]=-(d*(m*k-b*x)-y*(p*k-g*x)+w*(p*b-g*m)),a[5]=l*(m*k-b*x)-y*(u*k-f*x)+w*(u*b-f*m),a[6]=-(l*(p*k-g*x)-d*(u*k-f*x)+w*(u*g-f*p)),a[7]=l*(p*b-g*m)-d*(u*b-f*m)+y*(u*g-f*p),a[8]=d*(v*k-b*_)-y*(h*k-g*_)+w*(h*b-g*v),a[9]=-(l*(v*k-b*_)-y*(c*k-f*_)+w*(c*b-f*v)),a[10]=l*(h*k-g*_)-d*(c*k-f*_)+w*(c*g-f*h),a[11]=-(l*(h*b-g*v)-d*(c*b-f*v)+y*(c*g-f*h)),a[12]=-(d*(v*x-m*_)-y*(h*x-p*_)+w*(h*m-p*v)),a[13]=l*(v*x-m*_)-y*(c*x-u*_)+w*(c*m-u*v),a[14]=-(l*(h*x-p*_)-d*(c*x-u*_)+w*(c*p-u*h)),a[15]=l*(h*m-p*v)-d*(c*m-u*v)+y*(c*p-u*h),a}},42331:function(o){o.exports=function(a){var r=new Float32Array(16);return r[0]=a[0],r[1]=a[1],r[2]=a[2],r[3]=a[3],r[4]=a[4],r[5]=a[5],r[6]=a[6],r[7]=a[7],r[8]=a[8],r[9]=a[9],r[10]=a[10],r[11]=a[11],r[12]=a[12],r[13]=a[13],r[14]=a[14],r[15]=a[15],r}},31042:function(o){o.exports=function(a,r){return a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3],a[4]=r[4],a[5]=r[5],a[6]=r[6],a[7]=r[7],a[8]=r[8],a[9]=r[9],a[10]=r[10],a[11]=r[11],a[12]=r[12],a[13]=r[13],a[14]=r[14],a[15]=r[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 r=a[0],l=a[1],c=a[2],u=a[3],f=a[4],d=a[5],h=a[6],p=a[7],g=a[8],y=a[9],v=a[10],m=a[11],b=a[12],w=a[13],_=a[14],x=a[15];return(r*d-l*f)*(v*x-m*_)-(r*h-c*f)*(y*x-m*w)+(r*p-u*f)*(y*_-v*w)+(l*h-c*d)*(g*x-m*b)-(l*p-u*d)*(g*_-v*b)+(c*p-u*h)*(g*w-y*b)}},27812:function(o){o.exports=function(a,r){var l=r[0],c=r[1],u=r[2],f=r[3],d=l+l,h=c+c,p=u+u,g=l*d,y=c*d,v=c*h,m=u*d,b=u*h,w=u*p,_=f*d,x=f*h,k=f*p;return a[0]=1-v-w,a[1]=y+k,a[2]=m-x,a[3]=0,a[4]=y-k,a[5]=1-g-w,a[6]=b+_,a[7]=0,a[8]=m+x,a[9]=b-_,a[10]=1-g-v,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},34045:function(o){o.exports=function(a,r,l){var c,u,f,d=l[0],h=l[1],p=l[2],g=Math.sqrt(d*d+h*h+p*p);return Math.abs(g)<1e-6?null:(d*=g=1/g,h*=g,p*=g,c=Math.sin(r),f=1-(u=Math.cos(r)),a[0]=d*d*f+u,a[1]=h*d*f+p*c,a[2]=p*d*f-h*c,a[3]=0,a[4]=d*h*f-p*c,a[5]=h*h*f+u,a[6]=p*h*f+d*c,a[7]=0,a[8]=d*p*f+h*c,a[9]=h*p*f-d*c,a[10]=p*p*f+u,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a)}},45973:function(o){o.exports=function(a,r,l){var c=r[0],u=r[1],f=r[2],d=r[3],h=c+c,p=u+u,g=f+f,y=c*h,v=c*p,m=c*g,b=u*p,w=u*g,_=f*g,x=d*h,k=d*p,T=d*g;return a[0]=1-(b+_),a[1]=v+T,a[2]=m-k,a[3]=0,a[4]=v-T,a[5]=1-(y+_),a[6]=w+x,a[7]=0,a[8]=m+k,a[9]=w-x,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,r){return a[0]=r[0],a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=r[1],a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=r[2],a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},14669:function(o){o.exports=function(a,r){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]=r[0],a[13]=r[1],a[14]=r[2],a[15]=1,a}},75262:function(o){o.exports=function(a,r){var l=Math.sin(r),c=Math.cos(r);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=c,a[6]=l,a[7]=0,a[8]=0,a[9]=-l,a[10]=c,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},331:function(o){o.exports=function(a,r){var l=Math.sin(r),c=Math.cos(r);return a[0]=c,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]=c,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},11049:function(o){o.exports=function(a,r){var l=Math.sin(r),c=Math.cos(r);return a[0]=c,a[1]=l,a[2]=0,a[3]=0,a[4]=-l,a[5]=c,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,r,l,c,u,f,d){var h=1/(l-r),p=1/(u-c),g=1/(f-d);return a[0]=2*f*h,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=2*f*p,a[6]=0,a[7]=0,a[8]=(l+r)*h,a[9]=(u+c)*p,a[10]=(d+f)*g,a[11]=-1,a[12]=0,a[13]=0,a[14]=d*f*2*g,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,r){o.exports={create:r(11902),clone:r(42331),copy:r(31042),identity:r(71551),transpose:r(88654),invert:r(95874),adjoint:r(85400),determinant:r(89887),multiply:r(91362),translate:r(31283),scale:r(10789),rotate:r(65074),rotateX:r(35545),rotateY:r(94918),rotateZ:r(15692),fromRotation:r(34045),fromRotationTranslation:r(45973),fromScaling:r(81472),fromTranslation:r(14669),fromXRotation:r(75262),fromYRotation:r(331),fromZRotation:r(11049),fromQuat:r(27812),frustum:r(75195),perspective:r(7864),perspectiveFromFieldOfView:r(35279),ortho:r(60378),lookAt:r(65551),str:r(6726)}},95874:function(o){o.exports=function(a,r){var l=r[0],c=r[1],u=r[2],f=r[3],d=r[4],h=r[5],p=r[6],g=r[7],y=r[8],v=r[9],m=r[10],b=r[11],w=r[12],_=r[13],x=r[14],k=r[15],T=l*h-c*d,M=l*p-u*d,S=l*g-f*d,C=c*p-u*h,A=c*g-f*h,D=u*g-f*p,O=y*_-v*w,R=y*x-m*w,F=y*k-b*w,P=v*x-m*_,z=v*k-b*_,B=m*k-b*x,N=T*B-M*z+S*P+C*F-A*R+D*O;return N?(N=1/N,a[0]=(h*B-p*z+g*P)*N,a[1]=(u*z-c*B-f*P)*N,a[2]=(_*D-x*A+k*C)*N,a[3]=(m*A-v*D-b*C)*N,a[4]=(p*F-d*B-g*R)*N,a[5]=(l*B-u*F+f*R)*N,a[6]=(x*S-w*D-k*M)*N,a[7]=(y*D-m*S+b*M)*N,a[8]=(d*z-h*F+g*O)*N,a[9]=(c*F-l*z-f*O)*N,a[10]=(w*A-_*S+k*T)*N,a[11]=(v*S-y*A-b*T)*N,a[12]=(h*R-d*P-p*O)*N,a[13]=(l*P-c*R+u*O)*N,a[14]=(_*M-w*C-x*T)*N,a[15]=(y*C-v*M+m*T)*N,a):null}},65551:function(o,a,r){var l=r(71551);o.exports=function(c,u,f,d){var h,p,g,y,v,m,b,w,_,x,k=u[0],T=u[1],M=u[2],S=d[0],C=d[1],A=d[2],D=f[0],O=f[1],R=f[2];return Math.abs(k-D)<1e-6&&Math.abs(T-O)<1e-6&&Math.abs(M-R)<1e-6?l(c):(b=k-D,w=T-O,_=M-R,h=C*(_*=x=1/Math.sqrt(b*b+w*w+_*_))-A*(w*=x),p=A*(b*=x)-S*_,g=S*w-C*b,(x=Math.sqrt(h*h+p*p+g*g))?(h*=x=1/x,p*=x,g*=x):(h=0,p=0,g=0),y=w*g-_*p,v=_*h-b*g,m=b*p-w*h,(x=Math.sqrt(y*y+v*v+m*m))?(y*=x=1/x,v*=x,m*=x):(y=0,v=0,m=0),c[0]=h,c[1]=y,c[2]=b,c[3]=0,c[4]=p,c[5]=v,c[6]=w,c[7]=0,c[8]=g,c[9]=m,c[10]=_,c[11]=0,c[12]=-(h*k+p*T+g*M),c[13]=-(y*k+v*T+m*M),c[14]=-(b*k+w*T+_*M),c[15]=1,c)}},91362:function(o){o.exports=function(a,r,l){var c=r[0],u=r[1],f=r[2],d=r[3],h=r[4],p=r[5],g=r[6],y=r[7],v=r[8],m=r[9],b=r[10],w=r[11],_=r[12],x=r[13],k=r[14],T=r[15],M=l[0],S=l[1],C=l[2],A=l[3];return a[0]=M*c+S*h+C*v+A*_,a[1]=M*u+S*p+C*m+A*x,a[2]=M*f+S*g+C*b+A*k,a[3]=M*d+S*y+C*w+A*T,M=l[4],S=l[5],C=l[6],A=l[7],a[4]=M*c+S*h+C*v+A*_,a[5]=M*u+S*p+C*m+A*x,a[6]=M*f+S*g+C*b+A*k,a[7]=M*d+S*y+C*w+A*T,M=l[8],S=l[9],C=l[10],A=l[11],a[8]=M*c+S*h+C*v+A*_,a[9]=M*u+S*p+C*m+A*x,a[10]=M*f+S*g+C*b+A*k,a[11]=M*d+S*y+C*w+A*T,M=l[12],S=l[13],C=l[14],A=l[15],a[12]=M*c+S*h+C*v+A*_,a[13]=M*u+S*p+C*m+A*x,a[14]=M*f+S*g+C*b+A*k,a[15]=M*d+S*y+C*w+A*T,a}},60378:function(o){o.exports=function(a,r,l,c,u,f,d){var h=1/(r-l),p=1/(c-u),g=1/(f-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*g,a[11]=0,a[12]=(r+l)*h,a[13]=(u+c)*p,a[14]=(d+f)*g,a[15]=1,a}},7864:function(o){o.exports=function(a,r,l,c,u){var f=1/Math.tan(r/2),d=1/(c-u);return a[0]=f/l,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=f,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=(u+c)*d,a[11]=-1,a[12]=0,a[13]=0,a[14]=2*u*c*d,a[15]=0,a}},35279:function(o){o.exports=function(a,r,l,c){var u=Math.tan(r.upDegrees*Math.PI/180),f=Math.tan(r.downDegrees*Math.PI/180),d=Math.tan(r.leftDegrees*Math.PI/180),h=Math.tan(r.rightDegrees*Math.PI/180),p=2/(d+h),g=2/(u+f);return a[0]=p,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=g,a[6]=0,a[7]=0,a[8]=-(d-h)*p*.5,a[9]=(u-f)*g*.5,a[10]=c/(l-c),a[11]=-1,a[12]=0,a[13]=0,a[14]=c*l/(l-c),a[15]=0,a}},65074:function(o){o.exports=function(a,r,l,c){var u,f,d,h,p,g,y,v,m,b,w,_,x,k,T,M,S,C,A,D,O,R,F,P,z=c[0],B=c[1],N=c[2],j=Math.sqrt(z*z+B*B+N*N);return Math.abs(j)<1e-6?null:(z*=j=1/j,B*=j,N*=j,u=Math.sin(l),d=1-(f=Math.cos(l)),h=r[0],p=r[1],g=r[2],y=r[3],v=r[4],m=r[5],b=r[6],w=r[7],_=r[8],x=r[9],k=r[10],T=r[11],M=z*z*d+f,S=B*z*d+N*u,C=N*z*d-B*u,A=z*B*d-N*u,D=B*B*d+f,O=N*B*d+z*u,R=z*N*d+B*u,F=B*N*d-z*u,P=N*N*d+f,a[0]=h*M+v*S+_*C,a[1]=p*M+m*S+x*C,a[2]=g*M+b*S+k*C,a[3]=y*M+w*S+T*C,a[4]=h*A+v*D+_*O,a[5]=p*A+m*D+x*O,a[6]=g*A+b*D+k*O,a[7]=y*A+w*D+T*O,a[8]=h*R+v*F+_*P,a[9]=p*R+m*F+x*P,a[10]=g*R+b*F+k*P,a[11]=y*R+w*F+T*P,r!==a&&(a[12]=r[12],a[13]=r[13],a[14]=r[14],a[15]=r[15]),a)}},35545:function(o){o.exports=function(a,r,l){var c=Math.sin(l),u=Math.cos(l),f=r[4],d=r[5],h=r[6],p=r[7],g=r[8],y=r[9],v=r[10],m=r[11];return r!==a&&(a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3],a[12]=r[12],a[13]=r[13],a[14]=r[14],a[15]=r[15]),a[4]=f*u+g*c,a[5]=d*u+y*c,a[6]=h*u+v*c,a[7]=p*u+m*c,a[8]=g*u-f*c,a[9]=y*u-d*c,a[10]=v*u-h*c,a[11]=m*u-p*c,a}},94918:function(o){o.exports=function(a,r,l){var c=Math.sin(l),u=Math.cos(l),f=r[0],d=r[1],h=r[2],p=r[3],g=r[8],y=r[9],v=r[10],m=r[11];return r!==a&&(a[4]=r[4],a[5]=r[5],a[6]=r[6],a[7]=r[7],a[12]=r[12],a[13]=r[13],a[14]=r[14],a[15]=r[15]),a[0]=f*u-g*c,a[1]=d*u-y*c,a[2]=h*u-v*c,a[3]=p*u-m*c,a[8]=f*c+g*u,a[9]=d*c+y*u,a[10]=h*c+v*u,a[11]=p*c+m*u,a}},15692:function(o){o.exports=function(a,r,l){var c=Math.sin(l),u=Math.cos(l),f=r[0],d=r[1],h=r[2],p=r[3],g=r[4],y=r[5],v=r[6],m=r[7];return r!==a&&(a[8]=r[8],a[9]=r[9],a[10]=r[10],a[11]=r[11],a[12]=r[12],a[13]=r[13],a[14]=r[14],a[15]=r[15]),a[0]=f*u+g*c,a[1]=d*u+y*c,a[2]=h*u+v*c,a[3]=p*u+m*c,a[4]=g*u-f*c,a[5]=y*u-d*c,a[6]=v*u-h*c,a[7]=m*u-p*c,a}},10789:function(o){o.exports=function(a,r,l){var c=l[0],u=l[1],f=l[2];return a[0]=r[0]*c,a[1]=r[1]*c,a[2]=r[2]*c,a[3]=r[3]*c,a[4]=r[4]*u,a[5]=r[5]*u,a[6]=r[6]*u,a[7]=r[7]*u,a[8]=r[8]*f,a[9]=r[9]*f,a[10]=r[10]*f,a[11]=r[11]*f,a[12]=r[12],a[13]=r[13],a[14]=r[14],a[15]=r[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,r,l){var c,u,f,d,h,p,g,y,v,m,b,w,_=l[0],x=l[1],k=l[2];return r===a?(a[12]=r[0]*_+r[4]*x+r[8]*k+r[12],a[13]=r[1]*_+r[5]*x+r[9]*k+r[13],a[14]=r[2]*_+r[6]*x+r[10]*k+r[14],a[15]=r[3]*_+r[7]*x+r[11]*k+r[15]):(c=r[0],u=r[1],f=r[2],d=r[3],h=r[4],p=r[5],g=r[6],y=r[7],v=r[8],m=r[9],b=r[10],w=r[11],a[0]=c,a[1]=u,a[2]=f,a[3]=d,a[4]=h,a[5]=p,a[6]=g,a[7]=y,a[8]=v,a[9]=m,a[10]=b,a[11]=w,a[12]=c*_+h*x+v*k+r[12],a[13]=u*_+p*x+m*k+r[13],a[14]=f*_+g*x+b*k+r[14],a[15]=d*_+y*x+w*k+r[15]),a}},88654:function(o){o.exports=function(a,r){if(a===r){var l=r[1],c=r[2],u=r[3],f=r[6],d=r[7],h=r[11];a[1]=r[4],a[2]=r[8],a[3]=r[12],a[4]=l,a[6]=r[9],a[7]=r[13],a[8]=c,a[9]=f,a[11]=r[14],a[12]=u,a[13]=d,a[14]=h}else a[0]=r[0],a[1]=r[4],a[2]=r[8],a[3]=r[12],a[4]=r[1],a[5]=r[5],a[6]=r[9],a[7]=r[13],a[8]=r[2],a[9]=r[6],a[10]=r[10],a[11]=r[14],a[12]=r[3],a[13]=r[7],a[14]=r[11],a[15]=r[15];return a}},40383:function(o,a,r){var l=r(68318)("%Object.getOwnPropertyDescriptor%",!0);if(l)try{l([],"length")}catch{l=null}o.exports=l},57035:function(o,a,r){var l,c=r(54404);l=typeof r.g.matchMedia=="function"?!r.g.matchMedia("(hover: none)").matches:c,o.exports=l},38520:function(o,a,r){var l=r(54404);o.exports=l&&function(){var c=!1;try{var u=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("test",null,u),window.removeEventListener("test",null,u)}catch{c=!1}return c}()},55622:function(o,a,r){var l=r(68318)("%Object.defineProperty%",!0),c=function(){if(l)try{return l({},"a",{value:1}),!0}catch{return!1}return!1};c.hasArrayLengthDefineBug=function(){if(!c())return null;try{return l([],"length",{value:1}).length!==1}catch{return!0}},o.exports=c},57877:function(o,a,r){var l=typeof Symbol<"u"&&Symbol,c=r(35638);o.exports=function(){return typeof l=="function"&&typeof Symbol=="function"&&typeof l("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&c()}},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={},r=Symbol("test"),l=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;for(r in a[r]=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 c=Object.getOwnPropertySymbols(a);if(c.length!==1||c[0]!==r||!Object.prototype.propertyIsEnumerable.call(a,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(a,r);if(u.value!==42||u.enumerable!==!0)return!1}return!0}},84543:function(o,a,r){var l=r(35638);o.exports=function(){return l()&&!!Symbol.toStringTag}},35065:function(o,a,r){var l=r(77575);o.exports=l.call(Function.call,Object.prototype.hasOwnProperty)},95280:function(o,a){a.read=function(r,l,c,u,f){var d,h,p=8*f-u-1,g=(1<>1,v=-7,m=c?f-1:0,b=c?-1:1,w=r[l+m];for(m+=b,d=w&(1<<-v)-1,w>>=-v,v+=p;v>0;d=256*d+r[l+m],m+=b,v-=8);for(h=d&(1<<-v)-1,d>>=-v,v+=u;v>0;h=256*h+r[l+m],m+=b,v-=8);if(d===0)d=1-y;else{if(d===g)return h?NaN:1/0*(w?-1:1);h+=Math.pow(2,u),d-=y}return(w?-1:1)*h*Math.pow(2,d-u)},a.write=function(r,l,c,u,f,d){var h,p,g,y=8*d-f-1,v=(1<>1,b=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=u?0:d-1,_=u?1:-1,x=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*(g=Math.pow(2,-h))<1&&(h--,g*=2),(l+=h+m>=1?b/g:b*Math.pow(2,1-m))*g>=2&&(h++,g/=2),h+m>=v?(p=0,h=v):h+m>=1?(p=(l*g-1)*Math.pow(2,f),h+=m):(p=l*Math.pow(2,m-1)*Math.pow(2,f),h=0));f>=8;r[c+w]=255&p,w+=_,p/=256,f-=8);for(h=h<0;r[c+w]=255&h,w+=_,h/=256,y-=8);r[c+w-_]|=128*x}},42018:function(o){typeof Object.create=="function"?o.exports=function(a,r){r&&(a.super_=r,a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:o.exports=function(a,r){if(r){a.super_=r;var l=function(){};l.prototype=r.prototype,a.prototype=new l,a.prototype.constructor=a}}},47216:function(o,a,r){var l=r(84543)(),c=r(6614)("Object.prototype.toString"),u=function(h){return!(l&&h&&typeof h=="object"&&Symbol.toStringTag in h)&&c(h)==="[object Arguments]"},f=function(h){return!!u(h)||h!==null&&typeof h=="object"&&typeof h.length=="number"&&h.length>=0&&c(h)!=="[object Array]"&&c(h.callee)==="[object Function]"},d=function(){return u(arguments)}();u.isLegacyArguments=f,o.exports=d?u:f},54404:function(o){o.exports=!0},85395:function(o){var a,r,l=Function.prototype.toString,c=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof c=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw r}}),r={},c(function(){throw 42},null,a)}catch(m){m!==r&&(c=null)}else c=null;var u=/^\s*class\b/,f=function(m){try{var b=l.call(m);return u.test(b)}catch{return!1}},d=function(m){try{return!f(m)&&(l.call(m),!0)}catch{return!1}},h=Object.prototype.toString,p=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var v=document.all;h.call(v)===h.call(document.all)&&(y=function(m){if((g||!m)&&(m===void 0||typeof m=="object"))try{var b=h.call(m);return(b==="[object HTMLAllCollection]"||b==="[object HTML document.all class]"||b==="[object HTMLCollection]"||b==="[object Object]")&&m("")==null}catch{}return!1})}o.exports=c?function(m){if(y(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;try{c(m,null,a)}catch(b){if(b!==r)return!1}return!f(m)&&d(m)}:function(m){if(y(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;if(p)return d(m);if(f(m))return!1;var b=h.call(m);return!(b!=="[object Function]"&&b!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(b))&&d(m)}},65481:function(o,a,r){var l,c=Object.prototype.toString,u=Function.prototype.toString,f=/^\s*(?:function)?\*/,d=r(84543)(),h=Object.getPrototypeOf;o.exports=function(p){if(typeof p!="function")return!1;if(f.test(u.call(p)))return!0;if(!d)return c.call(p)==="[object GeneratorFunction]";if(!h)return!1;if(l===void 0){var g=function(){if(!d)return!1;try{return Function("return function*() {}")()}catch{}}();l=!!g&&h(g)}return h(p)===l}},64274:function(o){o.exports=function(a){return a!=a}},15567:function(o,a,r){var l=r(68222),c=r(17045),u=r(64274),f=r(14922),d=r(22442),h=l(f(),Number);c(h,{getPolyfill:f,implementation:u,shim:d}),o.exports=h},14922:function(o,a,r){var l=r(64274);o.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:l}},22442:function(o,a,r){var l=r(17045),c=r(14922);o.exports=function(){var u=c();return l(Number,{isNaN:u},{isNaN:function(){return Number.isNaN!==u}}),u}},18546:function(o){o.exports=function(a){for(var r,l=a.length,c=0;c13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}},9187:function(o,a,r){var l=r(31353),c=r(72077),u=r(6614),f=u("Object.prototype.toString"),d=r(84543)(),h=r(40383),p=typeof globalThis>"u"?r.g:globalThis,g=c(),y=u("Array.prototype.indexOf",!0)||function(w,_){for(var x=0;x-1}return!!h&&function(x){var k=!1;return l(m,function(T,M){if(!k)try{k=T.call(x)===M}catch{}}),k}(w)}},48956:function(o){var a={left:0,top:0};o.exports=function(r,l,c){l=l||r.currentTarget||r.srcElement,Array.isArray(c)||(c=[0,0]);var u,f=r.clientX||0,d=r.clientY||0,h=(u=l)===window||u===document||u===document.body?a:u.getBoundingClientRect();return c[0]=f-h.left,c[1]=d-h.top,c}},7417:function(o,a,r){var l,c,u,f;c="Promise",f=function(){var d,h,p,g=Object.prototype.toString,y=typeof setImmediate<"u"?function(A){return setImmediate(A)}:setTimeout;try{Object.defineProperty({},"x",{}),d=function(A,D,O,R){return Object.defineProperty(A,D,{value:O,writable:!0,configurable:R!==!1})}}catch{d=function(D,O,R){return D[O]=R,D}}function v(A,D){p.add(A,D),h||(h=y(p.drain))}function m(A){var D,O=typeof A;return A==null||O!="object"&&O!="function"||(D=A.then),typeof D=="function"&&D}function b(){for(var A=0;A0&&v(b,O))}catch(R){x.call(new T(O),R)}}}function x(A){var D=this;D.triggered||(D.triggered=!0,D.def&&(D=D.def),D.msg=A,D.state=2,D.chain.length>0&&v(b,D))}function k(A,D,O,R){for(var F=0;F"u")return!1;for(var b in window)try{if(!v["$"+b]&&c.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 w=b!==null&&typeof b=="object",_=u.call(b)==="[object Function]",x=f(b),k=w&&u.call(b)==="[object String]",T=[];if(!w&&!_&&!x)throw new TypeError("Object.keys called on a non-object");var M=p&&_;if(k&&b.length>0&&!c.call(b,0))for(var S=0;S0)for(var C=0;C"u"||!m)return y(R);try{return y(R)}catch{return!1}}(b),O=0;O=0&&a.call(r.callee)==="[object Function]"),c}},95616:function(o){o.exports=function(c){var u=[];return c.replace(r,function(f,d,h){var p=d.toLowerCase();for(h=function(g){var y=g.match(l);return y?y.map(Number):[]}(h),p=="m"&&h.length>2&&(u.push([d].concat(h.splice(0,2))),p="l",d=d=="m"?"l":"L");;){if(h.length==a[p])return h.unshift(d),u.push(h);if(h.lengthf!=b>f&&u<(m-y)*(f-v)/(b-v)+y&&(d=!d)}return d}},52142:function(o,a,r){var l,c=r(69444),u=r(29023),f=r(87263),d=r(11328),h=r(55968),p=r(10670),g=!1,y=u();function v(m,b,w){var _=l.segments(m),x=l.segments(b),k=w(l.combine(_,x));return l.polygon(k)}l={buildLog:function(m){return m===!0?g=c():m===!1&&(g=!1),g!==!1&&g.list},epsilon:function(m){return y.epsilon(m)},segments:function(m){var b=f(!0,y,g);return m.regions.forEach(b.addRegion),{segments:b.calculate(m.inverted),inverted:m.inverted}},combine:function(m,b){return{combined:f(!1,y,g).calculate(m.segments,m.inverted,b.segments,b.inverted),inverted1:m.inverted,inverted2:b.inverted}},selectUnion:function(m){return{segments:h.union(m.combined,g),inverted:m.inverted1||m.inverted2}},selectIntersect:function(m){return{segments:h.intersect(m.combined,g),inverted:m.inverted1&&m.inverted2}},selectDifference:function(m){return{segments:h.difference(m.combined,g),inverted:m.inverted1&&!m.inverted2}},selectDifferenceRev:function(m){return{segments:h.differenceRev(m.combined,g),inverted:!m.inverted1&&m.inverted2}},selectXor:function(m){return{segments:h.xor(m.combined,g),inverted:m.inverted1!==m.inverted2}},polygon:function(m){return{regions:d(m.segments,y,g),inverted:m.inverted}},polygonFromGeoJSON:function(m){return p.toPolygon(l,m)},polygonToGeoJSON:function(m){return p.fromPolygon(l,y,m)},union:function(m,b){return v(m,b,l.selectUnion)},intersect:function(m,b){return v(m,b,l.selectIntersect)},difference:function(m,b){return v(m,b,l.selectDifference)},differenceRev:function(m,b){return v(m,b,l.selectDifferenceRev)},xor:function(m,b){return v(m,b,l.selectXor)}},typeof window=="object"&&(window.PolyBool=l),o.exports=l},69444:function(o){o.exports=function(){var a,r=0,l=!1;function c(u,f){return a.list.push({type:u,data:f?JSON.parse(JSON.stringify(f)):void 0}),a}return a={list:[],segmentId:function(){return r++},checkIntersection:function(u,f){return c("check",{seg1:u,seg2:f})},segmentChop:function(u,f){return c("div_seg",{seg:u,pt:f}),c("chop",{seg:u,pt:f})},statusRemove:function(u){return c("pop_seg",{seg:u})},segmentUpdate:function(u){return c("seg_update",{seg:u})},segmentNew:function(u,f){return c("new_seg",{seg:u,primary:f})},segmentRemove:function(u){return c("rem_seg",{seg:u})},tempStatus:function(u,f,d){return c("temp_status",{seg:u,above:f,below:d})},rewind:function(u){return c("rewind",{seg:u})},status:function(u,f,d){return c("status",{seg:u,above:f,below:d})},vert:function(u){return u===l?a:(l=u,c("vert",{x:u}))},log:function(u){return typeof u!="string"&&(u=JSON.stringify(u,!1," ")),c("log",{txt:u})},reset:function(){return c("reset")},selected:function(u){return c("selected",{segs:u})},chainStart:function(u){return c("chain_start",{seg:u})},chainRemoveHead:function(u,f){return c("chain_rem_head",{index:u,pt:f})},chainRemoveTail:function(u,f){return c("chain_rem_tail",{index:u,pt:f})},chainNew:function(u,f){return c("chain_new",{pt1:u,pt2:f})},chainMatch:function(u){return c("chain_match",{index:u})},chainClose:function(u){return c("chain_close",{index:u})},chainAddHead:function(u,f){return c("chain_add_head",{index:u,pt:f})},chainAddTail:function(u,f){return c("chain_add_tail",{index:u,pt:f})},chainConnect:function(u,f){return c("chain_con",{index1:u,index2:f})},chainReverse:function(u){return c("chain_rev",{index:u})},chainJoin:function(u,f){return c("chain_join",{index1:u,index2:f})},done:function(){return c("done")}}}},29023:function(o){o.exports=function(a){typeof a!="number"&&(a=1e-10);var r={epsilon:function(l){return typeof l=="number"&&(a=l),a},pointAboveOrOnLine:function(l,c,u){var f=c[0],d=c[1],h=u[0],p=u[1],g=l[0];return(h-f)*(l[1]-d)-(p-d)*(g-f)>=-a},pointBetween:function(l,c,u){var f=l[1]-c[1],d=u[0]-c[0],h=l[0]-c[0],p=u[1]-c[1],g=h*d+f*p;return!(g-a)},pointsSameX:function(l,c){return Math.abs(l[0]-c[0])a!=h-f>a&&(d-y)*(f-v)/(h-v)+y-u>a&&(p=!p),d=y,h=v}return p}};return r}},10670:function(o){var a={toPolygon:function(r,l){function c(d){if(d.length<=0)return r.segments({inverted:!1,regions:[]});function h(y){var v=y.slice(0,y.length-1);return r.segments({inverted:!1,regions:[v]})}for(var p=h(d[0]),g=1;g0})}function x(P,z){var B=P.seg,N=z.seg,j=B.start,$=B.end,E=N.start,U=N.end;f&&f.checkIntersection(B,N);var G=u.linesIntersect(j,$,E,U);if(G===!1){if(!u.pointsCollinear(j,$,E)||u.pointsSame(j,U)||u.pointsSame($,E))return!1;var L=u.pointsSame(j,E),q=u.pointsSame($,U);if(L&&q)return z;var W=!L&&u.pointBetween(j,E,U),V=!q&&u.pointBetween($,E,U);if(L)return V?y(z,$):y(P,U),z;W&&(q||(V?y(z,$):y(P,U)),y(z,j))}else G.alongA===0&&(G.alongB===-1?y(P,E):G.alongB===0?y(P,G.pt):G.alongB===1&&y(P,U)),G.alongB===0&&(G.alongA===-1?y(z,j):G.alongA===0?y(z,G.pt):G.alongA===1&&y(z,$));return!1}for(var k=[];!h.isEmpty();){var T=h.getHead();if(f&&f.vert(T.pt[0]),T.isStart){let P=function(){if(S){var z=x(T,S);if(z)return z}return!!C&&x(T,C)};f&&f.segmentNew(T.seg,T.primary);var M=_(T),S=M.before?M.before.ev:null,C=M.after?M.after.ev:null;f&&f.tempStatus(T.seg,!!S&&S.seg,!!C&&C.seg);var A,D,O=P();if(O&&(c?(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,f&&f.segmentUpdate(O.seg),T.other.remove(),T.remove()),h.getHead()!==T){f&&f.rewind(T.seg);continue}c?(D=T.seg.myFill.below===null||T.seg.myFill.above!==T.seg.myFill.below,T.seg.myFill.below=C?C.seg.myFill.above:m,T.seg.myFill.above=D?!T.seg.myFill.below:T.seg.myFill.below):T.seg.otherFill===null&&(A=C?T.primary===C.primary?C.seg.otherFill.above:C.seg.myFill.above:T.primary?b:m,T.seg.otherFill={above:A,below:A}),f&&f.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(w.exists(R.prev)&&w.exists(R.next)&&x(R.prev.ev,R.next.ev),f&&f.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 f&&f.done(),k}return c?{addRegion:function(m){for(var b,w,_,x=m[m.length-1],k=0;k0&&!this.aborted;){var f=this.ifds_to_read.shift();f.offset&&this.scan_ifd(f.id,f.offset,c)}},l.prototype.read_uint16=function(c){var u=this.input;if(c+2>u.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?256*u[c]+u[c+1]:u[c]+256*u[c+1]},l.prototype.read_uint32=function(c){var u=this.input;if(c+4>u.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?16777216*u[c]+65536*u[c+1]+256*u[c+2]+u[c+3]:u[c]+256*u[c+1]+65536*u[c+2]+16777216*u[c+3]},l.prototype.is_subifd_link=function(c,u){return c===0&&u===34665||c===0&&u===34853||c===34665&&u===40965},l.prototype.exif_format_length=function(c){switch(c){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(c,u){var f;switch(c){case 1:case 2:return this.input[u];case 6:return(f=this.input[u])|33554430*(128&f);case 3:return this.read_uint16(u);case 8:return(f=this.read_uint16(u))|131070*(32768&f);case 4:return this.read_uint32(u);case 9:return 0|this.read_uint32(u);default:return null}},l.prototype.scan_ifd=function(c,u,f){var d=this.read_uint16(u);u+=2;for(var h=0;hthis.input.length)throw a("unexpected EOF","EBADDATA");for(var _=[],x=b,k=0;k0&&(this.ifds_to_read.push({id:p,offset:_[0]}),w=!0),f({is_big_endian:this.big_endian,ifd:c,tag:p,format:g,count:y,entry_offset:u+this.start,data_length:m,data_offset:b+this.start,value:_,is_subifd_link:w})===!1)return void(this.aborted=!0);u+=12}c===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(u)})},o.exports.ExifParser=l,o.exports.get_orientation=function(c){var u=0;try{return new l(c,0,c.length).each(function(f){if(f.ifd===0&&f.tag===274&&Array.isArray(f.value))return u=f.value[0],!1}),u}catch{return-1}}},76767:function(o,a,r){var l=r(14847).n8,c=r(14847).Ag;function u(y,v){if(y.length<4+v)return null;var m=c(y,v);return y.length>4&15,b=15&y[4],w=y[5]>>4&15,_=l(y,6),x=8,k=0;k<_;k++){var T=l(y,x),M=l(y,x+=2),S=d(y,x+=2,w),C=l(y,x+=w);if(x+=2,M===0&&C===1){var A=d(y,x,m),D=d(y,x+m,b);v.item_loc[T]={length:D,offset:A+S}}x+=C*(m+b)}}function p(y,v){for(var m=l(y,4),b=6,w=0;wM.width||T.width===M.width&&T.height>M.height?T:M}),w=m.reduce(function(T,M){return T.height>M.height||T.height===M.height&&T.width>M.width?T:M}),b.width>w.height||b.width===w.height&&b.height>w.width?b:w),x=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"&&(x=T.value===0?S[x]:M[x=M[x=S[x]]]),T.type==="irot")for(var C=0;C1&&(_.variants=w.variants),w.orientation&&(_.orientation=w.orientation),w.exif_location&&w.exif_location.offset+w.exif_location.length<=p.length){var x=u(p,w.exif_location.offset),k=p.slice(w.exif_location.offset+x+4,w.exif_location.offset+w.exif_location.length),T=d.get_orientation(k);T>0&&(_.orientation=T)}return _}}}}}}},2504:function(o,a,r){var l=r(14847).eG,c=r(14847).OF,u=r(14847).mP,f=l("BM");o.exports=function(d){if(!(d.length<26)&&c(d,0,f))return{width:u(d,18),height:u(d,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},47342:function(o,a,r){var l=r(14847).eG,c=r(14847).OF,u=r(14847).mP,f=l("GIF87a"),d=l("GIF89a");o.exports=function(h){if(!(h.length<10)&&(c(h,0,f)||c(h,0,d)))return{width:u(h,6),height:u(h,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},31355:function(o,a,r){var l=r(14847).mP;o.exports=function(c){var u=l(c,0),f=l(c,2),d=l(c,4);if(u===0&&f===1&&d){for(var h=[],p={width:0,height:0},g=0;gp.width||v>p.height)&&(p=m)}return{width:p.width,height:p.height,variants:h,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},54261:function(o,a,r){var l=r(14847).n8,c=r(14847).eG,u=r(14847).OF,f=r(71371),d=c("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 g,y,v=h[p++];v===255;)v=h[p++];if(208<=v&&v<=217||v===1)g=0;else{if(!(192<=v&&v<=254)||h.length-p<2)return;g=l(h,p)-2,p+=2}if(v===217||v===218)return;if(v===225&&g>=10&&u(h,p,d)&&(y=f.get_orientation(h.slice(p+6,p+g))),g>=5&&192<=v&&v<=207&&v!==196&&v!==200&&v!==204){if(h.length-p0&&(m.orientation=y),m}p+=g}}},6303:function(o,a,r){var l=r(14847).eG,c=r(14847).OF,u=r(14847).Ag,f=l(`‰PNG\r + +`),d=l("IHDR");o.exports=function(h){if(!(h.length<24)&&c(h,0,f)&&c(h,12,d))return{width:u(h,16),height:u(h,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},38689:function(o,a,r){var l=r(14847).eG,c=r(14847).OF,u=r(14847).Ag,f=l("8BPS\0");o.exports=function(d){if(!(d.length<22)&&c(d,0,f))return{width:u(d,18),height:u(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 r=/<[-_.:a-zA-Z0-9][^>]*>/,l=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,c=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,u=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,f=/\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,A=0,D=S.length;for(S[0]===239&&S[1]===187&&S[2]===191&&(A=3);A>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function v(m,b){return{width:1+(m[b+6]<<16|m[b+5]<<8|m[b+4]),height:1+(m[b+9]<m.length)){for(;b+8=10?w=w||g(m,b+8):k==="VP8L"&&T>=9?w=w||y(m,b+8):k==="VP8X"&&T>=10?w=w||v(m,b+8):k==="EXIF"&&(_=d.get_orientation(m.slice(b+8,b+8+T)),b=1/0),b+=8+T}else b++;if(w)return _>0&&(w.orientation=_),w}}}},91497:function(o,a,r){o.exports={avif:r(24461),bmp:r(2504),gif:r(47342),ico:r(31355),jpeg:r(54261),png:r(6303),psd:r(38689),svg:r(6881),tiff:r(66278),webp:r(90784)}},33575:function(o,a,r){var l=r(91497);o.exports=function(c){return function(u){for(var f=Object.keys(l),d=0;d1)for(var x=1;x2?"one of ".concat(u," ").concat(c.slice(0,f-1).join(", "),", or ")+c[f-1]:f===2?"one of ".concat(u," ").concat(c[0]," or ").concat(c[1]):"of ".concat(u," ").concat(c[0])}return"of ".concat(u," ").concat(String(c))}r("ERR_INVALID_OPT_VALUE",function(c,u){return'The value "'+u+'" is invalid for option "'+c+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(c,u,f){var d,h,p,g,y;if(typeof u=="string"&&(h="not ",u.substr(0,4)===h)?(d="must not be",u=u.replace(/^not /,"")):d="must be",function(m,b,w){return(w===void 0||w>m.length)&&(w=m.length),m.substring(w-9,w)===b}(c," argument"))p="The ".concat(c," ").concat(d," ").concat(l(u,"type"));else{var v=(typeof y!="number"&&(y=0),y+1>(g=c).length||g.indexOf(".",y)===-1?"argument":"property");p='The "'.concat(c,'" ').concat(v," ").concat(d," ").concat(l(u,"type"))}return p+". Received type ".concat(typeof f)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(c){return"The "+c+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(c){return"Cannot call "+c+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(c){return"Unknown encoding: "+c},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),o.exports.q=a},37865:function(o,a,r){var l=r(90386),c=Object.keys||function(m){var b=[];for(var w in m)b.push(w);return b};o.exports=g;var u=r(40410),f=r(37493);r(42018)(g,u);for(var d=c(f.prototype),h=0;h0)if(typeof H=="string"||re.objectMode||Object.getPrototypeOf(H)===h.prototype||(H=function(ie){return h.from(ie)}(H)),Y)re.endEmitted?C(ee,new S):F(ee,re,H,!0);else if(re.ended)C(ee,new T);else{if(re.destroyed)return!1;re.reading=!1,re.decoder&&!Q?(H=re.decoder.write(H),re.objectMode||H.length!==0?F(ee,re,H,!1):j(ee,re)):F(ee,re,H,!1)}else Y||(re.reading=!1,j(ee,re));return!re.ended&&(re.lengthH.highWaterMark&&(H.highWaterMark=function(Q){return Q>=P?Q=P:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}(ee)),ee<=H.length?ee:H.ended?H.length:(H.needReadable=!0,0))}function B(ee){var H=ee._readableState;u("emitReadable",H.needReadable,H.emittedReadable),H.needReadable=!1,H.emittedReadable||(u("emitReadable",H.flowing),H.emittedReadable=!0,c.nextTick(N,ee))}function N(ee){var H=ee._readableState;u("emitReadable_",H.destroyed,H.length,H.ended),H.destroyed||!H.length&&!H.ended||(ee.emit("readable"),H.emittedReadable=!1),H.needReadable=!H.flowing&&!H.ended&&H.length<=H.highWaterMark,L(ee)}function j(ee,H){H.readingMore||(H.readingMore=!0,c.nextTick($,ee,H))}function $(ee,H){for(;!H.reading&&!H.ended&&(H.length0,H.resumeScheduled&&!H.paused?H.flowing=!0:ee.listenerCount("data")>0&&ee.resume()}function U(ee){u("readable nexttick read 0"),ee.read(0)}function G(ee,H){u("resume",H.reading),H.reading||ee.read(0),H.resumeScheduled=!1,ee.emit("resume"),L(ee),H.flowing&&!H.reading&&ee.read(0)}function L(ee){var H=ee._readableState;for(u("flow",H.flowing);H.flowing&&ee.read()!==null;);}function q(ee,H){return H.length===0?null:(H.objectMode?Q=H.buffer.shift():!ee||ee>=H.length?(Q=H.decoder?H.buffer.join(""):H.buffer.length===1?H.buffer.first():H.buffer.concat(H.length),H.buffer.clear()):Q=H.buffer.consume(ee,H.decoder),Q);var Q}function W(ee){var H=ee._readableState;u("endReadable",H.endEmitted),H.endEmitted||(H.ended=!0,c.nextTick(V,H,ee))}function V(ee,H){if(u("endReadableNT",ee.endEmitted,ee.length),!ee.endEmitted&&ee.length===0&&(ee.endEmitted=!0,H.readable=!1,H.emit("end"),ee.autoDestroy)){var Q=H._writableState;(!Q||Q.autoDestroy&&Q.finished)&&H.destroy()}}function te(ee,H){for(var Q=0,Y=ee.length;Q=H.highWaterMark:H.length>0)||H.ended))return u("read: emitReadable",H.length,H.ended),H.length===0&&H.ended?W(this):B(this),null;if((ee=z(ee,H))===0&&H.ended)return H.length===0&&W(this),null;var Y,Z=H.needReadable;return u("need readable",Z),(H.length===0||H.length-ee0?q(ee,H):null)===null?(H.needReadable=H.length<=H.highWaterMark,ee=0):(H.length-=ee,H.awaitDrain=0),H.length===0&&(H.ended||(H.needReadable=!0),Q!==ee&&H.ended&&W(this)),Y!==null&&this.emit("data",Y),Y},O.prototype._read=function(ee){C(this,new M("_read()"))},O.prototype.pipe=function(ee,H){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,u("pipe count=%d opts=%j",Y.pipesCount,H);var Z=H&&H.end===!1||ee===c.stdout||ee===c.stderr?Se:X;function X(){u("onend"),ee.end()}Y.endEmitted?c.nextTick(Z):Q.once("end",Z),ee.on("unpipe",function Oe(Me,ce){u("onunpipe"),Me===Q&&ce&&ce.hasUnpiped===!1&&(ce.hasUnpiped=!0,u("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;u("pipeOnDrain",Me.awaitDrain),Me.awaitDrain&&Me.awaitDrain--,Me.awaitDrain===0&&f(Oe,"data")&&(Me.flowing=!0,L(Oe))}}(Q);ee.on("drain",re);var ie=!1;function le(Oe){u("ondata");var Me=ee.write(Oe);u("dest.write",Me),Me===!1&&((Y.pipesCount===1&&Y.pipes===ee||Y.pipesCount>1&&te(Y.pipes,ee)!==-1)&&!ie&&(u("false write response, pause",Y.awaitDrain),Y.awaitDrain++),Q.pause())}function se(Oe){u("onerror",Oe),Se(),ee.removeListener("error",se),f(ee,"error")===0&&C(ee,Oe)}function pe(){ee.removeListener("finish",Te),Se()}function Te(){u("onfinish"),ee.removeListener("close",pe),Se()}function Se(){u("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||(u("pipe resume"),Q.resume()),ee},O.prototype.unpipe=function(ee){var H=this._readableState,Q={hasUnpiped:!1};if(H.pipesCount===0)return this;if(H.pipesCount===1)return ee&&ee!==H.pipes||(ee||(ee=H.pipes),H.pipes=null,H.pipesCount=0,H.flowing=!1,ee&&ee.emit("unpipe",this,Q)),this;if(!ee){var Y=H.pipes,Z=H.pipesCount;H.pipes=null,H.pipesCount=0,H.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,u("on readable",Y.length,Y.reading),Y.length?B(this):Y.reading||c.nextTick(U,this))),Q},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(ee,H){var Q=d.prototype.removeListener.call(this,ee,H);return ee==="readable"&&c.nextTick(E,this),Q},O.prototype.removeAllListeners=function(ee){var H=d.prototype.removeAllListeners.apply(this,arguments);return ee!=="readable"&&ee!==void 0||c.nextTick(E,this),H},O.prototype.resume=function(){var ee=this._readableState;return ee.flowing||(u("resume"),ee.flowing=!ee.readableListening,function(H,Q){Q.resumeScheduled||(Q.resumeScheduled=!0,c.nextTick(G,H,Q))}(this,ee)),ee.paused=!1,this},O.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(ee){var H=this,Q=this._readableState,Y=!1;for(var Z in ee.on("end",function(){if(u("wrapped end"),Q.decoder&&!Q.ended){var re=Q.decoder.end();re&&re.length&&H.push(re)}H.push(null)}),ee.on("data",function(re){u("wrapped data"),Q.decoder&&(re=Q.decoder.write(re)),Q.objectMode&&re==null||(Q.objectMode||re&&re.length)&&(H.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,$,E){E(new w("_write()"))},O.prototype._writev=null,O.prototype.end=function(j,$,E){var U=this._writableState;return typeof j=="function"?(E=j,j=null,$=null):typeof $=="function"&&(E=$,$=null),j!=null&&this.write(j,$),U.corked&&(U.corked=1,this.uncork()),U.ending||function(G,L,q){L.ending=!0,N(G,L),q&&(L.finished?c.nextTick(q):G.once("finish",q)),L.ended=!0,G.writable=!1}(this,U,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,$){$(j)}},68221:function(o,a,r){var l,c=r(90386);function u(T,M,S){return M in T?Object.defineProperty(T,M,{value:S,enumerable:!0,configurable:!0,writable:!0}):T[M]=S,T}var f=r(12726),d=Symbol("lastResolve"),h=Symbol("lastReject"),p=Symbol("error"),g=Symbol("ended"),y=Symbol("lastPromise"),v=Symbol("handlePromise"),m=Symbol("stream");function b(T,M){return{value:T,done:M}}function w(T){var M=T[d];if(M!==null){var S=T[m].read();S!==null&&(T[y]=null,T[d]=null,T[h]=null,M(b(S,!1)))}}function _(T){c.nextTick(w,T)}var x=Object.getPrototypeOf(function(){}),k=Object.setPrototypeOf((u(l={get stream(){return this[m]},next:function(){var T=this,M=this[p];if(M!==null)return Promise.reject(M);if(this[g])return Promise.resolve(b(void 0,!0));if(this[m].destroyed)return new Promise(function(D,O){c.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[g]?R(b(void 0,!0)):O[v](R,F)},F)}}(C,this));else{var A=this[m].read();if(A!==null)return Promise.resolve(b(A,!1));S=new Promise(this[v])}return this[y]=S,S}},Symbol.asyncIterator,function(){return this}),u(l,"return",function(){var T=this;return new Promise(function(M,S){T[m].destroy(null,function(C){C?S(C):M(b(void 0,!0))})})}),l),x);o.exports=function(T){var M,S=Object.create(k,(u(M={},m,{value:T,writable:!0}),u(M,d,{value:null,writable:!0}),u(M,h,{value:null,writable:!0}),u(M,p,{value:null,writable:!0}),u(M,g,{value:T._readableState.endEmitted,writable:!0}),u(M,v,{value:function(C,A){var D=S[m].read();D?(S[y]=null,S[d]=null,S[h]=null,C(b(D,!1))):(S[d]=C,S[h]=A)},writable:!0}),M));return S[y]=null,f(T,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var A=S[h];return A!==null&&(S[y]=null,S[d]=null,S[h]=null,A(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[g]=!0}),T.on("readable",_.bind(null,S)),S}},31125:function(o,a,r){function l(p,g){var y=Object.keys(p);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(p);g&&(v=v.filter(function(m){return Object.getOwnPropertyDescriptor(p,m).enumerable})),y.push.apply(y,v)}return y}function c(p,g,y){return g in p?Object.defineProperty(p,g,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[g]=y,p}function u(p,g){for(var y=0;y0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:"unshift",value:function(v){var m={data:v,next:this.head};this.length===0&&(this.tail=m),this.head=m,++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 m=this.head,b=""+m.data;m=m.next;)b+=v+m.data;return b}},{key:"concat",value:function(v){if(this.length===0)return f.alloc(0);for(var m,b,w,_=f.allocUnsafe(v>>>0),x=this.head,k=0;x;)m=x.data,b=_,w=k,f.prototype.copy.call(m,b,w),k+=x.data.length,x=x.next;return _}},{key:"consume",value:function(v,m){var b;return v_.length?_.length:v;if(x===_.length?w+=_:w+=_.slice(0,v),(v-=x)==0){x===_.length?(++b,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=_.slice(x));break}++b}return this.length-=b,w}},{key:"_getBuffer",value:function(v){var m=f.allocUnsafe(v),b=this.head,w=1;for(b.data.copy(m),v-=b.data.length;b=b.next;){var _=b.data,x=v>_.length?_.length:v;if(_.copy(m,m.length-v,0,x),(v-=x)==0){x===_.length?(++w,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=_.slice(x));break}++w}return this.length-=w,m}},{key:h,value:function(v,m){return d(this,function(b){for(var w=1;w0,function(T){m||(m=T),T&&w.forEach(h),k||(w.forEach(h),b(m))})});return y.reduce(p)}},56306:function(o,a,r){var l=r(74322).q.ERR_INVALID_OPT_VALUE;o.exports={getHighWaterMark:function(c,u,f,d){var h=function(p,g,y){return p.highWaterMark!=null?p.highWaterMark:g?p[y]:null}(u,d,f);if(h!=null){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new l(d?f:"highWaterMark",h);return Math.floor(h)}return c.objectMode?16:16384}}},71405:function(o,a,r){o.exports=r(15398).EventEmitter},68019:function(o,a,r){var l=r(71665).Buffer,c=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 u(b){var w;switch(this.encoding=function(_){var x=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 x!="string"&&(l.isEncoding===c||!c(_)))throw new Error("Unknown encoding: "+_);return x||_}(b),this.encoding){case"utf16le":this.text=h,this.end=p,w=4;break;case"utf8":this.fillLast=d,w=4;break;case"base64":this.text=g,this.end=y,w=3;break;default:return this.write=v,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=l.allocUnsafe(w)}function f(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 w=this.lastTotal-this.lastNeed,_=function(x,k,T){if((192&k[0])!=128)return x.lastNeed=0,"�";if(x.lastNeed>1&&k.length>1){if((192&k[1])!=128)return x.lastNeed=1,"�";if(x.lastNeed>2&&k.length>2&&(192&k[2])!=128)return x.lastNeed=2,"�"}}(this,b);return _!==void 0?_:this.lastNeed<=b.length?(b.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(b.copy(this.lastChar,w,0,b.length),void(this.lastNeed-=b.length))}function h(b,w){if((b.length-w)%2==0){var _=b.toString("utf16le",w);if(_){var x=_.charCodeAt(_.length-1);if(x>=55296&&x<=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",w,b.length-1)}function p(b){var w=b&&b.length?this.write(b):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,_)}return w}function g(b,w){var _=(b.length-w)%3;return _===0?b.toString("base64",w):(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",w,b.length-_))}function y(b){var w=b&&b.length?this.write(b):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function v(b){return b.toString(this.encoding)}function m(b){return b&&b.length?this.write(b):""}a.s=u,u.prototype.write=function(b){if(b.length===0)return"";var w,_;if(this.lastNeed){if((w=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,w);if(!this.lastNeed)return b.toString("utf8",w);this.lastTotal=_;var x=b.length-(_-this.lastNeed);return b.copy(this.lastChar,0,x),b.toString("utf8",w,x)},u.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,r){var l=r(32791),c=r(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");c("extending Parser into stream"),k._bytes=g,k._skipBytes=y,T&&(k._passthrough=v),T?k._transform=b:k._write=m};var u=-1,f=0,d=1,h=2;function p(k){c("initializing parser stream"),k._parserBytesLeft=0,k._parserBuffers=[],k._parserBuffered=0,k._parserState=u,k._parserCallback=null,typeof k.push=="function"&&(k._parserOutput=k.push.bind(k)),k._parserInit=!0}function g(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),c("buffering %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=f}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),c("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),c("passing through %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=h}function m(k,T,M){this._parserInit||p(this),c("write(%o bytes)",k.length),typeof T=="function"&&(M=T),_(this,k,null,M)}function b(k,T,M){this._parserInit||p(this),c("transform(%o bytes)",k.length),typeof T!="function"&&(T=this._parserOutput),_(this,k,T,M)}function w(k,T,M,S){if(k._parserBytesLeft-=T.length,c("%o bytes left for stream piece",k._parserBytesLeft),k._parserState===f?(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===f&&k._parserBuffers.length>1&&(T=Buffer.concat(k._parserBuffers,k._parserBuffered)),k._parserState!==f&&(T=null),k._parserCallback=null,k._parserBuffered=0,k._parserState=u,k._parserBuffers.splice(0),C){var A=[];T&&A.push(T),M&&A.push(M);var D=C.length>A.length;D&&A.push(x(S));var O=C.apply(k,A);if(!D||S===O)return S}}var _=x(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 w(T,M,S,C)}:function(){var A=M.slice(0,T._parserBytesLeft);return w(T,A,S,function(D){return D?C(D):M.length>A.length?function(){return k(T,M.slice(A.length),S,C)}:void 0})}});function x(k){return function(){for(var T=k.apply(this,arguments);typeof T=="function";)T=T();return T}}},41633:function(o,a,r){var l=r(90386);function c(){var u;try{u=a.storage.debug}catch{}return!u&&l!==void 0&&"env"in l&&(u=l.env.DEBUG),u}(a=o.exports=r(74469)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},a.formatArgs=function(u){var f=this.useColors;if(u[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+u[0]+(f?"%c ":" ")+"+"+a.humanize(this.diff),f){var d="color: "+this.color;u.splice(1,0,d,"color: inherit");var h=0,p=0;u[0].replace(/%[a-zA-Z%]/g,function(g){g!=="%%"&&(h++,g==="%c"&&(p=h))}),u.splice(p,0,d)}},a.save=function(u){try{u==null?a.storage.removeItem("debug"):a.storage.debug=u}catch{}},a.load=c,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(u){try{return JSON.stringify(u)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}},a.enable(c())},74469:function(o,a,r){var l;function c(u){function f(){if(f.enabled){var d=f,h=+new Date,p=h-(l||h);d.diff=p,d.prev=l,d.curr=h,l=h;for(var g=new Array(arguments.length),y=0;y0)return function(g){if(!((g=String(g)).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(g);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*c;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*r;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}}}}(f);if(p==="number"&&isNaN(f)===!1)return d.long?u(h=f,c,"day")||u(h,l,"hour")||u(h,r,"minute")||u(h,a,"second")||h+" ms":function(g){return g>=c?Math.round(g/c)+"d":g>=l?Math.round(g/l)+"h":g>=r?Math.round(g/r)+"m":g>=a?Math.round(g/a)+"s":g+"ms"}(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))}},84267:function(o,a,r){var l;(function(c){var u=/^\s+/,f=/\s+$/,d=0,h=c.round,p=c.min,g=c.max,y=c.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(u,"").replace(f,"").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=H.rgb.exec(J))?{r:ne[1],g:ne[2],b:ne[3]}:(ne=H.rgba.exec(J))?{r:ne[1],g:ne[2],b:ne[3],a:ne[4]}:(ne=H.hsl.exec(J))?{h:ne[1],s:ne[2],l:ne[3]}:(ne=H.hsla.exec(J))?{h:ne[1],s:ne[2],l:ne[3],a:ne[4]}:(ne=H.hsv.exec(J))?{h:ne[1],s:ne[2],v:ne[3]}:(ne=H.hsva.exec(J))?{h:ne[1],s:ne[2],v:ne[3],a:ne[4]}:(ne=H.hex8.exec(J))?{r:U(ne[1]),g:U(ne[2]),b:U(ne[3]),a:W(ne[4]),format:de?"name":"hex8"}:(ne=H.hex6.exec(J))?{r:U(ne[1]),g:U(ne[2]),b:U(ne[3]),format:de?"name":"hex"}:(ne=H.hex4.exec(J))?{r:U(ne[1]+""+ne[1]),g:U(ne[2]+""+ne[2]),b:U(ne[3]+""+ne[3]),a:W(ne[4]+""+ne[4]),format:de?"name":"hex8"}:!!(ne=H.hex3.exec(J))&&{r:U(ne[1]+""+ne[1]),g:U(ne[2]+""+ne[2]),b:U(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*$(ie,255),g:255*$(le,255),b:255*$(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*$(J,360),ne=$(ne,100),de=$(de,100);var xe=c.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(Pe,Ee,De){return De<0&&(De+=1),De>1&&(De-=1),De<1/6?Pe+6*(Ee-Pe)*De:De<.5?Ee:De<2/3?Pe+(Ee-Pe)*(2/3-De)*6:Pe}if(J=$(J,360),ne=$(ne,100),de=$(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,g(pe.r,0)),g:p(255,g(pe.g,0)),b:p(255,g(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 m(Y,Z,X){Y=$(Y,255),Z=$(Z,255),X=$(X,255);var re,ie,le=g(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:c.pow((Y+.055)/1.055,2.4))+.7152*(Z<=.03928?Z/12.92:c.pow((Z+.055)/1.055,2.4))+.0722*(X<=.03928?X/12.92:c.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=m(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=m(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 w(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*$(this._r,255))+"%",g:h(100*$(this._g,255))+"%",b:h(100*$(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+h(100*$(this._r,255))+"%, "+h(100*$(this._g,255))+"%, "+h(100*$(this._b,255))+"%)":"rgba("+h(100*$(this._r,255))+"%, "+h(100*$(this._g,255))+"%, "+h(100*$(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(N[w(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(x,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(Y,Z){return Y.apply(null,[this].concat([].slice.call(Z)))},analogous:function(){return this._applyCombination(P,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(c.max(X.getLuminance(),re.getLuminance())+.05)/(c.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"},N=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 $(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,g(0,parseFloat(Y))),X&&(Y=parseInt(Y*Z,10)/100),c.abs(Y-Z)<1e-6?1:Y%Z/parseFloat(Z)}function E(Y){return p(1,g(0,Y))}function U(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 c.round(255*parseFloat(Y)).toString(16)}function W(Y){return U(Y)/255}var V,te,ee,H=(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!!H.CSS_UNIT.exec(Y)}o.exports?o.exports=v:(l=(function(){return v}).call(a,r,a,o))===void 0||(o.exports=l)})(Math)},20588:function(o,a,r){function l(c){try{if(!r.g.localStorage)return!1}catch{return!1}var u=r.g.localStorage[c];return u!=null&&String(u).toLowerCase()==="true"}o.exports=function(c,u){if(l("noDeprecation"))return c;var f=!1;return function(){if(!f){if(l("throwDeprecation"))throw new Error(u);l("traceDeprecation")?console.trace(u):console.warn(u),f=!0}return c.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,r){var l=r(47216),c=r(65481),u=r(21099),f=r(9187);function d($){return $.call.bind($)}var h=typeof BigInt<"u",p=typeof Symbol<"u",g=d(Object.prototype.toString),y=d(Number.prototype.valueOf),v=d(String.prototype.valueOf),m=d(Boolean.prototype.valueOf);if(h)var b=d(BigInt.prototype.valueOf);if(p)var w=d(Symbol.prototype.valueOf);function _($,E){if(typeof $!="object")return!1;try{return E($),!0}catch{return!1}}function x($){return g($)==="[object Map]"}function k($){return g($)==="[object Set]"}function T($){return g($)==="[object WeakMap]"}function M($){return g($)==="[object WeakSet]"}function S($){return g($)==="[object ArrayBuffer]"}function C($){return typeof ArrayBuffer<"u"&&(S.working?S($):$ instanceof ArrayBuffer)}function A($){return g($)==="[object DataView]"}function D($){return typeof DataView<"u"&&(A.working?A($):$ instanceof DataView)}a.isArgumentsObject=l,a.isGeneratorFunction=c,a.isTypedArray=f,a.isPromise=function($){return typeof Promise<"u"&&$ instanceof Promise||$!==null&&typeof $=="object"&&typeof $.then=="function"&&typeof $.catch=="function"},a.isArrayBufferView=function($){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView($):f($)||D($)},a.isUint8Array=function($){return u($)==="Uint8Array"},a.isUint8ClampedArray=function($){return u($)==="Uint8ClampedArray"},a.isUint16Array=function($){return u($)==="Uint16Array"},a.isUint32Array=function($){return u($)==="Uint32Array"},a.isInt8Array=function($){return u($)==="Int8Array"},a.isInt16Array=function($){return u($)==="Int16Array"},a.isInt32Array=function($){return u($)==="Int32Array"},a.isFloat32Array=function($){return u($)==="Float32Array"},a.isFloat64Array=function($){return u($)==="Float64Array"},a.isBigInt64Array=function($){return u($)==="BigInt64Array"},a.isBigUint64Array=function($){return u($)==="BigUint64Array"},x.working=typeof Map<"u"&&x(new Map),a.isMap=function($){return typeof Map<"u"&&(x.working?x($):$ instanceof Map)},k.working=typeof Set<"u"&&k(new Set),a.isSet=function($){return typeof Set<"u"&&(k.working?k($):$ instanceof Set)},T.working=typeof WeakMap<"u"&&T(new WeakMap),a.isWeakMap=function($){return typeof WeakMap<"u"&&(T.working?T($):$ instanceof WeakMap)},M.working=typeof WeakSet<"u"&&M(new WeakSet),a.isWeakSet=function($){return M($)},S.working=typeof ArrayBuffer<"u"&&S(new ArrayBuffer),a.isArrayBuffer=C,A.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&A(new DataView(new ArrayBuffer(1),0,1)),a.isDataView=D;var O=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function R($){return g($)==="[object SharedArrayBuffer]"}function F($){return O!==void 0&&(R.working===void 0&&(R.working=R(new O)),R.working?R($):$ instanceof O)}function P($){return _($,y)}function z($){return _($,v)}function B($){return _($,m)}function N($){return h&&_($,b)}function j($){return p&&_($,w)}a.isSharedArrayBuffer=F,a.isAsyncFunction=function($){return g($)==="[object AsyncFunction]"},a.isMapIterator=function($){return g($)==="[object Map Iterator]"},a.isSetIterator=function($){return g($)==="[object Set Iterator]"},a.isGeneratorObject=function($){return g($)==="[object Generator]"},a.isWebAssemblyCompiledModule=function($){return g($)==="[object WebAssembly.Module]"},a.isNumberObject=P,a.isStringObject=z,a.isBooleanObject=B,a.isBigIntObject=N,a.isSymbolObject=j,a.isBoxedPrimitive=function($){return P($)||z($)||B($)||N($)||j($)},a.isAnyArrayBuffer=function($){return typeof Uint8Array<"u"&&(C($)||F($))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function($){Object.defineProperty(a,$,{enumerable:!1,value:function(){throw new Error($+" is not supported in userland")}})})},43827:function(o,a,r){var l=r(90386),c=Object.getOwnPropertyDescriptors||function(j){for(var $=Object.keys(j),E={},U=0;U<$.length;U++)E[$[U]]=Object.getOwnPropertyDescriptor(j,$[U]);return E},u=/%[sdj%]/g;a.format=function(j){if(!T(j)){for(var $=[],E=0;E=G)return W;switch(W){case"%s":return String(U[E++]);case"%d":return Number(U[E++]);case"%j":try{return JSON.stringify(U[E++])}catch{return"[Circular]"}default:return W}}),q=U[E];E=3&&(E.depth=arguments[2]),arguments.length>=4&&(E.colors=arguments[3]),_($)?E.showHidden=$:$&&a._extend(E,$),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=g),v(E,j,E.depth)}function g(j,$){var E=p.styles[$];return E?"\x1B["+p.colors[E][0]+"m"+j+"\x1B["+p.colors[E][1]+"m":j}function y(j,$){return j}function v(j,$,E){if(j.customInspect&&$&&O($.inspect)&&$.inspect!==a.inspect&&(!$.constructor||$.constructor.prototype!==$)){var U=$.inspect(E,j);return T(U)||(U=v(j,U,E)),U}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"):x(Y)?Q.stylize("null","null"):void 0}(j,$);if(G)return G;var L=Object.keys($),q=function(Q){var Y={};return Q.forEach(function(Z,X){Y[Z]=!0}),Y}(L);if(j.showHidden&&(L=Object.getOwnPropertyNames($)),D($)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return m($);if(L.length===0){if(O($)){var W=$.name?": "+$.name:"";return j.stylize("[Function"+W+"]","special")}if(S($))return j.stylize(RegExp.prototype.toString.call($),"regexp");if(A($))return j.stylize(Date.prototype.toString.call($),"date");if(D($))return m($)}var V,te="",ee=!1,H=["{","}"];return w($)&&(ee=!0,H=["[","]"]),O($)&&(te=" [Function"+($.name?": "+$.name:"")+"]"),S($)&&(te=" "+RegExp.prototype.toString.call($)),A($)&&(te=" "+Date.prototype.toUTCString.call($)),D($)&&(te=" "+m($)),L.length!==0||ee&&$.length!=0?E<0?S($)?j.stylize(RegExp.prototype.toString.call($),"regexp"):j.stylize("[Object]","special"):(j.seen.push($),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,H)):H[0]+te+H[1]}function m(j){return"["+Error.prototype.toString.call(j)+"]"}function b(j,$,E,U,G,L){var q,W,V;if((V=Object.getOwnPropertyDescriptor($,G)||{value:$[G]}).get?W=V.set?j.stylize("[Getter/Setter]","special"):j.stylize("[Getter]","special"):V.set&&(W=j.stylize("[Setter]","special")),z(U,G)||(q="["+G+"]"),W||(j.seen.indexOf(V.value)<0?(W=x(E)?v(j,V.value,null):v(j,V.value,E-1)).indexOf(` +`)>-1&&(W=L?W.split(` +`).map(function(te){return" "+te}).join(` +`).slice(2):` +`+W.split(` +`).map(function(te){return" "+te}).join(` +`)):W=j.stylize("[Circular]","special")),M(q)){if(L&&G.match(/^\d+$/))return W;(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+": "+W}function w(j){return Array.isArray(j)}function _(j){return typeof j=="boolean"}function x(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 A(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(),!f[j])if(d.test(j)){var $=l.pid;f[j]=function(){var E=a.format.apply(a,arguments);console.error("%s %d: %s",j,$,E)}}else f[j]=function(){};return f[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=r(4936),a.isArray=w,a.isBoolean=_,a.isNull=x,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=A,a.types.isDate=A,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=r(45920);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(j,$){return Object.prototype.hasOwnProperty.call(j,$)}a.log=function(){var j,$;console.log("%s - %s",($=[F((j=new Date).getHours()),F(j.getMinutes()),F(j.getSeconds())].join(":"),[j.getDate(),P[j.getMonth()],$].join(" ")),a.format.apply(a,arguments))},a.inherits=r(42018),a._extend=function(j,$){if(!$||!C($))return j;for(var E=Object.keys($),U=E.length;U--;)j[E[U]]=$[E[U]];return j};var B=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function N(j,$){if(!j){var E=new Error("Promise was rejected with a falsy value");E.reason=j,j=E}return $(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 $;if(typeof($=j[B])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty($,B,{value:$,enumerable:!1,writable:!1,configurable:!0}),$}function $(){for(var E,U,G=new Promise(function(W,V){E=W,U=V}),L=[],q=0;q"u"?r.g:globalThis,g=c(),y=u("String.prototype.slice"),v={},m=Object.getPrototypeOf;h&&f&&m&&l(g,function(w){if(typeof p[w]=="function"){var _=new p[w];if(Symbol.toStringTag in _){var x=m(_),k=f(x,Symbol.toStringTag);if(!k){var T=m(x);k=f(T,Symbol.toStringTag)}v[w]=k.get}}});var b=r(9187);o.exports=function(w){return!!b(w)&&(h&&Symbol.toStringTag in w?function(_){var x=!1;return l(v,function(k,T){if(!x)try{var M=k.call(_);M===T&&(x=M)}catch{}}),x}(w):y(d(w),8,-1))}},3961:function(o,a,r){var l=r(63489),c=r(56131),u=l.instance();function f(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}f.prototype=new l.baseCalendar,c(f.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(m,b){if(typeof m=="string"){var w=m.match(h);return w?w[0]:""}var _=this._validateYear(m),x=m.month(),k=""+this.toChineseMonth(_,x);return b&&k.length<2&&(k="0"+k),this.isIntercalaryMonth(_,x)&&(k+="i"),k},monthNames:function(m){if(typeof m=="string"){var b=m.match(p);return b?b[0]:""}var w=this._validateYear(m),_=m.month(),x=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(w,_)-1];return this.isIntercalaryMonth(w,_)&&(x="闰"+x),x},monthNamesShort:function(m){if(typeof m=="string"){var b=m.match(g);return b?b[0]:""}var w=this._validateYear(m),_=m.month(),x=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(w,_)-1];return this.isIntercalaryMonth(w,_)&&(x="闰"+x),x},parseMonth:function(m,b){m=this._validateYear(m);var w,_=parseInt(b);if(isNaN(_))b[0]==="闰"&&(w=!0,b=b.substring(1)),b[b.length-1]==="月"&&(b=b.substring(0,b.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(b);else{var x=b[b.length-1];w=x==="i"||x==="I"}return this.toMonthIndex(m,_,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(m,b){if(m.year&&(m=m.year()),typeof m!="number"||m<1888||m>2111)throw b.replace(/\{0\}/,this.local.name);return m},toMonthIndex:function(m,b,w){var _=this.intercalaryMonth(m);if(w&&b!==_||b<1||b>12)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!w&&b<=_?b-1:b:b-1},toChineseMonth:function(m,b){m.year&&(b=(m=m.year()).month());var w=this.intercalaryMonth(m);if(b<0||b>(w?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return w?b>13},isIntercalaryMonth:function(m,b){m.year&&(b=(m=m.year()).month());var w=this.intercalaryMonth(m);return!!w&&w===b},leapYear:function(m){return this.intercalaryMonth(m)!==0},weekOfYear:function(m,b,w){var _,x=this._validateYear(m,l.local.invalidyear),k=v[x-v[0]],T=k>>9&4095,M=k>>5&15,S=31&k;(_=u.newDate(T,M,S)).add(4-(_.dayOfWeek()||7),"d");var C=this.toJD(m,b,w)-_.toJD();return 1+Math.floor(C/7)},monthsInYear:function(m){return this.leapYear(m)?13:12},daysInMonth:function(m,b){m.year&&(b=m.month(),m=m.year()),m=this._validateYear(m);var w=y[m-y[0]];if(b>(w>>13?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return w&1<<12-b?30:29},weekDay:function(m,b,w){return(this.dayOfWeek(m,b,w)||7)<6},toJD:function(m,b,w){var _=this._validate(m,k,w,l.local.invalidDate);m=this._validateYear(_.year()),b=_.month(),w=_.day();var x=this.isIntercalaryMonth(m,b),k=this.toChineseMonth(m,b),T=function(M,S,C,A,D){var O,R,F;if(typeof M=="object")R=M,O=S||{};else{var P;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 A=="object"?(P=!1,O=A):(P=!!A,O={}),R={year:M,month:S,day:C,isIntercalary:P}}F=R.day-1;var z,B=y[R.year-y[0]],N=B>>13;z=N&&(R.month>N||R.isIntercalary)?R.month:R.month-1;for(var j=0;j>9&4095,($>>5&15)-1,(31&$)+F);return O.year=E.getFullYear(),O.month=1+E.getMonth(),O.day=E.getDate(),O}(m,k,w,x);return u.toJD(T.year,T.month,T.day)},fromJD:function(m){var b=u.fromJD(m),w=function(x,k,T,M){var S,C;if(typeof x=="object")S=x,C=k||{};else{if(!(typeof x=="number"&&x>=1888&&x<=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:x,month:k,day:T},C={}}var A=v[S.year-v[0]],D=S.year<<9|S.month<<5|S.day;C.year=D>=A?S.year:S.year-1,A=v[C.year-v[0]];var O,R=new Date(A>>9&4095,(A>>5&15)-1,31&A),F=new Date(S.year,S.month-1,S.day);O=Math.round((F-R)/864e5);var P,z=y[C.year-y[0]];for(P=0;P<13;P++){var B=z&1<<12-P?30:29;if(O>13;return!N||P=2&&g<=6},extraInfo:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate);return{century:f[Math.floor((g.year()-1)/100)+1]||""}},toJD:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate);return d=g.year()+(g.year()<0?1:0),h=g.month(),(p=g.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,g=d-32*(p-1)+1;return this.newDate(h<=0?h-1:h,p,g)}});var f={20:"Fruitbat",21:"Anchovy"};l.calendars.discworld=u},37715:function(o,a,r){var l=r(63489),c=r(56131);function u(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,c(u.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(f){var d=this._validate(f,this.minMonth,this.minDay,l.local.invalidYear);return(f=d.year()+(d.year()<0?1:0))%4==3||f%4==-1},monthsInYear:function(f){return this._validate(f,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(f,d,h){var p=this.newDate(f,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(f,d){var h=this._validate(f,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(f,d,h){return(this.dayOfWeek(f,d,h)||7)<6},toJD:function(f,d,h){var p=this._validate(f,d,h,l.local.invalidDate);return(f=p.year())<0&&f++,p.day()+30*(p.month()-1)+365*(f-1)+Math.floor(f/4)+this.jdEpoch-1},fromJD:function(f){var d=Math.floor(f)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(f)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,g=d-30*(p-1)+1;return this.newDate(h,p,g)}}),l.calendars.ethiopian=u},99384:function(o,a,r){var l=r(63489),c=r(56131);function u(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}function f(d,h){return d-h*Math.floor(d/h)}u.prototype=new l.baseCalendar,c(u.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 f(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 g=this.newDate(d,h,p);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.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&&f(this.daysInYear(d),10)===5?30:h===9&&f(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 g=this._validate(d,h,p,l.local.invalidDate);return{yearType:(this.leapYear(g)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(g)%10-3]}},toJD:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate);d=g.year(),h=g.month(),p=g.day();var y=d<=0?d+1:d,v=this.jdEpoch+this._delay1(y)+this._delay2(y)+p+1;if(h<7){for(var m=7;m<=this.monthsInYear(d);m++)v+=this.daysInMonth(d,m);for(m=1;m=this.toJD(h===-1?1:h+1,7,1);)h++;for(var p=dthis.toJD(h,p,this.daysInMonth(h,p));)p++;var g=d-this.toJD(h,p,1)+1;return this.newDate(h,p,g)}}),l.calendars.hebrew=u},43805:function(o,a,r){var l=r(63489),c=r(56131);function u(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,c(u.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(f){return(11*this._validate(f,this.minMonth,this.minDay,l.local.invalidYear).year()+14)%30<11},weekOfYear:function(f,d,h){var p=this.newDate(f,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(f){return this.leapYear(f)?355:354},daysInMonth:function(f,d){var h=this._validate(f,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(f,d,h){return this.dayOfWeek(f,d,h)!==5},toJD:function(f,d,h){var p=this._validate(f,d,h,l.local.invalidDate);return f=p.year(),d=p.month(),f=f<=0?f+1:f,(h=p.day())+Math.ceil(29.5*(d-1))+354*(f-1)+Math.floor((3+11*f)/30)+this.jdEpoch-1},fromJD:function(f){f=Math.floor(f)+.5;var d=Math.floor((30*(f-this.jdEpoch)+10646)/10631);d=d<=0?d-1:d;var h=Math.min(12,Math.ceil((f-29-this.toJD(d,1,1))/29.5)+1),p=f-this.toJD(d,h,1)+1;return this.newDate(d,h,p)}}),l.calendars.islamic=u},88874:function(o,a,r){var l=r(63489),c=r(56131);function u(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,c(u.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(f){var d=this._validate(f,this.minMonth,this.minDay,l.local.invalidYear);return(f=d.year()<0?d.year()+1:d.year())%4==0},weekOfYear:function(f,d,h){var p=this.newDate(f,d,h);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(f,d){var h=this._validate(f,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(f,d,h){return(this.dayOfWeek(f,d,h)||7)<6},toJD:function(f,d,h){var p=this._validate(f,d,h,l.local.invalidDate);return f=p.year(),d=p.month(),h=p.day(),f<0&&f++,d<=2&&(f--,d+=12),Math.floor(365.25*(f+4716))+Math.floor(30.6001*(d+1))+h-1524.5},fromJD:function(f){var d=Math.floor(f+.5)+1524,h=Math.floor((d-122.1)/365.25),p=Math.floor(365.25*h),g=Math.floor((d-p)/30.6001),y=g-Math.floor(g<14?1:13),v=h-Math.floor(y>2?4716:4715),m=d-p-Math.floor(30.6001*g);return v<=0&&v--,this.newDate(v,y,m)}}),l.calendars.julian=u},83290:function(o,a,r){var l=r(63489),c=r(56131);function u(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}function f(h,p){return h-p*Math.floor(h/p)}function d(h,p){return f(h-1,p)+1}u.prototype=new l.baseCalendar,c(u.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,g=0;g19||g>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,g){return this._validate(h,p,g,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,g){return this._validate(h,p,g,l.local.invalidDate).day()},weekDay:function(h,p,g){return this._validate(h,p,g,l.local.invalidDate),!0},extraInfo:function(h,p,g){var y=this._validate(h,p,g,l.local.invalidDate).toJD(),v=this._toHaab(y),m=this._toTzolkin(y);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[m[0]-1],tzolkinDay:m[0],tzolkinTrecena:m[1]}},_toHaab:function(h){var p=f(8+(h-=this.jdEpoch)+340,365);return[Math.floor(p/20)+1,f(p,20)]},_toTzolkin:function(h){return[d(20+(h-=this.jdEpoch),20),d(h+4,13)]},toJD:function(h,p,g){var y=this._validate(h,p,g,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 g=Math.floor(h/20),y=h%20;return this.newDate(p,g,y)}}),l.calendars.mayan=u},29108:function(o,a,r){var l=r(63489),c=r(56131);function u(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar;var f=l.instance("gregorian");c(u.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 f.leapYear(h.year()+(h.year()<1?1:0)+1469)},weekOfYear:function(d,h,p){var g=this.newDate(d,h,p);return g.add(1-(g.dayOfWeek()||7),"d"),Math.floor((g.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 g=this._validate(d,h,p,l.local.invalidMonth);(d=g.year())<0&&d++;for(var y=g.day(),v=1;v=this.toJD(h+1,1,1);)h++;for(var p=d-Math.floor(this.toJD(h,1,1)+.5)+1,g=1;p>this.daysInMonth(h,g);)p-=this.daysInMonth(h,g),g++;return this.newDate(h,g,p)}}),l.calendars.nanakshahi=u},55422:function(o,a,r){var l=r(63489),c=r(56131);function u(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,c(u.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(f){return this.daysInYear(f)!==this.daysPerYear},weekOfYear:function(f,d,h){var p=this.newDate(f,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(f){if(f=this._validate(f,this.minMonth,this.minDay,l.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[f]===void 0)return this.daysPerYear;for(var d=0,h=this.minMonth;h<=12;h++)d+=this.NEPALI_CALENDAR_DATA[f][h];return d},daysInMonth:function(f,d){return f.year&&(d=f.month(),f=f.year()),this._validate(f,d,this.minDay,l.local.invalidMonth),this.NEPALI_CALENDAR_DATA[f]===void 0?this.daysPerMonth[d-1]:this.NEPALI_CALENDAR_DATA[f][d]},weekDay:function(f,d,h){return this.dayOfWeek(f,d,h)!==6},toJD:function(f,d,h){var p=this._validate(f,d,h,l.local.invalidDate);f=p.year(),d=p.month(),h=p.day();var g=l.instance(),y=0,v=d,m=f;this._createMissingCalendarData(f);var b=f-(v>9||v===9&&h>=this.NEPALI_CALENDAR_DATA[m][0]?56:57);for(d!==9&&(y=h,v--);v!==9;)v<=0&&(v=12,m--),y+=this.NEPALI_CALENDAR_DATA[m][v],v--;return d===9?(y+=h-this.NEPALI_CALENDAR_DATA[m][0])<0&&(y+=g.daysInYear(b)):y+=this.NEPALI_CALENDAR_DATA[m][9]-this.NEPALI_CALENDAR_DATA[m][0],g.newDate(b,1,1).add(y,"d").toJD()},fromJD:function(f){var d=l.instance().fromJD(f),h=d.year(),p=d.dayOfYear(),g=h+56;this._createMissingCalendarData(g);for(var y=9,v=this.NEPALI_CALENDAR_DATA[g][0],m=this.NEPALI_CALENDAR_DATA[g][y]-v+1;p>m;)++y>12&&(y=1,g++),m+=this.NEPALI_CALENDAR_DATA[g][y];var b=this.NEPALI_CALENDAR_DATA[g][y]-(m-p);return this.newDate(g,y,b)},_createMissingCalendarData:function(f){var d=this.daysPerMonth.slice(0);d.unshift(17);for(var h=f-1;h0?474:473))%2820+474+38)%2816<682},weekOfYear:function(d,h,p){var g=this.newDate(d,h,p);return g.add(-(g.dayOfWeek()+1)%7,"d"),Math.floor((g.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 g=this._validate(d,h,p,l.local.invalidDate);d=g.year(),h=g.month(),p=g.day();var y=d-(d>=0?474:473),v=474+f(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),g=f(h,1029983),y=2820;if(g!==1029982){var v=Math.floor(g/366),m=f(g,366);y=Math.floor((2134*v+2816*m+2815)/1028522)+v+1}var b=y+2820*p+474;b=b<=0?b-1:b;var w=d-this.toJD(b,1,1)+1,_=w<=186?Math.ceil(w/31):Math.ceil((w-6)/30),x=d-this.toJD(b,_,1)+1;return this.newDate(b,_,x)}}),l.calendars.persian=u,l.calendars.jalali=u},31320:function(o,a,r){var l=r(63489),c=r(56131),u=l.instance();function f(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}f.prototype=new l.baseCalendar,c(f.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()),u.leapYear(d)},weekOfYear:function(d,h,p){var g=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(g.year()),u.weekOfYear(d,g.month(),g.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 g=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(g.year()),u.toJD(d,g.month(),g.day())},fromJD:function(d){var h=u.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=f},51367:function(o,a,r){var l=r(63489),c=r(56131),u=l.instance();function f(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}f.prototype=new l.baseCalendar,c(f.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()),u.leapYear(d)},weekOfYear:function(d,h,p){var g=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(g.year()),u.weekOfYear(d,g.month(),g.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 g=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(g.year()),u.toJD(d,g.month(),g.day())},fromJD:function(d){var h=u.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=f},21457:function(o,a,r){var l=r(63489),c=r(56131);function u(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,c(u.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 g=this.newDate(d,h,p);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.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,g=0,y=0;yp)return f[g]-f[g-1];g++}return 30},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate),y=12*(g.year()-1)+g.month()-15292;return g.day()+f[y-1]-1+24e5-.5},fromJD:function(d){for(var h=d-24e5+.5,p=0,g=0;gh);g++)p++;var y=p+15292,v=Math.floor((y-1)/12),m=v+1,b=y-12*v,w=h-f[p-1]+1;return this.newDate(m,b,w)},isValid:function(d,h,p){var g=l.baseCalendar.prototype.isValid.apply(this,arguments);return g&&(g=(d=d.year!=null?d.year:d)>=1276&&d<=1500),g},_validate:function(d,h,p,g){var y=l.baseCalendar.prototype._validate.apply(this,arguments);if(y.year<1276||y.year>1500)throw g.replace(/\{0\}/,this.local.name);return y}}),l.calendars.ummalqura=u;var f=[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,r){var l=r(56131);function c(){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 u(g,y,v,m){if(this._calendar=g,this._year=y,this._month=v,this._day=m,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 f(g,y){return"000000".substring(0,y-(g=""+g).length)+g}function d(){this.shortYearCutoff="+10"}function h(g){this.local=this.regionalOptions[g]||this.regionalOptions[""]}l(c.prototype,{instance:function(g,y){g=(g||"gregorian").toLowerCase(),y=y||"";var v=this._localCals[g+"-"+y];if(!v&&this.calendars[g]&&(v=new this.calendars[g](y),this._localCals[g+"-"+y]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,g);return v},newDate:function(g,y,v,m,b){return(m=(g!=null&&g.year?g.calendar():typeof m=="string"?this.instance(m,b):m)||this.instance()).newDate(g,y,v)},substituteDigits:function(g){return function(y){return(y+"").replace(/[0-9]/g,function(v){return g[v]})}},substituteChineseDigits:function(g,y){return function(v){for(var m="",b=0;v>0;){var w=v%10;m=(w===0?"":g[w]+y[b])+m,b++,v=Math.floor(v/10)}return m.indexOf(g[1]+y[1])===0&&(m=m.substr(1)),m||g[0]}}}),l(u.prototype,{newDate:function(g,y,v){return this._calendar.newDate(g??this,y,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,y,v){if(!this._calendar.isValid(g,y,v))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=g,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(g,y){return this._calendar.add(this,g,y)},set:function(g,y){return this._calendar.set(this,g,y)},compareTo:function(g){if(this._calendar.name!==g._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,g._calendar.local.name);var y=this._year!==g._year?this._year-g._year:this._month!==g._month?this.monthOfYear()-g.monthOfYear():this._day-g._day;return y===0?0:y<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?"-":"")+f(Math.abs(this.year()),4)+"-"+f(this.month(),2)+"-"+f(this.day(),2)}}),l(d.prototype,{_validateLevel:0,newDate:function(g,y,v){return g==null?this.today():(g.year&&(this._validate(g,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),v=g.day(),y=g.month(),g=g.year()),new u(this,g,y,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(g){return this._validate(g,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(g){var y=this._validate(g,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(y.year()<0?"-":"")+f(Math.abs(y.year()),4)},monthsInYear:function(g){return this._validate(g,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(g,y){var v=this._validate(g,y,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(g,y){var v=(y+this.firstMonth-2*this.minMonth)%this.monthsInYear(g)+this.minMonth;return this._validate(g,v,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),v},daysInYear:function(g){var y=this._validate(g,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(y)?366:365},dayOfYear:function(g,y,v){var m=this._validate(g,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return m.toJD()-this.newDate(m.year(),this.fromMonthOfYear(m.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(g,y,v){var m=this._validate(g,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(m))+2)%this.daysInWeek()},extraInfo:function(g,y,v){return this._validate(g,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(g,y,v){return this._validate(g,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(g,this._add(g,y,v),y,v)},_add:function(g,y,v){if(this._validateLevel++,v==="d"||v==="w"){var m=g.toJD()+y*(v==="w"?this.daysInWeek():1),b=g.calendar().fromJD(m);return this._validateLevel--,[b.year(),b.month(),b.day()]}try{var w=g.year()+(v==="y"?y:0),_=g.monthOfYear()+(v==="m"?y:0);b=g.day(),v==="y"?(g.month()!==this.fromMonthOfYear(w,_)&&(_=this.newDate(w,g.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(w)),b=Math.min(b,this.daysInMonth(w,this.fromMonthOfYear(w,_)))):v==="m"&&(function(k){for(;_T-1+k.minMonth;)w++,_-=T,T=k.monthsInYear(w)}(this),b=Math.min(b,this.daysInMonth(w,this.fromMonthOfYear(w,_))));var x=[w,this.fromMonthOfYear(w,_),b];return this._validateLevel--,x}catch(k){throw this._validateLevel--,k}},_correctAdd:function(g,y,v,m){if(!(this.hasYearZero||m!=="y"&&m!=="m"||y[0]!==0&&g.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"]}[m],w=v<0?-1:1;y=this._add(g,v*b[0]+w*b[1],b[2])}return g.date(y[0],y[1],y[2])},set:function(g,y,v){this._validate(g,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var m=v==="y"?y:g.year(),b=v==="m"?y:g.month(),w=v==="d"?y:g.day();return v!=="y"&&v!=="m"||(w=Math.min(w,this.daysInMonth(m,b))),g.date(m,b,w)},isValid:function(g,y,v){this._validateLevel++;var m=this.hasYearZero||g!==0;if(m){var b=this.newDate(g,y,this.minDay);m=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,x)},toJSDate:function(g,y,v){var m=this._validate(g,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),b=new Date(m.year(),m.month()-1,m.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(g){return this.newDate(g.getFullYear(),g.getMonth()+1,g.getDate())}});var p=o.exports=new c;p.cdate=u,p.baseCalendar=d,p.calendars.gregorian=h},94338:function(o,a,r){var l=r(56131),c=r(63489);l(c.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"}),c.local=c.regionalOptions[""],l(c.cdate.prototype,{formatDate:function(u,f){return typeof u!="string"&&(f=u,u=""),this._calendar.formatDate(u||"",this,f)}}),l(c.baseCalendar.prototype,{UNIX_EPOCH:c.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:c.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(u,f,d){if(typeof u!="string"&&(d=f,f=u,u=""),!f)return"";if(f.calendar()!==this)throw c.local.invalidFormat||c.regionalOptions[""].invalidFormat;u=u||this.local.dateFormat;for(var h,p,g,y=(d=d||{}).dayNamesShort||this.local.dayNamesShort,v=d.dayNames||this.local.dayNames,m=d.monthNumbers||this.local.monthNumbers,b=d.monthNamesShort||this.local.monthNamesShort,w=d.monthNames||this.local.monthNames,_=(d.calculateWeek||this.local.calculateWeek,function(R,F){for(var P=1;O+P1}),x=function(R,F,P,z){var B=""+F;if(_(R,z))for(;B.length1},A=function($,E){var U=C($,E),G=[2,3,U?4:2,U?4:2,10,11,20]["oyYJ@!".indexOf($)+1],L=new RegExp("^-?\\d{1,"+G+"}"),q=f.substring(z).match(L);if(!q)throw(c.local.missingNumberAt||c.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 $=v.call(D,f.substring(z));return z+=$.length,$}return A("m")},R=function($,E,U,G){for(var L=C($,G)?U:E,q=0;q-1){x=1,k=T;for(var j=this.daysInMonth(_,x);k>j;j=this.daysInMonth(_,x))x++,k-=j}return w>-1?this.fromJD(w):this.newDate(_,x,k)},determineDate:function(u,f,d,h,p){d&&typeof d!="object"&&(p=h,h=d,d=null),typeof h!="string"&&(p=h,h="");var g=this;return f=f?f.newDate():null,u==null?f:typeof u=="string"?function(y){try{return g.parseDate(h,y,p)}catch{}for(var v=((y=y.toLowerCase()).match(/^c/)&&d?d.newDate():null)||g.today(),m=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,b=m.exec(y);b;)v.add(parseInt(b[1],10),b[2]||"d"),b=m.exec(y);return v}(u):typeof u=="number"?isNaN(u)||u===1/0||u===-1/0?f:g.today().add(u,"d"):g.newDate(u)}})},69862:function(){},40964:function(){},72077:function(o,a,r){var l=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],c=typeof globalThis>"u"?r.g:globalThis;o.exports=function(){for(var u=[],f=0;f"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"],m=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],b=typeof window<"u";function w(_){var x=function(k){u(M,k);var T=d(M);function M(S){var C;return r(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 c(M,[{key:"updatePlotly",value:function(C,A,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(A),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 A=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===A),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||m.forEach(function(A){C.el.on(A,C.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||m.forEach(function(A){C.el.removeListener(A,C.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(C){if(typeof C=="function"){var A=this.el,D=A.data,O=A.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 A=this;b&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(A.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(A){var D=C.props["on"+A],O=C.handlers[A],R=!!O;D&&!R?C.addEventHandler(A,D):!D&&R?C.removeEventHandler(A):D&&R&&D!==O&&(C.removeEventHandler(A),C.addEventHandler(A,D))})}},{key:"addEventHandler",value:function(C,A){this.handlers[C]=A,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 n.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),M}(n.Component);return x.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){x.propTypes["on"+k]=i.default.func}),x.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},x}})(YC);const xj=lr(YC),GC=xj(bj),Ll={data:{barpolar:[{marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],bar:[{error_x:{color:"#f2f5fa"},error_y:{color:"#f2f5fa"},marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],carpet:[{aaxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},baxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},type:"carpet"}],choropleth:[{colorbar:{outlinewidth:0,ticks:""},type:"choropleth"}],contourcarpet:[{colorbar:{outlinewidth:0,ticks:""},type:"contourcarpet"}],contour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"contour"}],heatmapgl:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmapgl"}],heatmap:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmap"}],histogram2dcontour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2dcontour"}],histogram2d:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2d"}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],mesh3d:[{colorbar:{outlinewidth:0,ticks:""},type:"mesh3d"}],parcoords:[{line:{colorbar:{outlinewidth:0,ticks:""}},type:"parcoords"}],pie:[{automargin:!0,type:"pie"}],scatter3d:[{line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatter3d"}],scattercarpet:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattercarpet"}],scattergeo:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattergeo"}],scattergl:[{marker:{line:{color:"#283442"}},type:"scattergl"}],scattermapbox:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattermapbox"}],scatterpolargl:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolargl"}],scatterpolar:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolar"}],scatter:[{marker:{line:{color:"#283442"}},type:"scatter"}],scatterternary:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterternary"}],surface:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"surface"}],table:[{cells:{fill:{color:"#506784"},line:{color:"rgb(17,17,17)"}},header:{fill:{color:"#2a3f5f"},line:{color:"rgb(17,17,17)"}},type:"table"}]},layout:{annotationdefaults:{arrowcolor:"#f2f5fa",arrowhead:0,arrowwidth:1},autotypenumbers:"strict",coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]],sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#f2f5fa"},geo:{bgcolor:"rgb(17,17,17)",lakecolor:"rgb(17,17,17)",landcolor:"rgb(17,17,17)",showlakes:!0,showland:!0,subunitcolor:"#506784"},hoverlabel:{align:"left"},hovermode:"closest",mapbox:{style:"dark"},paper_bgcolor:"rgb(17,17,17)",plot_bgcolor:"rgb(17,17,17)",polar:{angularaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",radialaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},scene:{xaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},yaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},zaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"}},shapedefaults:{line:{color:"#f2f5fa"}},sliderdefaults:{bgcolor:"#C8D4E3",bordercolor:"rgb(17,17,17)",borderwidth:1,tickwidth:0},ternary:{aaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},baxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",caxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},title:{x:.05},updatemenudefaults:{bgcolor:"#506784",borderwidth:0,showactive:!1},xaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2},yaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2}}},wj=et.createContext(null),XC=()=>je.useContext(wj),ah=e=>{var r,l,c,u;const t=XC(),n=CC(),i=e.data.some(({type:f})=>f==="histogram"),s=(t==null?void 0:t.isXaxisAsCategorical)&&!i,o=n==="dark"?{template:{...Ll,layout:{...Ll.layout,colorway:((l=(r=e.layout.template)==null?void 0:r.layout)==null?void 0:l.colorway)||((c=Ll.layout)==null?void 0:c.colorway)}}}:void 0,a=s?{type:"category",categoryorder:"category ascending"}:void 0;return Ie.jsx("div",{children:Ie.jsx(GC,{data:e.data,layout:{...e.layout,...o,title:void 0,xaxis:{...(u=e.layout)==null?void 0:u.xaxis,...a}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}})})};var ZC={},KC={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})(KC);var Rn=KC.exports,Yg={exports:{}},n_;function xr(){return n_||(n_=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var i=1;i{let t;const n=new Set,i=(l,c)=>{const u=typeof l=="function"?l(t):l;if(!Object.is(u,t)){const f=t;t=c??typeof u!="object"?u:Object.assign({},t,u),n.forEach(d=>d(t,f))}},s=()=>t,r={setState:i,getState:s,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{(Mj?"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(i,s,r),r},e4=e=>e?s_(e):s_;var t4={exports:{}},n4={},r4={exports:{}},a4={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ql=je;function Sj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Cj=typeof Object.is=="function"?Object.is:Sj,Oj=ql.useState,Pj=ql.useEffect,Aj=ql.useLayoutEffect,Dj=ql.useDebugValue;function Ej(e,t){var n=t(),i=Oj({inst:{value:n,getSnapshot:t}}),s=i[0].inst,o=i[1];return Aj(function(){s.value=n,s.getSnapshot=t,rm(s)&&o({inst:s})},[e,n,t]),Pj(function(){return rm(s)&&o({inst:s}),e(function(){rm(s)&&o({inst:s})})},[e]),Dj(n),n}function rm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cj(e,n)}catch{return!0}}function Rj(e,t){return t()}var Lj=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Rj:Ej;a4.useSyncExternalStore=ql.useSyncExternalStore!==void 0?ql.useSyncExternalStore:Lj;r4.exports=a4;var i4=r4.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ih=je,Ij=i4;function Fj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $j=typeof Object.is=="function"?Object.is:Fj,jj=Ij.useSyncExternalStore,Nj=ih.useRef,zj=ih.useEffect,Bj=ih.useMemo,qj=ih.useDebugValue;n4.useSyncExternalStoreWithSelector=function(e,t,n,i,s){var o=Nj(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=Bj(function(){function l(h){if(!c){if(c=!0,u=h,h=i(h),s!==void 0&&a.hasValue){var p=a.value;if(s(p,h))return f=p}return f=h}if(p=f,$j(u,h))return p;var g=i(h);return s!==void 0&&s(p,g)?p:(u=h,f=g)}var c=!1,u,f,d=n===void 0?null:n;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,n,i,s]);var r=jj(e,o[0],o[1]);return zj(function(){a.hasValue=!0,a.value=r},[r]),qj(r),r};t4.exports=n4;var Uj=t4.exports;const Wj=lr(Uj),{useSyncExternalStoreWithSelector:Hj}=Wj;function o4(e,t=e.getState,n){const i=Hj(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return je.useDebugValue(i),i}const u_=e=>{const t=typeof e=="function"?e4(e):e,n=(i,s)=>o4(t,i,s);return Object.assign(n,t),n},l4=e=>e?u_(e):u_;var Vj=e=>l4(e);const Yj=Object.freeze(Object.defineProperty({__proto__:null,create:l4,createStore:e4,default:Vj,useStore:o4},Symbol.toStringTag,{value:"Module"})),Gj=Wn(Yj);var ff={exports:{}},am={exports:{}},c_;function Xj(){return c_||(c_=1,function(e,t){(function(n,i){e.exports=i()})(La,function(){var n=typeof Promise=="function",i=typeof self=="object"?self:La,s=typeof Symbol<"u",o=typeof Map<"u",a=typeof Set<"u",r=typeof WeakMap<"u",l=typeof WeakSet<"u",c=typeof DataView<"u",u=s&&typeof Symbol.iterator<"u",f=s&&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()),g=h&&Object.getPrototypeOf(new Map().entries()),y=u&&typeof Array.prototype[Symbol.iterator]=="function",v=y&&Object.getPrototypeOf([][Symbol.iterator]()),m=u&&typeof String.prototype[Symbol.iterator]=="function",b=m&&Object.getPrototypeOf(""[Symbol.iterator]()),w=8,_=-1;function x(k){var T=typeof k;if(T!=="object")return T;if(k===null)return"null";if(k===i)return"global";if(Array.isArray(k)&&(f===!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=f&&k[Symbol.toStringTag];if(typeof M=="string")return M;var S=Object.getPrototypeOf(k);return S===RegExp.prototype?"RegExp":S===Date.prototype?"Date":n&&S===Promise.prototype?"Promise":a&&S===Set.prototype?"Set":o&&S===Map.prototype?"Map":l&&S===WeakSet.prototype?"WeakSet":r&&S===WeakMap.prototype?"WeakMap":c&&S===DataView.prototype?"DataView":o&&S===g?"Map Iterator":a&&S===p?"Set Iterator":y&&S===v?"Array Iterator":m&&S===b?"String Iterator":S===null?"Object":Object.prototype.toString.call(k).slice(w,_)}return x})}(am)),am.exports}var f_;function s4(){if(f_)return ff.exports;f_=1;/*! + * deep-eql + * Copyright(c) 2013 Jake Luer + * MIT Licensed + */var e=Xj();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 n=typeof WeakMap=="function"?WeakMap:t;/*! + * Check to see if the MemoizeMap has recorded a result of the two operands + * + * @param {Mixed} leftHandOperand + * @param {Mixed} rightHandOperand + * @param {MemoizeMap} memoizeMap + * @returns {Boolean|null} result +*/function i(x,k,T){if(!T||w(x)||w(k))return null;var M=T.get(x);if(M){var S=M.get(k);if(typeof S=="boolean")return S}return null}/*! + * Set the result of the equality into the MemoizeMap + * + * @param {Mixed} leftHandOperand + * @param {Mixed} rightHandOperand + * @param {MemoizeMap} memoizeMap + * @param {Boolean} result +*/function s(x,k,T,M){if(!(!T||w(x)||w(k))){var S=T.get(x);S?S.set(k,M):(S=new n,S.set(k,M),T.set(x,S))}}/*! + * Primary Export + */ff.exports=o,ff.exports.MemoizeMap=n;function o(x,k,T){if(T&&T.comparator)return r(x,k,T);var M=a(x,k);return M!==null?M:r(x,k,T)}function a(x,k){return x===k?x!==0||1/x===1/k:x!==x&&k!==k?!0:w(x)||w(k)?!1:null}/*! + * The main logic of the `deepEqual` function. + * + * @param {Mixed} leftHandOperand + * @param {Mixed} rightHandOperand + * @param {Object} [options] (optional) Additional options + * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality. + * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of + 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 r(x,k,T){T=T||{},T.memoize=T.memoize===!1?!1:T.memoize||new n;var M=T&&T.comparator,S=i(x,k,T.memoize);if(S!==null)return S;var C=i(k,x,T.memoize);if(C!==null)return C;if(M){var A=M(x,k);if(A===!1||A===!0)return s(x,k,T.memoize,A),A;var D=a(x,k);if(D!==null)return D}var O=e(x);if(O!==e(k))return s(x,k,T.memoize,!1),!1;s(x,k,T.memoize,!0);var R=l(x,k,O,T);return s(x,k,T.memoize,R),R}function l(x,k,T,M){switch(T){case"String":case"Number":case"Boolean":case"Date":return o(x.valueOf(),k.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return x===k;case"Error":return m(x,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 f(x,k,M);case"RegExp":return c(x,k);case"Generator":return d(x,k,M);case"DataView":return f(new Uint8Array(x.buffer),new Uint8Array(k.buffer),M);case"ArrayBuffer":return f(new Uint8Array(x),new Uint8Array(k),M);case"Set":return u(x,k,M);case"Map":return u(x,k,M);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return x.equals(k);case"Temporal.Duration":return x.total("nanoseconds")===k.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return x.toString()===k.toString();default:return b(x,k,M)}}/*! + * Compare two Regular Expressions for equality. + * + * @param {RegExp} leftHandOperand + * @param {RegExp} rightHandOperand + * @return {Boolean} result + */function c(x,k){return x.toString()===k.toString()}/*! + * Compare two Sets/Maps for equality. Faster than other equality functions. + * + * @param {Set} leftHandOperand + * @param {Set} rightHandOperand + * @param {Object} [options] (Optional) + * @return {Boolean} result + */function u(x,k,T){if(x.size!==k.size)return!1;if(x.size===0)return!0;var M=[],S=[];return x.forEach(function(A,D){M.push([A,D])}),k.forEach(function(A,D){S.push([A,D])}),f(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 f(x,k,T){var M=x.length;if(M!==k.length)return!1;if(M===0)return!0;for(var S=-1;++S=0)&&(s[a]=n[a]);return s}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(hm)),hm.exports}var j_;function is(){return j_||(j_=1,function(e){var t=mN();function n(i,s){if(i==null)return{};var o=t(i,s),a,r;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(i,a)&&(o[a]=i[a])}return o}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(dm)),dm.exports}var N_;function vN(){return N_||(N_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(gN),i=t(xr()),s=t(is()),o=t(je),a=["forwardedRef"];function r(c){var u=c.forwardedRef,f=(0,s.default)(c,a);return o.default.createElement(n.default,(0,i.default)({elevation:2},f,{ref:u}))}var l=o.default.forwardRef(function(u,f){return o.default.createElement(r,(0,i.default)({},u,{forwardedRef:f}))});e.default=l}(fm)),fm}var pm={};const al=Wn(XI);var gm={exports:{}},z_;function yN(){return z_||(z_=1,function(e,t){(function(i,s){e.exports=s(je)})(La,function(n){return function(i){var s={};function o(a){if(s[a])return s[a].exports;var r=s[a]={exports:{},id:a,loaded:!1};return i[a].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}return o.m=i,o.c=s,o.p="",o(0)}([function(i,s,o){Object.defineProperty(s,"__esModule",{value:!0});var a=function(){function p(g,y){for(var v=0;vn.length)&&(i=n.length);for(var s=0,o=new Array(i);s0&&R++,g.hasDetailPanel&&R++,g.isTreeData&&R++,l.default.createElement(a.default,{style:{height:O*(v.paging&&v.emptyRowsWhenPaging?g.pageSize:1)},key:"empty-0"},l.default.createElement(r.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:g.columns.reduce(function(F,P){return P.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(A)).map(function(F,P){return l.default.createElement(a.default,{style:{height:O},key:"empty-"+P})}),A>0&&l.default.createElement(a.default,{style:{height:1},key:"empty-last1"}))}function _(A){return A.map(function(D,O){if(D.tableData.editing||g.bulkEditOpen)return l.default.createElement(g.components.EditRow,{columns:b,components:g.components,data:D,errorState:g.errorState,icons:m,localization:y.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 R=g.isTreeData?[D.tableData.uuid]:[O+g.pageSize*g.currentPage];return l.default.createElement(g.components.Row,{components:g.components,data:D,index:O,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:R,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(A,D){return D.map(function(O,R){return l.default.createElement(g.components.GroupRow,{actions:g.actions,cellEditable:g.cellEditable,columns:g.columns,components:g.components,detailPanel:g.detailPanel,getFieldValue:g.getFieldValue,groupData:O,groups:A,hasAnyEditingRow:g.hasAnyEditingRow,icons:m,isTreeData:g.isTreeData,key:O.value==null?""+R:O.value,level:0,localization:y.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:[R+g.pageSize*g.currentPage],scrollWidth:g.scrollWidth,treeDataMaxLevel:g.treeDataMaxLevel})})}function k(){return g.showAddRow&&l.default.createElement(g.components.EditRow,{columns:b,components:g.components,data:g.initialFormData,detailPanel:g.detailPanel,errorState:g.errorState,getFieldValue:g.getFieldValue,icons:m,isTreeData:g.isTreeData,key:"key-add-row",localization:y.editRow,mode:"add",onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,scrollWidth:g.scrollWidth})}var T=g.renderData,M=g.columns.filter(function(A){return A.tableData.groupOrder>-1}).sort(function(A,D){return A.tableData.groupOrder-D.tableData.groupOrder}),S=0;v.paging&&g.pageSize>T.length&&(S=g.pageSize-T.length);var C=l.default.useMemo(function(){return g.renderSummaryRow?function(A){return g.renderSummaryRow(d(d({},A),{},{data:g.data,currentData:g.currentData}))}:void 0},[g.data]);return l.default.createElement(i.default,{ref:g.forwardedRef},v.filtering&&l.default.createElement(g.components.FilterRow,{columns:b,icons:m,hasActions:g.actions.some(function(A){return A.position==="row"||typeof A=="function"}),onFilterChanged:g.onFilterChanged,localization:y.filterRow,hasDetailPanel:!!g.detailPanel,isTreeData:g.isTreeData,scrollWidth:g.scrollWidth,hideFilterIcons:g.options.hideFilterIcons}),v.addRowPosition==="first"&&k(),M.length>0?x(M,T):_(T),v.addRowPosition==="last"&&k(),l.default.createElement(g.components.SummaryRow,{columns:b,renderSummaryRow:C,rowProps:g}),w(S,T))}h.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},h.propTypes={actions:c.default.array,bulkEditChangedRows:c.default.object,bulkEditOpen:c.default.bool,cellEditable:c.default.object,columns:c.default.array.isRequired,components:c.default.object.isRequired,currentPage:c.default.number,data:c.default.array,detailPanel:c.default.oneOfType([c.default.func,c.default.arrayOf(c.default.oneOfType([c.default.object,c.default.func]))]),errorState:c.default.oneOfType([c.default.object,c.default.bool]),forwardedRef:c.default.oneOfType([c.default.func,c.default.object]),getFieldValue:c.default.func.isRequired,hasAnyEditingRow:c.default.bool,hasDetailPanel:c.default.bool.isRequired,initialFormData:c.default.object,isTreeData:c.default.bool.isRequired,onBulkEditRowChanged:c.default.func,onCellEditFinished:c.default.func,onCellEditStarted:c.default.func,onEditingApproved:c.default.func,onEditingCanceled:c.default.func,onFilterChanged:c.default.func,onGroupExpandChanged:c.default.func,onRowClick:c.default.func,onRowDoubleClick:c.default.func,onGroupSelected:c.default.func,onRowSelected:c.default.func,onToggleDetailPanel:c.default.func.isRequired,onTreeExpandChanged:c.default.func.isRequired,pageSize:c.default.number,renderData:c.default.array,renderSummaryRow:c.default.func,scrollWidth:c.default.number.isRequired,selection:c.default.bool.isRequired,showAddRow:c.default.bool,treeDataMaxLevel:c.default.number};var p=l.default.forwardRef(function(y,v){return l.default.createElement(h,(0,n.default)({},y,{forwardedRef:v}))});e.default=p}(mm)),mm}var Tm={},km={exports:{}},X_;function oh(){return X_||(X_=1,function(e){function t(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(km)),km.exports}var Mm={exports:{}},Z_;function lh(){return Z_||(Z_=1,function(e){var t=QC();function n(s,o){for(var a=0;a1?"s":"")+" required, but only "+t.length+" present")}function pn(e){hn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ni(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 Tv(e,t){hn(2,arguments);var n=pn(e),i=hr(t);return isNaN(i)?new Date(NaN):(i&&n.setDate(n.getDate()+i),n)}function uh(e,t){hn(2,arguments);var n=pn(e).getTime(),i=hr(t);return new Date(n+i)}function ON(e,t){hn(2,arguments);var n=hr(t);return uh(e,n*1e3)}var PN=6e4;function AN(e,t){hn(2,arguments);var n=hr(t);return uh(e,n*PN)}var DN=36e5;function EN(e,t){hn(2,arguments);var n=hr(t);return uh(e,n*DN)}function RN(e,t){hn(2,arguments);var n=hr(t),i=n*7;return Tv(e,i)}function Uf(e,t){hn(2,arguments);var n=pn(e),i=hr(t);if(isNaN(i))return new Date(NaN);if(!i)return n;var s=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+i+1,0);var a=o.getDate();return s>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),s),n)}function n3(e,t){hn(2,arguments);var n=hr(t);return Uf(e,n*12)}function LN(e,t){hn(2,arguments);var n=pn(e),i=pn(t);return n.getFullYear()-i.getFullYear()}function Vu(e,t){hn(2,arguments);var n=pn(e),i=pn(t),s=n.getTime()-i.getTime();return s<0?-1:s>0?1:s}function IN(e,t){hn(2,arguments);var n=pn(e),i=pn(t),s=Vu(n,i),o=Math.abs(LN(n,i));n.setFullYear(1584),i.setFullYear(1584);var a=Vu(n,i)===-s,r=s*(o-Number(a));return r===0?0:r}function FN(e,t){hn(2,arguments);var n=pn(e),i=pn(t),s=n.getFullYear()-i.getFullYear(),o=n.getMonth()-i.getMonth();return s*12+o}function kv(e){hn(1,arguments);var t=pn(e);return t.setHours(23,59,59,999),t}function Mv(e){hn(1,arguments);var t=pn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function $N(e){hn(1,arguments);var t=pn(e);return kv(t).getTime()===Mv(t).getTime()}function v4(e,t){hn(2,arguments);var n=pn(e),i=pn(t),s=Vu(n,i),o=Math.abs(FN(n,i)),a;if(o<1)a=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-s*o);var r=Vu(n,i)===-s;$N(pn(e))&&o===1&&Vu(e,i)===1&&(r=!1),a=s*(o-Number(r))}return a===0?0:a}var r3={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},jN="trunc";function Pc(e){return e?r3[e]:r3[jN]}function NN(e,t,n){hn(2,arguments);var i=v4(e,t)/3;return Pc(void 0)(i)}function ud(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 Ul(e){hn(1,arguments);var t=pn(e);return t.setHours(0,0,0,0),t}var zN=864e5;function BN(e,t){hn(2,arguments);var n=Ul(e),i=Ul(t),s=n.getTime()-ud(n),o=i.getTime()-ud(i);return Math.round((s-o)/zN)}function a3(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 y4(e,t){hn(2,arguments);var n=pn(e),i=pn(t),s=a3(n,i),o=Math.abs(BN(n,i));n.setDate(n.getDate()-s*o);var a=+(a3(n,i)===-s),r=s*(o-a);return r===0?0:r}function qN(e,t,n){hn(2,arguments);var i=y4(e,t)/7;return Pc(void 0)(i)}var ch=6e4,fh=36e5,UN=1e3;function dh(e,t){return hn(2,arguments),pn(e).getTime()-pn(t).getTime()}function WN(e,t,n){hn(2,arguments);var i=dh(e,t)/fh;return Pc(void 0)(i)}function HN(e,t,n){hn(2,arguments);var i=dh(e,t)/ch;return Pc(void 0)(i)}function VN(e,t,n){hn(2,arguments);var i=dh(e,t)/1e3;return Pc(void 0)(i)}function YN(e,t){var n;hn(1,arguments);var i=e||{},s=pn(i.start),o=pn(i.end),a=o.getTime();if(!(s.getTime()<=a))throw new RangeError("Invalid interval");var r=[],l=s;l.setHours(0,0,0,0);var c=Number((n=void 0)!==null&&n!==void 0?n:1);if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=a;)r.push(pn(l)),l.setDate(l.getDate()+c),l.setHours(0,0,0,0);return r}var GN={};function xo(){return GN}function Dm(e,t){var n,i,s,o,a,r,l,c;hn(1,arguments);var u=xo(),f=hr((n=(i=(s=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(r=a.options)===null||r===void 0?void 0:r.weekStartsOn)!==null&&s!==void 0?s:u.weekStartsOn)!==null&&i!==void 0?i:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=pn(e),h=d.getDay(),p=(h=s.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function JN(e){hn(1,arguments);var t=w4(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var i=Wl(n);return i}var QN=6048e5;function _4(e){hn(1,arguments);var t=pn(e),n=Wl(t).getTime()-JN(t).getTime();return Math.round(n/QN)+1}function Wo(e,t){var n,i,s,o,a,r,l,c;hn(1,arguments);var u=xo(),f=hr((n=(i=(s=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(r=a.options)===null||r===void 0?void 0:r.weekStartsOn)!==null&&s!==void 0?s:u.weekStartsOn)!==null&&i!==void 0?i:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=pn(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(f+1,0,h),p.setUTCHours(0,0,0,0);var g=Wo(p,t),y=new Date(0);y.setUTCFullYear(f,0,h),y.setUTCHours(0,0,0,0);var v=Wo(y,t);return u.getTime()>=g.getTime()?f+1:u.getTime()>=v.getTime()?f:f-1}function ez(e,t){var n,i,s,o,a,r,l,c;hn(1,arguments);var u=xo(),f=hr((n=(i=(s=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(r=a.options)===null||r===void 0?void 0:r.firstWeekContainsDate)!==null&&s!==void 0?s:u.firstWeekContainsDate)!==null&&i!==void 0?i:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),d=P1(e,t),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var p=Wo(h,t);return p}var tz=6048e5;function T4(e,t){hn(1,arguments);var n=pn(e),i=Wo(n,t).getTime()-ez(n,t).getTime();return Math.round(i/tz)+1}function Xn(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length0?i:1-i;return Xn(n==="yy"?s%100:s,n.length)},M:function(t,n){var i=t.getUTCMonth();return n==="M"?String(i+1):Xn(i+1,2)},d:function(t,n){return Xn(t.getUTCDate(),n.length)},a:function(t,n){var i=t.getUTCHours()/12>=1?"pm":"am";switch(n){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,n){return Xn(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Xn(t.getUTCHours(),n.length)},m:function(t,n){return Xn(t.getUTCMinutes(),n.length)},s:function(t,n){return Xn(t.getUTCSeconds(),n.length)},S:function(t,n){var i=n.length,s=t.getUTCMilliseconds(),o=Math.floor(s*Math.pow(10,i-3));return Xn(o,n.length)}},_l={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},nz={G:function(t,n,i){var s=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return i.era(s,{width:"abbreviated"});case"GGGGG":return i.era(s,{width:"narrow"});case"GGGG":default:return i.era(s,{width:"wide"})}},y:function(t,n,i){if(n==="yo"){var s=t.getUTCFullYear(),o=s>0?s:1-s;return i.ordinalNumber(o,{unit:"year"})}return no.y(t,n)},Y:function(t,n,i,s){var o=P1(t,s),a=o>0?o:1-o;if(n==="YY"){var r=a%100;return Xn(r,2)}return n==="Yo"?i.ordinalNumber(a,{unit:"year"}):Xn(a,n.length)},R:function(t,n){var i=w4(t);return Xn(i,n.length)},u:function(t,n){var i=t.getUTCFullYear();return Xn(i,n.length)},Q:function(t,n,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(s);case"QQ":return Xn(s,2);case"Qo":return i.ordinalNumber(s,{unit:"quarter"});case"QQQ":return i.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(s,{width:"wide",context:"formatting"})}},q:function(t,n,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(s);case"qq":return Xn(s,2);case"qo":return i.ordinalNumber(s,{unit:"quarter"});case"qqq":return i.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(s,{width:"wide",context:"standalone"})}},M:function(t,n,i){var s=t.getUTCMonth();switch(n){case"M":case"MM":return no.M(t,n);case"Mo":return i.ordinalNumber(s+1,{unit:"month"});case"MMM":return i.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(s,{width:"wide",context:"formatting"})}},L:function(t,n,i){var s=t.getUTCMonth();switch(n){case"L":return String(s+1);case"LL":return Xn(s+1,2);case"Lo":return i.ordinalNumber(s+1,{unit:"month"});case"LLL":return i.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(s,{width:"wide",context:"standalone"})}},w:function(t,n,i,s){var o=T4(t,s);return n==="wo"?i.ordinalNumber(o,{unit:"week"}):Xn(o,n.length)},I:function(t,n,i){var s=_4(t);return n==="Io"?i.ordinalNumber(s,{unit:"week"}):Xn(s,n.length)},d:function(t,n,i){return n==="do"?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):no.d(t,n)},D:function(t,n,i){var s=KN(t);return n==="Do"?i.ordinalNumber(s,{unit:"dayOfYear"}):Xn(s,n.length)},E:function(t,n,i){var s=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return i.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(s,{width:"short",context:"formatting"});case"EEEE":default:return i.day(s,{width:"wide",context:"formatting"})}},e:function(t,n,i,s){var o=t.getUTCDay(),a=(o-s.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Xn(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,n,i,s){var o=t.getUTCDay(),a=(o-s.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Xn(a,n.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,n,i){var s=t.getUTCDay(),o=s===0?7:s;switch(n){case"i":return String(o);case"ii":return Xn(o,n.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(s,{width:"short",context:"formatting"});case"iiii":default:return i.day(s,{width:"wide",context:"formatting"})}},a:function(t,n,i){var s=t.getUTCHours(),o=s/12>=1?"pm":"am";switch(n){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,n,i){var s=t.getUTCHours(),o;switch(s===12?o=_l.noon:s===0?o=_l.midnight:o=s/12>=1?"pm":"am",n){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,n,i){var s=t.getUTCHours(),o;switch(s>=17?o=_l.evening:s>=12?o=_l.afternoon:s>=4?o=_l.morning:o=_l.night,n){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,n,i){if(n==="ho"){var s=t.getUTCHours()%12;return s===0&&(s=12),i.ordinalNumber(s,{unit:"hour"})}return no.h(t,n)},H:function(t,n,i){return n==="Ho"?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):no.H(t,n)},K:function(t,n,i){var s=t.getUTCHours()%12;return n==="Ko"?i.ordinalNumber(s,{unit:"hour"}):Xn(s,n.length)},k:function(t,n,i){var s=t.getUTCHours();return s===0&&(s=24),n==="ko"?i.ordinalNumber(s,{unit:"hour"}):Xn(s,n.length)},m:function(t,n,i){return n==="mo"?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):no.m(t,n)},s:function(t,n,i){return n==="so"?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):no.s(t,n)},S:function(t,n){return no.S(t,n)},X:function(t,n,i,s){var o=s._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return o3(a);case"XXXX":case"XX":return Do(a);case"XXXXX":case"XXX":default:return Do(a,":")}},x:function(t,n,i,s){var o=s._originalDate||t,a=o.getTimezoneOffset();switch(n){case"x":return o3(a);case"xxxx":case"xx":return Do(a);case"xxxxx":case"xxx":default:return Do(a,":")}},O:function(t,n,i,s){var o=s._originalDate||t,a=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+i3(a,":");case"OOOO":default:return"GMT"+Do(a,":")}},z:function(t,n,i,s){var o=s._originalDate||t,a=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+i3(a,":");case"zzzz":default:return"GMT"+Do(a,":")}},t:function(t,n,i,s){var o=s._originalDate||t,a=Math.floor(o.getTime()/1e3);return Xn(a,n.length)},T:function(t,n,i,s){var o=s._originalDate||t,a=o.getTime();return Xn(a,n.length)}};function i3(e,t){var n=e>0?"-":"+",i=Math.abs(e),s=Math.floor(i/60),o=i%60;if(o===0)return n+String(s);var a=t;return n+String(s)+a+Xn(o,2)}function o3(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Xn(Math.abs(e)/60,2)}return Do(e,t)}function Do(e,t){var n=t||"",i=e>0?"-":"+",s=Math.abs(e),o=Xn(Math.floor(s/60),2),a=Xn(s%60,2);return i+o+n+a}var l3=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"})}},k4=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"})}},rz=function(t,n){var i=t.match(/(P+)(p+)?/)||[],s=i[1],o=i[2];if(!o)return l3(t,n);var a;switch(s){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",l3(s,n)).replace("{{time}}",k4(o,n))},Sv={p:k4,P:rz},az=["D","DD"],iz=["YY","YYYY"];function M4(e){return az.indexOf(e)!==-1}function S4(e){return iz.indexOf(e)!==-1}function cd(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 oz={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"}},lz=function(t,n,i){var s,o=oz[t];return typeof o=="string"?s=o:n===1?s=o.one:s=o.other.replace("{{count}}",n.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+s:s+" ago":s};function Rm(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,i=e.formats[n]||e.formats[e.defaultWidth];return i}}var sz={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uz={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},cz={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fz={date:Rm({formats:sz,defaultWidth:"full"}),time:Rm({formats:uz,defaultWidth:"full"}),dateTime:Rm({formats:cz,defaultWidth:"full"})},dz={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hz=function(t,n,i,s){return dz[t]};function eu(e){return function(t,n){var i=n!=null&&n.context?String(n.context):"standalone",s;if(i==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;s=e.formattingValues[a]||e.formattingValues[o]}else{var r=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[l]||e.values[r]}var c=e.argumentCallback?e.argumentCallback(t):t;return s[c]}}var pz={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gz={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mz={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"]},vz={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"]},yz={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"}},bz={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"}},xz=function(t,n){var i=Number(t),s=i%100;if(s>20||s<10)switch(s%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},wz={ordinalNumber:xz,era:eu({values:pz,defaultWidth:"wide"}),quarter:eu({values:gz,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:eu({values:mz,defaultWidth:"wide"}),day:eu({values:vz,defaultWidth:"wide"}),dayPeriod:eu({values:yz,defaultWidth:"wide",formattingValues:bz,defaultFormattingWidth:"wide"})};function tu(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;var a=o[0],r=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(r)?Tz(r,function(f){return f.test(a)}):_z(r,function(f){return f.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var u=t.slice(a.length);return{value:c,rest:u}}}function _z(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Tz(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var s=i[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var r=t.slice(s.length);return{value:a,rest:r}}}var Mz=/^(\d+)(th|st|nd|rd)?/i,Sz=/\d+/i,Cz={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},Oz={any:[/^b/i,/^(a|c)/i]},Pz={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Az={any:[/1/i,/2/i,/3/i,/4/i]},Dz={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},Ez={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]},Rz={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},Lz={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]},Iz={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},Fz={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}},$z={ordinalNumber:kz({matchPattern:Mz,parsePattern:Sz,valueCallback:function(t){return parseInt(t,10)}}),era:tu({matchPatterns:Cz,defaultMatchWidth:"wide",parsePatterns:Oz,defaultParseWidth:"any"}),quarter:tu({matchPatterns:Pz,defaultMatchWidth:"wide",parsePatterns:Az,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:tu({matchPatterns:Dz,defaultMatchWidth:"wide",parsePatterns:Ez,defaultParseWidth:"any"}),day:tu({matchPatterns:Rz,defaultMatchWidth:"wide",parsePatterns:Lz,defaultParseWidth:"any"}),dayPeriod:tu({matchPatterns:Iz,defaultMatchWidth:"any",parsePatterns:Fz,defaultParseWidth:"any"})},hh={code:"en-US",formatDistance:lz,formatLong:fz,formatRelative:hz,localize:wz,match:$z,options:{weekStartsOn:0,firstWeekContainsDate:1}},jz=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Nz=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zz=/^'([^]*?)'?$/,Bz=/''/g,qz=/[a-zA-Z]/;function C4(e,t,n){var i,s,o,a,r,l,c,u,f,d,h,p,g,y,v,m,b,w;hn(2,arguments);var _=String(t),x=xo(),k=(i=(s=n==null?void 0:n.locale)!==null&&s!==void 0?s:x.locale)!==null&&i!==void 0?i:hh,T=hr((o=(a=(r=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&r!==void 0?r:x.firstWeekContainsDate)!==null&&a!==void 0?a:(f=x.locale)===null||f===void 0||(d=f.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=hr((h=(p=(g=(y=n==null?void 0:n.weekStartsOn)!==null&&y!==void 0?y:n==null||(v=n.locale)===null||v===void 0||(m=v.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&g!==void 0?g:x.weekStartsOn)!==null&&p!==void 0?p:(b=x.locale)===null||b===void 0||(w=b.options)===null||w===void 0?void 0:w.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=pn(e);if(!b4(S))throw new RangeError("Invalid time value");var C=ud(S),A=x4(S,C),D={firstWeekContainsDate:T,weekStartsOn:M,locale:k,_originalDate:S},O=_.match(Nz).map(function(R){var F=R[0];if(F==="p"||F==="P"){var P=Sv[F];return P(R,k.formatLong)}return R}).join("").match(jz).map(function(R){if(R==="''")return"'";var F=R[0];if(F==="'")return Uz(R);var P=nz[F];if(P)return!(n!=null&&n.useAdditionalWeekYearTokens)&&S4(R)&&cd(R,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&M4(R)&&cd(R,t,String(e)),P(A,R,k.localize,D);if(F.match(qz))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return R}).join("");return O}function Uz(e){var t=e.match(zz);return t?t[1].replace(Bz,"'"):e}const Wz=Object.freeze(Object.defineProperty({__proto__:null,default:C4},Symbol.toStringTag,{value:"Module"}));function Hz(e){hn(1,arguments);var t=pn(e),n=t.getDate();return n}function Vz(e){hn(1,arguments);var t=pn(e),n=t.getDay();return n}function O4(e){hn(1,arguments);var t=pn(e),n=t.getFullYear(),i=t.getMonth(),s=new Date(0);return s.setFullYear(n,i+1,0),s.setHours(0,0,0,0),s.getDate()}function Yz(e){hn(1,arguments);var t=pn(e),n=t.getHours();return n}function Gz(e){hn(1,arguments);var t=pn(e),n=t.getMinutes();return n}function Xz(e){hn(1,arguments);var t=pn(e),n=t.getMonth();return n}function Zz(e){hn(1,arguments);var t=pn(e),n=t.getSeconds();return n}function Kz(e){return hn(1,arguments),pn(e).getFullYear()}function df(e,t){hn(2,arguments);var n=pn(e),i=pn(t);return n.getTime()>i.getTime()}function Tl(e,t){hn(2,arguments);var n=pn(e),i=pn(t);return n.getTime()e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(c){throw c},f:s}}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,r;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){a=!0,r=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw r}}}}function aB(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 nr(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&&WL(e,t)}function fd(e){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fd(e)}function iB(){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 oB(e,t){if(t&&(Ni(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 rr(e){var t=iB();return function(){var i=fd(e),s;if(t){var o=fd(this).constructor;s=Reflect.construct(i,arguments,o)}else s=i.apply(this,arguments);return oB(this,s)}}function Qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lB(e,t){if(Ni(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Ni(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P4(e){var t=lB(e,"string");return Ni(t)==="symbol"?t:String(t)}function sB(e,t){for(var n=0;n0,i=n?t:1-t,s;if(i<=50)s=e||100;else{var o=i+50,a=Math.floor(o/100)*100,r=e>=o%100;s=e+a-(r?100:0)}return n?s:1-s}function R4(e){return e%400===0||e%4===0&&e%100!==0}var hB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a0}},{key:"set",value:function(s,o,a){var r=s.getUTCFullYear();if(a.isTwoDigitYear){var l=E4(a.year,r);return s.setUTCFullYear(l,0,1),s.setUTCHours(0,0,0,0),s}var c=!("era"in o)||o.era===1?a.year:1-a.year;return s.setUTCFullYear(c,0,1),s.setUTCHours(0,0,0,0),s}}]),n}(cr),pB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a0}},{key:"set",value:function(s,o,a,r){var l=P1(s,r);if(a.isTwoDigitYear){var c=E4(a.year,l);return s.setUTCFullYear(c,0,r.firstWeekContainsDate),s.setUTCHours(0,0,0,0),Wo(s,r)}var u=!("era"in o)||o.era===1?a.year:1-a.year;return s.setUTCFullYear(u,0,r.firstWeekContainsDate),s.setUTCHours(0,0,0,0),Wo(s,r)}}]),n}(cr),gB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=4}},{key:"set",value:function(s,o,a){return s.setUTCMonth((a-1)*3,1),s.setUTCHours(0,0,0,0),s}}]),n}(cr),yB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=4}},{key:"set",value:function(s,o,a){return s.setUTCMonth((a-1)*3,1),s.setUTCHours(0,0,0,0),s}}]),n}(cr),bB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=11}},{key:"set",value:function(s,o,a){return s.setUTCMonth(a,1),s.setUTCHours(0,0,0,0),s}}]),n}(cr),xB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=11}},{key:"set",value:function(s,o,a){return s.setUTCMonth(a,1),s.setUTCHours(0,0,0,0),s}}]),n}(cr);function wB(e,t,n){hn(2,arguments);var i=pn(e),s=hr(t),o=T4(i,n)-s;return i.setUTCDate(i.getUTCDate()-o*7),i}var _B=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=53}},{key:"set",value:function(s,o,a,r){return Wo(wB(s,a,r),r)}}]),n}(cr);function TB(e,t){hn(2,arguments);var n=pn(e),i=hr(t),s=_4(n)-i;return n.setUTCDate(n.getUTCDate()-s*7),n}var kB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=53}},{key:"set",value:function(s,o,a){return Wl(TB(s,a))}}]),n}(cr),MB=[31,28,31,30,31,30,31,31,30,31,30,31],SB=[31,29,31,30,31,30,31,31,30,31,30,31],CB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=SB[l]:o>=1&&o<=MB[l]}},{key:"set",value:function(s,o,a){return s.setUTCDate(a),s.setUTCHours(0,0,0,0),s}}]),n}(cr),OB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(s,o,a){return s.setUTCMonth(0,a),s.setUTCHours(0,0,0,0),s}}]),n}(cr);function D1(e,t,n){var i,s,o,a,r,l,c,u;hn(2,arguments);var f=xo(),d=hr((i=(s=(o=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(r=n.locale)===null||r===void 0||(l=r.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&s!==void 0?s:(c=f.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.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=pn(e),p=hr(t),g=h.getUTCDay(),y=p%7,v=(y+7)%7,m=(v=0&&o<=6}},{key:"set",value:function(s,o,a,r){return s=D1(s,a,r),s.setUTCHours(0,0,0,0),s}}]),n}(cr),AB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=6}},{key:"set",value:function(s,o,a,r){return s=D1(s,a,r),s.setUTCHours(0,0,0,0),s}}]),n}(cr),DB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=6}},{key:"set",value:function(s,o,a,r){return s=D1(s,a,r),s.setUTCHours(0,0,0,0),s}}]),n}(cr);function EB(e,t){hn(2,arguments);var n=hr(t);n%7===0&&(n=n-7);var i=1,s=pn(e),o=s.getUTCDay(),a=n%7,r=(a+7)%7,l=(r=1&&o<=7}},{key:"set",value:function(s,o,a){return s=EB(s,a),s.setUTCHours(0,0,0,0),s}}]),n}(cr),LB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=12}},{key:"set",value:function(s,o,a){var r=s.getUTCHours()>=12;return r&&a<12?s.setUTCHours(a+12,0,0,0):!r&&a===12?s.setUTCHours(0,0,0,0):s.setUTCHours(a,0,0,0),s}}]),n}(cr),jB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=23}},{key:"set",value:function(s,o,a){return s.setUTCHours(a,0,0,0),s}}]),n}(cr),NB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=11}},{key:"set",value:function(s,o,a){var r=s.getUTCHours()>=12;return r&&a<12?s.setUTCHours(a+12,0,0,0):s.setUTCHours(a,0,0,0),s}}]),n}(cr),zB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=24}},{key:"set",value:function(s,o,a){var r=a<=24?a%24:a;return s.setUTCHours(r,0,0,0),s}}]),n}(cr),BB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=59}},{key:"set",value:function(s,o,a){return s.setUTCMinutes(a,0,0),s}}]),n}(cr),qB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=59}},{key:"set",value:function(s,o,a){return s.setUTCSeconds(a,0),s}}]),n}(cr),UB=function(e){nr(n,e);var t=rr(n);function n(){var i;Qn(this,n);for(var s=arguments.length,o=new Array(s),a=0;a=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=hr((p=(g=(y=(v=i==null?void 0:i.weekStartsOn)!==null&&v!==void 0?v:i==null||(m=i.locale)===null||m===void 0||(b=m.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&y!==void 0?y:T.weekStartsOn)!==null&&g!==void 0?g:(w=T.locale)===null||w===void 0||(_=w.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 x===""?pn(n):new Date(NaN);var A={firstWeekContainsDate:S,weekStartsOn:C,locale:M},D=[new fB],O=k.match(ZB).map(function(W){var V=W[0];if(V in Sv){var te=Sv[V];return te(W,M.formatLong)}return W}).join("").match(XB),R=[],F=c3(O),P;try{var z=function(){var V=P.value;!(i!=null&&i.useAdditionalWeekYearTokens)&&S4(V)&&cd(V,k,e),!(i!=null&&i.useAdditionalDayOfYearTokens)&&M4(V)&&cd(V,k,e);var te=V[0],ee=GB[te];if(ee){var H=ee.incompatibleTokens;if(Array.isArray(H)){var Q=R.find(function(Z){return H.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(x,V,M.match,A);if(!Y)return{v:new Date(NaN)};D.push(Y.setter),x=Y.rest}else{if(te.match(eq))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(V==="''"?V="'":te==="'"&&(V=nq(V)),x.indexOf(V)===0)x=x.slice(V.length);else return{v:new Date(NaN)}}};for(F.s();!(P=F.n()).done;){var B=z();if(Ni(B)==="object")return B.v}}catch(W){F.e(W)}finally{F.f()}if(x.length>0&&QB.test(x))return new Date(NaN);var N=D.map(function(W){return W.priority}).sort(function(W,V){return V-W}).filter(function(W,V,te){return te.indexOf(W)===V}).map(function(W){return D.filter(function(V){return V.priority===W}).sort(function(V,te){return te.subPriority-V.subPriority})}).map(function(W){return W[0]}),j=pn(n);if(isNaN(j.getTime()))return new Date(NaN);var $=x4(j,ud(j)),E={},U=c3(N),G;try{for(U.s();!(G=U.n()).done;){var L=G.value;if(!L.validate($,A))return new Date(NaN);var q=L.set($,E,A);Array.isArray(q)?($=q[0],aB(E,q[1])):$=q}}catch(W){U.e(W)}finally{U.f()}return $}function nq(e){return e.match(KB)[1].replace(JB,"'")}function rq(e,t){hn(2,arguments);var n=pn(e),i=hr(t);return n.setDate(i),n}function aq(e,t){hn(2,arguments);var n=pn(e),i=hr(t);return n.setHours(i),n}function iq(e,t){hn(2,arguments);var n=pn(e),i=hr(t);return n.setMinutes(i),n}function oq(e,t){hn(2,arguments);var n=pn(e),i=hr(t),s=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(s,i,15),a.setHours(0,0,0,0);var r=O4(a);return n.setMonth(i,Math.min(o,r)),n}function lq(e,t){hn(2,arguments);var n=pn(e),i=hr(t);return n.setSeconds(i),n}function sq(e,t){hn(2,arguments);var n=pn(e),i=hr(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(i),n)}function hf(e){hn(1,arguments);var t=pn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Lm(e,t){var n,i,s,o,a,r,l,c;hn(1,arguments);var u=xo(),f=hr((n=(i=(s=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(r=a.options)===null||r===void 0?void 0:r.weekStartsOn)!==null&&s!==void 0?s:u.weekStartsOn)!==null&&i!==void 0?i:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=pn(e),h=d.getDay(),p=(h2)return t;if(/:/.test(n[0])?i=n[0]:(t.date=n[0],i=n[1],gf.timeZoneDelimiter.test(t.date)&&(t.date=e.split(gf.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){var s=gf.timezone.exec(i);s?(t.time=i.replace(s[1],""),t.timezone=s[1]):t.time=i}return t}function hq(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:NaN,restDateString:""};var s=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?s:o*100,restDateString:e.slice((i[1]||i[2]).length)}}function pq(e,t){if(t===null)return new Date(NaN);var n=e.match(uq);if(!n)return new Date(NaN);var i=!!n[4],s=nu(n[1]),o=nu(n[2])-1,a=nu(n[3]),r=nu(n[4]),l=nu(n[5])-1;if(i)return wq(t,r,l)?vq(t,r,l):new Date(NaN);var c=new Date(0);return!bq(t,o,a)||!xq(t,s)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(s,a)),c)}function nu(e){return e?parseInt(e):1}function gq(e){var t=e.match(cq);if(!t)return NaN;var n=Im(t[1]),i=Im(t[2]),s=Im(t[3]);return _q(n,i,s)?n*fh+i*ch+s*1e3:NaN}function Im(e){return e&&parseFloat(e.replace(",","."))||0}function mq(e){if(e==="Z")return 0;var t=e.match(fq);if(!t)return 0;var n=t[1]==="+"?-1:1,i=parseInt(t[2]),s=t[3]&&parseInt(t[3])||0;return Tq(i,s)?n*(i*fh+s*ch):NaN}function vq(e,t,n){var i=new Date(0);i.setUTCFullYear(e,0,4);var s=i.getUTCDay()||7,o=(t-1)*7+n+1-s;return i.setUTCDate(i.getUTCDate()+o),i}var yq=[31,null,31,30,31,30,31,31,30,31,30,31];function I4(e){return e%400===0||e%4===0&&e%100!==0}function bq(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(yq[t]||(I4(e)?29:28))}function xq(e,t){return t>=1&&t<=(I4(e)?366:365)}function wq(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function _q(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Tq(e,t){return t>=0&&t<=59}const kq=Object.freeze(Object.defineProperty({__proto__:null,default:L4},Symbol.toStringTag,{value:"Module"}));function Mq(e,t){var n,i;hn(1,arguments);var s=pn(e);if(isNaN(s.getTime()))throw new RangeError("Invalid time value");var o=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"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 r="",l="",c=o==="extended"?"-":"",u=o==="extended"?":":"";if(a!=="time"){var f=Xn(s.getDate(),2),d=Xn(s.getMonth()+1,2),h=Xn(s.getFullYear(),4);r="".concat(h).concat(c).concat(d).concat(c).concat(f)}if(a!=="date"){var p=s.getTimezoneOffset();if(p!==0){var g=Math.abs(p),y=Xn(Math.floor(g/60),2),v=Xn(g%60,2),m=p<0?"+":"-";l="".concat(m).concat(y,":").concat(v)}else l="Z";var b=Xn(s.getHours(),2),w=Xn(s.getMinutes(),2),_=Xn(s.getSeconds(),2),x=r===""?"":"T",k=[b,w,_].join(u);r="".concat(r).concat(x).concat(k).concat(l)}return r}function Sq(e,t){hn(2,arguments);var n=pn(e).getTime(),i=pn(t.start).getTime(),s=pn(t.end).getTime();if(!(i<=s))throw new RangeError("Invalid interval");return n>=i&&n<=s}var Cv={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(l,c){switch(l){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},i=function(l,c){switch(l){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},s=function(l,c){var u=l.match(/(P+)(p+)?/)||[],f=u[1],d=u[2];if(!d)return n(l,c);var h;switch(f){case"P":h=c.dateTime({width:"short"});break;case"PP":h=c.dateTime({width:"medium"});break;case"PPP":h=c.dateTime({width:"long"});break;case"PPPP":default:h=c.dateTime({width:"full"});break}return h.replace("{{date}}",n(f,c)).replace("{{time}}",i(d,c))},o={p:i,P:s},a=o;t.default=a,e.exports=t.default})(Cv,Cv.exports);var Cq=Cv.exports;const F4=lr(Cq),Oq={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 Pq{constructor({locale:t,formats:n}={}){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 s,o;const a=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,r=this.locale||hh;return(o=(s=i.match(a))===null||s===void 0?void 0:s.map(l=>{const c=l[0];if(c==="p"||c==="P"){const u=F4[c];return u(l,r.formatLong,{})}return l}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&o!==void 0?o:i},this.parseISO=i=>L4(i),this.toISO=i=>Mq(i,{format:"extended"}),this.getCurrentLocaleCode=()=>{var i;return((i=this.locale)===null||i===void 0?void 0:i.code)||"en-US"},this.addSeconds=(i,s)=>ON(i,s),this.addMinutes=(i,s)=>AN(i,s),this.addHours=(i,s)=>EN(i,s),this.addDays=(i,s)=>Tv(i,s),this.addWeeks=(i,s)=>RN(i,s),this.addMonths=(i,s)=>Uf(i,s),this.addYears=(i,s)=>n3(i,s),this.isValid=i=>b4(this.date(i)),this.getDiff=(i,s,o)=>{var a;const r=(a=this.date(s))!==null&&a!==void 0?a:i;if(!this.isValid(r))return 0;switch(o){case"years":return IN(i,r);case"quarters":return NN(i,r);case"months":return v4(i,r);case"weeks":return qN(i,r);case"days":return y4(i,r);case"hours":return WN(i,r);case"minutes":return HN(i,r);case"seconds":return VN(i,r);default:return dh(i,r)}},this.isAfter=(i,s)=>df(i,s),this.isBefore=(i,s)=>Tl(i,s),this.startOfDay=i=>Ul(i),this.endOfDay=i=>kv(i),this.getHours=i=>Yz(i),this.setHours=(i,s)=>aq(i,s),this.setMinutes=(i,s)=>iq(i,s),this.getSeconds=i=>Zz(i),this.setSeconds=(i,s)=>lq(i,s),this.isSameDay=(i,s)=>Qz(i,s),this.isSameMonth=(i,s)=>tB(i,s),this.isSameYear=(i,s)=>eB(i,s),this.isSameHour=(i,s)=>nB(i,s),this.startOfYear=i=>pf(i),this.endOfYear=i=>Em(i),this.startOfMonth=i=>hf(i),this.endOfMonth=i=>Mv(i),this.startOfWeek=i=>Lm(i,{locale:this.locale}),this.endOfWeek=i=>Dm(i,{locale:this.locale}),this.getYear=i=>Kz(i),this.setYear=(i,s)=>sq(i,s),this.date=i=>typeof i>"u"?new Date:i===null?null:new Date(i),this.toJsDate=i=>i,this.parse=(i,s)=>i===""?null:tq(i,s,new Date,{locale:this.locale}),this.format=(i,s)=>this.formatByString(i,this.formats[s]),this.formatByString=(i,s)=>C4(i,s,{locale:this.locale}),this.isEqual=(i,s)=>i===null&&s===null?!0:Jz(i,s),this.isNull=i=>i===null,this.isAfterDay=(i,s)=>df(i,kv(s)),this.isBeforeDay=(i,s)=>Tl(i,Ul(s)),this.isBeforeYear=(i,s)=>Tl(i,pf(s)),this.isAfterYear=(i,s)=>df(i,Em(s)),this.isWithinRange=(i,[s,o])=>Sq(i,{start:s,end:o}),this.formatNumber=i=>i,this.getMinutes=i=>Gz(i),this.getDate=i=>Hz(i),this.setDate=(i,s)=>rq(i,s),this.getMonth=i=>Xz(i),this.getDaysInMonth=i=>O4(i),this.setMonth=(i,s)=>oq(i,s),this.getMeridiemText=i=>i==="am"?"AM":"PM",this.getNextMonth=i=>Uf(i,1),this.getPreviousMonth=i=>Uf(i,-1),this.getMonthArray=i=>{const o=[pf(i)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(i,s)=>this.setSeconds(this.setMinutes(this.setHours(i,this.getHours(s)),this.getMinutes(s)),this.getSeconds(s)),this.getWeekdays=()=>{const i=new Date;return YN({start:Lm(i,{locale:this.locale}),end:Dm(i,{locale:this.locale})}).map(s=>this.formatByString(s,"EEEEEE"))},this.getWeekArray=i=>{const s=Lm(hf(i),{locale:this.locale}),o=Dm(Mv(i),{locale:this.locale});let a=0,r=s;const l=[];let c=null;for(;Tl(r,o);){const u=Math.floor(a/7);l[u]=l[u]||[];const f=Vz(r);c!==f&&(c=f,l[u].push(r),a+=1),r=Tv(r,1)}return l},this.getYearRange=(i,s)=>{const o=pf(i),a=Em(s),r=[];let l=o;for(;Tl(l,a);)r.push(l),l=n3(l,1);return r},this.locale=t,this.formats=Object.assign({},Oq,n)}isBeforeMonth(t,n){return Tl(t,hf(n))}isAfterMonth(t,n){return df(t,hf(n))}}const Aq={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 Dq extends Pq{constructor(...t){super(...t),this.formatTokenMap=Aq,this.expandFormat=n=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(i).map(s=>{const o=s[0];if(o==="p"||o==="P"){const a=F4[o],r=this.locale||hh;return a(s,r.formatLong,{})}return s}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const Eq=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:Dq},Symbol.toStringTag,{value:"Module"})),$4=Wn(Eq);function j4(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(n)!==-1):e.indexOf(t)!==-1}const N4=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},z4=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?z4(t.shadowRoot):t:null};function Rq(e){return Hn("PrivatePickersMonth",e)}const Ov=qn("PrivatePickersMonth",["root","selected"]),Lq=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],Iq=e=>{const{classes:t,selected:n}=e;return Un({root:["root",n&&"selected"]},Rq,t)},Fq=en(dr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Ov.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:po(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${Ov.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),f3=()=>{},$q=e=>{const{disabled:t,onSelect:n,selected:i,value:s,tabIndex:o,hasFocus:a,onFocus:r=f3,onBlur:l=f3}=e,c=Yn(e,Lq),u=Iq(e),f=()=>{n(s)},d=je.useRef(null);return xC(()=>{if(a){var h;(h=d.current)==null||h.focus()}},[a]),Ie.jsx(Fq,Gt({ref:d,component:"button",type:"button",className:u.root,tabIndex:o,onClick:f,onKeyDown:N4(f),color:i?"primary":void 0,variant:i?"h5":"subtitle1",disabled:t,onFocus:h=>r(h,s),onBlur:h=>l(h,s)},c))},$r=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Gt({},e)}}}}),jq={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"},Nq=$r(jq),zq={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ę"},Bq=$r(zq),qq={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"},Uq=$r(qq),Wq={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ç"},Hq=$r(Wq),mf={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},d3={calendar:"Kalenderansicht",clock:"Uhransicht"},Vq={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 ${d3[t]} wechseln`:`${d3[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 i;return`${(i=mf[e])!=null?i:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${mf.hours}`,minutesClockNumberText:e=>`${e} ${mf.minutes}`,secondsClockNumberText:e=>`${e} ${mf.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"},Yq=$r(Vq),Gq={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},Xq={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 ${Gq[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"},Zq=$r(Xq),Kq={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:"انتخاب ساعت"},Jq=$r(Kq),Qq={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},h3={calendar:"kalenteri",clock:"kello"},eU={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 ${h3[t]}näkymään`:`${h3[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 ${Qq[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ä"},tU=$r(eU),nU={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},p3={calendar:"kalendáře",clock:"času"},rU={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í ${p3[t]}`:`Zobrazení ${p3[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 i;return`${(i=nU[e])!=null?i: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"},aU=$r(rU),iU={hours:"heures",minutes:"minutes",seconds:"secondes"},g3={calendar:"calendrier",clock:"horloge"},oU={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 ${g3[t]}`:`passer du ${g3[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,n)=>`Choix des ${iU[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"},lU=$r(oU),vf={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},m3={calendar:"naptár",clock:"óra"},sU={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 ${m3[t]} nézetre`:`${m3[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 i;return`${(i=vf[e])!=null?i:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${vf.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${vf.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${vf.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"},uU=$r(sU),B4={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"},q4=B4,cU=$r(B4),fU={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"},dU=$r(fU),hU={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"},pU=$r(hU),gU={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},mU={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 ${gU[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"},vU=$r(mU),yU={hours:"小时",minutes:"分钟",seconds:"秒"},bU={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,n)=>`Select ${yU[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:"选择日期"},xU=$r(bU),wU={hours:"시간을",minutes:"분을",seconds:"초를"},_U={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)=>`${wU[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:"선택한 날짜"},TU=$r(_U),kU={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"},MU=$r(kU),yf={hours:"時間",minutes:"分",seconds:"秒"},v3={calendar:"カレンダー表示",clock:"時計表示"},SU={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${v3[t]}に切り替える`:`${v3[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,n)=>{var i;return`${(i=yf[e])!=null?i:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${n.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${yf.hours}`,minutesClockNumberText:e=>`${e} ${yf.minutes}`,secondsClockNumberText:e=>`${e} ${yf.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:"日付を選択"},CU=$r(SU),OU={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:"оберіть дату"},PU=$r(OU),AU={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:"تاریخ منتخب کریں"},DU=$r(AU),Fm={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},EU={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${Fm[t]}`:`Выгляд ${Fm[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,n)=>`Абярыце ${Fm[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:"абраць дату"},RU=$r(EU),LU={hours:"часы",minutes:"минуты",seconds:"секунды"},y3={calendar:"календарный",clock:"часовой"},IU={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${y3[t]} вид`:`Открыт ${y3[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,n)=>`Выбрать ${LU[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:"выбрать дату"},FU=$r(IU),E1=je.createContext(null);function $U(e){const t=pr({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:i,dateFormats:s,dateLibInstance:o,locale:a,adapterLocale:r,localeText:l}=t,c=je.useMemo(()=>new i({locale:r??a,formats:s,instance:o}),[i,a,r,s,o]),u=je.useMemo(()=>({minDate:c.date("1900-01-01T00:00:00.000"),maxDate:c.date("2099-12-31T00:00:00.000")}),[c]),f=je.useMemo(()=>({utils:c,defaultDates:u,localeText:Gt({},q4,l??{})}),[u,c,l]);return Ie.jsx(E1.Provider,{value:f,children:n})}const Ac=()=>{const e=je.useContext(E1);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},Mr=()=>Ac().utils,Dc=()=>Ac().defaultDates,pi=()=>Ac().localeText,Ec=()=>{const e=Mr();return je.useRef(e.date()).current};function U4(e){return Hn("MuiMonthPicker",e)}const jU=qn("MuiMonthPicker",["root"]),Yu=({date:e,disableFuture:t,disablePast:n,maxDate:i,minDate:s,isDateDisabled:o,utils:a})=>{const r=a.startOfDay(a.date());n&&a.isBefore(s,r)&&(s=r),t&&a.isAfter(i,r)&&(i=r);let l=e,c=e;for(a.isBefore(e,s)&&(l=a.date(s),c=null),a.isAfter(e,i)&&(c&&(c=a.date(i)),l=null);l||c;){if(l&&a.isAfter(l,i)&&(l=null),c&&a.isBefore(c,s)&&(c=null),l){if(!o(l))return l;l=a.addDays(l,1)}if(c){if(!o(c))return c;c=a.addDays(c,-1)}}return null},R1=(e,t)=>{const n=e.date(t);return e.isValid(n)?n:null},ni=(e,t,n)=>{if(t==null)return n;const i=e.date(t);return e.isValid(i)?i:n},NU=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],zU=e=>{const{classes:t}=e;return Un({root:["root"]},U4,t)};function BU(e,t){const n=Mr(),i=Dc(),s=pr({props:e,name:t});return Gt({disableFuture:!1,disablePast:!1},s,{minDate:ni(n,s.minDate,i.minDate),maxDate:ni(n,s.maxDate,i.maxDate)})}const qU=en("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),W4=je.forwardRef(function(t,n){const i=Mr(),s=Ec(),o=BU(t,"MuiMonthPicker"),{className:a,date:r,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:d,onChange:h,shouldDisableMonth:p,readOnly:g,disableHighlightToday:y,autoFocus:v=!1,onMonthFocus:m,hasFocus:b,onFocusedViewChange:w}=o,_=Yn(o,NU),x=o,k=zU(x),T=HL(),M=je.useMemo(()=>r??i.startOfMonth(s),[s,i,r]),S=je.useMemo(()=>r!=null?i.getMonth(r):y?null:i.getMonth(s),[s,r,i,y]),[C,A]=je.useState(()=>S||i.getMonth(s)),D=je.useCallback(E=>{const U=i.startOfMonth(u&&i.isAfter(s,d)?s:d),G=i.startOfMonth(c&&i.isBefore(s,f)?s:f);return i.isBefore(E,U)||i.isAfter(E,G)?!0:p?p(E):!1},[c,u,f,d,s,p,i]),O=E=>{if(g)return;const U=i.setMonth(M,E);h(U,"finish")},[R,F]=rh({name:"MonthPicker",state:"hasFocus",controlled:b,default:v}),P=je.useCallback(E=>{F(E),w&&w(E)},[F,w]),z=je.useCallback(E=>{D(i.setMonth(M,E))||(A(E),P(!0),m&&m(E))},[D,i,M,P,m]);je.useEffect(()=>{A(E=>S!==null&&E!==S?S:E)},[S]);const B=Cc(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}}),N=je.useCallback((E,U)=>{z(U)},[z]),j=je.useCallback(()=>{P(!1)},[P]),$=i.getMonth(s);return Ie.jsx(qU,Gt({ref:n,className:qr(k.root,a),ownerState:x,onKeyDown:B},_,{children:i.getMonthArray(M).map(E=>{const U=i.getMonth(E),G=i.format(E,"monthShort"),L=l||D(E);return Ie.jsx($q,{value:U,selected:U===S,tabIndex:U===C&&!L?0:-1,hasFocus:R&&U===C,onSelect:O,onFocus:N,onBlur:j,disabled:L,"aria-current":$===U?"date":void 0,children:G},G)})}))});function L1(e,t,n){const{value:i,onError:s}=e,o=Ac(),a=je.useRef(null),r=t({adapter:o,value:i,props:e});return je.useEffect(()=>{s&&!n(r,a.current)&&s(r,i),a.current=r},[n,s,a,r,i]),r}const I1=({props:e,value:t,adapter:n})=>{const i=n.utils.date(),s=n.utils.date(t),o=ni(n.utils,e.minDate,n.defaultDates.minDate),a=ni(n.utils,e.maxDate,n.defaultDates.maxDate);if(s===null)return null;switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(s)):return"shouldDisableDate";case!!(e.disableFuture&&n.utils.isAfterDay(s,i)):return"disableFuture";case!!(e.disablePast&&n.utils.isBeforeDay(s,i)):return"disablePast";case!!(o&&n.utils.isBeforeDay(s,o)):return"minDate";case!!(a&&n.utils.isAfterDay(s,a)):return"maxDate";default:return null}},H4=({shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:i,disablePast:s})=>{const o=Ac();return je.useCallback(a=>I1({adapter:o,value:a,props:{shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:i,disablePast:s}})!==null,[o,e,t,n,i,s])},UU=(e,t)=>e===t,F1=e=>L1(e,I1,UU),WU=(e,t,n)=>(i,s)=>{switch(s.type){case"changeMonth":return Gt({},i,{slideDirection:s.direction,currentMonth:s.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Gt({},i,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(i.focusedDay!=null&&s.focusedDay!=null&&n.isSameDay(s.focusedDay,i.focusedDay))return i;const o=s.focusedDay!=null&&!t&&!n.isSameMonth(i.currentMonth,s.focusedDay);return Gt({},i,{focusedDay:s.focusedDay,isMonthSwitchingAnimating:o&&!e&&!s.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(s.focusedDay):i.currentMonth,slideDirection:s.focusedDay!=null&&n.isAfterDay(s.focusedDay,i.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},HU=({date:e,defaultCalendarMonth:t,disableFuture:n,disablePast:i,disableSwitchToMonthOnDayFocus:s=!1,maxDate:o,minDate:a,onMonthChange:r,reduceAnimations:l,shouldDisableDate:c})=>{var u;const f=Ec(),d=Mr(),h=je.useRef(WU(!!l,s,d)).current,[p,g]=je.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:e||f,currentMonth:d.startOfMonth((u=e??t)!=null?u:f),slideDirection:"left"}),y=je.useCallback(_=>{g(Gt({type:"changeMonth"},_)),r&&r(_.newMonth)},[r]),v=je.useCallback(_=>{const x=_??f;d.isSameMonth(x,p.currentMonth)||y({newMonth:d.startOfMonth(x),direction:d.isAfterDay(x,p.currentMonth)?"left":"right"})},[p.currentMonth,y,f,d]),m=H4({shouldDisableDate:c,minDate:a,maxDate:o,disableFuture:n,disablePast:i}),b=je.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),w=je.useCallback((_,x)=>{m(_)||g({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:x})},[m]);return{calendarState:p,changeMonth:v,changeFocusedDay:w,isDateDisabled:m,onMonthSwitchingAnimationEnd:b,handleChangeMonth:y}},VU=e=>Hn("MuiPickersFadeTransitionGroup",e),YU=qn("MuiPickersFadeTransitionGroup",["root"]),GU=e=>{const{classes:t}=e;return Un({root:["root"]},VU,t)},b3=500,XU=en(OC,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function V4(e){const t=pr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:i,reduceAnimations:s,transKey:o}=t,a=GU(t);return s?n:Ie.jsx(XU,{className:qr(a.root,i),children:Ie.jsx(c1,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:b3,enter:b3/2,exit:0},children:n},o)})}var Y4={exports:{}},vr={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var $1=Symbol.for("react.element"),j1=Symbol.for("react.portal"),ph=Symbol.for("react.fragment"),gh=Symbol.for("react.strict_mode"),mh=Symbol.for("react.profiler"),vh=Symbol.for("react.provider"),yh=Symbol.for("react.context"),ZU=Symbol.for("react.server_context"),bh=Symbol.for("react.forward_ref"),xh=Symbol.for("react.suspense"),wh=Symbol.for("react.suspense_list"),_h=Symbol.for("react.memo"),Th=Symbol.for("react.lazy"),KU=Symbol.for("react.offscreen"),G4;G4=Symbol.for("react.module.reference");function ri(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $1:switch(e=e.type,e){case ph:case mh:case gh:case xh:case wh:return e;default:switch(e=e&&e.$$typeof,e){case ZU:case yh:case bh:case Th:case _h:case vh:return e;default:return t}}case j1:return t}}}vr.ContextConsumer=yh;vr.ContextProvider=vh;vr.Element=$1;vr.ForwardRef=bh;vr.Fragment=ph;vr.Lazy=Th;vr.Memo=_h;vr.Portal=j1;vr.Profiler=mh;vr.StrictMode=gh;vr.Suspense=xh;vr.SuspenseList=wh;vr.isAsyncMode=function(){return!1};vr.isConcurrentMode=function(){return!1};vr.isContextConsumer=function(e){return ri(e)===yh};vr.isContextProvider=function(e){return ri(e)===vh};vr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$1};vr.isForwardRef=function(e){return ri(e)===bh};vr.isFragment=function(e){return ri(e)===ph};vr.isLazy=function(e){return ri(e)===Th};vr.isMemo=function(e){return ri(e)===_h};vr.isPortal=function(e){return ri(e)===j1};vr.isProfiler=function(e){return ri(e)===mh};vr.isStrictMode=function(e){return ri(e)===gh};vr.isSuspense=function(e){return ri(e)===xh};vr.isSuspenseList=function(e){return ri(e)===wh};vr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ph||e===mh||e===gh||e===xh||e===wh||e===KU||typeof e=="object"&&e!==null&&(e.$$typeof===Th||e.$$typeof===_h||e.$$typeof===vh||e.$$typeof===yh||e.$$typeof===bh||e.$$typeof===G4||e.getModuleId!==void 0)};vr.typeOf=ri;Y4.exports=vr;var JU=Y4.exports;const N1=typeof window<"u"?je.useLayoutEffect:je.useEffect;function QU({controlled:e,default:t,name:n,state:i="value"}){const{current:s}=je.useRef(e!==void 0),[o,a]=je.useState(t),r=s?e:o,l=je.useCallback(c=>{s||a(c)},[]);return[r,l]}function eW(e,t,n=void 0){const i={};return Object.keys(e).forEach(s=>{i[s]=e[s].reduce((o,a)=>{if(a){const r=t(a);r!==""&&o.push(r),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),i}const Qu=36,Rc=2,z1=320,tW=358;function X4(e){return Hn("MuiPickersDay",e)}const Bu=qn("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),nW=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],rW=e=>{const{selected:t,disableMargin:n,disableHighlightToday:i,today:s,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:r,classes:l}=e;return Un({root:["root",t&&"selected",o&&"disabled",!n&&"dayWithMargin",!i&&s&&"today",a&&r&&"dayOutsideMonth",a&&!r&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},X4,l)},Z4=({theme:e,ownerState:t})=>Gt({},e.typography.caption,{width:Qu,height:Qu,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:po(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:po(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${Bu.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${Bu.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}},[`&.${Bu.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(.${Bu.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),K4=(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]},aW=en(VL,{name:"MuiPickersDay",slot:"Root",overridesResolver:K4})(Z4),iW=en("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:K4})(({theme:e,ownerState:t})=>Gt({},Z4({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),$m=()=>{},oW=je.forwardRef(function(t,n){const i=pr({props:t,name:"MuiPickersDay"}),{autoFocus:s=!1,className:o,day:a,disabled:r=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:d,onFocus:h=$m,onBlur:p=$m,onKeyDown:g=$m,onMouseDown:y,outsideCurrentMonth:v,selected:m=!1,showDaysOutsideCurrentMonth:b=!1,children:w,today:_=!1}=i,x=Yn(i,nW),k=Gt({},i,{autoFocus:s,disabled:r,disableHighlightToday:l,disableMargin:c,selected:m,showDaysOutsideCurrentMonth:b,today:_}),T=rW(k),M=Mr(),S=je.useRef(null),C=go(S,n);N1(()=>{s&&!r&&!u&&!v&&S.current.focus()},[s,r,u,v]);const A=O=>{y&&y(O),v&&O.preventDefault()},D=O=>{r||d(a,"finish"),v&&O.currentTarget.focus(),f&&f(O)};return v&&!b?Ie.jsx(iW,{className:qr(T.root,T.hiddenDaySpacingFiller,o),ownerState:k,role:x.role}):Ie.jsx(aW,Gt({className:qr(T.root,o),ownerState:k,ref:C,centerRipple:!0,disabled:r,tabIndex:m?0:-1,onKeyDown:O=>g(O,a),onFocus:O=>h(O,a),onBlur:O=>p(O,a),onClick:D,onMouseDown:A},x,{children:w||M.format(a,"dayOfMonth")}))}),lW=(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,J4=je.memo(oW,lW),sW=e=>Hn("PrivatePickersSlideTransition",e),pa=qn("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),uW=["children","className","reduceAnimations","slideDirection","transKey"],cW=e=>{const{classes:t}=e;return Un({root:["root"]},sW,t)},Q4=350,fW=en(OC,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${pa["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${pa["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${pa.slideEnterActive}`]:t.slideEnterActive},{[`.${pa.slideExit}`]:t.slideExit},{[`.${pa["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${pa["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:Q4,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},[`& .${pa["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${pa["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${pa.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${pa.slideExit}`]:{transform:"translate(0%)"},[`& .${pa["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${pa["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),dW=e=>{const{children:t,className:n,reduceAnimations:i,slideDirection:s,transKey:o}=e,a=Yn(e,uW),r=cW(e);if(i)return Ie.jsx("div",{className:qr(r.root,n),children:t});const l={exit:pa.slideExit,enterActive:pa.slideEnterActive,enter:pa[`slideEnter-${s}`],exitActive:pa[`slideExitActiveLeft-${s}`]};return Ie.jsx(fW,{className:qr(r.root,n),childFactory:c=>je.cloneElement(c,{classNames:l}),role:"presentation",children:Ie.jsx(_1,Gt({mountOnEnter:!0,unmountOnExit:!0,timeout:Q4,classNames:l},a,{children:t}),o)})},hW=e=>Hn("MuiDayPicker",e),pW=qn("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),gW=e=>{const{classes:t}=e;return Un({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},hW,t)},mW=e=>e.charAt(0).toUpperCase(),e6=(Qu+Rc*2)*6,vW=en("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),yW=en(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})),bW=en("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:e6}),xW=en(dW,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:e6}),wW=en("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),_W=en("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Rc}px 0`,display:"flex",justifyContent:"center"});function TW(e){const t=Ec(),n=Mr(),i=pr({props:e,name:"MuiDayPicker"}),s=gW(i),{onFocusedDayChange:o,className:a,currentMonth:r,selectedDays:l,disabled:c,disableHighlightToday:u,focusedDay:f,isMonthSwitchingAnimating:d,loading:h,onSelectedDaysChange:p,onMonthSwitchingAnimationEnd:g,readOnly:y,reduceAnimations:v,renderDay:m,renderLoading:b=()=>Ie.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:w,slideDirection:_,TransitionProps:x,disablePast:k,disableFuture:T,minDate:M,maxDate:S,shouldDisableDate:C,dayOfWeekFormatter:A=mW,hasFocus:D,onFocusedViewChange:O,gridLabelId:R}=i,F=H4({shouldDisableDate:C,minDate:M,maxDate:S,disablePast:k,disableFuture:T}),[P,z]=je.useState(()=>f||t),B=je.useCallback(H=>{O&&O(H)},[O]),N=je.useCallback((H,Q="finish")=>{y||p(H,Q)},[p,y]),j=je.useCallback(H=>{F(H)||(o(H),z(H),B(!0))},[F,o,B]),$=rl();function E(H,Q){switch(H.key){case"ArrowUp":j(n.addDays(Q,-7)),H.preventDefault();break;case"ArrowDown":j(n.addDays(Q,7)),H.preventDefault();break;case"ArrowLeft":{const Y=n.addDays(Q,$.direction==="ltr"?-1:1),Z=$.direction==="ltr"?n.getPreviousMonth(Q):n.getNextMonth(Q),X=Yu({utils:n,date:Y,minDate:$.direction==="ltr"?n.startOfMonth(Z):Y,maxDate:$.direction==="ltr"?Y:n.endOfMonth(Z),isDateDisabled:F});j(X||Y),H.preventDefault();break}case"ArrowRight":{const Y=n.addDays(Q,$.direction==="ltr"?1:-1),Z=$.direction==="ltr"?n.getNextMonth(Q):n.getPreviousMonth(Q),X=Yu({utils:n,date:Y,minDate:$.direction==="ltr"?Y:n.startOfMonth(Z),maxDate:$.direction==="ltr"?n.endOfMonth(Z):Y,isDateDisabled:F});j(X||Y),H.preventDefault();break}case"Home":j(n.startOfWeek(Q)),H.preventDefault();break;case"End":j(n.endOfWeek(Q)),H.preventDefault();break;case"PageUp":j(n.getNextMonth(Q)),H.preventDefault();break;case"PageDown":j(n.getPreviousMonth(Q)),H.preventDefault();break}}function U(H,Q){j(Q)}function G(H,Q){D&&n.isSameDay(P,Q)&&B(!1)}const L=n.getMonth(r),q=l.filter(H=>!!H).map(H=>n.startOfDay(H)),W=L,V=je.useMemo(()=>je.createRef(),[W]),te=n.startOfWeek(t),ee=je.useMemo(()=>{const H=n.startOfMonth(r),Q=n.endOfMonth(r);return F(P)||n.isAfterDay(P,Q)||n.isBeforeDay(P,H)?Yu({utils:n,date:P,minDate:H,maxDate:Q,disablePast:k,disableFuture:T,isDateDisabled:F}):P},[r,T,k,P,F,n]);return Ie.jsxs("div",{role:"grid","aria-labelledby":R,children:[Ie.jsx(vW,{role:"row",className:s.header,children:n.getWeekdays().map((H,Q)=>{var Y;return Ie.jsx(yW,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(te,Q),"weekday"),className:s.weekDayLabel,children:(Y=A==null?void 0:A(H))!=null?Y:H},H+Q.toString())})}),h?Ie.jsx(bW,{className:s.loadingContainer,children:b()}):Ie.jsx(xW,Gt({transKey:W,onExited:g,reduceAnimations:v,slideDirection:_,className:qr(a,s.slideTransition)},x,{nodeRef:V,children:Ie.jsx(wW,{ref:V,role:"rowgroup",className:s.monthContainer,children:n.getWeekArray(r).map(H=>Ie.jsx(_W,{role:"row",className:s.weekContainer,children:H.map(Q=>{const Y=ee!==null&&n.isSameDay(Q,ee),Z=q.some(ie=>n.isSameDay(ie,Q)),X=n.isSameDay(Q,t),re={key:Q==null?void 0:Q.toString(),day:Q,isAnimating:d,disabled:c||F(Q),autoFocus:D&&Y,today:X,outsideCurrentMonth:n.getMonth(Q)!==L,selected:Z,disableHighlightToday:u,showDaysOutsideCurrentMonth:w,onKeyDown:E,onFocus:U,onBlur:G,onDaySelect:N,tabIndex:Y?0:-1,role:"gridcell","aria-selected":Z};return X&&(re["aria-current"]="date"),m?m(Q,q,re):je.createElement(J4,Gt({},re,{key:re.key}))})},`week-${H[0]}`))})}))]})}function B1({onChange:e,onViewChange:t,openTo:n,view:i,views:s}){var o,a;const[r,l]=rh({name:"Picker",state:"view",controlled:i,default:n&&Io(s,n)?n:s[0]}),c=(o=s[s.indexOf(r)-1])!=null?o:null,u=(a=s[s.indexOf(r)+1])!=null?a:null,f=je.useCallback(p=>{l(p),t&&t(p)},[l,t]),d=je.useCallback(()=>{u&&f(u)},[u,f]);return{handleChangeAndOpenNext:je.useCallback((p,g)=>{const y=g==="finish";e(p,y&&u?"partial":g),y&&d()},[u,e,d]),nextView:u,previousView:c,openNext:d,openView:r,setOpenView:f}}const kW=ra(Ie.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),MW=ra(Ie.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),SW=ra(Ie.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),t6=ra(Ie.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"),n6=ra(Ie.jsxs(je.Fragment,{children:[Ie.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"}),Ie.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),CW=ra(Ie.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"),OW=ra(Ie.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"),PW=ra(Ie.jsxs(je.Fragment,{children:[Ie.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"}),Ie.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function AW(e){return Hn("MuiPickersArrowSwitcher",e)}qn("MuiPickersArrowSwitcher",["root","spacer","button"]);const DW=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],EW=e=>{const{classes:t}=e;return Un({root:["root"],spacer:["spacer"],button:["button"]},AW,t)},RW=en("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),LW=en("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),x3=en(ci,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Gt({},e.hidden&&{visibility:"hidden"})),r6=je.forwardRef(function(t,n){const i=pr({props:t,name:"MuiPickersArrowSwitcher"}),{children:s,className:o,components:a,componentsProps:r,isLeftDisabled:l,isLeftHidden:c,isRightDisabled:u,isRightHidden:f,leftArrowButtonText:d,onLeftClick:h,onRightClick:p,rightArrowButtonText:g}=i,y=Yn(i,DW),m=rl().direction==="rtl",b=(r==null?void 0:r.leftArrowButton)||{},w=(a==null?void 0:a.LeftArrowIcon)||MW,_=(r==null?void 0:r.rightArrowButton)||{},x=(a==null?void 0:a.RightArrowIcon)||SW,k=i,T=EW(k);return Ie.jsxs(RW,Gt({ref:n,className:qr(T.root,o),ownerState:k},y,{children:[Ie.jsx(x3,Gt({as:a==null?void 0:a.LeftArrowButton,size:"small","aria-label":d,title:d,disabled:l,edge:"end",onClick:h},b,{className:qr(T.button,b.className),ownerState:Gt({},k,b,{hidden:c}),children:m?Ie.jsx(x,{}):Ie.jsx(w,{})})),s?Ie.jsx(dr,{variant:"subtitle1",component:"span",children:s}):Ie.jsx(LW,{className:T.spacer,ownerState:k}),Ie.jsx(x3,Gt({as:a==null?void 0:a.RightArrowButton,size:"small","aria-label":g,title:g,edge:"start",disabled:u,onClick:p},_,{className:qr(T.button,_.className),ownerState:Gt({},k,_,{hidden:f}),children:m?Ie.jsx(w,{}):Ie.jsx(x,{})}))]}))}),IW=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Pv=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,FW=(e,t,n,i)=>{const s=Pv(i.getHours(e),t,n);return i.setHours(e,s)},w3=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),a6=(e=!1,t)=>(n,i)=>e?t.isAfter(n,i):w3(n,t)>w3(i,t);function $W(e,{disableFuture:t,maxDate:n}){const i=Mr();return je.useMemo(()=>{const s=i.date(),o=i.startOfMonth(t&&i.isBefore(s,n)?s:n);return!i.isAfter(o,e)},[t,n,e,i])}function jW(e,{disablePast:t,minDate:n}){const i=Mr();return je.useMemo(()=>{const s=i.date(),o=i.startOfMonth(t&&i.isAfter(s,n)?s:n);return!i.isBefore(o,e)},[t,n,e,i])}function i6(e,t,n){const i=Mr(),s=IW(e,i),o=je.useCallback(a=>{const r=e==null?null:FW(e,a,!!t,i);n(r,"partial")},[t,e,n,i]);return{meridiemMode:s,handleMeridiemChange:o}}const o6=e=>()=>{},NW=e=>Hn("MuiPickersCalendarHeader",e),zW=qn("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),BW=e=>{const{classes:t}=e;return Un({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},NW,t)},qW=en("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}),UW=en("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})),WW=en("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),HW=en(ci,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),VW=en(kW,{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)"})),YW=o6();function GW(e){const t=pr({props:e,name:"MuiPickersCalendarHeader"}),{components:n={},componentsProps:i={},currentMonth:s,disabled:o,disableFuture:a,disablePast:r,getViewSwitchingButtonText:l,leftArrowButtonText:c,maxDate:u,minDate:f,onMonthChange:d,onViewChange:h,openView:p,reduceAnimations:g,rightArrowButtonText:y,views:v,labelId:m}=t;YW({leftArrowButtonText:c,rightArrowButtonText:y,getViewSwitchingButtonText:l});const b=pi(),w=c??b.previousMonth,_=y??b.nextMonth,x=l??b.calendarViewSwitchingButtonAriaLabel,k=Mr(),T=BW(t),M=i.switchViewButton||{},S=()=>d(k.getNextMonth(s),"left"),C=()=>d(k.getPreviousMonth(s),"right"),A=$W(s,{disableFuture:a,maxDate:u}),D=jW(s,{disablePast:r,minDate:f}),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 Ie.jsxs(qW,{ownerState:R,className:T.root,children:[Ie.jsxs(UW,{role:"presentation",onClick:O,ownerState:R,"aria-live":"polite",className:T.labelContainer,children:[Ie.jsx(V4,{reduceAnimations:g,transKey:k.format(s,"monthAndYear"),children:Ie.jsx(WW,{id:m,ownerState:R,className:T.label,children:k.format(s,"monthAndYear")})}),v.length>1&&!o&&Ie.jsx(HW,Gt({size:"small",as:n.SwitchViewButton,"aria-label":x(p),className:T.switchViewButton},M,{children:Ie.jsx(VW,{as:n.SwitchViewIcon,ownerState:R,className:T.switchViewIcon})}))]}),Ie.jsx(c1,{in:p==="day",children:Ie.jsx(r6,{leftArrowButtonText:w,rightArrowButtonText:_,components:n,componentsProps:i,onLeftClick:C,onRightClick:S,isLeftDisabled:D,isRightDisabled:A})})]})}const Wi=je.createContext(null);function XW(e){return Hn("PrivatePickersYear",e)}const jo=qn("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),ZW=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],KW=e=>{const{wrapperVariant:t,disabled:n,selected:i,classes:s}=e,o={root:["root",t&&`mode${Fr(t)}`],yearButton:["yearButton",n&&"disabled",i&&"selected"]};return Un(o,XW,s)},JW=en("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${jo.modeDesktop}`]:t.modeDesktop},{[`&.${jo.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Gt({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),QW=en("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${jo.disabled}`]:t.disabled},{[`&.${jo.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:po(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${jo.disabled}`]:{color:e.palette.text.secondary},[`&.${jo.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),_3=()=>{},eH=je.forwardRef(function(t,n){const{autoFocus:i,className:s,children:o,disabled:a,onClick:r,onKeyDown:l,value:c,tabIndex:u,onFocus:f=_3,onBlur:d=_3}=t,h=Yn(t,ZW),p=je.useRef(null),g=go(p,n),y=je.useContext(Wi),v=Gt({},t,{wrapperVariant:y}),m=KW(v);return je.useEffect(()=>{i&&p.current.focus()},[i]),Ie.jsx(JW,{className:qr(m.root,s),ownerState:v,children:Ie.jsx(QW,Gt({ref:g,disabled:a,type:"button",tabIndex:a?-1:u,onClick:b=>r(b,c),onKeyDown:b=>l(b,c),onFocus:b=>f(b,c),onBlur:b=>d(b,c),className:m.yearButton,ownerState:v},h,{children:o}))})});function l6(e){return Hn("MuiYearPicker",e)}const tH=qn("MuiYearPicker",["root"]),nH=e=>{const{classes:t}=e;return Un({root:["root"]},l6,t)};function rH(e,t){const n=Mr(),i=Dc(),s=pr({props:e,name:t});return Gt({disablePast:!1,disableFuture:!1},s,{minDate:ni(n,s.minDate,i.minDate),maxDate:ni(n,s.maxDate,i.maxDate)})}const aH=en("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"}),s6=je.forwardRef(function(t,n){const i=Ec(),s=rl(),o=Mr(),a=rH(t,"MuiYearPicker"),{autoFocus:r,className:l,date:c,disabled:u,disableFuture:f,disablePast:d,maxDate:h,minDate:p,onChange:g,readOnly:y,shouldDisableYear:v,disableHighlightToday:m,onYearFocus:b,hasFocus:w,onFocusedViewChange:_}=a,x=a,k=nH(x),T=je.useMemo(()=>c??o.startOfYear(i),[i,o,c]),M=je.useMemo(()=>c!=null?o.getYear(c):m?null:o.getYear(i),[i,c,o,m]),S=je.useContext(Wi),C=je.useRef(null),[A,D]=je.useState(()=>M||o.getYear(i)),[O,R]=QU({name:"YearPicker",state:"hasFocus",controlled:w,default:r}),F=je.useCallback(q=>{R(q),_&&_(q)},[R,_]),P=je.useCallback(q=>!!(d&&o.isBeforeYear(q,i)||f&&o.isAfterYear(q,i)||p&&o.isBeforeYear(q,p)||h&&o.isAfterYear(q,h)||v&&v(q)),[f,d,h,p,i,v,o]),z=(q,W,V="finish")=>{if(y)return;const te=o.setYear(T,W);g(te,V)},B=je.useCallback(q=>{P(o.setYear(T,q))||(D(q),F(!0),b==null||b(q))},[P,o,T,F,b]);je.useEffect(()=>{D(q=>M!==null&&q!==M?M:q)},[M]);const N=S==="desktop"?4:3,j=je.useCallback((q,W)=>{switch(q.key){case"ArrowUp":B(W-N),q.preventDefault();break;case"ArrowDown":B(W+N),q.preventDefault();break;case"ArrowLeft":B(W+(s.direction==="ltr"?-1:1)),q.preventDefault();break;case"ArrowRight":B(W+(s.direction==="ltr"?1:-1)),q.preventDefault();break}},[B,s.direction,N]),$=je.useCallback((q,W)=>{B(W)},[B]),E=je.useCallback((q,W)=>{A===W&&F(!1)},[A,F]),U=o.getYear(i),G=je.useRef(null),L=go(n,G);return je.useEffect(()=>{if(r||G.current===null)return;const q=G.current.querySelector('[tabindex="0"]');if(!q)return;const W=q.offsetHeight,V=q.offsetTop,te=G.current.clientHeight,ee=G.current.scrollTop,H=V+W;W>te||V{const W=o.getYear(q),V=W===M;return Ie.jsx(eH,{selected:V,value:W,onClick:z,onKeyDown:j,autoFocus:O&&W===A,ref:V?C:void 0,disabled:u||P(q),tabIndex:W===A?0:-1,onFocus:$,onBlur:E,"aria-current":U===W?"date":void 0,children:o.format(q,"year")},o.format(q,"year"))})})}),q1=en("div")({overflowX:"hidden",width:z1,maxHeight:tW,display:"flex",flexDirection:"column",margin:"0 auto"}),iH=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),u6=e=>Hn("MuiCalendarPicker",e),oH=qn("MuiCalendarPicker",["root","viewTransitionContainer"]),lH=["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"],sH=e=>{const{classes:t}=e;return Un({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},u6,t)};function uH(e,t){const n=Mr(),i=Dc(),s=pr({props:e,name:t});return Gt({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:iH,renderLoading:()=>Ie.jsx("span",{children:"..."})},s,{minDate:ni(n,s.minDate,i.minDate),maxDate:ni(n,s.maxDate,i.maxDate)})}const cH=en(q1,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),fH=en(V4,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),c6=je.forwardRef(function(t,n){const i=Mr(),s=zl(),o=uH(t,"MuiCalendarPicker"),{autoFocus:a,onViewChange:r,date:l,disableFuture:c,disablePast:u,defaultCalendarMonth:f,onChange:d,onYearChange:h,onMonthChange:p,reduceAnimations:g,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:m,view:b,views:w,openTo:_,className:x,disabled:k,readOnly:T,minDate:M,maxDate:S,disableHighlightToday:C,focusedView:A,onFocusedViewChange:D}=o,O=Yn(o,lH),{openView:R,setOpenView:F,openNext:P}=B1({view:b,views:w,openTo:_,onChange:d,onViewChange:r}),{calendarState:z,changeFocusedDay:B,changeMonth:N,handleChangeMonth:j,isDateDisabled:$,onMonthSwitchingAnimationEnd:E}=HU({date:l,defaultCalendarMonth:f,reduceAnimations:g,onMonthChange:p,minDate:M,maxDate:S,shouldDisableDate:y,disablePast:u,disableFuture:c}),U=je.useCallback((le,se)=>{const pe=i.startOfMonth(le),Te=i.endOfMonth(le),Se=$(le)?Yu({utils:i,date:le,minDate:i.isBefore(M,pe)?pe:M,maxDate:i.isAfter(S,Te)?Te:S,disablePast:u,disableFuture:c,isDateDisabled:$}):le;Se?(d(Se,se),p==null||p(pe)):(P(),N(pe)),B(Se,!0)},[B,c,u,$,S,M,d,p,N,P,i]),G=je.useCallback((le,se)=>{const pe=i.startOfYear(le),Te=i.endOfYear(le),Se=$(le)?Yu({utils:i,date:le,minDate:i.isBefore(M,pe)?pe:M,maxDate:i.isAfter(S,Te)?Te:S,disablePast:u,disableFuture:c,isDateDisabled:$}):le;Se?(d(Se,se),h==null||h(Se)):(P(),N(pe)),B(Se,!0)},[B,c,u,$,S,M,d,h,P,i,N]),L=je.useCallback((le,se)=>d(l&&le?i.mergeDateAndTime(le,l):le,se),[i,l,d]);je.useEffect(()=>{l&&N(l)},[l]);const q=o,W=sH(q),V={disablePast:u,disableFuture:c,maxDate:S,minDate:M},te=k&&l||M,ee=k&&l||S,H={disableHighlightToday:C,readOnly:T,disabled:k},Q=`${s}-grid-label`,[Y,Z]=rh({name:"DayPicker",state:"focusedView",controlled:A,default:a?R:null}),X=Y!==null,re=Cc(le=>se=>{if(D){D(le)(se);return}Z(se?le:pe=>pe===le?null:pe)}),ie=je.useRef(R);return je.useEffect(()=>{ie.current!==R&&(ie.current=R,re(R)(!0))},[R,re]),Ie.jsxs(cH,{ref:n,className:qr(W.root,x),ownerState:q,children:[Ie.jsx(GW,Gt({},O,{views:w,openView:R,currentMonth:z.currentMonth,onViewChange:F,onMonthChange:(le,se)=>j({newMonth:le,direction:se}),minDate:te,maxDate:ee,disabled:k,disablePast:u,disableFuture:c,reduceAnimations:g,labelId:Q})),Ie.jsx(fH,{reduceAnimations:g,className:W.viewTransitionContainer,transKey:R,ownerState:q,children:Ie.jsxs("div",{children:[R==="year"&&Ie.jsx(s6,Gt({},O,V,H,{autoFocus:a,date:l,onChange:G,shouldDisableYear:m,hasFocus:X,onFocusedViewChange:re("year")})),R==="month"&&Ie.jsx(W4,Gt({},V,H,{autoFocus:a,hasFocus:X,className:x,date:l,onChange:U,shouldDisableMonth:v,onFocusedViewChange:re("month")})),R==="day"&&Ie.jsx(TW,Gt({},O,z,V,H,{autoFocus:a,onMonthSwitchingAnimationEnd:E,onFocusedDayChange:B,reduceAnimations:g,selectedDays:[l],onSelectedDaysChange:L,shouldDisableDate:y,hasFocus:X,onFocusedViewChange:re("day"),gridLabelId:Q}))]})})]})}),f6=e=>Hn("MuiCalendarPickerSkeleton",e),dH=qn("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),hH=["className"],pH=e=>{const{classes:t}=e;return Un({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},f6,t)},gH=en("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),mH=en("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${Rc}px 0`,display:"flex",justifyContent:"center"}),d6=en(P$,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Gt({margin:`0 ${Rc}px`},e.day===0&&{visibility:"hidden"}));d6.propTypes={ownerState:oe.shape({day:oe.number.isRequired}).isRequired};const vH=[[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 yH(e){const t=pr({props:e,name:"MuiCalendarPickerSkeleton"}),{className:n}=t,i=Yn(t,hH),s=pH(i);return Ie.jsx(gH,Gt({className:qr(s.root,n)},i,{children:vH.map((o,a)=>Ie.jsx(mH,{className:s.week,children:o.map((r,l)=>Ie.jsx(d6,{variant:"circular",width:Qu,height:Qu,className:s.daySkeleton,ownerState:{day:r}},l))},a))}))}const Hl=220,so=36,ec={x:Hl/2,y:Hl/2},h6={x:ec.x,y:0},bH=h6.x-ec.x,xH=h6.y-ec.y,wH=e=>e*(180/Math.PI),p6=(e,t,n)=>{const i=t-ec.x,s=n-ec.y,o=Math.atan2(bH,xH)-Math.atan2(i,s);let a=wH(o);a=Math.round(a/e)*e,a%=360;const r=Math.floor(a/e)||0,l=i**2+s**2,c=Math.sqrt(l);return{value:r,distance:c}},_H=(e,t,n=1)=>{const i=n*6;let{value:s}=p6(i,e,t);return s=s*n%60,s},TH=(e,t,n)=>{const{value:i,distance:s}=p6(30,e,t);let o=i||12;return n?o%=12:s{const{classes:t}=e;return Un({root:["root"],thumb:["thumb"]},kH,t)},OH=en("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"])})),PH=en("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% - ${so/2}px)`,border:`${(so-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function AH(e){const t=pr({props:e,name:"MuiClockPointer"}),{className:n,isInner:i,type:s,value:o}=t,a=Yn(t,SH),r=je.useRef(s);je.useEffect(()=>{r.current=s},[s]);const l=Gt({},t,{shouldAnimate:r.current!==s}),c=CH(l),u=()=>{let d=360/(s==="hours"?12:60)*o;return s==="hours"&&o>12&&(d-=360),{height:Math.round((i?.26:.4)*Hl),transform:`rotateZ(${d}deg)`}};return Ie.jsx(OH,Gt({style:u(),className:qr(n,c.root),ownerState:l},a,{children:Ie.jsx(PH,{ownerState:l,className:c.thumb})}))}function DH(e){return Hn("MuiClock",e)}const EH=qn("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),RH=e=>{const{classes:t}=e;return eW({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},DH,t)},LH=en("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),IH=en("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"}),FH=en("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),$H=en("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"}})),jH=en("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%)"})),NH=en(ci,{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}})),zH=en(ci,{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 BH(e){const t=pr({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:i,autoFocus:s,children:o,date:a,getClockLabelText:r,handleMeridiemChange:l,isTimeDisabled:c,meridiemMode:u,minutesStep:f=1,onChange:d,selectedId:h,type:p,value:g,disabled:y,readOnly:v,className:m}=t,b=t,w=Mr(),_=je.useContext(Wi),x=je.useRef(!1),k=RH(b),T=c(g,p),M=!n&&p==="hours"&&(g<1||g>12),S=(N,j)=>{y||v||c(N,p)||d(N,j)},C=(N,j)=>{let{offsetX:$,offsetY:E}=N;if($===void 0){const G=N.target.getBoundingClientRect();$=N.changedTouches[0].clientX-G.left,E=N.changedTouches[0].clientY-G.top}const U=p==="seconds"||p==="minutes"?_H($,E,f):TH($,E,!!n);S(U,j)},A=N=>{x.current=!0,C(N,"shallow")},D=N=>{x.current&&(C(N,"finish"),x.current=!1)},O=N=>{N.buttons>0&&C(N.nativeEvent,"shallow")},R=N=>{x.current&&(x.current=!1),C(N.nativeEvent,"finish")},F=je.useMemo(()=>p==="hours"?!0:g%5===0,[p,g]),P=p==="minutes"?f:1,z=je.useRef(null);N1(()=>{s&&z.current.focus()},[s]);const B=N=>{if(!x.current)switch(N.key){case"Home":S(0,"partial"),N.preventDefault();break;case"End":S(p==="minutes"?59:23,"partial"),N.preventDefault();break;case"ArrowUp":S(g+P,"partial"),N.preventDefault();break;case"ArrowDown":S(g-P,"partial"),N.preventDefault();break}};return Ie.jsxs(LH,{className:qr(m,k.root),children:[Ie.jsxs(IH,{className:k.clock,children:[Ie.jsx($H,{onTouchMove:A,onTouchEnd:D,onMouseUp:R,onMouseMove:O,ownerState:{disabled:y},className:k.squareMask}),!T&&Ie.jsxs(je.Fragment,{children:[Ie.jsx(jH,{className:k.pin}),a&&Ie.jsx(AH,{type:p,value:g,isInner:M,hasSelected:F})]}),Ie.jsx(FH,{"aria-activedescendant":h,"aria-label":r(p,a,w),ref:z,role:"listbox",onKeyDown:B,tabIndex:0,className:k.wrapper,children:o})]}),n&&(_==="desktop"||i)&&Ie.jsxs(je.Fragment,{children:[Ie.jsx(NH,{onClick:v?void 0:()=>l("am"),disabled:y||u===null,ownerState:b,className:k.amButton,children:Ie.jsx(dr,{variant:"caption",children:"AM"})}),Ie.jsx(zH,{disabled:y||u===null,onClick:v?void 0:()=>l("pm"),ownerState:b,className:k.pmButton,children:Ie.jsx(dr,{variant:"caption",children:"PM"})})]})]})}function qH(e){return Hn("MuiClockNumber",e)}const qu=qn("MuiClockNumber",["root","selected","disabled"]),UH=["className","disabled","index","inner","label","selected"],WH=e=>{const{classes:t,selected:n,disabled:i}=e;return Un({root:["root",n&&"selected",i&&"disabled"]},qH,t)},HH=en("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${qu.disabled}`]:t.disabled},{[`&.${qu.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Gt({height:so,width:so,position:"absolute",left:`calc((100% - ${so}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},[`&.${qu.selected}`]:{color:e.palette.primary.contrastText},[`&.${qu.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Gt({},e.typography.body2,{color:e.palette.text.secondary})));function g6(e){const t=pr({props:e,name:"MuiClockNumber"}),{className:n,disabled:i,index:s,inner:o,label:a,selected:r}=t,l=Yn(t,UH),c=t,u=WH(c),f=s%12/12*Math.PI*2-Math.PI/2,d=(Hl-so-2)/2*(o?.65:1),h=Math.round(Math.cos(f)*d),p=Math.round(Math.sin(f)*d);return Ie.jsx(HH,Gt({className:qr(n,u.root),"aria-disabled":i?!0:void 0,"aria-selected":r?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${p+(Hl-so)/2}px`},ownerState:c},l,{children:a}))}const VH=({ampm:e,date:t,getClockNumberText:n,isDisabled:i,selectedId:s,utils:o})=>{const a=t?o.getHours(t):null,r=[],l=e?1:0,c=e?12:23,u=f=>a===null?!1:e?f===12?a===12||a===0:a===f||a-12===f:a===f;for(let f=l;f<=c;f+=1){let d=f.toString();f===0&&(d="00");const h=!e&&(f===0||f>12);d=o.formatNumber(d);const p=u(f);r.push(Ie.jsx(g6,{id:p?s:void 0,index:f,inner:h,selected:p,disabled:i(f),label:d,"aria-label":n(d)},f))}return r},T3=({utils:e,value:t,isDisabled:n,getClockNumberText:i,selectedId:s})=>{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,r],l)=>{const c=a===t;return Ie.jsx(g6,{label:r,id:c?s:void 0,index:l+1,inner:!1,disabled:n(a),selected:c,"aria-label":i(r)},a)})};function m6(e){return Hn("MuiClockPicker",e)}const YH=qn("MuiClockPicker",["root","arrowSwitcher"]),GH=e=>{const{classes:t}=e;return Un({root:["root"],arrowSwitcher:["arrowSwitcher"]},m6,t)},XH=en(q1,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),ZH=en(r6,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),KH=o6(),v6=je.forwardRef(function(t,n){const i=pr({props:t,name:"MuiClockPicker"}),{ampm:s=!1,ampmInClock:o=!1,autoFocus:a,components:r,componentsProps:l,date:c,disableIgnoringDatePartForTimeValidation:u,getClockLabelText:f,getHoursClockNumberText:d,getMinutesClockNumberText:h,getSecondsClockNumberText:p,leftArrowButtonText:g,maxTime:y,minTime:v,minutesStep:m=1,rightArrowButtonText:b,shouldDisableTime:w,showViewSwitcher:_,onChange:x,view:k,views:T=["hours","minutes"],openTo:M,onViewChange:S,className:C,disabled:A,readOnly:D}=i;KH({leftArrowButtonText:g,rightArrowButtonText:b,getClockLabelText:f,getHoursClockNumberText:d,getMinutesClockNumberText:h,getSecondsClockNumberText:p});const O=pi(),R=g??O.openPreviousView,F=b??O.openNextView,P=f??O.clockLabelText,z=d??O.hoursClockNumberText,B=h??O.minutesClockNumberText,N=p??O.secondsClockNumberText,{openView:j,setOpenView:$,nextView:E,previousView:U,handleChangeAndOpenNext:G}=B1({view:k,views:T,openTo:M,onViewChange:S,onChange:x}),L=Ec(),q=Mr(),W=je.useMemo(()=>c||q.setSeconds(q.setMinutes(q.setHours(L,0),0),0),[c,L,q]),{meridiemMode:V,handleMeridiemChange:te}=i6(W,s,G),ee=je.useCallback((X,re)=>{const ie=a6(u,q),le=({start:pe,end:Te})=>!(v&&ie(v,Te)||y&&ie(pe,y)),se=(pe,Te=1)=>pe%Te!==0?!1:w?!w(pe,re):!0;switch(re){case"hours":{const pe=Pv(X,V,s),Te=q.setHours(W,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(W,X),Te=q.setSeconds(pe,0),Se=q.setSeconds(pe,59);return!le({start:Te,end:Se})||!se(X,m)}case"seconds":{const pe=q.setSeconds(W,X);return!le({start:pe,end:pe})||!se(X)}default:throw new Error("not supported")}},[s,W,u,y,V,v,m,w,q]),H=zl(),Q=je.useMemo(()=>{switch(j){case"hours":{const X=(re,ie)=>{const le=Pv(re,V,s);G(q.setHours(W,le),ie)};return{onChange:X,value:q.getHours(W),children:VH({date:c,utils:q,ampm:s,onChange:X,getClockNumberText:z,isDisabled:re=>A||ee(re,"hours"),selectedId:H})}}case"minutes":{const X=q.getMinutes(W),re=(ie,le)=>{G(q.setMinutes(W,ie),le)};return{value:X,onChange:re,children:T3({utils:q,value:X,onChange:re,getClockNumberText:B,isDisabled:ie=>A||ee(ie,"minutes"),selectedId:H})}}case"seconds":{const X=q.getSeconds(W),re=(ie,le)=>{G(q.setSeconds(W,ie),le)};return{value:X,onChange:re,children:T3({utils:q,value:X,onChange:re,getClockNumberText:N,isDisabled:ie=>A||ee(ie,"seconds"),selectedId:H})}}default:throw new Error("You must provide the type for ClockView")}},[j,q,c,s,z,B,N,V,G,W,ee,H,A]),Y=i,Z=GH(Y);return Ie.jsxs(XH,{ref:n,className:qr(Z.root,C),ownerState:Y,children:[_&&Ie.jsx(ZH,{className:Z.arrowSwitcher,leftArrowButtonText:R,rightArrowButtonText:F,components:r,componentsProps:l,onLeftClick:()=>$(U),onRightClick:()=>$(E),isLeftDisabled:!U,isRightDisabled:!E,ownerState:Y}),Ie.jsx(BH,Gt({autoFocus:a,date:c,ampmInClock:o,type:j,ampm:s,getClockLabelText:P,minutesStep:m,isTimeDisabled:ee,meridiemMode:V,handleMeridiemChange:te,selectedId:H,disabled:A,readOnly:D},Q))]})}),y6=e=>e.length===1&&e[0]==="year",b6=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,JH=(e,t)=>y6(e)?{inputFormat:t.formats.year}:b6(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function U1(e,t){var n;const i=Mr(),s=Dc(),o=pr({props:e,name:t}),a=(n=o.views)!=null?n:["year","day"];return Gt({openTo:"day",disableFuture:!1,disablePast:!1},JH(a,i),o,{views:a,minDate:ni(i,o.minDate,s.minDate),maxDate:ni(i,o.maxDate,s.maxDate)})}const W1={emptyValue:null,getTodayValue:e=>e.date(),parseInput:R1,areValuesEqual:(e,t,n)=>e.isEqual(t,n)};function x6(e){return Hn("MuiPickersToolbar",e)}const H1=qn("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),QH=e=>{const{classes:t,isLandscape:n}=e;return Un({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},x6,t)},eV=en("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"})),tV=en(tr,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Gt({flex:1},!e.isLandscape&&{alignItems:"center"})),nV=en(ci,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${H1.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),rV=e=>e==="clock"?Ie.jsx(n6,{color:"inherit"}):Ie.jsx(t6,{color:"inherit"}),V1=je.forwardRef(function(t,n){const i=pr({props:t,name:"MuiPickersToolbar"}),{children:s,className:o,getMobileKeyboardInputViewButtonText:a,isLandscape:r,isMobileKeyboardViewOpen:l,landscapeDirection:c="column",toggleMobileKeyboardView:u,toolbarTitle:f,viewType:d="calendar"}=i,h=i,p=pi(),g=QH(h);return Ie.jsxs(eV,{ref:n,className:qr(g.root,o),ownerState:h,children:[Ie.jsx(dr,{color:"text.secondary",variant:"overline",children:f}),Ie.jsxs(tV,{container:!0,justifyContent:"space-between",className:g.content,ownerState:h,direction:r?c:"row",alignItems:r?"flex-start":"flex-end",children:[s,Ie.jsx(nV,{onClick:u,className:g.penIconButton,ownerState:h,color:"inherit","aria-label":a?a(l,d):p.inputModeToggleButtonAriaLabel(l,d),children:l?rV(d):Ie.jsx(OW,{color:"inherit"})})]})]})});function aV(e){return Hn("MuiDatePickerToolbar",e)}const iV=qn("MuiDatePickerToolbar",["root","title"]),oV=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],lV=e=>{const{classes:t}=e;return Un({root:["root"],title:["title"]},aV,t)},sV=en(V1,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uV=en(dr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Gt({},e.isLandscape&&{margin:"auto 16px auto auto"})),Y1=je.forwardRef(function(t,n){const i=pr({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:s,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:r,toolbarFormat:l,toolbarPlaceholder:c="––",toolbarTitle:u,views:f}=i,d=Yn(i,oV),h=Mr(),p=pi(),g=lV(i),y=u??p.datePickerDefaultToolbarTitle,v=je.useMemo(()=>s?l?h.formatByString(s,l):y6(f)?h.format(s,"year"):b6(f)?h.format(s,"month"):/en/.test(h.getCurrentLocaleCode())?h.format(s,"normalDateWithWeekday"):h.format(s,"normalDate"):c,[s,l,c,h,f]),m=i;return Ie.jsx(sV,Gt({ref:n,toolbarTitle:y,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:r,isLandscape:o,className:g.root},d,{children:Ie.jsx(uV,{variant:"h4",align:o?"left":"center",ownerState:m,className:g.title,children:v})}))}),cV=["onAccept","onClear","onCancel","onSetToday","actions"],G1=e=>{const{onAccept:t,onClear:n,onCancel:i,onSetToday:s,actions:o}=e,a=Yn(e,cV),r=je.useContext(Wi),l=pi(),c=typeof o=="function"?o(r):o;if(c==null||c.length===0)return null;const u=c==null?void 0:c.map(f=>{switch(f){case"clear":return Ie.jsx(fi,{onClick:n,children:l.clearButtonLabel},f);case"cancel":return Ie.jsx(fi,{onClick:i,children:l.cancelButtonLabel},f);case"accept":return Ie.jsx(fi,{onClick:t,children:l.okButtonLabel},f);case"today":return Ie.jsx(fi,{onClick:s,children:l.todayButtonLabel},f);default:return null}});return Ie.jsx(jF,Gt({},a,{children:u}))};function fV(e){return Hn("MuiPickersPopper",e)}qn("MuiPickersPopper",["root","paper"]);const dV=["onClick","onTouchStart"],hV=e=>{const{classes:t}=e;return Un({root:["root"],paper:["paper"]},fV,t)},pV=en(YL,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),gV=en(rs,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Gt({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function mV(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=Cc(l=>{if(!o.current)return;const c=i.current;i.current=!1;const u=zf(s.current);if(!s.current||"clientX"in l&&mV(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(s.current)>-1:f=!u.documentElement.contains(l.target)||s.current.contains(l.target),!f&&!c&&t(l)}),r=()=>{i.current=!0};return je.useEffect(()=>{if(e){const l=zf(s.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",c)}}},[e,a]),je.useEffect(()=>{if(e){const l=zf(s.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),i.current=!1}}},[e,a]),[s,r,r]}function yV(e){var t;const n=pr({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:s,containerRef:o=null,onBlur:a,onClose:r,onClear:l,onAccept:c,onCancel:u,onSetToday:f,open:d,PopperProps:h,role:p,TransitionComponent:g=XL,TrapFocusProps:y,PaperProps:v={},components:m,componentsProps:b}=n;je.useEffect(()=>{function B(N){d&&(N.key==="Escape"||N.key==="Esc")&&r()}return document.addEventListener("keydown",B),()=>{document.removeEventListener("keydown",B)}},[r,d]);const w=je.useRef(null);je.useEffect(()=>{p!=="tooltip"&&(d?w.current=z4(document):w.current&&w.current instanceof HTMLElement&&setTimeout(()=>{w.current instanceof HTMLElement&&w.current.focus()}))},[d,p]);const[_,x,k]=vV(d,a??r),T=je.useRef(null),M=go(T,o),S=go(M,_),C=n,A=hV(C),{onClick:D,onTouchStart:O}=v,R=Yn(v,dV),F=B=>{B.key==="Escape"&&(B.stopPropagation(),r())},P=(t=m==null?void 0:m.ActionBar)!=null?t:G1,z=(m==null?void 0:m.PaperContent)||je.Fragment;return Ie.jsx(pV,Gt({transition:!0,role:p,open:d,anchorEl:i,onKeyDown:F,className:A.root},h,{children:({TransitionProps:B,placement:N})=>Ie.jsx(GL,Gt({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:p==="tooltip",isEnabled:()=>!0},y,{children:Ie.jsx(g,Gt({},B,{children:Ie.jsx(gV,Gt({tabIndex:-1,elevation:8,ref:S,onClick:j=>{x(j),D&&D(j)},onTouchStart:j=>{k(j),O&&O(j)},ownerState:Gt({},C,{placement:N}),className:A.paper},R,{children:Ie.jsxs(z,Gt({},b==null?void 0:b.paperContent,{children:[s,Ie.jsx(P,Gt({onAccept:c,onClear:l,onCancel:u,onSetToday:f,actions:[]},b==null?void 0:b.actionBar))]}))}))}))}))}))}function X1(e){const{children:t,DateInputProps:n,KeyboardDateInputComponent:i,onClear:s,onDismiss:o,onCancel:a,onAccept:r,onSetToday:l,open:c,PopperProps:u,PaperProps:f,TransitionComponent:d,components:h,componentsProps:p}=e,g=je.useRef(null),y=go(n.inputRef,g);return Ie.jsxs(Wi.Provider,{value:"desktop",children:[Ie.jsx(i,Gt({},n,{inputRef:y})),Ie.jsx(yV,{role:"dialog",open:c,anchorEl:g.current,TransitionComponent:d,PopperProps:u,PaperProps:f,onClose:o,onCancel:a,onClear:s,onAccept:r,onSetToday:l,components:h,componentsProps:p,children:t})]})}const bV=e=>{const[,t]=je.useReducer(l=>l+1,0),n=je.useRef(null),{replace:i,append:s}=e,o=i?i(e.format(e.value)):e.format(e.value),a=je.useRef(!1),r=l=>{const c=l.target.value;n.current=[c,l.target,c.length>o.length,a.current,o===e.format(c)],t()};return je.useLayoutEffect(()=>{if(n.current==null)return;let[l,c,u,f,d]=n.current;n.current=null;const h=f&&d,g=l.slice(c.selectionStart).search(e.accept||/\d/g),y=g!==-1?g:0,v=x=>(x.match(e.accept||/\d/g)||[]).join(""),m=v(l.substr(0,c.selectionStart)),b=x=>{let k=0,T=0;for(let M=0;M!==m.length;++M){let S=x.indexOf(m[M],k)+1,C=v(x).indexOf(m[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&&u&&!d){let x=b(l);const k=v(l.substr(x))[0];x=l.indexOf(k,x),l=`${l.substr(0,x)}${l.substr(x+1)}`}let w=e.format(l);s!=null&&c.selectionStart===l.length&&!d&&(u?w=s(w):v(w.slice(-1))===""&&(w=w.slice(0,-1)));const _=i?i(w):w;return o===_?t():e.onChange(_),()=>{let x=b(w);if(e.mask!=null&&(u||f&&!h))for(;w[x]&&v(w[x])==="";)x+=1;c.selectionStart=c.selectionEnd=x+(h?1+y:0)}}),je.useEffect(()=>{const l=u=>{u.code==="Delete"&&(a.current=!0)},c=u=>{u.code==="Delete"&&(a.current=!1)};return document.addEventListener("keydown",l),document.addEventListener("keyup",c),()=>{document.removeEventListener("keydown",l),document.removeEventListener("keyup",c)}},[]),{value:n.current!=null?n.current[0]:o,onChange:r}},Av=(e,t,n)=>{const i=e.date(t);return t===null?"":e.isValid(i)?e.formatByString(i,n):""},hd="_",w6="2019-11-21T22:30:00.000",_6="2019-01-01T09:00:00.000";function xV(e,t,n,i){if(e)return e;const o=i.formatByString(i.date(_6),t).replace(n,hd),a=i.formatByString(i.date(w6),t).replace(n,"_");return o===a?o:""}function wV(e,t,n,i){if(!e)return!1;const o=i.formatByString(i.date(_6),t).replace(n,hd),a=i.formatByString(i.date(w6),t).replace(n,"_"),r=a===o&&e===a;return!r&&i.lib,r}const _V=(e,t)=>n=>{let i=0;return n.split("").map((s,o)=>{if(t.lastIndex=0,i>e.length-1)return"";const a=e[i],r=e[i+1],l=t.test(s)?s:"",c=a===hd?l:a+l;return i+=c.length,o===n.length-1&&r&&r!==hd?c?c+r:"":c}).join("")},TV=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:n,ignoreInvalidInputs:i,inputFormat:s,inputProps:o,label:a,mask:r,onChange:l,rawValue:c,readOnly:u,rifmFormatter:f,TextFieldProps:d,validationError:h})=>{const p=Mr(),g=p.getFormatHelperText(s),{shouldUseMaskedInput:y,maskToUse:v}=je.useMemo(()=>{if(n)return{shouldUseMaskedInput:!1,maskToUse:""};const O=xV(r,s,e,p);return{shouldUseMaskedInput:wV(O,s,e,p),maskToUse:O}},[e,n,s,r,p]),m=je.useMemo(()=>y&&v?_V(v,e):O=>O,[e,v,y]),b=c===null?null:p.date(c),[w,_]=je.useState(b),[x,k]=je.useState(Av(p,c,s)),T=je.useRef(),M=je.useRef(p.locale),S=je.useRef(s);je.useEffect(()=>{const O=c!==T.current,R=p.locale!==M.current,F=s!==S.current;if(T.current=c,M.current=p.locale,S.current=s,!O&&!R&&!F)return;const P=c===null?null:p.date(c),z=c===null||p.isValid(P);let B=w===null&&P===null;if(w!==null&&P!==null){const j=p.isEqual(w,P);if(j)B=!0;else{const $=Math.abs(p.getDiff(w,P));B=$===0?j:$<1e3}}if(!R&&!F&&(!z||B))return;const N=Av(p,c,s);_(P),k(N)},[p,c,s,w]);const C=O=>{const R=O===""||O===r?"":O;k(R);const F=R===null?null:p.parse(R,s);i&&!p.isValid(F)||(_(F),l(F,R||void 0))},A=bV({value:x,onChange:C,format:f||m});return Gt({label:a,disabled:t,error:h,inputProps:Gt({},y?A:{value:x,onChange:O=>{C(O.currentTarget.value)}},{disabled:t,placeholder:g,readOnly:u,type:y?"tel":"text"},o)},d)},kV=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],kh=je.forwardRef(function(t,n){const{className:i,components:s={},disableOpenPicker:o,getOpenDialogAriaText:a,InputAdornmentProps:r,InputProps:l,inputRef:c,openPicker:u,OpenPickerButtonProps:f,renderInput:d}=t,h=Yn(t,kV),p=pi(),g=a??p.openDatePickerDialogue,y=Mr(),v=TV(h),m=(r==null?void 0:r.position)||"end",b=s.OpenPickerIcon||t6;return d(Gt({ref:n,inputRef:c,className:i},v,{InputProps:Gt({},l,{[`${m}Adornment`]:o?void 0:Ie.jsx(UC,Gt({position:m},r,{children:Ie.jsx(ci,Gt({edge:m,disabled:h.disabled||h.readOnly,"aria-label":g(h.rawValue,y)},f,{onClick:u,children:Ie.jsx(b,{})}))}))})}))});function k3(){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 MV=(e,t)=>{const[n,i]=je.useState(k3);return N1(()=>{const o=()=>{i(k3())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),Io(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},SV=({autoFocus:e,openView:t})=>{const[n,i]=je.useState(e?t:null),s=je.useCallback(o=>a=>{i(a?o:r=>o===r?null:r)},[]);return{focusedView:n,setFocusedView:s}};function CV(e){return Hn("MuiCalendarOrClockPicker",e)}qn("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const OV=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],PV=e=>{const{classes:t}=e;return Un({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},CV,t)},AV=en("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),DV=en("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Gt({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),EV={fullWidth:!0},M3=e=>e==="year"||e==="month"||e==="day",S3=e=>e==="hours"||e==="minutes"||e==="seconds";function Hi(e){var t,n;const i=pr({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:s,parsedValue:o,DateInputProps:a,isMobileKeyboardViewOpen:r,onDateChange:l,onViewChange:c,openTo:u,orientation:f,showToolbar:d,toggleMobileKeyboardView:h,ToolbarComponent:p=()=>null,toolbarFormat:g,toolbarPlaceholder:y,toolbarTitle:v,views:m,dateRangeIcon:b,timeIcon:w,hideTabs:_}=i,x=Yn(i,OV),k=(t=x.components)==null?void 0:t.Tabs,T=MV(m,f),M=je.useContext(Wi),S=PV(i),C=d??M!=="desktop",A=!_&&typeof window<"u"&&window.innerHeight>667,D=je.useCallback((N,j)=>{l(N,M,j)},[l,M]),O=je.useCallback(N=>{r&&h(),c&&c(N)},[r,c,h]),{openView:R,setOpenView:F,handleChangeAndOpenNext:P}=B1({view:void 0,views:m,openTo:u,onChange:D,onViewChange:O}),{focusedView:z,setFocusedView:B}=SV({autoFocus:s,openView:R});return Ie.jsxs(DV,{ownerState:{isLandscape:T},className:S.root,children:[C&&Ie.jsx(p,Gt({},x,{views:m,isLandscape:T,parsedValue:o,onChange:D,setOpenView:F,openView:R,toolbarTitle:v,toolbarFormat:g,toolbarPlaceholder:y,isMobileKeyboardViewOpen:r,toggleMobileKeyboardView:h})),A&&!!k&&Ie.jsx(k,Gt({dateRangeIcon:b,timeIcon:w,view:R,onChange:F},(n=x.componentsProps)==null?void 0:n.tabs)),Ie.jsx(q1,{children:r?Ie.jsx(AV,{className:S.mobileKeyboardInputView,children:Ie.jsx(kh,Gt({},a,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:EV}))}):Ie.jsxs(je.Fragment,{children:[M3(R)&&Ie.jsx(c6,Gt({autoFocus:s,date:o,onViewChange:F,onChange:P,view:R,views:m.filter(M3),focusedView:z,onFocusedViewChange:B},x)),S3(R)&&Ie.jsx(v6,Gt({},x,{autoFocus:s,date:o,view:R,views:m.filter(S3),onChange:P,onViewChange:F,showViewSwitcher:M==="desktop"}))]})})]})}const RV=({open:e,onOpen:t,onClose:n})=>{const i=je.useRef(typeof e=="boolean").current,[s,o]=je.useState(!1);je.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=je.useCallback(r=>{i||o(r),r&&t&&t(),!r&&n&&n()},[i,t,n]);return{isOpen:s,setIsOpen:a}},Vi=(e,t)=>{const{onAccept:n,onChange:i,value:s,closeOnSelect:o}=e,a=Mr(),{isOpen:r,setIsOpen:l}=RV(e),c=je.useMemo(()=>t.parseInput(a,s),[t,a,s]),[u,f]=je.useState(c),[d,h]=je.useState(()=>({committed:c,draft:c,resetFallback:c})),p=je.useCallback(x=>{h(k=>{switch(x.action){case"setAll":case"acceptAndClose":return{draft:x.value,committed:x.value,resetFallback:x.value};case"setCommitted":return Gt({},k,{draft:x.value,committed:x.value});case"setDraft":return Gt({},k,{draft:x.value});default:return k}}),(x.forceOnChangeCall||!x.skipOnChangeCall&&!t.areValuesEqual(a,d.committed,x.value))&&i(x.value),x.action==="acceptAndClose"&&(l(!1),n&&!t.areValuesEqual(a,d.resetFallback,x.value)&&n(x.value))},[n,i,l,d,a,t]);je.useEffect(()=>{a.isValid(c)&&f(c)},[a,c]),je.useEffect(()=>{r&&p({action:"setAll",value:c,skipOnChangeCall:!0})},[r]),t.areValuesEqual(a,d.committed,c)||p({action:"setCommitted",value:c,skipOnChangeCall:!0});const g=je.useMemo(()=>({open:r,onClear:()=>{p({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,s,t.emptyValue)})},onAccept:()=>{p({value:d.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,s,c)})},onDismiss:()=>{p({value:d.committed,action:"acceptAndClose"})},onCancel:()=>{p({value:d.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{p({value:t.getTodayValue(a),action:"acceptAndClose"})}}),[p,r,a,d,t,s,c]),[y,v]=je.useState(!1),m=je.useMemo(()=>({parsedValue:d.draft,isMobileKeyboardViewOpen:y,toggleMobileKeyboardView:()=>v(!y),onDateChange:(x,k,T="partial")=>{switch(T){case"shallow":return p({action:"setDraft",value:x,skipOnChangeCall:!0});case"partial":return p({action:"setDraft",value:x});case"finish":return p(o??k==="desktop"?{value:x,action:"acceptAndClose"}:{value:x,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[p,y,d.draft,o]),b=je.useCallback((x,k)=>{const T=t.valueReducer?t.valueReducer(a,u,x):x;i(T,k)},[i,t,u,a]),w=je.useMemo(()=>({onChange:b,open:r,rawValue:s,openPicker:()=>l(!0)}),[b,r,s,l]),_={pickerProps:m,inputProps:w,wrapperProps:g};return je.useDebugValue(_,()=>({MuiPickerState:{dateState:d,other:_}})),_},LV=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],T6=je.forwardRef(function(t,n){const i=U1(t,"MuiDesktopDatePicker"),s=F1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:r}=Vi(i,W1),{PopperProps:l,PaperProps:c,ToolbarComponent:u=Y1,TransitionComponent:f,components:d,componentsProps:h}=i,p=Yn(i,LV),g=Gt({},a,p,{components:d,componentsProps:h,ref:n,validationError:s});return Ie.jsx(X1,Gt({},r,{DateInputProps:g,KeyboardDateInputComponent:kh,PopperProps:l,PaperProps:c,TransitionComponent:f,components:d,componentsProps:h,children:Ie.jsx(Hi,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:u,DateInputProps:g,components:d,componentsProps:h},p))}))}),IV=en(LF)({[`& .${Hu.container}`]:{outline:0},[`& .${Hu.paper}`]:{outline:0,minWidth:z1}}),FV=en(UF)({"&:first-of-type":{padding:0}}),$V=e=>{var t;const{children:n,DialogProps:i={},onAccept:s,onClear:o,onDismiss:a,onCancel:r,onSetToday:l,open:c,components:u,componentsProps:f}=e,d=(t=u==null?void 0:u.ActionBar)!=null?t:G1;return Ie.jsxs(IV,Gt({open:c,onClose:a},i,{children:[Ie.jsx(FV,{children:n}),Ie.jsx(d,Gt({onAccept:s,onClear:o,onCancel:r,onSetToday:l,actions:["cancel","accept"]},f==null?void 0:f.actionBar))]}))},jV=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function Z1(e){const{children:t,DateInputProps:n,DialogProps:i,onAccept:s,onClear:o,onDismiss:a,onCancel:r,onSetToday:l,open:c,PureDateInputComponent:u,components:f,componentsProps:d}=e,h=Yn(e,jV);return Ie.jsxs(Wi.Provider,{value:"mobile",children:[Ie.jsx(u,Gt({components:f},h,n)),Ie.jsx($V,{DialogProps:i,onAccept:s,onClear:o,onDismiss:a,onCancel:r,onSetToday:l,open:c,components:f,componentsProps:d,children:t})]})}const K1=je.forwardRef(function(t,n){const{disabled:i,getOpenDialogAriaText:s,inputFormat:o,InputProps:a,inputRef:r,label:l,openPicker:c,rawValue:u,renderInput:f,TextFieldProps:d={},validationError:h,className:p}=t,g=pi(),y=s??g.openDatePickerDialogue,v=Mr(),m=je.useMemo(()=>Gt({},a,{readOnly:!0}),[a]),b=Av(v,u,o),w=Cc(_=>{_.stopPropagation(),c()});return f(Gt({label:l,disabled:i,ref:n,inputRef:r,error:h,InputProps:m,className:p},!t.readOnly&&!t.disabled&&{onClick:w},{inputProps:Gt({disabled:i,readOnly:!0,"aria-readonly":!0,"aria-label":y(u,v),value:b},!t.readOnly&&{onClick:w},{onKeyDown:N4(c)})},d))}),NV=["ToolbarComponent","value","onChange","components","componentsProps"],k6=je.forwardRef(function(t,n){const i=U1(t,"MuiMobileDatePicker"),s=F1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:r}=Vi(i,W1),{ToolbarComponent:l=Y1,components:c,componentsProps:u}=i,f=Yn(i,NV),d=Gt({},a,f,{components:c,componentsProps:u,ref:n,validationError:s});return Ie.jsx(Z1,Gt({},f,r,{DateInputProps:d,PureDateInputComponent:K1,components:c,componentsProps:u,children:Ie.jsx(Hi,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:c,componentsProps:u},f))}))}),zV=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],BV=je.forwardRef(function(t,n){const i=pr({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:s="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:r}=i,l=Yn(i,zV);return m1(s,{defaultMatches:!0})?Ie.jsx(T6,Gt({ref:n,PopperProps:a,TransitionComponent:r},l)):Ie.jsx(k6,Gt({ref:n,DialogProps:o},l))});function J1(e,t){var n,i,s,o,a;const r=pr({props:e,name:t}),l=Mr(),c=Dc(),u=(n=r.ampm)!=null?n:l.is12HourCycleInCurrentLocale();if(r.orientation!=null&&r.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Gt({ampm:u,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:u?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:u?l.formats.keyboardDateTime12h:l.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(r.minDateTime||r.maxDateTime),disablePast:!1,disableFuture:!1},r,{minDate:ni(l,(i=r.minDateTime)!=null?i:r.minDate,c.minDate),maxDate:ni(l,(s=r.maxDateTime)!=null?s:r.maxDate,c.maxDate),minTime:(o=r.minDateTime)!=null?o:r.minTime,maxTime:(a=r.maxDateTime)!=null?a:r.maxTime})}const Q1={emptyValue:null,getTodayValue:e=>e.date(),parseInput:R1,areValuesEqual:(e,t,n)=>e.isEqual(t,n)},qV=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function UV(e){return Hn("PrivatePickersToolbarText",e)}const C3=qn("PrivatePickersToolbarText",["root","selected"]),WV=["className","selected","value"],HV=e=>{const{classes:t,selected:n}=e;return Un({root:["root",n&&"selected"]},UV,t)},VV=en(dr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${C3.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${C3.selected}`]:{color:e.palette.text.primary}})),eb=je.forwardRef(function(t,n){const{className:i,value:s}=t,o=Yn(t,WV),a=HV(t);return Ie.jsx(VV,Gt({ref:n,className:qr(i,a.root),component:"span"},o,{children:s}))}),YV=["align","className","selected","typographyClassName","value","variant"],GV=e=>{const{classes:t}=e;return Un({root:["root"]},x6,t)},XV=en(fi,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Ti=je.forwardRef(function(t,n){const i=pr({props:t,name:"MuiPickersToolbarButton"}),{align:s,className:o,selected:a,typographyClassName:r,value:l,variant:c}=i,u=Yn(i,YV),f=GV(i);return Ie.jsx(XV,Gt({variant:"text",ref:n,className:qr(o,f.root)},u,{children:Ie.jsx(eb,{align:s,className:r,variant:c,value:l,selected:a})}))});function ZV(e){return Hn("MuiDateTimePickerToolbar",e)}const KV=qn("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),JV=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],QV=e=>{const{classes:t}=e;return Un({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},ZV,t)},eY=en(V1,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${H1.penIconButton}`]:Gt({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),tY=en("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),nY=en("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),O3=en(eb,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function tb(e){const t=pr({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,parsedValue:i,isMobileKeyboardViewOpen:s,openView:o,setOpenView:a,toggleMobileKeyboardView:r,toolbarFormat:l,toolbarPlaceholder:c="––",toolbarTitle:u,views:f}=t,d=Yn(t,JV),h=t,p=Mr(),g=pi(),y=QV(h),v=u??g.dateTimePickerDefaultToolbarTitle,m=w=>n?p.format(w,"hours12h"):p.format(w,"hours24h"),b=je.useMemo(()=>i?l?p.formatByString(i,l):p.format(i,"shortDate"):c,[i,l,c,p]);return Ie.jsxs(eY,Gt({toolbarTitle:v,isMobileKeyboardViewOpen:s,toggleMobileKeyboardView:r,className:y.root,viewType:qV(o)},d,{isLandscape:!1,ownerState:h,children:[Ie.jsxs(tY,{className:y.dateContainer,ownerState:h,children:[f.includes("year")&&Ie.jsx(Ti,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:o==="year",value:i?p.format(i,"year"):"–"}),f.includes("day")&&Ie.jsx(Ti,{tabIndex:-1,variant:"h4",onClick:()=>a("day"),selected:o==="day",value:b})]}),Ie.jsxs(nY,{className:y.timeContainer,ownerState:h,children:[f.includes("hours")&&Ie.jsx(Ti,{variant:"h3",onClick:()=>a("hours"),selected:o==="hours",value:i?m(i):"--"}),f.includes("minutes")&&Ie.jsxs(je.Fragment,{children:[Ie.jsx(O3,{variant:"h3",value:":",className:y.separator,ownerState:h}),Ie.jsx(Ti,{variant:"h3",onClick:()=>a("minutes"),selected:o==="minutes",value:i?p.format(i,"minutes"):"--"})]}),f.includes("seconds")&&Ie.jsxs(je.Fragment,{children:[Ie.jsx(O3,{variant:"h3",value:":",className:y.separator,ownerState:h}),Ie.jsx(Ti,{variant:"h3",onClick:()=>a("seconds"),selected:o==="seconds",value:i?p.format(i,"seconds"):"--"})]})]})]}))}const M6=({adapter:e,value:t,props:n})=>{const{minTime:i,maxTime:s,minutesStep:o,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:r}=n,l=e.utils.date(t),c=a6(r,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(i&&c(i,l)):return"minTime";case!!(s&&c(l,s)):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}},rY=(e,t)=>e===t,nb=e=>L1(e,M6,rY),aY=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],iY=({props:e,value:t,adapter:n})=>{const{minDate:i,maxDate:s,disableFuture:o,shouldDisableDate:a,disablePast:r}=e,l=Yn(e,aY),c=I1({adapter:n,value:t,props:{minDate:i,maxDate:s,disableFuture:o,shouldDisableDate:a,disablePast:r}});return c!==null?c:M6({adapter:n,value:t,props:l})},oY=(e,t)=>e===t;function rb(e){return L1(e,iY,oY)}function lY(e){return Hn("MuiDateTimePickerTabs",e)}const sY=qn("MuiDateTimePickerTabs",["root"]),uY=e=>["day","month","year"].includes(e)?"date":"time",cY=e=>e==="date"?"day":"hours",fY=e=>{const{classes:t}=e;return Un({root:["root"]},lY,t)},dY=en(PC,{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}`,[`& .${ZL.indicator}`]:{bottom:"auto",top:0}})),Mh=function(t){const n=pr({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:i=Ie.jsx(CW,{}),onChange:s,timeIcon:o=Ie.jsx(PW,{}),view:a}=n,r=pi(),l=je.useContext(Wi),c=Gt({},n,{wrapperVariant:l}),u=fY(c),f=(d,h)=>{s(cY(h))};return Ie.jsxs(dY,{ownerState:c,variant:"fullWidth",value:uY(a),onChange:f,className:u.root,children:[Ie.jsx(gv,{value:"date","aria-label":r.dateTableLabel,icon:Ie.jsx(je.Fragment,{children:i})}),Ie.jsx(gv,{value:"time","aria-label":r.timeTableLabel,icon:Ie.jsx(je.Fragment,{children:o})})]})},hY=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],S6=je.forwardRef(function(t,n){const i=J1(t,"MuiDesktopDateTimePicker"),s=rb(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:r}=Vi(i,Q1),{PaperProps:l,PopperProps:c,ToolbarComponent:u=tb,TransitionComponent:f,components:d,componentsProps:h,hideTabs:p=!0}=i,g=Yn(i,hY),y=je.useMemo(()=>Gt({Tabs:Mh},d),[d]),v=Gt({},a,g,{components:y,componentsProps:h,ref:n,validationError:s});return Ie.jsx(X1,Gt({},r,{DateInputProps:v,KeyboardDateInputComponent:kh,PopperProps:c,PaperProps:l,TransitionComponent:f,components:y,componentsProps:h,children:Ie.jsx(Hi,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:u,DateInputProps:v,components:y,componentsProps:h,hideTabs:p},g))}))}),pY=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],C6=je.forwardRef(function(t,n){const i=J1(t,"MuiMobileDateTimePicker"),s=rb(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:r}=Vi(i,Q1),{ToolbarComponent:l=tb,components:c,componentsProps:u,hideTabs:f=!1}=i,d=Yn(i,pY),h=je.useMemo(()=>Gt({Tabs:Mh},c),[c]),p=Gt({},a,d,{components:h,componentsProps:u,ref:n,validationError:s});return Ie.jsx(Z1,Gt({},d,r,{DateInputProps:p,PureDateInputComponent:K1,components:h,componentsProps:u,children:Ie.jsx(Hi,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:p,components:h,componentsProps:u,hideTabs:f},d))}))}),gY=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],mY=je.forwardRef(function(t,n){const i=pr({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:s="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:r}=i,l=Yn(i,gY);return m1(s,{defaultMatches:!0})?Ie.jsx(S6,Gt({ref:n,PopperProps:a,TransitionComponent:r},l)):Ie.jsx(C6,Gt({ref:n,DialogProps:o},l))});function ab(e,t){var n;const i=pr({props:e,name:t}),s=Mr(),o=(n=i.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),r=pi().openTimePickerDialogue;return Gt({ampm:o,openTo:"hours",views:["hours","minutes"],acceptRegex:o?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:r,inputFormat:o?s.formats.fullTime12h:s.formats.fullTime24h},i,{components:Gt({OpenPickerIcon:n6},i.components)})}const ib={emptyValue:null,parseInput:R1,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 vY(e){return Hn("MuiTimePickerToolbar",e)}const Il=qn("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),yY=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],bY=e=>{const{theme:t,isLandscape:n,classes:i}=e,s={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Un(s,vY,i)},xY=en(V1,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${H1.penIconButtonLandscape}`]:{marginTop:"auto"}}),wY=en(eb,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),_Y=en("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Il.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Il.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"})),TY=en("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Il.ampmLabel}`]:t.ampmLabel},{[`&.${Il.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%"},{[`& .${Il.ampmLabel}`]:{fontSize:17}}));function ob(e){const t=pr({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:i,parsedValue:s,isLandscape:o,isMobileKeyboardViewOpen:a,onChange:r,openView:l,setOpenView:c,toggleMobileKeyboardView:u,toolbarTitle:f,views:d,disabled:h,readOnly:p}=t,g=Yn(t,yY),y=Mr(),v=pi(),m=f??v.timePickerDefaultToolbarTitle,b=rl(),w=!!(n&&!i),{meridiemMode:_,handleMeridiemChange:x}=i6(s,n,r),k=C=>n?y.format(C,"hours12h"):y.format(C,"hours24h"),T=t,M=bY(Gt({},T,{theme:b})),S=Ie.jsx(wY,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:M.separator});return Ie.jsxs(xY,Gt({viewType:"clock",landscapeDirection:"row",toolbarTitle:m,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:u,ownerState:T,className:M.root},g,{children:[Ie.jsxs(_Y,{className:M.hourMinuteLabel,ownerState:T,children:[Io(d,"hours")&&Ie.jsx(Ti,{tabIndex:-1,variant:"h3",onClick:()=>c("hours"),selected:l==="hours",value:s?k(s):"--"}),Io(d,["hours","minutes"])&&S,Io(d,"minutes")&&Ie.jsx(Ti,{tabIndex:-1,variant:"h3",onClick:()=>c("minutes"),selected:l==="minutes",value:s?y.format(s,"minutes"):"--"}),Io(d,["minutes","seconds"])&&S,Io(d,"seconds")&&Ie.jsx(Ti,{variant:"h3",onClick:()=>c("seconds"),selected:l==="seconds",value:s?y.format(s,"seconds"):"--"})]}),w&&Ie.jsxs(TY,{className:M.ampmSelection,ownerState:T,children:[Ie.jsx(Ti,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:M.ampmLabel,value:y.getMeridiemText("am"),onClick:p?void 0:()=>x("am"),disabled:h}),Ie.jsx(Ti,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:M.ampmLabel,value:y.getMeridiemText("pm"),onClick:p?void 0:()=>x("pm"),disabled:h})]})]}))}const kY=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],O6=je.forwardRef(function(t,n){const i=ab(t,"MuiDesktopTimePicker"),s=nb(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:r}=Vi(i,ib),{PaperProps:l,PopperProps:c,ToolbarComponent:u=ob,TransitionComponent:f,components:d,componentsProps:h}=i,p=Yn(i,kY),g=Gt({},a,p,{components:d,componentsProps:h,ref:n,validationError:s});return Ie.jsx(X1,Gt({},r,{DateInputProps:g,KeyboardDateInputComponent:kh,PopperProps:c,PaperProps:l,TransitionComponent:f,components:d,componentsProps:h,children:Ie.jsx(Hi,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:u,DateInputProps:g,components:d,componentsProps:h},p))}))}),MY=["ToolbarComponent","value","onChange","components","componentsProps"],P6=je.forwardRef(function(t,n){const i=ab(t,"MuiMobileTimePicker"),s=nb(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:r}=Vi(i,ib),{ToolbarComponent:l=ob,components:c,componentsProps:u}=i,f=Yn(i,MY),d=Gt({},a,f,{components:c,componentsProps:u,ref:n,validationError:s});return Ie.jsx(Z1,Gt({},f,r,{DateInputProps:d,PureDateInputComponent:K1,components:c,componentsProps:u,children:Ie.jsx(Hi,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:c,componentsProps:u},f))}))});function SY(e){return Hn("MuiPickerStaticWrapper",e)}qn("MuiPickerStaticWrapper",["root","content"]);const CY=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],OY=e=>{const{classes:t}=e;return Un({root:["root"],content:["content"]},SY,t)},PY=en("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),AY=en("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:z1,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function Sh(e){var t;const n=pr({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:i,onAccept:s,onClear:o,onCancel:a,onSetToday:r,children:l,components:c,componentsProps:u,className:f}=n,d=Yn(n,CY),h=OY(n),p=(t=c==null?void 0:c.ActionBar)!=null?t:G1,g=(c==null?void 0:c.PaperContent)||je.Fragment;return Ie.jsx(Wi.Provider,{value:i,children:Ie.jsxs(PY,Gt({className:qr(h.root,f)},d,{children:[Ie.jsx(AY,{className:h.content,children:Ie.jsx(g,Gt({},u==null?void 0:u.paperContent,{children:l}))}),Ie.jsx(p,Gt({onAccept:s,onClear:o,onCancel:a,onSetToday:r,actions:i==="desktop"?[]:["cancel","accept"]},u==null?void 0:u.actionBar))]}))})}const DY=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],EY=je.forwardRef(function(t,n){const i=U1(t,"MuiStaticDatePicker"),{ToolbarComponent:s=Y1,displayStaticWrapperAs:o="mobile",components:a,componentsProps:r,className:l}=i,c=Yn(i,DY),{pickerProps:u,inputProps:f,wrapperProps:d}=Vi(i,W1),h=F1(i)!==null,p=Gt({},f,c,{ref:n,validationError:h,components:a});return Ie.jsx(Sh,Gt({displayStaticWrapperAs:o,components:a,componentsProps:r,className:l},d,{children:Ie.jsx(Hi,Gt({},u,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:p,components:a,componentsProps:r},c))}))}),RY=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],LY=je.forwardRef(function(t,n){const i=J1(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:s="mobile",ToolbarComponent:o=tb,components:a,componentsProps:r,hideTabs:l=s==="desktop",className:c}=i,u=Yn(i,RY),{pickerProps:f,inputProps:d,wrapperProps:h}=Vi(i,Q1),p=rb(i)!==null,g=je.useMemo(()=>Gt({Tabs:Mh},a),[a]),y=Gt({},d,u,{ref:n,validationError:p,components:g,componentsProps:r});return Ie.jsx(Sh,Gt({displayStaticWrapperAs:s,components:g,componentsProps:r,className:c},h,{children:Ie.jsx(Hi,Gt({},f,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:y,components:g,componentsProps:r,hideTabs:l},u))}))}),IY=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],FY=je.forwardRef(function(t,n){const i=ab(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:s="mobile",ToolbarComponent:o=ob,components:a,componentsProps:r,className:l}=i,c=Yn(i,IY),u=nb(i)!==null,{pickerProps:f,inputProps:d,wrapperProps:h}=Vi(i,ib),p=Gt({},d,c,{ref:n,validationError:u,components:a,componentsProps:r});return Ie.jsx(Sh,Gt({displayStaticWrapperAs:s,components:a,componentsProps:r,className:l},h,{children:Ie.jsx(Hi,Gt({},f,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:p,components:a,componentsProps:r},c))}))}),$Y=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],jY=je.forwardRef(function(t,n){const i=pr({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:s="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:r}=i,l=Yn(i,$Y);return m1(s,{defaultMatches:!0})?Ie.jsx(O6,Gt({ref:n,PopperProps:a,TransitionComponent:r},l)):Ie.jsx(P6,Gt({ref:n,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 NY=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:c6,CalendarPickerSkeleton:yH,ClockPicker:v6,DEFAULT_LOCALE:q4,DatePicker:BV,DateTimePicker:mY,DateTimePickerTabs:Mh,DesktopDatePicker:T6,DesktopDateTimePicker:S6,DesktopTimePicker:O6,LocalizationProvider:$U,MobileDatePicker:k6,MobileDateTimePicker:C6,MobileTimePicker:P6,MonthPicker:W4,MuiPickersAdapterContext:E1,PickerStaticWrapper:Sh,PickersDay:J4,StaticDatePicker:EY,StaticDateTimePicker:LY,StaticTimePicker:FY,TimePicker:jY,YearPicker:s6,beBY:RU,calendarPickerClasses:oH,calendarPickerSkeletonClasses:dH,clockClasses:EH,clockNumberClasses:qu,clockPickerClasses:YH,clockPointerClasses:MH,csCZ:aU,datePickerToolbarClasses:iV,dateTimePickerTabsClasses:sY,dateTimePickerToolbarClasses:KV,dayPickerClasses:pW,deDE:Yq,enUS:cU,esES:Zq,faIR:Jq,fiFI:tU,frFR:lU,getCalendarPickerSkeletonUtilityClass:f6,getCalendarPickerUtilityClass:u6,getClockPickerUtilityClass:m6,getMonthPickerUtilityClass:U4,getPickersDayUtilityClass:X4,getYearPickerUtilityClass:l6,huHU:uU,isIS:MU,itIT:vU,jaJP:CU,koKR:TU,monthPickerClasses:jU,nbNO:dU,nlNL:Nq,pickersCalendarHeaderClasses:zW,pickersDayClasses:Bu,pickersFadeTransitionGroupClasses:YU,pickersMonthClasses:Ov,pickersSlideTransitionClasses:pa,pickersYearClasses:jo,plPL:Bq,ptBR:Uq,ruRU:FU,svSE:pU,timePickerToolbarClasses:Il,trTR:Hq,ukUA:PU,urPK:DU,yearPickerClasses:tH,zhCN:xU},Symbol.toStringTag,{value:"Module"})),A6=Wn(NY);var P3;function zY(){return P3||(P3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(xr()),i=t(is()),s=t(oh()),o=t(lh()),a=t(k1()),r=t(S1()),l=t(C1()),c=t(je),u=t(sh),f=t(il),d=t(g4),h=t(O1),p=t(m4),g=t(MN),y=t(SN),v=t(CN),m=$4,b=A6,w=t(Or),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],x=["helperText","error"],k=["helperText","error"];function T(A){var D=M();return function(){var R=(0,l.default)(A),F;if(D){var P=(0,l.default)(this).constructor;F=Reflect.construct(R,arguments,P)}else F=R.apply(this,arguments);return(0,r.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(A){(0,a.default)(O,A);var D=T(O);function O(){return(0,s.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 P=(0,i.default)(F,_);return P}},{key:"renderLookupField",value:function(){var F=this,P=this.getProps(),z=P.helperText,B=P.error,N=(0,i.default)(P,x);return c.default.createElement(p.default,{error:!!B},c.default.createElement(d.default,(0,n.default)({},N,{value:this.props.value===void 0?"":this.props.value,onChange:function($){return F.props.onChange($.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 c.default.createElement(h.default,{key:j,value:j},F.props.columnDef.lookup[j])})),!!z&&c.default.createElement(g.default,null,z))}},{key:"renderBooleanField",value:function(){var F=this,P=this.getProps(),z=P.helperText,B=P.error,N=(0,i.default)(P,k);return c.default.createElement(p.default,{error:!!B,component:"fieldset"},c.default.createElement(y.default,null,c.default.createElement(v.default,{label:"",control:c.default.createElement(f.default,(0,n.default)({},N,{value:String(this.props.value),checked:!!this.props.value,onChange:function($){return F.props.onChange($.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),c.default.createElement(g.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 c.default.createElement(b.LocalizationProvider,{dateAdapter:m.AdapterDateFns,locale:this.props.locale},c.default.createElement(b.DatePicker,(0,n.default)({},this.getProps(),{renderInput:function(z){return c.default.createElement(u.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 c.default.createElement(b.LocalizationProvider,{dateAdapter:m.AdapterDateFns,locale:this.props.locale},c.default.createElement(b.TimePicker,(0,n.default)({},this.getProps(),{renderInput:function(P){return c.default.createElement(u.default,P)},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 c.default.createElement(b.LocalizationProvider,{dateAdapter:m.AdapterDateFns,locale:this.props.locale},c.default.createElement(b.DateTimePicker,(0,n.default)({},this.getProps(),{renderInput:function(P){return c.default.createElement(u.default,P)},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 c.default.createElement(u.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(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 c.default.createElement(u.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(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}(c.default.Component);S.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 C=S;e.default=C}(Tm)),Tm}var jm={},bf={},A3;function D6(){if(A3)return bf;A3=1;var e=Rn;Object.defineProperty(bf,"__esModule",{value:!0}),bf.validateInput=o;var t=e(aa()),n=e(Xr());function i(a,r){var l=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);r&&(c=c.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),l.push.apply(l,c)}return l}function s(a){for(var r=1;r"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 m=function(w){(0,o.default)(x,w);var _=y(x);function x(k){var T;return(0,n.default)(this,x),T=_.call(this,k),(0,l.default)((0,s.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=g(g({},M),T.props.columnDef.cellStyle(T.state.value,T.props.rowData)):M=g(g({},M),T.props.columnDef.cellStyle),typeof T.props.cellEditable.cellStyle=="function"?M=g(g({},M),T.props.cellEditable.cellStyle(T.state.value,T.props.rowData,T.props.columnDef)):M=g(g({},M),T.props.cellEditable.cellStyle),M}),(0,l.default)((0,s.default)(T),"handleKeyDown",function(M){M.keyCode===13?T.onApprove():M.keyCode===27&&T.onCancel()}),(0,l.default)((0,s.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,s.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)(x,[{key:"renderActions",value:function(){if(this.state.isLoading)return c.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},c.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 c.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 c.default.createElement(f.default,{size:this.props.size,style:this.getStyle(),padding:"none"},c.default.createElement("div",{style:{display:"flex",alignItems:"center"}},c.default.createElement("div",{style:{flex:1,marginRight:4}},c.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()))}}]),x}(c.default.Component);m.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},m.propTypes={cellEditable:u.default.object.isRequired,columnDef:u.default.object.isRequired,components:u.default.object.isRequired,errorState:u.default.oneOfType([u.default.object,u.default.bool]),icons:u.default.object.isRequired,localization:u.default.object.isRequired,onCellEditFinished:u.default.func.isRequired,rowData:u.default.object.isRequired,size:u.default.string,getFieldValue:u.default.func.isRequired};var b=m;e.default=b}(jm)),jm}var Nm={},zm={exports:{}},Bm={exports:{}},E3;function qY(){return E3||(E3=1,function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Bm)),Bm.exports}var qm={exports:{}},R3;function UY(){return R3||(R3=1,function(e){function t(n,i){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var o,a,r,l,c=[],u=!0,f=!1;try{if(r=(s=s.call(n)).next,i===0){if(Object(s)!==s)return;u=!1}else for(;!(u=(o=r.call(s)).done)&&(c.push(o.value),c.length!==i);u=!0);}catch(d){f=!0,a=d}finally{try{if(!u&&s.return!=null&&(l=s.return(),Object(l)!==l))return}finally{if(f)throw a}}return c}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(qm)),qm.exports}var Um={exports:{}},L3;function WY(){return L3||(L3=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}(Um)),Um.exports}var I3;function wo(){return I3||(I3=1,function(e){var t=qY(),n=UY(),i=h4(),s=WY();function o(a,r){return t(a)||n(a,r)||i(a,r)||s()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(zm)),zm.exports}const ls=Wn(VI),ol=Wn(A$);var F3;function HY(){return F3||(F3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(xr()),i=t(aa()),s=t(Xr()),o=t(wo()),a=t(je),r=t(Or),l=t(T1),c=t(ls),u=t(ol);function f(g,y){var v=Object.keys(g);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(g);y&&(m=m.filter(function(b){return Object.getOwnPropertyDescriptor(g,b).enumerable})),v.push.apply(v,m)}return v}function d(g){for(var y=1;y0&&o.default.createElement(i.default,{colSpan:r.options.detailPanelOffset.left}),o.default.createElement(i.default,{size:r.size,colSpan:r.renderColumns.length-r.options.detailPanelOffset.left-r.options.detailPanelOffset.right,padding:"none"},o.default.createElement(n.default,{in:f,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){y.current=void 0,g()}},m({rowData:r.data}))))}return xf}var ta={},N3;function Yi(){if(N3)return ta;N3=1;var e=Rn;Object.defineProperty(ta,"__esModule",{value:!0}),ta.widthToNumber=ta.selectionMaxWidth=ta.rowActions=ta.reducePercentsInCalc=ta.parseFirstLastPageButtons=ta.elementSize=ta.baseIconSize=ta.actionsColumnWidth=void 0;var t=e(aa()),n=e(Xr());function i(h,p){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);p&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable})),g.push.apply(g,y)}return g}function s(h){for(var p=1;p1){var v=y[1];return p.replace(/\d*%/,"".concat(g*(v/100),"px"))}return p.replace(/\d*%/,"".concat(g,"px"))};ta.reducePercentsInCalc=u;var f=function(p){return typeof p=="number"?p:!p||!p.match(/^\s*\d+(px)?\s*$/)?NaN:Number(p.replace(/px$/,""))};ta.widthToNumber=f;var d=function(p,g){var y={first:!0,last:!0};return typeof p=="boolean"?y={first:p,last:p}:(0,n.default)(p)==="object"&&(y=s(s({},y),p)),g&&(y={first:y.last,last:y.first}),y};return ta.parseFirstLastPageButtons=d,ta}var wf={},z3;function XY(){if(z3)return wf;z3=1;var e=Rn;Object.defineProperty(wf,"__esModule",{value:!0}),wf.useDoubleClick=n;var t=e(je);function n(i,s){var o=t.default.useRef(0),a=t.default.useRef(null),r=t.default.useRef(null),l=t.default.useRef(null);t.default.useEffect(function(){r.current=s,l.current=i});var c=function(){clearTimeout(a.current),a.current=null,o.current=0},u=t.default.useCallback(function(f){var d=o.current+1===2,h=a.current;if(h&&d&&(c(),r.current&&r.current(f)),!h){o.current=o.current+1;var p=function(){c(),l.current&&l.current(f)};if(r.current){var g=setTimeout(p,250);a.current=g}else p()}},[]);return u}return wf}var B3;function ZY(){return B3||(B3=1,function(e){var t=Rn,n=Xr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(os()),s=t(Ui),o=t(ol),a=t(ls),r=t(il),l=t(xr()),c=t(Oi),u=t(aa()),f=t(is()),d=t(je),h=t(Or),p=GY(),g=x(Yi()),y=XY(),v=Fh(),m=hi(),b=["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 _(C){if(typeof WeakMap!="function")return null;var A=new WeakMap,D=new WeakMap;return(_=function(R){return R?D:A})(C)}function x(C,A){if(C&&C.__esModule)return C;if(C===null||n(C)!=="object"&&typeof C!="function")return{default:C};var D=_(A);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 P=R?Object.getOwnPropertyDescriptor(C,F):null;P&&(P.get||P.set)?Object.defineProperty(O,F,P):O[F]=C[F]}return O.default=C,D&&D.set(C,O),O}function k(C,A){var D=Object.keys(C);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(C);A&&(O=O.filter(function(R){return Object.getOwnPropertyDescriptor(C,R).enumerable})),D.push.apply(D,O)}return D}function T(C){for(var A=1;A-1)}).sort(function(Pe,Ee){return Pe.tableData.columnOrder-Ee.tableData.columnOrder}).map(function(Pe){var Ee=D.getFieldValue(D.data,Pe);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Fe){return Fe.tableData.id===Pe.tableData.id}))return d.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:F,localization:O,columnDef:Pe,size:Oe,key:"cell-"+D.data.tableData.id+"-"+Pe.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:H});var De=Pe.editable!=="never"&&!!D.cellEditable;De&&D.cellEditable.isCellEditable&&(De=D.cellEditable.isCellEditable(D.data,Pe));var Re="cell-".concat(D.data.tableData.id,"-").concat(Pe.tableData.id);return d.default.createElement(D.components.Cell,{size:Oe,errorState:D.errorState,columnDef:T({cellStyle:R.cellStyle},Pe),value:Ee,key:Re,rowData:D.data,cellEditable:De,onCellEditStarted:D.onCellEditStarted,scrollWidth:H})});return ke},Oe=g.elementSize(P),Me=q.length*g.baseIconSize(P),ce=function(ke){return d.default.createElement(c.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 Pe=g.selectionMaxWidth(P,D.treeDataMaxLevel)||0,Ee=Oe!=="medium"?{padding:"4px"}:void 0;return d.default.createElement(c.default,{size:Oe,padding:"none",key:"key-selection-column",style:{width:Pe}},d.default.createElement(r.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(c.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(Pe){D.onToggleDetailPanel(D.path,D.detailPanel),Pe.stopPropagation()}},d.default.createElement(F.DetailPanel,null))):d.default.createElement(c.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,Pe){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-"+Pe,style:T({transition:"all ease 200ms"},J(Re&&Ee)),disabled:ke.disabled,onClick:function(ze){D.onToggleDetailPanel(D.path,ke.render),ze.stopPropagation()}},De),ke.tooltip&&(De=d.default.createElement(o.default,{key:"key-detail-panel-"+Pe,title:ke.tooltip},De)),De}))):null},de=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?d.default.createElement(c.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(Pe){D.onTreeExpandChanged(D.path,D.data),Pe.stopPropagation()}},d.default.createElement(F.DetailPanel,null))):d.default.createElement(c.default,{padding:"none",key:"key-tree-data-column"})},xe=function(ke,Pe){var Ee={};return typeof R.rowStyle=="function"?Ee=T(T({},Ee),R.rowStyle(D.data,ke,Pe,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=g.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(c.default,{size:Oe,padding:"none",key:"key-group-cell"+we.tableData.id}))}),d.default.createElement(d.default.Fragment,null,d.default.createElement(s.default,(0,l.default)({ref:A,selected:U},X,{onClick:function(ke){ee&&ke.persist(),!U&&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:$,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:$,onEditingApproved:E,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:G,errorState:D.errorState,cellEditable:W,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(A,D){return d.default.createElement(M,(0,l.default)({},A,{forwardedRef:D}))});e.default=S}(Hm)),Hm}var Vm={},ro={};const KY=Wn(kq);var q3;function JY(){if(q3)return ro;q3=1;var e=Rn;Object.defineProperty(ro,"__esModule",{value:!0}),ro.getCurrencyValue=o,ro.getEmptyValue=s,ro.getRenderValue=a,ro.isoDateRegex=void 0;var t=e(je),n=e(KY),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)?)?)?$/;ro.isoDateRegex=i;function s(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof r=="function"?l.columnDef.emptyValue(l.rowData):r}function o(r,l){return r!==void 0?new Intl.NumberFormat(r.locale!==void 0?r.locale:"en-US",{style:"currency",currency:r.currencyCode!==void 0?r.currencyCode:"USD",minimumFractionDigits:r.minimumFractionDigits!==void 0?r.minimumFractionDigits:2,maximumFractionDigits:r.maximumFractionDigits!==void 0?r.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(r,l,c){var u=r.columnDef.dateSetting&&r.columnDef.dateSetting.locale?r.columnDef.dateSetting.locale:void 0;if(r.columnDef.emptyValue!==void 0&&(r.value===void 0||r.value===null))return s(r.columnDef.emptyValue,r);if(r.rowData===void 0&&r.value&&r.columnDef.groupRender)return r.columnDef.groupRender(r.value);if(r.columnDef.render&&r.rowData)return r.columnDef.render(r.rowData);if(r.columnDef.type==="boolean"){var f={textAlign:"left",verticalAlign:"middle",width:48};return r.value?t.default.createElement(l.Check,{style:f}):t.default.createElement(l.ThirdStateCheck,{style:f})}else{if(r.columnDef.type==="date")return r.value instanceof Date?r.value.toLocaleDateString(u):i.exec(r.value)?(0,n.default)(r.value).toLocaleDateString(u):r.value;if(r.columnDef.type==="time")return r.value instanceof Date?r.value.toLocaleTimeString():i.exec(r.value)?(0,n.default)(r.value).toLocaleTimeString(u):r.value;if(r.columnDef.type==="datetime")return r.value instanceof Date?r.value.toLocaleString():i.exec(r.value)?(0,n.default)(r.value).toLocaleString(u):r.value;if(r.columnDef.type==="currency")return o(r.columnDef.currencySetting,r.value);if(typeof r.value=="boolean")return r.value.toString()}return r.value}return ro}var ao={},U3;function Ch(){if(U3)return ao;U3=1;var e=Rn,t=Xr();Object.defineProperty(ao,"__esModule",{value:!0}),ao.getStyle=u,ao.setObjectByKey=ao.selectFromObject=void 0;var n=e(aa()),i=o(Yi());function s(f){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(s=function(g){return g?h:d})(f)}function o(f,d){if(f&&f.__esModule)return f;if(f===null||t(f)!=="object"&&typeof f!="function")return{default:f};var h=s(d);if(h&&h.has(f))return h.get(f);var p={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in f)if(y!=="default"&&Object.prototype.hasOwnProperty.call(f,y)){var v=g?Object.getOwnPropertyDescriptor(f,y):null;v&&(v.get||v.set)?Object.defineProperty(p,y,v):p[y]=f[y]}return p.default=f,h&&h.set(f,p),p}function a(f,d){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(f);d&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(f,g).enumerable})),h.push.apply(h,p)}return h}function r(f){for(var d=1;d-1)}).sort(function(H,Q){return H.tableData.columnOrder-Q.tableData.columnOrder}).map(function(H,Q){var Y=T.getFieldValue(D.data,H,!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(H.editable===void 0&&(X=!0),H.editable==="always"&&(X=!0),H.editable==="onAdd"&&T.mode==="add"&&(X=!0),H.editable==="onUpdate"&&T.mode==="update"&&(X=!0),typeof H.editable=="function"&&(X=H.editable(H,T.data)),!H.field||!X){var re=T.getFieldValue(D.data,H);return r.default.createElement(T.components.Cell,{size:V,icons:M,columnDef:H,value:re,key:H.tableData.id,rowData:T.data,style:Z(H,Y)})}else{var ie=H.editComponent,le=(0,s.default)(H,y),se=ie||T.components.EditField,pe=(0,g.validateInput)(H,D.data);return te===-1&&(te=Q),r.default.createElement(l.default,{size:V,key:H.tableData.id,align:["numeric"].indexOf(H.type)!==-1?"right":"left",style:Z(H,Y)},r.default.createElement(se,{key:H.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,H.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,g.validateInput)(V,D.data);return te.isValid}),P=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:P},{icon:M.Clear,tooltip:T.localization.cancelTooltip,onClick:function(){T.onEditingCanceled(T.mode,T.data)}}];return r.default.createElement(l.default,{size:V,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},S.editCellStyle)},r.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 N=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?P():te.keyCode===27&&T.onEditingCanceled(T.mode,T.data)},j=p.elementSize(T),$;if(T.mode==="add"||T.mode==="update"||T.mode==="bulk")$=R();else{var E=T.columns.filter(function(V){return!V.hidden&&!(V.tableData.groupOrder>-1)}).length;$=[r.default.createElement(l.default,{size:j,padding:S.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:E},r.default.createElement(u.default,{variant:"h6"},T.localization.deleteText))]}if(S.selection&&$.splice(0,0,r.default.createElement(l.default,{padding:"none",key:"key-selection-cell"})),T.isTreeData&&$.splice(0,0,r.default.createElement(l.default,{padding:"none",key:"key-tree-data-cell"})),S.actionsColumnIndex===-1)$.push(z());else if(S.actionsColumnIndex>=0){var U=0;S.selection&&(U=1),T.isTreeData&&(U=1,S.selection&&$.splice(1,1)),$.splice(S.actionsColumnIndex+U,0,z())}if(T.detailPanel&&S.showDetailPanelIcon!==!1&&T.mode!=="bulk"){var G=S.detailPanelColumnAlignment,L=G==="left"?0:$.length;$.splice(L,0,r.default.createElement(l.default,{padding:"none",key:"key-detail-panel-cell"}))}T.columns.filter(function(V){return V.tableData.groupOrder>-1}).forEach(function(V){$.splice(0,0,r.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,W=(0,s.default)(T,v);return r.default.createElement(c.default,(0,i.default)({onKeyDown:N},W,{ref:q,style:B()}),$)}x.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},x.propTypes={actions:f.default.array,index:f.default.number.isRequired,data:f.default.object,detailPanel:f.default.oneOfType([f.default.func,f.default.arrayOf(f.default.oneOfType([f.default.object,f.default.func]))]),onRowSelected:f.default.func,path:f.default.arrayOf(f.default.number),columns:f.default.array,onRowClick:f.default.func,onEditingApproved:f.default.func,onEditingCanceled:f.default.func,localization:f.default.object,getFieldValue:f.default.func,errorState:f.default.oneOfType([f.default.object,f.default.bool]),onBulkEditRowChanged:f.default.func};var k=r.default.forwardRef(function(M,S){return r.default.createElement(x,(0,i.default)({},M,{forwardedRef:S}))});e.default=k}(Gm)),Gm}var Xm={},Zm={},Co={},Y3;function lb(){if(Y3)return Co;Y3=1;var e=Rn;Object.defineProperty(Co,"__esModule",{value:!0}),Co.getLocalizedFilterPlaceHolder=Co.getLocalizationData=void 0;var t=e(aa()),n=R6();function i(r,l){var c=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);l&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(r,f).enumerable})),c.push.apply(c,u)}return c}function s(r){for(var l=1;l-1}),f.default.createElement(r.default,{primary:_.lookup[D]}))})))}var b=f.default.forwardRef(function(_,x){return f.default.createElement(m,(0,i.default)({},_,{forwardedRef:x}))});e.default=b}(Km)),Km}var Jm={};const E6=Wn(f$);var Z3;function oG(){return Z3||(Z3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(xr()),i=t(sh),s=t(E6),o=t(ol),a=t(je),r=lb();function l(u){var f,d,h=u.columnDef,p=u.icons,g=u.localization,y=u.hideFilterIcons,v=u.onFilterChanged,m=u.forwardedRef,b=(0,r.getLocalizationData)(g),w=p.Filter;return a.default.createElement(i.default,{ref:m,style:h.type==="numeric"?{float:(f=h.align)!==null&&f!==void 0?f:"right"}:{float:(d=h.align)!==null&&d!==void 0?d:"left"},type:h.type==="numeric"?"number":"search",value:h.tableData.filterValue||"",placeholder:(0,r.getLocalizedFilterPlaceHolder)(h,g),onChange:function(x){v(h.tableData.id,x.target.value)},inputProps:{"aria-label":"filter data by ".concat(h.title)},InputProps:y||h.hideFilterIcon?void 0:{startAdornment:a.default.createElement(s.default,{position:"start"},a.default.createElement(o.default,{title:b.filterTooltip},a.default.createElement(w,null)))}})}var c=a.default.forwardRef(function(f,d){return a.default.createElement(l,(0,n.default)({},f,{forwardedRef:d}))});e.default=c}(Jm)),Jm}var Qm={},K3;function lG(){return K3||(K3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(xr()),i=t(il),s=t(je);function o(r){var l=r.forwardedRef,c=r.columnDef,u=r.onFilterChanged;return s.default.createElement(i.default,{ref:l,inputProps:{"aria-label":"Filter of ".concat(c.title)},indeterminate:c.tableData.filterValue===void 0,checked:c.tableData.filterValue==="checked",onChange:function(){var d;c.tableData.filterValue===void 0?d="checked":c.tableData.filterValue==="checked"&&(d="unchecked"),u(c.tableData.id,d)}})}var a=s.default.forwardRef(function(l,c){return s.default.createElement(o,(0,n.default)({},l,{forwardedRef:c}))});e.default=a}(Qm)),Qm}var e0={},J3;function sG(){return J3||(J3=1,function(e){var t=Rn,n=Xr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(xr()),s=a(je);function o(c){if(typeof WeakMap!="function")return null;var u=new WeakMap,f=new WeakMap;return(o=function(h){return h?f:u})(c)}function a(c,u){if(c&&c.__esModule)return c;if(c===null||n(c)!=="object"&&typeof c!="function")return{default:c};var f=o(u);if(f&&f.has(c))return f.get(c);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in c)if(p!=="default"&&Object.prototype.hasOwnProperty.call(c,p)){var g=h?Object.getOwnPropertyDescriptor(c,p):null;g&&(g.get||g.set)?Object.defineProperty(d,p,g):d[p]=c[p]}return d.default=c,f&&f.set(c,d),d}function r(c){var u=c.columnDef,f=c.onFilterChanged,d=c.forwardedRef;return(0,s.createElement)(u.filterComponent,{columnDef:u,onFilterChanged:f,forwardedRef:d})}var l=s.default.forwardRef(function(u,f){return s.default.createElement(r,(0,i.default)({},u,{forwardedRef:f}))});e.default=l}(e0)),e0}var Q3;function R6(){return Q3||(Q3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=y,e.default=void 0;var n=t(Ui),i=t(Oi),s=t(aa()),o=t(xr()),a=t(je),r=t(Or),l=t(nG()),c=t(iG()),u=t(oG()),f=t(lG()),d=t(sG()),h=Oc();function p(m,b){var w=Object.keys(m);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(m);b&&(_=_.filter(function(x){return Object.getOwnPropertyDescriptor(m,x).enumerable})),w.push.apply(w,_)}return w}function g(m){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:g(g({},b.filterCellStyle),T.filterCellStyle)},w(T))});if(b.selection&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-selection-column"})),m.hasActions)if(b.actionsColumnIndex===-1)_.push(a.default.createElement(i.default,{key:"key-action-column"}));else{var x=0;m.selection&&(x=1),_.splice(b.actionsColumnIndex+x,0,a.default.createElement(i.default,{key:"key-action-column"}))}if(m.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 m.isTreeData>0&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-tree-data-filter"})),m.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(n.default,{id:"m--table--filter--row",ref:m.forwardedRef,style:g({height:10},b.filterRowStyle)},_)}y.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},y.propTypes={columns:r.default.array.isRequired,hasDetailPanel:r.default.bool.isRequired,isTreeData:r.default.bool.isRequired,onFilterChanged:r.default.func.isRequired,hasActions:r.default.bool,localization:r.default.object};var v=a.default.forwardRef(function(b,w){return a.default.createElement(y,(0,o.default)({},b,{forwardedRef:w}))});e.default=v}(Xm)),Xm}var t0={};const L6=Wn(Y$),uG=Wn(GI);function eT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function tT(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ra(1));return n(I6)(e,t)}if(typeof e!="function")throw new Error(Ra(2));var s=e,o=t,a=[],r=a,l=!1;function c(){r===a&&(r=a.slice())}function u(){if(l)throw new Error(Ra(3));return o}function f(g){if(typeof g!="function")throw new Error(Ra(4));if(l)throw new Error(Ra(5));var y=!0;return c(),r.push(g),function(){if(y){if(l)throw new Error(Ra(6));y=!1,c();var m=r.indexOf(g);r.splice(m,1),a=null}}}function d(g){if(!cG(g))throw new Error(Ra(7));if(typeof g.type>"u")throw new Error(Ra(8));if(l)throw new Error(Ra(9));try{l=!0,o=s(o,g)}finally{l=!1}for(var y=a=r,v=0;v$6=e,pG=()=>$6,oT=Symbol.for("react-redux-context"),lT=typeof globalThis<"u"?globalThis:{};function gG(){var e;if(!je.createContext)return{};const t=(e=lT[oT])!=null?e:lT[oT]=new Map;let n=t.get(je.createContext);return n||(n=je.createContext(null),t.set(je.createContext,n)),n}const j6=gG(),mG=()=>{throw new Error("uSES not initialized!")},vG=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function yG(e,t,n,i,{areStatesEqual:s,areOwnPropsEqual:o,areStatePropsEqual:a}){let r=!1,l,c,u,f,d;function h(m,b){return l=m,c=b,u=e(l,c),f=t(i,c),d=n(u,f,c),r=!0,d}function p(){return u=e(l,c),t.dependsOnOwnProps&&(f=t(i,c)),d=n(u,f,c),d}function g(){return e.dependsOnOwnProps&&(u=e(l,c)),t.dependsOnOwnProps&&(f=t(i,c)),d=n(u,f,c),d}function y(){const m=e(l,c),b=!a(m,u);return u=m,b&&(d=n(u,f,c)),d}function v(m,b){const w=!o(b,c),_=!s(m,l,b,c);return l=m,c=b,w&&_?p():w?g():_?y():d}return function(b,w){return r?v(b,w):h(b,w)}}function bG(e,t){let{initMapStateToProps:n,initMapDispatchToProps:i,initMergeProps:s}=t,o=Yn(t,vG);const a=n(e,o),r=i(e,o),l=s(e,o);return yG(a,r,l,e,o)}function xG(e,t){const n={};for(const i in e){const s=e[i];typeof s=="function"&&(n[i]=(...o)=>t(s(...o)))}return n}function Dv(e){return function(n){const i=e(n);function s(){return i}return s.dependsOnOwnProps=!1,s}}function sT(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function N6(e,t){return function(i,{displayName:s}){const o=function(r,l){return o.dependsOnOwnProps?o.mapToProps(r,l):o.mapToProps(r,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(r,l){o.mapToProps=e,o.dependsOnOwnProps=sT(e);let c=o(r,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=sT(c),c=o(r,l)),c},o}}function sb(e,t){return(n,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}function wG(e){return e&&typeof e=="object"?Dv(t=>xG(e,t)):e?typeof e=="function"?N6(e):sb(e,"mapDispatchToProps"):Dv(t=>({dispatch:t}))}function _G(e){return e?typeof e=="function"?N6(e):sb(e,"mapStateToProps"):Dv(()=>({}))}function TG(e,t,n){return Gt({},n,e,t)}function kG(e){return function(n,{displayName:i,areMergedPropsEqual:s}){let o=!1,a;return function(l,c,u){const f=e(l,c,u);return o?s(f,a)||(a=f):(o=!0,a=f),a}}}function MG(e){return e?typeof e=="function"?kG(e):sb(e,"mergeProps"):()=>TG}function SG(){const e=pG();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){let i=[],s=t;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0,o=n={callback:i,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!s||t===null||(s=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const uT={notify(){},get:()=>[]};function z6(e,t){let n,i=uT,s=0,o=!1;function a(g){u();const y=i.subscribe(g);let v=!1;return()=>{v||(v=!0,y(),f())}}function r(){i.notify()}function l(){p.onStateChange&&p.onStateChange()}function c(){return o}function u(){s++,n||(n=t?t.addNestedSub(l):e.subscribe(l),i=SG())}function f(){s--,n&&s===0&&(n(),n=void 0,i.clear(),i=uT)}function d(){o||(o=!0,u())}function h(){o&&(o=!1,f())}const p={addNestedSub:a,notifyNestedSubs:r,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>i};return p}const CG=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pd=CG?je.useLayoutEffect:je.useEffect;function cT(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function r0(e,t){if(cT(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let s=0;s{B6=e},AG=[null,null];function DG(e,t,n){pd(()=>e(...t),n)}function EG(e,t,n,i,s,o){e.current=i,n.current=!1,s.current&&(s.current=null,o())}function RG(e,t,n,i,s,o,a,r,l,c,u){if(!e)return()=>{};let f=!1,d=null;const h=()=>{if(f||!r.current)return;const g=t.getState();let y,v;try{y=i(g,s.current)}catch(m){v=m,d=m}v||(d=null),y===o.current?a.current||c():(o.current=y,l.current=y,a.current=!0,u())};return n.onStateChange=h,n.trySubscribe(),h(),()=>{if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}function LG(e,t){return e===t}function q6(e,t,n,{pure:i,areStatesEqual:s=LG,areOwnPropsEqual:o=r0,areStatePropsEqual:a=r0,areMergedPropsEqual:r=r0,forwardRef:l=!1,context:c=j6}={}){const u=c,f=_G(e),d=wG(t),h=MG(n),p=!!e;return y=>{const v=y.displayName||y.name||"Component",m=`Connect(${v})`,b={shouldHandleStateChanges:p,displayName:m,wrappedComponentName:v,WrappedComponent:y,initMapStateToProps:f,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:s,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:r};function w(k){const[T,M,S]=je.useMemo(()=>{const{reactReduxForwardedRef:H}=k,Q=Yn(k,OG);return[k.context,H,Q]},[k]),C=je.useMemo(()=>T&&T.Consumer&&JU.isContextConsumer(je.createElement(T.Consumer,null))?T:u,[T,u]),A=je.useContext(C),D=!!k.store&&!!k.store.getState&&!!k.store.dispatch,O=!!A&&!!A.store,R=D?k.store:A.store,F=O?A.getServerState:R.getState,P=je.useMemo(()=>bG(R.dispatch,b),[R]),[z,B]=je.useMemo(()=>{if(!p)return AG;const H=z6(R,D?void 0:A.subscription),Q=H.notifyNestedSubs.bind(H);return[H,Q]},[R,D,A]),N=je.useMemo(()=>D?A:Gt({},A,{subscription:z}),[D,A,z]),j=je.useRef(),$=je.useRef(S),E=je.useRef(),U=je.useRef(!1);je.useRef(!1);const G=je.useRef(!1),L=je.useRef();pd(()=>(G.current=!0,()=>{G.current=!1}),[]);const q=je.useMemo(()=>()=>E.current&&S===$.current?E.current:P(R.getState(),S),[R,S]),W=je.useMemo(()=>Q=>z?RG(p,R,z,P,$,j,U,G,E,B,Q):()=>{},[z]);DG(EG,[$,j,U,S,E,B]);let V;try{V=B6(W,q,F?()=>P(F(),S):q)}catch(H){throw L.current&&(H.message+=` +The error may be correlated with this previous error: +${L.current.stack} + +`),H}pd(()=>{L.current=void 0,E.current=void 0,j.current=V});const te=je.useMemo(()=>je.createElement(y,Gt({},V,{ref:M})),[M,y,V]);return je.useMemo(()=>p?je.createElement(C.Provider,{value:N},te):te,[C,te,N])}const x=je.memo(w);if(x.WrappedComponent=y,x.displayName=w.displayName=m,l){const T=je.forwardRef(function(S,C){return je.createElement(x,Gt({},S,{reactReduxForwardedRef:C}))});return T.displayName=m,T.WrappedComponent=y,Yw(T,y)}return Yw(x,y)}}function IG({store:e,context:t,children:n,serverState:i,stabilityCheck:s="once",noopCheck:o="once"}){const a=je.useMemo(()=>{const c=z6(e);return{store:e,subscription:c,getServerState:i?()=>i:void 0,stabilityCheck:s,noopCheck:o}},[e,i,s,o]),r=je.useMemo(()=>e.getState(),[e]);pd(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),r!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,r]);const l=t||j6;return je.createElement(l.Provider,{value:a},n)}PG(i4.useSyncExternalStore);hG(v1.unstable_batchedUpdates);function FG(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const o=WG(n,s.options);return e.addEventListener(s.eventName,s.fn,o),function(){e.removeEventListener(s.eventName,s.fn,o)}});return function(){i.forEach(o=>{o()})}}const HG="Invariant failed";class vd extends Error{}vd.prototype.toString=function(){return this.message};function cn(e,t){throw new vd(HG)}class VG extends et.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=uo,this.onWindowError=t=>{const n=this.getCallbacks();n.isDragging()&&n.tryAbort(),t.error instanceof vd&&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 vd){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const YG=` + 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 +`,yd=e=>e+1,GG=e=>` + You have lifted an item in position ${yd(e.source.index)} +`,Y6=(e,t)=>{const n=e.droppableId===t.droppableId,i=yd(e.index),s=yd(t.index);return n?` + You have moved the item from position ${i} + to position ${s} + `:` + You have moved the item from position ${i} + in list ${e.droppableId} + to list ${t.droppableId} + in position ${s} + `},G6=(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} + `,XG=e=>{const t=e.destination;if(t)return Y6(e.source,t);const n=e.combine;return n?G6(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},hT=e=>` + The item has returned to its starting position + of ${yd(e.index)} +`,ZG=e=>{if(e.reason==="CANCEL")return` + Movement cancelled. + ${hT(e.source)} + `;const t=e.destination,n=e.combine;return t?` + You have dropped the item. + ${Y6(e.source,t)} + `:n?` + You have dropped the item. + ${G6(e.draggableId,e.source,n)} + `:` + The item has been dropped while not over a drop area. + ${hT(e.source)} + `},KG={dragHandleUsageInstructions:YG,onDragStart:GG,onDragUpdate:XG,onDragEnd:ZG};var Wf=KG;const oa={x:0,y:0},ma=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Ba=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),co=(e,t)=>e.x===t.x&&e.y===t.y,ss=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Ho=function(e,t,n){return n===void 0&&(n=0),e==="x"?{x:t,y:n}:{x:n,y:t}},nc=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),pT=(e,t)=>Math.min(...t.map(n=>nc(e,n))),X6=e=>t=>({x:e(t.x),y:e(t.y)});var JG=(e,t)=>{const n=di({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 Lc=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),gT=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}],QG={top:0,right:0,bottom:0,left:0},eX=(e,t)=>t?Lc(e,t.scroll.diff.displacement):e,tX=(e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e,nX=(e,t)=>t&&t.shouldClipSubject?JG(t.pageMarginBox,e):di(e);var Vl=e=>{let{page:t,withPlaceholder:n,axis:i,frame:s}=e;const o=eX(t.marginBox,s),a=tX(o,i,n),r=nX(a,s);return{page:t,withPlaceholder:n,active:r}},fb=(e,t)=>{e.frame||cn();const n=e.frame,i=Ba(t,n.scroll.initial),s=ss(i),o={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:i,displacement:s},max:n.scroll.max}},a=Vl({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:a}};const Z6=ia(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),K6=ia(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),Ph=ia(e=>Object.values(e)),rX=ia(e=>Object.values(e));var us=ia((e,t)=>rX(t).filter(i=>e===i.descriptor.droppableId).sort((i,s)=>i.descriptor.index-s.descriptor.index));function db(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Ah(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Dh=ia((e,t)=>t.filter(n=>n.descriptor.id!==e.descriptor.id)),aX=e=>{let{isMovingForward:t,draggable:n,destination:i,insideDestination:s,previousImpact:o}=e;if(!i.isCombineEnabled||!db(o))return null;function r(p){const g={type:"COMBINE",combine:{draggableId:p,droppableId:i.descriptor.id}};return{...o,at:g}}const l=o.displaced.all,c=l.length?l[0]:null;if(t)return c?r(c):null;const u=Dh(n,s);if(!c){if(!u.length)return null;const p=u[u.length-1];return r(p.descriptor.id)}const f=u.findIndex(p=>p.descriptor.id===c);f===-1&&cn();const d=f-1;if(d<0)return null;const h=u[d];return r(h.descriptor.id)},cs=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const J6={point:oa,value:0},rc={invisible:{},visible:{},all:[]},iX={displaced:rc,displacedBy:J6,at:null};var oX=iX,ti=(e,t)=>n=>e<=n&&n<=t,Q6=e=>{const t=ti(e.top,e.bottom),n=ti(e.left,e.right);return i=>{if(t(i.top)&&t(i.bottom)&&n(i.left)&&n(i.right))return!0;const o=t(i.top)||t(i.bottom),a=n(i.left)||n(i.right);if(o&&a)return!0;const l=i.tope.bottom,c=i.lefte.right;return l&&c?!0:l&&a||c&&o}},lX=e=>{const t=ti(e.top,e.bottom),n=ti(e.left,e.right);return i=>t(i.top)&&t(i.bottom)&&n(i.left)&&n(i.right)};const hb={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},e8={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var sX=e=>t=>{const n=ti(t.top,t.bottom),i=ti(t.left,t.right);return s=>e===hb?n(s.top)&&n(s.bottom):i(s.left)&&i(s.right)};const uX=(e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:oa;return Lc(e,n)},cX=(e,t,n)=>t.subject.active?n(t.subject.active)(e):!1,fX=(e,t,n)=>n(t)(e),pb=e=>{let{target:t,destination:n,viewport:i,withDroppableDisplacement:s,isVisibleThroughFrameFn:o}=e;const a=s?uX(t,n):t;return cX(a,n,o)&&fX(a,i,o)},dX=e=>pb({...e,isVisibleThroughFrameFn:Q6}),t8=e=>pb({...e,isVisibleThroughFrameFn:lX}),hX=e=>pb({...e,isVisibleThroughFrameFn:sX(e.destination.axis)}),pX=(e,t,n)=>{if(typeof n=="boolean")return n;if(!t)return!0;const{invisible:i,visible:s}=t;if(i[e])return!1;const o=s[e];return o?o.shouldAnimate:!0};function gX(e,t){const n=e.page.marginBox,i={top:t.point.y,right:0,bottom:0,left:t.point.x};return di(ub(n,i))}function ac(e){let{afterDragging:t,destination:n,displacedBy:i,viewport:s,forceShouldAnimate:o,last:a}=e;return t.reduce(function(l,c){const u=gX(c,i),f=c.descriptor.id;if(l.all.push(f),!dX({target:u,destination:n,viewport:s,withDroppableDisplacement:!0}))return l.invisible[c.descriptor.id]=!0,l;const h=pX(f,a,o),p={draggableId:f,shouldAnimate:h};return l.visible[f]=p,l},{all:[],visible:{},invisible:{}})}function mX(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function mT(e){let{insideDestination:t,inHomeList:n,displacedBy:i,destination:s}=e;const o=mX(t,{inHomeList:n});return{displaced:rc,displacedBy:i,at:{type:"REORDER",destination:{droppableId:s.descriptor.id,index:o}}}}function bd(e){let{draggable:t,insideDestination:n,destination:i,viewport:s,displacedBy:o,last:a,index:r,forceShouldAnimate:l}=e;const c=cs(t,i);if(r==null)return mT({insideDestination:n,inHomeList:c,displacedBy:o,destination:i});const u=n.find(g=>g.descriptor.index===r);if(!u)return mT({insideDestination:n,inHomeList:c,displacedBy:o,destination:i});const f=Dh(t,n),d=n.indexOf(u),h=f.slice(d);return{displaced:ac({afterDragging:h,destination:i,displacedBy:o,last:a,viewport:s.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:r}}}}function mo(e,t){return!!t.effected[e]}var vX=e=>{let{isMovingForward:t,destination:n,draggables:i,combine:s,afterCritical:o}=e;if(!n.isCombineEnabled)return null;const a=s.draggableId,l=i[a].descriptor.index;return mo(a,o)?t?l:l-1:t?l+1:l},yX=e=>{let{isMovingForward:t,isInHomeList:n,insideDestination:i,location:s}=e;if(!i.length)return null;const o=s.index,a=t?o+1:o-1,r=i[0].descriptor.index,l=i[i.length-1].descriptor.index,c=n?l:l+1;return ac?null:a},bX=e=>{let{isMovingForward:t,isInHomeList:n,draggable:i,draggables:s,destination:o,insideDestination:a,previousImpact:r,viewport:l,afterCritical:c}=e;const u=r.at;if(u||cn(),u.type==="REORDER"){const d=yX({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return d==null?null:bd({draggable:i,insideDestination:a,destination:o,viewport:l,last:r.displaced,displacedBy:r.displacedBy,index:d})}const f=vX({isMovingForward:t,destination:o,displaced:r.displaced,draggables:s,combine:u.combine,afterCritical:c});return f==null?null:bd({draggable:i,insideDestination:a,destination:o,viewport:l,last:r.displaced,displacedBy:r.displacedBy,index:f})},xX=e=>{let{displaced:t,afterCritical:n,combineWith:i,displacedBy:s}=e;const o=!!(t.visible[i]||t.invisible[i]);return mo(i,n)?o?oa:ss(s.point):o?s.point:oa},wX=e=>{let{afterCritical:t,impact:n,draggables:i}=e;const s=Ah(n);s||cn();const o=s.draggableId,a=i[o].page.borderBox.center,r=xX({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return ma(a,r)};const n8=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,_X=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,gb=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,vT=e=>{let{axis:t,moveRelativeTo:n,isMoving:i}=e;return Ho(t.line,n.marginBox[t.end]+n8(t,i),gb(t,n.marginBox,i))},yT=e=>{let{axis:t,moveRelativeTo:n,isMoving:i}=e;return Ho(t.line,n.marginBox[t.start]-_X(t,i),gb(t,n.marginBox,i))},TX=e=>{let{axis:t,moveInto:n,isMoving:i}=e;return Ho(t.line,n.contentBox[t.start]+n8(t,i),gb(t,n.contentBox,i))};var kX=e=>{let{impact:t,draggable:n,draggables:i,droppable:s,afterCritical:o}=e;const a=us(s.descriptor.id,i),r=n.page,l=s.axis;if(!a.length)return TX({axis:l,moveInto:s.page,isMoving:r});const{displaced:c,displacedBy:u}=t,f=c.all[0];if(f){const h=i[f];if(mo(f,o))return yT({axis:l,moveRelativeTo:h.page,isMoving:r});const p=gd(h.page,u.point);return yT({axis:l,moveRelativeTo:p,isMoving:r})}const d=a[a.length-1];if(d.descriptor.id===n.descriptor.id)return r.borderBox.center;if(mo(d.descriptor.id,o)){const h=gd(d.page,ss(o.displacedBy.point));return vT({axis:l,moveRelativeTo:h,isMoving:r})}return vT({axis:l,moveRelativeTo:d.page,isMoving:r})},Ev=(e,t)=>{const n=e.frame;return n?ma(t,n.scroll.diff.displacement):t};const MX=e=>{let{impact:t,draggable:n,droppable:i,draggables:s,afterCritical:o}=e;const a=n.page.borderBox.center,r=t.at;return!i||!r?a:r.type==="REORDER"?kX({impact:t,draggable:n,draggables:s,droppable:i,afterCritical:o}):wX({impact:t,draggables:s,afterCritical:o})};var Eh=e=>{const t=MX(e),n=e.droppable;return n?Ev(n,t):t},r8=(e,t)=>{const n=Ba(t,e.scroll.initial),i=ss(n);return{frame:di({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:i}}}};function bT(e,t){return e.map(n=>t[n])}function SX(e,t){for(let n=0;n{let{impact:t,viewport:n,destination:i,draggables:s,maxScrollChange:o}=e;const a=r8(n,ma(n.scroll.current,o)),r=i.frame?fb(i,ma(i.frame.scroll.current,o)):i,l=t.displaced,c=ac({afterDragging:bT(l.all,s),destination:i,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),u=ac({afterDragging:bT(l.all,s),destination:r,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),f={},d={},h=[l,c,u];return l.all.forEach(g=>{const y=SX(g,h);if(y){d[g]=y;return}f[g]=!0}),{...t,displaced:{all:l.all,invisible:f,visible:d}}},OX=(e,t)=>ma(e.scroll.diff.displacement,t),mb=e=>{let{pageBorderBoxCenter:t,draggable:n,viewport:i}=e;const s=OX(i,t),o=Ba(s,n.page.borderBox.center);return ma(n.client.borderBox.center,o)},a8=e=>{let{draggable:t,destination:n,newPageBorderBoxCenter:i,viewport:s,withDroppableDisplacement:o,onlyOnMainAxis:a=!1}=e;const r=Ba(i,t.page.borderBox.center),c={target:Lc(t.page.borderBox,r),destination:n,withDroppableDisplacement:o,viewport:s};return a?hX(c):t8(c)},PX=e=>{let{isMovingForward:t,draggable:n,destination:i,draggables:s,previousImpact:o,viewport:a,previousPageBorderBoxCenter:r,previousClientSelection:l,afterCritical:c}=e;if(!i.isEnabled)return null;const u=us(i.descriptor.id,s),f=cs(n,i),d=aX({isMovingForward:t,draggable:n,destination:i,insideDestination:u,previousImpact:o})||bX({isMovingForward:t,isInHomeList:f,draggable:n,draggables:s,destination:i,insideDestination:u,previousImpact:o,viewport:a,afterCritical:c});if(!d)return null;const h=Eh({impact:d,draggable:n,droppable:i,draggables:s,afterCritical:c});if(a8({draggable:n,destination:i,newPageBorderBoxCenter:h,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:mb({pageBorderBoxCenter:h,draggable:n,viewport:a}),impact:d,scrollJumpRequest:null};const g=Ba(h,r),y=CX({impact:d,viewport:a,destination:i,draggables:s,maxScrollChange:g});return{clientSelection:l,impact:y,scrollJumpRequest:g}};const Ca=e=>{const t=e.subject.active;return t||cn(),t};var AX=e=>{let{isMovingForward:t,pageBorderBoxCenter:n,source:i,droppables:s,viewport:o}=e;const a=i.subject.active;if(!a)return null;const r=i.axis,l=ti(a[r.start],a[r.end]),c=Ph(s).filter(f=>f!==i).filter(f=>f.isEnabled).filter(f=>!!f.subject.active).filter(f=>Q6(o.frame)(Ca(f))).filter(f=>{const d=Ca(f);return t?a[r.crossAxisEnd]{const d=Ca(f),h=ti(d[r.start],d[r.end]);return l(d[r.start])||l(d[r.end])||h(a[r.start])||h(a[r.end])}).sort((f,d)=>{const h=Ca(f)[r.crossAxisStart],p=Ca(d)[r.crossAxisStart];return t?h-p:p-h}).filter((f,d,h)=>Ca(f)[r.crossAxisStart]===Ca(h[0])[r.crossAxisStart]);if(!c.length)return null;if(c.length===1)return c[0];const u=c.filter(f=>ti(Ca(f)[r.start],Ca(f)[r.end])(n[r.line]));return u.length===1?u[0]:u.length>1?u.sort((f,d)=>Ca(f)[r.start]-Ca(d)[r.start])[0]:c.sort((f,d)=>{const h=pT(n,gT(Ca(f))),p=pT(n,gT(Ca(d)));return h!==p?h-p:Ca(f)[r.start]-Ca(d)[r.start]})[0]};const xT=(e,t)=>{const n=e.page.borderBox.center;return mo(e.descriptor.id,t)?Ba(n,t.displacedBy.point):n},DX=(e,t)=>{const n=e.page.borderBox;return mo(e.descriptor.id,t)?Lc(n,ss(t.displacedBy.point)):n};var EX=e=>{let{pageBorderBoxCenter:t,viewport:n,destination:i,insideDestination:s,afterCritical:o}=e;return s.filter(r=>t8({target:DX(r,o),destination:i,viewport:n.frame,withDroppableDisplacement:!0})).sort((r,l)=>{const c=nc(t,Ev(i,xT(r,o))),u=nc(t,Ev(i,xT(l,o)));return c{const i=e.axis;if(e.descriptor.mode==="virtual")return Ho(i.line,t[i.line]);const s=e.subject.page.contentBox[i.size],l=us(e.descriptor.id,n).reduce((c,u)=>c+u.client.marginBox[i.size],0)+t[i.line]-s;return l<=0?null:Ho(i.line,l)},i8=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),o8=(e,t,n)=>{const i=e.frame;cs(t,e)&&cn(),e.subject.withPlaceholder&&cn();const s=Ic(e.axis,t.displaceBy).point,o=RX(e,s,n),a={placeholderSize:s,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!i){const u=Vl({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:u}}const r=o?ma(i.scroll.max,o):i.scroll.max,l=i8(i,r),c=Vl({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:c,frame:l}},LX=e=>{const t=e.subject.withPlaceholder;t||cn();const n=e.frame;if(!n){const a=Vl({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:a}}const i=t.oldFrameMaxScroll;i||cn();const s=i8(n,i),o=Vl({page:e.subject.page,axis:e.axis,frame:s,withPlaceholder:null});return{...e,subject:o,frame:s}};var IX=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:n,insideDestination:i,draggable:s,draggables:o,destination:a,viewport:r,afterCritical:l}=e;if(!n){if(i.length)return null;const d={displaced:rc,displacedBy:J6,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},h=Eh({impact:d,draggable:s,droppable:a,draggables:o,afterCritical:l}),p=cs(s,a)?a:o8(a,s,o);return a8({draggable:s,destination:p,newPageBorderBoxCenter:h,viewport:r.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?d:null}const c=t[a.axis.line]<=n.page.borderBox.center[a.axis.line],u=(()=>{const d=n.descriptor.index;return n.descriptor.id===s.descriptor.id||c?d:d+1})(),f=Ic(a.axis,s.displaceBy);return bd({draggable:s,insideDestination:i,destination:a,viewport:r,displacedBy:f,last:rc,index:u})},FX=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:n,draggable:i,isOver:s,draggables:o,droppables:a,viewport:r,afterCritical:l}=e;const c=AX({isMovingForward:t,pageBorderBoxCenter:n,source:s,droppables:a,viewport:r});if(!c)return null;const u=us(c.descriptor.id,o),f=EX({pageBorderBoxCenter:n,viewport:r,destination:c,insideDestination:u,afterCritical:l}),d=IX({previousPageBorderBoxCenter:n,destination:c,draggable:i,draggables:o,moveRelativeTo:f,insideDestination:u,viewport:r,afterCritical:l});if(!d)return null;const h=Eh({impact:d,draggable:i,droppable:c,draggables:o,afterCritical:l});return{clientSelection:mb({pageBorderBoxCenter:h,draggable:i,viewport:r}),impact:d,scrollJumpRequest:null}},Wa=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const $X=(e,t)=>{const n=Wa(e);return n?t[n]:null};var jX=e=>{let{state:t,type:n}=e;const i=$X(t.impact,t.dimensions.droppables),s=!!i,o=t.dimensions.droppables[t.critical.droppable.id],a=i||o,r=a.axis.direction,l=r==="vertical"&&(n==="MOVE_UP"||n==="MOVE_DOWN")||r==="horizontal"&&(n==="MOVE_LEFT"||n==="MOVE_RIGHT");if(l&&!s)return null;const c=n==="MOVE_DOWN"||n==="MOVE_RIGHT",u=t.dimensions.draggables[t.critical.draggable.id],f=t.current.page.borderBoxCenter,{draggables:d,droppables:h}=t.dimensions;return l?PX({isMovingForward:c,previousPageBorderBoxCenter:f,draggable:u,destination:a,draggables:d,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):FX({isMovingForward:c,previousPageBorderBoxCenter:f,draggable:u,isOver:a,draggables:d,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function Eo(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function l8(e){const t=ti(e.top,e.bottom),n=ti(e.left,e.right);return function(s){return t(s.y)&&n(s.x)}}function NX(e,t){return e.leftt.left&&e.topt.top}function zX(e){let{pageBorderBox:t,draggable:n,candidates:i}=e;const s=n.page.borderBox.center,o=i.map(a=>{const r=a.axis,l=Ho(a.axis.line,t.center[r.line],a.page.borderBox.center[r.crossAxisLine]);return{id:a.descriptor.id,distance:nc(s,l)}}).sort((a,r)=>r.distance-a.distance);return o[0]?o[0].id:null}function BX(e){let{pageBorderBox:t,draggable:n,droppables:i}=e;const s=Ph(i).filter(o=>{if(!o.isEnabled)return!1;const a=o.subject.active;if(!a||!NX(t,a))return!1;if(l8(a)(t.center))return!0;const r=o.axis,l=a.center[r.crossAxisLine],c=t[r.crossAxisStart],u=t[r.crossAxisEnd],f=ti(a[r.crossAxisStart],a[r.crossAxisEnd]),d=f(c),h=f(u);return!d&&!h?!0:d?cl});return s.length?s.length===1?s[0].descriptor.id:zX({pageBorderBox:t,draggable:n,candidates:s}):null}const s8=(e,t)=>di(Lc(e,t));var qX=(e,t)=>{const n=e.frame;return n?s8(t,n.scroll.diff.value):t};function u8(e){let{displaced:t,id:n}=e;return!!(t.visible[n]||t.invisible[n])}function UX(e){let{draggable:t,closest:n,inHomeList:i}=e;return n?i&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var WX=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:n,destination:i,insideDestination:s,last:o,viewport:a,afterCritical:r}=e;const l=i.axis,c=Ic(i.axis,n.displaceBy),u=c.value,f=t[l.start],d=t[l.end],p=Dh(n,s).find(y=>{const v=y.descriptor.id,m=y.page.borderBox.center[l.line],b=mo(v,r),w=u8({displaced:o,id:v});return b?w?d<=m:f{let{draggable:t,pageBorderBoxWithDroppableScroll:n,previousImpact:i,destination:s,insideDestination:o,afterCritical:a}=e;if(!s.isCombineEnabled)return null;const r=s.axis,l=Ic(s.axis,t.displaceBy),c=l.value,u=n[r.start],f=n[r.end],h=Dh(t,o).find(g=>{const y=g.descriptor.id,v=g.page.borderBox,b=v[r.size]/HX,w=mo(y,a),_=u8({displaced:i.displaced,id:y});return w?_?f>v[r.start]+b&&fv[r.start]-c+b&&uv[r.start]+c+b&&fv[r.start]+b&&u{let{pageOffset:t,draggable:n,draggables:i,droppables:s,previousImpact:o,viewport:a,afterCritical:r}=e;const l=s8(n.page.borderBox,t),c=BX({pageBorderBox:l,draggable:n,droppables:s});if(!c)return oX;const u=s[c],f=us(u.descriptor.id,i),d=qX(u,l);return VX({pageBorderBoxWithDroppableScroll:d,draggable:n,previousImpact:o,destination:u,insideDestination:f,afterCritical:r})||WX({pageBorderBoxWithDroppableScroll:d,draggable:n,destination:u,insideDestination:f,last:o.displaced,viewport:a,afterCritical:r})},vb=(e,t)=>({...e,[t.descriptor.id]:t});const YX=e=>{let{previousImpact:t,impact:n,droppables:i}=e;const s=Wa(t),o=Wa(n);if(!s||s===o)return i;const a=i[s];if(!a.subject.withPlaceholder)return i;const r=LX(a);return vb(i,r)};var GX=e=>{let{draggable:t,draggables:n,droppables:i,previousImpact:s,impact:o}=e;const a=YX({previousImpact:s,impact:o,droppables:i}),r=Wa(o);if(!r)return a;const l=i[r];if(cs(t,l)||l.subject.withPlaceholder)return a;const c=o8(l,t,n);return vb(a,c)},Gu=e=>{let{state:t,clientSelection:n,dimensions:i,viewport:s,impact:o,scrollJumpRequest:a}=e;const r=s||t.viewport,l=i||t.dimensions,c=n||t.current.client.selection,u=Ba(c,t.initial.client.selection),f={offset:u,selection:c,borderBoxCenter:ma(t.initial.client.borderBoxCenter,u)},d={selection:ma(f.selection,r.scroll.current),borderBoxCenter:ma(f.borderBoxCenter,r.scroll.current),offset:ma(f.offset,r.scroll.diff.value)},h={client:f,page:d};if(t.phase==="COLLECTING")return{...t,dimensions:l,viewport:r,current:h};const p=l.draggables[t.critical.draggable.id],g=o||c8({pageOffset:d.offset,draggable:p,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:r,afterCritical:t.afterCritical}),y=GX({draggable:p,impact:g,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return{...t,current:h,dimensions:{draggables:l.draggables,droppables:y},impact:g,viewport:r,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null}};function XX(e,t){return e.map(n=>t[n])}var f8=e=>{let{impact:t,viewport:n,draggables:i,destination:s,forceShouldAnimate:o}=e;const a=t.displaced,r=XX(a.all,i),l=ac({afterDragging:r,destination:s,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:o,last:a});return{...t,displaced:l}},d8=e=>{let{impact:t,draggable:n,droppable:i,draggables:s,viewport:o,afterCritical:a}=e;const r=Eh({impact:t,draggable:n,draggables:s,droppable:i,afterCritical:a});return mb({pageBorderBoxCenter:r,draggable:n,viewport:o})},h8=e=>{let{state:t,dimensions:n,viewport:i}=e;t.movementMode!=="SNAP"&&cn();const s=t.impact,o=i||t.viewport,a=n||t.dimensions,{draggables:r,droppables:l}=a,c=r[t.critical.draggable.id],u=Wa(s);u||cn();const f=l[u],d=f8({impact:s,viewport:o,destination:f,draggables:r}),h=d8({impact:d,draggable:c,droppable:f,draggables:r,viewport:o,afterCritical:t.afterCritical});return Gu({impact:d,clientSelection:h,state:t,dimensions:a,viewport:o})},ZX=e=>({index:e.index,droppableId:e.droppableId}),p8=e=>{let{draggable:t,home:n,draggables:i,viewport:s}=e;const o=Ic(n.axis,t.displaceBy),a=us(n.descriptor.id,i),r=a.indexOf(t);r===-1&&cn();const l=a.slice(r+1),c=l.reduce((h,p)=>(h[p.descriptor.id]=!0,h),{}),u={inVirtualList:n.descriptor.mode==="virtual",displacedBy:o,effected:c};return{impact:{displaced:ac({afterDragging:l,destination:n,displacedBy:o,last:null,viewport:s.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:ZX(t.descriptor)}},afterCritical:u}},KX=(e,t)=>({draggables:e.draggables,droppables:vb(e.droppables,t)}),JX=e=>{let{draggable:t,offset:n,initialWindowScroll:i}=e;const s=gd(t.client,n),o=md(s,i);return{...t,placeholder:{...t.placeholder,client:s},client:s,page:o}},QX=e=>{const t=e.frame;return t||cn(),t},eZ=e=>{let{additions:t,updatedDroppables:n,viewport:i}=e;const s=i.scroll.diff.value;return t.map(o=>{const a=o.descriptor.droppableId,r=n[a],c=QX(r).scroll.diff.value,u=ma(s,c);return JX({draggable:o,offset:u,initialWindowScroll:i.scroll.initial})})},tZ=e=>{let{state:t,published:n}=e;const i=n.modified.map(m=>{const b=t.dimensions.droppables[m.droppableId];return fb(b,m.scroll)}),s={...t.dimensions.droppables,...Z6(i)},o=K6(eZ({additions:n.additions,updatedDroppables:s,viewport:t.viewport})),a={...t.dimensions.draggables,...o};n.removals.forEach(m=>{delete a[m]});const r={droppables:s,draggables:a},l=Wa(t.impact),c=l?r.droppables[l]:null,u=r.draggables[t.critical.draggable.id],f=r.droppables[t.critical.droppable.id],{impact:d,afterCritical:h}=p8({draggable:u,home:f,draggables:a,viewport:t.viewport}),p=c&&c.isCombineEnabled?t.impact:d,g=c8({pageOffset:t.current.page.offset,draggable:r.draggables[t.critical.draggable.id],draggables:r.draggables,droppables:r.droppables,previousImpact:p,viewport:t.viewport,afterCritical:h}),y={...t,phase:"DRAGGING",impact:g,onLiftImpact:d,dimensions:r,afterCritical:h,forceShouldAnimate:!1};return t.phase==="COLLECTING"?y:{...y,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const Rv=e=>e.movementMode==="SNAP",i0=(e,t,n)=>{const i=KX(e.dimensions,t);return!Rv(e)||n?Gu({state:e,dimensions:i}):h8({state:e,dimensions:i})};function o0(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const wT={phase:"IDLE",completed:null,shouldFlush:!1};var nZ=function(e,t){if(e===void 0&&(e=wT),t.type==="FLUSH")return{...wT,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&cn();const{critical:n,clientSelection:i,viewport:s,dimensions:o,movementMode:a}=t.payload,r=o.draggables[n.draggable.id],l=o.droppables[n.droppable.id],c={selection:i,borderBoxCenter:r.client.borderBox.center,offset:oa},u={client:c,page:{selection:ma(c.selection,s.scroll.initial),borderBoxCenter:ma(c.selection,s.scroll.initial),offset:ma(c.selection,s.scroll.diff.value)}},f=Ph(o.droppables).every(g=>!g.isFixedOnPage),{impact:d,afterCritical:h}=p8({draggable:r,home:l,draggables:o.draggables,viewport:s});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:a,dimensions:o,initial:u,current:u,isWindowScrollAllowed:f,impact:d,afterCritical:h,onLiftImpact:d,viewport:s,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&cn(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||cn(),tZ({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Eo(e)||cn();const{client:n}=t.payload;return co(n,e.current.client.selection)?e:Gu({state:e,clientSelection:n,impact:Rv(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return o0(e);Eo(e)||cn();const{id:n,newScroll:i}=t.payload,s=e.dimensions.droppables[n];if(!s)return e;const o=fb(s,i);return i0(e,o,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Eo(e)||cn();const{id:n,isEnabled:i}=t.payload,s=e.dimensions.droppables[n];s||cn(),s.isEnabled===i&&cn();const o={...s,isEnabled:i};return i0(e,o,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Eo(e)||cn();const{id:n,isCombineEnabled:i}=t.payload,s=e.dimensions.droppables[n];s||cn(),s.isCombineEnabled===i&&cn();const o={...s,isCombineEnabled:i};return i0(e,o,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Eo(e)||cn(),e.isWindowScrollAllowed||cn();const n=t.payload.newScroll;if(co(e.viewport.scroll.current,n))return o0(e);const i=r8(e.viewport,n);return Rv(e)?h8({state:e,viewport:i}):Gu({state:e,viewport:i})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Eo(e))return e;const n=t.payload.maxScroll;if(co(n,e.viewport.scroll.max))return e;const i={...e.viewport,scroll:{...e.viewport.scroll,max:n}};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"&&cn();const n=jX({state:e,type:t.type});return n?Gu({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"&&cn(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if(t.type==="DROP_ANIMATE"){const{completed:n,dropDuration:i,newHomeClientOffset:s}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||cn(),{phase:"DROP_ANIMATING",completed:n,dropDuration:i,newHomeClientOffset:s,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:n}=t.payload;return{phase:"IDLE",completed:n,shouldFlush:!1}}return e};const rZ=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),aZ=e=>({type:"LIFT",payload:e}),iZ=e=>({type:"INITIAL_PUBLISH",payload:e}),oZ=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),lZ=()=>({type:"COLLECTION_STARTING",payload:null}),sZ=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),uZ=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),cZ=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),g8=e=>({type:"MOVE",payload:e}),fZ=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),dZ=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),hZ=()=>({type:"MOVE_UP",payload:null}),pZ=()=>({type:"MOVE_DOWN",payload:null}),gZ=()=>({type:"MOVE_RIGHT",payload:null}),mZ=()=>({type:"MOVE_LEFT",payload:null}),yb=()=>({type:"FLUSH",payload:null}),vZ=e=>({type:"DROP_ANIMATE",payload:e}),bb=e=>({type:"DROP_COMPLETE",payload:e}),m8=e=>({type:"DROP",payload:e}),yZ=e=>({type:"DROP_PENDING",payload:e}),v8=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var bZ=e=>t=>{let{getState:n,dispatch:i}=t;return s=>o=>{if(o.type!=="LIFT"){s(o);return}const{id:a,clientSelection:r,movementMode:l}=o.payload,c=n();c.phase==="DROP_ANIMATING"&&i(bb({completed:c.completed})),n().phase!=="IDLE"&&cn(),i(yb()),i(rZ({draggableId:a,movementMode:l}));const f={draggableId:a,scrollOptions:{shouldPublishImmediately:l==="SNAP"}},{critical:d,dimensions:h,viewport:p}=e.startPublishing(f);i(iZ({critical:d,dimensions:h,clientSelection:r,movementMode:l,viewport:p}))}},xZ=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 xb={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},ic={opacity:{drop:0,combining:.7},scale:{drop:.75}},y8={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Oo=`${y8.outOfTheWay}s ${xb.outOfTheWay}`,Xu={fluid:`opacity ${Oo}`,snap:`transform ${Oo}, opacity ${Oo}`,drop:e=>{const t=`${e}s ${xb.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${Oo}`,placeholder:`height ${Oo}, width ${Oo}, margin ${Oo}`},_T=e=>co(e,oa)?void 0:`translate(${e.x}px, ${e.y}px)`,Lv={moveTo:_T,drop:(e,t)=>{const n=_T(e);if(n)return t?`${n} scale(${ic.scale.drop})`:n}},{minDropTime:Iv,maxDropTime:b8}=y8,wZ=b8-Iv,TT=1500,_Z=.6;var TZ=e=>{let{current:t,destination:n,reason:i}=e;const s=nc(t,n);if(s<=0)return Iv;if(s>=TT)return b8;const o=s/TT,a=Iv+wZ*o,r=i==="CANCEL"?a*_Z:a;return Number(r.toFixed(2))},kZ=e=>{let{impact:t,draggable:n,dimensions:i,viewport:s,afterCritical:o}=e;const{draggables:a,droppables:r}=i,l=Wa(t),c=l?r[l]:null,u=r[n.descriptor.droppableId],f=d8({impact:t,draggable:n,draggables:a,afterCritical:o,droppable:c||u,viewport:s});return Ba(f,n.client.borderBox.center)},MZ=e=>{let{draggables:t,reason:n,lastImpact:i,home:s,viewport:o,onLiftImpact:a}=e;return!i.at||n!=="DROP"?{impact:f8({draggables:t,impact:a,destination:s,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:i.at.type==="REORDER"?{impact:i,didDropInsideDroppable:!0}:{impact:{...i,displaced:rc},didDropInsideDroppable:!0}};const SZ=e=>{let{getState:t,dispatch:n}=e;return i=>s=>{if(s.type!=="DROP"){i(s);return}const o=t(),a=s.payload.reason;if(o.phase==="COLLECTING"){n(yZ({reason:a}));return}if(o.phase==="IDLE")return;o.phase==="DROP_PENDING"&&o.isWaiting&&cn(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||cn();const l=o.critical,c=o.dimensions,u=c.draggables[o.critical.draggable.id],{impact:f,didDropInsideDroppable:d}=MZ({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?db(f):null,p=d?Ah(f):null,g={index:l.draggable.index,droppableId:l.droppable.id},y={draggableId:u.descriptor.id,type:u.descriptor.type,source:g,reason:a,mode:o.movementMode,destination:h,combine:p},v=kZ({impact:f,draggable:u,dimensions:c,viewport:o.viewport,afterCritical:o.afterCritical}),m={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:f};if(!(!co(o.current.client.offset,v)||!!y.combine)){n(bb({completed:m}));return}const w=TZ({current:o.current.client.offset,destination:v,reason:a});n(vZ({newHomeClientOffset:v,dropDuration:w,completed:m}))}};var CZ=SZ,x8=()=>({x:window.pageXOffset,y:window.pageYOffset});function OZ(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function PZ(e){let{onWindowScroll:t}=e;function n(){t(x8())}const i=tc(n),s=OZ(i);let o=uo;function a(){return o!==uo}function r(){a()&&cn(),o=Qa(window,[s])}function l(){a()||cn(),i.cancel(),o(),o=uo}return{start:r,stop:l,isActive:a}}const AZ=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",DZ=e=>{const t=PZ({onWindowScroll:n=>{e.dispatch(fZ({newScroll:n}))}});return n=>i=>{!t.isActive()&&i.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&AZ(i)&&t.stop(),n(i)}};var EZ=DZ,RZ=e=>{let t=!1,n=!1;const i=setTimeout(()=>{n=!0}),s=o=>{t||n||(t=!0,e(o),clearTimeout(i))};return s.wasCalled=()=>t,s},LZ=()=>{const e=[],t=s=>{const o=e.findIndex(r=>r.timerId===s);o===-1&&cn();const[a]=e.splice(o,1);a.callback()};return{add:s=>{const o=setTimeout(()=>t(o)),a={timerId:o,callback:s};e.push(a)},flush:()=>{if(!e.length)return;const s=[...e];e.length=0,s.forEach(o=>{clearTimeout(o.timerId),o.callback()})}}};const IZ=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,FZ=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,$Z=(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,i=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&i},ru=(e,t)=>{t()},_f=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function l0(e,t,n,i){if(!e){n(i(t));return}const s=RZ(n);e(t,{announce:s}),s.wasCalled()||n(i(t))}var jZ=(e,t)=>{const n=LZ();let i=null;const s=(f,d)=>{i&&cn(),ru("onBeforeCapture",()=>{const h=e().onBeforeCapture;h&&h({draggableId:f,mode:d})})},o=(f,d)=>{i&&cn(),ru("onBeforeDragStart",()=>{const h=e().onBeforeDragStart;h&&h(_f(f,d))})},a=(f,d)=>{i&&cn();const h=_f(f,d);i={mode:d,lastCritical:f,lastLocation:h.source,lastCombine:null},n.add(()=>{ru("onDragStart",()=>l0(e().onDragStart,h,t,Wf.onDragStart))})},r=(f,d)=>{const h=db(d),p=Ah(d);i||cn();const g=!$Z(f,i.lastCritical);g&&(i.lastCritical=f);const y=!IZ(i.lastLocation,h);y&&(i.lastLocation=h);const v=!FZ(i.lastCombine,p);if(v&&(i.lastCombine=p),!g&&!y&&!v)return;const m={..._f(f,i.mode),combine:p,destination:h};n.add(()=>{ru("onDragUpdate",()=>l0(e().onDragUpdate,m,t,Wf.onDragUpdate))})},l=()=>{i||cn(),n.flush()},c=f=>{i||cn(),i=null,ru("onDragEnd",()=>l0(e().onDragEnd,f,t,Wf.onDragEnd))};return{beforeCapture:s,beforeStart:o,start:a,update:r,flush:l,drop:c,abort:()=>{if(!i)return;const f={..._f(i.lastCritical,i.mode),combine:null,destination:null,reason:"CANCEL"};c(f)}}},NZ=(e,t)=>{const n=jZ(e,t);return i=>s=>o=>{if(o.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){const r=o.payload.critical;n.beforeStart(r,o.payload.movementMode),s(o),n.start(r,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){const r=o.payload.completed.result;n.flush(),s(o),n.drop(r);return}if(s(o),o.type==="FLUSH"){n.abort();return}const a=i.getState();a.phase==="DRAGGING"&&n.update(a.critical,a.impact)}};const zZ=e=>t=>n=>{if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}const i=e.getState();i.phase!=="DROP_ANIMATING"&&cn(),e.dispatch(bb({completed:i.completed}))};var BZ=zZ;const qZ=e=>{let t=null,n=null;function i(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return s=>o=>{if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&i(),s(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(v8())}};n=requestAnimationFrame(()=>{n=null,t=Qa(window,[a])})}};var UZ=qZ,WZ=e=>()=>t=>n=>{(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)},HZ=e=>{let t=!1;return()=>n=>i=>{if(i.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(i.payload.critical.draggable.id),n(i),e.tryRestoreFocusRecorded();return}if(n(i),!!t){if(i.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(i.type==="DROP_COMPLETE"){t=!1;const s=i.payload.completed.result;s.combine&&e.tryShiftRecord(s.draggableId,s.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const VZ=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var YZ=e=>t=>n=>i=>{if(VZ(i)){e.stop(),n(i);return}if(i.type==="INITIAL_PUBLISH"){n(i);const s=t.getState();s.phase!=="DRAGGING"&&cn(),e.start(s);return}n(i),e.scroll(t.getState())};const GZ=e=>t=>n=>{if(t(n),n.type!=="PUBLISH_WHILE_DRAGGING")return;const i=e.getState();i.phase==="DROP_PENDING"&&(i.isWaiting||e.dispatch(m8({reason:i.reason})))};var XZ=GZ;const ZZ=F6;var KZ=e=>{let{dimensionMarshal:t,focusMarshal:n,styleMarshal:i,getResponders:s,announce:o,autoScroller:a}=e;return I6(nZ,ZZ(fG(xZ(i),WZ(t),bZ(t),CZ,BZ,UZ,XZ,YZ(a),EZ,HZ(n),NZ(s,o))))};const s0=()=>({additions:{},removals:{},modified:{}});function JZ(e){let{registry:t,callbacks:n}=e,i=s0(),s=null;const o=()=>{s||(n.collectionStarting(),s=requestAnimationFrame(()=>{s=null;const{additions:c,removals:u,modified:f}=i,d=Object.keys(c).map(g=>t.draggable.getById(g).getDimension(oa)).sort((g,y)=>g.descriptor.index-y.descriptor.index),h=Object.keys(f).map(g=>{const v=t.droppable.getById(g).callbacks.getScrollWhileDragging();return{droppableId:g,scroll:v}}),p={additions:d,removals:Object.keys(u),modified:h};i=s0(),n.publish(p)}))};return{add:c=>{const u=c.descriptor.id;i.additions[u]=c,i.modified[c.descriptor.droppableId]=!0,i.removals[u]&&delete i.removals[u],o()},remove:c=>{const u=c.descriptor;i.removals[u.id]=!0,i.modified[u.droppableId]=!0,i.additions[u.id]&&delete i.additions[u.id],o()},stop:()=>{s&&(cancelAnimationFrame(s),s=null,i=s0())}}}var w8=e=>{let{scrollHeight:t,scrollWidth:n,height:i,width:s}=e;const o=Ba({x:n,y:t},{x:s,y:i});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},_8=()=>{const e=document.documentElement;return e||cn(),e},T8=()=>{const e=_8();return w8({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},QZ=()=>{const e=x8(),t=T8(),n=e.y,i=e.x,s=_8(),o=s.clientWidth,a=s.clientHeight,r=i+o,l=n+a;return{frame:di({top:n,left:i,right:r,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:oa,displacement:oa}}}},eK=e=>{let{critical:t,scrollOptions:n,registry:i}=e;const s=QZ(),o=s.scroll.current,a=t.droppable,r=i.droppable.getAllByType(a.type).map(f=>f.callbacks.getDimensionAndWatchScroll(o,n)),l=i.draggable.getAllByType(t.draggable.type).map(f=>f.getDimension(o));return{dimensions:{draggables:K6(l),droppables:Z6(r)},critical:t,viewport:s}};function kT(e,t,n){return!(n.descriptor.id===t.id||n.descriptor.type!==t.type||e.droppable.getById(n.descriptor.droppableId).descriptor.mode!=="virtual")}var tK=(e,t)=>{let n=null;const i=JZ({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),s=(d,h)=>{e.droppable.exists(d)||cn(),n&&t.updateDroppableIsEnabled({id:d,isEnabled:h})},o=(d,h)=>{n&&(e.droppable.exists(d)||cn(),t.updateDroppableIsCombineEnabled({id:d,isCombineEnabled:h}))},a=(d,h)=>{n&&(e.droppable.exists(d)||cn(),t.updateDroppableScroll({id:d,newScroll:h}))},r=(d,h)=>{n&&e.droppable.getById(d).callbacks.scroll(h)},l=()=>{if(!n)return;i.stop();const d=n.critical.droppable;e.droppable.getAllByType(d.type).forEach(h=>h.callbacks.dragStopped()),n.unsubscribe(),n=null},c=d=>{n||cn();const h=n.critical.draggable;d.type==="ADDITION"&&kT(e,h,d.value)&&i.add(d.value),d.type==="REMOVAL"&&kT(e,h,d.value)&&i.remove(d.value)};return{updateDroppableIsEnabled:s,updateDroppableIsCombineEnabled:o,scrollDroppable:r,updateDroppableScroll:a,startPublishing:d=>{n&&cn();const h=e.draggable.getById(d.draggableId),p=e.droppable.getById(h.descriptor.droppableId),g={draggable:h.descriptor,droppable:p.descriptor},y=e.subscribe(c);return n={critical:g,unsubscribe:y},eK({critical:g,registry:e,scrollOptions:d.scrollOptions})},stopPublishing:l}},k8=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",nK=e=>{window.scrollBy(e.x,e.y)};const rK=ia(e=>Ph(e).filter(t=>!(!t.isEnabled||!t.frame))),aK=(e,t)=>rK(t).find(i=>(i.frame||cn(),l8(i.frame.pageMarginBox)(e)))||null;var iK=e=>{let{center:t,destination:n,droppables:i}=e;if(n){const o=i[n];return o.frame?o:null}return aK(t,i)};const oc={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var oK=function(e,t,n){n===void 0&&(n=()=>oc);const i=n(),s=e[t.size]*i.startFromPercentage,o=e[t.size]*i.maxScrollAtPercentage;return{startScrollingFrom:s,maxScrollValueAt:o}},M8=e=>{let{startOfRange:t,endOfRange:n,current:i}=e;const s=n-t;return s===0?0:(i-t)/s},wb=1,lK=function(e,t,n){n===void 0&&(n=()=>oc);const i=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return i.maxPixelScroll;if(e===t.startScrollingFrom)return wb;const o=1-M8({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=i.maxPixelScroll*i.ease(o);return Math.ceil(a)},sK=(e,t,n)=>{const i=n(),s=i.durationDampening.accelerateAt,o=i.durationDampening.stopDampeningAt,a=t,r=o,c=Date.now()-a;if(c>=o)return e;if(c{let{distanceToEdge:t,thresholds:n,dragStartTime:i,shouldUseTimeDampening:s,getAutoScrollerOptions:o}=e;const a=lK(t,n,o);return a===0?0:s?Math.max(sK(a,i,o),wb):a},ST=e=>{let{container:t,distanceToEdges:n,dragStartTime:i,axis:s,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const r=oK(t,s,a);return n[s.end]{let{container:t,subject:n,proposedScroll:i}=e;const s=n.height>t.height,o=n.width>t.width;return!o&&!s?i:o&&s?null:{x:o?0:i.x,y:s?0:i.y}};const cK=X6(e=>e===0?0:e);var S8=e=>{let{dragStartTime:t,container:n,subject:i,center:s,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const r={top:s.y-n.top,right:n.right-s.x,bottom:n.bottom-s.y,left:s.x-n.left},l=ST({container:n,distanceToEdges:r,dragStartTime:t,axis:hb,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),c=ST({container:n,distanceToEdges:r,dragStartTime:t,axis:e8,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),u=cK({x:c,y:l});if(co(u,oa))return null;const f=uK({container:n,subject:i,proposedScroll:u});return f?co(f,oa)?null:f:null};const fK=X6(e=>e===0?0:e>0?1:-1),_b=(()=>{const e=(t,n)=>t<0?t:t>n?t-n:0;return t=>{let{current:n,max:i,change:s}=t;const o=ma(n,s),a={x:e(o.x,i.x),y:e(o.y,i.y)};return co(a,oa)?null:a}})(),C8=e=>{let{max:t,current:n,change:i}=e;const s={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},o=fK(i),a=_b({max:s,current:n,change:o});return!a||o.x!==0&&a.x===0||o.y!==0&&a.y===0},Tb=(e,t)=>C8({current:e.scroll.current,max:e.scroll.max,change:t}),dK=(e,t)=>{if(!Tb(e,t))return null;const n=e.scroll.max,i=e.scroll.current;return _b({current:i,max:n,change:t})},kb=(e,t)=>{const n=e.frame;return n?C8({current:n.scroll.current,max:n.scroll.max,change:t}):!1},hK=(e,t)=>{const n=e.frame;return!n||!kb(e,t)?null:_b({current:n.scroll.current,max:n.scroll.max,change:t})};var pK=e=>{let{viewport:t,subject:n,center:i,dragStartTime:s,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const r=S8({dragStartTime:s,container:t.frame,subject:n,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return r&&Tb(t,r)?r:null},gK=e=>{let{droppable:t,subject:n,center:i,dragStartTime:s,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const r=t.frame;if(!r)return null;const l=S8({dragStartTime:s,container:r.pageMarginBox,subject:n,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return l&&kb(t,l)?l:null},CT=e=>{let{state:t,dragStartTime:n,shouldUseTimeDampening:i,scrollWindow:s,scrollDroppable:o,getAutoScrollerOptions:a}=e;const r=t.current.page.borderBoxCenter,c=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const d=t.viewport,h=pK({dragStartTime:n,viewport:d,subject:c,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a});if(h){s(h);return}}const u=iK({center:r,destination:Wa(t.impact),droppables:t.dimensions.droppables});if(!u)return;const f=gK({dragStartTime:n,droppable:u,subject:c,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a});f&&o(u.descriptor.id,f)},mK=e=>{let{scrollWindow:t,scrollDroppable:n,getAutoScrollerOptions:i=()=>oc}=e;const s=tc(t),o=tc(n);let a=null;const r=u=>{a||cn();const{shouldUseTimeDampening:f,dragStartTime:d}=a;CT({state:u,scrollWindow:s,scrollDroppable:o,dragStartTime:d,shouldUseTimeDampening:f,getAutoScrollerOptions:i})};return{start:u=>{a&&cn();const f=Date.now();let d=!1;const h=()=>{d=!0};CT({state:u,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:h,scrollDroppable:h,getAutoScrollerOptions:i}),a={dragStartTime:f,shouldUseTimeDampening:d},d&&r(u)},stop:()=>{a&&(s.cancel(),o.cancel(),a=null)},scroll:r}},vK=e=>{let{move:t,scrollDroppable:n,scrollWindow:i}=e;const s=(l,c)=>{const u=ma(l.current.client.selection,c);t({client:u})},o=(l,c)=>{if(!kb(l,c))return c;const u=hK(l,c);if(!u)return n(l.descriptor.id,c),null;const f=Ba(c,u);return n(l.descriptor.id,f),Ba(c,f)},a=(l,c,u)=>{if(!l||!Tb(c,u))return u;const f=dK(c,u);if(!f)return i(u),null;const d=Ba(u,f);return i(d),Ba(u,d)};return l=>{const c=l.scrollJumpRequest;if(!c)return;const u=Wa(l.impact);u||cn();const f=o(l.dimensions.droppables[u],c);if(!f)return;const d=l.viewport,h=a(l.isWindowScrollAllowed,d,f);h&&s(l,h)}},yK=e=>{let{scrollDroppable:t,scrollWindow:n,move:i,getAutoScrollerOptions:s}=e;const o=mK({scrollWindow:n,scrollDroppable:t,getAutoScrollerOptions:s}),a=vK({move:i,scrollWindow:n,scrollDroppable:t});return{scroll:c=>{if(!(s().disabled||c.phase!=="DRAGGING")){if(c.movementMode==="FLUID"){o.scroll(c);return}c.scrollJumpRequest&&a(c)}},start:o.start,stop:o.stop}};const Yl="data-rfd",Gl=(()=>{const e=`${Yl}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),Fv=(()=>{const e=`${Yl}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),bK=(()=>{const e=`${Yl}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),OT={contextId:`${Yl}-scroll-container-context-id`},xK=e=>t=>`[${t}="${e}"]`,au=(e,t)=>e.map(n=>{const i=n.styles[t];return i?`${n.selector} { ${i} }`:""}).join(" "),wK="pointer-events: none;";var _K=e=>{const t=xK(e),n=(()=>{const r=` + cursor: -webkit-grab; + cursor: grab; + `;return{selector:t(Gl.contextId),styles:{always:` + -webkit-touch-callout: none; + -webkit-tap-highlight-color: rgba(0,0,0,0); + touch-action: manipulation; + `,resting:r,dragging:wK,dropAnimating:r}}})(),i=(()=>{const r=` + transition: ${Xu.outOfTheWay}; + `;return{selector:t(Fv.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}})(),s={selector:t(bK.contextId),styles:{always:"overflow-anchor: none;"}},a=[i,n,s,{selector:"body",styles:{dragging:` + cursor: grabbing; + cursor: -webkit-grabbing; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + overflow-anchor: none; + `}}];return{always:au(a,"always"),resting:au(a,"resting"),dragging:au(a,"dragging"),dropAnimating:au(a,"dropAnimating"),userCancel:au(a,"userCancel")}};const TK=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?je.useLayoutEffect:je.useEffect;var Ha=TK;const u0=()=>{const e=document.querySelector("head");return e||cn(),e},PT=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function kK(e,t){const n=Jn(()=>_K(e),[e]),i=je.useRef(null),s=je.useRef(null),o=Sn(ia(f=>{const d=s.current;d||cn(),d.textContent=f}),[]),a=Sn(f=>{const d=i.current;d||cn(),d.textContent=f},[]);Ha(()=>{!i.current&&!s.current||cn();const f=PT(t),d=PT(t);return i.current=f,s.current=d,f.setAttribute(`${Yl}-always`,e),d.setAttribute(`${Yl}-dynamic`,e),u0().appendChild(f),u0().appendChild(d),a(n.always),o(n.resting),()=>{const h=p=>{const g=p.current;g||cn(),u0().removeChild(g),p.current=null};h(i),h(s)}},[t,a,o,n.always,n.resting,e]);const r=Sn(()=>o(n.dragging),[o,n.dragging]),l=Sn(f=>{if(f==="DROP"){o(n.dropAnimating);return}o(n.userCancel)},[o,n.dropAnimating,n.userCancel]),c=Sn(()=>{s.current&&o(n.resting)},[o,n.resting]);return Jn(()=>({dragging:r,dropping:l,resting:c}),[r,l,c])}function O8(e,t){return Array.from(e.querySelectorAll(t))}var P8=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function Rh(e){return e instanceof P8(e).HTMLElement}function MK(e,t){const n=`[${Gl.contextId}="${e}"]`,i=O8(document,n);if(!i.length)return null;const s=i.find(o=>o.getAttribute(Gl.draggableId)===t);return!s||!Rh(s)?null:s}function SK(e){const t=je.useRef({}),n=je.useRef(null),i=je.useRef(null),s=je.useRef(!1),o=Sn(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=Sn(function(d){const h=MK(e,d);h&&h!==document.activeElement&&h.focus()},[e]),r=Sn(function(d,h){n.current===d&&(n.current=h)},[]),l=Sn(function(){i.current||s.current&&(i.current=requestAnimationFrame(()=>{i.current=null;const d=n.current;d&&a(d)}))},[a]),c=Sn(function(d){n.current=null;const h=document.activeElement;h&&h.getAttribute(Gl.draggableId)===d&&(n.current=d)},[]);return Ha(()=>(s.current=!0,function(){s.current=!1;const d=i.current;d&&cancelAnimationFrame(d)}),[]),Jn(()=>({register:o,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:r}),[o,c,l,r])}function CK(){const e={draggables:{},droppables:{}},t=[];function n(f){return t.push(f),function(){const h=t.indexOf(f);h!==-1&&t.splice(h,1)}}function i(f){t.length&&t.forEach(d=>d(f))}function s(f){return e.draggables[f]||null}function o(f){const d=s(f);return d||cn(),d}const a={register:f=>{e.draggables[f.descriptor.id]=f,i({type:"ADDITION",value:f})},update:(f,d)=>{const h=e.draggables[d.descriptor.id];h&&h.uniqueId===f.uniqueId&&(delete e.draggables[d.descriptor.id],e.draggables[f.descriptor.id]=f)},unregister:f=>{const d=f.descriptor.id,h=s(d);h&&f.uniqueId===h.uniqueId&&(delete e.draggables[d],e.droppables[f.descriptor.droppableId]&&i({type:"REMOVAL",value:f}))},getById:o,findById:s,exists:f=>!!s(f),getAllByType:f=>Object.values(e.draggables).filter(d=>d.descriptor.type===f)};function r(f){return e.droppables[f]||null}function l(f){const d=r(f);return d||cn(),d}const c={register:f=>{e.droppables[f.descriptor.id]=f},unregister:f=>{const d=r(f.descriptor.id);d&&f.uniqueId===d.uniqueId&&delete e.droppables[f.descriptor.id]},getById:l,findById:r,exists:f=>!!r(f),getAllByType:f=>Object.values(e.droppables).filter(d=>d.descriptor.type===f)};function u(){e.draggables={},e.droppables={},t.length=0}return{draggable:a,droppable:c,subscribe:n,clean:u}}function OK(){const e=Jn(CK,[]);return je.useEffect(()=>function(){et.version.startsWith("16")||et.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var Mb=et.createContext(null),xd=()=>{const e=document.body;return e||cn(),e};const PK={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 AK=PK;const DK=e=>`rfd-announcement-${e}`;function EK(e){const t=Jn(()=>DK(e),[e]),n=je.useRef(null);return je.useEffect(function(){const o=document.createElement("div");return n.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),Gt(o.style,AK),xd().appendChild(o),function(){setTimeout(function(){const l=xd();l.contains(o)&&l.removeChild(o),o===n.current&&(n.current=null)})}},[t]),Sn(s=>{const o=n.current;if(o){o.textContent=s;return}},[])}let A8=0;const D8={separator:"::"};function RK(){A8=0}function LK(e,t){return t===void 0&&(t=D8),Jn(()=>`${e}${t.separator}${A8++}`,[t.separator,e])}function IK(e,t){t===void 0&&(t=D8);const n=et.useId();return Jn(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}var Sb="useId"in et?IK:LK;function FK(e){let{contextId:t,uniqueId:n}=e;return`rfd-hidden-text-${t}-${n}`}function $K(e){let{contextId:t,text:n}=e;const i=Sb("hidden-text",{separator:"-"}),s=Jn(()=>FK({contextId:t,uniqueId:i}),[i,t]);return je.useEffect(function(){const a=document.createElement("div");return a.id=s,a.textContent=n,a.style.display="none",xd().appendChild(a),function(){const l=xd();l.contains(a)&&l.removeChild(a)}},[s,n]),s}var Lh=et.createContext(null);function E8(e){const t=je.useRef(e);return je.useEffect(()=>{t.current=e}),t}function jK(){let e=null;function t(){return!!e}function n(a){return a===e}function i(a){e&&cn();const r={abandon:a};return e=r,r}function s(){e||cn(),e=null}function o(){e&&(e.abandon(),s())}return{isClaimed:t,isActive:n,claim:i,release:s,tryAbandon:o}}function lc(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const NK=9,zK=13,Cb=27,R8=32,BK=33,qK=34,UK=35,WK=36,HK=37,VK=38,YK=39,GK=40,XK={[zK]:!0,[NK]:!0};var L8=e=>{XK[e.keyCode]&&e.preventDefault()};const ZK=(()=>{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 Ih=ZK;const I8=0,AT=5;function KK(e,t){return Math.abs(t.x-e.x)>=AT||Math.abs(t.y-e.y)>=AT}const DT={type:"IDLE"};function JK(e){let{cancel:t,completed:n,getPhase:i,setPhase:s}=e;return[{eventName:"mousemove",fn:o=>{const{button:a,clientX:r,clientY:l}=o;if(a!==I8)return;const c={x:r,y:l},u=i();if(u.type==="DRAGGING"){o.preventDefault(),u.actions.move(c);return}u.type!=="PENDING"&&cn();const f=u.point;if(!KK(f,c))return;o.preventDefault();const d=u.actions.fluidLift(c);s({type:"DRAGGING",actions:d})}},{eventName:"mouseup",fn:o=>{const a=i();if(a.type!=="DRAGGING"){t();return}o.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:o=>{i().type==="DRAGGING"&&o.preventDefault(),t()}},{eventName:"keydown",fn:o=>{if(i().type==="PENDING"){t();return}if(o.keyCode===Cb){o.preventDefault(),t();return}L8(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"&&cn(),a.actions.shouldRespectForcePress()){t();return}o.preventDefault()}},{eventName:Ih,fn:t}]}function F8(e){const t=je.useRef(DT),n=je.useRef(uo),i=Jn(()=>({eventName:"mousedown",fn:function(f){if(f.defaultPrevented||f.button!==I8||f.ctrlKey||f.metaKey||f.shiftKey||f.altKey)return;const d=e.findClosestDraggableId(f);if(!d)return;const h=e.tryGetLock(d,a,{sourceEvent:f});if(!h)return;f.preventDefault();const p={x:f.clientX,y:f.clientY};n.current(),c(h,p)}}),[e]),s=Jn(()=>({eventName:"webkitmouseforcewillbegin",fn:u=>{if(u.defaultPrevented)return;const f=e.findClosestDraggableId(u);if(!f)return;const d=e.findOptionsForDraggable(f);d&&(d.shouldRespectForcePress||e.canGetLock(f)&&u.preventDefault())}}),[e]),o=Sn(function(){const f={passive:!1,capture:!0};n.current=Qa(window,[s,i],f)},[s,i]),a=Sn(()=>{t.current.type!=="IDLE"&&(t.current=DT,n.current(),o())},[o]),r=Sn(()=>{const u=t.current;a(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[a]),l=Sn(function(){const f={capture:!0,passive:!1},d=JK({cancel:r,completed:a,getPhase:()=>t.current,setPhase:h=>{t.current=h}});n.current=Qa(window,d,f)},[r,a]),c=Sn(function(f,d){t.current.type!=="IDLE"&&cn(),t.current={type:"PENDING",point:d,actions:f},l()},[l]);Ha(function(){return o(),function(){n.current()}},[o])}function QK(){}const eJ={[qK]:!0,[BK]:!0,[WK]:!0,[UK]:!0};function tJ(e,t){function n(){t(),e.cancel()}function i(){t(),e.drop()}return[{eventName:"keydown",fn:s=>{if(s.keyCode===Cb){s.preventDefault(),n();return}if(s.keyCode===R8){s.preventDefault(),i();return}if(s.keyCode===GK){s.preventDefault(),e.moveDown();return}if(s.keyCode===VK){s.preventDefault(),e.moveUp();return}if(s.keyCode===YK){s.preventDefault(),e.moveRight();return}if(s.keyCode===HK){s.preventDefault(),e.moveLeft();return}if(eJ[s.keyCode]){s.preventDefault();return}L8(s)}},{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:Ih,fn:n}]}function $8(e){const t=je.useRef(QK),n=Jn(()=>({eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==R8)return;const a=e.findClosestDraggableId(o);if(!a)return;const r=e.tryGetLock(a,u,{sourceEvent:o});if(!r)return;o.preventDefault();let l=!0;const c=r.snapLift();t.current();function u(){l||cn(),l=!1,t.current(),i()}t.current=Qa(window,tJ(c,u),{capture:!0,passive:!1})}}),[e]),i=Sn(function(){const o={passive:!1,capture:!0};t.current=Qa(window,[n],o)},[n]);Ha(function(){return i(),function(){t.current()}},[i])}const c0={type:"IDLE"},nJ=120,rJ=.15;function aJ(e){let{cancel:t,getPhase:n}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:i=>{i.preventDefault()}},{eventName:"keydown",fn:i=>{if(n().type!=="DRAGGING"){t();return}i.keyCode===Cb&&i.preventDefault(),t()}},{eventName:Ih,fn:t}]}function iJ(e){let{cancel:t,completed:n,getPhase:i}=e;return[{eventName:"touchmove",options:{capture:!1},fn:s=>{const o=i();if(o.type!=="DRAGGING"){t();return}o.hasMoved=!0;const{clientX:a,clientY:r}=s.touches[0],l={x:a,y:r};s.preventDefault(),o.actions.move(l)}},{eventName:"touchend",fn:s=>{const o=i();if(o.type!=="DRAGGING"){t();return}s.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:s=>{if(i().type!=="DRAGGING"){t();return}s.preventDefault(),t()}},{eventName:"touchforcechange",fn:s=>{const o=i();o.type==="IDLE"&&cn();const a=s.touches[0];if(!a||!(a.force>=rJ))return;const l=o.actions.shouldRespectForcePress();if(o.type==="PENDING"){l&&t();return}if(l){if(o.hasMoved){s.preventDefault();return}t();return}s.preventDefault()}},{eventName:Ih,fn:t}]}function j8(e){const t=je.useRef(c0),n=je.useRef(uo),i=Sn(function(){return t.current},[]),s=Sn(function(h){t.current=h},[]),o=Jn(()=>({eventName:"touchstart",fn:function(h){if(h.defaultPrevented)return;const p=e.findClosestDraggableId(h);if(!p)return;const g=e.tryGetLock(p,r,{sourceEvent:h});if(!g)return;const y=h.touches[0],{clientX:v,clientY:m}=y,b={x:v,y:m};n.current(),f(g,b)}}),[e]),a=Sn(function(){const h={capture:!0,passive:!1};n.current=Qa(window,[o],h)},[o]),r=Sn(()=>{const d=t.current;d.type!=="IDLE"&&(d.type==="PENDING"&&clearTimeout(d.longPressTimerId),s(c0),n.current(),a())},[a,s]),l=Sn(()=>{const d=t.current;r(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[r]),c=Sn(function(){const h={capture:!0,passive:!1},p={cancel:l,completed:r,getPhase:i},g=Qa(window,iJ(p),h),y=Qa(window,aJ(p),h);n.current=function(){g(),y()}},[l,i,r]),u=Sn(function(){const h=i();h.type!=="PENDING"&&cn();const p=h.actions.fluidLift(h.point);s({type:"DRAGGING",actions:p,hasMoved:!1})},[i,s]),f=Sn(function(h,p){i().type!=="IDLE"&&cn();const g=setTimeout(u,nJ);s({type:"PENDING",point:p,actions:h,longPressTimerId:g}),c()},[c,i,s,u]);Ha(function(){return a(),function(){n.current();const p=i();p.type==="PENDING"&&(clearTimeout(p.longPressTimerId),s(c0))}},[i,a,s]),Ha(function(){return Qa(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const oJ=["input","button","textarea","select","option","optgroup","video","audio"];function N8(e,t){if(t==null)return!1;if(oJ.includes(t.tagName.toLowerCase()))return!0;const i=t.getAttribute("contenteditable");return i==="true"||i===""?!0:t===e?!1:N8(e,t.parentElement)}function lJ(e,t){const n=t.target;return Rh(n)?N8(e,n):!1}var sJ=e=>di(e.getBoundingClientRect()).center;function uJ(e){return e instanceof P8(e).Element}const cJ=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(i=>i in Element.prototype)||e})();function z8(e,t){return e==null?null:e[cJ](t)?e:z8(e.parentElement,t)}function fJ(e,t){return e.closest?e.closest(t):z8(e,t)}function dJ(e){return`[${Gl.contextId}="${e}"]`}function hJ(e,t){const n=t.target;if(!uJ(n))return null;const i=dJ(e),s=fJ(n,i);return!s||!Rh(s)?null:s}function pJ(e,t){const n=hJ(e,t);return n?n.getAttribute(Gl.draggableId):null}function gJ(e,t){const n=`[${Fv.contextId}="${e}"]`,s=O8(document,n).find(o=>o.getAttribute(Fv.id)===t);return!s||!Rh(s)?null:s}function mJ(e){e.preventDefault()}function Tf(e){let{expected:t,phase:n,isLockActive:i,shouldWarn:s}=e;return!(!i()||t!==n)}function B8(e){let{lockAPI:t,store:n,registry:i,draggableId:s}=e;if(t.isClaimed())return!1;const o=i.draggable.findById(s);return!(!o||!o.options.isEnabled||!k8(n.getState(),s))}function vJ(e){let{lockAPI:t,contextId:n,store:i,registry:s,draggableId:o,forceSensorStop:a,sourceEvent:r}=e;if(!B8({lockAPI:t,store:i,registry:s,draggableId:o}))return null;const c=s.draggable.getById(o),u=gJ(n,c.descriptor.id);if(!u||r&&!c.options.canDragInteractiveElements&&lJ(u,r))return null;const f=t.claim(a||uo);let d="PRE_DRAG";function h(){return c.options.shouldRespectForcePress}function p(){return t.isActive(f)}function g(x,k){Tf({expected:x,phase:d,isLockActive:p,shouldWarn:!0})&&i.dispatch(k())}const y=g.bind(null,"DRAGGING");function v(x){function k(){t.release(),d="COMPLETED"}d!=="PRE_DRAG"&&(k(),cn()),i.dispatch(aZ(x.liftActionArgs)),d="DRAGGING";function T(M,S){if(S===void 0&&(S={shouldBlockNextClick:!1}),x.cleanup(),S.shouldBlockNextClick){const C=Qa(window,[{eventName:"click",fn:mJ,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(C)}k(),i.dispatch(m8({reason:M}))}return{isActive:()=>Tf({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,drop:M=>T("DROP",M),cancel:M=>T("CANCEL",M),...x.actions}}function m(x){const k=tc(M=>{y(()=>g8({client:M}))});return{...v({liftActionArgs:{id:o,clientSelection:x,movementMode:"FLUID"},cleanup:()=>k.cancel(),actions:{move:k}}),move:k}}function b(){const x={moveUp:()=>y(hZ),moveRight:()=>y(gZ),moveDown:()=>y(pZ),moveLeft:()=>y(mZ)};return v({liftActionArgs:{id:o,clientSelection:sJ(u),movementMode:"SNAP"},cleanup:uo,actions:x})}function w(){Tf({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}return{isActive:()=>Tf({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,fluidLift:m,snapLift:b,abort:w}}const yJ=[F8,$8,j8];function bJ(e){let{contextId:t,store:n,registry:i,customSensors:s,enableDefaultSensors:o}=e;const a=[...o?yJ:[],...s||[]],r=je.useState(()=>jK())[0],l=Sn(function(v,m){lc(v)&&!lc(m)&&r.tryAbandon()},[r]);Ha(function(){let v=n.getState();return n.subscribe(()=>{const b=n.getState();l(v,b),v=b})},[r,n,l]),Ha(()=>r.tryAbandon,[r.tryAbandon]);const c=Sn(y=>B8({lockAPI:r,registry:i,store:n,draggableId:y}),[r,i,n]),u=Sn((y,v,m)=>vJ({lockAPI:r,registry:i,contextId:t,store:n,draggableId:y,forceSensorStop:v||null,sourceEvent:m&&m.sourceEvent?m.sourceEvent:null}),[t,r,i,n]),f=Sn(y=>pJ(t,y),[t]),d=Sn(y=>{const v=i.draggable.findById(y);return v?v.options:null},[i.draggable]),h=Sn(function(){r.isClaimed()&&(r.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(yb()))},[r,n]),p=Sn(()=>r.isClaimed(),[r]),g=Jn(()=>({canGetLock:c,tryGetLock:u,findClosestDraggableId:f,findOptionsForDraggable:d,tryReleaseLock:h,isLockClaimed:p}),[c,u,f,d,h,p]);for(let y=0;y({onBeforeCapture:t=>{const n=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};et.version.startsWith("16")||et.version.startsWith("17")?n():v1.flushSync(n)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),wJ=e=>({...oc,...e.autoScrollerOptions,durationDampening:{...oc.durationDampening,...e.autoScrollerOptions}});function iu(e){return e.current||cn(),e.current}function _J(e){const{contextId:t,setCallbacks:n,sensors:i,nonce:s,dragHandleUsageInstructions:o}=e,a=je.useRef(null),r=E8(e),l=Sn(()=>xJ(r.current),[r]),c=Sn(()=>wJ(r.current),[r]),u=EK(t),f=$K({contextId:t,text:o}),d=kK(t,s),h=Sn(S=>{iu(a).dispatch(S)},[]),p=Jn(()=>iT({publishWhileDragging:oZ,updateDroppableScroll:sZ,updateDroppableIsEnabled:uZ,updateDroppableIsCombineEnabled:cZ,collectionStarting:lZ},h),[h]),g=OK(),y=Jn(()=>tK(g,p),[g,p]),v=Jn(()=>yK({scrollWindow:nK,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:c,...iT({move:g8},h)}),[y.scrollDroppable,h,c]),m=SK(t),b=Jn(()=>KZ({announce:u,autoScroller:v,dimensionMarshal:y,focusMarshal:m,getResponders:l,styleMarshal:d}),[u,v,y,m,l,d]);a.current=b;const w=Sn(()=>{const S=iu(a);S.getState().phase!=="IDLE"&&S.dispatch(yb())},[]),_=Sn(()=>{const S=iu(a).getState();return S.phase==="DROP_ANIMATING"?!0:S.phase==="IDLE"?!1:S.isDragging},[]),x=Jn(()=>({isDragging:_,tryAbort:w}),[_,w]);n(x);const k=Sn(S=>k8(iu(a).getState(),S),[]),T=Sn(()=>Eo(iu(a).getState()),[]),M=Jn(()=>({marshal:y,focus:m,contextId:t,canLift:k,isMovementAllowed:T,dragHandleUsageInstructionsId:f,registry:g}),[t,y,f,m,k,T,g]);return bJ({contextId:t,store:b,registry:g,customSensors:i||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),je.useEffect(()=>w,[w]),et.createElement(Lh.Provider,{value:M},et.createElement(IG,{context:Mb,store:b},e.children))}let q8=0;function TJ(){q8=0}function kJ(){return Jn(()=>`${q8++}`,[])}function MJ(){return et.useId()}var SJ="useId"in et?MJ:kJ;function CJ(){"useId"in et||(TJ(),RK())}function OJ(e){const t=SJ(),n=e.dragHandleUsageInstructions||Wf.dragHandleUsageInstructions;return et.createElement(VG,null,i=>et.createElement(_J,{nonce:e.nonce,contextId:t,setCallbacks:i,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 ET={dragging:5e3,dropAnimating:4500},PJ=(e,t)=>t?Xu.drop(t.duration):e?Xu.snap:Xu.fluid,AJ=(e,t)=>{if(e)return t?ic.opacity.drop:ic.opacity.combining},DJ=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function EJ(e){const n=e.dimension.client,{offset:i,combineWith:s,dropping:o}=e,a=!!s,r=DJ(e),l=!!o,c=l?Lv.drop(i,a):Lv.moveTo(i);return{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:PJ(r,o),transform:c,opacity:AJ(a,l),zIndex:l?ET.dropAnimating:ET.dragging,pointerEvents:"none"}}function RJ(e){return{transform:Lv.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function LJ(e){return e.type==="DRAGGING"?EJ(e):RJ(e)}function IJ(e,t,n){n===void 0&&(n=oa);const i=window.getComputedStyle(t),s=t.getBoundingClientRect(),o=W6(s,i),a=md(o,n),r={client:o,tagName:t.tagName.toLowerCase(),display:i.display},l={x:o.marginBox.width,y:o.marginBox.height};return{descriptor:e,placeholder:r,displaceBy:l,client:o,page:a}}function FJ(e){const t=Sb("draggable"),{descriptor:n,registry:i,getDraggableRef:s,canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:r}=e,l=Jn(()=>({canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:r}),[o,r,a]),c=Sn(h=>{const p=s();return p||cn(),IJ(n,p,h)},[n,s]),u=Jn(()=>({uniqueId:t,descriptor:n,options:l,getDimension:c}),[n,c,l,t]),f=je.useRef(u),d=je.useRef(!0);Ha(()=>(i.draggable.register(f.current),()=>i.draggable.unregister(f.current)),[i.draggable]),Ha(()=>{if(d.current){d.current=!1;return}const h=f.current;f.current=u,i.draggable.update(u,h)},[u,i.draggable])}var Ob=et.createContext(null);function wd(e){const t=je.useContext(e);return t||cn(),t}function $J(e){e.preventDefault()}const jJ=e=>{const t=je.useRef(null),n=Sn(function(x){x===void 0&&(x=null),t.current=x},[]),i=Sn(()=>t.current,[]),{contextId:s,dragHandleUsageInstructionsId:o,registry:a}=wd(Lh),{type:r,droppableId:l}=wd(Ob),c=Jn(()=>({id:e.draggableId,index:e.index,type:r,droppableId:l}),[e.draggableId,e.index,r,l]),{children:u,draggableId:f,isEnabled:d,shouldRespectForcePress:h,canDragInteractiveElements:p,isClone:g,mapped:y,dropAnimationFinished:v}=e;if(!g){const x=Jn(()=>({descriptor:c,registry:a,getDraggableRef:i,canDragInteractiveElements:p,shouldRespectForcePress:h,isEnabled:d}),[c,a,i,p,h,d]);FJ(x)}const m=Jn(()=>d?{tabIndex:0,role:"button","aria-describedby":o,"data-rfd-drag-handle-draggable-id":f,"data-rfd-drag-handle-context-id":s,draggable:!1,onDragStart:$J}:null,[s,o,f,d]),b=Sn(x=>{y.type==="DRAGGING"&&y.dropping&&x.propertyName==="transform"&&(et.version.startsWith("16")||et.version.startsWith("17")?v():v1.flushSync(v))},[v,y]),w=Jn(()=>{const x=LJ(y),k=y.type==="DRAGGING"&&y.dropping?b:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":s,"data-rfd-draggable-id":f,style:x,onTransitionEnd:k},dragHandleProps:m}},[s,m,f,y,b,n]),_=Jn(()=>({draggableId:c.id,type:c.type,source:{index:c.index,droppableId:c.droppableId}}),[c.droppableId,c.id,c.index,c.type]);return et.createElement(et.Fragment,null,u(w,y.snapshot,_))};var NJ=jJ,U8=(e,t)=>e===t,W8=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};const zJ=e=>e.combine?e.combine.draggableId:null,BJ=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function qJ(){const e=ia((s,o)=>({x:s,y:o})),t=ia(function(s,o,a,r,l){return a===void 0&&(a=null),r===void 0&&(r=null),l===void 0&&(l=null),{isDragging:!0,isClone:o,isDropAnimating:!!l,dropAnimation:l,mode:s,draggingOver:a,combineWith:r,combineTargetFor:null}}),n=ia(function(s,o,a,r,l,c,u){return l===void 0&&(l=null),c===void 0&&(c=null),u===void 0&&(u=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:c,mode:o,offset:s,dimension:a,forceShouldAnimate:u,snapshot:t(o,r,l,c,null)}}});return(s,o)=>{if(lc(s)){if(s.critical.draggable.id!==o.draggableId)return null;const a=s.current.client.offset,r=s.dimensions.draggables[o.draggableId],l=Wa(s.impact),c=BJ(s.impact),u=s.forceShouldAnimate;return n(e(a.x,a.y),s.movementMode,r,o.isClone,l,c,u)}if(s.phase==="DROP_ANIMATING"){const a=s.completed;if(a.result.draggableId!==o.draggableId)return null;const r=o.isClone,l=s.dimensions.draggables[o.draggableId],c=a.result,u=c.mode,f=W8(c),d=zJ(c),p={duration:s.dropDuration,curve:xb.drop,moveTo:s.newHomeClientOffset,opacity:d?ic.opacity.drop:null,scale:d?ic.scale.drop:null};return{mapped:{type:"DRAGGING",offset:s.newHomeClientOffset,dimension:l,dropping:p,draggingOver:f,combineWith:d,mode:u,forceShouldAnimate:null,snapshot:t(u,r,f,d,p)}}}return null}}function H8(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const UJ={mapped:{type:"SECONDARY",offset:oa,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:H8(null)}};function WJ(){const e=ia((a,r)=>({x:a,y:r})),t=ia(H8),n=ia(function(a,r,l){return r===void 0&&(r=null),{mapped:{type:"SECONDARY",offset:a,combineTargetFor:r,shouldAnimateDisplacement:l,snapshot:t(r)}}}),i=a=>a?n(oa,a,!0):null,s=(a,r,l,c)=>{const u=l.displaced.visible[a],f=!!(c.inVirtualList&&c.effected[a]),d=Ah(l),h=d&&d.draggableId===a?r:null;if(!u){if(!f)return i(h);if(l.displaced.invisible[a])return null;const y=ss(c.displacedBy.point),v=e(y.x,y.y);return n(v,h,!0)}if(f)return i(h);const p=l.displacedBy.point,g=e(p.x,p.y);return n(g,h,u.shouldAnimate)};return(a,r)=>{if(lc(a))return a.critical.draggable.id===r.draggableId?null:s(r.draggableId,a.critical.draggable.id,a.impact,a.afterCritical);if(a.phase==="DROP_ANIMATING"){const l=a.completed;return l.result.draggableId===r.draggableId?null:s(r.draggableId,l.result.draggableId,l.impact,l.afterCritical)}return null}}const HJ=()=>{const e=qJ(),t=WJ();return(i,s)=>e(i,s)||t(i,s)||UJ},VJ={dropAnimationFinished:v8},YJ=q6(HJ,VJ,null,{context:Mb,areStatePropsEqual:U8})(NJ);var GJ=YJ;function V8(e){return wd(Ob).isUsingCloneFor===e.draggableId&&!e.isClone?null:et.createElement(GJ,e)}function XJ(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,i=!!e.shouldRespectForcePress;return et.createElement(V8,Gt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:i}))}const Y8=e=>t=>e===t,ZJ=Y8("scroll"),KJ=Y8("auto"),RT=(e,t)=>t(e.overflowX)||t(e.overflowY),JJ=e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return RT(n,ZJ)||RT(n,KJ)},QJ=()=>!1,G8=e=>e==null?null:e===document.body?QJ()?e:null:e===document.documentElement?null:JJ(e)?e:G8(e.parentElement);var eQ=G8,$v=e=>({x:e.scrollLeft,y:e.scrollTop});const X8=e=>e?window.getComputedStyle(e).position==="fixed"?!0:X8(e.parentElement):!1;var tQ=e=>{const t=eQ(e),n=X8(e);return{closestScrollable:t,isFixedOnPage:n}},nQ=e=>{let{descriptor:t,isEnabled:n,isCombineEnabled:i,isFixedOnPage:s,direction:o,client:a,page:r,closest:l}=e;const c=(()=>{if(!l)return null;const{scrollSize:h,client:p}=l,g=w8({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:g,diff:{value:oa,displacement:oa}}}})(),u=o==="vertical"?hb:e8,f=Vl({page:r,withPlaceholder:null,axis:u,frame:c});return{descriptor:t,isCombineEnabled:i,isFixedOnPage:s,axis:u,isEnabled:n,client:a,page:r,frame:c,subject:f}};const rQ=(e,t)=>{const n=H6(e);if(!t||e!==t)return n;const i=n.paddingBox.top-t.scrollTop,s=n.paddingBox.left-t.scrollLeft,o=i+t.scrollHeight,a=s+t.scrollWidth,l=ub({top:i,right:a,bottom:o,left:s},n.border);return cb({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})};var aQ=e=>{let{ref:t,descriptor:n,env:i,windowScroll:s,direction:o,isDropDisabled:a,isCombineEnabled:r,shouldClipSubject:l}=e;const c=i.closestScrollable,u=rQ(t,c),f=md(u,s),d=(()=>{if(!c)return null;const p=H6(c),g={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:p,page:md(p,s),scroll:$v(c),scrollSize:g,shouldClipSubject:l}})();return nQ({descriptor:n,isEnabled:!a,isCombineEnabled:r,isFixedOnPage:i.isFixedOnPage,direction:o,client:u,page:f,closest:d})};const iQ={passive:!1},oQ={passive:!0};var LT=e=>e.shouldPublishImmediately?iQ:oQ;const kf=e=>e&&e.env.closestScrollable||null;function lQ(e){const t=je.useRef(null),n=wd(Lh),i=Sb("droppable"),{registry:s,marshal:o}=n,a=E8(e),r=Jn(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=je.useRef(r),c=Jn(()=>ia((w,_)=>{t.current||cn();const x={x:w,y:_};o.updateDroppableScroll(r.id,x)}),[r.id,o]),u=Sn(()=>{const w=t.current;return!w||!w.env.closestScrollable?oa:$v(w.env.closestScrollable)},[]),f=Sn(()=>{const w=u();c(w.x,w.y)},[u,c]),d=Jn(()=>tc(f),[f]),h=Sn(()=>{const w=t.current,_=kf(w);if(w&&_||cn(),w.scrollOptions.shouldPublishImmediately){f();return}d()},[d,f]),p=Sn((w,_)=>{t.current&&cn();const x=a.current,k=x.getDroppableRef();k||cn();const T=tQ(k),M={ref:k,descriptor:r,env:T,scrollOptions:_};t.current=M;const S=aQ({ref:k,descriptor:r,env:T,windowScroll:w,direction:x.direction,isDropDisabled:x.isDropDisabled,isCombineEnabled:x.isCombineEnabled,shouldClipSubject:!x.ignoreContainerClipping}),C=T.closestScrollable;return C&&(C.setAttribute(OT.contextId,n.contextId),C.addEventListener("scroll",h,LT(M.scrollOptions))),S},[n.contextId,r,h,a]),g=Sn(()=>{const w=t.current,_=kf(w);return w&&_||cn(),$v(_)},[]),y=Sn(()=>{const w=t.current;w||cn();const _=kf(w);t.current=null,_&&(d.cancel(),_.removeAttribute(OT.contextId),_.removeEventListener("scroll",h,LT(w.scrollOptions)))},[h,d]),v=Sn(w=>{const _=t.current;_||cn();const x=kf(_);x||cn(),x.scrollTop+=w.y,x.scrollLeft+=w.x},[]),m=Jn(()=>({getDimensionAndWatchScroll:p,getScrollWhileDragging:g,dragStopped:y,scroll:v}),[y,p,g,v]),b=Jn(()=>({uniqueId:i,descriptor:r,callbacks:m}),[m,r,i]);Ha(()=>(l.current=b.descriptor,s.droppable.register(b),()=>{t.current&&y(),s.droppable.unregister(b)}),[m,r,y,b,o,s.droppable]),Ha(()=>{t.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),Ha(()=>{t.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function f0(){}const IT={width:0,height:0,margin:QG},sQ=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:i}=e;return t||i==="close"?IT:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},uQ=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:i}=e;const s=sQ({isAnimatingOpenOnMount:t,placeholder:n,animate:i});return{display:n.display,boxSizing:"border-box",width:s.width,height:s.height,marginTop:s.margin.top,marginRight:s.margin.right,marginBottom:s.margin.bottom,marginLeft:s.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?Xu.placeholder:null}},cQ=e=>{const t=je.useRef(null),n=Sn(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:i,onTransitionEnd:s,onClose:o,contextId:a}=e,[r,l]=je.useState(e.animate==="open");je.useEffect(()=>r?i!=="open"?(n(),l(!1),f0):t.current?f0:(t.current=setTimeout(()=>{t.current=null,l(!1)}),n):f0,[i,r,n]);const c=Sn(f=>{f.propertyName==="height"&&(s(),i==="close"&&o())},[i,o,s]),u=uQ({isAnimatingOpenOnMount:r,animate:e.animate,placeholder:e.placeholder});return et.createElement(e.placeholder.tagName,{style:u,"data-rfd-placeholder-context-id":a,onTransitionEnd:c,ref:e.innerRef})};var fQ=et.memo(cQ);class dQ 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,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 hQ=e=>{const t=je.useContext(Lh);t||cn();const{contextId:n,isMovementAllowed:i}=t,s=je.useRef(null),o=je.useRef(null),{children:a,droppableId:r,type:l,mode:c,direction:u,ignoreContainerClipping:f,isDropDisabled:d,isCombineEnabled:h,snapshot:p,useClone:g,updateViewportMaxScroll:y,getContainerForClone:v}=e,m=Sn(()=>s.current,[]),b=Sn(function(C){C===void 0&&(C=null),s.current=C},[]);Sn(()=>o.current,[]);const w=Sn(function(C){C===void 0&&(C=null),o.current=C},[]),_=Sn(()=>{i()&&y({maxScroll:T8()})},[i,y]);lQ({droppableId:r,type:l,mode:c,direction:u,isDropDisabled:d,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:m});const x=Jn(()=>et.createElement(dQ,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},C=>{let{onClose:A,data:D,animate:O}=C;return et.createElement(fQ,{placeholder:D,onClose:A,innerRef:w,animate:O,contextId:n,onTransitionEnd:_})}),[n,_,e.placeholder,e.shouldAnimatePlaceholder,w]),k=Jn(()=>({innerRef:b,placeholder:x,droppableProps:{"data-rfd-droppable-id":r,"data-rfd-droppable-context-id":n}}),[n,r,x,b]),T=g?g.dragging.draggableId:null,M=Jn(()=>({droppableId:r,type:l,isUsingCloneFor:T}),[r,T,l]);function S(){if(!g)return null;const{dragging:C,render:A}=g,D=et.createElement(V8,{draggableId:C.draggableId,index:C.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(O,R)=>A(O,R,C));return KL.createPortal(D,v())}return et.createElement(Ob.Provider,{value:M},a(k,p),S())};var pQ=hQ;function gQ(){return document.body||cn(),document.body}const FT={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:gQ},Z8=e=>{let t={...e},n;for(n in FT)e[n]===void 0&&(t={...t,[n]:FT[n]});return t},d0=(e,t)=>e===t.droppable.type,$T=(e,t)=>t.draggables[e.draggable.id],mQ=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=ia(o=>({draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}})),i=ia((o,a,r,l,c,u)=>{const f=c.descriptor.id;if(c.descriptor.droppableId===o){const p=u?{render:u,dragging:n(c.descriptor)}:null,g={isDraggingOver:r,draggingOverWith:r?f:null,draggingFromThisWith:f,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:g,useClone:p}}if(!a)return t;if(!l)return e;const h={isDraggingOver:r,draggingOverWith:f,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:h,useClone:null}});return(o,a)=>{const r=Z8(a),l=r.droppableId,c=r.type,u=!r.isDropDisabled,f=r.renderClone;if(lc(o)){const d=o.critical;if(!d0(c,d))return t;const h=$T(d,o.dimensions),p=Wa(o.impact)===l;return i(l,u,p,p,h,f)}if(o.phase==="DROP_ANIMATING"){const d=o.completed;if(!d0(c,d.critical))return t;const h=$T(d.critical,o.dimensions);return i(l,u,W8(d.result)===l,Wa(d.impact)===l,h,f)}if(o.phase==="IDLE"&&o.completed&&!o.shouldFlush){const d=o.completed;if(!d0(c,d.critical))return t;const h=Wa(d.impact)===l,p=!!(d.impact.at&&d.impact.at.type==="COMBINE"),g=d.critical.droppable.id===l;return h?p?e:t:g?e:t}return t}},vQ={updateViewportMaxScroll:dZ},yQ=q6(mQ,vQ,(e,t,n)=>({...Z8(n),...e,...t}),{context:Mb,areStatePropsEqual:U8})(pQ);var bQ=yQ;const xQ=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:OJ,Draggable:XJ,Droppable:bQ,resetServerContext:CJ,useKeyboardSensor:$8,useMouseSensor:F8,useTouchSensor:j8},Symbol.toStringTag,{value:"Module"})),Pb=Wn(xQ);var jT;function wQ(){return jT||(jT=1,function(e){var t=Rn,n=Xr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(xr()),s=t(al),o=t(aa()),a=t(L6),r=t(uG),l=t(Oh),c=t(Or),u=g(je),f=Pb,d=hi(),h=Oc();function p(w){if(typeof WeakMap!="function")return null;var _=new WeakMap,x=new WeakMap;return(p=function(T){return T?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=p(_);if(x&&x.has(w))return x.get(w);var k={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in w)if(M!=="default"&&Object.prototype.hasOwnProperty.call(w,M)){var S=T?Object.getOwnPropertyDescriptor(w,M):null;S&&(S.get||S.set)?Object.defineProperty(k,M,S):k[M]=w[M]}return k.default=w,x&&x.set(w,k),k}function y(w,_){var x=Object.keys(w);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(w);_&&(k=k.filter(function(T){return Object.getOwnPropertyDescriptor(w,T).enumerable})),x.push.apply(x,k)}return x}function v(w){for(var _=1;_0&&u.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.groupedBy),w.groupColumns.map(function(A,D){return u.default.createElement(f.Draggable,{key:A.tableData.id.toString(),draggableId:A.tableData.id.toString(),index:D},function(O,R){var F;return u.default.createElement(s.default,(0,i.default)({ref:O.innerRef},O.draggableProps,O.dragHandleProps,{sx:T(R.isDragging,O.draggableProps.style)}),u.default.createElement(r.default,(0,i.default)({},O.dragHandleProps,k.groupChipProps,{onClick:function(){return w.onSortChanged(A)},label:u.default.createElement(s.default,{sx:{display:"flex",alignItems:"center"}},u.default.createElement(s.default,{sx:{float:"left"}},A.title),A.tableData.groupSort&&u.default.createElement(x.SortArrow,{sx:{transition:"300ms ease all",transform:A.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 w.onGroupRemoved(A,D)}})))})}),w.groupColumns.length===0&&u.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.placeholder),S.placeholder)}))}m.defaultProps={},m.propTypes={forwardedRef:c.default.element,className:c.default.string,onSortChanged:c.default.func,onGroupRemoved:c.default.func,onGroupChange:c.default.func,persistentGroupingsId:c.default.string};var b=u.default.forwardRef(function(_,x){return u.default.createElement(m,(0,i.default)({},_,{forwardedRef:x}))});e.default=b}(t0)),t0}var h0={},NT;function _Q(){return NT||(NT=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(xr()),i=t(aa()),s=t(wo()),o=t(os()),a=t(Oi),r=t(Ui),l=t(ls),c=t(il),u=t(Or),f=t(je),d=hi();function h(v,m){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);m&&(w=w.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,w)}return b}function p(v){for(var m=1;m0&&_++;var x=v.groups[v.level],k;v.groupData.isExpanded&&(v.groups.length>v.level+1?k=v.groupData.groups.map(function(j,$){return f.default.createElement(v.components.GroupRow,{actions:v.actions,key:j.value||""+$,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),[$]),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,$){return j.tableData.editing?f.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:$,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}):f.default.createElement(v.components.Row,{actions:v.actions,key:$,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&&P!==z,checked:P===z,onChange:function($,E){return v.onGroupSelected&&v.onGroupSelected(E,v.groupData.path)},style:{marginRight:8}}),f.default.createElement("b",null,C,A)))),k)}g.defaultProps={columns:[],groups:[],level:0},g.propTypes={actions:u.default.array,columns:u.default.arrayOf(u.default.object),components:u.default.object,cellEditable:u.default.object,detailPanel:u.default.oneOfType([u.default.func,u.default.arrayOf(u.default.object)]),forwardedRef:u.default.element,getFieldValue:u.default.func,groupData:u.default.object,groups:u.default.arrayOf(u.default.object),hasAnyEditingRow:u.default.bool,icons:u.default.object,isTreeData:u.default.bool.isRequired,level:u.default.number,localization:u.default.object,onBulkEditRowChanged:u.default.func,onCellEditFinished:u.default.func,onCellEditStarted:u.default.func,onEditingApproved:u.default.func,onEditingCanceled:u.default.func,onGroupExpandChanged:u.default.func,onRowClick:u.default.func,onGroupSelected:u.default.func,onRowSelected:u.default.func,onToggleDetailPanel:u.default.func.isRequired,onTreeExpandChanged:u.default.func.isRequired,path:u.default.arrayOf(u.default.number),scrollWidth:u.default.number.isRequired,treeDataMaxLevel:u.default.number};var y=f.default.forwardRef(function(m,b){return f.default.createElement(g,(0,n.default)({},m,{forwardedRef:b}))});e.default=y}(h0)),h0}var p0={};const TQ=Wn(V$),kQ=Wn(cj);var zT;function MQ(){return zT||(zT=1,function(e){var t=Rn,n=Xr();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=T,e.styles=e.default=void 0;var i=t(al),s=t(ol),o=t(xr()),a=t(aa()),r=t(wo()),l=t(is()),c=t(je),u=t(Or),f=t(TQ),d=t(Ui),h=t(Oi),p=t(kQ),g=t(il),y=Pb,v=_(Yi()),m=hi(),b=["onColumnResized","classes","sx","columns"];function w(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,F=new WeakMap;return(w=function(z){return z?F:R})(O)}function _(O,R){if(O&&O.__esModule)return O;if(O===null||n(O)!=="object"&&typeof O!="function")return{default:O};var F=w(R);if(F&&F.has(O))return F.get(O);var P={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var N=z?Object.getOwnPropertyDescriptor(O,B):null;N&&(N.get||N.set)?Object.defineProperty(P,B,N):P[B]=O[B]}return P.default=O,F&&F.set(O,P),P}function x(O,R){var F=Object.keys(O);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(O);R&&(P=P.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),F.push.apply(F,P)}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=c.default.createElement(y.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:ye,style:{zIndex:99}},function(ue,ge){return c.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?c.default.createElement(S,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:$.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=c.default.createElement(S,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:$.SortArrow,thirdSortClick:j.thirdSortClick,onOrderChange:B.onOrderChange,orderByCollection:B.orderByCollection,showColumnSortOrder:j.showColumnSortOrder,sortOrderIndicatorStyle:j.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(de=c.default.createElement(s.default,{title:ce.tooltip,placement:"bottom"},c.default.createElement("span",null,de))),j.tableLayout==="fixed"&&j.columnResizable&&ce.resizable!==!1&&!(j.tableWidth==="full"&&ye===J.length-1)){var xe=$.Resize?$.Resize:function(ue){return c.default.createElement(i.default,(0,o.default)({},ue,{"data-test-id":"drag_handle"}))};de=c.default.createElement(i.default,{sx:C.headerWrap(ne==="right")},c.default.createElement(i.default,{sx:C.headerContent(ne==="right")},de),c.default.createElement("div",null),c.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 c.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 c.default.createElement(h.default,{padding:"none",key:"key-selection-column",sx:C.header,style:k(k({},j.headerStyle),{},{width:Me})},j.showSelectAllCheckbox&&c.default.createElement(g.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 c.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,c.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,c.default.createElement(h.default,{padding:"checkbox",key:"key-group-header"+Me.tableData.id,sx:C.header,style:j.headerStyle}))}),c.default.createElement(f.default,{ref:B.forwardedRef,classes:F,sx:P},c.default.createElement(d.default,{sx:C.headerRow},Se))}var M=function(R,F,P,z,B){return P.tableData.id!==R?B&&F||"asc":F==="asc"?"desc":F==="desc"&&z?"":"asc"};function S(O){var R=O.columnDef,F=O.keepSortDirectionOnColumnSwitch,P=O.icon,z=O.thirdSortClick,B=O.onOrderChange,N=O.children,j=O.orderByCollection,$=O.showColumnSortOrder,E=O.sortOrderIndicatorStyle,U=j.find(function(W){var V=W.orderBy;return V===R.tableData.id}),G=(U||F)&&U&&U.orderDirection||"asc",L="none";U&&G==="asc"?L=R.ariaSortAsc||"ascending":U&&G==="desc"&&(L=R.ariaSortDesc||"descending");var q=U&&U.orderBy;return c.default.createElement(c.default.Fragment,null,c.default.createElement(p.default,{role:"columnheader","aria-sort":L,"aria-label":R.ariaLabel,IconComponent:P,active:!!U,"data-testid":"mtableheader-sortlabel",direction:G,onClick:function(){var V=M(q,G,R,z,F);B(R.tableData.id,V,U&&U.sortOrder)}},N),c.default.createElement("span",{style:k(k({},E),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},$&&U?U.sortOrder:""))}T.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},T.propTypes={columns:u.default.array.isRequired,classes:u.default.object,sx:u.default.object,dataCount:u.default.number,hasDetailPanel:u.default.bool.isRequired,selectedCount:u.default.number,onAllSelected:u.default.func,onOrderChange:u.default.func,showActionsColumn:u.default.bool,orderByCollection:u.default.array,showColumnSortOrder:u.default.bool,tooltip:u.default.string,allowSorting:u.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 A=c.default.forwardRef(function(R,F){return c.default.createElement(T,(0,o.default)({},R,{forwardedRef:F}))}),D=c.default.memo(A);e.default=D}(p0)),p0}var g0={};const SQ=Wn(ZI);var BT;function CQ(){return BT||(BT=1,function(e){var t=Rn,n=Xr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(xr()),s=t(ls),o=t(ol),a=t(al),r=t(SQ),l=t(Or),c=t(je),u=as,f=p(Yi()),d=hi();function h(b){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:w})(b)}function p(b,w){if(b&&b.__esModule)return b;if(b===null||n(b)!=="object"&&typeof b!="function")return{default:b};var _=h(w);if(_&&_.has(b))return _.get(b);var x={},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(x,T,M):x[T]=b[T]}return x.default=b,_&&_.set(b,x),x}function g(b){var w=(0,u.useTheme)(),_=(0,d.useLocalizationStore)().pagination,x=(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 A(U,G,L,q){var W=[];q=Math.max(1,Math.min(10,q));for(var V=Math.max(U-q+1,0);V<=Math.min(G+q-1,L);V++){var te=V===b.page?"contained":"text";W.push(c.default.createElement(r.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 c.default.createElement("span",null,W)}var D=b.count,O=b.page,R=b.rowsPerPage,F=b.showFirstLastPageButtons,P=b.numberOfPagesAround,z=Math.ceil(D/R)-1,B=Math.max(O-1,0),N=Math.min(z,O+1),j=f.parseFirstLastPageButtons(F,w.direction==="rtl"),$=j.first,E=j.last;return c.default.createElement(a.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:b.forwardedRef},$&&c.default.createElement(o.default,{title:_.firstTooltip},c.default.createElement("span",null,c.default.createElement(s.default,{onClick:k,disabled:O===0,"aria-label":_.firstAriaLabel,size:"large"},w.direction==="rtl"?c.default.createElement(x.LastPage,null):c.default.createElement(x.FirstPage,null)))),c.default.createElement(o.default,{title:_.previousTooltip},c.default.createElement("span",null,c.default.createElement(s.default,{onClick:T,disabled:O===0,"aria-label":_.previousAriaLabel},c.default.createElement(x.PreviousPage,null)))),c.default.createElement(a.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},A(B,N,z,P)),c.default.createElement(o.default,{title:_.nextTooltip},c.default.createElement("span",null,c.default.createElement(s.default,{onClick:M,disabled:O>=z,"aria-label":_.nextAriaLabel,size:"large"},w.direction==="rtl"?c.default.createElement(x.PreviousPage,null):c.default.createElement(x.NextPage,null)))),E&&c.default.createElement(o.default,{title:_.lastTooltip},c.default.createElement("span",null,c.default.createElement(s.default,{onClick:C,disabled:O>=Math.ceil(D/R)-1,"aria-label":_.lastAriaLabel,size:"large"},w.direction==="rtl"?c.default.createElement(x.FirstPage,null):c.default.createElement(x.LastPage,null)))))}g.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])},g.defaultProps={showFirstLastPageButtons:!0};var y=c.default.forwardRef(function(w,_){return c.default.createElement(g,(0,i.default)({},w,{forwardedRef:_}))}),v=y,m=v;e.default=m}(g0)),g0}var m0={},qT;function OQ(){return qT||(qT=1,function(e){var t=Rn,n=Xr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(xr()),s=t(al),o=t(ls),a=t(ol),r=t(Oh),l=t(Or),c=t(je),u=as,f=p(Yi()),d=Oc();function h(b){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:w})(b)}function p(b,w){if(b&&b.__esModule)return b;if(b===null||n(b)!=="object"&&typeof b!="function")return{default:b};var _=h(w);if(_&&_.has(b))return _.get(b);var x={},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(x,T,M):x[T]=b[T]}return x.default=b,_&&_.set(b,x),x}function g(b){var w=(0,u.useTheme)(),_=(0,d.useIconStore)(),x=(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,A=b.page,D=b.rowsPerPage,O=b.showFirstLastPageButtons,R=f.parseFirstLastPageButtons(O,w.direction==="rtl"),F=R.first,P=R.last;return c.default.createElement(s.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:b.forwardedRef},F&&c.default.createElement(a.default,{title:x.firstTooltip},c.default.createElement("span",null,c.default.createElement(o.default,{onClick:k,disabled:A===0,"aria-label":x.firstAriaLabel,size:"large"},w.direction==="rtl"?c.default.createElement(_.LastPage,null):c.default.createElement(_.FirstPage,null)))),c.default.createElement(a.default,{title:x.previousTooltip},c.default.createElement("span",null,c.default.createElement(o.default,{onClick:T,disabled:A===0,"aria-label":x.previousAriaLabel},w.direction==="rtl"?c.default.createElement(_.NextPage,null):c.default.createElement(_.PreviousPage,null)))),c.default.createElement(r.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},x.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)),c.default.createElement(a.default,{title:x.nextTooltip},c.default.createElement("span",null,c.default.createElement(o.default,{onClick:M,disabled:A>=Math.ceil(C/D)-1,"aria-label":x.nextAriaLabel},w.direction==="rtl"?c.default.createElement(_.PreviousPage,null):c.default.createElement(_.NextPage,null)))),P&&c.default.createElement(a.default,{title:x.lastTooltip},c.default.createElement("span",null,c.default.createElement(o.default,{onClick:S,disabled:A>=Math.ceil(C/D)-1,"aria-label":x.lastAriaLabel,size:"large"},w.direction==="rtl"?c.default.createElement(_.FirstPage,null):c.default.createElement(_.LastPage,null)))))}g.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},g.defaultProps={showFirstLastPageButtons:!0};var y=c.default.forwardRef(function(w,_){return c.default.createElement(g,(0,i.default)({},w,{forwardedRef:_}))}),v=y,m=v;e.default=m}(m0)),m0}var v0={},UT;function PQ(){return UT||(UT=1,function(e){var t=Rn,n=Xr();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var i=t(Ui),s=t(Xr()),o=t(os()),a=t(Oi),r=t(aa()),l=p(je),c=Ch(),u=p(Yi()),f=hi(),d=t(Or);function h(b){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:w})(b)}function p(b,w){if(b&&b.__esModule)return b;if(b===null||n(b)!=="object"&&typeof b!="function")return{default:b};var _=h(w);if(_&&_.has(b))return _.get(b);var x={},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(x,T,M):x[T]=b[T]}return x.default=b,_&&_.set(b,x),x}function g(b,w){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(b);w&&(x=x.filter(function(k){return Object.getOwnPropertyDescriptor(b,k).enumerable})),_.push.apply(_,x)}return _}function y(b){for(var w=1;w1&&arguments[1]!==void 0?arguments[1]:1,R=u.elementSize(y(y({},_),{},{options:k})),F=O*u.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 A=u.rowActions(_).length;k.actionsColumnIndex===-1?S.push(T(C++,A)):k.actionsColumnIndex>=0&&M.push(T(C++,A))}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)(w).sort(function(D,O){return D.tableData.columnOrder-O.tableData.columnOrder}).map(function(D,O){var R=x({index:D.tableData.columnOrder,column:D,columns:w}),F=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",P="",z=(0,c.getStyle)({columnDef:D,scrollWidth:0});return(0,s.default)(R)==="object"&&R!==null?(P=R.value,z=R.style):P=R,l.createElement(a.default,{key:O,style:z,align:F},P)}),S)}v.propTypes={columns:d.default.array,renderSummaryRow:d.default.func};var m=v;e.default=m}(v0)),v0}var y0={};const AQ=Wn(b$);var WT;function DQ(){return WT||(WT=1,function(e){var t=Rn,n=Xr();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=M,e.default=void 0;var i=t(xr()),s=t(aa()),o=t(al),a=t(wo()),r=t(il),l=t(E6),c=t(ls),u=t(AQ),f=t(O1),d=t(sh),h=t(L6),p=t(ol),g=t(Oh),y=as,v=t(Or),m=_(je),b=hi();function w(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,F=new WeakMap;return(w=function(z){return z?F:R})(O)}function _(O,R){if(O&&O.__esModule)return O;if(O===null||n(O)!=="object"&&typeof O!="function")return{default:O};var F=w(R);if(F&&F.has(O))return F.get(O);var P={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var N=z?Object.getOwnPropertyDescriptor(O,B):null;N&&(N.get||N.set)?Object.defineProperty(P,B,N):P[B]=O[B]}return P.default=O,F&&F.set(O,P),P}function x(O,R){var F=Object.keys(O);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(O);R&&(P=P.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),F.push.apply(F,P)}return F}function k(O){for(var R=1;ROe.tableData.columnOrder?1:-1}),pe=A(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?m.default.createElement(d.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:S.searchField,value:B,onChange:function(se){return H(se.target.value)},placeholder:F.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:m.default.createElement(l.default,{position:"start"},m.default.createElement(p.default,{title:F.searchTooltip},m.default.createElement(V.Search,{fontSize:"small"}))),endAdornment:m.default.createElement(l.default,{position:"end"},m.default.createElement(c.default,{disabled:!B,onClick:function(){return H("")},"aria-label":F.clearSearchAriaLabel},m.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 m.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!le&&m.default.createElement("span",null,m.default.createElement(p.default,{title:F.showColumnsTitle},m.default.createElement(c.default,{color:"inherit",onClick:function(Te){return W(Te.currentTarget)},"aria-label":F.showColumnsAriaLabel},m.default.createElement(V.ViewColumn,null))),m.default.createElement(u.default,{anchorEl:q,open:!!q,onClose:function(){return W(null)}},m.default.createElement(f.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:m.default.createElement("li",{key:pe.tableData.id},m.default.createElement(f.default,{sx:S.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(pe.tableData.id),disabled:pe.removable===!1},m.default.createElement(r.default,{checked:!pe.hidden,id:"column-toggle-".concat(pe.tableData.id),onChange:function(){return O.onColumnsChanged(pe,!pe.hidden)}}),m.default.createElement("span",null,pe.title)))}))),te.exportMenu.length>0&&m.default.createElement("span",null,m.default.createElement(p.default,{title:F.exportTitle},m.default.createElement(c.default,{color:"inherit",onClick:function(Te){return U(Te.currentTarget)},"aria-label":F.exportAriaLabel},m.default.createElement(V.Export,null))),m.default.createElement(u.default,{anchorEl:E,open:!!E,onClose:function(){return U(null)}},te.exportMenu.map(function(pe,Te){var Se=Q(),Oe=(0,a.default)(Se,2),Me=Oe[0],ce=Oe[1];return m.default.createElement(f.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}),U(null)}},pe.label)}))),m.default.createElement("span",null,m.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 m.default.createElement(o.default,{sx:S.actions},m.default.createElement("div",null,Z(ee.length>0)))}function re(le){var se=typeof le=="string"?m.default.createElement(g.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},le):le;return m.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 m.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(),m.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=m.default.forwardRef(function(R,F){return m.default.createElement(M,(0,i.default)({},R,{forwardedRef:F}))});function A(O){for(var R=O;Array.isArray((F=R)===null||F===void 0||(P=F[0])===null||P===void 0?void 0:P.data);){var F,P;R=R.map(function(z){return z.groups.length!==0?z.groups:z.data}).flat()}return R}var D=m.default.memo(C);e.default=D}(y0)),y0}var HT;function Fh(){return HT||(HT=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return f.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 r.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return p.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 y.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return w.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 x.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return n.default}});var n=t(Tj()),i=t(pN()),s=t(vN()),o=t(bN()),a=t(kN()),r=t(zY()),l=t(BY()),c=t(HY()),u=t(VY()),f=t(ZY()),d=t(QY()),h=t(eG()),p=t(tG()),g=t(R6()),y=t(wQ()),v=t(_Q()),m=t(MQ()),b=t(CQ()),w=t(OQ()),_=t(PQ()),x=t(DQ())}(Xg)),Xg}var VT;function K8(){return VT||(VT=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(_j),i=Fh(),s={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:n.default,Row:i.MTableBodyRow,SummaryRow:i.MTableSummaryRow,Toolbar:i.MTableToolbar};e.default=s}(Gg)),Gg}var YT;function EQ(){if(YT)return $s;YT=1;var e=Rn;Object.defineProperty($s,"__esModule",{value:!0}),$s.defaultProps=void 0;var t=e(K8()),n=e(f4()),i=e(u4()),s=e(c4()),o={actions:[],classes:{},columns:[],components:t.default,data:[],icons:n.default,isLoading:!1,title:"Table Title",options:s.default,localization:i.default,style:{}};return $s.defaultProps=o,$s}var ou={},lu={},GT;function Ab(){if(GT)return lu;GT=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.ALL_COLUMNS=void 0;var e="all_columns";return lu.ALL_COLUMNS=e,lu}var XT;function RQ(){if(XT)return ou;XT=1;var e=Rn;Object.defineProperty(ou,"__esModule",{value:!0}),ou.propTypes=void 0;var t=e(Or),n=Ab(),i=t.default.shape({current:t.default.element}),s=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,s]),Actions:t.default.oneOfType([t.default.element,t.default.func,s]),Body:t.default.oneOfType([t.default.element,t.default.func,s]),Cell:t.default.oneOfType([t.default.element,t.default.func,s]),Container:t.default.oneOfType([t.default.element,t.default.func,s]),EditField:t.default.oneOfType([t.default.element,t.default.func,s]),EditRow:t.default.oneOfType([t.default.element,t.default.func,s]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,s]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,s]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,s]),Header:t.default.oneOfType([t.default.element,t.default.func,s]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,s]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,s]),Pagination:t.default.oneOfType([t.default.element,t.default.func,s]),Row:t.default.oneOfType([t.default.element,t.default.func,s]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,s])}),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,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 ou.propTypes=o,ou}var b0={};const LQ=Wn(h$),IQ=Wn(H$),FQ=Wn(D$);var x0,ZT;function $Q(){if(ZT)return x0;ZT=1;function e(t,n,i){var s,o,a,r,l;n==null&&(n=100);function c(){var f=Date.now()-r;f=0?s=setTimeout(c,n-f):(s=null,i||(l=t.apply(a,o),a=o=null))}var u=function(){a=this,o=arguments,r=Date.now();var f=i&&!s;return s||(s=setTimeout(c,n)),f&&(l=t.apply(a,o),a=o=null),l};return u.clear=function(){s&&(clearTimeout(s),s=null)},u.flush=function(){s&&(l=t.apply(a,o),a=o=null,clearTimeout(s),s=null)},u}return e.debounce=e,x0=e,x0}var w0={};const jQ=Wn(Wz);var _0={},su={},Mf={},KT;function J8(){if(KT)return Mf;KT=1,Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.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 Mf}var kl={},uu={},cu={},JT;function NQ(){if(JT)return cu;JT=1,Object.defineProperty(cu,"__esModule",{value:!0}),cu.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 cu.default=e,cu}var QT;function $h(){if(QT)return uu;QT=1,Object.defineProperty(uu,"__esModule",{value:!0}),uu.default=void 0;var e=t(NQ());function t(s){return s&&s.__esModule?s:{default:s}}function n(s){return typeof s=="string"&&e.default.test(s)}var i=n;return uu.default=i,uu}var ek;function jh(){if(ek)return kl;ek=1,Object.defineProperty(kl,"__esModule",{value:!0}),kl.default=void 0,kl.unsafeStringify=i;var e=t($h());function t(a){return a&&a.__esModule?a:{default:a}}const n=[];for(let a=0;a<256;++a)n.push((a+256).toString(16).slice(1));function i(a,r=0){return n[a[r+0]]+n[a[r+1]]+n[a[r+2]]+n[a[r+3]]+"-"+n[a[r+4]]+n[a[r+5]]+"-"+n[a[r+6]]+n[a[r+7]]+"-"+n[a[r+8]]+n[a[r+9]]+"-"+n[a[r+10]]+n[a[r+11]]+n[a[r+12]]+n[a[r+13]]+n[a[r+14]]+n[a[r+15]]}function s(a,r=0){const l=i(a,r);if(!(0,e.default)(l))throw TypeError("Stringified UUID is invalid");return l}var o=s;return kl.default=o,kl}var tk;function zQ(){if(tk)return su;tk=1,Object.defineProperty(su,"__esModule",{value:!0}),su.default=void 0;var e=n(J8()),t=jh();function n(c){return c&&c.__esModule?c:{default:c}}let i,s,o=0,a=0;function r(c,u,f){let d=u&&f||0;const h=u||new Array(16);c=c||{};let p=c.node||i,g=c.clockseq!==void 0?c.clockseq:s;if(p==null||g==null){const _=c.random||(c.rng||e.default)();p==null&&(p=i=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),g==null&&(g=s=(_[6]<<8|_[7])&16383)}let y=c.msecs!==void 0?c.msecs:Date.now(),v=c.nsecs!==void 0?c.nsecs:a+1;const m=y-o+(v-a)/1e4;if(m<0&&c.clockseq===void 0&&(g=g+1&16383),(m<0||y>o)&&c.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=y,a=v,s=g,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 w=y/4294967296*1e4&268435455;h[d++]=w>>>8&255,h[d++]=w&255,h[d++]=w>>>24&15|16,h[d++]=w>>>16&255,h[d++]=g>>>8|128,h[d++]=g&255;for(let _=0;_<6;++_)h[d+_]=p[_];return u||(0,t.unsafeStringify)(h)}var l=r;return su.default=l,su}var fu={},io={},du={},nk;function Q8(){if(nk)return du;nk=1,Object.defineProperty(du,"__esModule",{value:!0}),du.default=void 0;var e=t($h());function t(s){return s&&s.__esModule?s:{default:s}}function n(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");let o;const a=new Uint8Array(16);return a[0]=(o=parseInt(s.slice(0,8),16))>>>24,a[1]=o>>>16&255,a[2]=o>>>8&255,a[3]=o&255,a[4]=(o=parseInt(s.slice(9,13),16))>>>8,a[5]=o&255,a[6]=(o=parseInt(s.slice(14,18),16))>>>8,a[7]=o&255,a[8]=(o=parseInt(s.slice(19,23),16))>>>8,a[9]=o&255,a[10]=(o=parseInt(s.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=n;return du.default=i,du}var rk;function eO(){if(rk)return io;rk=1,Object.defineProperty(io,"__esModule",{value:!0}),io.URL=io.DNS=void 0,io.default=a;var e=jh(),t=n(Q8());function n(r){return r&&r.__esModule?r:{default:r}}function i(r){r=unescape(encodeURIComponent(r));const l=[];for(let c=0;c>5]>>>v%32&255,b=parseInt(y.charAt(m>>>4&15)+y.charAt(m&15),16);p.push(b)}return p}function n(h){return(h+64>>>9<<4)+14+1}function i(h,p){h[p>>5]|=128<>5]|=(h[y/8]&255)<>16)+(p>>16)+(g>>16)<<16|g&65535}function a(h,p){return h<>>32-p}function r(h,p,g,y,v,m){return o(a(o(o(p,h),o(y,m)),v),g)}function l(h,p,g,y,v,m,b){return r(p&g|~p&y,h,p,v,m,b)}function c(h,p,g,y,v,m,b){return r(p&y|g&~y,h,p,v,m,b)}function u(h,p,g,y,v,m,b){return r(p^g^y,h,p,v,m,b)}function f(h,p,g,y,v,m,b){return r(g^(p|~y),h,p,v,m,b)}var d=e;return hu.default=d,hu}var ik;function qQ(){if(ik)return fu;ik=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.default=void 0;var e=n(eO()),t=n(BQ());function n(o){return o&&o.__esModule?o:{default:o}}var s=(0,e.default)("v3",48,t.default);return fu.default=s,fu}var pu={},gu={},ok;function UQ(){if(ok)return gu;ok=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return gu.default=t,gu}var lk;function WQ(){if(lk)return pu;lk=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.default=void 0;var e=i(UQ()),t=i(J8()),n=jh();function i(a){return a&&a.__esModule?a:{default:a}}function s(a,r,l){if(e.default.randomUUID&&!r&&!a)return e.default.randomUUID();a=a||{};const c=a.random||(a.rng||t.default)();if(c[6]=c[6]&15|64,c[8]=c[8]&63|128,r){l=l||0;for(let u=0;u<16;++u)r[l+u]=c[u];return r}return(0,n.unsafeStringify)(c)}var o=s;return pu.default=o,pu}var mu={},vu={},sk;function HQ(){if(sk)return vu;sk=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.default=void 0;function e(s,o,a,r){switch(s){case 0:return o&a^~o&r;case 1:return o^a^r;case 2:return o&a^o&r^a&r;case 3:return o^a^r}}function t(s,o){return s<>>32-o}function n(s){const o=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){const u=unescape(encodeURIComponent(s));s=[];for(let f=0;f>>0;y=g,g=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]+g>>>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=n;return vu.default=i,vu}var uk;function VQ(){if(uk)return mu;uk=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.default=void 0;var e=n(eO()),t=n(HQ());function n(o){return o&&o.__esModule?o:{default:o}}var s=(0,e.default)("v5",80,t.default);return mu.default=s,mu}var yu={},ck;function YQ(){if(ck)return yu;ck=1,Object.defineProperty(yu,"__esModule",{value:!0}),yu.default=void 0;var e="00000000-0000-0000-0000-000000000000";return yu.default=e,yu}var bu={},fk;function GQ(){if(fk)return bu;fk=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.default=void 0;var e=t($h());function t(s){return s&&s.__esModule?s:{default:s}}function n(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");return parseInt(s.slice(14,15),16)}var i=n;return bu.default=i,bu}var dk;function XQ(){return dk||(dk=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 c.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 n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return a.default}});var t=u(zQ()),n=u(qQ()),i=u(WQ()),s=u(VQ()),o=u(YQ()),a=u(GQ()),r=u($h()),l=u(jh()),c=u(Q8());function u(f){return f&&f.__esModule?f:{default:f}}}(_0)),_0}var hk;function ZQ(){return hk||(hk=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(os()),i=t(oh()),s=t(lh()),o=t(aa()),a=t(jQ),r=XQ(),l=Ch(),c=Yi(),u=Ab();function f(v,m){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);m&&(w=w.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,w)}return b}function d(v){for(var m=1;m=v.length?{done:!0}:{done:!1,value:v[w++]}},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 x=!0,k=!1,T;return{s:function(){b=b.call(v)},n:function(){var S=b.next();return x=S.done,S},e:function(S){k=!0,T=S},f:function(){try{!x&&b.return!=null&&b.return()}finally{if(k)throw T}}}}function p(v,m){if(v){if(typeof v=="string")return g(v,m);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 g(v,m)}}function g(v,m){(m==null||m>v.length)&&(m=v.length);for(var b=0,w=new Array(m);b0?T(S.groups):S.data.forEach(function(C){C.tableData.checked!==b&&(C.tableData.checked=C.tableData.disabled?!1:b,m.selectedCount=m.selectedCount+(b?1:-1))})})};k([_])}),(0,o.default)(this,"getOrderByCollection",function(){return m.orderByCollection.filter(function(b){return b.sortOrder})}),(0,o.default)(this,"sortOrderCollection",function(b){return b.sort(function(w,_){return w.sortOrder?_.sortOrder?w.sortOrder-_.sortOrder:-1:1})}),(0,o.default)(this,"startCellEditable",function(b,w){b.tableData.editCellList=[].concat((0,n.default)(b.tableData.editCellList||[]),[w])}),(0,o.default)(this,"finishCellEditable",function(b,w){if(b.tableData.editCellList){var _=b.tableData.editCellList.findIndex(function(x){return x.tableData.id.toString()===w.tableData.id.toString()});_!==-1&&b.tableData.editCellList.splice(_,1)}}),(0,o.default)(this,"clearBulkEditChangedRows",function(){m.bulkEditChangedRows={}}),(0,o.default)(this,"onBulkEditRowChanged",function(b,w){m.bulkEditChangedRows[b.tableData.id]={oldData:b,newData:w}}),(0,o.default)(this,"expandTreeForNodes",function(b){b.forEach(function(w){for(var _=w;m.parentFunc(_,m.data);){var x=m.parentFunc(_,m.data);x&&(x.tableData.isTreeExpanded=!0),_=x}})}),(0,o.default)(this,"findDataByPath",function(b,w){if(m.isDataType("tree")){var _=w.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 x={groups:b},k=w.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},x);return k}}),(0,o.default)(this,"getFieldValue",function(b,w){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=typeof b[w.field]<"u"?b[w.field]:(0,l.selectFromObject)(b,w.field);return w.lookup&&_&&(x=w.lookup[x]),x}),(0,o.default)(this,"getRenderState",function(){return m.filtered===!1&&m.filterData(),m.searched===!1&&m.searchData(),m.grouped===!1&&m.isDataType("group")&&m.groupData(),m.treefied===!1&&m.isDataType("tree")&&m.treefyData(),m.sorted===!1&&m.sortData(),m.paged===!1&&m.pageData(),{columns:m.columns,currentPage:m.currentPage,data:m.sortedData,lastEditingRow:m.lastEditingRow,orderByCollection:m.orderByCollection,maxColumnSort:m.maxColumnSort,originalData:(0,n.default)(m.data),pageSize:m.pageSize,renderData:m.pagedData,searchText:m.searchText,selectedCount:m.selectedCount,treefiedDataLength:m.treefiedDataLength,treeDataMaxLevel:m.treeDataMaxLevel,groupedDataLength:m.groupedDataLength,tableStyleWidth:m.tableStyleWidth}}),(0,o.default)(this,"filterData",function(){m.searched=m.grouped=m.treefied=m.sorted=m.paged=!1,m.filteredData=(0,n.default)(m.data),m.applyFilters&&m.columns.filter(function(b){return b.tableData.filterValue!==void 0}).forEach(function(b){var w=b.lookup,_=b.type,x=b.tableData;b.customFilterAndSearch?m.filteredData=m.filteredData.filter(function(k){return!!b.customFilterAndSearch(x.filterValue,k,b)}):w?m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b,!1);return!x.filterValue||x.filterValue.length===0||x.filterValue.indexOf(T!=null&&T.toString())>-1}):_==="numeric"?m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b);return T+""===x.filterValue}):_==="boolean"&&x.filterValue?m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b);return T&&x.filterValue==="checked"||!T&&x.filterValue==="unchecked"}):["date","datetime"].includes(_)?m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b),M=T?new Date(T):null;if(M&&M.toString()!=="Invalid Date"){var S=x.filterValue,C="",A="";return _==="date"?(C=(0,a.default)(M,"MM/dd/yyyy"),A=(0,a.default)(S,"MM/dd/yyyy")):_==="datetime"&&(C=(0,a.default)(M,"MM/dd/yyyy - HH:mm"),A=(0,a.default)(S,"MM/dd/yyyy - HH:mm")),C===A}return!0}):_==="time"?m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b),M=T||null;if(M){var S=x.filterValue,C=(0,a.default)(S,"HH:mm");return M===C}return!0}):m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b);return T!=null&&T.toString().toUpperCase().includes(x.filterValue.toUpperCase())})}),m.filtered=!0}),(0,o.default)(this,"searchData",function(){if(m.grouped=m.treefied=m.sorted=m.paged=!1,m.searchedData=(0,n.default)(m.filteredData),m.searchText&&m.applySearch){var b=m.searchText.trim();m.searchedData=m.searchedData.filter(function(w){return m.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(b,w,_);if(_.field){var x=m.getFieldValue(w,_);if(x)return x.toString().toUpperCase().includes(b.toUpperCase())}return!1})})}m.searched=!0}),(0,o.default)(this,"clearCriteria",function(){m.changeOrder(-1,""),m.changeSearchText("");var b=h(m.columns),w;try{for(b.s();!(w=b.n()).done;){var _=w.value;m.changeFilterValue(_.tableData.id,"")}}catch(x){b.e(x)}finally{b.f()}m.changeSearchText(""),m.changePaging(0)})}return(0,s.default)(v,[{key:"setData",value:function(b,w){var _=this;this.selectedCount=0;var x={};this.data.length!==0&&this.data[0][w]!==void 0&&(x=this.data.reduce(function(k,T){return k[T.tableData.id]=T.tableData,k},{})),this.data=b.map(function(k,T){var M=x[k[w]]||{},S=d(d({index:T,id:k[w]||T,uuid:k.uuid||(0,r.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 w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=0,k=[];this.columns=b.map(function(S,C){var A,D=(0,c.widthToNumber)(S.width),O=typeof S.width=="number"?S.width+"px":S.width;O&&(isNaN(D)?k.push(O):x+=D);var R=w.find(function(z){var B=z.id;return B===C}),F=(A=_[S.field])!==null&&A!==void 0?A:{},P=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=P,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=(x!==0?"".concat(x,"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%":x}},{key:"setDefaultExpanded",value:function(b){this.defaultExpanded=b}},{key:"setClientSorting",value:function(b){this.clientSorting=!!b}},{key:"setMaxColumnSort",value:function(b){var w=this.columns.filter(function(_){return _.sorting!==!1}).length;b===u.ALL_COLUMNS?this.maxColumnSort=w:this.maxColumnSort=Math.min(b,w)}},{key:"setOrderByCollection",value:function(){var b=this.getOrderByCollection(),w=this.columns.map(function(_){var x=_.tableData.id,k=b.find(function(T){return T.orderBy===x});return k?d({},k):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});w=this.sortOrderCollection(w),this.orderByCollection=(0,n.default)(w)}},{key:"setDefaultOrderByCollection",value:function(b){this.defaultOrderByCollection=(0,n.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,w){var _=this.columns.find(function(x){return x.tableData.id===b});_.tableData.filterValue=w,this.filtered=!1}},{key:"changeRowSelected",value:function(b,w){var _=this,x=this.findDataByPath(this.sortedData,w);x.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(x),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(b,w){var _=this.findDataByPath(this.sortedData,b);(_.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(b){var w=this.findDataByPath(this.sortedData,b);w.isExpanded=!w.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,w){b?(b.tableData.editing=w,this.lastEditingRow&&this.lastEditingRow!==b&&(this.lastEditingRow.tableData.editing=void 0),w?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,w){var _=0,x=function(S){var C=w instanceof Function?w(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(A){A.tableData.checked=x(A),_++})})};k(this.groupedData)}else{var T=function M(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){C.tableData.checked=x(S),M(C)})};this.searchedData.forEach(function(M){M.tableData.checked=x(M),T(M)}),_=this.searchedData.length}this.selectedCount=b?_:0}},{key:"changeColumnOrder",value:function(b,w,_){var x=[],k=this.getOrderByCollection();k.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,x=this.orderByCollection.map(function(T){return T.sortOrder?T.sortOrder-=1:T.orderBy===b&&w&&(T.sortOrder=k.length,T.orderDirection=w),T})):x=this.orderByCollection.map(function(T){return T.orderBy===b&&w?(T.orderDirection=w,T.sortOrder=_||k.length+1):!w&&T.orderBy===b?(T.orderDirection=w,T.sortOrder=void 0):!w&&_-1}).sort(function(U,G){return U.tableData.groupOrder-G.tableData.groupOrder});if(b.destination.droppableId==="groups"&&b.source.droppableId==="groups"){w=Math.min(b.destination.index,b.source.index);var x=Math.max(b.destination.index,b.source.index);if(_=_.slice(w,x+1),b.destination.index-1})&&(w="group"),b===w}},{key:"sort",value:function(b,w,_){if(_==="numeric")return b-w;if(b!==w){if(!b)return-1;if(!w)return 1}return bw?1:0}},{key:"sortList",value:function(b){if(!this.clientSorting)return b;var w=this.orderByCollection.map(function(M){return M.orderBy}),_=new Map;this.columns.forEach(function(M){var S=M.tableData.id;w.includes(S)&&_.set(S,M)});var x=this.sort,k=this.getFieldValue,T=this.orderByCollection;return b.sort(function M(S,C){var A=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,P=A.get(R),z=0;P.customSort?F==="desc"?z=P.customSort(C,S,"row",F):z=P.customSort(S,C,"row",F):(z=x(k(S,P),k(C,P),P.type),z=F.toLowerCase()==="desc"?z*-1:z);var B=z===0&&D.filter(function(N){return N.sortOrder!==void 0}).length!==1;return B?M(S,C,A,D.slice(1)):z})}},{key:"groupData",value:function(){var b=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var w=(0,n.default)(this.searchedData),_=this.columns.filter(function(k){return k.tableData.groupOrder>-1}).sort(function(k,T){return k.tableData.groupOrder-T.tableData.groupOrder}),x=w.reduce(function(k,T){var M=k;return M=_.reduce(function(S,C){var A=T[C.field]||(0,l.selectFromObject)(T,C.field),D;if(S.groupsIndex[A]!==void 0&&(D=S.groups[S.groupsIndex[A]]),!D){var O=[].concat((0,n.default)(S.path||[]),[A]),R=b.findGroupByGroupPath(b.groupedData,O)||{isExpanded:typeof b.defaultExpanded=="boolean"?b.defaultExpanded:!1};D={value:A,groups:[],groupsIndex:{},data:[],isExpanded:R.isExpanded,path:O},S.groups.push(D),S.groupsIndex[A]=S.groups.length-1}return D},M),M.data.push(T),b.groupedDataLength++,k},{groups:[],groupsIndex:{}});this.groupedData=x.groups,this.grouped=!0,this.rootGroupsIndex=x.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 w=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,n.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){w(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(A){return A.tableData.uuid===C}))}),S.tableData.markedForTreeRemove=!0},x=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&&x(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,n.default)(this.groupedData);var w=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(A,D){return C.customSort(D.value,A.value,"group",C.tableData.groupSort)}:function(A,D){return C.customSort(A.value,D.value,"group",C.tableData.groupSort)}):S.sort(C.tableData.groupSort==="desc"?function(A,D){return b.sort(D.value,A.value,C.type)}:function(A,D){return b.sort(A.value,D.value,C.type)})};this.sortedData=_(this.sortedData,w[0]);var x=function(S){return S.reduce(function(C,A){return C[A.value]=S.findIndex(function(D){return D.value===A.value}),C},{})},k=function M(S,C){S.forEach(function(A){if(A.groups.length>0){var D=w[C];A.groups=_(A.groups,D),A.groupsIndex=x(A.groups),M(A.groups,C+1)}else b.maxColumnSort>0&&b.getOrderByCollection().length>0?A.data=b.sortList(A.data):b.maxColumnSort>0&&(A.data=A.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,n.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,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 b=this.currentPage*this.pageSize,w=b+this.pageSize;this.pagedData=this.pagedData.slice(b,w)}this.paged=!0}}]),v}();e.default=y}(w0)),w0}var pk;function KQ(){return pk||(pk=1,function(e){var t=Rn,n=Xr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(LQ),s=t(IQ),o=t(Ui),a=t(xr()),r=t(al),l=t(os()),c=t(FQ),u=t(Xr()),f=t(wo()),d=t(oh()),h=t(lh()),p=t(M1()),g=t(k1()),y=t(S1()),v=t(C1()),m=t(aa()),b=t(je),w=$Q(),_=t(s4()),x=C(Yi()),k=Pb,T=t(ZQ()),M=Fh();function S(B){if(typeof WeakMap!="function")return null;var N=new WeakMap,j=new WeakMap;return(S=function(E){return E?j:N})(B)}function C(B,N){if(B&&B.__esModule)return B;if(B===null||n(B)!=="object"&&typeof B!="function")return{default:B};var j=S(N);if(j&&j.has(B))return j.get(B);var $={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in B)if(U!=="default"&&Object.prototype.hasOwnProperty.call(B,U)){var G=E?Object.getOwnPropertyDescriptor(B,U):null;G&&(G.get||G.set)?Object.defineProperty($,U,G):$[U]=B[U]}return $.default=B,j&&j.set(B,$),$}function A(B,N){var j=Object.keys(B);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(B);N&&($=$.filter(function(E){return Object.getOwnPropertyDescriptor(B,E).enumerable})),j.push.apply(j,$)}return j}function D(B){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 F=function(B){(0,g.default)(j,B);var N=O(j);function j($){var E;(0,d.default)(this,j),E=N.call(this,$),(0,m.default)((0,p.default)(E),"dataManager",new T.default),(0,m.default)((0,p.default)(E),"checkedForFunctions",!1),(0,m.default)((0,p.default)(E),"clearCriteria",function(){E.dataManager.clearCriteria(),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"isRemoteData",function(L){return!Array.isArray((L||E.props).data)}),(0,m.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,m.default)((0,p.default)(E),"onGroupSelected",function(L,q){E.dataManager.changeGroupSelected(L,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,m.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,m.default)((0,p.default)(E),"onChangeGroupOrder",function(L){E.dataManager.changeGroupOrder(L.tableData.id),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"onChangeOrder",function(L,q,W){E.dataManager.changeColumnOrder(L,q,W);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,m.default)((0,p.default)(E),"onPageChange",function(L,q){if(E.isRemoteData()){var W=D({},E.state.query);W.page=q,E.onQueryChange(W,function(){E.props.onPageChange&&E.props.onPageChange(q,W.pageSize)})}else E.dataManager.changeCurrentPage(q),E.setState(E.dataManager.getRenderState(),function(){E.props.onPageChange&&E.props.onPageChange(q,E.state.pageSize)})}),(0,m.default)((0,p.default)(E),"onRowsPerPageChange",function(L){var q=L.target.value;E.dataManager.changePageSize(q);var W=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,W)}else E.dataManager.changeCurrentPage(0),E.setState(E.dataManager.getRenderState(),W)}),(0,m.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,m.default)((0,p.default)(E),"onGroupExpandChanged",function(L){E.dataManager.changeGroupExpand(L),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"onGroupRemoved",function(L,q){var W={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(W),E.setState(E.dataManager.getRenderState(),function(){E.props.onGroupRemoved&&E.props.onGroupRemoved(L,q)})}),(0,m.default)((0,p.default)(E),"onEditingApproved",function(L,q,W){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,W).then(function(V){E.dataManager.changeRowEditing(W),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(W).reduce(function(V,te){var ee=(0,f.default)(te,2),H=ee[0],Q=ee[1];return H!=="tableData"&&(V[H]=Q),V},{})).then(function(V){E.dataManager.changeRowEditing(W),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,m.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,m.default)((0,p.default)(E),"retry",function(){E.onQueryChange(E.state.query)}),(0,m.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(W){L.totalCount=W.totalCount,L.page=W.page;var V=D(D({},L),{},{totalCount:W.totalCount,page:W.page});E.dataManager.setData(W.data,E.props.options.idSynonym),E.setState(D(D({isLoading:!1,errorState:!1},E.dataManager.getRenderState()),{},{query:V}),function(){q&&q()})}).catch(function(W){var V={message:(0,u.default)(W)==="object"?W.message:W!==void 0?W:E.props.localization.error,errorCause:"query"};E.setState(D({isLoading:!1,errorState:V},E.dataManager.getRenderState()))})})}),(0,m.default)((0,p.default)(E),"onRowSelected",function(L,q,W){E.dataManager.changeRowSelected(L.target.checked,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange(W)})}),(0,m.default)((0,p.default)(E),"onSelectionChange",function(L){if(E.props.onSelectionChange){var q=[],W=function(te){te.forEach(function(ee){ee.tableData.checked&&q.push(ee)})};W(E.state.originalData),E.props.onSelectionChange(q,L)}}),(0,m.default)((0,p.default)(E),"onSearchChangeDebounce",(0,w.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,m.default)((0,p.default)(E),"onFilterChange",function(L,q){E.dataManager.changeFilterValue(L,q),E.setState({},E.onFilterChangeDebounce)}),(0,m.default)((0,p.default)(E),"onFilterChangeDebounce",(0,w.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(W){return W.tableData.filterValue}).map(function(W){return{column:W,operator:"=",value:W.tableData.filterValue}});E.props.onFilterChange(q)}})},E.props.options.debounceInterval)),(0,m.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,m.default)((0,p.default)(E),"onToggleDetailPanel",function(L,q){E.dataManager.changeDetailPanelVisibility(L,q),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"onCellEditStarted",function(L,q){E.dataManager.startCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"onCellEditFinished",function(L,q){E.dataManager.finishCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"onEditRowDataChanged",function(L,q){E.dataManager.setEditRowData(L,q),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"onColumnResized",function(L,q,W,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,W,V);E.setState(E.dataManager.getRenderState(),function(){q===0&&E.props.onColumnResized&&ee.length>0&&E.props.onColumnResized(ee.map(function(H){return te(H)}),E.state.columns.map(function(H){return te(H)}))})}),(0,m.default)((0,p.default)(E),"renderTable",function(L){var q;return b.default.createElement(c.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(W){return W.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(W){return W.position==="row"||typeof W=="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,m.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,m.default)((0,p.default)(E),"getColumnsWidth",function(L,q){var W=[],V=x.actionsColumnWidth(L);if(V>0&&(q>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=q)&&W.push(V+"px"),L.options.selection&&q>0){var te=x.selectionMaxWidth(L,E.state.treeDataMaxLevel);W.push(te+"px")}for(var ee=0;ee=0?ee:E.state.columns.length-1-ee];H.tableData&&(typeof H.tableData.width=="number"?W.push(H.tableData.width+"px"):W.push(H.tableData.width))}return"calc("+W.join(" + ")+")"}),(0,m.default)((0,p.default)(E),"getRenderData",function(){return E.props.options.exportAllData?E.state.data:E.state.renderData});var U=E.getProps($);E.setDataManagerFields(U,!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:U.options.pageSize,search:G.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:U.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,U,G){var L,q=this,W={};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){W[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,W),this.dataManager.setDefaultExpanded(E.options.defaultExpanded),this.dataManager.changeRowEditing();var te=E.options,ee=te.clientSorting,H=te.grouping,Q=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(H?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=P(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=U||!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)}),U&&this.dataManager.changeSearchText(E.options.searchText||""),U&&this.dataManager.changeSearchDebounce(E.options.searchDebounceDelay),U&&this.dataManager.changeCurrentPage(E.options.initialPage?E.options.initialPage:0),U&&this.dataManager.changePageSize(E.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:E.options.paging),U&&this.dataManager.changeParentFunc(E.parentChildData),this.dataManager.changeDetailPanelType(E.options.detailPanelType)}},{key:"cleanColumns",value:function(E){return E.map(function(U){var G=D({},U);return delete G.tableData,G})}},{key:"componentDidUpdate",value:function(E){var U=this.cleanColumns(E.columns),G=this.cleanColumns(this.props.columns),L=!(0,_.default)(U,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 W=this.getProps(this.props);this.setDataManagerFields(W,!1,E.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:W.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 U=this,G=D({},E||this.props),L=this.props.localization.body;if(G.options.selection?G.actions=G.actions.filter(function(W){return W}).map(function(W){return W.position==="auto"||W.isFreeAction===!1||W.position===void 0&&W.isFreeAction===void 0?typeof W=="function"?{action:W,position:"toolbarOnSelect"}:D(D({},W),{},{position:"toolbarOnSelect"}):W.isFreeAction?typeof W=="function"?{action:W,position:"toolbar"}:D(D({},W),{},{position:"toolbar"}):W}):G.actions=G.actions.filter(function(W){return W}).map(function(W){return W.position==="auto"||W.isFreeAction===!1||W.position===void 0&&W.isFreeAction===void 0?typeof W=="function"?{action:W,position:"row"}:D(D({},W),{},{position:"row"}):W.isFreeAction?typeof W=="function"?{action:W,position:"toolbar"}:D(D({},W),{},{position:"toolbar"}):W}),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(){U.dataManager.changeRowEditing(),U.state.showAddRow&&U.props.editable.onRowAddCancelled&&U.props.editable.onRowAddCancelled(),U.setState(D(D({},U.dataManager.getRenderState()),{},{showAddRow:!U.state.showAddRow}))}}),G.editable.onRowUpdate&&G.actions.push(function(W){return{icon:G.icons.Edit,tooltip:G.editable.editTooltip?G.editable.editTooltip(W):L.editTooltip,disabled:G.editable.isEditable&&!G.editable.isEditable(W),hidden:G.editable.isEditHidden&&G.editable.isEditHidden(W),onClick:function(te,ee){U.onRowEditStarted(ee)}}}),G.editable.onRowDelete&&G.actions.push(function(W){return{icon:G.icons.Delete,tooltip:G.editable.deleteTooltip?G.editable.deleteTooltip(W):L.deleteTooltip,disabled:G.editable.isDeletable&&!G.editable.isDeletable(W),hidden:G.editable.isDeleteHidden&&G.editable.isDeleteHidden(W),onClick:function(te,ee){U.dataManager.changeRowEditing(ee,"delete"),U.setState(D(D({},U.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(){U.dataManager.changeBulkEditOpen(!0),U.props.onBulkEditOpen&&U.props.onBulkEditOpen(!0),U.setState(U.dataManager.getRenderState())}}),G.actions.push({icon:G.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return U.onEditingApproved("bulk")}}),G.actions.push({icon:G.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){U.dataManager.changeBulkEditOpen(!1),U.props.onBulkEditOpen&&U.props.onBulkEditOpen(!1),U.dataManager.clearBulkEditChangedRows(),U.setState(U.dataManager.getRenderState())}})),(q=this.state)!==null&&q!==void 0&&q.showAddRow&&G.editable.onRowAdd&&G.actions.filter(function(W){return W.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 U=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(c.default,null,b.default.createElement(s.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(r.default,{sx:{padding:"0px 5px"}},q+" "+E.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:U,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,U=this.getProps();return b.default.createElement(k.DragDropContext,{onDragEnd:this.onDragEnd,nonce:U.options.cspNonce},b.default.createElement(this.props.components.Container,{style:D({position:"relative"},U.style)},U.options.paginationPosition==="top"||U.options.paginationPosition==="both"?this.renderFooter():null,U.options.toolbar&&b.default.createElement(this.props.components.Toolbar,{actions:U.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:U.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),U.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:U.options.persistentGroupingsId}),b.default.createElement(M.MTableScrollbar,{double:U.options.doubleHorizontalScroll},b.default.createElement(k.Droppable,{droppableId:"headers",direction:"horizontal"},function(G,L){var q=E.renderTable(U);return b.default.createElement("div",{ref:G.innerRef},b.default.createElement("div",{ref:E.tableContainerDiv,style:{maxHeight:U.options.maxBodyHeight,minHeight:U.options.minBodyHeight,overflowY:U.options.overflowY}},E.state.width&&U.options.fixedColumns&&U.options.fixedColumns.right?b.default.createElement("div",{style:{width:E.getColumnsWidth(U,-1*U.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(U,-1*U.options.fixedColumns.right)," - 100%))")}},q)):null,b.default.createElement("div",null,q),E.state.width&&U.options.fixedColumns&&U.options.fixedColumns.left?b.default.createElement("div",{style:{width:E.getColumnsWidth(U,U.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||U.isLoading)&&U.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))),U.options.paginationPosition==="bottom"||U.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||U.isLoading)&&U.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:U.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:U.theme}))))}}]),j}(b.default.Component);e.default=F;function P(B,N,j){var $=[],E=[];return j>0&&($=z(B,j)),N&&(E=z(N,j)),[$,E]}function z(B,N){var j=B.filter(function($){return $.defaultSort&&$.sorting!==!1});return j.slice(0,N).map(function($,E){return{orderBy:$.tableData?$.tableData.id:B.findIndex(function(U){return U.field===$.field}),orderDirection:$.defaultSort,sortOrder:E+1}})}}(b0)),b0}(function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return u.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return c.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return c.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return c.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return c.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return c.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return c.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return c.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return c.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return c.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return c.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return c.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return c.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return c.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return c.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return c.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return l.useLocalizationStore}});var n=t(xr()),i=t(je),s=EQ(),o=RQ(),a=t(KQ()),r=as,l=Oc(),c=Fh(),u=Ab();a.default.defaultProps=s.defaultProps,a.default.propTypes=o.propTypes;var f=(0,l.withContext)(function(d){var h=(0,r.useTheme)(),p=(0,l.useMergeProps)(d),g=p.localization,y=p.options,v=p.components;return i.default.createElement(a.default,(0,n.default)({},d,{theme:h,options:y,components:v,localization:g,ref:d.tableRef}))});e.default=f})(ZC);const JQ=lr(ZC);class QQ{constructor(t){eo(this,"cachedGraphs");eo(this,"cachedWidgets");eo(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 tO=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 o7e(e){return new QQ(e)}const eee=e=>{const t=e.activeTab===-1?0:e.activeTab;return Ie.jsxs("div",{children:[Ie.jsx(PC,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map(n=>Ie.jsx(gv,{disabled:n.disabled??!1,label:Ie.jsx(na,{className:e.tabStyle,children:Ie.jsxs(na,{display:"flex",sx:{fontSize:"0.875rem"},children:[Ie.jsx("span",{children:n.icon}),n.title]})})}))}),Ie.jsx(na,{children:e.tabs.map((n,i)=>Ie.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==i,children:(e.activeTab===-1?0:e.activeTab)!==i?Ie.jsx("div",{}):n.tab}))})]})},Db=e=>{const[t,n]=je.useState({activeTab:0});return Ie.jsx(et.Fragment,{children:Ie.jsx(eee,{activeTab:t.activeTab,onNewTabSelected:(i,s)=>n(o=>({...o,activeTab:s})),tabs:e.tabs})})},jv=({func:e,children:t})=>{const[n,i]=je.useState(()=>({status:0,func:e}));return n.status===0&&i(s=>({...s,status:1})),n.status===1&&(i(s=>({...s,status:2})),n.func().then(s=>i(o=>({...o,status:3,result:s}))).catch(()=>i(s=>({...s,status:4})))),Ie.jsx(Ie.Fragment,{children:n.status===3?t&&n.result&&t(n.result):n.status===4?Ie.jsx(dr,{align:"center",children:"Failed"}):n.status===2?Ie.jsx(na,{textAlign:"center",children:Ie.jsx(NC,{})}):null})},nO=e=>Ie.jsxs(y1,{severity:e.data.severity,children:[Ie.jsx(b1,{children:e.data.title}),e.data.text]}),rO=()=>Ie.jsx("div",{children:"Not implemented"}),tee=e=>e.type??"graph",gk=(e,t,n)=>{switch(tee(t)){case"graph":{const i=()=>e.getAdditionGraphData(t.id),s=o=>Ie.jsx(ah,{...o,widgetSize:n});return Ie.jsx(jv,{func:i,children:s})}case"widget":{const i=()=>e.getAdditionWidgetData(t.id),s=o=>Zc(t.id,o);return Ie.jsx(jv,{func:i,children:s})}default:return Ie.jsx(rO,{})}},Eb=e=>Ie.jsx(tO.Consumer,{children:t=>Ie.jsxs(na,{children:[e.details.parts.length>1?Ie.jsx(Db,{tabs:e.details.parts.map(n=>({title:n.title,tab:gk(t,n,e.widgetSize)}))}):gk(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?Ie.jsx(Ie.Fragment,{}):e.details.insights.map(n=>Ie.jsx(nO,{data:n},n.text+n.title+n.severity))]})}),nee=e=>Ie.jsx(tO.Consumer,{children:t=>Ie.jsx(jv,{func:()=>t.getAdditionGraphData(e.graphId),children:n=>Ie.jsx(ah,{...n,widgetSize:e.widgetSize})})});var Nv={exports:{}},zv={exports:{}};(function(e,t){t.__esModule=!0,t.default=n;function n(i){var s={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(s[o]=0);return s}e.exports=t.default})(zv,zv.exports);var Rb=zv.exports,Bv={exports:{}};(function(e,t){t.__esModule=!0,t.default=n;function n(i){var s={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(s[o]=typeof i[o]=="number"?i[o]:i[o].val);return s}e.exports=t.default})(Bv,Bv.exports);var Nh=Bv.exports,qv={exports:{}};(function(e,t){t.__esModule=!0,t.default=i;var n=[0,0];function i(s,o,a,r,l,c,u){var f=-l*(o-r),d=-c*a,h=f+d,p=a+h*s,g=o+p*s;return Math.abs(p)"u"?La:window,Sf=["moz","webkit"],Fl="AnimationFrame",Xl=ji["request"+Fl],sc=ji["cancel"+Fl]||ji["cancelRequest"+Fl];for(var xu=0;!Xl&&xuk*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}var P=(A.accumulatedTime-Math.floor(A.accumulatedTime/k)*k)/k,z=Math.floor(A.accumulatedTime/k),B={},N={},j={},$={};for(var E in O)if(Object.prototype.hasOwnProperty.call(O,E)){var U=O[E];if(typeof U=="number")j[E]=U,$[E]=0,B[E]=U,N[E]=0;else{for(var G=A.state.lastIdealStyle[E],L=A.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),N=[],j=[],$=[],E=[],U=0;Ua[m])return-1;if(h>l[m]&&ya[m])return 1;if(p>l[m]&&gM*10&&(P.accumulatedTime=0),P.accumulatedTime===0){P.animationID=null,P.startAnimationIfNecessary();return}for(var E=(P.accumulatedTime-Math.floor(P.accumulatedTime/M)*M)/M,U=Math.floor(P.accumulatedTime/M),G=A(P.props.willEnter,P.props.willLeave,P.props.didLeave,P.state.mergedPropsStyles,N,P.state.currentStyles,P.state.currentVelocities,P.state.lastIdealStyles,P.state.lastIdealVelocities),L=G[0],q=G[1],W=G[2],V=G[3],te=G[4],ee=0;ee0},e.prototype.connect_=function(){!Zv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),kee?(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(){!Zv||!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,i=n===void 0?"":n,s=Tee.some(function(o){return!!~i.indexOf(o)});s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),oO=function(e,t){for(var n=0,i=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Zl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Ree(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 Zl(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(i){return new Lee(i.target,i.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}(),sO=typeof WeakMap<"u"?new WeakMap:new iO,uO=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=Mee.getInstance(),i=new Iee(t,n,this);sO.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){uO.prototype[e]=function(){var t;return(t=sO.get(this))[e].apply(t,arguments)}});var Fee=function(){return typeof _d.ResizeObserver<"u"?_d.ResizeObserver:uO}(),$ee=["client","offset","scroll","bounds","margin"];function yk(e){var t=[];return $ee.forEach(function(n){e[n]&&t.push(n)}),t}function bk(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 i=e.getBoundingClientRect();n.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 s=getComputedStyle(e);n.margin={top:s?parseInt(s.marginTop):0,right:s?parseInt(s.marginRight):0,bottom:s?parseInt(s.marginBottom):0,left:s?parseInt(s.marginLeft):0}}return n}function jee(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function Nee(e){return function(t){var n,i;return i=n=function(s){wC(o,s);function o(){for(var r,l=arguments.length,c=new Array(l),u=0;u-1}var yte=vte,bte=Wh;function xte(e,t){var n=this.__data__,i=bte(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var wte=xte,_te=ate,Tte=dte,kte=gte,Mte=yte,Ste=wte;function ds(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=Eae}var Vb=Rae,Lae=Vh,Iae=Vb;function Fae(e){return e!=null&&Iae(e.length)&&!Lae(e)}var vs=Fae,$ae=vs,jae=Va;function Nae(e){return jae(e)&&$ae(e)}var TO=Nae,Sd={exports:{}};function zae(){return!1}var Bae=zae;Sd.exports;(function(e,t){var n=$a,i=Bae,s=t&&!t.nodeType&&t,o=s&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===s,r=a?n.Buffer:void 0,l=r?r.isBuffer:void 0,c=l||i;e.exports=c})(Sd,Sd.exports);var Qh=Sd.exports,qae=Gi,Uae=Wb,Wae=Va,Hae="[object Object]",Vae=Function.prototype,Yae=Object.prototype,kO=Vae.toString,Gae=Yae.hasOwnProperty,Xae=kO.call(Object);function Zae(e){if(!Wae(e)||qae(e)!=Hae)return!1;var t=Uae(e);if(t===null)return!0;var n=Gae.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&kO.call(n)==Xae}var Yb=Zae;const dc=lr(Yb);var Kae=Gi,Jae=Vb,Qae=Va,eie="[object Arguments]",tie="[object Array]",nie="[object Boolean]",rie="[object Date]",aie="[object Error]",iie="[object Function]",oie="[object Map]",lie="[object Number]",sie="[object Object]",uie="[object RegExp]",cie="[object Set]",fie="[object String]",die="[object WeakMap]",hie="[object ArrayBuffer]",pie="[object DataView]",gie="[object Float32Array]",mie="[object Float64Array]",vie="[object Int8Array]",yie="[object Int16Array]",bie="[object Int32Array]",xie="[object Uint8Array]",wie="[object Uint8ClampedArray]",_ie="[object Uint16Array]",Tie="[object Uint32Array]",Cr={};Cr[gie]=Cr[mie]=Cr[vie]=Cr[yie]=Cr[bie]=Cr[xie]=Cr[wie]=Cr[_ie]=Cr[Tie]=!0;Cr[eie]=Cr[tie]=Cr[hie]=Cr[nie]=Cr[pie]=Cr[rie]=Cr[aie]=Cr[iie]=Cr[oie]=Cr[lie]=Cr[sie]=Cr[uie]=Cr[cie]=Cr[fie]=Cr[die]=!1;function kie(e){return Qae(e)&&Jae(e.length)&&!!Cr[Kae(e)]}var Mie=kie;function Sie(e){return function(t){return e(t)}}var ys=Sie,Cd={exports:{}};Cd.exports;(function(e,t){var n=fO,i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===i,a=o&&n.process,r=function(){try{var l=s&&s.require&&s.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=r})(Cd,Cd.exports);var ep=Cd.exports,Cie=Mie,Oie=ys,Rk=ep,Lk=Rk&&Rk.isTypedArray,Pie=Lk?Oie(Lk):Cie,Gb=Pie;function Aie(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var MO=Aie,Die=qb,Eie=$c,Rie=Object.prototype,Lie=Rie.hasOwnProperty;function Iie(e,t,n){var i=e[t];(!(Lie.call(e,t)&&Eie(i,n))||n===void 0&&!(t in e))&&Die(e,t,n)}var Xb=Iie,Fie=Xb,$ie=qb;function jie(e,t,n,i){var s=!n;n||(n={});for(var o=-1,a=t.length;++o-1&&e%1==0&&e0){if(++t>=Yoe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var PO=Zoe,Koe=Voe,Joe=PO,Qoe=Joe(Koe),Kb=Qoe,ele=cl,tle=OO,nle=Kb;function rle(e,t){return nle(tle(e,t,ele),e+"")}var tp=rle,ale=$c,ile=vs,ole=jc,lle=ai;function sle(e,t,n){if(!lle(n))return!1;var i=typeof t;return(i=="number"?ile(n)&&ole(t,n.length):i=="string"&&t in n)?ale(n[t],e):!1}var Jb=sle,ule=tp,cle=Jb;function fle(e){return ule(function(t,n){var i=-1,s=n.length,o=s>1?n[s-1]:void 0,a=s>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(s--,o):void 0,a&&cle(n[0],n[1],a)&&(o=s<3?void 0:o,s=1),t=Object(t);++it?1:e>=t?0:NaN}function tx(e){let t=e,n=e;e.length===1&&(t=(a,r)=>e(a)-r,n=_se(e));function i(a,r,l,c){for(l==null&&(l=0),c==null&&(c=a.length);l>>1;n(a[u],r)<0?l=u+1:c=u}return l}function s(a,r,l,c){for(l==null&&(l=0),c==null&&(c=a.length);l>>1;n(a[u],r)>0?c=u:l=u+1}return l}function o(a,r,l,c){l==null&&(l=0),c==null&&(c=a.length);const u=i(a,r,l,c-1);return u>l&&t(a[u-1],r)>-t(a[u],r)?u-1:u}return{left:i,center:o,right:s}}function _se(e){return(t,n)=>IO(e(t),n)}function Tse(e){return e===null?NaN:+e}const kse=tx(IO),Mse=kse.right;tx(Tse).center;var Kv=Math.sqrt(50),Jv=Math.sqrt(10),Qv=Math.sqrt(2);function ey(e,t,n){var i,s=-1,o,a,r;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((i=t0){let l=Math.round(e/r),c=Math.round(t/r);for(l*rt&&--c,a=new Array(o=c-l+1);++st&&--c,a=new Array(o=c-l+1);++s=0?(o>=Kv?10:o>=Jv?5:o>=Qv?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(o>=Kv?10:o>=Jv?5:o>=Qv?2:1)}function ty(e,t,n){var i=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/s;return o>=Kv?s*=10:o>=Jv?s*=5:o>=Qv&&(s*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Of(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Of(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=Pse.exec(e))?new qa(t[1],t[2],t[3],1):(t=Ase.exec(e))?new qa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Dse.exec(e))?Of(t[1],t[2],t[3],t[4]):(t=Ese.exec(e))?Of(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Rse.exec(e))?Jk(t[1],t[2]/100,t[3]/100,1):(t=Lse.exec(e))?Jk(t[1],t[2]/100,t[3]/100,t[4]):Vk.hasOwnProperty(e)?Xk(Vk[e]):e==="transparent"?new qa(NaN,NaN,NaN,0):null}function Xk(e){return new qa(e>>16&255,e>>8&255,e&255,1)}function Of(e,t,n,i){return i<=0&&(e=t=n=NaN),new qa(e,t,n,i)}function Fse(e){return e instanceof Bc||(e=Vo(e)),e?(e=e.rgb(),new qa(e.r,e.g,e.b,e.opacity)):new qa}function Yo(e,t,n,i){return arguments.length===1?Fse(e):new qa(e,t,n,i??1)}function qa(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}rx(qa,Yo,jO(Bc,{brighter:function(e){return e=e==null?Od:Math.pow(Od,e),new qa(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?hc:Math.pow(hc,e),new qa(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:Zk,formatHex:Zk,formatRgb:Kk,toString:Kk}));function Zk(){return"#"+M0(this.r)+M0(this.g)+M0(this.b)}function Kk(){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 M0(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function Jk(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ki(e,t,n,i)}function NO(e){if(e instanceof ki)return new ki(e.h,e.s,e.l,e.opacity);if(e instanceof Bc||(e=Vo(e)),!e)return new ki;if(e instanceof ki)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,s=Math.min(t,n,i),o=Math.max(t,n,i),a=NaN,r=o-s,l=(o+s)/2;return r?(t===o?a=(n-i)/r+(n0&&l<1?0:a,new ki(a,r,l,e.opacity)}function $se(e,t,n,i){return arguments.length===1?NO(e):new ki(e,t,n,i??1)}function ki(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}rx(ki,$se,jO(Bc,{brighter:function(e){return e=e==null?Od:Math.pow(Od,e),new ki(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?hc:Math.pow(hc,e),new ki(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,i=n+(n<.5?n:1-n)*t,s=2*n-i;return new qa(S0(e>=240?e-240:e+120,s,i),S0(e,s,i),S0(e<120?e+240:e-120,s,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 S0(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 ax=e=>()=>e;function jse(e,t){return function(n){return e+n*t}}function Nse(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function zse(e){return(e=+e)==1?zO:function(t,n){return n-t?Nse(t,n,e):ax(isNaN(t)?n:t)}}function zO(e,t){var n=t-e;return n?jse(e,n):ax(isNaN(e)?t:e)}const Qk=function e(t){var n=zse(t);function i(s,o){var a=n((s=Yo(s)).r,(o=Yo(o)).r),r=n(s.g,o.g),l=n(s.b,o.b),c=zO(s.opacity,o.opacity);return function(u){return s.r=a(u),s.g=r(u),s.b=l(u),s.opacity=c(u),s+""}}return i.gamma=e,i}(1);function Bse(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,i=t.slice(),s;return function(o){for(s=0;sn&&(o=t.slice(n,o),r[a]?r[a]+=o:r[++a]=o),(i=i[0])===(s=s[0])?r[a]?r[a]+=s:r[++a]=s:(r[++a]=null,l.push({i:a,x:Pd(i,s)})),n=C0.lastIndex;return nt&&(n=e,e=t,t=n),function(i){return Math.max(e,Math.min(t,i))}}function Qse(e,t,n){var i=e[0],s=e[1],o=t[0],a=t[1];return s2?eue:Qse,l=c=null,f}function f(d){return d==null||isNaN(d=+d)?o:(l||(l=r(e.map(i),t,n)))(i(a(d)))}return f.invert=function(d){return a(s((c||(c=r(t,e.map(i),Pd)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Kse),u()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),u()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),n=Xse,u()},f.clamp=function(d){return arguments.length?(a=d?!0:Dl,u()):a!==Dl},f.interpolate=function(d){return arguments.length?(n=d,u()):n},f.unknown=function(d){return arguments.length?(o=d,f):o},function(d,h){return i=d,s=h,u()}}function qO(){return BO()(Dl,Dl)}function tue(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ad(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function Kl(e){return e=Ad(Math.abs(e)),e?e[1]:NaN}function nue(e,t){return function(n,i){for(var s=n.length,o=[],a=0,r=e[0],l=0;s>0&&r>0&&(l+r+1>i&&(r=Math.max(1,i-l)),o.push(n.substring(s-=r,s+r)),!((l+=r+1)>i));)r=e[a=(a+1)%e.length];return o.reverse().join(t)}}function rue(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var aue=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Dd(e){if(!(t=aue.exec(e)))throw new Error("invalid format: "+e);var t;return new lx({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]})}Dd.prototype=lx.prototype;function lx(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+""}lx.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 iue(e){e:for(var t=e.length,n=1,i=-1,s;n0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(s+1):e}var UO;function oue(e,t){var n=Ad(e,t);if(!n)return e+"";var i=n[0],s=n[1],o=s-(UO=Math.max(-8,Math.min(8,Math.floor(s/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")+Ad(e,Math.max(0,t+o-1))[0]}function tM(e,t){var n=Ad(e,t);if(!n)return e+"";var i=n[0],s=n[1];return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")}const nM={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:tue,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 tM(e*100,t)},r:tM,s:oue,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function rM(e){return e}var aM=Array.prototype.map,iM=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function lue(e){var t=e.grouping===void 0||e.thousands===void 0?rM:nue(aM.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",s=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?rM:rue(aM.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",r=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f){f=Dd(f);var d=f.fill,h=f.align,p=f.sign,g=f.symbol,y=f.zero,v=f.width,m=f.comma,b=f.precision,w=f.trim,_=f.type;_==="n"?(m=!0,_="g"):nM[_]||(b===void 0&&(b=12),w=!0,_="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var x=g==="$"?n:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",k=g==="$"?i:/[%p]/.test(_)?a:"",T=nM[_],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 A=x,D=k,O,R,F;if(_==="c")D=T(C)+D,C="";else{C=+C;var P=C<0||1/C<0;if(C=isNaN(C)?l:T(Math.abs(C),b),w&&(C=iue(C)),P&&+C==0&&p!=="+"&&(P=!1),A=(P?p==="("?p:r:p==="-"||p==="("?"":p)+A,D=(_==="s"?iM[8+UO/3]:"")+D+(P&&p==="("?")":""),M){for(O=-1,R=C.length;++OF||F>57){D=(F===46?s+C.slice(O+1):C.slice(O))+D,C=C.slice(0,O);break}}}m&&!y&&(C=t(C,1/0));var z=A.length+C.length+D.length,B=z>1)+A+C+D+B.slice(z);break;default:C=B+A+C+D;break}return o(C)}return S.toString=function(){return f+""},S}function u(f,d){var h=c((f=Dd(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(Kl(d)/3)))*3,g=Math.pow(10,-p),y=iM[8+p/3];return function(v){return h(g*v)+y}}return{format:c,formatPrefix:u}}var Pf,ks,WO;sue({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function sue(e){return Pf=lue(e),ks=Pf.format,WO=Pf.formatPrefix,Pf}function uue(e){return Math.max(0,-Kl(Math.abs(e)))}function cue(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Kl(t)/3)))*3-Kl(Math.abs(e)))}function fue(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Kl(t)-Kl(e))+1}function due(e,t,n,i){var s=ty(e,t,n),o;switch(i=Dd(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(o=cue(s,a))&&(i.precision=o),WO(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=fue(s,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=uue(s))&&(i.precision=o-(i.type==="%")*2);break}}return ks(i)}function hue(e){var t=e.domain;return e.ticks=function(n){var i=t();return ey(i[0],i[i.length-1],n??10)},e.tickFormat=function(n,i){var s=t();return due(s[0],s[s.length-1],n??10,i)},e.nice=function(n){n==null&&(n=10);var i=t(),s=0,o=i.length-1,a=i[s],r=i[o],l,c,u=10;for(r0;){if(c=FO(a,r,n),c===l)return i[s]=a,i[o]=r,t(i);if(c>0)a=Math.floor(a/c)*c,r=Math.ceil(r/c)*c;else if(c<0)a=Math.ceil(a*c)/c,r=Math.floor(r*c)/c;else break;l=c}return e},e}function Go(){var e=qO();return e.copy=function(){return ox(e,Go())},Ts.apply(e,arguments),hue(e)}function HO(e,t){e=e.slice();var n=0,i=e.length-1,s=e[n],o=e[i],a;return o0){for(;d<=h;++d)for(g=1,p=o(d);gu)break;m.push(y)}}else for(;d<=h;++d)for(g=i-1,p=o(d);g>=1;--g)if(y=p*g,!(yu)break;m.push(y)}m.length*20))return l;do l.push(c=new Date(+o)),t(o,r),e(o);while(c=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,r){if(a>=a)if(r<0)for(;++r<=0;)for(;t(a,-1),!o(a););else for(;--r>=0;)for(;t(a,1),!o(a););})},n&&(s.count=function(o,a){return O0.setTime(+o),P0.setTime(+a),e(O0),e(P0),Math.floor(n(O0,P0))},s.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?s.filter(i?function(a){return i(a)%o===0}:function(a){return s.count(0,a)%o===0}):s}),s}var Ed=la(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?la(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Ed};Ed.range;const Fi=1e3,ei=Fi*60,$i=ei*60,Xo=$i*24,sx=Xo*7,uM=Xo*30,A0=Xo*365;var Bo=la(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Fi)},function(e,t){return(t-e)/Fi},function(e){return e.getUTCSeconds()});Bo.range;var ux=la(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fi)},function(e,t){e.setTime(+e+t*ei)},function(e,t){return(t-e)/ei},function(e){return e.getMinutes()});ux.range;var cx=la(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fi-e.getMinutes()*ei)},function(e,t){e.setTime(+e+t*$i)},function(e,t){return(t-e)/$i},function(e){return e.getHours()});cx.range;var qc=la(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ei)/Xo,e=>e.getDate()-1);qc.range;function fl(e){return la(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())*ei)/sx})}var rp=fl(0),Rd=fl(1),xue=fl(2),wue=fl(3),Jl=fl(4),_ue=fl(5),Tue=fl(6);rp.range;Rd.range;xue.range;wue.range;Jl.range;_ue.range;Tue.range;var fx=la(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()});fx.range;var Bi=la(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()});Bi.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:la(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)})};Bi.range;var dx=la(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*ei)},function(e,t){return(t-e)/ei},function(e){return e.getUTCMinutes()});dx.range;var hx=la(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*$i)},function(e,t){return(t-e)/$i},function(e){return e.getUTCHours()});hx.range;var Uc=la(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Xo},function(e){return e.getUTCDate()-1});Uc.range;function dl(e){return la(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)/sx})}var ap=dl(0),Ld=dl(1),kue=dl(2),Mue=dl(3),Ql=dl(4),Sue=dl(5),Cue=dl(6);ap.range;Ld.range;kue.range;Mue.range;Ql.range;Sue.range;Cue.range;var px=la(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()});px.range;var qi=la(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()});qi.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:la(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)})};qi.range;function YO(e,t,n,i,s,o){const a=[[Bo,1,Fi],[Bo,5,5*Fi],[Bo,15,15*Fi],[Bo,30,30*Fi],[o,1,ei],[o,5,5*ei],[o,15,15*ei],[o,30,30*ei],[s,1,$i],[s,3,3*$i],[s,6,6*$i],[s,12,12*$i],[i,1,Xo],[i,2,2*Xo],[n,1,sx],[t,1,uM],[t,3,3*uM],[e,1,A0]];function r(c,u,f){const d=uy).right(a,d);if(h===a.length)return e.every(ty(c/A0,u/A0,f));if(h===0)return Ed.every(Math.max(ty(c,u,f),1));const[p,g]=a[d/a[h-1][2]53)return null;"w"in H||(H.w=1),"Z"in H?(Y=E0(_u(H.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?Ld.ceil(Y):Ld(Y),Y=Uc.offset(Y,(H.V-1)*7),H.y=Y.getUTCFullYear(),H.m=Y.getUTCMonth(),H.d=Y.getUTCDate()+(H.w+6)%7):(Y=D0(_u(H.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?Rd.ceil(Y):Rd(Y),Y=qc.offset(Y,(H.V-1)*7),H.y=Y.getFullYear(),H.m=Y.getMonth(),H.d=Y.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),Z="Z"in H?E0(_u(H.y,0,1)).getUTCDay():D0(_u(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(Z+5)%7:H.w+H.U*7-(Z+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,E0(H)):D0(H)}}function T(V,te,ee,H){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 cM?te.charAt(Q++):X],!re||(H=re(V,ee,H))<0)return-1}else if(X!=ee.charCodeAt(H++))return-1}return H}function M(V,te,ee){var H=c.exec(te.slice(ee));return H?(V.p=u.get(H[0].toLowerCase()),ee+H[0].length):-1}function S(V,te,ee){var H=h.exec(te.slice(ee));return H?(V.w=p.get(H[0].toLowerCase()),ee+H[0].length):-1}function C(V,te,ee){var H=f.exec(te.slice(ee));return H?(V.w=d.get(H[0].toLowerCase()),ee+H[0].length):-1}function A(V,te,ee){var H=v.exec(te.slice(ee));return H?(V.m=m.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=y.get(H[0].toLowerCase()),ee+H[0].length):-1}function O(V,te,ee){return T(V,t,te,ee)}function R(V,te,ee){return T(V,n,te,ee)}function F(V,te,ee){return T(V,i,te,ee)}function P(V){return a[V.getDay()]}function z(V){return o[V.getDay()]}function B(V){return l[V.getMonth()]}function N(V){return r[V.getMonth()]}function j(V){return s[+(V.getHours()>=12)]}function $(V){return 1+~~(V.getMonth()/3)}function E(V){return a[V.getUTCDay()]}function U(V){return o[V.getUTCDay()]}function G(V){return l[V.getUTCMonth()]}function L(V){return r[V.getUTCMonth()]}function q(V){return s[+(V.getUTCHours()>=12)]}function W(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=x(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=x(V+="",w);return te.toString=function(){return V},te},utcParse:function(V){var te=k(V+="",!0);return te.toString=function(){return V},te}}}var cM={"-":"",_:" ",0:"0"},sa=/^\s*\d+/,Rue=/^%/,Lue=/[\\^$*+?|[\]().{}]/g;function ir(e,t,n){var i=e<0?"-":"",s=(i?-e:e)+"",o=s.length;return i+(o[t.toLowerCase(),n]))}function Fue(e,t,n){var i=sa.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function $ue(e,t,n){var i=sa.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function jue(e,t,n){var i=sa.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function Nue(e,t,n){var i=sa.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function zue(e,t,n){var i=sa.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function fM(e,t,n){var i=sa.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function dM(e,t,n){var i=sa.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Bue(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function que(e,t,n){var i=sa.exec(t.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function Uue(e,t,n){var i=sa.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function hM(e,t,n){var i=sa.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Wue(e,t,n){var i=sa.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function pM(e,t,n){var i=sa.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Hue(e,t,n){var i=sa.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function Vue(e,t,n){var i=sa.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Yue(e,t,n){var i=sa.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Gue(e,t,n){var i=sa.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function Xue(e,t,n){var i=Rue.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function Zue(e,t,n){var i=sa.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Kue(e,t,n){var i=sa.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function gM(e,t){return ir(e.getDate(),t,2)}function Jue(e,t){return ir(e.getHours(),t,2)}function Que(e,t){return ir(e.getHours()%12||12,t,2)}function ece(e,t){return ir(1+qc.count(Bi(e),e),t,3)}function GO(e,t){return ir(e.getMilliseconds(),t,3)}function tce(e,t){return GO(e,t)+"000"}function nce(e,t){return ir(e.getMonth()+1,t,2)}function rce(e,t){return ir(e.getMinutes(),t,2)}function ace(e,t){return ir(e.getSeconds(),t,2)}function ice(e){var t=e.getDay();return t===0?7:t}function oce(e,t){return ir(rp.count(Bi(e)-1,e),t,2)}function XO(e){var t=e.getDay();return t>=4||t===0?Jl(e):Jl.ceil(e)}function lce(e,t){return e=XO(e),ir(Jl.count(Bi(e),e)+(Bi(e).getDay()===4),t,2)}function sce(e){return e.getDay()}function uce(e,t){return ir(Rd.count(Bi(e)-1,e),t,2)}function cce(e,t){return ir(e.getFullYear()%100,t,2)}function fce(e,t){return e=XO(e),ir(e.getFullYear()%100,t,2)}function dce(e,t){return ir(e.getFullYear()%1e4,t,4)}function hce(e,t){var n=e.getDay();return e=n>=4||n===0?Jl(e):Jl.ceil(e),ir(e.getFullYear()%1e4,t,4)}function pce(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ir(t/60|0,"0",2)+ir(t%60,"0",2)}function mM(e,t){return ir(e.getUTCDate(),t,2)}function gce(e,t){return ir(e.getUTCHours(),t,2)}function mce(e,t){return ir(e.getUTCHours()%12||12,t,2)}function vce(e,t){return ir(1+Uc.count(qi(e),e),t,3)}function ZO(e,t){return ir(e.getUTCMilliseconds(),t,3)}function yce(e,t){return ZO(e,t)+"000"}function bce(e,t){return ir(e.getUTCMonth()+1,t,2)}function xce(e,t){return ir(e.getUTCMinutes(),t,2)}function wce(e,t){return ir(e.getUTCSeconds(),t,2)}function _ce(e){var t=e.getUTCDay();return t===0?7:t}function Tce(e,t){return ir(ap.count(qi(e)-1,e),t,2)}function KO(e){var t=e.getUTCDay();return t>=4||t===0?Ql(e):Ql.ceil(e)}function kce(e,t){return e=KO(e),ir(Ql.count(qi(e),e)+(qi(e).getUTCDay()===4),t,2)}function Mce(e){return e.getUTCDay()}function Sce(e,t){return ir(Ld.count(qi(e)-1,e),t,2)}function Cce(e,t){return ir(e.getUTCFullYear()%100,t,2)}function Oce(e,t){return e=KO(e),ir(e.getUTCFullYear()%100,t,2)}function Pce(e,t){return ir(e.getUTCFullYear()%1e4,t,4)}function Ace(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ql(e):Ql.ceil(e),ir(e.getUTCFullYear()%1e4,t,4)}function Dce(){return"+0000"}function vM(){return"%"}function yM(e){return+e}function bM(e){return Math.floor(+e/1e3)}var Ml,JO,QO;Ece({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 Ece(e){return Ml=Eue(e),JO=Ml.format,Ml.parse,QO=Ml.utcFormat,Ml.utcParse,Ml}function Rce(e){return new Date(e)}function Lce(e){return e instanceof Date?+e:+new Date(+e)}function gx(e,t,n,i,s,o,a,r,l,c){var u=qO(),f=u.invert,d=u.domain,h=c(".%L"),p=c(":%S"),g=c("%I:%M"),y=c("%I %p"),v=c("%a %d"),m=c("%b %d"),b=c("%B"),w=c("%Y");function _(x){return(l(x)=1?(n=1,t-1):Math.floor(n*t),s=e[i],o=e[i+1],a=i>0?e[i-1]:2*s-o,r=in&&(o=t.slice(n,o),r[a]?r[a]+=o:r[++a]=o),(i=i[0])===(s=s[0])?r[a]?r[a]+=s:r[++a]=s:(r[++a]=null,l.push({i:a,x:ay(i,s)})),n=R0.lastIndex;return n-1}var xx=yfe;function bfe(e,t,n){for(var i=-1,s=e==null?0:e.length;++i=Cfe&&(o=Sfe,a=!1,t=new wfe(t));e:for(;++sRo)if(!(Math.abs(u*r-l*c)>Ro)||!s)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var d=n-o,h=i-a,p=r*r+l*l,g=d*d+h*h,y=Math.sqrt(p),v=Math.sqrt(f),m=s*Math.tan((oy-Math.acos((p+f-g)/(2*y*v)))/2),b=m/v,w=m/y;Math.abs(b-1)>Ro&&(this._+="L"+(e+b*c)+","+(t+b*u)),this._+="A"+s+","+s+",0,0,"+ +(u*d>c*h)+","+(this._x1=e+w*r)+","+(this._y1=t+w*l)}},arc:function(e,t,n,i,s,o){e=+e,t=+t,n=+n,o=!!o;var a=n*Math.cos(i),r=n*Math.sin(i),l=e+a,c=t+r,u=1^o,f=o?i-s:s-i;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Ro||Math.abs(this._y1-c)>Ro)&&(this._+="L"+l+","+c),n&&(f<0&&(f=f%ly+ly),f>Ife?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-r)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):f>Ro&&(this._+="A"+n+","+n+",0,"+ +(f>=oy)+","+u+","+(this._x1=e+n*Math.cos(s))+","+(this._y1=t+n*Math.sin(s))))},rect:function(e,t,n,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};function ga(e){return function(){return e}}var wM=1e-12;function f7(e){this._context=e}f7.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 Tx(e){return new f7(e)}function d7(e){return e[0]}function h7(e){return e[1]}function p7(){var e=d7,t=h7,n=ga(!0),i=null,s=Tx,o=null;function a(r){var l,c=r.length,u,f=!1,d;for(i==null&&(o=s(d=_x())),l=0;l<=c;++l)!(l=d;--h)r.point(m[h],b[h]);r.lineEnd(),r.areaEnd()}y&&(m[f]=+e(g,f,u),b[f]=+n(g,f,u),r.point(t?+t(g,f,u):m[f],i?+i(g,f,u):b[f]))}if(v)return r=null,v+""||null}function c(){return p7().defined(s).curve(a).context(o)}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:ga(+u),t=null,l):e},l.x0=function(u){return arguments.length?(e=typeof u=="function"?u:ga(+u),l):e},l.x1=function(u){return arguments.length?(t=u==null?null:typeof u=="function"?u:ga(+u),l):t},l.y=function(u){return arguments.length?(n=typeof u=="function"?u:ga(+u),i=null,l):n},l.y0=function(u){return arguments.length?(n=typeof u=="function"?u:ga(+u),l):n},l.y1=function(u){return arguments.length?(i=u==null?null:typeof u=="function"?u:ga(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(i)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(u){return arguments.length?(s=typeof u=="function"?u:ga(!!u),l):s},l.curve=function(u){return arguments.length?(a=u,o!=null&&(r=a(o)),l):a},l.context=function(u){return arguments.length?(u==null?o=r=null:r=a(o=u),l):o},l}var _M=Array.prototype.slice;function vo(){}function Fd(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 Ep(e){this._context=e}Ep.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:Fd(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:Fd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $fe(e){return new Ep(e)}function g7(e){this._context=e}g7.prototype={areaStart:vo,areaEnd:vo,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:Fd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jfe(e){return new g7(e)}function m7(e){this._context=e}m7.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,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Fd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nfe(e){return new m7(e)}function v7(e,t){this._basis=new Ep(e),this._beta=t}v7.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 i=e[0],s=t[0],o=e[n]-i,a=t[n]-s,r=-1,l;++r<=n;)l=r/n,this._basis.point(this._beta*e[r]+(1-this._beta)*(i+l*o),this._beta*t[r]+(1-this._beta)*(s+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const zfe=function e(t){function n(i){return t===1?new Ep(i):new v7(i,t)}return n.beta=function(i){return e(+i)},n}(.85);function $d(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 kx(e,t){this._context=e,this._k=(1-t)/6}kx.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:$d(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:$d(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 Bfe=function e(t){function n(i){return new kx(i,t)}return n.tension=function(i){return e(+i)},n}(0);function Mx(e,t){this._context=e,this._k=(1-t)/6}Mx.prototype={areaStart:vo,areaEnd:vo,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:$d(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 qfe=function e(t){function n(i){return new Mx(i,t)}return n.tension=function(i){return e(+i)},n}(0);function Sx(e,t){this._context=e,this._k=(1-t)/6}Sx.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:$d(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 Ufe=function e(t){function n(i){return new Sx(i,t)}return n.tension=function(i){return e(+i)},n}(0);function Cx(e,t,n){var i=e._x1,s=e._y1,o=e._x2,a=e._y2;if(e._l01_a>wM){var r=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*r-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,s=(s*r-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>wM){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(i,s,o,a,e._x2,e._y2)}function y7(e,t){this._context=e,this._alpha=t}y7.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,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:Cx(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 Wfe=function e(t){function n(i){return t?new y7(i,t):new kx(i,0)}return n.alpha=function(i){return e(+i)},n}(.5);function b7(e,t){this._context=e,this._alpha=t}b7.prototype={areaStart:vo,areaEnd:vo,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,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:Cx(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 Hfe=function e(t){function n(i){return t?new b7(i,t):new Mx(i,0)}return n.alpha=function(i){return e(+i)},n}(.5);function x7(e,t){this._context=e,this._alpha=t}x7.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,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:Cx(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 Vfe=function e(t){function n(i){return t?new x7(i,t):new Sx(i,0)}return n.alpha=function(i){return e(+i)},n}(.5);function w7(e){this._context=e}w7.prototype={areaStart:vo,areaEnd:vo,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 Yfe(e){return new w7(e)}function TM(e){return e<0?-1:1}function kM(e,t,n){var i=e._x1-e._x0,s=t-e._x1,o=(e._y1-e._y0)/(i||s<0&&-0),a=(n-e._y1)/(s||i<0&&-0),r=(o*s+a*i)/(i+s);return(TM(o)+TM(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(r))||0}function MM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function L0(e,t,n){var i=e._x0,s=e._y0,o=e._x1,a=e._y1,r=(o-i)/3;e._context.bezierCurveTo(i+r,s+r*t,o-r,a-r*n,o,a)}function jd(e){this._context=e}jd.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:L0(this,this._t0,MM(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,L0(this,MM(this,n=kM(this,e,t)),n);break;default:L0(this,this._t0,n=kM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function _7(e){this._context=new T7(e)}(_7.prototype=Object.create(jd.prototype)).point=function(e,t){jd.prototype.point.call(this,t,e)};function T7(e){this._context=e}T7.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,i,s,o){this._context.bezierCurveTo(t,e,i,n,o,s)}};function Gfe(e){return new jd(e)}function Xfe(e){return new _7(e)}function k7(e){this._context=e}k7.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 i=SM(e),s=SM(t),o=0,a=1;a=0;--t)s[t]=(a[t]-s[t+1])/o[t];for(o[n-1]=(e[n]+s[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 Kfe(e){return new Rp(e,.5)}function Jfe(e){return new Rp(e,0)}function Qfe(e){return new Rp(e,1)}function es(e,t){if((a=e.length)>1)for(var n=1,i,s,o=e[t[0]],a,r=o.length;n=0;)n[t]=t;return n}function ede(e,t){return e[t]}function M7(){var e=ga([]),t=ts,n=es,i=ede;function s(o){var a=e.apply(this,arguments),r,l=o.length,c=a.length,u=new Array(c),f;for(r=0;r0){for(var n,i,s=0,o=e[0].length,a;s0)for(var n,i=0,s,o,a,r,l,c=e[t[0]].length;i0?(s[0]=a,s[1]=a+=o):o<0?(s[1]=r,s[0]=r+=o):(s[0]=0,s[1]=o)}function nde(e,t){if((s=e.length)>0){for(var n=0,i=e[t[0]],s,o=i.length;n0)||!((o=(s=e[t[0]]).length)>0))){for(var n=0,i=1,s,o,a;io&&(o=s,n=t);return n}function S7(e){var t=e.map(C7);return ts(e).sort(function(n,i){return t[n]-t[i]})}function C7(e){for(var t=0,n=-1,i=e.length,s;++nm&&(m=c),x=y*y*_,b=Math.max(m/x,x/v),b>w){y-=c;break}w=b}a.push(l={value:y,dice:h1?i:1)},n}(O7);function cde(e,t,n,i,s){var o=e.children,a,r=o.length,l,c=new Array(r+1);for(c[0]=l=a=0;a=d-1){var m=o[f];m.x0=p,m.y0=g,m.x1=y,m.y1=v;return}for(var b=c[f],w=h/2+b,_=f+1,x=d-1;_>>1;c[k]v-g){var S=(p*M+y*T)/h;u(f,_,T,p,g,S,v),u(_,d,M,S,g,y,v)}else{var C=(g*M+v*T)/h;u(f,_,T,p,g,y,C),u(_,d,M,p,C,y,v)}}}function fde(e,t,n,i,s){(e.depth&1?Ip:Lp)(e,t,n,i,s)}const dde=function e(t){function n(i,s,o,a,r){if((l=i._squarify)&&l.ratio===t)for(var l,c,u,f,d=-1,h,p=l.length,g=i.value;++d1?i:1)},n}(O7);var I0=new Date,F0=new Date;function ua(e,t,n,i){function s(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return s.floor=function(o){return e(o=new Date(+o)),o},s.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},s.round=function(o){var a=s(o),r=s.ceil(o);return o-a0))return l;do l.push(c=new Date(+o)),t(o,r),e(o);while(c=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,r){if(a>=a)if(r<0)for(;++r<=0;)for(;t(a,-1),!o(a););else for(;--r>=0;)for(;t(a,1),!o(a););})},n&&(s.count=function(o,a){return I0.setTime(+o),F0.setTime(+a),e(I0),e(F0),Math.floor(n(I0,F0))},s.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?s.filter(i?function(a){return i(a)%o===0}:function(a){return s.count(0,a)%o===0}):s}),s}var gc=ua(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});gc.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}):gc};gc.range;var Nd=1e3,Zo=6e4,zd=36e5,A7=864e5,D7=6048e5,uy=ua(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Nd)},function(e,t){return(t-e)/Nd},function(e){return e.getUTCSeconds()});uy.range;var E7=ua(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nd)},function(e,t){e.setTime(+e+t*Zo)},function(e,t){return(t-e)/Zo},function(e){return e.getMinutes()});E7.range;var R7=ua(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nd-e.getMinutes()*Zo)},function(e,t){e.setTime(+e+t*zd)},function(e,t){return(t-e)/zd},function(e){return e.getHours()});R7.range;var Fp=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())*Zo)/A7},function(e){return e.getDate()-1});Fp.range;function hl(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())*Zo)/D7})}var Bd=hl(0),mc=hl(1),L7=hl(2),I7=hl(3),Ko=hl(4),F7=hl(5),$7=hl(6);Bd.range;mc.range;L7.range;I7.range;Ko.range;F7.range;$7.range;var j7=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()});j7.range;var yo=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()});yo.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)})};yo.range;var N7=ua(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Zo)},function(e,t){return(t-e)/Zo},function(e){return e.getUTCMinutes()});N7.range;var z7=ua(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*zd)},function(e,t){return(t-e)/zd},function(e){return e.getUTCHours()});z7.range;var $p=ua(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/A7},function(e){return e.getUTCDate()-1});$p.range;function pl(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)/D7})}var qd=pl(0),vc=pl(1),B7=pl(2),q7=pl(3),Jo=pl(4),U7=pl(5),W7=pl(6);qd.range;vc.range;B7.range;q7.range;Jo.range;U7.range;W7.range;var H7=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()});H7.range;var bo=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()});bo.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)})};bo.range;function $0(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 j0(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 Mu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function hde(e){var t=e.dateTime,n=e.date,i=e.time,s=e.periods,o=e.days,a=e.shortDays,r=e.months,l=e.shortMonths,c=Su(s),u=Cu(s),f=Su(o),d=Cu(o),h=Su(a),p=Cu(a),g=Su(r),y=Cu(r),v=Su(l),m=Cu(l),b={a:P,A:z,b:B,B:N,c:null,d:EM,e:EM,f:Fde,g:Vde,G:Gde,H:Rde,I:Lde,j:Ide,L:V7,m:$de,M:jde,p:j,q:$,Q:IM,s:FM,S:Nde,u:zde,U:Bde,V:qde,w:Ude,W:Wde,x:null,X:null,y:Hde,Y:Yde,Z:Xde,"%":LM},w={a:E,A:U,b:G,B:L,c:null,d:RM,e:RM,f:Qde,g:uhe,G:fhe,H:Zde,I:Kde,j:Jde,L:G7,m:ehe,M:the,p:q,q:W,Q:IM,s:FM,S:nhe,u:rhe,U:ahe,V:ihe,w:ohe,W:lhe,x:null,X:null,y:she,Y:che,Z:dhe,"%":LM},_={a:S,A:C,b:A,B:D,c:O,d:AM,e:AM,f:Pde,g:PM,G:OM,H:DM,I:DM,j:Mde,L:Ode,m:kde,M:Sde,p:M,q:Tde,Q:Dde,s:Ede,S:Cde,u:yde,U:bde,V:xde,w:vde,W:wde,x:R,X:F,y:PM,Y:OM,Z:_de,"%":Ade};b.x=x(n,b),b.X=x(i,b),b.c=x(t,b),w.x=x(n,w),w.X=x(i,w),w.c=x(t,w);function x(V,te){return function(ee){var H=[],Q=-1,Y=0,Z=V.length,X,re,ie;for(ee instanceof Date||(ee=new Date(+ee));++Q53)return null;"w"in H||(H.w=1),"Z"in H?(Y=j0(Mu(H.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?vc.ceil(Y):vc(Y),Y=$p.offset(Y,(H.V-1)*7),H.y=Y.getUTCFullYear(),H.m=Y.getUTCMonth(),H.d=Y.getUTCDate()+(H.w+6)%7):(Y=$0(Mu(H.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?mc.ceil(Y):mc(Y),Y=Fp.offset(Y,(H.V-1)*7),H.y=Y.getFullYear(),H.m=Y.getMonth(),H.d=Y.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),Z="Z"in H?j0(Mu(H.y,0,1)).getUTCDay():$0(Mu(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(Z+5)%7:H.w+H.U*7-(Z+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,j0(H)):$0(H)}}function T(V,te,ee,H){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 CM?te.charAt(Q++):X],!re||(H=re(V,ee,H))<0)return-1}else if(X!=ee.charCodeAt(H++))return-1}return H}function M(V,te,ee){var H=c.exec(te.slice(ee));return H?(V.p=u[H[0].toLowerCase()],ee+H[0].length):-1}function S(V,te,ee){var H=h.exec(te.slice(ee));return H?(V.w=p[H[0].toLowerCase()],ee+H[0].length):-1}function C(V,te,ee){var H=f.exec(te.slice(ee));return H?(V.w=d[H[0].toLowerCase()],ee+H[0].length):-1}function A(V,te,ee){var H=v.exec(te.slice(ee));return H?(V.m=m[H[0].toLowerCase()],ee+H[0].length):-1}function D(V,te,ee){var H=g.exec(te.slice(ee));return H?(V.m=y[H[0].toLowerCase()],ee+H[0].length):-1}function O(V,te,ee){return T(V,t,te,ee)}function R(V,te,ee){return T(V,n,te,ee)}function F(V,te,ee){return T(V,i,te,ee)}function P(V){return a[V.getDay()]}function z(V){return o[V.getDay()]}function B(V){return l[V.getMonth()]}function N(V){return r[V.getMonth()]}function j(V){return s[+(V.getHours()>=12)]}function $(V){return 1+~~(V.getMonth()/3)}function E(V){return a[V.getUTCDay()]}function U(V){return o[V.getUTCDay()]}function G(V){return l[V.getUTCMonth()]}function L(V){return r[V.getUTCMonth()]}function q(V){return s[+(V.getUTCHours()>=12)]}function W(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=x(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=x(V+="",w);return te.toString=function(){return V},te},utcParse:function(V){var te=k(V+="",!0);return te.toString=function(){return V},te}}}var CM={"-":"",_:" ",0:"0"},ca=/^\s*\d+/,pde=/^%/,gde=/[\\^$*+?|[\]().{}]/g;function or(e,t,n){var i=e<0?"-":"",s=(i?-e:e)+"",o=s.length;return i+(o68?1900:2e3),n+i[0].length):-1}function _de(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Tde(e,t,n){var i=ca.exec(t.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function kde(e,t,n){var i=ca.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function AM(e,t,n){var i=ca.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Mde(e,t,n){var i=ca.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function DM(e,t,n){var i=ca.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Sde(e,t,n){var i=ca.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function Cde(e,t,n){var i=ca.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Ode(e,t,n){var i=ca.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Pde(e,t,n){var i=ca.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function Ade(e,t,n){var i=pde.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function Dde(e,t,n){var i=ca.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Ede(e,t,n){var i=ca.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function EM(e,t){return or(e.getDate(),t,2)}function Rde(e,t){return or(e.getHours(),t,2)}function Lde(e,t){return or(e.getHours()%12||12,t,2)}function Ide(e,t){return or(1+Fp.count(yo(e),e),t,3)}function V7(e,t){return or(e.getMilliseconds(),t,3)}function Fde(e,t){return V7(e,t)+"000"}function $de(e,t){return or(e.getMonth()+1,t,2)}function jde(e,t){return or(e.getMinutes(),t,2)}function Nde(e,t){return or(e.getSeconds(),t,2)}function zde(e){var t=e.getDay();return t===0?7:t}function Bde(e,t){return or(Bd.count(yo(e)-1,e),t,2)}function Y7(e){var t=e.getDay();return t>=4||t===0?Ko(e):Ko.ceil(e)}function qde(e,t){return e=Y7(e),or(Ko.count(yo(e),e)+(yo(e).getDay()===4),t,2)}function Ude(e){return e.getDay()}function Wde(e,t){return or(mc.count(yo(e)-1,e),t,2)}function Hde(e,t){return or(e.getFullYear()%100,t,2)}function Vde(e,t){return e=Y7(e),or(e.getFullYear()%100,t,2)}function Yde(e,t){return or(e.getFullYear()%1e4,t,4)}function Gde(e,t){var n=e.getDay();return e=n>=4||n===0?Ko(e):Ko.ceil(e),or(e.getFullYear()%1e4,t,4)}function Xde(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+or(t/60|0,"0",2)+or(t%60,"0",2)}function RM(e,t){return or(e.getUTCDate(),t,2)}function Zde(e,t){return or(e.getUTCHours(),t,2)}function Kde(e,t){return or(e.getUTCHours()%12||12,t,2)}function Jde(e,t){return or(1+$p.count(bo(e),e),t,3)}function G7(e,t){return or(e.getUTCMilliseconds(),t,3)}function Qde(e,t){return G7(e,t)+"000"}function ehe(e,t){return or(e.getUTCMonth()+1,t,2)}function the(e,t){return or(e.getUTCMinutes(),t,2)}function nhe(e,t){return or(e.getUTCSeconds(),t,2)}function rhe(e){var t=e.getUTCDay();return t===0?7:t}function ahe(e,t){return or(qd.count(bo(e)-1,e),t,2)}function X7(e){var t=e.getUTCDay();return t>=4||t===0?Jo(e):Jo.ceil(e)}function ihe(e,t){return e=X7(e),or(Jo.count(bo(e),e)+(bo(e).getUTCDay()===4),t,2)}function ohe(e){return e.getUTCDay()}function lhe(e,t){return or(vc.count(bo(e)-1,e),t,2)}function she(e,t){return or(e.getUTCFullYear()%100,t,2)}function uhe(e,t){return e=X7(e),or(e.getUTCFullYear()%100,t,2)}function che(e,t){return or(e.getUTCFullYear()%1e4,t,4)}function fhe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Jo(e):Jo.ceil(e),or(e.getUTCFullYear()%1e4,t,4)}function dhe(){return"+0000"}function LM(){return"%"}function IM(e){return+e}function FM(e){return Math.floor(+e/1e3)}var Sl,Px,Z7,K7;hhe({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 hhe(e){return Sl=hde(e),Px=Sl.format,Z7=Sl.parse,Sl.utcFormat,K7=Sl.utcParse,Sl}var Ou={},Pu={},$M;function phe(){if($M)return Pu;$M=1,Pu.__esModule=!0,Pu.default=void 0;var e=function(i){if(typeof i=="string")return i;if(i)return i.displayName||i.name||"Component"},t=e;return Pu.default=t,Pu}var jM;function Ms(){if(jM)return Ou;jM=1;var e=Rn;Ou.__esModule=!0,Ou.default=void 0;var t=e(phe()),n=function(o,a){return a+"("+(0,t.default)(o)+")"},i=n;return Ou.default=i,Ou}var Xi={},Au={},NM;function J7(){if(NM)return Au;NM=1,Au.__esModule=!0,Au.default=void 0;var e=function(i,s){return function(o){return o[i]=s,o}},t=e;return Au.default=t,Au}var ghe=Rn;Xi.__esModule=!0;var Ax=Xi.default=void 0,mhe=ghe(J7()),vhe=function(t){return(0,mhe.default)("displayName",t)},yhe=vhe;Ax=Xi.default=yhe;var Du={},zM;function bhe(){if(zM)return Du;zM=1;var e=Rn;Du.__esModule=!0,Du.default=void 0;var t=je;e(Xi),e(Ms());var n=function(o){return function(a){var r=(0,t.createFactory)(a),l=function(u){return r(o(u))};return l}},i=n;return Du.default=i,Du}var jp=Rn;jp(xr());jp(Ms());jp(Xi);jp(bhe());function xhe(e,t){for(var n=-1,i=e==null?0:e.length;++nr))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,h=n&She?new _he:void 0;for(o.set(e,t),o.set(t,e);++f1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Dme,`{ +/* [wrapped with `+t+`] */ +`)}var Rme=Eme;function Lme(e,t){for(var n=-1,i=e==null?0:e.length;++n1&&m.reverse(),u&&l0&&n(r)?t>1?DP(r,t-1,n,i,s):uye(s,r):i||(s[s.length]=r)}return s}var Nx=DP,fye=Nx;function dye(e){var t=e==null?0:e.length;return t?fye(e,1):[]}var hye=dye,pye=hye,gye=OO,mye=Kb;function vye(e){return mye(gye(e,void 0,pye),e+"")}var EP=vye,yye=aye,bye=EP,xye=bye(function(e,t){return e==null?{}:yye(e,t)}),wye=xye;const _ye=lr(wye);var qo=function(){};function Qo(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return je.useMemo(function(){var s=Xye({},my,i);return{margin:s,innerWidth:t-s.left-s.right,innerHeight:n-s.top-s.bottom,outerWidth:t,outerHeight:n}},[t,n,i.top,i.right,i.bottom,i.left])},Kye=function(t){return je.useMemo(function(){return IP(LP,t)},[t])},Jye=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?Px(t.slice("5")):ks(t):function(n){return n}},yc=function(t){return je.useMemo(function(){return Jye(t)},[t])},Bx=je.createContext(),Qye={},jP=function(t){var n=t.theme,i=n===void 0?Qye:n,s=t.children,o=Kye(i);return et.createElement(Bx.Provider,{value:o},s)};jP.propTypes={children:oe.node.isRequired,theme:oe.object};var Zr=function(){return je.useContext(Bx)};function Hf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hf=function(n){return typeof n}:Hf=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hf(e)}function vy(){return vy=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function n1e(e,t){if(e==null)return{};var n={},i=Object.keys(e),s,o;for(o=0;o=0)&&(n[s]=e[s]);return n}function r1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a1e(e,t){for(var n=0;n"u"||l[c].value!==this.newInters[c].value)&&(this.newInters[c]=l[c],this.stepValues[c]=this.currentStepValues[c]+1,this.stepInterpolators[c]=this.newInters[c].interpolator(this.oldValues[c],this.newInters[c].value)),l[c]=Pn(this.stepValues[c],this.newInters[c].config));return et.createElement(zi,vy({},r,{style:l}),function(u){var f={};for(var d in u)if(i.stepValues[d]){i.currentStepValues[d]=u[d];var h=i.currentStepValues[d]-i.stepValues[d]+1;i.oldValues[d]=f[d]=i.stepInterpolators[d](h)}return a(e1e({},u,f))})}}]),t}(je.PureComponent);Fo(Hp,"propTypes",{children:oe.func.isRequired,style:oe.func.isRequired});var NP=je.createContext(),Vp=function(t){var n=t.children,i=t.animate,s=t.stiffness,o=t.damping,a=je.useMemo(function(){return{animate:i,springConfig:{stiffness:s,damping:o}}},[i,s,o]);return et.createElement(NP.Provider,{value:a},n)};Vp.propTypes={children:oe.node.isRequired,animate:oe.bool.isRequired,stiffness:oe.number.isRequired,damping:oe.number.isRequired};Vp.defaultProps={animate:!0,stiffness:90,damping:15};var ja=function(){return je.useContext(NP)};function u1e(e){for(var t=1;t0&&a>0;return et.createElement(uc,{bounds:!0,onResize:function(c){i.setState({dimensions:c.bounds})}},function(l){var c=l.measureRef;return et.createElement("div",{ref:c,style:{width:"100%",height:"100%"}},r&&i.props.children({width:o,height:a}))})}}]),t}(je.Component);BP(Gp,"propTypes",{children:oe.func.isRequired});var qP=function(t){var n=t.id,i=t.colors;return et.createElement("linearGradient",{id:n,x1:0,x2:0,y1:0,y2:1},i.map(function(s){var o=s.offset,a=s.color,r=s.opacity;return et.createElement("stop",{key:o,offset:"".concat(o,"%"),stopColor:a,stopOpacity:r!==void 0?r:1})}))};qP.propTypes={id:oe.string.isRequired,colors:oe.arrayOf(oe.shape({offset:oe.number.isRequired,color:oe.string.isRequired})).isRequired};var UP={linearGradient:qP},Xp=je.memo(function(e){var t=e.id,n=e.background,i=e.color,s=e.size,o=e.padding,a=e.stagger,r=s+o,l=s/2,c=o/2;return a===!0&&(r=s*2+o*2),et.createElement("pattern",{id:t,width:r,height:r,patternUnits:"userSpaceOnUse"},et.createElement("rect",{width:r,height:r,fill:n}),et.createElement("circle",{cx:c+l,cy:c+l,r:l,fill:i}),a&&et.createElement("circle",{cx:o*1.5+s+l,cy:o*1.5+s+l,r:l,fill:i}))});Xp.displayName="PatternDots";Xp.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};Xp.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var _y=function(t){return t*Math.PI/180},_1e=function(t){return 180*t/Math.PI},T1e=function(t,n){return{x:Math.cos(t)*n,y:Math.sin(t)*n}},k1e=function(t){var n=t%360;return n<0&&(n+=360),n},M1e={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"}}},Zp=je.memo(function(e){var t=e.id,n=e.spacing,i=e.rotation,s=e.background,o=e.color,a=e.lineWidth,r=Math.round(i)%360,l=Math.abs(n);r>180?r=r-360:r>90?r=r-180:r<-180?r=r+360:r<-90&&(r=r+180);var c=l,u=l,f;return r===0?f=` + M 0 0 L `.concat(c,` 0 + M 0 `).concat(u," L ").concat(c," ").concat(u,` + `):r===90?f=` + M 0 0 L 0 `.concat(u,` + M `).concat(c," 0 L ").concat(c," ").concat(u,` + `):(c=Math.abs(l/Math.sin(_y(r))),u=l/Math.sin(_y(90-r)),r>0?f=` + M 0 `.concat(-u," L ").concat(c*2," ").concat(u,` + M `).concat(-c," ").concat(-u," L ").concat(c," ").concat(u,` + M `).concat(-c," 0 L ").concat(c," ").concat(u*2,` + `):f=` + M `.concat(-c," ").concat(u," L ").concat(c," ").concat(-u,` + M `).concat(-c," ").concat(u*2," L ").concat(c*2," ").concat(-u,` + M 0 `).concat(u*2," L ").concat(c*2,` 0 + `)),et.createElement("pattern",{id:t,width:c,height:u,patternUnits:"userSpaceOnUse"},et.createElement("rect",{width:c,height:u,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),et.createElement("path",{d:f,strokeWidth:a,stroke:o,strokeLinecap:"square"}))});Zp.displayName="PatternLines";Zp.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};Zp.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var Kp=je.memo(function(e){var t=e.id,n=e.background,i=e.color,s=e.size,o=e.padding,a=e.stagger,r=s+o,l=o/2;return a===!0&&(r=s*2+o*2),et.createElement("pattern",{id:t,width:r,height:r,patternUnits:"userSpaceOnUse"},et.createElement("rect",{width:r,height:r,fill:n}),et.createElement("rect",{x:l,y:l,width:s,height:s,fill:i}),a&&et.createElement("rect",{x:o*1.5+s,y:o*1.5+s,width:s,height:s,fill:i}))});Kp.displayName="PatternSquares";Kp.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};Kp.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var WP={patternDots:Xp,patternLines:Zp,patternSquares:Kp};function S1e(e,t){if(e==null)return{};var n=C1e(e,t),i,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function C1e(e,t){if(e==null)return{};var n={},i=Object.keys(e),s,o;for(o=0;o=0)&&(n[s]=e[s]);return n}function HP(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,n=t===void 0?"theme":t,i=e.destKey,s=i===void 0?"theme":i;return gl(zp(RS({},n,oe.object)),xa([n],function(o){return RS({},s,IP(LP,o[n]))}))};function Yf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yf=function(n){return typeof n}:Yf=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yf(e)}function F1e(e,t){if(e==null)return{};var n=$1e(e,t),i,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function $1e(e,t){if(e==null)return{};var n={},i=Object.keys(e),s,o;for(o=0;o=0)&&(n[s]=e[s]);return n}function j1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N1e(e,t){for(var n=0;n3&&arguments[3]!==void 0?arguments[3]:{},o=s.dataKey,a=s.colorKey,r=a===void 0?"color":a,l=s.targetKey,c=l===void 0?"fill":l,u=[],f={};return t.length&&n.length&&(u=V1e(t),n.forEach(function(d){for(var h=function(v){var m=i[v],b=m.id,w=m.match;if(J1e(w,d,o)){var _=t.find(function(O){var R=O.id;return R===b});if(_){if(K1e.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var x=fo(d,r),k=_.background,T=_.color,M=b;_.background==="inherit"&&(M="".concat(M,".bg.").concat(x),k=x),_.color==="inherit"&&(M="".concat(M,".fg.").concat(x),T=x),No(d,c,"url(#".concat(M,")")),f[M]||(u.push(Y0({},_,{id:M,background:k,color:T})),f[M]=1)}else No(d,c,"url(#".concat(b,")"));else if(Z1e.includes(_.type)){var S=_.colors.map(function(O){var R=O.color;return R});if(S.includes("inherit")){var C=fo(d,r),A=b,D=Y0({},_,{colors:_.colors.map(function(O,R){return O.color!=="inherit"?O:(A="".concat(A,".").concat(R,".").concat(C),Y0({},O,{color:O.color==="inherit"?C:O.color}))})});D.id=A,No(d,c,"url(#".concat(A,")")),f[A]||(u.push(D),f[A]=1)}else No(d,c,"url(#".concat(b,")"))}}return"break"}},p=0;p0?(v=d.align.right,m=d.baseline.center):(s==="after"&&l>0||s==="before"&&l<0)&&(v=d.align.left,m=d.baseline.center)):(y=function(_){return{x:0,y:h(_)}},p.lineX=a*(s==="after"?1:-1),g.textX=(a+r)*(s==="after"?1:-1),s==="after"?v=d.align.left:v=d.align.right);var b=f.map(function(w){return abe({key:w,value:w},y(w),p,g)});return{ticks:b,textAlign:v,textBaseline:m}},aA=function(t,n){if(!t||typeof t=="function")return t;if(n.type==="time"){var i=Px(t);return function(s){return i(new Date(s))}}return ks(t)},Cy=function(t){var n=t.width,i=t.height,s=t.scale,o=t.axis,a=t.values,r=Array.isArray(a)?a:void 0,l=Qp(a)?a:void 0,c=r||nA(s,l),u=s.bandwidth?eA(s):s,f;return o==="x"?f=c.map(function(d){return{key:"".concat(d),x1:u(d),x2:u(d),y1:0,y2:i}}):o==="y"&&(f=c.map(function(d){return{key:"".concat(d),x1:0,x2:n,y1:u(d),y2:u(d)}})),f},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},wa=oe.shape(iA);function Oy(){return Oy=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"?c:0,i==="x"?0:c),t.stroke()),S.forEach(function(P){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(P.x,P.y),t.lineTo(P.x+P.lineX,P.y+P.lineY),t.stroke());var z=m!==void 0?m(P.value):P.value;t.save(),t.translate(P.x+P.textX,P.y+P.textY),t.rotate(FS(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=c):_==="middle"?(F="center",O=c/2):_==="end"&&(F="end")):(O=k,_==="start"?F="start":_==="middle"?(F="center",D=c/2):_==="end"&&(F="end",D=c)),t.translate(D,O),t.rotate(FS(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()},ybe=["top","right","bottom","left"],Kx=function(t,n){var i=n.xScale,s=n.yScale,o=n.width,a=n.height,r=n.top,l=n.right,c=n.bottom,u=n.left,f=n.theme,d={top:r,right:l,bottom:c,left:u};ybe.forEach(function(h){var p=d[h];if(!p)return null;var g=h==="top"||h==="bottom",y=h==="top"||h==="left"?"before":"after",v=g?i:s,m=aA(p.format,v);vbe(t,gbe({},p,{axis:g?"x":"y",x:h==="right"?o:0,y:h==="bottom"?a:0,scale:v,format:m,length:g?o:a,ticksPosition:y,theme:f}))})},ns=function(t,n){var i=n.width,s=n.height,o=n.scale,a=n.axis,r=n.values,l=Cy({width:i,height:s,scale:o,axis:a,values:r});l.forEach(function(c){t.beginPath(),t.moveTo(c.x1,c.y1),t.lineTo(c.x2,c.y2),t.stroke()})},eg="row",tg="column",Jx="top",Qx="top-right",e2="right",t2="bottom-right",n2="bottom",r2="bottom-left",a2="left",uA="top-left",i2="center",ng="left-to-right",rg="right-to-left",ag="top-to-bottom",ig="bottom-to-top";function bbe(e){for(var t=1;t0){var E=w.filter(function(G){var L=G.on;return L==="hover"}),U=E.reduce(function(G,L){return Jf({},G,L.style)},{});T(U)}m!==void 0&&m(a,$)},[m,a,w]),A=je.useCallback(function(){if(w.length>0){var $=w.filter(function(U){var G=U.on;return G!=="hover"}),E=$.reduce(function(U,G){return Jf({},U,G.style)},{});T(E)}b!==void 0&&b(a,event)},[b,a,w]),D=fA({direction:r,justify:l,symbolSize:k.symbolSize||h,symbolSpacing:p,width:s,height:o}),O=D.symbolX,R=D.symbolY,F=D.labelX,P=D.labelY,z=D.labelAnchor,B=D.labelAlignment,N=[v,m,b].some(function($){return $!==void 0}),j;return fc(d)?j=d:j=exe[d],et.createElement("g",{transform:"translate(".concat(n,",").concat(i,")"),style:{opacity:k.itemOpacity!==void 0?k.itemOpacity:f}},et.createElement("rect",{width:s,height:o,fill:k.itemBackground||u,style:{cursor:N?"pointer":"auto"},onClick:S,onMouseEnter:C,onMouseLeave:A}),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:g,borderColor:k.symbolBorderColor||y}),et.createElement("text",{textAnchor:z,style:Jf({},M.legends.text,{fill:k.itemTextColor||c,dominantBaseline:B,pointerEvents:"none",userSelect:"none"}),x:F,y:P},a.label))};lo.displayName="LegendSvgItem";lo.propTypes=Jf({data:sg.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},og,lg);lo.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 txe(e){for(var t=1;tt}var gxe=pxe,mxe=mA,vxe=gxe,yxe=cl;function bxe(e){return e&&e.length?mxe(e,yxe,vxe):void 0}var xxe=bxe;const yA=lr(xxe);var wxe=Math.ceil,_xe=Math.max;function Txe(e,t,n,i){for(var s=-1,o=_xe(wxe((t-e)/(n||1)),0),a=Array(o);o--;)a[i?o:++s]=e,e+=n;return a}var kxe=Txe,Mxe=kxe,Sxe=Jb,X0=OP;function Cxe(e){return function(t,n,i){return i&&typeof i!="number"&&Sxe(t,n,i)&&(n=i=void 0),t=X0(t),n===void 0?(n=t,t=0):n=X0(n),i=i===void 0?t=z2e){var c=t?null:j2e(e);if(c)return N2e(c);a=!1,s=$2e,l=new L2e}else l=t?[]:r;e:for(;++i-1}function Swe(e,t){var n=this.__data__,i=hg(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Os.prototype.clear=_we;Os.prototype.delete=Twe;Os.prototype.get=kwe;Os.prototype.has=Mwe;Os.prototype.set=Swe;function vl(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 l=zo(Qf[t.scheme][t.size||11]),c=function(h){return l(i(h))};return c.scale=l,c}if(d_e(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 u=zo(Qf[t.scheme][t.size||9]),f=function(h){return u(i(h))};return f.scale=u,f}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},jA=function(t,n){return je.useMemo(function(){return $A(t,n)},[t,n])};function p_e(e,t){return v_e(e)||m_e(e,t)||g_e()}function g_e(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function m_e(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var n=[],i=!0,s=!1,o=void 0;try{for(var a=e[Symbol.iterator](),r;!(i=(r=a.next()).done)&&(n.push(r.value),!(t&&n.length===t));i=!0);}catch(l){s=!0,o=l}finally{try{!i&&a.return!=null&&a.return()}finally{if(s)throw o}}return n}}function v_e(e){if(Array.isArray(e))return e}var ed=function(t,n){if(typeof t=="function")return function(d){return t(d)};if(RA(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 i=Yd(n,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 s=function(h){return Yd(h,t.from)};if(Array.isArray(t.modifiers)){var o=[],a=!0,r=!1,l=void 0;try{for(var c=function(){var h=f.value,p=p_e(h,2),g=p[0],y=p[1];if(g==="brighter")o.push(function(v){return v.brighter(y)});else if(g==="darker")o.push(function(v){return v.darker(y)});else if(g==="opacity")o.push(function(v){return v.opacity=y,v});else throw new Error("Invalid color modifier: '".concat(g,"', must be one of: 'brighter', 'darker', 'opacity'"))},u=t.modifiers[Symbol.iterator](),f;!(a=(f=u.next()).done);a=!0)c()}catch(d){r=!0,l=d}finally{try{!a&&u.return!=null&&u.return()}finally{if(r)throw l}}return o.length===0?s:function(d){return o.reduce(function(h,p){return p(h)},Yo(s(d))).toString()}}return s}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,n){return je.useMemo(function(){return ed(t,n)},[t,n])},_2=oe.oneOfType([oe.func,oe.arrayOf(oe.string),oe.shape({scheme:oe.oneOf(h_e).isRequired,size:oe.number}),oe.shape({datum:oe.string.isRequired}),oe.string]),y_e=oe.oneOfType([oe.func,oe.string]),J0=oe.oneOfType([oe.string,oe.func,oe.shape({theme:oe.string.isRequired}),oe.shape({from:oe.string.isRequired,modifiers:oe.arrayOf(oe.array)})]),b_e=mO,x_e=Wc;function w_e(e,t){return e&&b_e(e,t,x_e)}var __e=w_e,T_e=vs;function k_e(e,t){return function(n,i){if(n==null)return n;if(!T_e(n))return e(n,i);for(var s=n.length,o=t?s:-1,a=Object(n);(t?o--:++os?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(s);++i1),o}),Cke(e,Ake(e),n),i&&(n=kke(n,Dke|Eke|Rke,Oke));for(var s=t.length;s--;)Mke(n,t[s]);return n}),Ike=Lke;const HA=lr(Ike);var Fke=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 $ke(e){for(var t=1;t180?(_-=f,k-=f):k+=f,{points:[[y,v],[p,g],[k,T]],text:[_,x],angle:m+90}},VA=function(t){var n=t.items,i=t.annotations,s=t.getPosition,o=t.getDimensions;return je.useMemo(function(){return zke({items:n,annotations:i,getPosition:s,getDimensions:o})},[n,i,s,o])},Uke=function(t){var n=t.type,i=t.containerWidth,s=t.containerHeight,o=t.x,a=t.y,r=t.size,l=t.width,c=t.height,u=t.noteX,f=t.noteY,d=t.noteWidth,h=t.noteTextOffset;return je.useMemo(function(){return qke({type:n,containerWidth:i,containerHeight:s,x:o,y:a,size:r,width:l,height:c,noteX:u,noteY:f,noteWidth:d,noteTextOffset:h})},[n,i,s,o,a,r,l,c,u,f,d,h])};function Wke(e){for(var t=1;t0&&et.createElement("text",{x:n,y:i,style:Wke({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:o.annotations.text.outlineWidth*2,stroke:o.annotations.text.outlineColor})},s),et.createElement("text",{x:n,y:i,style:HA(o.annotations.text,["outlineWidth","outlineColor"])},s))});_c.displayName="AnnotationNote";_c.propTypes={datum:oe.object.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};_c.defaultProps={};function Vke(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:ZS({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+s.annotations.outline.outlineWidth*2,stroke:s.annotations.outline.outlineColor})}),et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:s.annotations.outline}))}):et.createElement(et.Fragment,null,s.annotations.outline.outlineWidth>0&&et.createElement("circle",{cx:t,cy:n,r:i/2,style:ZS({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+s.annotations.outline.outlineWidth*2,stroke:s.annotations.outline.outlineColor})}),et.createElement("circle",{cx:t,cy:n,r:i/2,style:s.annotations.outline}))});T2.displayName="CircleAnnotationOutline";T2.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};function KS(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:KS({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.outlineWidth*2,stroke:s.annotations.outline.outlineColor})}),et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:s.annotations.symbol}))}):et.createElement(et.Fragment,null,s.annotations.outline.outlineWidth>0&&et.createElement("circle",{cx:t,cy:n,r:i/2,style:KS({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.outlineWidth*2,stroke:s.annotations.outline.outlineColor})}),et.createElement("circle",{cx:t,cy:n,r:i/2,style:s.annotations.symbol}))});gg.displayName="DotAnnotationOutline";gg.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};gg.defaultProps={size:4};function JS(e){for(var t=1;t0&&et.createElement("rect",{x:c.x,y:c.y,width:c.width,height:c.height,style:JS({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+o.annotations.outline.outlineWidth*2,stroke:o.annotations.outline.outlineColor})}),et.createElement("rect",{x:c.x,y:c.y,width:c.width,height:c.height,style:o.annotations.outline}))}):et.createElement(et.Fragment,null,o.annotations.outline.outlineWidth>0&&et.createElement("rect",{x:t-i/2,y:n-s/2,width:i,height:s,style:JS({},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:n-s/2,width:i,height:s,style:o.annotations.outline}))});k2.displayName="RectAnnotationOutline";k2.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired};var Yc=je.memo(function(e){var t=e.datum,n=e.type,i=e.containerWidth,s=e.containerHeight,o=e.x,a=e.y,r=e.size,l=e.width,c=e.height,u=e.noteX,f=e.noteY,d=e.noteWidth,h=e.noteTextOffset,p=e.note,g=ja(),y=g.animate,v=g.springConfig,m=Uke({type:n,containerWidth:i,containerHeight:s,x:o,y:a,size:r,width:l,height:c,noteX:u,noteY:f,noteWidth:d,noteTextOffset:h});return et.createElement(et.Fragment,null,et.createElement(Tc,{points:m.points,isOutline:!0}),n==="circle"&&et.createElement(T2,{x:o,y:a,size:r}),n==="dot"&&et.createElement(gg,{x:o,y:a,size:r}),n==="rect"&&et.createElement(k2,{x:o,y:a,width:l,height:c}),et.createElement(Tc,{points:m.points}),!y&&et.createElement(_c,{x:m.text[0],y:m.text[1],note:p}),y&&et.createElement(zi,{style:{x:Pn(m.text[0],v),y:Pn(m.text[1],v)}},function(b){return et.createElement(_c,{datum:t,x:b.x,y:b.y,note:p})}))});Yc.displayName="Annotation";Yc.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};Yc.defaultProps={noteWidth:Xd.noteWidth,noteTextOffset:Xd.noteTextOffset};var mg=function(t,n,i,s){return nx().rangeRound(i).domain(t.map(n)).padding(s)};function QS(e){return Qke(e)||Jke(e)||Kke()}function Kke(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Jke(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Qke(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&(l=0)),Go().rangeRound(o).domain([l,r])},eMe=function(t){var n=t.data,i=t.getIndex,s=t.keys,o=t.minValue,a=t.maxValue,r=t.reverse,l=t.width,c=t.height,u=t.getColor,f=t.padding,d=f===void 0?0:f,h=t.innerPadding,p=h===void 0?0:h,g=mg(n,i,[0,l],d),y=r?[0,c]:[c,0],v=YA(n,s,o,a,y),m=(g.bandwidth()-p*(s.length-1))/s.length,b=v(0),w=function(T){return T>0?v(T):b},_=function(T,M){return T>0?b-M:v(T)-b};r&&(w=function(T){return T<0?v(T):b},_=function(T,M){return T<0?b-M:v(T)-b});var x=[];return m>0&&s.forEach(function(k,T){bA(g.domain().length).forEach(function(M){var S=g(i(n[M]))+m*T+p*T,C=w(n[M][k]),A=_(n[M][k],C);if(m>0&&A>0){var D={id:k,value:n[M][k],index:M,indexValue:i(n[M]),data:n[M]};x.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:S,y:C,width:m,height:A,color:u(D)})}})}),{xScale:g,yScale:v,bars:x}},tMe=function(t){var n=t.data,i=t.getIndex,s=t.keys,o=t.minValue,a=t.maxValue,r=t.reverse,l=t.width,c=t.height,u=t.getColor,f=t.padding,d=f===void 0?0:f,h=t.innerPadding,p=h===void 0?0:h,g=r?[l,0]:[0,l],y=YA(n,s,o,a,g),v=mg(n,i,[c,0],d),m=(v.bandwidth()-p*(s.length-1))/s.length,b=y(0),w=function(T){return T>0?b:y(T)},_=function(T,M){return T>0?y(T)-b:b-M};r&&(w=function(T){return T<0?b:y(T)},_=function(T,M){return T<0?y(T)-b:b-M});var x=[];return m>0&&s.forEach(function(k,T){bA(v.domain().length).forEach(function(M){var S=w(n[M][k]),C=v(i(n[M]))+m*T+p*T,A=_(n[M][k],S);if(A>0){var D={id:k,value:n[M][k],index:M,indexValue:i(n[M]),data:n[M]};x.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:S,y:C,width:A,height:m,color:u(D)})}})}),{xScale:y,yScale:v,bars:x}},GA=function(t){return t.layout==="vertical"?eMe(t):tMe(t)},XA=function(t,n,i,s){var o=Fxe(t,2),a=n;a==="auto"&&(a=vA(o));var r=i;return r==="auto"&&(r=yA(o)),Go().rangeRound(s).domain([a,r])},nMe=function(t){var n=t.data,i=t.getIndex,s=t.keys,o=t.minValue,a=t.maxValue,r=t.reverse,l=t.width,c=t.height,u=t.getColor,f=t.padding,d=f===void 0?0:f,h=t.innerPadding,p=h===void 0?0:h,g=M7().keys(s).offset(Ox)(n),y=mg(n,i,[0,l],d),v=r?[0,c]:[c,0],m=XA(g,o,a,v),b=[],w=y.bandwidth(),_=function(T){return m(T[1])},x=function(T,M){return m(T[0])-M};return r&&(_=function(T){return m(T[0])},x=function(T,M){return m(T[1])-M}),w>0&&g.forEach(function(k){y.domain().forEach(function(T,M){var S=k[M],C=y(i(S.data)),A=_(S),D=x(S,A);if(p>0&&(A+=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:A,width:w,height:D,color:u(O)})}})}),{xScale:y,yScale:m,bars:b}},rMe=function(t){var n=t.data,i=t.getIndex,s=t.keys,o=t.minValue,a=t.maxValue,r=t.reverse,l=t.width,c=t.height,u=t.getColor,f=t.padding,d=f===void 0?0:f,h=t.innerPadding,p=h===void 0?0:h,g=M7().keys(s).offset(Ox)(n),y=r?[l,0]:[0,l],v=XA(g,o,a,y),m=mg(n,i,[c,0],d),b=[],w=m.bandwidth(),_=function(T){return v(T[0])},x=function(T,M){return v(T[1])-M};return r&&(_=function(T){return v(T[1])},x=function(T,M){return v(T[0])-M}),w>0&&g.forEach(function(k){m.domain().forEach(function(T,M){var S=k[M],C=m(i(S.data)),A={id:k.key,value:S.data[k.key],index:M,indexValue:T,data:S.data},D=_(S),O=x(S,D);p>0&&(D+=p*.5,O-=p),O>0&&b.push({key:"".concat(k.key,".").concat(T),data:A,x:D,y:C,width:O,height:w,color:u(A)})})}),{xScale:v,yScale:m,bars:b}},ZA=function(t){return t.layout==="vertical"?nMe(t):rMe(t)},aMe=function(t,n,i,s,o){var a=xc(t.map(function(r){return{id:r.data.id,label:r.data.id,color:r.color,fill:r.data.fill}}),function(r){var l=r.id;return l});return(n==="vertical"&&s==="stacked"&&i==="column"&&o!==!0||n==="horizontal"&&s==="stacked"&&o===!0)&&a.reverse(),a},iMe=function(t){return xc(t.map(function(n){return{id:n.data.indexValue,label:n.data.indexValue,color:n.color,fill:n.data.fill}}),function(n){var i=n.id;return i})},oMe=function(t){var n=t.from,i=t.bars,s=t.layout,o=t.direction,a=t.groupMode,r=t.reverse;return n==="indexes"?iMe(i):aMe(i,s,o,a,r)};function Ny(e){for(var t=1;t0&&ce0&&ye0&&(this.ctx.lineWidth=M.grid.line.strokeWidth,this.ctx.strokeStyle=M.grid.line.stroke,O&&ns(this.ctx,{width:u,height:f,scale:B.xScale,axis:"x",values:R}),F&&ns(this.ctx,{width:u,height:f,scale:B.yScale,axis:"y",values:P})),this.ctx.strokeStyle="#dddddd";var N=xc(B.bars.map(function($){return{id:$.data.id,label:$.data.id,color:$.color,fill:$.data.fill}}).reverse(),function($){var E=$.id;return E}),j=xc(B.bars.map(function($){return{id:$.data.indexValue,label:$.data.indexValue,color:$.color,fill:$.data.fill}}),function($){var E=$.id;return E});D.forEach(function($){var E;if($.dataFrom==="keys"?E=N:$.dataFrom==="indexes"&&(E=j),E===void 0)return null;m2(s.ctx,t5({},$,{data:E,containerWidth:u,containerHeight:f,itemTextColor:"#999",symbolSize:16,theme:M}))}),Kx(this.ctx,{xScale:B.xScale,yScale:B.yScale,width:u,height:f,top:_,right:x,bottom:k,left:T,theme:M}),B.bars.forEach(function($){var E=$.x,U=$.y,G=$.color,L=$.width,q=$.height;s.ctx.fillStyle=G,C>0&&(s.ctx.strokeStyle=A($),s.ctx.lineWidth=C),s.ctx.beginPath(),s.ctx.rect(E,U,L,q),s.ctx.fill(),C>0&&s.ctx.stroke()})}},{key:"render",value:function(){var i=this,s=this.props,o=s.outerWidth,a=s.outerHeight,r=s.pixelRatio,l=s.isInteractive,c=s.theme;return et.createElement(Yp,{isInteractive:l,theme:c,animate:!1},function(u){var f=u.showTooltip,d=u.hideTooltip;return et.createElement("canvas",{ref:function(p){i.surface=p},width:o*r,height:a*r,style:{width:o,height:a},onMouseEnter:i.handleMouseHover(f,d),onMouseMove:i.handleMouseHover(f,d),onMouseLeave:i.handleMouseLeave(d),onClick:i.handleClick})})}}]),t}(je.Component);nD.propTypes=JA;var MMe=Ax("BarCanvas")(QA(nD));function Uy(){return Uy=Object.assign||function(e){for(var t=1;t{const t=x1();return Ie.jsx(na,{sx:{maxWidth:200,height:50},children:Ie.jsx(SMe,{data:e.data[e.xField].map((n,i)=>({id:n,x:e.data[e.yField][i]})),theme:t,margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})})},OMe=CMe;var PMe=_A;function AMe(e){return e&&e.length?PMe(e):[]}var DMe=AMe;const a5=lr(DMe);var EMe=NA,RMe=vs;function LMe(e,t){var n=-1,i=RMe(e)?Array(e.length):[];return EMe(e,function(s,o,a){i[++n]=t(s,o,a)}),i}var IMe=LMe;function FMe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var $Me=FMe,i5=xs;function jMe(e,t){if(e!==t){var n=e!==void 0,i=e===null,s=e===e,o=i5(e),a=t!==void 0,r=t===null,l=t===t,c=i5(t);if(!r&&!c&&!o&&e>t||o&&a&&l&&!r&&!c||i&&a&&l||!n&&l||!s)return 1;if(!i&&!o&&!c&&e=r)return l;var c=n[i];return l*(c=="desc"?-1:1)}}return e.index-t.index}var qMe=BMe,Q0=np,UMe=zc,WMe=v2,HMe=IMe,VMe=$Me,YMe=ys,GMe=qMe,XMe=cl,ZMe=Oa;function KMe(e,t,n){t.length?t=Q0(t,function(o){return ZMe(o)?function(a){return UMe(a,o.length===1?o[0]:o)}:o}):t=[XMe];var i=-1;t=Q0(t,YMe(WMe));var s=HMe(e,function(o,a,r){var l=Q0(t,function(c){return c(o)});return{criteria:l,index:++i,value:o}});return VMe(s,function(o,a){return GMe(o,a,n)})}var JMe=KMe,QMe=Nx,eSe=JMe,tSe=tp,o5=Jb,nSe=tSe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&o5(e,t[0],t[1])?t=[]:n>2&&o5(t[0],t[1],t[2])&&(t=[t[0]]),eSe(e,QMe(t,1),[])}),rSe=nSe;const aSe=lr(rSe);var iSe=Gi,oSe=Va,lSe="[object Date]";function sSe(e){return oSe(e)&&iSe(e)==lSe}var uSe=sSe,cSe=uSe,fSe=ys,l5=ep,s5=l5&&l5.isDate,dSe=s5?fSe(s5):cSe,hSe=dSe;const pSe=lr(hSe);var gSe=function(t,n,i,s){var o=t.axis,a=t.min,r=a===void 0?0:a,l=t.max,c=l===void 0?"auto":l,u=t.stacked,f=u===void 0?!1:u,d=t.reverse,h=d===void 0?!1:d,p=n[o],g=o==="x"?i:s,y=r;r==="auto"&&(y=f===!0?p.minStacked:p.min);var v=c;c==="auto"&&(v=f===!0?p.maxStacked:p.max);var m=Go().rangeRound(o==="x"?[0,g]:[g,0]);return h===!0?m.domain([v,y]):m.domain([y,v]),m.type="linear",m.stacked=f,m},mSe={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},vSe=function(t,n,i,s){var o=t.axis,a=t.base,r=a===void 0?10:a,l=t.min,c=l===void 0?"auto":l,u=t.max,f=u===void 0?"auto":u,d=n[o],h=o==="x"?i:s,p=d.all.some(function(w){return w===0}),g,y=!1;if(d.all.forEach(function(w){y!==!0&&(g===void 0?g=Math.sign(w):Math.sign(w)!==g&&(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=c;c==="auto"&&(v=d.min);var m=f;f==="auto"&&(m=d.max);var b=VO().domain([v,m]).rangeRound(o==="x"?[0,h]:[h,0]).base(r).nice();return b.type="log",b},ySe={type:oe.oneOf(["log"]).isRequired,base:oe.number,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number])},bSe=function(t,n,i,s){var o=t.axis,a=n[o],r=o==="x"?i:s,l=Cse().range([0,r]).domain(a.all);return l.type="point",l},xSe={type:oe.oneOf(["point"]).isRequired},Ri;function Ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M2="millisecond",rD="second",aD="minute",iD="hour",oD="day",lD="month",sD="year",wSe=[M2,rD,aD,iD,oD,lD,sD],Cl=[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)}],_Se=(Ri={},Ao(Ri,M2,[]),Ao(Ri,rD,Cl.slice(0,1)),Ao(Ri,aD,Cl.slice(0,2)),Ao(Ri,iD,Cl.slice(0,3)),Ao(Ri,oD,Cl.slice(0,4)),Ao(Ri,lD,Cl.slice(0,5)),Ao(Ri,sD,Cl.slice(0,6)),Ri),TSe=function(t){return function(n){return _Se[t].forEach(function(i){i(n)}),n}},uD=function(t){var n=t.format,i=n===void 0?"native":n,s=t.precision,o=s===void 0?"millisecond":s,a=t.useUTC,r=a===void 0?!0:a,l=TSe(o);if(i==="native")return function(u){return l(u)};var c=r?K7(i):Z7(i);return function(u){return l(c(u))}},kSe=function(t,n,i,s){var o=t.axis,a=t.format,r=a===void 0?"native":a,l=t.precision,c=l===void 0?M2:l,u=t.min,f=u===void 0?"auto":u,d=t.max,h=d===void 0?"auto":d,p=t.useUTC,g=p===void 0?!0:p,y=n[o],v=o==="x"?i:s,m=uD({format:r,precision:c,useUTC:g}),b=f;f==="auto"?b=y.min:r!=="native"&&(b=m(f));var w=h;h==="auto"?w=y.max:r!=="native"&&(w=m(h));var _=g?Fce():Ice();return _.domain([b,w]).range([0,v]),_.type="time",_.useUTC=g,_},MSe={type:oe.oneOf(["time"]).isRequired,format:oe.string,precision:oe.oneOf(wSe)};function Kd(e){return OSe(e)||CSe(e)||SSe()}function SSe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function CSe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function OSe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},o=s.getValue,a=o===void 0?function(h){return h.data[n]}:o,r=s.setValue,l=r===void 0?function(h,p){h.data[n]=p}:r;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 c=uD(i);t.forEach(function(h){h.data.forEach(function(p){l(p,a(p)===null?null:c(a(p)))})})}var u=[];t.forEach(function(h){h.data.forEach(function(p){u.push(a(p))})});var f,d;return i.type==="linear"?(u=a5(u),u=aSe(u,function(h){return h}),f=Math.min.apply(Math,Kd(u)),d=Math.max.apply(Math,Kd(u))):i.type==="time"?(u=xc(u,function(h){return h.getTime()}),u=u.slice(0).sort(function(h,p){return p-h}).reverse(),f=u[0],d=Mn(u)):(u=a5(u),f=u[0],d=Mn(u)),{all:u,min:f,max:d}},fD=function(t,n,i,s){var o=ASe(t),a=[];i[o].all.forEach(function(r){var l=pSe(r)?ESe:DSe,c=[];s.forEach(function(u){var f=u.data.find(function(g){return l(g.data[o],r)}),d=null,h=null;if(f!==void 0){if(d=f.data[t],d!==null){var p=Mn(c);p===void 0?h=d:p!==null&&(h=p+d)}f.data["".concat(t,"Stacked")]=h}c.push(h),a.push(h)})}),a=a.filter(function(r){return r!==null}),i[t].minStacked=Math.min.apply(Math,Kd(a)),i[t].maxStacked=Math.max.apply(Math,Kd(a))},LSe=function(t,n,i){return fD("x",t,n,i)},ISe=function(t,n,i){return fD("y",t,n,i)},Jd=oe.oneOfType([oe.shape(mSe),oe.shape(xSe),oe.shape(MSe),oe.shape(ySe)]);const f5=Math.pow(2,-52),Ef=new Uint32Array(512);class Qd{static from(t,n=zSe,i=BSe){const s=t.length,o=new Float64Array(s*2);for(let a=0;a>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const i=Math.max(2*n-5,0);this._triangles=new Uint32Array(i*3),this._halfedges=new Int32Array(i*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:i,_hullTri:s,_hullHash:o}=this,a=t.length>>1;let r=1/0,l=1/0,c=-1/0,u=-1/0;for(let S=0;Sc&&(c=C),A>u&&(u=A),this._ids[S]=S}const f=(r+c)/2,d=(l+u)/2;let h=1/0,p,g,y;for(let S=0;S0&&(g=S,h=C)}let b=t[2*g],w=t[2*g+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,m,b,w,x,k)){const S=g,C=b,A=w;g=y,b=x,w=k,y=S,x=C,k=A}const T=NSe(v,m,b,w,x,k);this._cx=T.x,this._cy=T.y;for(let S=0;S0&&Math.abs(O-C)<=f5&&Math.abs(R-A)<=f5||(C=O,A=R,D===p||D===g||D===y))continue;let F=0;for(let j=0,$=this._hashKey(O,R);j0?3-n:1+n)/4}function ev(e,t,n,i){const s=e-n,o=t-i;return s*s+o*o}function tv(e,t,n,i,s,o){const a=(i-t)*(s-e),r=(n-e)*(o-t);return Math.abs(a-r)>=33306690738754716e-32*Math.abs(a+r)?a-r:0}function Rf(e,t,n,i,s,o){return(tv(s,o,e,t,n,i)||tv(e,t,n,i,s,o)||tv(n,i,s,o,e,t))<0}function $Se(e,t,n,i,s,o,a,r){const l=e-a,c=t-r,u=n-a,f=i-r,d=s-a,h=o-r,p=l*l+c*c,g=u*u+f*f,y=d*d+h*h;return l*(f*y-g*h)-c*(u*y-g*d)+p*(u*h-f*d)<0}function jSe(e,t,n,i,s,o){const a=n-e,r=i-t,l=s-e,c=o-t,u=a*a+r*r,f=l*l+c*c,d=.5/(a*c-r*l),h=(c*u-r*f)*d,p=(a*f-l*u)*d;return h*h+p*p}function NSe(e,t,n,i,s,o){const a=n-e,r=i-t,l=s-e,c=o-t,u=a*a+r*r,f=l*l+c*c,d=.5/(a*c-r*l),h=e+(c*u-r*f)*d,p=t+(a*f-l*u)*d;return{x:h,y:p}}function El(e,t,n,i){if(i-n<=20)for(let s=n+1;s<=i;s++){const o=e[s],a=t[o];let r=s-1;for(;r>=n&&t[e[r]]>a;)e[r+1]=e[r--];e[r+1]=o}else{const s=n+i>>1;let o=n+1,a=i;$u(e,s,o),t[e[n]]>t[e[i]]&&$u(e,n,i),t[e[o]]>t[e[i]]&&$u(e,o,i),t[e[n]]>t[e[o]]&&$u(e,n,o);const r=e[o],l=t[r];for(;;){do o++;while(t[e[o]]l);if(a=a-n?(El(e,t,o,i),El(e,t,n,a-1)):(El(e,t,n,a-1),El(e,t,o,i))}}function $u(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function zSe(e){return e[0]}function BSe(e){return e[1]}const d5=1e-6;class Uo{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,i){t=+t,n=+n,i=+i;const s=t+i,o=n;if(i<0)throw new Error("negative radius");this._x1===null?this._+=`M${s},${o}`:(Math.abs(this._x1-s)>d5||Math.abs(this._y1-o)>d5)&&(this._+="L"+s+","+o),i&&(this._+=`A${i},${i},0,1,1,${t-i},${n}A${i},${i},0,1,1,${this._x1=s},${this._y1=o}`)}rect(t,n,i,s){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+i}v${+s}h${-i}Z`}value(){return this._||null}}class Wy{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 qSe=class{constructor(t,[n,i,s,o]=[0,0,960,500]){if(!((s=+s)>=(n=+n))||!((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=s,this.xmin=n,this.ymax=o,this.ymin=i,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:i},vectors:s}=this,o=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let h=0,p=0,g=i.length,y,v;h1;)o-=2;for(let a=2;a4)for(let a=0;a0){if(n>=this.ymax)return null;(a=(this.ymax-n)/s)0){if(t>=this.xmax)return null;(a=(this.xmax-t)/i)this.xmax?2:0)|(nthis.ymax?8:0)}};const USe=2*Math.PI,Ol=Math.pow;function WSe(e){return e[0]}function HSe(e){return e[1]}function VSe(e){const{triangles:t,coords:n}=e;for(let i=0;i1e-10)return!1}return!0}function YSe(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class vg{static from(t,n=WSe,i=HSe,s){return new vg("length"in t?GSe(t,n,i,s):Float64Array.from(XSe(t,n,i,s)))}constructor(t){this._delaunator=new Qd(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&&VSe(t)){this.collinear=Int32Array.from({length:n.length/2},(d,h)=>h).sort((d,h)=>n[2*d]-n[2*h]||n[2*d+1]-n[2*h+1]);const l=this.collinear[0],c=this.collinear[this.collinear.length-1],u=[n[2*l],n[2*l+1],n[2*c],n[2*c+1]],f=1e-8*Math.hypot(u[3]-u[1],u[2]-u[0]);for(let d=0,h=n.length/2;d0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=s[0],this.triangles[1]=s[1],this.triangles[2]=s[1],a[s[0]]=1,s.length===2&&(a[s[1]]=0))}voronoi(t){return new qSe(this,t)}*neighbors(t){const{inedges:n,hull:i,_hullIndex:s,halfedges:o,triangles:a,collinear:r}=this;if(r){const f=r.indexOf(t);f>0&&(yield r[f-1]),f=0&&o!==i&&o!==s;)i=o;return o}_step(t,n,i){const{inedges:s,hull:o,_hullIndex:a,halfedges:r,triangles:l,points:c}=this;if(s[t]===-1||!c.length)return(t+1)%(c.length>>1);let u=t,f=Ol(n-c[t*2],2)+Ol(i-c[t*2+1],2);const d=s[t];let h=d;do{let p=l[h];const g=Ol(n-c[p*2],2)+Ol(i-c[p*2+1],2);if(g0&&(de.lineWidth=W.grid.line.strokeWidth,de.strokeStyle=W.grid.line.stroke,k&&ns(de,{width:U,height:G,scale:re,axis:"x",values:T}),M&&ns(de,{width:U,height:G,scale:ie,axis:"y",values:S})),xe==="axes"&&Kx(de,{xScale:re,yScale:ie,width:U,height:G,top:C,right:A,bottom:D,left:O,theme:W}),xe==="areas"&&g===!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"&&m===!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"&&P===!0&&(hD(de,Te),ee&&pD(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){m2(de,R5e({},ge,{data:ge.data||ue,containerWidth:U,containerHeight:G,theme:W}))})}})},[j,L,q,d,W,Y,X,re,ie,k,T,M,S,C,A,D,O,R,le,m,b,ee]);var Se=je.useCallback(function(de){var xe=bc(j.current,de),ue=v5(xe,2),ge=ue[0],be=ue[1];if(!Hx(E.left,E.top,U,G,ge,be))return null;var we=pe.find(ge-E.left,be-E.top);return le[we]},[j,E,U,G,pe]),Oe=fs(),Me=Oe.showTooltipFromEvent,ce=Oe.hideTooltip,ye=je.useCallback(function(de){var xe=Se(de);H(xe),xe?Me(et.createElement(N,{point:xe}),de):ce()},[Se,H,Me,ce,N]),J=je.useCallback(function(de){ce(),H(null),ee&&z&&z(ee,de)},[ce,H,z]),ne=je.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})};P2.propTypes=s5e;P2.defaultProps=u5e;var j5e=Jp(P2);function Yy(){return Yy=Object.assign||function(e){for(var t=1;t{const t=x1();return Ie.jsx(na,{sx:{maxWidth:200,height:50},children:Ie.jsx(N5e,{data:[{id:"1",data:e.data[e.xField].map((n,i)=>({x:n,y:e.data[e.yField][i]}))}],theme:t,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})})},B5e=z5e;function q5e(e){for(var t=1;t{const t=x1();return Ie.jsx(na,{sx:{maxWidth:200,height:50},children:Ie.jsx(dCe,{data:[{id:"1",data:e.data[e.xField].map((n,i)=>({x:n,y:e.data[e.yField][i]}))}],theme:t,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})})},yCe=vCe,bCe=new Map([["line",(e,t)=>t[e.field]?Ie.jsx(B5e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):Ie.jsx("div",{})],["scatter",(e,t)=>t[e.field]?Ie.jsx(yCe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):Ie.jsx("div",{})],["histogram",(e,t)=>t[e.field]?Ie.jsx(OMe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):Ie.jsx("div",{})]]),x5=e=>e.map(t=>({def:t,gen:bCe.get(t.type??"string")})).map(({def:t,gen:n})=>n?{...t,type:void 0,render:i=>n(t,i)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),xCe=e=>{const[t,n]=je.useState({open:!1,anchorEl:void 0});return Ie.jsxs(na,{sx:{width:50},onClick:i=>n(s=>({open:!s.open,anchorEl:i.currentTarget})),children:[Ie.jsx(mj,{}),Ie.jsx(AC,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:Ie.jsx(dr,{p:1,children:e.longText})})]})},wCe=e=>{const{columns:t,data:n}=e,i={search:!0,showTitle:!1,pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42},emptyRowsWhenPaging:!1};return Ie.jsx(et.Fragment,{children:Ie.jsx(JQ,{columns:e.showInfoColumn??!1?[...x5(t),{title:"Info",render:s=>{var o,a,r;return Ie.jsx(et.Fragment,{children:(o=s.details)!=null&&o.insights?Ie.jsx(xCe,{longText:`${(a=s.details)==null?void 0:a.insights[0].title}: ${(r=s.details)==null?void 0:r.insights[0].text}`}):Ie.jsx("div",{})})},width:50}]:[...x5(t)],data:n,detailPanel:({rowData:s})=>s.graphId?Ie.jsx(nee,{graphId:s.graphId,widgetSize:e.widgetSize}):s.details?Ie.jsx(Eb,{details:s.details,widgetSize:e.widgetSize}):null,options:i})})},w5=e=>Ie.jsxs("div",{children:[Ie.jsx(dr,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),Ie.jsx(dr,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),_Ce=e=>Ie.jsx(et.Fragment,{children:e.counters.length===1?Ie.jsx(w5,{...e.counters[0]}):Ie.jsx(tr,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map(t=>Ie.jsx(tr,{item:!0,xs:!0,component:na,height:"100%",children:Ie.jsx(na,{children:Ie.jsx(w5,{...t})})},t.label+t.value))})}),TCe=e=>Ie.jsxs("div",{children:[Ie.jsxs(na,{display:"flex",alignItems:"center",children:[Ie.jsx(na,{width:"100%",mr:1,children:Ie.jsx(TC,{variant:"determinate",value:e.value/e.maxValue*100})}),Ie.jsx(na,{minWidth:35,children:Ie.jsx(dr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),Ie.jsx(na,{width:"100%",children:Ie.jsx(dr,{variant:"body2",color:"textSecondary",children:e.details??""})})]}),kCe=e=>{var c,u,f,d,h,p;const[t,n]=je.useState(!1),i=XC(),s=CC(),o=(c=e.graph)==null?void 0:c.data.some(({type:g})=>g==="histogram"),a=(i==null?void 0:i.isXaxisAsCategorical)&&!o,r=s==="dark"?{template:{...Ll,layout:{...Ll.layout,colorway:((d=(f=(u=e.graph)==null?void 0:u.layout.template)==null?void 0:f.layout)==null?void 0:d.colorway)||((h=Ll.layout)==null?void 0:h.colorway)}}}:void 0,l=a?{type:"category",categoryorder:"category ascending"}:void 0;return Ie.jsx(et.Fragment,{children:Ie.jsxs(tr,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[Ie.jsxs(tr,{item:!0,xs:2,children:[Ie.jsx(dr,{variant:"h5",children:e.header}),Ie.jsx(dr,{variant:"subtitle1",children:e.description})]}),Ie.jsx(tr,{item:!0,xs:e.graph===void 0?10:5,children:Ie.jsxs(h1,{children:[Ie.jsx(g1,{children:Ie.jsxs(Ju,{children:[Ie.jsx(Ja,{}),e.metricsValuesHeaders.map(g=>Ie.jsx(Ja,{children:g}))]})}),Ie.jsx(p1,{children:e.metrics.map(g=>Ie.jsxs(Ju,{children:[Ie.jsx(Ja,{children:g.label}),g.values.map(y=>Ie.jsx(Ja,{children:y}))]}))})]})}),e.graph===void 0?Ie.jsx(Ie.Fragment,{}):Ie.jsx(tr,{item:!0,xs:5,children:Ie.jsx(GC,{data:e.graph.data,layout:{...e.graph.layout,...r,title:void 0,xaxis:{...(p=e.graph.layout)==null?void 0:p.xaxis,...l}},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?Ie.jsx(Ie.Fragment,{}):Ie.jsxs(Ie.Fragment,{children:[Ie.jsx(tr,{item:!0,xs:12,children:Ie.jsx(fi,{variant:"outlined",startIcon:t?Ie.jsx(pj,{}):Ie.jsx(gj,{}),onClick:()=>n(g=>!g),children:"Details"})}),Ie.jsx(tr,{item:!0,xs:12,children:Ie.jsx(Bl,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:Ie.jsx(Eb,{details:e.details,widgetSize:e.widgetSize})})})]})]})})},MCe=e=>Ie.jsx(Db,{tabs:e.graphs.map(t=>({title:t.title,tab:Ie.jsx(ah,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),SCe=e=>Ie.jsx(Db,{tabs:e.tabs.map(t=>({title:t.title,tab:Zc(`${e.id}1`,t.widget)}))}),CCe=e=>Ie.jsx($$,{children:Ie.jsxs(h1,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[Ie.jsx(g1,{children:Ie.jsxs(Ju,{children:[Ie.jsx(Ja,{children:e.header[0]},-1),e.header.slice(1).map(t=>Ie.jsx(Ja,{align:"right",children:t},t))]})}),Ie.jsx(p1,{children:e.data.map(t=>Ie.jsxs(Ju,{children:[Ie.jsx(Ja,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map(n=>Ie.jsx(Ja,{align:"right",children:n},n))]},t[0]))})]})});function OCe(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const PCe=/[ \t\n\f\r]/g;function ACe(e){return typeof e=="object"?e.type==="text"?_5(e.value):!1:_5(e)}function _5(e){return e.replace(PCe,"")===""}class Gc{constructor(t,n,i){this.property=t,this.normal=n,i&&(this.space=i)}}Gc.prototype.property={};Gc.prototype.normal={};Gc.prototype.space=null;function ND(e,t){const n={},i={};let s=-1;for(;++s4&&n.slice(0,4)==="data"&&ICe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(k5,NCe);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!k5.test(o)){let a=o.replace(FCe,jCe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}s=E2}return new s(i,t)}function jCe(e){return"-"+e.toLowerCase()}function NCe(e){return e.charAt(1).toUpperCase()}const zCe={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"},BCe=ND([qD,BD,HD,VD,RCe],"html"),YD=ND([qD,BD,HD,VD,LCe],"svg");function qCe(e){return e.join(" ").trim()}var R2={exports:{}},M5=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,UCe=/\n/g,WCe=/^\s*/,HCe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,VCe=/^:\s*/,YCe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,GCe=/^[;\s]*/,XCe=/^\s+|\s+$/g,ZCe=` +`,S5="/",C5="*",$o="",KCe="comment",JCe="declaration",QCe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function s(p){var g=p.match(UCe);g&&(n+=g.length);var y=p.lastIndexOf(ZCe);i=~y?p.length-y:i+p.length}function o(){var p={line:n,column:i};return function(g){return g.position=new a(p),c(),g}}function a(p){this.start=p,this.end={line:n,column:i},this.source=t.source}a.prototype.content=e;function r(p){var g=new Error(t.source+":"+n+":"+i+": "+p);if(g.reason=p,g.filename=t.source,g.line=n,g.column=i,g.source=e,!t.silent)throw g}function l(p){var g=p.exec(e);if(g){var y=g[0];return s(y),e=e.slice(y.length),g}}function c(){l(WCe)}function u(p){var g;for(p=p||[];g=f();)g!==!1&&p.push(g);return p}function f(){var p=o();if(!(S5!=e.charAt(0)||C5!=e.charAt(1))){for(var g=2;$o!=e.charAt(g)&&(C5!=e.charAt(g)||S5!=e.charAt(g+1));)++g;if(g+=2,$o===e.charAt(g-1))return r("End of comment missing");var y=e.slice(2,g-2);return i+=2,s(y),e=e.slice(g),i+=2,p({type:KCe,comment:y})}}function d(){var p=o(),g=l(HCe);if(g){if(f(),!l(VCe))return r("property missing ':'");var y=l(YCe),v=p({type:JCe,property:O5(g[0].replace(M5,$o)),value:y?O5(y[0].replace(M5,$o)):$o});return l(GCe),v}}function h(){var p=[];u(p);for(var g;g=d();)g!==!1&&(p.push(g),u(p));return p}return c(),h()};function O5(e){return e?e.replace(XCe,$o):$o}var e4e=QCe;function GD(e,t){var n=null;if(!e||typeof e!="string")return n;for(var i,s=e4e(e),o=typeof t=="function",a,r,l=0,c=s.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 r4e(e){const t=L2(e),n=XD(e);if(t&&n)return{start:t,end:n}}function Zu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?P5(e.position):"start"in e||"end"in e?P5(e):"line"in e||"column"in e?e1(e):""}function e1(e){return A5(e&&e.line)+":"+A5(e&&e.column)}function P5(e){return e1(e&&e.start)+"-"+e1(e&&e.end)}function A5(e){return e&&typeof e=="number"?e:1}class Pa extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let s="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?s=t:!o.cause&&t&&(a=!0,s=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 r=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=r?r.column:void 0,this.fatal=void 0,this.file,this.message=s,this.line=r?r.line:void 0,this.name=Zu(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}}Pa.prototype.file="";Pa.prototype.name="";Pa.prototype.reason="";Pa.prototype.message="";Pa.prototype.stack="";Pa.prototype.column=void 0;Pa.prototype.line=void 0;Pa.prototype.ancestors=void 0;Pa.prototype.cause=void 0;Pa.prototype.fatal=void 0;Pa.prototype.place=void 0;Pa.prototype.ruleId=void 0;Pa.prototype.source=void 0;const I2={}.hasOwnProperty,a4e=new Map,i4e=/[A-Z]/g,o4e=/-([a-z])/g,l4e=new Set(["table","tbody","thead","tfoot","tr"]),s4e=new Set(["td","th"]);function u4e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=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=f4e(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");i=c4e(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?YD:BCe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=KD(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function KD(e,t,n){if(t.type==="element"||t.type==="root"){const i=e.schema;let s=i;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=YD,e.schema=s),e.ancestors.push(t);let o=d4e(e,t);const a=h4e(e,e.ancestors);let r=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(o&&l4e.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!ACe(l):!0})),I2.call(e.components,t.tagName)){const l=t.tagName;r=e.components[l],typeof r!="string"&&r!==e.Fragment&&e.passNode&&(a.node=t)}else r=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,r,a,n)}if(t.type==="text")return t.value}function c4e(e,t,n){return i;function i(s,o,a,r){const c=Array.isArray(a.children)?n:t;return r?c(o,a,r):c(o,a)}}function f4e(e,t){return n;function n(i,s,o,a){const r=Array.isArray(o.children),l=L2(i);return t(s,o,a,r,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function d4e(e,t){const n=[];let i=-1;const s=e.passKeys?new Map:a4e;for(;++i-1&&e.test(String.fromCharCode(n))}}const M4e={'"':"quot","&":"amp","<":"lt",">":"gt"};function S4e(e){return e.replace(/["&<>]/g,t);function t(n){return"&"+M4e[n]+";"}}function C4e(e,t){const n=S4e(bl(e||""));if(!t)return n;const i=n.indexOf(":"),s=n.indexOf("?"),o=n.indexOf("#"),a=n.indexOf("/");return i<0||a>-1&&i>a||s>-1&&i>s||o>-1&&i>o||t.test(n.slice(0,i))?n:""}function bl(e){const t=[];let n=-1,i=0,s=0;for(;++n55295&&o<57344){const r=e.charCodeAt(n+1);o<56320&&r>56319&&r<57344?(a=String.fromCharCode(o,r),s=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(i,n),encodeURIComponent(a)),i=n+s+1,a=""),s&&(n+=s,s=0)}return t.join("")+e.slice(i)}const O4e={};function P4e(e,t){const n=O4e,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return QD(e,i,s)}function QD(e,t,n){if(A4e(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 D5(e.children,t,n)}return Array.isArray(e)?D5(e,t,n):""}function D5(e,t,n){const i=[];let s=-1;for(;++ss?0:s+t:t=t>s?s:t,n=n>0?n:0,i.length<1e4)a=Array.from(i),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o0?(Ci(e,e.length,0,t),e):t}const R5={}.hasOwnProperty;function D4e(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 Nl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function kr(e,t,n,i){const s=i?i-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return ur(l)?(e.enter(n),r(l)):t(l)}function r(l){return ur(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),x=k;xb;){const _=n[w];t.containerState=_[1],_[0].exit.call(t,e)}n.length=b}function m(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function j4e(e,t,n){return kr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function I5(e){if(e===null||Ia(e)||k4e(e))return 1;if(T4e(e))return 2}function $2(e,t,n){const i=[];let s=-1;for(;++s1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[i][1].end),d=Object.assign({},e[n][1].start);F5(f,-l),F5(d,l),a={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[i][1].end)},r={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:d},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[n][1].start)},s={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},r.end)},e[i][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},r.end),c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=Ka(c,[["enter",e[i][1],t],["exit",e[i][1],t]])),c=Ka(c,[["enter",s,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=Ka(c,$2(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),c=Ka(c,[["exit",o,t],["enter",r,t],["exit",r,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=Ka(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Ci(e,i-1,n-i+3,c),n=i+c.length-u-2;break}}for(n=-1;++n0&&ur(x)?kr(e,m,"linePrefix",o+1)(x):m(x)}function m(x){return x===null||Fn(x)?e.check($5,g,w)(x):(e.enter("codeFlowValue"),b(x))}function b(x){return x===null||Fn(x)?(e.exit("codeFlowValue"),m(x)):(e.consume(x),b)}function w(x){return e.exit("codeFenced"),t(x)}function _(x,k,T){let M=0;return S;function S(R){return x.enter("lineEnding"),x.consume(R),x.exit("lineEnding"),C}function C(R){return x.enter("codeFencedFence"),ur(R)?kr(x,A,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):A(R)}function A(R){return R===r?(x.enter("codeFencedFenceSequence"),D(R)):T(R)}function D(R){return R===r?(M++,x.consume(R),D):M>=a?(x.exit("codeFencedFenceSequence"),ur(R)?kr(x,O,"whitespace")(R):O(R)):T(R)}function O(R){return R===null||Fn(R)?(x.exit("codeFencedFence"),k(R)):T(R)}}}function Z4e(e,t,n){const i=this;return s;function s(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return i.parser.lazy[i.now().line]?n(a):t(a)}}const av={name:"codeIndented",tokenize:J4e},K4e={tokenize:Q4e,partial:!0};function J4e(e,t,n){const i=this;return s;function s(c){return e.enter("codeIndented"),kr(e,o,"linePrefix",5)(c)}function o(c){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):Fn(c)?e.attempt(K4e,a,l)(c):(e.enter("codeFlowValue"),r(c))}function r(c){return c===null||Fn(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),r)}function l(c){return e.exit("codeIndented"),t(c)}}function Q4e(e,t,n){const i=this;return s;function s(a){return i.parser.lazy[i.now().line]?n(a):Fn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):kr(e,o,"linePrefix",5)(a)}function o(a){const r=i.events[i.events.length-1];return r&&r[1].type==="linePrefix"&&r[2].sliceSerialize(r[1],!0).length>=4?t(a):Fn(a)?s(a):n(a)}}const e6e={name:"codeText",tokenize:r6e,resolve:t6e,previous:n6e};function t6e(e){let t=e.length-4,n=3,i,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i=4?t(a):e.interrupt(i.parser.constructs.flow,n,t)(a)}}function i9(e,t,n,i,s,o,a,r,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return f;function f(v){return v===60?(e.enter(i),e.enter(s),e.enter(o),e.consume(v),e.exit(o),d):v===null||v===32||v===41||t1(v)?n(v):(e.enter(i),e.enter(a),e.enter(r),e.enter("chunkString",{contentType:"string"}),g(v))}function d(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(s),e.exit(i),t):(e.enter(r),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===62?(e.exit("chunkString"),e.exit(r),d(v)):v===null||v===60||Fn(v)?n(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 g(v){return!u&&(v===null||v===41||Ia(v))?(e.exit("chunkString"),e.exit(r),e.exit(a),e.exit(i),t(v)):u999||h===null||h===91||h===93&&!l||h===94&&!r&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):h===93?(e.exit(o),e.enter(s),e.consume(h),e.exit(s),e.exit(i),t):Fn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||Fn(h)||r++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!ur(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),r++,f):f(h)}}function l9(e,t,n,i,s,o){let a;return r;function r(d){return d===34||d===39||d===40?(e.enter(i),e.enter(s),e.consume(d),e.exit(s),a=d===40?41:d,l):n(d)}function l(d){return d===a?(e.enter(s),e.consume(d),e.exit(s),e.exit(i),t):(e.enter(o),c(d))}function c(d){return d===a?(e.exit(o),l(a)):d===null?n(d):Fn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),kr(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===a||d===null||Fn(d)?(e.exit("chunkString"),c(d)):(e.consume(d),d===92?f:u)}function f(d){return d===a||d===92?(e.consume(d),u):u(d)}}function Ku(e,t){let n;return i;function i(s){return Fn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,i):ur(s)?kr(e,i,n?"linePrefix":"lineSuffix")(s):t(s)}}const c6e={name:"definition",tokenize:d6e},f6e={tokenize:h6e,partial:!0};function d6e(e,t,n){const i=this;let s;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return o9.call(i,e,r,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function r(h){return s=Nl(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Ia(h)?Ku(e,c)(h):c(h)}function c(h){return i9(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(f6e,f,f)(h)}function f(h){return ur(h)?kr(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Fn(h)?(e.exit("definition"),i.parser.defined.push(s),t(h)):n(h)}}function h6e(e,t,n){return i;function i(r){return Ia(r)?Ku(e,s)(r):n(r)}function s(r){return l9(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(r)}function o(r){return ur(r)?kr(e,a,"whitespace")(r):a(r)}function a(r){return r===null||Fn(r)?t(r):n(r)}}const p6e={name:"hardBreakEscape",tokenize:g6e};function g6e(e,t,n){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return Fn(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const m6e={name:"headingAtx",tokenize:y6e,resolve:v6e};function v6e(e,t){let n=e.length-2,i=3,s,o;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Ci(e,i,n-i+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function y6e(e,t,n){let i=0;return s;function s(u){return e.enter("atxHeading"),o(u)}function o(u){return e.enter("atxHeadingSequence"),a(u)}function a(u){return u===35&&i++<6?(e.consume(u),a):u===null||Ia(u)?(e.exit("atxHeadingSequence"),r(u)):n(u)}function r(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Fn(u)?(e.exit("atxHeading"),t(u)):ur(u)?kr(e,r,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),r(u))}function c(u){return u===null||u===35||Ia(u)?(e.exit("atxHeadingText"),r(u)):(e.consume(u),c)}}const b6e=["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"],N5=["pre","script","style","textarea"],x6e={name:"htmlFlow",tokenize:k6e,resolveTo:T6e,concrete:!0},w6e={tokenize:S6e,partial:!0},_6e={tokenize:M6e,partial:!0};function T6e(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 k6e(e,t,n){const i=this;let s,o,a,r,l;return c;function c(E){return u(E)}function u(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),f}function f(E){return E===33?(e.consume(E),d):E===47?(e.consume(E),o=!0,g):E===63?(e.consume(E),s=3,i.interrupt?t:N):Mi(E)?(e.consume(E),a=String.fromCharCode(E),y):n(E)}function d(E){return E===45?(e.consume(E),s=2,h):E===91?(e.consume(E),s=5,r=0,p):Mi(E)?(e.consume(E),s=4,i.interrupt?t:N):n(E)}function h(E){return E===45?(e.consume(E),i.interrupt?t:N):n(E)}function p(E){const U="CDATA[";return E===U.charCodeAt(r++)?(e.consume(E),r===U.length?i.interrupt?t:A:p):n(E)}function g(E){return Mi(E)?(e.consume(E),a=String.fromCharCode(E),y):n(E)}function y(E){if(E===null||E===47||E===62||Ia(E)){const U=E===47,G=a.toLowerCase();return!U&&!o&&N5.includes(G)?(s=1,i.interrupt?t(E):A(E)):b6e.includes(a.toLowerCase())?(s=6,U?(e.consume(E),v):i.interrupt?t(E):A(E)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(E):o?m(E):b(E))}return E===45||Ua(E)?(e.consume(E),a+=String.fromCharCode(E),y):n(E)}function v(E){return E===62?(e.consume(E),i.interrupt?t:A):n(E)}function m(E){return ur(E)?(e.consume(E),m):S(E)}function b(E){return E===47?(e.consume(E),S):E===58||E===95||Mi(E)?(e.consume(E),w):ur(E)?(e.consume(E),b):S(E)}function w(E){return E===45||E===46||E===58||E===95||Ua(E)?(e.consume(E),w):_(E)}function _(E){return E===61?(e.consume(E),x):ur(E)?(e.consume(E),_):b(E)}function x(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),l=E,k):ur(E)?(e.consume(E),x):T(E)}function k(E){return E===l?(e.consume(E),l=null,M):E===null||Fn(E)?n(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||Ia(E)?_(E):(e.consume(E),T)}function M(E){return E===47||E===62||ur(E)?b(E):n(E)}function S(E){return E===62?(e.consume(E),C):n(E)}function C(E){return E===null||Fn(E)?A(E):ur(E)?(e.consume(E),C):n(E)}function A(E){return E===45&&s===2?(e.consume(E),F):E===60&&s===1?(e.consume(E),P):E===62&&s===4?(e.consume(E),j):E===63&&s===3?(e.consume(E),N):E===93&&s===5?(e.consume(E),B):Fn(E)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(w6e,$,D)(E)):E===null||Fn(E)?(e.exit("htmlFlowData"),D(E)):(e.consume(E),A)}function D(E){return e.check(_6e,O,$)(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"),A(E))}function F(E){return E===45?(e.consume(E),N):A(E)}function P(E){return E===47?(e.consume(E),a="",z):A(E)}function z(E){if(E===62){const U=a.toLowerCase();return N5.includes(U)?(e.consume(E),j):A(E)}return Mi(E)&&a.length<8?(e.consume(E),a+=String.fromCharCode(E),z):A(E)}function B(E){return E===93?(e.consume(E),N):A(E)}function N(E){return E===62?(e.consume(E),j):E===45&&s===2?(e.consume(E),N):A(E)}function j(E){return E===null||Fn(E)?(e.exit("htmlFlowData"),$(E)):(e.consume(E),j)}function $(E){return e.exit("htmlFlow"),t(E)}}function M6e(e,t,n){const i=this;return s;function s(a){return Fn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return i.parser.lazy[i.now().line]?n(a):t(a)}}function S6e(e,t,n){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(_g,t,n)}}const C6e={name:"htmlText",tokenize:O6e};function O6e(e,t,n){const i=this;let s,o,a;return r;function r(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),l}function l(N){return N===33?(e.consume(N),c):N===47?(e.consume(N),_):N===63?(e.consume(N),b):Mi(N)?(e.consume(N),T):n(N)}function c(N){return N===45?(e.consume(N),u):N===91?(e.consume(N),o=0,p):Mi(N)?(e.consume(N),m):n(N)}function u(N){return N===45?(e.consume(N),h):n(N)}function f(N){return N===null?n(N):N===45?(e.consume(N),d):Fn(N)?(a=f,P(N)):(e.consume(N),f)}function d(N){return N===45?(e.consume(N),h):f(N)}function h(N){return N===62?F(N):N===45?d(N):f(N)}function p(N){const j="CDATA[";return N===j.charCodeAt(o++)?(e.consume(N),o===j.length?g:p):n(N)}function g(N){return N===null?n(N):N===93?(e.consume(N),y):Fn(N)?(a=g,P(N)):(e.consume(N),g)}function y(N){return N===93?(e.consume(N),v):g(N)}function v(N){return N===62?F(N):N===93?(e.consume(N),v):g(N)}function m(N){return N===null||N===62?F(N):Fn(N)?(a=m,P(N)):(e.consume(N),m)}function b(N){return N===null?n(N):N===63?(e.consume(N),w):Fn(N)?(a=b,P(N)):(e.consume(N),b)}function w(N){return N===62?F(N):b(N)}function _(N){return Mi(N)?(e.consume(N),x):n(N)}function x(N){return N===45||Ua(N)?(e.consume(N),x):k(N)}function k(N){return Fn(N)?(a=k,P(N)):ur(N)?(e.consume(N),k):F(N)}function T(N){return N===45||Ua(N)?(e.consume(N),T):N===47||N===62||Ia(N)?M(N):n(N)}function M(N){return N===47?(e.consume(N),F):N===58||N===95||Mi(N)?(e.consume(N),S):Fn(N)?(a=M,P(N)):ur(N)?(e.consume(N),M):F(N)}function S(N){return N===45||N===46||N===58||N===95||Ua(N)?(e.consume(N),S):C(N)}function C(N){return N===61?(e.consume(N),A):Fn(N)?(a=C,P(N)):ur(N)?(e.consume(N),C):M(N)}function A(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),s=N,D):Fn(N)?(a=A,P(N)):ur(N)?(e.consume(N),A):(e.consume(N),O)}function D(N){return N===s?(e.consume(N),s=void 0,R):N===null?n(N):Fn(N)?(a=D,P(N)):(e.consume(N),D)}function O(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||Ia(N)?M(N):(e.consume(N),O)}function R(N){return N===47||N===62||Ia(N)?M(N):n(N)}function F(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function P(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),z}function z(N){return ur(N)?kr(e,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):B(N)}function B(N){return e.enter("htmlTextData"),a(N)}}const j2={name:"labelEnd",tokenize:L6e,resolveTo:R6e,resolveAll:E6e},P6e={tokenize:I6e},A6e={tokenize:F6e},D6e={tokenize:$6e};function E6e(e){let t=-1;for(;++t=3&&(c===null||Fn(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===s?(e.consume(c),i++,l):(e.exit("thematicBreakSequence"),ur(c)?kr(e,r,"whitespace")(c):r(c))}}const Ea={name:"list",tokenize:V6e,continuation:{tokenize:Y6e},exit:X6e},W6e={tokenize:Z6e,partial:!0},H6e={tokenize:G6e,partial:!0};function V6e(e,t,n){const i=this,s=i.events[i.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,a=0;return r;function r(h){const p=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:n1(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(id,n,c)(h):c(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return n1(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"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(_g,i.interrupt?n:u,e.attempt(W6e,d,f))}function u(h){return i.containerState.initialBlankLine=!0,o++,d(h)}function f(h){return ur(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Y6e(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(_g,s,o);function s(r){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,kr(e,t,"listItemIndent",i.containerState.size+1)(r)}function o(r){return i.containerState.furtherBlankLines||!ur(r)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(r)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(H6e,t,a)(r))}function a(r){return i.containerState._closeFlow=!0,i.interrupt=void 0,kr(e,e.attempt(Ea,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(r)}}function G6e(e,t,n){const i=this;return kr(e,s,"listItemIndent",i.containerState.size+1);function s(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):n(o)}}function X6e(e){e.exit(this.containerState.type)}function Z6e(e,t,n){const i=this;return kr(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const a=i.events[i.events.length-1];return!ur(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const z5={name:"setextUnderline",tokenize:J6e,resolveTo:K6e};function K6e(e,t){let n=e.length,i,s,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[s][1].type="setextHeadingText",o?(e.splice(s,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 J6e(e,t,n){const i=this;let s;return o;function o(c){let u=i.events.length,f;for(;u--;)if(i.events[u][1].type!=="lineEnding"&&i.events[u][1].type!=="linePrefix"&&i.events[u][1].type!=="content"){f=i.events[u][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),s=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),r(c)}function r(c){return c===s?(e.consume(c),r):(e.exit("setextHeadingLineSequence"),ur(c)?kr(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Fn(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Q6e={tokenize:e8e};function e8e(e){const t=this,n=e.attempt(_g,i,e.attempt(this.parser.constructs.flowInitial,s,kr(e,e.attempt(this.parser.constructs.flow,s,e.attempt(i6e,s)),"linePrefix")));return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const t8e={resolveAll:u9()},n8e=s9("string"),r8e=s9("text");function s9(e){return{tokenize:t,resolveAll:u9(e==="text"?a8e:void 0)};function t(n){const i=this,s=this.parser.constructs[e],o=n.attempt(s,a,r);return a;function a(u){return c(u)?o(u):r(u)}function r(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),o(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const f=s[u];let d=-1;if(f)for(;++d-1){const r=a[0];typeof r=="string"?a[0]=r.slice(i):a.shift()}o>0&&a.push(e[s].slice(0,o))}return a}function l8e(e,t){let n=-1;const i=[];let s;for(;++n0){const de=ye.tokenStack[ye.tokenStack.length-1];(de[1]||q5).call(ye,void 0,de[0])}for(ce.position={start:oo(Me.length>0?Me[0][1].start:{line:1,column:1,offset:0}),end:oo(Me.length>0?Me[Me.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne1?"-"+r:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function L8e(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 I8e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function d9(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=e.all(t),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const a=s[s.length-1];return a&&a.type==="text"?a.value+=i:s.push({type:"text",value:i}),s}function F8e(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return d9(e,t);const s={src:bl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const o={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,o),e.applyData(t,o)}function $8e(e,t){const n={src:bl(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 i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function j8e(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function N8e(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return d9(e,t);const s={href:bl(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const o={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function z8e(e,t){const n={href:bl(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function B8e(e,t,n){const i=e.all(t),s=n?q8e(n):h9(t),o={},a=[];if(typeof t.checked=="boolean"){const u=i[0];let f;u&&u.type==="element"&&u.tagName==="p"?f=u:(f={type:"element",tagName:"p",properties:{},children:[]},i.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let r=-1;for(;++r1}function U8e(e,t){const n={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},r=L2(t.children[1]),l=XD(t.children[t.children.length-1]);r&&l&&(a.position={start:r,end:l}),s.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,o),e.applyData(t,o)}function G8e(e,t,n){const i=n?n.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,r=a?a.length:t.children.length;let l=-1;const c=[];for(;++l0,!0),i[0]),s=i.index+i[0].length,i=n.exec(t);return o.push(H5(t.slice(s),s>0,!1)),o.join("")}function H5(e,t,n){let i=0,s=e.length;if(t){let o=e.codePointAt(i);for(;o===U5||o===W5;)i++,o=e.codePointAt(i)}if(n){let o=e.codePointAt(s-1);for(;o===U5||o===W5;)s--,o=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function K8e(e,t){const n={type:"text",value:Z8e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function J8e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Q8e={blockquote:O8e,break:P8e,code:A8e,delete:D8e,emphasis:E8e,footnoteReference:R8e,heading:L8e,html:I8e,imageReference:F8e,image:$8e,inlineCode:j8e,linkReference:N8e,link:z8e,listItem:B8e,list:U8e,paragraph:W8e,root:H8e,strong:V8e,table:Y8e,tableCell:X8e,tableRow:G8e,text:K8e,thematicBreak:J8e,toml:Lf,yaml:Lf,definition:Lf,footnoteDefinition:Lf};function Lf(){}const p9=-1,Tg=0,eh=1,th=2,N2=3,z2=4,B2=5,q2=6,g9=7,m9=8,V5=typeof self=="object"?self:globalThis,eOe=(e,t)=>{const n=(s,o)=>(e.set(o,s),s),i=s=>{if(e.has(s))return e.get(s);const[o,a]=t[s];switch(o){case Tg:case p9:return n(a,s);case eh:{const r=n([],s);for(const l of a)r.push(i(l));return r}case th:{const r=n({},s);for(const[l,c]of a)r[i(l)]=i(c);return r}case N2:return n(new Date(a),s);case z2:{const{source:r,flags:l}=a;return n(new RegExp(r,l),s)}case B2:{const r=n(new Map,s);for(const[l,c]of a)r.set(i(l),i(c));return r}case q2:{const r=n(new Set,s);for(const l of a)r.add(i(l));return r}case g9:{const{name:r,message:l}=a;return n(new V5[r](l),s)}case m9:return n(BigInt(a),s);case"BigInt":return n(Object(BigInt(a)),s)}return n(new V5[o](a),s)};return i},Y5=e=>eOe(new Map,e)(0),Pl="",{toString:tOe}={},{keys:nOe}=Object,Nu=e=>{const t=typeof e;if(t!=="object"||!e)return[Tg,t];const n=tOe.call(e).slice(8,-1);switch(n){case"Array":return[eh,Pl];case"Object":return[th,Pl];case"Date":return[N2,Pl];case"RegExp":return[z2,Pl];case"Map":return[B2,Pl];case"Set":return[q2,Pl]}return n.includes("Array")?[eh,n]:n.includes("Error")?[g9,n]:[th,n]},If=([e,t])=>e===Tg&&(t==="function"||t==="symbol"),rOe=(e,t,n,i)=>{const s=(a,r)=>{const l=i.push(a)-1;return n.set(r,l),l},o=a=>{if(n.has(a))return n.get(a);let[r,l]=Nu(a);switch(r){case Tg:{let u=a;switch(l){case"bigint":r=m9,u=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return s([p9],a)}return s([r,u],a)}case eh:{if(l)return s([l,[...a]],a);const u=[],f=s([r,u],a);for(const d of a)u.push(o(d));return f}case th:{if(l)switch(l){case"BigInt":return s([l,a.toString()],a);case"Boolean":case"Number":case"String":return s([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const u=[],f=s([r,u],a);for(const d of nOe(a))(e||!If(Nu(a[d])))&&u.push([o(d),o(a[d])]);return f}case N2:return s([r,a.toISOString()],a);case z2:{const{source:u,flags:f}=a;return s([r,{source:u,flags:f}],a)}case B2:{const u=[],f=s([r,u],a);for(const[d,h]of a)(e||!(If(Nu(d))||If(Nu(h))))&&u.push([o(d),o(h)]);return f}case q2:{const u=[],f=s([r,u],a);for(const d of a)(e||!If(Nu(d)))&&u.push(o(d));return f}}const{message:c}=a;return s([r,{name:l,message:c}],a)};return o},G5=(e,{json:t,lossy:n}={})=>{const i=[];return rOe(!(t||n),!!t,new Map,i)(e),i},nh=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Y5(G5(e,t)):structuredClone(e):(e,t)=>Y5(G5(e,t));function aOe(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 iOe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function oOe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||aOe,i=e.options.footnoteBackLabel||iOe,s=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},r=[];let l=-1;for(;++l0&&p.push({type:"text",value:" "});let m=typeof n=="string"?n:n(l,h);typeof m=="string"&&(m={type:"text",value:m}),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(m)?m:[m]})}const y=u[u.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const m=y.children[y.children.length-1];m&&m.type==="text"?m.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...p)}else u.push(...p);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(u,!0)};e.patch(c,v),r.push(v)}if(r.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...nh(a),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(r,!0)},{type:"text",value:` +`}]}}const v9=function(e){if(e==null)return cOe;if(typeof e=="function")return kg(e);if(typeof e=="object")return Array.isArray(e)?lOe(e):sOe(e);if(typeof e=="string")return uOe(e);throw new Error("Expected function, string, or object as test")};function lOe(e){const t=[];let n=-1;for(;++n":""))+")"})}return d;function d(){let h=y9,p,g,y;if((!t||o(l,c,u[u.length-1]||void 0))&&(h=gOe(n(l,u)),h[0]===X5))return h;if("children"in l&&l.children){const v=l;if(v.children&&h[0]!==hOe)for(g=(i?v.children.length:-1)+a,y=u.concat(v);g>-1&&g0&&n.push({type:"text",value:` +`}),n}function Z5(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function K5(e,t){const n=vOe(e,t),i=n.one(e,void 0),s=oOe(n),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&o.children.push({type:"text",value:` +`},s),o}function _Oe(e,t){return e&&"run"in e?async function(n,i){const s=K5(n,t);await e.run(s,i)}:function(n){return K5(n,t||e)}}function J5(e){if(e)throw e}var od=Object.prototype.hasOwnProperty,x9=Object.prototype.toString,Q5=Object.defineProperty,eC=Object.getOwnPropertyDescriptor,tC=function(t){return typeof Array.isArray=="function"?Array.isArray(t):x9.call(t)==="[object Array]"},nC=function(t){if(!t||x9.call(t)!=="[object Object]")return!1;var n=od.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&od.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i)return!1;var s;for(s in t);return typeof s>"u"||od.call(t,s)},rC=function(t,n){Q5&&n.name==="__proto__"?Q5(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},aC=function(t,n){if(n==="__proto__")if(od.call(t,n)){if(eC)return eC(t,n).value}else return;return t[n]},TOe=function e(){var t,n,i,s,o,a,r=arguments[0],l=1,c=arguments.length,u=!1;for(typeof r=="boolean"&&(u=r,r=arguments[1]||{},l=2),(r==null||typeof r!="object"&&typeof r!="function")&&(r={});la.length;let l;r&&a.push(s);try{l=e.apply(this,a)}catch(c){const u=c;if(r&&n)throw u;return s(u)}r||(l instanceof Promise?l.then(o,s):l instanceof Error?s(l):o(l))}function s(a,...r){n||(n=!0,t(a,...r))}function o(a){s(null,a)}}const xi={basename:SOe,dirname:COe,extname:OOe,join:POe,sep:"/"};function SOe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Xc(e);let n=0,i=-1,s=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(o){n=s+1;break}}else i<0&&(o=!0,i=s+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let a=-1,r=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(o){n=s+1;break}}else a<0&&(o=!0,a=s+1),r>-1&&(e.codePointAt(s)===t.codePointAt(r--)?r<0&&(i=s):(r=-1,i=a));return n===i?i=a:i<0&&(i=e.length),e.slice(n,i)}function COe(e){if(Xc(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function OOe(e){Xc(e);let t=e.length,n=-1,i=0,s=-1,o=0,a;for(;t--;){const r=e.codePointAt(t);if(r===47){if(a){i=t+1;break}continue}n<0&&(a=!0,n=t+1),r===46?s<0?s=t:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||n<0||o===0||o===1&&s===n-1&&s===i+1?"":e.slice(s,n)}function POe(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function DOe(e,t){let n="",i=0,s=-1,o=0,a=-1,r,l;for(;++a<=e.length;){if(a2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",i=0):(n=n.slice(0,l),i=n.length-1-n.lastIndexOf("/")),s=a,o=0;continue}}else if(n.length>0){n="",i=0,s=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(s+1,a):n=e.slice(s+1,a),i=a-s-1;s=a,o=0}else r===46&&o>-1?o++:o=-1}return n}function Xc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const EOe={cwd:ROe};function ROe(){return"/"}function o1(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function LOe(e){if(typeof e=="string")e=new URL(e);else if(!o1(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 IOe(e)}function IOe(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 n=-1;for(;++n0){let[h,...p]=u;const g=i[d][1];i1(g)&&i1(h)&&(h=ov(!0,g,h)),i[d]=[c,h,...p]}}}}const NOe=new U2().freeze();function cv(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function fv(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function dv(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 oC(e){if(!i1(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function lC(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ff(e){return zOe(e)?e:new w9(e)}function zOe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function BOe(e){return typeof e=="string"||qOe(e)}function qOe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sC={}.hasOwnProperty,UOe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",uC=[],cC={allowDangerousHtml:!0},WOe=/^(https?|ircs?|mailto|xmpp)$/i,HOe=[{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 _9(e){const t=e.allowedElements,n=e.allowElement,i=e.children||"",s=e.className,o=e.components,a=e.disallowedElements,r=e.rehypePlugins||uC,l=e.remarkPlugins||uC,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...cC}:cC,u=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||VOe,h=NOe().use(C8e).use(l).use(_Oe,c).use(r),p=new w9;typeof i=="string"&&(p.value=i);for(const m of HOe)Object.hasOwn(e,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+UOe+m.id,void 0);const g=h.parse(p);let y=h.runSync(g,p);return s&&(y={type:"element",tagName:"div",properties:{className:s},children:y.type==="root"?y.children:[y]}),b9(y,v),u4e(y,{Fragment:Ie.Fragment,components:o,ignoreInvalidStyle:!0,jsx:Ie.jsx,jsxs:Ie.jsxs,passKeys:!0,passNode:!0});function v(m,b,w){if(m.type==="raw"&&w&&typeof b=="number")return u?w.children.splice(b,1):w.children[b]={type:"text",value:m.value},b;if(m.type==="element"){let _;for(_ in rv)if(sC.call(rv,_)&&sC.call(m.properties,_)){const x=m.properties[_],k=rv[_];(k===null||k.includes(m.tagName))&&(m.properties[_]=d(String(x||""),_,m))}}if(m.type==="element"){let _=t?!t.includes(m.tagName):a?a.includes(m.tagName):!1;if(!_&&n&&typeof b=="number"&&(_=!n(m,b,w)),_&&w&&typeof b=="number")return f&&m.children?w.children.splice(b,1,...m.children):w.children.splice(b,1),b}}}function VOe(e){return C4e(e,WOe)}const fC=["unknown","success","warning","fail"],T9=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},k9=({title:e,description:t,state:n,details:i})=>{const[s,o]=je.useState({active:!1}),a=i!=null&&i.parts.length>0;return fC.includes(n)||(console.error(`unexpected state: ${n} (expected one of [${fC.join(", ")}])`),n="unknown"),Ie.jsx(Ie.Fragment,{children:Ie.jsxs(na,{children:[Ie.jsxs(y1,{severity:T9(n),action:a?Ie.jsx(fi,{onClick:()=>o(r=>({active:!r.active})),color:"inherit",size:"small",children:"Details"}):null,children:[Ie.jsx(b1,{children:e}),Ie.jsx(_9,{children:t})]}),a?Ie.jsx(Bl,{in:s.active,mountOnEnter:!0,unmountOnExit:!0,children:Ie.jsx(na,{style:{padding:"2px"},children:Ie.jsx(Eb,{details:i,widgetSize:2})})}):Ie.jsx(Ie.Fragment,{})]})})},YOe=({type:e,availableTypes:t,onChange:n})=>Ie.jsx(Ie.Fragment,{children:Ie.jsx(d1,{variant:"standard",value:e,onChange:i=>n(i.target.value),native:!0,children:t.map(i=>Ie.jsx("option",{value:i.id,children:i.title},i.id))})}),GOe=({groupInfo:e,tests:t})=>{const[n,i]=je.useState({active:!1});return Ie.jsx(Ie.Fragment,{children:Ie.jsxs(na,{mt:2,px:2,children:[Ie.jsxs(y1,{severity:T9(e.severity??"unknown"),icon:!1,action:Ie.jsx(fi,{onClick:()=>i(s=>({active:!s.active})),color:"inherit",size:"small",children:n.active?"Hide":"Show"}),children:[Ie.jsx(b1,{children:e.title}),e.description]}),Ie.jsx(Bl,{in:n.active,mountOnEnter:!0,unmountOnExit:!0,children:Ie.jsx(tr,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map(s=>Ie.jsx(tr,{item:!0,xs:12,children:Ie.jsx(k9,{...s})}))})})]})})},XOe=({type:e,groupsInfo:t,tests:n})=>{function i(r){if(r==="status")return[t.find(u=>u.id===r).values,u=>u.state];const l=t.find(u=>u.id===r);if(l===void 0)throw"unexpected type";return[l.values.find(u=>u.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"}],u=>u.groups[r]??"no group"]}const[s,o]=i(e),a=n.reduce((r,l)=>(r.set(o(l),[...r.get(o(l))??[],l]),r),new Map);return Ie.jsx(Ie.Fragment,{children:Ie.jsx(tr,{container:!0,spacing:2,children:Array.from(a.entries()).map(([r,l])=>[s.find(c=>c.id===r)??{id:r,title:r},l]).sort((r,l)=>(r[0].sortIndex??0)-(l[0].sortIndex??0)).map(([r,l])=>Ie.jsx(tr,{item:!0,xs:12,children:Ie.jsx(GOe,{groupInfo:r,tests:l})}))})})},ZOe=[{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"}]}],KOe=({tests:e,testGroupTypes:t})=>{const[n,i]=et.useState({group_type:"none"}),s=[];for(let a=0;au===c)===-1&&s.push(c)}const o=[...ZOe,...(t??[]).filter(a=>s.findIndex(r=>r===a.id)!==-1)];return Ie.jsx(Ie.Fragment,{children:Ie.jsxs(tr,{container:!0,spacing:2,children:[Ie.jsx(tr,{item:!0,xs:12,children:Ie.jsx(YOe,{type:n.group_type,availableTypes:o,onChange:a=>i({group_type:a})})}),Ie.jsx(tr,{item:!0,xs:12,children:Ie.jsx(tr,{container:!0,spacing:2,children:n.group_type==="none"?e.map(a=>Ie.jsx(tr,{item:!0,xs:12,children:Ie.jsx(k9,{...a})},a.title+a.description)):Ie.jsx(XOe,{type:n.group_type,groupsInfo:o,tests:e})})})]})})},JOe=e=>Ie.jsx(Ie.Fragment,{children:Ie.jsx(_9,{children:e.text})});function $f(e){return e.palette.mode==="dark"?u1:s1}function jf(e){return e.palette.mode==="light"?s1:u1}const l1=e=>{const[t,n]=je.useState({open:!1});return Ie.jsxs(rs,{elevation:0,onClick:i=>n(s=>({open:!s.open,anchorEl:i.currentTarget})),sx:[{border:"1px solid",borderColor:i=>i.palette.divider},{color:i=>jf(i)(i.palette.info.main,.6),backgroundColor:i=>$f(i)(i.palette.info.main,.9)},e.data.state==="success"&&{color:i=>jf(i)(i.palette.success.main,.6),backgroundColor:i=>$f(i)(i.palette.success.main,.9)},e.data.state==="warning"&&{color:i=>jf(i)(i.palette.warning.main,.6),backgroundColor:i=>$f(i)(i.palette.warning.main,.9)},e.data.state==="error"&&{color:i=>jf(i)(i.palette.error.main,.6),backgroundColor:i=>$f(i)(i.palette.error.main,.9)}],children:[Ie.jsx(dr,{align:"center",variant:"h6",component:"div",children:e.data.value}),Ie.jsx(dr,{align:"center",variant:"body1",component:"div",children:e.data.text}),Ie.jsx(AC,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??Ie.jsx(dr,{padding:1,children:e.data.longText})})]})},dC=e=>{const{alertStats:t}=e;return Ie.jsx(l1,{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:Ie.jsx(dr,{sx:{pr:1},children:Ie.jsxs("ul",{children:[Ie.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),Ie.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),Ie.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function QOe(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 e7e=e=>{const{size:t,ItemWrapper:n}=e,i=e.children.alertsPosition??"row",{id:s,title:o,details:a,content:r,alerts:l,alertStats:c,insights:u}=e.children,f=l===void 0?!1:l.length>0,d=u===void 0?!1:u.length>0,h=Ie.jsx(eF,{elevation:0,children:Ie.jsx(aF,{children:Ie.jsxs(tr,{container:!0,spacing:1,direction:"column",children:[i==="row"?Ie.jsxs(tr,{container:!0,spacing:1,item:!0,children:[Ie.jsxs(tr,{item:!0,xs:f&&i==="row"?9:12,children:[o?Ie.jsx(dr,{fontWeight:500,variant:"h5",children:o}):Ie.jsx("div",{}),Ie.jsx("div",{children:r}),a?Ie.jsx(dr,{variant:"subtitle1",children:a}):Ie.jsx("div",{})]}),f?Ie.jsx(tr,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:l?Ie.jsxs(et.Fragment,{children:[c?Ie.jsx(tr,{item:!0,children:Ie.jsx(dC,{alertStats:c})}):Ie.jsx("div",{}),l.map(p=>Ie.jsx(tr,{item:!0,children:Ie.jsx(l1,{data:p})}))]}):Ie.jsx("div",{})}):Ie.jsx("div",{})]}):Ie.jsxs(et.Fragment,{children:[Ie.jsxs(tr,{item:!0,children:[o?Ie.jsx(dr,{variant:"h5",children:o}):Ie.jsx("div",{}),Ie.jsx("div",{children:r}),a?Ie.jsx(dr,{variant:"subtitle1",children:a}):Ie.jsx("div",{})]}),f?Ie.jsx(tr,{item:!0,xs:!0,children:Ie.jsx(tr,{container:!0,direction:"row",spacing:1,children:l?Ie.jsxs(et.Fragment,{children:[c?Ie.jsx(tr,{item:!0,xs:!0,children:Ie.jsx(dC,{alertStats:c})}):Ie.jsx("div",{}),l.map(p=>Ie.jsx(tr,{item:!0,xs:!0,children:Ie.jsx(l1,{data:p})}))]}):Ie.jsx("div",{})})}):Ie.jsx("div",{})]}),d?u==null?void 0:u.map(p=>Ie.jsx(tr,{item:!0,xs:!0,sm:!0,md:!0,children:Ie.jsx(nO,{data:p})})):Ie.jsx("div",{})]})})});return Ie.jsx(tr,{item:!0,...QOe(t),children:n?n({id:s,children:h}):h})};class M9 extends et.Component{render(){return Ie.jsx(tr,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}const t7e=e=>{const[t,n]=et.useState({page:0}),i=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return Ie.jsxs(M9,{children:[i.map((s,o)=>Zc(`wi_${o}`,s)),Ie.jsxs(tr,{item:!0,xs:12,children:[Ie.jsx(fi,{startIcon:Ie.jsx(dj,{}),disabled:t.page===0,onClick:()=>n(s=>({page:s.page-1})),children:"Previous"}),Ie.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),Ie.jsx(fi,{endIcon:Ie.jsx(hj,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>n(s=>({page:s.page+1})),children:"Next"})]})]})};function n7e(e){return e===qf.Small?3:e===qf.Medium?6:(e===qf.Big,12)}function Zc(e,t,n){let i=Ie.jsx(rO,{});if(t.type==="counter")i=Ie.jsx(_Ce,{...t.params});else if(t.type==="percent")i=Ie.jsx(TCe,{...t.params});else if(t.type==="big_graph")i=Ie.jsx(ah,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")i=Ie.jsx(MCe,{...t.params,widgetSize:t.size});else if(t.type==="tabs")i=Ie.jsx(SCe,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")i=Ie.jsx(CCe,{...t.params});else if(t.type==="big_table")i=Ie.jsx(wCe,{...t.params,widgetSize:t.size});else if(t.type==="group")i=Ie.jsx(M9,{children:t.widgets.map((s,o)=>Zc(`wi_${o}`,s))});else if(t.type==="rich_data")i=Ie.jsx(kCe,{...t.params,widgetSize:t.size});else if(t.type==="list"){const s=t;i=Ie.jsx(t7e,{widgets:s.widgets,pageSize:s.pageSize,widgetSize:t.size})}else t.type==="text"?i=Ie.jsx(JOe,{...t.params}):t.type==="test_suite"&&(i=Ie.jsx(KOe,{...t.params}));return Ie.jsx(e7e,{size:n7e(t.size),ItemWrapper:n,children:{...t,content:i}},e)}const s7e=({widgets:e,ItemWrapper:t})=>Ie.jsx(Ie.Fragment,{children:e.length>0&&e.map((n,i)=>Ie.jsx(et.Fragment,{children:Zc(`wi_${i}`,n,t)},n.id))});export{o7e as C,tO as D,i7e as J,UC as M,oe as P,s7e as a,QU as b,eW as c,LF as d,Hu as e,UF as f,jF as g,_1 as h,Bl as i,wj as j,N1 as u}; diff --git a/src/evidently/ui/assets/static/js/DashboardViewParams-mNv_VOpq.js b/src/evidently/ui/assets/static/js/DashboardViewParams-mNv_VOpq.js deleted file mode 100644 index cc429268fd..0000000000 --- a/src/evidently/ui/assets/static/js/DashboardViewParams-mNv_VOpq.js +++ /dev/null @@ -1 +0,0 @@ -import{R as a,r as t}from"./vendor-DoRIiF9A.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-c1VLgBQN.js b/src/evidently/ui/assets/static/js/DashboardWidgets-c1VLgBQN.js deleted file mode 100644 index ef6da3899e..0000000000 --- a/src/evidently/ui/assets/static/js/DashboardWidgets-c1VLgBQN.js +++ /dev/null @@ -1 +0,0 @@ -import{j as r,T as e,G as n}from"./vendor-DoRIiF9A.js";import{D as i}from"./DashboardContent-CtUoNzcD.js";import"./DashboardViewParams-mNv_VOpq.js";import"./index-BqCr-mCb.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(n,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:r.jsx(i,{widgets:t,ItemWrapper:a})})});export{h as DashboardWidgets}; diff --git a/src/evidently/ui/assets/static/js/dashboard-main-BKsjGvq6.js b/src/evidently/ui/assets/static/js/dashboard-main-BKsjGvq6.js new file mode 100644 index 0000000000..d2bacd6490 --- /dev/null +++ b/src/evidently/ui/assets/static/js/dashboard-main-BKsjGvq6.js @@ -0,0 +1,8 @@ +import{s as G,m as Xt,a as Oe,b as D,d as en,j as m,e as St,f as tn,g as Uo,h as Bn,i as nn,L as Tt,k as Go,l as Ko,n as pn,R as qo,_ as y,o as ie,p as pe,q as Je,t as Ke,I as ct,T as He,F as Rt,v as Hn,P as Zo,w as Qo,x as Jo,y as Xo,B as pt,z as es,C as ts,A as ns,D as Yn,E as os,H as ss,J as rs,K as gn,M as zn,N as Wn,O as Te,Q as $t,S as on,U as Me,V as as,W as Zt,X as is,Y as ls,G as tt,Z as cs,$ as us,a0 as ds,a1 as ms,a2 as hs,a3 as fs,a4 as ps,a5 as gs,r as ys,u as bs,a6 as yn,c as vs}from"./index-umZ6I6N8.js";import{P as h,u as Ue,b as Ge,c as ge,d as xs,e as bn,f as Ds,g as Cs,h as ws,M as Un,i as Ps,a as Ms,j as ks,J as Ts}from"./DashboardContent-EFtJQGo_.js";const Ss=e=>{const{absolute:t,children:n,classes:o,flexItem:a,light:s,orientation:r,textAlign:i,variant:c}=e;return tn({root:["root",t&&"absolute",c,s&&"light",r==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&r==="vertical"&&"withChildrenVertical",i==="right"&&r!=="vertical"&&"textAlignRight",i==="left"&&r!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",r==="vertical"&&"wrapperVertical"]},Uo,o)},Is=G("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Xt(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Oe(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Vs=G("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Xt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),It=D.forwardRef(function(t,n){const o=en({props:t,name:"MuiDivider"}),{absolute:a=!1,children:s,className:r,orientation:i="horizontal",component:c=s||i==="vertical"?"div":"hr",flexItem:l=!1,light:u=!1,role:g=c!=="hr"?"separator":void 0,textAlign:f="center",variant:p="fullWidth",...T}=o,d={...o,absolute:a,component:c,flexItem:l,light:u,orientation:i,role:g,textAlign:f,variant:p},x=Ss(d);return m.jsx(Is,{as:c,className:St(x.root,r),role:g,ref:n,ownerState:d,"aria-orientation":g==="separator"&&(c!=="hr"||i==="vertical")?i:void 0,...T,children:s?m.jsx(Vs,{className:x.wrapper,ownerState:d,children:s}):null})});It&&(It.muiSkipListHighlight=!0);function Rs(e){return Bn("MuiListItem",e)}nn("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const $s=nn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function As(e){return Bn("MuiListItemSecondaryAction",e)}nn("MuiListItemSecondaryAction",["root","disableGutters"]);const Fs=e=>{const{disableGutters:t,classes:n}=e;return tn({root:["root",t&&"disableGutters"]},As,n)},Os=G("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Gn=D.forwardRef(function(t,n){const o=en({props:t,name:"MuiListItemSecondaryAction"}),{className:a,...s}=o,r=D.useContext(Tt),i={...o,disableGutters:r.disableGutters},c=Fs(i);return m.jsx(Os,{className:St(c.root,a),ownerState:i,ref:n,...s})});Gn.muiName="ListItemSecondaryAction";const Ls=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},js=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:a,disablePadding:s,divider:r,hasSecondaryAction:i}=e;return tn({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",r&&"divider",t==="flex-start"&&"alignItemsFlexStart",i&&"secondaryAction"],container:["container"]},Rs,n)},Ns=G("div",{name:"MuiListItem",slot:"Root",overridesResolver:Ls})(Xt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${$s.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),Es=G("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),_s=D.forwardRef(function(t,n){const o=en({props:t,name:"MuiListItem"}),{alignItems:a="center",children:s,className:r,component:i,components:c={},componentsProps:l={},ContainerComponent:u="li",ContainerProps:{className:g,...f}={},dense:p=!1,disableGutters:T=!1,disablePadding:d=!1,divider:x=!1,secondaryAction:C,slotProps:v={},slots:k={},...I}=o,P=D.useContext(Tt),w=D.useMemo(()=>({dense:p||P.dense||!1,alignItems:a,disableGutters:T}),[a,P.dense,p,T]),S=D.useRef(null),b=D.Children.toArray(s),M=b.length&&Go(b[b.length-1],["ListItemSecondaryAction"]),A={...o,alignItems:a,dense:w.dense,disableGutters:T,disablePadding:d,divider:x,hasSecondaryAction:M},$=js(A),F=Ko(S,n),L=k.root||c.Root||Ns,R=v.root||l.root||{},V={className:St($.root,R.className,r),...I};let H=i||"li";return M?(H=!V.component&&!i?"div":H,u==="li"&&(H==="li"?H="div":V.component==="li"&&(V.component="div")),m.jsx(Tt.Provider,{value:w,children:m.jsxs(Es,{as:u,className:St($.container,g),ref:F,ownerState:A,...f,children:[m.jsx(L,{...R,...!pn(L)&&{as:H,ownerState:{...A,...R.ownerState}},...V,children:b}),b.pop()]})})):m.jsx(Tt.Provider,{value:w,children:m.jsxs(L,{...R,as:H,ref:F,...!pn(L)&&{ownerState:{...A,...R.ownerState}},...V,children:[b,C&&m.jsx(Gn,{children:C})]})})}),Kn=h.oneOfType([h.func,h.object]);function Wt(e){return e&&e.ownerDocument||document}function Bs(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let vn=0;function Hs(e){const[t,n]=D.useState(e),o=t;return D.useEffect(()=>{t==null&&(vn+=1,n(`mui-${vn}`))},[t]),o}const xn=qo.useId;function At(e){return xn!==void 0?xn():Hs(e)}function X(e){const t=D.useRef(e);return Ue(()=>{t.current=e}),D.useCallback((...n)=>(0,t.current)(...n),[])}function _e(...e){return D.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Bs(n,t)})},e)}const Dn=e=>e,Ys=()=>{let e=Dn;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Dn}}},zs=Ys(),Ws={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function xe(e,t,n="Mui"){const o=Ws[t];return o?`${n}-${o}`:`${zs.generate(e)}-${t}`}function De(e,t,n="Mui"){const o={};return t.forEach(a=>{o[a]=xe(e,a,n)}),o}function Us(e){return typeof e=="string"}function Gs(e,t,n){return e===void 0||Us(e)?t:y({},t,{ownerState:y({},t.ownerState,n)})}function Ks(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function Ft(e,t,n){return typeof e=="function"?e(t,n):e}function qn(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function qs(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:a,className:s}=e;if(!t){const p=ve(a==null?void 0:a.className,o==null?void 0:o.className,s,n==null?void 0:n.className),T=y({},n==null?void 0:n.style,a==null?void 0:a.style,o==null?void 0:o.style),d=y({},n,a,o);return p.length>0&&(d.className=p),Object.keys(T).length>0&&(d.style=T),{props:d,internalRef:void 0}}const r=Ks(y({},a,o)),i=Cn(o),c=Cn(a),l=t(r),u=ve(l==null?void 0:l.className,n==null?void 0:n.className,s,a==null?void 0:a.className,o==null?void 0:o.className),g=y({},l==null?void 0:l.style,n==null?void 0:n.style,a==null?void 0:a.style,o==null?void 0:o.style),f=y({},l,n,c,i);return u.length>0&&(f.className=u),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:l.ref}}const Zs=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Pe(e){var t;const{elementType:n,externalSlotProps:o,ownerState:a,skipResolvingSlotProps:s=!1}=e,r=ie(e,Zs),i=s?{}:Ft(o,a),{props:c,internalRef:l}=qs(y({},r,{externalSlotProps:i})),u=_e(l,i==null?void 0:i.ref,(t=e.additionalProps)==null?void 0:t.ref);return Gs(n,y({},c,{ref:u}),a)}const Ne=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Qs=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const a=n??o;let s;if(e!=null)s=e;else if(a.includes(t))s=t;else if(a.length>0)s=a[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:a,openTo:s}},yt=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:a,isDateDisabled:s,utils:r,timezone:i})=>{const c=r.startOfDay(r.dateWithTimezone(void 0,i));n&&r.isBefore(a,c)&&(a=c),t&&r.isAfter(o,c)&&(o=c);let l=e,u=e;for(r.isBefore(e,a)&&(l=a,u=null),r.isAfter(e,o)&&(u&&(u=o),l=null);l||u;){if(l&&r.isAfter(l,o)&&(l=null),u&&r.isBefore(u,a)&&(u=null),l){if(!s(l))return l;l=r.addDays(l,1)}if(u){if(!s(u))return u;u=r.addDays(u,-1)}}return null},Js=(e,t)=>t==null||!e.isValid(t)?null:t,$e=(e,t,n)=>t==null||!e.isValid(t)?n:t,Xs=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),sn=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const a=o[o.length-1];o.push(e.addMonths(a,1))}return o},Qt=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o},rn=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Be=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},er=["year","month","day"],st=e=>er.includes(e),wn=(e,{format:t,views:n},o)=>{if(t!=null)return t;const a=e.formats;return Ne(n,["year"])?a.year:Ne(n,["month"])?a.month:Ne(n,["day"])?a.dayOfMonth:Ne(n,["month","year"])?`${a.month} ${a.year}`:Ne(n,["day","month"])?`${a.month} ${a.dayOfMonth}`:a.keyboardDate},tr=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},Zn=["hours","minutes","seconds"],it=e=>Zn.includes(e),We=e=>Zn.includes(e)||e==="meridiem",nr=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,bt=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,or=(e,t,n,o)=>{const a=bt(o.getHours(e),t,n);return o.setHours(e,a)},Pn=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Dt=(e,t)=>(n,o)=>e?t.isAfter(n,o):Pn(n,t)>Pn(o,t),Mn=(e,{format:t,views:n,ampm:o})=>{if(t!=null)return t;const a=e.formats;return Ne(n,["hours"])?o?`${a.hours12h} ${a.meridiem}`:a.hours24h:Ne(n,["minutes"])?a.minutes:Ne(n,["seconds"])?a.seconds:Ne(n,["minutes","seconds"])?`${a.minutes}:${a.seconds}`:Ne(n,["hours","minutes","seconds"])?o?`${a.hours12h}:${a.minutes}:${a.seconds} ${a.meridiem}`:`${a.hours24h}:${a.minutes}:${a.seconds}`:o?`${a.hours12h}:${a.minutes} ${a.meridiem}`:`${a.hours24h}:${a.minutes}`},Fe={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},sr=e=>Math.max(...e.map(t=>{var n;return(n=Fe[t.type])!=null?n:1})),ht=(e,t,n)=>{if(t===Fe.year)return e.startOfYear(n);if(t===Fe.month)return e.startOfMonth(n);if(t===Fe.day)return e.startOfDay(n);let o=n;return t{var s;let r=a?a():ht(t,n,rn(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,r)&&(r=ht(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,r)&&(r=ht(t,n,e.maxDate));const i=Dt((s=e.disableIgnoringDatePartForTimeValidation)!=null?s:!1,t);return e.minTime!=null&&i(e.minTime,r)&&(r=ht(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Qt(t,r,e.minTime))),e.maxTime!=null&&i(r,e.maxTime)&&(r=ht(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Qt(t,r,e.maxTime))),r},Qn=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},ar=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Ot=(e,t,n)=>{const o=[],a=e.dateWithTimezone(void 0,t),s=e.startOfWeek(a),r=e.endOfWeek(a);let i=s;for(;e.isBefore(i,r);)o.push(i),i=e.addDays(i,1);return o.map(c=>e.formatByString(c,n))},Jn=(e,t,n,o)=>{switch(n){case"month":return sn(e,e.dateWithTimezone(void 0,t)).map(a=>e.formatByString(a,o));case"weekDay":return Ot(e,t,o);case"meridiem":{const a=e.dateWithTimezone(void 0,t);return[e.startOfDay(a),e.endOfDay(a)].map(s=>e.formatByString(s,o))}default:return[]}},Xn=(e,t,n)=>{let o=t;for(o=Number(o).toString();o.length{if(a.type==="day"&&a.contentType==="digit-with-letter"){const r=e.setDate(o.longestMonth,n);return e.formatByString(r,a.format)}const s=n.toString();return a.hasLeadingZerosInInput?Xn(e,s,a.maxLength):s},ir=(e,t,n,o,a,s,r)=>{const i=ar(o),c=o==="Home",l=o==="End",u=n.value===""||c||l,g=()=>{const p=a[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),T=v=>eo(e,t,v,p,n),d=n.type==="minutes"&&r!=null&&r.minutesStep?r.minutesStep:1;let C=parseInt(n.value,10)+i*d;if(u){if(n.type==="year"&&!l&&!c)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);i>0||c?C=p.minimum:C=p.maximum}return C%d!==0&&((i<0||c)&&(C+=d-(d+C)%d),(i>0||l)&&(C-=C%d)),C>p.maximum?T(p.minimum+(C-p.maximum-1)%(p.maximum-p.minimum+1)):C{const p=Jn(e,t,n.type,n.format);if(p.length===0)return n.value;if(u)return i>0||c?p[0]:p[p.length-1];const d=(p.indexOf(n.value)+p.length+i)%p.length;return p[d]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?g():f()},an=(e,t)=>{let n=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},nt=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),to=(e,t)=>{let n=0,o=t?1:0;const a=[];for(let s=0;s{switch(o.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),a).length});case"month":return n.fieldMonthPlaceholder({contentType:o.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:o.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return a}},kn=(e,t,n,o)=>e.formatByString(e.parse(t,n),o),no=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,oo=(e,t,n,o,a)=>{if(n!=="digit")return!1;const s=e.dateWithTimezone(void 0,t);switch(o){case"year":return no(e,t,a)?e.formatByString(e.setYear(s,1),a)==="0001":e.formatByString(e.setYear(s,2001),a)==="01";case"month":return e.formatByString(e.startOfYear(s),a).length>1;case"day":return e.formatByString(e.startOfMonth(s),a).length>1;case"weekDay":return e.formatByString(e.startOfWeek(s),a).length>1;case"hours":return e.formatByString(e.setHours(s,1),a).length>1;case"minutes":return e.formatByString(e.setMinutes(s,1),a).length>1;case"seconds":return e.formatByString(e.setMinutes(s,1),a).length>1;default:throw new Error("Invalid section type")}},cr=(e,t)=>{const n=[],{start:o,end:a}=e.escapedCharacters,s=new RegExp(`(\\${o}[^\\${a}]*\\${a})+`,"g");let r=null;for(;r=s.exec(t);)n.push({start:r.index,end:s.lastIndex-1});return n},Tn=(e,t,n,o,a,s,r,i)=>{let c="";const l=[],u=e.date(),g=k=>{if(k==="")return null;const I=Qn(e,k),P=oo(e,t,I.contentType,I.type,k),w=r?P:I.contentType==="digit",S=a!=null&&e.isValid(a);let b=S?e.formatByString(a,k):"",M=null;if(w)if(P)M=b===""?e.formatByString(u,k).length:b.length;else{if(I.maxLength==null)throw new Error(`MUI: The token ${k} should have a 'maxDigitNumber' property on it's adapter`);M=I.maxLength,S&&(b=Xn(e,b,M))}return l.push(y({},I,{format:k,maxLength:M,value:b,placeholder:lr(e,t,n,I,k),hasLeadingZeros:P,hasLeadingZerosInFormat:P,hasLeadingZerosInInput:w,startSeparator:l.length===0?c:"",endSeparator:"",modified:!1})),null};let f=10,p=o,T=e.expandFormat(o);for(;T!==p;)if(p=T,T=e.expandFormat(p),f-=1,f<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const d=T,x=cr(e,d),C=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((k,I)=>I.length-k.length).join("|")})`,"g");let v="";for(let k=0;kM.start<=k&&M.end>=k),P=d[k],w=I!=null,S=`${v}${d.slice(k)}`,b=C.test(S);!w&&P.match(/([A-Za-z]+)/)&&b?(v=S.slice(0,C.lastIndex),k+=C.lastIndex-1):w&&(I==null?void 0:I.start)===k||(I==null?void 0:I.end)===k||(g(v),v="",l.length===0?c+=P:l[l.length-1].endSeparator+=P)}return g(v),l.map(k=>{const I=P=>{let w=P;return i&&w!==null&&w.includes(" ")&&(w=`⁩${w}⁦`),s==="spacious"&&["/",".","-"].includes(w)&&(w=` ${w} `),w};return k.startSeparator=I(k.startSeparator),k.endSeparator=I(k.endSeparator),k})},ur=(e,t)=>{const n=t.some(i=>i.type==="day"),o=[],a=[];for(let i=0;i{const o=e.map(a=>{const s=an(a,t?"input-rtl":"input-ltr");return`${a.startSeparator}${s}${a.endSeparator}`}).join("");return t?`⁦${o}⁩`:o},mr=(e,t)=>{const n=e.dateWithTimezone(void 0,t),o=e.endOfYear(n),a=e.endOfDay(n),{maxDaysInMonth:s,longestMonth:r}=sn(e,n).reduce((i,c)=>{const l=e.getDaysInMonth(c);return l>i.maxDaysInMonth?{maxDaysInMonth:l,longestMonth:c}:i},{maxDaysInMonth:0,longestMonth:null});return{year:({format:i})=>({minimum:0,maximum:no(e,t,i)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:i})=>({minimum:1,maximum:i!=null&&e.isValid(i)?e.getDaysInMonth(i):s,longestMonth:r}),weekDay:({format:i,contentType:c})=>{if(c==="digit"){const l=Ot(e,t,i).map(Number);return{minimum:Math.min(...l),maximum:Math.max(...l)}}return{minimum:1,maximum:7}},hours:({format:i})=>{const c=e.getHours(a);return e.formatByString(e.endOfDay(n),i)!==c.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),i))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(a)}),seconds:()=>({minimum:0,maximum:e.getSeconds(a)}),meridiem:()=>({minimum:0,maximum:0})}},hr=(e,t,n,o,a)=>{switch(n.type){case"year":return e.setYear(a,e.getYear(o));case"month":return e.setMonth(a,e.getMonth(o));case"weekDay":{const s=Ot(e,t,n.format),r=e.formatByString(o,n.format),i=s.indexOf(r),l=s.indexOf(n.value)-i;return e.addDays(o,l)}case"day":return e.setDate(a,e.getDate(o));case"meridiem":{const s=e.getHours(o)<12,r=e.getHours(a);return s&&r>=12?e.addHours(a,-12):!s&&r<12?e.addHours(a,12):a}case"hours":return e.setHours(a,e.getHours(o));case"minutes":return e.setMinutes(a,e.getMinutes(o));case"seconds":return e.setSeconds(a,e.getSeconds(o));default:return a}},Sn={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},In=(e,t,n,o,a,s)=>[...o].sort((r,i)=>Sn[r.type]-Sn[i.type]).reduce((r,i)=>!s||i.modified?hr(e,t,i,n,r):r,a),fr=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,pr=(e,t)=>{const n={};if(!t)return e.forEach((c,l)=>{const u=l===0?null:l-1,g=l===e.length-1?null:l+1;n[l]={leftIndex:u,rightIndex:g}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},a={};let s=0,r=0,i=e.length-1;for(;i>=0;){r=e.findIndex((c,l)=>{var u;return l>=s&&((u=c.endSeparator)==null?void 0:u.includes(" "))&&c.endSeparator!==" / "}),r===-1&&(r=e.length-1);for(let c=r;c>=s;c-=1)a[c]=i,o[i]=c,i-=1;s=r+1}return e.forEach((c,l)=>{const u=a[l],g=u===0?null:o[u-1],f=u===e.length-1?null:o[u+1];n[l]={leftIndex:g,rightIndex:f}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},gr=["value","referenceDate"],Se={emptyValue:null,getTodayValue:rn,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=ie(e,gr);return t!=null&&o.utils.isValid(t)?t:n??rr(o)},cleanValue:Js,areValuesEqual:Xs,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},yr={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,o,a)=>!e.isValid(t)&&!!n?n:to(a(t),o),getValueStrFromSections:dr,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},br=["localeText"],Jt=D.createContext(null),ln=function(t){var n;const{localeText:o}=t,a=ie(t,br),{utils:s,localeText:r}=(n=D.useContext(Jt))!=null?n:{utils:void 0,localeText:void 0},i=pe({props:a,name:"MuiLocalizationProvider"}),{children:c,dateAdapter:l,dateFormats:u,dateLibInstance:g,adapterLocale:f,localeText:p}=i,T=D.useMemo(()=>y({},p,r,o),[p,r,o]),d=D.useMemo(()=>{if(!l)return s||null;const v=new l({locale:f,formats:u,instance:g});if(!v.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return v},[l,f,u,g,s]),x=D.useMemo(()=>d?{minDate:d.date("1900-01-01T00:00:00.000"),maxDate:d.date("2099-12-31T00:00:00.000")}:null,[d]),C=D.useMemo(()=>({utils:d,defaultDates:x,localeText:T}),[x,d,T]);return m.jsx(Jt.Provider,{value:C,children:c})},vr=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:y({},e)}}}}),so={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",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"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`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},xr=so;vr(so);const Xe=()=>{const e=D.useContext(Jt);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` +`));const t=D.useMemo(()=>y({},xr,e.localeText),[e.localeText]);return D.useMemo(()=>y({},e,{localeText:t}),[e,t])},he=()=>Xe().utils,Ct=()=>Xe().defaultDates,Ie=()=>Xe().localeText,qe=e=>{const t=he(),n=D.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function ro(e,t,n,o){const{value:a,onError:s}=e,r=Xe(),i=D.useRef(o),c=t({adapter:r,value:a,props:e});return D.useEffect(()=>{s&&!n(c,i.current)&&s(c,a),i.current=c},[n,s,i,c,a]),c}const cn=({timezone:e,value:t,defaultValue:n,onChange:o,valueManager:a})=>{var s,r;const i=he(),c=D.useRef(n),l=(s=t??c.current)!=null?s:a.emptyValue,u=D.useMemo(()=>a.getTimezone(i,l),[i,a,l]),g=X(d=>u==null?d:a.setTimezone(i,u,d)),f=(r=e??u)!=null?r:"default",p=D.useMemo(()=>a.setTimezone(i,f,l),[a,i,f,l]),T=X((d,...x)=>{const C=g(d);o==null||o(C,...x)});return{value:p,handleValueChange:T,timezone:f}},ut=({name:e,timezone:t,value:n,defaultValue:o,onChange:a,valueManager:s})=>{const[r,i]=Ge({name:e,state:"value",controlled:n,default:o??s.emptyValue}),c=X((l,...u)=>{i(l),a==null||a(l,...u)});return cn({timezone:t,value:r,defaultValue:void 0,onChange:c,valueManager:s})},Dr=e=>{const t=he(),n=Ie(),o=Xe(),s=Je().direction==="rtl",{valueManager:r,fieldValueManager:i,valueType:c,validator:l,internalProps:u,internalProps:{value:g,defaultValue:f,referenceDate:p,onChange:T,format:d,formatDensity:x="dense",selectedSections:C,onSelectedSectionsChange:v,shouldRespectLeadingZeros:k=!1,timezone:I}}=e,{timezone:P,value:w,handleValueChange:S}=cn({timezone:I,value:g,defaultValue:f,onChange:T,valueManager:r}),b=D.useMemo(()=>mr(t,P),[t,P]),M=D.useCallback((W,z=null)=>i.getSectionsFromValue(t,W,z,s,Z=>Tn(t,P,n,d,Z,x,k,s)),[i,d,n,s,k,t,x,P]),A=D.useMemo(()=>i.getValueStrFromSections(M(r.emptyValue),s),[i,M,r.emptyValue,s]),[$,F]=D.useState(()=>{const W=M(w),z={sections:W,value:w,referenceValue:r.emptyValue,tempValueStrAndroid:null},Z=sr(W),N=r.getInitialReferenceValue({referenceDate:p,value:w,utils:t,props:u,granularity:Z,timezone:P});return y({},z,{referenceValue:N})}),[L,R]=Ge({controlled:C,default:null,name:"useField",state:"selectedSectionIndexes"}),V=W=>{R(W),v==null||v(W),F(z=>y({},z,{selectedSectionQuery:null}))},H=D.useMemo(()=>{if(L==null)return null;if(L==="all")return{startIndex:0,endIndex:$.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof L=="number")return{startIndex:L,endIndex:L};if(typeof L=="string"){const W=$.sections.findIndex(z=>z.type===L);return{startIndex:W,endIndex:W}}return L},[L,$.sections]),K=({value:W,referenceValue:z,sections:Z})=>{F(J=>y({},J,{sections:Z,value:W,referenceValue:z,tempValueStrAndroid:null}));const N={validationError:l({adapter:o,value:W,props:y({},u,{value:W,timezone:P})})};S(W,N)},Y=(W,z)=>{const Z=[...$.sections];return Z[W]=y({},Z[W],{value:z,modified:!0}),to(Z,s)},B=()=>{r.areValuesEqual(t,$.value,r.emptyValue)||K({value:r.emptyValue,referenceValue:$.referenceValue,sections:M(r.emptyValue)})},q=()=>{if(H==null)return;const W=$.sections[H.startIndex];if(W.value==="")return;const z=i.getActiveDateManager(t,$,W),N=z.getSections($.sections).filter(U=>U.value!=="").length===1,J=Y(H.startIndex,""),ce=N?null:t.date(new Date("")),ae=z.getNewValuesFromNewActiveDate(ce);(ce!=null&&!t.isValid(ce))!=(z.date!=null&&!t.isValid(z.date))?K(y({},ae,{sections:J})):F(U=>y({},U,ae,{sections:J,tempValueStrAndroid:null}))},ne=W=>{const z=(J,ce)=>{const ae=t.parse(J,d);if(ae==null||!t.isValid(ae))return null;const U=Tn(t,P,n,d,ae,x,k,s);return In(t,P,ae,U,ce,!1)},Z=i.parseValueStr(W,$.referenceValue,z),N=i.updateReferenceValue(t,Z,$.referenceValue);K({value:Z,referenceValue:N,sections:M(Z,$.sections)})},re=({activeSection:W,newSectionValue:z,shouldGoToNextSection:Z})=>{Z&&H&&H.startIndex<$.sections.length-1?V(H.startIndex+1):H&&H.startIndex!==H.endIndex&&V(H.startIndex);const N=i.getActiveDateManager(t,$,W),J=Y(H.startIndex,z),ce=N.getSections(J),ae=ur(t,ce);let U,Q;if(ae!=null&&t.isValid(ae)){const E=In(t,P,ae,ce,N.referenceDate,!0);U=N.getNewValuesFromNewActiveDate(E),Q=!0}else U=N.getNewValuesFromNewActiveDate(ae),Q=(ae!=null&&!t.isValid(ae))!=(N.date!=null&&!t.isValid(N.date));return Q?K(y({},U,{sections:J})):F(E=>y({},E,U,{sections:J,tempValueStrAndroid:null}))},le=W=>F(z=>y({},z,{tempValueStrAndroid:W}));return D.useEffect(()=>{const W=M($.value);F(z=>y({},z,{sections:W}))},[d,t.locale]),D.useEffect(()=>{let W=!1;r.areValuesEqual(t,$.value,w)?W=r.getTimezone(t,$.value)!==r.getTimezone(t,w):W=!0,W&&F(z=>y({},z,{value:w,referenceValue:i.updateReferenceValue(t,w,z.referenceValue),sections:M(w)}))},[w]),{state:$,selectedSectionIndexes:H,setSelectedSections:V,clearValue:B,clearActiveSection:q,updateSectionValue:re,updateValueFromValueStr:ne,setTempAndroidValueStr:le,sectionsValueBoundaries:b,placeholder:A,timezone:P}},Cr=5e3,et=e=>e.saveQuery!=null,wr=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:o,timezone:a})=>{const s=he(),[r,i]=D.useState(null),c=X(()=>i(null));D.useEffect(()=>{var p;r!=null&&((p=e[r.sectionIndex])==null?void 0:p.type)!==r.sectionType&&c()},[e,r,c]),D.useEffect(()=>{if(r!=null){const p=setTimeout(()=>c(),Cr);return()=>{window.clearTimeout(p)}}return()=>{}},[r,c]);const l=({keyPressed:p,sectionIndex:T},d,x)=>{const C=p.toLowerCase(),v=e[T];if(r!=null&&(!x||x(r.value))&&r.sectionIndex===T){const I=`${r.value}${C}`,P=d(I,v);if(!et(P))return i({sectionIndex:T,value:I,sectionType:v.type}),P}const k=d(C,v);return et(k)&&!k.saveQuery?(c(),null):(i({sectionIndex:T,value:C,sectionType:v.type}),et(k)?null:k)},u=p=>{const T=(C,v,k)=>{const I=v.filter(P=>P.toLowerCase().startsWith(k));return I.length===0?{saveQuery:!1}:{sectionValue:I[0],shouldGoToNextSection:I.length===1}},d=(C,v,k,I)=>{const P=w=>Jn(s,a,v.type,w);if(v.contentType==="letter")return T(v.format,P(v.format),C);if(k&&I!=null&&Qn(s,k).contentType==="letter"){const w=P(k),S=T(k,w,C);return et(S)?{saveQuery:!1}:y({},S,{sectionValue:I(S.sectionValue,w)})}return{saveQuery:!1}};return l(p,(C,v)=>{switch(v.type){case"month":{const k=I=>kn(s,I,s.formats.month,v.format);return d(C,v,s.formats.month,k)}case"weekDay":{const k=(I,P)=>P.indexOf(I).toString();return d(C,v,s.formats.weekday,k)}case"meridiem":return d(C,v);default:return{saveQuery:!1}}})},g=p=>{const T=(x,C)=>{const v=+`${x}`,k=n[C.type]({currentDate:null,format:C.format,contentType:C.contentType});if(v>k.maximum)return{saveQuery:!1};if(vk.maximum||x.length===k.maximum.toString().length;return{sectionValue:eo(s,a,v,k,C),shouldGoToNextSection:I}};return l(p,(x,C)=>{if(C.contentType==="digit"||C.contentType==="digit-with-letter")return T(x,C);if(C.type==="month"){const v=oo(s,a,"digit","month","MM"),k=T(x,{type:C.type,format:"MM",hasLeadingZerosInFormat:v,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(et(k))return k;const I=kn(s,k.sectionValue,"MM",C.format);return y({},k,{sectionValue:I})}if(C.type==="weekDay"){const v=T(x,C);if(et(v))return v;const k=Ot(s,a,C.format)[Number(v.sectionValue)-1];return y({},v,{sectionValue:k})}return{saveQuery:!1}},x=>!Number.isNaN(Number(x)))};return{applyCharacterEditing:X(p=>{const T=e[p.sectionIndex],x=!Number.isNaN(Number(p.keyPressed))?g(p):u(p);x==null?o(null):t({activeSection:T,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:c}};function Pr(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Mr=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Vt=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Vt(t.shadowRoot):t:null},kr="@media (pointer: fine)",Tr=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],Sr=e=>{const t=he(),{state:n,selectedSectionIndexes:o,setSelectedSections:a,clearValue:s,clearActiveSection:r,updateSectionValue:i,updateValueFromValueStr:c,setTempAndroidValueStr:l,sectionsValueBoundaries:u,placeholder:g,timezone:f}=Dr(e),{inputRef:p,internalProps:T,internalProps:{readOnly:d=!1,unstableFieldRef:x,minutesStep:C},forwardedProps:{onClick:v,onKeyDown:k,onFocus:I,onBlur:P,onMouseUp:w,onPaste:S,error:b,clearable:M,onClear:A,disabled:$},fieldValueManager:F,valueManager:L,validator:R}=e,V=ie(e.forwardedProps,Tr),{applyCharacterEditing:H,resetCharacterQuery:K}=wr({sections:n.sections,updateSectionValue:i,sectionsValueBoundaries:u,setTempAndroidValueStr:l,timezone:f}),Y=D.useRef(null),B=_e(p,Y),q=D.useRef(void 0),re=Je().direction==="rtl",le=D.useMemo(()=>pr(n.sections,re),[n.sections,re]),W=()=>{var O;if(d){a(null);return}const j=(O=Y.current.selectionStart)!=null?O:0;let _;j<=n.sections[0].startInInput||j>=n.sections[n.sections.length-1].endInInput?_=1:_=n.sections.findIndex(ye=>ye.startInInput-ye.startSeparator.length>j);const se=_===-1?n.sections.length-1:_-1;a(se)},z=X((O,...j)=>{O.isDefaultPrevented()||(v==null||v(O,...j),W())}),Z=X(O=>{w==null||w(O),O.preventDefault()}),N=X((...O)=>{I==null||I(...O);const j=Y.current;window.clearTimeout(q.current),q.current=setTimeout(()=>{!j||j!==Y.current||o!=null||d||(j.value.length&&Number(j.selectionEnd)-Number(j.selectionStart)===j.value.length?a("all"):W())})}),J=X((...O)=>{P==null||P(...O),a(null)}),ce=X(O=>{if(S==null||S(O),d){O.preventDefault();return}const j=O.clipboardData.getData("text");if(o&&o.startIndex===o.endIndex){const _=n.sections[o.startIndex],se=/^[a-zA-Z]+$/.test(j),ye=/^[0-9]+$/.test(j),be=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(j);if(_.contentType==="letter"&&se||_.contentType==="digit"&&ye||_.contentType==="digit-with-letter"&&be)return;if(se||ye){O.preventDefault();return}}O.preventDefault(),K(),c(j)}),ae=X(O=>{if(d)return;const j=O.target.value,_=O.nativeEvent.data,se=_&&_.length>1,ye=se?_:j,be=nt(ye);if(o==null||se){c(se?_:be);return}let fe;if(o.startIndex===0&&o.endIndex===n.sections.length-1&&be.length===1)fe=be;else{const ue=nt(F.getValueStrFromSections(n.sections,re));let we=-1,Ve=-1;for(let Ae=0;AeLe.end)return;const dt=be.length-ue.length+Le.end-nt(Le.endSeparator||"").length;fe=be.slice(Le.start+nt(Le.startSeparator||"").length,dt)}if(fr()&&fe.length===0){l(ye);return}H({keyPressed:fe,sectionIndex:o.startIndex})}),U=X(O=>{switch(k==null||k(O),!0){case(O.key==="a"&&(O.ctrlKey||O.metaKey)):{O.preventDefault(),a("all");break}case O.key==="ArrowRight":{if(O.preventDefault(),o==null)a(le.startIndex);else if(o.startIndex!==o.endIndex)a(o.endIndex);else{const j=le.neighbors[o.startIndex].rightIndex;j!==null&&a(j)}break}case O.key==="ArrowLeft":{if(O.preventDefault(),o==null)a(le.endIndex);else if(o.startIndex!==o.endIndex)a(o.startIndex);else{const j=le.neighbors[o.startIndex].leftIndex;j!==null&&a(j)}break}case["Backspace","Delete"].includes(O.key):{if(O.preventDefault(),d)break;o==null||o.startIndex===0&&o.endIndex===n.sections.length-1?s():r(),K();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(O.key):{if(O.preventDefault(),d||o==null)break;const j=n.sections[o.startIndex],_=F.getActiveDateManager(t,n,j),se=ir(t,f,j,O.key,u,_.date,{minutesStep:C});i({activeSection:j,newSectionValue:se,shouldGoToNextSection:!1});break}}});Ue(()=>{if(!Y.current)return;if(o==null){Y.current.scrollLeft&&(Y.current.scrollLeft=0);return}const O=n.sections[o.startIndex],j=n.sections[o.endIndex];let _=O.startInInput,se=j.endInInput;if(o.shouldSelectBoundarySelectors&&(_-=O.startSeparator.length,se+=j.endSeparator.length),_!==Y.current.selectionStart||se!==Y.current.selectionEnd){const ye=Y.current.scrollTop;Y.current===Vt(document)&&Y.current.setSelectionRange(_,se),Y.current.scrollTop=ye}});const Q=ro(y({},T,{value:n.value,timezone:f}),R,L.isSameError,L.defaultErrorState),E=D.useMemo(()=>b!==void 0?b:L.hasError(Q),[L,Q,b]);D.useEffect(()=>{!E&&!o&&K()},[n.referenceValue,o,E]),D.useEffect(()=>(Y.current&&Y.current===document.activeElement&&a("all"),()=>window.clearTimeout(q.current)),[]),D.useEffect(()=>{n.tempValueStrAndroid!=null&&o!=null&&(K(),r())},[n.tempValueStrAndroid]);const te=D.useMemo(()=>{var O;return(O=n.tempValueStrAndroid)!=null?O:F.getValueStrFromSections(n.sections,re)},[n.sections,F,n.tempValueStrAndroid,re]),de=D.useMemo(()=>o==null||n.sections[o.startIndex].contentType==="letter"?"text":"numeric",[o,n.sections]),me=Y.current&&Y.current===Vt(document),ke=L.areValuesEqual(t,n.value,L.emptyValue),ee=!me&&ke;D.useImperativeHandle(x,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var O,j;const _=(O=Y.current.selectionStart)!=null?O:0,se=(j=Y.current.selectionEnd)!=null?j:0;if(_===0&&se===0)return null;const ye=_<=n.sections[0].startInInput?1:n.sections.findIndex(be=>be.startInInput-be.startSeparator.length>_);return ye===-1?n.sections.length-1:ye-1},setSelectedSections:O=>a(O)}));const oe=X((O,...j)=>{var _;O.preventDefault(),A==null||A(O,...j),s(),Y==null||(_=Y.current)==null||_.focus(),a(0)});return y({placeholder:g,autoComplete:"off",disabled:!!$},V,{value:ee?"":te,inputMode:de,readOnly:d,onClick:z,onFocus:N,onBlur:J,onPaste:ce,onChange:ae,onKeyDown:U,onMouseUp:Z,onClear:oe,error:E,ref:B,clearable:!!(M&&!ke&&!d&&!$)})},ao=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:a,shouldDisableYear:s,disablePast:r,disableFuture:i,timezone:c}=e,l=n.utils.dateWithTimezone(void 0,c),u=$e(n.utils,e.minDate,n.defaultDates.minDate),g=$e(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(a&&a(t)):return"shouldDisableMonth";case!!(s&&s(t)):return"shouldDisableYear";case!!(i&&n.utils.isAfterDay(t,l)):return"disableFuture";case!!(r&&n.utils.isBeforeDay(t,l)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(g&&n.utils.isAfterDay(t,g)):return"maxDate";default:return null}},Ir=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:o,maxTime:a,minutesStep:s,shouldDisableClock:r,shouldDisableTime:i,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:l,disableFuture:u,timezone:g}=n,f=e.utils.dateWithTimezone(void 0,g),p=Dt(c,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(o&&p(o,t)):return"minTime";case!!(a&&p(t,a)):return"maxTime";case!!(u&&e.utils.isAfter(t,f)):return"disableFuture";case!!(l&&e.utils.isBefore(t,f)):return"disablePast";case!!(i&&i(t,"hours")):return"shouldDisableTime-hours";case!!(i&&i(t,"minutes")):return"shouldDisableTime-minutes";case!!(i&&i(t,"seconds")):return"shouldDisableTime-seconds";case!!(r&&r(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(r&&r(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(r&&r(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(s&&e.utils.getMinutes(t)%s!==0):return"minutesStep";default:return null}},un=({props:e,value:t,adapter:n})=>{const o=ao({adapter:n,value:t,props:e});return o!==null?o:Ir({adapter:n,value:t,props:e})},io=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],lo=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],co=["minDateTime","maxDateTime"],Vr=[...io,...lo,...co],uo=e=>Vr.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),Rr=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],$r=(e,t)=>{const n=y({},e),o={},a=s=>{n.hasOwnProperty(s)&&(o[s]=n[s],delete n[s])};return Rr.forEach(a),io.forEach(a),lo.forEach(a),co.forEach(a),{forwardedProps:n,internalProps:o}},Ar=e=>{var t,n,o,a,s,r,i,c;const l=he(),u=Ct(),f=((t=e.ampm)!=null?t:l.is12HourCycleInCurrentLocale())?l.formats.keyboardDateTime12h:l.formats.keyboardDateTime24h;return y({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(o=e.disableFuture)!=null?o:!1,format:(a=e.format)!=null?a:f,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:$e(l,(s=e.minDateTime)!=null?s:e.minDate,u.minDate),maxDate:$e(l,(r=e.maxDateTime)!=null?r:e.maxDate,u.maxDate),minTime:(i=e.minDateTime)!=null?i:e.minTime,maxTime:(c=e.maxDateTime)!=null?c:e.maxTime})},Fr=({props:e,inputRef:t})=>{const n=Ar(e),{forwardedProps:o,internalProps:a}=$r(n);return Sr({inputRef:t,forwardedProps:o,internalProps:a,valueManager:Se,fieldValueManager:yr,validator:un,valueType:"date-time"})},Or=Ke(m.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Lr=Ke(m.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),jr=Ke(m.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Nr=Ke(m.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");Ke(m.jsxs(D.Fragment,{children:[m.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"}),m.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");const Er=Ke(m.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"),_r=Ke(m.jsxs(D.Fragment,{children:[m.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"}),m.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),Br=Ke(m.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");function Hr(e){return xe("MuiPickersArrowSwitcher",e)}De("MuiPickersArrowSwitcher",["root","spacer","button"]);const Yr=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],zr=["ownerState"],Wr=["ownerState"],Ur=G("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Gr=G("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Vn=G(ct,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>y({},e.hidden&&{visibility:"hidden"})),Kr=e=>{const{classes:t}=e;return ge({root:["root"],spacer:["spacer"],button:["button"]},Hr,t)},mo=D.forwardRef(function(t,n){var o,a,s,r;const c=Je().direction==="rtl",l=pe({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:g,slots:f,slotProps:p,isNextDisabled:T,isNextHidden:d,onGoToNext:x,nextLabel:C,isPreviousDisabled:v,isPreviousHidden:k,onGoToPrevious:I,previousLabel:P}=l,w=ie(l,Yr),S=l,b=Kr(S),M={isDisabled:T,isHidden:d,goTo:x,label:C},A={isDisabled:v,isHidden:k,goTo:I,label:P},$=(o=f==null?void 0:f.previousIconButton)!=null?o:Vn,F=Pe({elementType:$,externalSlotProps:p==null?void 0:p.previousIconButton,additionalProps:{size:"medium",title:A.label,"aria-label":A.label,disabled:A.isDisabled,edge:"end",onClick:A.goTo},ownerState:y({},S,{hidden:A.isHidden}),className:b.button}),L=(a=f==null?void 0:f.nextIconButton)!=null?a:Vn,R=Pe({elementType:L,externalSlotProps:p==null?void 0:p.nextIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"start",onClick:M.goTo},ownerState:y({},S,{hidden:M.isHidden}),className:b.button}),V=(s=f==null?void 0:f.leftArrowIcon)!=null?s:Lr,H=Pe({elementType:V,externalSlotProps:p==null?void 0:p.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),K=ie(H,zr),Y=(r=f==null?void 0:f.rightArrowIcon)!=null?r:jr,B=Pe({elementType:Y,externalSlotProps:p==null?void 0:p.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),q=ie(B,Wr);return m.jsxs(Ur,y({ref:n,className:ve(b.root,g),ownerState:S},w,{children:[m.jsx($,y({},F,{children:c?m.jsx(Y,y({},q)):m.jsx(V,y({},K))})),u?m.jsx(He,{variant:"subtitle1",component:"span",children:u}):m.jsx(Gr,{className:b.spacer,ownerState:S}),m.jsx(L,y({},R,{children:c?m.jsx(V,y({},K)):m.jsx(Y,y({},q))}))]}))}),vt=36,Lt=2,jt=320,qr=280,Nt=334,ho=232,gt=48,Zr=G(xs)({[`& .${bn.container}`]:{outline:0},[`& .${bn.paper}`]:{outline:0,minWidth:jt}}),Qr=G(Ds)({"&:first-of-type":{padding:0}});function Jr(e){var t,n;const{children:o,onDismiss:a,open:s,slots:r,slotProps:i}=e,c=(t=r==null?void 0:r.dialog)!=null?t:Zr,l=(n=r==null?void 0:r.mobileTransition)!=null?n:Rt;return m.jsx(c,y({open:s,onClose:a},i==null?void 0:i.dialog,{TransitionComponent:l,TransitionProps:i==null?void 0:i.mobileTransition,PaperComponent:r==null?void 0:r.mobilePaper,PaperProps:i==null?void 0:i.mobilePaper,children:m.jsx(Qr,{children:o})}))}function Xr(e){return xe("MuiPickersPopper",e)}De("MuiPickersPopper",["root","paper"]);const ea="@media (prefers-reduced-motion: reduce)",rt=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Rn=rt&&rt[1]?parseInt(rt[1],10):null,$n=rt&&rt[2]?parseInt(rt[2],10):null,ta=Rn&&Rn<10||$n&&$n<13||!1,fo=()=>Hn(ea,{defaultMatches:!1})||ta,na=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],oa=e=>{const{classes:t}=e;return ge({root:["root"],paper:["paper"]},Xr,t)},sa=G(Zo,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),ra=G(Qo,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>y({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function aa(e,t){return t.documentElement.clientWidth{if(!e)return;function c(){s.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),s.current=!1}},[e]);const r=X(c=>{if(!s.current)return;const l=o.current;o.current=!1;const u=Wt(a.current);if(!a.current||"clientX"in c&&aa(c,u))return;if(n.current){n.current=!1;return}let g;c.composedPath?g=c.composedPath().indexOf(a.current)>-1:g=!u.documentElement.contains(c.target)||a.current.contains(c.target),!g&&!l&&t(c)}),i=()=>{o.current=!0};return D.useEffect(()=>{if(e){const c=Wt(a.current),l=()=>{n.current=!0};return c.addEventListener("touchstart",r),c.addEventListener("touchmove",l),()=>{c.removeEventListener("touchstart",r),c.removeEventListener("touchmove",l)}}},[e,r]),D.useEffect(()=>{if(e){const c=Wt(a.current);return c.addEventListener("click",r),()=>{c.removeEventListener("click",r),o.current=!1}}},[e,r]),[a,i,i]}const la=D.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:o,ownerState:a,children:s,paperSlotProps:r,paperClasses:i,onPaperClick:c,onPaperTouchStart:l}=e,u=ie(e,na),g=y({},a,{placement:o}),f=Pe({elementType:n,externalSlotProps:r,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:i,ownerState:g});return m.jsx(n,y({},u,f,{onClick:p=>{var T;c(p),(T=f.onClick)==null||T.call(f,p)},onTouchStart:p=>{var T;l(p),(T=f.onTouchStart)==null||T.call(f,p)},ownerState:g,children:s}))});function ca(e){var t,n,o,a;const s=pe({props:e,name:"MuiPickersPopper"}),{anchorEl:r,children:i,containerRef:c=null,shouldRestoreFocus:l,onBlur:u,onDismiss:g,open:f,role:p,placement:T,slots:d,slotProps:x,reduceAnimations:C}=s;D.useEffect(()=>{function B(q){f&&(q.key==="Escape"||q.key==="Esc")&&g()}return document.addEventListener("keydown",B),()=>{document.removeEventListener("keydown",B)}},[g,f]);const v=D.useRef(null);D.useEffect(()=>{p==="tooltip"||l&&!l()||(f?v.current=Vt(document):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[f,p,l]);const[k,I,P]=ia(f,u??g),w=D.useRef(null),S=_e(w,c),b=_e(S,k),M=s,A=oa(M),$=fo(),F=C??$,L=B=>{B.key==="Escape"&&(B.stopPropagation(),g())},R=((t=d==null?void 0:d.desktopTransition)!=null?t:F)?Rt:Jo,V=(n=d==null?void 0:d.desktopTrapFocus)!=null?n:Xo,H=(o=d==null?void 0:d.desktopPaper)!=null?o:ra,K=(a=d==null?void 0:d.popper)!=null?a:sa,Y=Pe({elementType:K,externalSlotProps:x==null?void 0:x.popper,additionalProps:{transition:!0,role:p,open:f,anchorEl:r,placement:T,onKeyDown:L},className:A.root,ownerState:s});return m.jsx(K,y({},Y,{children:({TransitionProps:B,placement:q})=>m.jsx(V,y({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:p==="tooltip",isEnabled:()=>!0},x==null?void 0:x.desktopTrapFocus,{children:m.jsx(R,y({},B,x==null?void 0:x.desktopTransition,{children:m.jsx(la,{PaperComponent:H,ownerState:M,popperPlacement:q,ref:b,onPaperClick:I,onPaperTouchStart:P,paperClasses:A.paper,paperSlotProps:x==null?void 0:x.desktopPaper,children:i})}))}))}))}function po(e){return xe("MuiPickersToolbar",e)}De("MuiPickersToolbar",["root","content"]);const ua=e=>{const{classes:t,isLandscape:n}=e;return ge({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},po,t)},da=G("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>y({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"})),ma=G("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),ha=D.forwardRef(function(t,n){const o=pe({props:t,name:"MuiPickersToolbar"}),{children:a,className:s,toolbarTitle:r,hidden:i,titleId:c}=o,l=o,u=ua(l);return i?null:m.jsxs(da,{ref:n,className:ve(u.root,s),ownerState:l,children:[m.jsx(He,{color:"text.secondary",variant:"overline",id:c,children:r}),m.jsx(ma,{className:u.content,ownerState:l,children:a})]})});function fa(e){return xe("MuiPickersToolbarText",e)}const An=De("MuiPickersToolbarText",["root","selected"]),pa=["className","selected","value"],ga=e=>{const{classes:t,selected:n}=e;return ge({root:["root",n&&"selected"]},fa,t)},ya=G(He,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${An.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${An.selected}`]:{color:(e.vars||e).palette.text.primary}})),go=D.forwardRef(function(t,n){const o=pe({props:t,name:"MuiPickersToolbarText"}),{className:a,value:s}=o,r=ie(o,pa),i=ga(o);return m.jsx(ya,y({ref:n,className:ve(a,i.root),component:"span"},r,{children:s}))}),ba=["align","className","selected","typographyClassName","value","variant","width"],va=e=>{const{classes:t}=e;return ge({root:["root"]},po,t)},xa=G(pt,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),ze=D.forwardRef(function(t,n){const o=pe({props:t,name:"MuiPickersToolbarButton"}),{align:a,className:s,selected:r,typographyClassName:i,value:c,variant:l,width:u}=o,g=ie(o,ba),f=va(o);return m.jsx(xa,y({variant:"text",ref:n,className:ve(s,f.root)},u?{sx:{width:u}}:{},g,{children:m.jsx(go,{align:a,className:i,variant:l,value:c,selected:r})}))}),Da=({open:e,onOpen:t,onClose:n})=>{const o=D.useRef(typeof e=="boolean").current,[a,s]=D.useState(!1);D.useEffect(()=>{if(o){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(e)}},[o,e]);const r=D.useCallback(i=>{o||s(i),i&&t&&t(),!i&&n&&n()},[o,t,n]);return{isOpen:a,setIsOpen:r}},Ca=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:a}=e,s=!a&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?s?!0:n(o.lastPublishedValue):!1},wa=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:a,closeOnSelect:s}=e,r=!a&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?r&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&s?r?!0:n(o.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(o.lastCommittedValue):!1},Pa=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},Ma=({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:a})=>{const{onAccept:s,onChange:r,value:i,defaultValue:c,closeOnSelect:l=o==="desktop",selectedSections:u,onSelectedSectionsChange:g,timezone:f}=e,{current:p}=D.useRef(c),{current:T}=D.useRef(i!==void 0),d=he(),x=Xe(),[C,v]=Ge({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:k,setIsOpen:I}=Da(e),[P,w]=D.useState(()=>{let N;return i!==void 0?N=i:p!==void 0?N=p:N=t.emptyValue,{draft:N,lastPublishedValue:N,lastCommittedValue:N,lastControlledValue:i,hasBeenModifiedSinceMount:!1}}),{timezone:S,handleValueChange:b}=cn({timezone:f,value:i,defaultValue:p,onChange:r,valueManager:t});ro(y({},e,{value:P.draft,timezone:S}),a,t.isSameError,t.defaultErrorState);const M=X(N=>{const J={action:N,dateState:P,hasChanged:Q=>!t.areValuesEqual(d,N.value,Q),isControlled:T,closeOnSelect:l},ce=Ca(J),ae=wa(J),U=Pa(J);if(w(Q=>y({},Q,{draft:N.value,lastPublishedValue:ce?N.value:Q.lastPublishedValue,lastCommittedValue:ae?N.value:Q.lastCommittedValue,hasBeenModifiedSinceMount:!0})),ce){const E={validationError:N.name==="setValueFromField"?N.context.validationError:a({adapter:x,value:N.value,props:y({},e,{value:N.value,timezone:S})})};N.name==="setValueFromShortcut"&&N.shortcut!=null&&(E.shortcut=N.shortcut),b(N.value,E)}ae&&s&&s(N.value),U&&I(!1)});if(i!==void 0&&(P.lastControlledValue===void 0||!t.areValuesEqual(d,P.lastControlledValue,i))){const N=t.areValuesEqual(d,P.draft,i);w(J=>y({},J,{lastControlledValue:i},N?{}:{lastCommittedValue:i,lastPublishedValue:i,draft:i,hasBeenModifiedSinceMount:!0}))}const A=X(()=>{M({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),$=X(()=>{M({value:P.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),F=X(()=>{M({value:P.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),L=X(()=>{M({value:P.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),R=X(()=>{M({value:t.getTodayValue(d,S,n),name:"setValueFromAction",pickerAction:"today"})}),V=X(()=>I(!0)),H=X(()=>I(!1)),K=X((N,J="partial")=>M({name:"setValueFromView",value:N,selectionState:J})),Y=X((N,J,ce)=>M({name:"setValueFromShortcut",value:N,changeImportance:J??"accept",shortcut:ce})),B=X((N,J)=>M({name:"setValueFromField",value:N,context:J})),q=X(N=>{v(N),g==null||g(N)}),ne={onClear:A,onAccept:$,onDismiss:F,onCancel:L,onSetToday:R,onOpen:V,onClose:H},re={value:P.draft,onChange:B,selectedSections:C,onSelectedSectionsChange:q},le=D.useMemo(()=>t.cleanValue(d,P.draft),[d,t,P.draft]),W={value:le,onChange:K,onClose:H,open:k,onSelectedSectionsChange:q},Z=y({},ne,{value:le,onChange:K,onSelectShortcut:Y,isValid:N=>{const J=a({adapter:x,value:N,props:y({},e,{value:N,timezone:S})});return!t.hasError(J)}});return{open:k,fieldProps:re,viewProps:W,layoutProps:Z,actions:ne}};function wt({onChange:e,onViewChange:t,openTo:n,view:o,views:a,autoFocus:s,focusedView:r,onFocusedViewChange:i}){var c,l;const u=D.useRef(n),g=D.useRef(a),f=D.useRef(a.includes(n)?n:a[0]),[p,T]=Ge({name:"useViews",state:"view",controlled:o,default:f.current}),d=D.useRef(s?p:null),[x,C]=Ge({name:"useViews",state:"focusedView",controlled:r,default:d.current});D.useEffect(()=>{(u.current&&u.current!==n||g.current&&g.current.some(A=>!a.includes(A)))&&(T(a.includes(n)?n:a[0]),g.current=a,u.current=n)},[n,T,p,a]);const v=a.indexOf(p),k=(c=a[v-1])!=null?c:null,I=(l=a[v+1])!=null?l:null,P=X((A,$)=>{C($?A:F=>A===F?null:F),i==null||i(A,$)}),w=X(A=>{A!==p&&(T(A),P(A,!0),t&&t(A))}),S=X(()=>{I&&w(I),P(I,!0)}),b=X((A,$,F)=>{const L=$==="finish",R=F?a.indexOf(F){e(A,$?"partial":"finish",F),$&&(w($),P($,!0))});return{view:p,setView:w,focusedView:x,setFocusedView:P,nextView:I,previousView:k,defaultView:f.current,goToNextView:S,setValueAndGoToNextView:b,setValueAndGoToView:M}}const ka=["className","sx"],Ta=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:o,autoFocusView:a})=>{const{onChange:s,open:r,onSelectedSectionsChange:i,onClose:c}=t,{views:l,openTo:u,onViewChange:g,disableOpenPicker:f,viewRenderers:p,timezone:T}=e,d=ie(e,ka),{view:x,setView:C,defaultView:v,focusedView:k,setFocusedView:I,setValueAndGoToNextView:P}=wt({view:void 0,views:l,openTo:u,onChange:s,onViewChange:g,autoFocus:a}),{hasUIView:w,viewModeLookup:S}=D.useMemo(()=>l.reduce((R,V)=>{let H;return f?H="field":p[V]!=null?H="UI":H="field",R.viewModeLookup[V]=H,H==="UI"&&(R.hasUIView=!0),R},{hasUIView:!1,viewModeLookup:{}}),[f,p,l]),b=D.useMemo(()=>l.reduce((R,V)=>p[V]!=null&&it(V)?R+1:R,0),[p,l]),M=S[x],A=X(()=>M==="UI"),[$,F]=D.useState(M==="UI"?x:null);return $!==x&&S[x]==="UI"&&F(x),Ue(()=>{M==="field"&&r&&(c(),setTimeout(()=>{o==null||o.current.focus(),i(x)}))},[x]),Ue(()=>{if(!r)return;let R=x;M==="field"&&$!=null&&(R=$),R!==v&&S[R]==="UI"&&S[v]==="UI"&&(R=v),R!==x&&C(R),I(R,!0)},[r]),{hasUIView:w,shouldRestoreFocus:A,layoutProps:{views:l,view:$,onViewChange:C},renderCurrentView:()=>{if($==null)return null;const R=p[$];return R==null?null:R(y({},d,n,t,{views:l,timezone:T,onChange:P,view:$,onViewChange:C,focusedView:k,onFocusedViewChange:I,showViewSwitcher:b>1,timeViewsCount:b}))}}};function Fn(){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 Sa=(e,t)=>{const[n,o]=D.useState(Fn);return Ue(()=>{const s=()=>{o(Fn())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),Pr(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Ia=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:a}=e,s=Sa(n.views,a);return{layoutProps:y({},n,t,{isLandscape:s,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}},yo=(e,t="warning")=>{let n=!1;const o=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(o):console.warn(o))}};yo(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const bo=({props:e,valueManager:t,valueType:n,wrapperVariant:o,inputRef:a,additionalViewProps:s,validator:r,autoFocusView:i})=>{const c=Ma({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:r}),l=Ta({props:e,inputRef:a,additionalViewProps:s,autoFocusView:i,propsFromPickerValue:c.viewProps}),u=Ia({props:e,wrapperVariant:o,propsFromPickerValue:c.layoutProps,propsFromPickerViews:l.layoutProps});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:l.renderCurrentView,hasUIView:l.hasUIView,shouldRestoreFocus:l.shouldRestoreFocus,layoutProps:u.layoutProps}};function vo(e){return xe("MuiPickersLayout",e)}const Ut=De("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),Va=["onAccept","onClear","onCancel","onSetToday","actions"];function Ra(e){const{onAccept:t,onClear:n,onCancel:o,onSetToday:a,actions:s}=e,r=ie(e,Va),i=Ie();if(s==null||s.length===0)return null;const c=s==null?void 0:s.map(l=>{switch(l){case"clear":return m.jsx(pt,{onClick:n,children:i.clearButtonLabel},l);case"cancel":return m.jsx(pt,{onClick:o,children:i.cancelButtonLabel},l);case"accept":return m.jsx(pt,{onClick:t,children:i.okButtonLabel},l);case"today":return m.jsx(pt,{onClick:a,children:i.todayButtonLabel},l);default:return null}});return m.jsx(Cs,y({},r,{children:c}))}const $a=["items","changeImportance","isLandscape","onChange","isValid"],Aa=["getValue"];function Fa(e){const{items:t,changeImportance:n,onChange:o,isValid:a}=e,s=ie(e,$a);if(t==null||t.length===0)return null;const r=t.map(i=>{let{getValue:c}=i,l=ie(i,Aa);const u=c({isValid:a});return{label:l.label,onClick:()=>{o(u,n,l)},disabled:!a(u)}});return m.jsx(es,y({dense:!0,sx:[{maxHeight:Nt,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:r.map(i=>m.jsx(_s,{children:m.jsx(ts,y({},i))},i.label))}))}const dn=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>y({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function Oa(e){return e.view!==null}const La=e=>{const{classes:t,isLandscape:n}=e;return ge({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},vo,t)},ja=e=>{var t,n;const{wrapperVariant:o,onAccept:a,onClear:s,onCancel:r,onSetToday:i,view:c,views:l,onViewChange:u,value:g,onChange:f,onSelectShortcut:p,isValid:T,isLandscape:d,disabled:x,readOnly:C,children:v,components:k,componentsProps:I,slots:P,slotProps:w}=e,S=P??dn(k),b=w??I,M=La(e),A=(t=S==null?void 0:S.actionBar)!=null?t:Ra,$=Pe({elementType:A,externalSlotProps:b==null?void 0:b.actionBar,additionalProps:{onAccept:a,onClear:s,onCancel:r,onSetToday:i,actions:o==="desktop"?[]:["cancel","accept"],className:M.actionBar},ownerState:y({},e,{wrapperVariant:o})}),F=m.jsx(A,y({},$)),L=S==null?void 0:S.toolbar,R=Pe({elementType:L,externalSlotProps:b==null?void 0:b.toolbar,additionalProps:{isLandscape:d,onChange:f,value:g,view:c,onViewChange:u,views:l,disabled:x,readOnly:C,className:M.toolbar},ownerState:y({},e,{wrapperVariant:o})}),V=Oa(R)&&L?m.jsx(L,y({},R)):null,H=v,K=S==null?void 0:S.tabs,Y=c&&K?m.jsx(K,y({view:c,onViewChange:u},b==null?void 0:b.tabs)):null,B=(n=S==null?void 0:S.shortcuts)!=null?n:Fa,q=Pe({elementType:B,externalSlotProps:b==null?void 0:b.shortcuts,additionalProps:{isValid:T,isLandscape:d,onChange:p,className:M.shortcuts},ownerState:{isValid:T,isLandscape:d,onChange:p,className:M.shortcuts,wrapperVariant:o}}),ne=c&&B?m.jsx(B,y({},q)):null;return{toolbar:V,content:H,tabs:Y,actionBar:F,shortcuts:ne}},Na=e=>{const{isLandscape:t,classes:n}=e;return ge({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},vo,n)},xo=G("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Ut.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${Ut.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${Ut.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));xo.propTypes={as:h.elementType,ownerState:h.shape({isLandscape:h.bool.isRequired}).isRequired,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])};const Ea=G("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Do=function(t){const n=pe({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:a,tabs:s,actionBar:r,shortcuts:i}=ja(n),{sx:c,className:l,isLandscape:u,ref:g,wrapperVariant:f}=n,p=n,T=Na(p);return m.jsxs(xo,{ref:g,sx:c,className:ve(l,T.root),ownerState:p,children:[u?i:o,u?o:i,m.jsx(Ea,{className:T.contentWrapper,children:f==="desktop"?m.jsxs(D.Fragment,{children:[a,s]}):m.jsxs(D.Fragment,{children:[s,a]})}),r]})};function _a(e,{disableFuture:t,maxDate:n,timezone:o}){const a=he();return D.useMemo(()=>{const s=a.dateWithTimezone(void 0,o),r=a.startOfMonth(t&&a.isBefore(s,n)?s:n);return!a.isAfter(r,e)},[t,n,e,a,o])}function Ba(e,{disablePast:t,minDate:n,timezone:o}){const a=he();return D.useMemo(()=>{const s=a.dateWithTimezone(void 0,o),r=a.startOfMonth(t&&a.isAfter(s,n)?s:n);return!a.isBefore(r,e)},[t,n,e,a,o])}function mn(e,t,n,o){const a=he(),s=nr(e,a),r=D.useCallback(i=>{const c=e==null?null:or(e,i,!!t,a);n(c,o??"partial")},[t,e,n,o,a]);return{meridiemMode:s,handleMeridiemChange:r}}function Ha(e){return xe("MuiPickersDay",e)}const Ze=De("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Ya=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],za=e=>{const{selected:t,disableMargin:n,disableHighlightToday:o,today:a,disabled:s,outsideCurrentMonth:r,showDaysOutsideCurrentMonth:i,classes:c}=e,l=r&&!i;return ge({root:["root",t&&!l&&"selected",s&&"disabled",!n&&"dayWithMargin",!o&&a&&"today",r&&i&&"dayOutsideMonth",l&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Ha,c)},Co=({theme:e,ownerState:t})=>y({},e.typography.caption,{width:vt,height:vt,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Oe(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Oe(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Ze.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ze.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ze.disabled}:not(.${Ze.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ze.disabled}&.${Ze.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${Lt}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Ze.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),wo=(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]},Wa=G(ns,{name:"MuiPickersDay",slot:"Root",overridesResolver:wo})(Co),Ua=G("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:wo})(({theme:e,ownerState:t})=>y({},Co({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),ft=()=>{},Ga=D.forwardRef(function(t,n){const o=pe({props:t,name:"MuiPickersDay"}),{autoFocus:a=!1,className:s,day:r,disabled:i=!1,disableHighlightToday:c=!1,disableMargin:l=!1,isAnimating:u,onClick:g,onDaySelect:f,onFocus:p=ft,onBlur:T=ft,onKeyDown:d=ft,onMouseDown:x=ft,onMouseEnter:C=ft,outsideCurrentMonth:v,selected:k=!1,showDaysOutsideCurrentMonth:I=!1,children:P,today:w=!1}=o,S=ie(o,Ya),b=y({},o,{autoFocus:a,disabled:i,disableHighlightToday:c,disableMargin:l,selected:k,showDaysOutsideCurrentMonth:I,today:w}),M=za(b),A=he(),$=D.useRef(null),F=_e($,n);Ue(()=>{a&&!i&&!u&&!v&&$.current.focus()},[a,i,u,v]);const L=V=>{x(V),v&&V.preventDefault()},R=V=>{i||f(r),v&&V.currentTarget.focus(),g&&g(V)};return v&&!I?m.jsx(Ua,{className:ve(M.root,M.hiddenDaySpacingFiller,s),ownerState:b,role:S.role}):m.jsx(Wa,y({className:ve(M.root,s),ref:F,centerRipple:!0,disabled:i,tabIndex:k?0:-1,onKeyDown:V=>d(V,r),onFocus:V=>p(V,r),onBlur:V=>T(V,r),onMouseEnter:V=>C(V,r),onClick:R,onMouseDown:L},S,{ownerState:b,children:P||A.format(r,"dayOfMonth")}))}),Ka=D.memo(Ga),qa=e=>xe("MuiPickersSlideTransition",e),Re=De("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Za=["children","className","reduceAnimations","slideDirection","transKey","classes"],Qa=e=>{const{classes:t,slideDirection:n}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return ge(o,qa,t)},Ja=G(Yn,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Re["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Re["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Re.slideEnterActive}`]:t.slideEnterActive},{[`.${Re.slideExit}`]:t.slideExit},{[`.${Re["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Re["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,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},[`& .${Re["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Re["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Re.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Re.slideExit}`]:{transform:"translate(0%)"},[`& .${Re["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Re["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function Xa(e){const t=pe({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:a,transKey:s}=t,r=ie(t,Za),i=Qa(t),c=Je();if(a)return m.jsx("div",{className:ve(i.root,o),children:n});const l={exit:i.exit,enterActive:i.enterActive,enter:i.enter,exitActive:i.exitActive};return m.jsx(Ja,{className:ve(i.root,o),childFactory:u=>D.cloneElement(u,{classNames:l}),role:"presentation",children:m.jsx(ws,y({mountOnEnter:!0,unmountOnExit:!0,timeout:c.transitions.duration.complex,classNames:l},r,{children:n}),s)})}const Po=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:a,disableFuture:s,disablePast:r,timezone:i})=>{const c=Xe();return D.useCallback(l=>ao({adapter:c,value:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:a,disableFuture:s,disablePast:r,timezone:i}})!==null,[c,e,t,n,o,a,s,r,i])},ei=e=>xe("MuiDayCalendar",e);De("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const ti=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],ni=["ownerState"],oi=e=>{const{classes:t}=e;return ge({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},ei,t)},Mo=(vt+Lt*2)*6,si=G("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ri=G("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),ai=G(He,{name:"MuiDayCalendar",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.vars||e).palette.text.secondary})),ii=G(He,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),li=G(He,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>y({},e.typography.caption,{width:vt,height:vt,padding:0,margin:`0 ${Lt}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),ci=G("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Mo}),ui=G(Xa,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Mo}),di=G("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),mi=G("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Lt}px 0`,display:"flex",justifyContent:"center"});function hi(e){var t,n,o;let{parentProps:a,day:s,focusableDay:r,selectedDays:i,isDateDisabled:c,currentMonthNumber:l,isViewFocused:u}=e,g=ie(e,ti);const{disabled:f,disableHighlightToday:p,isMonthSwitchingAnimating:T,showDaysOutsideCurrentMonth:d,components:x,componentsProps:C,slots:v,slotProps:k,timezone:I}=a,P=he(),w=qe(I),S=r!==null&&P.isSameDay(s,r),b=i.some(K=>P.isSameDay(K,s)),M=P.isSameDay(s,w),A=(t=(n=v==null?void 0:v.day)!=null?n:x==null?void 0:x.Day)!=null?t:Ka,$=Pe({elementType:A,externalSlotProps:(o=k==null?void 0:k.day)!=null?o:C==null?void 0:C.day,additionalProps:y({disableHighlightToday:p,showDaysOutsideCurrentMonth:d,role:"gridcell",isAnimating:T,"data-timestamp":P.toJsDate(s).valueOf()},g),ownerState:y({},a,{day:s,selected:b})}),F=ie($,ni),L=D.useMemo(()=>f||c(s),[f,c,s]),R=D.useMemo(()=>P.getMonth(s)!==l,[P,s,l]),V=D.useMemo(()=>{const K=P.startOfMonth(P.setMonth(s,l));return d?P.isSameDay(s,P.startOfWeek(K)):P.isSameDay(s,K)},[l,s,d,P]),H=D.useMemo(()=>{const K=P.endOfMonth(P.setMonth(s,l));return d?P.isSameDay(s,P.endOfWeek(K)):P.isSameDay(s,K)},[l,s,d,P]);return m.jsx(A,y({},F,{day:s,disabled:L,autoFocus:u&&S,today:M,outsideCurrentMonth:R,isFirstVisibleCell:V,isLastVisibleCell:H,selected:b,tabIndex:S?0:-1,"aria-selected":b,"aria-current":M?"date":void 0}))}function fi(e){const t=pe({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:o,currentMonth:a,selectedDays:s,focusedDay:r,loading:i,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:l,readOnly:u,reduceAnimations:g,renderLoading:f=()=>m.jsx("span",{children:"..."}),slideDirection:p,TransitionProps:T,disablePast:d,disableFuture:x,minDate:C,maxDate:v,shouldDisableDate:k,shouldDisableMonth:I,shouldDisableYear:P,dayOfWeekFormatter:w,hasFocus:S,onFocusedViewChange:b,gridLabelId:M,displayWeekNumber:A,fixedWeekNumber:$,autoFocus:F,timezone:L}=t,R=qe(L),V=he(),H=oi(t),Y=Je().direction==="rtl",B=w||((ee,oe)=>V.format(oe,"weekdayShort").charAt(0).toUpperCase()),q=Po({shouldDisableDate:k,shouldDisableMonth:I,shouldDisableYear:P,minDate:C,maxDate:v,disablePast:d,disableFuture:x,timezone:L}),ne=Ie(),[re,le]=Ge({name:"DayCalendar",state:"hasFocus",controlled:S,default:F??!1}),[W,z]=D.useState(()=>r||R),Z=X(ee=>{u||c(ee)}),N=ee=>{q(ee)||(n(ee),z(ee),b==null||b(!0),le(!0))},J=X((ee,oe)=>{switch(ee.key){case"ArrowUp":N(V.addDays(oe,-7)),ee.preventDefault();break;case"ArrowDown":N(V.addDays(oe,7)),ee.preventDefault();break;case"ArrowLeft":{const O=V.addDays(oe,Y?1:-1),j=V.addMonths(oe,Y?1:-1),_=yt({utils:V,date:O,minDate:Y?O:V.startOfMonth(j),maxDate:Y?V.endOfMonth(j):O,isDateDisabled:q,timezone:L});N(_||O),ee.preventDefault();break}case"ArrowRight":{const O=V.addDays(oe,Y?-1:1),j=V.addMonths(oe,Y?-1:1),_=yt({utils:V,date:O,minDate:Y?V.startOfMonth(j):O,maxDate:Y?O:V.endOfMonth(j),isDateDisabled:q,timezone:L});N(_||O),ee.preventDefault();break}case"Home":N(V.startOfWeek(oe)),ee.preventDefault();break;case"End":N(V.endOfWeek(oe)),ee.preventDefault();break;case"PageUp":N(V.addMonths(oe,1)),ee.preventDefault();break;case"PageDown":N(V.addMonths(oe,-1)),ee.preventDefault();break}}),ce=X((ee,oe)=>N(oe)),ae=X((ee,oe)=>{re&&V.isSameDay(W,oe)&&(b==null||b(!1))}),U=V.getMonth(a),Q=D.useMemo(()=>s.filter(ee=>!!ee).map(ee=>V.startOfDay(ee)),[V,s]),E=U,te=D.useMemo(()=>D.createRef(),[E]),de=V.startOfWeek(R),me=D.useMemo(()=>{const ee=V.startOfMonth(a),oe=V.endOfMonth(a);return q(W)||V.isAfterDay(W,oe)||V.isBeforeDay(W,ee)?yt({utils:V,date:W,minDate:ee,maxDate:oe,disablePast:d,disableFuture:x,isDateDisabled:q,timezone:L}):W},[a,x,d,W,q,V,L]),ke=D.useMemo(()=>{const ee=V.setTimezone(a,L),oe=V.getWeekArray(ee);let O=V.addMonths(ee,1);for(;$&&oe.length<$;){const j=V.getWeekArray(O),_=V.isSameDay(oe[oe.length-1][0],j[0][0]);j.slice(_?1:0).forEach(se=>{oe.length<$&&oe.push(se)}),O=V.addMonths(O,1)}return oe},[a,$,V,L]);return m.jsxs(si,{role:"grid","aria-labelledby":M,className:H.root,children:[m.jsxs(ri,{role:"row",className:H.header,children:[A&&m.jsx(ii,{variant:"caption",role:"columnheader","aria-label":ne.calendarWeekNumberHeaderLabel,className:H.weekNumberLabel,children:ne.calendarWeekNumberHeaderText}),tr(V,R).map((ee,oe)=>{var O;const j=V.format(ee,"weekdayShort").slice(0,2);return m.jsx(ai,{variant:"caption",role:"columnheader","aria-label":V.format(V.addDays(de,oe),"weekday"),className:H.weekDayLabel,children:(O=B==null?void 0:B(j,ee))!=null?O:j},j+oe.toString())})]}),i?m.jsx(ci,{className:H.loadingContainer,children:f()}):m.jsx(ui,y({transKey:E,onExited:l,reduceAnimations:g,slideDirection:p,className:ve(o,H.slideTransition)},T,{nodeRef:te,children:m.jsx(di,{ref:te,role:"rowgroup",className:H.monthContainer,children:ke.map((ee,oe)=>m.jsxs(mi,{role:"row",className:H.weekContainer,"aria-rowindex":oe+1,children:[A&&m.jsx(li,{className:H.weekNumber,role:"rowheader","aria-label":ne.calendarWeekNumberAriaLabelText(V.getWeekNumber(ee[0])),children:ne.calendarWeekNumberText(V.getWeekNumber(ee[0]))}),ee.map((O,j)=>m.jsx(hi,{parentProps:t,day:O,selectedDays:Q,focusableDay:me,onKeyDown:J,onFocus:ce,onBlur:ae,onDaySelect:Z,isDateDisabled:q,currentMonthNumber:U,isViewFocused:re,"aria-colindex":j+1},O.toString()))]},`week-${ee[0]}`))})}))]})}const pi=(e,t,n)=>(o,a)=>{switch(a.type){case"changeMonth":return y({},o,{slideDirection:a.direction,currentMonth:a.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return y({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(o.focusedDay!=null&&a.focusedDay!=null&&n.isSameDay(a.focusedDay,o.focusedDay))return o;const s=a.focusedDay!=null&&!t&&!n.isSameMonth(o.currentMonth,a.focusedDay);return y({},o,{focusedDay:a.focusedDay,isMonthSwitchingAnimating:s&&!e&&!a.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(a.focusedDay):o.currentMonth,slideDirection:a.focusedDay!=null&&n.isAfterDay(a.focusedDay,o.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},gi=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:o,disableFuture:a,disablePast:s,disableSwitchToMonthOnDayFocus:r=!1,maxDate:i,minDate:c,onMonthChange:l,reduceAnimations:u,shouldDisableDate:g,timezone:f}=e,p=qe(f),T=he(),d=D.useRef(pi(!!u,r,T)).current,x=D.useMemo(()=>{let b=null;return n?b=n:o&&(b=T.startOfMonth(o)),Se.getInitialReferenceValue({value:t,utils:T,timezone:f,props:e,referenceDate:b,granularity:Fe.day})},[]),[C,v]=D.useReducer(d,{isMonthSwitchingAnimating:!1,focusedDay:t||p,currentMonth:T.startOfMonth(x),slideDirection:"left"}),k=D.useCallback(b=>{v(y({type:"changeMonth"},b)),l&&l(b.newMonth)},[l]),I=D.useCallback(b=>{const M=b;T.isSameMonth(M,C.currentMonth)||k({newMonth:T.startOfMonth(M),direction:T.isAfterDay(M,C.currentMonth)?"left":"right"})},[C.currentMonth,k,T]),P=Po({shouldDisableDate:g,minDate:c,maxDate:i,disableFuture:a,disablePast:s,timezone:f}),w=D.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),S=X((b,M)=>{P(b)||v({type:"changeFocusedDay",focusedDay:b,withoutMonthSwitchingAnimation:M})});return{referenceDate:x,calendarState:C,changeMonth:I,changeFocusedDay:S,isDateDisabled:P,onMonthSwitchingAnimationEnd:w,handleChangeMonth:k}},yi=["ownerState"],bi=({clearable:e,fieldProps:t,InputProps:n,onClear:o,slots:a,slotProps:s,components:r,componentsProps:i})=>{var c,l,u,g,f,p;const T=Ie(),d=(c=(l=a==null?void 0:a.clearButton)!=null?l:r==null?void 0:r.ClearButton)!=null?c:ct,x=Pe({elementType:d,externalSlotProps:(u=s==null?void 0:s.clearButton)!=null?u:i==null?void 0:i.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:T.fieldClearLabel}}),C=ie(x,yi),v=(g=(f=a==null?void 0:a.clearIcon)!=null?f:r==null?void 0:r.ClearIcon)!=null?g:Br,k=Pe({elementType:v,externalSlotProps:(p=s==null?void 0:s.clearIcon)!=null?p:i==null?void 0:i.clearIcon,ownerState:{}}),I=y({},n,{endAdornment:e?m.jsxs(D.Fragment,{children:[m.jsx(Un,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:m.jsx(d,y({},C,{onClick:o,children:m.jsx(v,y({fontSize:"small"},k))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),P=y({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:I,fieldProps:P}},vi=["components","componentsProps","slots","slotProps","InputProps","inputProps"],xi=["inputRef"],Di=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],ko=D.forwardRef(function(t,n){var o,a,s;const r=pe({props:t,name:"MuiDateTimeField"}),{components:i,componentsProps:c,slots:l,slotProps:u,InputProps:g,inputProps:f}=r,p=ie(r,vi),T=r,d=(o=(a=l==null?void 0:l.textField)!=null?a:i==null?void 0:i.TextField)!=null?o:os,x=Pe({elementType:d,externalSlotProps:(s=u==null?void 0:u.textField)!=null?s:c==null?void 0:c.textField,externalForwardedProps:p,ownerState:T}),{inputRef:C}=x,v=ie(x,xi);v.inputProps=y({},f,v.inputProps),v.InputProps=y({},g,v.InputProps);const k=Fr({props:v,inputRef:C}),{ref:I,onPaste:P,onKeyDown:w,inputMode:S,readOnly:b,clearable:M,onClear:A}=k,$=ie(k,Di),{InputProps:F,fieldProps:L}=bi({onClear:A,clearable:M,fieldProps:$,InputProps:$.InputProps,slots:l,slotProps:u,components:i,componentsProps:c});return m.jsx(d,y({ref:n},L,{InputProps:y({},F,{readOnly:b}),inputProps:y({},$.inputProps,{inputMode:S,onPaste:P,onKeyDown:w,ref:I})}))});function Ci(e){return xe("MuiDateTimePickerTabs",e)}De("MuiDateTimePickerTabs",["root"]);const wi=e=>st(e)?"date":"time",Pi=e=>e==="date"?"day":"hours",Mi=e=>{const{classes:t}=e;return ge({root:["root"]},Ci,t)},ki=G(ss,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${rs.indicator}`]:{bottom:"auto",top:0}}})),Ti=function(t){const n=pe({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:o=m.jsx(Er,{}),onViewChange:a,timeIcon:s=m.jsx(_r,{}),view:r,hidden:i=typeof window>"u"||window.innerHeight<667}=n,c=Ie(),l=Mi(n),u=(g,f)=>{a(Pi(f))};return i?null:m.jsxs(ki,{ownerState:n,variant:"fullWidth",value:wi(r),onChange:u,className:l.root,children:[m.jsx(gn,{value:"date","aria-label":c.dateTableLabel,icon:m.jsx(D.Fragment,{children:o})}),m.jsx(gn,{value:"time","aria-label":c.timeTableLabel,icon:m.jsx(D.Fragment,{children:s})})]})};function Si(e){return xe("MuiDateTimePickerToolbar",e)}const Gt=De("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Ii=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],Vi=e=>{const{classes:t,theme:n,isLandscape:o}=e,a={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",o&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return ge(a,Si,t)},To=G(ha,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));To.propTypes={as:h.elementType,classes:h.object,className:h.string,isLandscape:h.bool.isRequired,isMobileKeyboardViewOpen:h.bool,landscapeDirection:h.oneOf(["column","row"]),ownerState:h.object.isRequired,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),toggleMobileKeyboardView:h.func,toolbarTitle:h.node,viewType:h.oneOf(["date","time"])};const Ri=G("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),So=G("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return y({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&y({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),$i=G("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>y({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));So.propTypes={as:h.elementType,ownerState:h.object.isRequired,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])};const On=G(go,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),Ai=G("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Gt.ampmLabel}`]:t.ampmLabel},{[`&.${Gt.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>y({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${Gt.ampmLabel}`]:{fontSize:17}}));function Fi(e){const t=pe({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:o,value:a,onChange:s,view:r,isLandscape:i,onViewChange:c,toolbarFormat:l,toolbarPlaceholder:u="––",views:g,disabled:f,readOnly:p,toolbarVariant:T="mobile"}=t,d=ie(t,Ii),x=t,C=he(),{meridiemMode:v,handleMeridiemChange:k}=mn(a,n,s),I=!!(n&&!o),P=T==="desktop",w=Ie(),S=Je(),b=Vi(y({},x,{theme:S})),M=$=>n?C.format($,"hours12h"):C.format($,"hours24h"),A=D.useMemo(()=>a?l?C.formatByString(a,l):C.format(a,"shortDate"):u,[a,l,u,C]);return m.jsxs(To,y({toolbarTitle:w.dateTimePickerToolbarTitle,isLandscape:i,className:b.root},d,{ownerState:x,children:[m.jsxs(Ri,{className:b.dateContainer,ownerState:x,children:[g.includes("year")&&m.jsx(ze,{tabIndex:-1,variant:"subtitle1",onClick:()=>c("year"),selected:r==="year",value:a?C.format(a,"year"):"–"}),g.includes("day")&&m.jsx(ze,{tabIndex:-1,variant:P?"h5":"h4",onClick:()=>c("day"),selected:r==="day",value:A})]}),m.jsxs(So,{className:b.timeContainer,ownerState:x,children:[m.jsxs($i,{className:b.timeDigitsContainer,ownerState:x,children:[g.includes("hours")&&m.jsx(ze,{variant:P?"h5":"h3",width:P&&!i?gt:void 0,onClick:()=>c("hours"),selected:r==="hours",value:a?M(a):"--"}),g.includes("minutes")&&m.jsxs(D.Fragment,{children:[m.jsx(On,{variant:P?"h5":"h3",value:":",className:b.separator,ownerState:x}),m.jsx(ze,{variant:P?"h5":"h3",width:P&&!i?gt:void 0,onClick:()=>c("minutes"),selected:r==="minutes",value:a?C.format(a,"minutes"):"--"})]}),g.includes("seconds")&&m.jsxs(D.Fragment,{children:[m.jsx(On,{variant:P?"h5":"h3",value:":",className:b.separator,ownerState:x}),m.jsx(ze,{variant:P?"h5":"h3",width:P&&!i?gt:void 0,onClick:()=>c("seconds"),selected:r==="seconds",value:a?C.format(a,"seconds"):"--"})]})]}),I&&!P&&m.jsxs(Ai,{className:b.ampmSelection,ownerState:x,children:[m.jsx(ze,{variant:"subtitle2",selected:v==="am",typographyClassName:b.ampmLabel,value:Be(C,"am"),onClick:p?void 0:()=>k("am"),disabled:f}),m.jsx(ze,{variant:"subtitle2",selected:v==="pm",typographyClassName:b.ampmLabel,value:Be(C,"pm"),onClick:p?void 0:()=>k("pm"),disabled:f})]}),n&&P&&m.jsx(ze,{variant:"h5",onClick:()=>c("meridiem"),selected:r==="meridiem",value:a&&v?Be(C,v):"--",width:gt})]})]}))}function Io(e,t){var n,o,a,s,r,i,c,l,u,g,f;const p=he(),T=Ct(),d=pe({props:e,name:t}),x=(n=d.ampm)!=null?n:p.is12HourCycleInCurrentLocale(),C=D.useMemo(()=>{var I;return((I=d.localeText)==null?void 0:I.toolbarTitle)==null?d.localeText:y({},d.localeText,{dateTimePickerToolbarTitle:d.localeText.toolbarTitle})},[d.localeText]),v=(o=d.slots)!=null?o:dn(d.components),k=(a=d.slotProps)!=null?a:d.componentsProps;return y({},d,Qs({views:d.views,openTo:d.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:x,localeText:C,orientation:(s=d.orientation)!=null?s:"portrait",disableIgnoringDatePartForTimeValidation:(r=d.disableIgnoringDatePartForTimeValidation)!=null?r:!!(d.minDateTime||d.maxDateTime||d.disablePast||d.disableFuture),disableFuture:(i=d.disableFuture)!=null?i:!1,disablePast:(c=d.disablePast)!=null?c:!1,minDate:$e(p,(l=d.minDateTime)!=null?l:d.minDate,T.minDate),maxDate:$e(p,(u=d.maxDateTime)!=null?u:d.maxDate,T.maxDate),minTime:(g=d.minDateTime)!=null?g:d.minTime,maxTime:(f=d.maxDateTime)!=null?f:d.maxTime,slots:y({toolbar:Fi,tabs:Ti},v),slotProps:y({},k,{toolbar:y({ampm:x},k==null?void 0:k.toolbar)})})}const Oi=e=>xe("MuiPickersFadeTransitionGroup",e);De("MuiPickersFadeTransitionGroup",["root"]);const Li=e=>{const{classes:t}=e;return ge({root:["root"]},Oi,t)},ji=G(Yn,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Vo(e){const t=pe({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:a,transKey:s}=t,r=Li(t),i=Je();return a?n:m.jsx(ji,{className:ve(r.root,o),children:m.jsx(Rt,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:i.transitions.duration.enteringScreen,enter:i.transitions.duration.enteringScreen,exit:0},children:n},s)})}function Ni(e){return xe("MuiPickersMonth",e)}const Pt=De("MuiPickersMonth",["root","monthButton","disabled","selected"]),Ei=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],_i=e=>{const{disabled:t,selected:n,classes:o}=e;return ge({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},Ni,o)},Bi=G("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),Hi=G("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Pt.disabled}`]:t.disabled},{[`&.${Pt.selected}`]:t.selected}]})(({theme:e})=>y({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Oe(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Oe(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Pt.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Pt.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Yi=D.memo(function(t){const n=pe({props:t,name:"MuiPickersMonth"}),{autoFocus:o,children:a,disabled:s,selected:r,value:i,tabIndex:c,onClick:l,onKeyDown:u,onFocus:g,onBlur:f,"aria-current":p,"aria-label":T}=n,d=ie(n,Ei),x=D.useRef(null),C=_i(n);return Ue(()=>{if(o){var v;(v=x.current)==null||v.focus()}},[o]),m.jsx(Bi,y({className:C.root,ownerState:n},d,{children:m.jsx(Hi,{ref:x,disabled:s,type:"button",role:"radio",tabIndex:s?-1:c,"aria-current":p,"aria-checked":r,"aria-label":T,onClick:v=>l(v,i),onKeyDown:v=>u(v,i),onFocus:v=>g(v,i),onBlur:v=>f(v,i),className:C.monthButton,ownerState:n,children:a})}))});function zi(e){return xe("MuiMonthCalendar",e)}De("MuiMonthCalendar",["root"]);const Wi=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],Ui=e=>{const{classes:t}=e;return ge({root:["root"]},zi,t)};function Gi(e,t){const n=he(),o=Ct(),a=pe({props:e,name:t});return y({disableFuture:!1,disablePast:!1},a,{minDate:$e(n,a.minDate,o.minDate),maxDate:$e(n,a.maxDate,o.maxDate)})}const Ki=G("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:jt,boxSizing:"border-box"}),qi=D.forwardRef(function(t,n){const o=Gi(t,"MuiMonthCalendar"),{className:a,value:s,defaultValue:r,referenceDate:i,disabled:c,disableFuture:l,disablePast:u,maxDate:g,minDate:f,onChange:p,shouldDisableMonth:T,readOnly:d,disableHighlightToday:x,autoFocus:C=!1,onMonthFocus:v,hasFocus:k,onFocusedViewChange:I,monthsPerRow:P=3,timezone:w,gridLabelId:S}=o,b=ie(o,Wi),{value:M,handleValueChange:A,timezone:$}=ut({name:"MonthCalendar",timezone:w,value:s,defaultValue:r,onChange:p,valueManager:Se}),F=qe($),L=zn(),R=he(),V=D.useMemo(()=>Se.getInitialReferenceValue({value:M,utils:R,props:o,timezone:$,referenceDate:i,granularity:Fe.month}),[]),H=o,K=Ui(H),Y=D.useMemo(()=>R.getMonth(F),[R,F]),B=D.useMemo(()=>M!=null?R.getMonth(M):x?null:R.getMonth(V),[M,R,x,V]),[q,ne]=D.useState(()=>B||Y),[re,le]=Ge({name:"MonthCalendar",state:"hasFocus",controlled:k,default:C??!1}),W=X(U=>{le(U),I&&I(U)}),z=D.useCallback(U=>{const Q=R.startOfMonth(u&&R.isAfter(F,f)?F:f),E=R.startOfMonth(l&&R.isBefore(F,g)?F:g),te=R.startOfMonth(U);return R.isBefore(te,Q)||R.isAfter(te,E)?!0:T?T(te):!1},[l,u,g,f,F,T,R]),Z=X((U,Q)=>{if(d)return;const E=R.setMonth(M??V,Q);A(E)}),N=X(U=>{z(R.setMonth(M??V,U))||(ne(U),W(!0),v&&v(U))});D.useEffect(()=>{ne(U=>B!==null&&U!==B?B:U)},[B]);const J=X((U,Q)=>{switch(U.key){case"ArrowUp":N((12+Q-3)%12),U.preventDefault();break;case"ArrowDown":N((12+Q+3)%12),U.preventDefault();break;case"ArrowLeft":N((12+Q+(L.direction==="ltr"?-1:1))%12),U.preventDefault();break;case"ArrowRight":N((12+Q+(L.direction==="ltr"?1:-1))%12),U.preventDefault();break}}),ce=X((U,Q)=>{N(Q)}),ae=X((U,Q)=>{q===Q&&W(!1)});return m.jsx(Ki,y({ref:n,className:ve(K.root,a),ownerState:H,role:"radiogroup","aria-labelledby":S},b,{children:sn(R,M??V).map(U=>{const Q=R.getMonth(U),E=R.format(U,"monthShort"),te=R.format(U,"month"),de=Q===B,me=c||z(U);return m.jsx(Yi,{selected:de,value:Q,onClick:Z,onKeyDown:J,autoFocus:re&&Q===q,disabled:me,tabIndex:Q===q?0:-1,onFocus:ce,onBlur:ae,"aria-current":Y===Q?"date":void 0,"aria-label":te,monthsPerRow:P,children:E},E)})}))});function Zi(e){return xe("MuiPickersYear",e)}const Mt=De("MuiPickersYear",["root","yearButton","selected","disabled"]),Qi=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],Ji=e=>{const{disabled:t,selected:n,classes:o}=e;return ge({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Zi,o)},Xi=G("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),el=G("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Mt.disabled}`]:t.disabled},{[`&.${Mt.selected}`]:t.selected}]})(({theme:e})=>y({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Oe(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Oe(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Mt.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Mt.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),tl=D.memo(function(t){const n=pe({props:t,name:"MuiPickersYear"}),{autoFocus:o,className:a,children:s,disabled:r,selected:i,value:c,tabIndex:l,onClick:u,onKeyDown:g,onFocus:f,onBlur:p,"aria-current":T}=n,d=ie(n,Qi),x=D.useRef(null),C=Ji(n);return D.useEffect(()=>{o&&x.current.focus()},[o]),m.jsx(Xi,y({className:ve(C.root,a),ownerState:n},d,{children:m.jsx(el,{ref:x,disabled:r,type:"button",role:"radio",tabIndex:r?-1:l,"aria-current":T,"aria-checked":i,onClick:v=>u(v,c),onKeyDown:v=>g(v,c),onFocus:v=>f(v,c),onBlur:v=>p(v,c),className:C.yearButton,ownerState:n,children:s})}))});function nl(e){return xe("MuiYearCalendar",e)}De("MuiYearCalendar",["root"]);const ol=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],sl=e=>{const{classes:t}=e;return ge({root:["root"]},nl,t)};function rl(e,t){var n;const o=he(),a=Ct(),s=pe({props:e,name:t});return y({disablePast:!1,disableFuture:!1},s,{yearsPerRow:(n=s.yearsPerRow)!=null?n:3,minDate:$e(o,s.minDate,a.minDate),maxDate:$e(o,s.maxDate,a.maxDate)})}const al=G("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:jt,maxHeight:qr,boxSizing:"border-box",position:"relative"}),il=D.forwardRef(function(t,n){const o=rl(t,"MuiYearCalendar"),{autoFocus:a,className:s,value:r,defaultValue:i,referenceDate:c,disabled:l,disableFuture:u,disablePast:g,maxDate:f,minDate:p,onChange:T,readOnly:d,shouldDisableYear:x,disableHighlightToday:C,onYearFocus:v,hasFocus:k,onFocusedViewChange:I,yearsPerRow:P,timezone:w,gridLabelId:S}=o,b=ie(o,ol),{value:M,handleValueChange:A,timezone:$}=ut({name:"YearCalendar",timezone:w,value:r,defaultValue:i,onChange:T,valueManager:Se}),F=qe($),L=zn(),R=he(),V=D.useMemo(()=>Se.getInitialReferenceValue({value:M,utils:R,props:o,timezone:$,referenceDate:c,granularity:Fe.year}),[]),H=o,K=sl(H),Y=D.useMemo(()=>R.getYear(F),[R,F]),B=D.useMemo(()=>M!=null?R.getYear(M):C?null:R.getYear(V),[M,R,C,V]),[q,ne]=D.useState(()=>B||Y),[re,le]=Ge({name:"YearCalendar",state:"hasFocus",controlled:k,default:a??!1}),W=X(E=>{le(E),I&&I(E)}),z=D.useCallback(E=>{if(g&&R.isBeforeYear(E,F)||u&&R.isAfterYear(E,F)||p&&R.isBeforeYear(E,p)||f&&R.isAfterYear(E,f))return!0;if(!x)return!1;const te=R.startOfYear(E);return x(te)},[u,g,f,p,F,x,R]),Z=X((E,te)=>{if(d)return;const de=R.setYear(M??V,te);A(de)}),N=X(E=>{z(R.setYear(M??V,E))||(ne(E),W(!0),v==null||v(E))});D.useEffect(()=>{ne(E=>B!==null&&E!==B?B:E)},[B]);const J=X((E,te)=>{switch(E.key){case"ArrowUp":N(te-P),E.preventDefault();break;case"ArrowDown":N(te+P),E.preventDefault();break;case"ArrowLeft":N(te+(L.direction==="ltr"?-1:1)),E.preventDefault();break;case"ArrowRight":N(te+(L.direction==="ltr"?1:-1)),E.preventDefault();break}}),ce=X((E,te)=>{N(te)}),ae=X((E,te)=>{q===te&&W(!1)}),U=D.useRef(null),Q=_e(n,U);return D.useEffect(()=>{if(a||U.current===null)return;const E=U.current.querySelector('[tabindex="0"]');if(!E)return;const te=E.offsetHeight,de=E.offsetTop,me=U.current.clientHeight,ke=U.current.scrollTop,ee=de+te;te>me||de{const te=R.getYear(E),de=te===B,me=l||z(E);return m.jsx(tl,{selected:de,value:te,onClick:Z,onKeyDown:J,autoFocus:re&&te===q,disabled:me,tabIndex:te===q?0:-1,onFocus:ce,onBlur:ae,"aria-current":Y===te?"date":void 0,yearsPerRow:P,children:R.format(E,"year")},R.format(E,"year"))})}))}),ll=e=>xe("MuiPickersCalendarHeader",e),cl=De("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),ul=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],dl=["ownerState"],ml=e=>{const{classes:t}=e;return ge({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},ll,t)},hl=G("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}),fl=G("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>y({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),pl=G("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),gl=G(ct,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>y({marginRight:"auto"},e.view==="year"&&{[`.${cl.switchViewIcon}`]:{transform:"rotate(180deg)"}})),yl=G(Or,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),bl=D.forwardRef(function(t,n){var o,a;const s=Ie(),r=he(),i=pe({props:t,name:"MuiPickersCalendarHeader"}),{slots:c,slotProps:l,currentMonth:u,disabled:g,disableFuture:f,disablePast:p,maxDate:T,minDate:d,onMonthChange:x,onViewChange:C,view:v,reduceAnimations:k,views:I,labelId:P,className:w,timezone:S}=i,b=ie(i,ul),M=i,A=ml(i),$=(o=c==null?void 0:c.switchViewButton)!=null?o:gl,F=Pe({elementType:$,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":s.calendarViewSwitchingButtonAriaLabel(v)},ownerState:M,className:A.switchViewButton}),L=(a=c==null?void 0:c.switchViewIcon)!=null?a:yl,R=Pe({elementType:L,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:void 0,className:A.switchViewIcon}),V=ie(R,dl),H=()=>x(r.addMonths(u,1),"left"),K=()=>x(r.addMonths(u,-1),"right"),Y=_a(u,{disableFuture:f,maxDate:T,timezone:S}),B=Ba(u,{disablePast:p,minDate:d,timezone:S}),q=()=>{if(!(I.length===1||!C||g))if(I.length===2)C(I.find(ne=>ne!==v)||I[0]);else{const ne=I.indexOf(v)!==0?0:1;C(I[ne])}};return I.length===1&&I[0]==="year"?null:m.jsxs(hl,y({},b,{ownerState:M,className:ve(w,A.root),ref:n,children:[m.jsxs(fl,{role:"presentation",onClick:q,ownerState:M,"aria-live":"polite",className:A.labelContainer,children:[m.jsx(Vo,{reduceAnimations:k,transKey:r.format(u,"monthAndYear"),children:m.jsx(pl,{id:P,ownerState:M,className:A.label,children:r.format(u,"monthAndYear")})}),I.length>1&&!g&&m.jsx($,y({},F,{children:m.jsx(L,y({},V))}))]}),m.jsx(Rt,{in:v==="day",children:m.jsx(mo,{slots:c,slotProps:l,onGoToPrevious:K,isPreviousDisabled:B,previousLabel:s.previousMonth,onGoToNext:H,isNextDisabled:Y,nextLabel:s.nextMonth})})]}))}),Et=G("div")({overflow:"hidden",width:jt,maxHeight:Nt,display:"flex",flexDirection:"column",margin:"0 auto"}),vl=e=>xe("MuiDateCalendar",e);De("MuiDateCalendar",["root","viewTransitionContainer"]);const xl=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],Dl=e=>{const{classes:t}=e;return ge({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},vl,t)};function Cl(e,t){var n,o,a,s,r,i,c;const l=he(),u=Ct(),g=fo(),f=pe({props:e,name:t});return y({},f,{loading:(n=f.loading)!=null?n:!1,disablePast:(o=f.disablePast)!=null?o:!1,disableFuture:(a=f.disableFuture)!=null?a:!1,openTo:(s=f.openTo)!=null?s:"day",views:(r=f.views)!=null?r:["year","day"],reduceAnimations:(i=f.reduceAnimations)!=null?i:g,renderLoading:(c=f.renderLoading)!=null?c:()=>m.jsx("span",{children:"..."}),minDate:$e(l,f.minDate,u.minDate),maxDate:$e(l,f.maxDate,u.maxDate)})}const wl=G(Et,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Nt}),Pl=G(Vo,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Ro=D.forwardRef(function(t,n){var o,a,s;const r=he(),i=At(),c=Cl(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:u,value:g,defaultValue:f,referenceDate:p,disableFuture:T,disablePast:d,defaultCalendarMonth:x,onChange:C,onYearChange:v,onMonthChange:k,reduceAnimations:I,shouldDisableDate:P,shouldDisableMonth:w,shouldDisableYear:S,view:b,views:M,openTo:A,className:$,disabled:F,readOnly:L,minDate:R,maxDate:V,disableHighlightToday:H,focusedView:K,onFocusedViewChange:Y,showDaysOutsideCurrentMonth:B,fixedWeekNumber:q,dayOfWeekFormatter:ne,components:re,componentsProps:le,slots:W,slotProps:z,loading:Z,renderLoading:N,displayWeekNumber:J,yearsPerRow:ce,monthsPerRow:ae,timezone:U}=c,Q=ie(c,xl),{value:E,handleValueChange:te,timezone:de}=ut({name:"DateCalendar",timezone:U,value:g,defaultValue:f,onChange:C,valueManager:Se}),{view:me,setView:ke,focusedView:ee,setFocusedView:oe,goToNextView:O,setValueAndGoToNextView:j}=wt({view:b,views:M,openTo:A,onChange:te,onViewChange:u,autoFocus:l,focusedView:K,onFocusedViewChange:Y}),{referenceDate:_,calendarState:se,changeFocusedDay:ye,changeMonth:be,handleChangeMonth:fe,isDateDisabled:ue,onMonthSwitchingAnimationEnd:we}=gi({value:E,defaultCalendarMonth:x,referenceDate:p,reduceAnimations:I,onMonthChange:k,minDate:R,maxDate:V,shouldDisableDate:P,disablePast:d,disableFuture:T,timezone:de}),Ve=F&&E||R,Le=F&&E||V,_t=`${i}-grid-label`,dt=ee!==null,Ae=(o=(a=W==null?void 0:W.calendarHeader)!=null?a:re==null?void 0:re.CalendarHeader)!=null?o:bl,Bo=Pe({elementType:Ae,externalSlotProps:(s=z==null?void 0:z.calendarHeader)!=null?s:le==null?void 0:le.calendarHeader,additionalProps:{views:M,view:me,currentMonth:se.currentMonth,onViewChange:ke,onMonthChange:(Ce,je)=>fe({newMonth:Ce,direction:je}),minDate:Ve,maxDate:Le,disabled:F,disablePast:d,disableFuture:T,reduceAnimations:I,timezone:de,labelId:_t,slots:W,slotProps:z},ownerState:c}),Ho=X(Ce=>{const je=r.startOfMonth(Ce),mt=r.endOfMonth(Ce),Ye=ue(Ce)?yt({utils:r,date:Ce,minDate:r.isBefore(R,je)?je:R,maxDate:r.isAfter(V,mt)?mt:V,disablePast:d,disableFuture:T,isDateDisabled:ue,timezone:de}):Ce;Ye?(j(Ye,"finish"),k==null||k(je)):(O(),be(je)),ye(Ye,!0)}),Yo=X(Ce=>{const je=r.startOfYear(Ce),mt=r.endOfYear(Ce),Ye=ue(Ce)?yt({utils:r,date:Ce,minDate:r.isBefore(R,je)?je:R,maxDate:r.isAfter(V,mt)?mt:V,disablePast:d,disableFuture:T,isDateDisabled:ue,timezone:de}):Ce;Ye?(j(Ye,"finish"),v==null||v(Ye)):(O(),be(je)),ye(Ye,!0)}),zo=X(Ce=>te(Ce&&Qt(r,Ce,E??_),"finish"));D.useEffect(()=>{E!=null&&r.isValid(E)&&be(E)},[E]);const Bt=c,fn=Dl(Bt),Ht={disablePast:d,disableFuture:T,maxDate:V,minDate:R},Yt={disableHighlightToday:H,readOnly:L,disabled:F,timezone:de,gridLabelId:_t},zt=D.useRef(me);D.useEffect(()=>{zt.current!==me&&(ee===zt.current&&oe(me,!0),zt.current=me)},[ee,oe,me]);const Wo=D.useMemo(()=>[E],[E]);return m.jsxs(wl,y({ref:n,className:ve(fn.root,$),ownerState:Bt},Q,{children:[m.jsx(Ae,y({},Bo)),m.jsx(Pl,{reduceAnimations:I,className:fn.viewTransitionContainer,transKey:me,ownerState:Bt,children:m.jsxs("div",{children:[me==="year"&&m.jsx(il,y({},Ht,Yt,{value:E,onChange:Yo,shouldDisableYear:S,hasFocus:dt,onFocusedViewChange:Ce=>oe("year",Ce),yearsPerRow:ce,referenceDate:_})),me==="month"&&m.jsx(qi,y({},Ht,Yt,{hasFocus:dt,className:$,value:E,onChange:Ho,shouldDisableMonth:w,onFocusedViewChange:Ce=>oe("month",Ce),monthsPerRow:ae,referenceDate:_})),me==="day"&&m.jsx(fi,y({},se,Ht,Yt,{onMonthSwitchingAnimationEnd:we,onFocusedDayChange:ye,reduceAnimations:I,selectedDays:Wo,onSelectedDaysChange:zo,shouldDisableDate:P,shouldDisableMonth:w,shouldDisableYear:S,hasFocus:dt,onFocusedViewChange:Ce=>oe("day",Ce),showDaysOutsideCurrentMonth:B,fixedWeekNumber:q,dayOfWeekFormatter:ne,displayWeekNumber:J,components:re,componentsProps:le,slots:W,slotProps:z,loading:Z,renderLoading:N}))]})})]}))}),at=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:a,value:s,defaultValue:r,referenceDate:i,onChange:c,className:l,classes:u,disableFuture:g,disablePast:f,minDate:p,maxDate:T,shouldDisableDate:d,shouldDisableMonth:x,shouldDisableYear:C,reduceAnimations:v,onMonthChange:k,monthsPerRow:I,onYearChange:P,yearsPerRow:w,defaultCalendarMonth:S,components:b,componentsProps:M,slots:A,slotProps:$,loading:F,renderLoading:L,disableHighlightToday:R,readOnly:V,disabled:H,showDaysOutsideCurrentMonth:K,dayOfWeekFormatter:Y,sx:B,autoFocus:q,fixedWeekNumber:ne,displayWeekNumber:re,timezone:le})=>m.jsx(Ro,{view:e,onViewChange:t,views:n.filter(st),focusedView:o&&st(o)?o:null,onFocusedViewChange:a,value:s,defaultValue:r,referenceDate:i,onChange:c,className:l,classes:u,disableFuture:g,disablePast:f,minDate:p,maxDate:T,shouldDisableDate:d,shouldDisableMonth:x,shouldDisableYear:C,reduceAnimations:v,onMonthChange:k,monthsPerRow:I,onYearChange:P,yearsPerRow:w,defaultCalendarMonth:S,components:b,componentsProps:M,slots:A,slotProps:$,loading:F,renderLoading:L,disableHighlightToday:R,readOnly:V,disabled:H,showDaysOutsideCurrentMonth:K,dayOfWeekFormatter:Y,sx:B,autoFocus:q,fixedWeekNumber:ne,displayWeekNumber:re,timezone:le});function Ml(e){return xe("MuiMultiSectionDigitalClock",e)}De("MuiMultiSectionDigitalClock",["root"]);function kl(e){return xe("MuiMultiSectionDigitalClock",e)}const Tl=De("MuiMultiSectionDigitalClock",["root","item"]),Sl=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Il=e=>{const{classes:t}=e;return ge({root:["root"],item:["item"]},kl,t)},Vl=G(Wn,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:ho,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),Rl=G(Te,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:gt,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Oe(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Oe(e.palette.primary.main,e.palette.action.focusOpacity)}})),$l=D.forwardRef(function(t,n){var o;const a=D.useRef(null),s=_e(n,a),r=D.useRef(null),i=pe({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:c,onChange:l,className:u,disabled:g,readOnly:f,items:p,active:T,slots:d,slotProps:x,skipDisabled:C}=i,v=ie(i,Sl),k=D.useMemo(()=>y({},i,{alreadyRendered:!!a.current}),[i]),I=Il(k),P=(o=d==null?void 0:d.digitalClockSectionItem)!=null?o:Rl;return D.useEffect(()=>{if(a.current===null)return;const w=a.current.querySelector('[role="option"][aria-selected="true"]');if(!w||r.current===w){r.current!==w&&(r.current=w);return}r.current=w,T&&c&&w.focus();const S=w.offsetTop;a.current.scrollTop=S-4}),m.jsx(Vl,y({ref:s,className:ve(I.root,u),ownerState:k,autoFocusItem:c&&T,role:"listbox"},v,{children:p.map(w=>{var S,b;if(C&&(S=w.isDisabled)!=null&&S.call(w,w.value))return null;const M=w.isSelected(w.value);return m.jsx(P,y({onClick:()=>!f&&l(w.value),selected:M,disabled:g||((b=w.isDisabled)==null?void 0:b.call(w,w.value)),disableRipple:f,role:"option","aria-disabled":f,"aria-label":w.ariaLabel,"aria-selected":M},x==null?void 0:x.digitalClockSectionItem,{children:w.label}),w.label)})}))}),Al=({now:e,value:t,utils:n,ampm:o,isDisabled:a,resolveAriaLabel:s,timeStep:r})=>{const i=t?n.getHours(t):null,c=[],l=g=>i===null?!1:o?g===12?i===12||i===0:i===g||i-12===g:i===g,u=o?11:23;for(let g=0;g<=u;g+=r){let f=n.format(n.setHours(e,g),o?"hours12h":"hours24h");const p=s(parseInt(f,10).toString());f=n.formatNumber(f),c.push({value:g,label:f,isSelected:l,isDisabled:a,ariaLabel:p})}return c},Ln=({value:e,isDisabled:t,timeStep:n,resolveLabel:o,resolveAriaLabel:a,hasValue:s=!0})=>{const r=i=>e===null?!1:s&&e===i;return[...Array.from({length:Math.ceil(60/n)},(i,c)=>{const l=n*c;return{value:l,label:o(l),isDisabled:t,isSelected:r,ariaLabel:a(l.toString())}})]},hn=({value:e,referenceDate:t,utils:n,props:o,timezone:a})=>{const s=D.useMemo(()=>Se.getInitialReferenceValue({value:e,utils:n,props:o,referenceDate:t,granularity:Fe.day,timezone:a,getTodayDate:()=>rn(n,a,"date")}),[]);return e??s},Fl=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],Ol=e=>{const{classes:t}=e;return ge({root:["root"]},Ml,t)},Ll=G(Et,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),jl=D.forwardRef(function(t,n){const o=he(),a=pe({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:s=o.is12HourCycleInCurrentLocale(),timeSteps:r,autoFocus:i,components:c,componentsProps:l,slots:u,slotProps:g,value:f,defaultValue:p,referenceDate:T,disableIgnoringDatePartForTimeValidation:d=!1,maxTime:x,minTime:C,disableFuture:v,disablePast:k,minutesStep:I=1,shouldDisableClock:P,shouldDisableTime:w,onChange:S,view:b,views:M=["hours","minutes"],openTo:A,onViewChange:$,focusedView:F,onFocusedViewChange:L,className:R,disabled:V,readOnly:H,skipDisabled:K=!1,timezone:Y}=a,B=ie(a,Fl),{value:q,handleValueChange:ne,timezone:re}=ut({name:"MultiSectionDigitalClock",timezone:Y,value:f,defaultValue:p,onChange:S,valueManager:Se}),le=Ie(),W=qe(re),z=D.useMemo(()=>y({hours:1,minutes:5,seconds:5},r),[r]),Z=hn({value:q,referenceDate:T,utils:o,props:a,timezone:re}),N=X((j,_,se)=>ne(j,_,se)),J=D.useMemo(()=>!s||!M.includes("hours")||M.includes("meridiem")?M:[...M,"meridiem"],[s,M]),{view:ce,setValueAndGoToView:ae,focusedView:U}=wt({view:b,views:J,openTo:A,onViewChange:$,onChange:N,focusedView:F,onFocusedViewChange:L}),Q=X(j=>{ae(j,null,"meridiem")}),{meridiemMode:E,handleMeridiemChange:te}=mn(Z,s,Q,"finish"),de=D.useCallback((j,_)=>{const se=Dt(d,o),ye=_==="hours"||_==="minutes"&&J.includes("seconds"),be=({start:ue,end:we})=>!(C&&se(C,we)||x&&se(ue,x)||v&&se(ue,W)||k&&se(W,ye?we:ue)),fe=(ue,we=1)=>{if(ue%we!==0||P!=null&&P(ue,_))return!1;if(w)switch(_){case"hours":return!w(o.setHours(Z,ue),"hours");case"minutes":return!w(o.setMinutes(Z,ue),"minutes");case"seconds":return!w(o.setSeconds(Z,ue),"seconds");default:return!1}return!0};switch(_){case"hours":{const ue=bt(j,E,s),we=o.setHours(Z,ue),Ve=o.setSeconds(o.setMinutes(we,0),0),Le=o.setSeconds(o.setMinutes(we,59),59);return!be({start:Ve,end:Le})||!fe(ue)}case"minutes":{const ue=o.setMinutes(Z,j),we=o.setSeconds(ue,0),Ve=o.setSeconds(ue,59);return!be({start:we,end:Ve})||!fe(j,I)}case"seconds":{const ue=o.setSeconds(Z,j);return!be({start:ue,end:ue})||!fe(j)}default:throw new Error("not supported")}},[s,Z,d,x,E,C,I,P,w,o,v,k,W,J]),me=X((j,_)=>{const se=J.indexOf(j),ye=J[se+1];ae(_,ye,j)}),ke=D.useCallback(j=>{switch(j){case"hours":return{onChange:_=>{const se=bt(_,E,s);me("hours",o.setHours(Z,se))},items:Al({now:W,value:q,ampm:s,utils:o,isDisabled:_=>V||de(_,"hours"),timeStep:z.hours,resolveAriaLabel:le.hoursClockNumberText})};case"minutes":return{onChange:_=>{me("minutes",o.setMinutes(Z,_))},items:Ln({value:o.getMinutes(Z),isDisabled:_=>V||de(_,"minutes"),resolveLabel:_=>o.format(o.setMinutes(W,_),"minutes"),timeStep:z.minutes,hasValue:!!q,resolveAriaLabel:le.minutesClockNumberText})};case"seconds":return{onChange:_=>{me("seconds",o.setSeconds(Z,_))},items:Ln({value:o.getSeconds(Z),isDisabled:_=>V||de(_,"seconds"),resolveLabel:_=>o.format(o.setSeconds(W,_),"seconds"),timeStep:z.seconds,hasValue:!!q,resolveAriaLabel:le.secondsClockNumberText})};case"meridiem":{const _=Be(o,"am"),se=Be(o,"pm");return{onChange:te,items:[{value:"am",label:_,isSelected:()=>!!q&&E==="am",ariaLabel:_},{value:"pm",label:se,isSelected:()=>!!q&&E==="pm",ariaLabel:se}]}}default:throw new Error(`Unknown view: ${j} found.`)}},[W,q,s,o,z.hours,z.minutes,z.seconds,le.hoursClockNumberText,le.minutesClockNumberText,le.secondsClockNumberText,E,me,Z,V,de,te]),ee=D.useMemo(()=>J.reduce((j,_)=>y({},j,{[_]:ke(_)}),{}),[J,ke]),oe=a,O=Ol(oe);return m.jsx(Ll,y({ref:n,className:ve(O.root,R),ownerState:oe,role:"group"},B,{children:Object.entries(ee).map(([j,_])=>m.jsx($l,{items:_.items,onChange:_.onChange,active:ce===j,autoFocus:i??U===j,disabled:V,readOnly:H,slots:u??c,slotProps:g??l,skipDisabled:K,"aria-label":le.selectViewText(j)},j))}))}),Nl=G("div")({display:"flex",margin:"0 auto"});function El(e){return xe("MuiTimeClock",e)}De("MuiTimeClock",["root","arrowSwitcher"]);const lt=220,Ee=36,xt={x:lt/2,y:lt/2},$o={x:xt.x,y:0},_l=$o.x-xt.x,Bl=$o.y-xt.y,Hl=e=>e*(180/Math.PI),Ao=(e,t,n)=>{const o=t-xt.x,a=n-xt.y,s=Math.atan2(_l,Bl)-Math.atan2(o,a);let r=Hl(s);r=Math.round(r/e)*e,r%=360;const i=Math.floor(r/e)||0,c=o**2+a**2,l=Math.sqrt(c);return{value:i,distance:l}},Yl=(e,t,n=1)=>{const o=n*6;let{value:a}=Ao(o,e,t);return a=a*n%60,a},zl=(e,t,n)=>{const{value:o,distance:a}=Ao(30,e,t);let s=o||12;return n?s%=12:a{const{classes:t}=e;return ge({root:["root"],thumb:["thumb"]},Wl,t)},Kl=G("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>y({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),ql=G("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>y({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ee/2}px)`,border:`${(Ee-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function Zl(e){const t=pe({props:e,name:"MuiClockPointer"}),{className:n,isInner:o,type:a,viewValue:s}=t,r=ie(t,Ul),i=D.useRef(a);D.useEffect(()=>{i.current=a},[a]);const c=y({},t,{shouldAnimate:i.current!==a}),l=Gl(c),u=()=>{let f=360/(a==="hours"?12:60)*s;return a==="hours"&&s>12&&(f-=360),{height:Math.round((o?.26:.4)*lt),transform:`rotateZ(${f}deg)`}};return m.jsx(Kl,y({style:u(),className:ve(n,l.root),ownerState:c},r,{children:m.jsx(ql,{ownerState:c,className:l.thumb})}))}function Ql(e){return xe("MuiClock",e)}De("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Jl=e=>{const{classes:t}=e;return ge({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},Ql,t)},Xl=G("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),ec=G("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"}),tc=G("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),nc=G("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>y({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"}})),oc=G("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),sc=G(ct,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>y({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Ee},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),rc=G(ct,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>y({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Ee},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),jn=G(He,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function ac(e){const t=pe({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:o,autoFocus:a,children:s,value:r,handleMeridiemChange:i,isTimeDisabled:c,meridiemMode:l,minutesStep:u=1,onChange:g,selectedId:f,type:p,viewValue:T,disabled:d,readOnly:x,className:C}=t,v=t,k=he(),I=Ie(),P=D.useRef(!1),w=Jl(v),S=c(T,p),b=!n&&p==="hours"&&(T<1||T>12),M=(B,q)=>{d||x||c(B,p)||g(B,q)},A=(B,q)=>{let{offsetX:ne,offsetY:re}=B;if(ne===void 0){const W=B.target.getBoundingClientRect();ne=B.changedTouches[0].clientX-W.left,re=B.changedTouches[0].clientY-W.top}const le=p==="seconds"||p==="minutes"?Yl(ne,re,u):zl(ne,re,!!n);M(le,q)},$=B=>{P.current=!0,A(B,"shallow")},F=B=>{P.current&&(A(B,"finish"),P.current=!1)},L=B=>{B.buttons>0&&A(B.nativeEvent,"shallow")},R=B=>{P.current&&(P.current=!1),A(B.nativeEvent,"finish")},V=D.useMemo(()=>p==="hours"?!0:T%5===0,[p,T]),H=p==="minutes"?u:1,K=D.useRef(null);Ue(()=>{a&&K.current.focus()},[a]);const Y=B=>{if(!P.current)switch(B.key){case"Home":M(0,"partial"),B.preventDefault();break;case"End":M(p==="minutes"?59:23,"partial"),B.preventDefault();break;case"ArrowUp":M(T+H,"partial"),B.preventDefault();break;case"ArrowDown":M(T-H,"partial"),B.preventDefault();break}};return m.jsxs(Xl,{className:ve(C,w.root),children:[m.jsxs(ec,{className:w.clock,children:[m.jsx(nc,{onTouchMove:$,onTouchEnd:F,onMouseUp:R,onMouseMove:L,ownerState:{disabled:d},className:w.squareMask}),!S&&m.jsxs(D.Fragment,{children:[m.jsx(oc,{className:w.pin}),r!=null&&m.jsx(Zl,{type:p,viewValue:T,isInner:b,hasSelected:V})]}),m.jsx(tc,{"aria-activedescendant":f,"aria-label":I.clockLabelText(p,r,k),ref:K,role:"listbox",onKeyDown:Y,tabIndex:0,className:w.wrapper,children:s})]}),n&&o&&m.jsxs(D.Fragment,{children:[m.jsx(sc,{onClick:x?void 0:()=>i("am"),disabled:d||l===null,ownerState:v,className:w.amButton,title:Be(k,"am"),children:m.jsx(jn,{variant:"caption",className:w.meridiemText,children:Be(k,"am")})}),m.jsx(rc,{disabled:d||l===null,onClick:x?void 0:()=>i("pm"),ownerState:v,className:w.pmButton,title:Be(k,"pm"),children:m.jsx(jn,{variant:"caption",className:w.meridiemText,children:Be(k,"pm")})})]})]})}function ic(e){return xe("MuiClockNumber",e)}const kt=De("MuiClockNumber",["root","selected","disabled"]),lc=["className","disabled","index","inner","label","selected"],cc=e=>{const{classes:t,selected:n,disabled:o}=e;return ge({root:["root",n&&"selected",o&&"disabled"]},ic,t)},uc=G("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${kt.disabled}`]:t.disabled},{[`&.${kt.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>y({height:Ee,width:Ee,position:"absolute",left:`calc((100% - ${Ee}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${kt.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${kt.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&y({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function Fo(e){const t=pe({props:e,name:"MuiClockNumber"}),{className:n,disabled:o,index:a,inner:s,label:r,selected:i}=t,c=ie(t,lc),l=t,u=cc(l),g=a%12/12*Math.PI*2-Math.PI/2,f=(lt-Ee-2)/2*(s?.65:1),p=Math.round(Math.cos(g)*f),T=Math.round(Math.sin(g)*f);return m.jsx(uc,y({className:ve(n,u.root),"aria-disabled":o?!0:void 0,"aria-selected":i?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${T+(lt-Ee)/2}px`},ownerState:l},c,{children:r}))}const dc=({ampm:e,value:t,getClockNumberText:n,isDisabled:o,selectedId:a,utils:s})=>{const r=t?s.getHours(t):null,i=[],c=e?1:0,l=e?12:23,u=g=>r===null?!1:e?g===12?r===12||r===0:r===g||r-12===g:r===g;for(let g=c;g<=l;g+=1){let f=g.toString();g===0&&(f="00");const p=!e&&(g===0||g>12);f=s.formatNumber(f);const T=u(g);i.push(m.jsx(Fo,{id:T?a:void 0,index:g,inner:p,selected:T,disabled:o(g),label:f,"aria-label":n(f)},g))}return i},Nn=({utils:e,value:t,isDisabled:n,getClockNumberText:o,selectedId:a})=>{const s=e.formatNumber;return[[5,s("05")],[10,s("10")],[15,s("15")],[20,s("20")],[25,s("25")],[30,s("30")],[35,s("35")],[40,s("40")],[45,s("45")],[50,s("50")],[55,s("55")],[0,s("00")]].map(([r,i],c)=>{const l=r===t;return m.jsx(Fo,{label:i,id:l?a:void 0,index:c+1,inner:!1,disabled:n(r),selected:l,"aria-label":o(i)},r)})},mc=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],hc=e=>{const{classes:t}=e;return ge({root:["root"],arrowSwitcher:["arrowSwitcher"]},El,t)},fc=G(Et,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),pc=G(mo,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),gc=["hours","minutes"],yc=D.forwardRef(function(t,n){const o=he(),a=pe({props:t,name:"MuiTimeClock"}),{ampm:s=o.is12HourCycleInCurrentLocale(),ampmInClock:r=!1,autoFocus:i,components:c,componentsProps:l,slots:u,slotProps:g,value:f,defaultValue:p,referenceDate:T,disableIgnoringDatePartForTimeValidation:d=!1,maxTime:x,minTime:C,disableFuture:v,disablePast:k,minutesStep:I=1,shouldDisableClock:P,shouldDisableTime:w,showViewSwitcher:S,onChange:b,view:M,views:A=gc,openTo:$,onViewChange:F,focusedView:L,onFocusedViewChange:R,className:V,disabled:H,readOnly:K,timezone:Y}=a,B=ie(a,mc),q=u??dn(c),ne=g??l,{value:re,handleValueChange:le,timezone:W}=ut({name:"TimeClock",timezone:Y,value:f,defaultValue:p,onChange:b,valueManager:Se}),z=hn({value:re,referenceDate:T,utils:o,props:a,timezone:W}),Z=Ie(),N=qe(W),{view:J,setView:ce,previousView:ae,nextView:U,setValueAndGoToNextView:Q}=wt({view:M,views:A,openTo:$,onViewChange:F,onChange:le,focusedView:L,onFocusedViewChange:R}),{meridiemMode:E,handleMeridiemChange:te}=mn(z,s,Q),de=D.useCallback((O,j)=>{const _=Dt(d,o),se=j==="hours"||j==="minutes"&&A.includes("seconds"),ye=({start:fe,end:ue})=>!(C&&_(C,ue)||x&&_(fe,x)||v&&_(fe,N)||k&&_(N,se?ue:fe)),be=(fe,ue=1)=>{if(fe%ue!==0||P!=null&&P(fe,j))return!1;if(w)switch(j){case"hours":return!w(o.setHours(z,fe),"hours");case"minutes":return!w(o.setMinutes(z,fe),"minutes");case"seconds":return!w(o.setSeconds(z,fe),"seconds");default:return!1}return!0};switch(j){case"hours":{const fe=bt(O,E,s),ue=o.setHours(z,fe),we=o.setSeconds(o.setMinutes(ue,0),0),Ve=o.setSeconds(o.setMinutes(ue,59),59);return!ye({start:we,end:Ve})||!be(fe)}case"minutes":{const fe=o.setMinutes(z,O),ue=o.setSeconds(fe,0),we=o.setSeconds(fe,59);return!ye({start:ue,end:we})||!be(O,I)}case"seconds":{const fe=o.setSeconds(z,O);return!ye({start:fe,end:fe})||!be(O)}default:throw new Error("not supported")}},[s,z,d,x,E,C,I,P,w,o,v,k,N,A]),me=At(),ke=D.useMemo(()=>{switch(J){case"hours":{const O=(j,_)=>{const se=bt(j,E,s);Q(o.setHours(z,se),_)};return{onChange:O,viewValue:o.getHours(z),children:dc({value:re,utils:o,ampm:s,onChange:O,getClockNumberText:Z.hoursClockNumberText,isDisabled:j=>H||de(j,"hours"),selectedId:me})}}case"minutes":{const O=o.getMinutes(z),j=(_,se)=>{Q(o.setMinutes(z,_),se)};return{viewValue:O,onChange:j,children:Nn({utils:o,value:O,onChange:j,getClockNumberText:Z.minutesClockNumberText,isDisabled:_=>H||de(_,"minutes"),selectedId:me})}}case"seconds":{const O=o.getSeconds(z),j=(_,se)=>{Q(o.setSeconds(z,_),se)};return{viewValue:O,onChange:j,children:Nn({utils:o,value:O,onChange:j,getClockNumberText:Z.secondsClockNumberText,isDisabled:_=>H||de(_,"seconds"),selectedId:me})}}default:throw new Error("You must provide the type for ClockView")}},[J,o,re,s,Z.hoursClockNumberText,Z.minutesClockNumberText,Z.secondsClockNumberText,E,Q,z,de,me,H]),ee=a,oe=hc(ee);return m.jsxs(fc,y({ref:n,className:ve(oe.root,V),ownerState:ee},B,{children:[m.jsx(ac,y({autoFocus:i??!!L,ampmInClock:r&&A.includes("hours"),value:re,type:J,ampm:s,minutesStep:I,isTimeDisabled:de,meridiemMode:E,handleMeridiemChange:te,selectedId:me,disabled:H,readOnly:K},ke)),S&&m.jsx(pc,{className:oe.arrowSwitcher,slots:q,slotProps:ne,onGoToPrevious:()=>ce(ae),isPreviousDisabled:!ae,previousLabel:Z.openPreviousView,onGoToNext:()=>ce(U),isNextDisabled:!U,nextLabel:Z.openNextView,ownerState:ee})]}))});function bc(e){return xe("MuiDigitalClock",e)}const vc=De("MuiDigitalClock",["root","list","item"]),xc=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],Dc=e=>{const{classes:t}=e;return ge({root:["root"],list:["list"],item:["item"]},bc,t)},Cc=G(Et,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:ho})),wc=G(Wn,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),Pc=G(Te,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Oe(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Oe(e.palette.primary.main,e.palette.action.focusOpacity)}})),Mc=D.forwardRef(function(t,n){var o,a,s;const r=he(),i=D.useRef(null),c=_e(n,i),l=pe({props:t,name:"MuiDigitalClock"}),{ampm:u=r.is12HourCycleInCurrentLocale(),timeStep:g=30,autoFocus:f,components:p,componentsProps:T,slots:d,slotProps:x,value:C,defaultValue:v,referenceDate:k,disableIgnoringDatePartForTimeValidation:I=!1,maxTime:P,minTime:w,disableFuture:S,disablePast:b,minutesStep:M=1,shouldDisableClock:A,shouldDisableTime:$,onChange:F,view:L,openTo:R,onViewChange:V,focusedView:H,onFocusedViewChange:K,className:Y,disabled:B,readOnly:q,views:ne=["hours"],skipDisabled:re=!1,timezone:le}=l,W=ie(l,xc),{value:z,handleValueChange:Z,timezone:N}=ut({name:"DigitalClock",timezone:le,value:C,defaultValue:v,onChange:F,valueManager:Se}),J=Ie(),ce=qe(N),ae=D.useMemo(()=>y({},l,{alreadyRendered:!!i.current}),[l]),U=Dc(ae),Q=(o=(a=d==null?void 0:d.digitalClockItem)!=null?a:p==null?void 0:p.DigitalClockItem)!=null?o:Pc,E=Pe({elementType:Q,externalSlotProps:(s=x==null?void 0:x.digitalClockItem)!=null?s:T==null?void 0:T.digitalClockItem,ownerState:{},className:U.item}),te=hn({value:z,referenceDate:k,utils:r,props:l,timezone:N}),de=X(O=>Z(O,"finish","hours")),{setValueAndGoToNextView:me}=wt({view:L,views:ne,openTo:R,onViewChange:V,onChange:de,focusedView:H,onFocusedViewChange:K}),ke=X(O=>{me(O,"finish")});D.useEffect(()=>{if(i.current===null)return;const O=i.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!O)return;const j=O.offsetTop;i.current.scrollTop=j-4});const ee=D.useCallback(O=>{const j=Dt(I,r),_=()=>!(w&&j(w,O)||P&&j(O,P)||S&&j(O,ce)||b&&j(ce,O)),se=()=>r.getMinutes(O)%M!==0||A!=null&&A(r.toJsDate(O).getTime(),"hours")?!1:$?!$(O,"hours"):!0;return!_()||!se()},[I,r,w,P,S,ce,b,M,A,$]),oe=D.useMemo(()=>{const O=r.startOfDay(te);return[O,...Array.from({length:Math.ceil(24*60/g)-1},(j,_)=>r.addMinutes(O,g*(_+1)))]},[te,g,r]);return m.jsx(Cc,y({ref:c,className:ve(U.root,Y),ownerState:ae},W,{children:m.jsx(wc,{autoFocusItem:f||!!H,role:"listbox","aria-label":J.timePickerToolbarTitle,className:U.list,children:oe.map(O=>{if(re&&ee(O))return null;const j=r.isEqual(O,z);return m.jsx(Q,y({onClick:()=>!q&&ke(O),selected:j,disabled:B||ee(O),disableRipple:q,role:"option","aria-disabled":q,"aria-selected":j},E,{children:r.format(O,u?"fullTime12h":"fullTime24h")}),r.toISO(O))})})}))}),Kt=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:a,value:s,defaultValue:r,referenceDate:i,onChange:c,className:l,classes:u,disableFuture:g,disablePast:f,minTime:p,maxTime:T,shouldDisableTime:d,shouldDisableClock:x,minutesStep:C,ampm:v,ampmInClock:k,components:I,componentsProps:P,slots:w,slotProps:S,readOnly:b,disabled:M,sx:A,autoFocus:$,showViewSwitcher:F,disableIgnoringDatePartForTimeValidation:L,timezone:R})=>m.jsx(yc,{view:e,onViewChange:t,focusedView:n&&it(n)?n:null,onFocusedViewChange:o,views:a.filter(it),value:s,defaultValue:r,referenceDate:i,onChange:c,className:l,classes:u,disableFuture:g,disablePast:f,minTime:p,maxTime:T,shouldDisableTime:d,shouldDisableClock:x,minutesStep:C,ampm:v,ampmInClock:k,components:I,componentsProps:P,slots:w,slotProps:S,readOnly:b,disabled:M,sx:A,autoFocus:$,showViewSwitcher:F,disableIgnoringDatePartForTimeValidation:L,timezone:R}),kc=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:a,value:s,defaultValue:r,referenceDate:i,onChange:c,className:l,classes:u,disableFuture:g,disablePast:f,minTime:p,maxTime:T,shouldDisableTime:d,shouldDisableClock:x,minutesStep:C,ampm:v,components:k,componentsProps:I,slots:P,slotProps:w,readOnly:S,disabled:b,sx:M,autoFocus:A,disableIgnoringDatePartForTimeValidation:$,timeSteps:F,skipDisabled:L,timezone:R})=>m.jsx(Mc,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:a.filter(it),value:s,defaultValue:r,referenceDate:i,onChange:c,className:l,classes:u,disableFuture:g,disablePast:f,minTime:p,maxTime:T,shouldDisableTime:d,shouldDisableClock:x,minutesStep:C,ampm:v,components:k,componentsProps:I,slots:P,slotProps:w,readOnly:S,disabled:b,sx:M,autoFocus:A,disableIgnoringDatePartForTimeValidation:$,timeStep:F==null?void 0:F.minutes,skipDisabled:L,timezone:R}),Tc=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:a,value:s,defaultValue:r,referenceDate:i,onChange:c,className:l,classes:u,disableFuture:g,disablePast:f,minTime:p,maxTime:T,shouldDisableTime:d,shouldDisableClock:x,minutesStep:C,ampm:v,components:k,componentsProps:I,slots:P,slotProps:w,readOnly:S,disabled:b,sx:M,autoFocus:A,disableIgnoringDatePartForTimeValidation:$,timeSteps:F,skipDisabled:L,timezone:R})=>m.jsx(jl,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:a.filter(it),value:s,defaultValue:r,referenceDate:i,onChange:c,className:l,classes:u,disableFuture:g,disablePast:f,minTime:p,maxTime:T,shouldDisableTime:d,shouldDisableClock:x,minutesStep:C,ampm:v,components:k,componentsProps:I,slots:P,slotProps:w,readOnly:S,disabled:b,sx:M,autoFocus:A,disableIgnoringDatePartForTimeValidation:$,timeSteps:F,skipDisabled:L,timezone:R}),Qe=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:a,value:s,defaultValue:r,referenceDate:i,onChange:c,className:l,classes:u,disableFuture:g,disablePast:f,minDate:p,minTime:T,maxDate:d,maxTime:x,shouldDisableDate:C,shouldDisableMonth:v,shouldDisableYear:k,shouldDisableTime:I,shouldDisableClock:P,reduceAnimations:w,minutesStep:S,ampm:b,onMonthChange:M,monthsPerRow:A,onYearChange:$,yearsPerRow:F,defaultCalendarMonth:L,components:R,componentsProps:V,slots:H,slotProps:K,loading:Y,renderLoading:B,disableHighlightToday:q,readOnly:ne,disabled:re,showDaysOutsideCurrentMonth:le,dayOfWeekFormatter:W,sx:z,autoFocus:Z,fixedWeekNumber:N,displayWeekNumber:J,timezone:ce,disableIgnoringDatePartForTimeValidation:ae,timeSteps:U,skipDisabled:Q,timeViewsCount:E,shouldRenderTimeInASingleColumn:te})=>{var de,me;const ke=!!((de=Ft((me=K==null?void 0:K.actionBar)!=null?me:V==null?void 0:V.actionBar,{}))!=null&&(de=de.actions)!=null&&de.length),ee={view:We(e)?e:"hours",onViewChange:t,focusedView:o&&We(o)?o:null,onFocusedViewChange:a,views:n.filter(We),value:s,defaultValue:r,referenceDate:i,onChange:c,className:l,classes:u,disableFuture:g,disablePast:f,minTime:T,maxTime:x,shouldDisableTime:I,shouldDisableClock:P,minutesStep:S,ampm:b,components:R,componentsProps:V,slots:H,slotProps:K,readOnly:ne,disabled:re,autoFocus:Z,disableIgnoringDatePartForTimeValidation:ae,timeSteps:U,skipDisabled:Q,timezone:ce};return m.jsxs(D.Fragment,{children:[m.jsxs(Nl,{children:[m.jsx(Ro,{view:st(e)?e:"day",onViewChange:t,views:n.filter(st),focusedView:o&&st(o)?o:null,onFocusedViewChange:a,value:s,defaultValue:r,referenceDate:i,onChange:c,className:l,classes:u,disableFuture:g,disablePast:f,minDate:p,maxDate:d,shouldDisableDate:C,shouldDisableMonth:v,shouldDisableYear:k,reduceAnimations:w,onMonthChange:M,monthsPerRow:A,onYearChange:$,yearsPerRow:F,defaultCalendarMonth:L,components:R,componentsProps:V,slots:H,slotProps:K,loading:Y,renderLoading:B,disableHighlightToday:q,readOnly:ne,disabled:re,showDaysOutsideCurrentMonth:le,dayOfWeekFormatter:W,sx:z,autoFocus:Z,fixedWeekNumber:N,displayWeekNumber:J,timezone:ce}),E>0&&m.jsxs(D.Fragment,{children:[m.jsx(It,{orientation:"vertical"}),te?kc(y({},ee,{view:"hours",views:["hours"],focusedView:o&&We(o)?"hours":null,sx:y({width:"auto",[`&.${vc.root}`]:{maxHeight:Nt}},Array.isArray(z)?z:[z])})):Tc(y({},ee,{view:We(e)?e:"hours",views:n.filter(We),focusedView:o&&We(o)?o:null,sx:y({borderBottom:0,width:"auto",[`.${Tl.root}`]:{maxHeight:"100%"}},Array.isArray(z)?z:[z])}))]})]}),ke&&m.jsx(It,{})]})},Sc=["props","getOpenDialogAriaText"],Ic=["ownerState"],Vc=["ownerState"],Rc=e=>{var t,n,o,a,s;let{props:r,getOpenDialogAriaText:i}=e,c=ie(e,Sc);const{slots:l,slotProps:u,className:g,sx:f,format:p,formatDensity:T,timezone:d,label:x,inputRef:C,readOnly:v,disabled:k,autoFocus:I,localeText:P,reduceAnimations:w}=r,S=he(),b=D.useRef(null),M=D.useRef(null),A=At(),$=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:F,actions:L,hasUIView:R,layoutProps:V,renderCurrentView:H,shouldRestoreFocus:K,fieldProps:Y}=bo(y({},c,{props:r,inputRef:b,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),B=(o=l.inputAdornment)!=null?o:Un,q=Pe({elementType:B,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:r}),ne=ie(q,Ic),re=(a=l.openPickerButton)!=null?a:ct,le=Pe({elementType:re,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:k||v,onClick:F?L.onClose:L.onOpen,"aria-label":i(Y.value,S),edge:ne.position},ownerState:r}),W=ie(le,Vc),z=l.openPickerIcon,Z=l.field,N=Pe({elementType:Z,externalSlotProps:u==null?void 0:u.field,additionalProps:y({},Y,$&&{id:A},{readOnly:v,disabled:k,className:g,sx:f,format:p,formatDensity:T,timezone:d,label:x,autoFocus:I&&!r.open,focused:F?!0:void 0}),ownerState:r});R&&(N.InputProps=y({},N.InputProps,{ref:M,[`${ne.position}Adornment`]:m.jsx(B,y({},ne,{children:m.jsx(re,y({},W,{children:m.jsx(z,y({},u==null?void 0:u.openPickerIcon))}))}))}));const J=y({textField:l.textField,clearIcon:l.clearIcon,clearButton:l.clearButton},N.slots),ce=(s=l.layout)!=null?s:Do,ae=_e(b,N.inputRef,C);let U=A;$&&(x?U=`${A}-label`:U=void 0);const Q=y({},u,{toolbar:y({},u==null?void 0:u.toolbar,{titleId:A}),popper:y({"aria-labelledby":U},u==null?void 0:u.popper)});return{renderPicker:()=>m.jsxs(ln,{localeText:P,children:[m.jsx(Z,y({},N,{slots:J,slotProps:Q,inputRef:ae})),m.jsx(ca,y({role:"dialog",placement:"bottom-start",anchorEl:M.current},L,{open:F,slots:l,slotProps:Q,shouldRestoreFocus:K,reduceAnimations:w,children:m.jsx(ce,y({},V,Q==null?void 0:Q.layout,{slots:l,slotProps:Q,children:H()}))}))]})}},$c=["views","format"],Oo=(e,t)=>{let{views:n,format:o}=t,a=ie(t,$c);if(o)return o;const s=[],r=[];if(n.forEach(l=>{it(l)?r.push(l):s.push(l)}),r.length===0)return wn(e,y({views:s},a));if(s.length===0)return Mn(e,y({views:r},a));const i=Mn(e,y({views:r},a));return`${wn(e,y({views:s},a))} ${i}`},Ac=(e,t,n)=>n?t.filter(o=>!We(o)||o==="hours"):e?[...t,"meridiem"]:t,Fc=(e,t)=>{var n,o;return 24*60/(((n=e.hours)!=null?n:1)*((o=e.minutes)!=null?o:5))<=t};function Oc({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:o}){const a=e??24,s=y({hours:1,minutes:5,seconds:5},n),r=Fc(s,a);return{thresholdToRenderTimeInASingleColumn:a,timeSteps:s,shouldRenderTimeInASingleColumn:r,views:Ac(t,o,r)}}const Lo=D.forwardRef(function(t,n){var o,a,s,r,i,c,l;const u=Ie(),g=he(),f=Io(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:p,thresholdToRenderTimeInASingleColumn:T,views:d,timeSteps:x}=Oc(f),C=!f.viewRenderers||Object.keys(f.viewRenderers).length===0,v=C?{day:Qe,month:Qe,year:Qe,hours:Qe,minutes:Qe,seconds:Qe,meridiem:Qe}:y({day:at,month:at,year:at,hours:null,minutes:null,seconds:null,meridiem:null},f.viewRenderers),k=(o=f.ampmInClock)!=null?o:!0,I=C?["accept"]:[],P=y({},f,{viewRenderers:v,format:Oo(g,f),views:d,yearsPerRow:(a=f.yearsPerRow)!=null?a:4,ampmInClock:k,timeSteps:x,thresholdToRenderTimeInASingleColumn:T,shouldRenderTimeInASingleColumn:p,slots:y({field:ko,openPickerIcon:Nr},f.slots),slotProps:y({},f.slotProps,{field:S=>{var b;return y({},Ft((b=f.slotProps)==null?void 0:b.field,S),uo(f),{ref:n})},toolbar:y({hidden:!0,ampmInClock:k,toolbarVariant:C?"desktop":"mobile"},(s=f.slotProps)==null?void 0:s.toolbar),tabs:y({hidden:!0},(r=f.slotProps)==null?void 0:r.tabs),actionBar:y({actions:I},(i=f.slotProps)==null?void 0:i.actionBar)})}),{renderPicker:w}=Rc({props:P,valueManager:Se,valueType:"date-time",getOpenDialogAriaText:(c=(l=P.localeText)==null?void 0:l.openDatePickerDialogue)!=null?c:u.openDatePickerDialogue,validator:un});return w()});Lo.propTypes={ampm:h.bool,ampmInClock:h.bool,autoFocus:h.bool,className:h.string,closeOnSelect:h.bool,components:h.object,componentsProps:h.object,dayOfWeekFormatter:h.func,defaultCalendarMonth:h.any,defaultValue:h.any,disabled:h.bool,disableFuture:h.bool,disableHighlightToday:h.bool,disableIgnoringDatePartForTimeValidation:h.bool,disableOpenPicker:h.bool,disablePast:h.bool,displayWeekNumber:h.bool,fixedWeekNumber:h.number,format:h.string,formatDensity:h.oneOf(["dense","spacious"]),inputRef:Kn,label:h.node,loading:h.bool,localeText:h.object,maxDate:h.any,maxDateTime:h.any,maxTime:h.any,minDate:h.any,minDateTime:h.any,minTime:h.any,minutesStep:h.number,monthsPerRow:h.oneOf([3,4]),onAccept:h.func,onChange:h.func,onClose:h.func,onError:h.func,onMonthChange:h.func,onOpen:h.func,onSelectedSectionsChange:h.func,onViewChange:h.func,onYearChange:h.func,open:h.bool,openTo:h.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:h.oneOf(["landscape","portrait"]),readOnly:h.bool,reduceAnimations:h.bool,referenceDate:h.any,renderLoading:h.func,selectedSections:h.oneOfType([h.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),h.number,h.shape({endIndex:h.number.isRequired,startIndex:h.number.isRequired})]),shouldDisableClock:h.func,shouldDisableDate:h.func,shouldDisableMonth:h.func,shouldDisableTime:h.func,shouldDisableYear:h.func,showDaysOutsideCurrentMonth:h.bool,skipDisabled:h.bool,slotProps:h.object,slots:h.object,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),thresholdToRenderTimeInASingleColumn:h.number,timeSteps:h.shape({hours:h.number,minutes:h.number,seconds:h.number}),timezone:h.string,value:h.any,view:h.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:h.shape({day:h.func,hours:h.func,meridiem:h.func,minutes:h.func,month:h.func,seconds:h.func,year:h.func}),views:h.arrayOf(h.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:h.oneOf([3,4])};const Lc=["props","getOpenDialogAriaText"],jc=e=>{var t,n,o;let{props:a,getOpenDialogAriaText:s}=e,r=ie(e,Lc);const{slots:i,slotProps:c,className:l,sx:u,format:g,formatDensity:f,timezone:p,label:T,inputRef:d,readOnly:x,disabled:C,localeText:v}=a,k=he(),I=D.useRef(null),P=At(),w=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:S,actions:b,layoutProps:M,renderCurrentView:A,fieldProps:$}=bo(y({},r,{props:a,inputRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),F=i.field,L=Pe({elementType:F,externalSlotProps:c==null?void 0:c.field,additionalProps:y({},$,w&&{id:P},!(C||x)&&{onClick:b.onOpen,onKeyDown:Mr(b.onOpen)},{readOnly:x??!0,disabled:C,className:l,sx:u,format:g,formatDensity:f,timezone:p,label:T}),ownerState:a});L.inputProps=y({},L.inputProps,{"aria-label":s($.value,k)});const R=y({textField:i.textField},L.slots),V=(o=i.layout)!=null?o:Do,H=_e(I,L.inputRef,d);let K=P;w&&(T?K=`${P}-label`:K=void 0);const Y=y({},c,{toolbar:y({},c==null?void 0:c.toolbar,{titleId:P}),mobilePaper:y({"aria-labelledby":K},c==null?void 0:c.mobilePaper)});return{renderPicker:()=>m.jsxs(ln,{localeText:v,children:[m.jsx(F,y({},L,{slots:R,slotProps:Y,inputRef:H})),m.jsx(Jr,y({},b,{open:S,slots:i,slotProps:Y,children:m.jsx(V,y({},M,Y==null?void 0:Y.layout,{slots:i,slotProps:Y,children:A()}))}))]})}},jo=D.forwardRef(function(t,n){var o,a,s,r,i;const c=Ie(),l=he(),u=Io(t,"MuiMobileDateTimePicker"),g=y({day:at,month:at,year:at,hours:Kt,minutes:Kt,seconds:Kt},u.viewRenderers),f=(o=u.ampmInClock)!=null?o:!1,p=y({},u,{viewRenderers:g,format:Oo(l,u),ampmInClock:f,slots:y({field:ko},u.slots),slotProps:y({},u.slotProps,{field:d=>{var x;return y({},Ft((x=u.slotProps)==null?void 0:x.field,d),uo(u),{ref:n})},toolbar:y({hidden:!1,ampmInClock:f},(a=u.slotProps)==null?void 0:a.toolbar),tabs:y({hidden:!1},(s=u.slotProps)==null?void 0:s.tabs)})}),{renderPicker:T}=jc({props:p,valueManager:Se,valueType:"date-time",getOpenDialogAriaText:(r=(i=p.localeText)==null?void 0:i.openDatePickerDialogue)!=null?r:c.openDatePickerDialogue,validator:un});return T()});jo.propTypes={ampm:h.bool,ampmInClock:h.bool,autoFocus:h.bool,className:h.string,closeOnSelect:h.bool,components:h.object,componentsProps:h.object,dayOfWeekFormatter:h.func,defaultCalendarMonth:h.any,defaultValue:h.any,disabled:h.bool,disableFuture:h.bool,disableHighlightToday:h.bool,disableIgnoringDatePartForTimeValidation:h.bool,disableOpenPicker:h.bool,disablePast:h.bool,displayWeekNumber:h.bool,fixedWeekNumber:h.number,format:h.string,formatDensity:h.oneOf(["dense","spacious"]),inputRef:Kn,label:h.node,loading:h.bool,localeText:h.object,maxDate:h.any,maxDateTime:h.any,maxTime:h.any,minDate:h.any,minDateTime:h.any,minTime:h.any,minutesStep:h.number,monthsPerRow:h.oneOf([3,4]),onAccept:h.func,onChange:h.func,onClose:h.func,onError:h.func,onMonthChange:h.func,onOpen:h.func,onSelectedSectionsChange:h.func,onViewChange:h.func,onYearChange:h.func,open:h.bool,openTo:h.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:h.oneOf(["landscape","portrait"]),readOnly:h.bool,reduceAnimations:h.bool,referenceDate:h.any,renderLoading:h.func,selectedSections:h.oneOfType([h.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),h.number,h.shape({endIndex:h.number.isRequired,startIndex:h.number.isRequired})]),shouldDisableClock:h.func,shouldDisableDate:h.func,shouldDisableMonth:h.func,shouldDisableTime:h.func,shouldDisableYear:h.func,showDaysOutsideCurrentMonth:h.bool,slotProps:h.object,slots:h.object,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),timezone:h.string,value:h.any,view:h.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:h.shape({day:h.func,hours:h.func,minutes:h.func,month:h.func,seconds:h.func,year:h.func}),views:h.arrayOf(h.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:h.oneOf([3,4])};const Nc=["desktopModeMediaQuery"],En=D.forwardRef(function(t,n){const o=pe({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:a=kr}=o,s=ie(o,Nc);return Hn(a,{defaultMatches:!0})?m.jsx(Lo,y({ref:n},s)):m.jsx(jo,y({ref:n},s))});var Ec={exports:{}};(function(e,t){(function(n,o){e.exports=o()})($t,function(){var n,o,a=1e3,s=6e4,r=36e5,i=864e5,c=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l=31536e6,u=2628e6,g=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,f={years:l,months:u,days:i,hours:r,minutes:s,seconds:a,milliseconds:1,weeks:6048e5},p=function(w){return w instanceof I},T=function(w,S,b){return new I(w,b,S.$l)},d=function(w){return o.p(w)+"s"},x=function(w){return w<0},C=function(w){return x(w)?Math.ceil(w):Math.floor(w)},v=function(w){return Math.abs(w)},k=function(w,S){return w?x(w)?{negative:!0,format:""+v(w)+S}:{negative:!1,format:""+w+S}:{negative:!1,format:""}},I=function(){function w(b,M,A){var $=this;if(this.$d={},this.$l=A,b===void 0&&(this.$ms=0,this.parseFromMilliseconds()),M)return T(b*f[d(M)],this);if(typeof b=="number")return this.$ms=b,this.parseFromMilliseconds(),this;if(typeof b=="object")return Object.keys(b).forEach(function(R){$.$d[d(R)]=b[R]}),this.calMilliseconds(),this;if(typeof b=="string"){var F=b.match(g);if(F){var L=F.slice(2).map(function(R){return R!=null?Number(R):0});return this.$d.years=L[0],this.$d.months=L[1],this.$d.weeks=L[2],this.$d.days=L[3],this.$d.hours=L[4],this.$d.minutes=L[5],this.$d.seconds=L[6],this.calMilliseconds(),this}}return this}var S=w.prototype;return S.calMilliseconds=function(){var b=this;this.$ms=Object.keys(this.$d).reduce(function(M,A){return M+(b.$d[A]||0)*f[A]},0)},S.parseFromMilliseconds=function(){var b=this.$ms;this.$d.years=C(b/l),b%=l,this.$d.months=C(b/u),b%=u,this.$d.days=C(b/i),b%=i,this.$d.hours=C(b/r),b%=r,this.$d.minutes=C(b/s),b%=s,this.$d.seconds=C(b/a),b%=a,this.$d.milliseconds=b},S.toISOString=function(){var b=k(this.$d.years,"Y"),M=k(this.$d.months,"M"),A=+this.$d.days||0;this.$d.weeks&&(A+=7*this.$d.weeks);var $=k(A,"D"),F=k(this.$d.hours,"H"),L=k(this.$d.minutes,"M"),R=this.$d.seconds||0;this.$d.milliseconds&&(R+=this.$d.milliseconds/1e3,R=Math.round(1e3*R)/1e3);var V=k(R,"S"),H=b.negative||M.negative||$.negative||F.negative||L.negative||V.negative,K=F.format||L.format||V.format?"T":"",Y=(H?"-":"")+"P"+b.format+M.format+$.format+K+F.format+L.format+V.format;return Y==="P"||Y==="-P"?"P0D":Y},S.toJSON=function(){return this.toISOString()},S.format=function(b){var M=b||"YYYY-MM-DDTHH:mm:ss",A={Y:this.$d.years,YY:o.s(this.$d.years,2,"0"),YYYY:o.s(this.$d.years,4,"0"),M:this.$d.months,MM:o.s(this.$d.months,2,"0"),D:this.$d.days,DD:o.s(this.$d.days,2,"0"),H:this.$d.hours,HH:o.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:o.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:o.s(this.$d.seconds,2,"0"),SSS:o.s(this.$d.milliseconds,3,"0")};return M.replace(c,function($,F){return F||String(A[$])})},S.as=function(b){return this.$ms/f[d(b)]},S.get=function(b){var M=this.$ms,A=d(b);return A==="milliseconds"?M%=1e3:M=A==="weeks"?C(M/f[A]):this.$d[A],M||0},S.add=function(b,M,A){var $;return $=M?b*f[d(M)]:p(b)?b.$ms:T(b,this).$ms,T(this.$ms+$*(A?-1:1),this)},S.subtract=function(b,M){return this.add(b,M,!0)},S.locale=function(b){var M=this.clone();return M.$l=b,M},S.clone=function(){return T(this.$ms,this)},S.humanize=function(b){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!b)},S.valueOf=function(){return this.asMilliseconds()},S.milliseconds=function(){return this.get("milliseconds")},S.asMilliseconds=function(){return this.as("milliseconds")},S.seconds=function(){return this.get("seconds")},S.asSeconds=function(){return this.as("seconds")},S.minutes=function(){return this.get("minutes")},S.asMinutes=function(){return this.as("minutes")},S.hours=function(){return this.get("hours")},S.asHours=function(){return this.as("hours")},S.days=function(){return this.get("days")},S.asDays=function(){return this.as("days")},S.weeks=function(){return this.get("weeks")},S.asWeeks=function(){return this.as("weeks")},S.months=function(){return this.get("months")},S.asMonths=function(){return this.as("months")},S.years=function(){return this.get("years")},S.asYears=function(){return this.as("years")},w}(),P=function(w,S,b){return w.add(S.years()*b,"y").add(S.months()*b,"M").add(S.days()*b,"d").add(S.hours()*b,"h").add(S.minutes()*b,"m").add(S.seconds()*b,"s").add(S.milliseconds()*b,"ms")};return function(w,S,b){n=b,o=b().$utils(),b.duration=function($,F){var L=b.locale();return T($,{$l:L},F)},b.isDuration=p;var M=S.prototype.add,A=S.prototype.subtract;S.prototype.add=function($,F){return p($)?P(this,$,1):M.bind(this)($,F)},S.prototype.subtract=function($,F){return p($)?P(this,$,-1):A.bind(this)($,F)}}})})(Ec);var No={exports:{}};(function(e,t){(function(n,o){e.exports=o()})($t,function(){var n="week",o="year";return function(a,s,r){var i=s.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var l=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=r(this).startOf(o).add(1,o).date(l),g=r(this).endOf(n);if(u.isBefore(g))return 1}var f=r(this).startOf(o).date(l).startOf(n).subtract(1,"millisecond"),p=this.diff(f,n,!0);return p<0?r(this).startOf("week").week():Math.ceil(p)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(No);var _c=No.exports;const Bc=on(_c);var Eo={exports:{}};(function(e,t){(function(n,o){e.exports=o()})($t,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,s=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,i={},c=function(d){return(d=+d)+(d>68?1900:2e3)},l=function(d){return function(x){this[d]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(d){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var C=x.match(/([+-]|\d\d)/g),v=60*C[1]+(+C[2]||0);return v===0?0:C[0]==="+"?-v:v}(d)}],g=function(d){var x=i[d];return x&&(x.indexOf?x:x.s.concat(x.f))},f=function(d,x){var C,v=i.meridiem;if(v){for(var k=1;k<=24;k+=1)if(d.indexOf(v(k,0,x))>-1){C=k>12;break}}else C=d===(x?"pm":"PM");return C},p={A:[r,function(d){this.afternoon=f(d,!1)}],a:[r,function(d){this.afternoon=f(d,!0)}],S:[/\d/,function(d){this.milliseconds=100*+d}],SS:[a,function(d){this.milliseconds=10*+d}],SSS:[/\d{3}/,function(d){this.milliseconds=+d}],s:[s,l("seconds")],ss:[s,l("seconds")],m:[s,l("minutes")],mm:[s,l("minutes")],H:[s,l("hours")],h:[s,l("hours")],HH:[s,l("hours")],hh:[s,l("hours")],D:[s,l("day")],DD:[a,l("day")],Do:[r,function(d){var x=i.ordinal,C=d.match(/\d+/);if(this.day=C[0],x)for(var v=1;v<=31;v+=1)x(v).replace(/\[|\]/g,"")===d&&(this.day=v)}],M:[s,l("month")],MM:[a,l("month")],MMM:[r,function(d){var x=g("months"),C=(g("monthsShort")||x.map(function(v){return v.slice(0,3)})).indexOf(d)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[r,function(d){var x=g("months").indexOf(d)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,l("year")],YY:[a,function(d){this.year=c(d)}],YYYY:[/\d{4}/,l("year")],Z:u,ZZ:u};function T(d){var x,C;x=d,C=i&&i.formats;for(var v=(d=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,A,$){var F=$&&$.toUpperCase();return A||C[$]||n[$]||C[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(L,R,V){return R||V.slice(1)})})).match(o),k=v.length,I=0;I-1)return new Date((K==="X"?1e3:1)*H);var B=T(K)(H),q=B.year,ne=B.month,re=B.day,le=B.hours,W=B.minutes,z=B.seconds,Z=B.milliseconds,N=B.zone,J=new Date,ce=re||(q||ne?1:J.getDate()),ae=q||J.getFullYear(),U=0;q&&!ne||(U=ne>0?ne-1:J.getMonth());var Q=le||0,E=W||0,te=z||0,de=Z||0;return N?new Date(Date.UTC(ae,U,ce,Q,E,te,de+60*N.offset*1e3)):Y?new Date(Date.UTC(ae,U,ce,Q,E,te,de)):new Date(ae,U,ce,Q,E,te,de)}catch{return new Date("")}}(P,b,w),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),$&&P!=this.format(b)&&(this.$d=new Date("")),i={}}else if(b instanceof Array)for(var L=b.length,R=1;R<=L;R+=1){S[1]=b[R-1];var V=C.apply(this,S);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}R===L&&(this.$d=new Date(""))}else k.call(this,I)}}})})(Eo);var Hc=Eo.exports;const Yc=on(Hc);var _o={exports:{}};(function(e,t){(function(n,o){e.exports=o()})($t,function(){return function(n,o,a){o.prototype.isBetween=function(s,r,i,c){var l=a(s),u=a(r),g=(c=c||"()")[0]==="(",f=c[1]===")";return(g?this.isAfter(l,i):!this.isBefore(l,i))&&(f?this.isBefore(u,i):!this.isAfter(u,i))||(g?this.isBefore(l,i):!this.isAfter(l,i))&&(f?this.isAfter(u,i):!this.isBefore(u,i))}}})})(_o);var zc=_o.exports;const Wc=on(zc);Me.extend(Yc);Me.extend(as);Me.extend(Wc);const Uc=yo(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),Gc={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Kc={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},qt=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` +`),_n=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` +`),qc=(e,t)=>t?(...n)=>e(...n).locale(t):e;class Zc{constructor({locale:t,formats:n,instance:o}={}){var a;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=Gc,this.setLocaleToValue=s=>{const r=this.getCurrentLocaleCode();return r===s.locale()?s:s.locale(r)},this.hasUTCPlugin=()=>typeof Me.utc<"u",this.hasTimezonePlugin=()=>typeof Me.tz<"u",this.isSame=(s,r,i)=>{const c=this.setTimezone(r,this.getTimezone(s));return s.format(i)===c.format(i)},this.cleanTimezone=s=>{switch(s){case"default":return;case"system":return Me.tz.guess();default:return s}},this.createSystemDate=s=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(s);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const r=Me.tz.guess();return r!=="UTC"?Me.tz(s,r):Me(s)}return Me(s)},this.createUTCDate=s=>{if(!this.hasUTCPlugin())throw new Error(qt);return Me.utc(s)},this.createTZDate=(s,r)=>{if(!this.hasUTCPlugin())throw new Error(qt);if(!this.hasTimezonePlugin())throw new Error(_n);const i=s!==void 0&&!s.endsWith("Z");return Me(s).tz(this.cleanTimezone(r),i)},this.getLocaleFormats=()=>{const s=Me.Ls,r=this.locale||"en";let i=s[r];return i===void 0&&(Uc(),i=s.en),i.formats},this.adjustOffset=s=>{if(!this.hasTimezonePlugin())return s;const r=this.getTimezone(s);if(r!=="UTC"){var i,c;const l=s.tz(this.cleanTimezone(r),!0);return((i=l.$offset)!=null?i:0)===((c=s.$offset)!=null?c:0)?s:l}return s},this.date=s=>s===null?null:this.dayjs(s),this.dateWithTimezone=(s,r)=>{if(s===null)return null;let i;return r==="UTC"?i=this.createUTCDate(s):r==="system"||r==="default"&&!this.hasTimezonePlugin()?i=this.createSystemDate(s):i=this.createTZDate(s,r),this.locale===void 0?i:i.locale(this.locale)},this.getTimezone=s=>{if(this.hasTimezonePlugin()){var r;const i=(r=s.$x)==null?void 0:r.$timezone;if(i)return i}return this.hasUTCPlugin()&&s.isUTC()?"UTC":"system"},this.setTimezone=(s,r)=>{if(this.getTimezone(s)===r)return s;if(r==="UTC"){if(!this.hasUTCPlugin())throw new Error(qt);return s.utc()}if(r==="system")return s.local();if(!this.hasTimezonePlugin()){if(r==="default")return s;throw new Error(_n)}return Me.tz(s,this.cleanTimezone(r))},this.toJsDate=s=>s.toDate(),this.parseISO=s=>this.dayjs(s),this.toISO=s=>s.toISOString(),this.parse=(s,r)=>s===""?null:this.dayjs(s,r,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=s=>{const r=this.getLocaleFormats(),i=c=>c.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(l,u,g)=>u||g.slice(1));return s.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(c,l,u)=>{const g=u&&u.toUpperCase();return l||r[u]||i(r[g])})},this.getFormatHelperText=s=>this.expandFormat(s).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=s=>s===null,this.isValid=s=>this.dayjs(s).isValid(),this.format=(s,r)=>this.formatByString(s,this.formats[r]),this.formatByString=(s,r)=>this.dayjs(s).format(r),this.formatNumber=s=>s,this.getDiff=(s,r,i)=>s.diff(r,i),this.isEqual=(s,r)=>s===null&&r===null?!0:this.dayjs(s).toDate().getTime()===this.dayjs(r).toDate().getTime(),this.isSameYear=(s,r)=>this.isSame(s,r,"YYYY"),this.isSameMonth=(s,r)=>this.isSame(s,r,"YYYY-MM"),this.isSameDay=(s,r)=>this.isSame(s,r,"YYYY-MM-DD"),this.isSameHour=(s,r)=>s.isSame(r,"hour"),this.isAfter=(s,r)=>s>r,this.isAfterYear=(s,r)=>this.hasUTCPlugin()?!this.isSameYear(s,r)&&s.utc()>r.utc():s.isAfter(r,"year"),this.isAfterDay=(s,r)=>this.hasUTCPlugin()?!this.isSameDay(s,r)&&s.utc()>r.utc():s.isAfter(r,"day"),this.isBefore=(s,r)=>sthis.hasUTCPlugin()?!this.isSameYear(s,r)&&s.utc()this.hasUTCPlugin()?!this.isSameDay(s,r)&&s.utc()s>=r&&s<=i,this.startOfYear=s=>this.adjustOffset(s.startOf("year")),this.startOfMonth=s=>this.adjustOffset(s.startOf("month")),this.startOfWeek=s=>this.adjustOffset(s.startOf("week")),this.startOfDay=s=>this.adjustOffset(s.startOf("day")),this.endOfYear=s=>this.adjustOffset(s.endOf("year")),this.endOfMonth=s=>this.adjustOffset(s.endOf("month")),this.endOfWeek=s=>this.adjustOffset(s.endOf("week")),this.endOfDay=s=>this.adjustOffset(s.endOf("day")),this.addYears=(s,r)=>this.adjustOffset(r<0?s.subtract(Math.abs(r),"year"):s.add(r,"year")),this.addMonths=(s,r)=>this.adjustOffset(r<0?s.subtract(Math.abs(r),"month"):s.add(r,"month")),this.addWeeks=(s,r)=>this.adjustOffset(r<0?s.subtract(Math.abs(r),"week"):s.add(r,"week")),this.addDays=(s,r)=>this.adjustOffset(r<0?s.subtract(Math.abs(r),"day"):s.add(r,"day")),this.addHours=(s,r)=>this.adjustOffset(r<0?s.subtract(Math.abs(r),"hour"):s.add(r,"hour")),this.addMinutes=(s,r)=>this.adjustOffset(r<0?s.subtract(Math.abs(r),"minute"):s.add(r,"minute")),this.addSeconds=(s,r)=>this.adjustOffset(r<0?s.subtract(Math.abs(r),"second"):s.add(r,"second")),this.getYear=s=>s.year(),this.getMonth=s=>s.month(),this.getDate=s=>s.date(),this.getHours=s=>s.hour(),this.getMinutes=s=>s.minute(),this.getSeconds=s=>s.second(),this.getMilliseconds=s=>s.millisecond(),this.setYear=(s,r)=>this.adjustOffset(s.set("year",r)),this.setMonth=(s,r)=>this.adjustOffset(s.set("month",r)),this.setDate=(s,r)=>this.adjustOffset(s.set("date",r)),this.setHours=(s,r)=>this.adjustOffset(s.set("hour",r)),this.setMinutes=(s,r)=>this.adjustOffset(s.set("minute",r)),this.setSeconds=(s,r)=>this.adjustOffset(s.set("second",r)),this.setMilliseconds=(s,r)=>this.adjustOffset(s.set("millisecond",r)),this.getDaysInMonth=s=>s.daysInMonth(),this.getNextMonth=s=>this.addMonths(s,1),this.getPreviousMonth=s=>this.addMonths(s,-1),this.getMonthArray=s=>{const i=[s.startOf("year")];for(;i.length<12;){const c=i[i.length-1];i.push(this.addMonths(c,1))}return i},this.mergeDateAndTime=(s,r)=>s.hour(r.hour()).minute(r.minute()).second(r.second()),this.getWeekdays=()=>{const s=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(r=>this.formatByString(this.addDays(s,r),"dd"))},this.getWeekArray=s=>{const r=this.setLocaleToValue(s),i=r.startOf("month").startOf("week"),c=r.endOf("month").endOf("week");let l=0,u=i;const g=[];for(;us.week(),this.getYearRange=(s,r)=>{const i=s.startOf("year"),c=r.endOf("year"),l=[];let u=i;for(;us==="am"?"AM":"PM",this.rawDayJsInstance=o,this.dayjs=qc((a=this.rawDayJsInstance)!=null?a:Me,t),this.locale=t,this.formats=y({},Kc,n),Me.extend(Bc)}}const Qc=({setIsXaxisAsCategorical:e,isXaxisAsCategorical:t})=>m.jsx(Zt,{minWidth:180,display:"flex",justifyContent:"center",children:m.jsx(is,{control:m.jsx(ls,{checked:t,onChange:n=>e(n.target.checked)}),label:"Show in order"})}),Jc=({dates:e,dateRange:t,setDates:n,children:o,flexEnd:a,required:s=!1})=>{var r;return m.jsx(ln,{dateAdapter:Zc,adapterLocale:"en-gb",children:m.jsx(tt,{container:!0,padding:1,zIndex:1,gap:2,justifyContent:a?"flex-end":"flex-start",alignItems:"flex-end",children:m.jsxs(m.Fragment,{children:[o&&m.jsx(tt,{item:!0,children:o}),m.jsx(tt,{item:!0,xs:12,md:2,children:m.jsxs(cs,{fullWidth:!0,children:[m.jsx(us,{children:"Period"}),m.jsxs(ds,{variant:"standard",defaultValue:"",onChange:i=>{const[c,l]=i.target.value.split(",");if(c===""){n({dateFrom:t.minDate??null,dateTo:t.maxDate??null});return}const[u,g]=[Number(c),l],f=t.maxDate||Me(),p=f.subtract(u,g);n({dateFrom:p,dateTo:f})},children:[m.jsx(Te,{value:"",children:m.jsx("em",{children:"None"})}),m.jsx(Te,{value:"10,minutes",children:"Last 10 Minutes"}),m.jsx(Te,{value:"30,minutes",children:"Last 30 Minutes"}),m.jsx(Te,{value:"1,hours",children:"Last 1 Hours"}),m.jsx(Te,{value:"2,hours",children:"Last 2 Hours"}),m.jsx(Te,{value:"8,hours",children:"Last 8 Hours"}),m.jsx(Te,{value:"24,hours",children:"Last 24 Hours"}),m.jsx(Te,{value:"7,days",children:"Last 7 Days"}),m.jsx(Te,{value:"14,days",children:"Last 14 Days"}),m.jsx(Te,{value:"28,days",children:"Last 28 Days"}),m.jsx(Te,{value:"60,days",children:"Last 60 Days"})]})]})}),m.jsx(tt,{item:!0,children:m.jsxs(Zt,{display:"flex",alignItems:"center",gap:2,children:[m.jsx(En,{minDate:void 0,maxDate:t.maxDate&&(e==null?void 0:e.dateTo),slotProps:{textField:{variant:"standard",error:s?!e.dateFrom:void 0}},label:"From",value:e==null?void 0:e.dateFrom,onChange:i=>n(c=>({...c,dateFrom:i}))}),m.jsx(Zt,{height:1,display:"flex",alignItems:"center",children:m.jsx(He,{children:" - "})}),m.jsx(En,{minDate:t.minDate&&(e==null?void 0:e.dateFrom),maxDate:void 0,slotProps:{textField:{variant:"standard",error:s?!e.dateTo:void 0}},label:"To",value:e==null?void 0:e.dateTo,onChange:i=>n(c=>({...c,dateTo:i}))})]})}),m.jsx(tt,{item:!0,xs:12,children:m.jsx(Ps,{unmountOnExit:!0,in:!!(e.dateFrom&&e.dateTo&&((r=e.dateFrom)!=null&&r.isAfter(e.dateTo))),children:m.jsxs(ms,{severity:"error",children:[m.jsx(hs,{children:"Error"}),"Incorrect time interval"]})})})]})})})},Xc=({widgets:e,ItemWrapper:t})=>e.length===0?m.jsx(He,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):m.jsx(m.Fragment,{children:m.jsx(tt,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:m.jsx(Ms,{widgets:e,ItemWrapper:t})})}),eu=({data:e,dateFilterProps:t})=>{const[n,o]=fs("dashboard-hide-dates",!1);return m.jsxs(m.Fragment,{children:[m.jsx(Jc,{...t,flexEnd:!0,children:m.jsx(Qc,{isXaxisAsCategorical:n,setIsXaxisAsCategorical:o})}),m.jsx(ks.Provider,{value:{isXaxisAsCategorical:n},children:m.jsx(Xc,{widgets:e.widgets})})]})},ot=e=>e&&Me(e).isValid()?Me(e):void 0,tu=({min_timestamp:e,max_timestamp:t})=>{const[n,o]=[ot(e),ot(t)];return{...n?{minDate:n}:null,...o?{maxDate:o}:null}},nu=({dates:e,onDebounce:t,delay:n=300})=>{const o=ps(),[a,s]=D.useState(e),r=gs(a,n);return D.useEffect(()=>{o||t(r)},[r]),{dates:a,setDates:s}},ou="/api/projects/{project_id}/dashboard",su=({api:e,project_id:t,query:n})=>e.GET(ou,{params:{path:{project_id:t},query:n},parseAs:"text"}).then(ys()).then(Ts),ru={title:"Dashboard"},lu={crumb:ru},cu=({params:e,query:t})=>{const{projectId:n}=e;return su({api:vs,project_id:n,query:t})},uu=()=>{const{loaderData:e,query:t,setSearchParams:n}=bs(),o=tu(e),{dates:a,setDates:s}=nu({dates:{dateFrom:ot(t.timestamp_start)||o.minDate,dateTo:ot(t.timestamp_end)||o.maxDate},onDebounce:r=>n(i=>{var g,f;i.delete("timestamp_start"),i.delete("timestamp_end");const[c,l]=[(g=ot(r.dateFrom))==null?void 0:g.toDate(),(f=ot(r.dateTo))==null?void 0:f.toDate()];return{...Object.fromEntries(i),...c?{timestamp_start:yn(c)}:null,...l?{timestamp_end:yn(l)}:null}},{replace:!0,preventScrollReset:!0})});return m.jsx(eu,{data:e,dateFilterProps:{dates:a,setDates:s,dateRange:o}})};export{uu as Component,lu as handle,cu as loaderSpecial}; diff --git a/src/evidently/ui/assets/static/js/index-8XPeT5JI.js b/src/evidently/ui/assets/static/js/index-8XPeT5JI.js deleted file mode 100644 index 9ffa995dfa..0000000000 --- a/src/evidently/ui/assets/static/js/index-8XPeT5JI.js +++ /dev/null @@ -1 +0,0 @@ -import{R as oe,j as r,a2 as z,al as Ea,am as Da,aa as Ma,an as Ia,ao as $a,M as Aa,r as y,B as $,ap as Q,I as G,aq as Fa,a6 as _a,ag as Ka,aj as Oa,a3 as Pa,O as Ua,a9 as Qa,V as Wa,m as Za,x as za,ak as Ha,a5 as qa,T as de,ar as Ga,as as Ya,at as W,au as I,av as Xa,aw as er,y as ar,U as rr,ae as tr,ab as nr,G as Z,ax as sr,ai as ce,F as lr,q as ir}from"./vendor-DoRIiF9A.js";import{u as or}from"./index-BqCr-mCb.js";const dr=[{title:"Download HTML",format:"html"},{title:"Download JSON",format:"json"}];function cr(a){const[e,t]=oe.useState(!1),n=oe.useRef(null),c=(s,d)=>{window.open(`${s}?report_format=${d}`,"_blank"),t(!1)},o=()=>{t(s=>!s)},i=s=>{var d;(d=n.current)!=null&&d.contains(s.target)||t(!1)};return r.jsxs(r.Fragment,{children:[r.jsx(z,{disabled:a.disabled,variant:a.variant,ref:n,color:"primary","aria-controls":e?"split-button-menu":void 0,"aria-expanded":e?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:o,children:"Download"}),r.jsx(Ea,{open:e,anchorEl:n.current,transition:!0,children:({TransitionProps:s,placement:d})=>r.jsx(Da,{...s,style:{transformOrigin:d==="bottom"?"center top":"center bottom"},children:r.jsx(Ma,{children:r.jsx(Ia,{onClickAway:i,children:r.jsx($a,{id:"split-button-menu",children:dr.map(v=>r.jsx(Aa,{onClick:()=>c(a.downloadLink,v.format),children:v.title},v.format))})})})})})]})}const vr=({onClick:a,tags:e,limitTags:t=2})=>{const[n,c]=y.useState(!1);return r.jsxs($,{display:"flex",alignContent:"center",flexWrap:"wrap",children:[e.slice(0,t).map(o=>r.jsx(Q,{onClick:()=>a(o),label:o,style:{margin:3}},o)),n&&e.slice(t).map(o=>r.jsx(Q,{onClick:()=>a(o),label:o,style:{margin:3}},o)),!n&&e.length>t&&r.jsx(Q,{variant:"outlined",label:`+${e.length-t}`,style:{margin:3,borderColor:"grey"},onClick:()=>c(!0)},"+N"),e.length>0&&n&&r.jsx(G,{style:{margin:3},onClick:()=>c(!1),children:r.jsx(Fa,{fontSize:"small"})})]})},ur=({showText:a,copyText:e})=>r.jsxs($,{children:[a,r.jsx(G,{size:"small",style:{marginLeft:10},onClick:()=>navigator.clipboard.writeText(e),children:r.jsx(_a,{fontSize:"small"})})]});function l(){return l=Object.assign?Object.assign.bind():function(a){for(var e=1;el({},a,e),yr=()=>y.useContext(pe),Y=y.createContext(()=>{});Y.displayName="JVR.DispatchShowTools";function mr(){return y.useReducer(pr,ue)}function ye(){return y.useContext(Y)}var me=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(pe.Provider,{value:e,children:r.jsx(Y.Provider,{value:t,children:n})})};me.displayName="JVR.ShowTools";var fe={},he=y.createContext(fe),fr=(a,e)=>l({},a,e),U=()=>y.useContext(he),X=y.createContext(()=>{});X.displayName="JVR.DispatchExpands";function hr(){return y.useReducer(fr,fe)}function jr(){return y.useContext(X)}var je=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(he.Provider,{value:e,children:r.jsx(X.Provider,{value:t,children:n})})};je.displayName="JVR.Expands";var xe={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Ne=y.createContext(xe),xr=(a,e)=>l({},a,e),b=()=>y.useContext(Ne),ee=y.createContext(()=>{});ee.displayName="JVR.DispatchTypes";function Nr(){return y.useReducer(xr,xe)}function wr(){return y.useContext(ee)}function we(a){var{initial:e,dispatch:t,children:n}=a;return r.jsx(Ne.Provider,{value:e,children:r.jsx(ee.Provider,{value:t,children:n})})}we.displayName="JVR.Types";var Cr=["style"];function Ce(a){var{style:e}=a,t=j(a,Cr),n=l({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},e);return r.jsx("svg",l({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:n},t,{children:r.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Ce.displayName="JVR.TriangleArrow";var ge={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:r.jsx(Ce,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},be=y.createContext(ge),gr=(a,e)=>l({},a,e),V=()=>y.useContext(be),ae=y.createContext(()=>{});ae.displayName="JVR.DispatchSymbols";function br(){return y.useReducer(gr,ge)}function kr(){return y.useContext(ae)}var ke=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(be.Provider,{value:e,children:r.jsx(ae.Provider,{value:t,children:n})})};ke.displayName="JVR.Symbols";var Re={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Se=y.createContext(Re),Rr=(a,e)=>l({},a,e),B=()=>y.useContext(Se),re=y.createContext(()=>{});re.displayName="JVR.DispatchSection";function Sr(){return y.useReducer(Rr,Re)}function Vr(){return y.useContext(re)}var Ve=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(Se.Provider,{value:e,children:r.jsx(re.Provider,{value:t,children:n})})};Ve.displayName="JVR.Section";var Le={objectSortKeys:!1,indentWidth:15},te=y.createContext(Le);te.displayName="JVR.Context";var Te=y.createContext(()=>{});Te.displayName="JVR.DispatchContext";function Lr(a,e){return l({},a,e)}var K=()=>y.useContext(te),Je=a=>{var{children:e,initialState:t,initialTypes:n}=a,[c,o]=y.useReducer(Lr,Object.assign({},Le,t)),[i,s]=mr(),[d,v]=hr(),[u,p]=Nr(),[m,f]=br(),[x,N]=Sr();return y.useEffect(()=>o(l({},t)),[t]),r.jsx(te.Provider,{value:c,children:r.jsx(Te.Provider,{value:o,children:r.jsx(me,{initial:i,dispatch:s,children:r.jsx(je,{initial:d,dispatch:v,children:r.jsx(we,{initial:l({},u,n),dispatch:p,children:r.jsx(ke,{initial:m,dispatch:f,children:r.jsx(Ve,{initial:x,dispatch:N,children:e})})})})})})})};Je.displayName="JVR.Provider";function Tr(a){if(a==null)throw new TypeError("Cannot destructure "+a)}var Jr=["isNumber","value","parentValue","keyName","keys"],Br=["as","render"],Er=["as","render"],Dr=["as","render"],Mr=["as","style","render"],Ir=["as","render"],$r=["as","render"],Ar=["as","render"],Fr=["as","render"],H=a=>{var{Quote:e={}}=V(),{isNumber:t,value:n,parentValue:c,keyName:o,keys:i}=a,s=j(a,Jr);if(t)return null;var{as:d,render:v}=e,u=j(e,Br),p=d||"span",m=l({},s,u),f={value:n,parentValue:c,keyName:o,keys:i||(o?[o]:[])},x=v&&typeof v=="function"&&v(m,f);return x||r.jsx(p,l({},m))};H.displayName="JVR.Quote";var P=a=>{var{ValueQuote:e={}}=V(),t=l({},(Tr(a),a)),{as:n,render:c}=e,o=j(e,Er),i=n||"span",s=l({},t,o),d=c&&typeof c=="function"&&c(s,{});return d||r.jsx(i,l({},s))};P.displayName="JVR.ValueQuote";var Be=a=>{var{value:e,parentValue:t,keyName:n,keys:c}=a,{Colon:o={}}=V(),{as:i,render:s}=o,d=j(o,Dr),v=i||"span",u=s&&typeof s=="function"&&s(d,{value:e,parentValue:t,keyName:n,keys:c||(n?[n]:[])});return u||r.jsx(v,l({},d))};Be.displayName="JVR.Colon";var Ee=a=>{var{Arrow:e={}}=V(),t=U(),{expandKey:n,style:c,value:o,parentValue:i,keyName:s,keys:d}=a,v=!!t[n],{as:u,style:p,render:m}=e,f=j(e,Mr),x=u||"span",N=m&&typeof m=="function",w=l({},f,{"data-expanded":v,style:l({},p,c)}),k={value:o,parentValue:i,keyName:s,keys:d||(s?[s]:[])},C=N&&m(w,k);return C||r.jsx(x,l({},f,{style:l({},p,c)}))};Ee.displayName="JVR.Arrow";var De=a=>{var{isBrackets:e,value:t,parentValue:n,keyName:c,keys:o}=a,{BracketsLeft:i={},BraceLeft:s={}}=V(),d={value:t,parentValue:n,keyName:c,keys:o||(c?[c]:[])};if(e){var{as:v,render:u}=i,p=j(i,Ir),m=v||"span",f=u&&typeof u=="function"&&u(p,d);return f||r.jsx(m,l({},p))}var{as:x,render:N}=s,w=j(s,$r),k=x||"span",C=N&&typeof N=="function"&&N(w,d);return C||r.jsx(k,l({},w))};De.displayName="JVR.BracketsOpen";var ne=a=>{var{isBrackets:e,isVisiable:t,value:n,parentValue:c,keyName:o,keys:i}=a,s={value:n,parentValue:c,keyName:o,keys:i||(o?[o]:[])};if(!t)return null;var{BracketsRight:d={},BraceRight:v={}}=V();if(e){var{as:u,render:p}=d,m=j(d,Ar),f=u||"span",x=p&&typeof p=="function"&&p(m,s);return x||r.jsx(f,l({},m))}var{as:N,render:w}=v,k=j(v,Fr),C=N||"span",S=w&&typeof w=="function"&&w(k,s);return S||r.jsx(C,l({},k))};ne.displayName="JVR.BracketsClose";var Me=a=>{var e,{value:t,expandKey:n,level:c,keys:o=[]}=a,i=U(),s=Array.isArray(t),{collapsed:d,shouldExpandNodeInitially:v}=K(),u=t instanceof Set,p=typeof d=="boolean"?d:typeof d=="number"?c>d:!1,m=(e=i[n])!=null?e:p,f=Object.keys(t).length;if(i[n]===void 0&&v&&v(m,{value:t,keys:o,level:c})||m||f===0)return null;var x={paddingLeft:4};return r.jsx("div",{style:x,children:r.jsx(ne,{isBrackets:s||u,isVisiable:!0})})};Me.displayName="JVR.NestedClose";var _r=["as","render"],Kr=["as","render"],Or=["as","render"],Pr=["as","render"],Ur=["as","render"],Qr=["as","render"],Wr=["as","render"],Zr=["as","render"],zr=["as","render"],Hr=["as","render"],qr=["as","render"],Gr=["as","render"],Yr=["as","render"],q=a=>{if(a===void 0)return"0n";if(typeof a=="string")try{a=BigInt(a)}catch{return"0n"}return a?a.toString()+"n":"0n"},Ie=a=>{var{value:e,keyName:t}=a,{Set:n={},displayDataTypes:c}=b(),o=e instanceof Set;if(!o||!c)return null;var{as:i,render:s}=n,d=j(n,_r),v=s&&typeof s=="function",u=v&&s(d,{type:"type",value:e,keyName:t});if(u)return u;var p=i||"span";return r.jsx(p,l({},d))};Ie.displayName="JVR.SetComp";var $e=a=>{var{value:e,keyName:t}=a,{Map:n={},displayDataTypes:c}=b(),o=e instanceof Map;if(!o||!c)return null;var{as:i,render:s}=n,d=j(n,Kr),v=s&&typeof s=="function",u=v&&s(d,{type:"type",value:e,keyName:t});if(u)return u;var p=i||"span";return r.jsx(p,l({},d))};$e.displayName="JVR.MapComp";var D={opacity:.75,paddingRight:4},Ae=a=>{var{children:e="",keyName:t}=a,{Str:n={},displayDataTypes:c}=b(),{shortenTextAfterLength:o=30}=K(),{as:i,render:s}=n,d=j(n,Or),v=e,[u,p]=y.useState(o&&v.length>o);y.useEffect(()=>p(o&&v.length>o),[o]);var m=i||"span",f=l({},D,n.style||{});o>0&&(d.style=l({},d.style,{cursor:v.length<=o?"initial":"pointer"}),v.length>o&&(d.onClick=()=>{p(!u)}));var x=u?v.slice(0,o)+"...":v,N=s&&typeof s=="function",w=N&&s(l({},d,{style:f}),{type:"type",value:e,keyName:t}),k=N&&s(l({},d,{children:x,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(w||r.jsx(m,l({},d,{style:f}))),k||r.jsxs(y.Fragment,{children:[r.jsx(P,{}),r.jsx(m,l({},d,{className:"w-rjv-value",children:x})),r.jsx(P,{})]})]})};Ae.displayName="JVR.TypeString";var Fe=a=>{var{children:e,keyName:t}=a,{True:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Pr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Fe.displayName="JVR.TypeTrue";var _e=a=>{var{children:e,keyName:t}=a,{False:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Ur),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};_e.displayName="JVR.TypeFalse";var Ke=a=>{var{children:e,keyName:t}=a,{Float:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Qr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Ke.displayName="JVR.TypeFloat";var Oe=a=>{var{children:e,keyName:t}=a,{Int:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Wr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Oe.displayName="JVR.TypeInt";var Pe=a=>{var{children:e,keyName:t}=a,{Bigint:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Zr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:q(e==null?void 0:e.toString())}))]})};Pe.displayName="JVR.TypeFloat";var Ue=a=>{var{children:e,keyName:t}=a,{Url:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,zr),d=o||"span",v=l({},D,n.style),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e==null?void 0:e.href,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsxs("a",l({href:e==null?void 0:e.href,target:"_blank"},s,{className:"w-rjv-value",children:[r.jsx(P,{}),e==null?void 0:e.href,r.jsx(P,{})]}))]})};Ue.displayName="JVR.TypeUrl";var Qe=a=>{var{children:e,keyName:t}=a,{Date:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Hr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=e instanceof Date?e.toLocaleString():e,f=u&&i(l({},s,{children:m,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),f||r.jsx(d,l({},s,{className:"w-rjv-value",children:m}))]})};Qe.displayName="JVR.TypeDate";var We=a=>{var{children:e,keyName:t}=a,{Undefined:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,qr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};We.displayName="JVR.TypeUndefined";var Ze=a=>{var{children:e,keyName:t}=a,{Null:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Gr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};Ze.displayName="JVR.TypeNull";var ze=a=>{var{children:e,keyName:t}=a,{Nan:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Yr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e==null?void 0:e.toString(),className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};ze.displayName="JVR.TypeNan";var Xr=a=>Number(a)===a&&a%1!==0||isNaN(a),He=a=>{var{value:e,keyName:t}=a,n={keyName:t};return e instanceof URL?r.jsx(Ue,l({},n,{children:e})):typeof e=="string"?r.jsx(Ae,l({},n,{children:e})):e===!0?r.jsx(Fe,l({},n,{children:e})):e===!1?r.jsx(_e,l({},n,{children:e})):e===null?r.jsx(Ze,l({},n,{children:e})):e===void 0?r.jsx(We,l({},n,{children:e})):e instanceof Date?r.jsx(Qe,l({},n,{children:e})):typeof e=="number"&&isNaN(e)?r.jsx(ze,l({},n,{children:e})):typeof e=="number"&&Xr(e)?r.jsx(Ke,l({},n,{children:e})):typeof e=="bigint"?r.jsx(Pe,l({},n,{children:e})):typeof e=="number"?r.jsx(Oe,l({},n,{children:e})):null};He.displayName="JVR.Value";function F(a,e,t){var n=kr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}function T(a,e,t){var n=wr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}function O(a,e,t){var n=Vr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}var et=["as","render"],qe=a=>{var{KeyName:e={}}=B();return O(e,a,"KeyName"),null};qe.displayName="JVR.KeyName";var Ge=a=>{var{children:e,value:t,parentValue:n,keyName:c,keys:o}=a,i=typeof e=="number",s={color:i?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:d={}}=B(),{as:v,render:u}=d,p=j(d,et);p.style=l({},p.style,s);var m=v||"span",f=u&&typeof u=="function"&&u(l({},p,{children:e}),{value:t,parentValue:n,keyName:c,keys:o||(c?[c]:[])});return f||r.jsx(m,l({},p,{children:e}))};Ge.displayName="JVR.KeyNameComp";var at=["children","value","parentValue","keyName","keys"],rt=["as","render","children"],Ye=a=>{var{Row:e={}}=B();return O(e,a,"Row"),null};Ye.displayName="JVR.Row";var Xe=a=>{var{children:e,value:t,parentValue:n,keyName:c,keys:o}=a,i=j(a,at),{Row:s={}}=B(),{as:d,render:v}=s,u=j(s,rt),p=d||"div",m=v&&typeof v=="function"&&v(l({},i,u,{children:e}),{value:t,keyName:c,parentValue:n,keys:o});return m||r.jsx(p,l({},i,u,{children:e}))};Xe.displayName="JVR.RowComp";function tt(a){var e=y.useRef();return y.useEffect(()=>{e.current=a}),e.current}function nt(a){var{value:e,highlightUpdates:t,highlightContainer:n}=a,c=tt(e),o=y.useMemo(()=>{if(!t||c===void 0)return!1;if(typeof e!=typeof c)return!0;if(typeof e=="number")return isNaN(e)&&isNaN(c)?!1:e!==c;if(Array.isArray(e)!==Array.isArray(c))return!0;if(typeof e=="object"||typeof e=="function")return!1;if(e!==c)return!0},[t,e]);y.useEffect(()=>{n&&n.current&&o&&"animate"in n.current&&n.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[o,e,n])}var st=["keyName","value","parentValue","expandKey","keys"],lt=["as","render"],se=a=>{var{keyName:e,value:t,parentValue:n,expandKey:c,keys:o}=a,i=j(a,st),{onCopied:s,enableClipboard:d}=K(),v=yr(),u=v[c],[p,m]=y.useState(!1),{Copied:f={}}=B();if(d===!1||!u)return null;var x=_=>{_.stopPropagation();var J="";typeof t=="number"&&t===1/0?J="Infinity":typeof t=="number"&&isNaN(t)?J="NaN":typeof t=="bigint"?J=q(t):t instanceof Date?J=t.toLocaleString():J=JSON.stringify(t,(R,M)=>typeof M=="bigint"?q(M):M,2),s&&s(J,t),m(!0);var h=navigator.clipboard||{writeText(R){return new Promise((M,A)=>{var L=document.createElement("textarea");L.style.position="absolute",L.style.opacity="0",L.style.left="-99999999px",L.value=R,document.body.appendChild(L),L.select(),document.execCommand("copy")?M():A(),L.remove()})}};h.writeText(J).then(()=>{var R=setTimeout(()=>{m(!1),clearTimeout(R)},3e3)}).catch(R=>{})},N={style:{display:"inline-flex"},fill:p?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:x},{render:w}=f,k=j(f,lt),C=l({},k,i,N,{style:l({},k.style,i.style,N.style)}),S=w&&typeof w=="function",E=S&&w(l({},C,{"data-copied":p}),{value:t,keyName:e,keys:o,parentValue:n});return E||(p?r.jsx("svg",l({viewBox:"0 0 32 36"},C,{children:r.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):r.jsx("svg",l({viewBox:"0 0 32 36"},C,{children:r.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};se.displayName="JVR.Copied";function ea(){var a=y.useRef(null);return a.current===null&&(a.current="custom-id-"+Math.random().toString(36).substr(2,9)),a.current}var aa=a=>{var e,{value:t,expandKey:n="",level:c,keys:o=[]}=a,i=U(),{objectSortKeys:s,indentWidth:d,collapsed:v,shouldExpandNodeInitially:u}=K(),p=Array.isArray(t),m=typeof v=="boolean"?v:typeof v=="number"?c>v:!1,f=(e=i[n])!=null?e:m;if(i[n]===void 0&&u&&u(f,{value:t,keys:o,level:c})||f)return null;var x=p?Object.entries(t).map(w=>[Number(w[0]),w[1]]):Object.entries(t);s&&(x=s===!0?x.sort((w,k)=>{var[C]=w,[S]=k;return typeof C=="string"&&typeof S=="string"?C.localeCompare(S):0}):x.sort((w,k)=>{var[C,S]=w,[E,_]=k;return typeof C=="string"&&typeof E=="string"?s(C,E,S,_):0}));var N={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:d,marginLeft:6};return r.jsx("div",{className:"w-rjv-wrap",style:N,children:x.map((w,k)=>{var[C,S]=w;return r.jsx(ra,{parentValue:t,keyName:C,keys:[...o,C],value:S,level:c},k)})})};aa.displayName="JVR.KeyValues";var le=a=>{var{keyName:e,parentValue:t,keys:n,value:c}=a,{highlightUpdates:o}=K(),i=typeof e=="number",s=y.useRef(null);nt({value:c,highlightUpdates:o,highlightContainer:s});var d={keyName:e,value:c,keys:n,parentValue:t};return r.jsxs(y.Fragment,{children:[r.jsxs("span",{ref:s,children:[r.jsx(H,l({isNumber:i,"data-placement":"left"},d)),r.jsx(Ge,l({},d,{children:e})),r.jsx(H,l({isNumber:i,"data-placement":"right"},d))]}),r.jsx(Be,l({},d))]})};le.displayName="JVR.KayName";var ra=a=>{var{keyName:e,value:t,parentValue:n,level:c=0,keys:o=[]}=a,i=ye(),s=ea(),d=Array.isArray(t),v=t instanceof Set,u=t instanceof Map,p=t instanceof Date,m=t instanceof URL,f=t&&typeof t=="object"&&!d&&!v&&!u&&!p&&!m,x=f||d||v||u;if(x){var N=v?Array.from(t):u?Object.fromEntries(t):t;return r.jsx(ie,{keyName:e,value:N,parentValue:n,initialValue:t,keys:o,level:c+1})}var w={onMouseEnter:()=>i({[s]:!0}),onMouseLeave:()=>i({[s]:!1})};return r.jsxs(Xe,l({className:"w-rjv-line",value:t,keyName:e,keys:o,parentValue:n},w,{children:[r.jsx(le,{keyName:e,value:t,keys:o,parentValue:n}),r.jsx(He,{keyName:e,value:t}),r.jsx(se,{keyName:e,value:t,keys:o,parentValue:n,expandKey:s})]}))};ra.displayName="JVR.KeyValuesItem";var it=["value","keyName"],ot=["as","render"],ta=a=>{var{CountInfoExtra:e={}}=B();return O(e,a,"CountInfoExtra"),null};ta.displayName="JVR.CountInfoExtra";var na=a=>{var{value:e={},keyName:t}=a,n=j(a,it),{CountInfoExtra:c={}}=B(),{as:o,render:i}=c,s=j(c,ot);if(!i&&!s.children)return null;var d=o||"span",v=i&&typeof i=="function",u=l({},s,n),p=v&&i(u,{value:e,keyName:t});return p||r.jsx(d,l({},u))};na.displayName="JVR.CountInfoExtraComps";var dt=["value","keyName"],ct=["as","render"],sa=a=>{var{CountInfo:e={}}=B();return O(e,a,"CountInfo"),null};sa.displayName="JVR.CountInfo";var la=a=>{var{value:e={},keyName:t}=a,n=j(a,dt),{displayObjectSize:c}=K(),{CountInfo:o={}}=B();if(!c)return null;var{as:i,render:s}=o,d=j(o,ct),v=i||"span";d.style=l({},d.style,a.style);var u=Object.keys(e).length;d.children||(d.children=u+" item"+(u===1?"":"s"));var p=l({},d,n),m=s&&typeof s=="function",f=m&&s(l({},p,{"data-length":u}),{value:e,keyName:t});return f||r.jsx(v,l({},p))};la.displayName="JVR.CountInfoComp";var vt=["as","render"],ia=a=>{var{Ellipsis:e={}}=B();return O(e,a,"Ellipsis"),null};ia.displayName="JVR.Ellipsis";var oa=a=>{var{isExpanded:e,value:t,keyName:n}=a,{Ellipsis:c={}}=B(),{as:o,render:i}=c,s=j(c,vt),d=o||"span",v=i&&typeof i=="function"&&i(l({},s,{"data-expanded":e}),{value:t,keyName:n});return v||(!e||typeof t=="object"&&Object.keys(t).length==0?null:r.jsx(d,l({},s)))};oa.displayName="JVR.EllipsisComp";var da=a=>{var e,{keyName:t,expandKey:n,keys:c=[],initialValue:o,value:i,parentValue:s,level:d}=a,v=U(),u=jr(),{onExpand:p,collapsed:m,shouldExpandNodeInitially:f}=K(),x=Array.isArray(i),N=i instanceof Set,w=typeof m=="boolean"?m:typeof m=="number"?d>m:!1,k=typeof i=="object",C=(e=v[n])!=null?e:w,S=f&&f(C,{value:i,keys:c,level:d});v[n]===void 0&&S!==void 0&&(C=S);var E=()=>{var L={expand:!C,value:i,keyid:n,keyName:t};p&&p(L),u({[n]:L.expand})},_={display:"inline-flex",alignItems:"center"},J={transform:"rotate("+(C?"-90":"0")+"deg)",transition:"all 0.3s"},h=Object.keys(i).length,R=h!==0&&(x||N||k),M={style:_};R&&(M.onClick=E);var A={keyName:t,value:i,keys:c,parentValue:s};return r.jsxs("span",l({},M,{children:[R&&r.jsx(Ee,l({style:J,expandKey:n},A)),(t||typeof t=="number")&&r.jsx(le,l({},A)),r.jsx(Ie,{value:o,keyName:t}),r.jsx($e,{value:o,keyName:t}),r.jsx(De,l({isBrackets:x||N},A)),r.jsx(oa,{keyName:t,value:i,isExpanded:C}),r.jsx(ne,l({isVisiable:C||!R,isBrackets:x||N},A)),r.jsx(la,{value:i,keyName:t}),r.jsx(na,{value:i,keyName:t}),r.jsx(se,{keyName:t,value:i,expandKey:n,parentValue:s,keys:c})]}))};da.displayName="JVR.NestedOpen";var ut=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],ie=y.forwardRef((a,e)=>{var{className:t="",parentValue:n,level:c=1,value:o,initialValue:i,keys:s,keyName:d}=a,v=j(a,ut),u=ye(),p=ea(),m=[t,"w-rjv-inner"].filter(Boolean).join(" "),f={onMouseEnter:()=>u({[p]:!0}),onMouseLeave:()=>u({[p]:!1})};return r.jsxs("div",l({className:m,ref:e},v,f,{children:[r.jsx(da,{expandKey:p,value:o,level:c,keys:s,parentValue:n,keyName:d,initialValue:i}),r.jsx(aa,{expandKey:p,value:o,level:c,keys:s,parentValue:n,keyName:d}),r.jsx(Me,{expandKey:p,value:o,level:c,keys:s})]}))});ie.displayName="JVR.Container";var ca=a=>{var{BraceLeft:e={}}=V();return F(e,a,"BraceLeft"),null};ca.displayName="JVR.BraceLeft";var va=a=>{var{BraceRight:e={}}=V();return F(e,a,"BraceRight"),null};va.displayName="JVR.BraceRight";var ua=a=>{var{BracketsLeft:e={}}=V();return F(e,a,"BracketsLeft"),null};ua.displayName="JVR.BracketsLeft";var pa=a=>{var{BracketsRight:e={}}=V();return F(e,a,"BracketsRight"),null};pa.displayName="JVR.BracketsRight";var ya=a=>{var{Arrow:e={}}=V();return F(e,a,"Arrow"),null};ya.displayName="JVR.Arrow";var ma=a=>{var{Colon:e={}}=V();return F(e,a,"Colon"),null};ma.displayName="JVR.Colon";var fa=a=>{var{Quote:e={}}=V();return F(e,a,"Quote"),null};fa.displayName="JVR.Quote";var ha=a=>{var{ValueQuote:e={}}=V();return F(e,a,"ValueQuote"),null};ha.displayName="JVR.ValueQuote";var ja=a=>{var{Bigint:e={}}=b();return T(e,a,"Bigint"),null};ja.displayName="JVR.Bigint";var xa=a=>{var{Date:e={}}=b();return T(e,a,"Date"),null};xa.displayName="JVR.Date";var Na=a=>{var{False:e={}}=b();return T(e,a,"False"),null};Na.displayName="JVR.False";var wa=a=>{var{Float:e={}}=b();return T(e,a,"Float"),null};wa.displayName="JVR.Float";var Ca=a=>{var{Int:e={}}=b();return T(e,a,"Int"),null};Ca.displayName="JVR.Int";var ga=a=>{var{Map:e={}}=b();return T(e,a,"Map"),null};ga.displayName="JVR.Map";var ba=a=>{var{Nan:e={}}=b();return T(e,a,"Nan"),null};ba.displayName="JVR.Nan";var ka=a=>{var{Null:e={}}=b();return T(e,a,"Null"),null};ka.displayName="JVR.Null";var Ra=a=>{var{Set:e={}}=b();return T(e,a,"Set"),null};Ra.displayName="JVR.Set";var Sa=a=>{var{Str:e={}}=b();return T(e,a,"Str"),null};Sa.displayName="JVR.StringText";var Va=a=>{var{True:e={}}=b();return T(e,a,"True"),null};Va.displayName="JVR.True";var La=a=>{var{Undefined:e={}}=b();return T(e,a,"Undefined"),null};La.displayName="JVR.Undefined";var Ta=a=>{var{Url:e={}}=b();return T(e,a,"Url"),null};Ta.displayName="JVR.Url";var Ja=a=>{var{Copied:e={}}=B();return O(e,a,"Copied"),null};Ja.displayName="JVR.Copied";var pt=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],g=y.forwardRef((a,e)=>{var{className:t="",style:n,value:c,children:o,collapsed:i,shouldExpandNodeInitially:s,indentWidth:d=15,displayObjectSize:v=!0,shortenTextAfterLength:u=30,highlightUpdates:p=!0,enableClipboard:m=!0,displayDataTypes:f=!0,objectSortKeys:x=!1,onExpand:N,onCopied:w}=a,k=j(a,pt),C=l({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},n),S=["w-json-view-container","w-rjv",t].filter(Boolean).join(" ");return r.jsxs(Je,{initialState:{value:c,objectSortKeys:x,indentWidth:d,shouldExpandNodeInitially:s,displayObjectSize:v,collapsed:i,enableClipboard:m,shortenTextAfterLength:u,highlightUpdates:p,onCopied:w,onExpand:N},initialTypes:{displayDataTypes:f},children:[r.jsx(ie,l({value:c},k,{ref:e,className:S,style:C})),o]})});g.Bigint=ja;g.Date=xa;g.False=Na;g.Float=wa;g.Int=Ca;g.Map=ga;g.Nan=ba;g.Null=ka;g.Set=Ra;g.String=Sa;g.True=Va;g.Undefined=La;g.Url=Ta;g.ValueQuote=ha;g.Arrow=ya;g.Colon=ma;g.Quote=fa;g.Ellipsis=ia;g.BraceLeft=ca;g.BraceRight=va;g.BracketsLeft=ua;g.BracketsRight=pa;g.Copied=Ja;g.CountInfo=sa;g.CountInfoExtra=ta;g.KeyName=qe;g.Row=Ye;g.displayName="JVR.JsonView";var yt={"--w-rjv-font-family":"monospace","--w-rjv-color":"#79c0ff","--w-rjv-key-string":"#79c0ff","--w-rjv-background-color":"#0d1117","--w-rjv-line-color":"#94949480","--w-rjv-arrow-color":"#ccc","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#7b7b7b","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#79c0ff","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#8b949e","--w-rjv-colon-color":"#c9d1d9","--w-rjv-brackets-color":"#8b949e","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#a5d6ff","--w-rjv-type-int-color":"#79c0ff","--w-rjv-type-float-color":"#79c0ff","--w-rjv-type-bigint-color":"#79c0ff","--w-rjv-type-boolean-color":"#ffab70","--w-rjv-type-date-color":"#79c0ff","--w-rjv-type-url-color":"#4facff","--w-rjv-type-null-color":"#ff7b72","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#79c0ff"},mt={"--w-rjv-font-family":"monospace","--w-rjv-color":"#6f42c1","--w-rjv-key-string":"#6f42c1","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ddd","--w-rjv-arrow-color":"#6e7781","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#6a737d","--w-rjv-colon-color":"#24292e","--w-rjv-brackets-color":"#6a737d","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#032f62","--w-rjv-type-int-color":"#005cc5","--w-rjv-type-float-color":"#005cc5","--w-rjv-type-bigint-color":"#005cc5","--w-rjv-type-boolean-color":"#d73a49","--w-rjv-type-date-color":"#005cc5","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d73a49","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#005cc5"};const ft=({...a})=>{const e=or(),{palette:{primary:{main:t}}}=Ka(),n=y.useMemo(()=>({...e==="light"?mt:yt,"--w-rjv-background-color":"transparent","--w-rjv-ellipsis-color":t}),[e,t]);return r.jsx(g,{...a,style:n,displayObjectSize:!1,displayDataTypes:!1})};function ve(a,e){y.useEffect(()=>{const t=new URLSearchParams(window.location.search),n=t.get(a)??"";if(e===n)return;e?t.set(a,e):t.delete(a);const c=[window.location.pathname,t.toString()].filter(Boolean).join("?");window.history.replaceState(null,"",c)},[a,e])}const xt=()=>!0,Nt={crumb:(a,{pathname:e})=>({to:e,linkText:e.split("/").reverse()[0]==="reports"?"Reports":"Test Suites"})},Ba=a=>Object.values(a).map(e=>Array.isArray(e)?e.join(" "):typeof e=="object"?Ba(e):e).join(" "),wt=({type:a,slots:e})=>{const{projectId:t}=Oa(),n=Pa(),c=Ua(),o=Qa(),s=Wa().state!=="idle";Za(t);const[d]=za(),[v,u]=y.useState("desc"),[p,m]=Ha("show-full-json-metadata",!1),[f,x]=y.useState(()=>{var h;return((h=d.get("tags"))==null?void 0:h.split(","))||[]}),[N,w]=y.useState(()=>d.get("metadata-query")||"");ve("tags",f.join(",")),ve("metadata-query",String(N));const k=c.find(({handle:h})=>{var R;return((R=h==null?void 0:h.hide)==null?void 0:R.snapshotList)===!0}),C=y.useMemo(()=>Array.from(new Set(n.flatMap(({tags:h})=>h))),[n]),S=y.useMemo(()=>n.filter(({tags:h})=>f.every(R=>h.includes(R))),[n,f]),E=y.useMemo(()=>S.filter(({metadata:h})=>N===""?!0:Ba(h).includes(N)),[S,N]),_=y.useMemo(()=>v===void 0?E:E.sort((h,R)=>{const[M,A]=[Date.parse(h.timestamp),Date.parse(R.timestamp)],L=M-A;return v==="desc"?-L:v==="asc"?L:0}),[E,v]);if(k)return r.jsx(qa,{});const J=r.jsx($,{sx:{padding:2},children:r.jsxs(Z,{container:!0,gap:2,alignItems:"flex-end",justifyContent:"space-around",children:[r.jsx(Z,{item:!0,xs:12,md:4,children:r.jsx(sr,{multiple:!0,limitTags:2,value:f,onChange:(h,R)=>x(R),options:C,renderInput:h=>r.jsx(ce,{...h,variant:"standard",label:"Filter by Tags"})})}),r.jsx(Z,{item:!0,xs:12,md:7,children:r.jsxs($,{display:"flex",alignItems:"flex-end",gap:2,children:[r.jsx(ce,{fullWidth:!0,value:N,onChange:h=>w(h.target.value),variant:"standard",label:"Search in Metadata"}),r.jsx($,{minWidth:220,display:"flex",justifyContent:"center",children:r.jsx(lr,{control:r.jsx(ir,{checked:p,onChange:h=>m(h.target.checked)}),label:"Hide Metadata"})}),r.jsx($,{display:"flex",justifyContent:"flex-end",children:r.jsxs(z,{sx:{minWidth:160},variant:"outlined",onClick:()=>o({action:"reload-snapshots"},{method:"post",replace:!0,encType:"application/json"}),color:"primary",disabled:s,children:["refresh ",a]})})]})})]})});return n.length===0?r.jsxs(r.Fragment,{children:[J,r.jsxs(de,{my:3,variant:"h4",align:"center",children:["You don't have any ",a," yet."]})]}):r.jsxs(r.Fragment,{children:[J,r.jsxs(Ga,{children:[r.jsxs(Ya,{children:[r.jsxs(W,{children:[r.jsx(I,{children:a==="reports"?"Report ID":a==="test suites"?"Test Suite ID":"indefined"}),r.jsx(I,{children:"Tags"}),r.jsx(I,{children:"Metadata"}),r.jsx(I,{children:r.jsx(Xa,{active:!!v,direction:v,onClick:()=>{u(h=>{if(h===void 0)return"desc";if(h==="desc")return"asc"})},children:"Timestamp"})}),r.jsx(I,{align:"center",children:"Actions"})]}),r.jsx(W,{})]}),r.jsx(er,{children:_.map(h=>r.jsxs(W,{children:[r.jsx(I,{children:r.jsx(ur,{showText:h.id,copyText:h.id})}),r.jsx(I,{children:r.jsx($,{maxWidth:250,children:r.jsx(vr,{onClick:R=>{f.includes(R)||x([...f,R])},tags:h.tags})})}),r.jsx(I,{children:r.jsx(ft,{collapsed:p,value:h.metadata,enableClipboard:!1})}),r.jsx(I,{children:r.jsx(de,{variant:"body2",children:ar(h.timestamp).locale("en-gb").format("llll")})}),r.jsx(I,{children:r.jsxs($,{display:"flex",justifyContent:"center",gap:1,children:[e!=null&&e.ViewButton?r.jsx(e.ViewButton,{snapshotId:h.id,projectId:t}):r.jsx(z,{disabled:s,component:rr,to:`${h.id}`,children:"View"}),r.jsx(cr,{variant:(e==null?void 0:e.donwloadButtonVariant)||"outlined",disabled:s,downloadLink:`/api/projects/${t}/${h.id}/download`}),(e==null?void 0:e.additionalSnapshotActions)&&r.jsx(e.additionalSnapshotActions,{snapshotId:h.id,projectId:t}),r.jsx($,{children:r.jsx(tr,{title:"delete snapshot",placement:"top",children:r.jsx(G,{onClick:()=>{confirm("Are you sure?")===!0&&o({action:"delete-snapshot",snapshotId:h.id},{method:"post",replace:!0,encType:"application/json"})},color:"primary",disabled:s,children:r.jsx(nr,{})})})})]})})]},`r-${h.id}`))})]})]})};export{wt as SnapshotsListTemplate,Nt as handle,xt as shouldRevalidate}; diff --git a/src/evidently/ui/assets/static/js/index-BdVpjpKq.js b/src/evidently/ui/assets/static/js/index-BdVpjpKq.js deleted file mode 100644 index 0dbf680942..0000000000 --- a/src/evidently/ui/assets/static/js/index-BdVpjpKq.js +++ /dev/null @@ -1 +0,0 @@ -import{O as c,a3 as d,j as e,B as x,G as a,T as p,I as j,a6 as m,a7 as u,Q as h,U as b,a8 as T,a5 as f}from"./vendor-DoRIiF9A.js";const C={crumb:(s,{pathname:n})=>({to:n,linkText:(s==null?void 0:s.name)||"undefined"})},o=({tabsConfig:s=[]})=>{const n=c(),i=d(),r=s.findIndex(t=>n.find(({id:l})=>l===t.id));return e.jsxs(x,{mt:2,children:[e.jsx(a,{container:!0,spacing:2,direction:"row",justifyContent:"flex-start",alignItems:"flex-end",children:e.jsx(a,{item:!0,xs:12,children:e.jsxs(p,{sx:{color:"#aaa"},variant:"body2",children:[`project id: ${i.id}`,e.jsx(j,{size:"small",style:{marginLeft:10},onClick:()=>{navigator.clipboard.writeText(i.id)},children:e.jsx(m,{fontSize:"small"})})]})})}),s.length>0&&e.jsx(u,{value:r,"aria-label":"simple tabs example",indicatorColor:"primary",children:s.map(t=>e.jsx(h,{component:b,to:t.link,children:e.jsx(T,{label:t.label||t.id,value:t.id})},t.id))}),e.jsx(f,{})]})},k=[{id:"dashboard",link:".",label:"Dashboard"},{id:"reports",link:"reports",label:"Reports"},{id:"test_suites",link:"test-suites",label:"Test suites"}],I=()=>e.jsx(o,{tabsConfig:k}),g=()=>e.jsx(o,{});export{I as Component,o as ProjectTemplate,g as ProjectWithoutTabs,C as handle}; diff --git a/src/evidently/ui/assets/static/js/index-BqCr-mCb.js b/src/evidently/ui/assets/static/js/index-BqCr-mCb.js deleted file mode 100644 index dbb9d24105..0000000000 --- a/src/evidently/ui/assets/static/js/index-BqCr-mCb.js +++ /dev/null @@ -1,3 +0,0 @@ -const __vite__fileDeps=["static/js/index-CP21mErs.js","static/js/vendor-DoRIiF9A.js","static/js/index-DQXtchPZ.js","static/js/DashboardViewParams-mNv_VOpq.js","static/js/DashboardWidgets-c1VLgBQN.js","static/js/DashboardContent-CtUoNzcD.js","static/js/index-Cfoxrigu.js","static/js/index-8XPeT5JI.js","static/js/index-BdVpjpKq.js","static/js/index-CMKyMjTx.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -var ee=Object.defineProperty;var te=(e,t,s)=>t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var I=(e,t,s)=>(te(e,typeof t!="symbol"?t+"":t,s),s);import{c as G,g as R,u as re,a as se,r as O,j as r,A as oe,b as ne,d as F,i as ie,T as b,e as ae,R as M,S as ce,B as L,I as he,C as le,f as de,h as ue,k as pe,l as fe,m as C,n as me,o as je,L as xe,p as Le,G as T,F as ye,q as _e,s as ge,t as ve,v as Ee,M as p,D as V,w as Ce,x as Se,y as A,z as u,E as be,H as Ie,J as Te,K as ke,N as we}from"./vendor-DoRIiF9A.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"]'))o(i);new MutationObserver(i=>{for(const n of i)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function s(i){const n={};return i.integrity&&(n.integrity=i.integrity),i.referrerPolicy&&(n.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?n.credentials="include":i.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function o(i){if(i.ep)return;i.ep=!0;const n=s(i);fetch(i.href,n)}})();const{transitions:S}=G(),k="#ed0500",Pe=G({cssVariables:{colorSchemeSelector:"class"},colorSchemes:{light:{palette:{text:{primary:"#09090b"},primary:{main:"#09090b",light:R[200]},secondary:{main:k,dark:"#c10400",light:R[200]}}},dark:{palette:{text:{primary:"#fafafa"},primary:{main:"#fafafa",light:R[900]},secondary:{main:k}}}},shape:{borderRadius:5},components:{MuiInputBase:{styleOverrides:{input:{"&:-webkit-autofill":{transitionDelay:"9999s",transitionProperty:"background-color, box-shadow, color"}}}},MuiLink:{styleOverrides:{root:{transition:S.create("color",{duration:S.duration.enteringScreen}),"&:hover":{color:k}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:k}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px"}}},MuiIconButton:{styleOverrides:{root:{transition:S.create("color",{duration:S.duration.enteringScreen}),color:"inherit","&:hover":{color:k}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:S.create("color",{duration:S.duration.enteringScreen}),color:"inherit","&.Mui-disabled":{border:"unset"}}}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{defaultProps:{sx:{border:"1px solid",borderColor:e=>e.palette.divider}},styleOverrides:{root:{boxShadow:"unset"}}}},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"}}}),W=()=>{const{mode:e}=re(),t=se("(prefers-color-scheme: dark)");return!e||e==="system"?t?"dark":"light":e},gt=()=>{const e=W();return O.useMemo(()=>e==="dark"?{tooltip:{container:{background:"#000",color:"#fff"}}}:void 0,[e])},N=({forseFilled:e,sx:t,...s})=>{const o=W();return r.jsx(oe,{sx:[i=>i.applyStyles("light",{border:"none"}),...Array.isArray(t)?t:[t]],variant:o==="dark"?e?"filled":"outlined":void 0,...s})},g=()=>{var t;const e=ne();return r.jsxs(N,{severity:"error",children:[r.jsx(F,{children:"Something went wrong"}),ie(e)&&r.jsxs(r.Fragment,{children:[r.jsx(b,{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(b,{children:e.data})]}),typeof e=="string"&&r.jsx(b,{fontWeight:"bold",children:e})]})},J=({data:e})=>{const[t,s]=M.useState(!1),o=M.useRef(null);return O.useEffect(()=>{e!=null&&e.error&&(o.current=e.error,s(!0))},[e]),r.jsx(ce,{open:t,onClose:(i,n)=>{n!=="clickaway"&&s(!1)},children:r.jsx(L,{children:r.jsx(N,{severity:"error",forseFilled:!0,children:r.jsxs(L,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:2,children:[r.jsxs(L,{children:[r.jsx(F,{children:"Something went wrong"}),o.current&&r.jsx(b,{fontWeight:"bold",children:[typeof o.current.status_code=="number"&&`Status: ${o.current.status_code}`,typeof o.current.detail=="string"&&o.current.detail].filter(Boolean).join(", ")})]}),r.jsx(L,{children:r.jsx(he,{size:"small","aria-label":"close",color:"inherit",onClick:()=>{s(!1)},children:r.jsx(le,{})})})]})})})})},B=()=>{const e=ae();return r.jsx(J,{data:e})},Oe=()=>{var s;const t=(s=de().find(o=>{var i;return!!((i=o.data)!=null&&i.error)}))==null?void 0:s.data;return r.jsx(J,{data:t})},Ae={path:"*",Component:()=>r.jsx(L,{display:"flex",justifyContent:"center",children:r.jsx(b,{variant:"h4",children:"Page Not Found"})})},De="modulepreload",Re=function(e){return"/"+e},z={},_=function(t,s,o){let i=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const n=document.querySelector("meta[property=csp-nonce]"),a=(n==null?void 0:n.nonce)||(n==null?void 0:n.getAttribute("nonce"));i=Promise.all(s.map(c=>{if(c=Re(c),c in z)return;z[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":De,f||(l.as="script",l.crossOrigin=""),l.href=c,a&&l.setAttribute("nonce",a),document.head.appendChild(l),f)return new Promise((j,D)=>{l.addEventListener("load",j),l.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${c}`)))})}))}return i.then(()=>t()).catch(n=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=n,window.dispatchEvent(a),!a.defaultPrevented)throw n})},Me=()=>r.jsx(ue,{fontSize:"large",sx:{width:180},children:r.jsxs("svg",{"aria-hidden":"true",width:"734",height:"219",viewBox:"0 70 734 90",version:"1.1",children:[r.jsx("path",{d:"M 180 113 L 180 141 201.500 141 L 223 141 223 136.500 L 223 132 207 132 L 191 132 191 124.500 L 191 117 204.500 117 L 218 117 218 112.500 L 218 108 204.500 108 L 191 108 191 101 L 191 94 206 94 L 221 94 221 89.500 L 221 85 200.500 85 L 180 85 180 113 M 221.989 87.250 C 221.983 88.487, 227.010 101.088, 233.160 115.250 L 244.342 141 249.931 141 L 255.521 141 266.865 114.959 C 273.104 100.636, 278.439 88.036, 278.721 86.959 C 279.183 85.191, 278.709 85.002, 273.867 85.024 L 268.500 85.049 259.393 106.080 L 250.285 127.111 243.204 110.806 C 239.309 101.838, 235.210 92.362, 234.096 89.750 L 232.071 85 227.036 85 C 222.483 85, 221.999 85.216, 221.989 87.250 M 280 113 L 280 141 285.500 141 L 291 141 291 113 L 291 85 285.500 85 L 280 85 280 113 M 301 113 L 301 141 316.818 141 C 327.946 141, 334.130 140.557, 337.672 139.505 C 340.601 138.635, 344.617 136.329, 347.270 133.993 C 349.779 131.785, 352.871 127.845, 354.141 125.239 C 355.926 121.575, 356.450 118.799, 356.450 113 C 356.450 107.201, 355.926 104.425, 354.141 100.761 C 352.871 98.155, 349.779 94.215, 347.270 92.007 C 344.617 89.671, 340.601 87.365, 337.672 86.495 C 334.130 85.443, 327.946 85, 316.818 85 L 301 85 301 113 M 362 113 L 362 141 383.500 141 L 405 141 405 136.500 L 405 132 389 132 L 373 132 373 124.500 L 373 117 386.500 117 L 400 117 400 112.500 L 400 108 386.500 108 L 373 108 373 101 L 373 94 388.500 94 L 404 94 404 89.500 L 404 85 383 85 L 362 85 362 113 M 411 113 L 411 141 416.500 141 L 422 141 422 122.426 L 422 103.851 437.126 122.426 L 452.253 141 457.126 141 L 462 141 462 113 L 462 85 456.522 85 L 451.044 85 450.772 103.414 L 450.500 121.828 435.550 103.414 L 420.600 85 415.800 85 L 411 85 411 113 M 464 89.500 L 464 94 473.500 94 L 483 94 483 117.500 L 483 141 488.500 141 L 494 141 494 117.500 L 494 94 503 94 L 512 94 512 89.500 L 512 85 488 85 L 464 85 464 89.500 M 514 113 L 514 141 534.500 141 L 555 141 555 136.500 L 555 132 540.500 132 L 526 132 526 108.500 L 526 85 520 85 L 514 85 514 113 M 544 85.624 C 544 85.967, 548.725 94.001, 554.500 103.477 L 565 120.707 565 130.853 L 565 141 571 141 L 577 141 577 130.825 L 577 120.649 587.500 103.291 C 593.275 93.743, 598 85.722, 598 85.466 C 598 85.210, 595.577 85, 592.615 85 L 587.230 85 579.505 97.991 C 575.257 105.136, 571.435 110.769, 571.012 110.507 C 570.589 110.246, 566.926 104.410, 562.872 97.538 L 555.500 85.043 549.750 85.021 C 546.587 85.010, 544 85.281, 544 85.624 M 312 113 L 312 132 320.250 131.994 C 324.788 131.991, 330.174 131.524, 332.219 130.956 C 334.264 130.388, 337.363 128.724, 339.105 127.258 C 340.847 125.793, 342.886 123.124, 343.636 121.329 C 344.386 119.533, 345 115.785, 345 113 C 345 110.215, 344.386 106.467, 343.636 104.671 C 342.886 102.876, 340.847 100.207, 339.105 98.742 C 337.363 97.276, 334.264 95.612, 332.219 95.044 C 330.174 94.476, 324.788 94.009, 320.250 94.006 L 312 94 312 113",fill:"currentColor",fillRule:"evenodd"}),r.jsx("path",{d:"M 121 112 L 121 169 133.500 169 L 146 169 146 112 L 146 55 133.500 55 L 121 55 121 112 M 77 126 L 77 169 90 169 L 103 169 103 126 L 103 83 90 83 L 77 83 77 126 M 633.540 88.199 C 632.771 90.015, 627.159 102.517, 621.070 115.982 C 614.982 129.447, 610 140.832, 610 141.282 C 610 141.732, 612.528 141.965, 615.617 141.800 L 621.235 141.500 623.794 135.250 L 626.353 129 640.218 129 L 654.084 129 657 135.500 L 659.916 142 665.526 142 C 670.413 142, 671.063 141.775, 670.577 140.250 C 670.271 139.287, 664.639 126.575, 658.064 112 L 646.108 85.500 640.524 85.199 C 635.051 84.904, 634.913 84.964, 633.540 88.199 M 673 113.500 L 673 142 678.500 142 L 684 142 684 113.500 L 684 85 678.500 85 L 673 85 673 113.500 M 635.630 107.723 C 633.074 113.650, 630.986 118.838, 630.991 119.250 C 630.996 119.662, 635.275 120, 640.500 120 C 645.725 120, 650 119.819, 650 119.598 C 650 119.377, 647.923 114.315, 645.385 108.348 C 642.847 102.382, 640.659 97.375, 640.524 97.223 C 640.389 97.070, 638.187 101.795, 635.630 107.723 M 34 140.500 L 34 169 47 169 L 60 169 60 140.500 L 60 112 47 112 L 34 112 34 140.500",fill:"#ed0500",fillRule:"evenodd"})]})});function d(e){return e!=null&&e.notThrowExc?Ne:Fe}const Fe=e=>{const{data:t,error:s,response:o}=e;if(s)throw pe(s,{status:o.status});return t},Ne=e=>{const{data:t,error:s,response:o}=e;return s?{error:{...s,status_code:o.status}}:t},Be=({api:e})=>({loader:()=>e.GET("/api/version").then(d())}),$e=fe,v=$e({baseUrl:"/"}),{loader:Ve}=Be({api:v}),ze={path:"/",lazy:async()=>{const{HomeComponentTemplate:e,...t}=await _(()=>import("./index-CP21mErs.js"),__vite__mapDeps([0,1]));return{Component:()=>r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx(e,{LogoSvg:Me})]}),...t}},loader:Ve,ErrorBoundary:g},q=e=>{if(e.id)return{...e,id:e.id};throw`"id" is missing in object: ${JSON.stringify(e)}`},Y=e=>{if(e.headers.get("Content-type")!=="application/json")throw new Response("Unsupported Media Type",{status:415})},He=({api:e})=>({loader:({params:t})=>{const{projectId:s}=t;return C(s),e.GET("/api/projects/{project_id}/info",{params:{path:{project_id:s}}}).then(d()).then(q)}});function H(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 y={FROM:"date_from",TO:"date_to"},Ue=e=>{const t=e.get(y.FROM),s=e.get(y.TO);return{date_from:t,date_to:s}},Ge=({dataRanges:e})=>{const[t,s]=Se(),{date_from:o,date_to:i}=Ue(t),n=A(o||e.minDate),a=A(i||e.maxDate);return{isCorrectTimeInterval:n.isValid()&&a.isValid()&&(n.isSame(a)||n.isBefore(a)),date_from:n,date_to:a,setSearchParams:s}},vt=({dataRanges:e,isDashboardHideDates:t,setIsDashboardHideDates:s,isShowDateFilter:o})=>{const i=me(),{isCorrectTimeInterval:n,date_from:a,date_to:c,setSearchParams:f}=Ge({dataRanges:e}),[h,l]=O.useState({date_from:a,date_to:c}),j=je(h,300),D=n?"":"incorrect time interval";return O.useEffect(()=>{var w,P;if(i)return;const m=(w=j==null?void 0:j.date_to)==null?void 0:w.toDate(),x=(P=j==null?void 0:j.date_from)==null?void 0:P.toDate();f(E=>(E.delete(y.FROM),E.delete(y.TO),x&&E.append(y.FROM,H(x)),m&&E.append(y.TO,H(m)),E),{preventScrollReset:!0,replace:!0})},[j]),r.jsx(xe,{dateAdapter:Le,adapterLocale:"en-gb",children:r.jsxs(T,{container:!0,padding:1,zIndex:1,gap:2,justifyContent:"flex-end",alignItems:"flex-end",children:[r.jsx(T,{item:!0,children:r.jsx(L,{minWidth:180,display:"flex",justifyContent:"center",children:r.jsx(ye,{control:r.jsx(_e,{checked:t,onChange:m=>s(m.target.checked)}),label:"Show in order"})})}),o&&r.jsxs(r.Fragment,{children:[r.jsx(T,{item:!0,xs:12,md:2,children:r.jsxs(ge,{fullWidth:!0,children:[r.jsx(ve,{children:"Period"}),r.jsxs(Ee,{variant:"standard",defaultValue:"",onChange:m=>{const[x,w]=m.target.value.split(",");if(x===""){l({date_from:null,date_to:null});return}const[P,E]=[Number(x),w],$=e.maxDate.subtract(P,E);l({date_from:$.isBefore(e.minDate)?e.minDate:$,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(T,{item:!0,children:r.jsxs(L,{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(L,{height:1,display:"flex",alignItems:"center",children:r.jsx(b,{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(T,{item:!0,xs:12,children:r.jsx(Ce,{unmountOnExit:!0,in:!n,children:r.jsxs(N,{severity:"error",children:[r.jsx(F,{children:"Error"}),D]})})})]})]})})};class We{constructor(){I(this,"at",0);I(this,"ch","");I(this,"text","");I(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,o="",i;if(this.ch==='"')for(;this.next();){if(this.ch==='"')return this.next(),o;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;o+=String.fromCharCode(i)}else if(this.escapee[this.ch])o+=this.escapee[this.ch];else break;else o+=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 o;return this.text=t,this.at=0,this.ch=" ",o=this.value(),this.white(),this.ch&&this.error("Syntax error"),s!==void 0?function i(n,a){var c,f,h=n[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(n,a,h)}({"":o},""):o}}const Q=e=>new We().parse(e),Je=({api:e})=>({loader:({params:t,request:s})=>{C(t.projectId);const{searchParams:o}=new URL(s.url);let i=o.get(y.FROM),n=o.get(y.TO);return i&&!A(i).isValid()&&(i=null),n&&!A(n).isValid()&&(n=null),e.GET("/api/projects/{project_id}/dashboard",{params:{path:{project_id:t.projectId},query:{timestamp_start:i,timestamp_end:n}},parseAs:"text"}).then(d()).then(Q)}}),{loader:qe}=Je({api:v}),Ye={index:!0,id:"dashboard",lazy:async()=>{const[{DashboardComponentTemplate:e},{DashboardWidgets:t}]=await Promise.all([_(()=>import("./index-DQXtchPZ.js"),__vite__mapDeps([2,1,3])),_(()=>import("./DashboardWidgets-c1VLgBQN.js"),__vite__mapDeps([4,1,5,3]))]);return{Component:()=>r.jsx(e,{Dashboard:({data:{widgets:s}})=>r.jsx(t,{widgets:s})})}},loader:qe,ErrorBoundary:g},K={RELOAD_SNAPSHOTS:"reload-snapshots",DELETE_SNAPSHOT:"delete-snapshot"},Qe=u.object({action:u.literal(K.RELOAD_SNAPSHOTS)}),Ke=u.object({action:u.literal(K.DELETE_SNAPSHOT),snapshotId:u.string().uuid()}),X=e=>async({request:t,params:s})=>{C(s.projectId),Y(t);const o=await t.json();if(Qe.safeParse(o).success)return e.GET("/api/projects/{project_id}/reload",{params:{path:{project_id:s.projectId}}}).then(d({notThrowExc:!0}));const n=Ke.safeParse(o);return n.success?e.DELETE("/api/projects/{project_id}/{snapshot_id}",{params:{path:{project_id:s.projectId,snapshot_id:n.data.snapshotId}}}).then(d({notThrowExc:!0})):{error:{status_code:!1,detail:"Unknown action"}}},Xe=({api:e})=>({loader:({params:t})=>(C(t.projectId),t.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/reports",{params:{path:{project_id:t.projectId}}}).then(d())),action:X(e)}),Ze=({api:e})=>({loader:({params:t})=>(C(t.projectId),t.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/test_suites",{params:{path:{project_id:t.projectId}}}).then(d())),action:X(e)}),et=({api:e})=>({loader:({params:t})=>{const{projectId:s,snapshotId:o}=t;return C(s),C(o),e.GET("/api/projects/{project_id}/{snapshot_id}/data",{params:{path:{project_id:s,snapshot_id:o}},parseAs:"text"}).then(d()).then(Q)}}),{loader:tt}=et({api:v}),Z={path:":snapshotId",lazy:async()=>{const{SnapshotTemplate:e,...t}=await _(()=>import("./index-Cfoxrigu.js"),__vite__mapDeps([6,1,5,3]));return{Component:()=>r.jsx(e,{api:v}),...t}},loader:tt,ErrorBoundary:g},{loader:rt,action:st}=Xe({api:v}),ot={id:"reports",path:"reports",lazy:async()=>{const{SnapshotsListTemplate:e,...t}=await _(()=>import("./index-8XPeT5JI.js"),__vite__mapDeps([7,1]));return{...t,Component:()=>r.jsxs(r.Fragment,{children:[r.jsx(B,{}),r.jsx(e,{type:"reports"})]})}},loader:rt,action:st,ErrorBoundary:g,children:[Z]},{loader:nt,action:it}=Ze({api:v}),at={id:"test_suites",path:"test-suites",lazy:async()=>{const{SnapshotsListTemplate:e,...t}=await _(()=>import("./index-8XPeT5JI.js"),__vite__mapDeps([7,1]));return{...t,Component:()=>r.jsxs(r.Fragment,{children:[r.jsx(B,{}),r.jsx(e,{type:"test suites"})]})}},loader:nt,action:it,ErrorBoundary:g,children:[Z]},{loader:ct}=He({api:v}),ht={path:"projects/:projectId",lazy:()=>_(()=>import("./index-BdVpjpKq.js"),__vite__mapDeps([8,1])),loader:ct,ErrorBoundary:g,children:[Ye,ot,at]},lt=u.object({action:u.literal("edit-project")}),dt=u.object({action:u.literal("create-new-project")}),ut=u.object({action:u.literal("delete-project"),projectId:u.string().uuid()}),pt=({api:e})=>({loader:()=>e.GET("/api/projects").then(d()).then(t=>t.map(q)),action:async({request:t})=>{Y(t);const s=await t.json();if(dt.safeParse(s).success)return e.POST("/api/projects",{body:s}).then(d({notThrowExc:!0}));const o=ut.safeParse(s);if(o.success)return e.DELETE("/api/projects/{project_id}",{params:{path:{project_id:o.data.projectId}}}).then(d({notThrowExc:!0}));if(lt.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:ft,action:mt}=pt({api:v}),jt={index:!0,lazy:()=>_(()=>import("./index-CMKyMjTx.js"),__vite__mapDeps([9,1])).then(e=>({...e,Component:()=>r.jsxs(r.Fragment,{children:[r.jsx(B,{}),r.jsx(e.Component,{})]})})),loader:ft,action:mt,ErrorBoundary:g},xt={...ze,children:[jt,ht,Ae],ErrorBoundary:g},Lt=be([xt]),U=document.getElementById("root");U&&Ie.createRoot(U).render(r.jsx(M.StrictMode,{children:r.jsxs(Te,{theme:Pe,children:[r.jsx(ke,{}),r.jsx(we,{router:Lt})]})}));export{N as A,vt as D,Q as J,gt as a,d as r,W as u}; diff --git a/src/evidently/ui/assets/static/js/index-CMKyMjTx.js b/src/evidently/ui/assets/static/js/index-CMKyMjTx.js deleted file mode 100644 index 6b5e57199f..0000000000 --- a/src/evidently/ui/assets/static/js/index-CMKyMjTx.js +++ /dev/null @@ -1 +0,0 @@ -import{R as K,z as we,r as ue,V as Oe,a9 as nt,j as b,aa as Ft,B as ee,I as wt,ab as St,ac as at,ad as Dt,ae as Et,af as kt,ag as jt,ah as Tt,ai as Ke,a2 as Ct,Q as Ot,U as Lt,T as Te,a3 as Nt,G as Rt}from"./vendor-DoRIiF9A.js";var ce=e=>e.type==="checkbox",ie=e=>e instanceof Date,C=e=>e==null;const ot=e=>typeof e=="object";var k=e=>!C(e)&&!Array.isArray(e)&&ot(e)&&!ie(e),Pt=e=>k(e)&&e.target?ce(e.target)?e.target.checked:e.target.value:e,Bt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ut=(e,i)=>e.has(Bt(i)),It=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&&!It(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)=>C(o)?o:o[a],e);return E(t)||t===e?E(e[i])?s:e[i]:t},X=e=>typeof e=="boolean";const Qe={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},B={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 Mt=(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]!==B.all&&(i._proxyFormState[u]=!t||B.all),e[u]}});return o},R=e=>k(e)&&!Object.keys(e).length,qt=(e,i,s,t)=>{s(e);const{name:o,...a}=e;return R(a)||Object.keys(a).length>=Object.keys(i).length||Object.keys(a).find(u=>i[u]===B.all)},Se=e=>Array.isArray(e)?e:[e];function Wt(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",$t=(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),lt=e=>fe(e.replace(/["|']|\]/g,"").split(/\.|\[/));function _(e,i,s){let t=-1;const o=Ne(i)?[i]:lt(i),a=o.length,u=a-1;for(;++ti?{...s[e],types:{...s[e]&&s[e].types?s[e].types:{},[t]:o||!0}}:{};const Ce=(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)&&Ce(u,i)}}};var Ye=e=>({isOnSubmit:!e||e===B.onSubmit,isOnBlur:e===B.onBlur,isOnChange:e===B.onChange,isOnAll:e===B.all,isOnTouch:e===B.onTouched}),Je=(e,i,s)=>!s&&(i.watchAll||i.watch.has(e)||[...i.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),Ht=(e,i,s)=>{const t=fe(d(e,s));return _(t,"root",i[s]),_(e,s,t),e},Re=e=>e.type==="file",Q=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 Xe={value:!1,isValid:!1},Ze={value:!0,isValid:!0};var ct=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===""?Ze:{value:e[0].value,isValid:!0}:Ze:Xe}return Xe};const et={isValid:!1,value:null};var ft=e=>Array.isArray(e)?e.reduce((i,s)=>s&&s.checked&&!s.disabled?{isValid:!0,value:s.value}:i,et):et;function tt(e,i,s="validate"){if(ye(e)||Array.isArray(e)&&e.every(ye)||X(e)&&!e)return{type:s,message:ye(e)?e:"",ref:i}}var se=e=>k(e)&&!ge(e)?e:{value:e,message:""},rt=async(e,i,s,t,o)=>{const{ref:a,refs:u,required:g,maxLength:v,minLength:w,min:U,max:A,pattern:m,validate:I,name:O,valueAsNumber:be,mount:de,disabled:me}=e._f,x=d(i,O);if(!de||me)return{};const P=u?u[0]:a,$=V=>{t&&P.reportValidity&&(P.setCustomValidity(X(V)?"":V||""),P.reportValidity())},j={},ne=Pe(a),te=ce(a),pe=ne||te,M=(be||Re(a))&&E(a.value)&&E(x)||he(a)&&a.value===""||x===""||Array.isArray(x)&&!x.length,Y=ut.bind(null,O,s,j),H=(V,p,S,L=z.maxLength,N=z.minLength)=>{const q=V?p:S;j[O]={type:V?L:N,message:q,ref:a,...Y(V?L:N,q)}};if(o?!Array.isArray(x)||!x.length:g&&(!pe&&(M||C(x))||X(x)&&!x||te&&!ct(u).isValid||ne&&!ft(u).isValid)){const{value:V,message:p}=ye(g)?{value:!!g,message:g}:se(g);if(V&&(j[O]={type:z.required,message:p,ref:P,...Y(z.required,p)},!s))return $(p),j}if(!M&&(!C(U)||!C(A))){let V,p;const S=se(A),L=se(U);if(!C(x)&&!isNaN(x)){const N=a.valueAsNumber||x&&+x;C(S.value)||(V=N>S.value),C(L.value)||(p=Nnew Date(new Date().toDateString()+" "+oe),J=a.type=="time",ae=a.type=="week";W(S.value)&&x&&(V=J?q(x)>q(S.value):ae?x>S.value:N>new Date(S.value)),W(L.value)&&x&&(p=J?q(x)+V.value,L=!C(p.value)&&x.length<+p.value;if((S||L)&&(H(S,V.message,p.message),!s))return $(j[O].message),j}if(m&&!M&&W(x)){const{value:V,message:p}=se(m);if(ge(V)&&!x.match(V)&&(j[O]={type:z.pattern,message:p,ref:a,...Y(z.pattern,p)},!s))return $(p),j}if(I){if(Q(I)){const V=await I(x,i),p=tt(V,P);if(p&&(j[O]={...p,...Y(z.validate,p.message)},!s))return $(p.message),j}else if(k(I)){let V={};for(const p in I){if(!R(V)&&!s)break;const S=tt(await I[p](x,i),P,p);S&&(V={...S,...Y(p,S.message)},$(S.message),s&&(j[O]=V))}if(!R(V)&&(j[O]={ref:P,...V},!s))return j}}return $(!0),j};function zt(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=>C(e)||!ot(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 dt=e=>e.type==="select-multiple",Kt=e=>Pe(e)||ce(e),Ee=e=>he(e)&&e.isConnected,yt=e=>{for(const i in e)if(Q(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])&&!yt(e[t])?(i[t]=Array.isArray(e[t])?[]:{},xe(e[t],i[t])):C(e[t])||(i[t]=!0);return i}function ht(e,i,s){const t=Array.isArray(e);if(k(e)||t)for(const o in e)Array.isArray(e[o])||k(e[o])&&!yt(e[o])?E(i)||ve(s[o])?s[o]=Array.isArray(e[o])?xe(e[o],[]):{...xe(e[o])}:ht(e[o],C(i)?{}:i[o],s[o]):s[o]=!Z(e[o],i[o]);return s}var ke=(e,i)=>ht(e,i,xe(i)),gt=(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 Re(i)?i.files:Pe(i)?ft(e.refs).value:dt(i)?[...i.selectedOptions].map(({value:s})=>s):ce(i)?ct(e.refs).value:gt(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&&_(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,Yt=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function st(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 Jt=(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,Xt=(e,i)=>!fe(d(e,i)).length&&T(e,i);const Zt={mode:B.onSubmit,reValidateMode:B.onChange,shouldFocusError:!0};function er(e={},i){let s={...Zt,...e},t={submitCount:0,isDirty:!1,isLoading:Q(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,U=0;const A={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:De(),array:De(),state:De()},I=e.resetOptions&&e.resetOptions.keepDirtyValues,O=Ye(s.mode),be=Ye(s.reValidateMode),de=s.criteriaMode===B.all,me=r=>n=>{clearTimeout(U),U=setTimeout(r,n)},x=async r=>{if(A.isValid||r){const n=s.resolver?R((await M()).errors):await H(o,!0);n!==t.isValid&&m.state.next({isValid:n})}},P=r=>A.isValidating&&m.state.next({isValidating:r}),$=(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&&_(o,r,h)}if(c&&Array.isArray(d(t.errors,r))){const h=l(d(t.errors,r),y.argA,y.argB);f&&_(t.errors,r,h),Xt(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&&_(t.touchedFields,r,h)}A.dirtyFields&&(t.dirtyFields=ke(a,u)),m.state.next({name:r,isDirty:p(r,n),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else _(u,r,n)},j=(r,n)=>{_(t.errors,r,n),m.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?_(u,r,n?c:je(f._f)):N(r,c),g.mount&&x()}},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=p(),c=h!==F.isDirty);const D=Z(d(a,r),n);h=d(t.dirtyFields,r),D?T(t.dirtyFields,r):_(t.dirtyFields,r,!0),F.dirtyFields=t.dirtyFields,c=c||A.dirtyFields&&h!==!D}if(l){const D=d(t.touchedFields,r);D||(_(t.touchedFields,r,l),F.touchedFields=t.touchedFields,c=c||A.touchedFields&&D!==l)}return c&&f&&m.state.next(F),c?F:{}},pe=(r,n,l,y)=>{const f=d(t.errors,r),c=A.isValid&&X(n)&&t.isValid!==n;if(e.delayError&&l?(w=me(()=>j(r,l)),w(e.delayError)):(clearTimeout(U),w=null,l?_(t.errors,r,l):T(t.errors,r)),(l?!Z(f,l):f)||!R(y)||c){const h={...y,...c&&X(n)?{isValid:n}:{},errors:t.errors,name:r};t={...t,...h},m.state.next(h)}P(!1)},M=async r=>s.resolver(u,s.context,Qt(r||v.mount,o,s.criteriaMode,s.shouldUseNativeValidation)),Y=async r=>{const{errors:n}=await M(r);if(r)for(const l of r){const y=d(n,l);y?_(t.errors,l,y):T(t.errors,l)}else t.errors=n;return n},H=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),D=await rt(f,u,de,s.shouldUseNativeValidation&&!n,F);if(D[c.name]&&(l.valid=!1,n))break;!n&&(d(D,c.name)?F?Ht(t.errors,D,c.name):_(t.errors,c.name,D[c.name]):T(t.errors,c.name))}h&&await H(h,n,l)}}return l.valid},V=()=>{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))&&Ve(r)}v.unMount=new Set},p=(r,n)=>(r&&n&&_(u,r,n),!Z(Be(),a)),S=(r,n,l)=>$t(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,[]):[])),N=(r,n,l={})=>{const y=d(o,r);let f=n;if(y){const c=y._f;c&&(!c.disabled&&_(u,r,gt(n,c)),f=he(c.ref)&&C(n)?"":n,dt(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):Re(c.ref)?c.ref.value="":(c.ref.value=f,c.ref.type||m.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):N(c,f,l)}},J=(r,n,l={})=>{const y=d(o,r),f=v.array.has(r),c=G(n);_(u,r,c),f?(m.array.next({name:r,values:{...u}}),(A.isDirty||A.dirtyFields)&&l.shouldDirty&&m.state.next({name:r,dirtyFields:ke(a,u),isDirty:p(r,c)})):y&&!y._f&&!C(c)?q(r,c,l):N(r,c,l),Je(r,v)&&m.state.next({...t}),m.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):Pt(r);if(f){let h,F;const D=c(),re=r.type===Qe.BLUR||r.type===Qe.FOCUS_OUT,Vt=!Yt(f._f)&&!s.resolver&&!d(t.errors,l)&&!f._f.deps||Jt(re,d(t.touchedFields,l),t.isSubmitted,be,O),Ae=Je(l,v,re);_(u,l,D),re?(f._f.onBlur&&f._f.onBlur(r),w&&w(0)):f._f.onChange&&f._f.onChange(r);const Fe=te(l,D,re,!1),_t=!R(Fe)||Ae;if(!re&&m.values.next({name:l,type:r.type,values:{...u}}),Vt)return A.isValid&&x(),_t&&m.state.next({name:l,...Ae?{}:Fe});if(!re&&Ae&&m.state.next({...t}),P(!0),s.resolver){const{errors:ze}=await M([l]),At=st(t.errors,o,l),Ge=st(ze,o,At.name||l);h=Ge.error,l=Ge.name,F=R(ze)}else h=(await rt(f,u,de,s.shouldUseNativeValidation))[l],y=Number.isNaN(D)||D===d(u,l,D),y&&(h?F=!1:A.isValid&&(F=await H(o,!0)));y&&(f._f.deps&&oe(f._f.deps),pe(l,F,h,Fe))}},oe=async(r,n={})=>{let l,y;const f=Se(r);if(P(!0),s.resolver){const c=await Y(E(r)?r:f);l=R(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&&h._f?{[c]:h}:h)}))).every(Boolean),!(!y&&!t.isValid)&&x()):y=l=await H(o);return m.state.next({...!W(r)||A.isValid&&l!==t.isValid?{}:{name:r},...s.resolver||!r?{isValid:l}:{},errors:t.errors,isValidating:!1}),n.shouldFocus&&!y&&Ce(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&&Se(r).forEach(n=>T(t.errors,n)),m.state.next({errors:r?t.errors:{}})},Ie=(r,n,l)=>{const y=(d(o,r,{_f:{}})._f||{}).ref;_(t.errors,r,{...n,ref:y}),m.state.next({name:r,errors:t.errors,isValid:!1}),l&&l.shouldFocus&&y&&y.focus&&y.focus()},mt=(r,n)=>Q(r)?m.values.subscribe({next:l=>r(S(void 0,n),l)}):S(r,n,!0),Ve=(r,n={})=>{for(const l of r?Se(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);m.values.next({values:{...u}}),m.state.next({...t,...n.keepDirty?{isDirty:p()}:{}}),!n.keepIsValid&&x()},Me=({disabled:r,name:n,field:l,fields:y})=>{if(X(r)){const f=r?void 0:d(u,n,je(l?l._f:d(y,n)._f));_(u,n,f),te(n,f,!1,!1,!0)}},_e=(r,n={})=>{let l=d(o,r);const y=X(n.disabled);return _(o,r,{...l||{},_f:{...l&&l._f?l._f:{ref:{name:r}},name:r,mount:!0,...n}}),v.mount.add(r),l?Me({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){_e(r,n),l=d(o,r);const c=E(f.value)&&f.querySelectorAll&&f.querySelectorAll("input,select,textarea")[0]||f,h=Kt(c),F=l._f.refs||[];if(h?F.find(D=>D===c):c===l._f.ref)return;_(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)&&!(Ut(v.array,r)&&g.action)&&v.unMount.add(r)}}},qe=()=>s.shouldFocusError&&Ce(o,r=>r&&d(t.errors,r),v.mount),We=(r,n)=>async l=>{l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let y=G(u);if(m.state.next({isSubmitting:!0}),s.resolver){const{errors:f,values:c}=await M();t.errors=f,y=c}else await H(o);T(t.errors,"root"),R(t.errors)?(m.state.next({errors:{}}),await r(y,l)):(n&&await n({...t.errors},l),qe(),setTimeout(qe)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:R(t.errors),submitCount:t.submitCount+1,errors:t.errors})},pt=(r,n={})=>{d(o,r)&&(E(n.defaultValue)?J(r,d(a,r)):(J(r,n.defaultValue),_(a,r,n.defaultValue)),n.keepTouched||T(t.touchedFields,r),n.keepDirty||(T(t.dirtyFields,r),t.isDirty=n.defaultValue?p(r,d(a,r)):p()),n.keepError||(T(t.errors,r),A.isValid&&x()),m.state.next({...t}))},$e=(r,n={})=>{const l=r?G(r):a,y=G(l),f=r&&!R(r)?y:a;if(n.keepDefaultValues||(a=l),!n.keepValues){if(n.keepDirtyValues||I)for(const c of v.mount)d(t.dirtyFields,c)?_(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 D=F.closest("form");if(D){D.reset();break}}}}o={}}u=e.shouldUnregister?n.keepDefaultValues?G(a):{}:G(f),m.array.next({values:{...f}}),m.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,m.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})},He=(r,n)=>$e(Q(r)?r(u):r,n);return{control:{register:_e,unregister:Ve,getFieldState:Ue,handleSubmit:We,setError:Ie,_executeSchema:M,_getWatch:S,_getDirty:p,_updateValid:x,_removeUnmounted:V,_updateFieldArray:$,_updateDisabledField:Me,_getFieldArray:L,_reset:$e,_resetDefaultValues:()=>Q(s.defaultValues)&&s.defaultValues().then(r=>{He(r,s.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:r=>{t={...t,...r}},_subjects:m,_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:_e,handleSubmit:We,watch:mt,setValue:J,getValues:Be,reset:He,resetField:pt,clearErrors:bt,unregister:Ve,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 tr(e={}){const i=K.useRef(),s=K.useRef(),[t,o]=K.useState({isDirty:!1,isValidating:!1,isLoading:Q(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Q(e.defaultValues)?void 0:e.defaultValues});i.current||(i.current={...er(e,()=>o(u=>({...u}))),formState:t});const a=i.current.control;return a._options=e,Wt({subject:a._subjects.state,next:u=>{qt(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=Mt(t,a),i.current}var it=function(e,i,s){if(e&&"reportValidity"in e){var t=d(s,i);e.setCustomValidity(t&&t.message||""),e.reportValidity()}},vt=function(e,i){var s=function(o){var a=i.fields[o];a&&a.ref&&"reportValidity"in a.ref?it(a.ref,o,e):a.refs&&a.refs.forEach(function(u){return it(u,o,e)})};for(var t in i.fields)s(t)},rr=function(e,i){i.shouldUseNativeValidation&&vt(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(ir(i.names||Object.keys(e),t)){var u=Object.assign({},sr(d(s,t)));_(u,"root",a),_(s,t,u)}else _(s,t,a)}return s},sr=function(e){return Array.isArray(e)?e.filter(Boolean):[]},ir=function(e,i){return e.some(function(s){return s.startsWith(i+".")})},nr=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(U){return U.errors.forEach(function(A){return e.push(A)})}),i){var v=s[u].types,w=v&&v[t.code];s[u]=ut(u,i,s,o,w?[].concat(w,t.message):t.message)}e.shift()}return s},ar=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&&vt({},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:rr(nr(u.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw u}))}catch(u){return Promise.reject(u)}}};const or=we.object({name:we.string().min(3),description:we.string()}),xt=({project:e,action:i})=>{var A,m;const t=Oe().state!=="idle",{setFocus:o,register:a,handleSubmit:u,formState:{errors:g,dirtyFields:v}}=tr({resolver:ar(or),defaultValues:{name:e.name||"",description:e.description||""}}),{palette:w}=jt(),U=nt();return ue.useEffect(()=>o("name"),[o]),b.jsx(b.Fragment,{children:b.jsxs(Tt,{onSubmit:u(({name:I,description:O})=>U({...e,name:I,description:O,action:i},{method:"put",replace:!0,encType:"application/json"})),style:{opacity:t?.5:1},children:[b.jsx(Ke,{...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"}),b.jsx(Ke,{...a("description"),error:!!g.description,helperText:(m=g.description)==null?void 0:m.message,placeholder:"Description",disabled:t,fullWidth:!0,variant:"standard"}),b.jsx(ee,{sx:{display:"flex",justifyContent:"right"},children:b.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"})})]})})},lr=({project:e})=>b.jsxs(b.Fragment,{children:[b.jsx(Ot,{component:Lt,to:`projects/${e.id}`,children:b.jsx(Te,{variant:"h6",children:e.name})}),b.jsx(Te,{style:{whiteSpace:"pre-line"},variant:"body1",children:e.description})]}),ur=({project:e})=>{const[i,s]=ue.useState(!1),o=Oe().state!=="idle",a=nt();return ue.useEffect(()=>s(!1),[e]),b.jsxs(Ft,{sx:{m:1,p:2,border:"1px solid",borderColor:u=>u.palette.divider,position:"relative","&:hover .action-buttons":{opacity:1}},children:[b.jsx(ee,{style:{position:"absolute",top:"5px",right:"5px"},children:b.jsxs(ee,{sx:u=>({opacity:0,transition:u.transitions.create("opacity",{duration:u.transitions.duration.enteringScreen})}),className:"action-buttons",display:"flex",columnGap:1,children:[b.jsx(wt,{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:b.jsx(St,{})}),b.jsx(at,{disabled:o,color:"primary",value:"edit-mode",selected:i,size:"small",sx:{border:"none",borderRadius:"50%"},onChange:()=>s(u=>!u),children:b.jsx(Dt,{})})]})}),i?b.jsx(xt,{project:e,action:"edit-project"}):b.jsx(lr,{project:e})]})},cr=()=>{const[e,i]=ue.useState(!1),[s,t]=ue.useState(!1),o=Oe(),a=o.state!=="idle";return!s&&o.state==="submitting"&&t(!0),s&&o.state==="idle"&&(t(!1),i(!1)),b.jsxs(ee,{py:2,children:[b.jsx(ee,{display:"flex",justifyContent:"center",children:b.jsx(Et,{title:"Create new project",children:b.jsx(at,{size:"small",selected:e,disabled:a,color:"primary",value:"check",sx:{border:"none",borderRadius:"50%"},onChange:()=>i(u=>!u),children:b.jsx(kt,{})})})}),e&&b.jsx(ee,{p:3,display:"flex",flexDirection:"column",rowGap:1,children:b.jsx(xt,{project:{name:"",description:""},action:"create-new-project"})})]})},gr=()=>{const e=Nt();return b.jsxs(b.Fragment,{children:[b.jsx(Te,{align:"center",variant:"h5",children:e.length>0?"Project List":"You don't have any projects yet"}),b.jsxs(ee,{m:"auto",mt:2,maxWidth:600,children:[b.jsx(cr,{}),b.jsx(Rt,{container:!0,direction:"column",justifyContent:"center",alignItems:"stretch",children:e.map(i=>b.jsx(K.Fragment,{children:b.jsx(ur,{project:i})},i.id))})]})]})};export{gr as Component}; diff --git a/src/evidently/ui/assets/static/js/index-CP21mErs.js b/src/evidently/ui/assets/static/js/index-CP21mErs.js deleted file mode 100644 index 738b980551..0000000000 --- a/src/evidently/ui/assets/static/js/index-CP21mErs.js +++ /dev/null @@ -1 +0,0 @@ -import{O as f,j as e,B as p,P as k,Q as x,U as b,V as y,f as C,W as S,X as B,h as I,u as M,r as T,I as h,Y as j,Z as m,_ as z,v as L,M as d,$ as w,a0 as D,a1 as g,a2 as v,a3 as E,a4 as R,a5 as A}from"./vendor-DoRIiF9A.js";import{u as N}from"./index-BqCr-mCb.js";const O=r=>{var t;return typeof((t=r==null?void 0:r.handle)==null?void 0:t.crumb)=="function"},P=()=>{const t=f().filter(O).map(({handle:s,data:o,id:n,pathname:i,params:a})=>s.crumb(o,{id:n,pathname:i,params:a}));return e.jsx(p,{children:e.jsx(k,{"aria-label":"breadcrumb",children:t.map(s=>e.jsx(x,{component:b,color:"inherit",to:s.to,children:s.linkText},s.to))})})},F=()=>{const r=y(),t=C(),{state:s}=S();return r.state!=="idle"||t.some(({state:n})=>n!=="idle")||s!=="idle"?e.jsx(p,{width:1,sx:{position:"fixed",top:0,left:0,zIndex:1e3},children:e.jsx(B,{sx:{height:"3px"}})}):null},H=()=>e.jsx(I,{children:e.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"})})}),_=()=>{const{mode:r,setMode:t}=M(),s=N(),[o,n]=T.useState(null),i=l=>n(l.currentTarget),a=()=>n(null),u=!!o,c=u?"simple-popover":void 0;return r?e.jsxs("div",{children:[e.jsx(h,{"aria-describedby":c,onClick:i,children:s==="dark"?e.jsx(j,{}):e.jsx(m,{})}),e.jsx(z,{id:c,open:u,anchorEl:o,onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsxs(L,{size:"small",value:r,onChange:l=>{t(l.target.value),a()},children:[e.jsx(d,{value:"system",children:"System"}),e.jsx(d,{value:"light",children:"Light"}),e.jsx(d,{value:"dark",children:"Dark"})]})})]}):e.jsx(h,{"aria-describedby":c,children:s==="dark"?e.jsx(j,{}):e.jsx(m,{})})};function U({LogoSvg:r,version:t,authComponent:s}){return e.jsx(e.Fragment,{children:e.jsx(w,{position:"static",sx:{borderLeft:"none",borderRight:"none",borderTop:"none",borderBottom:"1px solid",borderColor:o=>o.palette.divider},color:"transparent",children:e.jsxs(D,{sx:{gap:1},children:[e.jsx(g,{flexGrow:1,justifyContent:"flex-start",direction:"row",children:e.jsxs(g,{direction:"row",alignItems:"flex-end",gap:1,children:[e.jsx(h,{component:b,to:"/",sx:o=>({color:"#4d4d4d",...o.applyStyles("dark",{color:o.palette.text.primary}),"&:hover":{borderRadius:"5px",color:o.palette.text.disabled,...o.applyStyles("dark",{color:o.palette.text.secondary})}}),children:e.jsx(r,{})}),e.jsx("span",{style:{verticalAlign:"super",fontSize:"0.75rem"},children:t})]})}),s,e.jsx(v,{component:x,startIcon:e.jsx(H,{}),href:"https://discord.gg/EJxU68uynY",target:"_blank",children:"Support"}),e.jsx(v,{component:x,href:"https://docs.evidentlyai.com",target:"_blank",children:"Docs"}),e.jsx(_,{})]})})})}const G=({LogoSvg:r,authComponent:t})=>{const{version:s}=E();return e.jsxs(e.Fragment,{children:[e.jsx(U,{authComponent:t,version:s,LogoSvg:r}),e.jsx(F,{}),e.jsx(R,{}),e.jsxs(p,{p:3,children:[e.jsx(P,{}),e.jsx(A,{})]})]})},J={crumb:()=>({to:"/",linkText:"Home"})};export{G as HomeComponentTemplate,J as handle}; diff --git a/src/evidently/ui/assets/static/js/index-Cfoxrigu.js b/src/evidently/ui/assets/static/js/index-Cfoxrigu.js deleted file mode 100644 index 4b0b8a3e45..0000000000 --- a/src/evidently/ui/assets/static/js/index-Cfoxrigu.js +++ /dev/null @@ -1 +0,0 @@ -import{aj as p,m as o,a3 as h,j as e,G as c}from"./vendor-DoRIiF9A.js";import{r as n,J as d}from"./index-BqCr-mCb.js";import{a as m,C as g,D as _}from"./DashboardContent-CtUoNzcD.js";import"./DashboardViewParams-mNv_VOpq.js";const C={crumb:(s,{pathname:t,params:a})=>({to:t,linkText:String(a.snapshotId)}),hide:{snapshotList:!0}},D=({api:s})=>{const{projectId:t,snapshotId:a}=p();o(t),o(a);const i=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(d),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(d)}),children:e.jsx(c,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:e.jsx(_,{widgets:i.widgets})})})})};export{D as SnapshotTemplate,C as handle}; diff --git a/src/evidently/ui/assets/static/js/index-DQXtchPZ.js b/src/evidently/ui/assets/static/js/index-DQXtchPZ.js deleted file mode 100644 index b66d87a253..0000000000 --- a/src/evidently/ui/assets/static/js/index-DQXtchPZ.js +++ /dev/null @@ -1 +0,0 @@ -import{aj as d,m as D,a3 as l,y as e,ak as p,j as s}from"./vendor-DoRIiF9A.js";import{D as x}from"./index-BqCr-mCb.js";import{D as c}from"./DashboardViewParams-mNv_VOpq.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-umZ6I6N8.js b/src/evidently/ui/assets/static/js/index-umZ6I6N8.js new file mode 100644 index 0000000000..91599000ae --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-umZ6I6N8.js @@ -0,0 +1,252 @@ +const __vite__fileDeps=["static/js/snapshot-view-main-DuACvoc1.js","static/js/DashboardContent-EFtJQGo_.js","static/js/dashboard-main-BKsjGvq6.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +var g2=Object.defineProperty;var y2=(e,t,r)=>t in e?g2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ks=(e,t,r)=>(y2(e,typeof t!="symbol"?t+"":t,r),r);function x2(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var ym=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wB(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var X1={exports:{}},Td={},ex={exports:{}},nt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var rc=Symbol.for("react.element"),b2=Symbol.for("react.portal"),S2=Symbol.for("react.fragment"),w2=Symbol.for("react.strict_mode"),C2=Symbol.for("react.profiler"),k2=Symbol.for("react.provider"),R2=Symbol.for("react.context"),E2=Symbol.for("react.forward_ref"),T2=Symbol.for("react.suspense"),$2=Symbol.for("react.memo"),P2=Symbol.for("react.lazy"),Cg=Symbol.iterator;function j2(e){return e===null||typeof e!="object"?null:(e=Cg&&e[Cg]||e["@@iterator"],typeof e=="function"?e:null)}var tx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rx=Object.assign,nx={};function hs(e,t,r){this.props=e,this.context=t,this.refs=nx,this.updater=r||tx}hs.prototype.isReactComponent={};hs.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};hs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ox(){}ox.prototype=hs.prototype;function xm(e,t,r){this.props=e,this.context=t,this.refs=nx,this.updater=r||tx}var bm=xm.prototype=new ox;bm.constructor=xm;rx(bm,hs.prototype);bm.isPureReactComponent=!0;var kg=Array.isArray,ax=Object.prototype.hasOwnProperty,Sm={current:null},ix={key:!0,ref:!0,__self:!0,__source:!0};function sx(e,t,r){var n,o={},a=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)ax.call(t,n)&&!ix.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,ae=j[ne];if(0>>1;neo(ue,W))keo(Ae,ue)?(j[ne]=Ae,j[ke]=W,ne=ke):(j[ne]=ue,j[X]=W,ne=X);else if(keo(Ae,W))j[ne]=Ae,j[ke]=W,ne=ke;else break e}}return B}function o(j,B){var W=j.sortIndex-B.sortIndex;return W!==0?W:j.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,d=null,f=3,y=!1,b=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,x=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 v(j){for(var B=r(c);B!==null;){if(B.callback===null)n(c);else if(B.startTime<=j)n(c),B.sortIndex=B.expirationTime,t(l,B);else break;B=r(c)}}function m(j){if(w=!1,v(j),!b)if(r(l)!==null)b=!0,O(k);else{var B=r(c);B!==null&&V(m,B.startTime-j)}}function k(j,B){b=!1,w&&(w=!1,x($),$=-1),y=!0;var W=f;try{for(v(B),d=r(l);d!==null&&(!(d.expirationTime>B)||j&&!P());){var ne=d.callback;if(typeof ne=="function"){d.callback=null,f=d.priorityLevel;var ae=ne(d.expirationTime<=B);B=e.unstable_now(),typeof ae=="function"?d.callback=ae:d===r(l)&&n(l),v(B)}else n(l);d=r(l)}if(d!==null)var de=!0;else{var X=r(c);X!==null&&V(m,X.startTime-B),de=!1}return de}finally{d=null,f=W,y=!1}}var R=!1,E=null,$=-1,I=5,S=-1;function P(){return!(e.unstable_now()-Sj||125ne?(j.sortIndex=W,t(c,j),r(l)===null&&j===r(c)&&(w?(x($),$=-1):w=!0,V(m,W-ne))):(j.sortIndex=ae,t(l,j),b||y||(b=!0,O(k))),j},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(j){var B=f;return function(){var W=f;f=B;try{return j.apply(this,arguments)}finally{f=W}}}})(dx);ux.exports=dx;var F2=ux.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var fx=h,Yr=F2;function oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zp=Object.prototype.hasOwnProperty,V2=/^[: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]*$/,Eg={},Tg={};function U2(e){return Zp.call(Tg,e)?!0:Zp.call(Eg,e)?!1:V2.test(e)?Tg[e]=!0:(Eg[e]=!0,!1)}function W2(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function H2(e,t,r,n){if(t===null||typeof t>"u"||W2(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 jr(e,t,r,n,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var mr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){mr[e]=new jr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];mr[t]=new jr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){mr[e]=new jr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){mr[e]=new jr(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){mr[e]=new jr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){mr[e]=new jr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){mr[e]=new jr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){mr[e]=new jr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){mr[e]=new jr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cm=/[\-:]([a-z])/g;function km(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(Cm,km);mr[t]=new jr(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(Cm,km);mr[t]=new jr(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(Cm,km);mr[t]=new jr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){mr[e]=new jr(e,1,!1,e.toLowerCase(),null,!1,!1)});mr.xlinkHref=new jr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){mr[e]=new jr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Rm(e,t,r,n){var o=mr.hasOwnProperty(t)?mr[t]:null;(o!==null?o.type!==0:n||!(2s||o[i]!==a[s]){var l=` +`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{Yf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Zs(e):""}function K2(e){switch(e.tag){case 5:return Zs(e.type);case 16:return Zs("Lazy");case 13:return Zs("Suspense");case 19:return Zs("SuspenseList");case 0:case 2:case 15:return e=qf(e.type,!1),e;case 11:return e=qf(e.type.render,!1),e;case 1:return e=qf(e.type,!0),e;default:return""}}function Jp(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 bi:return"Fragment";case xi:return"Portal";case Gp:return"Profiler";case Em:return"StrictMode";case Yp:return"Suspense";case qp: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 Tm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $m:return t=e.displayName||null,t!==null?t:Jp(e.type)||"Memo";case Vo:t=e._payload,e=e._init;try{return Jp(e(t))}catch{}}return null}function Z2(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 Jp(t);case 8:return t===Em?"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 ia(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function G2(e){var t=gx(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ec(e){e._valueTracker||(e._valueTracker=G2(e))}function yx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=gx(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ru(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 Qp(e,t){var r=t.checked;return Dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Pg(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ia(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function xx(e,t){t=t.checked,t!=null&&Rm(e,"checked",t,!1)}function Xp(e,t){xx(e,t);var r=ia(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?eh(e,t.type,r):t.hasOwnProperty("defaultValue")&&eh(e,t.type,ia(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jg(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function eh(e,t,r){(t!=="number"||Ru(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Gs=Array.isArray;function Ii(e,t,r,n){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 yl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var tl={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},Y2=["Webkit","ms","Moz","O"];Object.keys(tl).forEach(function(e){Y2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),tl[t]=tl[e]})});function Cx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||tl.hasOwnProperty(e)&&tl[e]?(""+t).trim():t+"px"}function kx(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Cx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var q2=Dt({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 nh(e,t){if(t){if(q2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function oh(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 ah=null;function Pm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ih=null,Ni=null,Ai=null;function Og(e){if(e=ac(e)){if(typeof ih!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=_d(t),ih(e.stateNode,e.type,t))}}function Rx(e){Ni?Ai?Ai.push(e):Ai=[e]:Ni=e}function Ex(){if(Ni){var e=Ni,t=Ai;if(Ai=Ni=null,Og(e),t)for(e=0;e>>=0,e===0?32:31-(sR(e)/lR|0)|0}var $c=64,Pc=4194304;function Ys(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 Pu(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~o;s!==0?n=Ys(s):(a&=i,a!==0&&(n=Ys(a)))}else i=r&~o,i!==0?n=Ys(i):a!==0&&(n=Ys(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function nc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ln(t),e[t]=r}function fR(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=nl),Vg=" ",Ug=!1;function Kx(e,t){switch(e){case"keyup":return zR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Si=!1;function VR(e,t){switch(e){case"compositionend":return Zx(t);case"keypress":return t.which!==32?null:(Ug=!0,Vg);case"textInput":return e=t.data,e===Vg&&Ug?null:e;default:return null}}function UR(e,t){if(Si)return e==="compositionend"||!Am&&Kx(e,t)?(e=Wx(),nu=Lm=Go=null,Si=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Zg(r)}}function Jx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qx(){for(var e=window,t=Ru();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ru(e.document)}return t}function Dm(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 QR(e){var t=Qx(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Jx(r.ownerDocument.documentElement,r)){if(n!==null&&Dm(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=n.end===void 0?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=Gg(r,a);var i=Gg(r,n);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,wi=null,fh=null,al=null,ph=!1;function Yg(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ph||wi==null||wi!==Ru(n)||(n=wi,"selectionStart"in n&&Dm(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),al&&kl(al,n)||(al=n,n=_u(fh,"onSelect"),0Ri||(e.current=xh[Ri],xh[Ri]=null,Ri--)}function kt(e,t){Ri++,xh[Ri]=e.current,e.current=t}var sa={},br=va(sa),Or=va(!1),Va=sa;function Gi(e,t){var r=e.type.contextTypes;if(!r)return sa;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Lr(e){return e=e.childContextTypes,e!=null}function Lu(){Tt(Or),Tt(br)}function ry(e,t,r){if(br.current!==sa)throw Error(oe(168));kt(br,t),kt(Or,r)}function sb(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(oe(108,Z2(e)||"Unknown",o));return Dt({},r,n)}function Iu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sa,Va=br.current,kt(br,e),kt(Or,Or.current),!0}function ny(e,t,r){var n=e.stateNode;if(!n)throw Error(oe(169));r?(e=sb(e,t,Va),n.__reactInternalMemoizedMergedChildContext=e,Tt(Or),Tt(br),kt(br,e)):Tt(Or),kt(Or,r)}var wo=null,Od=!1,up=!1;function lb(e){wo===null?wo=[e]:wo.push(e)}function uE(e){Od=!0,lb(e)}function ga(){if(!up&&wo!==null){up=!0;var e=0,t=vt;try{var r=wo;for(vt=1;e>=i,o-=i,Co=1<<32-Ln(t)+o|r<$?(I=E,E=null):I=E.sibling;var S=f(x,E,v[$],m);if(S===null){E===null&&(E=I);break}e&&E&&S.alternate===null&&t(x,E),g=a(S,g,$),R===null?k=S:R.sibling=S,R=S,E=I}if($===v.length)return r(x,E),Mt&&ka(x,$),k;if(E===null){for(;$$?(I=E,E=null):I=E.sibling;var P=f(x,E,S.value,m);if(P===null){E===null&&(E=I);break}e&&E&&P.alternate===null&&t(x,E),g=a(P,g,$),R===null?k=P:R.sibling=P,R=P,E=I}if(S.done)return r(x,E),Mt&&ka(x,$),k;if(E===null){for(;!S.done;$++,S=v.next())S=d(x,S.value,m),S!==null&&(g=a(S,g,$),R===null?k=S:R.sibling=S,R=S);return Mt&&ka(x,$),k}for(E=n(x,E);!S.done;$++,S=v.next())S=y(E,x,$,S.value,m),S!==null&&(e&&S.alternate!==null&&E.delete(S.key===null?$:S.key),g=a(S,g,$),R===null?k=S:R.sibling=S,R=S);return e&&E.forEach(function(N){return t(x,N)}),Mt&&ka(x,$),k}function C(x,g,v,m){if(typeof v=="object"&&v!==null&&v.type===bi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Rc:e:{for(var k=v.key,R=g;R!==null;){if(R.key===k){if(k=v.type,k===bi){if(R.tag===7){r(x,R.sibling),g=o(R,v.props.children),g.return=x,x=g;break e}}else if(R.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Vo&&uy(k)===R.type){r(x,R.sibling),g=o(R,v.props),g.ref=js(x,R,v),g.return=x,x=g;break e}r(x,R);break}else t(x,R);R=R.sibling}v.type===bi?(g=Aa(v.props.children,x.mode,m,v.key),g.return=x,x=g):(m=du(v.type,v.key,v.props,null,x.mode,m),m.ref=js(x,g,v),m.return=x,x=m)}return i(x);case xi:e:{for(R=v.key;g!==null;){if(g.key===R)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){r(x,g.sibling),g=o(g,v.children||[]),g.return=x,x=g;break e}else{r(x,g);break}else t(x,g);g=g.sibling}g=yp(v,x.mode,m),g.return=x,x=g}return i(x);case Vo:return R=v._init,C(x,g,R(v._payload),m)}if(Gs(v))return b(x,g,v,m);if(Rs(v))return w(x,g,v,m);Nc(x,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(r(x,g.sibling),g=o(g,v),g.return=x,x=g):(r(x,g),g=gp(v,x.mode,m),g.return=x,x=g),i(x)):r(x,g)}return C}var qi=vb(!0),gb=vb(!1),ic={},no=va(ic),$l=va(ic),Pl=va(ic);function ja(e){if(e===ic)throw Error(oe(174));return e}function Zm(e,t){switch(kt(Pl,t),kt($l,e),kt(no,ic),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:rh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=rh(t,e)}Tt(no),kt(no,t)}function Ji(){Tt(no),Tt($l),Tt(Pl)}function yb(e){ja(Pl.current);var t=ja(no.current),r=rh(t,e.type);t!==r&&(kt($l,e),kt(no,r))}function Gm(e){$l.current===e&&(Tt(no),Tt($l))}var It=va(0);function Fu(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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 dp=[];function Ym(){for(var e=0;er?r:4,e(!0);var n=fp.transition;fp.transition={};try{e(!1),t()}finally{vt=r,fp.transition=n}}function Lb(){return gn().memoizedState}function hE(e,t,r){var n=oa(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Ib(e))Nb(t,r);else if(r=fb(e,t,r,n),r!==null){var o=Er();In(r,e,n,o),Ab(r,t,n)}}function mE(e,t,r){var n=oa(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ib(e))Nb(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,Bn(s,i)){var l=t.interleaved;l===null?(o.next=o,Hm(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=fb(e,t,o,n),r!==null&&(o=Er(),In(r,e,n,o),Ab(r,t,n))}}function Ib(e){var t=e.alternate;return e===At||t!==null&&t===At}function Nb(e,t){il=Vu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ab(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Mm(e,r)}}var Uu={readContext:vn,useCallback:vr,useContext:vr,useEffect:vr,useImperativeHandle:vr,useInsertionEffect:vr,useLayoutEffect:vr,useMemo:vr,useReducer:vr,useRef:vr,useState:vr,useDebugValue:vr,useDeferredValue:vr,useTransition:vr,useMutableSource:vr,useSyncExternalStore:vr,useId:vr,unstable_isNewReconciler:!1},vE={readContext:vn,useCallback:function(e,t){return qn().memoizedState=[e,t===void 0?null:t],e},useContext:vn,useEffect:fy,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,su(4194308,4,Pb.bind(null,t,e),r)},useLayoutEffect:function(e,t){return su(4194308,4,e,t)},useInsertionEffect:function(e,t){return su(4,2,e,t)},useMemo:function(e,t){var r=qn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=qn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=hE.bind(null,At,e),[n.memoizedState,e]},useRef:function(e){var t=qn();return e={current:e},t.memoizedState=e},useState:dy,useDebugValue:ev,useDeferredValue:function(e){return qn().memoizedState=e},useTransition:function(){var e=dy(!1),t=e[0];return e=pE.bind(null,e[1]),qn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=At,o=qn();if(Mt){if(r===void 0)throw Error(oe(407));r=r()}else{if(r=t(),ir===null)throw Error(oe(349));Wa&30||Sb(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,fy(Cb.bind(null,n,a,e),[e]),n.flags|=2048,_l(9,wb.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=qn(),t=ir.identifierPrefix;if(Mt){var r=ko,n=Co;r=(n&~(1<<32-Ln(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=jl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Xn]=t,e[Tl]=n,Kb(e,t,!1,!1),t.stateNode=e;e:{switch(i=oh(r,n),r){case"dialog":Et("cancel",e),Et("close",e),o=n;break;case"iframe":case"object":case"embed":Et("load",e),o=n;break;case"video":case"audio":for(o=0;oXi&&(t.flags|=128,n=!0,Ms(a,!1),t.lanes=4194304)}else{if(!n)if(e=Fu(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ms(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Mt)return gr(t),null}else 2*Kt()-a.renderingStartTime>Xi&&r!==1073741824&&(t.flags|=128,n=!0,Ms(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Kt(),t.sibling=null,r=It.current,kt(It,n?r&1|2:r&1),t):(gr(t),null);case 22:case 23:return iv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Vr&1073741824&&(gr(t),t.subtreeFlags&6&&(t.flags|=8192)):gr(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function kE(e,t){switch(zm(t),t.tag){case 1:return Lr(t.type)&&Lu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ji(),Tt(Or),Tt(br),Ym(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gm(t),null;case 13:if(Tt(It),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));Yi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Tt(It),null;case 4:return Ji(),null;case 10:return Wm(t.type._context),null;case 22:case 23:return iv(),null;case 24:return null;default:return null}}var Dc=!1,xr=!1,RE=typeof WeakSet=="function"?WeakSet:Set,we=null;function Pi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ut(e,t,n)}else r.current=null}function Mh(e,t,r){try{r()}catch(n){Ut(e,t,n)}}var Sy=!1;function EE(e,t){if(hh=ju,e=Qx(),Dm(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var y;d!==r||o!==0&&d.nodeType!==3||(s=i+o),d!==a||n!==0&&d.nodeType!==3||(l=i+n),d.nodeType===3&&(i+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===r&&++c===o&&(s=i),f===a&&++u===n&&(l=i),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(mh={focusedElem:e,selectionRange:r},ju=!1,we=t;we!==null;)if(t=we,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,we=e;else for(;we!==null;){t=we;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var w=b.memoizedProps,C=b.memoizedState,x=t.stateNode,g=x.getSnapshotBeforeUpdate(t.elementType===t.type?w:$n(t.type,w),C);x.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(m){Ut(t,t.return,m)}if(e=t.sibling,e!==null){e.return=t.return,we=e;break}we=t.return}return b=Sy,Sy=!1,b}function sl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Mh(t,r,a)}o=o.next}while(o!==n)}}function Nd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function _h(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Yb(e){var t=e.alternate;t!==null&&(e.alternate=null,Yb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xn],delete t[Tl],delete t[yh],delete t[lE],delete t[cE])),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 qb(e){return e.tag===5||e.tag===3||e.tag===4}function wy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qb(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 Oh(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ou));else if(n!==4&&(e=e.child,e!==null))for(Oh(e,t,r),e=e.sibling;e!==null;)Oh(e,t,r),e=e.sibling}function Lh(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Lh(e,t,r),e=e.sibling;e!==null;)Lh(e,t,r),e=e.sibling}var ur=null,Pn=!1;function Fo(e,t,r){for(r=r.child;r!==null;)Jb(e,t,r),r=r.sibling}function Jb(e,t,r){if(ro&&typeof ro.onCommitFiberUnmount=="function")try{ro.onCommitFiberUnmount($d,r)}catch{}switch(r.tag){case 5:xr||Pi(r,t);case 6:var n=ur,o=Pn;ur=null,Fo(e,t,r),ur=n,Pn=o,ur!==null&&(Pn?(e=ur,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):ur.removeChild(r.stateNode));break;case 18:ur!==null&&(Pn?(e=ur,r=r.stateNode,e.nodeType===8?cp(e.parentNode,r):e.nodeType===1&&cp(e,r),wl(e)):cp(ur,r.stateNode));break;case 4:n=ur,o=Pn,ur=r.stateNode.containerInfo,Pn=!0,Fo(e,t,r),ur=n,Pn=o;break;case 0:case 11:case 14:case 15:if(!xr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Mh(r,t,i),o=o.next}while(o!==n)}Fo(e,t,r);break;case 1:if(!xr&&(Pi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ut(r,t,s)}Fo(e,t,r);break;case 21:Fo(e,t,r);break;case 22:r.mode&1?(xr=(n=xr)||r.memoizedState!==null,Fo(e,t,r),xr=n):Fo(e,t,r);break;default:Fo(e,t,r)}}function Cy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new RE),t.forEach(function(n){var o=IE.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Tn(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=i),n&=~a}if(n=o,n=Kt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*$E(n/1960))-n,10e?16:e,Yo===null)var n=!1;else{if(e=Yo,Yo=null,Ku=0,lt&6)throw Error(oe(331));var o=lt;for(lt|=4,we=e.current;we!==null;){var a=we,i=a.child;if(we.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lKt()-ov?Na(e,0):nv|=r),Ir(e,t)}function aS(e,t){t===0&&(e.mode&1?(t=Pc,Pc<<=1,!(Pc&130023424)&&(Pc=4194304)):t=1);var r=Er();e=Po(e,t),e!==null&&(nc(e,t,r),Ir(e,r))}function LE(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),aS(e,r)}function IE(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(oe(314))}n!==null&&n.delete(t),aS(e,r)}var iS;iS=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Or.current)_r=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return _r=!1,wE(e,t,r);_r=!!(e.flags&131072)}else _r=!1,Mt&&t.flags&1048576&&cb(t,Au,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;lu(e,t),e=t.pendingProps;var o=Gi(t,br.current);Bi(t,r),o=Jm(null,t,n,e,o,r);var a=Qm();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,Lr(n)?(a=!0,Iu(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Km(t),o.updater=Ld,t.stateNode=o,o._reactInternals=t,kh(t,n,e,r),t=Th(null,t,n,!0,a,r)):(t.tag=0,Mt&&a&&Bm(t),kr(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(lu(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=AE(n),e=$n(n,e),o){case 0:t=Eh(null,t,n,e,r);break e;case 1:t=yy(null,t,n,e,r);break e;case 11:t=vy(null,t,n,e,r);break e;case 14:t=gy(null,t,n,$n(n.type,e),r);break e}throw Error(oe(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:$n(n,o),Eh(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:$n(n,o),yy(e,t,n,o,r);case 3:e:{if(Ub(t),e===null)throw Error(oe(387));n=t.pendingProps,a=t.memoizedState,o=a.element,pb(e,t),zu(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Qi(Error(oe(423)),t),t=xy(e,t,n,r,o);break e}else if(n!==o){o=Qi(Error(oe(424)),t),t=xy(e,t,n,r,o);break e}else for(Kr=ta(t.stateNode.containerInfo.firstChild),Zr=t,Mt=!0,Mn=null,r=gb(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Yi(),n===o){t=jo(e,t,r);break e}kr(e,t,n,r)}t=t.child}return t;case 5:return yb(t),e===null&&Sh(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,vh(n,o)?i=null:a!==null&&vh(n,a)&&(t.flags|=32),Vb(e,t),kr(e,t,i,r),t.child;case 6:return e===null&&Sh(t),null;case 13:return Wb(e,t,r);case 4:return Zm(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=qi(t,null,n,r):kr(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:$n(n,o),vy(e,t,n,o,r);case 7:return kr(e,t,t.pendingProps,r),t.child;case 8:return kr(e,t,t.pendingProps.children,r),t.child;case 12:return kr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,kt(Du,n._currentValue),n._currentValue=i,a!==null)if(Bn(a.value,i)){if(a.children===o.children&&!Or.current){t=jo(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=Ro(-1,r&-r),l.tag=2;var c=a.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}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),wh(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(oe(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),wh(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}kr(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Bi(t,r),o=vn(o),n=n(o),t.flags|=1,kr(e,t,n,r),t.child;case 14:return n=t.type,o=$n(n,t.pendingProps),o=$n(n.type,o),gy(e,t,n,o,r);case 15:return zb(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:$n(n,o),lu(e,t),t.tag=1,Lr(n)?(e=!0,Iu(t)):e=!1,Bi(t,r),mb(t,n,o),kh(t,n,o,r),Th(null,t,n,!0,e,r);case 19:return Hb(e,t,r);case 22:return Fb(e,t,r)}throw Error(oe(156,t.tag))};function sS(e,t){return Ox(e,t)}function NE(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pn(e,t,r,n){return new NE(e,t,r,n)}function lv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function AE(e){if(typeof e=="function")return lv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Tm)return 11;if(e===$m)return 14}return 2}function aa(e,t){var r=e.alternate;return r===null?(r=pn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function du(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")lv(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case bi:return Aa(r.children,o,a,t);case Em:i=8,o|=8;break;case Gp:return e=pn(12,r,t,o|2),e.elementType=Gp,e.lanes=a,e;case Yp:return e=pn(13,r,t,o),e.elementType=Yp,e.lanes=a,e;case qp:return e=pn(19,r,t,o),e.elementType=qp,e.lanes=a,e;case vx:return Dd(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hx:i=10;break e;case mx:i=9;break e;case Tm:i=11;break e;case $m:i=14;break e;case Vo:i=16,n=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=pn(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function Aa(e,t,r,n){return e=pn(7,e,n,t),e.lanes=r,e}function Dd(e,t,r,n){return e=pn(22,e,n,t),e.elementType=vx,e.lanes=r,e.stateNode={isHidden:!1},e}function gp(e,t,r){return e=pn(6,e,null,t),e.lanes=r,e}function yp(e,t,r){return t=pn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function DE(e,t,r,n,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=Qf(0),this.expirationTimes=Qf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qf(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function cv(e,t,r,n,o,a,i,s,l){return e=new DE(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=pn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Km(a),e}function BE(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dS)}catch(e){console.error(e)}}dS(),cx.exports=Jr;var pv=cx.exports;const Fc=tc(pv);var My=pv;Kp.createRoot=My.createRoot,Kp.hydrateRoot=My.hydrateRoot;const Ll={black:"#000",white:"#fff"},ii={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},si={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},li={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ci={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ui={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Os={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},fu={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Mo(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const Nn="$$material";function Yu(){return Yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?dr(gs,--Dr):0,es--,Yt===10&&(es=1,Wd--),Yt}function Gr(){return Yt=Dr2||Nl(Yt)>3?"":" "}function aT(e,t){for(;--t&&Gr()&&!(Yt<48||Yt>102||Yt>57&&Yt<65||Yt>70&&Yt<97););return sc(e,pu()+(t<6&&oo()==32&&Gr()==32))}function zh(e){for(;Gr();)switch(Yt){case e:return Dr;case 34:case 39:e!==34&&e!==39&&zh(Yt);break;case 40:e===41&&zh(e);break;case 92:Gr();break}return Dr}function iT(e,t){for(;Gr()&&e+Yt!==57;)if(e+Yt===84&&oo()===47)break;return"/*"+sc(t,Dr-1)+"*"+Ud(e===47?e:Gr())}function sT(e){for(;!Nl(oo());)Gr();return sc(e,Dr)}function lT(e){return yS(mu("",null,null,null,[""],e=gS(e),0,[0],e))}function mu(e,t,r,n,o,a,i,s,l){for(var c=0,u=0,d=i,f=0,y=0,b=0,w=1,C=1,x=1,g=0,v="",m=o,k=a,R=n,E=v;C;)switch(b=g,g=Gr()){case 40:if(b!=108&&dr(E,d-1)==58){Bh(E+=pt(hu(g),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:E+=hu(g);break;case 9:case 10:case 13:case 32:E+=oT(b);break;case 92:E+=aT(pu()-1,7);continue;case 47:switch(oo()){case 42:case 47:Vc(cT(iT(Gr(),pu()),t,r),l);break;default:E+="/"}break;case 123*w:s[c++]=Jn(E)*x;case 125*w:case 59:case 0:switch(g){case 0:case 125:C=0;case 59+u:x==-1&&(E=pt(E,/\f/g,"")),y>0&&Jn(E)-d&&Vc(y>32?Oy(E+";",n,r,d-1):Oy(pt(E," ","")+";",n,r,d-2),l);break;case 59:E+=";";default:if(Vc(R=_y(E,t,r,c,u,o,s,v,m=[],k=[],d),a),g===123)if(u===0)mu(E,t,R,R,m,a,d,s,k);else switch(f===99&&dr(E,3)===110?100:f){case 100:case 108:case 109:case 115:mu(e,R,R,n&&Vc(_y(e,R,R,0,0,o,s,v,o,m=[],d),k),o,k,d,s,n?m:k);break;default:mu(E,R,R,R,[""],k,0,s,k)}}c=u=y=0,w=x=1,v=E="",d=i;break;case 58:d=1+Jn(E),y=b;default:if(w<1){if(g==123)--w;else if(g==125&&w++==0&&nT()==125)continue}switch(E+=Ud(g),g*w){case 38:x=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Jn(E)-1)*x,x=1;break;case 64:oo()===45&&(E+=hu(Gr())),f=oo(),u=d=Jn(v=E+=sT(pu())),g++;break;case 45:b===45&&Jn(E)==2&&(w=0)}}return a}function _y(e,t,r,n,o,a,i,s,l,c,u){for(var d=o-1,f=o===0?a:[""],y=vv(f),b=0,w=0,C=0;b0?f[x]+" "+g:pt(g,/&\f/g,f[x])))&&(l[C++]=v);return Hd(e,t,r,o===0?hv:s,l,c,u)}function cT(e,t,r){return Hd(e,t,r,pS,Ud(rT()),Il(e,2,-2),0)}function Oy(e,t,r,n){return Hd(e,t,r,mv,Il(e,0,n),Il(e,n+1,-1),n)}function Fi(e,t){for(var r="",n=vv(e),o=0;o6)switch(dr(e,t+1)){case 109:if(dr(e,t+4)!==45)break;case 102:return pt(e,/(.+:)(.+)-([^]+)/,"$1"+ft+"$2-$3$1"+qu+(dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bh(e,"stretch")?xS(pt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(dr(e,t+1)!==115)break;case 6444:switch(dr(e,Jn(e)-3-(~Bh(e,"!important")&&10))){case 107:return pt(e,":",":"+ft)+e;case 101:return pt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ft+(dr(e,14)===45?"inline-":"")+"box$3$1"+ft+"$2$3$1"+yr+"$2box$3")+e}break;case 5936:switch(dr(e,t+11)){case 114:return ft+e+yr+pt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ft+e+yr+pt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ft+e+yr+pt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ft+e+yr+e+e}return e}var yT=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case mv:t.return=xS(t.value,t.length);break;case hS:return Fi([Ls(t,{value:pt(t.value,"@","@"+ft)})],o);case hv:if(t.length)return tT(t.props,function(a){switch(eT(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fi([Ls(t,{props:[pt(a,/:(read-\w+)/,":"+qu+"$1")]})],o);case"::placeholder":return Fi([Ls(t,{props:[pt(a,/:(plac\w+)/,":"+ft+"input-$1")]}),Ls(t,{props:[pt(a,/:(plac\w+)/,":"+qu+"$1")]}),Ls(t,{props:[pt(a,/:(plac\w+)/,yr+"input-$1")]})],o)}return""})}},xT=[yT],bT=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var C=w.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||xT,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var C=w.getAttribute("data-emotion").split(" "),x=1;x=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var DT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},BT=/[A-Z]|^ms/g,zT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ES=function(t){return t.charCodeAt(1)===45},Dy=function(t){return t!=null&&typeof t!="boolean"},xp=fS(function(e){return ES(e)?e:e.replace(BT,"-$&").toLowerCase()}),By=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(zT,function(n,o,a){return Qn={name:o,styles:a,next:Qn},o})}return DT[t]!==1&&!ES(t)&&typeof r=="number"&&r!==0?r+"px":r};function Al(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Qn={name:r.name,styles:r.styles,next:Qn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Qn={name:n.name,styles:n.styles,next:Qn},n=n.next;var o=r.styles+";";return o}return FT(e,t,r)}case"function":{if(e!==void 0){var a=Qn,i=r(e);return Qn=a,Al(e,t,i)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function FT(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?HT:KT},Uy=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},ZT=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return kS(r,n,o),UT(function(){return RS(r,n,o)}),null},GT=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=Uy(t,r,n),l=s||Vy(o),c=!l("as");return function(){var u=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,y=1;y=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var JT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function QT(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var XT=!1,e5=/[A-Z]|^ms/g,t5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jS=function(t){return t.charCodeAt(1)===45},Wy=function(t){return t!=null&&typeof t!="boolean"},bp=QT(function(e){return jS(e)?e:e.replace(e5,"-$&").toLowerCase()}),Hy=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(t5,function(n,o,a){return qo={name:o,styles:a,next:qo},o})}return JT[t]!==1&&!jS(t)&&typeof r=="number"&&r!==0?r+"px":r},r5="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ju(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return qo={name:o.name,styles:o.styles,next:qo},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)qo={name:i.name,styles:i.styles,next:qo},i=i.next;var s=a.styles+";";return s}return n5(e,t,r)}}var l=r;return l}function n5(e,t,r){var n="";if(Array.isArray(r))for(var o=0;ot(a5(o)?r:o):t;return p.jsx(WT,{styles:n})}/** + * @mui/styled-engine v6.1.5 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function _S(e,t){return Fh(e,t)}function i5(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Zy=[];function Gy(e){return Zy[0]=e,o5(Zy)}function eo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function OS(e){if(!eo(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=OS(e[r])}),t}function sr(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return eo(e)&&eo(t)&&Object.keys(t).forEach(o=>{eo(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&eo(e[o])?n[o]=sr(e[o],t[o],r):r.clone?n[o]=eo(t[o])?OS(t[o]):t[o]:n[o]=t[o]}),n}const s5=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function l5(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,a=s5(t),i=Object.keys(a);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function c(f,y){const b=i.indexOf(y);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:y)-n/100}${r})`}function u(f){return i.indexOf(f)+1n.startsWith("@container")).sort((n,o)=>{var i,s;const a=/min-width:\s*([0-9.]+)/;return+(((i=n.match(a))==null?void 0:i[1])||0)-+(((s=o.match(a))==null?void 0:s[1])||0)});return r.length?r.reduce((n,o)=>{const a=t[o];return delete n[o],n[o]=a,n},{...t}):t}function u5(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function d5(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(a)}function f5(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function r(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const l=t(e.breakpoints.not(...s),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},o=a=>(r(n,a),n);return r(o),{...e,containerQueries:o}}const p5={borderRadius:4};function ul(e,t){return t?sr(e,t,{clone:!1}):e}const of={xs:0,sm:600,md:900,lg:1200,xl:1536},Yy={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${of[e]}px)`},h5={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:of[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Br(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Yy;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){const a=n.breakpoints||Yy;return Object.keys(t).reduce((i,s)=>{if(u5(a.keys,s)){const l=d5(n.containerQueries?n:h5,s);l&&(i[l]=r(t[s],s))}else if(Object.keys(a.values||of).includes(s)){const l=a.up(s);i[l]=r(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return r(t)}function LS(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function IS(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function m5(e,...t){const r=LS(e),n=[r,...t].reduce((o,a)=>sr(o,a),{});return IS(Object.keys(r),n)}function v5(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a{e[o]!=null&&(r[o]=!0)}),r}function Da({values:e,breakpoints:t,base:r}){const n=r||v5(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function J(e){if(typeof e!="string")throw new Error(Mo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ts(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Qu(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=ts(e,r)||n,t&&(o=t(o,n,e)),o}function Zt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=ts(l,n)||{};return Br(i,s,d=>{let f=Qu(c,o,d);return d===f&&typeof d=="string"&&(f=Qu(c,o,`${t}${d==="default"?"":J(d)}`,d)),r===!1?f:{[r]:f}})};return a.propTypes={},a.filterProps=[t],a}function g5(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const y5={m:"margin",p:"padding"},x5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},b5=g5(e=>{if(e.length>2)if(qy[e])e=qy[e];else return[e];const[t,r]=e.split(""),n=y5[t],o=x5[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Cv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],kv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Cv,...kv];function lc(e,t,r,n){const o=ts(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function af(e){return lc(e,"spacing",8)}function Za(e,t){return typeof t=="string"||t==null?t:e(t)}function S5(e,t){return r=>e.reduce((n,o)=>(n[o]=Za(t,r),n),{})}function w5(e,t,r,n){if(!t.includes(r))return null;const o=b5(r),a=S5(o,n),i=e[r];return Br(e,i,a)}function NS(e,t){const r=af(e.theme);return Object.keys(e).map(n=>w5(e,t,n,r)).reduce(ul,{})}function zt(e){return NS(e,Cv)}zt.propTypes={};zt.filterProps=Cv;function Ft(e){return NS(e,kv)}Ft.propTypes={};Ft.filterProps=kv;function AS(e=8,t=af({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function sf(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?ul(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function fn(e){return typeof e!="number"?e:`${e}px solid`}function wn(e,t){return Zt({prop:e,themeKey:"borders",transform:t})}const C5=wn("border",fn),k5=wn("borderTop",fn),R5=wn("borderRight",fn),E5=wn("borderBottom",fn),T5=wn("borderLeft",fn),$5=wn("borderColor"),P5=wn("borderTopColor"),j5=wn("borderRightColor"),M5=wn("borderBottomColor"),_5=wn("borderLeftColor"),O5=wn("outline",fn),L5=wn("outlineColor"),lf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=lc(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Za(t,n)});return Br(e,e.borderRadius,r)}return null};lf.propTypes={};lf.filterProps=["borderRadius"];sf(C5,k5,R5,E5,T5,$5,P5,j5,M5,_5,lf,O5,L5);const cf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=lc(e.theme,"spacing",8),r=n=>({gap:Za(t,n)});return Br(e,e.gap,r)}return null};cf.propTypes={};cf.filterProps=["gap"];const uf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=lc(e.theme,"spacing",8),r=n=>({columnGap:Za(t,n)});return Br(e,e.columnGap,r)}return null};uf.propTypes={};uf.filterProps=["columnGap"];const df=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=lc(e.theme,"spacing",8),r=n=>({rowGap:Za(t,n)});return Br(e,e.rowGap,r)}return null};df.propTypes={};df.filterProps=["rowGap"];const I5=Zt({prop:"gridColumn"}),N5=Zt({prop:"gridRow"}),A5=Zt({prop:"gridAutoFlow"}),D5=Zt({prop:"gridAutoColumns"}),B5=Zt({prop:"gridAutoRows"}),z5=Zt({prop:"gridTemplateColumns"}),F5=Zt({prop:"gridTemplateRows"}),V5=Zt({prop:"gridTemplateAreas"}),U5=Zt({prop:"gridArea"});sf(cf,uf,df,I5,N5,A5,D5,B5,z5,F5,V5,U5);function Vi(e,t){return t==="grey"?t:e}const W5=Zt({prop:"color",themeKey:"palette",transform:Vi}),H5=Zt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vi}),K5=Zt({prop:"backgroundColor",themeKey:"palette",transform:Vi});sf(W5,H5,K5);function Hr(e){return e<=1&&e!==0?`${e*100}%`:e}const Z5=Zt({prop:"width",transform:Hr}),Rv=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,a,i,s,l;const n=((i=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[r])||of[r];return n?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Hr(r)}};return Br(e,e.maxWidth,t)}return null};Rv.filterProps=["maxWidth"];const G5=Zt({prop:"minWidth",transform:Hr}),Y5=Zt({prop:"height",transform:Hr}),q5=Zt({prop:"maxHeight",transform:Hr}),J5=Zt({prop:"minHeight",transform:Hr});Zt({prop:"size",cssProperty:"width",transform:Hr});Zt({prop:"size",cssProperty:"height",transform:Hr});const Q5=Zt({prop:"boxSizing"});sf(Z5,Rv,G5,Y5,q5,J5,Q5);const cc={border:{themeKey:"borders",transform:fn},borderTop:{themeKey:"borders",transform:fn},borderRight:{themeKey:"borders",transform:fn},borderBottom:{themeKey:"borders",transform:fn},borderLeft:{themeKey:"borders",transform:fn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:fn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lf},color:{themeKey:"palette",transform:Vi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vi},backgroundColor:{themeKey:"palette",transform:Vi},p:{style:Ft},pt:{style:Ft},pr:{style:Ft},pb:{style:Ft},pl:{style:Ft},px:{style:Ft},py:{style:Ft},padding:{style:Ft},paddingTop:{style:Ft},paddingRight:{style:Ft},paddingBottom:{style:Ft},paddingLeft:{style:Ft},paddingX:{style:Ft},paddingY:{style:Ft},paddingInline:{style:Ft},paddingInlineStart:{style:Ft},paddingInlineEnd:{style:Ft},paddingBlock:{style:Ft},paddingBlockStart:{style:Ft},paddingBlockEnd:{style:Ft},m:{style:zt},mt:{style:zt},mr:{style:zt},mb:{style:zt},ml:{style:zt},mx:{style:zt},my:{style:zt},margin:{style:zt},marginTop:{style:zt},marginRight:{style:zt},marginBottom:{style:zt},marginLeft:{style:zt},marginX:{style:zt},marginY:{style:zt},marginInline:{style:zt},marginInlineStart:{style:zt},marginInlineEnd:{style:zt},marginBlock:{style:zt},marginBlockStart:{style:zt},marginBlockEnd:{style:zt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:cf},rowGap:{style:df},columnGap:{style:uf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Hr},maxWidth:{style:Rv},minWidth:{transform:Hr},height:{transform:Hr},maxHeight:{transform:Hr},minHeight:{transform:Hr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function X5(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function e$(e,t){return typeof e=="function"?e(t):e}function t$(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:d}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const f=ts(o,c)||{};return d?d(i):Br(i,n,b=>{let w=Qu(f,u,b);return b===w&&typeof b=="string"&&(w=Qu(f,u,`${r}${b==="default"?"":J(b)}`,b)),l===!1?w:{[l]:w}})}function t(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const a=o.unstable_sxConfig??cc;function i(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=LS(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const y=e$(l[f],o);if(y!=null)if(typeof y=="object")if(a[f])d=ul(d,e(f,y,o,a));else{const b=Br({theme:o},y,w=>({[f]:w}));X5(b,y)?d[f]=t({sx:y,theme:o}):d=ul(d,b)}else d=ul(d,e(f,y,o,a))}),c5(o,IS(u,d))}return Array.isArray(n)?n.map(i):i(n)}return t}const la=t$();la.filterProps=["sx"];function r$(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function ff(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...i}=e,s=l5(r),l=AS(o);let c=sr({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...p5,...a}},i);return c=f5(c),c.applyStyles=r$,c=t.reduce((u,d)=>sr(u,d),c),c.unstable_sxConfig={...cc,...i==null?void 0:i.unstable_sxConfig},c.unstable_sx=function(d){return la({sx:d,theme:this})},c}function n$(e){return Object.keys(e).length===0}function Ev(e=null){const t=h.useContext(rf);return!t||n$(t)?e:t}const o$=ff();function pf(e=o$){return Ev(e)}function a$({styles:e,themeId:t,defaultTheme:r={}}){const n=pf(r),o=typeof e=="function"?e(t&&n[t]||n):e;return p.jsx(MS,{styles:o})}const i$=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??cc;return Object.keys(e).forEach(o=>{r[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function hf(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=i$(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return eo(s)?{...n,...s}:n}:a={...n,...t},{...o,sx:a}}const Jy=e=>e,s$=()=>{let e=Jy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Jy}}},DS=s$();function BS(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(la);return h.forwardRef(function(l,c){const u=pf(r),{className:d,component:f="div",...y}=hf(l);return p.jsx(a,{as:f,ref:c,className:le(d,o?o(n):n),theme:t&&u[t]||u,...y})})}const c$={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ne(e,t,r="Mui"){const n=c$[t];return n?`${r}-${n}`:`${DS.generate(e)}-${t}`}function Le(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ne(e,o,r)}),n}var xt={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Tv=Symbol.for("react.element"),$v=Symbol.for("react.portal"),mf=Symbol.for("react.fragment"),vf=Symbol.for("react.strict_mode"),gf=Symbol.for("react.profiler"),yf=Symbol.for("react.provider"),xf=Symbol.for("react.context"),u$=Symbol.for("react.server_context"),bf=Symbol.for("react.forward_ref"),Sf=Symbol.for("react.suspense"),wf=Symbol.for("react.suspense_list"),Cf=Symbol.for("react.memo"),kf=Symbol.for("react.lazy"),d$=Symbol.for("react.offscreen"),zS;zS=Symbol.for("react.module.reference");function Cn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Tv:switch(e=e.type,e){case mf:case gf:case vf:case Sf:case wf:return e;default:switch(e=e&&e.$$typeof,e){case u$:case xf:case bf:case kf:case Cf:case yf:return e;default:return t}}case $v:return t}}}xt.ContextConsumer=xf;xt.ContextProvider=yf;xt.Element=Tv;xt.ForwardRef=bf;xt.Fragment=mf;xt.Lazy=kf;xt.Memo=Cf;xt.Portal=$v;xt.Profiler=gf;xt.StrictMode=vf;xt.Suspense=Sf;xt.SuspenseList=wf;xt.isAsyncMode=function(){return!1};xt.isConcurrentMode=function(){return!1};xt.isContextConsumer=function(e){return Cn(e)===xf};xt.isContextProvider=function(e){return Cn(e)===yf};xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Tv};xt.isForwardRef=function(e){return Cn(e)===bf};xt.isFragment=function(e){return Cn(e)===mf};xt.isLazy=function(e){return Cn(e)===kf};xt.isMemo=function(e){return Cn(e)===Cf};xt.isPortal=function(e){return Cn(e)===$v};xt.isProfiler=function(e){return Cn(e)===gf};xt.isStrictMode=function(e){return Cn(e)===vf};xt.isSuspense=function(e){return Cn(e)===Sf};xt.isSuspenseList=function(e){return Cn(e)===wf};xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mf||e===gf||e===vf||e===Sf||e===wf||e===d$||typeof e=="object"&&e!==null&&(e.$$typeof===kf||e.$$typeof===Cf||e.$$typeof===yf||e.$$typeof===xf||e.$$typeof===bf||e.$$typeof===zS||e.getModuleId!==void 0)};xt.typeOf=Cn;function FS(e){const{variants:t,...r}=e,n={variants:t,style:Gy(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Gy(o.style))}),n}const f$=ff();function Sp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function p$(e){return e?(t,r)=>r[e]:null}function h$(e,t,r){e.theme=v$(e.theme)?r:e.theme[t]||e.theme}function vu(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>vu(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:o,...a}=r;n=a}return VS(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function VS(e,t,r=[]){var o;let n;e:for(let a=0;a{i5(s,k=>k.filter(R=>R!==la));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:y=p$(y$(u)),...b}=l,w=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,C=f||!1;let x=Sp;u==="Root"||u==="root"?x=n:u?x=o:g$(s)&&(x=void 0);const g=_S(s,{shouldForwardProp:x,label:m$(),...b}),v=k=>{if(typeof k=="function"&&k.__emotion_real!==k)return function(E){return vu(E,k)};if(eo(k)){const R=FS(k);return R.variants?function($){return vu($,R)}:R.style}return k},m=(...k)=>{const R=[],E=k.map(v),$=[];if(R.push(a),c&&y&&$.push(function(N){var O,V;const D=(V=(O=N.theme.components)==null?void 0:O[c])==null?void 0:V.styleOverrides;if(!D)return null;const _={};for(const j in D)_[j]=vu(N,D[j]);return y(N,_)}),c&&!w&&$.push(function(N){var _,O;const z=N.theme,D=(O=(_=z==null?void 0:z.components)==null?void 0:_[c])==null?void 0:O.variants;return D?VS(N,D):null}),C||$.push(la),Array.isArray(E[0])){const P=E.shift(),N=new Array(R.length).fill(""),z=new Array($.length).fill("");let D;D=[...N,...P,...z],D.raw=[...N,...P.raw,...z],R.unshift(D)}const I=[...R,...E,...$],S=g(...I);return s.muiName&&(S.muiName=s.muiName),S};return g.withConfig&&(m.withConfig=g.withConfig),m}}function m$(e,t){return void 0}function v$(e){for(const t in e)return!1;return!0}function g$(e){return typeof e=="string"&&e.charCodeAt(0)>96}function y$(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const x$=US();function rs(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],i=t[o];if(!i)r[o]=a||{};else if(!a)r[o]=i;else{r[o]={...i};for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const l=s;r[o][l]=rs(a[l],i[l])}}}else r[o]===void 0&&(r[o]=e[o])}return r}function WS(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:rs(t.components[r].defaultProps,n)}function HS({props:e,name:t,defaultTheme:r,themeId:n}){let o=pf(r);return n&&(o=o[n]||o),WS({theme:o,name:t,props:e})}const yn=typeof window<"u"?h.useLayoutEffect:h.useEffect;function b$(e,t,r,n,o){const[a,i]=h.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return yn(()=>{if(!r)return;const s=r(e),l=()=>{i(s.matches)};return l(),s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[e,r]),a}const S$={...vl},KS=S$.useSyncExternalStore;function w$(e,t,r,n,o){const a=h.useCallback(()=>t,[t]),i=h.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:u}=n(e);return()=>u}return a},[a,e,n,o,r]),[s,l]=h.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const u=r(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[a,r,e]);return KS(l,s,i)}function C$(e,t={}){const r=Ev(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=WS({name:"MuiUseMediaQuery",props:t,theme:r});let l=typeof e=="function"?e(r):e;return l=l.replace(/^@media( ?)/m,""),(KS!==void 0?w$:b$)(l,o,a,i,s)}function k$(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Pv(e,t=0,r=1){return k$(e,t,r)}function R$(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function E$(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function _o(e){if(e.type)return e;if(e.charAt(0)==="#")return _o(R$(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Mo(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Mo(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const T$=e=>{const t=_o(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Js=(e,t)=>{try{return T$(e)}catch{return e}};function Rf(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function RB(e){if(e.startsWith("#"))return e;const{values:t}=_o(e);return`#${t.map((r,n)=>E$(n===3?Math.round(255*r):r)).join("")}`}function ZS(e){e=_o(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(c,u=(c+r/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Rf({type:s,values:l})}function Vh(e){e=_o(e);let t=e.type==="hsl"||e.type==="hsla"?_o(ZS(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function $$(e,t){const r=Vh(e),n=Vh(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function We(e,t){return e=_o(e),t=Pv(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Rf(e)}function Uc(e,t,r){try{return We(e,t)}catch{return e}}function ca(e,t){if(e=_o(e),t=Pv(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Rf(e)}function St(e,t,r){try{return ca(e,t)}catch{return e}}function ua(e,t){if(e=_o(e),t=Pv(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Rf(e)}function wt(e,t,r){try{return ua(e,t)}catch{return e}}function Xu(e,t=.15){return Vh(e)>.5?ca(e,t):ua(e,t)}function Wc(e,t,r){try{return Xu(e,t)}catch{return e}}function Qy(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Ef(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function wp(e,t){var r,n,o;return h.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(n=(r=e.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:o.muiName))!==-1}function hr(e){return e&&e.ownerDocument||document}function zn(e){return hr(e).defaultView||window}function ed(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Xy=0;function P$(e){const[t,r]=h.useState(e),n=e||t;return h.useEffect(()=>{t==null&&(Xy+=1,r(`mui-${Xy}`))},[t]),n}const j$={...vl},e0=j$.useId;function Tf(e){if(e0!==void 0){const t=e0();return e??t}return P$(e)}function Ba({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=h.useRef(e!==void 0),[a,i]=h.useState(t),s=o?e:a,l=h.useCallback(c=>{o||i(c)},[]);return[s,l]}function ar(e){const t=h.useRef(e);return yn(()=>{t.current=e}),h.useRef((...r)=>(0,t.current)(...r)).current}function Wt(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{ed(r,t)})},e)}const t0={};function GS(e,t){const r=h.useRef(t0);return r.current===t0&&(r.current=e(t)),r}const M$=[];function _$(e){h.useEffect(e,M$)}class $f{constructor(){ks(this,"currentId",null);ks(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});ks(this,"disposeEffect",()=>this.clear)}static create(){return new $f}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Ma(){const e=GS($f.create).current;return _$(e.disposeEffect),e}function ns(e){try{return e.matches(":focus-visible")}catch{}return!1}function YS(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const O$=e=>{const t=h.useRef({});return h.useEffect(()=>{t.current=e}),t.current};function Be(e,t,r=void 0){const n={};for(const o in e){const a=e[o];let i="",s=!0;for(let l=0;ln.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function r0(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function qS(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const y=le(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),b={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},w={...r,...o,...n};return y.length>0&&(w.className=y),Object.keys(b).length>0&&(w.style=b),{props:w,internalRef:void 0}}const i=td({...o,...n}),s=r0(n),l=r0(o),c=t(i),u=le(c==null?void 0:c.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),d={...c==null?void 0:c.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},f={...c,...r,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function JS(e,t,r){return typeof e=="function"?e(t,r):e}function Oo(e){var d;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:JS(r,n),{props:s,internalRef:l}=qS({...a,externalSlotProps:i}),c=Wt(l,i==null?void 0:i.ref,(d=e.additionalProps)==null?void 0:d.ref);return Mi(t,{...s,ref:c},n)}function ti(e){var t;return parseInt(h.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const QS=h.createContext(null);function jv(){return h.useContext(QS)}const I$=typeof Symbol=="function"&&Symbol.for,N$=I$?Symbol.for("mui.nested"):"__THEME_NESTED__";function A$(e,t){return typeof t=="function"?t(e):{...e,...t}}function D$(e){const{children:t,theme:r}=e,n=jv(),o=h.useMemo(()=>{const a=n===null?{...r}:A$(n,r);return a!=null&&(a[N$]=n!==null),a},[r,n]);return p.jsx(QS.Provider,{value:o,children:t})}const XS=h.createContext();function B$({value:e,...t}){return p.jsx(XS.Provider,{value:e??!0,...t})}const xs=()=>h.useContext(XS)??!1,ew=h.createContext(void 0);function z$({value:e,children:t}){return p.jsx(ew.Provider,{value:e,children:t})}function F$(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?rs(o.defaultProps,n):!o.styleOverrides&&!o.variants?rs(o,n):n}function V$({props:e,name:t}){const r=h.useContext(ew);return F$({props:e,name:t,theme:{components:r}})}const n0={};function o0(e,t,r,n=!1){return h.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?{...t,[e]:a}:a;return n?()=>i:i}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,n])}function tw(e){const{children:t,theme:r,themeId:n}=e,o=Ev(n0),a=jv()||n0,i=o0(n,o,r),s=o0(n,a,r,!0),l=i.direction==="rtl";return p.jsx(D$,{theme:s,children:p.jsx(rf.Provider,{value:i,children:p.jsx(B$,{value:l,children:p.jsx(z$,{value:i==null?void 0:i.components,children:t})})})})}const a0={theme:void 0};function U$(e){let t,r;return function(o){let a=t;return(a===void 0||o.theme!==r)&&(a0.theme=o.theme,a=FS(e(a0)),t=a,r=o.theme),a}}const Mv="mode",_v="color-scheme",W$="data-color-scheme";function H$(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=Mv,colorSchemeStorageKey:a=_v,attribute:i=W$,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",u=i;if(i==="class"&&(u=".%s"),i==="data"&&(u="[data-%s]"),u.startsWith(".")){const f=u.substring(1);c+=`${s}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark)); + ${s}.classList.add('${f}'.replace('%s', colorScheme));`}const d=u.match(/\[([^\]]+)\]/);if(d){const[f,y]=d[1].split("=");y||(c+=`${s}.removeAttribute('${f}'.replace('%s', light)); + ${s}.removeAttribute('${f}'.replace('%s', dark));`),c+=` + ${s}.setAttribute('${f}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else c+=`${s}.setAttribute('${u}', colorScheme);`;return p.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { +try { + let colorScheme = ''; + const mode = localStorage.getItem('${o}') || '${t}'; + const dark = localStorage.getItem('${a}-dark') || '${n}'; + const light = localStorage.getItem('${a}-light') || '${r}'; + if (mode === 'system') { + // handle system mode + const mql = window.matchMedia('(prefers-color-scheme: dark)'); + if (mql.matches) { + colorScheme = dark + } else { + colorScheme = light + } + } + if (mode === 'light') { + colorScheme = light; + } + if (mode === 'dark') { + colorScheme = dark; + } + if (colorScheme) { + ${c} + } +} catch(e){}})();`}},"mui-color-scheme-init")}function i0(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function rw(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function K$(e){return rw(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Cp(e,t){if(typeof window>"u")return;let r;try{r=localStorage.getItem(e)||void 0,r||localStorage.setItem(e,t)}catch{}return r||t}function Z$(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:a=Mv,colorSchemeStorageKey:i=_v,storageWindow:s=typeof window>"u"?void 0:window}=e,l=o.join(","),c=o.length>1,[u,d]=h.useState(()=>{const v=Cp(a,t),m=Cp(`${i}-light`,r),k=Cp(`${i}-dark`,n);return{mode:v,systemMode:i0(v),lightColorScheme:m,darkColorScheme:k}}),[,f]=h.useState(!1),y=h.useRef(!1);h.useEffect(()=>{c&&f(!0),y.current=!0},[c]);const b=K$(u),w=h.useCallback(v=>{d(m=>{if(v===m.mode)return m;const k=v??t;try{localStorage.setItem(a,k)}catch{}return{...m,mode:k,systemMode:i0(k)}})},[a,t]),C=h.useCallback(v=>{v?typeof v=="string"?v&&!l.includes(v)?console.error(`\`${v}\` does not exist in \`theme.colorSchemes\`.`):d(m=>{const k={...m};return rw(m,R=>{try{localStorage.setItem(`${i}-${R}`,v)}catch{}R==="light"&&(k.lightColorScheme=v),R==="dark"&&(k.darkColorScheme=v)}),k}):d(m=>{const k={...m},R=v.light===null?r:v.light,E=v.dark===null?n:v.dark;if(R)if(!l.includes(R))console.error(`\`${R}\` does not exist in \`theme.colorSchemes\`.`);else{k.lightColorScheme=R;try{localStorage.setItem(`${i}-light`,R)}catch{}}if(E)if(!l.includes(E))console.error(`\`${E}\` does not exist in \`theme.colorSchemes\`.`);else{k.darkColorScheme=E;try{localStorage.setItem(`${i}-dark`,E)}catch{}}return k}):d(m=>{try{localStorage.setItem(`${i}-light`,r),localStorage.setItem(`${i}-dark`,n)}catch{}return{...m,lightColorScheme:r,darkColorScheme:n}})},[l,i,r,n]),x=h.useCallback(v=>{u.mode==="system"&&d(m=>{const k=v!=null&&v.matches?"dark":"light";return m.systemMode===k?m:{...m,systemMode:k}})},[u.mode]),g=h.useRef(x);return g.current=x,h.useEffect(()=>{if(typeof window.matchMedia!="function"||!c)return;const v=(...k)=>g.current(...k),m=window.matchMedia("(prefers-color-scheme: dark)");return m.addListener(v),v(m),()=>{m.removeListener(v)}},[c]),h.useEffect(()=>{if(s&&c){const v=m=>{const k=m.newValue;typeof m.key=="string"&&m.key.startsWith(i)&&(!k||l.match(k))&&(m.key.endsWith("light")&&C({light:k}),m.key.endsWith("dark")&&C({dark:k})),m.key===a&&(!k||["light","dark","system"].includes(k))&&w(k||t)};return s.addEventListener("storage",v),()=>{s.removeEventListener("storage",v)}}},[C,w,a,i,l,t,s,c]),{...u,mode:y.current||!c?u.mode:void 0,systemMode:y.current||!c?u.systemMode:void 0,colorScheme:y.current||!c?b:void 0,setMode:w,setColorScheme:C}}const G$="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Y$(e){const{themeId:t,theme:r={},modeStorageKey:n=Mv,colorSchemeStorageKey:o=_v,disableTransitionOnChange:a=!1,defaultColorScheme:i,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=h.createContext(void 0),u=()=>h.useContext(c)||l;function d(w){var Q,Z,Me,Ke,ot;const{children:C,theme:x,modeStorageKey:g=n,colorSchemeStorageKey:v=o,disableTransitionOnChange:m=a,storageWindow:k=typeof window>"u"?void 0:window,documentNode:R=typeof document>"u"?void 0:document,colorSchemeNode:E=typeof document>"u"?void 0:document.documentElement,disableNestedContext:$=!1,disableStyleSheetGeneration:I=!1,defaultMode:S="system"}=w,P=h.useRef(!1),N=jv(),z=h.useContext(c),D=!!z&&!$,_=h.useMemo(()=>x||(typeof r=="function"?r():r),[x]),O=_[t],{colorSchemes:V={},components:j={},cssVarPrefix:B,...W}=O||_,ne=Object.keys(V).filter(ze=>!!V[ze]).join(","),ae=h.useMemo(()=>ne.split(","),[ne]),de=typeof i=="string"?i:i.light,X=typeof i=="string"?i:i.dark,ue=V[de]&&V[X]?S:((Z=(Q=V[W.defaultColorScheme])==null?void 0:Q.palette)==null?void 0:Z.mode)||((Me=W.palette)==null?void 0:Me.mode),{mode:ke,setMode:Ae,systemMode:ve,lightColorScheme:$e,darkColorScheme:he,colorScheme:je,setColorScheme:fe}=Z$({supportedColorSchemes:ae,defaultLightColorScheme:de,defaultDarkColorScheme:X,modeStorageKey:g,colorSchemeStorageKey:v,defaultMode:ue,storageWindow:k});let He=ke,Ee=je;D&&(He=z.mode,Ee=z.colorScheme);const Te=Ee||W.defaultColorScheme,pe=((Ke=W.generateThemeVars)==null?void 0:Ke.call(W))||W.vars,T={...W,components:j,colorSchemes:V,cssVarPrefix:B,vars:pe};if(typeof T.generateSpacing=="function"&&(T.spacing=T.generateSpacing()),Te){const ze=V[Te];ze&&typeof ze=="object"&&Object.keys(ze).forEach(_e=>{ze[_e]&&typeof ze[_e]=="object"?T[_e]={...T[_e],...ze[_e]}:T[_e]=ze[_e]})}const A=W.colorSchemeSelector;h.useEffect(()=>{if(Ee&&E&&A&&A!=="media"){const ze=A;let _e=A;if(ze==="class"&&(_e=".%s"),ze==="data"&&(_e="[data-%s]"),ze!=null&&ze.startsWith("data-")&&!ze.includes("%s")&&(_e=`[${ze}="%s"]`),_e.startsWith("."))E.classList.remove(...ae.map(Ie=>_e.substring(1).replace("%s",Ie))),E.classList.add(_e.substring(1).replace("%s",Ee));else{const Ie=_e.replace("%s",Ee).match(/\[([^\]]+)\]/);if(Ie){const[ct,Oe]=Ie[1].split("=");Oe||ae.forEach(bt=>{E.removeAttribute(ct.replace(Ee,bt))}),E.setAttribute(ct,Oe?Oe.replace(/"|'/g,""):"")}else E.setAttribute(_e,Ee)}}},[Ee,A,E,ae]),h.useEffect(()=>{let ze;if(m&&P.current&&R){const _e=R.createElement("style");_e.appendChild(R.createTextNode(G$)),R.head.appendChild(_e),window.getComputedStyle(R.body),ze=setTimeout(()=>{R.head.removeChild(_e)},1)}return()=>{clearTimeout(ze)}},[Ee,m,R]),h.useEffect(()=>(P.current=!0,()=>{P.current=!1}),[]);const U=h.useMemo(()=>({allColorSchemes:ae,colorScheme:Ee,darkColorScheme:he,lightColorScheme:$e,mode:He,setColorScheme:fe,setMode:Ae,systemMode:ve}),[ae,Ee,he,$e,He,fe,Ae,ve]);let re=!0;(I||W.cssVariables===!1||D&&(N==null?void 0:N.cssVarPrefix)===B)&&(re=!1);const Y=p.jsxs(h.Fragment,{children:[p.jsx(tw,{themeId:O?t:void 0,theme:s?s(T):T,children:C}),re&&p.jsx(MS,{styles:((ot=T.generateStyleSheets)==null?void 0:ot.call(T))||[]})]});return D?Y:p.jsx(c.Provider,{value:U,children:Y})}const f=typeof i=="string"?i:i.light,y=typeof i=="string"?i:i.dark;return{CssVarsProvider:d,useColorScheme:u,getInitColorSchemeScript:w=>H$({colorSchemeStorageKey:o,defaultLightColorScheme:f,defaultDarkColorScheme:y,modeStorageKey:n,...w})}}function q$(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const s0=(e,t,r,n=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},J$=(e,t,r)=>{function n(o,a=[],i=[]){Object.entries(o).forEach(([s,l])=>{(!r||r&&!r([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...a,s],Array.isArray(l)?[...i,s]:i):t([...a,s],l,i))})}n(e)},Q$=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function kp(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},a={},i={};return J$(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const u=`--${r?`${r}-`:""}${s.join("-")}`,d=Q$(s,l);Object.assign(o,{[u]:d}),s0(a,s,`var(${u})`,c),s0(i,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function X$(e,t={}){const{getSelector:r=C,disableCssColorScheme:n,colorSchemeSelector:o}=t,{colorSchemes:a={},components:i,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=kp(l,t);let f=d;const y={},{[s]:b,...w}=a;if(Object.entries(w||{}).forEach(([v,m])=>{const{vars:k,css:R,varsWithDefaults:E}=kp(m,t);f=sr(f,E),y[v]={css:R,vars:k}}),b){const{css:v,vars:m,varsWithDefaults:k}=kp(b,t);f=sr(f,k),y[s]={css:v,vars:m}}function C(v,m){var R,E;let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),v){if(k==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((E=(R=a[v])==null?void 0:R.palette)==null?void 0:E.mode)||v})`]:{":root":m}};if(k)return e.defaultColorScheme===v?`:root, ${k.replace("%s",String(v))}`:k.replace("%s",String(v))}return":root"}return{vars:f,generateThemeVars:()=>{let v={...c};return Object.entries(y).forEach(([,{vars:m}])=>{v=sr(v,m)}),v},generateStyleSheets:()=>{var $,I;const v=[],m=e.defaultColorScheme||"light";function k(S,P){Object.keys(P).length&&v.push(typeof S=="string"?{[S]:{...P}}:S)}k(r(void 0,{...u}),u);const{[m]:R,...E}=y;if(R){const{css:S}=R,P=(I=($=a[m])==null?void 0:$.palette)==null?void 0:I.mode,N=!n&&P?{colorScheme:P,...S}:{...S};k(r(m,{...N}),N)}return Object.entries(E).forEach(([S,{css:P}])=>{var D,_;const N=(_=(D=a[S])==null?void 0:D.palette)==null?void 0:_.mode,z=!n&&N?{colorScheme:N,...P}:{...P};k(r(S,{...z}),z)}),v}}}function eP(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const tP=ff(),rP=x$("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function nP(e){return HS({props:e,name:"MuiStack",defaultTheme:tP})}function oP(e,t){const r=h.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],iP=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...Br({theme:t},Da({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n}))};if(e.spacing){const n=af(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Da({values:e.direction,base:o}),i=Da({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const f=c>0?a[u[c-1]]:"column";a[l]=f}}),r=sr(r,Br({theme:t},i,(l,c)=>e.useFlexGap?{gap:Za(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${aP(c?a[c]:e.direction)}`]:Za(n,l)}}))}return r=m5(t.breakpoints,r),r};function sP(e={}){const{createStyledComponent:t=rP,useThemeProps:r=nP,componentName:n="MuiStack"}=e,o=()=>Be({root:["root"]},l=>Ne(n,l),{}),a=t(iP);return h.forwardRef(function(l,c){const u=r(l),d=hf(u),{component:f="div",direction:y="column",spacing:b=0,divider:w,children:C,className:x,useFlexGap:g=!1,...v}=d,m={direction:y,spacing:b,useFlexGap:g},k=o();return p.jsx(a,{as:f,ownerState:m,ref:c,className:le(k.root,x),...v,children:w?oP(C,w):C})})}function nw(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ll.white,default:Ll.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const lP=nw();function ow(){return{text:{primary:Ll.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ll.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const l0=ow();function c0(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ua(e.main,o):t==="dark"&&(e.dark=ca(e.main,a)))}function cP(e="light"){return e==="dark"?{main:li[200],light:li[50],dark:li[400]}:{main:li[700],light:li[400],dark:li[800]}}function uP(e="light"){return e==="dark"?{main:si[200],light:si[50],dark:si[400]}:{main:si[500],light:si[300],dark:si[700]}}function dP(e="light"){return e==="dark"?{main:ii[500],light:ii[300],dark:ii[700]}:{main:ii[700],light:ii[400],dark:ii[800]}}function fP(e="light"){return e==="dark"?{main:ci[400],light:ci[300],dark:ci[700]}:{main:ci[700],light:ci[500],dark:ci[900]}}function pP(e="light"){return e==="dark"?{main:ui[400],light:ui[300],dark:ui[700]}:{main:ui[800],light:ui[500],dark:ui[900]}}function hP(e="light"){return e==="dark"?{main:Os[400],light:Os[300],dark:Os[700]}:{main:"#ed6c02",light:Os[500],dark:Os[900]}}function Ov(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=e,a=e.primary||cP(t),i=e.secondary||uP(t),s=e.error||dP(t),l=e.info||fP(t),c=e.success||pP(t),u=e.warning||hP(t);function d(w){return $$(w,l0.text.primary)>=r?l0.text.primary:lP.text.primary}const f=({color:w,name:C,mainShade:x=500,lightShade:g=300,darkShade:v=700})=>{if(w={...w},!w.main&&w[x]&&(w.main=w[x]),!w.hasOwnProperty("main"))throw new Error(Mo(11,C?` (${C})`:"",x));if(typeof w.main!="string")throw new Error(Mo(12,C?` (${C})`:"",JSON.stringify(w.main)));return c0(w,"light",g,n),c0(w,"dark",v,n),w.contrastText||(w.contrastText=d(w.main)),w};let y;return t==="light"?y=nw():t==="dark"&&(y=ow()),sr({common:{...Ll},mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:fu,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n,...y},o)}function mP(e){const t={};return Object.entries(e).forEach(n=>{const[o,a]=n;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function vP(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function gP(e){return Math.round(e*1e5)/1e5}const u0={textTransform:"uppercase"},d0='"Roboto", "Helvetica", "Arial", sans-serif';function aw(e,t){const{fontFamily:r=d0,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,f=n/14,y=u||(C=>`${C/l*f}rem`),b=(C,x,g,v,m)=>({fontFamily:r,fontWeight:C,fontSize:y(x),lineHeight:g,...r===d0?{letterSpacing:`${gP(v/x)}em`}:{},...m,...c}),w={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(i,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(i,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(i,14,1.75,.4,u0),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,u0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return sr({htmlFontSize:l,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...w},d,{clone:!1})}const yP=.2,xP=.14,bP=.12;function $t(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${yP})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xP})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${bP})`].join(",")}const SP=["none",$t(0,2,1,-1,0,1,1,0,0,1,3,0),$t(0,3,1,-2,0,2,2,0,0,1,5,0),$t(0,3,3,-2,0,3,4,0,0,1,8,0),$t(0,2,4,-1,0,4,5,0,0,1,10,0),$t(0,3,5,-1,0,5,8,0,0,1,14,0),$t(0,3,5,-1,0,6,10,0,0,1,18,0),$t(0,4,5,-2,0,7,10,1,0,2,16,1),$t(0,5,5,-3,0,8,10,1,0,3,14,2),$t(0,5,6,-3,0,9,12,1,0,3,16,2),$t(0,6,6,-3,0,10,14,1,0,4,18,3),$t(0,6,7,-4,0,11,15,1,0,4,20,3),$t(0,7,8,-4,0,12,17,2,0,5,22,4),$t(0,7,8,-4,0,13,19,2,0,5,24,4),$t(0,7,9,-4,0,14,21,2,0,5,26,4),$t(0,8,9,-5,0,15,22,2,0,6,28,5),$t(0,8,10,-5,0,16,24,2,0,6,30,5),$t(0,8,11,-5,0,17,26,2,0,6,32,5),$t(0,9,11,-5,0,18,28,2,0,7,34,6),$t(0,9,12,-6,0,19,29,2,0,7,36,6),$t(0,10,13,-6,0,20,31,3,0,8,38,7),$t(0,10,13,-6,0,21,33,3,0,8,40,7),$t(0,10,14,-6,0,22,35,3,0,8,42,7),$t(0,11,14,-7,0,23,36,3,0,9,44,8),$t(0,11,15,-7,0,24,38,3,0,9,46,8)],wP={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},CP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function f0(e){return`${Math.round(e)}ms`}function kP(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function RP(e){const t={...wP,...e.easing},r={...CP,...e.duration};return{getAutoHeightDuration:kP,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:l=0,...c}=a;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:f0(i)} ${s} ${typeof l=="string"?l:f0(l)}`).join(",")},...e,easing:t,duration:r}}const EP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function TP(e){return eo(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function iw(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let a=0;asr(y,b),f),f.unstable_sxConfig={...cc,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(b){return la({sx:b,theme:this})},f.toRuntimeSource=iw,f}function EB(...e){return rd(...e)}function Uh(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const $P=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Uh(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function sw(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function lw(e){return e==="dark"?$P:[]}function PP(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,a=Ov(t);return{palette:a,opacity:{...sw(a.mode),...r},overlays:n||lw(a.mode),...o}}function jP(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const MP=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],_P=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return MP(e.cssVarPrefix).forEach(s=>{i[s]=r[s],delete r[s]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:a?{[a.replace("%s",t)]:i,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:{...r,...i}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function OP(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function G(e,t,r){!e[t]&&r&&(e[t]=r)}function Qs(e){return!e||!e.startsWith("hsl")?e:ZS(e)}function yo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Js(Qs(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function LP(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Gn=e=>{try{return e()}catch{}},IP=(e="mui")=>q$(e);function Rp(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=PP({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:a,...i}=rd({...r,palette:{mode:o,...t==null?void 0:t.palette}});return e[n]={...t,palette:a,opacity:{...sw(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||lw(o)},i}function NP(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=jP,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(r)[0],d=n||(r.light&&u!=="light"?"light":u),f=IP(a),{[d]:y,light:b,dark:w,...C}=r,x={...C};let g=y;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(g=!0),!g)throw new Error(Mo(21,d));const v=Rp(x,g,c,d);b&&!x.light&&Rp(x,b,void 0,"light"),w&&!x.dark&&Rp(x,w,void 0,"dark");let m={defaultColorScheme:d,...v,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:x,font:{...mP(v.typography),...v.font},spacing:LP(c.spacing)};Object.keys(m.colorSchemes).forEach(I=>{const S=m.colorSchemes[I].palette,P=N=>{const z=N.split("-"),D=z[1],_=z[2];return f(N,S[D][_])};if(S.mode==="light"&&(G(S.common,"background","#fff"),G(S.common,"onBackground","#000")),S.mode==="dark"&&(G(S.common,"background","#000"),G(S.common,"onBackground","#fff")),OP(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){G(S.Alert,"errorColor",St(S.error.light,.6)),G(S.Alert,"infoColor",St(S.info.light,.6)),G(S.Alert,"successColor",St(S.success.light,.6)),G(S.Alert,"warningColor",St(S.warning.light,.6)),G(S.Alert,"errorFilledBg",P("palette-error-main")),G(S.Alert,"infoFilledBg",P("palette-info-main")),G(S.Alert,"successFilledBg",P("palette-success-main")),G(S.Alert,"warningFilledBg",P("palette-warning-main")),G(S.Alert,"errorFilledColor",Gn(()=>S.getContrastText(S.error.main))),G(S.Alert,"infoFilledColor",Gn(()=>S.getContrastText(S.info.main))),G(S.Alert,"successFilledColor",Gn(()=>S.getContrastText(S.success.main))),G(S.Alert,"warningFilledColor",Gn(()=>S.getContrastText(S.warning.main))),G(S.Alert,"errorStandardBg",wt(S.error.light,.9)),G(S.Alert,"infoStandardBg",wt(S.info.light,.9)),G(S.Alert,"successStandardBg",wt(S.success.light,.9)),G(S.Alert,"warningStandardBg",wt(S.warning.light,.9)),G(S.Alert,"errorIconColor",P("palette-error-main")),G(S.Alert,"infoIconColor",P("palette-info-main")),G(S.Alert,"successIconColor",P("palette-success-main")),G(S.Alert,"warningIconColor",P("palette-warning-main")),G(S.AppBar,"defaultBg",P("palette-grey-100")),G(S.Avatar,"defaultBg",P("palette-grey-400")),G(S.Button,"inheritContainedBg",P("palette-grey-300")),G(S.Button,"inheritContainedHoverBg",P("palette-grey-A100")),G(S.Chip,"defaultBorder",P("palette-grey-400")),G(S.Chip,"defaultAvatarColor",P("palette-grey-700")),G(S.Chip,"defaultIconColor",P("palette-grey-700")),G(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),G(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),G(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),G(S.LinearProgress,"primaryBg",wt(S.primary.main,.62)),G(S.LinearProgress,"secondaryBg",wt(S.secondary.main,.62)),G(S.LinearProgress,"errorBg",wt(S.error.main,.62)),G(S.LinearProgress,"infoBg",wt(S.info.main,.62)),G(S.LinearProgress,"successBg",wt(S.success.main,.62)),G(S.LinearProgress,"warningBg",wt(S.warning.main,.62)),G(S.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.11)`),G(S.Slider,"primaryTrack",wt(S.primary.main,.62)),G(S.Slider,"secondaryTrack",wt(S.secondary.main,.62)),G(S.Slider,"errorTrack",wt(S.error.main,.62)),G(S.Slider,"infoTrack",wt(S.info.main,.62)),G(S.Slider,"successTrack",wt(S.success.main,.62)),G(S.Slider,"warningTrack",wt(S.warning.main,.62));const N=Wc(S.background.default,.8);G(S.SnackbarContent,"bg",N),G(S.SnackbarContent,"color",Gn(()=>S.getContrastText(N))),G(S.SpeedDialAction,"fabHoverBg",Wc(S.background.paper,.15)),G(S.StepConnector,"border",P("palette-grey-400")),G(S.StepContent,"border",P("palette-grey-400")),G(S.Switch,"defaultColor",P("palette-common-white")),G(S.Switch,"defaultDisabledColor",P("palette-grey-100")),G(S.Switch,"primaryDisabledColor",wt(S.primary.main,.62)),G(S.Switch,"secondaryDisabledColor",wt(S.secondary.main,.62)),G(S.Switch,"errorDisabledColor",wt(S.error.main,.62)),G(S.Switch,"infoDisabledColor",wt(S.info.main,.62)),G(S.Switch,"successDisabledColor",wt(S.success.main,.62)),G(S.Switch,"warningDisabledColor",wt(S.warning.main,.62)),G(S.TableCell,"border",wt(Uc(S.divider,1),.88)),G(S.Tooltip,"bg",Uc(S.grey[700],.92))}if(S.mode==="dark"){G(S.Alert,"errorColor",wt(S.error.light,.6)),G(S.Alert,"infoColor",wt(S.info.light,.6)),G(S.Alert,"successColor",wt(S.success.light,.6)),G(S.Alert,"warningColor",wt(S.warning.light,.6)),G(S.Alert,"errorFilledBg",P("palette-error-dark")),G(S.Alert,"infoFilledBg",P("palette-info-dark")),G(S.Alert,"successFilledBg",P("palette-success-dark")),G(S.Alert,"warningFilledBg",P("palette-warning-dark")),G(S.Alert,"errorFilledColor",Gn(()=>S.getContrastText(S.error.dark))),G(S.Alert,"infoFilledColor",Gn(()=>S.getContrastText(S.info.dark))),G(S.Alert,"successFilledColor",Gn(()=>S.getContrastText(S.success.dark))),G(S.Alert,"warningFilledColor",Gn(()=>S.getContrastText(S.warning.dark))),G(S.Alert,"errorStandardBg",St(S.error.light,.9)),G(S.Alert,"infoStandardBg",St(S.info.light,.9)),G(S.Alert,"successStandardBg",St(S.success.light,.9)),G(S.Alert,"warningStandardBg",St(S.warning.light,.9)),G(S.Alert,"errorIconColor",P("palette-error-main")),G(S.Alert,"infoIconColor",P("palette-info-main")),G(S.Alert,"successIconColor",P("palette-success-main")),G(S.Alert,"warningIconColor",P("palette-warning-main")),G(S.AppBar,"defaultBg",P("palette-grey-900")),G(S.AppBar,"darkBg",P("palette-background-paper")),G(S.AppBar,"darkColor",P("palette-text-primary")),G(S.Avatar,"defaultBg",P("palette-grey-600")),G(S.Button,"inheritContainedBg",P("palette-grey-800")),G(S.Button,"inheritContainedHoverBg",P("palette-grey-700")),G(S.Chip,"defaultBorder",P("palette-grey-700")),G(S.Chip,"defaultAvatarColor",P("palette-grey-300")),G(S.Chip,"defaultIconColor",P("palette-grey-300")),G(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),G(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),G(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),G(S.LinearProgress,"primaryBg",St(S.primary.main,.5)),G(S.LinearProgress,"secondaryBg",St(S.secondary.main,.5)),G(S.LinearProgress,"errorBg",St(S.error.main,.5)),G(S.LinearProgress,"infoBg",St(S.info.main,.5)),G(S.LinearProgress,"successBg",St(S.success.main,.5)),G(S.LinearProgress,"warningBg",St(S.warning.main,.5)),G(S.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.13)`),G(S.Slider,"primaryTrack",St(S.primary.main,.5)),G(S.Slider,"secondaryTrack",St(S.secondary.main,.5)),G(S.Slider,"errorTrack",St(S.error.main,.5)),G(S.Slider,"infoTrack",St(S.info.main,.5)),G(S.Slider,"successTrack",St(S.success.main,.5)),G(S.Slider,"warningTrack",St(S.warning.main,.5));const N=Wc(S.background.default,.98);G(S.SnackbarContent,"bg",N),G(S.SnackbarContent,"color",Gn(()=>S.getContrastText(N))),G(S.SpeedDialAction,"fabHoverBg",Wc(S.background.paper,.15)),G(S.StepConnector,"border",P("palette-grey-600")),G(S.StepContent,"border",P("palette-grey-600")),G(S.Switch,"defaultColor",P("palette-grey-300")),G(S.Switch,"defaultDisabledColor",P("palette-grey-600")),G(S.Switch,"primaryDisabledColor",St(S.primary.main,.55)),G(S.Switch,"secondaryDisabledColor",St(S.secondary.main,.55)),G(S.Switch,"errorDisabledColor",St(S.error.main,.55)),G(S.Switch,"infoDisabledColor",St(S.info.main,.55)),G(S.Switch,"successDisabledColor",St(S.success.main,.55)),G(S.Switch,"warningDisabledColor",St(S.warning.main,.55)),G(S.TableCell,"border",St(Uc(S.divider,1),.68)),G(S.Tooltip,"bg",Uc(S.grey[700],.92))}yo(S.background,"default"),yo(S.background,"paper"),yo(S.common,"background"),yo(S.common,"onBackground"),yo(S,"divider"),Object.keys(S).forEach(N=>{const z=S[N];z&&typeof z=="object"&&(z.main&&G(S[N],"mainChannel",Js(Qs(z.main))),z.light&&G(S[N],"lightChannel",Js(Qs(z.light))),z.dark&&G(S[N],"darkChannel",Js(Qs(z.dark))),z.contrastText&&G(S[N],"contrastTextChannel",Js(Qs(z.contrastText))),N==="text"&&(yo(S[N],"primary"),yo(S[N],"secondary")),N==="action"&&(z.active&&yo(S[N],"active"),z.selected&&yo(S[N],"selected")))})}),m=t.reduce((I,S)=>sr(I,S),m);const k={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:_P(m)},{vars:R,generateThemeVars:E,generateStyleSheets:$}=X$(m,k);return m.vars=R,Object.entries(m.colorSchemes[m.defaultColorScheme]).forEach(([I,S])=>{m[I]=S}),m.generateThemeVars=E,m.generateStyleSheets=$,m.generateSpacing=function(){return AS(c.spacing,af(this))},m.getColorSchemeSelector=eP(s),m.spacing=m.generateSpacing(),m.shouldSkipGeneratingVar=i,m.unstable_sxConfig={...cc,...c==null?void 0:c.unstable_sxConfig},m.unstable_sx=function(S){return la({sx:S,theme:this})},m.toRuntimeSource=iw,m}function p0(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Ov({...r===!0?{}:r.palette,mode:t})})}function uc(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...i}=e,s=a||"light",l=o==null?void 0:o[s],c={...o,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return rd(e,...t);let u=r;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=rd({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},p0(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},p0(d,"light",c.light)),d}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),NP({...i,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const Pf=uc();function fo(){const e=pf(Pf);return e[Nn]||e}function Lv({props:e,name:t}){return HS({props:e,name:t,defaultTheme:Pf,themeId:Nn})}function cw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const en=e=>cw(e)&&e!=="classes",te=US({themeId:Nn,defaultTheme:Pf,rootShouldForwardProp:en});function h0({theme:e,...t}){const r=Nn in e?e[Nn]:void 0;return p.jsx(tw,{...t,themeId:r?Nn:void 0,theme:r||e})}const Hc={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:uw,useColorScheme:dw,getInitColorSchemeScript:AP}=Y$({themeId:Nn,theme:()=>uc({cssVariables:!0}),colorSchemeStorageKey:Hc.colorSchemeStorageKey,modeStorageKey:Hc.modeStorageKey,defaultColorScheme:{light:Hc.defaultLightColorScheme,dark:Hc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:aw(e.palette,e.typography)};return t.unstable_sx=function(n){return la({sx:n,theme:this})},t}});function TB(e){return p.jsx(uw,{...e})}let m0=!1;const $B=e=>(m0||(console.warn(["MUI: The getInitColorSchemeScript function has been deprecated.","","You should use `import InitColorSchemeScript from '@mui/material/InitColorSchemeScript'`","and replace the function call with `` instead."].join(` +`)),m0=!0),AP(e)),DP=uw;function BP({theme:e,...t}){return typeof e=="function"?p.jsx(h0,{theme:e,...t}):"colorSchemes"in(Nn in e?e[Nn]:e)?p.jsx(DP,{theme:e,...t}):p.jsx(h0,{theme:e,...t})}function zP(e){return p.jsx(a$,{...e,defaultTheme:Pf,themeId:Nn})}function Iv(e){return function(r){return p.jsx(zP,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function FP(){return hf}const Pe=U$;function Ve(e){return V$(e)}function VP(e){return Ne("MuiSvgIcon",e)}Le("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const UP=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${J(t)}`,`fontSize${J(r)}`]};return Be(o,VP,n)},WP=te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${J(r.color)}`],t[`fontSize${J(r.fontSize)}`]]}})(Pe(({theme:e})=>{var t,r,n,o,a,i,s,l,c,u,d,f,y,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,w])=>w&&w.main).map(([w])=>{var C,x;return{props:{color:w},style:{color:(x=(C=(e.vars??e).palette)==null?void 0:C[w])==null?void 0:x.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(b=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),os=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...y}=n,b=h.isValidElement(o)&&o.type==="svg",w={...n,color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:b},C={};u||(C.viewBox=f);const x=UP(w);return p.jsxs(WP,{as:s,className:le(x.root,a),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...C,...y,...b&&o.props,ownerState:w,children:[b?o.props.children:o,d?p.jsx("title",{children:d}):null]})});os&&(os.muiName="SvgIcon");function rr(e,t){function r(n,o){return p.jsx(os,{"data-testid":`${t}Icon`,ref:o,...n,children:e})}return r.muiName=os.muiName,h.memo(h.forwardRef(r))}function fw(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Wh(e,t){return Wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Wh(e,t)}function pw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wh(e,t)}const v0={disabled:!1},nd=Nt.createContext(null);var HP=function(t){return t.scrollTop},Xs="unmounted",Ea="exited",Ta="entering",vi="entered",Hh="exiting",po=function(e){pw(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,s=i&&!i.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?s?(l=Ea,a.appearStatus=Ta):l=vi:n.unmountOnExit||n.mountOnEnter?l=Xs:l=Ea,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Xs?{status:Ea}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Ta&&i!==vi&&(a=Ta):(i===Ta||i===vi)&&(a=Hh)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Ta){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Fc.findDOMNode(this);i&&HP(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ea&&this.setState({status:Xs})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Fc.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!i||v0.disabled){this.safeSetState({status:vi},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Ta},function(){a.props.onEntering(c,u),a.onTransitionEnd(f,function(){a.safeSetState({status:vi},function(){a.props.onEntered(c,u)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Fc.findDOMNode(this);if(!a||v0.disabled){this.safeSetState({status:Ea},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Hh},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Ea},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Fc.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Xs)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=fw(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Nt.createElement(nd.Provider,{value:null},typeof i=="function"?i(o,s):Nt.cloneElement(Nt.Children.only(i),s))},t}(Nt.Component);po.contextType=nd;po.propTypes={};function di(){}po.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:di,onEntering:di,onEntered:di,onExit:di,onExiting:di,onExited:di};po.UNMOUNTED=Xs;po.EXITED=Ea;po.ENTERING=Ta;po.ENTERED=vi;po.EXITING=Hh;function KP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nv(e,t){var r=function(a){return t&&h.isValidElement(a)?t(a):a},n=Object.create(null);return e&&h.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function ZP(e,t){e=e||{},t=t||{};function r(u){return u in t?t[u]:e[u]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,s={};for(var l in t){if(n[l])for(i=0;ie.scrollTop;function od(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:o.transitionDelay}}function QP(e){return Ne("MuiPaper",e)}const XP=Le("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]),PB=XP,ej=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Be(a,QP,o)},tj=te("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Pe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),ya=h.forwardRef(function(t,r){var y;const n=Ve({props:t,name:"MuiPaper"}),o=fo(),{className:a,component:i="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=n,d={...n,component:i,elevation:s,square:l,variant:c},f=ej(d);return p.jsx(tj,{as:i,ownerState:d,className:le(f.root,a),ref:r,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":(y=o.vars.overlays)==null?void 0:y[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${We("#fff",Uh(s))}, ${We("#fff",Uh(s))})`}},...u.style}})});function fr(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,y=u[e]||n,b=JS(d[e],o),{props:{component:w,...C},internalRef:x}=qS({className:r,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:b}),g=Wt(x,b==null?void 0:b.ref,t.ref),v=i?i(C):{},m={...o,...v},k=e==="root"?w||c:w,R=Mi(y,{...e==="root"&&!c&&!u[e]&&s,...e!=="root"&&!u[e]&&s,...C,...k&&{as:k},ref:g},m);return Object.keys(v).forEach(E=>{delete R[E]}),[y,R]}class ad{constructor(){ks(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new ad}static use(){const t=GS(ad.create).current,[r,n]=h.useState(!1);return t.shouldMount=r,t.setShouldMount=n,h.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=nj(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function rj(){return ad.use()}function nj(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function oj(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,d]=h.useState(!1),f=le(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=le(r.child,u&&r.childLeaving,n&&r.childPulsate);return!s&&!u&&d(!0),h.useEffect(()=>{if(!s&&l!=null){const w=setTimeout(l,c);return()=>{clearTimeout(w)}}},[l,s,c]),p.jsx("span",{className:f,style:y,children:p.jsx("span",{className:b})})}const cn=Le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Kh=550,aj=80,ij=ys` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,sj=ys` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,lj=ys` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,cj=te("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),uj=te(oj,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${cn.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${ij}; + animation-duration: ${Kh}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + &.${cn.ripplePulsate} { + animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; + } + + & .${cn.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${cn.childLeaving} { + opacity: 0; + animation-name: ${sj}; + animation-duration: ${Kh}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + & .${cn.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${lj}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,dj=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...s}=n,[l,c]=h.useState([]),u=h.useRef(0),d=h.useRef(null);h.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=h.useRef(!1),y=Ma(),b=h.useRef(null),w=h.useRef(null),C=h.useCallback(m=>{const{pulsate:k,rippleX:R,rippleY:E,rippleSize:$,cb:I}=m;c(S=>[...S,p.jsx(uj,{classes:{ripple:le(a.ripple,cn.ripple),rippleVisible:le(a.rippleVisible,cn.rippleVisible),ripplePulsate:le(a.ripplePulsate,cn.ripplePulsate),child:le(a.child,cn.child),childLeaving:le(a.childLeaving,cn.childLeaving),childPulsate:le(a.childPulsate,cn.childPulsate)},timeout:Kh,pulsate:k,rippleX:R,rippleY:E,rippleSize:$},u.current)]),u.current+=1,d.current=I},[a]),x=h.useCallback((m={},k={},R=()=>{})=>{const{pulsate:E=!1,center:$=o||k.pulsate,fakeElement:I=!1}=k;if((m==null?void 0:m.type)==="mousedown"&&f.current){f.current=!1;return}(m==null?void 0:m.type)==="touchstart"&&(f.current=!0);const S=I?null:w.current,P=S?S.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,z,D;if($||m===void 0||m.clientX===0&&m.clientY===0||!m.clientX&&!m.touches)N=Math.round(P.width/2),z=Math.round(P.height/2);else{const{clientX:_,clientY:O}=m.touches&&m.touches.length>0?m.touches[0]:m;N=Math.round(_-P.left),z=Math.round(O-P.top)}if($)D=Math.sqrt((2*P.width**2+P.height**2)/3),D%2===0&&(D+=1);else{const _=Math.max(Math.abs((S?S.clientWidth:0)-N),N)*2+2,O=Math.max(Math.abs((S?S.clientHeight:0)-z),z)*2+2;D=Math.sqrt(_**2+O**2)}m!=null&&m.touches?b.current===null&&(b.current=()=>{C({pulsate:E,rippleX:N,rippleY:z,rippleSize:D,cb:R})},y.start(aj,()=>{b.current&&(b.current(),b.current=null)})):C({pulsate:E,rippleX:N,rippleY:z,rippleSize:D,cb:R})},[o,C,y]),g=h.useCallback(()=>{x({},{pulsate:!0})},[x]),v=h.useCallback((m,k)=>{if(y.clear(),(m==null?void 0:m.type)==="touchend"&&b.current){b.current(),b.current=null,y.start(0,()=>{v(m,k)});return}b.current=null,c(R=>R.length>0?R.slice(1):R),d.current=k},[y]);return h.useImperativeHandle(r,()=>({pulsate:g,start:x,stop:v}),[g,x,v]),p.jsx(cj,{className:le(cn.root,a.root,i),ref:w,...s,children:p.jsx(Av,{component:null,exit:!0,children:l})})});function fj(e){return Ne("MuiButtonBase",e)}const pj=Le("MuiButtonBase",["root","disabled","focusVisible"]),hj=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Be({root:["root",t&&"disabled",r&&"focusVisible"]},fj,o);return r&&n&&(i.root+=` ${n}`),i},mj=te("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${pj.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Fn=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:y,LinkComponent:b="a",onBlur:w,onClick:C,onContextMenu:x,onDragLeave:g,onFocus:v,onFocusVisible:m,onKeyDown:k,onKeyUp:R,onMouseDown:E,onMouseLeave:$,onMouseUp:I,onTouchEnd:S,onTouchMove:P,onTouchStart:N,tabIndex:z=0,TouchRippleProps:D,touchRippleRef:_,type:O,...V}=n,j=h.useRef(null),B=rj(),W=Wt(B.ref,_),[ne,ae]=h.useState(!1);c&&ne&&ae(!1),h.useImperativeHandle(o,()=>({focusVisible:()=>{ae(!0),j.current.focus()}}),[]);const de=B.shouldMount&&!u&&!c;h.useEffect(()=>{ne&&f&&!u&&B.pulsate()},[u,f,ne,B]);function X(Z,Me,Ke=d){return ar(ot=>(Me&&Me(ot),Ke||B[Z](ot),!0))}const ue=X("start",E),ke=X("stop",x),Ae=X("stop",g),ve=X("stop",I),$e=X("stop",Z=>{ne&&Z.preventDefault(),$&&$(Z)}),he=X("start",N),je=X("stop",S),fe=X("stop",P),He=X("stop",Z=>{ns(Z.target)||ae(!1),w&&w(Z)},!1),Ee=ar(Z=>{j.current||(j.current=Z.currentTarget),ns(Z.target)&&(ae(!0),m&&m(Z)),v&&v(Z)}),Te=()=>{const Z=j.current;return l&&l!=="button"&&!(Z.tagName==="A"&&Z.href)},pe=ar(Z=>{f&&!Z.repeat&&ne&&Z.key===" "&&B.stop(Z,()=>{B.start(Z)}),Z.target===Z.currentTarget&&Te()&&Z.key===" "&&Z.preventDefault(),k&&k(Z),Z.target===Z.currentTarget&&Te()&&Z.key==="Enter"&&!c&&(Z.preventDefault(),C&&C(Z))}),T=ar(Z=>{f&&Z.key===" "&&ne&&!Z.defaultPrevented&&B.stop(Z,()=>{B.pulsate(Z)}),R&&R(Z),C&&Z.target===Z.currentTarget&&Te()&&Z.key===" "&&!Z.defaultPrevented&&C(Z)});let A=l;A==="button"&&(V.href||V.to)&&(A=b);const U={};A==="button"?(U.type=O===void 0?"button":O,U.disabled=c):(!V.href&&!V.to&&(U.role="button"),c&&(U["aria-disabled"]=c));const re=Wt(r,j),Y={...n,centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:z,focusVisible:ne},Q=hj(Y);return p.jsxs(mj,{as:A,className:le(Q.root,s),ownerState:Y,onBlur:He,onClick:C,onContextMenu:ke,onFocus:Ee,onKeyDown:pe,onKeyUp:T,onMouseDown:ue,onMouseLeave:$e,onMouseUp:ve,onDragLeave:Ae,onTouchEnd:je,onTouchMove:fe,onTouchStart:he,ref:re,tabIndex:c?-1:z,type:O,...U,...V,children:[i,de?p.jsx(dj,{ref:W,center:a,...D}):null]})});function vj(e){return typeof e.main=="string"}function gj(e,t=[]){if(!vj(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function _t(e=[]){return([,t])=>t&&gj(t,e)}function yj(e){return Ne("MuiAlert",e)}const g0=Le("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function xj(e){return Ne("MuiIconButton",e)}const bj=Le("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Sj=bj,wj=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${J(n)}`,o&&`edge${J(o)}`,`size${J(a)}`]};return Be(i,xj,t)},Cj=te(Fn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${J(r.color)}`],r.edge&&t[`edge${J(r.edge)}`],t[`size${J(r.size)}`]]}})(Pe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Pe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Sj.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),xn=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",...d}=n,f={...n,edge:o,color:s,disabled:l,disableFocusRipple:c,size:u},y=wj(f);return p.jsx(Cj,{className:le(y.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:r,...d,ownerState:f,children:a})}),kj=rr(p.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Rj=rr(p.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Ej=rr(p.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.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"}),"ErrorOutline"),Tj=rr(p.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),mw=rr(p.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),$j=e=>{const{variant:t,color:r,severity:n,classes:o}=e,a={root:["root",`color${J(r||n)}`,`${t}${J(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Be(a,yj,o)},Pj=te(ya,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${J(r.color||r.severity)}`]]}})(Pe(({theme:e})=>{const t=e.palette.mode==="light"?ca:ua,r=e.palette.mode==="light"?ua:ca;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(_t(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:r(e.palette[n].light,.9),[`& .${g0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(_t(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${g0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(_t(["dark"])).map(([n])=>({props:{colorSeverity:n,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${n}FilledColor`],backgroundColor:e.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[n].dark:e.palette[n].main,color:e.palette.getContrastText(e.palette[n].main)}}}))]}})),jj=te("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Mj=te("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),y0=te("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),x0={success:p.jsx(kj,{fontSize:"inherit"}),warning:p.jsx(Rj,{fontSize:"inherit"}),error:p.jsx(Ej,{fontSize:"inherit"}),info:p.jsx(Tj,{fontSize:"inherit"})},_j=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiAlert"}),{action:o,children:a,className:i,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:f=x0,onClose:y,role:b="alert",severity:w="success",slotProps:C={},slots:x={},variant:g="standard",...v}=n,m={...n,color:l,severity:w,variant:g,colorSeverity:l||w},k=$j(m),R={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...x},slotProps:{...u,...C}},[E,$]=fr("closeButton",{elementType:xn,externalForwardedProps:R,ownerState:m}),[I,S]=fr("closeIcon",{elementType:mw,externalForwardedProps:R,ownerState:m});return p.jsxs(Pj,{role:b,elevation:0,ownerState:m,className:le(k.root,i),ref:r,...v,children:[d!==!1?p.jsx(jj,{ownerState:m,className:k.icon,children:d||f[w]||x0[w]}):null,p.jsx(Mj,{ownerState:m,className:k.message,children:a}),o!=null?p.jsx(y0,{ownerState:m,className:k.action,children:o}):null,o==null&&y?p.jsx(y0,{ownerState:m,className:k.action,children:p.jsx(E,{size:"small","aria-label":s,title:s,color:"inherit",onClick:y,...$,children:p.jsx(I,{fontSize:"small",...S})})}):null]})});function Oj(e){return Ne("MuiTypography",e)}const jB=Le("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Lj={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Ij=FP(),Nj=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${J(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Be(s,Oj,i)},Aj=te("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${J(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Pe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter(_t()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${J(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),b0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Tr=h.forwardRef(function(t,r){const{color:n,...o}=Ve({props:t,name:"MuiTypography"}),a=!Lj[n],i=Ij({...o,...a&&{color:n}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:y="body1",variantMapping:b=b0,...w}=i,C={...i,align:s,color:n,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:y,variantMapping:b},x=c||(f?"p":b[y]||b0[y])||"span",g=Nj(C);return p.jsx(Aj,{as:x,ref:r,className:le(g.root,l),...w,ownerState:C,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...w.style}})});function Dj(e){return Ne("MuiAlertTitle",e)}Le("MuiAlertTitle",["root"]);const Bj=e=>{const{classes:t}=e;return Be({root:["root"]},Dj,t)},zj=te(Tr,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(Pe(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),vw=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiAlertTitle"}),{className:o,...a}=n,i=n,s=Bj(i);return p.jsx(zj,{gutterBottom:!0,component:"div",ownerState:i,ref:r,className:le(s.root,o),...a})});function Fj(e){return Ne("MuiAppBar",e)}Le("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Vj=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${J(t)}`,`position${J(r)}`]};return Be(o,Fj,n)},S0=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Uj=te(ya,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${J(r.position)}`],t[`color${J(r.color)}`]]}})(Pe(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(_t(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?S0(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?S0(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),Wj=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed",...l}=n,c={...n,color:a,position:s,enableColorOnDark:i},u=Vj(c);return p.jsx(Uj,{square:!0,component:"header",ownerState:c,elevation:4,className:le(u.root,o,s==="fixed"&&"mui-fixed"),ref:r,...l})});function w0(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Hj(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;r&&(u=u.toLowerCase()),t&&(u=w0(u));const d=u?s.filter(f=>{let y=(a||c)(f);return r&&(y=y.toLowerCase()),t&&(y=w0(y)),o==="start"?y.startsWith(u):y.includes(u)}):s;return typeof n=="number"?d.slice(0,n):d}}const Kj=Hj(),C0=5,Zj=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},Gj=[];function Yj(e){const{unstable_isActiveElementInListbox:t=Zj,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?Gj:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:y,disabledItemsFocusable:b=!1,disableListWrap:w=!1,filterOptions:C=Kj,filterSelectedOptions:x=!1,freeSolo:g=!1,getOptionDisabled:v,getOptionKey:m,getOptionLabel:k=q=>q.label??q,groupBy:R,handleHomeEndKeys:E=!e.freeSolo,id:$,includeInputInList:I=!1,inputValue:S,isOptionEqualToValue:P=(q,H)=>q===H,multiple:N=!1,onChange:z,onClose:D,onHighlightChange:_,onInputChange:O,onOpen:V,open:j,openOnFocus:B=!1,options:W,readOnly:ne=!1,selectOnFocus:ae=!e.freeSolo,value:de}=e,X=Tf($);let ue=k;ue=q=>{const H=k(q);return typeof H!="string"?String(H):H};const ke=h.useRef(!1),Ae=h.useRef(!0),ve=h.useRef(null),$e=h.useRef(null),[he,je]=h.useState(null),[fe,He]=h.useState(-1),Ee=o?0:-1,Te=h.useRef(Ee),[pe,T]=Ba({controlled:de,default:u,name:c}),[A,U]=Ba({controlled:S,default:"",name:c,state:"inputValue"}),[re,Y]=h.useState(!1),Q=h.useCallback((q,H,me)=>{if(!(N?pe.length!(x&&(N?pe:[pe]).some(H=>H!==null&&P(q,H)))),{inputValue:ze&&Ke?"":A,getOptionLabel:ue}):[],ct=O$({filteredOptions:Ie,value:pe,inputValue:A});h.useEffect(()=>{const q=pe!==ct.value;re&&!q||g&&!q||Q(null,pe,"reset")},[pe,Q,re,ct.value,g]);const Oe=Z&&Ie.length>0&&!ne,bt=ar(q=>{q===-1?ve.current.focus():he.querySelector(`[data-tag-index="${q}"]`).focus()});h.useEffect(()=>{N&&fe>pe.length-1&&(He(-1),bt(-1))},[pe,N,fe,bt]);function Jt(q,H){if(!$e.current||q<0||q>=Ie.length)return-1;let me=q;for(;;){const Ge=$e.current.querySelector(`[data-option-index="${me}"]`),Qe=b?!1:!Ge||Ge.disabled||Ge.getAttribute("aria-disabled")==="true";if(Ge&&Ge.hasAttribute("tabindex")&&!Qe)return me;if(H==="next"?me=(me+1)%Ie.length:me=(me-1+Ie.length)%Ie.length,me===q)return-1}}const L=ar(({event:q,index:H,reason:me="auto"})=>{if(Te.current=H,H===-1?ve.current.removeAttribute("aria-activedescendant"):ve.current.setAttribute("aria-activedescendant",`${X}-option-${H}`),_&&_(q,H===-1?null:Ie[H],me),!$e.current)return;const Ge=$e.current.querySelector(`[role="option"].${r}-focused`);Ge&&(Ge.classList.remove(`${r}-focused`),Ge.classList.remove(`${r}-focusVisible`));let Qe=$e.current;if($e.current.getAttribute("role")!=="listbox"&&(Qe=$e.current.parentElement.querySelector('[role="listbox"]')),!Qe)return;if(H===-1){Qe.scrollTop=0;return}const Bt=$e.current.querySelector(`[data-option-index="${H}"]`);if(Bt&&(Bt.classList.add(`${r}-focused`),me==="keyboard"&&Bt.classList.add(`${r}-focusVisible`),Qe.scrollHeight>Qe.clientHeight&&me!=="mouse"&&me!=="touch")){const mt=Bt,En=Qe.clientHeight+Qe.scrollTop,bc=mt.offsetTop+mt.offsetHeight;bc>En?Qe.scrollTop=bc-Qe.clientHeight:mt.offsetTop-mt.offsetHeight*(R?1.3:0){if(!_e)return;const Bt=Jt((()=>{const mt=Ie.length-1;if(H==="reset")return Ee;if(H==="start")return 0;if(H==="end")return mt;const En=Te.current+H;return En<0?En===-1&&I?-1:w&&Te.current!==-1||Math.abs(H)>1?0:mt:En>mt?En===mt+1&&I?-1:w||Math.abs(H)>1?mt:0:En})(),me);if(L({index:Bt,reason:Ge,event:q}),n&&H!=="reset")if(Bt===-1)ve.current.value=A;else{const mt=ue(Ie[Bt]);ve.current.value=mt,mt.toLowerCase().indexOf(A.toLowerCase())===0&&A.length>0&&ve.current.setSelectionRange(A.length,mt.length)}}),F=()=>{const q=(H,me)=>{const Ge=H?ue(H):"",Qe=me?ue(me):"";return Ge===Qe};if(Te.current!==-1&&ct.filteredOptions&&ct.filteredOptions.length!==Ie.length&&ct.inputValue===A&&(N?pe.length===ct.value.length&&ct.value.every((H,me)=>ue(pe[me])===ue(H)):q(ct.value,pe))){const H=ct.filteredOptions[Te.current];if(H)return Ie.findIndex(me=>ue(me)===ue(H))}return-1},ee=h.useCallback(()=>{if(!_e)return;const q=F();if(q!==-1){Te.current=q;return}const H=N?pe[0]:pe;if(Ie.length===0||H==null){M({diff:"reset"});return}if($e.current){if(H!=null){const me=Ie[Te.current];if(N&&me&&pe.findIndex(Qe=>P(me,Qe))!==-1)return;const Ge=Ie.findIndex(Qe=>P(Qe,H));Ge===-1?M({diff:"reset"}):L({index:Ge});return}if(Te.current>=Ie.length-1){L({index:Ie.length-1});return}L({index:Te.current})}},[Ie.length,N?!1:pe,x,M,L,_e,A,N]),se=ar(q=>{ed($e,q),q&&ee()});h.useEffect(()=>{ee()},[ee]);const ce=q=>{Z||(Me(!0),ot(!0),V&&V(q))},Ce=(q,H)=>{Z&&(Me(!1),D&&D(q,H))},ye=(q,H,me,Ge)=>{if(N){if(pe.length===H.length&&pe.every((Qe,Bt)=>Qe===H[Bt]))return}else if(pe===H)return;z&&z(q,H,me,Ge),T(H)},xe=h.useRef(!1),rt=(q,H,me="selectOption",Ge="options")=>{let Qe=me,Bt=H;if(N){Bt=Array.isArray(pe)?pe.slice():[];const mt=Bt.findIndex(En=>P(H,En));mt===-1?Bt.push(H):Ge!=="freeSolo"&&(Bt.splice(mt,1),Qe="removeOption")}Q(q,Bt,Qe),ye(q,Bt,Qe,{option:H}),!f&&(!q||!q.ctrlKey&&!q.metaKey)&&Ce(q,Qe),(i===!0||i==="touch"&&xe.current||i==="mouse"&&!xe.current)&&ve.current.blur()};function ht(q,H){if(q===-1)return-1;let me=q;for(;;){if(H==="next"&&me===pe.length||H==="previous"&&me===-1)return-1;const Ge=he.querySelector(`[data-tag-index="${me}"]`);if(!Ge||!Ge.hasAttribute("tabindex")||Ge.disabled||Ge.getAttribute("aria-disabled")==="true")me+=H==="next"?1:-1;else return me}}const Je=(q,H)=>{if(!N)return;A===""&&Ce(q,"toggleInput");let me=fe;fe===-1?A===""&&H==="previous"&&(me=pe.length-1):(me+=H==="next"?1:-1,me<0&&(me=0),me===pe.length&&(me=-1)),me=ht(me,H),He(me),bt(me)},at=q=>{ke.current=!0,U(""),O&&O(q,"","clear"),ye(q,N?[]:null,"clear")},Se=q=>H=>{if(q.onKeyDown&&q.onKeyDown(H),!H.defaultMuiPrevented&&(fe!==-1&&!["ArrowLeft","ArrowRight"].includes(H.key)&&(He(-1),bt(-1)),H.which!==229))switch(H.key){case"Home":_e&&E&&(H.preventDefault(),M({diff:"start",direction:"next",reason:"keyboard",event:H}));break;case"End":_e&&E&&(H.preventDefault(),M({diff:"end",direction:"previous",reason:"keyboard",event:H}));break;case"PageUp":H.preventDefault(),M({diff:-C0,direction:"previous",reason:"keyboard",event:H}),ce(H);break;case"PageDown":H.preventDefault(),M({diff:C0,direction:"next",reason:"keyboard",event:H}),ce(H);break;case"ArrowDown":H.preventDefault(),M({diff:1,direction:"next",reason:"keyboard",event:H}),ce(H);break;case"ArrowUp":H.preventDefault(),M({diff:-1,direction:"previous",reason:"keyboard",event:H}),ce(H);break;case"ArrowLeft":Je(H,"previous");break;case"ArrowRight":Je(H,"next");break;case"Enter":if(Te.current!==-1&&_e){const me=Ie[Te.current],Ge=v?v(me):!1;if(H.preventDefault(),Ge)return;rt(H,me,"selectOption"),n&&ve.current.setSelectionRange(ve.current.value.length,ve.current.value.length)}else g&&A!==""&&ze===!1&&(N&&H.preventDefault(),rt(H,A,"createOption","freeSolo"));break;case"Escape":_e?(H.preventDefault(),H.stopPropagation(),Ce(H,"escape")):l&&(A!==""||N&&pe.length>0)&&(H.preventDefault(),H.stopPropagation(),at(H));break;case"Backspace":if(N&&!ne&&A===""&&pe.length>0){const me=fe===-1?pe.length-1:fe,Ge=pe.slice();Ge.splice(me,1),ye(H,Ge,"removeOption",{option:pe[me]})}break;case"Delete":if(N&&!ne&&A===""&&pe.length>0&&fe!==-1){const me=fe,Ge=pe.slice();Ge.splice(me,1),ye(H,Ge,"removeOption",{option:pe[me]})}break}},Ot=q=>{Y(!0),B&&!ke.current&&ce(q)},rn=q=>{if(t($e)){ve.current.focus();return}Y(!1),Ae.current=!0,ke.current=!1,a&&Te.current!==-1&&_e?rt(q,Ie[Te.current],"blur"):a&&g&&A!==""?rt(q,A,"blur","freeSolo"):s&&Q(q,pe,"blur"),Ce(q,"blur")},nn=q=>{const H=q.target.value;A!==H&&(U(H),ot(!1),O&&O(q,H,"input")),H===""?!d&&!N&&ye(q,null,"clear"):ce(q)},vo=q=>{const H=Number(q.currentTarget.getAttribute("data-option-index"));Te.current!==H&&L({event:q,index:H,reason:"mouse"})},wr=q=>{L({event:q,index:Number(q.currentTarget.getAttribute("data-option-index")),reason:"touch"}),xe.current=!0},Fr=q=>{const H=Number(q.currentTarget.getAttribute("data-option-index"));rt(q,Ie[H],"selectOption"),xe.current=!1},Do=q=>H=>{const me=pe.slice();me.splice(q,1),ye(H,me,"removeOption",{option:pe[q]})},Bo=q=>{Z?Ce(q,"toggleInput"):ce(q)},oi=q=>{q.currentTarget.contains(q.target)&&q.target.getAttribute("id")!==X&&q.preventDefault()},go=q=>{q.currentTarget.contains(q.target)&&(ve.current.focus(),ae&&Ae.current&&ve.current.selectionEnd-ve.current.selectionStart===0&&ve.current.select(),Ae.current=!1)},Ze=q=>{!y&&(A===""||!Z)&&Bo(q)};let ut=g&&A.length>0;ut=ut||(N?pe.length>0:pe!==null);let nr=Ie;return R&&(nr=Ie.reduce((q,H,me)=>{const Ge=R(H);return q.length>0&&q[q.length-1].group===Ge?q[q.length-1].options.push(H):q.push({key:me,index:me,group:Ge,options:[H]}),q},[])),y&&re&&rn(),{getRootProps:(q={})=>({"aria-owns":Oe?`${X}-listbox`:null,...q,onKeyDown:Se(q),onMouseDown:oi,onClick:go}),getInputLabelProps:()=>({id:`${X}-label`,htmlFor:X}),getInputProps:()=>({id:X,value:A,onBlur:rn,onFocus:Ot,onChange:nn,onMouseDown:Ze,"aria-activedescendant":_e?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Oe?`${X}-listbox`:void 0,"aria-expanded":Oe,autoComplete:"off",ref:ve,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:at}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Bo}),getTagProps:({index:q})=>({key:q,"data-tag-index":q,tabIndex:-1,...!ne&&{onDelete:Do(q)}}),getListboxProps:()=>({role:"listbox",id:`${X}-listbox`,"aria-labelledby":`${X}-label`,ref:se,onMouseDown:q=>{q.preventDefault()}}),getOptionProps:({index:q,option:H})=>{const me=(N?pe:[pe]).some(Qe=>Qe!=null&&P(H,Qe)),Ge=v?v(H):!1;return{key:(m==null?void 0:m(H))??ue(H),tabIndex:-1,role:"option",id:`${X}-option-${q}`,onMouseMove:vo,onClick:Fr,onTouchStart:wr,"data-option-index":q,"aria-disabled":Ge,"aria-selected":me}},id:X,inputValue:A,value:pe,dirty:ut,expanded:_e&&he,popupOpen:_e,focused:re||fe!==-1,anchorEl:he,setAnchorEl:je,focusedTag:fe,groupedOptions:nr}}var Nr="top",bn="bottom",Sn="right",Ar="left",Dv="auto",dc=[Nr,bn,Sn,Ar],as="start",Dl="end",qj="clippingParents",gw="viewport",Is="popper",Jj="reference",k0=dc.reduce(function(e,t){return e.concat([t+"-"+as,t+"-"+Dl])},[]),yw=[].concat(dc,[Dv]).reduce(function(e,t){return e.concat([t,t+"-"+as,t+"-"+Dl])},[]),Qj="beforeRead",Xj="read",eM="afterRead",tM="beforeMain",rM="main",nM="afterMain",oM="beforeWrite",aM="write",iM="afterWrite",sM=[Qj,Xj,eM,tM,rM,nM,oM,aM,iM];function lo(e){return e?(e.nodeName||"").toLowerCase():null}function qr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ga(e){var t=qr(e).Element;return e instanceof t||e instanceof Element}function mn(e){var t=qr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Bv(e){if(typeof ShadowRoot>"u")return!1;var t=qr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function lM(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!mn(a)||!lo(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function cM(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(l,c){return l[c]="",l},{});!mn(o)||!lo(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const uM={name:"applyStyles",enabled:!0,phase:"write",fn:lM,effect:cM,requires:["computeStyles"]};function ao(e){return e.split("-")[0]}var za=Math.max,id=Math.min,is=Math.round;function Zh(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xw(){return!/^((?!chrome|android).)*safari/i.test(Zh())}function ss(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&mn(e)&&(o=e.offsetWidth>0&&is(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&is(n.height)/e.offsetHeight||1);var i=Ga(e)?qr(e):window,s=i.visualViewport,l=!xw()&&r,c=(n.left+(l&&s?s.offsetLeft:0))/o,u=(n.top+(l&&s?s.offsetTop:0))/a,d=n.width/o,f=n.height/a;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function zv(e){var t=ss(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function bw(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Bv(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Lo(e){return qr(e).getComputedStyle(e)}function dM(e){return["table","td","th"].indexOf(lo(e))>=0}function xa(e){return((Ga(e)?e.ownerDocument:e.document)||window.document).documentElement}function jf(e){return lo(e)==="html"?e:e.assignedSlot||e.parentNode||(Bv(e)?e.host:null)||xa(e)}function R0(e){return!mn(e)||Lo(e).position==="fixed"?null:e.offsetParent}function fM(e){var t=/firefox/i.test(Zh()),r=/Trident/i.test(Zh());if(r&&mn(e)){var n=Lo(e);if(n.position==="fixed")return null}var o=jf(e);for(Bv(o)&&(o=o.host);mn(o)&&["html","body"].indexOf(lo(o))<0;){var a=Lo(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function fc(e){for(var t=qr(e),r=R0(e);r&&dM(r)&&Lo(r).position==="static";)r=R0(r);return r&&(lo(r)==="html"||lo(r)==="body"&&Lo(r).position==="static")?t:r||fM(e)||t}function Fv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dl(e,t,r){return za(e,id(t,r))}function pM(e,t,r){var n=dl(e,t,r);return n>r?r:n}function Sw(){return{top:0,right:0,bottom:0,left:0}}function ww(e){return Object.assign({},Sw(),e)}function Cw(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var hM=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ww(typeof t!="number"?t:Cw(t,dc))};function mM(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=ao(r.placement),l=Fv(s),c=[Ar,Sn].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!i)){var d=hM(o.padding,r),f=zv(a),y=l==="y"?Nr:Ar,b=l==="y"?bn:Sn,w=r.rects.reference[u]+r.rects.reference[l]-i[l]-r.rects.popper[u],C=i[l]-r.rects.reference[l],x=fc(a),g=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,v=w/2-C/2,m=d[y],k=g-f[u]-d[b],R=g/2-f[u]/2+v,E=dl(m,R,k),$=l;r.modifiersData[n]=(t={},t[$]=E,t.centerOffset=E-R,t)}}function vM(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||bw(t.elements.popper,o)&&(t.elements.arrow=o))}const gM={name:"arrow",enabled:!0,phase:"main",fn:mM,effect:vM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ls(e){return e.split("-")[1]}var yM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xM(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:is(r*o)/o||0,y:is(n*o)/o||0}}function E0(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,y=f===void 0?0:f,b=i.y,w=b===void 0?0:b,C=typeof u=="function"?u({x:y,y:w}):{x:y,y:w};y=C.x,w=C.y;var x=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),v=Ar,m=Nr,k=window;if(c){var R=fc(r),E="clientHeight",$="clientWidth";if(R===qr(r)&&(R=xa(r),Lo(R).position!=="static"&&s==="absolute"&&(E="scrollHeight",$="scrollWidth")),R=R,o===Nr||(o===Ar||o===Sn)&&a===Dl){m=bn;var I=d&&R===k&&k.visualViewport?k.visualViewport.height:R[E];w-=I-n.height,w*=l?1:-1}if(o===Ar||(o===Nr||o===bn)&&a===Dl){v=Sn;var S=d&&R===k&&k.visualViewport?k.visualViewport.width:R[$];y-=S-n.width,y*=l?1:-1}}var P=Object.assign({position:s},c&&yM),N=u===!0?xM({x:y,y:w},qr(r)):{x:y,y:w};if(y=N.x,w=N.y,l){var z;return Object.assign({},P,(z={},z[m]=g?"0":"",z[v]=x?"0":"",z.transform=(k.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",z))}return Object.assign({},P,(t={},t[m]=g?w+"px":"",t[v]=x?y+"px":"",t.transform="",t))}function bM(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:ao(t.placement),variation:ls(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,E0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,E0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const SM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bM,data:{}};var Kc={passive:!0};function wM(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,s=i===void 0?!0:i,l=qr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",r.update,Kc)}),s&&l.addEventListener("resize",r.update,Kc),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",r.update,Kc)}),s&&l.removeEventListener("resize",r.update,Kc)}}const CM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wM,data:{}};var kM={left:"right",right:"left",bottom:"top",top:"bottom"};function gu(e){return e.replace(/left|right|bottom|top/g,function(t){return kM[t]})}var RM={start:"end",end:"start"};function T0(e){return e.replace(/start|end/g,function(t){return RM[t]})}function Vv(e){var t=qr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Uv(e){return ss(xa(e)).left+Vv(e).scrollLeft}function EM(e,t){var r=qr(e),n=xa(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=xw();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+Uv(e),y:l}}function TM(e){var t,r=xa(e),n=Vv(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=za(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=za(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Uv(e),l=-n.scrollTop;return Lo(o||r).direction==="rtl"&&(s+=za(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function Wv(e){var t=Lo(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function kw(e){return["html","body","#document"].indexOf(lo(e))>=0?e.ownerDocument.body:mn(e)&&Wv(e)?e:kw(jf(e))}function fl(e,t){var r;t===void 0&&(t=[]);var n=kw(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=qr(n),i=o?[a].concat(a.visualViewport||[],Wv(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(fl(jf(i)))}function Gh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $M(e,t){var r=ss(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function $0(e,t,r){return t===gw?Gh(EM(e,r)):Ga(t)?$M(t,r):Gh(TM(xa(e)))}function PM(e){var t=fl(jf(e)),r=["absolute","fixed"].indexOf(Lo(e).position)>=0,n=r&&mn(e)?fc(e):e;return Ga(n)?t.filter(function(o){return Ga(o)&&bw(o,n)&&lo(o)!=="body"}):[]}function jM(e,t,r,n){var o=t==="clippingParents"?PM(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(l,c){var u=$0(e,c,n);return l.top=za(u.top,l.top),l.right=id(u.right,l.right),l.bottom=id(u.bottom,l.bottom),l.left=za(u.left,l.left),l},$0(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Rw(e){var t=e.reference,r=e.element,n=e.placement,o=n?ao(n):null,a=n?ls(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(o){case Nr:l={x:i,y:t.y-r.height};break;case bn:l={x:i,y:t.y+t.height};break;case Sn:l={x:t.x+t.width,y:s};break;case Ar:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?Fv(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case as:l[c]=l[c]-(t[u]/2-r[u]/2);break;case Dl:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function Bl(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,s=r.boundary,l=s===void 0?qj:s,c=r.rootBoundary,u=c===void 0?gw:c,d=r.elementContext,f=d===void 0?Is:d,y=r.altBoundary,b=y===void 0?!1:y,w=r.padding,C=w===void 0?0:w,x=ww(typeof C!="number"?C:Cw(C,dc)),g=f===Is?Jj:Is,v=e.rects.popper,m=e.elements[b?g:f],k=jM(Ga(m)?m:m.contextElement||xa(e.elements.popper),l,u,i),R=ss(e.elements.reference),E=Rw({reference:R,element:v,strategy:"absolute",placement:o}),$=Gh(Object.assign({},v,E)),I=f===Is?$:R,S={top:k.top-I.top+x.top,bottom:I.bottom-k.bottom+x.bottom,left:k.left-I.left+x.left,right:I.right-k.right+x.right},P=e.modifiersData.offset;if(f===Is&&P){var N=P[o];Object.keys(S).forEach(function(z){var D=[Sn,bn].indexOf(z)>=0?1:-1,_=[Nr,bn].indexOf(z)>=0?"y":"x";S[z]+=N[_]*D})}return S}function MM(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?yw:l,u=ls(n),d=u?s?k0:k0.filter(function(b){return ls(b)===u}):dc,f=d.filter(function(b){return c.indexOf(b)>=0});f.length===0&&(f=d);var y=f.reduce(function(b,w){return b[w]=Bl(e,{placement:w,boundary:o,rootBoundary:a,padding:i})[ao(w)],b},{});return Object.keys(y).sort(function(b,w){return y[b]-y[w]})}function _M(e){if(ao(e)===Dv)return[];var t=gu(e);return[T0(e),t,T0(t)]}function OM(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!0:i,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,f=r.altBoundary,y=r.flipVariations,b=y===void 0?!0:y,w=r.allowedAutoPlacements,C=t.options.placement,x=ao(C),g=x===C,v=l||(g||!b?[gu(C)]:_M(C)),m=[C].concat(v).reduce(function(X,ue){return X.concat(ao(ue)===Dv?MM(t,{placement:ue,boundary:u,rootBoundary:d,padding:c,flipVariations:b,allowedAutoPlacements:w}):ue)},[]),k=t.rects.reference,R=t.rects.popper,E=new Map,$=!0,I=m[0],S=0;S=0,_=D?"width":"height",O=Bl(t,{placement:P,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),V=D?z?Sn:Ar:z?bn:Nr;k[_]>R[_]&&(V=gu(V));var j=gu(V),B=[];if(a&&B.push(O[N]<=0),s&&B.push(O[V]<=0,O[j]<=0),B.every(function(X){return X})){I=P,$=!1;break}E.set(P,B)}if($)for(var W=b?3:1,ne=function(ue){var ke=m.find(function(Ae){var ve=E.get(Ae);if(ve)return ve.slice(0,ue).every(function($e){return $e})});if(ke)return I=ke,"break"},ae=W;ae>0;ae--){var de=ne(ae);if(de==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}const LM={name:"flip",enabled:!0,phase:"main",fn:OM,requiresIfExists:["offset"],data:{_skip:!1}};function P0(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function j0(e){return[Nr,Sn,bn,Ar].some(function(t){return e[t]>=0})}function IM(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Bl(t,{elementContext:"reference"}),s=Bl(t,{altBoundary:!0}),l=P0(i,n),c=P0(s,o,a),u=j0(l),d=j0(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const NM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:IM};function AM(e,t,r){var n=ao(e),o=[Ar,Nr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Ar,Sn].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function DM(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=yw.reduce(function(u,d){return u[d]=AM(d,t.rects,a),u},{}),s=i[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=i}const BM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:DM};function zM(e){var t=e.state,r=e.name;t.modifiersData[r]=Rw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const FM={name:"popperOffsets",enabled:!0,phase:"read",fn:zM,data:{}};function VM(e){return e==="x"?"y":"x"}function UM(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!1:i,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,f=r.tether,y=f===void 0?!0:f,b=r.tetherOffset,w=b===void 0?0:b,C=Bl(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=ao(t.placement),g=ls(t.placement),v=!g,m=Fv(x),k=VM(m),R=t.modifiersData.popperOffsets,E=t.rects.reference,$=t.rects.popper,I=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,S=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(R){if(a){var z,D=m==="y"?Nr:Ar,_=m==="y"?bn:Sn,O=m==="y"?"height":"width",V=R[m],j=V+C[D],B=V-C[_],W=y?-$[O]/2:0,ne=g===as?E[O]:$[O],ae=g===as?-$[O]:-E[O],de=t.elements.arrow,X=y&&de?zv(de):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Sw(),ke=ue[D],Ae=ue[_],ve=dl(0,E[O],X[O]),$e=v?E[O]/2-W-ve-ke-S.mainAxis:ne-ve-ke-S.mainAxis,he=v?-E[O]/2+W+ve+Ae+S.mainAxis:ae+ve+Ae+S.mainAxis,je=t.elements.arrow&&fc(t.elements.arrow),fe=je?m==="y"?je.clientTop||0:je.clientLeft||0:0,He=(z=P==null?void 0:P[m])!=null?z:0,Ee=V+$e-He-fe,Te=V+he-He,pe=dl(y?id(j,Ee):j,V,y?za(B,Te):B);R[m]=pe,N[m]=pe-V}if(s){var T,A=m==="x"?Nr:Ar,U=m==="x"?bn:Sn,re=R[k],Y=k==="y"?"height":"width",Q=re+C[A],Z=re-C[U],Me=[Nr,Ar].indexOf(x)!==-1,Ke=(T=P==null?void 0:P[k])!=null?T:0,ot=Me?Q:re-E[Y]-$[Y]-Ke+S.altAxis,ze=Me?re+E[Y]+$[Y]-Ke-S.altAxis:Z,_e=y&&Me?pM(ot,re,ze):dl(y?ot:Q,re,y?ze:Z);R[k]=_e,N[k]=_e-re}t.modifiersData[n]=N}}const WM={name:"preventOverflow",enabled:!0,phase:"main",fn:UM,requiresIfExists:["offset"]};function HM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function KM(e){return e===qr(e)||!mn(e)?Vv(e):HM(e)}function ZM(e){var t=e.getBoundingClientRect(),r=is(t.width)/e.offsetWidth||1,n=is(t.height)/e.offsetHeight||1;return r!==1||n!==1}function GM(e,t,r){r===void 0&&(r=!1);var n=mn(t),o=mn(t)&&ZM(t),a=xa(t),i=ss(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((lo(t)!=="body"||Wv(a))&&(s=KM(t)),mn(t)?(l=ss(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Uv(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function YM(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function qM(e){var t=YM(e);return sM.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function JM(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function QM(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var M0={placement:"bottom",modifiers:[],strategy:"absolute"};function _0(){for(var e=arguments.length,t=new Array(e),r=0;r{a||s(r_(o)||document.body)},[o,a]),yn(()=>{if(i&&!a)return ed(r,i),()=>{ed(r,null)}},[r,i,a]),a){if(h.isValidElement(n)){const c={ref:l};return h.cloneElement(n,c)}return p.jsx(h.Fragment,{children:n})}return p.jsx(h.Fragment,{children:i&&pv.createPortal(n,i)})});function n_(e){return Ne("MuiPopper",e)}Le("MuiPopper",["root"]);function o_(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Yh(e){return typeof e=="function"?e():e}function a_(e){return e.nodeType!==void 0}const i_=e=>{const{classes:t}=e;return Be({root:["root"]},n_,t)},s_={},l_=h.forwardRef(function(t,r){const{anchorEl:n,children:o,direction:a,disablePortal:i,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:y={},TransitionProps:b,ownerState:w,...C}=t,x=h.useRef(null),g=Wt(x,r),v=h.useRef(null),m=Wt(v,d),k=h.useRef(m);yn(()=>{k.current=m},[m]),h.useImperativeHandle(d,()=>v.current,[]);const R=o_(c,a),[E,$]=h.useState(R),[I,S]=h.useState(Yh(n));h.useEffect(()=>{v.current&&v.current.forceUpdate()}),h.useEffect(()=>{n&&S(Yh(n))},[n]),yn(()=>{if(!I||!l)return;const _=j=>{$(j.placement)};let O=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{_(j)}}];s!=null&&(O=O.concat(s)),u&&u.modifiers!=null&&(O=O.concat(u.modifiers));const V=t_(I,x.current,{placement:R,...u,modifiers:O});return k.current(V),()=>{V.destroy(),k.current(null)}},[I,i,s,l,u,R]);const P={placement:E};b!==null&&(P.TransitionProps=b);const N=i_(t),z=y.root??"div",D=Oo({elementType:z,externalSlotProps:f.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:g},ownerState:t,className:N.root});return p.jsx(z,{...D,children:typeof o=="function"?o(P):o})}),c_=h.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=s_,popperRef:y,style:b,transition:w=!1,slotProps:C={},slots:x={},...g}=t,[v,m]=h.useState(!0),k=()=>{m(!1)},R=()=>{m(!0)};if(!l&&!u&&(!w||v))return null;let E;if(a)E=a;else if(n){const S=Yh(n);E=S&&a_(S)?hr(S).body:hr(null).body}const $=!u&&l&&(!w||v)?"none":void 0,I=w?{in:u,onEnter:k,onExited:R}:void 0;return p.jsx(Ew,{disablePortal:s,container:E,children:p.jsx(l_,{anchorEl:n,direction:i,disablePortal:s,modifiers:c,ref:r,open:w?!v:u,placement:d,popperOptions:f,popperRef:y,slotProps:C,slots:x,...g,style:{position:"fixed",top:0,left:0,display:$,...b},TransitionProps:I,children:o})})}),u_=te(c_,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pc=h.forwardRef(function(t,r){const n=xs(),o=Ve({props:t,name:"MuiPopper"}),{anchorEl:a,component:i,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:y,placement:b,popperOptions:w,popperRef:C,transition:x,slots:g,slotProps:v,...m}=o,k=(g==null?void 0:g.root)??(s==null?void 0:s.Root),R={anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:y,placement:b,popperOptions:w,popperRef:C,transition:x,...m};return p.jsx(u_,{as:i,direction:n?"rtl":"ltr",slots:{root:k},slotProps:v??l,...R,ref:r})});function d_(e){return Ne("MuiListSubheader",e)}Le("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const f_=e=>{const{classes:t,color:r,disableGutters:n,inset:o,disableSticky:a}=e,i={root:["root",r!=="default"&&`color${J(r)}`,!n&&"gutters",o&&"inset",!a&&"sticky"]};return Be(i,d_,t)},p_=te("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${J(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(Pe(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),qh=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:i="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1,...u}=n,d={...n,color:a,component:i,disableGutters:s,disableSticky:l,inset:c},f=f_(d);return p.jsx(p_,{as:i,className:le(f.root,o),ref:r,ownerState:d,...u})});qh&&(qh.muiSkipListHighlight=!0);const h_=rr(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function m_(e){return Ne("MuiChip",e)}const tt=Le("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),v_=e=>{const{classes:t,disabled:r,size:n,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,r&&"disabled",`size${J(n)}`,`color${J(o)}`,s&&"clickable",s&&`clickableColor${J(o)}`,i&&"deletable",i&&`deletableColor${J(o)}`,`${l}${J(o)}`],label:["label",`label${J(n)}`],avatar:["avatar",`avatar${J(n)}`,`avatarColor${J(o)}`],icon:["icon",`icon${J(n)}`,`iconColor${J(a)}`],deleteIcon:["deleteIcon",`deleteIcon${J(n)}`,`deleteIconColor${J(o)}`,`deleteIcon${J(l)}Color${J(o)}`]};return Be(c,m_,t)},g_=te("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=r;return[{[`& .${tt.avatar}`]:t.avatar},{[`& .${tt.avatar}`]:t[`avatar${J(s)}`]},{[`& .${tt.avatar}`]:t[`avatarColor${J(n)}`]},{[`& .${tt.icon}`]:t.icon},{[`& .${tt.icon}`]:t[`icon${J(s)}`]},{[`& .${tt.icon}`]:t[`iconColor${J(o)}`]},{[`& .${tt.deleteIcon}`]:t.deleteIcon},{[`& .${tt.deleteIcon}`]:t[`deleteIcon${J(s)}`]},{[`& .${tt.deleteIcon}`]:t[`deleteIconColor${J(n)}`]},{[`& .${tt.deleteIcon}`]:t[`deleteIcon${J(l)}Color${J(n)}`]},t.root,t[`size${J(s)}`],t[`color${J(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${J(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${J(n)}`],t[l],t[`${l}${J(n)}`]]}})(Pe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${tt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${tt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${tt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${tt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${tt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${tt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${tt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:We(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:We(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${tt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${tt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(_t(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${tt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].contrastTextChannel} / 0.7)`:We(e.palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${tt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${tt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${tt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(_t(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${tt.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${tt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(_t(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${tt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${tt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${tt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${tt.avatar}`]:{marginLeft:4},[`& .${tt.avatarSmall}`]:{marginLeft:2},[`& .${tt.icon}`]:{marginLeft:4},[`& .${tt.iconSmall}`]:{marginLeft:2},[`& .${tt.deleteIcon}`]:{marginRight:5},[`& .${tt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(_t()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:We(e.palette[r].main,.7)}`,[`&.${tt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[r].main,e.palette.action.hoverOpacity)},[`&.${tt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.focusOpacity})`:We(e.palette[r].main,e.palette.action.focusOpacity)},[`& .${tt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:We(e.palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),y_=te("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${J(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function O0(e){return e.key==="Backspace"||e.key==="Delete"}const yu=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:y,onDelete:b,onKeyDown:w,onKeyUp:C,size:x="medium",variant:g="filled",tabIndex:v,skipFocusWhenDisabled:m=!1,...k}=n,R=h.useRef(null),E=Wt(R,r),$=B=>{B.stopPropagation(),b&&b(B)},I=B=>{B.currentTarget===B.target&&O0(B)&&B.preventDefault(),w&&w(B)},S=B=>{B.currentTarget===B.target&&b&&O0(B)&&b(B),C&&C(B)},P=i!==!1&&y?!0:i,N=P||b?Fn:l||"div",z={...n,component:N,disabled:u,size:x,color:s,iconColor:h.isValidElement(d)&&d.props.color||s,onDelete:!!b,clickable:P,variant:g},D=v_(z),_=N===Fn?{component:l||"div",focusVisibleClassName:D.focusVisible,...b&&{disableRipple:!0}}:{};let O=null;b&&(O=c&&h.isValidElement(c)?h.cloneElement(c,{className:le(c.props.className,D.deleteIcon),onClick:$}):p.jsx(h_,{className:le(D.deleteIcon),onClick:$}));let V=null;o&&h.isValidElement(o)&&(V=h.cloneElement(o,{className:le(D.avatar,o.props.className)}));let j=null;return d&&h.isValidElement(d)&&(j=h.cloneElement(d,{className:le(D.icon,d.props.className)})),p.jsxs(g_,{as:N,className:le(D.root,a),disabled:P&&u?!0:void 0,onClick:y,onKeyDown:I,onKeyUp:S,ref:E,tabIndex:m&&u?-1:v,ownerState:z,..._,...k,children:[V||j,p.jsx(y_,{className:le(D.label),ownerState:z,children:f}),O]})});function Zc(e){return parseInt(e,10)||0}const x_={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function b_(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const S_=h.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s,...l}=t,{current:c}=h.useRef(s!=null),u=h.useRef(null),d=Wt(r,u),f=h.useRef(null),y=h.useRef(null),b=h.useCallback(()=>{const x=u.current,v=zn(x).getComputedStyle(x);if(v.width==="0px")return{outerHeightStyle:0,overflowing:!1};const m=y.current;m.style.width=v.width,m.value=x.value||t.placeholder||"x",m.value.slice(-1)===` +`&&(m.value+=" ");const k=v.boxSizing,R=Zc(v.paddingBottom)+Zc(v.paddingTop),E=Zc(v.borderBottomWidth)+Zc(v.borderTopWidth),$=m.scrollHeight;m.value="x";const I=m.scrollHeight;let S=$;a&&(S=Math.max(Number(a)*I,S)),o&&(S=Math.min(Number(o)*I,S)),S=Math.max(S,I);const P=S+(k==="border-box"?R+E:0),N=Math.abs(S-$)<=1;return{outerHeightStyle:P,overflowing:N}},[o,a,t.placeholder]),w=h.useCallback(()=>{const x=b();if(b_(x))return;const g=x.outerHeightStyle,v=u.current;f.current!==g&&(f.current=g,v.style.height=`${g}px`),v.style.overflow=x.overflowing?"hidden":""},[b]);yn(()=>{const x=()=>{w()};let g;const v=Ef(x),m=u.current,k=zn(m);k.addEventListener("resize",v);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(x),R.observe(m)),()=>{v.clear(),cancelAnimationFrame(g),k.removeEventListener("resize",v),R&&R.disconnect()}},[b,w]),yn(()=>{w()});const C=x=>{c||w(),n&&n(x)};return p.jsxs(h.Fragment,{children:[p.jsx("textarea",{value:s,onChange:C,ref:d,rows:a,style:i,...l}),p.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...x_.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function Jh(e){return typeof e=="string"}function ri({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const Hv=h.createContext(void 0);function ba(){return h.useContext(Hv)}function L0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function sd(e,t=!1){return e&&(L0(e.value)&&e.value!==""||t&&L0(e.defaultValue)&&e.defaultValue!=="")}function w_(e){return e.startAdornment}function C_(e){return Ne("MuiInputBase",e)}const Ur=Le("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var I0;const Mf=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${J(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},_f=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},k_=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:y,type:b}=e,w={root:["root",`color${J(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",f&&f!=="medium"&&`size${J(f)}`,u&&"multiline",y&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",b==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",y&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return Be(w,C_,t)},Of=te("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Mf})(Pe(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ur.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Lf=te("input",{name:"MuiInputBase",slot:"Input",overridesResolver:_f})(Pe(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ur.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Ur.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),N0=Iv({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),R_=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:s,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:y,endAdornment:b,error:w,fullWidth:C=!1,id:x,inputComponent:g="input",inputProps:v={},inputRef:m,margin:k,maxRows:R,minRows:E,multiline:$=!1,name:I,onBlur:S,onChange:P,onClick:N,onFocus:z,onKeyDown:D,onKeyUp:_,placeholder:O,readOnly:V,renderSuffix:j,rows:B,size:W,slotProps:ne={},slots:ae={},startAdornment:de,type:X="text",value:ue,...ke}=n,Ae=v.value!=null?v.value:ue,{current:ve}=h.useRef(Ae!=null),$e=h.useRef(),he=h.useCallback(Oe=>{},[]),je=Wt($e,m,v.ref,he),[fe,He]=h.useState(!1),Ee=ba(),Te=ri({props:n,muiFormControl:Ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Te.focused=Ee?Ee.focused:fe,h.useEffect(()=>{!Ee&&f&&fe&&(He(!1),S&&S())},[Ee,f,fe,S]);const pe=Ee&&Ee.onFilled,T=Ee&&Ee.onEmpty,A=h.useCallback(Oe=>{sd(Oe)?pe&&pe():T&&T()},[pe,T]);yn(()=>{ve&&A({value:Ae})},[Ae,A,ve]);const U=Oe=>{z&&z(Oe),v.onFocus&&v.onFocus(Oe),Ee&&Ee.onFocus?Ee.onFocus(Oe):He(!0)},re=Oe=>{S&&S(Oe),v.onBlur&&v.onBlur(Oe),Ee&&Ee.onBlur?Ee.onBlur(Oe):He(!1)},Y=(Oe,...bt)=>{if(!ve){const Jt=Oe.target||$e.current;if(Jt==null)throw new Error(Mo(1));A({value:Jt.value})}v.onChange&&v.onChange(Oe,...bt),P&&P(Oe,...bt)};h.useEffect(()=>{A($e.current)},[]);const Q=Oe=>{$e.current&&Oe.currentTarget===Oe.target&&$e.current.focus(),N&&N(Oe)};let Z=g,Me=v;$&&Z==="input"&&(B?Me={type:void 0,minRows:B,maxRows:B,...Me}:Me={type:void 0,maxRows:R,minRows:E,...Me},Z=S_);const Ke=Oe=>{A(Oe.animationName==="mui-auto-fill-cancel"?$e.current:{value:"x"})};h.useEffect(()=>{Ee&&Ee.setAdornedStart(!!de)},[Ee,de]);const ot={...n,color:Te.color||"primary",disabled:Te.disabled,endAdornment:b,error:Te.error,focused:Te.focused,formControl:Ee,fullWidth:C,hiddenLabel:Te.hiddenLabel,multiline:$,size:Te.size,startAdornment:de,type:X},ze=k_(ot),_e=ae.root||c.Root||Of,Ie=ne.root||u.root||{},ct=ae.input||c.Input||Lf;return Me={...Me,...ne.input??u.input},p.jsxs(h.Fragment,{children:[!y&&typeof N0=="function"&&(I0||(I0=p.jsx(N0,{}))),p.jsxs(_e,{...Ie,ref:r,onClick:Q,...ke,...!Jh(_e)&&{ownerState:{...ot,...Ie.ownerState}},className:le(ze.root,Ie.className,s,V&&"MuiInputBase-readOnly"),children:[de,p.jsx(Hv.Provider,{value:null,children:p.jsx(ct,{"aria-invalid":Te.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:d,disabled:Te.disabled,id:x,onAnimationStart:Ke,name:I,placeholder:O,readOnly:V,required:Te.required,rows:B,value:Ae,onKeyDown:D,onKeyUp:_,type:X,...Me,...!Jh(ct)&&{as:Z,ownerState:{...ot,...Me.ownerState}},ref:je,className:le(ze.input,Me.className,V&&"MuiInputBase-readOnly"),onBlur:re,onChange:Y,onFocus:U})}),b,j?j({...Te,startAdornment:de}):null]})]})}),Kv=R_;function E_(e){return Ne("MuiInput",e)}const Ko={...Ur,...Le("MuiInput",["root","underline","input"])};function T_(e){return Ne("MuiOutlinedInput",e)}const an={...Ur,...Le("MuiOutlinedInput",["root","notchedOutline","input"])};function $_(e){return Ne("MuiFilledInput",e)}const Wr={...Ur,...Le("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Tw=rr(p.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function P_(e){return Ne("MuiAutocomplete",e)}const Xe=Le("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var A0,D0;const j_=e=>{const{classes:t,disablePortal:r,expanded:n,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",n&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${J(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Be(d,P_,t)},M_=te("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:s}=r;return[{[`& .${Xe.tag}`]:t.tag},{[`& .${Xe.tag}`]:t[`tagSize${J(s)}`]},{[`& .${Xe.inputRoot}`]:t.inputRoot},{[`& .${Xe.input}`]:t.input},{[`& .${Xe.input}`]:i&&t.inputFocused},t.root,n&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Xe.focused} .${Xe.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Xe.clearIndicator}`]:{visibility:"visible"}},[`& .${Xe.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Xe.inputRoot}`]:{[`.${Xe.hasPopupIcon}&, .${Xe.hasClearIcon}&`]:{paddingRight:30},[`.${Xe.hasPopupIcon}.${Xe.hasClearIcon}&`]:{paddingRight:56},[`& .${Xe.input}`]:{width:0,minWidth:30}},[`& .${Ko.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ko.root}.${Ur.sizeSmall}`]:{[`& .${Ko.input}`]:{padding:"2px 4px 3px 0"}},[`& .${an.root}`]:{padding:9,[`.${Xe.hasPopupIcon}&, .${Xe.hasClearIcon}&`]:{paddingRight:39},[`.${Xe.hasPopupIcon}.${Xe.hasClearIcon}&`]:{paddingRight:65},[`& .${Xe.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Xe.endAdornment}`]:{right:9}},[`& .${an.root}.${Ur.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Xe.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Wr.root}`]:{paddingTop:19,paddingLeft:8,[`.${Xe.hasPopupIcon}&, .${Xe.hasClearIcon}&`]:{paddingRight:39},[`.${Xe.hasPopupIcon}.${Xe.hasClearIcon}&`]:{paddingRight:65},[`& .${Wr.input}`]:{padding:"7px 4px"},[`& .${Xe.endAdornment}`]:{right:9}},[`& .${Wr.root}.${Ur.sizeSmall}`]:{paddingBottom:1,[`& .${Wr.input}`]:{padding:"2.5px 4px"}},[`& .${Ur.hiddenLabel}`]:{paddingTop:8},[`& .${Wr.root}.${Ur.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Xe.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Wr.root}.${Ur.hiddenLabel}.${Ur.sizeSmall}`]:{[`& .${Xe.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Xe.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Xe.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Xe.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Xe.inputRoot}`]:{flexWrap:"wrap"}}}]}),__=te("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),O_=te(xn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),L_=te(xn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>({...t.popupIndicator,...e.popupOpen&&t.popupIndicatorOpen})})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),I_=te(pc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Xe.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(Pe(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),N_=te(ya,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(Pe(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),A_=te("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(Pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),D_=te("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(Pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),B_=te("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(Pe(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Xe.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Xe.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Xe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Xe.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Xe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),z_=te(qh,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(Pe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),F_=te("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Xe.option}`]:{paddingLeft:24}}),V_=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:a=!1,autoSelect:i=!1,blurOnSelect:s=!1,ChipProps:l,className:c,clearIcon:u=A0||(A0=p.jsx(mw,{fontSize:"small"})),clearOnBlur:d=!n.freeSolo,clearOnEscape:f=!1,clearText:y="Clear",closeText:b="Close",componentsProps:w,defaultValue:C=n.multiple?[]:null,disableClearable:x=!1,disableCloseOnSelect:g=!1,disabled:v=!1,disabledItemsFocusable:m=!1,disableListWrap:k=!1,disablePortal:R=!1,filterOptions:E,filterSelectedOptions:$=!1,forcePopupIcon:I="auto",freeSolo:S=!1,fullWidth:P=!1,getLimitTagsText:N=st=>`+${st}`,getOptionDisabled:z,getOptionKey:D,getOptionLabel:_,isOptionEqualToValue:O,groupBy:V,handleHomeEndKeys:j=!n.freeSolo,id:B,includeInputInList:W=!1,inputValue:ne,limitTags:ae=-1,ListboxComponent:de,ListboxProps:X,loading:ue=!1,loadingText:ke="Loading…",multiple:Ae=!1,noOptionsText:ve="No options",onChange:$e,onClose:he,onHighlightChange:je,onInputChange:fe,onOpen:He,open:Ee,openOnFocus:Te=!1,openText:pe="Open",options:T,PaperComponent:A,PopperComponent:U,popupIcon:re=D0||(D0=p.jsx(Tw,{})),readOnly:Y=!1,renderGroup:Q,renderInput:Z,renderOption:Me,renderTags:Ke,selectOnFocus:ot=!n.freeSolo,size:ze="medium",slots:_e={},slotProps:Ie={},value:ct,...Oe}=n,{getRootProps:bt,getInputProps:Jt,getInputLabelProps:L,getPopupIndicatorProps:M,getClearProps:F,getTagProps:ee,getListboxProps:se,getOptionProps:ce,value:Ce,dirty:ye,expanded:xe,id:rt,popupOpen:ht,focused:Je,focusedTag:at,anchorEl:Se,setAnchorEl:Ot,inputValue:rn,groupedOptions:nn}=Yj({...n,componentName:"Autocomplete"}),vo=!x&&!v&&ye&&!Y,wr=(!S||I===!0)&&I!==!1,{onMouseDown:Fr}=Jt(),{ref:Do,...Bo}=se(),go=_||(st=>st.label??st),Ze={...n,disablePortal:R,expanded:xe,focused:Je,fullWidth:P,getOptionLabel:go,hasClearIcon:vo,hasPopupIcon:wr,inputFocused:at===-1,popupOpen:ht,size:ze},ut=j_(Ze),nr={slots:{paper:A,popper:U,..._e},slotProps:{chip:l,listbox:X,...w,...Ie}},[q,H]=fr("listbox",{elementType:B_,externalForwardedProps:nr,ownerState:Ze,className:ut.listbox,additionalProps:Bo,ref:Do}),[me,Ge]=fr("paper",{elementType:ya,externalForwardedProps:nr,ownerState:Ze,className:ut.paper}),[Qe,Bt]=fr("popper",{elementType:pc,externalForwardedProps:nr,ownerState:Ze,className:ut.popper,additionalProps:{disablePortal:R,style:{width:Se?Se.clientWidth:null},role:"presentation",anchorEl:Se,open:ht}});let mt;if(Ae&&Ce.length>0){const st=Kn=>({className:ut.tag,disabled:v,...ee(Kn)});Ke?mt=Ke(Ce,st,Ze):mt=Ce.map((Kn,zo)=>{const{key:Cs,...v2}=st({index:zo});return p.jsx(yu,{label:go(Kn),size:ze,...v2,...nr.slotProps.chip},Cs)})}if(ae>-1&&Array.isArray(mt)){const st=mt.length-ae;!Je&&st>0&&(mt=mt.splice(0,ae),mt.push(p.jsx("span",{className:ut.tag,children:N(st)},mt.length)))}const bc=Q||(st=>p.jsxs("li",{children:[p.jsx(z_,{className:ut.groupLabel,ownerState:Ze,component:"div",children:st.group}),p.jsx(F_,{className:ut.groupUl,ownerState:Ze,children:st.children})]},st.key)),m2=Me||((st,Kn)=>{const{key:zo,...Cs}=st;return p.jsx("li",{...Cs,children:go(Kn)},zo)}),wg=(st,Kn)=>{const zo=ce({option:st,index:Kn});return m2({...zo,className:ut.option},st,{selected:zo["aria-selected"],index:Kn,inputValue:rn},Ze)},Sc=nr.slotProps.clearIndicator,wc=nr.slotProps.popupIndicator,Kf=st=>p.jsx(I_,{as:Qe,...Bt,children:p.jsx(N_,{as:me,...Ge,children:st})});let Cc=null;return nn.length>0?Cc=Kf(p.jsx(q,{as:de,...H,children:nn.map((st,Kn)=>V?bc({key:st.key,group:st.group,children:st.options.map((zo,Cs)=>wg(zo,st.index+Cs))}):wg(st,Kn))})):ue&&nn.length===0?Cc=Kf(p.jsx(A_,{className:ut.loading,ownerState:Ze,children:ke})):nn.length===0&&!S&&!ue&&(Cc=Kf(p.jsx(D_,{className:ut.noOptions,ownerState:Ze,role:"presentation",onMouseDown:st=>{st.preventDefault()},children:ve}))),p.jsxs(h.Fragment,{children:[p.jsx(M_,{ref:r,className:le(ut.root,c),ownerState:Ze,...bt(Oe),children:Z({id:rt,disabled:v,fullWidth:!0,size:ze==="small"?"small":void 0,InputLabelProps:L(),InputProps:{ref:Ot,className:ut.inputRoot,startAdornment:mt,onMouseDown:st=>{st.target===st.currentTarget&&Fr(st)},...(vo||wr)&&{endAdornment:p.jsxs(__,{className:ut.endAdornment,ownerState:Ze,children:[vo?p.jsx(O_,{...F(),"aria-label":y,title:y,ownerState:Ze,...Sc,className:le(ut.clearIndicator,Sc==null?void 0:Sc.className),children:u}):null,wr?p.jsx(L_,{...M(),disabled:v,"aria-label":ht?b:pe,title:ht?b:pe,ownerState:Ze,...wc,className:le(ut.popupIndicator,wc==null?void 0:wc.className),children:re}):null]})}},inputProps:{className:ut.input,disabled:v,readOnly:Y,...Jt()}})}),Se?Cc:null]})}),U_={entering:{opacity:1},entered:{opacity:1}},W_=h.forwardRef(function(t,r){const n=fo(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:y,onExited:b,onExiting:w,style:C,timeout:x=o,TransitionComponent:g=po,...v}=t,m=h.useRef(null),k=Wt(m,ti(s),r),R=D=>_=>{if(D){const O=m.current;_===void 0?D(O):D(O,_)}},E=R(f),$=R((D,_)=>{hw(D);const O=od({style:C,timeout:x,easing:l},{mode:"enter"});D.style.webkitTransition=n.transitions.create("opacity",O),D.style.transition=n.transitions.create("opacity",O),u&&u(D,_)}),I=R(d),S=R(w),P=R(D=>{const _=od({style:C,timeout:x,easing:l},{mode:"exit"});D.style.webkitTransition=n.transitions.create("opacity",_),D.style.transition=n.transitions.create("opacity",_),y&&y(D)}),N=R(b),z=D=>{a&&a(m.current,D)};return p.jsx(g,{appear:i,in:c,nodeRef:m,onEnter:$,onEntered:I,onEntering:E,onExit:P,onExited:N,onExiting:S,addEndListener:z,timeout:x,...v,children:(D,_)=>h.cloneElement(s,{style:{opacity:0,visibility:D==="exited"&&!c?"hidden":void 0,...U_[D],...C,...s.props.style},ref:k,..._})})});function H_(e){return Ne("MuiBackdrop",e)}Le("MuiBackdrop",["root","invisible"]);const K_=e=>{const{ownerState:t,...r}=e;return r},Z_=e=>{const{classes:t,invisible:r}=e;return Be({root:["root",r&&"invisible"]},H_,t)},G_=te("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Y_=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:i="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:f={},TransitionComponent:y,transitionDuration:b,...w}=n,C={...n,component:i,invisible:s},x=Z_(C),g={transition:y,root:c.Root,...f},v={...u,...d},m={slots:g,slotProps:v},[k,R]=fr("root",{elementType:G_,externalForwardedProps:m,className:le(x.root,a),ownerState:C}),[E,$]=fr("transition",{elementType:W_,externalForwardedProps:m,ownerState:C}),I=K_($);return p.jsx(E,{in:l,timeout:b,...w,...I,children:p.jsx(k,{"aria-hidden":!0,...R,classes:x,ref:r,children:o})})}),q_=Le("MuiBox",["root"]),J_=uc(),jt=l$({themeId:Nn,defaultTheme:J_,defaultClassName:q_.root,generateClassName:DS.generate}),Q_=rr(p.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),X_=te(Fn)(Pe(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:Xu(e.palette.grey[200],.12)}:{backgroundColor:Xu(e.palette.grey[600],.12)}}}))),e4=te(Q_)({width:24,height:16});function t4(e){const{slots:t={},slotProps:r={},...n}=e,o=e;return p.jsx("li",{children:p.jsx(X_,{focusRipple:!0,...n,ownerState:o,children:p.jsx(e4,{as:t.CollapsedIcon,ownerState:o,...r.collapsedIcon})})})}function r4(e){return Ne("MuiBreadcrumbs",e)}const n4=Le("MuiBreadcrumbs",["root","ol","li","separator"]),o4=e=>{const{classes:t}=e;return Be({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},r4,t)},a4=te(Tr,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${n4.li}`]:t.li},t.root]})({}),i4=te("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),s4=te("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function l4(e,t,r,n){return e.reduce((o,a,i)=>(i{const $=()=>{C(!0);const I=m.current.querySelector("a[href],button,[tabindex]");I&&I.focus()};return d+u>=E.length?E:[...E.slice(0,d),p.jsx(t4,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:v},onClick:$},"ellipsis"),...E.slice(E.length-u,E.length)]},R=h.Children.toArray(o).filter(E=>h.isValidElement(E)).map((E,$)=>p.jsx("li",{className:g.li,children:E},`child-${$}`));return p.jsx(a4,{ref:r,component:i,color:"textSecondary",className:le(g.root,a),ownerState:x,...b,children:p.jsx(i4,{className:g.ol,ref:m,ownerState:x,children:l4(w||f&&R.length<=f?R:k(R),g.separator,y,x)})})});function u4(e){return Ne("MuiButton",e)}const fi=Le("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),d4=h.createContext({}),f4=h.createContext(void 0),p4=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${J(t)}`,`size${J(o)}`,`${a}Size${J(o)}`,`color${J(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${J(o)}`],endIcon:["icon","endIcon",`iconSize${J(o)}`]},l=Be(s,u4,i);return{...i,...l}},$w=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],h4=te(Fn,{shouldForwardProp:e=>en(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${J(r.color)}`],t[`size${J(r.size)}`],t[`${r.variant}Size${J(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(Pe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${fi.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${fi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${fi.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${fi.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(_t()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.5)`:We(e.palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[n].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[n].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${fi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),m4=te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${J(r.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...$w]}),v4=te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${J(r.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...$w]}),cs=h.forwardRef(function(t,r){const n=h.useContext(d4),o=h.useContext(f4),a=rs(n,t),i=Ve({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:y=!1,endIcon:b,focusVisibleClassName:w,fullWidth:C=!1,size:x="medium",startIcon:g,type:v,variant:m="text",...k}=i,R={...i,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:y,fullWidth:C,size:x,type:v,variant:m},E=p4(R),$=g&&p.jsx(m4,{className:E.startIcon,ownerState:R,children:g}),I=b&&p.jsx(v4,{className:E.endIcon,ownerState:R,children:b}),S=o||"";return p.jsxs(h4,{ownerState:R,className:le(n.className,E.root,u,S),component:c,disabled:d,focusRipple:!y,focusVisibleClassName:le(E.focusVisible,w),ref:r,type:v,...k,classes:E,children:[$,s,I]})});function g4(e){return Ne("PrivateSwitchBase",e)}Le("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const y4=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${J(o)}`],input:["input"]};return Be(a,g4,t)},x4=te(Fn)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),b4=te("input",{shouldForwardProp:en})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),S4=h.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:y,inputRef:b,name:w,onBlur:C,onChange:x,onFocus:g,readOnly:v,required:m=!1,tabIndex:k,type:R,value:E,...$}=t,[I,S]=Ba({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),P=ba(),N=B=>{g&&g(B),P&&P.onFocus&&P.onFocus(B)},z=B=>{C&&C(B),P&&P.onBlur&&P.onBlur(B)},D=B=>{if(B.nativeEvent.defaultPrevented)return;const W=B.target.checked;S(W),x&&x(B,W)};let _=l;P&&typeof _>"u"&&(_=P.disabled);const O=R==="checkbox"||R==="radio",V={...t,checked:I,disabled:_,disableFocusRipple:c,edge:u},j=y4(V);return p.jsxs(x4,{component:"span",className:le(j.root,i),centerRipple:!0,focusRipple:!c,disabled:_,tabIndex:null,role:void 0,onFocus:N,onBlur:z,ownerState:V,ref:r,...$,children:[p.jsx(b4,{autoFocus:n,checked:o,defaultChecked:s,className:j.input,disabled:_,id:O?f:void 0,name:w,onChange:D,readOnly:v,ref:b,required:m,ownerState:V,tabIndex:k,type:R,...R==="checkbox"&&E===void 0?{}:{value:E},...y}),I?a:d]})});function B0(e){return e.substring(2).toLowerCase()}function w4(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Wt(ti(t),s),d=ar(b=>{const w=c.current;c.current=!1;const C=hr(s.current);if(!l.current||!s.current||"clientX"in b&&w4(b,C))return;if(i.current){i.current=!1;return}let x;b.composedPath?x=b.composedPath().includes(s.current):x=!C.documentElement.contains(b.target)||s.current.contains(b.target),!x&&(r||!w)&&o(b)}),f=b=>w=>{c.current=!0;const C=t.props[b];C&&C(w)},y={ref:u};return a!==!1&&(y[a]=f(a)),h.useEffect(()=>{if(a!==!1){const b=B0(a),w=hr(s.current),C=()=>{i.current=!0};return w.addEventListener(b,d),w.addEventListener("touchmove",C),()=>{w.removeEventListener(b,d),w.removeEventListener("touchmove",C)}}},[d,a]),n!==!1&&(y[n]=f(n)),h.useEffect(()=>{if(n!==!1){const b=B0(n),w=hr(s.current);return w.addEventListener(b,d),()=>{w.removeEventListener(b,d)}}},[d,n]),p.jsx(h.Fragment,{children:h.cloneElement(t,y)})}const Qh=typeof Iv({})=="function",C4=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),k4=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),jw=(e,t=!1)=>{var a,i;const r={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var u,d;const c=e.getColorSchemeSelector(s);c.startsWith("@")?r[c]={":root":{colorScheme:(u=l.palette)==null?void 0:u.mode}}:r[c.replace(/\s*&/,"")]={colorScheme:(d=l.palette)==null?void 0:d.mode}});let n={html:C4(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...k4(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r};const o=(i=(a=e.components)==null?void 0:a.MuiCssBaseline)==null?void 0:i.styleOverrides;return o&&(n=[n,o]),n},xu="mui-ecs",R4=e=>{const t=jw(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[`:root:has(${xu})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,o])=>{var i,s;const a=e.getColorSchemeSelector(n);a.startsWith("@")?r[a]={[`:root:not(:has(.${xu}))`]:{colorScheme:(i=o.palette)==null?void 0:i.mode}}:r[a.replace(/\s*&/,"")]={[`&:not(:has(.${xu}))`]:{colorScheme:(s=o.palette)==null?void 0:s.mode}}}),t},E4=Iv(Qh?({theme:e,enableColorScheme:t})=>jw(e,t):({theme:e})=>R4(e));function T4(e){const t=Ve({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return p.jsxs(h.Fragment,{children:[Qh&&p.jsx(E4,{enableColorScheme:n}),!Qh&&!n&&p.jsx("span",{className:xu,style:{display:"none"}}),r]})}function $4(e){const t=hr(e);return t.body===e?zn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function z0(e){return parseInt(zn(e).getComputedStyle(e).paddingRight,10)||0}function P4(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function F0(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=!a.includes(i),l=!P4(i);s&&l&&pl(i,o)})}function Ep(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function j4(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if($4(n)){const i=YS(zn(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${z0(n)+i}px`;const s=hr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${z0(l)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=hr(n).body;else{const i=n.parentElement,s=zn(n);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function M4(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class _4{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&pl(t.modalRef,!1);const o=M4(r);F0(r,t.mount,t.modalRef,o,!0);const a=Ep(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=Ep(this.containers,a=>a.modals.includes(t)),o=this.containers[n];o.restore||(o.restore=j4(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=Ep(this.containers,i=>i.modals.includes(t)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&pl(t.modalRef,r),F0(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&pl(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const O4=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function L4(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function I4(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function N4(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||I4(e))}function A4(e){const t=[],r=[];return Array.from(e.querySelectorAll(O4)).forEach((n,o)=>{const a=L4(n);a===-1||!N4(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function D4(){return!0}function B4(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=A4,isEnabled:i=D4,open:s}=e,l=h.useRef(!1),c=h.useRef(null),u=h.useRef(null),d=h.useRef(null),f=h.useRef(null),y=h.useRef(!1),b=h.useRef(null),w=Wt(ti(t),b),C=h.useRef(null);h.useEffect(()=>{!s||!b.current||(y.current=!r)},[r,s]),h.useEffect(()=>{if(!s||!b.current)return;const v=hr(b.current);return b.current.contains(v.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),y.current&&b.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),h.useEffect(()=>{if(!s||!b.current)return;const v=hr(b.current),m=E=>{C.current=E,!(n||!i()||E.key!=="Tab")&&v.activeElement===b.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},k=()=>{var I,S;const E=b.current;if(E===null)return;if(!v.hasFocus()||!i()||l.current){l.current=!1;return}if(E.contains(v.activeElement)||n&&v.activeElement!==c.current&&v.activeElement!==u.current)return;if(v.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!y.current)return;let $=[];if((v.activeElement===c.current||v.activeElement===u.current)&&($=a(b.current)),$.length>0){const P=!!((I=C.current)!=null&&I.shiftKey&&((S=C.current)==null?void 0:S.key)==="Tab"),N=$[0],z=$[$.length-1];typeof N!="string"&&typeof z!="string"&&(P?z.focus():N.focus())}else E.focus()};v.addEventListener("focusin",k),v.addEventListener("keydown",m,!0);const R=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(R),v.removeEventListener("focusin",k),v.removeEventListener("keydown",m,!0)}},[r,n,o,i,s,a]);const x=v=>{d.current===null&&(d.current=v.relatedTarget),y.current=!0,f.current=v.target;const m=t.props.onFocus;m&&m(v)},g=v=>{d.current===null&&(d.current=v.relatedTarget),y.current=!0};return p.jsxs(h.Fragment,{children:[p.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),h.cloneElement(t,{ref:w,onFocus:x}),p.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:u,"data-testid":"sentinelEnd"})]})}function z4(e){return typeof e=="function"?e():e}function F4(e){return e?e.props.hasOwnProperty("in"):!1}const Gc=new _4;function V4(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:i,children:s,onClose:l,open:c,rootRef:u}=e,d=h.useRef({}),f=h.useRef(null),y=h.useRef(null),b=Wt(y,u),[w,C]=h.useState(!c),x=F4(s);let g=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(g=!1);const v=()=>hr(f.current),m=()=>(d.current.modalRef=y.current,d.current.mount=f.current,d.current),k=()=>{Gc.mount(m(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},R=ar(()=>{const _=z4(t)||v().body;Gc.add(m(),_),y.current&&k()}),E=()=>Gc.isTopModal(m()),$=ar(_=>{f.current=_,_&&(c&&E()?k():y.current&&pl(y.current,g))}),I=h.useCallback(()=>{Gc.remove(m(),g)},[g]);h.useEffect(()=>()=>{I()},[I]),h.useEffect(()=>{c?R():(!x||!o)&&I()},[c,I,x,o,R]);const S=_=>O=>{var V;(V=_.onKeyDown)==null||V.call(_,O),!(O.key!=="Escape"||O.which===229||!E())&&(r||(O.stopPropagation(),l&&l(O,"escapeKeyDown")))},P=_=>O=>{var V;(V=_.onClick)==null||V.call(_,O),O.target===O.currentTarget&&l&&l(O,"backdropClick")};return{getRootProps:(_={})=>{const O=td(e);delete O.onTransitionEnter,delete O.onTransitionExited;const V={...O,..._};return{role:"presentation",...V,onKeyDown:S(V),ref:b}},getBackdropProps:(_={})=>{const O=_;return{"aria-hidden":!0,...O,onClick:P(O),open:c}},getTransitionProps:()=>{const _=()=>{C(!1),a&&a()},O=()=>{C(!0),i&&i(),o&&I()};return{onEnter:Qy(_,s==null?void 0:s.props.onEnter),onExited:Qy(O,s==null?void 0:s.props.onExited)}},rootRef:b,portalRef:$,isTopModal:E,exited:w,hasTransition:x}}function U4(e){return Ne("MuiModal",e)}Le("MuiModal",["root","hidden","backdrop"]);const W4=e=>{const{open:t,exited:r,classes:n}=e;return Be({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},U4,n)},H4=te("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Pe(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),K4=te(Y_,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Z4=h.forwardRef(function(t,r){const n=Ve({name:"MuiModal",props:t}),{BackdropComponent:o=K4,BackdropProps:a,classes:i,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:C=!1,disablePortal:x=!1,disableRestoreFocus:g=!1,disableScrollLock:v=!1,hideBackdrop:m=!1,keepMounted:k=!1,onBackdropClick:R,onClose:E,onTransitionEnter:$,onTransitionExited:I,open:S,slotProps:P={},slots:N={},theme:z,...D}=n,_={...n,closeAfterTransition:l,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:C,disablePortal:x,disableRestoreFocus:g,disableScrollLock:v,hideBackdrop:m,keepMounted:k},{getRootProps:O,getBackdropProps:V,getTransitionProps:j,portalRef:B,isTopModal:W,exited:ne,hasTransition:ae}=V4({..._,rootRef:r}),de={..._,exited:ne},X=W4(de),ue={};if(c.props.tabIndex===void 0&&(ue.tabIndex="-1"),ae){const{onEnter:fe,onExited:He}=j();ue.onEnter=fe,ue.onExited=He}const ke={...D,slots:{root:f.Root,backdrop:f.Backdrop,...N},slotProps:{...y,...P}},[Ae,ve]=fr("root",{elementType:H4,externalForwardedProps:ke,getSlotProps:O,additionalProps:{ref:r,as:d},ownerState:de,className:le(s,X==null?void 0:X.root,!de.open&&de.exited&&(X==null?void 0:X.hidden))}),[$e,he]=fr("backdrop",{elementType:o,externalForwardedProps:ke,additionalProps:a,getSlotProps:fe=>V({...fe,onClick:He=>{R&&R(He),fe!=null&&fe.onClick&&fe.onClick(He)}}),className:le(a==null?void 0:a.className,X==null?void 0:X.backdrop),ownerState:de}),je=Wt(a==null?void 0:a.ref,he.ref);return!k&&!S&&(!ae||ne)?null:p.jsx(Ew,{ref:B,container:u,disablePortal:x,children:p.jsxs(Ae,{...ve,children:[!m&&o?p.jsx($e,{...he,ref:je}):null,p.jsx(B4,{disableEnforceFocus:w,disableAutoFocus:b,disableRestoreFocus:g,isEnabled:W,open:S,children:h.cloneElement(c,ue)})]})})});function MB(e){return Ne("MuiDivider",e)}const V0=Le("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),G4=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:o,size:a,hiddenLabel:i,multiline:s}=e,l={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${J(a)}`,i&&"hiddenLabel",s&&"multiline"],input:["input"]},c=Be(l,$_,t);return{...t,...c}},Y4=te(Of,{shouldForwardProp:e=>en(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Mf(e,t),!r.disableUnderline&&t.underline]}})(Pe(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${Wr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${Wr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wr.disabled}, .${Wr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Wr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_t()).map(([i])=>{var s;return{props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[i])==null?void 0:s.main}`}}}}),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:s})=>i.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),q4=te(Lf,{name:"MuiFilledInput",slot:"Input",overridesResolver:_f})(Pe(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ld=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:y="text",...b}=n,w={...n,disableUnderline:o,fullWidth:s,inputComponent:c,multiline:u,type:y},C=G4(n),x={root:{ownerState:w},input:{ownerState:w}},g=d??i?sr(x,d??i):x,v=f.root??a.Root??Y4,m=f.input??a.Input??q4;return p.jsx(Kv,{slots:{root:v,input:m},componentsProps:g,fullWidth:s,inputComponent:c,multiline:u,ref:r,type:y,...b,classes:C})});ld&&(ld.muiName="Input");function J4(e){return Ne("MuiFormControl",e)}const Q4=Le("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]),_B=Q4,X4=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${J(r)}`,n&&"fullWidth"]};return Be(o,J4,t)},eO=te("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${J(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),tO=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:y="none",required:b=!1,size:w="medium",variant:C="outlined",...x}=n,g={...n,color:i,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:y,required:b,size:w,variant:C},v=X4(g),[m,k]=h.useState(()=>{let z=!1;return o&&h.Children.forEach(o,D=>{if(!wp(D,["Input","Select"]))return;const _=wp(D,["Select"])?D.props.input:D;_&&w_(_.props)&&(z=!0)}),z}),[R,E]=h.useState(()=>{let z=!1;return o&&h.Children.forEach(o,D=>{wp(D,["Input","Select"])&&(sd(D.props,!0)||sd(D.props.inputProps,!0))&&(z=!0)}),z}),[$,I]=h.useState(!1);l&&$&&I(!1);const S=u!==void 0&&!l?u:$;let P;h.useRef(!1);const N=h.useMemo(()=>({adornedStart:m,setAdornedStart:k,color:i,disabled:l,error:c,filled:R,focused:S,fullWidth:d,hiddenLabel:f,size:w,onBlur:()=>{I(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{I(!0)},registerEffect:P,required:b,variant:C}),[m,i,l,c,R,S,d,f,P,b,w,C]);return p.jsx(Hv.Provider,{value:N,children:p.jsx(eO,{as:s,ownerState:g,className:le(v.root,a),ref:r,...x,children:o})})});function rO(e){return Ne("MuiFormControlLabel",e)}const el=Le("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),nO=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e,i={root:["root",r&&"disabled",`labelPlacement${J(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return Be(i,rO,t)},oO=te("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${el.label}`]:t.label},t.root,t[`labelPlacement${J(r.labelPlacement)}`]]}})(Pe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${el.disabled}`]:{cursor:"default"},[`& .${el.label}`]:{[`&.${el.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),aO=te("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Pe(({theme:e})=>({[`&.${el.error}`]:{color:(e.vars||e).palette.error.main}}))),iO=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:i={},control:s,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:f="end",name:y,onChange:b,required:w,slots:C={},slotProps:x={},value:g,...v}=n,m=ba(),k=l??s.props.disabled??(m==null?void 0:m.disabled),R=w??s.props.required,E={disabled:k,required:R};["checked","name","onChange","value","inputRef"].forEach(_=>{typeof s.props[_]>"u"&&typeof n[_]<"u"&&(E[_]=n[_])});const $=ri({props:n,muiFormControl:m,states:["error"]}),I={...n,disabled:k,labelPlacement:f,required:R,error:$.error},S=nO(I),P={slots:C,slotProps:{...i,...x}},[N,z]=fr("typography",{elementType:Tr,externalForwardedProps:P,ownerState:I});let D=d;return D!=null&&D.type!==Tr&&!c&&(D=p.jsx(N,{component:"span",...z,className:le(S.label,z==null?void 0:z.className),children:D})),p.jsxs(oO,{className:le(S.root,a),ownerState:I,ref:r,...v,children:[h.cloneElement(s,E),R?p.jsxs("div",{children:[D,p.jsxs(aO,{ownerState:I,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):D]})});function sO(e){return Ne("MuiFormHelperText",e)}const lO=Le("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),U0=lO;var W0;const cO=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",n&&`size${J(n)}`,r&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Be(c,sO,t)},uO=te("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${J(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${U0.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${U0.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),dO=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p",disabled:s,error:l,filled:c,focused:u,margin:d,required:f,variant:y,...b}=n,w=ba(),C=ri({props:n,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),x={...n,component:i,contained:C.variant==="filled"||C.variant==="outlined",variant:C.variant,size:C.size,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required};delete x.ownerState;const g=cO(x);return p.jsx(uO,{as:i,className:le(g.root,a),ref:r,...b,ownerState:x,children:o===" "?W0||(W0=p.jsx("span",{className:"notranslate",children:"​"})):o})});function fO(e){return Ne("MuiFormLabel",e)}const hl=Le("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),pO=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${J(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Be(l,fO,t)},hO=te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(Pe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{[`&.${hl.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${hl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hl.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),mO=te("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Pe(({theme:e})=>({[`&.${hl.error}`]:{color:(e.vars||e).palette.error.main}}))),vO=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiFormLabel"}),{children:o,className:a,color:i,component:s="label",disabled:l,error:c,filled:u,focused:d,required:f,...y}=n,b=ba(),w=ri({props:n,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),C={...n,color:w.color||"primary",component:s,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required},x=pO(C);return p.jsxs(hO,{as:s,ownerState:C,className:le(x.root,a),ref:r,...y,children:[o,w.required&&p.jsxs(mO,{ownerState:C,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})}),H0=h.createContext();function gO(e){return Ne("MuiGrid",e)}const yO=[0,1,2,3,4,5,6,7,8,9,10],xO=["column-reverse","column","row-reverse","row"],bO=["nowrap","wrap-reverse","wrap"],Ns=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],zl=Le("MuiGrid",["root","container","item","zeroMinWidth",...yO.map(e=>`spacing-xs-${e}`),...xO.map(e=>`direction-xs-${e}`),...bO.map(e=>`wrap-xs-${e}`),...Ns.map(e=>`grid-xs-${e}`),...Ns.map(e=>`grid-sm-${e}`),...Ns.map(e=>`grid-md-${e}`),...Ns.map(e=>`grid-lg-${e}`),...Ns.map(e=>`grid-xl-${e}`)]);function SO({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce((n,o)=>{let a={};if(t[o]&&(r=t[o]),!r)return n;if(r===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(r==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Da({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return n;const l=`${Math.round(r/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const d=`calc(${l} + ${u})`;c={flexBasis:d,maxWidth:d}}}a={flexBasis:l,flexGrow:0,maxWidth:l,...c}}return e.breakpoints.values[o]===0?Object.assign(n,a):n[e.breakpoints.up(o)]=a,n},{})}function wO({theme:e,ownerState:t}){const r=Da({values:t.direction,breakpoints:e.breakpoints.values});return Br({theme:e},r,n=>{const o={flexDirection:n};return n.startsWith("column")&&(o[`& > .${zl.item}`]={maxWidth:"none"}),o})}function Mw({breakpoints:e,values:t}){let r="";Object.keys(t).forEach(o=>{r===""&&t[o]!==0&&(r=o)});const n=Object.keys(e).sort((o,a)=>e[o]-e[a]);return n.slice(0,n.indexOf(r))}function CO({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&n!==0){const a=Da({values:n,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=Mw({breakpoints:e.breakpoints.values,values:a})),o=Br({theme:e},a,(s,l)=>{const c=e.spacing(s);return c!=="0px"?{marginTop:e.spacing(-s),[`& > .${zl.item}`]:{paddingTop:c}}:i!=null&&i.includes(l)?{}:{marginTop:0,[`& > .${zl.item}`]:{paddingTop:0}}})}return o}function kO({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&n!==0){const a=Da({values:n,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=Mw({breakpoints:e.breakpoints.values,values:a})),o=Br({theme:e},a,(s,l)=>{const c=e.spacing(s);if(c!=="0px"){const u=e.spacing(-s);return{width:`calc(100% + ${c})`,marginLeft:u,[`& > .${zl.item}`]:{paddingLeft:c}}}return i!=null&&i.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zl.item}`]:{paddingLeft:0}}})}return o}function RO(e,t,r={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&n.push(r[`spacing-${o}-${String(a)}`])}),n}const EO=te("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=r;let u=[];n&&(u=RO(i,c,t));const d=[];return c.forEach(f=>{const y=r[f];y&&d.push(t[`grid-${f}-${String(y)}`])}),[t.root,n&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},...e.wrap!=="wrap"&&{flexWrap:e.wrap}}),wO,CO,kO,SO);function TO(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const r=[];return t.forEach(n=>{const o=e[n];if(Number(o)>0){const a=`spacing-${n}-${String(o)}`;r.push(a)}}),r}const $O=e=>{const{classes:t,container:r,direction:n,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];r&&(c=TO(a,l));const u=[];l.forEach(f=>{const y=e[f];y&&u.push(`grid-${f}-${String(y)}`)});const d={root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...c,n!=="row"&&`direction-xs-${String(n)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Be(d,gO,t)},Ui=h.forwardRef(function(t,r){const n=Lv({props:t,name:"MuiGrid"}),{breakpoints:o}=fo(),a=hf(n),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:d="row",item:f=!1,rowSpacing:y,spacing:b=0,wrap:w="wrap",zeroMinWidth:C=!1,...x}=a,g=y||b,v=l||b,m=h.useContext(H0),k=u?s||12:m,R={},E={...x};o.keys.forEach(S=>{x[S]!=null&&(R[S]=x[S],delete E[S])});const $={...a,columns:k,container:u,direction:d,item:f,rowSpacing:g,columnSpacing:v,wrap:w,zeroMinWidth:C,spacing:b,...R,breakpoints:o.keys},I=$O($);return p.jsx(H0.Provider,{value:k,children:p.jsx(EO,{ownerState:$,className:le(I.root,i),as:c,ref:r,...E})})});function Xh(e){return`scale(${e}, ${e**2})`}const PO={entering:{opacity:1,transform:Xh(1)},entered:{opacity:1,transform:"none"}},Tp=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ya=h.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:y,style:b,timeout:w="auto",TransitionComponent:C=po,...x}=t,g=Ma(),v=h.useRef(),m=fo(),k=h.useRef(null),R=Wt(k,ti(a),r),E=_=>O=>{if(_){const V=k.current;O===void 0?_(V):_(V,O)}},$=E(u),I=E((_,O)=>{hw(_);const{duration:V,delay:j,easing:B}=od({style:b,timeout:w,easing:i},{mode:"enter"});let W;w==="auto"?(W=m.transitions.getAutoHeightDuration(_.clientHeight),v.current=W):W=V,_.style.transition=[m.transitions.create("opacity",{duration:W,delay:j}),m.transitions.create("transform",{duration:Tp?W:W*.666,delay:j,easing:B})].join(","),l&&l(_,O)}),S=E(c),P=E(y),N=E(_=>{const{duration:O,delay:V,easing:j}=od({style:b,timeout:w,easing:i},{mode:"exit"});let B;w==="auto"?(B=m.transitions.getAutoHeightDuration(_.clientHeight),v.current=B):B=O,_.style.transition=[m.transitions.create("opacity",{duration:B,delay:V}),m.transitions.create("transform",{duration:Tp?B:B*.666,delay:Tp?V:V||B*.333,easing:j})].join(","),_.style.opacity=0,_.style.transform=Xh(.75),d&&d(_)}),z=E(f),D=_=>{w==="auto"&&g.start(v.current||0,_),n&&n(k.current,_)};return p.jsx(C,{appear:o,in:s,nodeRef:k,onEnter:I,onEntered:S,onEntering:$,onExit:N,onExited:z,onExiting:P,addEndListener:D,timeout:w==="auto"?null:w,...x,children:(_,O)=>h.cloneElement(a,{style:{opacity:0,transform:Xh(.75),visibility:_==="exited"&&!s?"hidden":void 0,...PO[_],...b,...a.props.style},ref:R,...O})})});Ya&&(Ya.muiSupportAuto=!0);const jO=e=>{const{classes:t,disableUnderline:r}=e,o=Be({root:["root",!r&&"underline"],input:["input"]},E_,t);return{...t,...o}},MO=te(Of,{shouldForwardProp:e=>en(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Mf(e,t),!r.disableUnderline&&t.underline]}})(Pe(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ko.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ko.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ko.disabled}, .${Ko.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ko.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_t()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),_O=te(Lf,{name:"MuiInput",slot:"Input",overridesResolver:_f})({}),cd=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:f="text",...y}=n,b=jO(n),C={root:{ownerState:{disableUnderline:o}}},x=u??i?sr(u??i,C):C,g=d.root??a.Root??MO,v=d.input??a.Input??_O;return p.jsx(Kv,{slots:{root:g,input:v},slotProps:x,fullWidth:s,inputComponent:l,multiline:c,ref:r,type:f,...y,classes:b})});cd&&(cd.muiName="Input");function OO(e){return Ne("MuiInputLabel",e)}const LO=Le("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]),OB=LO,IO=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${J(n)}`,i],asterisk:[s&&"asterisk"]},c=Be(l,OO,t);return{...t,...c}},NO=te(vO,{shouldForwardProp:e=>en(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${hl.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(Pe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),AO=h.forwardRef(function(t,r){const n=Ve({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:a,shrink:i,variant:s,className:l,...c}=n,u=ba();let d=i;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=ri({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),y={...n,disableAnimation:o,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},b=IO(y);return p.jsx(NO,{"data-shrink":d,ref:r,className:le(b.root,l),...c,ownerState:y,classes:b})});function DO(e){return Ne("MuiLinearProgress",e)}const BO=Le("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),LB=BO,em=4,tm=ys` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`,zO=typeof tm!="string"?nf` + animation: ${tm} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,rm=ys` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`,FO=typeof rm!="string"?nf` + animation: ${rm} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,nm=ys` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`,VO=typeof nm!="string"?nf` + animation: ${nm} 3s infinite linear; + `:null,UO=e=>{const{classes:t,variant:r,color:n}=e,o={root:["root",`color${J(n)}`,r],dashed:["dashed",`dashedColor${J(n)}`],bar1:["bar",`barColor${J(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${J(n)}`,r==="buffer"&&`color${J(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Be(o,DO,t)},Zv=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?ua(e.palette[t].main,.62):ca(e.palette[t].main,.5),WO=te("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${J(r.color)}`],t[r.variant]]}})(Pe(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{backgroundColor:Zv(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),HO=te("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${J(r.color)}`]]}})(Pe(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(_t()).map(([t])=>{const r=Zv(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),VO||{animation:`${nm} 3s infinite linear`}),KO=te("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${J(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(Pe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${em}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${em}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:zO||{animation:`${tm} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),ZO=te("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${J(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(Pe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Zv(e,t),transition:`transform .${em}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:FO||{animation:`${rm} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),GO=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:i,valueBuffer:s,variant:l="indeterminate",...c}=n,u={...n,color:a,variant:l},d=UO(u),f=xs(),y={},b={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&i!==void 0){y["aria-valuenow"]=Math.round(i),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let w=i-100;f&&(w=-w),b.bar1.transform=`translateX(${w}%)`}if(l==="buffer"&&s!==void 0){let w=(s||0)-100;f&&(w=-w),b.bar2.transform=`translateX(${w}%)`}return p.jsxs(WO,{className:le(d.root,o),ownerState:u,role:"progressbar",...y,ref:r,...c,children:[l==="buffer"?p.jsx(HO,{className:d.dashed,ownerState:u}):null,p.jsx(KO,{className:d.bar1,ownerState:u,style:b.bar1}),l==="determinate"?null:p.jsx(ZO,{className:d.bar2,ownerState:u,style:b.bar2})]})});function YO(e){return Ne("MuiLink",e)}const qO=Le("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),JO=({theme:e,ownerState:t})=>{const r=t.color,n=ts(e,`palette.${r}`,!1)||t.color,o=ts(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:We(n,.4)},K0={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},QO=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root",`underline${J(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Be(a,YO,t)},XO=te(Tr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${J(r.underline)}`],r.component==="button"&&t.button]}})(Pe(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:We(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:We(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:We(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${qO.focusVisible}`]:{outline:"auto"}}}]}))),ud=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiLink"}),o=fo(),{className:a,color:i="primary",component:s="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:f="inherit",sx:y,...b}=n,[w,C]=h.useState(!1),x=k=>{ns(k.target)||C(!1),l&&l(k)},g=k=>{ns(k.target)&&C(!0),c&&c(k)},v={...n,color:i,component:s,focusVisible:w,underline:d,variant:f},m=QO(v);return p.jsx(XO,{color:i,className:le(m.root,a),classes:u,component:s,onBlur:x,onFocus:g,ref:r,ownerState:v,variant:f,...b,sx:[...K0[i]===void 0?[{color:i}]:[],...Array.isArray(y)?y:[y]],style:{...b.style,...d==="always"&&i!=="inherit"&&!K0[i]&&{"--Link-underlineColor":JO({theme:o,ownerState:v})}}})}),om=h.createContext({});function eL(e){return Ne("MuiList",e)}Le("MuiList",["root","padding","dense","subheader"]);const tL=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Be({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},eL,t)},rL=te("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),nL=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=n,d=h.useMemo(()=>({dense:s}),[s]),f={...n,component:i,dense:s,disablePadding:l},y=tL(f);return p.jsx(om.Provider,{value:d,children:p.jsxs(rL,{as:i,className:le(y.root,a),ref:r,ownerState:f,...u,children:[c,o]})})}),Z0=Le("MuiListItemIcon",["root","alignItemsFlexStart"]);function IB(e){return Ne("MuiListItemText",e)}const G0=Le("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function $p(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Y0(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function _w(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function As(e,t,r,n,o,a){let i=!1,s=o(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!_w(s,a)||l)s=o(e,s,r);else return s.focus(),!0}return!1}const Ow=h.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=t,y=h.useRef(null),b=h.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yn(()=>{o&&y.current.focus()},[o]),h.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(v,{direction:m})=>{const k=!y.current.style.width;if(v.clientHeight{const m=y.current,k=v.key;if(v.ctrlKey||v.metaKey||v.altKey){u&&u(v);return}const E=hr(m).activeElement;if(k==="ArrowDown")v.preventDefault(),As(m,E,c,l,$p);else if(k==="ArrowUp")v.preventDefault(),As(m,E,c,l,Y0);else if(k==="Home")v.preventDefault(),As(m,null,c,l,$p);else if(k==="End")v.preventDefault(),As(m,null,c,l,Y0);else if(k.length===1){const $=b.current,I=k.toLowerCase(),S=performance.now();$.keys.length>0&&(S-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&I!==$.keys[0]&&($.repeating=!1)),$.lastTime=S,$.keys.push(I);const P=E&&!$.repeating&&_w(E,$);$.previousKeyMatched&&(P||As(m,E,!1,l,$p,$))?v.preventDefault():$.previousKeyMatched=!1}u&&u(v)},C=Wt(y,r);let x=-1;h.Children.forEach(i,(v,m)=>{if(!h.isValidElement(v)){x===m&&(x+=1,x>=i.length&&(x=-1));return}v.props.disabled||(d==="selectedMenu"&&v.props.selected||x===-1)&&(x=m),x===m&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const g=h.Children.map(i,(v,m)=>{if(m===x){const k={};return a&&(k.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(k.tabIndex=0),h.cloneElement(v,k)}return v});return p.jsx(nL,{role:"menu",ref:C,className:s,onKeyDown:w,tabIndex:o?0:-1,...f,children:g})});function oL(e){return Ne("MuiPopover",e)}Le("MuiPopover",["root","paper"]);function q0(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function J0(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Q0(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Pp(e){return typeof e=="function"?e():e}const aL=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"]},oL,t)},iL=te(Z4,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lw=te(ya,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Iw=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:f=8,marginThreshold:y=16,open:b,PaperProps:w={},slots:C={},slotProps:x={},transformOrigin:g={vertical:"top",horizontal:"left"},TransitionComponent:v=Ya,transitionDuration:m="auto",TransitionProps:{onEntering:k,...R}={},disableScrollLock:E=!1,...$}=n,I=(x==null?void 0:x.paper)??w,S=h.useRef(),P={...n,anchorOrigin:i,anchorReference:l,elevation:f,marginThreshold:y,externalPaperSlotProps:I,transformOrigin:g,TransitionComponent:v,transitionDuration:m,TransitionProps:R},N=aL(P),z=h.useCallback(()=>{if(l==="anchorPosition")return s;const he=Pp(a),fe=(he&&he.nodeType===1?he:hr(S.current).body).getBoundingClientRect();return{top:fe.top+q0(fe,i.vertical),left:fe.left+J0(fe,i.horizontal)}},[a,i.horizontal,i.vertical,s,l]),D=h.useCallback(he=>({vertical:q0(he,g.vertical),horizontal:J0(he,g.horizontal)}),[g.horizontal,g.vertical]),_=h.useCallback(he=>{const je={width:he.offsetWidth,height:he.offsetHeight},fe=D(je);if(l==="none")return{top:null,left:null,transformOrigin:Q0(fe)};const He=z();let Ee=He.top-fe.vertical,Te=He.left-fe.horizontal;const pe=Ee+je.height,T=Te+je.width,A=zn(Pp(a)),U=A.innerHeight-y,re=A.innerWidth-y;if(y!==null&&EeU){const Y=pe-U;Ee-=Y,fe.vertical+=Y}if(y!==null&&Tere){const Y=T-re;Te-=Y,fe.horizontal+=Y}return{top:`${Math.round(Ee)}px`,left:`${Math.round(Te)}px`,transformOrigin:Q0(fe)}},[a,l,z,D,y]),[O,V]=h.useState(b),j=h.useCallback(()=>{const he=S.current;if(!he)return;const je=_(he);je.top!==null&&he.style.setProperty("top",je.top),je.left!==null&&(he.style.left=je.left),he.style.transformOrigin=je.transformOrigin,V(!0)},[_]);h.useEffect(()=>(E&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[a,E,j]);const B=(he,je)=>{k&&k(he,je),j()},W=()=>{V(!1)};h.useEffect(()=>{b&&j()}),h.useImperativeHandle(o,()=>b?{updatePosition:()=>{j()}}:null,[b,j]),h.useEffect(()=>{if(!b)return;const he=Ef(()=>{j()}),je=zn(a);return je.addEventListener("resize",he),()=>{he.clear(),je.removeEventListener("resize",he)}},[a,b,j]);let ne=m;m==="auto"&&!v.muiSupportAuto&&(ne=void 0);const ae=d||(a?hr(Pp(a)).body:void 0),de={slots:C,slotProps:{...x,paper:I}},[X,ue]=fr("paper",{elementType:Lw,externalForwardedProps:de,additionalProps:{elevation:f,className:le(N.paper,I==null?void 0:I.className),style:O?I.style:{...I.style,opacity:0}},ownerState:P}),[ke,{slotProps:Ae,...ve}]=fr("root",{elementType:iL,externalForwardedProps:de,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:ae,open:b},ownerState:P,className:le(N.root,u)}),$e=Wt(S,ue.ref);return p.jsx(ke,{...ve,...!Jh(ke)&&{slotProps:Ae,disableScrollLock:E},...$,ref:r,children:p.jsx(v,{appear:!0,in:b,onEntering:B,onExited:W,timeout:ne,...R,children:p.jsx(X,{...ue,ref:$e,children:c})})})});function sL(e){return Ne("MuiMenu",e)}const lL=Le("MuiMenu",["root","paper","list"]),NB=lL,cL={vertical:"top",horizontal:"right"},uL={vertical:"top",horizontal:"left"},dL=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"],list:["list"]},sL,t)},fL=te(Iw,{shouldForwardProp:e=>en(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pL=te(Lw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),hL=te(Ow,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),mL=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:i,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:y="auto",TransitionProps:{onEntering:b,...w}={},variant:C="selectedMenu",slots:x={},slotProps:g={},...v}=n,m=xs(),k={...n,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:b,PaperProps:d,transitionDuration:y,TransitionProps:w,variant:C},R=dL(k),E=o&&!s&&u,$=h.useRef(null),I=(O,V)=>{$.current&&$.current.adjustStyleForScrollbar(O,{direction:m?"rtl":"ltr"}),b&&b(O,V)},S=O=>{O.key==="Tab"&&(O.preventDefault(),c&&c(O,"tabKeyDown"))};let P=-1;h.Children.map(a,(O,V)=>{h.isValidElement(O)&&(O.props.disabled||(C==="selectedMenu"&&O.props.selected||P===-1)&&(P=V))});const N=x.paper??pL,z=g.paper??d,D=Oo({elementType:x.root,externalSlotProps:g.root,ownerState:k,className:[R.root,i]}),_=Oo({elementType:N,externalSlotProps:z,ownerState:k,className:R.paper});return p.jsx(fL,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:m?"right":"left"},transformOrigin:m?cL:uL,slots:{paper:N,root:x.root},slotProps:{root:D,paper:_},open:u,ref:r,transitionDuration:y,TransitionProps:{onEntering:I,...w},ownerState:k,...v,classes:f,children:p.jsx(hL,{onKeyDown:S,actions:$,autoFocus:o&&(P===-1||s),autoFocusItem:E,variant:C,...l,className:le(R.list,l.className),children:a})})}),vL=mL;function gL(e){return Ne("MuiMenuItem",e)}const Ds=Le("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),yL=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},xL=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,l=Be({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},gL,i);return{...i,...l}},bL=te(Fn,{shouldForwardProp:e=>en(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:yL})(Pe(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ds.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ds.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ds.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ds.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ds.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${V0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${V0.inset}`]:{marginLeft:52},[`& .${G0.root}`]:{marginTop:0,marginBottom:0},[`& .${G0.inset}`]:{paddingLeft:36},[`& .${Z0.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Z0.root} svg`]:{fontSize:"1.25rem"}}}]}))),bu=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f,...y}=n,b=h.useContext(om),w=h.useMemo(()=>({dense:i||b.dense||!1,disableGutters:l}),[b.dense,i,l]),C=h.useRef(null);yn(()=>{o&&C.current&&C.current.focus()},[o]);const x={...n,dense:w.dense,divider:s,disableGutters:l},g=xL(n),v=Wt(C,r);let m;return n.disabled||(m=d!==void 0?d:-1),p.jsx(om.Provider,{value:w,children:p.jsx(bL,{ref:v,role:u,tabIndex:m,component:a,focusVisibleClassName:le(g.focusVisible,c),className:le(g.root,f),...y,ownerState:x,classes:g})})});function SL(e){return Ne("MuiNativeSelect",e)}const Gv=Le("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),wL=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${J(r)}`,a&&"iconOpen",n&&"disabled"]};return Be(s,SL,t)},Nw=te("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Gv.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),CL=te(Nw,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:en,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Gv.multiple}`]:t.multiple}]}})({}),Aw=te("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Gv.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),kL=te(Aw,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${J(r.variant)}`],r.open&&t.iconOpen]}})({}),RL=h.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:a},d=wL(u);return p.jsxs(h.Fragment,{children:[p.jsx(CL,{ownerState:u,className:le(d.select,n),disabled:o,ref:s||r,...c}),t.multiple?null:p.jsx(kL,{as:i,ownerState:u,className:d.icon})]})});var X0;const EL=te("fieldset",{shouldForwardProp:en})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),TL=te("legend",{shouldForwardProp:en})(Pe(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function $L(e){const{children:t,classes:r,className:n,label:o,notched:a,...i}=e,s=o!=null&&o!=="",l={...e,notched:a,withLabel:s};return p.jsx(EL,{"aria-hidden":!0,className:n,ownerState:l,...i,children:p.jsx(TL,{ownerState:l,children:s?p.jsx("span",{children:o}):X0||(X0=p.jsx("span",{className:"notranslate",children:"​"}))})})}const PL=e=>{const{classes:t}=e,n=Be({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},T_,t);return{...t,...n}},jL=te(Of,{shouldForwardProp:e=>en(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Mf})(Pe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${an.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${an.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${an.focused} .${an.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(_t()).map(([r])=>({props:{color:r},style:{[`&.${an.focused} .${an.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${an.error} .${an.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${an.disabled} .${an.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),ML=te($L,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Pe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),_L=te(Lf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_f})(Pe(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),dd=h.forwardRef(function(t,r){var n;const o=Ve({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:d={},type:f="text",...y}=o,b=PL(o),w=ba(),C=ri({props:o,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...o,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:i,hiddenLabel:C.hiddenLabel,multiline:c,size:C.size,type:f},g=d.root??a.Root??jL,v=d.input??a.Input??_L;return p.jsx(Kv,{slots:{root:g,input:v},renderSuffix:m=>p.jsx(ML,{ownerState:x,className:b.notchedOutline,label:l!=null&&l!==""&&C.required?n||(n=p.jsxs(h.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(m.startAdornment||m.filled||m.focused)}),fullWidth:i,inputComponent:s,multiline:c,ref:r,type:f,...y,classes:{...b,notchedOutline:null}})});dd&&(dd.muiName="Input");function OL(e){return Ne("MuiSelect",e)}const LL=Le("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Bs=LL;var e1;const IL=te(Nw,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Bs.select}`]:t.select},{[`&.${Bs.select}`]:t[r.variant]},{[`&.${Bs.error}`]:t.error},{[`&.${Bs.multiple}`]:t.multiple}]}})({[`&.${Bs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),NL=te(Aw,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${J(r.variant)}`],r.open&&t.iconOpen]}})({}),AL=te("input",{shouldForwardProp:e=>cw(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function t1(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function DL(e){return e==null||typeof e=="string"&&!e.trim()}const BL=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${J(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Be(s,OL,t)},zL=h.forwardRef(function(t,r){var Jt;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:i,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:y=!1,IconComponent:b,inputRef:w,labelId:C,MenuProps:x={},multiple:g,name:v,onBlur:m,onChange:k,onClose:R,onFocus:E,onOpen:$,open:I,readOnly:S,renderValue:P,SelectDisplayProps:N={},tabIndex:z,type:D,value:_,variant:O="standard",...V}=t,[j,B]=Ba({controlled:_,default:u,name:"Select"}),[W,ne]=Ba({controlled:I,default:c,name:"Select"}),ae=h.useRef(null),de=h.useRef(null),[X,ue]=h.useState(null),{current:ke}=h.useRef(I!=null),[Ae,ve]=h.useState(),$e=Wt(r,w),he=h.useCallback(L=>{de.current=L,L&&ue(L)},[]),je=X==null?void 0:X.parentNode;h.useImperativeHandle($e,()=>({focus:()=>{de.current.focus()},node:ae.current,value:j}),[j]),h.useEffect(()=>{c&&W&&X&&!ke&&(ve(i?null:je.clientWidth),de.current.focus())},[X,i]),h.useEffect(()=>{a&&de.current.focus()},[a]),h.useEffect(()=>{if(!C)return;const L=hr(de.current).getElementById(C);if(L){const M=()=>{getSelection().isCollapsed&&de.current.focus()};return L.addEventListener("click",M),()=>{L.removeEventListener("click",M)}}},[C]);const fe=(L,M)=>{L?$&&$(M):R&&R(M),ke||(ve(i?null:je.clientWidth),ne(L))},He=L=>{L.button===0&&(L.preventDefault(),de.current.focus(),fe(!0,L))},Ee=L=>{fe(!1,L)},Te=h.Children.toArray(s),pe=L=>{const M=Te.find(F=>F.props.value===L.target.value);M!==void 0&&(B(M.props.value),k&&k(L,M))},T=L=>M=>{let F;if(M.currentTarget.hasAttribute("tabindex")){if(g){F=Array.isArray(j)?j.slice():[];const ee=j.indexOf(L.props.value);ee===-1?F.push(L.props.value):F.splice(ee,1)}else F=L.props.value;if(L.props.onClick&&L.props.onClick(M),j!==F&&(B(F),k)){const ee=M.nativeEvent||M,se=new ee.constructor(ee.type,ee);Object.defineProperty(se,"target",{writable:!0,value:{value:F,name:v}}),k(se,L)}g||fe(!1,M)}},A=L=>{S||[" ","ArrowUp","ArrowDown","Enter"].includes(L.key)&&(L.preventDefault(),fe(!0,L))},U=X!==null&&W,re=L=>{!U&&m&&(Object.defineProperty(L,"target",{writable:!0,value:{value:j,name:v}}),m(L))};delete V["aria-invalid"];let Y,Q;const Z=[];let Me=!1;(sd({value:j})||f)&&(P?Y=P(j):Me=!0);const Ke=Te.map(L=>{if(!h.isValidElement(L))return null;let M;if(g){if(!Array.isArray(j))throw new Error(Mo(2));M=j.some(F=>t1(F,L.props.value)),M&&Me&&Z.push(L.props.children)}else M=t1(j,L.props.value),M&&Me&&(Q=L.props.children);return h.cloneElement(L,{"aria-selected":M?"true":"false",onClick:T(L),onKeyUp:F=>{F.key===" "&&F.preventDefault(),L.props.onKeyUp&&L.props.onKeyUp(F)},role:"option",selected:M,value:void 0,"data-value":L.props.value})});Me&&(g?Z.length===0?Y=null:Y=Z.reduce((L,M,F)=>(L.push(M),F{const{classes:t}=e;return t},Yv={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>en(e)&&e!=="variant",slot:"Root"},VL=te(cd,Yv)(""),UL=te(dd,Yv)(""),WL=te(ld,Yv)(""),qv=h.forwardRef(function(t,r){const n=Lv({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=Tw,id:d,input:f,inputProps:y,label:b,labelId:w,MenuProps:C,multiple:x=!1,native:g=!1,onClose:v,onOpen:m,open:k,renderValue:R,SelectDisplayProps:E,variant:$="outlined",...I}=n,S=g?RL:zL,P=ba(),N=ri({props:n,muiFormControl:P,states:["variant","error"]}),z=N.variant||$,D={...n,variant:z,classes:i},_=FL(D),{root:O,...V}=_,j=f||{standard:p.jsx(VL,{ownerState:D}),outlined:p.jsx(UL,{label:b,ownerState:D}),filled:p.jsx(WL,{ownerState:D})}[z],B=Wt(r,ti(j));return p.jsx(h.Fragment,{children:h.cloneElement(j,{inputComponent:S,inputProps:{children:a,error:N.error,IconComponent:u,variant:z,type:void 0,multiple:x,...g?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:w,MenuProps:C,onClose:v,onOpen:m,open:k,renderValue:R,SelectDisplayProps:{id:d,...E}},...y,classes:y?sr(V,y.classes):V,...f?f.props.inputProps:{}},...(x&&g||c)&&z==="outlined"?{notched:!0}:{},ref:B,className:le(j.props.className,s,_.root),...!f&&{variant:z},...I})})});qv.muiName="Select";function HL(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,i=Ma();h.useEffect(()=>{if(!o)return;function x(g){g.defaultPrevented||g.key==="Escape"&&(n==null||n(g,"escapeKeyDown"))}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[o,n]);const s=ar((x,g)=>{n==null||n(x,g)}),l=ar(x=>{!n||x==null||i.start(x,()=>{s(null,"timeout")})});h.useEffect(()=>(o&&l(t),i.clear),[o,t,l,i]);const c=x=>{n==null||n(x,"clickaway")},u=i.clear,d=h.useCallback(()=>{t!=null&&l(a??t*.5)},[t,a,l]),f=x=>g=>{const v=x.onBlur;v==null||v(g),d()},y=x=>g=>{const v=x.onFocus;v==null||v(g),u()},b=x=>g=>{const v=x.onMouseEnter;v==null||v(g),u()},w=x=>g=>{const v=x.onMouseLeave;v==null||v(g),d()};return h.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[r,o,d,u]),{getRootProps:(x={})=>{const g={...td(e),...td(x)};return{role:"presentation",...x,...g,onBlur:f(g),onFocus:y(g),onMouseEnter:b(g),onMouseLeave:w(g)}},onClickAway:c}}function KL(e){return Ne("MuiSnackbarContent",e)}Le("MuiSnackbarContent",["root","message","action"]);const ZL=e=>{const{classes:t}=e;return Be({root:["root"],action:["action"],message:["message"]},KL,t)},GL=te(ya,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(Pe(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=Xu(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),YL=te("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),qL=te("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),JL=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:s="alert",...l}=n,c=n,u=ZL(c);return p.jsxs(GL,{role:s,square:!0,elevation:6,className:le(u.root,a),ownerState:c,ref:r,...l,children:[p.jsx(YL,{className:u.message,ownerState:c,children:i}),o?p.jsx(qL,{className:u.action,ownerState:c,children:o}):null]})});function QL(e){return Ne("MuiSnackbar",e)}Le("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const XL=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${J(r.vertical)}${J(r.horizontal)}`]};return Be(n,QL,t)},r1=te("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${J(r.anchorOrigin.vertical)}${J(r.anchorOrigin.horizontal)}`]]}})(Pe(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),eI=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiSnackbar"}),o=fo(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:f,ContentProps:y,disableWindowBlurListener:b=!1,message:w,onBlur:C,onClose:x,onFocus:g,onMouseEnter:v,onMouseLeave:m,open:k,resumeHideDuration:R,TransitionComponent:E=Ya,transitionDuration:$=a,TransitionProps:{onEnter:I,onExited:S,...P}={},...N}=n,z={...n,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:b,TransitionComponent:E,transitionDuration:$},D=XL(z),{getRootProps:_,onClickAway:O}=HL({...z}),[V,j]=h.useState(!0),B=Oo({elementType:r1,getSlotProps:_,externalForwardedProps:N,ownerState:z,additionalProps:{ref:r},className:[D.root,d]}),W=ae=>{j(!0),S&&S(ae)},ne=(ae,de)=>{j(!1),I&&I(ae,de)};return!k&&V?null:p.jsx(Pw,{onClickAway:O,...f,children:p.jsx(r1,{...B,children:p.jsx(E,{appear:!0,in:k,timeout:$,direction:s==="top"?"down":"up",onEnter:ne,onExited:W,...P,children:u||p.jsx(JL,{message:w,action:i,...y})})})})});function tI(e){return Ne("MuiTooltip",e)}const Vt=Le("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function rI(e){return Math.round(e*1e5)/1e5}const nI=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${J(a.split("-")[0])}`],arrow:["arrow"]};return Be(i,tI,t)},oI=te(pc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(Pe(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Vt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Vt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Vt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Vt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Vt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Vt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Vt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Vt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),aI=te("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${J(r.placement.split("-")[0])}`]]}})(Pe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:We(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,[`.${Vt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Vt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Vt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Vt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${rI(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Vt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Vt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Vt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Vt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Vt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Vt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Vt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Vt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Vt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Vt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),iI=te("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Pe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:We(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Yc=!1;const n1=new $f;let zs={x:0,y:0};function qc(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Dw=h.forwardRef(function(t,r){var ht,Je,at;const n=Ve({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:i,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:y=!1,enterDelay:b=100,enterNextDelay:w=0,enterTouchDelay:C=700,followCursor:x=!1,id:g,leaveDelay:v=0,leaveTouchDelay:m=1500,onClose:k,onOpen:R,open:E,placement:$="bottom",PopperComponent:I,PopperProps:S={},slotProps:P={},slots:N={},title:z,TransitionComponent:D=Ya,TransitionProps:_,...O}=n,V=h.isValidElement(a)?a:p.jsx("span",{children:a}),j=fo(),B=xs(),[W,ne]=h.useState(),[ae,de]=h.useState(null),X=h.useRef(!1),ue=f||x,ke=Ma(),Ae=Ma(),ve=Ma(),$e=Ma(),[he,je]=Ba({controlled:E,default:!1,name:"Tooltip",state:"open"});let fe=he;const He=Tf(g),Ee=h.useRef(),Te=ar(()=>{Ee.current!==void 0&&(document.body.style.WebkitUserSelect=Ee.current,Ee.current=void 0),$e.clear()});h.useEffect(()=>Te,[Te]);const pe=Se=>{n1.clear(),Yc=!0,je(!0),R&&!fe&&R(Se)},T=ar(Se=>{n1.start(800+v,()=>{Yc=!1}),je(!1),k&&fe&&k(Se),ke.start(j.transitions.duration.shortest,()=>{X.current=!1})}),A=Se=>{X.current&&Se.type!=="touchstart"||(W&&W.removeAttribute("title"),Ae.clear(),ve.clear(),b||Yc&&w?Ae.start(Yc?w:b,()=>{pe(Se)}):pe(Se))},U=Se=>{Ae.clear(),ve.start(v,()=>{T(Se)})},[,re]=h.useState(!1),Y=Se=>{ns(Se.target)||(re(!1),U(Se))},Q=Se=>{W||ne(Se.currentTarget),ns(Se.target)&&(re(!0),A(Se))},Z=Se=>{X.current=!0;const Ot=V.props;Ot.onTouchStart&&Ot.onTouchStart(Se)},Me=Se=>{Z(Se),ve.clear(),ke.clear(),Te(),Ee.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",$e.start(C,()=>{document.body.style.WebkitUserSelect=Ee.current,A(Se)})},Ke=Se=>{V.props.onTouchEnd&&V.props.onTouchEnd(Se),Te(),ve.start(m,()=>{T(Se)})};h.useEffect(()=>{if(!fe)return;function Se(Ot){Ot.key==="Escape"&&T(Ot)}return document.addEventListener("keydown",Se),()=>{document.removeEventListener("keydown",Se)}},[T,fe]);const ot=Wt(ti(V),ne,r);!z&&z!==0&&(fe=!1);const ze=h.useRef(),_e=Se=>{const Ot=V.props;Ot.onMouseMove&&Ot.onMouseMove(Se),zs={x:Se.clientX,y:Se.clientY},ze.current&&ze.current.update()},Ie={},ct=typeof z=="string";c?(Ie.title=!fe&&ct&&!d?z:null,Ie["aria-describedby"]=fe?He:null):(Ie["aria-label"]=ct?z:null,Ie["aria-labelledby"]=fe&&!ct?He:null);const Oe={...Ie,...O,...V.props,className:le(O.className,V.props.className),onTouchStart:Z,ref:ot,...x?{onMouseMove:_e}:{}},bt={};y||(Oe.onTouchStart=Me,Oe.onTouchEnd=Ke),d||(Oe.onMouseOver=qc(A,Oe.onMouseOver),Oe.onMouseLeave=qc(U,Oe.onMouseLeave),ue||(bt.onMouseOver=A,bt.onMouseLeave=U)),u||(Oe.onFocus=qc(Q,Oe.onFocus),Oe.onBlur=qc(Y,Oe.onBlur),ue||(bt.onFocus=Q,bt.onBlur=Y));const Jt=h.useMemo(()=>{var Ot;let Se=[{name:"arrow",enabled:!!ae,options:{element:ae,padding:4}}];return(Ot=S.popperOptions)!=null&&Ot.modifiers&&(Se=Se.concat(S.popperOptions.modifiers)),{...S.popperOptions,modifiers:Se}},[ae,S]),L={...n,isRtl:B,arrow:o,disableInteractive:ue,placement:$,PopperComponentProp:I,touch:X.current},M=nI(L),F=N.popper??s.Popper??oI,ee=N.transition??s.Transition??D??Ya,se=N.tooltip??s.Tooltip??aI,ce=N.arrow??s.Arrow??iI,Ce=Mi(F,{...S,...P.popper??l.popper,className:le(M.popper,S==null?void 0:S.className,(ht=P.popper??l.popper)==null?void 0:ht.className)},L),ye=Mi(ee,{..._,...P.transition??l.transition},L),xe=Mi(se,{...P.tooltip??l.tooltip,className:le(M.tooltip,(Je=P.tooltip??l.tooltip)==null?void 0:Je.className)},L),rt=Mi(ce,{...P.arrow??l.arrow,className:le(M.arrow,(at=P.arrow??l.arrow)==null?void 0:at.className)},L);return p.jsxs(h.Fragment,{children:[h.cloneElement(V,Oe),p.jsx(F,{as:I??pc,placement:$,anchorEl:x?{getBoundingClientRect:()=>({top:zs.y,left:zs.x,right:zs.x,bottom:zs.y,width:0,height:0})}:W,popperRef:ze,open:W?fe:!1,id:He,transition:!0,...bt,...Ce,popperOptions:Jt,children:({TransitionProps:Se})=>p.jsx(ee,{timeout:j.transitions.duration.shorter,...Se,...ye,children:p.jsxs(se,{...xe,children:[z,o?p.jsx(ce,{...rt,ref:de}):null]})})})]})}),o1=sP({createStyledComponent:te("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Lv({props:e,name:"MuiStack"})});function sI(e){return Ne("MuiSwitch",e)}const Cr=Le("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),lI=e=>{const{classes:t,edge:r,size:n,color:o,checked:a,disabled:i}=e,s={root:["root",r&&`edge${J(r)}`,`size${J(n)}`],switchBase:["switchBase",`color${J(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Be(s,sI,t);return{...t,...l}},cI=te("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${J(r.edge)}`],t[`size${J(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Cr.thumb}`]:{width:16,height:16},[`& .${Cr.switchBase}`]:{padding:4,[`&.${Cr.checked}`]:{transform:"translateX(16px)"}}}}]}),uI=te(S4,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Cr.input}`]:t.input},r.color!=="default"&&t[`color${J(r.color)}`]]}})(Pe(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Cr.checked}`]:{transform:"translateX(20px)"},[`&.${Cr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Cr.checked} + .${Cr.track}`]:{opacity:.5},[`&.${Cr.disabled} + .${Cr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Cr.input}`]:{left:"-100%",width:"300%"}})),Pe(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(_t(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Cr.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Cr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?ua(e.palette[t].main,.62):ca(e.palette[t].main,.55)}`}},[`&.${Cr.checked} + .${Cr.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),dI=te("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(Pe(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),fI=te("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(Pe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),pI=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:l,...c}=n,u={...n,color:a,edge:i,size:s},d=lI(u),f=p.jsx(fI,{className:d.thumb,ownerState:u});return p.jsxs(cI,{className:le(d.root,o),sx:l,ownerState:u,children:[p.jsx(uI,{type:"checkbox",icon:f,checkedIcon:f,ref:r,ownerState:u,...c,classes:{...d,root:d.switchBase}}),p.jsx(dI,{className:d.track,ownerState:u})]})});function hI(e){return Ne("MuiTab",e)}const on=Le("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),mI=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${J(r)}`,n&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Be(c,hI,t)},vI=te(Fn,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${J(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${on.iconWrapper}`]:t.iconWrapper},{[`& .${on.icon}`]:t.icon}]}})(Pe(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${on.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${on.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${on.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${on.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${on.selected}`]:{opacity:1},[`&.${on.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${on.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${on.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${on.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${on.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),gI=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:f,onClick:y,onFocus:b,selected:w,selectionFollowsFocus:C,textColor:x="inherit",value:g,wrapped:v=!1,...m}=n,k={...n,disabled:a,disableFocusRipple:i,selected:w,icon:!!l,iconPosition:c,label:!!d,fullWidth:s,textColor:x,wrapped:v},R=mI(k),E=l&&d&&h.isValidElement(l)?h.cloneElement(l,{className:le(R.icon,l.props.className)}):l,$=S=>{!w&&f&&f(S,g),y&&y(S)},I=S=>{C&&!w&&f&&f(S,g),b&&b(S)};return p.jsxs(vI,{focusRipple:!i,className:le(R.root,o),ref:r,role:"tab","aria-selected":w,disabled:a,onClick:$,onFocus:I,ownerState:k,tabIndex:w?0:-1,...m,children:[c==="top"||c==="start"?p.jsxs(h.Fragment,{children:[E,d]}):p.jsxs(h.Fragment,{children:[d,E]}),u]})}),Bw=h.createContext();function yI(e){return Ne("MuiTable",e)}const xI=Le("MuiTable",["root","stickyHeader"]),AB=xI,bI=e=>{const{classes:t,stickyHeader:r}=e;return Be({root:["root",r&&"stickyHeader"]},yI,t)},SI=te("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(Pe(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),a1="table",wI=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTable"}),{className:o,component:a=a1,padding:i="normal",size:s="medium",stickyHeader:l=!1,...c}=n,u={...n,component:a,padding:i,size:s,stickyHeader:l},d=bI(u),f=h.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return p.jsx(Bw.Provider,{value:f,children:p.jsx(SI,{as:a,role:a===a1?null:"table",ref:r,className:le(d.root,o),ownerState:u,...c})})}),If=h.createContext();function CI(e){return Ne("MuiTableBody",e)}const kI=Le("MuiTableBody",["root"]),DB=kI,RI=e=>{const{classes:t}=e;return Be({root:["root"]},CI,t)},EI=te("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),TI={variant:"body"},i1="tbody",$I=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTableBody"}),{className:o,component:a=i1,...i}=n,s={...n,component:a},l=RI(s);return p.jsx(If.Provider,{value:TI,children:p.jsx(EI,{className:le(l.root,o),as:a,ref:r,role:a===i1?null:"rowgroup",ownerState:s,...i})})});function PI(e){return Ne("MuiTableCell",e)}const jI=Le("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),MI=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${J(n)}`,o!=="normal"&&`padding${J(o)}`,`size${J(a)}`]};return Be(s,PI,t)},_I=te("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${J(r.size)}`],r.padding!=="normal"&&t[`padding${J(r.padding)}`],r.align!=="inherit"&&t[`align${J(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(Pe(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?ua(We(e.palette.divider,1),.88):ca(We(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${jI.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Yn=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:d,...f}=n,y=h.useContext(Bw),b=h.useContext(If),w=b&&b.variant==="head";let C;i?C=i:C=w?"th":"td";let x=l;C==="td"?x=void 0:!x&&w&&(x="col");const g=d||b&&b.variant,v={...n,align:o,component:C,padding:s||(y&&y.padding?y.padding:"normal"),size:c||(y&&y.size?y.size:"medium"),sortDirection:u,stickyHeader:g==="head"&&y&&y.stickyHeader,variant:g},m=MI(v);let k=null;return u&&(k=u==="asc"?"ascending":"descending"),p.jsx(_I,{as:C,ref:r,className:le(m.root,a),"aria-sort":k,scope:x,ownerState:v,...f})});function OI(e){return Ne("MuiTableHead",e)}const LI=Le("MuiTableHead",["root"]),BB=LI,II=e=>{const{classes:t}=e;return Be({root:["root"]},OI,t)},NI=te("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),AI={variant:"head"},s1="thead",DI=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTableHead"}),{className:o,component:a=s1,...i}=n,s={...n,component:a},l=II(s);return p.jsx(If.Provider,{value:AI,children:p.jsx(NI,{as:a,className:le(l.root,o),ref:r,role:a===s1?null:"rowgroup",ownerState:s,...i})})});function BI(e){return Ne("MuiToolbar",e)}const zI=Le("MuiToolbar",["root","gutters","regular","dense"]),zB=zI,FI=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Be({root:["root",!r&&"gutters",n]},BI,t)},VI=te("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(Pe(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),UI=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular",...l}=n,c={...n,component:a,disableGutters:i,variant:s},u=FI(c);return p.jsx(VI,{as:a,className:le(u.root,o),ref:r,ownerState:c,...l})}),WI=rr(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),HI=rr(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function KI(e){return Ne("MuiTableRow",e)}const l1=Le("MuiTableRow",["root","selected","hover","head","footer"]),ZI=e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e;return Be({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},KI,t)},GI=te("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(Pe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${l1.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${l1.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(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}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),c1="tr",jp=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTableRow"}),{className:o,component:a=c1,hover:i=!1,selected:s=!1,...l}=n,c=h.useContext(If),u={...n,component:a,hover:i,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},d=ZI(u);return p.jsx(GI,{as:a,ref:r,className:le(d.root,o),role:a===c1?null:"row",ownerState:u,...l})}),YI=rr(p.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function qI(e){return Ne("MuiTableSortLabel",e)}const Mp=Le("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),JI=e=>{const{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active",`direction${J(r)}`],icon:["icon",`iconDirection${J(r)}`]};return Be(o,qI,t)},QI=te(Fn,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(Pe(({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,[`& .${Mp.icon}`]:{opacity:.5}},[`&.${Mp.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Mp.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),XI=te("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${J(r.direction)}`]]}})(Pe(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),e3=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:a,className:i,direction:s="asc",hideSortIcon:l=!1,IconComponent:c=YI,...u}=n,d={...n,active:o,direction:s,hideSortIcon:l,IconComponent:c},f=JI(d);return p.jsxs(QI,{className:le(f.root,i),component:"span",disableRipple:!0,ownerState:d,ref:r,...u,children:[a,l&&!o?null:p.jsx(XI,{as:c,className:le(f.icon),ownerState:d})]})});function t3(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function r3(e,t,r,n={},o=()=>{}){const{ease:a=t3,duration:i=300}=n;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=f=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=f);const y=Math.min(1,(f-s)/i);if(t[e]=a(y)*(r-l)+l,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return l===r?(o(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}const n3={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function o3(e){const{onChange:t,...r}=e,n=h.useRef(),o=h.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return yn(()=>{const i=Ef(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=zn(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),h.useEffect(()=>{a(),t(n.current)},[t]),p.jsx("div",{style:n3,ref:o,...r})}function a3(e){return Ne("MuiTabScrollButton",e)}const i3=Le("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),s3=e=>{const{classes:t,orientation:r,disabled:n}=e;return Be({root:["root",r,n&&"disabled"]},a3,t)},l3=te(Fn,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${i3.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),c3=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:i={},direction:s,orientation:l,disabled:c,...u}=n,d=xs(),f={isRtl:d,...n},y=s3(f),b=a.StartScrollButtonIcon??WI,w=a.EndScrollButtonIcon??HI,C=Oo({elementType:b,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),x=Oo({elementType:w,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return p.jsx(l3,{component:"div",className:le(y.root,o),ref:r,role:null,ownerState:f,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:s==="left"?p.jsx(b,{...C}):p.jsx(w,{...x})})});function u3(e){return Ne("MuiTabs",e)}const _p=Le("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),u1=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,d1=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Jc=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(e,o);else{o.focus();return}}},d3=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Be({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},u3,l)},f3=te("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${_p.scrollButtons}`]:t.scrollButtons},{[`& .${_p.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Pe(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${_p.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),p3=te("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),h3=te("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),m3=te("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Pe(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),v3=te(o3)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),f1={},g3=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTabs"}),o=fo(),a=xs(),{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:d,component:f="div",allowScrollButtonsMobile:y=!1,indicatorColor:b="primary",onChange:w,orientation:C="horizontal",ScrollButtonComponent:x=c3,scrollButtons:g="auto",selectionFollowsFocus:v,slots:m={},slotProps:k={},TabIndicatorProps:R={},TabScrollButtonProps:E={},textColor:$="primary",value:I,variant:S="standard",visibleScrollbar:P=!1,...N}=n,z=S==="scrollable",D=C==="vertical",_=D?"scrollTop":"scrollLeft",O=D?"top":"left",V=D?"bottom":"right",j=D?"clientHeight":"clientWidth",B=D?"height":"width",W={...n,component:f,allowScrollButtonsMobile:y,indicatorColor:b,orientation:C,vertical:D,scrollButtons:g,textColor:$,variant:S,visibleScrollbar:P,fixed:!z,hideScrollbar:z&&!P,scrollableX:z&&!D,scrollableY:z&&D,centered:c&&!z,scrollButtonsHideMobile:!y},ne=d3(W),ae=Oo({elementType:m.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:W}),de=Oo({elementType:m.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:W}),[X,ue]=h.useState(!1),[ke,Ae]=h.useState(f1),[ve,$e]=h.useState(!1),[he,je]=h.useState(!1),[fe,He]=h.useState(!1),[Ee,Te]=h.useState({overflow:"hidden",scrollbarWidth:0}),pe=new Map,T=h.useRef(null),A=h.useRef(null),U=()=>{const M=T.current;let F;if(M){const se=M.getBoundingClientRect();F={clientWidth:M.clientWidth,scrollLeft:M.scrollLeft,scrollTop:M.scrollTop,scrollWidth:M.scrollWidth,top:se.top,bottom:se.bottom,left:se.left,right:se.right}}let ee;if(M&&I!==!1){const se=A.current.children;if(se.length>0){const ce=se[pe.get(I)];ee=ce?ce.getBoundingClientRect():null}}return{tabsMeta:F,tabMeta:ee}},re=ar(()=>{const{tabsMeta:M,tabMeta:F}=U();let ee=0,se;D?(se="top",F&&M&&(ee=F.top-M.top+M.scrollTop)):(se=a?"right":"left",F&&M&&(ee=(a?-1:1)*(F[se]-M[se]+M.scrollLeft)));const ce={[se]:ee,[B]:F?F[B]:0};if(typeof ke[se]!="number"||typeof ke[B]!="number")Ae(ce);else{const Ce=Math.abs(ke[se]-ce[se]),ye=Math.abs(ke[B]-ce[B]);(Ce>=1||ye>=1)&&Ae(ce)}}),Y=(M,{animation:F=!0}={})=>{F?r3(_,T.current,M,{duration:o.transitions.duration.standard}):T.current[_]=M},Q=M=>{let F=T.current[_];D?F+=M:F+=M*(a?-1:1),Y(F)},Z=()=>{const M=T.current[j];let F=0;const ee=Array.from(A.current.children);for(let se=0;seM){se===0&&(F=M);break}F+=ce[j]}return F},Me=()=>{Q(-1*Z())},Ke=()=>{Q(Z())},ot=h.useCallback(M=>{Te({overflow:null,scrollbarWidth:M})},[]),ze=()=>{const M={};M.scrollbarSizeListener=z?p.jsx(v3,{onChange:ot,className:le(ne.scrollableX,ne.hideScrollbar)}):null;const ee=z&&(g==="auto"&&(ve||he)||g===!0);return M.scrollButtonStart=ee?p.jsx(x,{slots:{StartScrollButtonIcon:m.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ae},orientation:C,direction:a?"right":"left",onClick:Me,disabled:!ve,...E,className:le(ne.scrollButtons,E.className)}):null,M.scrollButtonEnd=ee?p.jsx(x,{slots:{EndScrollButtonIcon:m.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:de},orientation:C,direction:a?"left":"right",onClick:Ke,disabled:!he,...E,className:le(ne.scrollButtons,E.className)}):null,M},_e=ar(M=>{const{tabsMeta:F,tabMeta:ee}=U();if(!(!ee||!F)){if(ee[O]F[V]){const se=F[_]+(ee[V]-F[V]);Y(se,{animation:M})}}}),Ie=ar(()=>{z&&g!==!1&&He(!fe)});h.useEffect(()=>{const M=Ef(()=>{T.current&&re()});let F;const ee=Ce=>{Ce.forEach(ye=>{ye.removedNodes.forEach(xe=>{F==null||F.unobserve(xe)}),ye.addedNodes.forEach(xe=>{F==null||F.observe(xe)})}),M(),Ie()},se=zn(T.current);se.addEventListener("resize",M);let ce;return typeof ResizeObserver<"u"&&(F=new ResizeObserver(M),Array.from(A.current.children).forEach(Ce=>{F.observe(Ce)})),typeof MutationObserver<"u"&&(ce=new MutationObserver(ee),ce.observe(A.current,{childList:!0})),()=>{M.clear(),se.removeEventListener("resize",M),ce==null||ce.disconnect(),F==null||F.disconnect()}},[re,Ie]),h.useEffect(()=>{const M=Array.from(A.current.children),F=M.length;if(typeof IntersectionObserver<"u"&&F>0&&z&&g!==!1){const ee=M[0],se=M[F-1],ce={root:T.current,threshold:.99},Ce=ht=>{$e(!ht[0].isIntersecting)},ye=new IntersectionObserver(Ce,ce);ye.observe(ee);const xe=ht=>{je(!ht[0].isIntersecting)},rt=new IntersectionObserver(xe,ce);return rt.observe(se),()=>{ye.disconnect(),rt.disconnect()}}},[z,g,fe,u==null?void 0:u.length]),h.useEffect(()=>{ue(!0)},[]),h.useEffect(()=>{re()}),h.useEffect(()=>{_e(f1!==ke)},[_e,ke]),h.useImperativeHandle(l,()=>({updateIndicator:re,updateScrollButtons:Ie}),[re,Ie]);const ct=p.jsx(m3,{...R,className:le(ne.indicator,R.className),ownerState:W,style:{...ke,...R.style}});let Oe=0;const bt=h.Children.map(u,M=>{if(!h.isValidElement(M))return null;const F=M.props.value===void 0?Oe:M.props.value;pe.set(F,Oe);const ee=F===I;return Oe+=1,h.cloneElement(M,{fullWidth:S==="fullWidth",indicator:ee&&!X&&ct,selected:ee,selectionFollowsFocus:v,onChange:w,textColor:$,value:F,...Oe===1&&I===!1&&!M.props.tabIndex?{tabIndex:0}:{}})}),Jt=M=>{const F=A.current,ee=hr(F).activeElement;if(ee.getAttribute("role")!=="tab")return;let ce=C==="horizontal"?"ArrowLeft":"ArrowUp",Ce=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&a&&(ce="ArrowRight",Ce="ArrowLeft"),M.key){case ce:M.preventDefault(),Jc(F,ee,d1);break;case Ce:M.preventDefault(),Jc(F,ee,u1);break;case"Home":M.preventDefault(),Jc(F,null,u1);break;case"End":M.preventDefault(),Jc(F,null,d1);break}},L=ze();return p.jsxs(f3,{className:le(ne.root,d),ownerState:W,ref:r,as:f,...N,children:[L.scrollButtonStart,L.scrollbarSizeListener,p.jsxs(p3,{className:ne.scroller,ownerState:W,style:{overflow:Ee.overflow,[D?`margin${a?"Left":"Right"}`:"marginBottom"]:P?void 0:-Ee.scrollbarWidth},ref:T,children:[p.jsx(h3,{"aria-label":i,"aria-labelledby":s,"aria-orientation":C==="vertical"?"vertical":null,className:ne.flexContainer,ownerState:W,onKeyDown:Jt,ref:A,role:"tablist",children:bt}),X&&ct]}),L.scrollButtonEnd]})});function y3(e){return Ne("MuiTextField",e)}const x3=Le("MuiTextField",["root"]),FB=x3,b3={standard:cd,filled:ld,outlined:dd},S3=e=>{const{classes:t}=e;return Be({root:["root"]},y3,t)},w3=te(tO,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fd=h.forwardRef(function(t,r){const n=Ve({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:y=!1,helperText:b,id:w,InputLabelProps:C,inputProps:x,InputProps:g,inputRef:v,label:m,maxRows:k,minRows:R,multiline:E=!1,name:$,onBlur:I,onChange:S,onFocus:P,placeholder:N,required:z=!1,rows:D,select:_=!1,SelectProps:O,slots:V={},slotProps:j={},type:B,value:W,variant:ne="outlined",...ae}=n,de={...n,autoFocus:a,color:l,disabled:u,error:d,fullWidth:y,multiline:E,required:z,select:_,variant:ne},X=S3(de),ue=Tf(w),ke=b&&ue?`${ue}-helper-text`:void 0,Ae=m&&ue?`${ue}-label`:void 0,ve=b3[ne],$e={slots:V,slotProps:{input:g,inputLabel:C,htmlInput:x,formHelperText:f,select:O,...j}},he={},je=$e.slotProps.inputLabel;ne==="outlined"&&(je&&typeof je.shrink<"u"&&(he.notched=je.shrink),he.label=m),_&&((!O||!O.native)&&(he.id=void 0),he["aria-describedby"]=void 0);const[fe,He]=fr("input",{elementType:ve,externalForwardedProps:$e,additionalProps:he,ownerState:de}),[Ee,Te]=fr("inputLabel",{elementType:AO,externalForwardedProps:$e,ownerState:de}),[pe,T]=fr("htmlInput",{elementType:"input",externalForwardedProps:$e,ownerState:de}),[A,U]=fr("formHelperText",{elementType:dO,externalForwardedProps:$e,ownerState:de}),[re,Y]=fr("select",{elementType:qv,externalForwardedProps:$e,ownerState:de}),Q=p.jsx(fe,{"aria-describedby":ke,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:y,multiline:E,name:$,rows:D,maxRows:k,minRows:R,type:B,value:W,id:ue,inputRef:v,onBlur:I,onChange:S,onFocus:P,placeholder:N,inputProps:T,slots:{input:V.htmlInput?pe:void 0},...He});return p.jsxs(w3,{className:le(X.root,s),disabled:u,error:d,fullWidth:y,ref:r,required:z,color:l,variant:ne,ownerState:de,...ae,children:[m!=null&&m!==""&&p.jsx(Ee,{htmlFor:ue,id:Ae,...Te,children:m}),_?p.jsx(re,{"aria-describedby":ke,id:ue,labelId:Ae,value:W,input:Q,...Y,children:i}):Q,b&&p.jsx(A,{id:ke,...U,children:b})]})});function C3(e){return Ne("MuiToggleButton",e)}const Op=Le("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),k3=h.createContext({}),R3=h.createContext(void 0);function E3(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const T3=e=>{const{classes:t,fullWidth:r,selected:n,disabled:o,size:a,color:i}=e,s={root:["root",n&&"selected",o&&"disabled",r&&"fullWidth",`size${J(a)}`,i]};return Be(s,C3,t)},$3=te(Fn,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`size${J(r.size)}`]]}})(Pe(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${Op.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${Op.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{[`&.${Op.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),zw=h.forwardRef(function(t,r){const{value:n,...o}=h.useContext(k3),a=h.useContext(R3),i=rs({...o,selected:E3(t.value,n)},t),s=Ve({props:i,name:"MuiToggleButton"}),{children:l,className:c,color:u="standard",disabled:d=!1,disableFocusRipple:f=!1,fullWidth:y=!1,onChange:b,onClick:w,selected:C,size:x="medium",value:g,...v}=s,m={...s,color:u,disabled:d,disableFocusRipple:f,fullWidth:y,size:x},k=T3(m),R=$=>{w&&(w($,g),$.defaultPrevented)||b&&b($,g)},E=a||"";return p.jsx($3,{className:le(o.className,k.root,c,E),disabled:d,focusRipple:!f,ref:r,onClick:R,onChange:b,value:g,ownerState:m,"aria-pressed":C,...v,children:l})});/** + * @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 Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function us(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function j3(){return Math.random().toString(36).substr(2,8)}function h1(e,t){return{usr:e.state,key:e.key,idx:t}}function Fl(e,t,r,n){return r===void 0&&(r=null),Pt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Sa(t):t,{state:r,key:t&&t.key||n||j3()})}function da(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Sa(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function M3(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s=Qt.Pop,l=null,c=u();c==null&&(c=0,i.replaceState(Pt({},i.state,{idx:c}),""));function u(){return(i.state||{idx:null}).idx}function d(){s=Qt.Pop;let C=u(),x=C==null?null:C-c;c=C,l&&l({action:s,location:w.location,delta:x})}function f(C,x){s=Qt.Push;let g=Fl(w.location,C,x);c=u()+1;let v=h1(g,c),m=w.createHref(g);try{i.pushState(v,"",m)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(m)}a&&l&&l({action:s,location:w.location,delta:1})}function y(C,x){s=Qt.Replace;let g=Fl(w.location,C,x);c=u();let v=h1(g,c),m=w.createHref(g);i.replaceState(v,"",m),a&&l&&l({action:s,location:w.location,delta:0})}function b(C){let x=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof C=="string"?C:da(C);return Ue(x,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,x)}let w={get action(){return s},get location(){return e(o,i)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(p1,d),l=C,()=>{o.removeEventListener(p1,d),l=null}},createHref(C){return t(o,C)},createURL:b,encodeLocation(C){let x=b(C);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:f,replace:y,go(C){return i.go(C)}};return w}var Ht;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ht||(Ht={}));const _3=new Set(["lazy","caseSensitive","path","id","index","children"]);function O3(e){return e.index===!0}function am(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,a)=>{let i=[...r,a],s=typeof o.id=="string"?o.id:i.join("-");if(Ue(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ue(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),O3(o)){let l=Pt({},o,t(o),{id:s});return n[s]=l,l}else{let l=Pt({},o,t(o),{id:s,children:void 0});return n[s]=l,o.children&&(l.children=am(o.children,t,i,n)),l}})}function _i(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Sa(t):t,o=Io(n.pathname||"/",r);if(o==null)return null;let a=Vw(e);L3(a);let i=null;for(let s=0;i==null&&s{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(Ue(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=io([n,l.relativePath]),u=r.concat(l);a.children&&a.children.length>0&&(Ue(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Vw(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:F3(c,a.index),routesMeta:u})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of Uw(a.path))o(a,i,l)}),t}function Uw(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=Uw(n.join("/")),s=[];return s.push(...i.map(l=>l===""?a:[a,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function L3(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:V3(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const I3=/^:\w+$/,N3=3,A3=2,D3=1,B3=10,z3=-2,m1=e=>e==="*";function F3(e,t){let r=e.split("/"),n=r.length;return r.some(m1)&&(n+=z3),t&&(n+=A3),r.filter(o=>!m1(o)).reduce((o,a)=>o+(I3.test(a)?N3:a===""?D3:B3),n)}function V3(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function U3(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let i=0;i{if(u==="*"){let f=s[d]||"";i=a.slice(0,a.length-f.length).replace(/(.)\/+$/,"$1")}return c[u]=K3(s[d]||"",u),c},{}),pathname:a,pathnameBase:i,pattern:e}}function W3(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),us(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 n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,s)=>(n.push(s),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function H3(e){try{return decodeURI(e)}catch(t){return us(!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 K3(e,t){try{return decodeURIComponent(e)}catch(r){return us(!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 ("+r+").")),e}}function Io(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Z3(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Sa(e):e;return{pathname:r?r.startsWith("/")?r:G3(r,t):t,search:q3(n),hash:J3(o)}}function G3(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Lp(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Nf(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Jv(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=Sa(e):(o=Pt({},e),Ue(!o.pathname||!o.pathname.includes("?"),Lp("?","pathname","search",o)),Ue(!o.pathname||!o.pathname.includes("#"),Lp("#","pathname","hash",o)),Ue(!o.search||!o.search.includes("#"),Lp("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(n||i==null)s=r;else{let d=t.length-1;if(i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=Z3(o,s),c=i&&i!=="/"&&i.endsWith("/"),u=(a||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const io=e=>e.join("/").replace(/\/\/+/g,"/"),Y3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,J3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Q3=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r,o=new Headers(n.headers);return o.has("Content-Type")||o.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(t),Pt({},n,{headers:o}))};class Qv{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Xv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Hw=["post","put","patch","delete"],X3=new Set(Hw),eN=["get",...Hw],tN=new Set(eN),rN=new Set([301,302,303,307,308]),nN=new Set([307,308]),Ip={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oN={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Fs={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Kw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,aN=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function iN(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Ue(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 L=e.detectErrorBoundary;o=M=>({hasErrorBoundary:L(M)})}else o=aN;let a={},i=am(e.routes,o,void 0,a),s,l=e.basename||"/",c=Pt({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),u=null,d=new Set,f=null,y=null,b=null,w=e.hydrationData!=null,C=_i(i,e.history.location,l),x=null;if(C==null){let L=sn(404,{pathname:e.history.location.pathname}),{matches:M,route:F}=C1(i);C=M,x={[F.id]:L}}let g=!C.some(L=>L.route.lazy)&&(!C.some(L=>L.route.loader)||e.hydrationData!=null),v,m={historyAction:e.history.action,location:e.history.location,matches:C,initialized:g,navigation:Ip,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||x,fetchers:new Map,blockers:new Map},k=Qt.Pop,R=!1,E,$=!1,I=!1,S=[],P=[],N=new Map,z=0,D=-1,_=new Map,O=new Set,V=new Map,j=new Map,B=new Map,W=!1;function ne(){return u=e.history.listen(L=>{let{action:M,location:F,delta:ee}=L;if(W){W=!1;return}us(B.size===0||ee!=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 se=ze({currentLocation:m.location,nextLocation:F,historyAction:M});if(se&&ee!=null){W=!0,e.history.go(ee*-1),ot(se,{state:"blocked",location:F,proceed(){ot(se,{state:"proceeding",proceed:void 0,reset:void 0,location:F}),e.history.go(ee)},reset(){let ce=new Map(m.blockers);ce.set(se,Fs),X({blockers:ce})}});return}return ve(M,F)}),m.initialized||ve(Qt.Pop,m.location),v}function ae(){u&&u(),d.clear(),E&&E.abort(),m.fetchers.forEach((L,M)=>U(M)),m.blockers.forEach((L,M)=>Ke(M))}function de(L){return d.add(L),()=>d.delete(L)}function X(L){m=Pt({},m,L),d.forEach(M=>M(m))}function ue(L,M){var F,ee;let se=m.actionData!=null&&m.navigation.formMethod!=null&&jn(m.navigation.formMethod)&&m.navigation.state==="loading"&&((F=L.state)==null?void 0:F._isRedirect)!==!0,ce;M.actionData?Object.keys(M.actionData).length>0?ce=M.actionData:ce=null:se?ce=m.actionData:ce=null;let Ce=M.loaderData?w1(m.loaderData,M.loaderData,M.matches||[],M.errors):m.loaderData,ye=m.blockers;ye.size>0&&(ye=new Map(ye),ye.forEach((rt,ht)=>ye.set(ht,Fs)));let xe=R===!0||m.navigation.formMethod!=null&&jn(m.navigation.formMethod)&&((ee=L.state)==null?void 0:ee._isRedirect)!==!0;s&&(i=s,s=void 0),$||k===Qt.Pop||(k===Qt.Push?e.history.push(L,L.state):k===Qt.Replace&&e.history.replace(L,L.state)),X(Pt({},M,{actionData:ce,loaderData:Ce,historyAction:k,location:L,initialized:!0,navigation:Ip,revalidation:"idle",restoreScrollPosition:bt(L,M.matches||m.matches),preventScrollReset:xe,blockers:ye})),k=Qt.Pop,R=!1,$=!1,I=!1,S=[],P=[]}async function ke(L,M){if(typeof L=="number"){e.history.go(L);return}let F=im(m.location,m.matches,l,c.v7_prependBasename,L,M==null?void 0:M.fromRouteId,M==null?void 0:M.relative),{path:ee,submission:se,error:ce}=v1(c.v7_normalizeFormMethod,!1,F,M),Ce=m.location,ye=Fl(m.location,ee,M&&M.state);ye=Pt({},ye,e.history.encodeLocation(ye));let xe=M&&M.replace!=null?M.replace:void 0,rt=Qt.Push;xe===!0?rt=Qt.Replace:xe===!1||se!=null&&jn(se.formMethod)&&se.formAction===m.location.pathname+m.location.search&&(rt=Qt.Replace);let ht=M&&"preventScrollReset"in M?M.preventScrollReset===!0:void 0,Je=ze({currentLocation:Ce,nextLocation:ye,historyAction:rt});if(Je){ot(Je,{state:"blocked",location:ye,proceed(){ot(Je,{state:"proceeding",proceed:void 0,reset:void 0,location:ye}),ke(L,M)},reset(){let at=new Map(m.blockers);at.set(Je,Fs),X({blockers:at})}});return}return await ve(rt,ye,{submission:se,pendingError:ce,preventScrollReset:ht,replace:M&&M.replace})}function Ae(){if(T(),X({revalidation:"loading"}),m.navigation.state!=="submitting"){if(m.navigation.state==="idle"){ve(m.historyAction,m.location,{startUninterruptedRevalidation:!0});return}ve(k||m.historyAction,m.navigation.location,{overrideNavigation:m.navigation})}}async function ve(L,M,F){E&&E.abort(),E=null,k=L,$=(F&&F.startUninterruptedRevalidation)===!0,Oe(m.location,m.matches),R=(F&&F.preventScrollReset)===!0;let ee=s||i,se=F&&F.overrideNavigation,ce=_i(ee,M,l);if(!ce){let at=sn(404,{pathname:M.pathname}),{matches:Se,route:Ot}=C1(ee);_e(),ue(M,{matches:Se,loaderData:{},errors:{[Ot.id]:at}});return}if(m.initialized&&!I&&dN(m.location,M)&&!(F&&F.submission&&jn(F.submission.formMethod))){ue(M,{matches:ce});return}E=new AbortController;let Ce=Us(e.history,M,E.signal,F&&F.submission),ye,xe;if(F&&F.pendingError)xe={[Oi(ce).route.id]:F.pendingError};else if(F&&F.submission&&jn(F.submission.formMethod)){let at=await $e(Ce,M,F.submission,ce,{replace:F.replace});if(at.shortCircuited)return;ye=at.pendingActionData,xe=at.pendingActionError,se=Np(M,F.submission),Ce=new Request(Ce.url,{signal:Ce.signal})}let{shortCircuited:rt,loaderData:ht,errors:Je}=await he(Ce,M,ce,se,F&&F.submission,F&&F.fetcherSubmission,F&&F.replace,ye,xe);rt||(E=null,ue(M,Pt({matches:ce},ye?{actionData:ye}:{},{loaderData:ht,errors:Je})))}async function $e(L,M,F,ee,se){se===void 0&&(se={}),T();let ce=mN(M,F);X({navigation:ce});let Ce,ye=lm(ee,M);if(!ye.route.action&&!ye.route.lazy)Ce={type:Ht.error,error:sn(405,{method:L.method,pathname:M.pathname,routeId:ye.route.id})};else if(Ce=await Vs("action",L,ye,ee,a,o,l),L.signal.aborted)return{shortCircuited:!0};if(Wi(Ce)){let xe;return se&&se.replace!=null?xe=se.replace:xe=Ce.location===m.location.pathname+m.location.search,await Te(m,Ce,{submission:F,replace:xe}),{shortCircuited:!0}}if(ml(Ce)){let xe=Oi(ee,ye.route.id);return(se&&se.replace)!==!0&&(k=Qt.Push),{pendingActionData:{},pendingActionError:{[xe.route.id]:Ce.error}}}if(Oa(Ce))throw sn(400,{type:"defer-action"});return{pendingActionData:{[ye.route.id]:Ce.data}}}async function he(L,M,F,ee,se,ce,Ce,ye,xe){let rt=ee||Np(M,se),ht=se||ce||E1(rt),Je=s||i,[at,Se]=g1(e.history,m,F,ht,M,I,S,P,V,O,Je,l,ye,xe);if(_e(Ze=>!(F&&F.some(ut=>ut.route.id===Ze))||at&&at.some(ut=>ut.route.id===Ze)),D=++z,at.length===0&&Se.length===0){let Ze=Q();return ue(M,Pt({matches:F,loaderData:{},errors:xe||null},ye?{actionData:ye}:{},Ze?{fetchers:new Map(m.fetchers)}:{})),{shortCircuited:!0}}if(!$){Se.forEach(ut=>{let nr=m.fetchers.get(ut.key),q=Ws(void 0,nr?nr.data:void 0);m.fetchers.set(ut.key,q)});let Ze=ye||m.actionData;X(Pt({navigation:rt},Ze?Object.keys(Ze).length===0?{actionData:null}:{actionData:Ze}:{},Se.length>0?{fetchers:new Map(m.fetchers)}:{}))}Se.forEach(Ze=>{N.has(Ze.key)&&re(Ze.key),Ze.controller&&N.set(Ze.key,Ze.controller)});let Ot=()=>Se.forEach(Ze=>re(Ze.key));E&&E.signal.addEventListener("abort",Ot);let{results:rn,loaderResults:nn,fetcherResults:vo}=await pe(m.matches,F,at,Se,L);if(L.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener("abort",Ot),Se.forEach(Ze=>N.delete(Ze.key));let wr=k1(rn);if(wr){if(wr.idx>=at.length){let Ze=Se[wr.idx-at.length].key;O.add(Ze)}return await Te(m,wr.result,{replace:Ce}),{shortCircuited:!0}}let{loaderData:Fr,errors:Do}=S1(m,F,at,nn,xe,Se,vo,j);j.forEach((Ze,ut)=>{Ze.subscribe(nr=>{(nr||Ze.done)&&j.delete(ut)})});let Bo=Q(),oi=Z(D),go=Bo||oi||Se.length>0;return Pt({loaderData:Fr,errors:Do},go?{fetchers:new Map(m.fetchers)}:{})}function je(L){return m.fetchers.get(L)||oN}function fe(L,M,F,ee){if(n)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.");N.has(L)&&re(L);let se=s||i,ce=im(m.location,m.matches,l,c.v7_prependBasename,F,M,ee==null?void 0:ee.relative),Ce=_i(se,ce,l);if(!Ce){A(L,M,sn(404,{pathname:ce}));return}let{path:ye,submission:xe,error:rt}=v1(c.v7_normalizeFormMethod,!0,ce,ee);if(rt){A(L,M,rt);return}let ht=lm(Ce,ye);if(R=(ee&&ee.preventScrollReset)===!0,xe&&jn(xe.formMethod)){He(L,M,ye,ht,Ce,xe);return}V.set(L,{routeId:M,path:ye}),Ee(L,M,ye,ht,Ce,xe)}async function He(L,M,F,ee,se,ce){if(T(),V.delete(L),!ee.route.action&&!ee.route.lazy){let H=sn(405,{method:ce.formMethod,pathname:F,routeId:M});A(L,M,H);return}let Ce=m.fetchers.get(L),ye=vN(ce,Ce);m.fetchers.set(L,ye),X({fetchers:new Map(m.fetchers)});let xe=new AbortController,rt=Us(e.history,F,xe.signal,ce);N.set(L,xe);let ht=z,Je=await Vs("action",rt,ee,se,a,o,l);if(rt.signal.aborted){N.get(L)===xe&&N.delete(L);return}if(Wi(Je))if(N.delete(L),D>ht){let H=gi(void 0);m.fetchers.set(L,H),X({fetchers:new Map(m.fetchers)});return}else{O.add(L);let H=Ws(ce);return m.fetchers.set(L,H),X({fetchers:new Map(m.fetchers)}),Te(m,Je,{fetcherSubmission:ce})}if(ml(Je)){A(L,M,Je.error);return}if(Oa(Je))throw sn(400,{type:"defer-action"});let at=m.navigation.location||m.location,Se=Us(e.history,at,xe.signal),Ot=s||i,rn=m.navigation.state!=="idle"?_i(Ot,m.navigation.location,l):m.matches;Ue(rn,"Didn't find any matches after fetcher action");let nn=++z;_.set(L,nn);let vo=Ws(ce,Je.data);m.fetchers.set(L,vo);let[wr,Fr]=g1(e.history,m,rn,ce,at,I,S,P,V,O,Ot,l,{[ee.route.id]:Je.data},void 0);Fr.filter(H=>H.key!==L).forEach(H=>{let me=H.key,Ge=m.fetchers.get(me),Qe=Ws(void 0,Ge?Ge.data:void 0);m.fetchers.set(me,Qe),N.has(me)&&re(me),H.controller&&N.set(me,H.controller)}),X({fetchers:new Map(m.fetchers)});let Do=()=>Fr.forEach(H=>re(H.key));xe.signal.addEventListener("abort",Do);let{results:Bo,loaderResults:oi,fetcherResults:go}=await pe(m.matches,rn,wr,Fr,Se);if(xe.signal.aborted)return;xe.signal.removeEventListener("abort",Do),_.delete(L),N.delete(L),Fr.forEach(H=>N.delete(H.key));let Ze=k1(Bo);if(Ze){if(Ze.idx>=wr.length){let H=Fr[Ze.idx-wr.length].key;O.add(H)}return Te(m,Ze.result)}let{loaderData:ut,errors:nr}=S1(m,m.matches,wr,oi,void 0,Fr,go,j);if(m.fetchers.has(L)){let H=gi(Je.data);m.fetchers.set(L,H)}let q=Z(nn);m.navigation.state==="loading"&&nn>D?(Ue(k,"Expected pending action"),E&&E.abort(),ue(m.navigation.location,{matches:rn,loaderData:ut,errors:nr,fetchers:new Map(m.fetchers)})):(X(Pt({errors:nr,loaderData:w1(m.loaderData,ut,rn,nr)},q||Fr.length>0?{fetchers:new Map(m.fetchers)}:{})),I=!1)}async function Ee(L,M,F,ee,se,ce){let Ce=m.fetchers.get(L),ye=Ws(ce,Ce?Ce.data:void 0);m.fetchers.set(L,ye),X({fetchers:new Map(m.fetchers)});let xe=new AbortController,rt=Us(e.history,F,xe.signal);N.set(L,xe);let ht=z,Je=await Vs("loader",rt,ee,se,a,o,l);if(Oa(Je)&&(Je=await Yw(Je,rt.signal,!0)||Je),N.get(L)===xe&&N.delete(L),rt.signal.aborted)return;if(Wi(Je))if(D>ht){let Se=gi(void 0);m.fetchers.set(L,Se),X({fetchers:new Map(m.fetchers)});return}else{O.add(L),await Te(m,Je);return}if(ml(Je)){let Se=Oi(m.matches,M);m.fetchers.delete(L),X({fetchers:new Map(m.fetchers),errors:{[Se.route.id]:Je.error}});return}Ue(!Oa(Je),"Unhandled fetcher deferred data");let at=gi(Je.data);m.fetchers.set(L,at),X({fetchers:new Map(m.fetchers)})}async function Te(L,M,F){let{submission:ee,fetcherSubmission:se,replace:ce}=F===void 0?{}:F;M.revalidate&&(I=!0);let Ce=Fl(L.location,M.location,{_isRedirect:!0});if(Ue(Ce,"Expected a location on the redirect navigation"),r){let at=!1;if(M.reloadDocument)at=!0;else if(Kw.test(M.location)){const Se=e.history.createURL(M.location);at=Se.origin!==t.location.origin||Io(Se.pathname,l)==null}if(at){ce?t.location.replace(M.location):t.location.assign(M.location);return}}E=null;let ye=ce===!0?Qt.Replace:Qt.Push,{formMethod:xe,formAction:rt,formEncType:ht}=L.navigation;!ee&&!se&&xe&&rt&&ht&&(ee=E1(L.navigation));let Je=ee||se;if(nN.has(M.status)&&Je&&jn(Je.formMethod))await ve(ye,Ce,{submission:Pt({},Je,{formAction:M.location}),preventScrollReset:R});else{let at=Np(Ce,ee);await ve(ye,Ce,{overrideNavigation:at,fetcherSubmission:se,preventScrollReset:R})}}async function pe(L,M,F,ee,se){let ce=await Promise.all([...F.map(xe=>Vs("loader",se,xe,M,a,o,l)),...ee.map(xe=>xe.matches&&xe.match&&xe.controller?Vs("loader",Us(e.history,xe.path,xe.controller.signal),xe.match,xe.matches,a,o,l):{type:Ht.error,error:sn(404,{pathname:xe.path})})]),Ce=ce.slice(0,F.length),ye=ce.slice(F.length);return await Promise.all([R1(L,F,Ce,Ce.map(()=>se.signal),!1,m.loaderData),R1(L,ee.map(xe=>xe.match),ye,ee.map(xe=>xe.controller?xe.controller.signal:null),!0)]),{results:ce,loaderResults:Ce,fetcherResults:ye}}function T(){I=!0,S.push(..._e()),V.forEach((L,M)=>{N.has(M)&&(P.push(M),re(M))})}function A(L,M,F){let ee=Oi(m.matches,M);U(L),X({errors:{[ee.route.id]:F},fetchers:new Map(m.fetchers)})}function U(L){let M=m.fetchers.get(L);N.has(L)&&!(M&&M.state==="loading"&&_.has(L))&&re(L),V.delete(L),_.delete(L),O.delete(L),m.fetchers.delete(L)}function re(L){let M=N.get(L);Ue(M,"Expected fetch controller: "+L),M.abort(),N.delete(L)}function Y(L){for(let M of L){let F=je(M),ee=gi(F.data);m.fetchers.set(M,ee)}}function Q(){let L=[],M=!1;for(let F of O){let ee=m.fetchers.get(F);Ue(ee,"Expected fetcher: "+F),ee.state==="loading"&&(O.delete(F),L.push(F),M=!0)}return Y(L),M}function Z(L){let M=[];for(let[F,ee]of _)if(ee0}function Me(L,M){let F=m.blockers.get(L)||Fs;return B.get(L)!==M&&B.set(L,M),F}function Ke(L){m.blockers.delete(L),B.delete(L)}function ot(L,M){let F=m.blockers.get(L)||Fs;Ue(F.state==="unblocked"&&M.state==="blocked"||F.state==="blocked"&&M.state==="blocked"||F.state==="blocked"&&M.state==="proceeding"||F.state==="blocked"&&M.state==="unblocked"||F.state==="proceeding"&&M.state==="unblocked","Invalid blocker state transition: "+F.state+" -> "+M.state);let ee=new Map(m.blockers);ee.set(L,M),X({blockers:ee})}function ze(L){let{currentLocation:M,nextLocation:F,historyAction:ee}=L;if(B.size===0)return;B.size>1&&us(!1,"A router only supports one blocker at a time");let se=Array.from(B.entries()),[ce,Ce]=se[se.length-1],ye=m.blockers.get(ce);if(!(ye&&ye.state==="proceeding")&&Ce({currentLocation:M,nextLocation:F,historyAction:ee}))return ce}function _e(L){let M=[];return j.forEach((F,ee)=>{(!L||L(ee))&&(F.cancel(),M.push(ee),j.delete(ee))}),M}function Ie(L,M,F){if(f=L,b=M,y=F||null,!w&&m.navigation===Ip){w=!0;let ee=bt(m.location,m.matches);ee!=null&&X({restoreScrollPosition:ee})}return()=>{f=null,b=null,y=null}}function ct(L,M){return y&&y(L,M.map(ee=>Fw(ee,m.loaderData)))||L.key}function Oe(L,M){if(f&&b){let F=ct(L,M);f[F]=b()}}function bt(L,M){if(f){let F=ct(L,M),ee=f[F];if(typeof ee=="number")return ee}return null}function Jt(L){a={},s=am(L,o,void 0,a)}return v={get basename(){return l},get state(){return m},get routes(){return i},initialize:ne,subscribe:de,enableScrollRestoration:Ie,navigate:ke,fetch:fe,revalidate:Ae,createHref:L=>e.history.createHref(L),encodeLocation:L=>e.history.encodeLocation(L),getFetcher:je,deleteFetcher:U,dispose:ae,getBlocker:Me,deleteBlocker:Ke,_internalFetchControllers:N,_internalActiveDeferreds:j,_internalSetRoutes:Jt},v}function sN(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function im(e,t,r,n,o,a,i){let s,l;if(a!=null&&i!=="path"){s=[];for(let u of t)if(s.push(u),u.route.id===a){l=u;break}}else s=t,l=t[t.length-1];let c=Jv(o||".",Nf(s).map(u=>u.pathnameBase),Io(e.pathname,r)||e.pathname,i==="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"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:io([r,c.pathname])),da(c)}function v1(e,t,r,n){if(!n||!sN(n))return{path:r};if(n.formMethod&&!hN(n.formMethod))return{path:r,error:sn(405,{method:n.formMethod})};let o=()=>({path:r,error:sn(400,{type:"invalid-body"})}),a=n.formMethod||"get",i=e?a.toUpperCase():a.toLowerCase(),s=Gw(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!jn(i))return o();let f=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,b)=>{let[w,C]=b;return""+y+w+"="+C+` +`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:f}}}else if(n.formEncType==="application/json"){if(!jn(i))return o();try{let f=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}Ue(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=sm(n.formData),c=n.formData;else if(n.body instanceof FormData)l=sm(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=b1(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=b1(l)}catch{return o()}let u={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(jn(u.formMethod))return{path:r,submission:u};let d=Sa(r);return t&&d.search&&eg(d.search)&&l.append("index",""),d.search="?"+l,{path:da(d),submission:u}}function lN(e,t){let r=e;if(t){let n=e.findIndex(o=>o.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function g1(e,t,r,n,o,a,i,s,l,c,u,d,f,y){let b=y?Object.values(y)[0]:f?Object.values(f)[0]:void 0,w=e.createURL(t.location),C=e.createURL(o),x=y?Object.keys(y)[0]:void 0,v=lN(r,x).filter((k,R)=>{if(k.route.lazy)return!0;if(k.route.loader==null)return!1;if(cN(t.loaderData,t.matches[R],k)||i.some(I=>I===k.route.id))return!0;let E=t.matches[R],$=k;return y1(k,Pt({currentUrl:w,currentParams:E.params,nextUrl:C,nextParams:$.params},n,{actionResult:b,defaultShouldRevalidate:a||w.pathname+w.search===C.pathname+C.search||w.search!==C.search||Zw(E,$)}))}),m=[];return l.forEach((k,R)=>{if(!r.some(P=>P.route.id===k.routeId))return;let E=_i(u,k.path,d);if(!E){m.push({key:R,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let $=t.fetchers.get(R),I=lm(E,k.path),S=!1;c.has(R)?S=!1:s.includes(R)?S=!0:$&&$.state!=="idle"&&$.data===void 0?S=a:S=y1(I,Pt({currentUrl:w,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:r[r.length-1].params},n,{actionResult:b,defaultShouldRevalidate:a})),S&&m.push({key:R,routeId:k.routeId,path:k.path,matches:E,match:I,controller:new AbortController})}),[v,m]}function cN(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function Zw(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function y1(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function x1(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];Ue(o,"No route found in manifest");let a={};for(let i in n){let l=o[i]!==void 0&&i!=="hasErrorBoundary";us(!l,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!l&&!_3.has(i)&&(a[i]=n[i])}Object.assign(o,a),Object.assign(o,Pt({},t(o),{lazy:void 0}))}async function Vs(e,t,r,n,o,a,i,s){s===void 0&&(s={});let l,c,u,d=b=>{let w,C=new Promise((x,g)=>w=g);return u=()=>w(),t.signal.addEventListener("abort",u),Promise.race([b({request:t,params:r.params,context:s.requestContext}),C])};try{let b=r.route[e];if(r.route.lazy)if(b){let w,C=await Promise.all([d(b).catch(x=>{w=x}),x1(r.route,a,o)]);if(w)throw w;c=C[0]}else if(await x1(r.route,a,o),b=r.route[e],b)c=await d(b);else if(e==="action"){let w=new URL(t.url),C=w.pathname+w.search;throw sn(405,{method:t.method,pathname:C,routeId:r.route.id})}else return{type:Ht.data,data:void 0};else if(b)c=await d(b);else{let w=new URL(t.url),C=w.pathname+w.search;throw sn(404,{pathname:C})}Ue(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(b){l=Ht.error,c=b}finally{u&&t.signal.removeEventListener("abort",u)}if(pN(c)){let b=c.status;if(rN.has(b)){let x=c.headers.get("Location");if(Ue(x,"Redirects returned/thrown from loaders/actions must have a Location header"),!Kw.test(x))x=im(new URL(t.url),n.slice(0,n.indexOf(r)+1),i,!0,x);else if(!s.isStaticRequest){let g=new URL(t.url),v=x.startsWith("//")?new URL(g.protocol+x):new URL(x),m=Io(v.pathname,i)!=null;v.origin===g.origin&&m&&(x=v.pathname+v.search+v.hash)}if(s.isStaticRequest)throw c.headers.set("Location",x),c;return{type:Ht.redirect,status:b,location:x,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:l===Ht.error?Ht.error:Ht.data,response:c};let w,C=c.headers.get("Content-Type");return C&&/\bapplication\/json\b/.test(C)?w=await c.json():w=await c.text(),l===Ht.error?{type:l,error:new Qv(b,c.statusText,w),headers:c.headers}:{type:Ht.data,data:w,statusCode:c.status,headers:c.headers}}if(l===Ht.error)return{type:l,error:c};if(fN(c)){var f,y;return{type:Ht.deferred,deferredData:c,statusCode:(f=c.init)==null?void 0:f.status,headers:((y=c.init)==null?void 0:y.headers)&&new Headers(c.init.headers)}}return{type:Ht.data,data:c}}function Us(e,t,r,n){let o=e.createURL(Gw(t)).toString(),a={signal:r};if(n&&jn(n.formMethod)){let{formMethod:i,formEncType:s}=n;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(n.json)):s==="text/plain"?a.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?a.body=sm(n.formData):a.body=n.formData}return new Request(o,a)}function sm(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function b1(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function uN(e,t,r,n,o){let a={},i=null,s,l=!1,c={};return r.forEach((u,d)=>{let f=t[d].route.id;if(Ue(!Wi(u),"Cannot handle redirect results in processLoaderData"),ml(u)){let y=Oi(e,f),b=u.error;n&&(b=Object.values(n)[0],n=void 0),i=i||{},i[y.route.id]==null&&(i[y.route.id]=b),a[f]=void 0,l||(l=!0,s=Xv(u.error)?u.error.status:500),u.headers&&(c[f]=u.headers)}else Oa(u)?(o.set(f,u.deferredData),a[f]=u.deferredData.data):a[f]=u.data,u.statusCode!=null&&u.statusCode!==200&&!l&&(s=u.statusCode),u.headers&&(c[f]=u.headers)}),n&&(i=n,a[Object.keys(n)[0]]=void 0),{loaderData:a,errors:i,statusCode:s||200,loaderHeaders:c}}function S1(e,t,r,n,o,a,i,s){let{loaderData:l,errors:c}=uN(t,r,n,o,s);for(let u=0;un.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function C1(e){let t=e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function sn(e,t){let{pathname:r,routeId:n,method:o,type:a}=t===void 0?{}:t,i="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(i="Bad Request",o&&r&&n?s="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":a==="defer-action"?s="defer() is not supported in actions":a==="invalid-body"&&(s="Unable to encode submission body")):e===403?(i="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(i="Not Found",s='No route matches URL "'+r+'"'):e===405&&(i="Method Not Allowed",o&&r&&n?s="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new Qv(e||500,i,new Error(s),!0)}function k1(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(Wi(r))return{result:r,idx:t}}}function Gw(e){let t=typeof e=="string"?Sa(e):e;return da(Pt({},t,{hash:""}))}function dN(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Oa(e){return e.type===Ht.deferred}function ml(e){return e.type===Ht.error}function Wi(e){return(e&&e.type)===Ht.redirect}function fN(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 pN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function hN(e){return tN.has(e.toLowerCase())}function jn(e){return X3.has(e.toLowerCase())}async function R1(e,t,r,n,o,a){for(let i=0;id.route.id===l.route.id),u=c!=null&&!Zw(c,l)&&(a&&a[l.route.id])!==void 0;if(Oa(s)&&(o||u)){let d=n[i];Ue(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await Yw(s,d,o).then(f=>{f&&(r[i]=f||r[i])})}}}async function Yw(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:Ht.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Ht.error,error:o}}return{type:Ht.data,data:e.deferredData.data}}}function eg(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function lm(e,t){let r=typeof t=="string"?Sa(t).search:t.search;if(e[e.length-1].route.index&&eg(r||""))return e[e.length-1];let n=Nf(e);return n[n.length-1]}function E1(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:a,json:i}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function Np(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 mN(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 Ws(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 vN(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 gi(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 cm(){return cm=Object.assign?Object.assign.bind():function(e){for(var t=1;tWw(e,t),[t,e])}function Jw(e){h.useContext(ho).static||h.useLayoutEffect(e)}function Qw(){let{isDataRoute:e}=h.useContext(kn);return e?ON():xN()}function xN(){bs()||Ue(!1);let e=h.useContext(hc),{basename:t,navigator:r}=h.useContext(ho),{matches:n}=h.useContext(kn),{pathname:o}=wa(),a=JSON.stringify(Nf(n).map(l=>l.pathnameBase)),i=h.useRef(!1);return Jw(()=>{i.current=!0}),h.useCallback(function(l,c){if(c===void 0&&(c={}),!i.current)return;if(typeof l=="number"){r.go(l);return}let u=Jv(l,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:io([t,u.pathname])),(c.replace?r.replace:r.push)(u,c.state,c)},[t,r,a,o,e])}const bN=h.createContext(null);function SN(e){let t=h.useContext(kn).outlet;return t&&h.createElement(bN.Provider,{value:e},t)}function wN(){let{matches:e}=h.useContext(kn),t=e[e.length-1];return t?t.params:{}}function ng(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=h.useContext(kn),{pathname:o}=wa(),a=JSON.stringify(Nf(n).map(i=>i.pathnameBase));return h.useMemo(()=>Jv(e,JSON.parse(a),o,r==="path"),[e,a,o,r])}function CN(e,t,r){bs()||Ue(!1);let{navigator:n}=h.useContext(ho),{matches:o}=h.useContext(kn),a=o[o.length-1],i=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=wa(),c;c=l;let u=c.pathname||"/",d=s==="/"?u:u.slice(s.length)||"/",f=_i(e,{pathname:d});return $N(f&&f.map(b=>Object.assign({},b,{params:Object.assign({},i,b.params),pathname:io([s,n.encodeLocation?n.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?s:io([s,n.encodeLocation?n.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),o,r)}function kN(){let e=rC(),t=Xv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),r?h.createElement("pre",{style:o},r):null,null)}const RN=h.createElement(kN,null);class EN extends h.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?h.createElement(kn.Provider,{value:this.props.routeContext},h.createElement(qw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function TN(e){let{routeContext:t,match:r,children:n}=e,o=h.useContext(hc);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),h.createElement(kn.Provider,{value:t},n)}function $N(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let a=e,i=(n=r)==null?void 0:n.errors;if(i!=null){let s=a.findIndex(l=>l.route.id&&(i==null?void 0:i[l.route.id]));s>=0||Ue(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,l,c)=>{let u=l.route.id?i==null?void 0:i[l.route.id]:null,d=null;r&&(d=l.route.errorElement||RN);let f=t.concat(a.slice(0,c+1)),y=()=>{let b;return u?b=d:l.route.Component?b=h.createElement(l.route.Component,null):l.route.element?b=l.route.element:b=s,h.createElement(TN,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:r!=null},children:b})};return r&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?h.createElement(EN,{location:r.location,revalidation:r.revalidation,component:d,error:u,children:y(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):y()},null)}var og=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(og||{}),Vn=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}(Vn||{});function Xw(e){let t=h.useContext(hc);return t||Ue(!1),t}function Ss(e){let t=h.useContext(tg);return t||Ue(!1),t}function PN(e){let t=h.useContext(kn);return t||Ue(!1),t}function Af(e){let t=PN(),r=t.matches[t.matches.length-1];return r.route.id||Ue(!1),r.route.id}function jN(){return Af(Vn.UseRouteId)}function ag(){return Ss(Vn.UseNavigation).navigation}function eC(){let e=Xw(og.UseRevalidator),t=Ss(Vn.UseRevalidator);return h.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function tC(){let{matches:e,loaderData:t}=Ss(Vn.UseMatches);return h.useMemo(()=>e.map(r=>Fw(r,t)),[e,t])}function MN(){let e=Ss(Vn.UseLoaderData),t=Af(Vn.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function _N(){let e=Ss(Vn.UseActionData);return h.useContext(kn)||Ue(!1),Object.values((e==null?void 0:e.actionData)||{})[0]}function rC(){var e;let t=h.useContext(qw),r=Ss(Vn.UseRouteError),n=Af(Vn.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function ON(){let{router:e}=Xw(og.UseNavigateStable),t=Af(Vn.UseNavigateStable),r=h.useRef(!1);return Jw(()=>{r.current=!0}),h.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,cm({fromRouteId:t},a)))},[e,t])}const LN="startTransition",T1=vl[LN];function IN(e){let{fallbackElement:t,router:r,future:n}=e,[o,a]=h.useState(r.state),{v7_startTransition:i}=n||{},s=h.useCallback(d=>{i&&T1?T1(()=>a(d)):a(d)},[a,i]);h.useLayoutEffect(()=>r.subscribe(s),[r,s]);let l=h.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:d=>r.navigate(d),push:(d,f,y)=>r.navigate(d,{state:f,preventScrollReset:y==null?void 0:y.preventScrollReset}),replace:(d,f,y)=>r.navigate(d,{replace:!0,state:f,preventScrollReset:y==null?void 0:y.preventScrollReset})}),[r]),c=r.basename||"/",u=h.useMemo(()=>({router:r,navigator:l,static:!1,basename:c}),[r,l,c]);return h.createElement(h.Fragment,null,h.createElement(hc.Provider,{value:u},h.createElement(tg.Provider,{value:o},h.createElement(AN,{basename:c,location:o.location,navigationType:o.historyAction,navigator:l},o.initialized?h.createElement(NN,{routes:r.routes,state:o}):t))),null)}function NN(e){let{routes:t,state:r}=e;return CN(t,void 0,r)}function ig(e){return SN(e.context)}function AN(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Qt.Pop,navigator:a,static:i=!1}=e;bs()&&Ue(!1);let s=t.replace(/^\/*/,"/"),l=h.useMemo(()=>({basename:s,navigator:a,static:i}),[s,a,i]);typeof n=="string"&&(n=Sa(n));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:y="default"}=n,b=h.useMemo(()=>{let w=Io(c,s);return w==null?null:{location:{pathname:w,search:u,hash:d,state:f,key:y},navigationType:o}},[s,c,u,d,f,y,o]);return b==null?null:h.createElement(ho.Provider,{value:l},h.createElement(rg.Provider,{children:r,value:b}))}new Promise(()=>{});function DN(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.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 Un(){return Un=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}const Su="get",Ap="application/x-www-form-urlencoded";function Df(e){return e!=null&&typeof e.tagName=="string"}function BN(e){return Df(e)&&e.tagName.toLowerCase()==="button"}function zN(e){return Df(e)&&e.tagName.toLowerCase()==="form"}function FN(e){return Df(e)&&e.tagName.toLowerCase()==="input"}function VN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function UN(e,t){return e.button===0&&(!t||t==="_self")&&!VN(e)}function um(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(o=>[r,o]):[[r,n]])},[]))}function WN(e,t){let r=um(e);return t&&t.forEach((n,o)=>{r.has(o)||t.getAll(o).forEach(a=>{r.append(o,a)})}),r}let Qc=null;function HN(){if(Qc===null)try{new FormData(document.createElement("form"),0),Qc=!1}catch{Qc=!0}return Qc}const KN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Dp(e){return e!=null&&!KN.has(e)?null:e}function oC(e,t){let r,n,o,a,i;if(zN(e)){let s=e.getAttribute("action");n=s?Io(s,t):null,r=e.getAttribute("method")||Su,o=Dp(e.getAttribute("enctype"))||Ap,a=new FormData(e)}else if(BN(e)||FN(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a