local-operator-ui 0.34.48 → 0.34.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/main/index.js +2259 -47
- package/out/preload/index.js +1 -0
- package/out/renderer/assets/{_basePickBy-4PhBKMwz.js → _basePickBy-Coq1U1Is.js} +1 -1
- package/out/renderer/assets/{_baseUniq-DpFJNrpb.js → _baseUniq-CN5nbj15.js} +1 -1
- package/out/renderer/assets/agent-details-page-BOHG1UL8.js +6 -0
- package/out/renderer/assets/agent-hub-page-lDe6m3U_.js +11 -0
- package/out/renderer/assets/agents-page-CS2ctxLL.js +7 -0
- package/out/renderer/assets/{arc-DkuXQZT0.js → arc-CyEksofH.js} +1 -1
- package/out/renderer/assets/architectureDiagram-IEHRJDOE-o2ZHU4e3.js +36 -0
- package/out/renderer/assets/{blockDiagram-JOT3LUYC-2iLLg_nw.js → blockDiagram-JOT3LUYC-B0Yyp4_C.js} +1 -1
- package/out/renderer/assets/{book-open-CTi9TDfn.js → book-open-CEakesEi.js} +1 -1
- package/out/renderer/assets/browser-page-CjbkyuiR.js +1 -0
- package/out/renderer/assets/browser-webauthn-prompt-Dq82YVua.js +1 -0
- package/out/renderer/assets/{c4Diagram-VJAJSXHY-SvCGL91g.js → c4Diagram-VJAJSXHY-DLUNsMlf.js} +1 -1
- package/out/renderer/assets/channel-BrqzOdfK.js +1 -0
- package/out/renderer/assets/{chunk-4BMEZGHF-CzVlqRCP.js → chunk-4BMEZGHF-TEJuQZ1Y.js} +1 -1
- package/out/renderer/assets/{chunk-A2AXSNBT-DqhEqW0h.js → chunk-A2AXSNBT-B_dFl8CN.js} +1 -1
- package/out/renderer/assets/{chunk-AEK57VVT-BEa7M8E9.js → chunk-AEK57VVT-BZoQ5TO6.js} +1 -1
- package/out/renderer/assets/{chunk-D6G4REZN-4tI3iHrd.js → chunk-D6G4REZN-D1bYNZJL.js} +1 -1
- package/out/renderer/assets/{chunk-RZ5BOZE2-BSTylGcM.js → chunk-RZ5BOZE2-DbkFvpUt.js} +1 -1
- package/out/renderer/assets/{chunk-XZIHB7SX-BWyzWCnC.js → chunk-XZIHB7SX-C0c85hT-.js} +1 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-C4Q7B2pX.js +1 -0
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-C4Q7B2pX.js +1 -0
- package/out/renderer/assets/clone-T21nSsyt.js +1 -0
- package/out/renderer/assets/{console-mirror-CxkpeCdB.js → console-mirror-DDhXu5hQ.js} +2 -2
- package/out/renderer/assets/consoleCapture-DomsRGWw.js +1 -0
- package/out/renderer/assets/{conversation-input-sync-DFpqmO4l.js → conversation-input-sync-B3FVv0Mq.js} +257 -257
- package/out/renderer/assets/dagre-OKDRZEBW-CAb1XIuS.js +4 -0
- package/out/renderer/assets/diagram-SSKATNLV-CAh7vH7L.js +43 -0
- package/out/renderer/assets/diagram-VNBRO52H-CU4FF4Qr.js +24 -0
- package/out/renderer/assets/en-US-CHJkXXr4.js +1 -0
- package/out/renderer/assets/{erDiagram-Q7BY3M3F-D1W_lttQ.js → erDiagram-Q7BY3M3F-CbnNz_kj.js} +1 -1
- package/out/renderer/assets/error-boundary-etstfCzN.js +126 -0
- package/out/renderer/assets/{flowDiagram-4HSFHLVR-3Jb09NsW.js → flowDiagram-4HSFHLVR-BB6aJVKV.js} +1 -1
- package/out/renderer/assets/{format-CZUObkkr.js → format-esAOn2VS.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-APWFNJXF-BuFcOiO1.js → ganttDiagram-APWFNJXF-CtOJM4d7.js} +1 -1
- package/out/renderer/assets/gitGraphDiagram-7IBYFJ6S-DvrevAjH.js +65 -0
- package/out/renderer/assets/{graph-D8Y4lmRI.js → graph-DOR9Sgwh.js} +1 -1
- package/out/renderer/assets/index-5vl5RXGq.js +1 -0
- package/out/renderer/assets/index-9_-S4Njy.js +809 -0
- package/out/renderer/assets/index-CZ5usiad.js +7 -0
- package/out/renderer/assets/index-CftawgM9.js +57 -0
- package/out/renderer/assets/index-VwZaZzVv.css +1 -0
- package/out/renderer/assets/infoDiagram-PH2N3AL5-CTd32x3B.js +2 -0
- package/out/renderer/assets/installer-CjbOLDvI.js +1 -0
- package/out/renderer/assets/{journeyDiagram-U35MCT3I-BWLCHSce.js → journeyDiagram-U35MCT3I-2BsbTilL.js} +1 -1
- package/out/renderer/assets/{kanban-definition-NDS4AKOZ-D7-FbJp3.js → kanban-definition-NDS4AKOZ-DoYAcNl0.js} +1 -1
- package/out/renderer/assets/{layout-DogvO2Ky.js → layout-DSk91znb.js} +1 -1
- package/out/renderer/assets/legacy-agents-page-BGSPncrN.js +33 -0
- package/out/renderer/assets/{mermaid.core-CdeoM9AZ.js → mermaid.core-BqK7XNWH.js} +5 -5
- package/out/renderer/assets/mesh-page-BxEA5Aan.js +1 -0
- package/out/renderer/assets/mindmap-definition-ALO5MXBD-HV-ovM7g.js +95 -0
- package/out/renderer/assets/mini-Bco2ITLo.js +1 -0
- package/out/renderer/assets/{notebook-pen-D7t7mRlh.js → notebook-pen-DsGb6zKu.js} +1 -1
- package/out/renderer/assets/org-access-B_xqEqnd.js +1 -0
- package/out/renderer/assets/{org-surface-gate-n0a6WDBY.js → org-surface-gate-D4SilXIt.js} +1 -1
- package/out/renderer/assets/{page-header-CJAvj3rs.js → page-header-DZ04Whs5.js} +1 -1
- package/out/renderer/assets/{parseISO-CZfAC2_J.js → parseISO-BHJWTxrA.js} +1 -1
- package/out/renderer/assets/{pieDiagram-IB7DONF6-B22hqaTH.js → pieDiagram-IB7DONF6-BArx4Jik.js} +1 -1
- package/out/renderer/assets/{projects-page-Dg-fywlg.js → projects-page-DABVK4s_.js} +14 -14
- package/out/renderer/assets/publication-validation-BmkCCv-H.js +1 -0
- package/out/renderer/assets/{quadrantDiagram-7GDLP6J5-DJXJe1Jf.js → quadrantDiagram-7GDLP6J5-Dmmo_urD.js} +1 -1
- package/out/renderer/assets/{radar-MK3ICKWK-COD-ZwKJ.js → radar-MK3ICKWK-D8Sc1Ajv.js} +1 -1
- package/out/renderer/assets/radient-auth-buttons-BmQt2D1Y.js +1 -0
- package/out/renderer/assets/{requirementDiagram-KVF5MWMF-Cg7p0tZp.js → requirementDiagram-KVF5MWMF-BU04-wPA.js} +1 -1
- package/out/renderer/assets/sankeyDiagram-QLVOVGJD-CIQO7kso.js +10 -0
- package/out/renderer/assets/schedules-page-DllGJFS2.js +115 -0
- package/out/renderer/assets/{sequenceDiagram-X6HHIX6F-B2P7CUDU.js → sequenceDiagram-X6HHIX6F-BN2soxj_.js} +1 -1
- package/out/renderer/assets/settings-page-DKzDa5P5.js +292 -0
- package/out/renderer/assets/stateDiagram-DGXRK772-bGNaZvy4.js +1 -0
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-CNVQhmQM.js +1 -0
- package/out/renderer/assets/{timeline-definition-BDJGKUSR-CbnWjiR-.js → timeline-definition-BDJGKUSR-DmM_eb2d.js} +1 -1
- package/out/renderer/assets/ui-preferences-store-Byw1dJtt.js +1 -0
- package/out/renderer/assets/use-download-agent-mutation-CXv_tRQE.js +61 -0
- package/out/renderer/assets/{use-memberships-query-DR_Lujnw.js → use-memberships-query-C4IVeIBl.js} +1 -1
- package/out/renderer/assets/{use-session-snapshot-DKL97J-r.js → use-session-snapshot-CrOrWGgL.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-VJFVF3MP-Cq_N4nhd.js → xychartDiagram-VJFVF3MP-CbbQZrKE.js} +1 -1
- package/out/renderer/console-capture.html +5 -5
- package/out/renderer/index.html +7 -7
- package/out/renderer/installer.html +4 -4
- package/out/renderer/mini.html +7 -7
- package/package.json +3 -5
- package/out/renderer/assets/agent-details-page-Ci1JjvpV.js +0 -6
- package/out/renderer/assets/agent-hub-page-NtBm1phk.js +0 -11
- package/out/renderer/assets/agents-page-YFjN8oZC.js +0 -7
- package/out/renderer/assets/architectureDiagram-IEHRJDOE-DWa4IuFf.js +0 -36
- package/out/renderer/assets/browser-page-DEUUMy_g.js +0 -1
- package/out/renderer/assets/browser-webauthn-prompt-AacQARJZ.js +0 -1
- package/out/renderer/assets/channel-CRKSwn0G.js +0 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-BxJWvaym.js +0 -1
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-BxJWvaym.js +0 -1
- package/out/renderer/assets/clone-BCVTFSZA.js +0 -1
- package/out/renderer/assets/consoleCapture-C9FjfQJX.js +0 -1
- package/out/renderer/assets/dagre-OKDRZEBW-Bro14G70.js +0 -4
- package/out/renderer/assets/diagram-SSKATNLV-DxML5WmE.js +0 -43
- package/out/renderer/assets/diagram-VNBRO52H-C1VKCLuH.js +0 -24
- package/out/renderer/assets/en-US-BcB1DWxG.js +0 -1
- package/out/renderer/assets/error-boundary-C6UV5tx-.js +0 -126
- package/out/renderer/assets/gitGraphDiagram-7IBYFJ6S-BbZdk2nO.js +0 -65
- package/out/renderer/assets/index-B8qxAfMF.js +0 -55
- package/out/renderer/assets/index-D3f_KfVo.css +0 -1
- package/out/renderer/assets/index-D7GWaNpY.js +0 -809
- package/out/renderer/assets/index-Dhq36hI2.js +0 -7
- package/out/renderer/assets/index-Hr50KutK.js +0 -1
- package/out/renderer/assets/infoDiagram-PH2N3AL5-BVHpnvtw.js +0 -2
- package/out/renderer/assets/installer-B8s-TXTU.js +0 -1
- package/out/renderer/assets/legacy-agents-page-Dlp--Xt6.js +0 -33
- package/out/renderer/assets/mesh-page-BzfNUAkq.js +0 -1
- package/out/renderer/assets/messages-CZNg7vOE.js +0 -3
- package/out/renderer/assets/mindmap-definition-ALO5MXBD-CfocVEGs.js +0 -95
- package/out/renderer/assets/mini-D-rHRr3X.js +0 -1
- package/out/renderer/assets/org-access-BIipdCDk.js +0 -1
- package/out/renderer/assets/publication-validation-mYDoNagz.js +0 -1
- package/out/renderer/assets/radient-auth-buttons-BJmqjZos.js +0 -1
- package/out/renderer/assets/sankeyDiagram-QLVOVGJD-Qir1GlwB.js +0 -10
- package/out/renderer/assets/schedules-page-CtMNJr6J.js +0 -115
- package/out/renderer/assets/settings-page-CFbI2wWy.js +0 -292
- package/out/renderer/assets/stateDiagram-DGXRK772-CGQsk3sX.js +0 -1
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-CpHmsYwj.js +0 -1
- package/out/renderer/assets/use-download-agent-mutation-C7H5xbvf.js +0 -61
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import{r as p,h as ki,j as u,i as Mi,k as fu,s as _s,f as Qr,e as ae,l as mu,b as Mt,m as le,n as Ie,o as Us,p as Di,q as Xr,c as je}from"./index-B8qxAfMF.js";import{br as hu,bs as gu,bt as Zr,bu,bv as yu,bw as Ti,bx as vu,by as xu,bz as wu,bA as Ii,bB as Cu,bC as Ri,bD as Dt,bE as go,bF as Jr,bG as Su,bH as wt,bI as bo,bJ as Ei,bK as Oi,bL as Pu,a$ as ku,bM as Mu,S as Du,bN as Tu,a as Fi,bO as Iu,bP as Ni,bQ as Ru,bR as Eu,bS as Ou,bT as Fu,bU as Nu,bV as Au,bW as $u,bX as Lu,az as Ir,bY as Ys,bZ as ju,b_ as Lo,b$ as Vu,c0 as Bu,c1 as zu,c2 as Hu,c3 as Wu,c4 as _u,c5 as Uu,aA as Yu,c6 as qu,c7 as Ku,c8 as Gu,c9 as Qu,b8 as Xu,ca as Zu,cb as Ju,cc as ed,aN as td,cd as nd,ce as od,cf as rd}from"./index-D7GWaNpY.js";import{ah as er,C as Ai,u as es,aH as $i,dD as ts,dE as D,dF as sd,aO as Li,aP as ji,aF as Vi,aG as Sn,aJ as ad,bE as id,aq as Bi,dG as ld,aI as Pn,aQ as cd,aK as ud,a as dd,c as pd}from"./conversation-input-sync-DFpqmO4l.js";import{P as fd}from"./page-header-CJAvj3rs.js";import{ac as Io,ad as md,l as qt,B as bt,S as ns,$ as qs,L as gt,T as zi,I as Ho,z as bn,F as yn,G as vn,H as xn,J as Je,K as Rr,a0 as hd,a1 as gd,w as bd,a2 as yd,k as vd,X as xd,A as Ks}from"./error-boundary-C6UV5tx-.js";import"./messages-CZNg7vOE.js";import{s as Er,g as wd,b as Wo,c as Hi,d as Wi,e as Cd,l as Or,h as Sd,w as Gs,j as Pd,i as Jn,f as kd,k as Md}from"./format-CZUObkkr.js";import{a as tr,p as Qs}from"./parseISO-CZfAC2_J.js";import{t as we,c as st,m as _i,a as Ui,n as nr,g as os,k as Dd,b as Yi,f as qi}from"./en-US-BcB1DWxG.js";import"./console-mirror-CxkpeCdB.js";var Td=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Id=hu(function(e){return Td.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Rd=Id,Ed=function(t){return t!=="theme"},Xs=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Rd:Ed},Zs=function(t,n,o){var r;if(n){var s=n.shouldForwardProp;r=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof r!="function"&&o&&(r=t.__emotion_forwardProp),r},Od=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return vu(n,o,r),xu(function(){return wu(n,o,r)}),null},Fd=function e(t,n){var o=t.__emotion_real===t,r=o&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var i=Zs(t,n,o),l=i||Xs(r),c=!l("as");return function(){var d=arguments,m=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&m.push("label:"+s+";"),d[0]==null||d[0].raw===void 0)m.push.apply(m,d);else{var y=d[0];m.push(y[0]);for(var g=d.length,h=1;h<g;h++)m.push(d[h],y[h])}var v=gu(function(f,b,C){var w=c&&f.as||r,x="",P=[],k=f;if(f.theme==null){k={};for(var S in f)k[S]=f[S];k.theme=p.useContext(bu)}typeof f.className=="string"?x=yu(b.registered,P,f.className):f.className!=null&&(x=f.className+" ");var R=Ti(m.concat(P),b.registered,k);x+=b.key+"-"+R.name,a!==void 0&&(x+=" "+a);var E=c&&i===void 0?Xs(w):l,F={};for(var L in f)c&&L==="as"||E(L)&&(F[L]=f[L]);return F.className=x,C&&(F.ref=C),p.createElement(p.Fragment,null,p.createElement(Od,{cache:b,serialized:R,isStringTag:typeof w=="string"}),p.createElement(w,F))});return v.displayName=s!==void 0?s:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=r,v.__emotion_styles=m,v.__emotion_forwardProp=i,Object.defineProperty(v,"toString",{value:function(){return"."+a}}),v.withComponent=function(f,b){var C=e(f,Zr({},n,b,{shouldForwardProp:Zs(v,b,!0)}));return C.apply(void 0,m)},v}},Nd=["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"],Fr=Fd.bind(null);Nd.forEach(function(e){Fr[e]=Fr(e)});/**
|
|
2
|
-
* @mui/styled-engine v6.4.11
|
|
3
|
-
*
|
|
4
|
-
* @license MIT
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/function Ad(e,t){return Fr(e,t)}function $d(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Js=[];function ea(e){return Js[0]=e,Ti(Js)}const Ld=ki();function rs(e=Ld){return Ii(e)}function jd({styles:e,themeId:t,defaultTheme:n={}}){const o=rs(n),r=typeof e=="function"?e(t&&o[t]||o):e;return u.jsx(Cu,{styles:r})}const Vd=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??fu;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Bd(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=Vd(n);let s;return Array.isArray(t)?s=[o,...t]:typeof t=="function"?s=(...a)=>{const i=t(...a);return Mi(i)?{...o,...i}:o}:s={...o,...t},{...r,sx:s}}const ta=e=>e,zd=()=>{let e=ta;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ta}}},Hd=zd(),Wd={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Re(e,t,n="Mui"){const o=Wd[t];return o?`${n}-${o}`:`${Hd.generate(e)}-${t}`}function Se(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Re(e,r,n)}),o}function Ki(e){const{variants:t,...n}=e,o={variants:t,style:ea(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=ea(r.style))}),o}const _d=ki();function Ft(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ud(e){return e?(t,n)=>n[e]:null}function Yd(e,t,n){e.theme=Gd(e.theme)?n:e.theme[t]||e.theme}function jo(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>jo(e,o));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:r,...s}=n;o=s}return Gi(e,n.variants,[o])}return n?.isProcessed?n.style:n}function Gi(e,t,n=[]){let o;e:for(let r=0;r<t.length;r+=1){const s=t[r];if(typeof s.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(o))continue}else for(const a in s.props)if(e[a]!==s.props[a]&&e.ownerState?.[a]!==s.props[a])continue e;typeof s.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(s.style(o))):n.push(s.style)}return n}function qd(e={}){const{themeId:t,defaultTheme:n=_d,rootShouldForwardProp:o=Ft,slotShouldForwardProp:r=Ft}=e;function s(i){Yd(i,t,n)}return(i,l={})=>{$d(i,P=>P.filter(k=>k!==_s));const{name:c,slot:d,skipVariantsResolver:m,skipSx:y,overridesResolver:g=Ud(Xd(d)),...h}=l,v=m!==void 0?m:d&&d!=="Root"&&d!=="root"||!1,f=y||!1;let b=Ft;d==="Root"||d==="root"?b=o:d?b=r:Qd(i)&&(b=void 0);const C=Ad(i,{shouldForwardProp:b,label:Kd(),...h}),w=P=>{if(typeof P=="function"&&P.__emotion_real!==P)return function(S){return jo(S,P)};if(Mi(P)){const k=Ki(P);return k.variants?function(R){return jo(R,k)}:k.style}return P},x=(...P)=>{const k=[],S=P.map(w),R=[];if(k.push(s),c&&g&&R.push(function(M){const N=M.theme.components?.[c]?.styleOverrides;if(!N)return null;const I={};for(const T in N)I[T]=jo(M,N[T]);return g(M,I)}),c&&!v&&R.push(function(M){const N=M.theme?.components?.[c]?.variants;return N?Gi(M,N):null}),f||R.push(_s),Array.isArray(S[0])){const L=S.shift(),M=new Array(k.length).fill(""),$=new Array(R.length).fill("");let N;N=[...M,...L,...$],N.raw=[...M,...L.raw,...$],k.unshift(N)}const E=[...k,...S,...R],F=C(...E);return i.muiName&&(F.muiName=i.muiName),F};return C.withConfig&&(x.withConfig=C.withConfig),x}}function Kd(e,t){return void 0}function Gd(e){for(const t in e)return!1;return!0}function Qd(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Xd(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Qi(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Ri(t.components[n].defaultProps,o)}function Zd({props:e,name:t,defaultTheme:n,themeId:o}){let r=rs(n);return r=r[o]||r,Qi({theme:r,name:t,props:e})}function Jd(e,t,n,o,r){const[s,a]=p.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return Dt(()=>{if(!n)return;const i=n(e),l=()=>{a(i.matches)};return l(),i.addEventListener("change",l),()=>{i.removeEventListener("change",l)}},[e,n]),s}const ep={...Qr},Xi=ep.useSyncExternalStore;function tp(e,t,n,o,r){const s=p.useCallback(()=>t,[t]),a=p.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:d}=o(e);return()=>d}return s},[s,e,o,r,n]),[i,l]=p.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const d=n(e);return[()=>d.matches,m=>(d.addEventListener("change",m),()=>{d.removeEventListener("change",m)})]},[s,n,e]);return Xi(l,i,a)}function Zi(e={}){const{themeId:t}=e;return function(o,r={}){let s=Ii();s&&t&&(s=s[t]||s);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:d=!1}=Qi({name:"MuiUseMediaQuery",props:r,theme:s});let m=typeof o=="function"?o(s):o;return m=m.replace(/^@media( ?)/m,""),(Xi!==void 0?tp:Jd)(m,i,l,c,d)}}Zi();function na(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function Ji(e,t=166){let n;function o(...r){const s=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(s,t)}return o.clear=()=>{clearTimeout(n)},o}function Vo(e,t){return p.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function ut(e){return e&&e.ownerDocument||document}function Vt(e){return ut(e).defaultView||window}function oa(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let ra=0;function np(e){const[t,n]=p.useState(e),o=e||t;return p.useEffect(()=>{t==null&&(ra+=1,n(`mui-${ra}`))},[t]),o}const op={...Qr},sa=op.useId;function yo(e){if(sa!==void 0){const t=sa();return e??t}return np(e)}function aa({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=p.useRef(e!==void 0),[s,a]=p.useState(t),i=r?e:s,l=p.useCallback(c=>{r||a(c)},[]);return[i,l]}function rn(e){const t=p.useRef(e);return Dt(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function Ze(...e){const t=p.useRef(void 0),n=p.useCallback(o=>{const r=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,i=a(o);return typeof i=="function"?i:()=>{a(null)}}return s.current=o,()=>{s.current=null}});return()=>{r.forEach(s=>s?.())}},e);return p.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const ia={};function el(e,t){const n=p.useRef(ia);return n.current===ia&&(n.current=e(t)),n}const rp=[];function sp(e){p.useEffect(e,rp)}let ap=class tl{static create(){return new tl}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function nl(){const e=el(ap.create).current;return sp(e.disposeEffect),e}function la(e){try{return e.matches(":focus-visible")}catch{}return!1}function ol(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ee(e,t,n=void 0){const o={};for(const r in e){const s=e[r];let a="",i=!0;for(let l=0;l<s.length;l+=1){const c=s[l];c&&(a+=(i===!0?"":" ")+t(c),i=!1,n&&n[c]&&(a+=" "+n[c]))}o[r]=a}return o}function ip(e){return typeof e=="string"}function rl(e,t,n){return e===void 0||ip(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function sl(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function ca(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function al(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:s}=e;if(!t){const g=ae(n?.className,s,r?.className,o?.className),h={...n?.style,...r?.style,...o?.style},v={...n,...r,...o};return g.length>0&&(v.className=g),Object.keys(h).length>0&&(v.style=h),{props:v,internalRef:void 0}}const a=sl({...r,...o}),i=ca(o),l=ca(r),c=t(a),d=ae(c?.className,n?.className,s,r?.className,o?.className),m={...c?.style,...n?.style,...r?.style,...o?.style},y={...c,...n,...l,...i};return d.length>0&&(y.className=d),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:c.ref}}function il(e,t,n){return typeof e=="function"?e(t,n):e}function ll(e){const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...s}=e,a=r?{}:il(n,o),{props:i,internalRef:l}=al({...s,externalSlotProps:a}),c=Ze(l,a?.ref,e.additionalProps?.ref);return rl(t,{...i,ref:c},o)}function vo(e){return parseInt(p.version,10)>=19?e?.props?.ref||null:e?.ref||null}const ua={theme:void 0};function lp(e){let t,n;return function(r){let s=t;return(s===void 0||r.theme!==n)&&(ua.theme=r.theme,s=Ki(e(ua)),t=s,n=r.theme),s}}const or=mu();function zn(){const e=rs(or);return e[go]||e}function De({props:e,name:t}){return Zd({props:e,name:t,defaultTheme:or,themeId:go})}function cl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ct=e=>cl(e)&&e!=="classes",B=qd({themeId:go,defaultTheme:or,rootShouldForwardProp:Ct});function ul(e,t,n){const o=we(e,n?.in);if(isNaN(t))return st(e,NaN);if(!t)return o;const r=o.getDate(),s=st(e,o.getTime());s.setMonth(o.getMonth()+t+1,0);const a=s.getDate();return r>=a?s:(o.setFullYear(s.getFullYear(),s.getMonth(),r),o)}function dl(e,t,n){return st(e,+we(e)+t)}function cp(e,t,n){return dl(e,t*_i)}function up(e,t,n){const o=we(e,n?.in);return o.setTime(o.getTime()+t*Ui),o}function dp(e,t,n){return dl(e,t*1e3)}function pp(e,t,n){return tr(e,t*7,n)}function fp(e,t,n){return ul(e,t*12,n)}function mp(e,t,n){const[o,r]=nr(n?.in,e,t);return+Er(o)==+Er(r)}function da(e,t){const n=we(e,t?.in);return n.setHours(23,59,59,999),n}function hp(e,t){const n=we(e,t?.in),o=n.getMonth();return n.setFullYear(n.getFullYear(),o+1,0),n.setHours(23,59,59,999),n}function gp(e,t){const n=we(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function pa(e,t){const n=we(e,t?.in),o=n.getFullYear();return n.setFullYear(o+1,0,0),n.setHours(23,59,59,999),n}function bp(e,t){const n=os(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=we(e,t?.in),s=r.getDay(),a=(s<o?-7:0)+6-(s-o);return r.setDate(r.getDate()+a),r.setHours(23,59,59,999),r}function yp(e,t){return we(e,t?.in).getDate()}function pl(e,t){const n=we(e,t?.in),o=n.getFullYear(),r=n.getMonth(),s=st(n,0);return s.setFullYear(o,r+1,0),s.setHours(0,0,0,0),s.getDate()}function vp(){return Object.assign({},os())}function xp(e,t){return we(e,t?.in).getHours()}function wp(e,t){const n=we(e,t?.in).getDay();return n===0?7:n}function Cp(e){return we(e).getMilliseconds()}function Sp(e,t){return we(e,t?.in).getMinutes()}function Pp(e,t){return we(e,t?.in).getMonth()}function kp(e){return we(e).getSeconds()}function Mp(e,t){return we(e,t?.in).getFullYear()}function xr(e,t){return+we(e)>+we(t)}function wr(e,t){return+we(e)<+we(t)}function Dp(e,t){return+we(e)==+we(t)}function Tp(e,t){const n=Ip(t)?new t(0):st(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function Ip(e){return typeof e=="function"&&e.prototype?.constructor===e}const Rp=10;class fl{subPriority=0;validate(t,n){return!0}}class Ep extends fl{constructor(t,n,o,r,s){super(),this.value=t,this.validateValue=n,this.setValue=o,this.priority=r,s&&(this.subPriority=s)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,o){return this.setValue(t,n,this.value,o)}}class Op extends fl{priority=Rp;subPriority=-1;constructor(t,n){super(),this.context=t||(o=>st(n,o))}set(t,n){return n.timestampIsSet?t:st(t,Tp(t,this.context))}}class $e{run(t,n,o,r){const s=this.parse(t,n,o,r);return s?{setter:new Ep(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(t,n,o){return!0}}class Fp extends $e{priority=140;parse(t,n,o){switch(n){case"G":case"GG":case"GGG":return o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"});case"GGGGG":return o.era(t,{width:"narrow"});case"GGGG":default:return o.era(t,{width:"wide"})||o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"})}}set(t,n,o){return n.era=o,t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}const Ge={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Rt={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Qe(e,t){return e&&{value:t(e.value),rest:e.rest}}function _e(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Et(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const o=n[1]==="+"?1:-1,r=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:o*(r*_i+s*Ui+a*Dd),rest:t.slice(n[0].length)}}function ml(e){return _e(Ge.anyDigitsSigned,e)}function Ye(e,t){switch(e){case 1:return _e(Ge.singleDigit,t);case 2:return _e(Ge.twoDigits,t);case 3:return _e(Ge.threeDigits,t);case 4:return _e(Ge.fourDigits,t);default:return _e(new RegExp("^\\d{1,"+e+"}"),t)}}function _o(e,t){switch(e){case 1:return _e(Ge.singleDigitSigned,t);case 2:return _e(Ge.twoDigitsSigned,t);case 3:return _e(Ge.threeDigitsSigned,t);case 4:return _e(Ge.fourDigitsSigned,t);default:return _e(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ss(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function hl(e,t){const n=t>0,o=n?t:1-t;let r;if(o<=50)r=e||100;else{const s=o+50,a=Math.trunc(s/100)*100,i=e>=s%100;r=e+a-(i?100:0)}return n?r:1-r}function gl(e){return e%400===0||e%4===0&&e%100!==0}class Np extends $e{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,n,o){const r=s=>({year:s,isTwoDigitYear:n==="yy"});switch(n){case"y":return Qe(Ye(4,t),r);case"yo":return Qe(o.ordinalNumber(t,{unit:"year"}),r);default:return Qe(Ye(n.length,t),r)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,o){const r=t.getFullYear();if(o.isTwoDigitYear){const a=hl(o.year,r);return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}const s=!("era"in n)||n.era===1?o.year:1-o.year;return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}}class Ap extends $e{priority=130;parse(t,n,o){const r=s=>({year:s,isTwoDigitYear:n==="YY"});switch(n){case"Y":return Qe(Ye(4,t),r);case"Yo":return Qe(o.ordinalNumber(t,{unit:"year"}),r);default:return Qe(Ye(n.length,t),r)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,o,r){const s=wd(t,r);if(o.isTwoDigitYear){const i=hl(o.year,s);return t.setFullYear(i,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),Wo(t,r)}const a=!("era"in n)||n.era===1?o.year:1-o.year;return t.setFullYear(a,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),Wo(t,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class $p extends $e{priority=130;parse(t,n){return _o(n==="R"?4:n.length,t)}set(t,n,o){const r=st(t,0);return r.setFullYear(o,0,4),r.setHours(0,0,0,0),Hi(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class Lp extends $e{priority=130;parse(t,n){return _o(n==="u"?4:n.length,t)}set(t,n,o){return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class jp extends $e{priority=120;parse(t,n,o){switch(n){case"Q":case"QQ":return Ye(n.length,t);case"Qo":return o.ordinalNumber(t,{unit:"quarter"});case"QQQ":return o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(t,{width:"wide",context:"formatting"})||o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class Vp extends $e{priority=120;parse(t,n,o){switch(n){case"q":case"qq":return Ye(n.length,t);case"qo":return o.ordinalNumber(t,{unit:"quarter"});case"qqq":return o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(t,{width:"wide",context:"standalone"})||o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class Bp extends $e{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,n,o){const r=s=>s-1;switch(n){case"M":return Qe(_e(Ge.month,t),r);case"MM":return Qe(Ye(2,t),r);case"Mo":return Qe(o.ordinalNumber(t,{unit:"month"}),r);case"MMM":return o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(t,{width:"wide",context:"formatting"})||o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}}class zp extends $e{priority=110;parse(t,n,o){const r=s=>s-1;switch(n){case"L":return Qe(_e(Ge.month,t),r);case"LL":return Qe(Ye(2,t),r);case"Lo":return Qe(o.ordinalNumber(t,{unit:"month"}),r);case"LLL":return o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(t,{width:"wide",context:"standalone"})||o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function Hp(e,t,n){const o=we(e,n?.in),r=Wi(o,n)-t;return o.setDate(o.getDate()-r*7),we(o,n?.in)}class Wp extends $e{priority=100;parse(t,n,o){switch(n){case"w":return _e(Ge.week,t);case"wo":return o.ordinalNumber(t,{unit:"week"});default:return Ye(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,o,r){return Wo(Hp(t,o,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function _p(e,t,n){const o=we(e,n?.in),r=Cd(o,n)-t;return o.setDate(o.getDate()-r*7),o}class Up extends $e{priority=100;parse(t,n,o){switch(n){case"I":return _e(Ge.week,t);case"Io":return o.ordinalNumber(t,{unit:"week"});default:return Ye(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,o){return Hi(_p(t,o))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const Yp=[31,28,31,30,31,30,31,31,30,31,30,31],qp=[31,29,31,30,31,30,31,31,30,31,30,31];class Kp extends $e{priority=90;subPriority=1;parse(t,n,o){switch(n){case"d":return _e(Ge.date,t);case"do":return o.ordinalNumber(t,{unit:"date"});default:return Ye(n.length,t)}}validate(t,n){const o=t.getFullYear(),r=gl(o),s=t.getMonth();return r?n>=1&&n<=qp[s]:n>=1&&n<=Yp[s]}set(t,n,o){return t.setDate(o),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class Gp extends $e{priority=90;subpriority=1;parse(t,n,o){switch(n){case"D":case"DD":return _e(Ge.dayOfYear,t);case"Do":return o.ordinalNumber(t,{unit:"date"});default:return Ye(n.length,t)}}validate(t,n){const o=t.getFullYear();return gl(o)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,o){return t.setMonth(0,o),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function as(e,t,n){const o=os(),r=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=we(e,n?.in),a=s.getDay(),l=(t%7+7)%7,c=7-r,d=t<0||t>6?t-(a+c)%7:(l+c)%7-(a+c)%7;return tr(s,d,n)}class Qp extends $e{priority=90;parse(t,n,o){switch(n){case"E":case"EE":case"EEE":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,o,r){return t=as(t,o,r),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class Xp extends $e{priority=90;parse(t,n,o,r){const s=a=>{const i=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+i};switch(n){case"e":case"ee":return Qe(Ye(n.length,t),s);case"eo":return Qe(o.ordinalNumber(t,{unit:"day"}),s);case"eee":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeeee":return o.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,o,r){return t=as(t,o,r),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class Zp extends $e{priority=90;parse(t,n,o,r){const s=a=>{const i=Math.floor((a-1)/7)*7;return(a+r.weekStartsOn+6)%7+i};switch(n){case"c":case"cc":return Qe(Ye(n.length,t),s);case"co":return Qe(o.ordinalNumber(t,{unit:"day"}),s);case"ccc":return o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"ccccc":return o.day(t,{width:"narrow",context:"standalone"});case"cccccc":return o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(t,{width:"wide",context:"standalone"})||o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,o,r){return t=as(t,o,r),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function Jp(e,t,n){const o=we(e,n?.in),r=wp(o,n),s=t-r;return tr(o,s,n)}class ef extends $e{priority=90;parse(t,n,o){const r=s=>s===0?7:s;switch(n){case"i":case"ii":return Ye(n.length,t);case"io":return o.ordinalNumber(t,{unit:"day"});case"iii":return Qe(o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return Qe(o.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Qe(o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),r);case"iiii":default:return Qe(o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),r)}}validate(t,n){return n>=1&&n<=7}set(t,n,o){return t=Jp(t,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class tf extends $e{priority=80;parse(t,n,o){switch(n){case"a":case"aa":case"aaa":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,o){return t.setHours(ss(o),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class nf extends $e{priority=80;parse(t,n,o){switch(n){case"b":case"bb":case"bbb":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,o){return t.setHours(ss(o),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class of extends $e{priority=80;parse(t,n,o){switch(n){case"B":case"BB":case"BBB":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,o){return t.setHours(ss(o),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class rf extends $e{priority=70;parse(t,n,o){switch(n){case"h":return _e(Ge.hour12h,t);case"ho":return o.ordinalNumber(t,{unit:"hour"});default:return Ye(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,o){const r=t.getHours()>=12;return r&&o<12?t.setHours(o+12,0,0,0):!r&&o===12?t.setHours(0,0,0,0):t.setHours(o,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class sf extends $e{priority=70;parse(t,n,o){switch(n){case"H":return _e(Ge.hour23h,t);case"Ho":return o.ordinalNumber(t,{unit:"hour"});default:return Ye(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,o){return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class af extends $e{priority=70;parse(t,n,o){switch(n){case"K":return _e(Ge.hour11h,t);case"Ko":return o.ordinalNumber(t,{unit:"hour"});default:return Ye(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,o){return t.getHours()>=12&&o<12?t.setHours(o+12,0,0,0):t.setHours(o,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class lf extends $e{priority=70;parse(t,n,o){switch(n){case"k":return _e(Ge.hour24h,t);case"ko":return o.ordinalNumber(t,{unit:"hour"});default:return Ye(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,o){const r=o<=24?o%24:o;return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class cf extends $e{priority=60;parse(t,n,o){switch(n){case"m":return _e(Ge.minute,t);case"mo":return o.ordinalNumber(t,{unit:"minute"});default:return Ye(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,o){return t.setMinutes(o,0,0),t}incompatibleTokens=["t","T"]}class uf extends $e{priority=50;parse(t,n,o){switch(n){case"s":return _e(Ge.second,t);case"so":return o.ordinalNumber(t,{unit:"second"});default:return Ye(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,o){return t.setSeconds(o,0),t}incompatibleTokens=["t","T"]}class df extends $e{priority=30;parse(t,n){const o=r=>Math.trunc(r*Math.pow(10,-n.length+3));return Qe(Ye(n.length,t),o)}set(t,n,o){return t.setMilliseconds(o),t}incompatibleTokens=["t","T"]}class pf extends $e{priority=10;parse(t,n){switch(n){case"X":return Et(Rt.basicOptionalMinutes,t);case"XX":return Et(Rt.basic,t);case"XXXX":return Et(Rt.basicOptionalSeconds,t);case"XXXXX":return Et(Rt.extendedOptionalSeconds,t);case"XXX":default:return Et(Rt.extended,t)}}set(t,n,o){return n.timestampIsSet?t:st(t,t.getTime()-Yi(t)-o)}incompatibleTokens=["t","T","x"]}class ff extends $e{priority=10;parse(t,n){switch(n){case"x":return Et(Rt.basicOptionalMinutes,t);case"xx":return Et(Rt.basic,t);case"xxxx":return Et(Rt.basicOptionalSeconds,t);case"xxxxx":return Et(Rt.extendedOptionalSeconds,t);case"xxx":default:return Et(Rt.extended,t)}}set(t,n,o){return n.timestampIsSet?t:st(t,t.getTime()-Yi(t)-o)}incompatibleTokens=["t","T","X"]}class mf extends $e{priority=40;parse(t){return ml(t)}set(t,n,o){return[st(t,o*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class hf extends $e{priority=20;parse(t){return ml(t)}set(t,n,o){return[st(t,o),{timestampIsSet:!0}]}incompatibleTokens="*"}const gf={G:new Fp,y:new Np,Y:new Ap,R:new $p,u:new Lp,Q:new jp,q:new Vp,M:new Bp,L:new zp,w:new Wp,I:new Up,d:new Kp,D:new Gp,E:new Qp,e:new Xp,c:new Zp,i:new ef,a:new tf,b:new nf,B:new of,h:new rf,H:new sf,K:new af,k:new lf,m:new cf,s:new uf,S:new df,X:new pf,x:new ff,t:new mf,T:new hf},bf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vf=/^'([^]*?)'?$/,xf=/''/g,wf=/\S/,Cf=/[a-zA-Z]/;function Sf(e,t,n,o){const r=()=>st(o?.in||n,NaN),s=vp(),a=o?.locale??s.locale??qi,i=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!t)return e?r():we(n,o?.in);const c={firstWeekContainsDate:i,weekStartsOn:l,locale:a},d=[new Op(o?.in,n)],m=t.match(yf).map(f=>{const b=f[0];if(b in Or){const C=Or[b];return C(f,a.formatLong)}return f}).join("").match(bf),y=[];for(let f of m){!o?.useAdditionalWeekYearTokens&&Sd(f)&&Gs(f,t,e),!o?.useAdditionalDayOfYearTokens&&Pd(f)&&Gs(f,t,e);const b=f[0],C=gf[b];if(C){const{incompatibleTokens:w}=C;if(Array.isArray(w)){const P=y.find(k=>w.includes(k.token)||k.token===b);if(P)throw new RangeError(`The format string mustn't contain \`${P.fullToken}\` and \`${f}\` at the same time`)}else if(C.incompatibleTokens==="*"&&y.length>0)throw new RangeError(`The format string mustn't contain \`${f}\` and any other token at the same time`);y.push({token:b,fullToken:f});const x=C.run(e,f,a.match,c);if(!x)return r();d.push(x.setter),e=x.rest}else{if(b.match(Cf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");if(f==="''"?f="'":b==="'"&&(f=Pf(f)),e.indexOf(f)===0)e=e.slice(f.length);else return r()}}if(e.length>0&&wf.test(e))return r();const g=d.map(f=>f.priority).sort((f,b)=>b-f).filter((f,b,C)=>C.indexOf(f)===b).map(f=>d.filter(b=>b.priority===f).sort((b,C)=>C.subPriority-b.subPriority)).map(f=>f[0]);let h=we(n,o?.in);if(isNaN(+h))return r();const v={};for(const f of g){if(!f.validate(h,c))return r();const b=f.set(h,v,c);Array.isArray(b)?(h=b[0],Object.assign(v,b[1])):h=b}return h}function Pf(e){return e.match(vf)[1].replace(xf,"'")}function fa(e,t){const n=we(e,t?.in);return n.setMinutes(0,0,0),n}function kf(e,t,n){const[o,r]=nr(n?.in,e,t);return+fa(o)==+fa(r)}function Mf(e,t,n){const[o,r]=nr(n?.in,e,t);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function Df(e,t,n){const[o,r]=nr(n?.in,e,t);return o.getFullYear()===r.getFullYear()}function Tf(e,t,n){const o=+we(e,n?.in),[r,s]=[+we(t.start,n?.in),+we(t.end,n?.in)].sort((a,i)=>a-i);return o>=r&&o<=s}function If(e,t,n){const o=we(e,n?.in),r=o.getFullYear(),s=o.getDate(),a=st(e,0);a.setFullYear(r,t,15),a.setHours(0,0,0,0);const i=pl(a);return o.setMonth(t,Math.min(s,i)),o}function Rf(e,t,n){const o=we(e,n?.in);return o.setDate(t),o}function Ef(e,t,n){const o=we(e,n?.in);return o.setHours(t),o}function Of(e,t,n){const o=we(e,n?.in);return o.setMilliseconds(t),o}function Ff(e,t,n){const o=we(e,n?.in);return o.setMinutes(t),o}function Nf(e,t,n){const o=we(e,n?.in);return o.setSeconds(t),o}function Af(e,t,n){const o=we(e,n?.in);return isNaN(+o)?st(e,NaN):(o.setFullYear(t),o)}function Nr(e,t){return Nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Nr(e,t)}function is(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nr(e,t)}function $f(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Lf(e,t){e.classList?e.classList.add(t):$f(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function ma(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function jf(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=ma(e.className,t):e.setAttribute("class",ma(e.className&&e.className.baseVal||"",t))}const ha={disabled:!1},Uo=Mt.createContext(null);var bl=function(t){return t.scrollTop},eo="unmounted",tn="exited",nn="entering",wn="entered",Ar="exiting",Tt=function(e){is(t,e);function t(o,r){var s;s=e.call(this,o,r)||this;var a=r,i=a&&!a.isMounting?o.enter:o.appear,l;return s.appearStatus=null,o.in?i?(l=tn,s.appearStatus=nn):l=wn:o.unmountOnExit||o.mountOnEnter?l=eo:l=tn,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(r,s){var a=r.in;return a&&s.status===eo?{status:tn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var s=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==nn&&a!==wn&&(s=nn):(a===nn||a===wn)&&(s=Ar)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,s,a,i;return s=a=i=r,r!=null&&typeof r!="number"&&(s=r.exit,a=r.enter,i=r.appear!==void 0?r.appear:a),{exit:s,enter:a,appear:i}},n.updateStatus=function(r,s){if(r===void 0&&(r=!1),s!==null)if(this.cancelNextCallback(),s===nn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Io.findDOMNode(this);a&&bl(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===tn&&this.setState({status:eo})},n.performEnter=function(r){var s=this,a=this.props.enter,i=this.context?this.context.isMounting:r,l=this.props.nodeRef?[i]:[Io.findDOMNode(this),i],c=l[0],d=l[1],m=this.getTimeouts(),y=i?m.appear:m.enter;if(!r&&!a||ha.disabled){this.safeSetState({status:wn},function(){s.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:nn},function(){s.props.onEntering(c,d),s.onTransitionEnd(y,function(){s.safeSetState({status:wn},function(){s.props.onEntered(c,d)})})})},n.performExit=function(){var r=this,s=this.props.exit,a=this.getTimeouts(),i=this.props.nodeRef?void 0:Io.findDOMNode(this);if(!s||ha.disabled){this.safeSetState({status:tn},function(){r.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Ar},function(){r.props.onExiting(i),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:tn},function(){r.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,s){s=this.setNextCallback(s),this.setState(r,s)},n.setNextCallback=function(r){var s=this,a=!0;return this.nextCallback=function(i){a&&(a=!1,s.nextCallback=null,r(i))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:Io.findDOMNode(this),i=r==null&&!this.props.addEndListener;if(!a||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===eo)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var i=Jr(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Mt.createElement(Uo.Provider,{value:null},typeof a=="function"?a(r,i):Mt.cloneElement(Mt.Children.only(a),i))},t}(Mt.Component);Tt.contextType=Uo;Tt.propTypes={};function hn(){}Tt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hn,onEntering:hn,onEntered:hn,onExit:hn,onExiting:hn,onExited:hn};Tt.UNMOUNTED=eo;Tt.EXITED=tn;Tt.ENTERING=nn;Tt.ENTERED=wn;Tt.EXITING=Ar;var Vf=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return Lf(t,o)})},Cr=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return jf(t,o)})},ls=function(e){is(t,e);function t(){for(var o,r=arguments.length,s=new Array(r),a=0;a<r;a++)s[a]=arguments[a];return o=e.call.apply(e,[this].concat(s))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(i,l){var c=o.resolveArguments(i,l),d=c[0],m=c[1];o.removeClasses(d,"exit"),o.addClass(d,m?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(i,l)},o.onEntering=function(i,l){var c=o.resolveArguments(i,l),d=c[0],m=c[1],y=m?"appear":"enter";o.addClass(d,y,"active"),o.props.onEntering&&o.props.onEntering(i,l)},o.onEntered=function(i,l){var c=o.resolveArguments(i,l),d=c[0],m=c[1],y=m?"appear":"enter";o.removeClasses(d,y),o.addClass(d,y,"done"),o.props.onEntered&&o.props.onEntered(i,l)},o.onExit=function(i){var l=o.resolveArguments(i),c=l[0];o.removeClasses(c,"appear"),o.removeClasses(c,"enter"),o.addClass(c,"exit","base"),o.props.onExit&&o.props.onExit(i)},o.onExiting=function(i){var l=o.resolveArguments(i),c=l[0];o.addClass(c,"exit","active"),o.props.onExiting&&o.props.onExiting(i)},o.onExited=function(i){var l=o.resolveArguments(i),c=l[0];o.removeClasses(c,"exit"),o.addClass(c,"exit","done"),o.props.onExited&&o.props.onExited(i)},o.resolveArguments=function(i,l){return o.props.nodeRef?[o.props.nodeRef.current,i]:[i,l]},o.getClassNames=function(i){var l=o.props.classNames,c=typeof l=="string",d=c&&l?l+"-":"",m=c?""+d+i:l[i],y=c?m+"-active":l[i+"Active"],g=c?m+"-done":l[i+"Done"];return{baseClassName:m,activeClassName:y,doneClassName:g}},o}var n=t.prototype;return n.addClass=function(r,s,a){var i=this.getClassNames(s)[a+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;s==="appear"&&a==="done"&&c&&(i+=" "+c),a==="active"&&r&&bl(r),i&&(this.appliedClasses[s][a]=i,Vf(r,i))},n.removeClasses=function(r,s){var a=this.appliedClasses[s],i=a.base,l=a.active,c=a.done;this.appliedClasses[s]={},i&&Cr(r,i),l&&Cr(r,l),c&&Cr(r,c)},n.render=function(){var r=this.props;r.classNames;var s=Jr(r,["classNames"]);return Mt.createElement(Tt,Zr({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Mt.Component);ls.defaultProps={classNames:""};ls.propTypes={};function Bf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cs(e,t){var n=function(s){return t&&p.isValidElement(s)?t(s):s},o=Object.create(null);return e&&p.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function zf(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var o=Object.create(null),r=[];for(var s in e)s in t?r.length&&(o[s]=r,r=[]):r.push(s);var a,i={};for(var l in t){if(o[l])for(a=0;a<o[l].length;a++){var c=o[l][a];i[o[l][a]]=n(c)}i[l]=n(l)}for(a=0;a<r.length;a++)i[r[a]]=n(r[a]);return i}function on(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Hf(e,t){return cs(e.children,function(n){return p.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:on(n,"appear",e),enter:on(n,"enter",e),exit:on(n,"exit",e)})})}function Wf(e,t,n){var o=cs(e.children),r=zf(t,o);return Object.keys(r).forEach(function(s){var a=r[s];if(p.isValidElement(a)){var i=s in t,l=s in o,c=t[s],d=p.isValidElement(c)&&!c.props.in;l&&(!i||d)?r[s]=p.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:on(a,"exit",e),enter:on(a,"enter",e)}):!l&&i&&!d?r[s]=p.cloneElement(a,{in:!1}):l&&i&&p.isValidElement(c)&&(r[s]=p.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:on(a,"exit",e),enter:on(a,"enter",e)}))}}),r}var _f=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Uf={component:"div",childFactory:function(t){return t}},xo=function(e){is(t,e);function t(o,r){var s;s=e.call(this,o,r)||this;var a=s.handleExited.bind(Bf(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,s){var a=s.children,i=s.handleExited,l=s.firstRender;return{children:l?Hf(r,i):Wf(r,a,i),firstRender:!1}},n.handleExited=function(r,s){var a=cs(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(s),this.mounted&&this.setState(function(i){var l=Zr({},i.children);return delete l[r.key],{children:l}}))},n.render=function(){var r=this.props,s=r.component,a=r.childFactory,i=Jr(r,["component","childFactory"]),l=this.state.contextValue,c=_f(this.state.children).map(a);return delete i.appear,delete i.enter,delete i.exit,s===null?Mt.createElement(Uo.Provider,{value:l},c):Mt.createElement(Uo.Provider,{value:l},Mt.createElement(s,i,c))},t}(Mt.Component);xo.propTypes={};xo.defaultProps=Uf;const Rn="schedules",Yf=e=>e.invalidateQueries({queryKey:[Rn]}),yl="agentSchedules",qf=(e=1,t=10)=>{const{baseUrl:n}=er;return Ai({queryKey:[Rn,"all",e,t],queryFn:()=>ts.listAllSchedules(n,e,t),enabled:!!n})},Kf=()=>{const e=es(),{baseUrl:t}=er;return $i({mutationFn:({scheduleId:n,scheduleData:o})=>ts.editSchedule(t,n,o),onSuccess:n=>{const o=n.result?.agent_id;e.invalidateQueries({queryKey:[Rn,"all"]}),e.invalidateQueries({queryKey:[Rn,n.result?.id]}),o&&e.invalidateQueries({queryKey:[yl,o]})}})},Gf=()=>{const e=es(),{baseUrl:t}=er;return $i({mutationFn:({scheduleId:n})=>ts.removeSchedule(t,n),onSuccess:(n,o)=>{e.invalidateQueries({queryKey:[Rn,"all"]}),e.invalidateQueries({queryKey:[Rn,o.scheduleId]}),o.agentId&&e.invalidateQueries({queryKey:[yl,o.agentId]})}})};function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},O.apply(null,arguments)}const Qf={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Xf={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class Zf{constructor(t){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib=void 0,this.locale=void 0,this.formats=void 0,this.formatTokenMap=Qf,this.escapedCharacters={start:"'",end:"'"},this.longFormatters=void 0,this.date=a=>typeof a>"u"?new Date:a===null?null:new Date(a),this.getInvalidDate=()=>new Date("Invalid Date"),this.getTimezone=()=>"default",this.setTimezone=a=>a,this.toJsDate=a=>a,this.getCurrentLocaleCode=()=>this.locale.code,this.is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"})),this.expandFormat=a=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return a.match(i).map(l=>{const c=l[0];if(c==="p"||c==="P"){const d=this.longFormatters[c];return d(l,this.locale.formatLong)}return l}).join("")},this.formatNumber=a=>a,this.getDayOfWeek=a=>a.getDay()+1;const{locale:n,formats:o,longFormatters:r,lib:s}=t;this.locale=n,this.formats=O({},Xf,o),this.longFormatters=r,this.lib=s||"date-fns"}}class Jf extends Zf{constructor({locale:t,formats:n}={}){super({locale:t??qi,formats:n,longFormatters:Or}),this.parse=(o,r)=>o===""?null:Sf(o,r,new Date,{locale:this.locale}),this.isValid=o=>o==null?!1:Jn(o),this.format=(o,r)=>this.formatByString(o,this.formats[r]),this.formatByString=(o,r)=>kd(o,r,{locale:this.locale}),this.isEqual=(o,r)=>o===null&&r===null?!0:o===null||r===null?!1:Dp(o,r),this.isSameYear=(o,r)=>Df(o,r),this.isSameMonth=(o,r)=>Mf(o,r),this.isSameDay=(o,r)=>mp(o,r),this.isSameHour=(o,r)=>kf(o,r),this.isAfter=(o,r)=>xr(o,r),this.isAfterYear=(o,r)=>xr(o,pa(r)),this.isAfterDay=(o,r)=>xr(o,da(r)),this.isBefore=(o,r)=>wr(o,r),this.isBeforeYear=(o,r)=>wr(o,this.startOfYear(r)),this.isBeforeDay=(o,r)=>wr(o,this.startOfDay(r)),this.isWithinRange=(o,[r,s])=>Tf(o,{start:r,end:s}),this.startOfYear=o=>Md(o),this.startOfMonth=o=>gp(o),this.startOfWeek=o=>Wo(o,{locale:this.locale}),this.startOfDay=o=>Er(o),this.endOfYear=o=>pa(o),this.endOfMonth=o=>hp(o),this.endOfWeek=o=>bp(o,{locale:this.locale}),this.endOfDay=o=>da(o),this.addYears=(o,r)=>fp(o,r),this.addMonths=(o,r)=>ul(o,r),this.addWeeks=(o,r)=>pp(o,r),this.addDays=(o,r)=>tr(o,r),this.addHours=(o,r)=>cp(o,r),this.addMinutes=(o,r)=>up(o,r),this.addSeconds=(o,r)=>dp(o,r),this.getYear=o=>Mp(o),this.getMonth=o=>Pp(o),this.getDate=o=>yp(o),this.getHours=o=>xp(o),this.getMinutes=o=>Sp(o),this.getSeconds=o=>kp(o),this.getMilliseconds=o=>Cp(o),this.setYear=(o,r)=>Af(o,r),this.setMonth=(o,r)=>If(o,r),this.setDate=(o,r)=>Rf(o,r),this.setHours=(o,r)=>Ef(o,r),this.setMinutes=(o,r)=>Ff(o,r),this.setSeconds=(o,r)=>Nf(o,r),this.setMilliseconds=(o,r)=>Of(o,r),this.getDaysInMonth=o=>pl(o),this.getWeekArray=o=>{const r=this.startOfWeek(this.startOfMonth(o)),s=this.endOfWeek(this.endOfMonth(o));let a=0,i=r;const l=[];for(;this.isBefore(i,s);){const c=Math.floor(a/7);l[c]=l[c]||[],l[c].push(i),i=this.addDays(i,1),a+=1}return l},this.getWeekNumber=o=>Wi(o,{locale:this.locale}),this.getYearRange=([o,r])=>{const s=this.startOfYear(o),a=this.endOfYear(r),i=[];let l=s;for(;this.isBefore(l,a);)i.push(l),l=this.addYears(l,1);return i}}}function me(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}const us=Zi({themeId:go});function em(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const rr=D.oneOfType([D.func,D.object]);function tm(e){if(typeof e!="string")throw new Error(em(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Sr(e){return e&&e.ownerDocument||document}const dt=typeof window<"u"?p.useLayoutEffect:p.useEffect;let ga=0;function nm(e){const[t,n]=p.useState(e),o=e||t;return p.useEffect(()=>{t==null&&(ga+=1,n(`mui-${ga}`))},[t]),o}const om={...Qr},ba=om.useId;function wo(e){if(ba!==void 0){const t=ba();return e??t}return nm(e)}function En(e){const{controlled:t,default:n,name:o,state:r="value"}=e,{current:s}=p.useRef(t!==void 0),[a,i]=p.useState(n),l=s?t:a,c=p.useCallback(d=>{s||i(d)},[]);return[l,c]}function de(e){const t=p.useRef(e);return dt(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function ot(...e){const t=p.useRef(void 0),n=p.useCallback(o=>{const r=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,i=a(o);return typeof i=="function"?i:()=>{a(null)}}return s.current=o,()=>{s.current=null}});return()=>{r.forEach(s=>s?.())}},e);return p.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const ya={};function rm(e,t){const n=p.useRef(ya);return n.current===ya&&(n.current=e(t)),n}const sm=[];function am(e){p.useEffect(e,sm)}class ds{static create(){return new ds}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Mn(){const e=rm(ds.create).current;return am(e.disposeEffect),e}const im={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Oe(e,t,n=void 0){const o={};for(const r in e){const s=e[r];let a="",i=!0;for(let l=0;l<s.length;l+=1){const c=s[l];c&&(a+=(i===!0?"":" ")+t(c),i=!1,n&&n[c]&&(a+=" "+n[c]))}o[r]=a}return o}const va=e=>e,lm=()=>{let e=va;return{configure(t){e=t},generate(t){return e(t)},reset(){e=va}}},cm=lm(),um={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ve(e,t,n="Mui"){const o=um[t];return o?`${n}-${o}`:`${cm.generate(e)}-${t}`}function ze(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Ve(e,r,n)}),o}function dm(e){return typeof e=="string"}function pm(e,t,n){return e===void 0||dm(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function fm(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function xa(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function mm(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:s}=e;if(!t){const g=ae(n?.className,s,r?.className,o?.className),h={...n?.style,...r?.style,...o?.style},v={...n,...r,...o};return g.length>0&&(v.className=g),Object.keys(h).length>0&&(v.style=h),{props:v,internalRef:void 0}}const a=fm({...r,...o}),i=xa(o),l=xa(r),c=t(a),d=ae(c?.className,n?.className,s,r?.className,o?.className),m={...c?.style,...n?.style,...r?.style,...o?.style},y={...c,...n,...l,...i};return d.length>0&&(y.className=d),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:c.ref}}function ln(e,t,n){return typeof e=="function"?e(t,n):e}function Ae(e){const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...s}=e,a=r?{}:ln(n,o),{props:i,internalRef:l}=mm({...s,externalSlotProps:a}),c=ot(l,a?.ref,e.additionalProps?.ref);return pm(t,{...i,ref:c},o)}const Ot=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),vl=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const r=n??o;let s;if(e!=null)s=e;else if(r.includes(t))s=t;else if(r.length>0)s=r[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:r,openTo:s}},Yo=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},lo=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:s,utils:a,timezone:i})=>{const l=Yo(a,a.date(void 0,i),e);n&&a.isBefore(r,l)&&(r=l),t&&a.isAfter(o,l)&&(o=l);let c=e,d=e;for(a.isBefore(e,r)&&(c=r,d=null),a.isAfter(e,o)&&(d&&(d=o),c=null);c||d;){if(c&&a.isAfter(c,o)&&(c=null),d&&a.isBefore(d,r)&&(d=null),c){if(!s(c))return c;c=a.addDays(c,1)}if(d){if(!s(d))return d;d=a.addDays(d,-1)}}return null},hm=(e,t)=>e.isValid(t)?t:null,wa=(e,t,n)=>t==null||!e.isValid(t)?n:t,gm=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),ps=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const r=o[o.length-1];o.push(e.addMonths(r,1))}return o},fs=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Yt=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},bm=["year","month","day"],Ca=e=>bm.includes(e),ms=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return Ot(n,["year"])?r.year:Ot(n,["month"])?r.month:Ot(n,["day"])?r.dayOfMonth:Ot(n,["month","year"])?`${r.month} ${r.year}`:Ot(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},ym=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},vm=["hours","minutes","seconds"],xm=["hours","minutes","seconds","meridiem"],On=e=>vm.includes(e),xl=e=>xm.includes(e),wm=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,co=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Cm=(e,t,n,o)=>{const r=co(o.getHours(e),t,n);return o.setHours(e,r)},Sa=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Co=(e,t)=>(n,o)=>e?t.isAfter(n,o):Sa(n,t)>Sa(o,t),wl=(e,{format:t,views:n,ampm:o})=>{if(t!=null)return t;const r=e.formats;return Ot(n,["hours"])?o?`${r.hours12h} ${r.meridiem}`:r.hours24h:Ot(n,["minutes"])?r.minutes:Ot(n,["seconds"])?r.seconds:Ot(n,["minutes","seconds"])?`${r.minutes}:${r.seconds}`:Ot(n,["hours","minutes","seconds"])?o?`${r.hours12h}:${r.minutes}:${r.seconds} ${r.meridiem}`:`${r.hours24h}:${r.minutes}:${r.seconds}`:o?`${r.hours12h}:${r.minutes} ${r.meridiem}`:`${r.hours24h}:${r.minutes}`},kt={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Sm=e=>Math.max(...e.map(t=>kt[t.type]??1)),Wn=(e,t,n)=>{if(t===kt.year)return e.startOfYear(n);if(t===kt.month)return e.startOfMonth(n);if(t===kt.day)return e.startOfDay(n);let o=n;return t<kt.minutes&&(o=e.setMinutes(o,0)),t<kt.seconds&&(o=e.setSeconds(o,0)),t<kt.milliseconds&&(o=e.setMilliseconds(o,0)),o},Pm=({props:e,utils:t,granularity:n,timezone:o,getTodayDate:r})=>{let s=r?r():Wn(t,n,fs(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=Wn(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=Wn(t,n,e.maxDate));const a=Co(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,s)&&(s=Wn(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Yo(t,s,e.minTime))),e.maxTime!=null&&a(s,e.maxTime)&&(s=Wn(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Yo(t,s,e.maxTime))),s},Cl=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
|
|
8
|
-
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},sr=(e,t)=>{const n=[],o=e.date(void 0,"default"),r=e.startOfWeek(o),s=e.endOfWeek(o);let a=r;for(;e.isBefore(a,s);)n.push(a),a=e.addDays(a,1);return n.map(i=>e.formatByString(i,t))},Sl=(e,t,n,o)=>{switch(n){case"month":return ps(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return sr(e,o);case"meridiem":{const r=e.date(void 0,t);return[e.startOfDay(r),e.endOfDay(r)].map(s=>e.formatByString(s,o))}default:return[]}},Pa="s",km=["0","1","2","3","4","5","6","7","8","9"],Mm=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Pa)==="0"?km:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),Pa))},cn=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let r=0;r<e.length;r+=1){o+=e[r];const s=t.indexOf(o);s>-1&&(n.push(s.toString()),o="")}return n.join("")},hs=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),ka=(e,t)=>{const n=cn(e,t);return n!==" "&&!Number.isNaN(Number(n))},gs=(e,t)=>Number(e).toString().padStart(t,"0"),Pl=(e,t,n,o,r)=>{if(r.type==="day"&&r.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,r.format)}let s=t.toString();return r.hasLeadingZerosInInput&&(s=gs(s,r.maxLength)),hs(s,o)},bs=(e,t,n)=>{let o=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(cn(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}`),t==="input-rtl"&&(o=`${o}`),o},Ma=(e,t,n,o)=>e.formatByString(e.parse(t,n),o),Dm=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,kl=(e,t,n,o)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&o==="YY"?!0:e.formatByString(e.setYear(r,1),o).startsWith("0");case"month":return e.formatByString(e.startOfYear(r),o).length>1;case"day":return e.formatByString(e.startOfMonth(r),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),o).length>1;case"hours":return e.formatByString(e.setHours(r,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(r,1),o).length>1;default:throw new Error("Invalid section type")}},Tm=(e,t,n)=>{const o=t.some(l=>l.type==="day"),r=[],s=[];for(let l=0;l<t.length;l+=1){const c=t[l];o&&c.type==="weekDay"||(r.push(c.format),s.push(bs(c,"non-input",n)))}const a=r.join(" "),i=s.join(" ");return e.parse(i,a)},Im=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Rm=(e,t,n)=>{const r=e.map(s=>{const a=bs(s,n?"input-rtl":"input-ltr",t);return`${s.startSeparator}${a}${s.endSeparator}`}).join("");return n?`${r}`:r},Em=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),s=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:i}=ps(e,o).reduce((l,c)=>{const d=e.getDaysInMonth(c);return d>l.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:Dm(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:l})=>({minimum:1,maximum:e.isValid(l)?e.getDaysInMonth(l):a,longestMonth:i}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const d=sr(e,l).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(s);return cn(e.formatByString(e.endOfDay(o),l),t)!==c.toString()?{minimum:1,maximum:Number(cn(e.formatByString(e.startOfDay(o),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(s)}),seconds:()=>({minimum:0,maximum:e.getSeconds(s)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},Om=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{let r=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(r=gs(r,t.maxLength));const s=sr(e,t.format),a=s.indexOf(r),l=s.indexOf(t.value)-a;return e.addDays(n,l)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const r=e.getHours(n)<12,s=e.getHours(o);return r&&s>=12?e.addHours(o,-12):!r&&s<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},Da={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Ta=(e,t,n,o,r)=>[...n].sort((s,a)=>Da[s.type]-Da[a.type]).reduce((s,a)=>!r||a.modified?Om(e,a,t,s):s,o),Fm=()=>navigator.userAgent.toLowerCase().includes("android"),Nm=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const d=c===0?null:c-1,m=c===e.length-1?null:c+1;n[c]={leftIndex:d,rightIndex:m}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},r={};let s=0,a=0,i=e.length-1;for(;i>=0;){a=e.findIndex((l,c)=>c>=s&&l.endSeparator?.includes(" ")&&l.endSeparator!==" / "),a===-1&&(a=e.length-1);for(let l=a;l>=s;l-=1)r[l]=i,o[i]=l,i-=1;s=a+1}return e.forEach((l,c)=>{const d=r[c],m=d===0?null:o[d-1],y=d===e.length-1?null:o[d+1];n[c]={leftIndex:m,rightIndex:y}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},$r=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(o=>o.type===e);return n===-1?null:n}return e},Am=["value","referenceDate"],et={emptyValue:null,getTodayValue:fs,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=me(e,Am);return o.utils.isValid(t)?t:n??Pm(o)},cleanValue:hm,areValuesEqual:gm,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},Ml={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:Im,getV6InputValueFromSections:Rm,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>O({},t,{value:""}))};function $m(e){return u.jsx(jd,{...e,defaultTheme:or,themeId:go})}function Lm(e){return function(n){return u.jsx($m,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function jm(){return Bd}const Be=lp;function Fe(e){return Su(e)}function Vm(e){return typeof e.main=="string"}function Bm(e,t=[]){if(!Vm(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function ct(e=[]){return([,t])=>t&&Bm(t,e)}function zm(e){return Re("MuiTypography",e)}Se("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Hm={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Wm=jm(),_m=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:s,classes:a}=e,i={root:["root",s,e.align!=="inherit"&&`align${le(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return Ee(i,zm,a)},Um=B("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Be(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(ct()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${le(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Ia={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},zt=p.forwardRef(function(t,n){const{color:o,...r}=Fe({props:t,name:"MuiTypography"}),s=!Hm[o],a=Wm({...r,...s&&{color:o}}),{align:i="inherit",className:l,component:c,gutterBottom:d=!1,noWrap:m=!1,paragraph:y=!1,variant:g="body1",variantMapping:h=Ia,...v}=a,f={...a,align:i,color:o,className:l,component:c,gutterBottom:d,noWrap:m,paragraph:y,variant:g,variantMapping:h},b=c||(y?"p":h[g]||Ia[g])||"span",C=_m(f);return u.jsx(Um,{as:b,ref:n,className:ae(C.root,l),...v,ownerState:f,style:{...i!=="inherit"&&{"--Typography-textAlign":i},...v.style}})});function Dl(e){return Ve("MuiPickersToolbar",e)}ze("MuiPickersToolbar",["root","title","content"]);const Ym=["localeText"],Lr=p.createContext(null),Tl=function(t){const{localeText:n}=t,o=me(t,Ym),{utils:r,localeText:s}=p.useContext(Lr)??{utils:void 0,localeText:void 0},a=De({props:o,name:"MuiLocalizationProvider"}),{children:i,dateAdapter:l,dateFormats:c,dateLibInstance:d,adapterLocale:m,localeText:y}=a,g=p.useMemo(()=>O({},y,s,n),[y,s,n]),h=p.useMemo(()=>{if(!l)return r||null;const b=new l({locale:m,formats:c,instance:d});if(!b.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
|
|
9
|
-
`));return b},[l,m,c,d,r]),v=p.useMemo(()=>h?{minDate:h.date("1900-01-01T00:00:00.000"),maxDate:h.date("2099-12-31T00:00:00.000")}:null,[h]),f=p.useMemo(()=>({utils:h,defaultDates:v,localeText:g}),[v,h,g]);return u.jsx(Lr.Provider,{value:f,children:i})},Il=p.createContext(()=>!0);function qm(){return p.useContext(Il)}const Rl=p.createContext(null);function El(){return p.useContext(Rl)}const ys=p.createContext(null),pn=()=>{const e=p.useContext(ys);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},Ol=p.createContext(null),Fl=p.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});function Nl(e){const{contextValue:t,actionsContextValue:n,privateContextValue:o,fieldPrivateContextValue:r,isValidContextValue:s,localeText:a,children:i}=e;return u.jsx(ys.Provider,{value:t,children:u.jsx(Ol.Provider,{value:n,children:u.jsx(Fl.Provider,{value:o,children:u.jsx(Rl.Provider,{value:r,children:u.jsx(Il.Provider,{value:s,children:u.jsx(Tl,{localeText:a,children:i})})})})})})}const We=()=>p.useContext(Fl);function vs(){const{ownerState:e}=We(),t=wt();return p.useMemo(()=>O({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const Km=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],Gm=e=>Oe({root:["root"],title:["title"],content:["content"]},Dl,e),Qm=B("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),Xm=B("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>Ft(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Al=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiPickersToolbar"}),{children:r,className:s,classes:a,toolbarTitle:i,hidden:l,titleId:c,landscapeDirection:d}=o,m=me(o,Km),y=vs(),g=Gm(a);return l?null:u.jsxs(Qm,O({ref:n,className:ae(g.root,s),ownerState:y},m,{children:[u.jsx(zt,{color:"text.secondary",variant:"overline",id:c,className:g.title,children:i}),u.jsx(Xm,{className:g.content,ownerState:y,landscapeDirection:d,children:r})]}))}),Zm=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:O({},e)}}}}),$l={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Jm=$l;Zm($l);const fn=()=>{const e=p.useContext(Lr);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
|
|
10
|
-
`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
|
|
11
|
-
`));const t=p.useMemo(()=>O({},Jm,e.localeText),[e.localeText]);return p.useMemo(()=>O({},e,{localeText:t}),[e,t])},Te=()=>fn().utils,eh=()=>fn().defaultDates,mn=e=>{const t=Te(),n=p.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},lt=()=>fn().localeText;function th(e){return Ve("MuiDatePickerToolbar",e)}ze("MuiDatePickerToolbar",["root","title"]);const jr=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Vr=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Ll=["minDateTime","maxDateTime"],nh=[...jr,...Vr,...Ll],ar=e=>nh.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),oh=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],jl=(e,t)=>p.useMemo(()=>{const n=O({},e),o={},r=s=>{n.hasOwnProperty(s)&&(o[s]=n[s],delete n[s])};return oh.forEach(r),t==="date"?jr.forEach(r):t==="time"?Vr.forEach(r):t==="date-time"&&(jr.forEach(r),Vr.forEach(r),Ll.forEach(r)),{forwardedProps:n,internalProps:o}},[e,t]),rh=({utils:e,format:t})=>{let n=10,o=t,r=e.expandFormat(t);for(;r!==o;)if(o=r,r=e.expandFormat(o),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.");return r},sh=({utils:e,expandedFormat:t})=>{const n=[],{start:o,end:r}=e.escapedCharacters,s=new RegExp(`(\\${o}[^\\${r}]*\\${r})+`,"g");let a=null;for(;a=s.exec(t);)n.push({start:a.index,end:s.lastIndex-1});return n},ah=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},ih=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:r,now:s,token:a,startSeparator:i})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=Cl(e,a),c=kl(e,l.contentType,l.type,a),d=n?c:l.contentType==="digit",m=e.isValid(t);let y=m?e.formatByString(t,a):"",g=null;if(d)if(c)g=y===""?e.formatByString(s,a).length:y.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxLength' property on it's adapter`);g=l.maxLength,m&&(y=hs(gs(cn(y,r),g),r))}return O({},l,{format:a,maxLength:g,value:y,placeholder:ah(e,o,l,a),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:d,startSeparator:i,endSeparator:"",modified:!1})},lh=e=>{const{utils:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),s=[];let a="";const i=Object.keys(t.formatTokenMap).sort((g,h)=>h.length-g.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${i.join("|")})*$`),d=new RegExp(`^(${i.join("|")})`),m=g=>o.find(h=>h.start<=g&&h.end>=g);let y=0;for(;y<n.length;){const g=m(y),h=g!=null,v=l.exec(n.slice(y))?.[1];if(!h&&v!=null&&c.test(v)){let f=v;for(;f.length>0;){const b=d.exec(f)[1];f=f.slice(b.length),s.push(ih(O({},e,{now:r,token:b,startSeparator:a}))),a=""}y+=v.length}else{const f=n[y];h&&g?.start===y||g?.end===y||(s.length===0?a+=f:(s[s.length-1].endSeparator+=f,s[s.length-1].isEndFormatSeparator=!0)),y+=1}}return s.length===0&&a.length>0&&s.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),s},ch=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const r=s=>{let a=s;return e&&a!==null&&a.includes(" ")&&(a=`${a}`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=r(o.startSeparator),o.endSeparator=r(o.endSeparator),o}),Ra=e=>{let t=rh(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=sh(O({},e,{expandedFormat:t})),o=lh(O({},e,{expandedFormat:t,escapedParts:n}));return ch(O({},e,{sections:o}))},xs=()=>p.useContext(ys),uh=()=>{const e=p.useContext(Ol);if(e==null)throw new Error(["MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component"].join(`
|
|
12
|
-
`));return e},dh=["toolbarFormat","toolbarPlaceholder","className","classes"],ph=e=>Oe({root:["root"],title:["title"]},th,e),fh=B(Al,{name:"MuiDatePickerToolbar",slot:"Root"})({}),mh=B(zt,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),hh=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:r,toolbarPlaceholder:s="––",className:a,classes:i}=o,l=me(o,dh),c=Te(),{value:d,views:m,orientation:y}=pn(),g=lt(),h=vs(),v=ph(i),f=p.useMemo(()=>{if(!c.isValid(d))return s;const b=ms(c,{format:r,views:m},!0);return c.formatByString(d,b)},[d,r,s,c,m]);return u.jsx(fh,O({ref:n,toolbarTitle:g.datePickerToolbarTitle,className:ae(v.root,a)},l,{children:u.jsx(mh,{variant:"h4",align:y==="landscape"?"left":"center",ownerState:h,className:v.title,children:f})}))}),So=({props:e,value:t,timezone:n,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:s,shouldDisableYear:a,disablePast:i,disableFuture:l,minDate:c,maxDate:d}=e,m=o.utils.date(void 0,n);switch(!0){case!o.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(s&&s(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(l&&o.utils.isAfterDay(t,m)):return"disableFuture";case!!(i&&o.utils.isBeforeDay(t,m)):return"disablePast";case!!(c&&o.utils.isBeforeDay(t,c)):return"minDate";case!!(d&&o.utils.isAfterDay(t,d)):return"maxDate";default:return null}};So.valueManager=et;const ir=({adapter:e,value:t,timezone:n,props:o})=>{if(t===null)return null;const{minTime:r,maxTime:s,minutesStep:a,shouldDisableTime:i,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:d}=o,m=e.utils.date(void 0,n),y=Co(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&y(r,t)):return"minTime";case!!(s&&y(t,s)):return"maxTime";case!!(d&&e.utils.isAfter(t,m)):return"disableFuture";case!!(c&&e.utils.isBefore(t,m)):return"disablePast";case!!(i&&i(t,"hours")):return"shouldDisableTime-hours";case!!(i&&i(t,"minutes")):return"shouldDisableTime-minutes";case!!(i&&i(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}};ir.valueManager=et;function Vl(e){const{props:t,validator:n,value:o,timezone:r,onError:s}=e,a=fn(),i=p.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:o,timezone:r,props:t}),c=n.valueManager.hasError(l);p.useEffect(()=>{s&&!n.valueManager.isSameError(l,i.current)&&s(l,o),i.current=l},[n,s,l,o]);const d=de(m=>n({adapter:a,value:m,timezone:r,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:d}}function gh(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return p.useMemo(()=>({valueType:"date",validator:So,internal_valueManager:et,internal_fieldValueManager:Ml,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:yh,internal_useOpenPickerButtonAriaLabel:bh}),[t])}function bh(e){const t=Te(),n=lt();return p.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(o)},[e,n,t])}function yh(e){const t=Te(),n=Po(e);return p.useMemo(()=>O({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function Po(e){const t=Te(),n=eh();return p.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:wa(t,e.minDate,n.minDate),maxDate:wa(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function Bl(e,t){const n=De({props:e,name:t}),o=Po(n),r=p.useMemo(()=>n.localeText?.toolbarTitle==null?n.localeText:O({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle}),[n.localeText]);return O({},n,o,{localeText:r},vl({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:O({toolbar:hh},n.slots)})}const zl=e=>e.scrollTop;function qo(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function Br(e){return`scale(${e}, ${e**2})`}const vh={entering:{opacity:1,transform:Br(1)},entered:{opacity:1,transform:"none"}},Pr=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ko=p.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:s,easing:a,in:i,onEnter:l,onEntered:c,onEntering:d,onExit:m,onExited:y,onExiting:g,style:h,timeout:v="auto",TransitionComponent:f=Tt,...b}=t,C=nl(),w=p.useRef(),x=zn(),P=p.useRef(null),k=Ze(P,vo(s),n),S=I=>T=>{if(I){const V=P.current;T===void 0?I(V):I(V,T)}},R=S(d),E=S((I,T)=>{zl(I);const{duration:V,delay:G,easing:A}=qo({style:h,timeout:v,easing:a},{mode:"enter"});let Z;v==="auto"?(Z=x.transitions.getAutoHeightDuration(I.clientHeight),w.current=Z):Z=V,I.style.transition=[x.transitions.create("opacity",{duration:Z,delay:G}),x.transitions.create("transform",{duration:Pr?Z:Z*.666,delay:G,easing:A})].join(","),l&&l(I,T)}),F=S(c),L=S(g),M=S(I=>{const{duration:T,delay:V,easing:G}=qo({style:h,timeout:v,easing:a},{mode:"exit"});let A;v==="auto"?(A=x.transitions.getAutoHeightDuration(I.clientHeight),w.current=A):A=T,I.style.transition=[x.transitions.create("opacity",{duration:A,delay:V}),x.transitions.create("transform",{duration:Pr?A:A*.666,delay:Pr?V:V||A*.333,easing:G})].join(","),I.style.opacity=0,I.style.transform=Br(.75),m&&m(I)}),$=S(y),N=I=>{v==="auto"&&C.start(w.current||0,I),o&&o(P.current,I)};return u.jsx(f,{appear:r,in:i,nodeRef:P,onEnter:E,onEntered:F,onEntering:R,onExit:M,onExited:$,onExiting:L,addEndListener:N,timeout:v==="auto"?null:v,...b,children:(I,{ownerState:T,...V})=>p.cloneElement(s,{style:{opacity:0,transform:Br(.75),visibility:I==="exited"&&!i?"hidden":void 0,...vh[I],...h,...s.props.style},ref:k,...V})})});Ko&&(Ko.muiSupportAuto=!0);const xh={entering:{opacity:1},entered:{opacity:1}},un=p.forwardRef(function(t,n){const o=zn(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:i,easing:l,in:c,onEnter:d,onEntered:m,onEntering:y,onExit:g,onExited:h,onExiting:v,style:f,timeout:b=r,TransitionComponent:C=Tt,...w}=t,x=p.useRef(null),P=Ze(x,vo(i),n),k=N=>I=>{if(N){const T=x.current;I===void 0?N(T):N(T,I)}},S=k(y),R=k((N,I)=>{zl(N);const T=qo({style:f,timeout:b,easing:l},{mode:"enter"});N.style.webkitTransition=o.transitions.create("opacity",T),N.style.transition=o.transitions.create("opacity",T),d&&d(N,I)}),E=k(m),F=k(v),L=k(N=>{const I=qo({style:f,timeout:b,easing:l},{mode:"exit"});N.style.webkitTransition=o.transitions.create("opacity",I),N.style.transition=o.transitions.create("opacity",I),g&&g(N)}),M=k(h),$=N=>{s&&s(x.current,N)};return u.jsx(C,{appear:a,in:c,nodeRef:x,onEnter:R,onEntered:E,onEntering:S,onExit:L,onExited:M,onExiting:F,addEndListener:$,timeout:b,...w,children:(N,{ownerState:I,...T})=>p.cloneElement(i,{style:{opacity:0,visibility:N==="exited"&&!c?"hidden":void 0,...xh[N],...f,...i.props.style},ref:P,...T})})});function wh(e){return Re("MuiPaper",e)}Se("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Ch=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,s={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Ee(s,wh,r)},Sh=B("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Be(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),lr=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiPaper"}),r=zn(),{className:s,component:a="div",elevation:i=1,square:l=!1,variant:c="elevation",...d}=o,m={...o,component:a,elevation:i,square:l,variant:c},y=Ch(m);return u.jsx(Sh,{as:a,ownerState:m,className:ae(y.root,s),ref:n,...d,style:{...c==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[i],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[i]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ie("#fff",Us(i))}, ${Ie("#fff",Us(i))})`}},...d.style}})});var at="top",vt="bottom",xt="right",it="left",ws="auto",ko=[at,vt,xt,it],Fn="start",uo="end",Ph="clippingParents",Hl="viewport",_n="popper",kh="reference",Ea=ko.reduce(function(e,t){return e.concat([t+"-"+Fn,t+"-"+uo])},[]),Wl=[].concat(ko,[ws]).reduce(function(e,t){return e.concat([t,t+"-"+Fn,t+"-"+uo])},[]),Mh="beforeRead",Dh="read",Th="afterRead",Ih="beforeMain",Rh="main",Eh="afterMain",Oh="beforeWrite",Fh="write",Nh="afterWrite",Ah=[Mh,Dh,Th,Ih,Rh,Eh,Oh,Fh,Nh];function At(e){return e?(e.nodeName||"").toLowerCase():null}function pt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dn(e){var t=pt(e).Element;return e instanceof t||e instanceof Element}function yt(e){var t=pt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Cs(e){if(typeof ShadowRoot>"u")return!1;var t=pt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $h(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},s=t.elements[n];!yt(s)||!At(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(a){var i=r[a];i===!1?s.removeAttribute(a):s.setAttribute(a,i===!0?"":i)}))})}function Lh(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],s=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),i=a.reduce(function(l,c){return l[c]="",l},{});!yt(r)||!At(r)||(Object.assign(r.style,i),Object.keys(s).forEach(function(l){r.removeAttribute(l)}))})}}const jh={name:"applyStyles",enabled:!0,phase:"write",fn:$h,effect:Lh,requires:["computeStyles"]};function Nt(e){return e.split("-")[0]}var sn=Math.max,Go=Math.min,Nn=Math.round;function zr(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function _l(){return!/^((?!chrome|android).)*safari/i.test(zr())}function An(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,s=1;t&&yt(e)&&(r=e.offsetWidth>0&&Nn(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Nn(o.height)/e.offsetHeight||1);var a=dn(e)?pt(e):window,i=a.visualViewport,l=!_l()&&n,c=(o.left+(l&&i?i.offsetLeft:0))/r,d=(o.top+(l&&i?i.offsetTop:0))/s,m=o.width/r,y=o.height/s;return{width:m,height:y,top:d,right:c+m,bottom:d+y,left:c,x:c,y:d}}function Ss(e){var t=An(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Ul(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Cs(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Bt(e){return pt(e).getComputedStyle(e)}function Vh(e){return["table","td","th"].indexOf(At(e))>=0}function Kt(e){return((dn(e)?e.ownerDocument:e.document)||window.document).documentElement}function cr(e){return At(e)==="html"?e:e.assignedSlot||e.parentNode||(Cs(e)?e.host:null)||Kt(e)}function Oa(e){return!yt(e)||Bt(e).position==="fixed"?null:e.offsetParent}function Bh(e){var t=/firefox/i.test(zr()),n=/Trident/i.test(zr());if(n&&yt(e)){var o=Bt(e);if(o.position==="fixed")return null}var r=cr(e);for(Cs(r)&&(r=r.host);yt(r)&&["html","body"].indexOf(At(r))<0;){var s=Bt(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function Mo(e){for(var t=pt(e),n=Oa(e);n&&Vh(n)&&Bt(n).position==="static";)n=Oa(n);return n&&(At(n)==="html"||At(n)==="body"&&Bt(n).position==="static")?t:n||Bh(e)||t}function Ps(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function no(e,t,n){return sn(e,Go(t,n))}function zh(e,t,n){var o=no(e,t,n);return o>n?n:o}function Yl(){return{top:0,right:0,bottom:0,left:0}}function ql(e){return Object.assign({},Yl(),e)}function Kl(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var Hh=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ql(typeof t!="number"?t:Kl(t,ko))};function Wh(e){var t,n=e.state,o=e.name,r=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,i=Nt(n.placement),l=Ps(i),c=[it,xt].indexOf(i)>=0,d=c?"height":"width";if(!(!s||!a)){var m=Hh(r.padding,n),y=Ss(s),g=l==="y"?at:it,h=l==="y"?vt:xt,v=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],f=a[l]-n.rects.reference[l],b=Mo(s),C=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,w=v/2-f/2,x=m[g],P=C-y[d]-m[h],k=C/2-y[d]/2+w,S=no(x,k,P),R=l;n.modifiersData[o]=(t={},t[R]=S,t.centerOffset=S-k,t)}}function _h(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||Ul(t.elements.popper,r)&&(t.elements.arrow=r))}const Uh={name:"arrow",enabled:!0,phase:"main",fn:Wh,effect:_h,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $n(e){return e.split("-")[1]}var Yh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qh(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Nn(n*r)/r||0,y:Nn(o*r)/r||0}}function Fa(e){var t,n=e.popper,o=e.popperRect,r=e.placement,s=e.variation,a=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,m=e.isFixed,y=a.x,g=y===void 0?0:y,h=a.y,v=h===void 0?0:h,f=typeof d=="function"?d({x:g,y:v}):{x:g,y:v};g=f.x,v=f.y;var b=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),w=it,x=at,P=window;if(c){var k=Mo(n),S="clientHeight",R="clientWidth";if(k===pt(n)&&(k=Kt(n),Bt(k).position!=="static"&&i==="absolute"&&(S="scrollHeight",R="scrollWidth")),k=k,r===at||(r===it||r===xt)&&s===uo){x=vt;var E=m&&k===P&&P.visualViewport?P.visualViewport.height:k[S];v-=E-o.height,v*=l?1:-1}if(r===it||(r===at||r===vt)&&s===uo){w=xt;var F=m&&k===P&&P.visualViewport?P.visualViewport.width:k[R];g-=F-o.width,g*=l?1:-1}}var L=Object.assign({position:i},c&&Yh),M=d===!0?qh({x:g,y:v},pt(n)):{x:g,y:v};if(g=M.x,v=M.y,l){var $;return Object.assign({},L,($={},$[x]=C?"0":"",$[w]=b?"0":"",$.transform=(P.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",$))}return Object.assign({},L,(t={},t[x]=C?v+"px":"",t[w]=b?g+"px":"",t.transform="",t))}function Kh(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,s=n.adaptive,a=s===void 0?!0:s,i=n.roundOffsets,l=i===void 0?!0:i,c={placement:Nt(t.placement),variation:$n(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Fa(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fa(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Gh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Kh,data:{}};var Ro={passive:!0};function Qh(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,s=r===void 0?!0:r,a=o.resize,i=a===void 0?!0:a,l=pt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",n.update,Ro)}),i&&l.addEventListener("resize",n.update,Ro),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Ro)}),i&&l.removeEventListener("resize",n.update,Ro)}}const Xh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Qh,data:{}};var Zh={left:"right",right:"left",bottom:"top",top:"bottom"};function Bo(e){return e.replace(/left|right|bottom|top/g,function(t){return Zh[t]})}var Jh={start:"end",end:"start"};function Na(e){return e.replace(/start|end/g,function(t){return Jh[t]})}function ks(e){var t=pt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Ms(e){return An(Kt(e)).left+ks(e).scrollLeft}function eg(e,t){var n=pt(e),o=Kt(e),r=n.visualViewport,s=o.clientWidth,a=o.clientHeight,i=0,l=0;if(r){s=r.width,a=r.height;var c=_l();(c||!c&&t==="fixed")&&(i=r.offsetLeft,l=r.offsetTop)}return{width:s,height:a,x:i+Ms(e),y:l}}function tg(e){var t,n=Kt(e),o=ks(e),r=(t=e.ownerDocument)==null?void 0:t.body,s=sn(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=sn(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-o.scrollLeft+Ms(e),l=-o.scrollTop;return Bt(r||n).direction==="rtl"&&(i+=sn(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:i,y:l}}function Ds(e){var t=Bt(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Gl(e){return["html","body","#document"].indexOf(At(e))>=0?e.ownerDocument.body:yt(e)&&Ds(e)?e:Gl(cr(e))}function oo(e,t){var n;t===void 0&&(t=[]);var o=Gl(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),s=pt(o),a=r?[s].concat(s.visualViewport||[],Ds(o)?o:[]):o,i=t.concat(a);return r?i:i.concat(oo(cr(a)))}function Hr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ng(e,t){var n=An(e,!1,t==="fixed");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}function Aa(e,t,n){return t===Hl?Hr(eg(e,n)):dn(t)?ng(t,n):Hr(tg(Kt(e)))}function og(e){var t=oo(cr(e)),n=["absolute","fixed"].indexOf(Bt(e).position)>=0,o=n&&yt(e)?Mo(e):e;return dn(o)?t.filter(function(r){return dn(r)&&Ul(r,o)&&At(r)!=="body"}):[]}function rg(e,t,n,o){var r=t==="clippingParents"?og(e):[].concat(t),s=[].concat(r,[n]),a=s[0],i=s.reduce(function(l,c){var d=Aa(e,c,o);return l.top=sn(d.top,l.top),l.right=Go(d.right,l.right),l.bottom=Go(d.bottom,l.bottom),l.left=sn(d.left,l.left),l},Aa(e,a,o));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Ql(e){var t=e.reference,n=e.element,o=e.placement,r=o?Nt(o):null,s=o?$n(o):null,a=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(r){case at:l={x:a,y:t.y-n.height};break;case vt:l={x:a,y:t.y+t.height};break;case xt:l={x:t.x+t.width,y:i};break;case it:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var c=r?Ps(r):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case Fn:l[c]=l[c]-(t[d]/2-n[d]/2);break;case uo:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function po(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,s=n.strategy,a=s===void 0?e.strategy:s,i=n.boundary,l=i===void 0?Ph:i,c=n.rootBoundary,d=c===void 0?Hl:c,m=n.elementContext,y=m===void 0?_n:m,g=n.altBoundary,h=g===void 0?!1:g,v=n.padding,f=v===void 0?0:v,b=ql(typeof f!="number"?f:Kl(f,ko)),C=y===_n?kh:_n,w=e.rects.popper,x=e.elements[h?C:y],P=rg(dn(x)?x:x.contextElement||Kt(e.elements.popper),l,d,a),k=An(e.elements.reference),S=Ql({reference:k,element:w,placement:r}),R=Hr(Object.assign({},w,S)),E=y===_n?R:k,F={top:P.top-E.top+b.top,bottom:E.bottom-P.bottom+b.bottom,left:P.left-E.left+b.left,right:E.right-P.right+b.right},L=e.modifiersData.offset;if(y===_n&&L){var M=L[r];Object.keys(F).forEach(function($){var N=[xt,vt].indexOf($)>=0?1:-1,I=[at,vt].indexOf($)>=0?"y":"x";F[$]+=M[I]*N})}return F}function sg(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,s=n.rootBoundary,a=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Wl:l,d=$n(o),m=d?i?Ea:Ea.filter(function(h){return $n(h)===d}):ko,y=m.filter(function(h){return c.indexOf(h)>=0});y.length===0&&(y=m);var g=y.reduce(function(h,v){return h[v]=po(e,{placement:v,boundary:r,rootBoundary:s,padding:a})[Nt(v)],h},{});return Object.keys(g).sort(function(h,v){return g[h]-g[v]})}function ag(e){if(Nt(e)===ws)return[];var t=Bo(e);return[Na(e),t,Na(t)]}function ig(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,i=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,m=n.rootBoundary,y=n.altBoundary,g=n.flipVariations,h=g===void 0?!0:g,v=n.allowedAutoPlacements,f=t.options.placement,b=Nt(f),C=b===f,w=l||(C||!h?[Bo(f)]:ag(f)),x=[f].concat(w).reduce(function(se,U){return se.concat(Nt(U)===ws?sg(t,{placement:U,boundary:d,rootBoundary:m,padding:c,flipVariations:h,allowedAutoPlacements:v}):U)},[]),P=t.rects.reference,k=t.rects.popper,S=new Map,R=!0,E=x[0],F=0;F<x.length;F++){var L=x[F],M=Nt(L),$=$n(L)===Fn,N=[at,vt].indexOf(M)>=0,I=N?"width":"height",T=po(t,{placement:L,boundary:d,rootBoundary:m,altBoundary:y,padding:c}),V=N?$?xt:it:$?vt:at;P[I]>k[I]&&(V=Bo(V));var G=Bo(V),A=[];if(s&&A.push(T[M]<=0),i&&A.push(T[V]<=0,T[G]<=0),A.every(function(se){return se})){E=L,R=!1;break}S.set(L,A)}if(R)for(var Z=h?3:1,z=function(U){var oe=x.find(function(ce){var fe=S.get(ce);if(fe)return fe.slice(0,U).every(function(re){return re})});if(oe)return E=oe,"break"},ne=Z;ne>0;ne--){var te=z(ne);if(te==="break")break}t.placement!==E&&(t.modifiersData[o]._skip=!0,t.placement=E,t.reset=!0)}}const lg={name:"flip",enabled:!0,phase:"main",fn:ig,requiresIfExists:["offset"],data:{_skip:!1}};function $a(e,t,n){return n===void 0&&(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 La(e){return[at,xt,vt,it].some(function(t){return e[t]>=0})}function cg(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,a=po(t,{elementContext:"reference"}),i=po(t,{altBoundary:!0}),l=$a(a,o),c=$a(i,r,s),d=La(l),m=La(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const ug={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cg};function dg(e,t,n){var o=Nt(e),r=[it,at].indexOf(o)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],i=s[1];return a=a||0,i=(i||0)*r,[it,xt].indexOf(o)>=0?{x:i,y:a}:{x:a,y:i}}function pg(e){var t=e.state,n=e.options,o=e.name,r=n.offset,s=r===void 0?[0,0]:r,a=Wl.reduce(function(d,m){return d[m]=dg(m,t.rects,s),d},{}),i=a[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}const fg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pg};function mg(e){var t=e.state,n=e.name;t.modifiersData[n]=Ql({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const hg={name:"popperOffsets",enabled:!0,phase:"read",fn:mg,data:{}};function gg(e){return e==="x"?"y":"x"}function bg(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,i=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,m=n.padding,y=n.tether,g=y===void 0?!0:y,h=n.tetherOffset,v=h===void 0?0:h,f=po(t,{boundary:l,rootBoundary:c,padding:m,altBoundary:d}),b=Nt(t.placement),C=$n(t.placement),w=!C,x=Ps(b),P=gg(x),k=t.modifiersData.popperOffsets,S=t.rects.reference,R=t.rects.popper,E=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,F=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(k){if(s){var $,N=x==="y"?at:it,I=x==="y"?vt:xt,T=x==="y"?"height":"width",V=k[x],G=V+f[N],A=V-f[I],Z=g?-R[T]/2:0,z=C===Fn?S[T]:R[T],ne=C===Fn?-R[T]:-S[T],te=t.elements.arrow,se=g&&te?Ss(te):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Yl(),oe=U[N],ce=U[I],fe=no(0,S[T],se[T]),re=w?S[T]/2-Z-fe-oe-F.mainAxis:z-fe-oe-F.mainAxis,Q=w?-S[T]/2+Z+fe+ce+F.mainAxis:ne+fe+ce+F.mainAxis,H=t.elements.arrow&&Mo(t.elements.arrow),q=H?x==="y"?H.clientTop||0:H.clientLeft||0:0,X=($=L?.[x])!=null?$:0,K=V+re-X-q,ue=V+Q-X,J=no(g?Go(G,K):G,V,g?sn(A,ue):A);k[x]=J,M[x]=J-V}if(i){var Y,ee=x==="x"?at:it,ie=x==="x"?vt:xt,W=k[P],j=P==="y"?"height":"width",_=W+f[ee],ge=W-f[ie],ye=[at,it].indexOf(b)!==-1,Le=(Y=L?.[P])!=null?Y:0,ke=ye?_:W-S[j]-R[j]-Le+F.altAxis,He=ye?W+S[j]+R[j]-Le-F.altAxis:ge,qe=g&&ye?zh(ke,W,He):no(g?ke:_,W,g?He:ge);k[P]=qe,M[P]=qe-W}t.modifiersData[o]=M}}const yg={name:"preventOverflow",enabled:!0,phase:"main",fn:bg,requiresIfExists:["offset"]};function vg(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xg(e){return e===pt(e)||!yt(e)?ks(e):vg(e)}function wg(e){var t=e.getBoundingClientRect(),n=Nn(t.width)/e.offsetWidth||1,o=Nn(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Cg(e,t,n){n===void 0&&(n=!1);var o=yt(t),r=yt(t)&&wg(t),s=Kt(t),a=An(e,r,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((At(t)!=="body"||Ds(s))&&(i=xg(t)),yt(t)?(l=An(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Ms(s))),{x:a.left+i.scrollLeft-l.x,y:a.top+i.scrollTop-l.y,width:a.width,height:a.height}}function Sg(e){var t=new Map,n=new Set,o=[];e.forEach(function(s){t.set(s.name,s)});function r(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&r(l)}}),o.push(s)}return e.forEach(function(s){n.has(s.name)||r(s)}),o}function Pg(e){var t=Sg(e);return Ah.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function kg(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Mg(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var ja={placement:"bottom",modifiers:[],strategy:"absolute"};function Va(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Dg(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,s=r===void 0?ja:r;return function(i,l,c){c===void 0&&(c=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},ja,s),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},m=[],y=!1,g={state:d,setOptions:function(b){var C=typeof b=="function"?b(d.options):b;v(),d.options=Object.assign({},s,d.options,C),d.scrollParents={reference:dn(i)?oo(i):i.contextElement?oo(i.contextElement):[],popper:oo(l)};var w=Pg(Mg([].concat(o,d.options.modifiers)));return d.orderedModifiers=w.filter(function(x){return x.enabled}),h(),g.update()},forceUpdate:function(){if(!y){var b=d.elements,C=b.reference,w=b.popper;if(Va(C,w)){d.rects={reference:Cg(C,Mo(w),d.options.strategy==="fixed"),popper:Ss(w)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(F){return d.modifiersData[F.name]=Object.assign({},F.data)});for(var x=0;x<d.orderedModifiers.length;x++){if(d.reset===!0){d.reset=!1,x=-1;continue}var P=d.orderedModifiers[x],k=P.fn,S=P.options,R=S===void 0?{}:S,E=P.name;typeof k=="function"&&(d=k({state:d,options:R,name:E,instance:g})||d)}}}},update:kg(function(){return new Promise(function(f){g.forceUpdate(),f(d)})}),destroy:function(){v(),y=!0}};if(!Va(i,l))return g;g.setOptions(c).then(function(f){!y&&c.onFirstUpdate&&c.onFirstUpdate(f)});function h(){d.orderedModifiers.forEach(function(f){var b=f.name,C=f.options,w=C===void 0?{}:C,x=f.effect;if(typeof x=="function"){var P=x({state:d,name:b,instance:g,options:w}),k=function(){};m.push(P||k)}})}function v(){m.forEach(function(f){return f()}),m=[]}return g}}var Tg=[Xh,hg,Gh,jh,fg,lg,yg,Uh,ug],Ig=Dg({defaultModifiers:Tg});function Rg(e){return typeof e=="function"?e():e}const Xl=p.forwardRef(function(t,n){const{children:o,container:r,disablePortal:s=!1}=t,[a,i]=p.useState(null),l=Ze(p.isValidElement(o)?vo(o):null,n);if(Dt(()=>{s||i(Rg(r)||document.body)},[r,s]),Dt(()=>{if(a&&!s)return oa(n,a),()=>{oa(n,null)}},[n,a,s]),s){if(p.isValidElement(o)){const c={ref:l};return p.cloneElement(o,c)}return o}return a&&md.createPortal(o,a)});function Eg(e){return Re("MuiPopper",e)}Se("MuiPopper",["root"]);function Og(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Wr(e){return typeof e=="function"?e():e}function Fg(e){return e.nodeType!==void 0}const Ng=e=>{const{classes:t}=e;return Ee({root:["root"]},Eg,t)},Ag={},$g=p.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:s,disablePortal:a,modifiers:i,open:l,placement:c,popperOptions:d,popperRef:m,slotProps:y={},slots:g={},TransitionProps:h,ownerState:v,...f}=t,b=p.useRef(null),C=Ze(b,n),w=p.useRef(null),x=Ze(w,m),P=p.useRef(x);Dt(()=>{P.current=x},[x]),p.useImperativeHandle(m,()=>w.current,[]);const k=Og(c,s),[S,R]=p.useState(k),[E,F]=p.useState(Wr(o));p.useEffect(()=>{w.current&&w.current.forceUpdate()}),p.useEffect(()=>{o&&F(Wr(o))},[o]),Dt(()=>{if(!E||!l)return;const I=G=>{R(G.placement)};let T=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:G})=>{I(G)}}];i!=null&&(T=T.concat(i)),d&&d.modifiers!=null&&(T=T.concat(d.modifiers));const V=Ig(E,b.current,{placement:k,...d,modifiers:T});return P.current(V),()=>{V.destroy(),P.current(null)}},[E,a,i,l,d,k]);const L={placement:S};h!==null&&(L.TransitionProps=h);const M=Ng(t),$=g.root??"div",N=ll({elementType:$,externalSlotProps:y.root,externalForwardedProps:f,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:M.root});return u.jsx($,{...N,children:typeof r=="function"?r(L):r})}),Lg=p.forwardRef(function(t,n){const{anchorEl:o,children:r,container:s,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:c,open:d,placement:m="bottom",popperOptions:y=Ag,popperRef:g,style:h,transition:v=!1,slotProps:f={},slots:b={},...C}=t,[w,x]=p.useState(!0),P=()=>{x(!1)},k=()=>{x(!0)};if(!l&&!d&&(!v||w))return null;let S;if(s)S=s;else if(o){const F=Wr(o);S=F&&Fg(F)?ut(F).body:ut(null).body}const R=!d&&l&&(!v||w)?"none":void 0,E=v?{in:d,onEnter:P,onExited:k}:void 0;return u.jsx(Xl,{disablePortal:i,container:S,children:u.jsx($g,{anchorEl:o,direction:a,disablePortal:i,modifiers:c,ref:n,open:v?!w:d,placement:m,popperOptions:y,popperRef:g,slotProps:f,slots:b,...C,style:{position:"fixed",top:0,left:0,display:R,...h},TransitionProps:E,children:r})})}),jg=B(Lg,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vg=p.forwardRef(function(t,n){const o=wt(),r=Fe({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:i,componentsProps:l,container:c,disablePortal:d,keepMounted:m,modifiers:y,open:g,placement:h,popperOptions:v,popperRef:f,transition:b,slots:C,slotProps:w,...x}=r,P=C?.root??i?.Root,k={anchorEl:s,container:c,disablePortal:d,keepMounted:m,modifiers:y,open:g,placement:h,popperOptions:v,popperRef:f,transition:b,...x};return u.jsx(jg,{as:a,direction:o?"rtl":"ltr",slots:{root:P},slotProps:w??l,...k,ref:n})}),Bg=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function zg(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Hg(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Wg(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Hg(e))}function _g(e){const t=[],n=[];return Array.from(e.querySelectorAll(Bg)).forEach((o,r)=>{const s=zg(o);s===-1||!Wg(o)||(s===0?t.push(o):n.push({documentOrder:r,tabIndex:s,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function Ug(){return!0}function Zl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=_g,isEnabled:a=Ug,open:i}=e,l=p.useRef(!1),c=p.useRef(null),d=p.useRef(null),m=p.useRef(null),y=p.useRef(null),g=p.useRef(!1),h=p.useRef(null),v=Ze(vo(t),h),f=p.useRef(null);p.useEffect(()=>{!i||!h.current||(g.current=!n)},[n,i]),p.useEffect(()=>{if(!i||!h.current)return;const w=ut(h.current);return h.current.contains(w.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),g.current&&h.current.focus()),()=>{r||(m.current&&m.current.focus&&(l.current=!0,m.current.focus()),m.current=null)}},[i]),p.useEffect(()=>{if(!i||!h.current)return;const w=ut(h.current),x=S=>{f.current=S,!(o||!a()||S.key!=="Tab")&&w.activeElement===h.current&&S.shiftKey&&(l.current=!0,d.current&&d.current.focus())},P=()=>{const S=h.current;if(S===null)return;if(!w.hasFocus()||!a()||l.current){l.current=!1;return}if(S.contains(w.activeElement)||o&&w.activeElement!==c.current&&w.activeElement!==d.current)return;if(w.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!g.current)return;let R=[];if((w.activeElement===c.current||w.activeElement===d.current)&&(R=s(h.current)),R.length>0){const E=!!(f.current?.shiftKey&&f.current?.key==="Tab"),F=R[0],L=R[R.length-1];typeof F!="string"&&typeof L!="string"&&(E?L.focus():F.focus())}else S.focus()};w.addEventListener("focusin",P),w.addEventListener("keydown",x,!0);const k=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(k),w.removeEventListener("focusin",P),w.removeEventListener("keydown",x,!0)}},[n,o,r,a,i,s]);const b=w=>{m.current===null&&(m.current=w.relatedTarget),g.current=!0,y.current=w.target;const x=t.props.onFocus;x&&x(w)},C=w=>{m.current===null&&(m.current=w.relatedTarget),g.current=!0};return u.jsxs(p.Fragment,{children:[u.jsx("div",{tabIndex:i?0:-1,onFocus:C,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:v,onFocus:b}),u.jsx("div",{tabIndex:i?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}function Yg(e){return Ve("MuiPickerPopper",e)}ze("MuiPickerPopper",["root","paper"]);function Cn(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const qg=e=>{setTimeout(e,0)},nt=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?nt(t.shadowRoot):t:null},Qo=e=>Array.from(e.children).indexOf(nt(document)),Jl="@media (pointer: fine)",Kg=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Gg=e=>Oe({root:["root"],paper:["paper"]},Yg,e),Qg=B(Vg,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),Xg=B(lr,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function Zg(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Jg(e,t){const n=p.useRef(!1),o=p.useRef(!1),r=p.useRef(null),s=p.useRef(!1);p.useEffect(()=>{if(!e)return;function l(){s.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),s.current=!1}},[e]);const a=de(l=>{if(!s.current)return;const c=o.current;o.current=!1;const d=Sr(r.current);if(!r.current||"clientX"in l&&Zg(l,d))return;if(n.current){n.current=!1;return}let m;l.composedPath?m=l.composedPath().indexOf(r.current)>-1:m=!d.documentElement.contains(l.target)||r.current.contains(l.target),!m&&!c&&t(l)}),i=()=>{o.current=!0};return p.useEffect(()=>{if(e){const l=Sr(r.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",c)}}},[e,a]),p.useEffect(()=>{if(e){const l=Sr(r.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),o.current=!1}}},[e,a]),[r,i,i]}const eb=p.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:r,paperSlotProps:s,paperClasses:a,onPaperClick:i,onPaperTouchStart:l}=e,c=me(e,Kg),d=Ae({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:o});return u.jsx(n,O({},c,d,{onClick:m=>{i(m),d.onClick?.(m)},onTouchStart:m=>{l(m),d.onTouchStart?.(m)},ownerState:o,children:r}))});function tb(e){const t=De({props:e,name:"MuiPickerPopper"}),{children:n,placement:o="bottom-start",slots:r,slotProps:s,classes:a}=t,{open:i,popupRef:l,reduceAnimations:c}=pn(),{dismissViews:d,getCurrentViewMode:m,onPopperExited:y,triggerElement:g,viewContainerRole:h}=We();p.useEffect(()=>{function V(G){i&&G.key==="Escape"&&d()}return document.addEventListener("keydown",V),()=>{document.removeEventListener("keydown",V)}},[d,i]);const v=p.useRef(null);p.useEffect(()=>{h==="tooltip"||m()==="field"||(i?v.current=nt(document):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[i,h,m]);const f=Gg(a),{ownerState:b,rootRefObject:C}=We(),w=O({},b,{popperPlacement:o}),x=de(()=>{h==="tooltip"?qg(()=>{C.current?.contains(nt(document))||l.current?.contains(nt(document))||d()}):d()}),[P,k,S]=Jg(i,x),R=p.useRef(null),E=ot(R,l),F=ot(E,P),L=V=>{V.key==="Escape"&&(V.stopPropagation(),d())},M=r?.desktopTransition??c?un:Ko,$=r?.desktopTrapFocus??Zl,N=r?.desktopPaper??Xg,I=r?.popper??Qg,T=Ae({elementType:I,externalSlotProps:s?.popper,additionalProps:{transition:!0,role:h??void 0,open:i,placement:o,anchorEl:g,onKeyDown:L},className:f.root,ownerState:w});return u.jsx(I,O({},T,{children:({TransitionProps:V})=>u.jsx($,O({open:i,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},s?.desktopTrapFocus,{children:u.jsx(M,O({},V,s?.desktopTransition,{onExited:G=>{y?.(),s?.desktopTransition?.onExited?.(G),V?.onExited?.()},children:u.jsx(eb,{PaperComponent:N,ownerState:w,ref:F,onPaperClick:k,onPaperTouchStart:S,paperClasses:f.paper,paperSlotProps:s?.desktopPaper,children:n})}))}))}))}const nb="@media (prefers-reduced-motion: reduce)",Dn=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Ba=Dn&&Dn[1]?parseInt(Dn[1],10):null,za=Dn&&Dn[2]?parseInt(Dn[2],10):null,ob=Ba&&Ba<10||za&&za<13||!1;function ec(e){const t=us(nb,{defaultMatches:!1});return e??(t||ob)}const tc={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function rb(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return r=>{if(t==null)return tc;const s=t.findIndex(i=>n(r.view,i)),a=s===-1||s===t.length-1?null:t[s+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&o(O({},r,{step:a}))},areViewsInSameStep:(i,l)=>{const c=t.find(m=>n(i,m)),d=t.find(m=>n(l,m));return c===d}}}}function Do({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:s,focusedView:a,onFocusedViewChange:i,getStepNavigation:l}){const c=p.useRef(n),d=p.useRef(r),m=p.useRef(r.includes(n)?n:r[0]),[y,g]=En({name:"useViews",state:"view",controlled:o,default:m.current}),h=p.useRef(s?y:null),[v,f]=En({name:"useViews",state:"focusedView",controlled:a,default:h.current}),b=l?l({setView:g,view:y,defaultView:m.current,views:r}):tc;p.useEffect(()=>{(c.current&&c.current!==n||d.current&&d.current.some(E=>!r.includes(E)))&&(g(r.includes(n)?n:r[0]),d.current=r,c.current=n)},[n,g,y,r]);const C=r.indexOf(y),w=r[C-1]??null,x=r[C+1]??null,P=de((E,F)=>{f(F?E:L=>E===L?null:L),i?.(E,F)}),k=de(E=>{P(E,!0),E!==y&&(g(E),t&&t(E))}),S=de(()=>{x&&k(x)}),R=de((E,F,L)=>{const M=F==="finish",$=L?r.indexOf(L)<r.length-1:!!x;e(E,M&&$?"partial":F,L);let I=null;if(L!=null&&L!==y?I=L:M&&(I=y),I==null)return;const T=r[r.indexOf(I)+1];T==null||!b.areViewsInSameStep(I,T)||k(T)});return O({},b,{view:y,setView:k,focusedView:v,setFocusedView:P,nextView:x,previousView:w,defaultView:r.includes(n)?n:r[0],goToNextView:S,setValueAndGoToNextView:R})}function Ha(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}function sb(e,t){const[n,o]=p.useState(Ha);return dt(()=>{const r=()=>{o(Ha())};return window.addEventListener("orientationchange",r),()=>{window.removeEventListener("orientationchange",r)}},[]),Cn(e,["hours","minutes","seconds"])?"portrait":t??n}const Gt=({name:e,timezone:t,value:n,defaultValue:o,referenceDate:r,onChange:s,valueManager:a})=>{const i=Te(),[l,c]=En({name:e,state:"value",controlled:n,default:o??a.emptyValue}),d=p.useMemo(()=>a.getTimezone(i,l),[i,a,l]),m=de(v=>d==null?v:a.setTimezone(i,d,v)),y=p.useMemo(()=>t||d||(r?i.getTimezone(r):"default"),[t,d,r,i]),g=p.useMemo(()=>a.setTimezone(i,y,l),[a,i,y,l]),h=de((v,...f)=>{const b=m(v);c(b),s?.(b,...f)});return{value:g,handleValueChange:h,timezone:y}};function ab(e){const{props:t,valueManager:n,validator:o}=e,{value:r,defaultValue:s,onChange:a,referenceDate:i,timezone:l,onAccept:c,closeOnSelect:d,open:m,onOpen:y,onClose:g}=t,{current:h}=p.useRef(s),{current:v}=p.useRef(r!==void 0),{current:f}=p.useRef(m!==void 0),b=Te(),{timezone:C,value:w,handleValueChange:x}=Gt({name:"a picker component",timezone:l,value:r,defaultValue:h,referenceDate:i,onChange:a,valueManager:n}),[P,k]=p.useState(()=>({open:!1,lastExternalValue:w,clockShallowValue:void 0,lastCommittedValue:w,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:S}=Vl({props:t,validator:o,timezone:C,value:w,onError:t.onError}),R=de(M=>{const $=typeof M=="function"?M(P.open):M;f||k(N=>O({},N,{open:$})),$&&y&&y(),$||g?.()}),E=de((M,$)=>{const{changeImportance:N="accept",skipPublicationIfPristine:I=!1,validationError:T,shortcut:V,shouldClose:G=N==="accept"}=$??{};let A,Z;!I&&!v&&!P.hasBeenModifiedSinceMount?(A=!0,Z=N==="accept"):(A=!n.areValuesEqual(b,M,w),Z=N==="accept"&&!n.areValuesEqual(b,M,P.lastCommittedValue)),k(te=>O({},te,{clockShallowValue:A?void 0:te.clockShallowValue,lastCommittedValue:Z?w:te.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let z=null;const ne=()=>(z||(z={validationError:T??S(M)},V&&(z.shortcut=V)),z);A&&x(M,ne()),Z&&c&&c(M,ne()),G&&R(!1)});w!==P.lastExternalValue&&k(M=>O({},M,{lastExternalValue:w,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const F=de((M,$="partial")=>{if($==="shallow"){k(N=>O({},N,{clockShallowValue:M,hasBeenModifiedSinceMount:!0}));return}E(M,{changeImportance:$==="finish"&&d?"accept":"set"})});p.useEffect(()=>{if(f){if(m===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");k(M=>O({},M,{open:m}))}},[f,m]);const L=p.useMemo(()=>n.cleanValue(b,P.clockShallowValue===void 0?w:P.clockShallowValue),[b,n,P.clockShallowValue,w]);return{timezone:C,state:P,setValue:E,setValueFromView:F,setOpen:R,value:w,viewValue:L}}const ib=["className","sx"],nc=({ref:e,props:t,valueManager:n,valueType:o,variant:r,validator:s,onPopperExited:a,autoFocusView:i,rendererInterceptor:l,localeText:c,viewContainerRole:d,getStepNavigation:m})=>{const{views:y,view:g,openTo:h,onViewChange:v,viewRenderers:f,reduceAnimations:b,orientation:C,disableOpenPicker:w,closeOnSelect:x,disabled:P,readOnly:k,formatDensity:S,enableAccessibleFieldDOMStructure:R,selectedSections:E,onSelectedSectionsChange:F,format:L,label:M,autoFocus:$,name:N}=t,{className:I,sx:T}=t,V=me(t,ib),G=wo(),A=Te(),Z=fn(),z=ec(b),ne=sb(y,C),{current:te}=p.useRef(h??null),[se,U]=p.useState(null),oe=p.useRef(null),ce=p.useRef(null),fe=p.useRef(null),re=ot(e,fe),{timezone:Q,state:H,setOpen:q,setValue:X,setValueFromView:K,value:ue,viewValue:J}=ab({props:t,valueManager:n,validator:s}),{view:Y,setView:ee,defaultView:ie,focusedView:W,setFocusedView:j,setValueAndGoToNextView:_,goToNextStep:ge,hasNextStep:ye,hasSeveralSteps:Le}=Do({view:g,views:y,openTo:h,onChange:K,onViewChange:v,autoFocus:i,getStepNavigation:m}),ke=de(()=>X(n.emptyValue)),He=de(()=>X(n.getTodayValue(A,Q,o))),qe=de(()=>X(ue)),be=de(()=>X(H.lastCommittedValue,{skipPublicationIfPristine:!0})),ve=de(()=>{X(ue,{skipPublicationIfPristine:!0})}),{hasUIView:he,viewModeLookup:Ne,timeViewsCount:Ue}=p.useMemo(()=>y.reduce((tt,Wt)=>{const Ws=f[Wt]==null?"field":"UI";return tt.viewModeLookup[Wt]=Ws,Ws==="UI"&&(tt.hasUIView=!0,On(Wt)&&(tt.timeViewsCount+=1)),tt},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[f,y]),pe=Ne[Y],Ce=de(()=>pe),[Me,xe]=p.useState(pe==="UI"?Y:null);Me!==Y&&Ne[Y]==="UI"&&xe(Y),dt(()=>{pe==="field"&&H.open&&(q(!1),setTimeout(()=>{ce?.current?.setSelectedSections(Y),ce?.current?.focusField(Y)}))},[Y]),dt(()=>{if(!H.open)return;let tt=Y;pe==="field"&&Me!=null&&(tt=Me),tt!==ie&&Ne[tt]==="UI"&&Ne[ie]==="UI"&&(tt=ie),tt!==Y&&ee(tt),j(tt,!0)},[H.open]);const Ke=p.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(A,ue,n.emptyValue),isPickerOpen:H.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:ne,pickerVariant:r}),[A,n,ue,H.open,ne,r,t.disabled,t.readOnly]),rt=p.useMemo(()=>w||!he?"hidden":P||k?"disabled":"enabled",[w,he,P,k]),St=de(ge),To=p.useMemo(()=>x&&!Le?[]:["cancel","nextOrAccept"],[x,Le]),ft=p.useMemo(()=>({setValue:X,setOpen:q,clearValue:ke,setValueToToday:He,acceptValueChanges:qe,cancelValueChanges:be,setView:ee,goToNextStep:St}),[X,q,ke,He,qe,be,ee,St]),uu=p.useMemo(()=>O({},ft,{value:ue,timezone:Q,open:H.open,views:y,view:Me,initialView:te,disabled:P??!1,readOnly:k??!1,autoFocus:$??!1,variant:r,orientation:ne,popupRef:oe,reduceAnimations:z,triggerRef:U,triggerStatus:rt,hasNextStep:ye,fieldFormat:L??"",name:N,label:M,rootSx:T,rootRef:re,rootClassName:I}),[ft,ue,re,r,ne,z,P,k,L,I,N,M,T,rt,ye,Q,H.open,Me,y,te,$]),du=p.useMemo(()=>({dismissViews:ve,ownerState:Ke,hasUIView:he,getCurrentViewMode:Ce,rootRefObject:fe,labelId:G,triggerElement:se,viewContainerRole:d,defaultActionBarActions:To,onPopperExited:a}),[ve,Ke,he,Ce,G,se,d,To,a]),pu=p.useMemo(()=>({formatDensity:S,enableAccessibleFieldDOMStructure:R,selectedSections:E,onSelectedSectionsChange:F,fieldRef:ce}),[S,R,E,F,ce]);return{providerProps:{localeText:c,contextValue:uu,privateContextValue:du,actionsContextValue:ft,fieldPrivateContextValue:pu,isValidContextValue:tt=>{const Wt=s({adapter:Z,value:tt,timezone:Q,props:t});return!n.hasError(Wt)}},renderCurrentView:()=>{if(Me==null)return null;const tt=f[Me];if(tt==null)return null;const Wt=O({},V,{views:y,timezone:Q,value:J,onChange:_,view:Me,onViewChange:ee,showViewSwitcher:Ue>1,timeViewsCount:Ue},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:W,onFocusedViewChange:j});return l?u.jsx(l,{viewRenderers:f,popperView:Me,rendererProps:Wt}):tt(Wt)},ownerState:Ke}};function oc(e){return Ve("MuiPickersLayout",e)}const Qt=ze("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function lb(e){return Re("MuiSvgIcon",e)}Se("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cb=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${le(t)}`,`fontSize${le(n)}`]};return Ee(r,lb,o)},ub=B("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${le(n.color)}`],t[`fontSize${le(n.fontSize)}`]]}})(Be(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),_r=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiSvgIcon"}),{children:r,className:s,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:m,viewBox:y="0 0 24 24",...g}=o,h=p.isValidElement(r)&&r.type==="svg",v={...o,color:a,component:i,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:y,hasSvgAsChild:h},f={};d||(f.viewBox=y);const b=cb(v);return u.jsxs(ub,{as:i,className:ae(b.root,s),focusable:"false",color:c,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...f,...g,...h&&r.props,ownerState:v,children:[h?r.props.children:r,m?u.jsx("title",{children:m}):null]})});_r.muiName="SvgIcon";function $t(e,t){function n(o,r){return u.jsx(_r,{"data-testid":`${t}Icon`,ref:r,...o,children:e})}return n.muiName=_r.muiName,p.memo(p.forwardRef(n))}function db(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return r=>{const s=typeof t=="function"?t(r):t,a=typeof e=="function"?e({...r,...s}):e,i=ae(r?.className,s?.className,a?.className);return{...s,...a,...!!i&&{className:i},...s?.style&&a?.style&&{style:{...s.style,...a.style}},...s?.sx&&a?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};const n=t,o=ae(n?.className,e?.className);return{...t,...e,...!!o&&{className:o},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}class Xo{static create(){return new Xo}static use(){const t=el(Xo.create).current,[n,o]=p.useState(!1);return t.shouldMount=n,t.setShouldMount=o,p.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=fb(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function pb(){return Xo.use()}function fb(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function mb(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:s,rippleSize:a,in:i,onExited:l,timeout:c}=e,[d,m]=p.useState(!1),y=ae(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),g={width:a,height:a,top:-(a/2)+s,left:-(a/2)+r},h=ae(n.child,d&&n.childLeaving,o&&n.childPulsate);return!i&&!d&&m(!0),p.useEffect(()=>{if(!i&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,i,c]),u.jsx("span",{className:y,style:g,children:u.jsx("span",{className:h})})}const ht=Se("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ur=550,hb=80,gb=bo`
|
|
13
|
-
0% {
|
|
14
|
-
transform: scale(0);
|
|
15
|
-
opacity: 0.1;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
100% {
|
|
19
|
-
transform: scale(1);
|
|
20
|
-
opacity: 0.3;
|
|
21
|
-
}
|
|
22
|
-
`,bb=bo`
|
|
23
|
-
0% {
|
|
24
|
-
opacity: 1;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
100% {
|
|
28
|
-
opacity: 0;
|
|
29
|
-
}
|
|
30
|
-
`,yb=bo`
|
|
31
|
-
0% {
|
|
32
|
-
transform: scale(1);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
50% {
|
|
36
|
-
transform: scale(0.92);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
100% {
|
|
40
|
-
transform: scale(1);
|
|
41
|
-
}
|
|
42
|
-
`,vb=B("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),xb=B(mb,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
43
|
-
opacity: 0;
|
|
44
|
-
position: absolute;
|
|
45
|
-
|
|
46
|
-
&.${ht.rippleVisible} {
|
|
47
|
-
opacity: 0.3;
|
|
48
|
-
transform: scale(1);
|
|
49
|
-
animation-name: ${gb};
|
|
50
|
-
animation-duration: ${Ur}ms;
|
|
51
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.${ht.ripplePulsate} {
|
|
55
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
& .${ht.child} {
|
|
59
|
-
opacity: 1;
|
|
60
|
-
display: block;
|
|
61
|
-
width: 100%;
|
|
62
|
-
height: 100%;
|
|
63
|
-
border-radius: 50%;
|
|
64
|
-
background-color: currentColor;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
& .${ht.childLeaving} {
|
|
68
|
-
opacity: 0;
|
|
69
|
-
animation-name: ${bb};
|
|
70
|
-
animation-duration: ${Ur}ms;
|
|
71
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
& .${ht.childPulsate} {
|
|
75
|
-
position: absolute;
|
|
76
|
-
/* @noflip */
|
|
77
|
-
left: 0px;
|
|
78
|
-
top: 0;
|
|
79
|
-
animation-name: ${yb};
|
|
80
|
-
animation-duration: 2500ms;
|
|
81
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
82
|
-
animation-iteration-count: infinite;
|
|
83
|
-
animation-delay: 200ms;
|
|
84
|
-
}
|
|
85
|
-
`,wb=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:a,...i}=o,[l,c]=p.useState([]),d=p.useRef(0),m=p.useRef(null);p.useEffect(()=>{m.current&&(m.current(),m.current=null)},[l]);const y=p.useRef(!1),g=nl(),h=p.useRef(null),v=p.useRef(null),f=p.useCallback(x=>{const{pulsate:P,rippleX:k,rippleY:S,rippleSize:R,cb:E}=x;c(F=>[...F,u.jsx(xb,{classes:{ripple:ae(s.ripple,ht.ripple),rippleVisible:ae(s.rippleVisible,ht.rippleVisible),ripplePulsate:ae(s.ripplePulsate,ht.ripplePulsate),child:ae(s.child,ht.child),childLeaving:ae(s.childLeaving,ht.childLeaving),childPulsate:ae(s.childPulsate,ht.childPulsate)},timeout:Ur,pulsate:P,rippleX:k,rippleY:S,rippleSize:R},d.current)]),d.current+=1,m.current=E},[s]),b=p.useCallback((x={},P={},k=()=>{})=>{const{pulsate:S=!1,center:R=r||P.pulsate,fakeElement:E=!1}=P;if(x?.type==="mousedown"&&y.current){y.current=!1;return}x?.type==="touchstart"&&(y.current=!0);const F=E?null:v.current,L=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,$,N;if(R||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)M=Math.round(L.width/2),$=Math.round(L.height/2);else{const{clientX:I,clientY:T}=x.touches&&x.touches.length>0?x.touches[0]:x;M=Math.round(I-L.left),$=Math.round(T-L.top)}if(R)N=Math.sqrt((2*L.width**2+L.height**2)/3),N%2===0&&(N+=1);else{const I=Math.max(Math.abs((F?F.clientWidth:0)-M),M)*2+2,T=Math.max(Math.abs((F?F.clientHeight:0)-$),$)*2+2;N=Math.sqrt(I**2+T**2)}x?.touches?h.current===null&&(h.current=()=>{f({pulsate:S,rippleX:M,rippleY:$,rippleSize:N,cb:k})},g.start(hb,()=>{h.current&&(h.current(),h.current=null)})):f({pulsate:S,rippleX:M,rippleY:$,rippleSize:N,cb:k})},[r,f,g]),C=p.useCallback(()=>{b({},{pulsate:!0})},[b]),w=p.useCallback((x,P)=>{if(g.clear(),x?.type==="touchend"&&h.current){h.current(),h.current=null,g.start(0,()=>{w(x,P)});return}h.current=null,c(k=>k.length>0?k.slice(1):k),m.current=P},[g]);return p.useImperativeHandle(n,()=>({pulsate:C,start:b,stop:w}),[C,b,w]),u.jsx(vb,{className:ae(ht.root,s.root,a),ref:v,...i,children:u.jsx(xo,{component:null,exit:!0,children:l})})});function Cb(e){return Re("MuiButtonBase",e)}const Sb=Se("MuiButtonBase",["root","disabled","focusVisible"]),Pb=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,a=Ee({root:["root",t&&"disabled",n&&"focusVisible"]},Cb,r);return n&&o&&(a.root+=` ${o}`),a},kb=B("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Sb.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ln=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:a,className:i,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:m=!1,focusRipple:y=!1,focusVisibleClassName:g,LinkComponent:h="a",onBlur:v,onClick:f,onContextMenu:b,onDragLeave:C,onFocus:w,onFocusVisible:x,onKeyDown:P,onKeyUp:k,onMouseDown:S,onMouseLeave:R,onMouseUp:E,onTouchEnd:F,onTouchMove:L,onTouchStart:M,tabIndex:$=0,TouchRippleProps:N,touchRippleRef:I,type:T,...V}=o,G=p.useRef(null),A=pb(),Z=Ze(A.ref,I),[z,ne]=p.useState(!1);c&&z&&ne(!1),p.useImperativeHandle(r,()=>({focusVisible:()=>{ne(!0),G.current.focus()}}),[]);const te=A.shouldMount&&!d&&!c;p.useEffect(()=>{z&&y&&!d&&A.pulsate()},[d,y,z,A]);const se=Lt(A,"start",S,m),U=Lt(A,"stop",b,m),oe=Lt(A,"stop",C,m),ce=Lt(A,"stop",E,m),fe=Lt(A,"stop",_=>{z&&_.preventDefault(),R&&R(_)},m),re=Lt(A,"start",M,m),Q=Lt(A,"stop",F,m),H=Lt(A,"stop",L,m),q=Lt(A,"stop",_=>{la(_.target)||ne(!1),v&&v(_)},!1),X=rn(_=>{G.current||(G.current=_.currentTarget),la(_.target)&&(ne(!0),x&&x(_)),w&&w(_)}),K=()=>{const _=G.current;return l&&l!=="button"&&!(_.tagName==="A"&&_.href)},ue=rn(_=>{y&&!_.repeat&&z&&_.key===" "&&A.stop(_,()=>{A.start(_)}),_.target===_.currentTarget&&K()&&_.key===" "&&_.preventDefault(),P&&P(_),_.target===_.currentTarget&&K()&&_.key==="Enter"&&!c&&(_.preventDefault(),f&&f(_))}),J=rn(_=>{y&&_.key===" "&&z&&!_.defaultPrevented&&A.stop(_,()=>{A.pulsate(_)}),k&&k(_),f&&_.target===_.currentTarget&&K()&&_.key===" "&&!_.defaultPrevented&&f(_)});let Y=l;Y==="button"&&(V.href||V.to)&&(Y=h);const ee={};Y==="button"?(ee.type=T===void 0?"button":T,ee.disabled=c):(!V.href&&!V.to&&(ee.role="button"),c&&(ee["aria-disabled"]=c));const ie=Ze(n,G),W={...o,centerRipple:s,component:l,disabled:c,disableRipple:d,disableTouchRipple:m,focusRipple:y,tabIndex:$,focusVisible:z},j=Pb(W);return u.jsxs(kb,{as:Y,className:ae(j.root,i),ownerState:W,onBlur:q,onClick:f,onContextMenu:U,onFocus:X,onKeyDown:ue,onKeyUp:J,onMouseDown:se,onMouseLeave:fe,onMouseUp:ce,onDragLeave:oe,onTouchEnd:Q,onTouchMove:H,onTouchStart:re,ref:ie,tabIndex:c?-1:$,type:T,...ee,...V,children:[a,te?u.jsx(wb,{ref:Z,center:s,...N}):null]})});function Lt(e,t,n,o=!1){return rn(r=>(n&&n(r),o||e[t](r),!0))}function Mb(e){return Re("MuiCircularProgress",e)}Se("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const _t=44,Yr=bo`
|
|
86
|
-
0% {
|
|
87
|
-
transform: rotate(0deg);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
100% {
|
|
91
|
-
transform: rotate(360deg);
|
|
92
|
-
}
|
|
93
|
-
`,qr=bo`
|
|
94
|
-
0% {
|
|
95
|
-
stroke-dasharray: 1px, 200px;
|
|
96
|
-
stroke-dashoffset: 0;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
50% {
|
|
100
|
-
stroke-dasharray: 100px, 200px;
|
|
101
|
-
stroke-dashoffset: -15px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
100% {
|
|
105
|
-
stroke-dasharray: 1px, 200px;
|
|
106
|
-
stroke-dashoffset: -126px;
|
|
107
|
-
}
|
|
108
|
-
`,Db=typeof Yr!="string"?Ei`
|
|
109
|
-
animation: ${Yr} 1.4s linear infinite;
|
|
110
|
-
`:null,Tb=typeof qr!="string"?Ei`
|
|
111
|
-
animation: ${qr} 1.4s ease-in-out infinite;
|
|
112
|
-
`:null,Ib=e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,s={root:["root",n,`color${le(o)}`],svg:["svg"],circle:["circle",`circle${le(n)}`,r&&"circleDisableShrink"]};return Ee(s,Mb,t)},Rb=B("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${le(n.color)}`]]}})(Be(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Db||{animation:`${Yr} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ct()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Eb=B("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Ob=B("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Be(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Tb||{animation:`${qr} 1.4s ease-in-out infinite`}}]}))),rc=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiCircularProgress"}),{className:r,color:s="primary",disableShrink:a=!1,size:i=40,style:l,thickness:c=3.6,value:d=0,variant:m="indeterminate",...y}=o,g={...o,color:s,disableShrink:a,size:i,thickness:c,value:d,variant:m},h=Ib(g),v={},f={},b={};if(m==="determinate"){const C=2*Math.PI*((_t-c)/2);v.strokeDasharray=C.toFixed(3),b["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*C).toFixed(3)}px`,f.transform="rotate(-90deg)"}return u.jsx(Rb,{className:ae(h.root,r),style:{width:i,height:i,...f,...l},ownerState:g,ref:n,role:"progressbar",...b,...y,children:u.jsx(Eb,{className:h.svg,ownerState:g,viewBox:`${_t/2} ${_t/2} ${_t} ${_t}`,children:u.jsx(Ob,{className:h.circle,style:v,ownerState:g,cx:_t,cy:_t,r:(_t-c)/2,fill:"none",strokeWidth:c})})})});function Fb(e){return Re("MuiButton",e)}const Xt=Se("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Nb=p.createContext({}),Ab=p.createContext(void 0),$b=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:s,loading:a,loadingPosition:i,classes:l}=e,c={root:["root",a&&"loading",s,`${s}${le(t)}`,`size${le(r)}`,`${s}Size${le(r)}`,`color${le(t)}`,n&&"disableElevation",o&&"fullWidth",a&&`loadingPosition${le(i)}`],startIcon:["icon","startIcon",`iconSize${le(r)}`],endIcon:["icon","endIcon",`iconSize${le(r)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Ee(c,Fb,l);return{...l,...d}},sc=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Lb=B(Ln,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color)}`],t[`size${le(n.size)}`],t[`${n.variant}Size${le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Be(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Xt.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Xt.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Xt.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Xt.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(ct()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:Ie(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ie(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ie(e.palette[o].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ie(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ie(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Xt.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Xt.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Xt.loading}`]:{color:"transparent"}}}]}})),jb=B("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${le(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...sc]})),Vb=B("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${le(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...sc]})),Bb=B("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Wa=B("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Ut=p.forwardRef(function(t,n){const o=p.useContext(Nb),r=p.useContext(Ab),s=Ri(o,t),a=Fe({props:s,name:"MuiButton"}),{children:i,color:l="primary",component:c="button",className:d,disabled:m=!1,disableElevation:y=!1,disableFocusRipple:g=!1,endIcon:h,focusVisibleClassName:v,fullWidth:f=!1,id:b,loading:C=null,loadingIndicator:w,loadingPosition:x="center",size:P="medium",startIcon:k,type:S,variant:R="text",...E}=a,F=yo(b),L=w??u.jsx(rc,{"aria-labelledby":F,color:"inherit",size:16}),M={...a,color:l,component:c,disabled:m,disableElevation:y,disableFocusRipple:g,fullWidth:f,loading:C,loadingIndicator:L,loadingPosition:x,size:P,type:S,variant:R},$=$b(M),N=(k||C&&x==="start")&&u.jsx(jb,{className:$.startIcon,ownerState:M,children:k||u.jsx(Wa,{className:$.loadingIconPlaceholder,ownerState:M})}),I=(h||C&&x==="end")&&u.jsx(Vb,{className:$.endIcon,ownerState:M,children:h||u.jsx(Wa,{className:$.loadingIconPlaceholder,ownerState:M})}),T=r||"",V=typeof C=="boolean"?u.jsx("span",{className:$.loadingWrapper,style:{display:"contents"},children:C&&u.jsx(Bb,{className:$.loadingIndicator,ownerState:M,children:L})}):null;return u.jsxs(Lb,{ownerState:M,className:ae(o.className,$.root,d,T),component:c,disabled:m||C,focusRipple:!g,focusVisibleClassName:ae($.focusVisible,v),ref:n,type:S,id:C?F:b,...E,classes:$,children:[N,x!=="end"&&V,i,x==="end"&&V,I]})});function zb(e){return Re("MuiDialogActions",e)}Se("MuiDialogActions",["root","spacing"]);const Hb=e=>{const{classes:t,disableSpacing:n}=e;return Ee({root:["root",!n&&"spacing"]},zb,t)},Wb=B("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),_b=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:s=!1,...a}=o,i={...o,disableSpacing:s},l=Hb(i);return u.jsx(Wb,{className:ae(l.root,r),ownerState:i,ref:n,...a})}),Ub=["actions"],Yb=B(_b,{name:"MuiPickersLayout",slot:"ActionBar"})({});function qb(e){const{actions:t}=e,n=me(e,Ub),o=lt(),{clearValue:r,setValueToToday:s,acceptValueChanges:a,cancelValueChanges:i,goToNextStep:l,hasNextStep:c}=pn();if(t==null||t.length===0)return null;const d=t?.map(m=>{switch(m){case"clear":return u.jsx(Ut,{onClick:r,children:o.clearButtonLabel},m);case"cancel":return u.jsx(Ut,{onClick:i,children:o.cancelButtonLabel},m);case"accept":return u.jsx(Ut,{onClick:a,children:o.okButtonLabel},m);case"today":return u.jsx(Ut,{onClick:s,children:o.todayButtonLabel},m);case"next":return u.jsx(Ut,{onClick:l,children:o.nextStepButtonLabel},m);case"nextOrAccept":return c?u.jsx(Ut,{onClick:l,children:o.nextStepButtonLabel},m):u.jsx(Ut,{onClick:a,children:o.okButtonLabel},m);default:return null}});return u.jsx(Yb,O({},n,{children:d}))}const Kb=p.memo(qb),an=p.createContext({});function Gb(e){return Re("MuiList",e)}Se("MuiList",["root","padding","dense","subheader"]);const Qb=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return Ee({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},Gb,t)},Xb=B("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),ac=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiList"}),{children:r,className:s,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:c,...d}=o,m=p.useMemo(()=>({dense:i}),[i]),y={...o,component:a,dense:i,disablePadding:l},g=Qb(y);return u.jsx(an.Provider,{value:m,children:u.jsxs(Xb,{as:a,className:ae(g.root,s),ref:n,ownerState:y,...d,children:[c,r]})})});function fo(e){return typeof e=="string"}function Zb(e){return Re("MuiListItem",e)}Se("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Jb=Se("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function ey(e){return Re("MuiListItemSecondaryAction",e)}Se("MuiListItemSecondaryAction",["root","disableGutters"]);const ty=e=>{const{disableGutters:t,classes:n}=e;return Ee({root:["root",t&&"disableGutters"]},ey,n)},ny=B("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),ic=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...s}=o,a=p.useContext(an),i={...o,disableGutters:a.disableGutters},l=ty(i);return u.jsx(ny,{className:ae(l.root,r),ownerState:i,ref:n,...s})});ic.muiName="ListItemSecondaryAction";const oy=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},ry=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:s,divider:a,hasSecondaryAction:i}=e;return Ee({root:["root",o&&"dense",!r&&"gutters",!s&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",i&&"secondaryAction"],container:["container"]},Zb,n)},sy=B("div",{name:"MuiListItem",slot:"Root",overridesResolver:oy})(Be(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Jb.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),ay=B("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),iy=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiListItem"}),{alignItems:r="center",children:s,className:a,component:i,components:l={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:m,...y}={},dense:g=!1,disableGutters:h=!1,disablePadding:v=!1,divider:f=!1,secondaryAction:b,slotProps:C={},slots:w={},...x}=o,P=p.useContext(an),k=p.useMemo(()=>({dense:g||P.dense||!1,alignItems:r,disableGutters:h}),[r,P.dense,g,h]),S=p.useRef(null),R=p.Children.toArray(s),E=R.length&&Vo(R[R.length-1],["ListItemSecondaryAction"]),F={...o,alignItems:r,dense:k.dense,disableGutters:h,disablePadding:v,divider:f,hasSecondaryAction:E},L=ry(F),M=Ze(S,n),$=w.root||l.Root||sy,N=C.root||c.root||{},I={className:ae(L.root,N.className,a),...x};let T=i||"li";return E?(T=!I.component&&!i?"div":T,d==="li"&&(T==="li"?T="div":I.component==="li"&&(I.component="div")),u.jsx(an.Provider,{value:k,children:u.jsxs(ay,{as:d,className:ae(L.container,m),ref:M,ownerState:F,...y,children:[u.jsx($,{...N,...!fo($)&&{as:T,ownerState:{...F,...N.ownerState}},...I,children:R}),R.pop()]})})):u.jsx(an.Provider,{value:k,children:u.jsxs($,{...N,as:T,ref:M,...!fo($)&&{ownerState:{...F,...N.ownerState}},...I,children:[R,b&&u.jsx(ic,{children:b})]})})}),ly=$t(u.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function cy(e){return Re("MuiChip",e)}const Pe=Se("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),uy=e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:s,onDelete:a,clickable:i,variant:l}=e,c={root:["root",l,n&&"disabled",`size${le(o)}`,`color${le(r)}`,i&&"clickable",i&&`clickableColor${le(r)}`,a&&"deletable",a&&`deletableColor${le(r)}`,`${l}${le(r)}`],label:["label",`label${le(o)}`],avatar:["avatar",`avatar${le(o)}`,`avatarColor${le(r)}`],icon:["icon",`icon${le(o)}`,`iconColor${le(s)}`],deleteIcon:["deleteIcon",`deleteIcon${le(o)}`,`deleteIconColor${le(r)}`,`deleteIcon${le(l)}Color${le(r)}`]};return Ee(c,cy,t)},dy=B("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:s,onDelete:a,size:i,variant:l}=n;return[{[`& .${Pe.avatar}`]:t.avatar},{[`& .${Pe.avatar}`]:t[`avatar${le(i)}`]},{[`& .${Pe.avatar}`]:t[`avatarColor${le(o)}`]},{[`& .${Pe.icon}`]:t.icon},{[`& .${Pe.icon}`]:t[`icon${le(i)}`]},{[`& .${Pe.icon}`]:t[`iconColor${le(r)}`]},{[`& .${Pe.deleteIcon}`]:t.deleteIcon},{[`& .${Pe.deleteIcon}`]:t[`deleteIcon${le(i)}`]},{[`& .${Pe.deleteIcon}`]:t[`deleteIconColor${le(o)}`]},{[`& .${Pe.deleteIcon}`]:t[`deleteIcon${le(l)}Color${le(o)}`]},t.root,t[`size${le(i)}`],t[`color${le(o)}`],s&&t.clickable,s&&o!=="default"&&t[`clickableColor${le(o)})`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${le(o)}`],t[l],t[`${l}${le(o)}`]]}})(Be(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Pe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Pe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Pe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Pe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Pe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Pe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Pe.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ie(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ie(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Pe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Pe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(ct(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Pe.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Ie(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Pe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Pe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Pe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ie(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(ct(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Pe.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ie(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Pe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ie(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(ct(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Pe.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Pe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Pe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Pe.avatar}`]:{marginLeft:4},[`& .${Pe.avatarSmall}`]:{marginLeft:2},[`& .${Pe.icon}`]:{marginLeft:4},[`& .${Pe.iconSmall}`]:{marginLeft:2},[`& .${Pe.deleteIcon}`]:{marginRight:5},[`& .${Pe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(ct()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Ie(e.palette[n].main,.7)}`,[`&.${Pe.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ie(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Pe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ie(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Pe.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Ie(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),py=B("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${le(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function _a(e){return e.key==="Backspace"||e.key==="Delete"}const fy=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiChip"}),{avatar:r,className:s,clickable:a,color:i="default",component:l,deleteIcon:c,disabled:d=!1,icon:m,label:y,onClick:g,onDelete:h,onKeyDown:v,onKeyUp:f,size:b="medium",variant:C="filled",tabIndex:w,skipFocusWhenDisabled:x=!1,...P}=o,k=p.useRef(null),S=Ze(k,n),R=A=>{A.stopPropagation(),h&&h(A)},E=A=>{A.currentTarget===A.target&&_a(A)&&A.preventDefault(),v&&v(A)},F=A=>{A.currentTarget===A.target&&h&&_a(A)&&h(A),f&&f(A)},L=a!==!1&&g?!0:a,M=L||h?Ln:l||"div",$={...o,component:M,disabled:d,size:b,color:i,iconColor:p.isValidElement(m)&&m.props.color||i,onDelete:!!h,clickable:L,variant:C},N=uy($),I=M===Ln?{component:l||"div",focusVisibleClassName:N.focusVisible,...h&&{disableRipple:!0}}:{};let T=null;h&&(T=c&&p.isValidElement(c)?p.cloneElement(c,{className:ae(c.props.className,N.deleteIcon),onClick:R}):u.jsx(ly,{className:ae(N.deleteIcon),onClick:R}));let V=null;r&&p.isValidElement(r)&&(V=p.cloneElement(r,{className:ae(N.avatar,r.props.className)}));let G=null;return m&&p.isValidElement(m)&&(G=p.cloneElement(m,{className:ae(N.icon,m.props.className)})),u.jsxs(dy,{as:M,className:ae(N.root,s),disabled:L&&d?!0:void 0,onClick:g,onKeyDown:E,onKeyUp:F,ref:S,tabIndex:x&&d?-1:w,ownerState:$,...I,...P,children:[V||G,u.jsx(py,{className:ae(N.label),ownerState:$,children:y}),T]})}),mo=36,ur=2,dr=320,my=280,Ts=336,lc=232,hy=48,gy=["items","changeImportance"],by=["getValue"],yy=B(ac,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function vy(e){const{items:t,changeImportance:n="accept"}=e,o=me(e,gy),{setValue:r}=uh(),s=qm();if(t==null||t.length===0)return null;const a=t.map(i=>{let{getValue:l}=i,c=me(i,by);const d=l({isValid:s});return O({},c,{label:c.label,onClick:()=>{r(d,{changeImportance:n,shortcut:c})},disabled:!s(d)})});return u.jsx(yy,O({dense:!0,sx:[{maxHeight:Ts,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(i=>u.jsx(iy,{children:u.jsx(fy,O({},i))},i.id??i.label))}))}const xy=["ownerState"];function wy(e){return e.view!==null}const Cy=(e,t)=>{const{pickerOrientation:n}=t;return Oe({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},oc,e)},Sy=e=>{const{ownerState:t,defaultActionBarActions:n}=We(),{view:o}=pn(),r=wt(),{children:s,slots:a,slotProps:i,classes:l}=e,c=p.useMemo(()=>O({},t,{layoutDirection:r?"rtl":"ltr"}),[t,r]),d=Cy(l,c),m=a?.actionBar??Kb,y=Ae({elementType:m,externalSlotProps:i?.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:c}),g=me(y,xy),h=u.jsx(m,O({},g)),v=a?.toolbar,f=Ae({elementType:v,externalSlotProps:i?.toolbar,className:d.toolbar,ownerState:c}),b=wy(f)&&v?u.jsx(v,O({},f)):null,C=s,w=a?.tabs,x=o&&w?u.jsx(w,O({className:d.tabs},i?.tabs)):null,P=a?.shortcuts??vy,k=Ae({elementType:P,externalSlotProps:i?.shortcuts,className:d.shortcuts,ownerState:c}),S=o&&P?u.jsx(P,O({},k)):null;return{toolbar:b,content:C,tabs:x,actionBar:h,shortcuts:S,ownerState:c}},Py=(e,t)=>{const{pickerOrientation:n}=t;return Oe({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},oc,e)},ky=B("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Qt.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape"},style:{[`& .${Qt.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Qt.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{pickerOrientation:"landscape",layoutDirection:"rtl"},style:{[`& .${Qt.toolbar}`]:{gridColumn:3}}},{props:{pickerOrientation:"portrait"},style:{[`& .${Qt.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Qt.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{pickerOrientation:"portrait",layoutDirection:"rtl"},style:{[`& .${Qt.shortcuts}`]:{gridColumn:3}}}]}),My=B("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),cc=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:s,tabs:a,actionBar:i,shortcuts:l,ownerState:c}=Sy(o),{orientation:d,variant:m}=pn(),{sx:y,className:g,classes:h}=o,v=Py(h,c);return u.jsxs(ky,{ref:n,sx:y,className:ae(v.root,g),ownerState:c,children:[d==="landscape"?l:r,d==="landscape"?r:l,u.jsx(My,{className:v.contentWrapper,ownerState:c,children:m==="desktop"?u.jsxs(p.Fragment,{children:[s,a]}):u.jsxs(p.Fragment,{children:[a,s]})}),i]})});function Eo(e){return parseInt(e,10)||0}const Dy={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Ty(e){for(const t in e)return!1;return!0}function Ua(e){return Ty(e)||e.outerHeightStyle===0&&!e.overflowing}const Iy=p.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:s=1,style:a,value:i,...l}=t,{current:c}=p.useRef(i!=null),d=p.useRef(null),m=Ze(n,d),y=p.useRef(null),g=p.useRef(null),h=p.useCallback(()=>{const w=d.current,x=g.current;if(!w||!x)return;const k=Vt(w).getComputedStyle(w);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=k.width,x.value=w.value||t.placeholder||"x",x.value.slice(-1)===`
|
|
113
|
-
`&&(x.value+=" ");const S=k.boxSizing,R=Eo(k.paddingBottom)+Eo(k.paddingTop),E=Eo(k.borderBottomWidth)+Eo(k.borderTopWidth),F=x.scrollHeight;x.value="x";const L=x.scrollHeight;let M=F;s&&(M=Math.max(Number(s)*L,M)),r&&(M=Math.min(Number(r)*L,M)),M=Math.max(M,L);const $=M+(S==="border-box"?R+E:0),N=Math.abs(M-F)<=1;return{outerHeightStyle:$,overflowing:N}},[r,s,t.placeholder]),v=rn(()=>{const w=d.current,x=h();if(!w||!x||Ua(x))return!1;const P=x.outerHeightStyle;return y.current!=null&&y.current!==P}),f=p.useCallback(()=>{const w=d.current,x=h();if(!w||!x||Ua(x))return;const P=x.outerHeightStyle;y.current!==P&&(y.current=P,w.style.height=`${P}px`),w.style.overflow=x.overflowing?"hidden":""},[h]),b=p.useRef(-1);Dt(()=>{const w=Ji(f),x=d?.current;if(!x)return;const P=Vt(x);P.addEventListener("resize",w);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{v()&&(k.unobserve(x),cancelAnimationFrame(b.current),f(),b.current=requestAnimationFrame(()=>{k.observe(x)}))}),k.observe(x)),()=>{w.clear(),cancelAnimationFrame(b.current),P.removeEventListener("resize",w),k&&k.disconnect()}},[h,f,v]),Dt(()=>{f()});const C=w=>{c||f(),o&&o(w)};return u.jsxs(p.Fragment,{children:[u.jsx("textarea",{value:i,onChange:C,ref:m,rows:s,style:a,...l}),u.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:{...Dy.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function Hn({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}const pr=p.createContext(void 0);function Ht(){return p.useContext(pr)}function Ya(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Zo(e,t=!1){return e&&(Ya(e.value)&&e.value!==""||t&&Ya(e.defaultValue)&&e.defaultValue!=="")}function Ry(e){return e.startAdornment}function Ey(e){return Re("MuiInputBase",e)}const jn=Se("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var qa;const fr=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${le(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},mr=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Oy=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:s,focused:a,formControl:i,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:m,size:y,startAdornment:g,type:h}=e,v={root:["root",`color${le(n)}`,o&&"disabled",r&&"error",l&&"fullWidth",a&&"focused",i&&"formControl",y&&y!=="medium"&&`size${le(y)}`,d&&"multiline",g&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",m&&"readOnly"],input:["input",o&&"disabled",h==="search"&&"inputTypeSearch",d&&"inputMultiline",y==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",g&&"inputAdornedStart",s&&"inputAdornedEnd",m&&"readOnly"]};return Ee(v,Ey,t)},hr=B("div",{name:"MuiInputBase",slot:"Root",overridesResolver:fr})(Be(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${jn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),gr=B("input",{name:"MuiInputBase",slot:"Input",overridesResolver:mr})(Be(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${jn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${jn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Ka=Lm({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Is=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:s,autoFocus:a,className:i,color:l,components:c={},componentsProps:d={},defaultValue:m,disabled:y,disableInjectingGlobalStyles:g,endAdornment:h,error:v,fullWidth:f=!1,id:b,inputComponent:C="input",inputProps:w={},inputRef:x,margin:P,maxRows:k,minRows:S,multiline:R=!1,name:E,onBlur:F,onChange:L,onClick:M,onFocus:$,onKeyDown:N,onKeyUp:I,placeholder:T,readOnly:V,renderSuffix:G,rows:A,size:Z,slotProps:z={},slots:ne={},startAdornment:te,type:se="text",value:U,...oe}=o,ce=w.value!=null?w.value:U,{current:fe}=p.useRef(ce!=null),re=p.useRef(),Q=p.useCallback(he=>{},[]),H=Ze(re,x,w.ref,Q),[q,X]=p.useState(!1),K=Ht(),ue=Hn({props:o,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ue.focused=K?K.focused:q,p.useEffect(()=>{!K&&y&&q&&(X(!1),F&&F())},[K,y,q,F]);const J=K&&K.onFilled,Y=K&&K.onEmpty,ee=p.useCallback(he=>{Zo(he)?J&&J():Y&&Y()},[J,Y]);Dt(()=>{fe&&ee({value:ce})},[ce,ee,fe]);const ie=he=>{$&&$(he),w.onFocus&&w.onFocus(he),K&&K.onFocus?K.onFocus(he):X(!0)},W=he=>{F&&F(he),w.onBlur&&w.onBlur(he),K&&K.onBlur?K.onBlur(he):X(!1)},j=(he,...Ne)=>{if(!fe){const Ue=he.target||re.current;if(Ue==null)throw new Error(Di(1));ee({value:Ue.value})}w.onChange&&w.onChange(he,...Ne),L&&L(he,...Ne)};p.useEffect(()=>{ee(re.current)},[]);const _=he=>{re.current&&he.currentTarget===he.target&&re.current.focus(),M&&M(he)};let ge=C,ye=w;R&&ge==="input"&&(A?ye={type:void 0,minRows:A,maxRows:A,...ye}:ye={type:void 0,maxRows:k,minRows:S,...ye},ge=Iy);const Le=he=>{ee(he.animationName==="mui-auto-fill-cancel"?re.current:{value:"x"})};p.useEffect(()=>{K&&K.setAdornedStart(!!te)},[K,te]);const ke={...o,color:ue.color||"primary",disabled:ue.disabled,endAdornment:h,error:ue.error,focused:ue.focused,formControl:K,fullWidth:f,hiddenLabel:ue.hiddenLabel,multiline:R,size:ue.size,startAdornment:te,type:se},He=Oy(ke),qe=ne.root||c.Root||hr,be=z.root||d.root||{},ve=ne.input||c.Input||gr;return ye={...ye,...z.input??d.input},u.jsxs(p.Fragment,{children:[!g&&typeof Ka=="function"&&(qa||(qa=u.jsx(Ka,{}))),u.jsxs(qe,{...be,ref:n,onClick:_,...oe,...!fo(qe)&&{ownerState:{...ke,...be.ownerState}},className:ae(He.root,be.className,i,V&&"MuiInputBase-readOnly"),children:[te,u.jsx(pr.Provider,{value:null,children:u.jsx(ve,{"aria-invalid":ue.error,"aria-describedby":r,autoComplete:s,autoFocus:a,defaultValue:m,disabled:ue.disabled,id:b,onAnimationStart:Le,name:E,placeholder:T,readOnly:V,required:ue.required,rows:A,value:ce,onKeyDown:N,onKeyUp:I,type:se,...ye,...!fo(ve)&&{as:ge,ownerState:{...ke,...ye.ownerState}},ref:H,className:ae(He.input,ye.className,V&&"MuiInputBase-readOnly"),onBlur:W,onChange:j,onFocus:ie})}),h,G?G({...ue,startAdornment:te}):null]})]})});function Fy(e){return Re("MuiInput",e)}const Un={...jn,...Se("MuiInput",["root","underline","input"])},Ny=e=>{const{classes:t,disableUnderline:n}=e,r=Ee({root:["root",!n&&"underline"],input:["input"]},Fy,t);return{...t,...r}},Ay=B(hr,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...fr(e,t),!n.disableUnderline&&t.underline]}})(Be(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Un.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Un.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Un.disabled}, .${Un.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Un.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ct()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),$y=B(gr,{name:"MuiInput",slot:"Input",overridesResolver:mr})({}),Rs=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:s={},componentsProps:a,fullWidth:i=!1,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:m={},type:y="text",...g}=o,h=Ny(o),f={root:{ownerState:{disableUnderline:r}}},b=d??a?Xr(d??a,f):f,C=m.root??s.Root??Ay,w=m.input??s.Input??$y;return u.jsx(Is,{slots:{root:C,input:w},slotProps:b,fullWidth:i,inputComponent:l,multiline:c,ref:n,type:y,...g,classes:h})});Rs.muiName="Input";function Ly(e){return Re("MuiFilledInput",e)}const Zt={...jn,...Se("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},jy=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:s,hiddenLabel:a,multiline:i}=e,l={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",s==="small"&&`size${le(s)}`,a&&"hiddenLabel",i&&"multiline"],input:["input"]},c=Ee(l,Ly,t);return{...t,...c}},Vy=B(hr,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...fr(e,t),!n.disableUnderline&&t.underline]}})(Be(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Zt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Zt.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Zt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Zt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Zt.disabled}, .${Zt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Zt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ct()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:i})=>a.multiline&&i==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),By=B(gr,{name:"MuiFilledInput",slot:"Input",overridesResolver:mr})(Be(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Es=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:s={},componentsProps:a,fullWidth:i=!1,hiddenLabel:l,inputComponent:c="input",multiline:d=!1,slotProps:m,slots:y={},type:g="text",...h}=o,v={...o,disableUnderline:r,fullWidth:i,inputComponent:c,multiline:d,type:g},f=jy(o),b={root:{ownerState:v},input:{ownerState:v}},C=m??a?Xr(b,m??a):b,w=y.root??s.Root??Vy,x=y.input??s.Input??By;return u.jsx(Is,{slots:{root:w,input:x},slotProps:C,fullWidth:i,inputComponent:c,multiline:d,ref:n,type:g,...h,classes:f})});Es.muiName="Input";var Ga;const zy=B("fieldset",{shouldForwardProp:Ct})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Hy=B("legend",{shouldForwardProp:Ct})(Be(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Wy(e){const{children:t,classes:n,className:o,label:r,notched:s,...a}=e,i=r!=null&&r!=="",l={...e,notched:s,withLabel:i};return u.jsx(zy,{"aria-hidden":!0,className:o,ownerState:l,...a,children:u.jsx(Hy,{ownerState:l,children:i?u.jsx("span",{children:r}):Ga||(Ga=u.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}function _y(e){return Re("MuiOutlinedInput",e)}const It={...jn,...Se("MuiOutlinedInput",["root","notchedOutline","input"])},Uy=e=>{const{classes:t}=e,o=Ee({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},_y,t);return{...t,...o}},Yy=B(hr,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:fr})(Be(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${It.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${It.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${It.focused} .${It.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ct()).map(([n])=>({props:{color:n},style:{[`&.${It.focused} .${It.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${It.error} .${It.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${It.disabled} .${It.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),qy=B(Wy,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Be(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Ky=B(gr,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:mr})(Be(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Os=p.forwardRef(function(t,n){var o;const r=Fe({props:t,name:"MuiOutlinedInput"}),{components:s={},fullWidth:a=!1,inputComponent:i="input",label:l,multiline:c=!1,notched:d,slots:m={},type:y="text",...g}=r,h=Uy(r),v=Ht(),f=Hn({props:r,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...r,color:f.color||"primary",disabled:f.disabled,error:f.error,focused:f.focused,formControl:v,fullWidth:a,hiddenLabel:f.hiddenLabel,multiline:c,size:f.size,type:y},C=m.root??s.Root??Yy,w=m.input??s.Input??Ky;return u.jsx(Is,{slots:{root:C,input:w},renderSuffix:x=>u.jsx(qy,{ownerState:b,className:h.notchedOutline,label:l!=null&&l!==""&&f.required?o||(o=u.jsxs(p.Fragment,{children:[l," ","*"]})):l,notched:typeof d<"u"?d:!!(x.startAdornment||x.filled||x.focused)}),fullWidth:a,inputComponent:i,multiline:c,ref:n,type:y,...g,classes:{...h,notchedOutline:null}})});Os.muiName="Input";function Gy(e){return Re("MuiFormLabel",e)}const ro=Se("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Qy=e=>{const{classes:t,color:n,focused:o,disabled:r,error:s,filled:a,required:i}=e,l={root:["root",`color${le(n)}`,r&&"disabled",s&&"error",a&&"filled",o&&"focused",i&&"required"],asterisk:["asterisk",s&&"error"]};return Ee(l,Gy,t)},Xy=B("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Be(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(ct()).map(([t])=>({props:{color:t},style:{[`&.${ro.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ro.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ro.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Zy=B("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Be(({theme:e})=>({[`&.${ro.error}`]:{color:(e.vars||e).palette.error.main}}))),Jy=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiFormLabel"}),{children:r,className:s,color:a,component:i="label",disabled:l,error:c,filled:d,focused:m,required:y,...g}=o,h=Ht(),v=Hn({props:o,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),f={...o,color:v.color||"primary",component:i,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required},b=Qy(f);return u.jsxs(Xy,{as:i,ownerState:f,className:ae(b.root,s),ref:n,...g,children:[r,v.required&&u.jsxs(Zy,{ownerState:f,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]})});function ev(e){return Re("MuiInputLabel",e)}Se("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const tv=e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:s,variant:a,required:i}=e,l={root:["root",n&&"formControl",!s&&"animated",r&&"shrink",o&&o!=="normal"&&`size${le(o)}`,a],asterisk:[i&&"asterisk"]},c=Ee(l,ev,t);return{...t,...c}},nv=B(Jy,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ro.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Be(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),uc=p.forwardRef(function(t,n){const o=Fe({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:s,shrink:a,variant:i,className:l,...c}=o,d=Ht();let m=a;typeof m>"u"&&d&&(m=d.filled||d.focused||d.adornedStart);const y=Hn({props:o,muiFormControl:d,states:["size","variant","required","focused"]}),g={...o,disableAnimation:r,formControl:d,shrink:m,size:y.size,variant:y.variant,required:y.required,focused:y.focused},h=tv(g);return u.jsx(nv,{"data-shrink":m,ref:n,className:ae(h.root,l),...c,ownerState:g,classes:h})});function ov(e){return Re("MuiFormControl",e)}Se("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const rv=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${le(n)}`,o&&"fullWidth"]};return Ee(r,ov,t)},sv=B("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${le(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),dc=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiFormControl"}),{children:r,className:s,color:a="primary",component:i="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:m=!1,hiddenLabel:y=!1,margin:g="none",required:h=!1,size:v="medium",variant:f="outlined",...b}=o,C={...o,color:a,component:i,disabled:l,error:c,fullWidth:m,hiddenLabel:y,margin:g,required:h,size:v,variant:f},w=rv(C),[x,P]=p.useState(()=>{let I=!1;return r&&p.Children.forEach(r,T=>{if(!Vo(T,["Input","Select"]))return;const V=Vo(T,["Select"])?T.props.input:T;V&&Ry(V.props)&&(I=!0)}),I}),[k,S]=p.useState(()=>{let I=!1;return r&&p.Children.forEach(r,T=>{Vo(T,["Input","Select"])&&(Zo(T.props,!0)||Zo(T.props.inputProps,!0))&&(I=!0)}),I}),[R,E]=p.useState(!1);l&&R&&E(!1);const F=d!==void 0&&!l?d:R;let L;p.useRef(!1);const M=p.useCallback(()=>{S(!0)},[]),$=p.useCallback(()=>{S(!1)},[]),N=p.useMemo(()=>({adornedStart:x,setAdornedStart:P,color:a,disabled:l,error:c,filled:k,focused:F,fullWidth:m,hiddenLabel:y,size:v,onBlur:()=>{E(!1)},onFocus:()=>{E(!0)},onEmpty:$,onFilled:M,registerEffect:L,required:h,variant:f}),[x,a,l,c,k,F,m,y,L,$,M,h,v,f]);return u.jsx(pr.Provider,{value:N,children:u.jsx(sv,{as:i,ownerState:C,className:ae(w.root,s),ref:n,...b,children:r})})});function av(e){return Re("MuiFormHelperText",e)}const Qa=Se("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Xa;const iv=e=>{const{classes:t,contained:n,size:o,disabled:r,error:s,filled:a,focused:i,required:l}=e,c={root:["root",r&&"disabled",s&&"error",o&&`size${le(o)}`,n&&"contained",i&&"focused",a&&"filled",l&&"required"]};return Ee(c,av,t)},lv=B("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Be(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Qa.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Qa.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),pc=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiFormHelperText"}),{children:r,className:s,component:a="p",disabled:i,error:l,filled:c,focused:d,margin:m,required:y,variant:g,...h}=o,v=Ht(),f=Hn({props:o,muiFormControl:v,states:["variant","size","disabled","error","filled","focused","required"]}),b={...o,component:a,contained:f.variant==="filled"||f.variant==="outlined",variant:f.variant,size:f.size,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required};delete b.ownerState;const C=iv(b);return u.jsx(lv,{as:a,className:ae(C.root,s),ref:n,...h,ownerState:b,children:r===" "?Xa||(Xa=u.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):r})});function kr(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Za(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function fc(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Yn(e,t,n,o,r,s){let a=!1,i=r(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(a)return!1;a=!0}const l=o?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!fc(i,s)||l)i=r(e,i,n);else return i.focus(),!0}return!1}const Fs=p.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:s=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:m="selectedMenu",...y}=t,g=p.useRef(null),h=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Dt(()=>{r&&g.current.focus()},[r]),p.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(w,{direction:x})=>{const P=!g.current.style.width;if(w.clientHeight<g.current.clientHeight&&P){const k=`${ol(Vt(w))}px`;g.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=k,g.current.style.width=`calc(100% + ${k})`}return g.current}}),[]);const v=w=>{const x=g.current,P=w.key;if(w.ctrlKey||w.metaKey||w.altKey){d&&d(w);return}const S=ut(x).activeElement;if(P==="ArrowDown")w.preventDefault(),Yn(x,S,c,l,kr);else if(P==="ArrowUp")w.preventDefault(),Yn(x,S,c,l,Za);else if(P==="Home")w.preventDefault(),Yn(x,null,c,l,kr);else if(P==="End")w.preventDefault(),Yn(x,null,c,l,Za);else if(P.length===1){const R=h.current,E=P.toLowerCase(),F=performance.now();R.keys.length>0&&(F-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&E!==R.keys[0]&&(R.repeating=!1)),R.lastTime=F,R.keys.push(E);const L=S&&!R.repeating&&fc(S,R);R.previousKeyMatched&&(L||Yn(x,S,!1,l,kr,R))?w.preventDefault():R.previousKeyMatched=!1}d&&d(w)},f=Ze(g,n);let b=-1;p.Children.forEach(a,(w,x)=>{if(!p.isValidElement(w)){b===x&&(b+=1,b>=a.length&&(b=-1));return}w.props.disabled||(m==="selectedMenu"&&w.props.selected||b===-1)&&(b=x),b===x&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))});const C=p.Children.map(a,(w,x)=>{if(x===b){const P={};return s&&(P.autoFocus=!0),w.props.tabIndex===void 0&&m==="selectedMenu"&&(P.tabIndex=0),p.cloneElement(w,P)}return w});return u.jsx(ac,{role:"menu",ref:f,className:i,onKeyDown:v,tabIndex:r?0:-1,...y,children:C})});function cv(e){const t=ut(e);return t.body===e?Vt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function so(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ja(e){return parseInt(Vt(e).getComputedStyle(e).paddingRight,10)||0}function uv(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function ei(e,t,n,o,r){const s=[t,n,...o];[].forEach.call(e.children,a=>{const i=!s.includes(a),l=!uv(a);i&&l&&so(a,r)})}function Mr(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function dv(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(cv(o)){const a=ol(Vt(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Ja(o)+a}px`;const i=ut(o).querySelectorAll(".mui-fixed");[].forEach.call(i,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Ja(l)+a}px`})}let s;if(o.parentNode instanceof DocumentFragment)s=ut(o).body;else{const a=o.parentElement,i=Vt(o);s=a?.nodeName==="HTML"&&i.getComputedStyle(a).overflowY==="scroll"?a:o}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:a,property:i})=>{s?a.style.setProperty(i,s):a.style.removeProperty(i)})}}function pv(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class fv{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&so(t.modalRef,!1);const r=pv(n);ei(n,t.mount,t.modalRef,r,!0);const s=Mr(this.containers,a=>a.container===n);return s!==-1?(this.containers[s].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=Mr(this.containers,s=>s.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=dv(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=Mr(this.containers,a=>a.modals.includes(t)),s=this.containers[r];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(o,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&so(t.modalRef,n),ei(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&so(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Xe(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:i=!1,...l}=t,{component:c,slots:d={[e]:void 0},slotProps:m={[e]:void 0},...y}=s,g=d[e]||o,h=il(m[e],r),{props:{component:v,...f},internalRef:b}=al({className:n,...l,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:h}),C=Ze(b,h?.ref,t.ref),w=e==="root"?v||c:v,x=rl(g,{...e==="root"&&!c&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...f,...w&&!i&&{as:w},...w&&i&&{component:w},ref:C},r);return[g,x]}function mv(e){return Re("MuiBackdrop",e)}Se("MuiBackdrop",["root","invisible"]);const hv=e=>{const{classes:t,invisible:n}=e;return Ee({root:["root",n&&"invisible"]},mv,t)},gv=B("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),mc=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiBackdrop"}),{children:r,className:s,component:a="div",invisible:i=!1,open:l,components:c={},componentsProps:d={},slotProps:m={},slots:y={},TransitionComponent:g,transitionDuration:h,...v}=o,f={...o,component:a,invisible:i},b=hv(f),C={transition:g,root:c.Root,...y},w={...d,...m},x={slots:C,slotProps:w},[P,k]=Xe("root",{elementType:gv,externalForwardedProps:x,className:ae(b.root,s),ownerState:f}),[S,R]=Xe("transition",{elementType:un,externalForwardedProps:x,ownerState:f});return u.jsx(S,{in:l,timeout:h,...v,...R,children:u.jsx(P,{"aria-hidden":!0,...k,classes:b,ref:n,children:r})})});function bv(e){return typeof e=="function"?e():e}function yv(e){return e?e.props.hasOwnProperty("in"):!1}const ti=()=>{},Oo=new fv;function vv(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:s,onTransitionExited:a,children:i,onClose:l,open:c,rootRef:d}=e,m=p.useRef({}),y=p.useRef(null),g=p.useRef(null),h=Ze(g,d),[v,f]=p.useState(!c),b=yv(i);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>ut(y.current),x=()=>(m.current.modalRef=g.current,m.current.mount=y.current,m.current),P=()=>{Oo.mount(x(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},k=rn(()=>{const I=bv(t)||w().body;Oo.add(x(),I),g.current&&P()}),S=()=>Oo.isTopModal(x()),R=rn(I=>{y.current=I,I&&(c&&S()?P():g.current&&so(g.current,C))}),E=p.useCallback(()=>{Oo.remove(x(),C)},[C]);p.useEffect(()=>()=>{E()},[E]),p.useEffect(()=>{c?k():(!b||!r)&&E()},[c,E,b,r,k]);const F=I=>T=>{I.onKeyDown?.(T),!(T.key!=="Escape"||T.which===229||!S())&&(n||(T.stopPropagation(),l&&l(T,"escapeKeyDown")))},L=I=>T=>{I.onClick?.(T),T.target===T.currentTarget&&l&&l(T,"backdropClick")};return{getRootProps:(I={})=>{const T=sl(e);delete T.onTransitionEnter,delete T.onTransitionExited;const V={...T,...I};return{role:"presentation",...V,onKeyDown:F(V),ref:h}},getBackdropProps:(I={})=>{const T=I;return{"aria-hidden":!0,...T,onClick:L(T),open:c}},getTransitionProps:()=>{const I=()=>{f(!1),s&&s()},T=()=>{f(!0),a&&a(),r&&E()};return{onEnter:na(I,i?.props.onEnter??ti),onExited:na(T,i?.props.onExited??ti)}},rootRef:h,portalRef:R,isTopModal:S,exited:v,hasTransition:b}}function xv(e){return Re("MuiModal",e)}Se("MuiModal",["root","hidden","backdrop"]);const wv=e=>{const{open:t,exited:n,classes:o}=e;return Ee({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},xv,o)},Cv=B("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Be(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Sv=B(mc,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),hc=p.forwardRef(function(t,n){const o=Fe({name:"MuiModal",props:t}),{BackdropComponent:r=Sv,BackdropProps:s,classes:a,className:i,closeAfterTransition:l=!1,children:c,container:d,component:m,components:y={},componentsProps:g={},disableAutoFocus:h=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:f=!1,disablePortal:b=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:x=!1,keepMounted:P=!1,onBackdropClick:k,onClose:S,onTransitionEnter:R,onTransitionExited:E,open:F,slotProps:L={},slots:M={},theme:$,...N}=o,I={...o,closeAfterTransition:l,disableAutoFocus:h,disableEnforceFocus:v,disableEscapeKeyDown:f,disablePortal:b,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:x,keepMounted:P},{getRootProps:T,getBackdropProps:V,getTransitionProps:G,portalRef:A,isTopModal:Z,exited:z,hasTransition:ne}=vv({...I,rootRef:n}),te={...I,exited:z},se=wv(te),U={};if(c.props.tabIndex===void 0&&(U.tabIndex="-1"),ne){const{onEnter:H,onExited:q}=G();U.onEnter=H,U.onExited=q}const oe={slots:{root:y.Root,backdrop:y.Backdrop,...M},slotProps:{...g,...L}},[ce,fe]=Xe("root",{ref:n,elementType:Cv,externalForwardedProps:{...oe,...N,component:m},getSlotProps:T,ownerState:te,className:ae(i,se?.root,!te.open&&te.exited&&se?.hidden)}),[re,Q]=Xe("backdrop",{ref:s?.ref,elementType:r,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:H=>V({...H,onClick:q=>{k&&k(q),H?.onClick&&H.onClick(q)}}),className:ae(s?.className,se?.backdrop),ownerState:te});return!P&&!F&&(!ne||z)?null:u.jsx(Xl,{ref:A,container:d,disablePortal:b,children:u.jsxs(ce,{...fe,children:[!x&&r?u.jsx(re,{...Q}):null,u.jsx(Zl,{disableEnforceFocus:v,disableAutoFocus:h,disableRestoreFocus:C,isEnabled:Z,open:F,children:p.cloneElement(c,U)})]})})});function Pv(e){return Re("MuiPopover",e)}Se("MuiPopover",["root","paper"]);function ni(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function oi(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ri(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Fo(e){return typeof e=="function"?e():e}const kv=e=>{const{classes:t}=e;return Ee({root:["root"],paper:["paper"]},Pv,t)},Mv=B(hc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gc=B(lr,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Dv=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiPopover"}),{action:r,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:i,anchorReference:l="anchorEl",children:c,className:d,container:m,elevation:y=8,marginThreshold:g=16,open:h,PaperProps:v={},slots:f={},slotProps:b={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:x="auto",TransitionProps:P={},disableScrollLock:k=!1,...S}=o,R=p.useRef(),E={...o,anchorOrigin:a,anchorReference:l,elevation:y,marginThreshold:g,transformOrigin:C,TransitionComponent:w,transitionDuration:x,TransitionProps:P},F=kv(E),L=p.useCallback(()=>{if(l==="anchorPosition")return i;const Q=Fo(s),q=(Q&&Q.nodeType===1?Q:ut(R.current).body).getBoundingClientRect();return{top:q.top+ni(q,a.vertical),left:q.left+oi(q,a.horizontal)}},[s,a.horizontal,a.vertical,i,l]),M=p.useCallback(Q=>({vertical:ni(Q,C.vertical),horizontal:oi(Q,C.horizontal)}),[C.horizontal,C.vertical]),$=p.useCallback(Q=>{const H={width:Q.offsetWidth,height:Q.offsetHeight},q=M(H);if(l==="none")return{top:null,left:null,transformOrigin:ri(q)};const X=L();let K=X.top-q.vertical,ue=X.left-q.horizontal;const J=K+H.height,Y=ue+H.width,ee=Vt(Fo(s)),ie=ee.innerHeight-g,W=ee.innerWidth-g;if(g!==null&&K<g){const j=K-g;K-=j,q.vertical+=j}else if(g!==null&&J>ie){const j=J-ie;K-=j,q.vertical+=j}if(g!==null&&ue<g){const j=ue-g;ue-=j,q.horizontal+=j}else if(Y>W){const j=Y-W;ue-=j,q.horizontal+=j}return{top:`${Math.round(K)}px`,left:`${Math.round(ue)}px`,transformOrigin:ri(q)}},[s,l,L,M,g]),[N,I]=p.useState(h),T=p.useCallback(()=>{const Q=R.current;if(!Q)return;const H=$(Q);H.top!==null&&Q.style.setProperty("top",H.top),H.left!==null&&(Q.style.left=H.left),Q.style.transformOrigin=H.transformOrigin,I(!0)},[$]);p.useEffect(()=>(k&&window.addEventListener("scroll",T),()=>window.removeEventListener("scroll",T)),[s,k,T]);const V=()=>{T()},G=()=>{I(!1)};p.useEffect(()=>{h&&T()}),p.useImperativeHandle(r,()=>h?{updatePosition:()=>{T()}}:null,[h,T]),p.useEffect(()=>{if(!h)return;const Q=Ji(()=>{T()}),H=Vt(Fo(s));return H.addEventListener("resize",Q),()=>{Q.clear(),H.removeEventListener("resize",Q)}},[s,h,T]);let A=x;const Z={slots:{transition:w,...f},slotProps:{transition:P,paper:v,...b}},[z,ne]=Xe("transition",{elementType:Ko,externalForwardedProps:Z,ownerState:E,getSlotProps:Q=>({...Q,onEntering:(H,q)=>{Q.onEntering?.(H,q),V()},onExited:H=>{Q.onExited?.(H),G()}}),additionalProps:{appear:!0,in:h}});x==="auto"&&!z.muiSupportAuto&&(A=void 0);const te=m||(s?ut(Fo(s)).body:void 0),[se,{slots:U,slotProps:oe,...ce}]=Xe("root",{ref:n,elementType:Mv,externalForwardedProps:{...Z,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:f.backdrop},slotProps:{backdrop:db(typeof b.backdrop=="function"?b.backdrop(E):b.backdrop,{invisible:!0})},container:te,open:h},ownerState:E,className:ae(F.root,d)}),[fe,re]=Xe("paper",{ref:R,className:F.paper,elementType:gc,externalForwardedProps:Z,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:N?void 0:{opacity:0}},ownerState:E});return u.jsx(se,{...ce,...!fo(se)&&{slots:U,slotProps:oe,disableScrollLock:k},children:u.jsx(z,{...ne,timeout:A,children:u.jsx(fe,{...re,children:c})})})});function Tv(e){return Re("MuiMenu",e)}Se("MuiMenu",["root","paper","list"]);const Iv={vertical:"top",horizontal:"right"},Rv={vertical:"top",horizontal:"left"},Ev=e=>{const{classes:t}=e;return Ee({root:["root"],paper:["paper"],list:["list"]},Tv,t)},Ov=B(Dv,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fv=B(gc,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Nv=B(Fs,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Av=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:s,className:a,disableAutoFocusItem:i=!1,MenuListProps:l={},onClose:c,open:d,PaperProps:m={},PopoverClasses:y,transitionDuration:g="auto",TransitionProps:{onEntering:h,...v}={},variant:f="selectedMenu",slots:b={},slotProps:C={},...w}=o,x=wt(),P={...o,autoFocus:r,disableAutoFocusItem:i,MenuListProps:l,onEntering:h,PaperProps:m,transitionDuration:g,TransitionProps:v,variant:f},k=Ev(P),S=r&&!i&&d,R=p.useRef(null),E=(A,Z)=>{R.current&&R.current.adjustStyleForScrollbar(A,{direction:x?"rtl":"ltr"}),h&&h(A,Z)},F=A=>{A.key==="Tab"&&(A.preventDefault(),c&&c(A,"tabKeyDown"))};let L=-1;p.Children.map(s,(A,Z)=>{p.isValidElement(A)&&(A.props.disabled||(f==="selectedMenu"&&A.props.selected||L===-1)&&(L=Z))});const M={slots:b,slotProps:{list:l,transition:v,paper:m,...C}},$=ll({elementType:b.root,externalSlotProps:C.root,ownerState:P,className:[k.root,a]}),[N,I]=Xe("paper",{className:k.paper,elementType:Fv,externalForwardedProps:M,shouldForwardComponentProp:!0,ownerState:P}),[T,V]=Xe("list",{className:ae(k.list,l.className),elementType:Nv,shouldForwardComponentProp:!0,externalForwardedProps:M,getSlotProps:A=>({...A,onKeyDown:Z=>{F(Z),A.onKeyDown?.(Z)}}),ownerState:P}),G=typeof M.slotProps.transition=="function"?M.slotProps.transition(P):M.slotProps.transition;return u.jsx(Ov,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?Iv:Rv,slots:{root:b.root,paper:N,backdrop:b.backdrop,...b.transition&&{transition:b.transition}},slotProps:{root:$,paper:I,backdrop:typeof C.backdrop=="function"?C.backdrop(P):C.backdrop,transition:{...G,onEntering:(...A)=>{E(...A),G?.onEntering?.(...A)}}},open:d,ref:n,transitionDuration:g,ownerState:P,...w,classes:y,children:u.jsx(T,{actions:R,autoFocus:r&&(L===-1||i),autoFocusItem:S,variant:f,...V,children:s})})});function $v(e){return Re("MuiNativeSelect",e)}const Ns=Se("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Lv=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:s,error:a}=e,i={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${le(n)}`,s&&"iconOpen",o&&"disabled"]};return Ee(i,$v,t)},bc=B("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ns.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),jv=B(bc,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ct,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Ns.multiple}`]:t.multiple}]}})({}),yc=B("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Ns.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Vv=B(yc,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})({}),Bv=p.forwardRef(function(t,n){const{className:o,disabled:r,error:s,IconComponent:a,inputRef:i,variant:l="standard",...c}=t,d={...t,disabled:r,variant:l,error:s},m=Lv(d);return u.jsxs(p.Fragment,{children:[u.jsx(jv,{ownerState:d,className:ae(m.select,o),disabled:r,ref:i||n,...c}),t.multiple?null:u.jsx(Vv,{as:a,ownerState:d,className:m.icon})]})});function vc(e){return Re("MuiSelect",e)}const qn=Se("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var si;const zv=B(bc,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${qn.select}`]:t.select},{[`&.${qn.select}`]:t[n.variant]},{[`&.${qn.error}`]:t.error},{[`&.${qn.multiple}`]:t.multiple}]}})({[`&.${qn.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Hv=B(yc,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})({}),Wv=B("input",{shouldForwardProp:e=>cl(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function ai(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function _v(e){return e==null||typeof e=="string"&&!e.trim()}const Uv=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:s,error:a}=e,i={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${le(n)}`,s&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return Ee(i,vc,t)},Yv=p.forwardRef(function(t,n){const{"aria-describedby":o,"aria-label":r,autoFocus:s,autoWidth:a,children:i,className:l,defaultOpen:c,defaultValue:d,disabled:m,displayEmpty:y,error:g=!1,IconComponent:h,inputRef:v,labelId:f,MenuProps:b={},multiple:C,name:w,onBlur:x,onChange:P,onClose:k,onFocus:S,onOpen:R,open:E,readOnly:F,renderValue:L,required:M,SelectDisplayProps:$={},tabIndex:N,type:I,value:T,variant:V="standard",...G}=t,[A,Z]=aa({controlled:T,default:d,name:"Select"}),[z,ne]=aa({controlled:E,default:c,name:"Select"}),te=p.useRef(null),se=p.useRef(null),[U,oe]=p.useState(null),{current:ce}=p.useRef(E!=null),[fe,re]=p.useState(),Q=Ze(n,v),H=p.useCallback(pe=>{se.current=pe,pe&&oe(pe)},[]),q=U?.parentNode;p.useImperativeHandle(Q,()=>({focus:()=>{se.current.focus()},node:te.current,value:A}),[A]),p.useEffect(()=>{c&&z&&U&&!ce&&(re(a?null:q.clientWidth),se.current.focus())},[U,a]),p.useEffect(()=>{s&&se.current.focus()},[s]),p.useEffect(()=>{if(!f)return;const pe=ut(se.current).getElementById(f);if(pe){const Ce=()=>{getSelection().isCollapsed&&se.current.focus()};return pe.addEventListener("click",Ce),()=>{pe.removeEventListener("click",Ce)}}},[f]);const X=(pe,Ce)=>{pe?R&&R(Ce):k&&k(Ce),ce||(re(a?null:q.clientWidth),ne(pe))},K=pe=>{pe.button===0&&(pe.preventDefault(),se.current.focus(),X(!0,pe))},ue=pe=>{X(!1,pe)},J=p.Children.toArray(i),Y=pe=>{const Ce=J.find(Me=>Me.props.value===pe.target.value);Ce!==void 0&&(Z(Ce.props.value),P&&P(pe,Ce))},ee=pe=>Ce=>{let Me;if(Ce.currentTarget.hasAttribute("tabindex")){if(C){Me=Array.isArray(A)?A.slice():[];const xe=A.indexOf(pe.props.value);xe===-1?Me.push(pe.props.value):Me.splice(xe,1)}else Me=pe.props.value;if(pe.props.onClick&&pe.props.onClick(Ce),A!==Me&&(Z(Me),P)){const xe=Ce.nativeEvent||Ce,Ke=new xe.constructor(xe.type,xe);Object.defineProperty(Ke,"target",{writable:!0,value:{value:Me,name:w}}),P(Ke,pe)}C||X(!1,Ce)}},ie=pe=>{F||[" ","ArrowUp","ArrowDown","Enter"].includes(pe.key)&&(pe.preventDefault(),X(!0,pe))},W=U!==null&&z,j=pe=>{!W&&x&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:A,name:w}}),x(pe))};delete G["aria-invalid"];let _,ge;const ye=[];let Le=!1;(Zo({value:A})||y)&&(L?_=L(A):Le=!0);const ke=J.map(pe=>{if(!p.isValidElement(pe))return null;let Ce;if(C){if(!Array.isArray(A))throw new Error(Di(2));Ce=A.some(Me=>ai(Me,pe.props.value)),Ce&&Le&&ye.push(pe.props.children)}else Ce=ai(A,pe.props.value),Ce&&Le&&(ge=pe.props.children);return p.cloneElement(pe,{"aria-selected":Ce?"true":"false",onClick:ee(pe),onKeyUp:Me=>{Me.key===" "&&Me.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(Me)},role:"option",selected:Ce,value:void 0,"data-value":pe.props.value})});Le&&(C?ye.length===0?_=null:_=ye.reduce((pe,Ce,Me)=>(pe.push(Ce),Me<ye.length-1&&pe.push(", "),pe),[]):_=ge);let He=fe;!a&&ce&&U&&(He=q.clientWidth);let qe;typeof N<"u"?qe=N:qe=m?null:0;const be=$.id||(w?`mui-component-select-${w}`:void 0),ve={...t,variant:V,value:A,open:W,error:g},he=Uv(ve),Ne={...b.PaperProps,...b.slotProps?.paper},Ue=yo();return u.jsxs(p.Fragment,{children:[u.jsx(zv,{as:"div",ref:H,tabIndex:qe,role:"combobox","aria-controls":W?Ue:void 0,"aria-disabled":m?"true":void 0,"aria-expanded":W?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[f,be].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":M?"true":void 0,"aria-invalid":g?"true":void 0,onKeyDown:ie,onMouseDown:m||F?null:K,onBlur:j,onFocus:S,...$,ownerState:ve,className:ae($.className,he.select,l),id:be,children:_v(_)?si||(si=u.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):_}),u.jsx(Wv,{"aria-invalid":g,value:Array.isArray(A)?A.join(","):A,name:w,ref:te,"aria-hidden":!0,onChange:Y,tabIndex:-1,disabled:m,className:he.nativeInput,autoFocus:s,required:M,...G,ownerState:ve}),u.jsx(Hv,{as:h,className:he.icon,ownerState:ve}),u.jsx(Av,{id:`menu-${w||""}`,anchorEl:q,open:W,onClose:ue,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,slotProps:{...b.slotProps,list:{"aria-labelledby":f,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:Ue,...b.MenuListProps},paper:{...Ne,style:{minWidth:He,...Ne!=null?Ne.style:null}}},children:ke})]})}),qv=$t(u.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Kv=e=>{const{classes:t}=e,o=Ee({root:["root"]},vc,t);return{...t,...o}},As={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ct(e)&&e!=="variant",slot:"Root"},Gv=B(Rs,As)(""),Qv=B(Os,As)(""),Xv=B(Es,As)(""),xc=p.forwardRef(function(t,n){const o=Fe({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:s,classes:a={},className:i,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=qv,id:m,input:y,inputProps:g,label:h,labelId:v,MenuProps:f,multiple:b=!1,native:C=!1,onClose:w,onOpen:x,open:P,renderValue:k,SelectDisplayProps:S,variant:R="outlined",...E}=o,F=C?Bv:Yv,L=Ht(),M=Hn({props:o,muiFormControl:L,states:["variant","error"]}),$=M.variant||R,N={...o,variant:$,classes:a},I=Kv(N),{root:T,...V}=I,G=y||{standard:u.jsx(Gv,{ownerState:N}),outlined:u.jsx(Qv,{label:h,ownerState:N}),filled:u.jsx(Xv,{ownerState:N})}[$],A=Ze(n,vo(G));return u.jsx(p.Fragment,{children:p.cloneElement(G,{inputComponent:F,inputProps:{children:s,error:M.error,IconComponent:d,variant:$,type:void 0,multiple:b,...C?{id:m}:{autoWidth:r,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:f,onClose:w,onOpen:x,open:P,renderValue:k,SelectDisplayProps:{id:m,...S}},...g,classes:g?Xr(V,g.classes):V,...y?y.props.inputProps:{}},...(b&&C||c)&&$==="outlined"?{notched:!0}:{},ref:A,className:ae(G.props.className,i,I.root),...!y&&{variant:$},...E})})});xc.muiName="Select";function Zv(e){return Re("MuiTextField",e)}Se("MuiTextField",["root"]);const Jv={standard:Rs,filled:Es,outlined:Os},ex=e=>{const{classes:t}=e;return Ee({root:["root"]},Zv,t)},tx=B(dc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nx=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:s=!1,children:a,className:i,color:l="primary",defaultValue:c,disabled:d=!1,error:m=!1,FormHelperTextProps:y,fullWidth:g=!1,helperText:h,id:v,InputLabelProps:f,inputProps:b,InputProps:C,inputRef:w,label:x,maxRows:P,minRows:k,multiline:S=!1,name:R,onBlur:E,onChange:F,onFocus:L,placeholder:M,required:$=!1,rows:N,select:I=!1,SelectProps:T,slots:V={},slotProps:G={},type:A,value:Z,variant:z="outlined",...ne}=o,te={...o,autoFocus:s,color:l,disabled:d,error:m,fullWidth:g,multiline:S,required:$,select:I,variant:z},se=ex(te),U=yo(v),oe=h&&U?`${U}-helper-text`:void 0,ce=x&&U?`${U}-label`:void 0,fe=Jv[z],re={slots:V,slotProps:{input:C,inputLabel:f,htmlInput:b,formHelperText:y,select:T,...G}},Q={},H=re.slotProps.inputLabel;z==="outlined"&&(H&&typeof H.shrink<"u"&&(Q.notched=H.shrink),Q.label=x),I&&((!T||!T.native)&&(Q.id=void 0),Q["aria-describedby"]=void 0);const[q,X]=Xe("root",{elementType:tx,shouldForwardComponentProp:!0,externalForwardedProps:{...re,...ne},ownerState:te,className:ae(se.root,i),ref:n,additionalProps:{disabled:d,error:m,fullWidth:g,required:$,color:l,variant:z}}),[K,ue]=Xe("input",{elementType:fe,externalForwardedProps:re,additionalProps:Q,ownerState:te}),[J,Y]=Xe("inputLabel",{elementType:uc,externalForwardedProps:re,ownerState:te}),[ee,ie]=Xe("htmlInput",{elementType:"input",externalForwardedProps:re,ownerState:te}),[W,j]=Xe("formHelperText",{elementType:pc,externalForwardedProps:re,ownerState:te}),[_,ge]=Xe("select",{elementType:xc,externalForwardedProps:re,ownerState:te}),ye=u.jsx(K,{"aria-describedby":oe,autoComplete:r,autoFocus:s,defaultValue:c,fullWidth:g,multiline:S,name:R,rows:N,maxRows:P,minRows:k,type:A,value:Z,id:U,inputRef:w,onBlur:E,onChange:F,onFocus:L,placeholder:M,inputProps:ie,slots:{input:V.htmlInput?ee:void 0},...ue});return u.jsxs(q,{...X,children:[x!=null&&x!==""&&u.jsx(J,{htmlFor:U,id:ce,...Y,children:x}),I?u.jsx(_,{"aria-describedby":oe,id:U,labelId:ce,value:Z,input:ye,...ge,children:a}):ye,h&&u.jsx(W,{id:oe,...j,children:h})]})});function ox(e){return Re("MuiIconButton",e)}const ii=Se("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),rx=e=>{const{classes:t,disabled:n,color:o,edge:r,size:s,loading:a}=e,i={root:["root",a&&"loading",n&&"disabled",o!=="default"&&`color${le(o)}`,r&&`edge${le(r)}`,`size${le(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ee(i,ox,t)},sx=B(Ln,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${le(n.color)}`],n.edge&&t[`edge${le(n.edge)}`],t[`size${le(n.size)}`]]}})(Be(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ie(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Be(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(ct()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ct()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ie((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${ii.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${ii.loading}`]:{color:"transparent"}}))),ax=B("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Vn=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiIconButton"}),{edge:r=!1,children:s,className:a,color:i="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium",id:m,loading:y=null,loadingIndicator:g,...h}=o,v=yo(m),f=g??u.jsx(rc,{"aria-labelledby":v,color:"inherit",size:16}),b={...o,edge:r,color:i,disabled:l,disableFocusRipple:c,loading:y,loadingIndicator:f,size:d},C=rx(b);return u.jsxs(sx,{id:y?v:m,className:ae(C.root,a),centerRipple:!0,focusRipple:!c,disabled:l||y,ref:n,...h,ownerState:b,children:[typeof y=="boolean"&&u.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:u.jsx(ax,{className:C.loadingIndicator,ownerState:b,children:y&&f})}),s]})});function ix(e){return Re("MuiInputAdornment",e)}const li=Se("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ci;const lx=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},cx=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:s,variant:a}=e,i={root:["root",n&&"disablePointerEvents",r&&`position${le(r)}`,a,o&&"hiddenLabel",s&&`size${le(s)}`]};return Ee(i,ix,t)},ux=B("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:lx})(Be(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${li.positionStart}&:not(.${li.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),dx=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiInputAdornment"}),{children:r,className:s,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:c,variant:d,...m}=o,y=Ht()||{};let g=d;d&&y.variant,y&&!g&&(g=y.variant);const h={...o,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:i,position:c,variant:g},v=cx(h);return u.jsx(pr.Provider,{value:null,children:u.jsx(ux,{as:a,ownerState:h,className:ae(v.root,s),ref:n,...m,children:typeof r=="string"&&!l?u.jsx(zt,{color:"textSecondary",children:r}):u.jsxs(p.Fragment,{children:[c==="start"?ci||(ci=u.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,r]})})})});function $s(e){const{ownerState:t}=We(),n=wt();return p.useMemo(()=>O({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}const px=$t(u.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),fx=$t(u.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),mx=$t(u.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),hx=$t(u.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),gx=$t(u.jsxs(p.Fragment,{children:[u.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),u.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");$t(u.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");$t(u.jsxs(p.Fragment,{children:[u.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),u.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const bx=$t(u.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function yx(e){return Ve("MuiPickersTextField",e)}ze("MuiPickersTextField",["root","focused","disabled","error","required"]);function vx(e){return Ve("MuiPickersInputBase",e)}const Tn=ze("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","activeBar"]);function xx(e){return Ve("MuiPickersSectionList",e)}const Kn=ze("MuiPickersSectionList",["root","section","sectionContent"]),wx=["slots","slotProps","elements","sectionListRef","classes"],wc=B("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),Cc=B("span",{name:"MuiPickersSectionList",slot:"Section"})({}),Sc=B("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),Pc=B("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),Cx=e=>Oe({root:["root"],section:["section"],sectionContent:["sectionContent"]},xx,e);function Sx(e){const{slots:t,slotProps:n,element:o,classes:r}=e,{ownerState:s}=We(),a=t?.section??Cc,i=Ae({elementType:a,externalSlotProps:n?.section,externalForwardedProps:o.container,className:r.section,ownerState:s}),l=t?.sectionContent??Pc,c=Ae({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:s}),d=t?.sectionSeparator??Sc,m=Ae({elementType:d,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.before,ownerState:O({},s,{separatorPosition:"before"})}),y=Ae({elementType:d,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.after,ownerState:O({},s,{separatorPosition:"after"})});return u.jsxs(a,O({},i,{children:[u.jsx(d,O({},m)),u.jsx(l,O({},c)),u.jsx(d,O({},y))]}))}const Px=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:s,elements:a,sectionListRef:i,classes:l}=o,c=me(o,wx),d=Cx(l),{ownerState:m}=We(),y=p.useRef(null),g=ot(n,y),h=b=>{if(!y.current)throw new Error(`MUI X: Cannot call sectionListRef.${b} before the mount of the component.`);return y.current};p.useImperativeHandle(i,()=>({getRoot(){return h("getRoot")},getSectionContainer(b){return h("getSectionContainer").querySelector(`.${Kn.section}[data-sectionindex="${b}"]`)},getSectionContent(b){return h("getSectionContent").querySelector(`.${Kn.section}[data-sectionindex="${b}"] .${Kn.sectionContent}`)},getSectionIndexFromDOMElement(b){const C=h("getSectionIndexFromDOMElement");if(b==null||!C.contains(b))return null;let w=null;return b.classList.contains(Kn.section)?w=b:b.classList.contains(Kn.sectionContent)&&(w=b.parentElement),w==null?null:Number(w.dataset.sectionindex)}}));const v=r?.root??wc,f=Ae({elementType:v,externalSlotProps:s?.root,externalForwardedProps:c,additionalProps:{ref:g,suppressContentEditableWarning:!0},className:d.root,ownerState:m});return u.jsx(v,O({},f,{children:f.contentEditable?a.map(({content:b,before:C,after:w})=>`${C.children}${b.children}${w.children}`).join(""):u.jsx(p.Fragment,{children:a.map((b,C)=>u.jsx(Sx,{slots:r,slotProps:s,element:b,classes:d},C))})}))}),kc=p.createContext(null),br=()=>{const e=p.useContext(kc);if(e==null)throw new Error(["MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component"].join(`
|
|
114
|
-
`));return e},kx=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],Mx=e=>Math.round(e*1e5)/1e5,yr=B("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>O({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${Mx(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),Ls=B(wc,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{textAlign:"right /*! @noflip */"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),Dx=B(Cc,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),Tx=B(Pc,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),Ix=B(Sc,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),Rx=B("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(O({},im)),Ex=B("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),Ox=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldReadOnly:r,hasFieldError:s,inputSize:a,isInputInFullWidth:i,inputColor:l,hasStartAdornment:c,hasEndAdornment:d}=t,m={root:["root",n&&!o&&"focused",o&&"disabled",r&&"readOnly",s&&"error",i&&"fullWidth",`color${tm(l)}`,a==="small"&&"inputSizeSmall",c&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return Oe(m,vx,e)};function ui(e,t,n,o){if(e.content.id){const r=t.current?.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${o}"]`);if(r)return Array.from(r).reduce((s,a)=>s+a.offsetWidth,0)}return 0}function Fx(e,t){let n=0;if(t.current?.getAttribute("data-active-range-position")==="end")for(let r=e.length-1;r>=e.length/2;r-=1)n+=ui(e[r],t,r,"end");else for(let r=0;r<e.length/2;r+=1)n+=ui(e[r],t,r,"start");return{activeBarWidth:n,sectionOffsets:[t.current?.querySelector('[data-sectionindex="0"]')?.offsetLeft||0,t.current?.querySelector(`[data-sectionindex="${e.length/2}"]`)?.offsetLeft||0]}}const js=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:s,value:a,onChange:i,id:l,endAdornment:c,startAdornment:d,renderSuffix:m,slots:y,slotProps:g,contentEditable:h,tabIndex:v,onInput:f,onPaste:b,onKeyDown:C,name:w,readOnly:x,inputProps:P,inputRef:k,sectionListRef:S,onFocus:R,onBlur:E,classes:F,ownerState:L}=o,M=me(o,kx),$=br(),N=p.useRef(null),I=p.useRef(null),T=p.useRef([]),V=ot(n,N),G=ot(P?.ref,k),A=Ht();if(!A)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const Z=L??$,z=Q=>{A.onFocus?.(Q),R?.(Q)},ne=Q=>{z(Q)},te=Q=>{if(C?.(Q),Q.key==="Enter"&&!Q.defaultMuiPrevented){if(N.current?.dataset.multiInput)return;const H=N.current?.closest("form"),q=H?.querySelector('[type="submit"]');if(!H||!q)return;Q.preventDefault(),H.requestSubmit(q)}},se=Q=>{A.onBlur?.(Q),E?.(Q)};p.useEffect(()=>{A&&A.setAdornedStart(!!d)},[A,d]),p.useEffect(()=>{A&&(s?A.onEmpty():A.onFilled())},[A,s]);const U=Ox(F,Z),oe=y?.root||yr,ce=Ae({elementType:oe,externalSlotProps:g?.root,externalForwardedProps:M,additionalProps:{"aria-invalid":A.error,ref:V},className:U.root,ownerState:Z}),fe=y?.input||Ls,re=r.some(Q=>Q.content["data-range-position"]!==void 0);return p.useEffect(()=>{if(!re||!Z.isPickerOpen)return;const{activeBarWidth:Q,sectionOffsets:H}=Fx(r,N);T.current=[H[0],H[1]],I.current&&(I.current.style.width=`${Q}px`)},[r,re,Z.isPickerOpen]),u.jsxs(oe,O({},ce,{children:[d,u.jsx(Px,{sectionListRef:S,elements:r,contentEditable:h,tabIndex:v,className:U.sectionsContainer,onFocus:z,onBlur:se,onInput:f,onPaste:b,onKeyDown:te,slots:{root:fe,section:Dx,sectionContent:Tx,sectionSeparator:Ix},slotProps:{root:O({},g?.input,{ownerState:Z}),sectionContent:{className:Tn.sectionContent},sectionSeparator:({separatorPosition:Q})=>({className:Q==="before"?Tn.sectionBefore:Tn.sectionAfter})}}),c,m?m(O({},A)):null,u.jsx(Rx,O({name:w,className:U.input,value:a,onChange:i,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:x,required:A.required,disabled:A.disabled,onFocus:ne},P,{ref:G})),re&&u.jsx(Ex,{className:U.activeBar,ref:I,ownerState:{sectionOffsets:T.current}})]}))});function Nx(e){return Ve("MuiPickersOutlinedInput",e)}const Pt=O({},Tn,ze("MuiPickersOutlinedInput",["root","notchedOutline","input"])),Ax=["children","className","label","notched","shrink"],$x=B("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),di=B("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),Lx=B("legend",{shouldForwardProp:e=>Ft(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function jx(e){const{className:t,label:n,notched:o}=e,r=me(e,Ax),s=br();return u.jsx($x,O({"aria-hidden":!0,className:t},r,{ownerState:s,children:u.jsx(Lx,{ownerState:s,notched:o,children:n?u.jsx(di,{children:n}):u.jsx(di,{className:"notranslate",children:""})})}))}const Vx=["label","autoFocus","ownerState","classes","notched"],Bx=B(yr,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Pt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Pt.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Pt.focused} .${Pt.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Pt.disabled}`]:{[`& .${Pt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${Pt.error} .${Pt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{inputColor:n},style:{[`&.${Pt.focused}:not(.${Pt.error}) .${Pt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),zx=B(Ls,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),Hx=e=>{const n=Oe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Nx,e);return O({},e,n)},Mc=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiPickersOutlinedInput"}),{label:r,classes:s,notched:a}=o,i=me(o,Vx),l=Ht(),c=Hx(s);return u.jsx(js,O({slots:{root:Bx,input:zx},renderSuffix:d=>u.jsx(jx,{shrink:!!(a||d.adornedStart||d.focused||d.filled),notched:!!(a||d.adornedStart||d.focused||d.filled),className:c.notchedOutline,label:r!=null&&r!==""&&l?.required?u.jsxs(p.Fragment,{children:[r," ","*"]}):r})},i,{label:r,classes:c,ref:n}))});Mc.muiName="Input";function Wx(e){return Ve("MuiPickersFilledInput",e)}const Jt=O({},Tn,ze("MuiPickersFilledInput",["root","underline","input"])),_x=["label","autoFocus","disableUnderline","hiddenLabel","classes"],Ux=B(yr,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Ft(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Jt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Jt.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>({props:{inputColor:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Jt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jt.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Jt.disabled}, .${Jt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Jt.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),Yx=B(Ls,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Ft(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),qx=(e,t)=>{const{inputHasUnderline:n}=t,r=Oe({root:["root",n&&"underline"],input:["input"]},Wx,e);return O({},e,r)},Dc=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:s=!1,hiddenLabel:a=!1,classes:i}=o,l=me(o,_x),c=br(),d=O({},c,{inputHasUnderline:!s}),m=qx(i,d);return u.jsx(js,O({slots:{root:Ux,input:Yx},slotProps:{root:{disableUnderline:s},input:{hiddenLabel:a}}},l,{label:r,classes:m,ref:n,ownerState:d}))});Dc.muiName="Input";function Kx(e){return Ve("MuiPickersFilledInput",e)}const Gn=O({},Tn,ze("MuiPickersInput",["root","underline","input"])),Gx=["label","autoFocus","disableUnderline","ownerState","classes"],Qx=B(yr,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Ft(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{inputColor:o},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Gn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gn.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Gn.disabled}, .${Gn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Gn.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),Xx=(e,t)=>{const{inputHasUnderline:n}=t,r=Oe({root:["root",!n&&"underline"],input:["input"]},Kx,e);return O({},e,r)},Tc=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:s=!1,classes:a}=o,i=me(o,Gx),l=br(),c=O({},l,{inputHasUnderline:!s}),d=Xx(a,c);return u.jsx(js,O({slots:{root:Qx},slotProps:{root:{disableUnderline:s}}},i,{label:r,classes:d,ref:n}))});Tc.muiName="Input";const Zx=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps","data-active-range-position"],Jx={standard:Tc,filled:Dc,outlined:Mc},ew=B(dc,{name:"MuiPickersTextField",slot:"Root"})({}),tw=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:r}=t;return Oe({root:["root",n&&!o&&"focused",o&&"disabled",r&&"required"]},yx,e)},Ic=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:s,className:a,classes:i,color:l="primary",disabled:c=!1,error:d=!1,variant:m="outlined",required:y=!1,InputProps:g,inputProps:h,inputRef:v,sectionListRef:f,elements:b,areAllSectionsEmpty:C,onClick:w,onKeyDown:x,onKeyUp:P,onPaste:k,onInput:S,endAdornment:R,startAdornment:E,tabIndex:F,contentEditable:L,focused:M,value:$,onChange:N,fullWidth:I,id:T,name:V,helperText:G,FormHelperTextProps:A,label:Z,InputLabelProps:z,"data-active-range-position":ne}=o,te=me(o,Zx),se=p.useRef(null),U=ot(n,se),oe=wo(T),ce=G&&oe?`${oe}-helper-text`:void 0,fe=Z&&oe?`${oe}-label`:void 0,re=$s({disabled:o.disabled,required:o.required,readOnly:g?.readOnly}),Q=p.useMemo(()=>O({},re,{isFieldValueEmpty:C,isFieldFocused:M??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:l??"primary",isInputInFullWidth:I??!1,hasStartAdornment:!!(E??g?.startAdornment),hasEndAdornment:!!(R??g?.endAdornment),inputHasLabel:!!Z}),[re,C,M,d,o.size,l,I,E,R,g?.startAdornment,g?.endAdornment,Z]),H=tw(i,Q),q=Jx[m],X={};return m==="outlined"&&(z&&typeof z.shrink<"u"&&(X.notched=z.shrink),X.label=Z),u.jsx(kc.Provider,{value:Q,children:u.jsxs(ew,O({className:ae(H.root,a),ref:U,focused:M,disabled:c,variant:m,error:d,color:l,fullWidth:I,required:y,ownerState:Q},te,{children:[Z!=null&&Z!==""&&u.jsx(uc,O({htmlFor:oe,id:fe},z,{children:Z})),u.jsx(q,O({elements:b,areAllSectionsEmpty:C,onClick:w,onKeyDown:x,onKeyUp:P,onInput:S,onPaste:k,onFocus:r,onBlur:s,endAdornment:R,startAdornment:E,tabIndex:F,contentEditable:L,value:$,onChange:N,id:oe,fullWidth:I,inputProps:h,inputRef:v,sectionListRef:f,label:Z,name:V,role:"group","aria-labelledby":fe,"aria-describedby":ce,"aria-live":ce?"polite":void 0,"data-active-range-position":ne},X,g)),G&&u.jsx(pc,O({id:ce},A,{children:G}))]}))})}),nw=["enableAccessibleFieldDOMStructure"],ow=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],rw=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],sw=["ownerState"],aw=["ownerState"],iw=["ownerState"],lw=["ownerState"],cw=["InputProps","inputProps"],uw=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=me(e,nw);if(t){const{InputProps:f,readOnly:b,onClear:C,clearable:w,clearButtonPosition:x,openPickerButtonPosition:P,openPickerAriaLabel:k}=n,S=me(n,ow);return{clearable:w,onClear:C,clearButtonPosition:x,openPickerButtonPosition:P,openPickerAriaLabel:k,textFieldProps:O({},S,{InputProps:O({},f??{},{readOnly:b})})}}const{onPaste:o,onKeyDown:r,inputMode:s,readOnly:a,InputProps:i,inputProps:l,inputRef:c,onClear:d,clearable:m,clearButtonPosition:y,openPickerButtonPosition:g,openPickerAriaLabel:h}=n,v=me(n,rw);return{clearable:m,onClear:d,clearButtonPosition:y,openPickerButtonPosition:g,openPickerAriaLabel:h,textFieldProps:O({},v,{InputProps:O({},i??{},{readOnly:a}),inputProps:O({},l??{},{inputMode:s,onPaste:o,onKeyDown:r,ref:c})})}},Vs=p.createContext({slots:{},slotProps:{},inputRef:void 0});function Rc(e){const{slots:t,slotProps:n,fieldResponse:o,defaultOpenPickerIcon:r}=e,s=lt(),a=xs(),i=p.useContext(Vs),{textFieldProps:l,onClear:c,clearable:d,openPickerAriaLabel:m,clearButtonPosition:y="end",openPickerButtonPosition:g="end"}=uw(o),h=$s(l),v=de(A=>{A.preventDefault(),a?.setOpen(Z=>!Z)}),f=a?a.triggerStatus:"hidden",b=d?y:null,C=f!=="hidden"?g:null,w=t?.textField??i.slots.textField??(o.enableAccessibleFieldDOMStructure===!1?nx:Ic),x=t?.inputAdornment??i.slots.inputAdornment??dx,P=Ae({elementType:x,externalSlotProps:zo(i.slotProps.inputAdornment,n?.inputAdornment),additionalProps:{position:"start"},ownerState:O({},h,{position:"start"})}),k=me(P,sw),S=Ae({elementType:x,externalSlotProps:n?.inputAdornment,additionalProps:{position:"end"},ownerState:O({},h,{position:"end"})}),R=me(S,aw),E=i.slots.openPickerButton??Vn,F=Ae({elementType:E,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:f==="disabled",onClick:v,"aria-label":m,edge:l.variant!=="standard"?C:!1},ownerState:h}),L=me(F,iw),M=i.slots.openPickerIcon??r,$=Ae({elementType:M,externalSlotProps:i.slotProps.openPickerIcon,ownerState:h}),N=t?.clearButton??i.slots.clearButton??Vn,I=Ae({elementType:N,externalSlotProps:zo(i.slotProps.clearButton,n?.clearButton),className:"clearButton",additionalProps:{title:s.fieldClearLabel,tabIndex:-1,onClick:c,disabled:o.disabled||o.readOnly,edge:l.variant!=="standard"&&b!==C?b:!1},ownerState:h}),T=me(I,lw),V=t?.clearIcon??i.slots.clearIcon??bx,G=Ae({elementType:V,externalSlotProps:zo(i.slotProps.clearIcon,n?.clearIcon),additionalProps:{fontSize:"small"},ownerState:h});return l.ref=ot(l.ref,a?.rootRef),l.InputProps||(l.InputProps={}),a&&(l.InputProps.ref=a.triggerRef),!l.InputProps?.startAdornment&&(b==="start"||C==="start")&&(l.InputProps.startAdornment=u.jsxs(x,O({},k,{children:[C==="start"&&u.jsx(E,O({},L,{children:u.jsx(M,O({},$))})),b==="start"&&u.jsx(N,O({},T,{children:u.jsx(V,O({},G))}))]}))),!l.InputProps?.endAdornment&&(b==="end"||C==="end")&&(l.InputProps.endAdornment=u.jsxs(x,O({},R,{children:[b==="end"&&u.jsx(N,O({},T,{children:u.jsx(V,O({},G))})),C==="end"&&u.jsx(E,O({},L,{children:u.jsx(M,O({},$))}))]}))),b!=null&&(l.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(l.sx)?l.sx:[l.sx]]),u.jsx(w,O({},l))}function zo(e,t){return e?t?n=>O({},ln(t,n),ln(e,n)):e:t}function Ec(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,r=p.useContext(Vs),s=xs(),a=$s(n),{InputProps:i,inputProps:l}=n,c=me(n,cw),d=Ae({elementType:Ic,externalSlotProps:zo(r.slotProps.textField,o?.textField),externalForwardedProps:c,additionalProps:{ref:t,sx:s?.rootSx,label:s?.label,name:s?.name,className:s?.rootClassName,inputRef:r.inputRef},ownerState:a});return d.inputProps=O({},l,d.inputProps),d.InputProps=O({},i,d.InputProps),d}function Oc(e){const{slots:t={},slotProps:n={},inputRef:o,children:r}=e,s=p.useMemo(()=>({inputRef:o,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[o,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return u.jsx(Vs.Provider,{value:s,children:r})}function Fc(e){const{steps:t}=e;return rb({steps:t,isViewMatchingStep:(n,o)=>o.views==null||o.views.includes(n),onStepChange:({step:n,defaultView:o,setView:r,view:s,views:a})=>{const i=n.views==null?o:n.views.find(l=>a.includes(l));i!==s&&r(i)}})}const dw=["props","steps"],pw=["ownerState"],Nc=e=>{let{props:t,steps:n}=e,o=me(e,dw);const{slots:r,slotProps:s,label:a,inputRef:i,localeText:l}=t,c=Fc({steps:n}),{providerProps:d,renderCurrentView:m,ownerState:y}=nc(O({},o,{props:t,localeText:l,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:c})),g=d.privateContextValue.labelId,h=s?.toolbar?.hidden??!1,v=r.field,f=Ae({elementType:v,externalSlotProps:s?.field,additionalProps:O({},h&&{id:g}),ownerState:y}),b=me(f,pw),C=r.layout??cc;let w=g;h&&(a?w=`${g}-label`:w=void 0);const x=O({},s,{toolbar:O({},s?.toolbar,{titleId:g}),popper:O({"aria-labelledby":w},s?.popper)});return{renderPicker:()=>u.jsx(Nl,O({},d,{children:u.jsxs(Oc,{slots:r,slotProps:x,inputRef:i,children:[u.jsx(v,O({},b)),u.jsx(tb,{slots:r,slotProps:x,children:u.jsx(C,O({},x?.layout,{slots:r,slotProps:x,children:m()}))})]})}))}},gn=e=>e.saveQuery!=null,Ac=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:r,setTempAndroidValueStr:s,updateSectionValue:a}})=>{const i=Te(),l=({keyPressed:m,sectionIndex:y},g,h)=>{const v=m.toLowerCase(),f=n.sections[y];if(n.characterQuery!=null&&(!h||h(n.characterQuery.value))&&n.characterQuery.sectionIndex===y){const C=`${n.characterQuery.value}${v}`,w=g(C,f);if(!gn(w))return r({sectionIndex:y,value:C,sectionType:f.type}),w}const b=g(v,f);return gn(b)&&!b.saveQuery?(r(null),null):(r({sectionIndex:y,value:v,sectionType:f.type}),gn(b)?null:b)},c=m=>{const y=(v,f,b)=>{const C=f.filter(w=>w.toLowerCase().startsWith(b));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},g=(v,f,b,C)=>{const w=x=>Sl(i,o,f.type,x);if(f.contentType==="letter")return y(f.format,w(f.format),v);if(b&&C!=null&&Cl(i,b).contentType==="letter"){const x=w(b),P=y(b,x,v);return gn(P)?{saveQuery:!1}:O({},P,{sectionValue:C(P.sectionValue,x)})}return{saveQuery:!1}};return l(m,(v,f)=>{switch(f.type){case"month":{const b=C=>Ma(i,C,i.formats.month,f.format);return g(v,f,i.formats.month,b)}case"weekDay":{const b=(C,w)=>w.indexOf(C).toString();return g(v,f,i.formats.weekday,b)}case"meridiem":return g(v,f);default:return{saveQuery:!1}}})},d=m=>{const y=(h,v)=>{const f=cn(h,e),b=Number(f),C=t[v.type]({currentDate:null,format:v.format,contentType:v.contentType});if(b>C.maximum)return{saveQuery:!1};if(b<C.minimum)return{saveQuery:!0};const w=b*10>C.maximum||f.length===C.maximum.toString().length;return{sectionValue:Pl(i,b,C,e,v),shouldGoToNextSection:w}};return l(m,(h,v)=>{if(v.contentType==="digit"||v.contentType==="digit-with-letter")return y(h,v);if(v.type==="month"){kl(i,"digit","month","MM");const f=y(h,{type:v.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(gn(f))return f;const b=Ma(i,f.sectionValue,"MM",v.format);return O({},f,{sectionValue:b})}if(v.type==="weekDay"){const f=y(h,v);if(gn(f))return f;const b=sr(i,v.format)[Number(f.sectionValue)-1];return O({},f,{sectionValue:b})}return{saveQuery:!1}},h=>ka(h,e))};return de(m=>{const y=n.sections[m.sectionIndex],h=ka(m.keyPressed,e)?d(O({},m,{keyPressed:hs(m.keyPressed,e)})):c(m);if(h==null){s(null);return}a({section:y,newSectionValue:h.sectionValue,shouldGoToNextSection:h.shouldGoToNextSection})})},fw=5e3,$c=e=>{const t=Te(),n=lt(),o=fn(),r=wt(),{manager:{validator:s,valueType:a,internal_valueManager:i,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:d,defaultValue:m,referenceDate:y,onChange:g,format:h,formatDensity:v="dense",selectedSections:f,onSelectedSectionsChange:b,shouldRespectLeadingZeros:C=!1,timezone:w,enableAccessibleFieldDOMStructure:x=!0},forwardedProps:{error:P}}=e,{value:k,handleValueChange:S,timezone:R}=Gt({name:"a field component",timezone:w,value:d,defaultValue:m,referenceDate:y,onChange:g,valueManager:i}),E=p.useRef(k);p.useEffect(()=>{E.current=k},[k]);const{hasValidationError:F}=Vl({props:c,validator:s,timezone:R,value:k,onError:c.onError}),L=p.useMemo(()=>P!==void 0?P:F,[F,P]),M=p.useMemo(()=>Mm(t),[t]),$=p.useMemo(()=>Em(t,M,R),[t,M,R]),N=p.useCallback(Y=>l.getSectionsFromValue(Y,ee=>Ra({utils:t,localeText:n,localizedDigits:M,format:h,date:ee,formatDensity:v,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:x,isRtl:r})),[l,h,n,M,r,C,t,v,x]),[I,T]=p.useState(()=>{const Y=N(k),ee={sections:Y,lastExternalValue:k,lastSectionsDependencies:{format:h,isRtl:r,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},ie=Sm(Y),W=i.getInitialReferenceValue({referenceDate:y,value:k,utils:t,props:c,granularity:ie,timezone:R});return O({},ee,{referenceValue:W})}),[V,G]=En({controlled:f,default:null,name:"useField",state:"selectedSections"}),A=Y=>{G(Y),b?.(Y)},Z=p.useMemo(()=>$r(V,I.sections),[V,I.sections]),z=Z==="all"?0:Z,ne=p.useMemo(()=>Nm(I.sections,r&&!x),[I.sections,r,x]),te=p.useMemo(()=>I.sections.every(Y=>Y.value===""),[I.sections]),se=Y=>{const ee={validationError:s({adapter:o,value:Y,timezone:R,props:c})};S(Y,ee)},U=(Y,ee)=>{const ie=[...I.sections];return ie[Y]=O({},ie[Y],{value:ee,modified:!0}),ie},oe=p.useRef(null),ce=Mn(),fe=Y=>{z!=null&&(oe.current={sectionIndex:z,value:Y},ce.start(0,()=>{oe.current=null}))},re=()=>{i.areValuesEqual(t,k,i.emptyValue)?T(Y=>O({},Y,{sections:Y.sections.map(ee=>O({},ee,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(T(Y=>O({},Y,{characterQuery:null})),se(i.emptyValue))},Q=()=>{if(z==null)return;const Y=I.sections[z];Y.value!==""&&(fe(""),l.getDateFromSection(k,Y)===null?T(ee=>O({},ee,{sections:U(z,""),tempValueStrAndroid:null,characterQuery:null})):(T(ee=>O({},ee,{characterQuery:null})),se(l.updateDateInValue(k,Y,null))))},H=Y=>{const ee=(W,j)=>{const _=t.parse(W,h);if(!t.isValid(_))return null;const ge=Ra({utils:t,localeText:n,localizedDigits:M,format:h,date:_,formatDensity:v,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:x,isRtl:r});return Ta(t,_,ge,j,!1)},ie=l.parseValueStr(Y,I.referenceValue,ee);se(ie)},q=Mn(),X=({section:Y,newSectionValue:ee,shouldGoToNextSection:ie})=>{ce.clear(),q.clear();const W=l.getDateFromSection(k,Y);ie&&z<I.sections.length-1&&A(z+1);const j=U(z,ee),_=l.getDateSectionsFromValue(j,Y),ge=Tm(t,_,M);if(t.isValid(ge)){const ye=Ta(t,ge,_,l.getDateFromSection(I.referenceValue,Y),!0);return W==null&&q.start(0,()=>{E.current===k&&T(Le=>O({},Le,{sections:l.clearDateSections(I.sections,Y),tempValueStrAndroid:null}))}),se(l.updateDateInValue(k,Y,ye))}return _.every(ye=>ye.value!=="")?(fe(ee),se(l.updateDateInValue(k,Y,ge))):W!=null?(fe(ee),se(l.updateDateInValue(k,Y,null))):T(ye=>O({},ye,{sections:j,tempValueStrAndroid:null}))},K=Y=>T(ee=>O({},ee,{tempValueStrAndroid:Y})),ue=de(Y=>{T(ee=>O({},ee,{characterQuery:Y}))});if(k!==I.lastExternalValue){let Y;oe.current!=null&&!t.isValid(l.getDateFromSection(k,I.sections[oe.current.sectionIndex]))?Y=U(oe.current.sectionIndex,oe.current.value):Y=N(k),T(ee=>O({},ee,{lastExternalValue:k,sections:Y,sectionsDependencies:{format:h,isRtl:r,locale:t.locale},referenceValue:l.updateReferenceValue(t,k,ee.referenceValue),tempValueStrAndroid:null}))}if(r!==I.lastSectionsDependencies.isRtl||h!==I.lastSectionsDependencies.format||t.locale!==I.lastSectionsDependencies.locale){const Y=N(k);T(ee=>O({},ee,{lastSectionsDependencies:{format:h,isRtl:r,locale:t.locale},sections:Y,tempValueStrAndroid:null,characterQuery:null}))}I.characterQuery!=null&&!L&&z==null&&ue(null),I.characterQuery!=null&&I.sections[I.characterQuery.sectionIndex]?.type!==I.characterQuery.sectionType&&ue(null),p.useEffect(()=>{oe.current!=null&&(oe.current=null)});const J=Mn();return p.useEffect(()=>(I.characterQuery!=null&&J.start(fw,()=>ue(null)),()=>{}),[I.characterQuery,ue,J]),p.useEffect(()=>{I.tempValueStrAndroid!=null&&z!=null&&Q()},[I.sections]),{activeSectionIndex:z,areAllSectionsEmpty:te,error:L,localizedDigits:M,parsedSelectedSections:Z,sectionOrder:ne,sectionsValueBoundaries:$,state:I,timezone:R,value:k,clearValue:re,clearActiveSection:Q,setCharacterQuery:ue,setSelectedSections:A,setTempAndroidValueStr:K,updateSectionValue:X,updateValueFromValueStr:H,getSectionsFromValue:N}};function Lc(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,r=xs(),s=El(),a=ot(n.unstableFieldRef,o?null:s?.fieldRef),i=r?.setValue,l=p.useCallback((d,m)=>i?.(d,{validationError:m.validationError,shouldClose:!1}),[i]),c=p.useMemo(()=>s!=null&&r!=null?O({value:r.value,onChange:l,timezone:r.timezone,disabled:r.disabled,readOnly:r.readOnly,autoFocus:r.autoFocus&&!r.open,focused:r.open?!0:void 0,format:r.fieldFormat,formatDensity:s.formatDensity,enableAccessibleFieldDOMStructure:s.enableAccessibleFieldDOMStructure,selectedSections:s.selectedSections,onSelectedSectionsChange:s.onSelectedSectionsChange,unstableFieldRef:a},n):n,[r,s,n,l,a]);return t(c)}function Bs(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:o,state:r}}=e;if(!n.isReady())return;const s=document.getSelection();if(!s)return;if(o==null){s.rangeCount>0&&n.getRoot().contains(s.getRangeAt(0).startContainer)&&s.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(nt(document)))return;const a=new window.Range;let i;o==="all"?i=n.getRoot():r.sections[o].type==="empty"?i=n.getSectionContainer(o):i=n.getSectionContent(o),a.selectNodeContents(i),i.focus(),s.removeAllRanges(),s.addRange(a)}function jc(e){const t=Te(),{manager:{internal_fieldValueManager:n},internalPropsWithDefaults:{minutesStep:o,disabled:r,readOnly:s},stateResponse:{state:a,value:i,activeSectionIndex:l,parsedSelectedSections:c,sectionsValueBoundaries:d,localizedDigits:m,timezone:y,sectionOrder:g,clearValue:h,clearActiveSection:v,setSelectedSections:f,updateSectionValue:b}}=e;return de(C=>{if(!r)switch(!0){case((C.ctrlKey||C.metaKey)&&String.fromCharCode(C.keyCode)==="A"&&!C.shiftKey&&!C.altKey):{C.preventDefault(),f("all");break}case C.key==="ArrowRight":{if(C.preventDefault(),c==null)f(g.startIndex);else if(c==="all")f(g.endIndex);else{const w=g.neighbors[c].rightIndex;w!==null&&f(w)}break}case C.key==="ArrowLeft":{if(C.preventDefault(),c==null)f(g.endIndex);else if(c==="all")f(g.startIndex);else{const w=g.neighbors[c].leftIndex;w!==null&&f(w)}break}case C.key==="Delete":{if(C.preventDefault(),s)break;c==null||c==="all"?h():v();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(C.key):{if(C.preventDefault(),s||l==null)break;c==="all"&&f(l);const w=a.sections[l],x=hw(t,y,w,C.key,d,m,n.getDateFromSection(i,w),{minutesStep:o});b({section:w,newSectionValue:x,shouldGoToNextSection:!1});break}}})}function mw(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function hw(e,t,n,o,r,s,a,i){const l=mw(o),c=o==="Home",d=o==="End",m=n.value===""||c||d,y=()=>{const h=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),v=C=>Pl(e,C,h,s,n),f=n.type==="minutes"&&i?.minutesStep?i.minutesStep:1;let b;if(m){if(n.type==="year"&&!d&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?b=h.minimum:b=h.maximum}else b=parseInt(cn(n.value,s),10)+l*f;return b%f!==0&&((l<0||c)&&(b+=f-(f+b)%f),(l>0||d)&&(b-=b%f)),b>h.maximum?v(h.minimum+(b-h.maximum-1)%(h.maximum-h.minimum+1)):b<h.minimum?v(h.maximum-(h.minimum-b-1)%(h.maximum-h.minimum+1)):v(b)},g=()=>{const h=Sl(e,t,n.type,n.format);if(h.length===0)return n.value;if(m)return l>0||c?h[0]:h[h.length-1];const b=((h.indexOf(n.value)+l)%h.length+h.length)%h.length;return h[b]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():g()}function gw(e){const{manager:t,focused:n,setFocused:o,domGetters:r,stateResponse:s,applyCharacterEditing:a,internalPropsWithDefaults:i,stateResponse:{parsedSelectedSections:l,sectionOrder:c,state:d,clearValue:m,setCharacterQuery:y,setSelectedSections:g,updateValueFromValueStr:h},internalPropsWithDefaults:{disabled:v=!1,readOnly:f=!1}}=e,b=jc({manager:t,internalPropsWithDefaults:i,stateResponse:s}),C=Mn(),w=de(R=>{v||!r.isReady()||(o(!0),l==="all"?C.start(0,()=>{const E=document.getSelection().getRangeAt(0).startOffset;if(E===0){g(c.startIndex);return}let F=0,L=0;for(;L<E&&F<d.sections.length;){const M=d.sections[F];F+=1,L+=`${M.startSeparator}${M.value||M.placeholder}${M.endSeparator}`.length}g(F-1)}):n?r.getRoot().contains(R.target)||g(c.startIndex):(o(!0),g(c.startIndex)))}),x=de(R=>{if(!r.isReady()||l!=="all")return;const F=R.target.textContent??"";r.getRoot().innerHTML=d.sections.map(L=>`${L.startSeparator}${L.value||L.placeholder}${L.endSeparator}`).join(""),Bs({focused:n,domGetters:r,stateResponse:s}),F.length===0||F.charCodeAt(0)===10?(m(),g("all")):F.length>1?h(F):(l==="all"&&g(0),a({keyPressed:F,sectionIndex:0}))}),P=de(R=>{if(f||l!=="all"){R.preventDefault();return}const E=R.clipboardData.getData("text");R.preventDefault(),y(null),h(E)}),k=de(()=>{if(n||v||!r.isReady())return;const R=nt(document);o(!0),r.getSectionIndexFromDOMElement(R)!=null||g(c.startIndex)}),S=de(()=>{setTimeout(()=>{if(!r.isReady())return;const R=nt(document);!r.getRoot().contains(R)&&(o(!1),g(null))})});return{onKeyDown:b,onBlur:S,onFocus:k,onClick:w,onPaste:P,onInput:x,contentEditable:l==="all",tabIndex:l===0?-1:0}}function bw(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:r}}=e,s=de(i=>{r(i.target.value)});return{value:p.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:s}}function yw(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,o=de(r=>s=>{n||s.isDefaultPrevented()||t(r)});return p.useCallback(r=>({"data-sectionindex":r,onClick:o(r)}),[o])}function vw(e){const t=Te(),n=lt(),o=wo(),{focused:r,domGetters:s,stateResponse:a,applyCharacterEditing:i,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:d,state:m,value:y,clearActiveSection:g,setCharacterQuery:h,setSelectedSections:v,updateSectionValue:f,updateValueFromValueStr:b},internalPropsWithDefaults:{disabled:C=!1,readOnly:w=!1}}=e,x=c==="all",P=!x&&!C&&!w,k=de(M=>{if(!s.isReady())return;const $=m.sections[M];s.getSectionContent(M).innerHTML=$.value||$.placeholder,Bs({focused:r,domGetters:s,stateResponse:a})}),S=de(M=>{if(!s.isReady())return;const $=M.target,N=$.textContent??"",I=s.getSectionIndexFromDOMElement($),T=m.sections[I];if(w){k(I);return}if(N.length===0){if(T.value===""){k(I);return}const V=M.nativeEvent.inputType;if(V==="insertParagraph"||V==="insertLineBreak"){k(I);return}k(I),g();return}i({keyPressed:N,sectionIndex:I}),k(I)}),R=de(M=>{M.preventDefault()}),E=de(M=>{if(M.preventDefault(),w||C||typeof c!="number")return;const $=m.sections[c],N=M.clipboardData.getData("text"),I=/^[a-zA-Z]+$/.test(N),T=/^[0-9]+$/.test(N),V=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(N);$.contentType==="letter"&&I||$.contentType==="digit"&&T||$.contentType==="digit-with-letter"&&V?(h(null),f({section:$,newSectionValue:N,shouldGoToNextSection:!0})):!I&&!T&&(h(null),b(N))}),F=de(M=>{M.preventDefault(),M.dataTransfer.dropEffect="none"}),L=de(M=>()=>{C||v(M)});return p.useCallback((M,$)=>{const N=d[M.type]({currentDate:l.getDateFromSection(y,M),contentType:M.contentType,format:M.format});return{onInput:S,onPaste:E,onMouseUp:R,onDragOver:F,onFocus:L($),"aria-labelledby":`${o}-${M.type}`,"aria-readonly":w,"aria-valuenow":ww(M,t),"aria-valuemin":N.minimum,"aria-valuemax":N.maximum,"aria-valuetext":M.value?xw(M,t):n.empty,"aria-label":n[M.type],"aria-disabled":C,tabIndex:x||$>0?-1:0,contentEditable:!x&&!C&&!w,role:"spinbutton",id:`${o}-${M.type}`,"data-range-position":M.dateName||void 0,spellCheck:P?!1:void 0,autoCapitalize:P?"off":void 0,autoCorrect:P?"off":void 0,children:M.value||M.placeholder,inputMode:M.contentType==="letter"?"text":"numeric"}},[d,o,x,C,w,P,n,t,S,E,R,F,L,l,y])}function xw(e,t){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}}function ww(e,t){if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}}const Cw=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:r,internal_useOpenPickerButtonAriaLabel:s}}=e,{internalProps:a,forwardedProps:i}=jl(t,r),l=Lc({manager:n,internalProps:a,skipContextFieldRefAssignment:o}),{sectionListRef:c,onBlur:d,onClick:m,onFocus:y,onInput:g,onPaste:h,onKeyDown:v,onClear:f,clearable:b}=i,{disabled:C=!1,readOnly:w=!1,autoFocus:x=!1,focused:P,unstableFieldRef:k}=l,S=p.useRef(null),R=ot(c,S),E=p.useMemo(()=>({isReady:()=>S.current!=null,getRoot:()=>S.current.getRoot(),getSectionContainer:J=>S.current.getSectionContainer(J),getSectionContent:J=>S.current.getSectionContent(J),getSectionIndexFromDOMElement:J=>S.current.getSectionIndexFromDOMElement(J)}),[S]),F=$c({manager:n,internalPropsWithDefaults:l,forwardedProps:i}),{areAllSectionsEmpty:L,error:M,parsedSelectedSections:$,sectionOrder:N,state:I,value:T,clearValue:V,setSelectedSections:G}=F,A=Ac({stateResponse:F}),Z=s(T),[z,ne]=p.useState(!1);function te(J=0){if(C||!S.current||pi(S)!=null)return;const Y=$r(J,I.sections);ne(!0),S.current.getSectionContent(Y).focus()}const se=gw({manager:n,internalPropsWithDefaults:l,stateResponse:F,applyCharacterEditing:A,focused:z,setFocused:ne,domGetters:E}),U=bw({manager:n,stateResponse:F}),oe=yw({stateResponse:F,internalPropsWithDefaults:l}),ce=vw({manager:n,stateResponse:F,applyCharacterEditing:A,internalPropsWithDefaults:l,domGetters:E,focused:z}),fe=de(J=>{v?.(J),se.onKeyDown(J)}),re=de(J=>{d?.(J),se.onBlur(J)}),Q=de(J=>{y?.(J),se.onFocus(J)}),H=de(J=>{J.isDefaultPrevented()||(m?.(J),se.onClick(J))}),q=de(J=>{h?.(J),se.onPaste(J)}),X=de(J=>{g?.(J),se.onInput(J)}),K=de((J,...Y)=>{J.preventDefault(),f?.(J,...Y),V(),fi(S)?G(N.startIndex):te(0)}),ue=p.useMemo(()=>I.sections.map((J,Y)=>{const ee=ce(J,Y);return{container:oe(Y),content:ce(J,Y),before:{children:J.startSeparator},after:{children:J.endSeparator,"data-range-position":J.isEndFormatSeparator?ee["data-range-position"]:void 0}}}),[I.sections,oe,ce]);return p.useEffect(()=>{if(S.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","<DatePicker enableAccessibleFieldDOMStructure={false} slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
|
|
115
|
-
`));x&&!C&&S.current&&S.current.getSectionContent(N.startIndex).focus()},[]),dt(()=>{if(!(!z||!S.current)){if($==="all")S.current.getRoot().focus();else if(typeof $=="number"){const J=S.current.getSectionContent($);J&&J.focus()}}},[$,z]),dt(()=>{Bs({focused:z,domGetters:E,stateResponse:F})}),p.useImperativeHandle(k,()=>({getSections:()=>I.sections,getActiveSectionIndex:()=>pi(S),setSelectedSections:J=>{if(C||!S.current)return;const Y=$r(J,I.sections);ne((Y==="all"?0:Y)!==null),G(J)},focusField:te,isFieldFocused:()=>fi(S)})),O({},i,se,{onBlur:re,onClick:H,onFocus:Q,onInput:X,onPaste:q,onKeyDown:fe,onClear:K},U,{error:M,clearable:!!(b&&!L&&!w&&!C),focused:P??z,sectionListRef:R,enableAccessibleFieldDOMStructure:!0,elements:ue,areAllSectionsEmpty:L,disabled:C,readOnly:w,autoFocus:x,openPickerAriaLabel:Z})};function pi(e){const t=nt(document);return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function fi(e){const t=nt(document);return!!e.current&&e.current.getRoot().contains(t)}const kn=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Sw=(e,t,n)=>{let o=0,r=n?1:0;const s=[];for(let a=0;a<e.length;a+=1){const i=e[a],l=bs(i,n?"input-rtl":"input-ltr",t),c=`${i.startSeparator}${l}${i.endSeparator}`,d=kn(c).length,m=c.length,y=kn(l),g=r+(y===""?0:l.indexOf(y[0]))+i.startSeparator.length,h=g+y.length;s.push(O({},i,{start:o,end:o+d,startInInput:g,endInInput:h})),o+=d,r+=m}return s},Pw=e=>{const t=wt(),n=Mn(),o=Mn(),{props:r,manager:s,skipContextFieldRefAssignment:a,manager:{valueType:i,internal_valueManager:l,internal_fieldValueManager:c,internal_useOpenPickerButtonAriaLabel:d}}=e,{internalProps:m,forwardedProps:y}=jl(r,i),g=Lc({manager:s,internalProps:m,skipContextFieldRefAssignment:a}),{onFocus:h,onClick:v,onPaste:f,onBlur:b,onKeyDown:C,onClear:w,clearable:x,inputRef:P,placeholder:k}=y,{readOnly:S=!1,disabled:R=!1,autoFocus:E=!1,focused:F,unstableFieldRef:L}=g,M=p.useRef(null),$=ot(P,M),N=$c({manager:s,internalPropsWithDefaults:g,forwardedProps:y}),{activeSectionIndex:I,areAllSectionsEmpty:T,error:V,localizedDigits:G,parsedSelectedSections:A,sectionOrder:Z,state:z,value:ne,clearValue:te,clearActiveSection:se,setCharacterQuery:U,setSelectedSections:oe,setTempAndroidValueStr:ce,updateSectionValue:fe,updateValueFromValueStr:re,getSectionsFromValue:Q}=N,H=Ac({stateResponse:N}),q=d(ne),X=p.useMemo(()=>Sw(z.sections,G,t),[z.sections,G,t]);function K(){const be=M.current.selectionStart??0;let ve;be<=X[0].startInInput||be>=X[X.length-1].endInInput?ve=1:ve=X.findIndex(Ne=>Ne.startInInput-Ne.startSeparator.length>be);const he=ve===-1?X.length-1:ve-1;oe(he)}function ue(be=0){nt(document)!==M.current&&(M.current?.focus(),oe(be))}const J=de(be=>{h?.(be);const ve=M.current;n.start(0,()=>{!ve||ve!==M.current||I==null&&(ve.value.length&&Number(ve.selectionEnd)-Number(ve.selectionStart)===ve.value.length?oe("all"):K())})}),Y=de((be,...ve)=>{be.isDefaultPrevented()||(v?.(be,...ve),K())}),ee=de(be=>{if(f?.(be),be.preventDefault(),S||R)return;const ve=be.clipboardData.getData("text");if(typeof A=="number"){const he=z.sections[A],Ne=/^[a-zA-Z]+$/.test(ve),Ue=/^[0-9]+$/.test(ve),pe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ve);if(he.contentType==="letter"&&Ne||he.contentType==="digit"&&Ue||he.contentType==="digit-with-letter"&&pe){U(null),fe({section:he,newSectionValue:ve,shouldGoToNextSection:!0});return}if(Ne||Ue)return}U(null),re(ve)}),ie=de(be=>{b?.(be),oe(null)}),W=de(be=>{if(S)return;const ve=be.target.value;if(ve===""){te();return}const he=be.nativeEvent.data,Ne=he&&he.length>1,Ue=Ne?he:ve,pe=kn(Ue);if(A==="all"&&oe(I),I==null||Ne){re(Ne?he:pe);return}let Ce;if(A==="all"&&pe.length===1)Ce=pe;else{const Me=kn(c.getV6InputValueFromSections(X,G,t));let xe=-1,Ke=-1;for(let ft=0;ft<Me.length;ft+=1)xe===-1&&Me[ft]!==pe[ft]&&(xe=ft),Ke===-1&&Me[Me.length-ft-1]!==pe[pe.length-ft-1]&&(Ke=ft);const rt=X[I];if(xe<rt.start||Me.length-Ke-1>rt.end)return;const To=pe.length-Me.length+rt.end-kn(rt.endSeparator||"").length;Ce=pe.slice(rt.start+kn(rt.startSeparator||"").length,To)}if(Ce.length===0){Fm()&&ce(Ue),se();return}H({keyPressed:Ce,sectionIndex:I})}),j=de((be,...ve)=>{be.preventDefault(),w?.(be,...ve),te(),mi(M)?oe(Z.startIndex):ue(0)}),_=jc({manager:s,internalPropsWithDefaults:g,stateResponse:N}),ge=de(be=>{C?.(be),_(be)}),ye=p.useMemo(()=>k!==void 0?k:c.getV6InputValueFromSections(Q(l.emptyValue),G,t),[k,c,Q,l.emptyValue,G,t]),Le=p.useMemo(()=>z.tempValueStrAndroid??c.getV6InputValueFromSections(z.sections,G,t),[z.sections,c,z.tempValueStrAndroid,G,t]);p.useEffect(()=>{M.current&&M.current===nt(document)&&oe("all")},[]),dt(()=>{function be(){if(!M.current)return;if(A==null){M.current.scrollLeft&&(M.current.scrollLeft=0);return}if(M.current!==nt(document))return;const ve=M.current.scrollTop;if(A==="all")M.current.select();else{const he=X[A],Ne=he.type==="empty"?he.startInInput-he.startSeparator.length:he.startInInput,Ue=he.type==="empty"?he.endInInput+he.endSeparator.length:he.endInInput;(Ne!==M.current.selectionStart||Ue!==M.current.selectionEnd)&&M.current===nt(document)&&M.current.setSelectionRange(Ne,Ue),o.start(0,()=>{M.current&&M.current===nt(document)&&M.current.selectionStart===M.current.selectionEnd&&(M.current.selectionStart!==Ne||M.current.selectionEnd!==Ue)&&be()})}M.current.scrollTop=ve}be()});const ke=p.useMemo(()=>I==null||z.sections[I].contentType==="letter"?"text":"numeric",[I,z.sections]),qe=!(M.current&&M.current===nt(document))&&T;return p.useImperativeHandle(L,()=>({getSections:()=>z.sections,getActiveSectionIndex:()=>{const be=M.current.selectionStart??0,ve=M.current.selectionEnd??0;if(be===0&&ve===0)return null;const he=be<=X[0].startInInput?1:X.findIndex(Ne=>Ne.startInInput-Ne.startSeparator.length>be);return he===-1?X.length-1:he-1},setSelectedSections:be=>oe(be),focusField:ue,isFieldFocused:()=>mi(M)})),O({},y,{error:V,clearable:!!(x&&!T&&!S&&!R),onBlur:ie,onClick:Y,onFocus:J,onPaste:ee,onKeyDown:ge,onClear:j,inputRef:$,enableAccessibleFieldDOMStructure:!1,placeholder:ye,inputMode:ke,autoComplete:"off",value:qe?"":Le,onChange:W,focused:F,disabled:R,readOnly:S,autoFocus:E,openPickerAriaLabel:q})};function mi(e){return e.current===nt(document)}const Vc=e=>{const t=El();return(e.props.enableAccessibleFieldDOMStructure??t?.enableAccessibleFieldDOMStructure??!0?Cw:Pw)(e)};function kw(e={}){const{enableAccessibleFieldDOMStructure:t=!0,ampm:n}=e;return p.useMemo(()=>({valueType:"time",validator:ir,internal_valueManager:et,internal_fieldValueManager:Ml,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:Dw,internal_useOpenPickerButtonAriaLabel:Mw(n)}),[n,t])}function Mw(e){return function(n){const o=Te(),r=lt();return p.useMemo(()=>{const s=e??o.is12HourCycleInCurrentLocale()?"fullTime12h":"fullTime24h",a=o.isValid(n)?o.format(n,s):null;return r.openTimePickerDialogue(a)},[n,r,o])}}function Dw(e){const t=Te(),n=Bc(e),o=p.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return p.useMemo(()=>O({},e,n,{format:e.format??(o?t.formats.fullTime12h:t.formats.fullTime24h)}),[e,n,o,t])}function Bc(e){return p.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1}),[e.disablePast,e.disableFuture])}const Tw=e=>{const t=gh(e);return Vc({manager:t,props:e})},Iw=["slots","slotProps"],zc=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiDateField"}),{slots:r,slotProps:s}=o,a=me(o,Iw),i=Ec({slotProps:s,ref:n,externalForwardedProps:a}),l=Tw(i);return u.jsx(Rc,{slots:r,slotProps:s,fieldResponse:l,defaultOpenPickerIcon:hx})}),Hc=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:s,disablePast:a,timezone:i})=>{const l=fn();return p.useCallback(c=>So({adapter:l,value:c,timezone:i,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:s,disablePast:a}})!==null,[l,e,t,n,o,r,s,a,i])},Rw=(e,t)=>(n,o)=>{switch(o.type){case"setVisibleDate":return O({},n,{slideDirection:o.direction,currentMonth:o.month,isMonthSwitchingAnimating:!t.isSameMonth(o.month,n.currentMonth)&&!e&&!o.skipAnimation,focusedDay:o.focusedDay});case"changeMonthTimezone":{const r=o.newTimezone;if(t.getTimezone(n.currentMonth)===r)return n;let s=t.setTimezone(n.currentMonth,r);return t.getMonth(s)!==t.getMonth(n.currentMonth)&&(s=t.setMonth(s,t.getMonth(n.currentMonth))),O({},n,{currentMonth:s})}case"finishMonthSwitchingAnimation":return O({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},Ew=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,maxDate:s,minDate:a,onMonthChange:i,onYearChange:l,reduceAnimations:c,shouldDisableDate:d,timezone:m,getCurrentMonthFromVisibleDate:y}=e,g=Te(),h=p.useRef(Rw(!!c,g)).current,v=p.useMemo(()=>et.getInitialReferenceValue({value:t,utils:g,timezone:m,props:e,referenceDate:n,granularity:kt.day}),[n,m]),[f,b]=p.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:v,currentMonth:g.startOfMonth(v),slideDirection:"left"}),C=Hc({shouldDisableDate:d,minDate:a,maxDate:s,disableFuture:o,disablePast:r,timezone:m});p.useEffect(()=>{b({type:"changeMonthTimezone",newTimezone:g.getTimezone(v)})},[v,g]);const w=de(({target:P,reason:k})=>{if(k==="cell-interaction"&&f.focusedDay!=null&&g.isSameDay(P,f.focusedDay))return;const S=k==="cell-interaction";let R,E;if(k==="cell-interaction")R=y(P,f.currentMonth),E=P;else if(R=g.isSameMonth(P,f.currentMonth)?f.currentMonth:g.startOfMonth(P),E=P,C(E)){const M=g.startOfMonth(P),$=g.endOfMonth(P);E=lo({utils:g,date:E,minDate:g.isBefore(a,M)?M:a,maxDate:g.isAfter(s,$)?$:s,disablePast:r,disableFuture:o,isDateDisabled:C,timezone:m})}const F=!g.isSameMonth(f.currentMonth,R),L=!g.isSameYear(f.currentMonth,R);F&&i?.(R),L&&l?.(g.startOfYear(R)),b({type:"setVisibleDate",month:R,direction:g.isAfterDay(R,f.currentMonth)?"left":"right",focusedDay:f.focusedDay!=null&&E!=null&&g.isSameDay(E,f.focusedDay)?f.focusedDay:E,skipAnimation:S})}),x=p.useCallback(()=>{b({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:v,calendarState:f,setVisibleDate:w,isDateDisabled:C,onMonthSwitchingAnimationEnd:x}},Ow=e=>Ve("MuiPickersFadeTransitionGroup",e);ze("MuiPickersFadeTransitionGroup",["root"]);const Fw=["children"],Nw=e=>Oe({root:["root"]},Ow,e),Aw=B(xo,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function Wc(e){const t=De({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:o,transKey:r,classes:s}=t,{children:a}=t,i=me(t,Fw),l=Nw(s),c=zn();return o?a:u.jsx(Aw,{className:ae(l.root,n),ownerState:i,children:u.jsx(un,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:c.transitions.duration.enteringScreen,enter:c.transitions.duration.enteringScreen,exit:0},children:a},r)})}function $w(e){return Ve("MuiPickersDay",e)}const en=ze("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function _c(e){const{disabled:t,selected:n,today:o,outsideCurrentMonth:r,day:s,disableMargin:a,disableHighlightToday:i,showDaysOutsideCurrentMonth:l}=e,c=Te(),{ownerState:d}=We();return p.useMemo(()=>O({},d,{day:s,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:o??!1,isDayOutsideMonth:r??!1,isDayStartOfWeek:c.isSameDay(s,c.startOfWeek(s)),isDayEndOfWeek:c.isSameDay(s,c.endOfWeek(s)),disableMargin:a??!1,disableHighlightToday:i??!1,showDaysOutsideCurrentMonth:l??!1}),[c,d,s,n,t,o,r,a,i,l])}const Lw=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],jw=(e,t)=>{const{isDaySelected:n,isDayDisabled:o,isDayCurrent:r,isDayOutsideMonth:s,disableMargin:a,disableHighlightToday:i,showDaysOutsideCurrentMonth:l}=t,c=s&&!l;return Oe({root:["root",n&&!c&&"selected",o&&"disabled",!a&&"dayWithMargin",!i&&r&&"today",s&&l&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},$w,e)},Uc=({theme:e})=>O({},e.typography.caption,{width:mo,height:mo,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ie(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ie(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${en.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${en.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${en.disabled}:not(.${en.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${en.disabled}&.${en.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${ur}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${en.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Yc=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.isDayCurrent&&t.today,!n.isDayOutsideMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.isDayOutsideMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Vw=B(Ln,{name:"MuiPickersDay",slot:"Root",overridesResolver:Yc})(Uc),Bw=B("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Yc})(({theme:e})=>O({},Uc({theme:e}),{opacity:0,pointerEvents:"none"})),Qn=()=>{},zw=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:s,classes:a,isAnimating:i,onClick:l,onDaySelect:c,onFocus:d=Qn,onBlur:m=Qn,onKeyDown:y=Qn,onMouseDown:g=Qn,onMouseEnter:h=Qn,children:v,day:f,selected:b,disabled:C,today:w,outsideCurrentMonth:x,disableMargin:P,disableHighlightToday:k,showDaysOutsideCurrentMonth:S}=o,R=me(o,Lw),E=_c({day:f,selected:b,disabled:C,today:w,outsideCurrentMonth:x,disableMargin:P,disableHighlightToday:k,showDaysOutsideCurrentMonth:S}),F=jw(a,E),L=Te(),M=p.useRef(null),$=ot(M,n);dt(()=>{r&&!C&&!i&&!x&&M.current.focus()},[r,C,i,x]);const N=T=>{g(T),x&&T.preventDefault()},I=T=>{C||c(f),x&&T.currentTarget.focus(),l&&l(T)};return x&&!S?u.jsx(Bw,{className:ae(F.root,F.hiddenDaySpacingFiller,s),ownerState:E,role:R.role}):u.jsx(Vw,O({className:ae(F.root,s),ref:$,centerRipple:!0,disabled:C,tabIndex:b?0:-1,onKeyDown:T=>y(T,f),onFocus:T=>d(T,f),onBlur:T=>m(T,f),onMouseEnter:T=>h(T,f),onClick:I,onMouseDown:N},R,{ownerState:E,children:v||L.format(f,"dayOfMonth")}))}),Hw=p.memo(zw),Ww=e=>Ve("MuiPickersSlideTransition",e),mt=ze("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),_w=["children","className","reduceAnimations","slideDirection","transKey","classes"],Uw=(e,t)=>{const{slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Oe(o,Ww,e)},Yw=B(xo,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${mt["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${mt["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${mt.slideEnterActive}`]:t.slideEnterActive},{[`.${mt.slideExit}`]:t.slideExit},{[`.${mt["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${mt["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${mt["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${mt["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${mt.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${mt.slideExit}`]:{transform:"translate(0%)"},[`& .${mt["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${mt["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function qw(e){const t=De({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,slideDirection:s,transKey:a,classes:i}=t,l=me(t,_w),{ownerState:c}=We(),d=O({},c,{slideDirection:s}),m=Uw(i,d),y=zn();if(r)return u.jsx("div",{className:ae(m.root,o),children:n});const g={exit:m.exit,enterActive:m.enterActive,enter:m.enter,exitActive:m.exitActive};return u.jsx(Yw,{className:ae(m.root,o),childFactory:h=>p.cloneElement(h,{classNames:g}),role:"presentation",ownerState:d,children:u.jsx(ls,O({mountOnEnter:!0,unmountOnExit:!0,timeout:y.transitions.duration.complex,classNames:g},l,{children:n}),a)})}const Kw=e=>Ve("MuiDayCalendar",e);ze("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Gw=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],Qw=["ownerState"],Xw=e=>Oe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Kw,e),qc=(mo+ur*2)*6,Zw=B("div",{name:"MuiDayCalendar",slot:"Root"})({}),Jw=B("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),eC=B(zt,{name:"MuiDayCalendar",slot:"WeekDayLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),tC=B(zt,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),nC=B(zt,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>O({},e.typography.caption,{width:mo,height:mo,padding:0,margin:`0 ${ur}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),oC=B("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:qc}),rC=B(qw,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:qc}),sC=B("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),aC=B("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${ur}px 0`,display:"flex",justifyContent:"center"});function iC(e){let{parentProps:t,day:n,focusedDay:o,selectedDays:r,isDateDisabled:s,currentMonthNumber:a,isViewFocused:i}=e,l=me(e,Gw);const{disabled:c,disableHighlightToday:d,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:y,slots:g,slotProps:h,timezone:v}=t,f=Te(),b=mn(v),C=o!=null&&f.isSameDay(n,o),w=i&&C,x=r.some(N=>f.isSameDay(N,n)),P=f.isSameDay(n,b),k=p.useMemo(()=>c||s(n),[c,s,n]),S=p.useMemo(()=>f.getMonth(n)!==a,[f,n,a]),R=_c({day:n,selected:x,disabled:k,today:P,outsideCurrentMonth:S,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:y}),E=g?.day??Hw,F=Ae({elementType:E,externalSlotProps:h?.day,additionalProps:O({disableHighlightToday:d,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:m,"data-timestamp":f.toJsDate(n).valueOf()},l),ownerState:O({},R,{day:n,isDayDisabled:k,isDaySelected:x})}),L=me(F,Qw),M=p.useMemo(()=>{const N=f.startOfMonth(f.setMonth(n,a));return y?f.isSameDay(n,f.startOfWeek(N)):f.isSameDay(n,N)},[a,n,y,f]),$=p.useMemo(()=>{const N=f.endOfMonth(f.setMonth(n,a));return y?f.isSameDay(n,f.endOfWeek(N)):f.isSameDay(n,N)},[a,n,y,f]);return u.jsx(E,O({},L,{day:n,disabled:k,autoFocus:!S&&w,today:P,outsideCurrentMonth:S,isFirstVisibleCell:M,isLastVisibleCell:$,selected:x,tabIndex:C?0:-1,"aria-selected":x,"aria-current":P?"date":void 0}))}function lC(e){const t=De({props:e,name:"MuiDayCalendar"}),n=Te(),{onFocusedDayChange:o,className:r,classes:s,currentMonth:a,selectedDays:i,focusedDay:l,loading:c,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:m,readOnly:y,reduceAnimations:g,renderLoading:h=()=>u.jsx("span",{children:"..."}),slideDirection:v,TransitionProps:f,disablePast:b,disableFuture:C,minDate:w,maxDate:x,shouldDisableDate:P,shouldDisableMonth:k,shouldDisableYear:S,dayOfWeekFormatter:R=H=>n.format(H,"weekdayShort").charAt(0).toUpperCase(),hasFocus:E,onFocusedViewChange:F,gridLabelId:L,displayWeekNumber:M,fixedWeekNumber:$,timezone:N}=t,I=mn(N),T=Xw(s),V=wt(),G=Hc({shouldDisableDate:P,shouldDisableMonth:k,shouldDisableYear:S,minDate:w,maxDate:x,disablePast:b,disableFuture:C,timezone:N}),A=lt(),Z=de(H=>{y||d(H)}),z=H=>{G(H)||(o(H),F?.(!0))},ne=de((H,q)=>{switch(H.key){case"ArrowUp":z(n.addDays(q,-7)),H.preventDefault();break;case"ArrowDown":z(n.addDays(q,7)),H.preventDefault();break;case"ArrowLeft":{const X=n.addDays(q,V?1:-1),K=n.addMonths(q,V?1:-1),ue=lo({utils:n,date:X,minDate:V?X:n.startOfMonth(K),maxDate:V?n.endOfMonth(K):X,isDateDisabled:G,timezone:N});z(ue||X),H.preventDefault();break}case"ArrowRight":{const X=n.addDays(q,V?-1:1),K=n.addMonths(q,V?-1:1),ue=lo({utils:n,date:X,minDate:V?n.startOfMonth(K):X,maxDate:V?X:n.endOfMonth(K),isDateDisabled:G,timezone:N});z(ue||X),H.preventDefault();break}case"Home":z(n.startOfWeek(q)),H.preventDefault();break;case"End":z(n.endOfWeek(q)),H.preventDefault();break;case"PageUp":z(n.addMonths(q,1)),H.preventDefault();break;case"PageDown":z(n.addMonths(q,-1)),H.preventDefault();break}}),te=de((H,q)=>z(q)),se=de((H,q)=>{l!=null&&n.isSameDay(l,q)&&F?.(!1)}),U=n.getMonth(a),oe=n.getYear(a),ce=p.useMemo(()=>i.filter(H=>!!H).map(H=>n.startOfDay(H)),[n,i]),fe=`${oe}-${U}`,re=p.useMemo(()=>p.createRef(),[fe]),Q=p.useMemo(()=>{const H=n.getWeekArray(a);let q=n.addMonths(a,1);for(;$&&H.length<$;){const X=n.getWeekArray(q),K=n.isSameDay(H[H.length-1][0],X[0][0]);X.slice(K?1:0).forEach(ue=>{H.length<$&&H.push(ue)}),q=n.addMonths(q,1)}return H},[a,$,n]);return u.jsxs(Zw,{role:"grid","aria-labelledby":L,className:T.root,children:[u.jsxs(Jw,{role:"row",className:T.header,children:[M&&u.jsx(tC,{variant:"caption",role:"columnheader","aria-label":A.calendarWeekNumberHeaderLabel,className:T.weekNumberLabel,children:A.calendarWeekNumberHeaderText}),ym(n,I).map((H,q)=>u.jsx(eC,{variant:"caption",role:"columnheader","aria-label":n.format(H,"weekday"),className:T.weekDayLabel,children:R(H)},q.toString()))]}),c?u.jsx(oC,{className:T.loadingContainer,children:h()}):u.jsx(rC,O({transKey:fe,onExited:m,reduceAnimations:g,slideDirection:v,className:ae(r,T.slideTransition)},f,{nodeRef:re,children:u.jsx(sC,{ref:re,role:"rowgroup",className:T.monthContainer,children:Q.map((H,q)=>u.jsxs(aC,{role:"row",className:T.weekContainer,"aria-rowindex":q+1,children:[M&&u.jsx(nC,{className:T.weekNumber,role:"rowheader","aria-label":A.calendarWeekNumberAriaLabelText(n.getWeekNumber(H[0])),children:A.calendarWeekNumberText(n.getWeekNumber(H[0]))}),H.map((X,K)=>u.jsx(iC,{parentProps:t,day:X,selectedDays:ce,isViewFocused:E,focusedDay:l,onKeyDown:ne,onFocus:te,onBlur:se,onDaySelect:Z,isDateDisabled:G,currentMonthNumber:U,"aria-colindex":K+1},X.toString()))]},`week-${H[0]}`))})}))]})}function Kc(e){return Ve("MuiMonthCalendar",e)}const No=ze("MuiMonthCalendar",["root","button","disabled","selected"]),cC=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],uC=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return Oe(n,Kc,e)},dC=B("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${No.disabled}`]:t.disabled},{[`&.${No.selected}`]:t.selected}]})(({theme:e})=>O({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ie(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ie(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${No.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${No.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),pC=p.memo(function(t){const{autoFocus:n,classes:o,disabled:r,selected:s,value:a,onClick:i,onKeyDown:l,onFocus:c,onBlur:d,slots:m,slotProps:y}=t,g=me(t,cC),h=p.useRef(null),{ownerState:v}=We(),f=O({},v,{isMonthDisabled:r,isMonthSelected:s}),b=uC(o,f);dt(()=>{n&&h.current?.focus()},[n]);const C=m?.monthButton??dC,w=Ae({elementType:C,externalSlotProps:y?.monthButton,externalForwardedProps:g,additionalProps:{disabled:r,ref:h,type:"button",role:"radio","aria-checked":s,onClick:x=>i(x,a),onKeyDown:x=>l(x,a),onFocus:x=>c(x,a),onBlur:x=>d(x,a)},ownerState:f,className:b.button});return u.jsx(C,O({},w))}),fC=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],mC=e=>Oe({root:["root"]},Kc,e);function hC(e,t){const n=De({props:e,name:t}),o=Po(n);return O({},n,o,{monthsPerRow:n.monthsPerRow??3})}const gC=B("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>Ft(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:dr,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),bC=p.forwardRef(function(t,n){const o=hC(t,"MuiMonthCalendar"),{autoFocus:r,className:s,classes:a,value:i,defaultValue:l,referenceDate:c,disabled:d,disableFuture:m,disablePast:y,maxDate:g,minDate:h,onChange:v,shouldDisableMonth:f,readOnly:b,onMonthFocus:C,hasFocus:w,onFocusedViewChange:x,monthsPerRow:P,timezone:k,gridLabelId:S,slots:R,slotProps:E}=o,F=me(o,fC),{value:L,handleValueChange:M,timezone:$}=Gt({name:"MonthCalendar",timezone:k,value:i,defaultValue:l,referenceDate:c,onChange:v,valueManager:et}),N=mn($),I=wt(),T=Te(),{ownerState:V}=We(),G=p.useMemo(()=>et.getInitialReferenceValue({value:L,utils:T,props:o,timezone:$,referenceDate:c,granularity:kt.month}),[]),A=mC(a),Z=p.useMemo(()=>T.getMonth(N),[T,N]),z=p.useMemo(()=>L!=null?T.getMonth(L):null,[L,T]),[ne,te]=p.useState(()=>z||T.getMonth(G)),[se,U]=En({name:"MonthCalendar",state:"hasFocus",controlled:w,default:r??!1}),oe=de(X=>{U(X),x&&x(X)}),ce=p.useCallback(X=>{const K=T.startOfMonth(y&&T.isAfter(N,h)?N:h),ue=T.startOfMonth(m&&T.isBefore(N,g)?N:g),J=T.startOfMonth(X);return T.isBefore(J,K)||T.isAfter(J,ue)?!0:f?f(J):!1},[m,y,g,h,N,f,T]),fe=de((X,K)=>{if(b)return;const ue=T.setMonth(L??G,K);M(ue)}),re=de(X=>{ce(T.setMonth(L??G,X))||(te(X),oe(!0),C&&C(X))});p.useEffect(()=>{te(X=>z!==null&&X!==z?z:X)},[z]);const Q=de((X,K)=>{switch(X.key){case"ArrowUp":re((12+K-3)%12),X.preventDefault();break;case"ArrowDown":re((12+K+3)%12),X.preventDefault();break;case"ArrowLeft":re((12+K+(I?1:-1))%12),X.preventDefault();break;case"ArrowRight":re((12+K+(I?-1:1))%12),X.preventDefault();break}}),H=de((X,K)=>{re(K)}),q=de((X,K)=>{ne===K&&oe(!1)});return u.jsx(gC,O({ref:n,className:ae(A.root,s),ownerState:V,role:"radiogroup","aria-labelledby":S,monthsPerRow:P},F,{children:ps(T,L??G).map(X=>{const K=T.getMonth(X),ue=T.format(X,"monthShort"),J=T.format(X,"month"),Y=K===z,ee=d||ce(X);return u.jsx(pC,{selected:Y,value:K,onClick:fe,onKeyDown:Q,autoFocus:se&&K===ne,disabled:ee,tabIndex:K===ne&&!ee?0:-1,onFocus:H,onBlur:q,"aria-current":Z===K?"date":void 0,"aria-label":J,slots:R,slotProps:E,classes:a,children:ue},ue)})}))});function Gc(e){return Ve("MuiYearCalendar",e)}const Ao=ze("MuiYearCalendar",["root","button","disabled","selected"]),yC=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],vC=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return Oe(n,Gc,e)},xC=B("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Ao.disabled}`]:t.disabled},{[`&.${Ao.selected}`]:t.selected}]})(({theme:e})=>O({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Ie(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ie(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ao.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ao.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),wC=p.memo(function(t){const{autoFocus:n,classes:o,disabled:r,selected:s,value:a,onClick:i,onKeyDown:l,onFocus:c,onBlur:d,slots:m,slotProps:y}=t,g=me(t,yC),h=p.useRef(null),{ownerState:v}=We(),f=O({},v,{isYearDisabled:r,isYearSelected:s}),b=vC(o,f);dt(()=>{n&&h.current?.focus()},[n]);const C=m?.yearButton??xC,w=Ae({elementType:C,externalSlotProps:y?.yearButton,externalForwardedProps:g,additionalProps:{disabled:r,ref:h,type:"button",role:"radio","aria-checked":s,onClick:x=>i(x,a),onKeyDown:x=>l(x,a),onFocus:x=>c(x,a),onBlur:x=>d(x,a)},ownerState:f,className:b.button});return u.jsx(C,O({},w))}),CC=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],SC=e=>Oe({root:["root"]},Gc,e);function PC(e,t){const n=De({props:e,name:t}),o=Po(n);return O({},n,o,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const kC=B("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>Ft(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:dr,maxHeight:my,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),MC=B("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),DC=p.forwardRef(function(t,n){const o=PC(t,"MuiYearCalendar"),{autoFocus:r,className:s,classes:a,value:i,defaultValue:l,referenceDate:c,disabled:d,disableFuture:m,disablePast:y,maxDate:g,minDate:h,onChange:v,readOnly:f,shouldDisableYear:b,onYearFocus:C,hasFocus:w,onFocusedViewChange:x,yearsOrder:P,yearsPerRow:k,timezone:S,gridLabelId:R,slots:E,slotProps:F}=o,L=me(o,CC),{value:M,handleValueChange:$,timezone:N}=Gt({name:"YearCalendar",timezone:S,value:i,defaultValue:l,referenceDate:c,onChange:v,valueManager:et}),I=mn(N),T=wt(),V=Te(),{ownerState:G}=We(),A=p.useMemo(()=>et.getInitialReferenceValue({value:M,utils:V,props:o,timezone:N,referenceDate:c,granularity:kt.year}),[]),Z=SC(a),z=p.useMemo(()=>V.getYear(I),[V,I]),ne=p.useMemo(()=>M!=null?V.getYear(M):null,[M,V]),[te,se]=p.useState(()=>ne||V.getYear(A)),[U,oe]=En({name:"YearCalendar",state:"hasFocus",controlled:w,default:r??!1}),ce=de(W=>{oe(W),x&&x(W)}),fe=p.useCallback(W=>{if(y&&V.isBeforeYear(W,I)||m&&V.isAfterYear(W,I)||h&&V.isBeforeYear(W,h)||g&&V.isAfterYear(W,g))return!0;if(!b)return!1;const j=V.startOfYear(W);return b(j)},[m,y,g,h,I,b,V]),re=de((W,j)=>{if(f)return;const _=V.setYear(M??A,j);$(_)}),Q=de(W=>{fe(V.setYear(M??A,W))||(se(W),ce(!0),C?.(W))});p.useEffect(()=>{se(W=>ne!==null&&W!==ne?ne:W)},[ne]);const H=P!=="desc"?k*1:k*-1,q=T&&P==="asc"||!T&&P==="desc"?-1:1,X=de((W,j)=>{switch(W.key){case"ArrowUp":Q(j-H),W.preventDefault();break;case"ArrowDown":Q(j+H),W.preventDefault();break;case"ArrowLeft":Q(j-q),W.preventDefault();break;case"ArrowRight":Q(j+q),W.preventDefault();break}}),K=de((W,j)=>{Q(j)}),ue=de((W,j)=>{te===j&&ce(!1)}),J=p.useRef(null),Y=ot(n,J);p.useEffect(()=>{if(r||J.current===null)return;const W=J.current.querySelector('[tabindex="0"]');if(!W)return;const j=W.offsetHeight,_=W.offsetTop,ge=J.current.clientHeight,ye=J.current.scrollTop,Le=_+j;j>ge||_<ye||(J.current.scrollTop=Le-ge/2-j/2)},[r]);const ee=V.getYearRange([h,g]);P==="desc"&&ee.reverse();let ie=k-ee.length%k;return ie===k&&(ie=0),u.jsxs(kC,O({ref:Y,className:ae(Z.root,s),ownerState:G,role:"radiogroup","aria-labelledby":R,yearsPerRow:k},L,{children:[ee.map(W=>{const j=V.getYear(W),_=j===ne,ge=d||fe(W);return u.jsx(wC,{selected:_,value:j,onClick:re,onKeyDown:X,autoFocus:U&&j===te,disabled:ge,tabIndex:j===te&&!ge?0:-1,onFocus:K,onBlur:ue,"aria-current":z===j?"date":void 0,slots:E,slotProps:F,classes:a,children:V.format(W,"year")},V.format(W,"year"))}),Array.from({length:ie},(W,j)=>u.jsx(MC,{},j))]}))}),TC=e=>Ve("MuiPickersCalendarHeader",e),IC=ze("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function RC(e){return Ve("MuiPickersArrowSwitcher",e)}ze("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const EC=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],OC=["ownerState"],FC=["ownerState"],NC=B("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),AC=B("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),hi=B(Vn,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),$C=e=>Oe({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},RC,e),Qc=p.forwardRef(function(t,n){const o=wt(),r=De({props:t,name:"MuiPickersArrowSwitcher"}),{children:s,className:a,slots:i,slotProps:l,isNextDisabled:c,isNextHidden:d,onGoToNext:m,nextLabel:y,isPreviousDisabled:g,isPreviousHidden:h,onGoToPrevious:v,previousLabel:f,labelId:b,classes:C}=r,w=me(r,EC),{ownerState:x}=We(),P=$C(C),k={isDisabled:c,isHidden:d,goTo:m,label:y},S={isDisabled:g,isHidden:h,goTo:v,label:f},R=i?.previousIconButton??hi,E=Ae({elementType:R,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:S.label,"aria-label":S.label,disabled:S.isDisabled,edge:"end",onClick:S.goTo},ownerState:O({},x,{isButtonHidden:S.isHidden??!1}),className:ae(P.button,P.previousIconButton)}),F=i?.nextIconButton??hi,L=Ae({elementType:F,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"start",onClick:k.goTo},ownerState:O({},x,{isButtonHidden:k.isHidden??!1}),className:ae(P.button,P.nextIconButton)}),M=i?.leftArrowIcon??fx,$=Ae({elementType:M,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:P.leftArrowIcon}),N=me($,OC),I=i?.rightArrowIcon??mx,T=Ae({elementType:I,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:P.rightArrowIcon}),V=me(T,FC);return u.jsxs(NC,O({ref:n,className:ae(P.root,a),ownerState:x},w,{children:[u.jsx(R,O({},E,{children:o?u.jsx(I,O({},V)):u.jsx(M,O({},N))})),s?u.jsx(zt,{variant:"subtitle1",component:"span",id:b,children:s}):u.jsx(AC,{className:P.spacer,ownerState:x}),u.jsx(F,O({},L,{children:o?u.jsx(M,O({},N)):u.jsx(I,O({},V))}))]}))});function LC(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Te();return p.useMemo(()=>{const s=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(s,n)?s:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function jC(e,{disablePast:t,minDate:n,timezone:o}){const r=Te();return p.useMemo(()=>{const s=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(s,n)?s:n);return!r.isBefore(a,e)},[t,n,e,r,o])}function zs(e,t,n,o){const r=Te(),s=p.useMemo(()=>r.isValid(e)?e:null,[r,e]),a=wm(s,r),i=p.useCallback(l=>{const c=s==null?null:Cm(s,l,!!t,r);n(c,o??"partial")},[t,s,n,o,r]);return{meridiemMode:a,handleMeridiemChange:i}}const VC=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],BC=["ownerState"],zC=e=>Oe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},TC,e),HC=B("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),WC=B("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>O({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),_C=B("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),UC=B(Vn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${IC.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),YC=B(px,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),qC=p.forwardRef(function(t,n){const o=lt(),r=Te(),s=De({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:i,currentMonth:l,disabled:c,disableFuture:d,disablePast:m,maxDate:y,minDate:g,onMonthChange:h,onViewChange:v,view:f,reduceAnimations:b,views:C,labelId:w,className:x,classes:P,timezone:k,format:S=`${r.formats.month} ${r.formats.year}`}=s,R=me(s,VC),{ownerState:E}=We(),F=zC(P),L=a?.switchViewButton??UC,M=Ae({elementType:L,externalSlotProps:i?.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(f)},ownerState:E,className:F.switchViewButton}),$=a?.switchViewIcon??YC,N=Ae({elementType:$,externalSlotProps:i?.switchViewIcon,ownerState:E,className:F.switchViewIcon}),I=me(N,BC),T=()=>h(r.addMonths(l,1)),V=()=>h(r.addMonths(l,-1)),G=LC(l,{disableFuture:d,maxDate:y,timezone:k}),A=jC(l,{disablePast:m,minDate:g,timezone:k}),Z=()=>{if(!(C.length===1||!v||c))if(C.length===2)v(C.find(ne=>ne!==f)||C[0]);else{const ne=C.indexOf(f)!==0?0:1;v(C[ne])}};if(C.length===1&&C[0]==="year")return null;const z=r.formatByString(l,S);return u.jsxs(HC,O({},R,{ownerState:E,className:ae(F.root,x),ref:n,children:[u.jsxs(WC,{role:"presentation",onClick:Z,ownerState:E,"aria-live":"polite",className:F.labelContainer,children:[u.jsx(Wc,{reduceAnimations:b,transKey:z,children:u.jsx(_C,{id:w,ownerState:E,className:F.label,children:z})}),C.length>1&&!c&&u.jsx(L,O({},M,{children:u.jsx($,O({},I))}))]}),u.jsx(un,{in:f==="day",appear:!b,enter:!b,children:u.jsx(Qc,{slots:a,slotProps:i,onGoToPrevious:V,isPreviousDisabled:A,previousLabel:o.previousMonth,onGoToNext:T,isNextDisabled:G,nextLabel:o.nextMonth})})]}))}),vr=B("div")({overflow:"hidden",width:dr,maxHeight:Ts,display:"flex",flexDirection:"column",margin:"0 auto"}),KC=e=>Ve("MuiDateCalendar",e);ze("MuiDateCalendar",["root","viewTransitionContainer"]);const GC=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","classes","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],QC=e=>Oe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},KC,e);function XC(e,t){const n=De({props:e,name:t}),o=ec(n.reduceAnimations),r=Po(n);return O({},n,r,{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:o,renderLoading:n.renderLoading??(()=>u.jsx("span",{children:"..."}))})}const ZC=B(vr,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Ts}),JC=B(Wc,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),eS=p.forwardRef(function(t,n){const o=Te(),{ownerState:r}=We(),s=wo(),a=XC(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:l,value:c,defaultValue:d,referenceDate:m,disableFuture:y,disablePast:g,onChange:h,onMonthChange:v,reduceAnimations:f,shouldDisableDate:b,shouldDisableMonth:C,shouldDisableYear:w,view:x,views:P,openTo:k,className:S,classes:R,disabled:E,readOnly:F,minDate:L,maxDate:M,disableHighlightToday:$,focusedView:N,onFocusedViewChange:I,showDaysOutsideCurrentMonth:T,fixedWeekNumber:V,dayOfWeekFormatter:G,slots:A,slotProps:Z,loading:z,renderLoading:ne,displayWeekNumber:te,yearsOrder:se,yearsPerRow:U,monthsPerRow:oe,timezone:ce}=a,fe=me(a,GC),{value:re,handleValueChange:Q,timezone:H}=Gt({name:"DateCalendar",timezone:ce,value:c,defaultValue:d,referenceDate:m,onChange:h,valueManager:et}),{view:q,setView:X,focusedView:K,setFocusedView:ue,goToNextView:J,setValueAndGoToNextView:Y}=Do({view:x,views:P,openTo:k,onChange:Q,onViewChange:l,autoFocus:i,focusedView:N,onFocusedViewChange:I}),{referenceDate:ee,calendarState:ie,setVisibleDate:W,isDateDisabled:j,onMonthSwitchingAnimationEnd:_}=Ew({value:re,referenceDate:m,reduceAnimations:f,onMonthChange:v,minDate:L,maxDate:M,shouldDisableDate:b,disablePast:g,disableFuture:y,timezone:H,getCurrentMonthFromVisibleDate:(xe,Ke)=>o.isSameMonth(xe,Ke)?Ke:o.startOfMonth(xe)}),ge=E&&re||L,ye=E&&re||M,Le=`${s}-grid-label`,ke=K!==null,He=A?.calendarHeader??qC,qe=Ae({elementType:He,externalSlotProps:Z?.calendarHeader,additionalProps:{views:P,view:q,currentMonth:ie.currentMonth,onViewChange:X,onMonthChange:xe=>W({target:xe,reason:"header-navigation"}),minDate:ge,maxDate:ye,disabled:E,disablePast:g,disableFuture:y,reduceAnimations:f,timezone:H,labelId:Le},ownerState:r}),be=de(xe=>{const Ke=o.startOfMonth(xe),rt=o.endOfMonth(xe),St=j(xe)?lo({utils:o,date:xe,minDate:o.isBefore(L,Ke)?Ke:L,maxDate:o.isAfter(M,rt)?rt:M,disablePast:g,disableFuture:y,isDateDisabled:j,timezone:H}):xe;St?(Y(St,"finish"),W({target:St,reason:"cell-interaction"})):(J(),W({target:Ke,reason:"cell-interaction"}))}),ve=de(xe=>{const Ke=o.startOfYear(xe),rt=o.endOfYear(xe),St=j(xe)?lo({utils:o,date:xe,minDate:o.isBefore(L,Ke)?Ke:L,maxDate:o.isAfter(M,rt)?rt:M,disablePast:g,disableFuture:y,isDateDisabled:j,timezone:H}):xe;St?(Y(St,"finish"),W({target:St,reason:"cell-interaction"})):(J(),W({target:Ke,reason:"cell-interaction"}))}),he=de(xe=>Q(xe&&Yo(o,xe,re??ee),"finish",q));p.useEffect(()=>{o.isValid(re)&&W({target:re,reason:"controlled-value-change"})},[re]);const Ne=QC(R),Ue={disablePast:g,disableFuture:y,maxDate:M,minDate:L},pe={disableHighlightToday:$,readOnly:F,disabled:E,timezone:H,gridLabelId:Le,slots:A,slotProps:Z},Ce=p.useRef(q);p.useEffect(()=>{Ce.current!==q&&(K===Ce.current&&ue(q,!0),Ce.current=q)},[K,ue,q]);const Me=p.useMemo(()=>[re],[re]);return u.jsxs(ZC,O({ref:n,className:ae(Ne.root,S),ownerState:r},fe,{children:[u.jsx(He,O({},qe,{slots:A,slotProps:Z})),u.jsx(JC,{reduceAnimations:f,className:Ne.viewTransitionContainer,transKey:q,ownerState:r,children:u.jsxs("div",{children:[q==="year"&&u.jsx(DC,O({},Ue,pe,{value:re,onChange:ve,shouldDisableYear:w,hasFocus:ke,onFocusedViewChange:xe=>ue("year",xe),yearsOrder:se,yearsPerRow:U,referenceDate:ee})),q==="month"&&u.jsx(bC,O({},Ue,pe,{hasFocus:ke,className:S,value:re,onChange:be,shouldDisableMonth:C,onFocusedViewChange:xe=>ue("month",xe),monthsPerRow:oe,referenceDate:ee})),q==="day"&&u.jsx(lC,O({},ie,Ue,pe,{onMonthSwitchingAnimationEnd:_,hasFocus:ke,onFocusedDayChange:xe=>W({target:xe,reason:"cell-interaction"}),reduceAnimations:f,selectedDays:Me,onSelectedDaysChange:he,shouldDisableDate:b,shouldDisableMonth:C,shouldDisableYear:w,onFocusedViewChange:xe=>ue("day",xe),showDaysOutsideCurrentMonth:T,fixedWeekNumber:V,dayOfWeekFormatter:G,displayWeekNumber:te,loading:z,renderLoading:ne}))]})})]}))}),In=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:s,defaultValue:a,referenceDate:i,onChange:l,className:c,classes:d,disableFuture:m,disablePast:y,minDate:g,maxDate:h,shouldDisableDate:v,shouldDisableMonth:f,shouldDisableYear:b,reduceAnimations:C,onMonthChange:w,monthsPerRow:x,onYearChange:P,yearsOrder:k,yearsPerRow:S,slots:R,slotProps:E,loading:F,renderLoading:L,disableHighlightToday:M,readOnly:$,disabled:N,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:T,sx:V,autoFocus:G,fixedWeekNumber:A,displayWeekNumber:Z,timezone:z})=>u.jsx(eS,{view:e,onViewChange:t,views:n.filter(Ca),focusedView:o&&Ca(o)?o:null,onFocusedViewChange:r,value:s,defaultValue:a,referenceDate:i,onChange:l,className:c,classes:d,disableFuture:m,disablePast:y,minDate:g,maxDate:h,shouldDisableDate:v,shouldDisableMonth:f,shouldDisableYear:b,reduceAnimations:C,onMonthChange:w,monthsPerRow:x,onYearChange:P,yearsOrder:k,yearsPerRow:S,slots:R,slotProps:E,loading:F,renderLoading:L,disableHighlightToday:M,readOnly:$,disabled:N,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:T,sx:V,autoFocus:G,fixedWeekNumber:A,displayWeekNumber:Z,timezone:z}),Xc=p.forwardRef(function(t,n){const o=Te(),r=Bl(t,"MuiDesktopDatePicker"),s=O({day:In,month:In,year:In},r.viewRenderers),a=O({},r,{closeOnSelect:r.closeOnSelect??!0,viewRenderers:s,format:ms(o,r,!1),yearsPerRow:r.yearsPerRow??4,slots:O({field:zc},r.slots),slotProps:O({},r.slotProps,{field:l=>O({},ln(r.slotProps?.field,l),ar(r)),toolbar:O({hidden:!0},r.slotProps?.toolbar)})}),{renderPicker:i}=Nc({ref:n,props:a,valueManager:et,valueType:"date",validator:So,steps:null});return i()});Xc.propTypes={autoFocus:D.bool,className:D.string,closeOnSelect:D.bool,dayOfWeekFormatter:D.func,defaultValue:D.object,disabled:D.bool,disableFuture:D.bool,disableHighlightToday:D.bool,disableOpenPicker:D.bool,disablePast:D.bool,displayWeekNumber:D.bool,enableAccessibleFieldDOMStructure:D.any,fixedWeekNumber:D.number,format:D.string,formatDensity:D.oneOf(["dense","spacious"]),inputRef:rr,label:D.node,loading:D.bool,localeText:D.object,maxDate:D.object,minDate:D.object,monthsPerRow:D.oneOf([3,4]),name:D.string,onAccept:D.func,onChange:D.func,onClose:D.func,onError:D.func,onMonthChange:D.func,onOpen:D.func,onSelectedSectionsChange:D.func,onViewChange:D.func,onYearChange:D.func,open:D.bool,openTo:D.oneOf(["day","month","year"]),orientation:D.oneOf(["landscape","portrait"]),readOnly:D.bool,reduceAnimations:D.bool,referenceDate:D.object,renderLoading:D.func,selectedSections:D.oneOfType([D.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),D.number]),shouldDisableDate:D.func,shouldDisableMonth:D.func,shouldDisableYear:D.func,showDaysOutsideCurrentMonth:D.bool,slotProps:D.object,slots:D.object,sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object]),timezone:D.string,value:D.object,view:D.oneOf(["day","month","year"]),viewRenderers:D.shape({day:D.func,month:D.func,year:D.func}),views:D.arrayOf(D.oneOf(["day","month","year"]).isRequired),yearsOrder:D.oneOf(["asc","desc"]),yearsPerRow:D.oneOf([3,4])};function tS(e){return Re("MuiDialogContent",e)}Se("MuiDialogContent",["root","dividers"]);const nS=Se("MuiDialogTitle",["root"]),oS=e=>{const{classes:t,dividers:n}=e;return Ee({root:["root",n&&"dividers"]},tS,t)},rS=B("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Be(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${nS.root} + &`]:{paddingTop:0}}}]}))),sS=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialogContent"}),{className:r,dividers:s=!1,...a}=o,i={...o,dividers:s},l=oS(i);return u.jsx(rS,{className:ae(l.root,r),ownerState:i,ref:n,...a})});function aS(e){return Re("MuiDialog",e)}const ao=Se("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),iS=p.createContext({}),lS=B(mc,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),cS=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:s}=e,a={root:["root"],container:["container",`scroll${le(n)}`],paper:["paper",`paperScroll${le(n)}`,`paperWidth${le(String(o))}`,r&&"paperFullWidth",s&&"paperFullScreen"]};return Ee(a,aS,t)},uS=B(hc,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),dS=B("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${le(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),pS=B(lr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${le(n.scroll)}`],t[`paperWidth${le(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Be(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ao.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${ao.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ao.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),fS=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialog"}),r=zn(),s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":i,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:d,children:m,className:y,disableEscapeKeyDown:g=!1,fullScreen:h=!1,fullWidth:v=!1,maxWidth:f="sm",onBackdropClick:b,onClick:C,onClose:w,open:x,PaperComponent:P=lr,PaperProps:k={},scroll:S="paper",slots:R={},slotProps:E={},TransitionComponent:F=un,transitionDuration:L=s,TransitionProps:M,...$}=o,N={...o,disableEscapeKeyDown:g,fullScreen:h,fullWidth:v,maxWidth:f,scroll:S},I=cS(N),T=p.useRef(),V=K=>{T.current=K.target===K.currentTarget},G=K=>{C&&C(K),T.current&&(T.current=null,b&&b(K),w&&w(K,"backdropClick"))},A=yo(i),Z=p.useMemo(()=>({titleId:A}),[A]),z={transition:F,...R},ne={transition:M,paper:k,backdrop:d,...E},te={slots:z,slotProps:ne},[se,U]=Xe("root",{elementType:uS,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:N,className:ae(I.root,y),ref:n}),[oe,ce]=Xe("backdrop",{elementType:lS,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:N}),[fe,re]=Xe("paper",{elementType:pS,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:N,className:ae(I.paper,k.className)}),[Q,H]=Xe("container",{elementType:dS,externalForwardedProps:te,ownerState:N,className:ae(I.container)}),[q,X]=Xe("transition",{elementType:un,externalForwardedProps:te,ownerState:N,additionalProps:{appear:!0,in:x,timeout:L,role:"presentation"}});return u.jsx(se,{closeAfterTransition:!0,slots:{backdrop:oe},slotProps:{backdrop:{transitionDuration:L,as:c,...ce}},disableEscapeKeyDown:g,onClose:w,open:x,onClick:G,...U,...$,children:u.jsx(q,{...X,children:u.jsx(Q,{onMouseDown:V,...H,children:u.jsx(fe,{as:P,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":A,"aria-modal":l,...re,children:u.jsx(iS.Provider,{value:Z,children:m})})})})})}),mS=B(fS)({[`& .${ao.container}`]:{outline:0},[`& .${ao.paper}`]:{outline:0,minWidth:dr}}),hS=B(sS)({"&:first-of-type":{padding:0}});function gS(e){const{children:t,slots:n,slotProps:o}=e,{open:r}=pn(),{dismissViews:s,onPopperExited:a}=We(),i=n?.dialog??mS,l=n?.mobileTransition??un;return u.jsx(i,O({open:r,onClose:()=>{s(),a?.()}},o?.dialog,{TransitionComponent:l,TransitionProps:o?.mobileTransition,PaperComponent:n?.mobilePaper,PaperProps:o?.mobilePaper,children:u.jsx(hS,{children:t})}))}const bS=["props","steps"],yS=["ownerState"],Zc=e=>{let{props:t,steps:n}=e,o=me(e,bS);const{slots:r,slotProps:s,label:a,inputRef:i,localeText:l}=t,c=Fc({steps:n}),{providerProps:d,renderCurrentView:m,ownerState:y}=nc(O({},o,{props:t,localeText:l,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:c})),g=d.privateContextValue.labelId,h=s?.toolbar?.hidden??!1,v=r.field,f=Ae({elementType:v,externalSlotProps:s?.field,additionalProps:O({},h&&{id:g}),ownerState:y}),b=me(f,yS),C=r.layout??cc;let w=g;h&&(a?w=`${g}-label`:w=void 0);const x=O({},s,{toolbar:O({},s?.toolbar,{titleId:g}),mobilePaper:O({"aria-labelledby":w},s?.mobilePaper)});return{renderPicker:()=>u.jsx(Nl,O({},d,{children:u.jsxs(Oc,{slots:r,slotProps:x,inputRef:i,children:[u.jsx(v,O({},b)),u.jsx(gS,{slots:r,slotProps:x,children:u.jsx(C,O({},x?.layout,{slots:r,slotProps:x,children:m()}))})]})}))}},Jc=p.forwardRef(function(t,n){const o=Te(),r=Bl(t,"MuiMobileDatePicker"),s=O({day:In,month:In,year:In},r.viewRenderers),a=O({},r,{viewRenderers:s,format:ms(o,r,!1),slots:O({field:zc},r.slots),slotProps:O({},r.slotProps,{field:l=>O({},ln(r.slotProps?.field,l),ar(r)),toolbar:O({hidden:!1},r.slotProps?.toolbar)})}),{renderPicker:i}=Zc({ref:n,props:a,valueManager:et,valueType:"date",validator:So,steps:null});return i()});Jc.propTypes={autoFocus:D.bool,className:D.string,closeOnSelect:D.bool,dayOfWeekFormatter:D.func,defaultValue:D.object,disabled:D.bool,disableFuture:D.bool,disableHighlightToday:D.bool,disableOpenPicker:D.bool,disablePast:D.bool,displayWeekNumber:D.bool,enableAccessibleFieldDOMStructure:D.any,fixedWeekNumber:D.number,format:D.string,formatDensity:D.oneOf(["dense","spacious"]),inputRef:rr,label:D.node,loading:D.bool,localeText:D.object,maxDate:D.object,minDate:D.object,monthsPerRow:D.oneOf([3,4]),name:D.string,onAccept:D.func,onChange:D.func,onClose:D.func,onError:D.func,onMonthChange:D.func,onOpen:D.func,onSelectedSectionsChange:D.func,onViewChange:D.func,onYearChange:D.func,open:D.bool,openTo:D.oneOf(["day","month","year"]),orientation:D.oneOf(["landscape","portrait"]),readOnly:D.bool,reduceAnimations:D.bool,referenceDate:D.object,renderLoading:D.func,selectedSections:D.oneOfType([D.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),D.number]),shouldDisableDate:D.func,shouldDisableMonth:D.func,shouldDisableYear:D.func,showDaysOutsideCurrentMonth:D.bool,slotProps:D.object,slots:D.object,sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object]),timezone:D.string,value:D.object,view:D.oneOf(["day","month","year"]),viewRenderers:D.shape({day:D.func,month:D.func,year:D.func}),views:D.arrayOf(D.oneOf(["day","month","year"]).isRequired),yearsOrder:D.oneOf(["asc","desc"]),yearsPerRow:D.oneOf([3,4])};const vS=["desktopModeMediaQuery"],xS=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=Jl}=o,s=me(o,vS);return us(r,{defaultMatches:!0})?u.jsx(Xc,O({ref:n},s)):u.jsx(Jc,O({ref:n},s))}),wS=e=>{const t=kw(e);return Vc({manager:t,props:e})},CS=["slots","slotProps","InputProps","inputProps"],eu=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiTimeField"}),{slots:r,slotProps:s}=o,a=me(o,CS),i=Ec({slotProps:s,ref:n,externalForwardedProps:a}),l=wS(i);return u.jsx(Rc,{slots:r,slotProps:s,fieldResponse:l,defaultOpenPickerIcon:gx})});function SS(e){return Ve("MuiPickersToolbarText",e)}ze("MuiPickersToolbarText",["root"]);const PS=["className","classes","selected","value"],kS=e=>Oe({root:["root"]},SS,e),MS=B(zt,{name:"MuiPickersToolbarText",slot:"Root"})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),tu=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiPickersToolbarText"}),{className:r,classes:s,selected:a,value:i}=o,l=me(o,PS),c=kS(s);return u.jsx(MS,O({ref:n,className:ae(c.root,r),component:"span",ownerState:o},a&&{"data-selected":!0},l,{children:i}))}),DS=["align","className","classes","selected","typographyClassName","value","variant","width"],TS=e=>Oe({root:["root"]},Dl,e),IS=B(Ut,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),Xn=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiPickersToolbarButton"}),{align:r,className:s,classes:a,selected:i,typographyClassName:l,value:c,variant:d,width:m}=o,y=me(o,DS),g=TS(a);return u.jsx(IS,O({variant:"text",ref:n,className:ae(g.root,s),ownerState:o},m?{sx:{width:m}}:{},y,{children:u.jsx(tu,{align:r,className:l,variant:d,value:c,selected:i})}))});function RS(e){return Ve("MuiTimePickerToolbar",e)}const io=ze("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),ES=["ampm","ampmInClock","className","classes"],OS=(e,t)=>{const{pickerOrientation:n,toolbarDirection:o}=t;return Oe({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n==="landscape"&&"hourMinuteLabelLandscape",o==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},RS,e)},FS=B(Al,{name:"MuiTimePickerToolbar",slot:"Root"})({}),NS=B(tu,{name:"MuiTimePickerToolbar",slot:"Separator"})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),AS=B("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${io.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${io.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{pickerOrientation:"landscape"},style:{marginTop:"auto"}}]}),$S=B("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${io.ampmLabel}`]:t.ampmLabel},{[`&.${io.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${io.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function LS(e){const t=De({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:o,className:r,classes:s}=t,a=me(t,ES),i=Te(),l=lt(),c=vs(),d=OS(s,c),{value:m,setValue:y,disabled:g,readOnly:h,view:v,setView:f,views:b}=pn(),C=!!(n&&!o&&b.includes("hours")),{meridiemMode:w,handleMeridiemChange:x}=zs(m,n,S=>y(S,{changeImportance:"set"})),P=S=>i.isValid(m)?i.format(m,S):"--",k=u.jsx(NS,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:d.separator});return u.jsxs(FS,O({landscapeDirection:"row",toolbarTitle:l.timePickerToolbarTitle,ownerState:c,className:ae(d.root,r)},a,{children:[u.jsxs(AS,{className:d.hourMinuteLabel,ownerState:c,children:[Cn(b,"hours")&&u.jsx(Xn,{tabIndex:-1,variant:"h3",onClick:()=>f("hours"),selected:v==="hours",value:P(n?"hours12h":"hours24h")}),Cn(b,["hours","minutes"])&&k,Cn(b,"minutes")&&u.jsx(Xn,{tabIndex:-1,variant:"h3",onClick:()=>f("minutes"),selected:v==="minutes",value:P("minutes")}),Cn(b,["minutes","seconds"])&&k,Cn(b,"seconds")&&u.jsx(Xn,{variant:"h3",onClick:()=>f("seconds"),selected:v==="seconds",value:P("seconds")})]}),C&&u.jsxs($S,{className:d.ampmSelection,ownerState:c,children:[u.jsx(Xn,{disableRipple:!0,variant:"subtitle2",selected:w==="am",typographyClassName:d.ampmLabel,value:Yt(i,"am"),onClick:h?void 0:()=>x("am"),disabled:g}),u.jsx(Xn,{disableRipple:!0,variant:"subtitle2",selected:w==="pm",typographyClassName:d.ampmLabel,value:Yt(i,"pm"),onClick:h?void 0:()=>x("pm"),disabled:g})]})]}))}function nu(e,t){const n=Te(),o=De({props:e,name:t}),r=Bc(o),s=o.ampm??n.is12HourCycleInCurrentLocale(),a=p.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:O({},o.localeText,{timePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return O({},o,r,{ampm:s,localeText:a},vl({views:o.views,openTo:o.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{slots:O({toolbar:LS},o.slots),slotProps:O({},o.slotProps,{toolbar:O({ampm:s,ampmInClock:o.ampmInClock},o.slotProps?.toolbar)})})}function jS(e){return Ve("MuiTimeClock",e)}ze("MuiTimeClock",["root","arrowSwitcher"]);const Bn=220,jt=36,ho={x:Bn/2,y:Bn/2},ou={x:ho.x,y:0},VS=ou.x-ho.x,BS=ou.y-ho.y,zS=e=>e*(180/Math.PI),ru=(e,t,n)=>{const o=t-ho.x,r=n-ho.y,s=Math.atan2(VS,BS)-Math.atan2(o,r);let a=zS(s);a=Math.round(a/e)*e,a%=360;const i=Math.floor(a/e)||0,l=o**2+r**2,c=Math.sqrt(l);return{value:i,distance:c}},HS=(e,t,n=1)=>{const o=n*6;let{value:r}=ru(o,e,t);return r=r*n%60,r},WS=(e,t,n)=>{const{value:o,distance:r}=ru(30,e,t);let s=o||12;return n?s%=12:r<Bn/2-jt&&(s+=12,s%=24),s};function _S(e){return Ve("MuiClockPointer",e)}ze("MuiClockPointer",["root","thumb"]);const US=["className","classes","isBetweenTwoClockValues","isInner","type","viewValue"],YS=e=>Oe({root:["root"],thumb:["thumb"]},_S,e),qS=B("div",{name:"MuiClockPointer",slot:"Root"})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{isClockPointerAnimated:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),KS=B("div",{name:"MuiClockPointer",slot:"Thumb"})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${jt/2}px)`,border:`${(jt-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{isClockPointerBetweenTwoValues:!1},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function GS(e){const t=De({props:e,name:"MuiClockPointer"}),{className:n,classes:o,isBetweenTwoClockValues:r,isInner:s,type:a,viewValue:i}=t,l=me(t,US),c=p.useRef(a);p.useEffect(()=>{c.current=a},[a]);const{ownerState:d}=We(),m=O({},d,{isClockPointerAnimated:c.current!==a,isClockPointerBetweenTwoValues:r}),y=YS(o),g=()=>{let v=360/(a==="hours"?12:60)*i;return a==="hours"&&i>12&&(v-=360),{height:Math.round((s?.26:.4)*Bn),transform:`rotateZ(${v}deg)`}};return u.jsx(qS,O({style:g(),className:ae(y.root,n),ownerState:m},l,{children:u.jsx(KS,{ownerState:m,className:y.thumb})}))}function QS(e){return Ve("MuiClock",e)}ze("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const XS=(e,t)=>{const n={root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",t.clockMeridiemMode==="am"&&"selected"],pmButton:["pmButton",t.clockMeridiemMode==="pm"&&"selected"],meridiemText:["meridiemText"]};return Oe(n,QS,e)},ZS=B("div",{name:"MuiClock",slot:"Root"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),JS=B("div",{name:"MuiClock",slot:"Clock"})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),eP=B("div",{name:"MuiClock",slot:"Wrapper"})({"&:focus":{outline:"none"}}),tP=B("div",{name:"MuiClock",slot:"SquareMask"})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{isClockDisabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),nP=B("div",{name:"MuiClock",slot:"Pin"})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),su=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:jt,variants:[{props:{clockMeridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),oP=B(Vn,{name:"MuiClock",slot:"AmButton"})(({theme:e})=>O({},su(e,"am"),{position:"absolute",left:8})),rP=B(Vn,{name:"MuiClock",slot:"PmButton"})(({theme:e})=>O({},su(e,"pm"),{position:"absolute",right:8})),gi=B(zt,{name:"MuiClock",slot:"MeridiemText"})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function sP(e){const t=De({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:o,autoFocus:r,children:s,value:a,handleMeridiemChange:i,isTimeDisabled:l,meridiemMode:c,minutesStep:d=1,onChange:m,selectedId:y,type:g,viewValue:h,viewRange:[v,f],disabled:b=!1,readOnly:C,className:w,classes:x}=t,P=Te(),k=lt(),{ownerState:S}=We(),R=O({},S,{isClockDisabled:b,clockMeridiemMode:c}),E=p.useRef(!1),F=XS(x,R),L=l(h,g),M=!n&&g==="hours"&&(h<1||h>12),$=(U,oe)=>{b||C||l(U,g)||m(U,oe)},N=(U,oe)=>{let{offsetX:ce,offsetY:fe}=U;if(ce===void 0){const Q=U.target.getBoundingClientRect();ce=U.changedTouches[0].clientX-Q.left,fe=U.changedTouches[0].clientY-Q.top}const re=g==="seconds"||g==="minutes"?HS(ce,fe,d):WS(ce,fe,!!n);$(re,oe)},I=U=>{E.current=!0,N(U,"shallow")},T=U=>{E.current&&(N(U,"finish"),E.current=!1),U.preventDefault()},V=U=>{U.buttons>0&&N(U.nativeEvent,"shallow")},G=U=>{E.current&&(E.current=!1),N(U.nativeEvent,"finish")},A=g==="hours"?!1:h%5!==0,Z=g==="minutes"?d:1,z=p.useRef(null);dt(()=>{r&&z.current.focus()},[r]);const ne=U=>Math.max(v,Math.min(f,U)),te=U=>(U+(f+1))%(f+1),se=U=>{if(!E.current)switch(U.key){case"Home":$(v,"partial"),U.preventDefault();break;case"End":$(f,"partial"),U.preventDefault();break;case"ArrowUp":$(te(h+Z),"partial"),U.preventDefault();break;case"ArrowDown":$(te(h-Z),"partial"),U.preventDefault();break;case"PageUp":$(ne(h+5),"partial"),U.preventDefault();break;case"PageDown":$(ne(h-5),"partial"),U.preventDefault();break;case"Enter":case" ":$(h,"finish"),U.preventDefault();break}};return u.jsxs(ZS,{className:ae(F.root,w),children:[u.jsxs(JS,{className:F.clock,children:[u.jsx(tP,{onTouchMove:I,onTouchStart:I,onTouchEnd:T,onMouseUp:G,onMouseMove:V,ownerState:R,className:F.squareMask}),!L&&u.jsxs(p.Fragment,{children:[u.jsx(nP,{className:F.pin}),a!=null&&u.jsx(GS,{type:g,viewValue:h,isInner:M,isBetweenTwoClockValues:A})]}),u.jsx(eP,{"aria-activedescendant":y,"aria-label":k.clockLabelText(g,a==null?null:P.format(a,n?"fullTime12h":"fullTime24h")),ref:z,role:"listbox",onKeyDown:se,tabIndex:0,className:F.wrapper,children:s})]}),n&&o&&u.jsxs(p.Fragment,{children:[u.jsx(oP,{onClick:C?void 0:()=>i("am"),disabled:b||c===null,ownerState:R,className:F.amButton,title:Yt(P,"am"),children:u.jsx(gi,{variant:"caption",className:F.meridiemText,children:Yt(P,"am")})}),u.jsx(rP,{disabled:b||c===null,onClick:C?void 0:()=>i("pm"),ownerState:R,className:F.pmButton,title:Yt(P,"pm"),children:u.jsx(gi,{variant:"caption",className:F.meridiemText,children:Yt(P,"pm")})})]})]})}function aP(e){return Ve("MuiClockNumber",e)}const $o=ze("MuiClockNumber",["root","selected","disabled"]),iP=["className","classes","disabled","index","inner","label","selected"],lP=(e,t)=>{const n={root:["root",t.isClockNumberSelected&&"selected",t.isClockNumberDisabled&&"disabled"]};return Oe(n,aP,e)},cP=B("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${$o.disabled}`]:t.disabled},{[`&.${$o.selected}`]:t.selected}]})(({theme:e})=>({height:jt,width:jt,position:"absolute",left:`calc((100% - ${jt}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${$o.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${$o.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{isClockNumberInInnerRing:!0},style:O({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function au(e){const t=De({props:e,name:"MuiClockNumber"}),{className:n,classes:o,disabled:r,index:s,inner:a,label:i,selected:l}=t,c=me(t,iP),{ownerState:d}=We(),m=O({},d,{isClockNumberInInnerRing:a,isClockNumberSelected:l,isClockNumberDisabled:r}),y=lP(o,m),g=s%12/12*Math.PI*2-Math.PI/2,h=(Bn-jt-2)/2*(a?.65:1),v=Math.round(Math.cos(g)*h),f=Math.round(Math.sin(g)*h);return u.jsx(cP,O({className:ae(y.root,n),"aria-disabled":r?!0:void 0,"aria-selected":l?!0:void 0,role:"option",style:{transform:`translate(${v}px, ${f+(Bn-jt)/2}px`},ownerState:m},c,{children:i}))}const uP=({ampm:e,value:t,getClockNumberText:n,isDisabled:o,selectedId:r,utils:s})=>{const a=t?s.getHours(t):null,i=[],l=e?1:0,c=e?12:23,d=m=>a===null?!1:e?m===12?a===12||a===0:a===m||a-12===m:a===m;for(let m=l;m<=c;m+=1){let y=m.toString();m===0&&(y="00");const g=!e&&(m===0||m>12);y=s.formatNumber(y);const h=d(m);i.push(u.jsx(au,{id:h?r:void 0,index:m,inner:g,selected:h,disabled:o(m),label:y,"aria-label":n(y)},m))}return i},bi=({utils:e,value:t,isDisabled:n,getClockNumberText:o,selectedId:r})=>{const s=e.formatNumber;return[[5,s("05")],[10,s("10")],[15,s("15")],[20,s("20")],[25,s("25")],[30,s("30")],[35,s("35")],[40,s("40")],[45,s("45")],[50,s("50")],[55,s("55")],[0,s("00")]].map(([a,i],l)=>{const c=a===t;return u.jsx(au,{label:i,id:c?r:void 0,index:l+1,inner:!1,disabled:n(a),selected:c,"aria-label":o(i)},a)})},Hs=({value:e,referenceDate:t,utils:n,props:o,timezone:r})=>{const s=p.useMemo(()=>et.getInitialReferenceValue({value:e,utils:n,props:o,referenceDate:t,granularity:kt.day,timezone:r,getTodayDate:()=>fs(n,r,"date")}),[]);return e??s},dP=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","timezone"],pP=e=>Oe({root:["root"],arrowSwitcher:["arrowSwitcher"]},jS,e),fP=B(vr,{name:"MuiTimeClock",slot:"Root"})({display:"flex",flexDirection:"column",position:"relative"}),mP=B(Qc,{name:"MuiTimeClock",slot:"ArrowSwitcher"})({position:"absolute",right:12,top:15}),hP=["hours","minutes"],gP=p.forwardRef(function(t,n){const o=Te(),r=De({props:t,name:"MuiTimeClock"}),{ampm:s=o.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:i,slots:l,slotProps:c,value:d,defaultValue:m,referenceDate:y,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:h,minTime:v,disableFuture:f,disablePast:b,minutesStep:C=1,shouldDisableTime:w,showViewSwitcher:x,onChange:P,view:k,views:S=hP,openTo:R,onViewChange:E,focusedView:F,onFocusedViewChange:L,className:M,classes:$,disabled:N,readOnly:I,timezone:T}=r,V=me(r,dP),{value:G,handleValueChange:A,timezone:Z}=Gt({name:"TimeClock",timezone:T,value:d,defaultValue:m,referenceDate:y,onChange:P,valueManager:et}),z=Hs({value:G,referenceDate:y,utils:o,props:r,timezone:Z}),ne=lt(),te=mn(Z),se=wo(),{ownerState:U}=We(),{view:oe,setView:ce,previousView:fe,nextView:re,setValueAndGoToNextView:Q}=Do({view:k,views:S,openTo:R,onViewChange:E,onChange:A,focusedView:F,onFocusedViewChange:L}),{meridiemMode:H,handleMeridiemChange:q}=zs(z,s,Q),X=p.useCallback((J,Y)=>{const ee=Co(g,o),ie=Y==="hours"||Y==="minutes"&&S.includes("seconds"),W=({start:_,end:ge})=>!(v&&ee(v,ge)||h&&ee(_,h)||f&&ee(_,te)||b&&ee(te,ie?ge:_)),j=(_,ge=1)=>{if(_%ge!==0)return!1;if(w)switch(Y){case"hours":return!w(o.setHours(z,_),"hours");case"minutes":return!w(o.setMinutes(z,_),"minutes");case"seconds":return!w(o.setSeconds(z,_),"seconds");default:return!1}return!0};switch(Y){case"hours":{const _=co(J,H,s),ge=o.setHours(z,_);if(o.getHours(ge)!==_)return!0;const ye=o.setSeconds(o.setMinutes(ge,0),0),Le=o.setSeconds(o.setMinutes(ge,59),59);return!W({start:ye,end:Le})||!j(_)}case"minutes":{const _=o.setMinutes(z,J),ge=o.setSeconds(_,0),ye=o.setSeconds(_,59);return!W({start:ge,end:ye})||!j(J,C)}case"seconds":{const _=o.setSeconds(z,J);return!W({start:_,end:_})||!j(J)}default:throw new Error("not supported")}},[s,z,g,h,H,v,C,w,o,f,b,te,S]),K=p.useMemo(()=>{switch(oe){case"hours":{const J=(ie,W)=>{const j=co(ie,H,s);Q(o.setHours(z,j),W,"hours")},Y=o.getHours(z);let ee;return s?Y>12?ee=[12,23]:ee=[0,11]:ee=[0,23],{onChange:J,viewValue:Y,children:uP({value:G,utils:o,ampm:s,getClockNumberText:ne.hoursClockNumberText,isDisabled:ie=>N||X(ie,"hours"),selectedId:se}),viewRange:ee}}case"minutes":{const J=o.getMinutes(z);return{viewValue:J,onChange:(ee,ie)=>{Q(o.setMinutes(z,ee),ie,"minutes")},children:bi({utils:o,value:J,getClockNumberText:ne.minutesClockNumberText,isDisabled:ee=>N||X(ee,"minutes"),selectedId:se}),viewRange:[0,59]}}case"seconds":{const J=o.getSeconds(z);return{viewValue:J,onChange:(ee,ie)=>{Q(o.setSeconds(z,ee),ie,"seconds")},children:bi({utils:o,value:J,getClockNumberText:ne.secondsClockNumberText,isDisabled:ee=>N||X(ee,"seconds"),selectedId:se}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}},[oe,o,G,s,ne.hoursClockNumberText,ne.minutesClockNumberText,ne.secondsClockNumberText,H,Q,z,X,se,N]),ue=pP($);return u.jsxs(fP,O({ref:n,className:ae(ue.root,M),ownerState:U},V,{children:[u.jsx(sP,O({autoFocus:i??!!F,ampmInClock:a&&S.includes("hours"),value:G,type:oe,ampm:s,minutesStep:C,isTimeDisabled:X,meridiemMode:H,handleMeridiemChange:q,selectedId:se,disabled:N,readOnly:I},K)),x&&u.jsx(mP,{className:ue.arrowSwitcher,slots:l,slotProps:c,onGoToPrevious:()=>ce(fe),isPreviousDisabled:!fe,previousLabel:ne.openPreviousView,onGoToNext:()=>ce(re),isNextDisabled:!re,nextLabel:ne.openNextView,ownerState:U})]}))}),yi=Se("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),vi=Se("MuiListItemIcon",["root","alignItemsFlexStart"]),xi=Se("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function bP(e){return Re("MuiMenuItem",e)}const Zn=Se("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),yP=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},vP=e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:s,classes:a}=e,l=Ee({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",s&&"selected"]},bP,a);return{...a,...l}},xP=B(Ln,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:yP})(Be(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Zn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ie(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ie(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Zn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ie(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ie(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Zn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Zn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${yi.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${yi.inset}`]:{marginLeft:52},[`& .${xi.root}`]:{marginTop:0,marginBottom:0},[`& .${xi.inset}`]:{paddingLeft:36},[`& .${vi.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${vi.root} svg`]:{fontSize:"1.25rem"}}}]}))),iu=p.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:s="li",dense:a=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:m,className:y,...g}=o,h=p.useContext(an),v=p.useMemo(()=>({dense:a||h.dense||!1,disableGutters:l}),[h.dense,a,l]),f=p.useRef(null);Dt(()=>{r&&f.current&&f.current.focus()},[r]);const b={...o,dense:v.dense,divider:i,disableGutters:l},C=vP(o),w=Ze(f,n);let x;return o.disabled||(x=m!==void 0?m:-1),u.jsx(an.Provider,{value:v,children:u.jsx(xP,{ref:w,role:d,tabIndex:x,component:s,focusVisibleClassName:ae(C.focusVisible,c),className:ae(C.root,y),...g,ownerState:b,classes:C})})});function wP(e){return Ve("MuiDigitalClock",e)}ze("MuiDigitalClock",["root","list","item"]);const CP=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","views","skipDisabled","timezone"],SP=e=>Oe({root:["root"],list:["list"],item:["item"]},wP,e),PP=B(vr,{name:"MuiDigitalClock",slot:"Root"})({overflowY:"auto",width:"100%",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:lc,variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),kP=B(Fs,{name:"MuiDigitalClock",slot:"List"})({padding:0}),MP=B(iu,{name:"MuiDigitalClock",slot:"Item",shouldForwardProp:e=>e!=="itemValue"&&e!=="formattedValue"})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ie(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ie(e.palette.primary.main,e.palette.action.focusOpacity)}})),DP=p.forwardRef(function(t,n){const o=Te(),r=p.useRef(null),s=ot(n,r),a=p.useRef(null),i=De({props:t,name:"MuiDigitalClock"}),{ampm:l=o.is12HourCycleInCurrentLocale(),timeStep:c=30,autoFocus:d,slots:m,slotProps:y,value:g,defaultValue:h,referenceDate:v,disableIgnoringDatePartForTimeValidation:f=!1,maxTime:b,minTime:C,disableFuture:w,disablePast:x,minutesStep:P=1,shouldDisableTime:k,onChange:S,view:R,openTo:E,onViewChange:F,focusedView:L,onFocusedViewChange:M,className:$,classes:N,disabled:I,readOnly:T,views:V=["hours"],skipDisabled:G=!1,timezone:A}=i,Z=me(i,CP),{value:z,handleValueChange:ne,timezone:te}=Gt({name:"DigitalClock",timezone:A,value:g,defaultValue:h,referenceDate:v,onChange:S,valueManager:et}),se=lt(),U=mn(te),{ownerState:oe}=We(),ce=O({},oe,{hasDigitalClockAlreadyBeenRendered:!!r.current}),fe=SP(N),re=m?.digitalClockItem??MP,Q=Ae({elementType:re,externalSlotProps:y?.digitalClockItem,ownerState:ce,className:fe.item}),H=Hs({value:z,referenceDate:v,utils:o,props:i,timezone:te}),q=de(ie=>ne(ie,"finish","hours")),{setValueAndGoToNextView:X}=Do({view:R,views:V,openTo:E,onViewChange:F,onChange:q,focusedView:L,onFocusedViewChange:M}),K=de(ie=>{X(ie,"finish")});dt(()=>{if(r.current===null)return;const ie=r.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!ie)return;const W=ie.offsetTop;(d||L)&&ie.focus(),r.current.scrollTop=W-4});const ue=p.useCallback(ie=>{const W=Co(f,o),j=()=>!(C&&W(C,ie)||b&&W(ie,b)||w&&W(ie,U)||x&&W(U,ie)),_=()=>o.getMinutes(ie)%P!==0?!1:k?!k(ie,"hours"):!0;return!j()||!_()},[f,o,C,b,w,U,x,P,k]),J=p.useMemo(()=>{const ie=[];let j=o.startOfDay(H);for(;o.isSameDay(H,j);)ie.push(j),j=o.addMinutes(j,c);return ie},[H,c,o]),Y=J.findIndex(ie=>o.isEqual(ie,H)),ee=ie=>{switch(ie.key){case"PageUp":{const W=Qo(a.current)-5,j=a.current.children,_=Math.max(0,W),ge=j[_];ge&&ge.focus(),ie.preventDefault();break}case"PageDown":{const W=Qo(a.current)+5,j=a.current.children,_=Math.min(j.length-1,W),ge=j[_];ge&&ge.focus(),ie.preventDefault();break}}};return u.jsx(PP,O({ref:s,className:ae(fe.root,$),ownerState:ce},Z,{children:u.jsx(kP,{ref:a,role:"listbox","aria-label":se.timePickerToolbarTitle,className:fe.list,onKeyDown:ee,children:J.map((ie,W)=>{const j=ue(ie);if(G&&j)return null;const _=o.isEqual(ie,z),ge=o.format(ie,l?"fullTime12h":"fullTime24h"),Le=Y===W||Y===-1&&W===0?0:-1;return u.jsx(re,O({onClick:()=>!T&&K(ie),selected:_,disabled:I||j,disableRipple:T,role:"option","aria-disabled":T,"aria-selected":_,tabIndex:Le,itemValue:ie,formattedValue:ge},Q,{children:ge}),`${ie.valueOf()}-${ge}`)})})}))});function TP(e){return Ve("MuiMultiSectionDigitalClock",e)}ze("MuiMultiSectionDigitalClock",["root"]);function IP(e){return Ve("MuiMultiSectionDigitalClockSection",e)}ze("MuiMultiSectionDigitalClockSection",["root","item"]);const RP=["autoFocus","onChange","className","classes","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],EP=e=>Oe({root:["root"],item:["item"]},IP,e),OP=B(Fs,{name:"MuiMultiSectionDigitalClockSection",slot:"Root"})(({theme:e})=>({maxHeight:lc,width:56,padding:0,overflow:"hidden",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),FP=B(iu,{name:"MuiMultiSectionDigitalClockSection",slot:"Item"})(({theme:e})=>({padding:8,margin:"2px 4px",width:hy,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ie(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ie(e.palette.primary.main,e.palette.action.focusOpacity)}})),NP=p.forwardRef(function(t,n){const o=p.useRef(null),r=ot(n,o),s=p.useRef(null),a=De({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:i,onChange:l,className:c,classes:d,disabled:m,readOnly:y,items:g,active:h,slots:v,slotProps:f,skipDisabled:b}=a,C=me(a,RP),{ownerState:w}=We(),x=O({},w,{hasDigitalClockAlreadyBeenRendered:!!o.current}),P=EP(d),k=v?.digitalClockSectionItem??FP;dt(()=>{if(o.current===null)return;const E=o.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(h&&i&&E&&E.focus(),!E||s.current===E)return;s.current=E;const F=E.offsetTop;o.current.scrollTop=F-4});const S=g.findIndex(E=>E.isFocused(E.value)),R=E=>{switch(E.key){case"PageUp":{const F=Qo(o.current)-5,L=o.current.children,M=Math.max(0,F),$=L[M];$&&$.focus(),E.preventDefault();break}case"PageDown":{const F=Qo(o.current)+5,L=o.current.children,M=Math.min(L.length-1,F),$=L[M];$&&$.focus(),E.preventDefault();break}}};return u.jsx(OP,O({ref:r,className:ae(P.root,c),ownerState:x,autoFocusItem:i&&h,role:"listbox",onKeyDown:R},C,{children:g.map((E,F)=>{const L=E.isDisabled?.(E.value),M=m||L;if(b&&M)return null;const $=E.isSelected(E.value),N=S===F||S===-1&&F===0?0:-1;return u.jsx(k,O({onClick:()=>!y&&l(E.value),selected:$,disabled:M,disableRipple:y,role:"option","aria-disabled":y||M||void 0,"aria-label":E.ariaLabel,"aria-selected":$,tabIndex:N,className:P.item},f?.digitalClockSectionItem,{children:E.label}),E.label)})}))}),AP=({now:e,value:t,utils:n,ampm:o,isDisabled:r,resolveAriaLabel:s,timeStep:a,valueOrReferenceDate:i})=>{const l=t?n.getHours(t):null,c=[],d=(g,h)=>{const v=h??l;return v===null?!1:o?g===12?v===12||v===0:v===g||v-12===g:v===g},m=g=>d(g,n.getHours(i)),y=o?11:23;for(let g=0;g<=y;g+=a){let h=n.format(n.setHours(e,g),o?"hours12h":"hours24h");const v=s(parseInt(h,10).toString());h=n.formatNumber(h),c.push({value:g,label:h,isSelected:d,isDisabled:r,isFocused:m,ariaLabel:v})}return c},wi=({value:e,utils:t,isDisabled:n,timeStep:o,resolveLabel:r,resolveAriaLabel:s,hasValue:a=!0})=>{const i=c=>e===null?!1:a&&e===c,l=c=>e===c;return[...Array.from({length:Math.ceil(60/o)},(c,d)=>{const m=o*d;return{value:m,label:t.formatNumber(r(m)),isDisabled:n,isSelected:i,isFocused:l,ariaLabel:s(m.toString())}})]},$P=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","skipDisabled","timezone"],LP=e=>Oe({root:["root"]},TP,e),jP=B(vr,{name:"MuiMultiSectionDigitalClock",slot:"Root"})(({theme:e})=>({flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),VP=p.forwardRef(function(t,n){const o=Te(),r=wt(),s=De({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=o.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:l,slots:c,slotProps:d,value:m,defaultValue:y,referenceDate:g,disableIgnoringDatePartForTimeValidation:h=!1,maxTime:v,minTime:f,disableFuture:b,disablePast:C,minutesStep:w=1,shouldDisableTime:x,onChange:P,view:k,views:S=["hours","minutes"],openTo:R,onViewChange:E,focusedView:F,onFocusedViewChange:L,className:M,classes:$,disabled:N,readOnly:I,skipDisabled:T=!1,timezone:V}=s,G=me(s,$P),{value:A,handleValueChange:Z,timezone:z}=Gt({name:"MultiSectionDigitalClock",timezone:V,value:m,defaultValue:y,referenceDate:g,onChange:P,valueManager:et}),ne=lt(),te=mn(z),se=p.useMemo(()=>O({hours:1,minutes:5,seconds:5},i),[i]),U=Hs({value:A,referenceDate:g,utils:o,props:s,timezone:z}),oe=de((W,j,_)=>Z(W,j,_)),ce=p.useMemo(()=>!a||!S.includes("hours")||S.includes("meridiem")?S:[...S,"meridiem"],[a,S]),{view:fe,setValueAndGoToNextView:re,focusedView:Q}=Do({view:k,views:ce,openTo:R,onViewChange:E,onChange:oe,focusedView:F,onFocusedViewChange:L}),H=de(W=>{re(W,"finish","meridiem")}),{meridiemMode:q,handleMeridiemChange:X}=zs(U,a,H,"finish"),K=p.useCallback((W,j)=>{const _=Co(h,o),ge=j==="hours"||j==="minutes"&&ce.includes("seconds"),ye=({start:ke,end:He})=>!(f&&_(f,He)||v&&_(ke,v)||b&&_(ke,te)||C&&_(te,ge?He:ke)),Le=(ke,He=1)=>{if(ke%He!==0)return!1;if(x)switch(j){case"hours":return!x(o.setHours(U,ke),"hours");case"minutes":return!x(o.setMinutes(U,ke),"minutes");case"seconds":return!x(o.setSeconds(U,ke),"seconds");default:return!1}return!0};switch(j){case"hours":{const ke=co(W,q,a),He=o.setHours(U,ke);if(o.getHours(He)!==ke)return!0;const qe=o.setSeconds(o.setMinutes(He,0),0),be=o.setSeconds(o.setMinutes(He,59),59);return!ye({start:qe,end:be})||!Le(ke)}case"minutes":{const ke=o.setMinutes(U,W),He=o.setSeconds(ke,0),qe=o.setSeconds(ke,59);return!ye({start:He,end:qe})||!Le(W,w)}case"seconds":{const ke=o.setSeconds(U,W);return!ye({start:ke,end:ke})||!Le(W)}default:throw new Error("not supported")}},[a,U,h,v,q,f,w,x,o,b,C,te,ce]),ue=p.useCallback(W=>{switch(W){case"hours":return{onChange:j=>{const _=co(j,q,a);re(o.setHours(U,_),"finish","hours")},items:AP({now:te,value:A,ampm:a,utils:o,isDisabled:j=>K(j,"hours"),timeStep:se.hours,resolveAriaLabel:ne.hoursClockNumberText,valueOrReferenceDate:U})};case"minutes":return{onChange:j=>{re(o.setMinutes(U,j),"finish","minutes")},items:wi({value:o.getMinutes(U),utils:o,isDisabled:j=>K(j,"minutes"),resolveLabel:j=>o.format(o.setMinutes(te,j),"minutes"),timeStep:se.minutes,hasValue:!!A,resolveAriaLabel:ne.minutesClockNumberText})};case"seconds":return{onChange:j=>{re(o.setSeconds(U,j),"finish","seconds")},items:wi({value:o.getSeconds(U),utils:o,isDisabled:j=>K(j,"seconds"),resolveLabel:j=>o.format(o.setSeconds(te,j),"seconds"),timeStep:se.seconds,hasValue:!!A,resolveAriaLabel:ne.secondsClockNumberText})};case"meridiem":{const j=Yt(o,"am"),_=Yt(o,"pm");return{onChange:X,items:[{value:"am",label:j,isSelected:()=>!!A&&q==="am",isFocused:()=>!!U&&q==="am",ariaLabel:j},{value:"pm",label:_,isSelected:()=>!!A&&q==="pm",isFocused:()=>!!U&&q==="pm",ariaLabel:_}]}}default:throw new Error(`Unknown view: ${W} found.`)}},[te,A,a,o,se.hours,se.minutes,se.seconds,ne.hoursClockNumberText,ne.minutesClockNumberText,ne.secondsClockNumberText,q,re,U,K,X]),J=p.useMemo(()=>{if(!r)return ce;const W=ce.filter(j=>j!=="meridiem");return W.reverse(),ce.includes("meridiem")&&W.push("meridiem"),W},[r,ce]),Y=p.useMemo(()=>ce.reduce((W,j)=>O({},W,{[j]:ue(j)}),{}),[ce,ue]),{ownerState:ee}=We(),ie=LP($);return u.jsx(jP,O({ref:n,className:ae(ie.root,M),ownerState:ee,role:"group"},G,{children:J.map(W=>u.jsx(NP,{items:Y[W].items,onChange:Y[W].onChange,active:fe===W,autoFocus:l||Q===W,disabled:N,readOnly:I,slots:c,slotProps:d,skipDisabled:T,"aria-label":ne.selectViewText(W)},W))}))}),Dr=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:r,value:s,defaultValue:a,referenceDate:i,onChange:l,className:c,classes:d,disableFuture:m,disablePast:y,minTime:g,maxTime:h,shouldDisableTime:v,minutesStep:f,ampm:b,ampmInClock:C,slots:w,slotProps:x,readOnly:P,disabled:k,sx:S,autoFocus:R,showViewSwitcher:E,disableIgnoringDatePartForTimeValidation:F,timezone:L})=>u.jsx(gP,{view:e,onViewChange:t,focusedView:n&&On(n)?n:null,onFocusedViewChange:o,views:r.filter(On),value:s,defaultValue:a,referenceDate:i,onChange:l,className:c,classes:d,disableFuture:m,disablePast:y,minTime:g,maxTime:h,shouldDisableTime:v,minutesStep:f,ampm:b,ampmInClock:C,slots:w,slotProps:x,readOnly:P,disabled:k,sx:S,autoFocus:R,showViewSwitcher:E,disableIgnoringDatePartForTimeValidation:F,timezone:L}),BP=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:r,value:s,defaultValue:a,referenceDate:i,onChange:l,className:c,classes:d,disableFuture:m,disablePast:y,minTime:g,maxTime:h,shouldDisableTime:v,minutesStep:f,ampm:b,slots:C,slotProps:w,readOnly:x,disabled:P,sx:k,autoFocus:S,disableIgnoringDatePartForTimeValidation:R,timeSteps:E,skipDisabled:F,timezone:L})=>u.jsx(DP,{view:e,onViewChange:t,focusedView:n&&On(n)?n:null,onFocusedViewChange:o,views:r.filter(On),value:s,defaultValue:a,referenceDate:i,onChange:l,className:c,classes:d,disableFuture:m,disablePast:y,minTime:g,maxTime:h,shouldDisableTime:v,minutesStep:f,ampm:b,slots:C,slotProps:w,readOnly:x,disabled:P,sx:k,autoFocus:S,disableIgnoringDatePartForTimeValidation:R,timeStep:E?.minutes,skipDisabled:F,timezone:L}),Ci=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:r,value:s,defaultValue:a,referenceDate:i,onChange:l,className:c,classes:d,disableFuture:m,disablePast:y,minTime:g,maxTime:h,shouldDisableTime:v,minutesStep:f,ampm:b,slots:C,slotProps:w,readOnly:x,disabled:P,sx:k,autoFocus:S,disableIgnoringDatePartForTimeValidation:R,timeSteps:E,skipDisabled:F,timezone:L})=>u.jsx(VP,{view:e,onViewChange:t,focusedView:n&&xl(n)?n:null,onFocusedViewChange:o,views:r.filter(On),value:s,defaultValue:a,referenceDate:i,onChange:l,className:c,classes:d,disableFuture:m,disablePast:y,minTime:g,maxTime:h,shouldDisableTime:v,minutesStep:f,ampm:b,slots:C,slotProps:w,readOnly:x,disabled:P,sx:k,autoFocus:S,disableIgnoringDatePartForTimeValidation:R,timeSteps:E,skipDisabled:F,timezone:L}),zP=(e,t,n)=>n?t.filter(o=>!xl(o)||o==="hours"):e?[...t,"meridiem"]:t,HP=(e,t)=>24*60/((e.hours??1)*(e.minutes??5))<=t;function WP({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:o}){const r=e??24,s=O({hours:1,minutes:5,seconds:5},n),a=HP(s,r);return{thresholdToRenderTimeInASingleColumn:r,timeSteps:s,shouldRenderTimeInASingleColumn:a,views:zP(t,o,a)}}const lu=p.forwardRef(function(t,n){const o=Te(),r=nu(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:s,views:a,timeSteps:i}=WP(r),l=s?BP:Ci,c=O({hours:l,minutes:l,seconds:l,meridiem:l},r.viewRenderers),d=r.ampmInClock??!0,y=c.hours?.name===Ci.name?a:a.filter(v=>v!=="meridiem"),g=O({},r,{ampmInClock:d,timeSteps:i,viewRenderers:c,format:wl(o,r),views:s?["hours"]:y,slots:O({field:eu},r.slots),slotProps:O({},r.slotProps,{field:v=>O({},ln(r.slotProps?.field,v),ar(r)),toolbar:O({hidden:!0,ampmInClock:d},r.slotProps?.toolbar)})}),{renderPicker:h}=Nc({ref:n,props:g,valueManager:et,valueType:"time",validator:ir,steps:null});return h()});lu.propTypes={ampm:D.bool,ampmInClock:D.bool,autoFocus:D.bool,className:D.string,closeOnSelect:D.bool,defaultValue:D.object,disabled:D.bool,disableFuture:D.bool,disableIgnoringDatePartForTimeValidation:D.bool,disableOpenPicker:D.bool,disablePast:D.bool,enableAccessibleFieldDOMStructure:D.any,format:D.string,formatDensity:D.oneOf(["dense","spacious"]),inputRef:rr,label:D.node,localeText:D.object,maxTime:D.object,minTime:D.object,minutesStep:D.number,name:D.string,onAccept:D.func,onChange:D.func,onClose:D.func,onError:D.func,onOpen:D.func,onSelectedSectionsChange:D.func,onViewChange:D.func,open:D.bool,openTo:D.oneOf(["hours","meridiem","minutes","seconds"]),orientation:D.oneOf(["landscape","portrait"]),readOnly:D.bool,reduceAnimations:D.bool,referenceDate:D.object,selectedSections:D.oneOfType([D.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),D.number]),shouldDisableTime:D.func,skipDisabled:D.bool,slotProps:D.object,slots:D.object,sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object]),thresholdToRenderTimeInASingleColumn:D.number,timeSteps:D.shape({hours:D.number,minutes:D.number,seconds:D.number}),timezone:D.string,value:D.object,view:D.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:D.shape({hours:D.func,meridiem:D.func,minutes:D.func,seconds:D.func}),views:D.arrayOf(D.oneOf(["hours","minutes","seconds"]).isRequired)};const cu=p.forwardRef(function(t,n){const o=Te(),r=nu(t,"MuiMobileTimePicker"),s=O({hours:Dr,minutes:Dr,seconds:Dr},r.viewRenderers),a=r.ampmInClock??!1,i=O({},r,{ampmInClock:a,viewRenderers:s,format:wl(o,r),slots:O({field:eu},r.slots),slotProps:O({},r.slotProps,{field:c=>O({},ln(r.slotProps?.field,c),ar(r)),toolbar:O({hidden:!1,ampmInClock:a},r.slotProps?.toolbar)})}),{renderPicker:l}=Zc({ref:n,props:i,valueManager:et,valueType:"time",validator:ir,steps:null});return l()});cu.propTypes={ampm:D.bool,ampmInClock:D.bool,autoFocus:D.bool,className:D.string,closeOnSelect:D.bool,defaultValue:D.object,disabled:D.bool,disableFuture:D.bool,disableIgnoringDatePartForTimeValidation:D.bool,disableOpenPicker:D.bool,disablePast:D.bool,enableAccessibleFieldDOMStructure:D.any,format:D.string,formatDensity:D.oneOf(["dense","spacious"]),inputRef:rr,label:D.node,localeText:D.object,maxTime:D.object,minTime:D.object,minutesStep:D.number,name:D.string,onAccept:D.func,onChange:D.func,onClose:D.func,onError:D.func,onOpen:D.func,onSelectedSectionsChange:D.func,onViewChange:D.func,open:D.bool,openTo:D.oneOf(["hours","minutes","seconds"]),orientation:D.oneOf(["landscape","portrait"]),readOnly:D.bool,reduceAnimations:D.bool,referenceDate:D.object,selectedSections:D.oneOfType([D.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),D.number]),shouldDisableTime:D.func,slotProps:D.object,slots:D.object,sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object]),timezone:D.string,value:D.object,view:D.oneOf(["hours","minutes","seconds"]),viewRenderers:D.shape({hours:D.func,minutes:D.func,seconds:D.func}),views:D.arrayOf(D.oneOf(["hours","minutes","seconds"]).isRequired)};const _P=["desktopModeMediaQuery"],UP=p.forwardRef(function(t,n){const o=De({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:r=Jl}=o,s=me(o,_P);return us(r,{defaultMatches:!0})?u.jsx(lu,O({ref:n},s)):u.jsx(cu,O({ref:n},s))}),Tr=(e,t)=>{typeof e=="function"?e(t):e&&(e.current=t)},Kr=p.forwardRef(({id:e,className:t,placeholder:n,value:o,disabled:r,readOnly:s,required:a,name:i,autoComplete:l,autoFocus:c,error:d,focused:m,onChange:y,onBlur:g,onFocus:h,onClick:v,InputProps:f,inputProps:b},C)=>u.jsxs("div",{ref:w=>{Tr(C,w),Tr(f?.ref,w)},onBlur:g,onFocus:h,onClick:v,className:je("flex h-9 items-center gap-1 rounded-md border border-control bg-surface px-3","transition-colors duration-fast ease-out-quart","has-[input:focus-visible]:outline-solid has-[input:focus-visible]:outline-2","has-[input:focus-visible]:outline-accent has-[input:focus-visible]:outline-offset-2",d&&"border-danger",r&&"border-hairline bg-sunken",t),children:[f?.startAdornment,u.jsx("input",{id:e,name:i,placeholder:n,value:o??"",disabled:r,readOnly:s,required:a,autoComplete:l,"aria-invalid":d||void 0,onChange:y,...b,ref:w=>{Tr(b?.ref,w),c&&w&&w.focus()},className:je("h-full min-w-0 flex-1 bg-transparent outline-none","text-body-sm text-ink placeholder:text-ink-dim","disabled:text-ink-disabled disabled:placeholder:text-ink-disabled")}),f?.endAdornment]}));Kr.displayName="PickerTextField";const Jo=({label:e,value:t,onChange:n,initialOpen:o=!1,disabled:r,helperText:s})=>{const[a,i]=p.useState(null),[l,c]=p.useState(null),[d,m]=p.useState(o),y=p.useId();p.useEffect(()=>{if(t&&Jn(Qs(t))){const f=Qs(t);i(f),c(f)}else i(null),c(null)},[t]);const g=f=>{if(i(f),f&&Jn(f)){const b=new Date(f);l&&Jn(l)?(b.setHours(l.getHours()),b.setMinutes(l.getMinutes()),b.setSeconds(l.getSeconds())):b.setHours(0,0,0,0),n(b.toISOString())}else n(null)},h=f=>{if(c(f),f&&Jn(f)){const b=a?new Date(a):new Date;b.setHours(f.getHours()),b.setMinutes(f.getMinutes()),b.setSeconds(f.getSeconds()),a||i(new Date(b.getFullYear(),b.getMonth(),b.getDate())),n(b.toISOString())}else if(f===null&&a){const b=new Date(a);b.setHours(0,0,0,0),c(b),n(b.toISOString())}else n(null)},v=()=>{const f=new Date;i(f),c(f),n(f.toISOString())};return u.jsx(Tl,{dateAdapter:Jf,children:u.jsxs("div",{children:[u.jsx("label",{htmlFor:`${y}-date-field`,className:"mb-1.5 block font-medium text-body-sm text-ink-muted",children:e}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"min-w-0 flex-1",children:u.jsx(xS,{value:a,onChange:g,disabled:r,open:o?d:void 0,disableHighlightToday:o,onOpen:()=>m(!0),onClose:()=>m(!1),enableAccessibleFieldDOMStructure:!1,slots:{textField:Kr,openPickerIcon:()=>u.jsx(Oi,{size:16})},slotProps:{textField:{id:`${y}-date-field`,placeholder:"Select date"},openPickerButton:{"aria-label":`Choose ${e} date`,size:"small"}}})}),u.jsx("div",{className:"min-w-0 flex-1",children:u.jsx(UP,{value:l,onChange:h,disabled:r,enableAccessibleFieldDOMStructure:!1,slots:{textField:Kr,openPickerIcon:()=>u.jsx(sd,{size:16})},slotProps:{textField:{id:`${y}-time-field`,placeholder:"Select time"},openPickerButton:{"aria-label":`Choose ${e} time`,size:"small"}}})}),u.jsx(qt,{content:"Set to current time",children:u.jsx(bt,{variant:"ghost",size:"icon-sm",onClick:v,disabled:r,"aria-label":`Set ${e} to current time`,children:u.jsx(Pu,{})})})]}),s&&u.jsx("p",{className:"mt-1 ml-0.5 text-ink-muted text-meta",children:s})]})})},Si={selectedAgentId:null,prompt:"",interval:1,unit:"hours",is_active:!0,one_time:!1,start_time_utc:null,end_time_utc:null},YP=({options:e,selected:t,onSelect:n,onQueryChange:o,loading:r,invalid:s})=>{const a=p.useId(),i=`${a}-input`,l=`${a}-listbox`,c=p.useRef(null),d=p.useRef([]),m=t?.name||(t?`Agent ID: ${t.id.substring(0,8)}...`:""),[y,g]=p.useState(m),[h,v]=p.useState(!1),[f,b]=p.useState(-1);p.useEffect(()=>{g(m)},[m]),d.current.length=e.length,p.useEffect(()=>{b(-1)},[e]),p.useEffect(()=>{!h||f<0||d.current[f]?.scrollIntoView({block:"nearest"})},[h,f]);const C=S=>{v(!1),g(S.name||`Agent ID: ${S.id.substring(0,8)}...`),n(S)},w=()=>{v(!1),g(m)},x=S=>{e.length!==0&&b(R=>{const E=R+S;return E<0?e.length-1:E>=e.length?0:E})},P=S=>{switch(S.key){case"ArrowDown":case"ArrowUp":{if(S.preventDefault(),!h){v(!0);return}x(S.key==="ArrowDown"?1:-1);return}case"Home":case"End":{if(!h||e.length===0)return;S.preventDefault(),b(S.key==="Home"?0:e.length-1);return}case"Enter":{S.preventDefault(),h&&f>=0&&C(e[f]);return}case"Escape":{if(!h)return;S.preventDefault(),S.stopPropagation(),w();return}}},k=h&&f>=0?`${a}-option-${f}`:void 0;return u.jsx("div",{className:"relative",children:u.jsxs(hd,{open:h,onOpenChange:S=>{S?v(!0):w()},children:[u.jsx(gd,{asChild:!0,children:u.jsxs("div",{ref:c,className:"relative",children:[u.jsx(Ho,{id:i,role:"combobox","aria-expanded":h,"aria-controls":l,"aria-autocomplete":"list","aria-activedescendant":k,"aria-invalid":s||void 0,autoComplete:"off",className:"pr-8",placeholder:"Search agents",value:y,onChange:S=>{g(S.target.value),o(S.target.value),v(!0)},onFocus:()=>v(!0),onClick:()=>v(!0),onBlur:w,onKeyDown:P}),u.jsx("span",{className:"pointer-events-none absolute top-1/2 right-2 flex -translate-y-1/2 items-center",children:r?u.jsx(ns,{size:"sm",label:"Loading agents"}):u.jsx(bd,{className:"size-4 text-ink-dim","aria-hidden":"true"})})]})}),u.jsx(yd,{align:"start",className:"w-(--radix-popover-trigger-width) p-1",onOpenAutoFocus:S=>S.preventDefault(),onCloseAutoFocus:S=>S.preventDefault(),onPointerDownOutside:S=>{c.current?.contains(S.target)&&S.preventDefault()},onFocusOutside:S=>{c.current?.contains(S.target)&&S.preventDefault()},onMouseDown:S=>S.preventDefault(),children:u.jsxs("ul",{id:l,role:"listbox","aria-label":"Select agent",className:"max-h-72 overflow-y-auto",children:[e.length===0&&u.jsx("li",{role:"presentation",className:"px-2 py-1.5 text-body-sm text-ink-dim",children:r?"Loading agents":"No matching agents"}),e.map((S,R)=>u.jsx("li",{id:`${a}-option-${R}`,role:"option","aria-selected":S.id===t?.id,ref:E=>{d.current[R]=E},className:je("cursor-pointer rounded-sm px-2 py-1.5","transition-colors duration-fast ease-out-quart",R===f&&"bg-accent-wash"),onMouseEnter:()=>b(R),onClick:()=>C(S),children:u.jsx("span",{className:"font-medium text-body-sm text-ink",children:S.name||"Unnamed agent"})},S.id))]})})]})})},qP=({open:e,onClose:t,onSubmit:n,initialData:o})=>{const[r,s]=p.useState(Si),[a,i]=p.useState(!1),[l,c]=p.useState(""),[d,m]=p.useState(""),[y,g]=p.useState(null),h=!!o;p.useEffect(()=>{const S=setTimeout(()=>{m(l)},300);return()=>clearTimeout(S)},[l]);const{data:v,isLoading:f,isError:b}=ku(1,50,0,d||void 0),C=p.useMemo(()=>v?.agents||[],[v]);p.useEffect(()=>{if(e)if(o){s({selectedAgentId:o.agent_id,prompt:o.prompt,interval:o.interval,unit:o.unit,is_active:o.is_active,one_time:o.one_time,start_time_utc:o.start_time_utc?new Date(o.start_time_utc).toISOString():null,end_time_utc:o.end_time_utc?new Date(o.end_time_utc).toISOString():null});const S=C.find(R=>R.id===o.agent_id);S&&g(S)}else s(Si),g(null),c("")},[e,o,C]);const w=async()=>{i(!0);try{if(!h&&!r.selectedAgentId){console.error("Agent ID is required to create a schedule."),i(!1);return}const S={prompt:r.prompt,interval:Number(r.interval),unit:r.unit,is_active:r.is_active,one_time:r.one_time,start_time_utc:r.start_time_utc||null,end_time_utc:r.end_time_utc||null};S.start_time_utc===""&&(S.start_time_utc=null),S.end_time_utc===""&&(S.end_time_utc=null);const R=h?o.agent_id:r.selectedAgentId;if(!R){console.error("Agent ID is missing for submission."),i(!1);return}await n(S,R),t()}catch(S){console.error("Failed to submit schedule:",S),Sn(`Failed to save schedule: ${S instanceof Error?S.message:"Unknown error"}`)}finally{i(!1)}},x=h?"Edit schedule":"New schedule",P=b||!h&&!r.selectedAgentId&&a,k=u.jsxs(u.Fragment,{children:[u.jsx(Li,{onClick:t,disabled:a,startIcon:u.jsx(Mu,{size:18}),"data-tour-tag":"create-schedule-dialog-cancel-button",children:"Cancel"}),u.jsx(ji,{onClick:w,disabled:a||!r.prompt||r.interval===""||r.interval<1||!h&&!r.selectedAgentId,startIcon:a?u.jsx(ns,{size:"sm"}):u.jsx(Du,{size:18}),children:a?"Saving":h?"Save changes":"Create schedule"})]});return u.jsx(Vi,{open:e,onClose:t,title:x,actions:k,maxWidth:"sm",fullWidth:!0,dataTourTag:"create-schedule-dialog",children:u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsxs("div",{className:"col-span-2 flex items-start gap-2",children:[u.jsx(qs,{size:16,"aria-hidden":"true",className:"mt-0.5 shrink-0 text-info"}),u.jsx("p",{className:"text-body-sm text-ink-muted",children:'It is usually quicker to ask an agent in chat — "send me an email with the latest news at 8am every day" — and it will set this up for you.'})]}),!h&&u.jsxs("div",{className:"col-span-2 flex flex-col gap-1.5",children:[u.jsxs(gt,{htmlFor:"agent-select-for-schedule",children:["Agent ",u.jsx("span",{className:"text-danger",children:"*"})]}),u.jsx(YP,{options:C,selected:y,onSelect:S=>{g(S),s(R=>({...R,selectedAgentId:S?S.id:null}))},onQueryChange:c,loading:f,invalid:P}),P&&u.jsx("p",{className:"text-danger text-meta",children:b?"Failed to load agents.":"Agent selection is required."})]}),h&&o&&u.jsxs("p",{className:"col-span-2 text-body-sm text-ink-muted",children:["Runs as"," ",u.jsx("span",{className:"font-medium text-ink",children:y?.name||`${o.agent_id.substring(0,8)}…`}),". The agent cannot be changed after a schedule is created."]}),u.jsxs("div",{className:"col-span-2 flex flex-col gap-1.5",children:[u.jsxs(gt,{htmlFor:"prompt",className:"items-center",children:["Prompt ",u.jsx("span",{className:"text-danger",children:"*"}),u.jsx(qt,{side:"top",align:"start",content:u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("span",{children:"This is the message that will be sent to the agent on the schedule."}),u.jsx("span",{children:'Example: "Send me an email with a detailed world news breakdown with key events"'})]}),children:u.jsx(qs,{size:14,"aria-hidden":"true",className:"text-info"})})]}),u.jsx(zi,{id:"prompt",name:"prompt",value:r.prompt,onChange:S=>s(R=>({...R,prompt:S.target.value})),required:!0,rows:3,disabled:a,placeholder:"Send me an email with a detailed world news breakdown"})]}),u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsxs(gt,{htmlFor:"interval",children:["Interval ",u.jsx("span",{className:"text-danger",children:"*"})]}),u.jsx(Ho,{id:"interval",name:"interval",type:"number",min:1,value:r.interval,onChange:S=>{const R=S.target.value;s(E=>({...E,interval:R===""?"":Number.parseInt(R,10)}))},required:!0,disabled:a,placeholder:"1"})]}),u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsxs(gt,{htmlFor:"unit-select",children:["Unit ",u.jsx("span",{className:"text-danger",children:"*"})]}),u.jsxs(bn,{value:r.unit||"hours",onValueChange:S=>s(R=>({...R,unit:S})),disabled:a,children:[u.jsx(yn,{id:"unit-select",name:"unit",children:u.jsx(vn,{placeholder:"Select unit"})}),u.jsxs(xn,{children:[u.jsx(Je,{value:"minutes",children:"Minutes"}),u.jsx(Je,{value:"hours",children:"Hours"}),u.jsx(Je,{value:"days",children:"Days"})]})]})]}),u.jsx(Jo,{label:"Start time",value:r.start_time_utc??null,onChange:S=>s(R=>({...R,start_time_utc:S})),disabled:a,helperText:"If not set, starts immediately or on next interval."}),u.jsx(Jo,{label:"End time (optional)",value:r.end_time_utc??null,onChange:S=>s(R=>({...R,end_time_utc:S})),disabled:a,helperText:"If not set, schedule runs indefinitely."}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Rr,{id:"is-active",checked:r.is_active||!1,onCheckedChange:S=>s(R=>({...R,is_active:S})),disabled:a}),u.jsx(gt,{htmlFor:"is-active",children:"Active"})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Rr,{id:"one-time",checked:r.one_time||!1,onCheckedChange:S=>s(R=>({...R,one_time:S})),disabled:a}),u.jsx(gt,{htmlFor:"one-time",children:"Run once"})]})]})})},KP=(e,t)=>Tu(e,t),GP=e=>{const t=er.baseUrl;return Ai({queryKey:["agent-name",e,t],queryFn:async()=>t?(await id.getAgent(t,e)).result?.name||"Unknown agent":(console.warn("Base URL for Local Operator API is not configured."),"Agent ID"),enabled:!!e&&!!t,staleTime:1e3*60*5})},QP=({schedule:e,onEdit:t,onDelete:n,onToggleActive:o,nowMs:r=Date.now()})=>{const{data:s,isLoading:a}=GP(e.agent_id),i=p.useId();return u.jsxs("div",{title:`Schedule ID: ${e.id}`,className:je("group flex items-start gap-3 border-hairline border-b px-4 py-3 last:border-b-0","transition-colors duration-fast ease-out-quart hover:bg-row-hover"),children:[u.jsxs("div",{className:je("flex min-w-0 flex-1 flex-col gap-1"),children:[u.jsx("p",{className:je("min-w-0 break-words text-body-sm",e.is_active?"text-ink":"text-ink-muted"),children:e.prompt}),u.jsxs("p",{className:je("flex flex-wrap items-center gap-x-1.5 text-meta"),children:[u.jsx("span",{className:je("text-ink-muted"),children:KP(e,r)}),u.jsx("span",{"aria-hidden":"true",className:je("text-ink-dim"),children:"·"}),a?u.jsx(vd,{className:je("h-3 w-24")}):u.jsx("span",{className:je("truncate text-ink-dim"),children:s||e.agent_id.substring(0,8)})]})]}),u.jsxs("div",{className:je("flex shrink-0 items-center gap-1"),children:[u.jsx(qt,{content:e.is_active?"Pause schedule":"Resume schedule",children:u.jsx("span",{className:je("flex items-center pr-1"),children:u.jsx(Rr,{id:i,checked:e.is_active,onCheckedChange:()=>o(e),"aria-label":e.is_active?"Pause schedule":"Resume schedule"})})}),u.jsxs("div",{className:je("flex items-center gap-0.5","pointer-events-none opacity-0","group-hover:pointer-events-auto group-hover:opacity-100","group-focus-within:pointer-events-auto group-focus-within:opacity-100"),children:[u.jsx(qt,{content:"Edit schedule",children:u.jsx(bt,{variant:"ghost",size:"icon-sm",onClick:()=>t(e),"aria-label":"Edit schedule",children:u.jsx(Fi,{})})}),u.jsx(qt,{content:"Delete schedule",children:u.jsx(bt,{variant:"ghost",size:"icon-sm",onClick:()=>n(e.id),"aria-label":"Delete schedule",className:je("hover:bg-danger-wash hover:text-danger"),children:u.jsx(ad,{})})})]})]})]})},XP=20,ZP=9,to=6e4,JP=["minutes","hours","days","weeks"],ek={minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Weeks"},tk={minutes:to,hours:60*to,days:24*60*to,weeks:7*24*60*to},nk=({open:e,onClose:t,nowMs:n=Date.now(),edit:o=null})=>{const r=o!==null,[s,a]=p.useState("new"),[i,l]=p.useState(null),[c,d]=p.useState(""),[m,y]=p.useState("in-an-hour"),[g,h]=p.useState(null),[v,f]=p.useState("never"),[b,C]=p.useState("1"),[w,x]=p.useState("hours"),[P,k]=p.useState("never"),[S,R]=p.useState(null),[E,F]=p.useState(2),[L,M]=p.useState(()=>crypto.randomUUID()),$=Iu(e),N=Ni(),I=N.refetch;p.useEffect(()=>{e&&I()},[e,I]);const T=Ru(),V=Eu(),G=Bi(j=>j.cwd),A=T.isPending||V.isPending,Z=p.useId();p.useEffect(()=>{e&&(a("new"),l(null),d(o?.message??""),y(r?"keep":"in-an-hour"),h(null),f(r?"keep":"never"),C("1"),x("hours"),k(r?"keep":"never"),R(null),F(2),M(crypto.randomUUID()))},[e,o,r]);const z=p.useMemo(()=>{const j=new Date(n);return j.setHours(XP,0,0,0),j.getTime()>n+to?j:null},[n]),ne=p.useMemo(()=>{const j=new Date(n);return j.setDate(j.getDate()+1),j.setHours(ZP,0,0,0),j},[n]),te=p.useMemo(()=>[...$.data??[]].sort((j,_)=>_.mtime-j.mtime),[$.data]),se=te.find(j=>j.id===i),U=N.data?.entries.find(j=>j.session_id===i)?.schedules.length??0,oe=Ou(b),ce=v==="every"&&oe!==null,fe=ce&&ju(oe),re=ce&&oe!==null?oe*tk[w]:null,Q=!r&&s==="existing"&&!i,H=m==="pick"&&!g,q=P==="date"&&!S,X=P==="runs"&&E==="",K=Fu({message:c,needsConversation:Q,hasConversationChoices:te.length>0,repeatIntervalNotWhole:v==="every"&&oe===null,repeatMs:re,endsRuns:P==="runs"&&E!==""?E:null,existingWakeCount:U,alreadyRun:o?.wake.fired_count??0}),ue=K.invalid||H||q||X,J=!r||c!==o.message||m!=="keep"||v!=="keep"||P!=="keep",Y=Nu(G),ee=()=>m==="keep"?null:m==="in-30-minutes"?{in:"30m"}:m==="in-an-hour"?{in:"1h"}:m==="tonight"?z?{at:z.toISOString()}:null:m==="tomorrow"?{at:ne.toISOString()}:g?{at:g}:null,ie=async()=>{if(ue)return;const j=ee();try{if(o){await V.mutateAsync({sessionId:o.sessionId,wakeId:o.wakeId,message:c.trim(),...j?{firstRun:j}:{},...fe&&oe!==null?{every:Ys(oe,w)}:{},...v==="every"&&P==="date"&&S?{until:S}:{},...v==="every"&&P==="runs"&&E!==""?{limit:E}:{}}),Pn(`Wake updated — ${Lo(c.trim())}`),t();return}const _=await T.mutateAsync({requestId:L,...i?{sessionId:i}:{cwd:G},message:c.trim(),firstRun:j??{in:"1h"},...fe&&oe!==null?{every:Ys(oe,w)}:{},...v==="every"&&P==="date"&&S?{until:S}:{},...v==="every"&&P==="runs"&&E!==""?{limit:E}:{}});Pn(_.index_written?`Scheduled task created — ${Lo(c.trim())}`:`Scheduled task created — ${Lo(c.trim())}. The list may lag until the index catches up.`),t()}catch(_){Sn(_ instanceof Error?`${r?"Could not save the wake":"Could not create the scheduled task"}: ${_.message}`:r?"Could not save the wake.":"Could not create the scheduled task.")}},W=u.jsxs(u.Fragment,{children:[u.jsx(Li,{onClick:t,disabled:A,children:"Cancel"}),u.jsx(ji,{onClick:ie,disabled:ue||A||!J,startIcon:u.jsx(Ir,{size:18}),children:r?A?"Saving":"Save":A?"Creating":"Create"})]});return u.jsxs(Vi,{open:e,onClose:t,title:r?"Edit wake":"New scheduled task",actions:W,maxWidth:"sm",fullWidth:!0,dataTourTag:"create-scheduled-task-dialog",children:[o&&u.jsxs("p",{className:"text-body-sm text-ink-dim",children:[o.conversationName," · wake ",o.position," of ",o.count]}),u.jsxs("div",{className:"flex flex-col gap-4",children:[u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsxs(gt,{htmlFor:`${Z}-prompt`,children:["Prompt ",u.jsx("span",{className:"text-danger",children:"*"})]}),u.jsx(zi,{id:`${Z}-prompt`,name:"prompt",value:c,onChange:j=>d(j.target.value),rows:3,disabled:A,placeholder:"Send me an email with a detailed world news breakdown"}),u.jsx("p",{className:"text-body-sm text-ink-muted",children:"This is the message the conversation receives when it wakes up."}),K.prompt&&u.jsx("p",{className:"text-meta text-danger",children:K.prompt})]}),!r&&u.jsxs("fieldset",{className:"m-0 flex flex-col gap-1.5 border-0 p-0",children:[u.jsx("legend",{className:"sr-only",children:"Run in"}),u.jsx(gt,{children:"Run in"}),u.jsx("div",{className:"flex w-fit gap-0.5 rounded-md bg-sunken p-0.5",children:[["new","A new conversation"],["existing","An existing conversation"]].map(([j,_])=>u.jsx(bt,{variant:"ghost",size:"sm","aria-pressed":s===j,onClick:()=>a(j),disabled:A,className:je(s===j&&"bg-surface text-ink hover:bg-surface"),children:_},j))})]}),!r&&s==="existing"&&u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx(gt,{htmlFor:`${Z}-conversation`,children:"Conversation"}),u.jsxs(bn,{value:i??"",onValueChange:l,disabled:A,children:[u.jsx(yn,{id:`${Z}-conversation`,children:u.jsx(vn,{placeholder:"Pick a conversation"})}),u.jsx(xn,{children:te.map(j=>u.jsxs(Je,{value:j.id,textValue:j.name||j.id.slice(0,8),children:[j.name||`Untitled ${j.id.slice(0,8)}`,u.jsx("span",{className:"pl-2 text-ink-dim",children:ld(Math.max(0,n-j.mtime*1e3))})]},j.id))})]}),$.isLoading&&u.jsx("p",{className:"text-meta text-ink-dim",children:"Loading conversations…"}),$.error&&u.jsxs("p",{className:"text-meta text-danger",children:["Could not read your conversations: ",$.error.message]}),!$.isLoading&&!$.error&&te.length===0&&u.jsxs("p",{className:"text-meta text-ink-dim",children:["No conversations yet — start one in chat, or choose"," ",u.jsx("em",{children:"A new conversation"}),"."]})]}),!r&&s==="new"&&u.jsxs("p",{className:"text-body-sm text-ink-dim",children:["Starts in ",Y," with your default model."]}),!r&&s==="existing"&&se&&u.jsxs("p",{className:"text-body-sm text-ink-dim",children:["Runs in ",se.name,", as a turn in that conversation."]}),!r&&K.conversation&&u.jsx("p",{className:"text-meta text-danger",children:K.conversation}),u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx(gt,{htmlFor:`${Z}-first-run`,children:"First run"}),u.jsxs(bn,{value:m,onValueChange:j=>y(j),disabled:A,children:[u.jsx(yn,{id:`${Z}-first-run`,children:u.jsx(vn,{})}),u.jsxs(xn,{children:[r&&u.jsx(Je,{value:"keep",children:Au(o.wake,n,o.parked)}),u.jsx(Je,{value:"in-an-hour",children:"In an hour"}),u.jsx(Je,{value:"in-30-minutes",children:"In 30 minutes"}),z&&u.jsx(Je,{value:"tonight",children:"Tonight at 8:00 PM"}),u.jsx(Je,{value:"tomorrow",children:"Tomorrow at 9:00 AM"}),u.jsx(Je,{value:"pick",children:"Pick a time…"})]})]}),m==="pick"&&u.jsx(Jo,{label:"First run at",value:g,onChange:h,disabled:A})]}),u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx(gt,{htmlFor:`${Z}-repeat`,children:"Repeat"}),u.jsxs(bn,{value:v,onValueChange:j=>f(j),disabled:A,children:[u.jsx(yn,{id:`${Z}-repeat`,children:u.jsx(vn,{})}),u.jsxs(xn,{children:[r&&u.jsx(Je,{value:"keep",children:$u(o.wake)}),u.jsx(Je,{value:"never",children:"Don't repeat"}),u.jsx(Je,{value:"every",children:"Every"})]})]}),v==="every"&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Ho,{type:"number",min:1,step:1,"aria-label":"Repeat interval",className:"w-24",value:b,onChange:j=>C(j.target.value),disabled:A}),u.jsxs(bn,{value:w,onValueChange:j=>x(j),disabled:A,children:[u.jsx(yn,{"aria-label":"Repeat unit",className:"w-36",children:u.jsx(vn,{})}),u.jsx(xn,{children:JP.map(j=>u.jsx(Je,{value:j,children:ek[j]},j))})]})]}),K.repeatInterval&&u.jsx("p",{className:"text-meta text-danger",children:K.repeatInterval}),K.repeat&&u.jsx("p",{className:"text-meta text-danger",children:K.repeat})]}),(v==="every"||P!=="never")&&u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx(gt,{htmlFor:`${Z}-ends`,children:"Ends"}),u.jsxs(bn,{value:P,onValueChange:j=>k(j),disabled:A,children:[u.jsx(yn,{id:`${Z}-ends`,children:u.jsx(vn,{})}),u.jsxs(xn,{children:[r&&u.jsx(Je,{value:"keep",children:Lu(o.wake,n)}),u.jsx(Je,{value:"never",children:"Never"}),u.jsx(Je,{value:"date",children:"On a date…"}),u.jsx(Je,{value:"runs",children:"After N runs"})]})]}),P==="date"&&u.jsx(Jo,{label:"Last run",value:S,onChange:R,disabled:A}),P==="runs"&&u.jsx(Ho,{type:"number",min:1,"aria-label":"Number of runs",className:"w-24",value:E,onChange:j=>F(j.target.value===""?"":Number.parseInt(j.target.value,10)),disabled:A}),K.ends&&u.jsx("p",{className:"text-meta text-danger",children:K.ends})]}),u.jsx("p",{className:"text-body-sm text-ink-dim",children:"If a tool needs approval, the wake parks and waits for you rather than acting on its own; a wait that runs out stops the turn without running the tool."}),r&&u.jsx("p",{className:"text-body-sm text-ink-dim",children:"A new first run moves the next wake to that time, and a new repeat carries on from it. Runs already made still count, and the wake keeps its place in the conversation."}),!r&&u.jsx("p",{className:"text-body-sm text-ink-dim",children:'It is usually quicker to ask an agent in chat — "send me the latest news at 8am every day" — and it will set this up for you.'})]})]})},Gr=["pointer-events-none opacity-0","group-hover:pointer-events-auto group-hover:opacity-100","group-focus-within:pointer-events-auto group-focus-within:opacity-100"],Pi=({wake:e,managedName:t,onCancel:n,onEdit:o})=>u.jsx(zu,{row:e,trailingClause:e.ranLabel||void 0,note:t===null?void 0:u.jsx(Wu,{name:t}),action:u.jsxs(u.Fragment,{children:[t!==null&&u.jsx(Hu,{name:t}),u.jsx(qt,{content:"Edit wake",children:u.jsx(bt,{variant:"ghost",size:"icon-sm","aria-label":"Edit wake",onClick:o,className:je(...Gr,"group-hover/wake:pointer-events-auto group-hover/wake:opacity-100","group-focus-within/wake:pointer-events-auto group-focus-within/wake:opacity-100"),children:u.jsx(Fi,{})})}),t===null&&u.jsx(qt,{content:"Cancel wake",children:u.jsx(bt,{variant:"ghost",size:"icon-sm","aria-label":"Cancel wake",onClick:n,className:je(...Gr,"group-hover/wake:pointer-events-auto group-hover/wake:opacity-100","group-focus-within/wake:pointer-events-auto group-focus-within/wake:opacity-100","hover:bg-danger-wash hover:text-danger"),children:u.jsx(xd,{})})})]})}),ok=({row:e,onOpen:t,onCancel:n,onEdit:o,identity:r})=>{const[s,a]=p.useState(!1),i=e.wakes.slice(e.visibleWakes.length),l={sessionId:e.sessionId,wakeIds:e.wakes.map(d=>d.id),aida:r},c=d=>_u(d.id,l)==="managed"?r.name:null;return u.jsx("li",{"data-scheduled-task-row":e.sessionId,className:je("group border-hairline border-b px-4 py-3 last:border-b-0","transition-colors duration-fast ease-out-quart hover:bg-row-hover"),children:u.jsxs("div",{className:je("flex items-start gap-3"),children:[u.jsxs("div",{className:je("flex min-w-0 flex-1 flex-col gap-1"),children:[u.jsxs("div",{className:je("flex min-w-0 items-baseline justify-between gap-2"),children:[u.jsx("span",{className:je("min-w-0 truncate text-body-sm text-ink"),title:e.cwd,children:e.name}),e.meta&&u.jsx("span",{className:je("shrink-0 text-ink-muted text-meta"),children:e.meta})]}),u.jsx("ul",{className:je("flex flex-col gap-1 pl-4"),children:e.visibleWakes.map(d=>u.jsx(Pi,{wake:d,managedName:c(d),onCancel:()=>n(e,d),onEdit:()=>o(e,d)},d.id))}),i.length>0&&u.jsx(cd,{summary:s?"Show fewer":Vu(i.length),onOpenChange:a,className:je("pl-4"),triggerClassName:je("text-ink-muted hover:text-ink"),children:u.jsx("ul",{className:je("flex flex-col gap-1"),children:i.map(d=>u.jsx(Pi,{wake:d,managedName:c(d),onCancel:()=>n(e,d),onEdit:()=>o(e,d)},d.id))})})]}),u.jsx("div",{className:je("flex shrink-0 items-center gap-0.5",...Gr),children:u.jsx(qt,{content:"Open conversation",children:u.jsx(bt,{variant:"ghost",size:"icon-sm","aria-label":"Open conversation",onClick:()=>t(e.sessionId),children:u.jsx(Bu,{})})})})]})})},gk=({nowMs:e=Date.now()})=>{const t=ud(),[n,o]=p.useState(null),[r,s]=p.useState(null),[a,i]=p.useState(null),l=Ni(),c=es(),d=dd(),m=pd(d.data,"aida",1),y=Uu(m),g=Yu(),h={capability:m,statusResolved:y.isSuccess,sessionId:y.data?.session_id??null,name:g},v=()=>{l.refetch(),Yf(c)},f=qf(),b=qu(),C=Kf(),w=Gf(),x=f.data?.result?.schedules??[],P=l.data?.supervisor,k=P?.supported===!0&&P.running===!0&&P.verifiable!==!1,S=Ku(l.data?.entries,e,{dueInstants:k}),R=I=>{Bi.getState().openSession(I).then(T=>{T&&t(`/chat/${I}`)})},E=r!==null&&Gu(r.row.sessionId,h),F=async()=>{if(!r)return;const{row:I,wake:T}=r;try{const V=I.sessionId;await b.mutateAsync({sessionId:V,wakeId:T.id}),Pn("Wake cancelled",{action:{label:"Open conversation",onClick:()=>R(V)}}),s(null)}catch(V){Sn(V instanceof Error?`Could not cancel the wake: ${V.message}`:"Could not cancel the wake.")}},L=async I=>{if(a)try{await C.mutateAsync({scheduleId:a.id,scheduleData:I}),Pn("Schedule updated"),i(null)}catch(T){Sn(T instanceof Error?`Could not save the schedule: ${T.message}`:"Could not save the schedule.")}},M=async I=>{const T=x.find(V=>V.id===I);try{await w.mutateAsync({scheduleId:I,agentId:T?.agent_id}),Pn("Schedule removed")}catch(V){Sn(V instanceof Error?`Could not remove the schedule: ${V.message}`:"Could not remove the schedule.")}},$=async I=>{try{await C.mutateAsync({scheduleId:I.id,scheduleData:{is_active:!I.is_active}}),Pn(`Schedule ${I.is_active?"deactivated":"activated"}.`)}catch(T){Sn(T instanceof Error?`Could not toggle the schedule: ${T.message}`:"Could not toggle the schedule.")}},N=Qu({loading:l.isLoading,error:l.error!==null,readError:l.data?.read_error===!0,wakeRows:S.length,legacyLoading:f.isLoading,legacyRows:x.length});return u.jsxs("div",{className:"flex h-full flex-col gap-8 p-6",children:[u.jsx(fd,{title:"Schedules",icon:Oi,subtitle:"Work your conversations do on a schedule, repeating or once.",children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(bt,{variant:"secondary",size:"icon","aria-label":"Refresh scheduled tasks",title:"Refresh scheduled tasks",disabled:l.isFetching,onClick:v,"data-tour-tag":"refresh-schedules-button",children:u.jsx(Xu,{})}),u.jsxs(bt,{variant:"secondary",size:"md",onClick:()=>o({mode:"create"}),"data-tour-tag":"create-schedule-button",children:[u.jsx(Ir,{}),"New scheduled task"]})]})}),u.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto rounded-md bg-surface",children:[l.isLoading&&u.jsx("div",{className:"flex justify-center py-16",children:u.jsx(ns,{label:"Loading scheduled tasks"})}),l.error&&u.jsxs("div",{className:"flex flex-col items-start gap-2 border-hairline border-b p-4",children:[u.jsx("p",{className:"text-body text-ink",children:"Could not load scheduled tasks."}),u.jsx("p",{className:"text-body-sm text-ink-muted",children:l.error.message}),(S.length>0||x.length>0)&&u.jsx("p",{className:"text-body-sm text-ink-muted",children:Zu}),u.jsx(bt,{variant:"secondary",size:"sm",onClick:v,children:"Try again"})]}),!l.isLoading&&l.data?.read_error&&u.jsxs("div",{className:"flex flex-col items-start gap-2 border-hairline border-b p-4",children:[u.jsx(Ks,{variant:"warning",children:"Could not read this machine's scheduled tasks, so the list below may be incomplete."}),u.jsx(bt,{variant:"secondary",size:"sm",onClick:v,children:"Try again"})]}),!l.isLoading&&P&&!k&&u.jsxs("div",{className:"border-hairline border-b p-4",children:[u.jsx(Ks,{variant:"warning",children:Ju(P)}),P.detail&&u.jsx("p",{className:"mt-2 font-mono text-meta text-ink-dim",children:P.detail})]}),N&&u.jsxs("div",{className:"flex flex-col items-center gap-2 px-6 py-16 text-center",children:[u.jsx("p",{className:"text-heading text-ink",children:"No scheduled tasks yet"}),u.jsx("p",{className:"max-w-100 text-body-sm text-ink-muted",children:"Ask an agent in chat to do something on a regular basis — “send me the news at 8am every day” — and it will appear here. You can also set one up by hand."}),u.jsxs(bt,{variant:"secondary",size:"sm",onClick:()=>o({mode:"create"}),className:"mt-2",children:[u.jsx(Ir,{}),"New scheduled task"]})]}),S.length>0&&u.jsx("ul",{className:"flex flex-col",children:S.map(I=>u.jsx(ok,{row:I,onOpen:R,identity:h,onCancel:(T,V)=>s({row:T,wake:V}),onEdit:(T,V)=>o({mode:"edit",sessionId:T.sessionId,wakeId:V.id,message:V.message,conversationName:T.name,position:V.position,count:T.wakes.length,wake:V.source,parked:T.parked})},I.sessionId))}),(x.length>0||f.error)&&u.jsxs("section",{className:"border-hairline border-t bg-sunken",children:[u.jsxs("div",{className:"flex flex-col gap-1 px-4 py-3",children:[u.jsx("h2",{className:"text-heading text-ink",children:"Legacy schedules"}),u.jsx("p",{className:"max-w-150 text-body-sm text-ink-muted",children:"These run on the older agent-schedule engine. New scheduled tasks are created as wakes, in a conversation."}),f.error&&u.jsxs("p",{className:"text-body-sm text-danger",children:["Could not load legacy schedules. ",f.error.message]})]}),x.map(I=>u.jsx(QP,{schedule:I,nowMs:e,onEdit:()=>i(I),onDelete:M,onToggleActive:$},I.id))]}),!l.isLoading&&l.data?.truncated&&u.jsxs("p",{className:"border-hairline border-t px-4 py-3 text-body-sm text-ink-dim",children:["Showing ",l.data.entries.length," of ",l.data.total," ","conversations with wakes."]}),(S.length>0||x.length>0)&&u.jsxs("p",{className:"border-hairline border-t px-4 py-3 text-body-sm text-ink-dim",children:[k?"Wakes fire whether or not this window is open. ":"",ed]})]}),u.jsx(nk,{open:n!==null,onClose:()=>o(null),nowMs:e,edit:n?.mode==="edit"?n:null}),u.jsx(qP,{open:a!==null,onClose:()=>i(null),onSubmit:I=>L(I),initialData:a}),u.jsx(td,{open:r!==null,title:rd(E,h.name),message:r?od({named:E,name:h.name,head:Lo(r.wake.message)}):"",confirmText:nd(E),cancelText:"Keep",isDangerous:!0,onConfirm:()=>void F(),onCancel:()=>s(null)})]})};export{gk as SchedulesPage};
|