0&&void 0!==arguments[0]?arguments[0]:null,n=h.useContext(Af);return n&&(e=n,0!==Object.keys(e).length)?n:t},If=vc();var Mf=function(){return zf(arguments.length>0&&void 0!==arguments[0]?arguments[0]:If)};function Ff(e,t){var n;return x({toolbar:(n={minHeight:56},f(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),f(n,e.up("sm"),{minHeight:64}),n)},t)}var Df={black:"#000",white:"#fff"},Bf={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"},Uf={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"},Vf={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"},Hf={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"},Wf={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"},$f={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"},qf={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"},Kf=["mode","contrastThreshold","tonalOffset"],Qf={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:Df.white,default:Df.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}},Yf={text:{primary:Df.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:Df.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}};function Gf(e,t,n,r){var a=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=iu(e.main,a):"dark"===t&&(e.dark=ou(e.main,o)))}function Xf(e){var t=e.mode,n=void 0===t?"light":t,r=e.contrastThreshold,a=void 0===r?3:r,o=e.tonalOffset,i=void 0===o?.2:o,l=m(e,Kf),s=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Wf[200],light:Wf[50],dark:Wf[400]}:{main:Wf[700],light:Wf[400],dark:Wf[800]}}(n),u=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Uf[200],light:Uf[50],dark:Uf[400]}:{main:Uf[500],light:Uf[300],dark:Uf[700]}}(n),c=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Vf[500],light:Vf[300],dark:Vf[700]}:{main:Vf[700],light:Vf[400],dark:Vf[800]}}(n),f=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:$f[400],light:$f[300],dark:$f[700]}:{main:$f[700],light:$f[500],dark:$f[900]}}(n),d=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:qf[400],light:qf[300],dark:qf[700]}:{main:qf[800],light:qf[500],dark:qf[900]}}(n),p=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Hf[400],light:Hf[300],dark:Hf[700]}:{main:"#ed6c02",light:Hf[500],dark:Hf[900]}}(n);function h(e){var t=function(e,t){var n=ru(e),r=ru(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Yf.text.primary)>=a?Yf.text.primary:Qf.text.primary;return t}var v=function(e){var t=e.color,n=e.name,r=e.mainShade,a=void 0===r?500:r,o=e.lightShade,l=void 0===o?300:o,s=e.darkShade,u=void 0===s?700:s;if(!(t=x({},t)).main&&t[a]&&(t.main=t[a]),!t.hasOwnProperty("main"))throw new Error(Zs(11,n?" (".concat(n,")"):"",a));if("string"!==typeof t.main)throw new Error(Zs(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return Gf(t,"light",l,i),Gf(t,"dark",u,i),t.contrastText||(t.contrastText=h(t.main)),t},y={dark:Yf,light:Qf};return fu(x({common:x({},Df),mode:n,primary:v({color:s,name:"primary"}),secondary:v({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:c,name:"error"}),warning:v({color:p,name:"warning"}),info:v({color:f,name:"info"}),success:v({color:d,name:"success"}),grey:Bf,contrastThreshold:a,getContrastText:h,augmentColor:v,tonalOffset:i},y[n]),l)}var Jf=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Zf(e){return Math.round(1e5*e)/1e5}var ed={textTransform:"uppercase"},td='"Roboto", "Helvetica", "Arial", sans-serif';function nd(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,a=void 0===r?td:r,o=n.fontSize,i=void 0===o?14:o,l=n.fontWeightLight,s=void 0===l?300:l,u=n.fontWeightRegular,c=void 0===u?400:u,f=n.fontWeightMedium,d=void 0===f?500:f,p=n.fontWeightBold,h=void 0===p?700:p,v=n.htmlFontSize,y=void 0===v?16:v,g=n.allVariants,b=n.pxToRem,w=m(n,Jf);var k=i/14,S=b||function(e){return"".concat(e/y*k,"rem")},E=function(e,t,n,r,o){return x({fontFamily:a,fontWeight:e,fontSize:S(t),lineHeight:n},a===td?{letterSpacing:"".concat(Zf(r/t),"em")}:{},o,g)},C={h1:E(s,96,1.167,-1.5),h2:E(s,60,1.2,-.5),h3:E(c,48,1.167,0),h4:E(c,34,1.235,.25),h5:E(c,24,1.334,0),h6:E(d,20,1.6,.15),subtitle1:E(c,16,1.75,.15),subtitle2:E(d,14,1.57,.1),body1:E(c,16,1.5,.15),body2:E(c,14,1.43,.15),button:E(d,14,1.75,.4,ed),caption:E(c,12,1.66,.4),overline:E(c,12,2.66,1,ed),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return fu(x({htmlFontSize:y,pxToRem:S,fontFamily:a,fontSize:i,fontWeightLight:s,fontWeightRegular:c,fontWeightMedium:d,fontWeightBold:h},C),w,{clone:!1})}function rd(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var ad=["none",rd(0,2,1,-1,0,1,1,0,0,1,3,0),rd(0,3,1,-2,0,2,2,0,0,1,5,0),rd(0,3,3,-2,0,3,4,0,0,1,8,0),rd(0,2,4,-1,0,4,5,0,0,1,10,0),rd(0,3,5,-1,0,5,8,0,0,1,14,0),rd(0,3,5,-1,0,6,10,0,0,1,18,0),rd(0,4,5,-2,0,7,10,1,0,2,16,1),rd(0,5,5,-3,0,8,10,1,0,3,14,2),rd(0,5,6,-3,0,9,12,1,0,3,16,2),rd(0,6,6,-3,0,10,14,1,0,4,18,3),rd(0,6,7,-4,0,11,15,1,0,4,20,3),rd(0,7,8,-4,0,12,17,2,0,5,22,4),rd(0,7,8,-4,0,13,19,2,0,5,24,4),rd(0,7,9,-4,0,14,21,2,0,5,26,4),rd(0,8,9,-5,0,15,22,2,0,6,28,5),rd(0,8,10,-5,0,16,24,2,0,6,30,5),rd(0,8,11,-5,0,17,26,2,0,6,32,5),rd(0,9,11,-5,0,18,28,2,0,7,34,6),rd(0,9,12,-6,0,19,29,2,0,7,36,6),rd(0,10,13,-6,0,20,31,3,0,8,38,7),rd(0,10,13,-6,0,21,33,3,0,8,40,7),rd(0,10,14,-6,0,22,35,3,0,8,42,7),rd(0,11,14,-7,0,23,36,3,0,9,44,8),rd(0,11,15,-7,0,24,38,3,0,9,46,8)],od=["duration","easing","delay"],id={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)"},ld={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function sd(e){return"".concat(Math.round(e),"ms")}function ud(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function cd(e){var t=x({},id,e.easing),n=x({},ld,e.duration);return x({getAutoHeightDuration:ud,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.duration,o=void 0===a?n.standard:a,i=r.easing,l=void 0===i?t.easeInOut:i,s=r.delay,u=void 0===s?0:s;m(r,od);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof o?o:sd(o)," ").concat(l," ").concat("string"===typeof u?u:sd(u))})).join(",")}},e,{easing:t,duration:n})}var fd={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},dd=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function pd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,r=e.palette,a=void 0===r?{}:r,o=e.transitions,i=void 0===o?{}:o,l=e.typography,s=void 0===l?{}:l,u=m(e,dd);if(e.vars)throw new Error(Zs(18));var c=Xf(a),f=vc(e),d=fu(f,{mixins:Ff(f.breakpoints,n),palette:c,shadows:ad.slice(),typography:nd(c,s),transitions:cd(i),zIndex:x({},fd)});d=fu(d,u);for(var p=arguments.length,h=new Array(p>1?p-1:0),v=1;v96?bd:wd},kd=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},Sd=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return gd(t,n,r),jf((function(){return function(e,t,n){gd(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}(t,n,r)})),null},Ed=function e(t,n){var r,a,o=t.__emotion_real===t,i=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,a=n.target);var l=kd(t,n,o),s=l||xd(i),u=!s("as");return function(){var c=arguments,f=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&f.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)f.push.apply(f,c);else{0,f.push(c[0][0]);for(var d=c.length,p=1;p=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+s;return{name:u,styles:a,next:_f}}(f.concat(c),t.registered,d);o+=t.key+"-"+v.name,void 0!==a&&(o+=" "+a);var m=u&&void 0===l?xd(r):s,y={};for(var g in e)u&&"as"===g||m(g)&&(y[g]=e[g]);return y.className=o,y.ref=n,h.createElement(h.Fragment,null,h.createElement(Sd,{cache:t,serialized:v,isStringTag:"string"===typeof r}),h.createElement(r,y))}));return v.displayName=void 0!==r?r:"Styled("+("string"===typeof i?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=f,v.__emotion_forwardProp=l,Object.defineProperty(v,"toString",{value:function(){return"."+a}}),v.withComponent=function(t,r){return e(t,x({},n,r,{shouldForwardProp:kd(v,r,!0)})).apply(void 0,f)},v}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Ed[e]=Ed(e)}));var Cd=["variant"];function Od(e){return 0===e.length}function Nd(e){var t=e.variant,n=m(e,Cd),r=t||"";return Object.keys(n).sort().forEach((function(t){r+="color"===t?Od(r)?e[t]:wu(e[t]):"".concat(Od(r)?t:wu(t)).concat(wu(e[t].toString()))})),r}var _d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Pd(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var Td=vc();function jd(e){var t,n=e.defaultTheme,r=e.theme,a=e.themeId;return t=r,0===Object.keys(t).length?n:r[a]||r}var Rd=Pd,Ld=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,n=e.defaultTheme,r=void 0===n?Td:n,a=e.rootShouldForwardProp,i=void 0===a?Pd:a,l=e.slotShouldForwardProp,u=void 0===l?Pd:l,c=function(e){return pc(x({},e,{theme:jd(x({},e,{defaultTheme:r,themeId:t}))}))};return c.__mui_systemSx=!0,function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var a=n.name,l=n.slot,f=n.skipVariantsResolver,d=n.skipSx,p=n.overridesResolver,h=m(n,_d),v=void 0!==f?f:l&&"Root"!==l||!1,y=d||!1;var g=Pd;"Root"===l?g=i:l?g=u:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);var b=function(e,t){return Ed(e,t)}(e,x({shouldForwardProp:g,label:undefined},h)),w=function(n){for(var i=arguments.length,l=new Array(i>1?i-1:0),u=1;u0){var m=new Array(h).fill("");(d=[].concat(o(n),o(m))).raw=[].concat(o(n.raw),o(m))}else"function"===typeof n&&n.__emotion_real!==n&&(d=function(e){return n(x({},e,{theme:jd(x({},e,{defaultTheme:r,themeId:t}))}))});var g=b.apply(void 0,[d].concat(o(f)));return e.muiName&&(g.muiName=e.muiName),g};return b.withConfig&&(w.withConfig=b.withConfig),w}}({themeId:vd,defaultTheme:hd,rootShouldForwardProp:function(e){return Pd(e)&&"classes"!==e}}),Ad=Ld;var zd=function(e){return!e||!xs(e)},Id=wu,Md=function(e){return e},Fd=function(){var e=Md;return{configure:function(t){e=t},generate:function(t){return e(t)},reset:function(){e=Md}}}(),Dd={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Bd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",r=Dd[t];return r?"".concat(n,"-").concat(r):"".concat(Fd.generate(e),"-").concat(t)}function Ud(e){return Bd("MuiSlider",e)}var Vd=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",r={};return t.forEach((function(t){r[t]=Bd(e,t,n)})),r}("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Hd=Vd;var Wd=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function $d(e){return e}var qd=Ad("span",{name:"MuiSlider",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["color".concat(Id(n.color))],"medium"!==n.size&&t["size".concat(Id(n.size))],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((function(e){var t,n=e.theme,r=e.ownerState;return x({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(n.vars||n).palette[r.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===r.orientation&&x({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===r.size&&{height:2},r.marked&&{marginBottom:20}),"vertical"===r.orientation&&x({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===r.size&&{width:2},r.marked&&{marginRight:44}),(f(t={"@media print":{colorAdjust:"exact"}},"&.".concat(Hd.disabled),{pointerEvents:"none",cursor:"default",color:(n.vars||n).palette.grey[400]}),f(t,"&.".concat(Hd.dragging),f({},"& .".concat(Hd.thumb,", & .").concat(Hd.track),{transition:"none"})),t))})),Kd=Ad("span",{name:"MuiSlider",slot:"Rail",overridesResolver:function(e,t){return t.rail}})((function(e){var t=e.ownerState;return x({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===t.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===t.track&&{opacity:1})})),Qd=Ad("span",{name:"MuiSlider",slot:"Track",overridesResolver:function(e,t){return t.track}})((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode?iu(t.palette[n.color].main,.62):ou(t.palette[n.color].main,.5);return x({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest})},"small"===n.size&&{border:"none"},"horizontal"===n.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===n.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===n.track&&{display:"none"},"inverted"===n.track&&{backgroundColor:t.vars?t.vars.palette.Slider["".concat(n.color,"Track")]:r,borderColor:t.vars?t.vars.palette.Slider["".concat(n.color,"Track")]:r})})),Yd=Ad("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:function(e,t){var n=e.ownerState;return[t.thumb,t["thumbColor".concat(Id(n.color))],"medium"!==n.size&&t["thumbSize".concat(Id(n.size))]]}})((function(e){var t,n=e.theme,r=e.ownerState;return x({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:n.transitions.create(["box-shadow","left","bottom"],{duration:n.transitions.duration.shortest})},"small"===r.size&&{width:12,height:12},"horizontal"===r.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===r.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},(f(t={"&:before":x({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(n.vars||n).shadows[2]},"small"===r.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},"&:hover, &.".concat(Hd.focusVisible),{boxShadow:"0px 0px 0px 8px ".concat(n.vars?"rgba(".concat(n.vars.palette[r.color].mainChannel," / 0.16)"):au(n.palette[r.color].main,.16)),"@media (hover: none)":{boxShadow:"none"}}),f(t,"&.".concat(Hd.active),{boxShadow:"0px 0px 0px 14px ".concat(n.vars?"rgba(".concat(n.vars.palette[r.color].mainChannel," / 0.16)"):au(n.palette[r.color].main,.16))}),f(t,"&.".concat(Hd.disabled),{"&:hover":{boxShadow:"none"}}),t))})),Gd=Ad((function(e){var t=e.children,n=e.className,r=e.value,a=function(e){var t=e.open;return{offset:bs(t&&Hd.valueLabelOpen),circle:Hd.valueLabelCircle,label:Hd.valueLabelLabel}}(e);return t?h.cloneElement(t,{className:bs(t.props.className)},(0,P.jsxs)(h.Fragment,{children:[t.props.children,(0,P.jsx)("span",{className:bs(a.offset,n),"aria-hidden":!0,children:(0,P.jsx)("span",{className:a.circle,children:(0,P.jsx)("span",{className:a.label,children:r})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:function(e,t){return t.valueLabel}})((function(e){var t,n=e.theme,r=e.ownerState;return x((f(t={},"&.".concat(Hd.valueLabelOpen),{transform:"".concat("vertical"===r.orientation?"translateY(-50%)":"translateY(-100%)"," scale(1)")}),f(t,"zIndex",1),f(t,"whiteSpace","nowrap"),t),n.typography.body2,{fontWeight:500,transition:n.transitions.create(["transform"],{duration:n.transitions.duration.shortest}),transform:"".concat("vertical"===r.orientation?"translateY(-50%)":"translateY(-100%)"," scale(0)"),position:"absolute",backgroundColor:(n.vars||n).palette.grey[600],borderRadius:2,color:(n.vars||n).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===r.orientation&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===r.orientation&&{right:"small"===r.size?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},"small"===r.size&&{fontSize:n.typography.pxToRem(12),padding:"0.25rem 0.5rem"})})),Xd=Ad("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:function(e){return Rd(e)&&"markActive"!==e},overridesResolver:function(e,t){var n=e.markActive;return[t.mark,n&&t.markActive]}})((function(e){var t=e.theme,n=e.ownerState,r=e.markActive;return x({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===n.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===n.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8})})),Jd=Ad("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:function(e){return Rd(e)&&"markLabelActive"!==e},overridesResolver:function(e,t){return t.markLabel}})((function(e){var t=e.theme,n=e.ownerState,r=e.markLabelActive;return x({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===n.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===n.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(t.vars||t).palette.text.primary})})),Zd=function(e){var t=e.disabled,n=e.dragging,r=e.marked,a=e.orientation,o=e.track,i=e.classes,l=e.color,s=e.size;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r={};return Object.keys(e).forEach((function(a){r[a]=e[a].reduce((function(e,r){if(r){var a=t(r);""!==a&&e.push(a),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}({root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===a&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse",l&&"color".concat(Id(l)),s&&"size".concat(Id(s))],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",s&&"thumbSize".concat(Id(s)),l&&"thumbColor".concat(Id(l))],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},Ud,i)},ep=function(e){return e.children},tp=h.forwardRef((function(e,t){var n,r,a,o,i,l,s,u,c,f,d,p,v,y,g,b,w,k,S,E,C,O,N,_,T=md({props:e,name:"MuiSlider"}),j="rtl"===function(){var e=Mf(hd);return e[vd]||e}().direction,R=T["aria-label"],L=T["aria-valuetext"],A=T["aria-labelledby"],z=T.component,I=void 0===z?"span":z,M=T.components,F=void 0===M?{}:M,D=T.componentsProps,B=void 0===D?{}:D,U=T.color,V=void 0===U?"primary":U,H=T.classes,W=T.className,$=T.disableSwap,q=void 0!==$&&$,K=T.disabled,Q=void 0!==K&&K,Y=T.getAriaLabel,G=T.getAriaValueText,X=T.marks,J=void 0!==X&&X,Z=T.max,ee=void 0===Z?100:Z,te=T.min,ne=void 0===te?0:te,re=T.orientation,ae=void 0===re?"horizontal":re,oe=T.size,ie=void 0===oe?"medium":oe,le=T.step,se=void 0===le?1:le,ue=T.scale,ce=void 0===ue?$d:ue,fe=T.slotProps,de=T.slots,pe=T.track,he=void 0===pe?"normal":pe,ve=T.valueLabelDisplay,me=void 0===ve?"off":ve,ye=T.valueLabelFormat,ge=void 0===ye?$d:ye,be=m(T,Wd),we=x({},T,{isRtl:j,max:ee,min:ne,classes:H,disabled:Q,disableSwap:q,orientation:ae,marks:J,color:V,size:ie,step:se,scale:ce,track:he,valueLabelDisplay:me,valueLabelFormat:ge}),xe=Js(x({},we,{rootRef:t})),ke=xe.axisProps,Se=xe.getRootProps,Ee=xe.getHiddenInputProps,Ce=xe.getThumbProps,Oe=xe.open,Ne=xe.active,_e=xe.axis,Pe=xe.focusedThumbIndex,Te=xe.range,je=xe.dragging,Re=xe.marks,Le=xe.values,Ae=xe.trackOffset,ze=xe.trackLeap,Ie=xe.getThumbStyle;we.marked=Re.length>0&&Re.some((function(e){return e.label})),we.dragging=je,we.focusedThumbIndex=Pe;var Me=Zd(we),Fe=null!=(n=null!=(r=null==de?void 0:de.root)?r:F.Root)?n:qd,De=null!=(a=null!=(o=null==de?void 0:de.rail)?o:F.Rail)?a:Kd,Be=null!=(i=null!=(l=null==de?void 0:de.track)?l:F.Track)?i:Qd,Ue=null!=(s=null!=(u=null==de?void 0:de.thumb)?u:F.Thumb)?s:Yd,Ve=null!=(c=null!=(f=null==de?void 0:de.valueLabel)?f:F.ValueLabel)?c:Gd,He=null!=(d=null!=(p=null==de?void 0:de.mark)?p:F.Mark)?d:Xd,We=null!=(v=null!=(y=null==de?void 0:de.markLabel)?y:F.MarkLabel)?v:Jd,$e=null!=(g=null!=(b=null==de?void 0:de.input)?b:F.Input)?g:"input",qe=null!=(w=null==fe?void 0:fe.root)?w:B.root,Ke=null!=(k=null==fe?void 0:fe.rail)?k:B.rail,Qe=null!=(S=null==fe?void 0:fe.track)?S:B.track,Ye=null!=(E=null==fe?void 0:fe.thumb)?E:B.thumb,Ge=null!=(C=null==fe?void 0:fe.valueLabel)?C:B.valueLabel,Xe=null!=(O=null==fe?void 0:fe.mark)?O:B.mark,Je=null!=(N=null==fe?void 0:fe.markLabel)?N:B.markLabel,Ze=null!=(_=null==fe?void 0:fe.input)?_:B.input,et=Cs({elementType:Fe,getSlotProps:Se,externalSlotProps:qe,externalForwardedProps:be,additionalProps:x({},zd(Fe)&&{as:I}),ownerState:x({},we,null==qe?void 0:qe.ownerState),className:[Me.root,W]}),tt=Cs({elementType:De,externalSlotProps:Ke,ownerState:we,className:Me.rail}),nt=Cs({elementType:Be,externalSlotProps:Qe,additionalProps:{style:x({},ke[_e].offset(Ae),ke[_e].leap(ze))},ownerState:x({},we,null==Qe?void 0:Qe.ownerState),className:Me.track}),rt=Cs({elementType:Ue,getSlotProps:Ce,externalSlotProps:Ye,ownerState:x({},we,null==Ye?void 0:Ye.ownerState),className:Me.thumb}),at=Cs({elementType:Ve,externalSlotProps:Ge,ownerState:x({},we,null==Ge?void 0:Ge.ownerState),className:Me.valueLabel}),ot=Cs({elementType:He,externalSlotProps:Xe,ownerState:we,className:Me.mark}),it=Cs({elementType:We,externalSlotProps:Je,ownerState:we,className:Me.markLabel}),lt=Cs({elementType:$e,getSlotProps:Ee,externalSlotProps:Ze,ownerState:we});return(0,P.jsxs)(Fe,x({},et,{children:[(0,P.jsx)(De,x({},tt)),(0,P.jsx)(Be,x({},nt)),Re.filter((function(e){return e.value>=ne&&e.value<=ee})).map((function(e,t){var n,r=Hs(e.value,ne,ee),a=ke[_e].offset(r);return n=!1===he?-1!==Le.indexOf(e.value):"normal"===he&&(Te?e.value>=Le[0]&&e.value<=Le[Le.length-1]:e.value<=Le[0])||"inverted"===he&&(Te?e.value<=Le[0]||e.value>=Le[Le.length-1]:e.value>=Le[0]),(0,P.jsxs)(h.Fragment,{children:[(0,P.jsx)(He,x({"data-index":t},ot,!xs(He)&&{markActive:n},{style:x({},a,ot.style),className:bs(ot.className,n&&Me.markActive)})),null!=e.label?(0,P.jsx)(We,x({"aria-hidden":!0,"data-index":t},it,!xs(We)&&{markLabelActive:n},{style:x({},a,it.style),className:bs(Me.markLabel,it.className,n&&Me.markLabelActive),children:e.label})):null]},t)})),Le.map((function(e,t){var n=Hs(e,ne,ee),r=ke[_e].offset(n),a="off"===me?ep:Ve;return(0,P.jsx)(a,x({},!xs(a)&&{valueLabelFormat:ge,valueLabelDisplay:me,value:"function"===typeof ge?ge(ce(e),t):ge,index:t,open:Oe===t||Ne===t||"on"===me,disabled:Q},at,{children:(0,P.jsx)(Ue,x({"data-index":t},rt,{className:bs(Me.thumb,rt.className,Ne===t&&Me.active,Pe===t&&Me.focusVisible),style:x({},r,Ie(t),rt.style),children:(0,P.jsx)($e,x({"data-index":t,"aria-label":Y?Y(t):R,"aria-valuenow":ce(e),"aria-labelledby":A,"aria-valuetext":G?G(ce(e),t):L,value:Le[t]},lt))}))}),t)}))]}))})),np=tp,rp=h.memo((function(e){var t=(0,h.useRef)(0),n=s((0,h.useState)(!1),2),r=n[0],a=n[1];(0,h.useEffect)((function(){t.current++}));var o=e.name,i=e.parent_path,l=e.value,u=e.min,c=e.max,f=e.stepSize,d=e.readOnly,p=e.docString,v=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.min,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.max,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.stepSize;mo(o,i,{value:t,min:n,max:r,step_size:a})},m=function(e,t){switch(t){case"min":v(l,e,c,f);break;case"max":v(l,u,e,f);break;case"stepSize":v(l,u,c,e)}};return(0,P.jsxs)("div",{className:"sliderComponent",id:i.concat("."+o),children:[!1,(0,P.jsx)(is,{docString:p}),(0,P.jsx)(ys,{children:(0,P.jsxs)(pr,{className:"col-5 d-flex align-items-center",children:[(0,P.jsx)(ps.Text,{children:o}),(0,P.jsx)(np,{style:{flex:1,margin:"0px 0px 5px 10px"},"aria-label":"Always visible",valueLabelDisplay:"on",disabled:d,value:l,onChange:function(e,t){return function(e,t){Array.isArray(t)&&(t=t[0]),v(t,u,c,f)}(0,t)},min:u,max:c,step:f,marks:[{value:u,label:"".concat(u)},{value:c,label:"".concat(c)}]})]})}),(0,P.jsxs)(ys,{xs:"auto",children:[(0,P.jsx)(Jo,{onClick:function(){return a(!r)},"aria-controls":"slider-settings","aria-expanded":r,children:"Settings"}),(0,P.jsx)(je,{in:r,children:(0,P.jsx)("div",{id:"slider-settings",children:(0,P.jsxs)(Ar.Group,{children:[(0,P.jsx)(Ar.Label,{children:"Min Value"}),(0,P.jsx)(Ar.Control,{type:"number",value:u,onChange:function(e){return m(Number(e.target.value),"min")}}),(0,P.jsx)(Ar.Label,{children:"Max Value"}),(0,P.jsx)(Ar.Control,{type:"number",value:c,onChange:function(e){return m(Number(e.target.value),"max")}}),(0,P.jsx)(Ar.Label,{children:"Step Size"}),(0,P.jsx)(Ar.Control,{type:"number",value:f,onChange:function(e){return m(Number(e.target.value),"stepSize")}})]})})})]})]})})),ap=h.memo((function(e){var t=(0,h.useRef)(0);(0,h.useEffect)((function(){t.current++}));var n=e.name,r=e.parent_path,a=e.value,o=e.docString,i=e.enumDict;return(0,P.jsxs)("div",{className:"enumComponent",id:r.concat("."+n),children:[!1,(0,P.jsx)(is,{docString:o}),(0,P.jsx)(ys,{children:(0,P.jsxs)(pr,{className:"col-5 d-flex align-items-center",children:[(0,P.jsx)(ps.Text,{children:n}),(0,P.jsx)(Ar.Select,{"aria-label":"Default select example",value:a,onChange:function(e){return t=e.target.value,void mo(n,r,t);var t},children:Object.entries(i).map((function(e){var t=s(e,2),n=t[0],r=t[1];return(0,P.jsxs)("option",{value:n,children:[n," - ",r]},n)}))})]})})]})}));function op(){op=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(wp){s=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),l=new O(a||[]);return r(i,"_invoke",{value:k(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(wp){return{type:"throw",arg:wp}}}e.wrap=c;var d={};function p(){}function h(){}function v(){}var m={};s(m,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(N([])));g&&g!==t&&n.call(g,o)&&(m=g);var b=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function a(r,o,i,l){var s=f(e[r],e,o);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==u(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,i,l)}),(function(e){a("throw",e,i,l)})):t.resolve(d).then((function(e){c.value=e,i(c)}),(function(e){return a("throw",e,i,l)}))}l(s.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function k(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return _()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var l=S(i,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=f(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function N(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(l&&s){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;C(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function ip(e,t,n,r,a,o,i){try{var l=e[o](i),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,a)}function lp(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){ip(o,r,a,i,l,"next",e)}function l(e){ip(o,r,a,i,l,"throw",e)}i(void 0)}))}}var sp=h.memo((function(e){var t=(0,h.useRef)(0),n=s((0,h.useState)(!1),2),r=n[0],a=n[1],i=s((0,h.useState)([]),2),l=i[0],u=i[1],c=e.name,f=e.parent_path,d=e.docString,p=function(){var t=lp(op().mark((function t(n){var r;return op().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.preventDefault(),r={},Object.keys(e.parameters).forEach((function(e){return r[e]=n.target[e].value})),mo(c,f,{args:r},(function(e){void 0!==e&&u((function(t){return[].concat(o(t),[{name:c,args:r,result:e}])}))}));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();(0,h.useEffect)((function(){t.current++,void 0!==e.hideOutput&&a(e.hideOutput)}));var v=Object.entries(e.parameters).map((function(e,t){var n=s(e,2),r=n[0],a=n[1],o="".concat(r," (").concat(a,")");return(0,P.jsxs)(ps,{children:[(0,P.jsx)(ps.Text,{className:"component-label",children:o}),(0,P.jsx)(Ar.Control,{type:"text",name:r})]},t)}));return(0,P.jsxs)("div",{className:"col-5 align-items-center methodComponent",id:f.concat("."+c),children:[!1,(0,P.jsxs)("h5",{onClick:function(){return a(!r)},style:{cursor:"pointer"},children:["Function: ",c,(0,P.jsx)(is,{docString:d})]}),(0,P.jsxs)(Ar,{onSubmit:p,children:[v,(0,P.jsx)("div",{children:(0,P.jsx)(Jo,{variant:"primary",type:"submit",children:"Execute"})})]}),(0,P.jsx)(je,{in:!r,children:(0,P.jsx)("div",{id:"function-output",children:l.map((function(e,t){return(0,P.jsx)("div",{children:(0,P.jsx)("div",{style:{color:"grey",fontSize:"small"},children:Object.entries(e.args).map((function(e){var t=s(e,2),n=t[0],r=t[1];return"".concat(n,"=").concat(JSON.stringify(r))})).join(", ")+" => "+JSON.stringify(e.result)})},t)}))})})]})})),up=h.memo((function(e){var t=(0,h.useRef)(0),n=(0,h.useRef)(null),r=e.name,a=e.parent_path,o=e.docString,i=e.value,l=function(){var t=lp(op().mark((function t(n){var o,l;return op().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.preventDefault(),l={},void 0!==i&&null!==i?o="stop_".concat(r):(Object.keys(e.parameters).forEach((function(e){return l[e]=n.target[e].value})),o="start_".concat(r)),mo(o,a,{args:l});case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();(0,h.useEffect)((function(){if(t.current++,i){var e=n.current;e&&Object.entries(i).forEach((function(t){var n=s(t,2),r=n[0],a=n[1],o=e.elements.namedItem(r);o&&(o.value=a)}))}}),[i]);var u=Object.entries(e.parameters).map((function(e,t){var n=s(e,2),r=n[0],a=n[1],o="".concat(r," (").concat(a,")"),l=i&&i[r],u=void 0!==l&&null!==l;return(0,P.jsxs)(ps,{children:[(0,P.jsx)(ps.Text,{className:"component-label",children:o}),(0,P.jsx)(Ar.Control,{type:"text",name:r,defaultValue:u?l:"",disabled:u})]},t)}));return(0,P.jsxs)("div",{className:"col-5 align-items-center asyncMethodComponent",id:a.concat("."+r),children:[!1,(0,P.jsxs)("h5",{children:["Function: ",r,(0,P.jsx)(is,{docString:o})]}),(0,P.jsxs)(Ar,{onSubmit:l,ref:n,children:[u,(0,P.jsx)(Jo,{id:"button-".concat(a,".").concat(r),name:r,value:a,type:"submit",children:i?"Stop":"Start"})]})]})})),cp=h.memo((function(e){var t=(0,h.useRef)(0),n=s((0,h.useState)(e.value),2),r=n[0],a=n[1],o=e.name,i=e.parent_path,l=e.readOnly,u=e.docString,c=e.isInstantUpdate;(0,h.useEffect)((function(){t.current++}),[c,r,t]),(0,h.useEffect)((function(){e.value!==r&&a(e.value)}),[e.value]);return(0,P.jsxs)("div",{className:"stringComponent",id:i.concat(o),children:[!1,(0,P.jsx)(is,{docString:u}),(0,P.jsx)("div",{className:"row",children:(0,P.jsx)("div",{className:"col-5 d-flex",children:(0,P.jsxs)(ps,{children:[(0,P.jsx)(ps.Text,{children:o}),(0,P.jsx)(Ar.Control,{type:"text",value:r,disabled:l,name:o,onChange:function(e){a(e.target.value),c&&mo(o,i,e.target.value)},onKeyDown:function(e){"Enter"!==e.key||c||mo(o,i,r)},onBlur:function(){c||mo(o,i,r)},className:c&&!l?"instantUpdate":""})]})})})]})})),fp=h.memo((function(e){var t=(0,h.useRef)(0);(0,h.useEffect)((function(){t.current++}));var n=e.name,r=e.parent_path,a=e.value,o=e.docString,i=e.isInstantUpdate;return(0,P.jsxs)("div",{className:"listComponent",id:r.concat(n),children:[!1,(0,P.jsx)(is,{docString:o}),a.map((function(e,t){return(0,P.jsx)(dp,{attribute:e,name:"".concat(n,"[").concat(t,"]"),parentPath:r,isInstantUpdate:i},"".concat(n,"[").concat(t,"]"))}))]})})),dp=h.memo((function(e){var t=e.attribute,n=e.name,r=e.parentPath,a=e.isInstantUpdate;return"bool"===t.type?(0,P.jsx)(ls,{name:n,parent_path:r,docString:t.doc,readOnly:t.readonly,value:Boolean(t.value)}):"float"===t.type||"int"===t.type?(0,P.jsx)(hs,{name:n,type:t.type,parent_path:r,docString:t.doc,readOnly:t.readonly,value:Number(t.value),isInstantUpdate:a}):"NumberSlider"===t.type?(0,P.jsx)(rp,{name:n,parent_path:r,docString:t.doc,readOnly:t.readonly,value:t.value.value.value,min:t.value.min.value,max:t.value.max.value,stepSize:t.value.step_size.value,isInstantUpdate:a}):"Enum"===t.type?(0,P.jsx)(ap,{name:n,parent_path:r,docString:t.doc,value:String(t.value),enumDict:t.enum}):"method"===t.type?t.async?(0,P.jsx)(up,{name:n,parent_path:r,docString:t.doc,parameters:t.parameters,value:t.value}):(0,P.jsx)(sp,{name:n,parent_path:r,docString:t.doc,parameters:t.parameters}):"str"===t.type?(0,P.jsx)(cp,{name:n,value:t.value,readOnly:t.readonly,docString:t.doc,parent_path:r,isInstantUpdate:a}):"DataService"===t.type?(0,P.jsx)(pp,{props:t.value,parentPath:r.concat(".",n),isInstantUpdate:a}):"list"===t.type?(0,P.jsx)(fp,{name:n,value:t.value,docString:t.doc,parent_path:r,isInstantUpdate:a}):(0,P.jsx)("div",{children:n},n)})),pp=h.memo((function(e){var t=e.props,n=e.parentPath,r=void 0===n?"DataService":n,a=e.isInstantUpdate,o=s((0,h.useState)(!0),2),i=o[0],l=o[1];return(0,P.jsx)("div",{className:"dataServiceComponent",children:(0,P.jsxs)(Io,{className:"mb-3",children:[(0,P.jsxs)(Io.Header,{onClick:function(){return l(!i)},style:{cursor:"pointer"},children:[r," ",i?(0,P.jsx)(Uo,{}):(0,P.jsx)(qo,{})]}),(0,P.jsx)(je,{in:i,children:(0,P.jsx)(Io.Body,{children:Object.entries(t).map((function(e){var t=s(e,2),n=t[0],o=t[1];return(0,P.jsx)(dp,{attribute:o,name:n,parentPath:r,isInstantUpdate:a},n)}))})})]})})}));function hp(e,t,n){if(0===e.length)return n;var o,s,u=i(o=e)||r(o)||a(o)||l(),c=u[0],d=u.slice(1),h=c.match(/^(\w+)\[(\d+)\]$/);if(h){var v,m,y=h[1],g=parseInt(h[2]);if(Array.isArray(null===(v=t[y])||void 0===v?void 0:v.value))return p(p({},t),{},f({},y,p(p({},t[y]),{},{value:t[y].value.map((function(e,t){return t===g?p(p({},e),{},{value:hp(d,e.value||{},n)}):e}))})));throw new Error("Expected ".concat(y,".value to be an array, but received ").concat(typeof(null===(m=t[y])||void 0===m?void 0:m.value)))}return p(p({},t),{},f({},c,p(p({},t[c]),{},{value:hp(d,(null===(s=t[c])||void 0===s?void 0:s.value)||{},n)})))}var vp=function(e,t){switch(t.type){case"SET_DATA":return t.data;case"UPDATE_ATTRIBUTE":return hp(t.parent_path.split(".").slice(1).concat(t.name),e,t.value);default:throw new Error}},mp=function(){var e=s((0,h.useReducer)(vp,null),2),t=e[0],n=e[1],r=s((0,h.useState)(!0),2),a=r[0],i=r[1],l=s((0,h.useState)(!1),2),u=l[0],c=l[1],f=s((0,h.useState)(!0),2),d=f[0],p=f[1],v=s((0,h.useState)([]),2),m=v[0],y=v[1],g=function(e){y((function(t){return t.filter((function(t){return t.id!==e}))}))};function b(e){n({type:"UPDATE_ATTRIBUTE",parent_path:e.data.parent_path,name:e.data.name,value:e.data.value});var t={id:Math.random(),text:"Attribute ".concat(e.data.parent_path,".").concat(e.data.name," updated to ").concat(e.data.value,".")};y((function(e){return[t].concat(o(e))}))}return(0,h.useEffect)((function(){return fetch("http://".concat(fo,":").concat(po,"/service-properties")).then((function(e){return e.json()})).then((function(e){return n({type:"SET_DATA",data:e})})),vo.on("notify",b),function(){vo.off("notify",b)}}),[]),t?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(gn,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:(0,P.jsxs)(xn,{fluid:!0,children:[(0,P.jsx)(gn.Brand,{children:"Data Service App"}),(0,P.jsx)(gn.Toggle,{"aria-controls":"offcanvasNavbar",onClick:function(){return c(!0)}})]})}),d&&(0,P.jsx)(On,{className:"navbarOffset toastContainer",position:"top-end",style:{position:"fixed"},children:m.map((function(e){return(0,P.jsxs)(Bn,{className:"notificationToast",onClose:function(){g(e.id)},onClick:function(){g(e.id)},onMouseLeave:function(){g(e.id)},show:!0,autohide:!0,delay:2e3,children:[(0,P.jsx)(Bn.Header,{closeButton:!1,className:"notificationToast",children:(0,P.jsx)("strong",{className:"mr-auto",children:"Notification"})}),(0,P.jsx)(Bn.Body,{children:e.text})]},e.id)}))}),(0,P.jsxs)(dn,{show:u,onHide:function(){return c(!1)},placement:"end",style:{zIndex:9999},children:[(0,P.jsx)(dn.Header,{closeButton:!0,children:(0,P.jsx)(dn.Title,{children:"Settings"})}),(0,P.jsxs)(dn.Body,{children:[(0,P.jsx)(Ar.Check,{checked:a,onChange:function(e){return i(e.target.checked)},type:"switch",label:"Enable Instant Update"}),(0,P.jsx)(Ar.Check,{checked:d,onChange:function(e){return p(e.target.checked)},type:"switch",label:"Show Notifications"})]})]}),(0,P.jsx)("div",{className:"App navbarOffset",children:(0,P.jsx)(pp,{props:t,isInstantUpdate:a})})]}):(0,P.jsx)("p",{children:"Loading..."})},yp=n(250),gp=document.getElementById("root");(0,yp.s)(gp).render((0,P.jsx)(mp,{}))}()}();
-//# sourceMappingURL=main.1e89ddc5.js.map
\ No newline at end of file
+/*! For license information please see main.b51434ec.js.LICENSE.txt */
+!function(){var e={694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;tt}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(y,g);m[t]=new v(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(y,g);m[t]=new v(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(y,g);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),N=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function z(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=A&&e[A]||e["@@iterator"])?e:null}var I,M=Object.assign;function F(e){if(void 0===I)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);I=t&&t[1]||""}return"\n"+I+e}var D=!1;function B(e,t){if(!e||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var o=u.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{D=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function U(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case C:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case T:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}return null}function H(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=(e=t.render).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 V(t);case 8:return t===E?"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("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){X(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={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},he=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ye=M({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 ge(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;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 we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ee=null;function Ce(e){if(e=wo(e)){if("function"!==typeof ke)throw Error(a(280));var t=e.stateNode;t&&(t=ko(t),ke(e.stateNode,e.type,t))}}function Oe(e){Se?Ee?Ee.push(e):Ee=[e]:Se=e}function Ne(){if(Se){var e=Se,t=Ee;if(Ee=Se=null,Ce(e),t)for(e=0;e>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ut=64,ct=4194304;function ft(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=ft(l):0!==(a&=i)&&(r=ft(a))}else 0!==(i=n&~o)?r=ft(i):0!==a&&(r=ft(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<=zn),Fn=String.fromCharCode(32),Dn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function $n(e,t,n,r){Oe(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Kn=null;function Qn(e){Fr(e,0)}function Yn(e){if(K(xo(e)))return e}function Gn(e,t){if("change"===e)return t}var Xn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"===typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9=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=ur(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=cr(n,a);var i=cr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n=document.documentMode,mr=null,yr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==Q(r)||("selectionStart"in(r=mr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&sr(gr,r)||(gr=r,0<(r=qr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Sr={},Er={};function Cr(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Sr[e]=n[t];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Or=Cr("animationend"),Nr=Cr("animationiteration"),_r=Cr("animationstart"),Pr=Cr("transitionend"),Tr=new Map,jr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Tr.set(e,t),s(t,[e])}for(var Lr=0;LrEo||(e.current=So[Eo],So[Eo]=null,Eo--)}function No(e,t){Eo++,So[Eo]=e.current,e.current=t}var _o={},Po=Co(_o),To=Co(!1),jo=_o;function Ro(e,t){var n=e.type.contextTypes;if(!n)return _o;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Lo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ao(){Oo(To),Oo(Po)}function zo(e,t,n){if(Po.current!==_o)throw Error(a(168));No(Po,t),No(To,n)}function Io(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,H(e)||"Unknown",o));return M({},n,r)}function Mo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_o,jo=Po.current,No(Po,e),No(To,To.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Io(e,t,jo),r.__reactInternalMemoizedMergedChildContext=e,Oo(To),Oo(Po),No(Po,e)):Oo(To),No(To,n)}var Do=null,Bo=!1,Uo=!1;function Vo(e){null===Do?Do=[e]:Do.push(e)}function Ho(){if(!Uo&&null!==Do){Uo=!0;var e=0,t=bt;try{var n=Do;for(bt=1;e>=i,o-=i,Xo=1<<32-it(t)+o|n<v?(m=f,f=null):m=f.sibling;var y=p(o,f,l[v],s);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(o,f),a=i(y,a,v),null===c?u=y:c.sibling=y,c=y,f=m}if(v===l.length)return n(o,f),aa&&Zo(o,v),u;if(null===f){for(;vm?(y=v,v=null):y=v.sibling;var b=p(o,v,g.value,u);if(null===b){null===v&&(v=y);break}e&&v&&null===b.alternate&&t(o,v),l=i(b,l,m),null===f?c=b:f.sibling=b,f=b,v=y}if(g.done)return n(o,v),aa&&Zo(o,m),c;if(null===v){for(;!g.done;m++,g=s.next())null!==(g=d(o,g.value,u))&&(l=i(g,l,m),null===f?c=g:f.sibling=g,f=g);return aa&&Zo(o,m),c}for(v=r(o,v);!g.done;m++,g=s.next())null!==(g=h(v,o,m,g.value,u))&&(e&&null!==g.alternate&&v.delete(null===g.key?m:g.key),l=i(g,l,m),null===f?c=g:f.sibling=g,f=g);return e&&v.forEach((function(e){return t(o,e)})),aa&&Zo(o,m),c}return function e(r,a,i,s){if("object"===typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"===typeof i&&null!==i){switch(i.$$typeof){case x:e:{for(var u=i.key,c=a;null!==c;){if(c.key===u){if((u=i.type)===S){if(7===c.tag){n(r,c.sibling),(a=o(c,i.props.children)).return=r,r=a;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===R&&Ya(u)===c.type){n(r,c.sibling),(a=o(c,i.props)).ref=Ka(r,c,i),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}i.type===S?((a=Iu(i.props.children,r.mode,s,i.key)).return=r,r=a):((s=zu(i.type,i.key,i.props,null,r.mode,s)).ref=Ka(r,a,i),s.return=r,r=s)}return l(r);case k:e:{for(c=i.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Du(i,r.mode,s)).return=r,r=a}return l(r);case R:return e(r,a,(c=i._init)(i._payload),s)}if(te(i))return v(r,a,i,s);if(z(i))return m(r,a,i,s);Qa(r,i)}return"string"===typeof i&&""!==i||"number"===typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=Fu(i,r.mode,s)).return=r,r=a),l(r)):n(r,a)}}var Xa=Ga(!0),Ja=Ga(!1),Za={},ei=Co(Za),ti=Co(Za),ni=Co(Za);function ri(e){if(e===Za)throw Error(a(174));return e}function oi(e,t){switch(No(ni,t),No(ti,e),No(ei,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(ei),No(ei,t)}function ai(){Oo(ei),Oo(ti),Oo(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=se(t,e.type);t!==n&&(No(ti,e),No(ei,n))}function li(e){ti.current===e&&(Oo(ei),Oo(ti))}var si=Co(0);function ui(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ci=[];function fi(){for(var e=0;en?n:4,e(!0);var r=pi.transition;pi.transition={};try{e(!1),t()}finally{bt=n,pi.transition=r}}function el(){return Ni().memoizedState}function tl(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e))ol(t,n);else if(null!==(n=Pa(e,t,n,r))){ru(n,e,r,tu()),al(n,t,r)}}function nl(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,i)){var s=t.interleaved;return null===s?(o.next=o,_a(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(u){}null!==(n=Pa(e,t,o,r))&&(ru(n,e,r,o=tu()),al(n,t,r))}}function rl(e){var t=e.alternate;return e===vi||null!==t&&t===vi}function ol(e,t){bi=gi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function al(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var il={readContext:Oa,useCallback:ki,useContext:ki,useEffect:ki,useImperativeHandle:ki,useInsertionEffect:ki,useLayoutEffect:ki,useMemo:ki,useReducer:ki,useRef:ki,useState:ki,useDebugValue:ki,useDeferredValue:ki,useTransition:ki,useMutableSource:ki,useSyncExternalStore:ki,useId:ki,unstable_isNewReconciler:!1},ll={readContext:Oa,useCallback:function(e,t){return Oi().memoizedState=[e,void 0===t?null:t],e},useContext:Oa,useEffect:Hi,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ui(4194308,4,Ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ui(4,2,e,t)},useMemo:function(e,t){var n=Oi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,vi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Oi().memoizedState=e},useState:Fi,useDebugValue:Yi,useDeferredValue:function(e){return Oi().memoizedState=e},useTransition:function(){var e=Fi(!1),t=e[0];return e=Zi.bind(null,e[1]),Oi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=vi,o=Oi();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Ts)throw Error(a(349));0!==(30&hi)||Li(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Hi(zi.bind(null,r,i,e),[e]),r.flags|=2048,Di(9,Ai.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Oi(),t=Ts.identifierPrefix;if(aa){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-it(Xo)-1)).toString(32)+n),0<(n=wi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sl={readContext:Oa,useCallback:Gi,useContext:Oa,useEffect:Wi,useImperativeHandle:Qi,useInsertionEffect:$i,useLayoutEffect:qi,useMemo:Xi,useReducer:Pi,useRef:Bi,useState:function(){return Pi(_i)},useDebugValue:Yi,useDeferredValue:function(e){return Ji(Ni(),mi.memoizedState,e)},useTransition:function(){return[Pi(_i)[0],Ni().memoizedState]},useMutableSource:ji,useSyncExternalStore:Ri,useId:el,unstable_isNewReconciler:!1},ul={readContext:Oa,useCallback:Gi,useContext:Oa,useEffect:Wi,useImperativeHandle:Qi,useInsertionEffect:$i,useLayoutEffect:qi,useMemo:Xi,useReducer:Ti,useRef:Bi,useState:function(){return Ti(_i)},useDebugValue:Yi,useDeferredValue:function(e){var t=Ni();return null===mi?t.memoizedState=e:Ji(t,mi.memoizedState,e)},useTransition:function(){return[Ti(_i)[0],Ni().memoizedState]},useMutableSource:ji,useSyncExternalStore:Ri,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o,digest:null}}function fl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var pl="function"===typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=Aa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$s||($s=!0,qs=r),dl(0,t)},n}function vl(e,t,n){(n=Aa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!==typeof r&&(null===Ks?Ks=new Set([this]):Ks.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ou.bind(null,e,t,n),t.then(e,e))}function yl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gl(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Aa(-1,1)).tag=2,za(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bl=w.ReactCurrentOwner,wl=!1;function xl(e,t,n,r){t.child=null===e?Ja(t,null,n,r):Xa(t,e.child,n,r)}function kl(e,t,n,r,o){n=n.render;var a=t.ref;return Ca(t,o),r=Ei(e,t,n,r,a,o),n=Ci(),null===e||wl?(aa&&n&&ta(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$l(e,t,o))}function Sl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!==typeof a||Lu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=zu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,El(e,t,a,r,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)return $l(e,t,o)}return t.flags|=1,(e=Au(a,r)).ref=t.ref,e.return=t,t.child=e}function El(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=a,0===(e.lanes&o))return t.lanes=e.lanes,$l(e,t,o);0!==(131072&e.flags)&&(wl=!0)}}return Nl(e,t,n,r,o)}function Cl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},No(As,Ls),Ls|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,No(As,Ls),Ls|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,No(As,Ls),Ls|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,No(As,Ls),Ls|=r;return xl(e,t,o,n),t.child}function Ol(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Nl(e,t,n,r,o){var a=Lo(n)?jo:Po.current;return a=Ro(t,a),Ca(t,o),n=Ei(e,t,n,r,a,o),r=Ci(),null===e||wl?(aa&&r&&ta(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$l(e,t,o))}function _l(e,t,n,r,o){if(Lo(n)){var a=!0;Mo(t)}else a=!1;if(Ca(t,o),null===t.stateNode)Wl(e,t),Wa(t,n,r),qa(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,u=n.contextType;"object"===typeof u&&null!==u?u=Oa(u):u=Ro(t,u=Lo(n)?jo:Po.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof i.getSnapshotBeforeUpdate;f||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(l!==r||s!==u)&&$a(t,i,r,u),ja=!1;var d=t.memoizedState;i.state=d,Fa(t,r,i,o),s=t.memoizedState,l!==r||d!==s||To.current||ja?("function"===typeof c&&(Ua(t,n,c,r),s=t.memoizedState),(l=ja||Ha(t,n,l,r,d,s,u))?(f||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=l):("function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,La(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ya(t.type,l),i.props=u,f=t.pendingProps,d=i.context,"object"===typeof(s=n.contextType)&&null!==s?s=Oa(s):s=Ro(t,s=Lo(n)?jo:Po.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(l!==f||d!==s)&&$a(t,i,r,s),ja=!1,d=t.memoizedState,i.state=d,Fa(t,r,i,o);var h=t.memoizedState;l!==f||d!==h||To.current||ja?("function"===typeof p&&(Ua(t,n,p,r),h=t.memoizedState),(u=ja||Ha(t,n,u,r,d,h,s)||!1)?(c||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=u):("function"!==typeof i.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Pl(e,t,n,r,a,o)}function Pl(e,t,n,r,o,a){Ol(e,t);var i=0!==(128&t.flags);if(!r&&!i)return o&&Fo(t,n,!1),$l(e,t,a);r=t.stateNode,bl.current=t;var l=i&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Xa(t,e.child,null,a),t.child=Xa(t,null,l,a)):xl(e,t,l,a),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function Tl(e){var t=e.stateNode;t.pendingContext?zo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&zo(0,t.context,!1),oi(e,t.containerInfo)}function jl(e,t,n,r,o){return ha(),va(o),t.flags|=256,xl(e,t,n,r),t.child}var Rl,Ll,Al,zl,Il={dehydrated:null,treeContext:null,retryLane:0};function Ml(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fl(e,t,n){var r,o=t.pendingProps,i=si.current,l=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),No(si,1&i),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},0===(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Mu(s,o,0,null),e=Iu(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ml(n),t.memoizedState=Il,e):Dl(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,l){if(n)return 256&t.flags?(t.flags&=-257,Bl(e,t,l,r=fl(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Mu({mode:"visible",children:r.children},o,0,null),(i=Iu(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!==(1&t.mode)&&Xa(t,e.child,null,l),t.child.memoizedState=Ml(l),t.memoizedState=Il,i);if(0===(1&t.mode))return Bl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Bl(e,t,l,r=fl(i=Error(a(419)),r,void 0))}if(s=0!==(l&e.childLanes),wl||s){if(null!==(r=Ts)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|l))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Ta(e,o),ru(r,e,o,-1))}return mu(),Bl(e,t,l,r=fl(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=_u.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=uo(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Qo[Yo++]=Xo,Qo[Yo++]=Jo,Qo[Yo++]=Go,Xo=e.id,Jo=e.overflow,Go=t),t=Dl(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,i,n);if(l){l=o.fallback,s=t.mode,r=(i=e.child).sibling;var u={mode:"hidden",children:o.children};return 0===(1&s)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null):(o=Au(i,u)).subtreeFlags=14680064&i.subtreeFlags,null!==r?l=Au(r,l):(l=Iu(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?Ml(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Il,o}return e=(l=e.child).sibling,o=Au(l,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Dl(e,t){return(t=Mu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bl(e,t,n,r){return null!==r&&va(r),Xa(t,e.child,null,n),(e=Dl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ul(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ea(e.return,t,n)}function Vl(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Hl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(xl(e,t,r.children,n),0!==(2&(r=si.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ul(e,n,t);else if(19===e.tag)Ul(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(No(si,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ui(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vl(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ui(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vl(t,!0,n,null,a);break;case"together":Vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $l(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ms|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Au(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Au(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ql(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ql(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kl(t),null;case 1:case 17:return Lo(t.type)&&Ao(),Kl(t),null;case 3:return r=t.stateNode,ai(),Oo(To),Oo(Po),fi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(da(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ia&&(lu(ia),ia=null))),Ll(e,t),Kl(t),null;case 5:li(t);var o=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Al(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Kl(t),null}if(e=ri(ei.current),da(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[po]=t,r[ho]=i,e=0!==(1&t.mode),n){case"dialog":Dr("cancel",r),Dr("close",r);break;case"iframe":case"object":case"embed":Dr("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[po]=t,e[ho]=r,Rl(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":Dr("cancel",e),Dr("close",e),o=r;break;case"iframe":case"object":case"embed":Dr("load",e),o=r;break;case"video":case"audio":for(o=0;oHs&&(t.flags|=128,r=!0,ql(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ui(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ql(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!aa)return Kl(t),null}else 2*Xe()-i.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=128,r=!0,ql(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=i.last)?n.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xe(),t.sibling=null,n=si.current,No(si,r?1&n|2:1&n),t):(Kl(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ls)&&(Kl(t),6&t.subtreeFlags&&(t.flags|=8192)):Kl(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Yl(e,t){switch(na(t),t.tag){case 1:return Lo(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),Oo(To),Oo(Po),fi(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return li(t),null;case 13:if(Oo(si),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(si),null;case 4:return ai(),null;case 10:return Sa(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Rl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ll=function(){},Al=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ri(ei.current);var a,i=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),i=[];break;case"select":o=M({},o,{value:void 0}),r=M({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Zr)}for(c in ge(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(i=i||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(i=i||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Dr("scroll",e),i||s===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},zl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gl=!1,Xl=!1,Jl="function"===typeof WeakSet?WeakSet:Set,Zl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Cu(e,t,r)}else n.current=null}function ts(e,t,n){try{n()}catch(r){Cu(e,t,r)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&ts(t,n,a)}o=o.next}while(o!==r)}}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function as(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[mo],delete t[yo],delete t[go])),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 ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var fs=null,ds=!1;function ps(e,t,n){for(n=n.child;null!==n;)hs(e,t,n),n=n.sibling}function hs(e,t,n){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(l){}switch(n.tag){case 5:Xl||es(n,t);case 6:var r=fs,o=ds;fs=null,ps(e,t,n),ds=o,null!==(fs=r)&&(ds?(e=fs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):fs.removeChild(n.stateNode));break;case 18:null!==fs&&(ds?(e=fs,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Vt(e)):so(fs,n.stateNode));break;case 4:r=fs,o=ds,fs=n.stateNode.containerInfo,ds=!0,ps(e,t,n),fs=r,ds=o;break;case 0:case 11:case 14:case 15:if(!Xl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!==(2&a)||0!==(4&a))&&ts(n,t,i),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Xl&&(es(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Cu(n,t,l)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,ps(e,t,n),Xl=r):ps(e,t,n);break;default:ps(e,t,n)}}function vs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jl),t.forEach((function(t){var r=Pu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var n=t.deletions;if(null!==n)for(var r=0;ro&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cs(r/1960))-r)){e.timeoutHandle=ro(ku.bind(null,e,Us,Ws),r);break}ku(e,Us,Ws);break;default:throw Error(a(329))}}}return ou(e,Xe()),e.callbackNode===n?au.bind(null,e):null}function iu(e,t){var n=Bs;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=yu(e,t))&&(t=Us,Us=n,null!==t&&lu(t)),e}function lu(e){null===Us?Us=e:Us.push.apply(Us,e)}function su(e,t){for(t&=~Ds,t&=~Fs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===Ys)var r=!1;else{if(e=Ys,Ys=null,Gs=0,0!==(6&Ps))throw Error(a(331));var o=Ps;for(Ps|=4,Zl=e.current;null!==Zl;){var i=Zl,l=i.child;if(0!==(16&Zl.flags)){var s=i.deletions;if(null!==s){for(var u=0;uXe()-Vs?pu(e,0):Ds|=n),ou(e,t)}function Nu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=tu();null!==(e=Ta(e,t))&&(yt(e,t,n),ou(e,n))}function _u(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Nu(e,n)}function Pu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Nu(e,n)}function Tu(e,t){return Ke(e,t)}function ju(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ru(e,t,n,r){return new ju(e,t,n,r)}function Lu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Au(e,t){var n=e.alternate;return null===n?((n=Ru(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zu(e,t,n,r,o,i){var l=2;if(r=e,"function"===typeof e)Lu(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case S:return Iu(n.children,o,i,t);case E:l=8,o|=8;break;case C:return(e=Ru(12,n,t,2|o)).elementType=C,e.lanes=i,e;case P:return(e=Ru(13,n,t,o)).elementType=P,e.lanes=i,e;case T:return(e=Ru(19,n,t,o)).elementType=T,e.lanes=i,e;case L:return Mu(n,o,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case N:l=9;break e;case _:l=11;break e;case j:l=14;break e;case R:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ru(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Iu(e,t,n,r){return(e=Ru(7,e,r,t)).lanes=n,e}function Mu(e,t,n,r){return(e=Ru(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Fu(e,t,n){return(e=Ru(6,e,null,t)).lanes=n,e}function Du(e,t,n){return(t=Ru(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Uu(e,t,n,r,o,a,i,l,s){return e=new Bu(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ru(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ra(a),e}function Vu(e){if(!e)return _o;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Lo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Lo(n))return Io(e,n,t)}return t}function Hu(e,t,n,r,o,a,i,l,s){return(e=Uu(n,r,!0,e,0,a,0,l,s)).context=Vu(null),n=e.current,(a=Aa(r=tu(),o=nu(n))).callback=void 0!==t&&null!==t?t:null,za(n,a,o),e.current.lanes=o,yt(e,o,r),ou(e,r),e}function Wu(e,t,n,r){var o=t.current,a=tu(),i=nu(o);return n=Vu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Aa(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=za(o,t,i))&&(ru(e,o,i,a),Ia(e,o,i)),i}function $u(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n>>1,o=e[r];if(!(0>>1;ra(s,n))ua(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(ua(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],f=1,d=null,p=3,h=!1,v=!1,m=!1,y="function"===typeof setTimeout?setTimeout:null,g="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function x(e){if(m=!1,w(e),!v)if(null!==r(u))v=!0,L(k);else{var t=r(c);null!==t&&A(x,t.startTime-e)}}function k(e,n){v=!1,m&&(m=!1,g(O),O=-1),h=!0;var a=p;try{for(w(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!P());){var i=d.callback;if("function"===typeof i){d.callback=null,p=d.priorityLevel;var l=i(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?d.callback=l:d===r(u)&&o(u),w(n)}else o(u);d=r(u)}if(null!==d)var s=!0;else{var f=r(c);null!==f&&A(x,f.startTime-n),s=!1}return s}finally{d=null,p=a,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,E=!1,C=null,O=-1,N=5,_=-1;function P(){return!(t.unstable_now()-_e||125i?(e.sortIndex=a,n(c,e),null===r(u)&&e===r(c)&&(m?(g(O),O=-1):m=!0,A(x,a-i))):(e.sortIndex=l,n(u,e),v||h||(v=!0,L(k))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},296:function(e,t,n){"use strict";e.exports=n(813)},391:function(e){"use strict";var t=function(){};e.exports=t}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var a=Object.create(null);n.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&o&&r;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((function(e){i[e]=function(){return r[e]}}));return i.default=function(){return r},n.d(a,i),a}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e={};function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}function y(e,t){if(null==e)return{};var n,r,o=m(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=n(694),b=n.n(g),w=h.createContext(null);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{},n=t.displayName,r=void 0===n?M(e):n,o=t.Component,a=t.defaultProps,i=h.forwardRef((function(t,n){var r=t.className,i=t.bsPrefix,l=t.as,s=void 0===l?o||"div":l,u=y(t,I),c=p(p({},a),u),f=R(i,e);return(0,P.jsx)(s,p({ref:n,className:b()(r,f)},c))}));return i.displayName=r,i}var D=["bsPrefix","className","as"],B=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.as,a=y(e,D);n=R(n,"navbar-brand");var i=o||(a.href?"a":"span");return(0,P.jsx)(i,p(p({},a),{},{ref:t,className:b()(r,n)}))}));B.displayName="NavbarBrand";var U=B;function V(e){return e&&e.ownerDocument||document}function H(e,t){return function(e){var t=V(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}var W=/([A-Z])/g;var $=/^ms-/;function q(e){return function(e){return e.replace(W,"-$1").toLowerCase()}(e).replace($,"-ms-")}var K=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;var Q=function(e,t){var n="",r="";if("string"===typeof t)return e.style.getPropertyValue(q(t))||H(e).getPropertyValue(q(t));Object.keys(t).forEach((function(o){var a=t[o];a||0===a?!function(e){return!(!e||!K.test(e))}(o)?n+=q(o)+": "+a+";":r+=o+"("+a+") ":e.style.removeProperty(q(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function Y(e,t){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Y(e,t)}var G=n(164),X=!1,J=h.createContext(null),Z="unmounted",ee="exited",te="entering",ne="entered",re="exiting",oe=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=ee,r.appearStatus=te):o=ne:o=t.unmountOnExit||t.mountOnEnter?Z:ee,r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Y(t,n),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Z?{status:ee}:null};var o=r.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==te&&n!==ne&&(t=te):n!==te&&n!==ne||(t=re)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===te){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:G.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ee&&this.setState({status:Z})},o.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[G.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||X?this.safeSetState({status:ne},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:te},(function(){t.props.onEntering(a,i),t.onTransitionEnd(s,(function(){t.safeSetState({status:ne},(function(){t.props.onEntered(a,i)}))}))})))},o.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:G.findDOMNode(this);t&&!X?(this.props.onExit(r),this.safeSetState({status:re},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:ee},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:ee},(function(){e.props.onExited(r)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:G.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===Z)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,m(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return h.createElement(J.Provider,{value:null},"function"===typeof n?n(e,r):h.cloneElement(h.Children.only(n),r))},r}(h.Component);function ae(){}oe.contextType=J,oe.propTypes={},oe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ae,onEntering:ae,onEntered:ae,onExit:ae,onExiting:ae,onExited:ae},oe.UNMOUNTED=Z,oe.EXITED=ee,oe.ENTERING=te,oe.ENTERED=ne,oe.EXITING=re;var ie=oe,le=!("undefined"===typeof window||!window.document||!window.document.createElement),se=!1,ue=!1;try{var ce={get passive(){return se=!0},get once(){return ue=se=!0}};le&&(window.addEventListener("test",ce,ce),window.removeEventListener("test",ce,!0))}catch(bp){}var fe=function(e,t,n,r){if(r&&"boolean"!==typeof r&&!ue){var o=r.once,a=r.capture,i=n;!ue&&o&&(i=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=i),e.addEventListener(t,i,se?r:a)}e.addEventListener(t,n,r)};var de=function(e,t,n,r){var o=r&&"boolean"!==typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)};var pe=function(e,t,n,r){return fe(e,t,n,r),function(){de(e,t,n,r)}};function he(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}(e,"transitionend",!0)}),t+n),a=pe(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),a()}}function ve(e,t,n,r){null==n&&(n=function(e){var t=Q(e,"transitionDuration")||"",n=-1===t.indexOf("ms")?1e3:1;return parseFloat(t)*n}(e)||0);var o=he(e,n,r),a=pe(e,"transitionend",t);return function(){o(),a()}}function me(e,t){var n=Q(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function ye(e,t){var n=me(e,"transitionDuration"),r=me(e,"transitionDelay"),o=ve(e,(function(n){n.target===e&&(o(),t(n))}),n+r)}var ge=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"undefined"===typeof window?void 0:window,n=$e(e,t),r=s((0,h.useState)((function(){return!!n&&n.matches})),2),o=r[0],a=r[1];return He((function(){var n=$e(e,t);if(!n)return a(!1);var r=We.get(t),o=function(){a(n.matches)};return n.refCount++,n.addListener(o),o(),function(){n.removeListener(o),n.refCount--,n.refCount<=0&&(null==r||r.delete(n.media)),n=void 0}}),[e]),o}var Ke=function(e){var t=Object.keys(e);function n(e,t){return e===t?t:e?"".concat(e," and ").concat(t):t}function r(n){var r=function(e){return t[Math.min(t.indexOf(e)+1,t.length-1)]}(n),o=e[r];return o="number"===typeof o?"".concat(o-.2,"px"):"calc(".concat(o," - 0.2px)"),"(max-width: ".concat(o,")")}return function(t,o,a){var i;"object"===typeof t?(i=t,a=o,o=!0):i=f({},t,o=o||!0);var l=(0,h.useMemo)((function(){return Object.entries(i).reduce((function(t,o){var a=s(o,2),i=a[0],l=a[1];return"up"!==l&&!0!==l||(t=n(t,function(t){var n=e[t];return"number"===typeof n&&(n="".concat(n,"px")),"(min-width: ".concat(n,")")}(i))),"down"!==l&&!0!==l||(t=n(t,r(i))),t}),"")}),[JSON.stringify(i)]);return qe(l,a)}}({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),Qe=Ke;function Ye(e){void 0===e&&(e=V());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(bp){return e.body}}function Ge(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}function Xe(){var e=(0,h.useRef)(!0),t=(0,h.useRef)((function(){return e.current}));return(0,h.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),t.current}function Je(e){var t=function(e){var t=(0,h.useRef)(e);return t.current=e,t}(e);(0,h.useEffect)((function(){return function(){return t.current()}}),[])}function Ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function et(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.ownerDocument,r=t.handleContainerOverflow,o=void 0===r||r,a=t.isRTL,i=void 0!==a&&a;Ze(this,e),this.handleContainerOverflow=o,this.isRTL=i,this.modals=[],this.ownerDocument=n}return tt(e,[{key:"getScrollbarWidth",value:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}},{key:"getElement",value:function(){return(this.ownerDocument||document).body}},{key:"setModalAttributes",value:function(e){}},{key:"removeModalAttributes",value:function(e){}},{key:"setContainerStyle",value:function(e){var t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style=f({overflow:r.style.overflow},n,r.style[n]),e.scrollBarWidth&&(t[n]="".concat(parseInt(Q(r,n)||"0",10)+e.scrollBarWidth,"px")),r.setAttribute(rt,""),Q(r,t)}},{key:"reset",value:function(){var e=this;a(this.modals).forEach((function(t){return e.remove(t)}))}},{key:"removeContainerStyle",value:function(e){var t=this.getElement();t.removeAttribute(rt),Object.assign(t.style,e.style)}},{key:"add",value:function(e){var t=this.modals.indexOf(e);return-1!==t?t:(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),t)}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}},{key:"isTopModal",value:function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}]),e}(),at=ot,it=(0,h.createContext)(le?window:void 0);it.Provider;function lt(){return(0,h.useContext)(it)}var st=function(e,t){return le?null==e?(t||V()).body:("function"===typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null};function ut(e,t){var n=lt(),r=s((0,h.useState)((function(){return st(e,null==n?void 0:n.document)})),2),o=r[0],a=r[1];if(!o){var i=st(e);i&&a(i)}return(0,h.useEffect)((function(){t&&o&&t(o)}),[t,o]),(0,h.useEffect)((function(){var t=st(e);t!==o&&a(t)}),[e,o]),o}var ct=function(e){var t=e.children,n=e.in,r=e.onExited,o=e.mountOnEnter,a=e.unmountOnExit,i=(0,h.useRef)(null),l=(0,h.useRef)(n),s=Fe(r);(0,h.useEffect)((function(){n?l.current=!0:s(i.current)}),[n,s]);var u=xe(i,t.ref),c=(0,h.cloneElement)(t,{ref:u});return n?c:a||!l.current&&o?null:c};function ft(e){var t=e.children,n=e.in,r=e.onExited,o=e.onEntered,a=e.transition,i=s((0,h.useState)(!n),2),l=i[0],u=i[1];n&&l&&u(!1);var c=function(e){var t=e.in,n=e.onTransition,r=(0,h.useRef)(null),o=(0,h.useRef)(!0),a=Fe(n);return He((function(){if(r.current){var e=!1;return a({in:t,element:r.current,initial:o.current,isStale:function(){return e}}),function(){e=!0}}}),[t,a]),He((function(){return o.current=!1,function(){o.current=!0}}),[]),r}({in:!!n,onTransition:function(e){Promise.resolve(a(e)).then((function(){e.isStale()||(e.in?null==o||o(e.element,e.initial):(u(!0),null==r||r(e.element)))}),(function(t){throw e.in||u(!0),t}))}}),f=xe(c,t.ref);return l&&!n?null:(0,h.cloneElement)(t,{ref:f})}function dt(e,t,n){return e?(0,P.jsx)(e,Object.assign({},n)):t?(0,P.jsx)(ft,Object.assign({},n,{transition:t})):(0,P.jsx)(ct,Object.assign({},n))}function pt(e){return"Escape"===e.code||27===e.keyCode}var ht,vt=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function mt(e){var t=lt(),n=e||function(e){return ht||(ht=new at({ownerDocument:null==e?void 0:e.document})),ht}(t),r=(0,h.useRef)({dialog:null,backdrop:null});return Object.assign(r.current,{add:function(){return n.add(r.current)},remove:function(){return n.remove(r.current)},isTopModal:function(){return n.isTopModal(r.current)},setDialogRef:(0,h.useCallback)((function(e){r.current.dialog=e}),[]),setBackdropRef:(0,h.useCallback)((function(e){r.current.backdrop=e}),[])})}var yt=(0,h.forwardRef)((function(e,t){var n=e.show,r=void 0!==n&&n,o=e.role,a=void 0===o?"dialog":o,i=e.className,l=e.style,u=e.children,c=e.backdrop,f=void 0===c||c,d=e.keyboard,p=void 0===d||d,v=e.onBackdropClick,m=e.onEscapeKeyDown,y=e.transition,g=e.runTransition,b=e.backdropTransition,w=e.runBackdropTransition,x=e.autoFocus,k=void 0===x||x,S=e.enforceFocus,E=void 0===S||S,C=e.restoreFocus,O=void 0===C||C,N=e.restoreFocusOptions,_=e.renderDialog,T=e.renderBackdrop,j=void 0===T?function(e){return(0,P.jsx)("div",Object.assign({},e))}:T,R=e.manager,L=e.container,A=e.onShow,z=e.onHide,I=void 0===z?function(){}:z,M=e.onExit,F=e.onExited,D=e.onExiting,B=e.onEnter,U=e.onEntering,V=e.onEntered,H=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,vt),W=lt(),$=ut(L),q=mt(R),K=Xe(),Q=function(e){var t=(0,h.useRef)(null);return(0,h.useEffect)((function(){t.current=e})),t.current}(r),Y=s((0,h.useState)(!r),2),X=Y[0],J=Y[1],Z=(0,h.useRef)(null);(0,h.useImperativeHandle)(t,(function(){return q}),[q]),le&&!Q&&r&&(Z.current=Ye(null==W?void 0:W.document)),r&&X&&J(!1);var ee=Fe((function(){if(q.add(),ie.current=pe(document,"keydown",oe),ae.current=pe(document,"focus",(function(){return setTimeout(ne)}),!0),A&&A(),k){var e,t,n=Ye(null!=(e=null==(t=q.dialog)?void 0:t.ownerDocument)?e:null==W?void 0:W.document);q.dialog&&n&&!Ge(q.dialog,n)&&(Z.current=n,q.dialog.focus())}})),te=Fe((function(){var e;(q.remove(),null==ie.current||ie.current(),null==ae.current||ae.current(),O)&&(null==(e=Z.current)||null==e.focus||e.focus(N),Z.current=null)}));(0,h.useEffect)((function(){r&&$&&ee()}),[r,$,ee]),(0,h.useEffect)((function(){X&&te()}),[X,te]),Je((function(){te()}));var ne=Fe((function(){if(E&&K()&&q.isTopModal()){var e=Ye(null==W?void 0:W.document);q.dialog&&e&&!Ge(q.dialog,e)&&q.dialog.focus()}})),re=Fe((function(e){e.target===e.currentTarget&&(null==v||v(e),!0===f&&I())})),oe=Fe((function(e){p&&pt(e)&&q.isTopModal()&&(null==m||m(e),e.defaultPrevented||I())})),ae=(0,h.useRef)(),ie=(0,h.useRef)();if(!$)return null;var se=Object.assign({role:a,ref:q.setDialogRef,"aria-modal":"dialog"===a||void 0},H,{style:l,className:i,tabIndex:-1}),ue=_?_(se):(0,P.jsx)("div",Object.assign({},se,{children:h.cloneElement(u,{role:"document"})}));ue=dt(y,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:M,onExiting:D,onExited:function(){J(!0),null==F||F.apply(void 0,arguments)},onEnter:B,onEntering:U,onEntered:V,children:ue});var ce=null;return f&&(ce=j({ref:q.setBackdropRef,onClick:re}),ce=dt(b,w,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ce})),(0,P.jsx)(P.Fragment,{children:G.createPortal((0,P.jsxs)(P.Fragment,{children:[ce,ue]}),$)})}));yt.displayName="Modal";var gt,bt=Object.assign(yt,{Manager:at}),wt=["className","children","transitionClasses","onEnter"],xt=(f(gt={},te,"show"),f(gt,ne,"show"),gt),kt=h.forwardRef((function(e,t){var n=e.className,r=e.children,o=e.transitionClasses,a=void 0===o?{}:o,i=e.onEnter,l=p({in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},y(e,wt)),s=(0,h.useCallback)((function(e,t){be(e),null==i||i(e,t)}),[i]);return(0,P.jsx)(Oe,p(p({ref:t,addEndListener:ye},l),{},{onEnter:s,childRef:r.ref,children:function(e,t){return h.cloneElement(r,p(p({},t),{},{className:b()("fade",n,r.props.className,xt[e],a[e])}))}}))}));kt.displayName="Fade";var St,Et=kt,Ct=F("offcanvas-body"),Ot=["bsPrefix","className","children","in","mountOnEnter","unmountOnExit","appear"],Nt=(f(St={},te,"show"),f(St,ne,"show"),St),_t=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.children,a=e.in,i=void 0!==a&&a,l=e.mountOnEnter,s=void 0!==l&&l,u=e.unmountOnExit,c=void 0!==u&&u,f=e.appear,d=void 0!==f&&f,v=y(e,Ot);return n=R(n,"offcanvas"),(0,P.jsx)(Oe,p(p({ref:t,addEndListener:ye,in:i,mountOnEnter:s,unmountOnExit:c,appear:d},v),{},{childRef:o.ref,children:function(e,t){return h.cloneElement(o,p(p({},t),{},{className:b()(r,o.props.className,(e===te||e===re)&&"".concat(n,"-toggling"),Nt[e])}))}}))}));_t.displayName="OffcanvasToggling";var Pt=_t,Tt=h.createContext({onHide:function(){}}),jt=n(7),Rt=n.n(jt),Lt=["className","variant","aria-label"],At={"aria-label":Rt().string,onClick:Rt().func,variant:Rt().oneOf(["white"])},zt=h.forwardRef((function(e,t){var n=e.className,r=e.variant,o=e["aria-label"],a=void 0===o?"Close":o,i=y(e,Lt);return(0,P.jsx)("button",p({ref:t,type:"button",className:b()("btn-close",r&&"btn-close-".concat(r),n),"aria-label":a},i))}));zt.displayName="CloseButton",zt.propTypes=At;var It=zt,Mt=["closeLabel","closeVariant","closeButton","onHide","children"],Ft=h.forwardRef((function(e,t){var n=e.closeLabel,r=void 0===n?"Close":n,o=e.closeVariant,a=e.closeButton,i=void 0!==a&&a,l=e.onHide,s=e.children,u=y(e,Mt),c=(0,h.useContext)(Tt),f=Fe((function(){null==c||c.onHide(),null==l||l()}));return(0,P.jsxs)("div",p(p({ref:t},u),{},{children:[s,i&&(0,P.jsx)(It,{"aria-label":r,variant:o,onClick:f})]}))})),Dt=Ft,Bt=["bsPrefix","className","closeLabel","closeButton"],Ut=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.closeLabel,a=void 0===o?"Close":o,i=e.closeButton,l=void 0!==i&&i,s=y(e,Bt);return n=R(n,"offcanvas-header"),(0,P.jsx)(Dt,p(p({ref:t},s),{},{className:b()(r,n),closeLabel:a,closeButton:l}))}));Ut.displayName="OffcanvasHeader";var Vt=Ut,Ht=function(e){return h.forwardRef((function(t,n){return(0,P.jsx)("div",p(p({},t),{},{ref:n,className:b()(t.className,e)}))}))},Wt=F("offcanvas-title",{Component:Ht("h5")});function $t(e){return $t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$t(e)}function qt(){return qt="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$t(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},qt.apply(this,arguments)}function Kt(e,t){if("function"!==typeof t&&null!==t)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&&Y(e,t)}function Qt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(bp){return!1}}function Yt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gt(e){var t=Qt();return function(){var n,r=$t(e);if(t){var o=$t(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Yt(e)}(this,n)}}function Xt(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}var Jt=Function.prototype.bind.call(Function.prototype.call,[].slice);function Zt(e,t){return Jt(e.querySelectorAll(t))}function en(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var tn,nn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",rn=".sticky-top",on=".navbar-toggler",an=function(e){Kt(n,e);var t=Gt(n);function n(){return Ze(this,n),t.apply(this,arguments)}return tt(n,[{key:"adjustAndStore",value:function(e,t,n){var r=t.style[e];t.dataset[e]=r,Q(t,f({},e,"".concat(parseFloat(Q(t,e))+n,"px")))}},{key:"restore",value:function(e,t){var n=t.dataset[e];void 0!==n&&(delete t.dataset[e],Q(t,f({},e,n)))}},{key:"setContainerStyle",value:function(e){var t=this;qt($t(n.prototype),"setContainerStyle",this).call(this,e);var r,o,a=this.getElement();if(o="modal-open",(r=a).classList?r.classList.add(o):Xt(r,o)||("string"===typeof r.className?r.className=r.className+" "+o:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+o)),e.scrollBarWidth){var i=this.isRTL?"paddingLeft":"paddingRight",l=this.isRTL?"marginLeft":"marginRight";Zt(a,nn).forEach((function(n){return t.adjustAndStore(i,n,e.scrollBarWidth)})),Zt(a,rn).forEach((function(n){return t.adjustAndStore(l,n,-e.scrollBarWidth)})),Zt(a,on).forEach((function(n){return t.adjustAndStore(l,n,e.scrollBarWidth)}))}}},{key:"removeContainerStyle",value:function(e){var t=this;qt($t(n.prototype),"removeContainerStyle",this).call(this,e);var r,o,a=this.getElement();o="modal-open",(r=a).classList?r.classList.remove(o):"string"===typeof r.className?r.className=en(r.className,o):r.setAttribute("class",en(r.className&&r.className.baseVal||"",o));var i=this.isRTL?"paddingLeft":"paddingRight",l=this.isRTL?"marginLeft":"marginRight";Zt(a,nn).forEach((function(e){return t.restore(i,e)})),Zt(a,rn).forEach((function(e){return t.restore(l,e)})),Zt(a,on).forEach((function(e){return t.restore(l,e)}))}}]),n}(at);var ln=an,sn=["bsPrefix","className","children","aria-labelledby","placement","responsive","show","backdrop","keyboard","scroll","onEscapeKeyDown","onShow","onHide","container","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","onEntered","onExit","onExiting","onEnter","onEntering","onExited","backdropClassName","manager","renderStaticNode"];function un(e){return(0,P.jsx)(Pt,p({},e))}function cn(e){return(0,P.jsx)(Et,p({},e))}var fn=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.children,a=e["aria-labelledby"],i=e.placement,l=void 0===i?"start":i,u=e.responsive,c=e.show,f=void 0!==c&&c,d=e.backdrop,v=void 0===d||d,m=e.keyboard,g=void 0===m||m,w=e.scroll,x=void 0!==w&&w,k=e.onEscapeKeyDown,S=e.onShow,E=e.onHide,C=e.container,O=e.autoFocus,N=void 0===O||O,_=e.enforceFocus,T=void 0===_||_,j=e.restoreFocus,L=void 0===j||j,A=e.restoreFocusOptions,z=e.onEntered,I=e.onExit,M=e.onExiting,F=e.onEnter,D=e.onEntering,B=e.onExited,U=e.backdropClassName,V=e.manager,H=e.renderStaticNode,W=void 0!==H&&H,$=y(e,sn),q=(0,h.useRef)();n=R(n,"offcanvas");var K=((0,h.useContext)(Le)||{}).onToggle,Q=s((0,h.useState)(!1),2),Y=Q[0],G=Q[1],X=Qe(u||"xs","up");(0,h.useEffect)((function(){G(u?f&&!X:f)}),[f,u,X]);var J=Fe((function(){null==K||K(),null==E||E()})),Z=(0,h.useMemo)((function(){return{onHide:J}}),[J]);var ee=(0,h.useCallback)((function(e){return(0,P.jsx)("div",p(p({},e),{},{className:b()("".concat(n,"-backdrop"),U)}))}),[U,n]),te=function(e){return(0,P.jsx)("div",p(p(p({},e),$),{},{className:b()(r,u?"".concat(n,"-").concat(u):n,"".concat(n,"-").concat(l)),"aria-labelledby":a,children:o}))};return(0,P.jsxs)(P.Fragment,{children:[!Y&&(u||W)&&te({}),(0,P.jsx)(Tt.Provider,{value:Z,children:(0,P.jsx)(bt,{show:Y,ref:t,backdrop:v,container:C,keyboard:g,autoFocus:N,enforceFocus:T&&!x,restoreFocus:L,restoreFocusOptions:A,onEscapeKeyDown:k,onShow:S,onHide:J,onEnter:function(e){e&&(e.style.visibility="visible");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:0;e()&&(n(),o<=Nn?t.current=setTimeout(r,o):_n(t,r,Date.now()+o))},clear:n}}),[])}var Tn=(f(Cn={},te,"showing"),f(Cn,re,"showing show"),Cn),jn=h.forwardRef((function(e,t){return(0,P.jsx)(Et,p(p({},e),{},{ref:t,transitionClasses:Tn}))}));jn.displayName="ToastFade";var Rn=jn,Ln=h.createContext({onClose:function(){}}),An=["bsPrefix","closeLabel","closeVariant","closeButton","className","children"],zn=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.closeLabel,o=void 0===r?"Close":r,a=e.closeVariant,i=e.closeButton,l=void 0===i||i,s=e.className,u=e.children,c=y(e,An);n=R(n,"toast-header");var f=(0,h.useContext)(Ln),d=Fe((function(e){null==f||null==f.onClose||f.onClose(e)}));return(0,P.jsxs)("div",p(p({ref:t},c),{},{className:b()(n,s),children:[u,l&&(0,P.jsx)(It,{"aria-label":o,variant:a,onClick:d,"data-dismiss":"toast"})]}))}));zn.displayName="ToastHeader";var In=zn,Mn=F("toast-body"),Fn=["bsPrefix","className","transition","show","animation","delay","autohide","onClose","bg"],Dn=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.transition,a=void 0===o?Rn:o,i=e.show,l=void 0===i||i,s=e.animation,u=void 0===s||s,c=e.delay,f=void 0===c?5e3:c,d=e.autohide,v=void 0!==d&&d,m=e.onClose,g=e.bg,w=y(e,Fn);n=R(n,"toast");var x=(0,h.useRef)(f),k=(0,h.useRef)(m);(0,h.useEffect)((function(){x.current=f,k.current=m}),[f,m]);var S=Pn(),E=!(!v||!l),C=(0,h.useCallback)((function(){E&&(null==k.current||k.current())}),[E]);(0,h.useEffect)((function(){S.set(C,x.current)}),[S,C]);var O=(0,h.useMemo)((function(){return{onClose:m}}),[m]),N=!(!a||!u),_=(0,P.jsx)("div",p(p({},w),{},{ref:t,className:b()(n,r,g&&"bg-".concat(g),!N&&(l?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"}));return(0,P.jsx)(Ln.Provider,{value:O,children:N&&a?(0,P.jsx)(a,{in:l,unmountOnExit:!0,children:_}):_})}));Dn.displayName="Toast";var Bn=Object.assign(Dn,{Body:Mn,Header:In}),Un=["as","className","type","tooltip"],Vn={type:Rt().string,tooltip:Rt().bool,as:Rt().elementType},Hn=h.forwardRef((function(e,t){var n=e.as,r=void 0===n?"div":n,o=e.className,a=e.type,i=void 0===a?"valid":a,l=e.tooltip,s=void 0!==l&&l,u=y(e,Un);return(0,P.jsx)(r,p(p({},u),{},{ref:t,className:b()(o,"".concat(i,"-").concat(s?"tooltip":"feedback"))}))}));Hn.displayName="Feedback",Hn.propTypes=Vn;var Wn=Hn,$n=h.createContext({}),qn=["id","bsPrefix","className","type","isValid","isInvalid","as"],Kn=h.forwardRef((function(e,t){var n=e.id,r=e.bsPrefix,o=e.className,a=e.type,i=void 0===a?"checkbox":a,l=e.isValid,s=void 0!==l&&l,u=e.isInvalid,c=void 0!==u&&u,f=e.as,d=void 0===f?"input":f,v=y(e,qn),m=(0,h.useContext)($n).controlId;return r=R(r,"form-check-input"),(0,P.jsx)(d,p(p({},v),{},{ref:t,type:i,id:n||m,className:b()(o,r,s&&"is-valid",c&&"is-invalid")}))}));Kn.displayName="FormCheckInput";var Qn=Kn,Yn=["bsPrefix","className","htmlFor"],Gn=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.htmlFor,a=y(e,Yn),i=(0,h.useContext)($n).controlId;return n=R(n,"form-check-label"),(0,P.jsx)("label",p(p({},a),{},{ref:t,htmlFor:o||i,className:b()(r,n)}))}));Gn.displayName="FormCheckLabel";var Xn=Gn;var Jn=["id","bsPrefix","bsSwitchPrefix","inline","reverse","disabled","isValid","isInvalid","feedbackTooltip","feedback","feedbackType","className","style","title","type","label","children","as"],Zn=h.forwardRef((function(e,t){var n=e.id,r=e.bsPrefix,o=e.bsSwitchPrefix,a=e.inline,i=void 0!==a&&a,l=e.reverse,s=void 0!==l&&l,u=e.disabled,c=void 0!==u&&u,f=e.isValid,d=void 0!==f&&f,v=e.isInvalid,m=void 0!==v&&v,g=e.feedbackTooltip,w=void 0!==g&&g,x=e.feedback,k=e.feedbackType,S=e.className,E=e.style,C=e.title,O=void 0===C?"":C,N=e.type,_=void 0===N?"checkbox":N,T=e.label,j=e.children,L=e.as,A=void 0===L?"input":L,z=y(e,Jn);r=R(r,"form-check"),o=R(o,"form-switch");var I=(0,h.useContext)($n).controlId,M=(0,h.useMemo)((function(){return{controlId:n||I}}),[I,n]),F=!j&&null!=T&&!1!==T||function(e,t){return h.Children.toArray(e).some((function(e){return h.isValidElement(e)&&e.type===t}))}(j,Xn),D=(0,P.jsx)(Qn,p(p({},z),{},{type:"switch"===_?"checkbox":_,ref:t,isValid:d,isInvalid:m,disabled:c,as:A}));return(0,P.jsx)($n.Provider,{value:M,children:(0,P.jsx)("div",{style:E,className:b()(S,F&&r,i&&"".concat(r,"-inline"),s&&"".concat(r,"-reverse"),"switch"===_&&o),children:j||(0,P.jsxs)(P.Fragment,{children:[D,F&&(0,P.jsx)(Xn,{title:O,children:T}),x&&(0,P.jsx)(Wn,{type:k,tooltip:w,children:x})]})})})}));Zn.displayName="FormCheck";var er=Object.assign(Zn,{Input:Qn,Label:Xn}),tr=n(391),nr=n.n(tr),rr=["bsPrefix","type","size","htmlSize","id","className","isValid","isInvalid","plaintext","readOnly","as"],or=h.forwardRef((function(e,t){var n,r,o=e.bsPrefix,a=e.type,i=e.size,l=e.htmlSize,s=e.id,u=e.className,c=e.isValid,d=void 0!==c&&c,v=e.isInvalid,m=void 0!==v&&v,g=e.plaintext,w=e.readOnly,x=e.as,k=void 0===x?"input":x,S=y(e,rr),E=(0,h.useContext)($n).controlId;(o=R(o,"form-control"),g)?n=f({},"".concat(o,"-plaintext"),!0):(f(r={},o,!0),f(r,"".concat(o,"-").concat(i),i),n=r);return(0,P.jsx)(k,p(p({},S),{},{type:a,size:l,ref:t,readOnly:w,id:s||E,className:b()(u,n,d&&"is-valid",m&&"is-invalid","color"===a&&"".concat(o,"-color"))}))}));or.displayName="FormControl";var ar=Object.assign(or,{Feedback:Wn}),ir=F("form-floating"),lr=["controlId","as"],sr=h.forwardRef((function(e,t){var n=e.controlId,r=e.as,o=void 0===r?"div":r,a=y(e,lr),i=(0,h.useMemo)((function(){return{controlId:n}}),[n]);return(0,P.jsx)($n.Provider,{value:i,children:(0,P.jsx)(o,p(p({},a),{},{ref:t}))})}));sr.displayName="FormGroup";var ur=sr,cr=["as","bsPrefix","className"],fr=["className"];var dr=h.forwardRef((function(e,t){var n=function(e){var t=e.as,n=e.bsPrefix,r=e.className,o=y(e,cr);n=R(n,"col");var a=L(),i=A(),l=[],s=[];return a.forEach((function(e){var t,r,a,u=o[e];delete o[e],"object"===typeof u&&null!=u?(t=u.span,r=u.offset,a=u.order):t=u;var c=e!==i?"-".concat(e):"";t&&l.push(!0===t?"".concat(n).concat(c):"".concat(n).concat(c,"-").concat(t)),null!=a&&s.push("order".concat(c,"-").concat(a)),null!=r&&s.push("offset".concat(c,"-").concat(r))})),[p(p({},o),{},{className:b().apply(void 0,[r].concat(l,s))}),{as:t,bsPrefix:n,spans:l}]}(e),r=s(n,2),o=r[0],a=o.className,i=y(o,fr),l=r[1],u=l.as,c=void 0===u?"div":u,f=l.bsPrefix,d=l.spans;return(0,P.jsx)(c,p(p({},i),{},{ref:t,className:b()(a,!d.length&&f)}))}));dr.displayName="Col";var pr=dr,hr=["as","bsPrefix","column","visuallyHidden","className","htmlFor"],vr=h.forwardRef((function(e,t){var n=e.as,r=void 0===n?"label":n,o=e.bsPrefix,a=e.column,i=void 0!==a&&a,l=e.visuallyHidden,s=void 0!==l&&l,u=e.className,c=e.htmlFor,f=y(e,hr),d=(0,h.useContext)($n).controlId;o=R(o,"form-label");var v="col-form-label";"string"===typeof i&&(v="".concat(v," ").concat(v,"-").concat(i));var m=b()(u,o,s&&"visually-hidden",i&&v);return c=c||d,i?(0,P.jsx)(pr,p({ref:t,as:"label",className:m,htmlFor:c},f)):(0,P.jsx)(r,p({ref:t,className:m,htmlFor:c},f))}));vr.displayName="FormLabel";var mr=vr,yr=["bsPrefix","className","id"],gr=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.id,a=y(e,yr),i=(0,h.useContext)($n).controlId;return n=R(n,"form-range"),(0,P.jsx)("input",p(p({},a),{},{type:"range",ref:t,className:b()(r,n),id:o||i}))}));gr.displayName="FormRange";var br=gr,wr=["bsPrefix","size","htmlSize","className","isValid","isInvalid","id"],xr=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.size,o=e.htmlSize,a=e.className,i=e.isValid,l=void 0!==i&&i,s=e.isInvalid,u=void 0!==s&&s,c=e.id,f=y(e,wr),d=(0,h.useContext)($n).controlId;return n=R(n,"form-select"),(0,P.jsx)("select",p(p({},f),{},{size:o,ref:t,className:b()(a,n,r&&"".concat(n,"-").concat(r),l&&"is-valid",u&&"is-invalid"),id:c||d}))}));xr.displayName="FormSelect";var kr=xr,Sr=["bsPrefix","className","as","muted"],Er=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.as,a=void 0===o?"small":o,i=e.muted,l=y(e,Sr);return n=R(n,"form-text"),(0,P.jsx)(a,p(p({},l),{},{ref:t,className:b()(r,n,i&&"text-muted")}))}));Er.displayName="FormText";var Cr=Er,Or=h.forwardRef((function(e,t){return(0,P.jsx)(er,p(p({},e),{},{ref:t,type:"switch"}))}));Or.displayName="Switch";var Nr=Object.assign(Or,{Input:er.Input,Label:er.Label}),_r=["bsPrefix","className","children","controlId","label"],Pr=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.children,a=e.controlId,i=e.label,l=y(e,_r);return n=R(n,"form-floating"),(0,P.jsxs)(ur,p(p({ref:t,className:b()(r,n),controlId:a},l),{},{children:[o,(0,P.jsx)("label",{htmlFor:a,children:i})]}))}));Pr.displayName="FloatingLabel";var Tr=Pr,jr=["className","validated","as"],Rr={_ref:Rt().any,validated:Rt().bool,as:Rt().elementType},Lr=h.forwardRef((function(e,t){var n=e.className,r=e.validated,o=e.as,a=void 0===o?"form":o,i=y(e,jr);return(0,P.jsx)(a,p(p({},i),{},{ref:t,className:b()(n,r&&"was-validated")}))}));Lr.displayName="Form",Lr.propTypes=Rr;var Ar=Object.assign(Lr,{Group:ur,Control:ar,Floating:ir,Check:er,Switch:Nr,Label:mr,Text:Cr,Range:br,Select:kr,FloatingLabel:Tr});function zr(e,t,n){return zr=Qt()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Y(o,n.prototype),o},zr.apply(null,arguments)}function Ir(e){var t="function"===typeof Map?new Map:void 0;return Ir=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return zr(e,arguments,$t(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Y(r,e)},Ir(e)}var Mr=Object.create(null);Mr.open="0",Mr.close="1",Mr.ping="2",Mr.pong="3",Mr.message="4",Mr.upgrade="5",Mr.noop="6";var Fr=Object.create(null);Object.keys(Mr).forEach((function(e){Fr[Mr[e]]=e}));var Dr,Br={type:"error",data:"parser error"},Ur="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),Vr="function"===typeof ArrayBuffer,Hr=function(e){return"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},Wr=function(e,t,n){var r=e.type,o=e.data;return Ur&&o instanceof Blob?t?n(o):$r(o,n):Vr&&(o instanceof ArrayBuffer||Hr(o))?t?n(o):$r(new Blob([o]),n):n(Mr[r]+(o||""))},$r=function(e,t){var n=new FileReader;return n.onload=function(){var e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function qr(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}for(var Kr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qr="undefined"===typeof Uint8Array?[]:new Uint8Array(256),Yr=0;Yr<64;Yr++)Qr[Kr.charCodeAt(Yr)]=Yr;var Gr,Xr="function"===typeof ArrayBuffer,Jr=function(e,t){if("string"!==typeof e)return{type:"message",data:eo(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:Zr(e.substring(1),t)}:Fr[n]?e.length>1?{type:Fr[n],data:e.substring(1)}:{type:Fr[n]}:Br},Zr=function(e,t){if(Xr){var n=function(e){var t,n,r,o,a,i=.75*e.length,l=e.length,s=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);var u=new ArrayBuffer(i),c=new Uint8Array(u);for(t=0;t>4,c[s++]=(15&r)<<4|o>>2,c[s++]=(3&o)<<6|63&a;return u}(e);return eo(n,t)}return{base64:!0,data:e}},eo=function(e,t){return"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer},to=String.fromCharCode(30);function no(){return new TransformStream({transform:function(e,t){!function(e,t){Ur&&e.data instanceof Blob?e.data.arrayBuffer().then(qr).then(t):Vr&&(e.data instanceof ArrayBuffer||Hr(e.data))?t(qr(e.data)):Wr(e,!1,(function(e){Dr||(Dr=new TextEncoder),t(Dr.encode(e))}))}(e,(function(n){var r,o=n.length;if(o<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,o);else if(o<65536){r=new Uint8Array(3);var a=new DataView(r.buffer);a.setUint8(0,126),a.setUint16(1,o)}else{r=new Uint8Array(9);var i=new DataView(r.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(o))}e.data&&"string"!==typeof e.data&&(r[0]|=128),t.enqueue(r),t.enqueue(n)}))}})}function ro(e){return e.reduce((function(e,t){return e+t.length}),0)}function oo(e,t){if(e[0].length===t)return e.shift();for(var n=new Uint8Array(t),r=0,o=0;o1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}},{key:"_hostname",value:function(){var e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}},{key:"_port",value:function(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}},{key:"_query",value:function(e){var t=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}]),n}(ao),vo="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),mo=64,yo={},go=0,bo=0;function wo(e){var t="";do{t=vo[e%mo]+t,e=Math.floor(e/mo)}while(e>0);return t}function xo(){var e=wo(+new Date);return e!==fo?(go=0,fo=e):e+"."+wo(go++)}for(;bo0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new _o(this.uri(),e)}},{key:"doWrite",value:function(e,t){var n=this,r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(function(e,t){n.onError("xhr post error",e,t)}))}},{key:"doPoll",value:function(){var e=this,t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(function(t,n){e.onError("xhr poll error",t,n)})),this.pollXhr=t}}]),n}(ho),_o=function(e){Kt(n,e);var t=Gt(n);function n(e,r){var o;return Ze(this,n),co(Yt(o=t.call(this)),r),o.opts=r,o.method=r.method||"GET",o.uri=e,o.data=void 0!==r.data?r.data:null,o.create(),o}return tt(n,[{key:"create",value:function(){var e,t=this,r=lo(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this.opts.xd;var o=this.xhr=new Eo(r);try{o.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders)for(var a in o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(a)&&o.setRequestHeader(a,this.opts.extraHeaders[a])}catch(bp){}if("POST"===this.method)try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(bp){}try{o.setRequestHeader("Accept","*/*")}catch(bp){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(o),"withCredentials"in o&&(o.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(o.timeout=this.opts.requestTimeout),o.onreadystatechange=function(){var e;3===o.readyState&&(null===(e=t.opts.cookieJar)||void 0===e||e.parseCookies(o)),4===o.readyState&&(200===o.status||1223===o.status?t.onLoad():t.setTimeoutFn((function(){t.onError("number"===typeof o.status?o.status:0)}),0))},o.send(this.data)}catch(bp){return void this.setTimeoutFn((function(){t.onError(bp)}),0)}"undefined"!==typeof document&&(this.index=n.requestsCount++,n.requests[this.index]=this)}},{key:"onError",value:function(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}},{key:"cleanup",value:function(e){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=Co,e)try{this.xhr.abort()}catch(bp){}"undefined"!==typeof document&&delete n.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}},{key:"abort",value:function(){this.cleanup()}}]),n}(ao);if(_o.requestsCount=0,_o.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",Po);else if("function"===typeof addEventListener){addEventListener("onpagehide"in io?"pagehide":"unload",Po,!1)}function Po(){for(var e in _o.requests)_o.requests.hasOwnProperty(e)&&_o.requests[e].abort()}var To="function"===typeof Promise&&"function"===typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},jo=io.WebSocket||io.MozWebSocket,Ro="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),Lo=function(e){Kt(n,e);var t=Gt(n);function n(e){var r;return Ze(this,n),(r=t.call(this,e)).supportsBinary=!e.forceBase64,r}return tt(n,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=Ro?{}:lo(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=Ro?new jo(e,t,n):t?new jo(e,t):new jo(e)}catch(wp){return this.emitReserved("error",wp)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws._socket.unref(),e.onOpen()},this.ws.onclose=function(t){return e.onClose({description:"websocket connection closed",context:t})},this.ws.onmessage=function(t){return e.onData(t.data)},this.ws.onerror=function(t){return e.onError("websocket error",t)}}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(){var n=e[r],o=r===e.length-1;Wr(n,t.supportsBinary,(function(e){try{t.ws.send(e)}catch(bp){}o&&To((function(){t.writable=!0,t.emitReserved("drain")}),t.setTimeoutFn)}))},r=0;rMath.pow(2,21)-1){l.enqueue(Br);break}o=d*Math.pow(2,32)+f.getUint32(4),r=3}else{if(ro(n)e){l.enqueue(Br);break}}}})}(Number.MAX_SAFE_INTEGER,e.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=no();o.readable.pipeTo(t.writable),e.writer=o.writable.getWriter();!function t(){r.read().then((function(n){var r=n.done,o=n.value;r||(e.onPacket(o),t())})).catch((function(e){}))}();var a={type:"open"};e.query.sid&&(a.data='{"sid":"'.concat(e.query.sid,'"}')),e.writer.write(a).then((function(){return e.onOpen()}))}))})))}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(){var n=e[r],o=r===e.length-1;t.writer.write(n).then((function(){o&&To((function(){t.writable=!0,t.emitReserved("drain")}),t.setTimeoutFn)}))},r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return Ze(this,n),(r=t.call(this)).binaryType="arraybuffer",r.writeBuffer=[],e&&"object"===typeof e&&(o=e,e=null),e?(e=Fo(e),o.hostname=e.host,o.secure="https"===e.protocol||"wss"===e.protocol,o.port=e.port,e.query&&(o.query=e.query)):o.host&&(o.hostname=Fo(o.host).host),co(Yt(r),o),r.secure=null!=o.secure?o.secure:"undefined"!==typeof location&&"https:"===location.protocol,o.hostname&&!o.port&&(o.port=r.secure?"443":"80"),r.hostname=o.hostname||("undefined"!==typeof location?location.hostname:"localhost"),r.port=o.port||("undefined"!==typeof location&&location.port?location.port:r.secure?"443":"80"),r.transports=o.transports||["polling","websocket","webtransport"],r.writeBuffer=[],r.prevBufferLen=0,r.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},o),r.opts.path=r.opts.path.replace(/\/$/,"")+(r.opts.addTrailingSlash?"/":""),"string"===typeof r.opts.query&&(r.opts.query=function(e){for(var t={},n=e.split("&"),r=0,o=n.length;r1))return this.writeBuffer;for(var e,t=1,n=0;n=57344?n+=3:(r++,n+=4);return n}(e):Math.ceil(1.33*(e.byteLength||e.size))),n>0&&t>this.maxPayload)return this.writeBuffer.slice(0,n);t+=2}return this.writeBuffer}},{key:"write",value:function(e,t,n){return this.sendPacket("message",e,t,n),this}},{key:"send",value:function(e,t,n){return this.sendPacket("message",e,t,n),this}},{key:"sendPacket",value:function(e,t,n,r){if("function"===typeof t&&(r=t,t=void 0),"function"===typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var o={type:e,data:t,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}}},{key:"close",value:function(){var e=this,t=function(){e.onClose("forced close"),e.transport.close()},n=function n(){e.off("upgrade",n),e.off("upgradeError",n),t()},r=function(){e.once("upgrade",n),e.once("upgradeError",n)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(function(){e.upgrading?r():t()})):this.upgrading?r():t()),this}},{key:"onError",value:function(e){n.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}},{key:"onClose",value:function(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}},{key:"filterUpgrades",value:function(e){for(var t=[],n=0,r=e.length;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw i}}}}var Uo="function"===typeof ArrayBuffer,Vo=function(e){return"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer},Ho=Object.prototype.toString,Wo="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Ho.call(Blob),$o="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===Ho.call(File);function qo(e){return Uo&&(e instanceof ArrayBuffer||Vo(e))||Wo&&e instanceof Blob||$o&&e instanceof File}function Ko(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e)){for(var n=0,r=e.length;n=0&&e.num1?t-1:0),r=1;r1?n-1:0),o=1;on._opts.retries&&(n._queue.shift(),t&&t(e));else if(n._queue.shift(),t){for(var o=arguments.length,a=new Array(o>1?o-1:0),i=1;i0&&void 0!==arguments[0]&&arguments[0];if(this.connected&&0!==this._queue.length){var t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}}},{key:"packet",value:function(e){e.nsp=this.nsp,this.io._packet(e)}},{key:"onopen",value:function(){var e=this;"function"==typeof this.auth?this.auth((function(t){e._sendConnectPacket(t)})):this._sendConnectPacket(this.auth)}},{key:"_sendConnectPacket",value:function(e){this.packet({type:Jo.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}},{key:"onerror",value:function(e){this.connected||this.emitReserved("connect_error",e)}},{key:"onclose",value:function(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}},{key:"onpacket",value:function(e){if(e.nsp===this.nsp)switch(e.type){case Jo.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Jo.EVENT:case Jo.BINARY_EVENT:this.onevent(e);break;case Jo.ACK:case Jo.BINARY_ACK:this.onack(e);break;case Jo.DISCONNECT:this.ondisconnect();break;case Jo.CONNECT_ERROR:this.destroy();var t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}},{key:"onevent",value:function(e){var t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}},{key:"emitEvent",value:function(e){if(this._anyListeners&&this._anyListeners.length){var t,r=Bo(this._anyListeners.slice());try{for(r.s();!(t=r.n()).done;){t.value.apply(this,e)}}catch(wp){r.e(wp)}finally{r.f()}}qt($t(n.prototype),"emit",this).apply(this,e),this._pid&&e.length&&"string"===typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}},{key:"ack",value:function(e){var t=this,n=!1;return function(){if(!n){n=!0;for(var r=arguments.length,o=new Array(r),a=0;a0&&e.jitter<=1?e.jitter:0,this.attempts=0}sa.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},sa.prototype.reset=function(){this.attempts=0},sa.prototype.setMin=function(e){this.ms=e},sa.prototype.setMax=function(e){this.max=e},sa.prototype.setJitter=function(e){this.jitter=e};var ua=function(t){Kt(r,t);var n=Gt(r);function r(t,o){var a,i;Ze(this,r),(a=n.call(this)).nsps={},a.subs=[],t&&"object"===typeof t&&(o=t,t=void 0),(o=o||{}).path=o.path||"/socket.io",a.opts=o,co(Yt(a),o),a.reconnection(!1!==o.reconnection),a.reconnectionAttempts(o.reconnectionAttempts||1/0),a.reconnectionDelay(o.reconnectionDelay||1e3),a.reconnectionDelayMax(o.reconnectionDelayMax||5e3),a.randomizationFactor(null!==(i=o.randomizationFactor)&&void 0!==i?i:.5),a.backoff=new sa({min:a.reconnectionDelay(),max:a.reconnectionDelayMax(),jitter:a.randomizationFactor()}),a.timeout(null==o.timeout?2e4:o.timeout),a._readyState="closed",a.uri=t;var l=o.parser||e;return a.encoder=new l.Encoder,a.decoder=new l.Decoder,a._autoConnect=!1!==o.autoConnect,a._autoConnect&&a.open(),a}return tt(r,[{key:"reconnection",value:function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}},{key:"reconnectionAttempts",value:function(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}},{key:"reconnectionDelay",value:function(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}},{key:"randomizationFactor",value:function(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}},{key:"reconnectionDelayMax",value:function(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}},{key:"timeout",value:function(e){return arguments.length?(this._timeout=e,this):this._timeout}},{key:"maybeReconnectOnOpen",value:function(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}},{key:"open",value:function(e){var t=this;if(~this._readyState.indexOf("open"))return this;this.engine=new Do(this.uri,this.opts);var n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;var o=aa(n,"open",(function(){r.onopen(),e&&e()})),a=function(n){t.cleanup(),t._readyState="closed",t.emitReserved("error",n),e?e(n):t.maybeReconnectOnOpen()},i=aa(n,"error",a);if(!1!==this._timeout){var l=this._timeout,s=this.setTimeoutFn((function(){o(),a(new Error("timeout")),n.close()}),l);this.opts.autoUnref&&s.unref(),this.subs.push((function(){t.clearTimeoutFn(s)}))}return this.subs.push(o),this.subs.push(i),this}},{key:"connect",value:function(e){return this.open(e)}},{key:"onopen",value:function(){this.cleanup(),this._readyState="open",this.emitReserved("open");var e=this.engine;this.subs.push(aa(e,"ping",this.onping.bind(this)),aa(e,"data",this.ondata.bind(this)),aa(e,"error",this.onerror.bind(this)),aa(e,"close",this.onclose.bind(this)),aa(this.decoder,"decoded",this.ondecoded.bind(this)))}},{key:"onping",value:function(){this.emitReserved("ping")}},{key:"ondata",value:function(e){try{this.decoder.add(e)}catch(bp){this.onclose("parse error",bp)}}},{key:"ondecoded",value:function(e){var t=this;To((function(){t.emitReserved("packet",e)}),this.setTimeoutFn)}},{key:"onerror",value:function(e){this.emitReserved("error",e)}},{key:"socket",value:function(e,t){var n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new la(this,e,t),this.nsps[e]=n),n}},{key:"_destroy",value:function(e){for(var t=0,n=Object.keys(this.nsps);t=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{var n=this.backoff.duration();this._reconnecting=!0;var r=this.setTimeoutFn((function(){t.skipReconnect||(e.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((function(n){n?(t._reconnecting=!1,t.reconnect(),e.emitReserved("reconnect_error",n)):t.onreconnect()})))}),n);this.opts.autoUnref&&r.unref(),this.subs.push((function(){e.clearTimeoutFn(r)}))}}},{key:"onreconnect",value:function(){var e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}]),r}(ao),ca={};function fa(e,t){"object"===typeof e&&(t=e,e=void 0);var n,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=e;n=n||"undefined"!==typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e="undefined"!==typeof n?n.protocol+"//"+e:"https://"+e),r=Fo(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var o=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),o=r.source,a=r.id,i=r.path,l=ca[a]&&i in ca[a].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||l?n=new ua(o,t):(ca[a]||(ca[a]=new ua(o,t)),n=ca[a]),r.query&&!t.query&&(t.query=r.queryKey),n.socket(r.path,t)}Object.assign(fa,{Manager:ua,Socket:la,io:fa,connect:fa});var da=window.location.hostname,pa=window.location.port,ha="ws://".concat(da,":").concat(pa,"/");console.debug("Websocket: ",ha);var va=fa(ha,{path:"/ws/socket.io",transports:["websocket"]}),ma=function(e,t,n,r){r?va.emit("frontend_update",{name:e,parent_path:t,value:n},r):va.emit("frontend_update",{name:e,parent_path:t,value:n})},ya=["bsPrefix","className","variant","as"],ga=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.variant,a=e.as,i=void 0===a?"img":a,l=y(e,ya),s=R(n,"card-img");return(0,P.jsx)(i,p({ref:t,className:b()(o?"".concat(s,"-").concat(o):s,r)},l))}));ga.displayName="CardImg";var ba=ga,wa=h.createContext(null);wa.displayName="CardHeaderContext";var xa=wa,ka=["bsPrefix","className","as"],Sa=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.as,a=void 0===o?"div":o,i=y(e,ka),l=R(n,"card-header"),s=(0,h.useMemo)((function(){return{cardHeaderBsPrefix:l}}),[l]);return(0,P.jsx)(xa.Provider,{value:s,children:(0,P.jsx)(a,p(p({ref:t},i),{},{className:b()(r,l)}))})}));Sa.displayName="CardHeader";var Ea=Sa,Ca=["bsPrefix","className","bg","text","border","body","children","as"],Oa=Ht("h5"),Na=Ht("h6"),_a=F("card-body"),Pa=F("card-title",{Component:Oa}),Ta=F("card-subtitle",{Component:Na}),ja=F("card-link",{Component:"a"}),Ra=F("card-text",{Component:"p"}),La=F("card-footer"),Aa=F("card-img-overlay"),za=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.bg,a=e.text,i=e.border,l=e.body,s=void 0!==l&&l,u=e.children,c=e.as,f=void 0===c?"div":c,d=y(e,Ca),h=R(n,"card");return(0,P.jsx)(f,p(p({ref:t},d),{},{className:b()(r,h,o&&"bg-".concat(o),a&&"text-".concat(a),i&&"border-".concat(i)),children:s?(0,P.jsx)(_a,{children:u}):u}))}));za.displayName="Card";var Ia=Object.assign(za,{Img:ba,Title:Pa,Subtitle:Ta,Body:_a,Link:ja,Text:Ra,Header:Ea,Footer:La,ImgOverlay:Aa}),Ma=["color","size","title"];function Fa(){return Fa=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ba=(0,h.forwardRef)((function(e,t){var n=e.color,r=e.size,o=e.title,a=Da(e,Ma);return h.createElement("svg",Fa({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n},a),o?h.createElement("title",null,o):null,h.createElement("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"}))}));Ba.propTypes={color:Rt().string,size:Rt().oneOfType([Rt().string,Rt().number]),title:Rt().string},Ba.defaultProps={color:"currentColor",size:"1em",title:null};var Ua=Ba,Va=["color","size","title"];function Ha(){return Ha=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var $a=(0,h.forwardRef)((function(e,t){var n=e.color,r=e.size,o=e.title,a=Wa(e,Va);return h.createElement("svg",Ha({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n},a),o?h.createElement("title",null,o):null,h.createElement("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}))}));$a.propTypes={color:Rt().string,size:Rt().oneOfType([Rt().string,Rt().number]),title:Rt().string},$a.defaultProps={color:"currentColor",size:"1em",title:null};var qa=$a,Ka=["as","disabled"];function Qa(e){var t=e.tagName,n=e.disabled,r=e.href,o=e.target,a=e.rel,i=e.role,l=e.onClick,s=e.tabIndex,u=void 0===s?0:s,c=e.type;t||(t=null!=r||null!=o||null!=a?"a":"button");var f={tagName:t};if("button"===t)return[{type:c||"button",disabled:n},f];var d=function(e){(n||"a"===t&&function(e){return!e||"#"===e.trim()}(r))&&e.preventDefault(),n?e.stopPropagation():null==l||l(e)};return"a"===t&&(r||(r="#"),n&&(r=void 0)),[{role:null!=i?i:"button",disabled:void 0,tabIndex:n?void 0:u,href:r,target:"a"===t?o:void 0,"aria-disabled":n||void 0,rel:"a"===t?a:void 0,onClick:d,onKeyDown:function(e){" "===e.key&&(e.preventDefault(),d(e))}},f]}var Ya=h.forwardRef((function(e,t){var n=e.as,r=e.disabled,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,Ka),a=s(Qa(Object.assign({tagName:n,disabled:r},o)),2),i=a[0],l=a[1].tagName;return(0,P.jsx)(l,Object.assign({},o,i,{ref:t}))}));Ya.displayName="Button";var Ga=["as","bsPrefix","variant","size","active","disabled","className"],Xa=h.forwardRef((function(e,t){var n=e.as,r=e.bsPrefix,o=e.variant,a=void 0===o?"primary":o,i=e.size,l=e.active,u=void 0!==l&&l,c=e.disabled,f=void 0!==c&&c,d=e.className,h=y(e,Ga),v=R(r,"btn"),m=s(Qa(p({tagName:n,disabled:f},h)),2),g=m[0],w=m[1].tagName;return(0,P.jsx)(w,p(p(p({},g),h),{},{ref:t,disabled:f,className:b()(d,v,u&&"active",a&&"".concat(v,"-").concat(a),i&&"".concat(v,"-").concat(i),h.href&&f&&"disabled")}))}));Xa.displayName="Button";var Ja=Xa,Za=["bsPrefix","name","className","checked","type","onChange","value","disabled","id","inputRef"],ei=function(){},ti=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.name,o=e.className,a=e.checked,i=e.type,l=e.onChange,s=e.value,u=e.disabled,c=e.id,f=e.inputRef,d=y(e,Za);return n=R(n,"btn-check"),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("input",{className:n,name:r,type:i,value:s,ref:f,autoComplete:"off",checked:!!a,disabled:!!u,onChange:l||ei,id:c}),(0,P.jsx)(Ja,p(p({},d),{},{ref:t,className:b()(o,u&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:c}))]})}));ti.displayName="ToggleButton";var ni=ti;h.Component;function ri(e,t){var n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function oi(){return{position:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"absolute",top:"0",left:"0",opacity:"0",pointerEvents:"none"}}var ai=["bsPrefix","placement","className","style","children","arrowProps","hasDoneInitialMeasure","popper","show"],ii=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.placement,o=void 0===r?"right":r,a=e.className,i=e.style,l=e.children,u=e.arrowProps,c=e.hasDoneInitialMeasure,f=e.popper,d=e.show,h=y(e,ai);n=R(n,"tooltip");var v=z(),m=s((null==o?void 0:o.split("-"))||[],1)[0],g=ri(m,v),w=i;return d&&!c&&(w=p(p({},i),oi(null==f?void 0:f.strategy))),(0,P.jsxs)("div",p(p({ref:t,style:w,role:"tooltip","x-placement":m,className:b()(a,n,"bs-tooltip-".concat(g))},h),{},{children:[(0,P.jsx)("div",p({className:"tooltip-arrow"},u)),(0,P.jsx)("div",{className:"".concat(n,"-inner"),children:l})]}))}));ii.displayName="Tooltip";var li=Object.assign(ii,{TOOLTIP_OFFSET:[0,6]});function si(){return(0,h.useState)(null)}var ui=Object.prototype.hasOwnProperty;function ci(e,t,n){var r,o=Bo(e.keys());try{for(o.s();!(r=o.n()).done;)if(fi(n=r.value,t))return n}catch(wp){o.e(wp)}finally{o.f()}}function fi(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&fi(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;var a,i=Bo(e);try{for(i.s();!(a=i.n()).done;){if((o=r=a.value)&&"object"===typeof o&&!(o=ci(t,o)))return!1;if(!t.has(o))return!1}}catch(wp){i.e(wp)}finally{i.f()}return!0}if(n===Map){if(e.size!==t.size)return!1;var l,s=Bo(e);try{for(s.s();!(l=s.n()).done;){if((o=(r=l.value)[0])&&"object"===typeof o&&!(o=ci(t,o)))return!1;if(!fi(r[1],t.get(o)))return!1}}catch(wp){s.e(wp)}finally{s.f()}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"===typeof e){for(n in r=0,e){if(ui.call(e,n)&&++r&&!ui.call(t,n))return!1;if(!(n in t)||!fi(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!==e&&t!==t}var di=function(e){var t=Xe();return[e[0],(0,h.useCallback)((function(n){if(t())return e[1](n)}),[t,e[1]])]};function pi(e){return e.split("-")[0]}function hi(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vi(e){return e instanceof hi(e).Element||e instanceof Element}function mi(e){return e instanceof hi(e).HTMLElement||e instanceof HTMLElement}function yi(e){return"undefined"!==typeof ShadowRoot&&(e instanceof hi(e).ShadowRoot||e instanceof ShadowRoot)}var gi=Math.max,bi=Math.min,wi=Math.round;function xi(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function ki(){return!/^((?!chrome|android).)*safari/i.test(xi())}function Si(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&mi(e)&&(o=e.offsetWidth>0&&wi(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&wi(r.height)/e.offsetHeight||1);var i=(vi(e)?hi(e):window).visualViewport,l=!ki()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,u=(r.top+(l&&i?i.offsetTop:0))/a,c=r.width/o,f=r.height/a;return{width:c,height:f,top:u,right:s+c,bottom:u+f,left:s,x:s,y:u}}function Ei(e){var t=Si(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ci(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&yi(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Oi(e){return e?(e.nodeName||"").toLowerCase():null}function Ni(e){return hi(e).getComputedStyle(e)}function _i(e){return["table","td","th"].indexOf(Oi(e))>=0}function Pi(e){return((vi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ti(e){return"html"===Oi(e)?e:e.assignedSlot||e.parentNode||(yi(e)?e.host:null)||Pi(e)}function ji(e){return mi(e)&&"fixed"!==Ni(e).position?e.offsetParent:null}function Ri(e){for(var t=hi(e),n=ji(e);n&&_i(n)&&"static"===Ni(n).position;)n=ji(n);return n&&("html"===Oi(n)||"body"===Oi(n)&&"static"===Ni(n).position)?t:n||function(e){var t=/firefox/i.test(xi());if(/Trident/i.test(xi())&&mi(e)&&"fixed"===Ni(e).position)return null;var n=Ti(e);for(yi(n)&&(n=n.host);mi(n)&&["html","body"].indexOf(Oi(n))<0;){var r=Ni(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Li(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ai(e,t,n){return gi(e,bi(t,n))}function zi(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ii(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Mi="top",Fi="bottom",Di="right",Bi="left",Ui="auto",Vi=[Mi,Fi,Di,Bi],Hi="start",Wi="end",$i="clippingParents",qi="viewport",Ki="popper",Qi="reference",Yi=Vi.reduce((function(e,t){return e.concat([t+"-"+Hi,t+"-"+Wi])}),[]),Gi=[].concat(Vi,[Ui]).reduce((function(e,t){return e.concat([t,t+"-"+Hi,t+"-"+Wi])}),[]),Xi=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];var Ji={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=pi(n.placement),s=Li(l),u=[Bi,Di].indexOf(l)>=0?"height":"width";if(a&&i){var c=function(e,t){return zi("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ii(e,Vi))}(o.padding,n),f=Ei(a),d="y"===s?Mi:Bi,p="y"===s?Fi:Di,h=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],v=i[s]-n.rects.reference[s],m=Ri(a),y=m?"y"===s?m.clientHeight||0:m.clientWidth||0:0,g=h/2-v/2,b=c[d],w=y-f[u]-c[p],x=y/2-f[u]/2+g,k=Ai(b,x,w),S=s;n.modifiersData[r]=((t={})[S]=k,t.centerOffset=k-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&Ci(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zi(e){return e.split("-")[1]}var el={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tl(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=i.x,p=void 0===d?0:d,h=i.y,v=void 0===h?0:h,m="function"===typeof c?c({x:p,y:v}):{x:p,y:v};p=m.x,v=m.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=Bi,w=Mi,x=window;if(u){var k=Ri(n),S="clientHeight",E="clientWidth";if(k===hi(n)&&"static"!==Ni(k=Pi(n)).position&&"absolute"===l&&(S="scrollHeight",E="scrollWidth"),o===Mi||(o===Bi||o===Di)&&a===Wi)w=Fi,v-=(f&&k===x&&x.visualViewport?x.visualViewport.height:k[S])-r.height,v*=s?1:-1;if(o===Bi||(o===Mi||o===Fi)&&a===Wi)b=Di,p-=(f&&k===x&&x.visualViewport?x.visualViewport.width:k[E])-r.width,p*=s?1:-1}var C,O=Object.assign({position:l},u&&el),N=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:wi(n*o)/o||0,y:wi(r*o)/o||0}}({x:p,y:v},hi(n)):{x:p,y:v};return p=N.x,v=N.y,s?Object.assign({},O,((C={})[w]=g?"0":"",C[b]=y?"0":"",C.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",C)):Object.assign({},O,((t={})[w]=g?v+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var nl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,u={placement:pi(t.placement),variation:Zi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,tl(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,tl(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},rl={passive:!0};var ol={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=hi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,rl)})),l&&s.addEventListener("resize",n.update,rl),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,rl)})),l&&s.removeEventListener("resize",n.update,rl)}},data:{}},al={left:"right",right:"left",bottom:"top",top:"bottom"};function il(e){return e.replace(/left|right|bottom|top/g,(function(e){return al[e]}))}var ll={start:"end",end:"start"};function sl(e){return e.replace(/start|end/g,(function(e){return ll[e]}))}function ul(e){var t=hi(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function cl(e){return Si(Pi(e)).left+ul(e).scrollLeft}function fl(e){var t=Ni(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function dl(e){return["html","body","#document"].indexOf(Oi(e))>=0?e.ownerDocument.body:mi(e)&&fl(e)?e:dl(Ti(e))}function pl(e,t){var n;void 0===t&&(t=[]);var r=dl(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=hi(r),i=o?[a].concat(a.visualViewport||[],fl(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(pl(Ti(i)))}function hl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vl(e,t,n){return t===qi?hl(function(e,t){var n=hi(e),r=Pi(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var u=ki();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+cl(e),y:s}}(e,n)):vi(t)?function(e,t){var n=Si(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):hl(function(e){var t,n=Pi(e),r=ul(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=gi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=gi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+cl(e),s=-r.scrollTop;return"rtl"===Ni(o||n).direction&&(l+=gi(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(Pi(e)))}function ml(e,t,n,r){var o="clippingParents"===t?function(e){var t=pl(Ti(e)),n=["absolute","fixed"].indexOf(Ni(e).position)>=0&&mi(e)?Ri(e):e;return vi(n)?t.filter((function(e){return vi(e)&&Ci(e,n)&&"body"!==Oi(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=vl(e,n,r);return t.top=gi(o.top,t.top),t.right=bi(o.right,t.right),t.bottom=bi(o.bottom,t.bottom),t.left=gi(o.left,t.left),t}),vl(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function yl(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?pi(o):null,i=o?Zi(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case Mi:t={x:l,y:n.y-r.height};break;case Fi:t={x:l,y:n.y+n.height};break;case Di:t={x:n.x+n.width,y:s};break;case Bi:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=a?Li(a):null;if(null!=u){var c="y"===u?"height":"width";switch(i){case Hi:t[u]=t[u]-(n[c]/2-r[c]/2);break;case Wi:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function gl(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?$i:l,u=n.rootBoundary,c=void 0===u?qi:u,f=n.elementContext,d=void 0===f?Ki:f,p=n.altBoundary,h=void 0!==p&&p,v=n.padding,m=void 0===v?0:v,y=zi("number"!==typeof m?m:Ii(m,Vi)),g=d===Ki?Qi:Ki,b=e.rects.popper,w=e.elements[h?g:d],x=ml(vi(w)?w:w.contextElement||Pi(e.elements.popper),s,c,i),k=Si(e.elements.reference),S=yl({reference:k,element:b,strategy:"absolute",placement:o}),E=hl(Object.assign({},b,S)),C=d===Ki?E:k,O={top:x.top-C.top+y.top,bottom:C.bottom-x.bottom+y.bottom,left:x.left-C.left+y.left,right:C.right-x.right+y.right},N=e.modifiersData.offset;if(d===Ki&&N){var _=N[o];Object.keys(O).forEach((function(e){var t=[Di,Fi].indexOf(e)>=0?1:-1,n=[Mi,Fi].indexOf(e)>=0?"y":"x";O[e]+=_[n]*t}))}return O}var bl={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,v=n.allowedAutoPlacements,m=t.options.placement,y=pi(m),g=s||(y===m||!h?[il(m)]:function(e){if(pi(e)===Ui)return[];var t=il(e);return[sl(e),t,sl(t)]}(m)),b=[m].concat(g).reduce((function(e,n){return e.concat(pi(n)===Ui?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?Gi:s,c=Zi(r),f=c?l?Yi:Yi.filter((function(e){return Zi(e)===c})):Vi,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=gl(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[pi(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),w=t.rects.reference,x=t.rects.popper,k=new Map,S=!0,E=b[0],C=0;C=0,T=P?"width":"height",j=gl(t,{placement:O,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),R=P?_?Di:Bi:_?Fi:Mi;w[T]>x[T]&&(R=il(R));var L=il(R),A=[];if(a&&A.push(j[N]<=0),l&&A.push(j[R]<=0,j[L]<=0),A.every((function(e){return e}))){E=O,S=!1;break}k.set(O,A)}if(S)for(var z=function(e){var t=b.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},I=h?3:1;I>0;I--){if("break"===z(I))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function wl(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xl(e){return[Mi,Di,Fi,Bi].some((function(t){return e[t]>=0}))}var kl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Gi.reduce((function(e,n){return e[n]=function(e,t,n){var r=pi(e),o=[Bi,Mi].indexOf(r)>=0?-1:1,a="function"===typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Bi,Di].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}};var Sl={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,v=void 0===h?0:h,m=gl(t,{boundary:s,rootBoundary:u,padding:f,altBoundary:c}),y=pi(t.placement),g=Zi(t.placement),b=!g,w=Li(y),x="x"===w?"y":"x",k=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,C="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,O="number"===typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(k){if(a){var P,T="y"===w?Mi:Bi,j="y"===w?Fi:Di,R="y"===w?"height":"width",L=k[w],A=L+m[T],z=L-m[j],I=p?-E[R]/2:0,M=g===Hi?S[R]:E[R],F=g===Hi?-E[R]:-S[R],D=t.elements.arrow,B=p&&D?Ei(D):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=U[T],H=U[j],W=Ai(0,S[R],B[R]),$=b?S[R]/2-I-W-V-O.mainAxis:M-W-V-O.mainAxis,q=b?-S[R]/2+I+W+H+O.mainAxis:F+W+H+O.mainAxis,K=t.elements.arrow&&Ri(t.elements.arrow),Q=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,Y=null!=(P=null==N?void 0:N[w])?P:0,G=L+q-Y,X=Ai(p?bi(A,L+$-Y-Q):A,L,p?gi(z,G):z);k[w]=X,_[w]=X-L}if(l){var J,Z="x"===w?Mi:Bi,ee="x"===w?Fi:Di,te=k[x],ne="y"===x?"height":"width",re=te+m[Z],oe=te-m[ee],ae=-1!==[Mi,Bi].indexOf(y),ie=null!=(J=null==N?void 0:N[x])?J:0,le=ae?re:te-S[ne]-E[ne]-ie+O.altAxis,se=ae?te+S[ne]+E[ne]-ie-O.altAxis:oe,ue=p&&ae?function(e,t,n){var r=Ai(e,t,n);return r>n?n:r}(le,te,se):Ai(p?le:re,te,p?se:oe);k[x]=ue,_[x]=ue-te}t.modifiersData[r]=_}},requiresIfExists:["offset"]};function El(e,t,n){void 0===n&&(n=!1);var r=mi(t),o=mi(t)&&function(e){var t=e.getBoundingClientRect(),n=wi(t.width)/e.offsetWidth||1,r=wi(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Pi(t),i=Si(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==Oi(t)||fl(a))&&(l=function(e){return e!==hi(e)&&mi(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:ul(e);var t}(t)),mi(t)?((s=Si(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=cl(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function Cl(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Ol(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Nl={placement:"bottom",modifiers:[],strategy:"absolute"};function _l(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{},r=n.enabled,o=void 0===r||r,i=n.placement,l=void 0===i?"bottom":i,u=n.strategy,c=void 0===u?"absolute":u,f=n.modifiers,d=void 0===f?Al:f,p=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(n,jl),v=(0,h.useRef)(d),m=(0,h.useRef)(),y=(0,h.useCallback)((function(){var e;null==(e=m.current)||e.update()}),[]),g=(0,h.useCallback)((function(){var e;null==(e=m.current)||e.forceUpdate()}),[]),b=s(di((0,h.useState)({placement:l,update:y,forceUpdate:g,attributes:{},styles:{popper:{},arrow:{}}})),2),w=b[0],x=b[1],k=(0,h.useMemo)((function(){return{name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:function(e){var t=e.state,n={},r={};Object.keys(t.elements).forEach((function(e){n[e]=t.styles[e],r[e]=t.attributes[e]})),x({state:t,styles:n,attributes:r,update:y,forceUpdate:g,placement:t.placement})}}}),[y,g,x]),S=(0,h.useMemo)((function(){return fi(v.current,d)||(v.current=d),v.current}),[d]);return(0,h.useEffect)((function(){m.current&&o&&m.current.setOptions({placement:l,strategy:c,modifiers:[].concat(a(S),[k,Rl])})}),[c,l,k,o,S]),(0,h.useEffect)((function(){if(o&&null!=e&&null!=t)return m.current=Tl(e,t,Object.assign({},p,{placement:l,strategy:c,modifiers:[].concat(a(S),[Ll,k])})),function(){null!=m.current&&(m.current.destroy(),m.current=void 0,x((function(e){return Object.assign({},e,{attributes:{},styles:{popper:{}}})})))}}),[o,e,t]),w},Il=function(){};var Ml=function(e){return e&&("current"in e?e.current:e)},Fl={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};var Dl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Il,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.disabled,o=n.clickTrigger,a=void 0===o?"click":o,i=(0,h.useRef)(!1),l=(0,h.useRef)(!1),s=(0,h.useCallback)((function(t){var n,r=Ml(e);nr()(!!r,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!r||!!((n=t).metaKey||n.altKey||n.ctrlKey||n.shiftKey)||!function(e){return 0===e.button}(t)||!!Ge(r,t.target)||l.current,l.current=!1}),[e]),u=Fe((function(t){var n=Ml(e);n&&Ge(n,t.target)&&(l.current=!0)})),c=Fe((function(e){i.current||t(e)}));(0,h.useEffect)((function(){var t,n;if(!r&&null!=e){var o=V(Ml(e)),i=o.defaultView||window,l=null!=(t=i.event)?t:null==(n=i.parent)?void 0:n.event,f=null;Fl[a]&&(f=pe(o,Fl[a],u,!0));var d=pe(o,a,s,!0),p=pe(o,a,(function(e){e!==l?c(e):l=void 0})),h=[];return"ontouchstart"in o.documentElement&&(h=[].slice.call(o.body.children).map((function(e){return pe(e,"mousemove",Il)}))),function(){null==f||f(),d(),p(),h.forEach((function(e){return e()}))}}}),[e,r,a,s,u,c])},Bl=function(){};var Ul=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.disabled,o=n.clickTrigger,a=t||Bl;Dl(e,a,{disabled:r,clickTrigger:o});var i=Fe((function(e){pt(e)&&a(e)}));(0,h.useEffect)((function(){if(!r&&null!=e){var t=V(Ml(e)),n=(t.defaultView||window).event,o=pe(t,"keyup",(function(e){e!==n?i(e):n=void 0}));return function(){o()}}}),[e,r,i])};function Vl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Array.isArray(e)?e:Object.keys(e).map((function(t){return e[t].name=t,e[t]}))}function Hl(e){var t,n,r,o,a,i=e.enabled,l=e.enableEvents,s=e.placement,u=e.flip,c=e.offset,f=e.fixed,d=e.containerPadding,p=e.arrowElement,h=e.popperConfig,v=void 0===h?{}:h,m=function(e){var t={};return Array.isArray(e)?(null==e||e.forEach((function(e){t[e.name]=e})),t):e||t}(v.modifiers);return Object.assign({},v,{placement:s,enabled:i,strategy:f?"fixed":v.strategy,modifiers:Vl(Object.assign({},m,{eventListeners:{enabled:l,options:null==(t=m.eventListeners)?void 0:t.options},preventOverflow:Object.assign({},m.preventOverflow,{options:d?Object.assign({padding:d},null==(n=m.preventOverflow)?void 0:n.options):null==(r=m.preventOverflow)?void 0:r.options}),offset:{options:Object.assign({offset:c},null==(o=m.offset)?void 0:o.options)},arrow:Object.assign({},m.arrow,{enabled:!!p,options:Object.assign({},null==(a=m.arrow)?void 0:a.options,{element:p})}),flip:Object.assign({enabled:!!u},m.flip)}))})}var Wl=h.forwardRef((function(e,t){var n=e.flip,r=e.offset,o=e.placement,a=e.containerPadding,i=e.popperConfig,l=void 0===i?{}:i,u=e.transition,c=e.runTransition,f=s(si(),2),d=f[0],p=f[1],v=s(si(),2),m=v[0],y=v[1],g=xe(p,t),b=ut(e.container),w=ut(e.target),x=s((0,h.useState)(!e.show),2),k=x[0],S=x[1],E=zl(w,d,Hl({placement:o,enableEvents:!!e.show,containerPadding:a||5,flip:n,offset:r,arrowElement:m,popperConfig:l}));e.show&&k&&S(!1);var C=e.show||!k;if(Ul(d,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!C)return null;var O=e.onExit,N=e.onExiting,_=e.onEnter,P=e.onEntering,T=e.onEntered,j=e.children(Object.assign({},E.attributes.popper,{style:E.styles.popper,ref:g}),{popper:E,placement:o,show:!!e.show,arrowProps:Object.assign({},E.attributes.arrow,{style:E.styles.arrow,ref:y})});return j=dt(u,c,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:j,onExit:O,onExiting:N,onExited:function(){S(!0),e.onExited&&e.onExited.apply(e,arguments)},onEnter:_,onEntering:P,onEntered:T}),b?G.createPortal(j,b):null}));Wl.displayName="Overlay";var $l=Wl,ql=F("popover-header"),Kl=F("popover-body"),Ql=["bsPrefix","placement","className","style","children","body","arrowProps","hasDoneInitialMeasure","popper","show"],Yl=h.forwardRef((function(e,t){var n=e.bsPrefix,r=e.placement,o=void 0===r?"right":r,a=e.className,i=e.style,l=e.children,u=e.body,c=e.arrowProps,f=e.hasDoneInitialMeasure,d=e.popper,h=e.show,v=y(e,Ql),m=R(n,"popover"),g=z(),w=s((null==o?void 0:o.split("-"))||[],1)[0],x=ri(w,g),k=i;return h&&!f&&(k=p(p({},i),oi(null==d?void 0:d.strategy))),(0,P.jsxs)("div",p(p({ref:t,role:"tooltip",style:k,"x-placement":w,className:b()(a,m,w&&"bs-popover-".concat(x))},v),{},{children:[(0,P.jsx)("div",p({className:"popover-arrow"},c)),u?(0,P.jsx)(Kl,{children:l}):l]}))})),Gl=Object.assign(Yl,{Header:ql,Body:Kl,POPPER_OFFSET:[0,8]});var Xl=["children","transition","popperConfig","rootClose","placement","show"];var Jl=h.forwardRef((function(e,t){var n=e.children,r=e.transition,o=void 0===r?Et:r,a=e.popperConfig,i=void 0===a?{}:a,l=e.rootClose,u=void 0!==l&&l,c=e.placement,f=void 0===c?"top":c,d=e.show,v=void 0!==d&&d,m=y(e,Xl),g=(0,h.useRef)({}),w=s((0,h.useState)(null),2),x=w[0],k=w[1],S=function(e){var t=(0,h.useRef)(null),n=R(void 0,"popover"),r=R(void 0,"tooltip"),o=(0,h.useMemo)((function(){return{name:"offset",options:{offset:function(){if(e)return e;if(t.current){if(Xt(t.current,n))return Gl.POPPER_OFFSET;if(Xt(t.current,r))return li.TOOLTIP_OFFSET}return[0,0]}}}}),[e,n,r]);return[t,[o]]}(m.offset),E=s(S,2),C=E[0],O=E[1],N=xe(t,C),_=!0===o?Et:o||void 0,T=Fe((function(e){k(e),null==i||null==i.onFirstUpdate||i.onFirstUpdate(e)}));return He((function(){x&&(null==g.current.scheduleUpdate||g.current.scheduleUpdate())}),[x]),(0,h.useEffect)((function(){v||k(null)}),[v]),(0,P.jsx)($l,p(p({},m),{},{ref:N,popperConfig:p(p({},i),{},{modifiers:O.concat(i.modifiers||[]),onFirstUpdate:T}),transition:_,rootClose:u,placement:f,show:v,children:function(e,t){var r,a,l=t.arrowProps,s=t.popper,u=t.show;!function(e,t){var n=e.ref,r=t.ref;e.ref=n.__wrapped||(n.__wrapped=function(e){return n(ke(e))}),t.ref=r.__wrapped||(r.__wrapped=function(e){return r(ke(e))})}(e,l);var c=null==s?void 0:s.placement,f=Object.assign(g.current,{state:null==s?void 0:s.state,scheduleUpdate:null==s?void 0:s.update,placement:c,outOfBoundaries:(null==s||null==(r=s.state)||null==(a=r.modifiersData.hide)?void 0:a.isReferenceHidden)||!1,strategy:i.strategy}),d=!!x;return"function"===typeof n?n(p(p(p({},e),{},{placement:c,show:u},!o&&u&&{className:"show"}),{},{popper:f,arrowProps:l,hasDoneInitialMeasure:d})):h.cloneElement(n,p(p({},e),{},{placement:c,arrowProps:l,popper:f,hasDoneInitialMeasure:d,className:b()(n.props.className,!o&&u&&"show"),style:p(p({},n.props.style),e.style)}))}}))}));Jl.displayName="Overlay";var Zl=Jl,es=["trigger","overlay","children","popperConfig","show","defaultShow","onToggle","delay","placement","flip"];function ts(e,t,n){var r=s(t,1)[0],o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];i&&i===o||Ge(o,i)||e.apply(void 0,a(t))}var ns=function(e){var t=e.trigger,n=void 0===t?["hover","focus"]:t,r=e.overlay,o=e.children,a=e.popperConfig,i=void 0===a?{}:a,l=e.show,u=e.defaultShow,c=void 0!==u&&u,f=e.onToggle,d=e.delay,v=e.placement,m=e.flip,g=void 0===m?v&&-1!==v.indexOf("auto"):m,b=y(e,es),w=(0,h.useRef)(null),x=xe(w,o.ref),k=Pn(),S=(0,h.useRef)(""),C=s(E(l,c,f),2),O=C[0],N=C[1],_=function(e){return e&&"object"===typeof e?e:{show:e,hide:e}}(d),T="function"!==typeof o?h.Children.only(o).props:{},j=T.onFocus,R=T.onBlur,L=T.onClick,A=(0,h.useCallback)((function(){k.clear(),S.current="show",_.show?k.set((function(){"show"===S.current&&N(!0)}),_.show):N(!0)}),[_.show,N,k]),z=(0,h.useCallback)((function(){k.clear(),S.current="hide",_.hide?k.set((function(){"hide"===S.current&&N(!1)}),_.hide):N(!1)}),[_.hide,N,k]),I=(0,h.useCallback)((function(){A(),null==j||j.apply(void 0,arguments)}),[A,j]),M=(0,h.useCallback)((function(){z(),null==R||R.apply(void 0,arguments)}),[z,R]),F=(0,h.useCallback)((function(){N(!O),null==L||L.apply(void 0,arguments)}),[L,N,O]),D=(0,h.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;na?Math.pow(10,a+1-n):Math.pow(10,a-n);var s=(parseFloat(t)+("ArrowUp"===e?l:-l)).toFixed(i),u=s.split(".")[0].length;return u>a?n+=1:ut?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t>0?{value:e.slice(0,t-1)+e.slice(t),selectionStart:t-1}:{value:e,selectionStart:t}}(i,l,s);u=h.value,l=h.selectionStart}else{if("Delete"!==r)return"Enter"!==r||a?void console.debug(r):void ma(t,n,Number(u));var m=function(e,t,n){return n>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t0&&(s.className=i),Object.keys(l).length>0&&(s.style=l),{props:s,internalRef:void 0}}var u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var n={};return Object.keys(e).filter((function(n){return n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n)})).forEach((function(t){n[t]=e[t]})),n}(x({},o,r)),c=ks(r),f=ks(o),d=t(u),p=bs(null==d?void 0:d.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),h=x({},null==d?void 0:d.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),v=x({},d,n,f,c);return p.length>0&&(v.className=p),Object.keys(h).length>0&&(v.style=h),{props:v,internalRef:d.ref}}var Es=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Cs(e){var t,n=e.elementType,r=e.externalSlotProps,o=e.ownerState,a=e.skipResolvingSlotProps,i=void 0!==a&&a,l=m(e,Es),s=i?{}:function(e,t,n){return"function"===typeof e?e(t,n):e}(r,o),u=Ss(x({},l,{externalSlotProps:s})),c=function(e,t,n){return void 0===e||xs(e)?t:x({},t,{ownerState:x({},t.ownerState,n)})}(n,x({},u.props,{ref:ws(u.internalRef,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Os(e){return e&&e.ownerDocument||document}var Ns,_s=!0,Ps=!1,Ts={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function js(e){e.metaKey||e.altKey||e.ctrlKey||(_s=!0)}function Rs(){_s=!1}function Ls(){"hidden"===this.visibilityState&&Ps&&(_s=!0)}function As(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return _s||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Ts[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function zs(){var e=h.useCallback((function(e){var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",js,!0),t.addEventListener("mousedown",Rs,!0),t.addEventListener("pointerdown",Rs,!0),t.addEventListener("touchstart",Rs,!0),t.addEventListener("visibilitychange",Ls,!0))}),[]),t=h.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!As(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Ps=!0,window.clearTimeout(Ns),Ns=window.setTimeout((function(){Ps=!1}),100),t.current=!1,!0)},ref:e}}var Is="undefined"!==typeof window?h.useLayoutEffect:h.useEffect;var Ms=function(e){var t=h.useRef(e);return Is((function(){t.current=e})),h.useCallback((function(){return t.current.apply(void 0,arguments)}),[])},Fs={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ds(e,t){return e-t}function Bs(e,t,n){return null==e?t:Math.min(Math.max(t,e),n)}function Us(e,t){var n,r=null!=(n=e.reduce((function(e,n,r){var o=Math.abs(t-n);return null===e||o2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e===t};return e.length===t.length&&e.every((function(e,r){return n(e,t[r])}))}(e,t)}var Qs,Ys={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},Gs=function(e){return e};function Xs(){return void 0===Qs&&(Qs="undefined"===typeof CSS||"function"!==typeof CSS.supports||CSS.supports("touch-action","none")),Qs}function Js(e){var t=e["aria-labelledby"],n=e.defaultValue,r=e.disabled,o=void 0!==r&&r,i=e.disableSwap,l=void 0!==i&&i,u=e.isRtl,c=void 0!==u&&u,f=e.marks,d=void 0!==f&&f,p=e.max,v=void 0===p?100:p,m=e.min,y=void 0===m?0:m,g=e.name,b=e.onChange,w=e.onChangeCommitted,k=e.orientation,S=void 0===k?"horizontal":k,E=e.rootRef,C=e.scale,O=void 0===C?Gs:C,N=e.step,_=void 0===N?1:N,P=e.tabIndex,T=e.value,j=h.useRef(),R=s(h.useState(-1),2),L=R[0],A=R[1],z=s(h.useState(-1),2),I=z[0],M=z[1],F=s(h.useState(!1),2),D=F[0],B=F[1],U=h.useRef(0),V=function(e){var t=e.controlled,n=e.default,r=(e.name,e.state,h.useRef(void 0!==t).current),o=s(h.useState(n),2),a=o[0],i=o[1];return[r?t:a,h.useCallback((function(e){r||i(e)}),[])]}({controlled:T,default:null!=n?n:y,name:"Slider"}),H=s(V,2),W=H[0],$=H[1],q=b&&function(e,t,n){var r=e.nativeEvent||e,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:g}}),b(o,t,n)},K=Array.isArray(W),Q=K?W.slice().sort(Ds):[W];Q=Q.map((function(e){return Bs(e,y,v)}));var Y=!0===d&&null!==_?a(Array(Math.floor((v-y)/_)+1)).map((function(e,t){return{value:y+_*t}})):d||[],G=Y.map((function(e){return e.value})),X=zs(),J=X.isFocusVisibleRef,Z=X.onBlur,ee=X.onFocus,te=X.ref,ne=s(h.useState(-1),2),re=ne[0],oe=ne[1],ae=h.useRef(),ie=ws(te,ae),le=ws(E,ie),se=function(e){return function(t){var n,r=Number(t.currentTarget.getAttribute("data-index"));ee(t),!0===J.current&&oe(r),M(r),null==e||null==(n=e.onFocus)||n.call(e,t)}},ue=function(e){return function(t){var n;Z(t),!1===J.current&&oe(-1),M(-1),null==e||null==(n=e.onBlur)||n.call(e,t)}};Is((function(){var e;o&&ae.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[o]),o&&-1!==L&&A(-1),o&&-1!==re&&oe(-1);var ce=function(e){return function(t){var n;null==(n=e.onChange)||n.call(e,t);var r=Number(t.currentTarget.getAttribute("data-index")),o=Q[r],a=G.indexOf(o),i=t.target.valueAsNumber;if(Y&&null==_){var s=G[G.length-1];i=i>s?s:i2&&B(!0),q&&!Ks(r,W)&&q(e,r,o)}else ve(e)})),ve=Ms((function(e){var t=Vs(e,j);if(B(!1),t){var n=pe({finger:t,move:!0}).newValue;A(-1),"touchend"===e.type&&M(-1),w&&w(e,n),j.current=void 0,ye()}})),me=Ms((function(e){if(!o){Xs()||e.preventDefault();var t=e.changedTouches[0];null!=t&&(j.current=t.identifier);var n=Vs(e,j);if(!1!==n){var r=pe({finger:n}),a=r.newValue,i=r.activeIndex;qs({sliderRef:ae,activeIndex:i,setActive:A}),$(a),q&&!Ks(a,W)&&q(e,a,i)}U.current=0;var l=Os(ae.current);l.addEventListener("touchmove",he),l.addEventListener("touchend",ve)}})),ye=h.useCallback((function(){var e=Os(ae.current);e.removeEventListener("mousemove",he),e.removeEventListener("mouseup",ve),e.removeEventListener("touchmove",he),e.removeEventListener("touchend",ve)}),[ve,he]);h.useEffect((function(){var e=ae.current;return e.addEventListener("touchstart",me,{passive:Xs()}),function(){e.removeEventListener("touchstart",me,{passive:Xs()}),ye()}}),[ye,me]),h.useEffect((function(){o&&ye()}),[o,ye]);var ge=function(e){return function(t){var n;if(null==(n=e.onMouseDown)||n.call(e,t),!o&&!t.defaultPrevented&&0===t.button){t.preventDefault();var r=Vs(t,j);if(!1!==r){var a=pe({finger:r}),i=a.newValue,l=a.activeIndex;qs({sliderRef:ae,activeIndex:l,setActive:A}),$(i),q&&!Ks(i,W)&&q(t,i,l)}U.current=0;var s=Os(ae.current);s.addEventListener("mousemove",he),s.addEventListener("mouseup",ve)}}},be=Hs(K?Q[0]:y,y,v),we=Hs(Q[Q.length-1],y,v)-be,xe=function(e){return function(t){var n;null==(n=e.onMouseOver)||n.call(e,t);var r=Number(t.currentTarget.getAttribute("data-index"));M(r)}},ke=function(e){return function(t){var n;null==(n=e.onMouseLeave)||n.call(e,t),M(-1)}};return{active:L,axis:de,axisProps:Ys,dragging:D,focusedThumbIndex:re,getHiddenInputProps:function(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=x({},r,{onChange:ce(r||{}),onFocus:se(r||{}),onBlur:ue(r||{})});return x({tabIndex:P,"aria-labelledby":t,"aria-orientation":S,"aria-valuemax":O(v),"aria-valuemin":O(y),name:g,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(n=e.step)?n:void 0,disabled:o},a,{style:x({},Fs,{direction:c?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=x({},e,{onMouseDown:ge(e||{})});return x({ref:le},t)},getThumbProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return x({},e,{onMouseOver:xe(e||{}),onMouseLeave:ke(e||{})})},marks:Y,open:I,range:K,rootRef:le,trackLeap:we,trackOffset:be,values:Q,getThumbStyle:function(e){return{pointerEvents:-1!==L&&L!==e?"none":void 0}}}}function Zs(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function tu(e){if(e.type)return e;if("#"===e.charAt(0))return tu(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Zs(9,e));var r,o=e.substring(t+1,e.length-1);if("color"===n){if(r=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Zs(10,r))}else o=o.split(",");return o=o.map((function(e){return parseFloat(e)})),{type:n,values:o,colorSpace:r}}function nu(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function ru(e){var t="hsl"===(e=tu(e)).type||"hsla"===e.type?tu(function(e){var t=(e=tu(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-a*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",s=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),nu({type:l,values:s})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ou(e,t){return e=tu(e),t=eu(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,nu(e)}function au(e,t){if(e=tu(e),t=eu(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return nu(e)}function iu(e,t){if(e=tu(e),t=eu(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return nu(e)}function lu(e,t){var n=x({},t);return Object.keys(e).forEach((function(r){if(r.toString().match(/^(components|slots)$/))n[r]=x({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){var o=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?o&&Object.keys(o)?(n[r]=x({},a),Object.keys(o).forEach((function(e){n[r][e]=lu(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function su(e){var t=e.theme,n=e.name,r=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?lu(t.components[n].defaultProps,r):r}function uu(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function cu(e){if(!uu(e))return e;var t={};return Object.keys(e).forEach((function(n){t[n]=cu(e[n])})),t}function fu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?x({},e):e;return uu(e)&&uu(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(uu(t[o])&&o in e&&uu(e[o])?r[o]=fu(e[o],t[o],n):n.clone?r[o]=uu(t[o])?cu(t[o]):t[o]:r[o]=t[o])})),r}var du=["values","unit","step"],pu=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return x({},e,f({},t.key,t.val))}),{})};var hu={borderRadius:4},vu={xs:0,sm:600,md:900,lg:1200,xl:1536},mu={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(vu[e],"px)")}};function yu(e,t,n){var r=e.theme||{};if(Array.isArray(t)){var o=r.breakpoints||mu;return t.reduce((function(e,r,a){return e[o.up(o.keys[a])]=n(t[a]),e}),{})}if("object"===typeof t){var a=r.breakpoints||mu;return Object.keys(t).reduce((function(e,r){if(-1!==Object.keys(a.values||vu).indexOf(r)){e[a.up(r)]=n(t[r],r)}else{var o=r;e[o]=t[o]}return e}),{})}return n(t)}function gu(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{}))||{}}function bu(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function wu(e){if("string"!==typeof e)throw new Error(Zs(7));return e.charAt(0).toUpperCase()+e.slice(1)}function xu(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function ku(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||o:xu(e,n)||o,t&&(r=t(r,o,e)),r}var Su=function(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,a=e.transform,i=function(e){if(null==e[t])return null;var n=e[t],i=xu(e.theme,o)||{};return yu(e,n,(function(e){var n=ku(i,a,e);return e===n&&"string"===typeof e&&(n=ku(i,a,"".concat(t).concat("default"===e?"":wu(e)),e)),!1===r?n:f({},r,n)}))};return i.propTypes={},i.filterProps=[t],i};var Eu=function(e,t){return t?fu(e,t,{clone:!1}):e};var Cu={m:"margin",p:"padding"},Ou={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Nu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_u=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!Nu[e])return[e];e=Nu[e]}var t=s(e.split(""),2),n=t[0],r=t[1],o=Cu[n],a=Ou[r]||"";return Array.isArray(a)?a.map((function(e){return o+e})):[o+a]})),Pu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Tu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],ju=[].concat(Pu,Tu);function Ru(e,t,n,r){var o,a=null!=(o=xu(e,t,!1))?o:n;return"number"===typeof a?function(e){return"string"===typeof e?e:a*e}:Array.isArray(a)?function(e){return"string"===typeof e?e:a[e]}:"function"===typeof a?a:function(){}}function Lu(e){return Ru(e,"spacing",8)}function Au(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function zu(e,t,n,r){if(-1===t.indexOf(n))return null;var o=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=Au(t,n),e}),{})}}(_u(n),r);return yu(e,e[n],o)}function Iu(e,t){var n=Lu(e.theme);return Object.keys(e).map((function(r){return zu(e,t,r,n)})).reduce(Eu,{})}function Mu(e){return Iu(e,Pu)}function Fu(e){return Iu(e,Tu)}function Du(e){return Iu(e,ju)}Mu.propTypes={},Mu.filterProps=Pu,Fu.propTypes={},Fu.filterProps=Tu,Du.propTypes={},Du.filterProps=ju;var Bu=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.palette,o=void 0===r?{}:r,a=e.spacing,i=e.shape,l=void 0===i?{}:i,s=m(e,hc),u=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,r=e.unit,o=void 0===r?"px":r,a=e.step,i=void 0===a?5:a,l=m(e,du),s=pu(n),u=Object.keys(s);function c(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function f(e){var t="number"===typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-i/100).concat(o,")")}function d(e,t){var r=u.indexOf(t);return"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[u[r]]?n[u[r]]:t)-i/100).concat(o,")")}return x({keys:u,values:s,up:c,down:f,between:d,only:function(e){return u.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Lu({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?d-1:0),h=1;h0?Sc(Lc,--jc):0,Pc--,10===Rc&&(Pc=1,_c--),Rc}function Mc(){return Rc=jc2||Uc(Rc)>3?"":" "}function qc(e,t){for(;--t&&Mc()&&!(Rc<48||Rc>102||Rc>57&&Rc<65||Rc>70&&Rc<97););return Bc(e,Dc()+(t<6&&32==Fc()&&32==Mc()))}function Kc(e){for(;Mc();)switch(Rc){case e:return jc;case 34:case 39:34!==e&&39!==e&&Kc(Rc);break;case 40:41===e&&Kc(e);break;case 92:Mc()}return jc}function Qc(e,t){for(;Mc()&&e+Rc!==57&&(e+Rc!==84||47!==Fc()););return"/*"+Bc(t,jc-1)+"*"+gc(47===e?e:Mc())}function Yc(e){for(;!Uc(Fc());)Mc();return Bc(e,jc)}var Gc="-ms-",Xc="-moz-",Jc="-webkit-",Zc="comm",ef="rule",tf="decl",nf="@keyframes";function rf(e,t){for(var n="",r=Oc(e),o=0;o0&&Cc(S)-f&&Nc(p>32?cf(S+";",r,n,f-1):cf(xc(S," ","")+";",r,n,f-2),s);break;case 59:S+=";";default:if(Nc(k=sf(S,t,n,u,c,o,l,b,w=[],x=[],f),a),123===g)if(0===c)lf(S,t,k,k,w,a,f,l,x);else switch(99===d&&110===Sc(S,3)?100:d){case 100:case 108:case 109:case 115:lf(e,k,k,r&&Nc(sf(e,k,k,0,0,o,l,b,o,w=[],f),x),o,x,f,l,r?w:x);break;default:lf(S,k,k,k,[""],x,0,l,x)}}u=c=p=0,v=y=1,b=S="",f=i;break;case 58:f=1+Cc(S),p=h;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==Ic())continue;switch(S+=gc(g),g*v){case 38:y=c>0?1:(S+="\f",-1);break;case 44:l[u++]=(Cc(S)-1)*y,y=1;break;case 64:45===Fc()&&(S+=Wc(Mc())),d=Fc(),c=f=Cc(b=S+=Yc(Dc())),g++;break;case 45:45===h&&2==Cc(S)&&(v=0)}}return a}function sf(e,t,n,r,o,a,i,l,s,u,c){for(var f=o-1,d=0===o?a:[""],p=Oc(d),h=0,v=0,m=0;h0?d[y]+" "+g:xc(g,/&\f/g,d[y])))&&(s[m++]=b);return Ac(e,t,n,0===o?ef:l,s,u,c)}function uf(e,t,n){return Ac(e,t,n,Zc,gc(Rc),Ec(e,2,-2),0)}function cf(e,t,n,r){return Ac(e,t,n,tf,Ec(e,0,r),Ec(e,r+1,-1),r)}var ff=function(e,t,n){for(var r=0,o=0;r=o,o=Fc(),38===r&&12===o&&(t[n]=1),!Uc(o);)Mc();return Bc(e,jc)},df=function(e,t){return Hc(function(e,t){var n=-1,r=44;do{switch(Uc(r)){case 0:38===r&&12===Fc()&&(t[n]=1),e[n]+=ff(jc-1,t,n);break;case 2:e[n]+=Wc(r);break;case 4:if(44===r){e[++n]=58===Fc()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=gc(r)}}while(r=Mc());return e}(Vc(e),t))},pf=new WeakMap,hf=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||pf.get(n))&&!r){pf.set(e,!0);for(var o=[],a=df(t,o),i=n.props,l=0,s=0;l6)switch(Sc(e,t+1)){case 109:if(45!==Sc(e,t+4))break;case 102:return xc(e,/(.+:)(.+)-([^]+)/,"$1"+Jc+"$2-$3$1"+Xc+(108==Sc(e,t+3)?"$3":"$2-$3"))+e;case 115:return~kc(e,"stretch")?mf(xc(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Sc(e,t+1))break;case 6444:switch(Sc(e,Cc(e)-3-(~kc(e,"!important")&&10))){case 107:return xc(e,":",":"+Jc)+e;case 101:return xc(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Jc+(45===Sc(e,14)?"inline-":"")+"box$3$1"+Jc+"$2$3$1"+Gc+"$2box$3")+e}break;case 5936:switch(Sc(e,t+11)){case 114:return Jc+e+Gc+xc(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Jc+e+Gc+xc(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Jc+e+Gc+xc(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Jc+e+Gc+e+e}return e}var yf=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case tf:e.return=mf(e.value,e.length);break;case nf:return rf([zc(e,{value:xc(e.value,"@","@"+Jc)})],r);case ef:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return rf([zc(e,{props:[xc(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return rf([zc(e,{props:[xc(t,/:(plac\w+)/,":"+Jc+"input-$1")]}),zc(e,{props:[xc(t,/:(plac\w+)/,":-moz-$1")]}),zc(e,{props:[xc(t,/:(plac\w+)/,Gc+"input-$1")]})],r)}return""}))}}],gf=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||yf;var o,a,i={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n