@harpercollins/harpercollins-design-system 1.8.69 → 1.8.71
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/dist/cjs/index.cjs +813 -808
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/src/components/index.d.ts +27 -24
- package/dist/cjs/types/src/components/inputs/Input/Input.d.ts +1 -1
- package/dist/cjs/types/src/components/navigation/Dropdown/Dropdown.d.ts +3 -0
- package/dist/cjs/types/src/components/navigation/Dropdown/index.d.ts +2 -0
- package/dist/esm/index.js +813 -808
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/index.d.ts +27 -24
- package/dist/esm/types/src/components/inputs/Input/Input.d.ts +1 -1
- package/dist/esm/types/src/components/navigation/Dropdown/Dropdown.d.ts +3 -0
- package/dist/esm/types/src/components/navigation/Dropdown/index.d.ts +2 -0
- package/dist/index.d.ts +159 -144
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -120,68 +120,38 @@ object-assign
|
|
|
120
120
|
&:hover {
|
|
121
121
|
background-color: var(--color--grey-lightest);
|
|
122
122
|
}
|
|
123
|
-
`;const $i=qt`
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
text-decoration: none;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
font-weight: 500;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
font-size: var(--font-size--xsmall);
|
|
144
|
-
font-weight: 500;
|
|
145
|
-
`,xxsmall:qt`
|
|
146
|
-
padding: var(--spacing--xxxsmall) var(--spacing--xxsmall);
|
|
147
|
-
font-size: var(--font-size--xxsmall);
|
|
148
|
-
font-weight: 500;
|
|
149
|
-
`},Ri={default:qt`
|
|
150
|
-
background-color: transaprent;
|
|
151
|
-
color: var(--color--body);
|
|
152
|
-
border: 1px solid var(--color--grey-line);
|
|
153
|
-
`,danger:qt`
|
|
154
|
-
background-color: var(--color--white);
|
|
155
|
-
color: var(--color--danger);
|
|
156
|
-
border: 1px solid var(--color--danger-light);
|
|
157
|
-
`,warning:qt`
|
|
158
|
-
background-color: var(--color--white);
|
|
159
|
-
color: var(--color--warning);
|
|
160
|
-
border: 1px solid var(--color--warning-light);
|
|
161
|
-
`,grey:qt`
|
|
162
|
-
background-color: var(--color--grey-line);
|
|
163
|
-
color: var(--color--grey-dark);
|
|
164
|
-
border: 1px solid var(--color--grey-line);
|
|
165
|
-
`},Di=Kt.div`
|
|
166
|
-
${$i}
|
|
167
|
-
|
|
168
|
-
${({size:e})=>zi[e||"medium"]}
|
|
169
|
-
${({kind:e})=>Ri[e||"default"]}
|
|
170
|
-
`;const Ti=Kt.hr`
|
|
171
|
-
border: 0;
|
|
172
|
-
border-bottom: 1px solid var(--color--grey-line);
|
|
173
|
-
`;function ji({size:t=80,strokeWidth:n=8,color:r="#4c3fdd"}){return e.jsxs("svg",{width:t,height:t,viewBox:"0 0 200 200",color:r,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"spinner-secondHalf",children:[e.jsx("stop",{offset:"0%",stopOpacity:"0",stopColor:"currentColor"}),e.jsx("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]}),e.jsxs("linearGradient",{id:"spinner-firstHalf",children:[e.jsx("stop",{offset:"0%",stopOpacity:"1",stopColor:"currentColor"}),e.jsx("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]})]}),e.jsxs("g",{strokeWidth:n,children:[e.jsx("path",{stroke:"url(#spinner-secondHalf)",d:`M ${n/2} 100 A ${100-n/2} ${100-n/2} 0 0 1 ${200-n/2} 100`}),e.jsx("path",{stroke:"url(#spinner-firstHalf)",d:`M ${200-n/2} 100 A ${100-n/2} ${100-n/2} 0 0 1 ${n/2} 100`}),e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",d:`M ${n/2} 100 A ${100-n/2} ${100-n/2} 0 0 1 ${n/2} ${100-n/4}`})]}),e.jsx("animateTransform",{from:"0 0 0",to:"360 0 0",attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1300ms"})]})}const Mi=Kt.div`
|
|
123
|
+
`;const $i={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}};var zi="$$joy";function Ri(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function Di(){return Di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Di.apply(null,arguments)}var Ti=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),ji="-ms-",Mi="-moz-",Ai="-webkit-",Vi="comm",_i="rule",Li="decl",Fi="@keyframes",Bi=Math.abs,Hi=String.fromCharCode,Wi=Object.assign;function Gi(e){return e.trim()}function qi(e,t,n){return e.replace(t,n)}function Ui(e,t){return e.indexOf(t)}function Yi(e,t){return 0|e.charCodeAt(t)}function Ki(e,t,n){return e.slice(t,n)}function Ji(e){return e.length}function Xi(e){return e.length}function Qi(e,t){return t.push(e),e}var Zi=1,el=1,tl=0,nl=0,rl=0,ol="";function al(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Zi,column:el,length:i,return:""}}function il(e,t){return Wi(al("",null,null,"",null,null,0),e,{length:-e.length},t)}function ll(){return rl=nl>0?Yi(ol,--nl):0,el--,10===rl&&(el=1,Zi--),rl}function sl(){return rl=nl<tl?Yi(ol,nl++):0,el++,10===rl&&(el=1,Zi++),rl}function cl(){return Yi(ol,nl)}function ul(){return nl}function dl(e,t){return Ki(ol,e,t)}function pl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function fl(e){return Zi=el=1,tl=Ji(ol=e),nl=0,[]}function ml(e){return ol="",e}function gl(e){return Gi(dl(nl-1,bl(91===e?e+2:40===e?e+1:e)))}function hl(e){for(;(rl=cl())&&rl<33;)sl();return pl(e)>2||pl(rl)>3?"":" "}function vl(e,t){for(;--t&&sl()&&!(rl<48||rl>102||rl>57&&rl<65||rl>70&&rl<97););return dl(e,ul()+(t<6&&32==cl()&&32==sl()))}function bl(e){for(;sl();)switch(rl){case e:return nl;case 34:case 39:34!==e&&39!==e&&bl(rl);break;case 40:41===e&&bl(e);break;case 92:sl()}return nl}function yl(e,t){for(;sl()&&e+rl!==57&&(e+rl!==84||47!==cl()););return"/*"+dl(t,nl-1)+"*"+Hi(47===e?e:sl())}function xl(e){for(;!pl(cl());)sl();return dl(e,nl)}function wl(e){return ml(Sl("",null,null,null,[""],e=fl(e),0,[0],e))}function Sl(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,p=0,f=0,m=0,g=1,h=1,v=1,b=0,y="",x=o,w=a,S=r,C=y;h;)switch(m=b,b=sl()){case 40:if(108!=m&&58==Yi(C,d-1)){-1!=Ui(C+=qi(gl(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=gl(b);break;case 9:case 10:case 13:case 32:C+=hl(m);break;case 92:C+=vl(ul()-1,7);continue;case 47:switch(cl()){case 42:case 47:Qi(kl(yl(sl(),ul()),t,n),s);break;default:C+="/"}break;case 123*g:l[c++]=Ji(C)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==v&&(C=qi(C,/\f/g,"")),f>0&&Ji(C)-d&&Qi(f>32?Ol(C+";",r,n,d-1):Ol(qi(C," ","")+";",r,n,d-2),s);break;case 59:C+=";";default:if(Qi(S=Cl(C,t,n,c,u,o,l,y,x=[],w=[],d),a),123===b)if(0===u)Sl(C,t,S,S,x,a,d,l,w);else switch(99===p&&110===Yi(C,3)?100:p){case 100:case 108:case 109:case 115:Sl(e,S,S,r&&Qi(Cl(e,S,S,0,0,o,l,y,o,x=[],d),w),o,w,d,l,r?x:w);break;default:Sl(C,S,S,S,[""],w,0,l,w)}}c=u=f=0,g=v=1,y=C="",d=i;break;case 58:d=1+Ji(C),f=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==ll())continue;switch(C+=Hi(b),b*g){case 38:v=u>0?1:(C+="\f",-1);break;case 44:l[c++]=(Ji(C)-1)*v,v=1;break;case 64:45===cl()&&(C+=gl(sl())),p=cl(),u=d=Ji(y=C+=xl(ul())),b++;break;case 45:45===m&&2==Ji(C)&&(g=0)}}return a}function Cl(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=Xi(p),m=0,g=0,h=0;m<r;++m)for(var v=0,b=Ki(e,d+1,d=Bi(g=i[m])),y=e;v<f;++v)(y=Gi(g>0?p[v]+" "+b:qi(b,/&\f/g,p[v])))&&(s[h++]=y);return al(e,t,n,0===o?_i:l,s,c,u)}function kl(e,t,n){return al(e,t,n,Vi,Hi(rl),Ki(e,2,-2),0)}function Ol(e,t,n,r){return al(e,t,n,Li,Ki(e,0,r),Ki(e,r+1,-1),r)}function Il(e,t){for(var n="",r=Xi(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function El(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Li:return e.return=e.return||e.value;case Vi:return"";case Fi:return e.return=e.value+"{"+Il(e.children,r)+"}";case _i:e.value=e.props.join(",")}return Ji(n=Il(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pl(e){var t=Xi(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}var Nl=function(e,t,n){for(var r=0,o=0;r=o,o=cl(),38===r&&12===o&&(t[n]=1),!pl(o);)sl();return dl(e,nl)},$l=function(e,t){return ml(function(e,t){var n=-1,r=44;do{switch(pl(r)){case 0:38===r&&12===cl()&&(t[n]=1),e[n]+=Nl(nl-1,t,n);break;case 2:e[n]+=gl(r);break;case 4:if(44===r){e[++n]=58===cl()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Hi(r)}}while(r=sl());return e}(fl(e),t))},zl=new WeakMap,Rl=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||zl.get(n))&&!r){zl.set(e,!0);for(var o=[],a=$l(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},Dl=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Tl=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},jl=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Ml=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Al=function(e,t,n){jl(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Ml(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!jl(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ml(e)))};function Vl(e,t){switch(function(e,t){return 45^Yi(e,0)?(((t<<2^Yi(e,0))<<2^Yi(e,1))<<2^Yi(e,2))<<2^Yi(e,3):0}(e,t)){case 5103:return Ai+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ai+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ai+e+Mi+e+ji+e+e;case 6828:case 4268:return Ai+e+ji+e+e;case 6165:return Ai+e+ji+"flex-"+e+e;case 5187:return Ai+e+qi(e,/(\w+).+(:[^]+)/,Ai+"box-$1$2"+ji+"flex-$1$2")+e;case 5443:return Ai+e+ji+"flex-item-"+qi(e,/flex-|-self/,"")+e;case 4675:return Ai+e+ji+"flex-line-pack"+qi(e,/align-content|flex-|-self/,"")+e;case 5548:return Ai+e+ji+qi(e,"shrink","negative")+e;case 5292:return Ai+e+ji+qi(e,"basis","preferred-size")+e;case 6060:return Ai+"box-"+qi(e,"-grow","")+Ai+e+ji+qi(e,"grow","positive")+e;case 4554:return Ai+qi(e,/([^-])(transform)/g,"$1"+Ai+"$2")+e;case 6187:return qi(qi(qi(e,/(zoom-|grab)/,Ai+"$1"),/(image-set)/,Ai+"$1"),e,"")+e;case 5495:case 3959:return qi(e,/(image-set\([^]*)/,Ai+"$1$`$1");case 4968:return qi(qi(e,/(.+:)(flex-)?(.*)/,Ai+"box-pack:$3"+ji+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ai+e+e;case 4095:case 3583:case 4068:case 2532:return qi(e,/(.+)-inline(.+)/,Ai+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ji(e)-1-t>6)switch(Yi(e,t+1)){case 109:if(45!==Yi(e,t+4))break;case 102:return qi(e,/(.+:)(.+)-([^]+)/,"$1"+Ai+"$2-$3$1"+Mi+(108==Yi(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ui(e,"stretch")?Vl(qi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Yi(e,t+1))break;case 6444:switch(Yi(e,Ji(e)-3-(~Ui(e,"!important")&&10))){case 107:return qi(e,":",":"+Ai)+e;case 101:return qi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ai+(45===Yi(e,14)?"inline-":"")+"box$3$1"+Ai+"$2$3$1"+ji+"$2box$3")+e}break;case 5936:switch(Yi(e,t+11)){case 114:return Ai+e+ji+qi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ai+e+ji+qi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ai+e+ji+qi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ai+e+ji+e+e}return e}var _l,Ll,Fl="undefined"!=typeof document,Bl=Fl?void 0:(_l=function(){return s((function(){var e={};return function(t){return e[t]}}))},Ll=new WeakMap,function(e){if(Ll.has(e))return Ll.get(e);var t=_l(e);return Ll.set(e,t),t}),Hl=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Li:e.return=Vl(e.value,e.length);break;case Fi:return Il([il(e,{value:qi(e.value,"@","@"+Ai)})],r);case _i:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Il([il(e,{props:[qi(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Il([il(e,{props:[qi(t,/:(plac\w+)/,":"+Ai+"input-$1")]}),il(e,{props:[qi(t,/:(plac\w+)/,":-moz-$1")]}),il(e,{props:[qi(t,/:(plac\w+)/,ji+"input-$1")]})],r)}return""}))}}],Wl=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(Fl&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Hl;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,a,i={},l=[];Fl&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s,c=[Rl,Dl];if("production"!==process.env.NODE_ENV&&c.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=t.parent?t.parent.children:r,i=a.length-1;i>=0;i--){var l=a[i];if(l.line<t.line)break;if(l.column<t.column){if(Tl(l))return;break}}o.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return v.compat}}),Al),Fl){var u,d=[El,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==Vi&&u.insert(e.value+"{}"))}:(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=Pl(c.concat(r,d));a=function(e,t,n,r){u=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(u={insert:function(e){n.insert(e+t.map)}}),function(e){Il(wl(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[El],m=Pl(c.concat(r,f)),g=Bl(r)(t),h=function(e,t){var n=t.name;return void 0===g[n]&&(g[n]=function(e){return Il(wl(e),m)}(e?e+"{"+t.styles+"}":t.styles)),g[n]};a=function(e,t,n,r){var o=t.name,a=h(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?a+t.map:a):r?void(v.inserted[o]=a):a}}var v={key:t,sheet:new Ti({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return v.sheet.hydrate(l),v},Gl=La(),ql={};ql[Gl.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ql[Gl.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Ul="undefined"!=typeof document;function Yl(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Kl=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Ul&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Jl=function(e,t,n){Kl(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",a=t;do{var i=e.insert(t===a?"."+r:"",a,e.sheet,!0);Ul||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!Ul&&0!==o.length)return o}};var Xl="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Ql="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Zl=/[A-Z]|^ms/g,es=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ts=function(e){return 45===e.charCodeAt(1)},ns=function(e){return null!=e&&"boolean"!=typeof e},rs=s((function(e){return ts(e)?e:e.replace(Zl,"-$&").toLowerCase()})),os=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(es,(function(e,t,n){return ms={name:t,styles:n,next:ms},t}))}return 1===ce[e]||ts(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var as=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,is=["normal","none","initial","inherit","unset"],ls=os,ss=/^-ms-/,cs=/-(.)/g,us={};os=function(e,t){if("content"===e&&("string"!=typeof t||-1===is.indexOf(t)&&!as.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=ls(e,t);return""===n||ts(e)||-1===e.indexOf("-")||void 0!==us[e]||(us[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(ss,"ms-").replace(cs,(function(e,t){return t.toUpperCase()}))+"?")),n}}var ds="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ps(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(ds);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ms={name:n.name,styles:n.styles,next:ms},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ms={name:r.name,styles:r.styles,next:ms},r=r.next;var o=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(o+=n.map),o}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ps(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":ns(i)&&(r+=rs(a)+":"+os(a,i)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error(ds);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=ps(e,t,i);switch(a){case"animation":case"animationName":r+=rs(a)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error(Ql),r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)ns(i[s])&&(r+=rs(a)+":"+os(a,i[s])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=ms,i=n(e);return ms=a,ps(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],s=n.replace(es,(function(e,t,n){var r="animation"+l.length;return l.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}}if(null==t)return n;var c=t[n];return void 0!==c?c:n}var fs,ms,gs=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(fs=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var hs=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ms=void 0;var a,i=e[0];null==i||void 0===i.raw?(r=!1,o+=ps(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(Xl),o+=i[0]);for(var l=1;l<e.length;l++)o+=ps(n,t,e[l]),r&&("production"!==process.env.NODE_ENV&&void 0===i[l]&&console.error(Xl),o+=i[l]);"production"!==process.env.NODE_ENV&&(o=o.replace(fs,(function(e){return a=e,""}))),gs.lastIndex=0;for(var s,c="";null!==(s=gs.exec(o));)c+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:o,map:a,next:ms,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:o,next:ms}},vs="undefined"!=typeof document,bs=function(e){return e()},ys=!!o.useInsertionEffect&&o.useInsertionEffect,xs=vs&&ys||bs,ws=ys||o.useLayoutEffect,Ss="undefined"!=typeof document,Cs={}.hasOwnProperty,ks=o.createContext("undefined"!=typeof HTMLElement?Wl({key:"css"}):null);"production"!==process.env.NODE_ENV&&(ks.displayName="EmotionCacheContext"),ks.Provider;var Os=function(e){return t.forwardRef((function(n,r){var o=t.useContext(ks);return e(n,o,r)}))};Ss||(Os=function(e){return function(n){var r=t.useContext(ks);return null===r?(r=Wl({key:"css"}),o.createElement(ks.Provider,{value:r},e(n,r))):e(n,r)}});var Is=o.createContext({});"production"!==process.env.NODE_ENV&&(Is.displayName="EmotionThemeContext");var Es="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ps="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Ns=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Kl(t,n,r);var a=xs((function(){return Jl(t,n,r)}));if(!Ss&&void 0!==a){for(var i,l=n.name,s=n.next;void 0!==s;)l+=" "+s.name,s=s.next;return o.createElement("style",((i={})["data-emotion"]=t.key+" "+l,i.dangerouslySetInnerHTML={__html:a},i.nonce=t.sheet.nonce,i))}return null},$s=Os((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var a=e[Es],i=[r],l="";"string"==typeof e.className?l=Yl(t.registered,i,e.className):null!=e.className&&(l=e.className+" ");var s=hs(i,void 0,o.useContext(Is));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var c=e[Ps];c&&(s=hs([s,"label:"+c+";"]))}l+=t.key+"-"+s.name;var u={};for(var d in e)!Cs.call(e,d)||"css"===d||d===Es||"production"!==process.env.NODE_ENV&&d===Ps||(u[d]=e[d]);return u.ref=n,u.className=l,o.createElement(o.Fragment,null,o.createElement(Ns,{cache:t,serialized:s,isStringTag:"string"==typeof a}),o.createElement(a,u))}));"production"!==process.env.NODE_ENV&&($s.displayName="EmotionCssPropInternal");var zs=!1,Rs=Os((function(e,t){"production"===process.env.NODE_ENV||zs||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),zs=!0);var n=e.styles,r=hs([n],void 0,o.useContext(Is));if(!Ss){for(var a,i=r.name,l=r.styles,s=r.next;void 0!==s;)i+=" "+s.name,l+=s.styles,s=s.next;var c=!0===t.compat,u=t.insert("",{name:i,styles:l},t.sheet,c);return c?null:o.createElement("style",((a={})["data-emotion"]=t.key+"-global "+i,a.dangerouslySetInnerHTML={__html:u},a.nonce=t.sheet.nonce,a))}var d=o.useRef();return ws((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),d.current=[n,o],function(){n.flush()}}),[t]),ws((function(){var e=d.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Jl(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function Ds(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return hs(t)}"production"!==process.env.NODE_ENV&&(Rs.displayName="EmotionGlobal");var Ts=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var l in"production"!==process.env.NODE_ENV&&void 0!==a.styles&&void 0!==a.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="",a)a[l]&&l&&(i&&(i+=" "),i+=l);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};var js=function(e){var t,n=e.cache,r=e.serializedArr,a=xs((function(){for(var e="",t=0;t<r.length;t++){var o=Jl(n,r[t],!1);Ss||void 0===o||(e+=o)}if(!Ss)return e}));return Ss||0===a.length?null:o.createElement("style",((t={})["data-emotion"]=n.key+" "+r.map((function(e){return e.name})).join(" "),t.dangerouslySetInnerHTML={__html:a},t.nonce=n.sheet.nonce,t))},Ms=Os((function(e,t){var n=!1,r=[],a=function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];var i=hs(o,t.registered);return r.push(i),Kl(t,i,!1),t.key+"-"+i.name},i={css:a,cx:function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(e,t,n){var r=[],o=Yl(e,r,n);return r.length<2?n:o+t(r)}(t.registered,a,Ts(r))},theme:o.useContext(Is)},l=e.children(i);return n=!0,o.createElement(o.Fragment,null,o.createElement(js,{cache:t,serializedArr:r}),l)}));if("production"!==process.env.NODE_ENV&&(Ms.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var As="undefined"!=typeof document,Vs="undefined"!=typeof jest||"undefined"!=typeof vi;if(As&&!Vs){var _s="undefined"!=typeof globalThis?globalThis:As?window:global,Ls="__EMOTION_REACT_"+"11.11.4".split(".")[0]+"__";_s[Ls]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),_s[Ls]=!0}}var Fs=u,Bs=function(e){return"theme"!==e},Hs=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Fs:Bs},Ws=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Gs="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",qs="undefined"!=typeof document,Us=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Kl(t,n,r);var a=xs((function(){return Jl(t,n,r)}));if(!qs&&void 0!==a){for(var i,l=n.name,s=n.next;void 0!==s;)l+=" "+s.name,s=s.next;return o.createElement("style",((i={})["data-emotion"]=t.key+" "+l,i.dangerouslySetInnerHTML={__html:a},i.nonce=t.sheet.nonce,i))}return null},Ys=function e(t,n){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,a,i=t.__emotion_real===t,l=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,a=n.target);var s=Ws(t,n,i),c=s||Hs(l),u=!c("as");return function(){var d=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{"production"!==process.env.NODE_ENV&&void 0===d[0][0]&&console.error(Gs),p.push(d[0][0]);for(var f=d.length,m=1;m<f;m++)"production"!==process.env.NODE_ENV&&void 0===d[0][m]&&console.error(Gs),p.push(d[m],d[0][m])}var g=Os((function(e,t,n){var r=u&&e.as||l,i="",d=[],f=e;if(null==e.theme){for(var m in f={},e)f[m]=e[m];f.theme=o.useContext(Is)}"string"==typeof e.className?i=Yl(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var g=hs(p.concat(d),t.registered,f);i+=t.key+"-"+g.name,void 0!==a&&(i+=" "+a);var h=u&&void 0===s?Hs(r):c,v={};for(var b in e)u&&"as"===b||h(b)&&(v[b]=e[b]);return v.className=i,v.ref=n,o.createElement(o.Fragment,null,o.createElement(Us,{cache:t,serialized:g,isStringTag:"string"==typeof r}),o.createElement(r,v))}));return g.displayName=void 0!==r?r:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=l,g.__emotion_styles=p,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),g.withComponent=function(t,r){return e(t,Di({},n,r,{shouldForwardProp:Ws(g,r,!0)})).apply(void 0,p)},g}}.bind();function Ks(t){const{styles:n,defaultTheme:r={}}=t,o="function"==typeof n?e=>{return n(null==(t=e)||0===Object.keys(t).length?r:e);var t}:n;return e.jsx(Rs,{styles:o})}
|
|
124
|
+
/**
|
|
125
|
+
* @mui/styled-engine v5.15.14
|
|
126
|
+
*
|
|
127
|
+
* @license MIT
|
|
128
|
+
* This source code is licensed under the MIT license found in the
|
|
129
|
+
* LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/
|
|
131
|
+
function Js(e,t){const n=Ys(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const r="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...t)}:n}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Ys[e]=Ys(e)})),"production"!==process.env.NODE_ENV&&(Ks.propTypes={defaultTheme:Ga.object,styles:Ga.oneOfType([Ga.array,Ga.string,Ga.object,Ga.func])});function Xs(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Qs(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Zs(e){if(!Qs(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Zs(e[n])})),t}function ec(e,t,n={clone:!0}){const r=n.clone?Di({},e):e;return Qs(e)&&Qs(t)&&Object.keys(t).forEach((o=>{Qs(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Qs(e[o])?r[o]=ec(e[o],t[o],n):n.clone?r[o]=Qs(t[o])?Zs(t[o]):t[o]:r[o]=t[o]})),r}const tc=["values","unit","step"],nc=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Di({},e,{[t.key]:t.val})),{})};function rc(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Xs(e,tc),a=nc(t),i=Object.keys(a);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return Di({keys:i,values:a,up:l,down:s,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const oc={borderRadius:4},ac="production"!==process.env.NODE_ENV?Ga.oneOfType([Ga.number,Ga.string,Ga.object,Ga.array]):{};function ic(e,t){return t?ec(e,t,{clone:!1}):e}const lc={xs:0,sm:600,md:900,lg:1200,xl:1536},sc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${lc[e]}px)`};function cc(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||sc;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||sc;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||lc).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function uc(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":Ri(7));return e.charAt(0).toUpperCase()+e.slice(1)}function dc(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function pc(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:dc(e,n)||r,t&&(o=t(o,r,e)),o}function fc(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=dc(e.theme,r)||{};return cc(e,a,(e=>{let r=pc(i,o,e);return e===r&&"string"==typeof e&&(r=pc(i,o,`${t}${"default"===e?"":uc(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes="production"!==process.env.NODE_ENV?{[t]:ac}:{},a.filterProps=[t],a}const mc={m:"margin",p:"padding"},gc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vc=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!hc[e])return[e];e=hc[e]}const[t,n]=e.split(""),r=mc[t],o=gc[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),bc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],xc=[...bc,...yc];function wc(e,t,n,r){var o;const a=null!=(o=dc(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),a*e):Array.isArray(a)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>a.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${e} > ${a.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),a[e]):"function"==typeof a?a:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Sc(e){return wc(e,"spacing",8,"spacing")}function Cc(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function kc(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Cc(t,n),e)),{})}(vc(n),r);return cc(e,e[n],o)}function Oc(e,t){const n=Sc(e.theme);return Object.keys(e).map((r=>kc(e,t,r,n))).reduce(ic,{})}function Ic(e){return Oc(e,bc)}function Ec(e){return Oc(e,yc)}function Pc(e=8){if(e.mui)return e;const t=Sc({spacing:e}),n=(...e)=>{"production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`));return(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}function Nc(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?ic(n,t[r](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function $c(e){return"number"!=typeof e?e:`${e}px solid`}function zc(e,t){return fc({prop:e,themeKey:"borders",transform:t})}Ic.propTypes="production"!==process.env.NODE_ENV?bc.reduce(((e,t)=>(e[t]=ac,e)),{}):{},Ic.filterProps=bc,Ec.propTypes="production"!==process.env.NODE_ENV?yc.reduce(((e,t)=>(e[t]=ac,e)),{}):{},Ec.filterProps=yc,"production"===process.env.NODE_ENV||xc.reduce(((e,t)=>(e[t]=ac,e)),{});const Rc=zc("border",$c),Dc=zc("borderTop",$c),Tc=zc("borderRight",$c),jc=zc("borderBottom",$c),Mc=zc("borderLeft",$c),Ac=zc("borderColor"),Vc=zc("borderTopColor"),_c=zc("borderRightColor"),Lc=zc("borderBottomColor"),Fc=zc("borderLeftColor"),Bc=zc("outline",$c),Hc=zc("outlineColor"),Wc=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=wc(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:Cc(t,e)});return cc(e,e.borderRadius,n)}return null};Wc.propTypes="production"!==process.env.NODE_ENV?{borderRadius:ac}:{},Wc.filterProps=["borderRadius"],Nc(Rc,Dc,Tc,jc,Mc,Ac,Vc,_c,Lc,Fc,Wc,Bc,Hc);const Gc=e=>{if(void 0!==e.gap&&null!==e.gap){const t=wc(e.theme,"spacing",8,"gap"),n=e=>({gap:Cc(t,e)});return cc(e,e.gap,n)}return null};Gc.propTypes="production"!==process.env.NODE_ENV?{gap:ac}:{},Gc.filterProps=["gap"];const qc=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=wc(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:Cc(t,e)});return cc(e,e.columnGap,n)}return null};qc.propTypes="production"!==process.env.NODE_ENV?{columnGap:ac}:{},qc.filterProps=["columnGap"];const Uc=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=wc(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:Cc(t,e)});return cc(e,e.rowGap,n)}return null};Uc.propTypes="production"!==process.env.NODE_ENV?{rowGap:ac}:{},Uc.filterProps=["rowGap"];function Yc(e,t){return"grey"===t?t:e}Nc(Gc,qc,Uc,fc({prop:"gridColumn"}),fc({prop:"gridRow"}),fc({prop:"gridAutoFlow"}),fc({prop:"gridAutoColumns"}),fc({prop:"gridAutoRows"}),fc({prop:"gridTemplateColumns"}),fc({prop:"gridTemplateRows"}),fc({prop:"gridTemplateAreas"}),fc({prop:"gridArea"}));function Kc(e){return e<=1&&0!==e?100*e+"%":e}Nc(fc({prop:"color",themeKey:"palette",transform:Yc}),fc({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yc}),fc({prop:"backgroundColor",themeKey:"palette",transform:Yc}));const Jc=fc({prop:"width",transform:Kc}),Xc=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||lc[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Kc(t)}};return cc(e,e.maxWidth,t)}return null};Xc.filterProps=["maxWidth"];const Qc=fc({prop:"minWidth",transform:Kc}),Zc=fc({prop:"height",transform:Kc}),eu=fc({prop:"maxHeight",transform:Kc}),tu=fc({prop:"minHeight",transform:Kc});fc({prop:"size",cssProperty:"width",transform:Kc}),fc({prop:"size",cssProperty:"height",transform:Kc});Nc(Jc,Xc,Qc,Zc,eu,tu,fc({prop:"boxSizing"}));const nu={border:{themeKey:"borders",transform:$c},borderTop:{themeKey:"borders",transform:$c},borderRight:{themeKey:"borders",transform:$c},borderBottom:{themeKey:"borders",transform:$c},borderLeft:{themeKey:"borders",transform:$c},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$c},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wc},color:{themeKey:"palette",transform:Yc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yc},backgroundColor:{themeKey:"palette",transform:Yc},p:{style:Ec},pt:{style:Ec},pr:{style:Ec},pb:{style:Ec},pl:{style:Ec},px:{style:Ec},py:{style:Ec},padding:{style:Ec},paddingTop:{style:Ec},paddingRight:{style:Ec},paddingBottom:{style:Ec},paddingLeft:{style:Ec},paddingX:{style:Ec},paddingY:{style:Ec},paddingInline:{style:Ec},paddingInlineStart:{style:Ec},paddingInlineEnd:{style:Ec},paddingBlock:{style:Ec},paddingBlockStart:{style:Ec},paddingBlockEnd:{style:Ec},m:{style:Ic},mt:{style:Ic},mr:{style:Ic},mb:{style:Ic},ml:{style:Ic},mx:{style:Ic},my:{style:Ic},margin:{style:Ic},marginTop:{style:Ic},marginRight:{style:Ic},marginBottom:{style:Ic},marginLeft:{style:Ic},marginX:{style:Ic},marginY:{style:Ic},marginInline:{style:Ic},marginInlineStart:{style:Ic},marginInlineEnd:{style:Ic},marginBlock:{style:Ic},marginBlockStart:{style:Ic},marginBlockEnd:{style:Ic},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Gc},rowGap:{style:Uc},columnGap:{style:qc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Kc},maxWidth:{style:Xc},minWidth:{transform:Kc},height:{transform:Kc},maxHeight:{transform:Kc},minHeight:{transform:Kc},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const ru=function(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:s,style:c}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=dc(n,l)||{};if(c)return c(o);return cc(o,t,(t=>{let n=pc(u,s,t);return t===n&&"string"==typeof t&&(n=pc(u,s,`${e}${"default"===t?"":uc(t)}`,t)),!1===i?n:{[i]:n}}))}return function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=null!=(r=a.unstable_sxConfig)?r:nu;function l(n){let r=n;if("function"==typeof n)r=n(a);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(a.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],c=a,"function"==typeof l?l(c):l);var l,c;if(null!=o)if("object"==typeof o)if(i[n])s=ic(s,e(n,o,a,i));else{const e=cc({theme:a},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=ic(s,e):s[n]=t({sx:o,theme:a})}else s=ic(s,e(n,o,a,i))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();function ou(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}ru.filterProps=["sx"];const au=["breakpoints","palette","spacing","shape"];function iu(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Xs(e,au),l=rc(n),s=Pc(o);let c=ec({breakpoints:l,direction:"ltr",components:{},palette:Di({mode:"light"},r),spacing:s,shape:Di({},oc,a)},i);return c.applyStyles=ou,c=t.reduce(((e,t)=>ec(e,t)),c),c.unstable_sxConfig=Di({},nu,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return ru({sx:e,theme:this})},c}function lu(e=null){const t=o.useContext(Is);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const su=iu();function cu(e=su){return lu(e)}const uu=["sx"],du=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:nu;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function pu(e){const{sx:t}=e,n=Xs(e,uu),{systemProps:r,otherProps:o}=du(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Qs(n)?Di({},r,n):r}:Di({},r,t),Di({},o,{sx:a})}const fu=e=>e,mu=(()=>{let e=fu;return{configure(t){e=t},generate:t=>e(t),reset(){e=fu}}})();function gu(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=gu(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function hu(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gu(e))&&(r&&(r+=" "),r+=t);return r}const vu=["className","component"];const bu={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 yu(e,t,n="Mui"){const r=bu[t];return r?`${n}-${r}`:`${mu.generate(e)}-${t}`}function xu(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=yu(e,t,n)})),r}var wu,Su={exports:{}},Cu={};var ku,Ou={};
|
|
132
|
+
/**
|
|
133
|
+
* @license React
|
|
134
|
+
* react-is.development.js
|
|
135
|
+
*
|
|
136
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the MIT license found in the
|
|
139
|
+
* LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/"production"===process.env.NODE_ENV?Su.exports=function(){if(wu)return Cu;wu=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case a:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case c:case f:case p:case i:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),Cu.ContextConsumer=l,Cu.ContextProvider=i,Cu.Element=t,Cu.ForwardRef=c,Cu.Fragment=r,Cu.Lazy=f,Cu.Memo=p,Cu.Portal=n,Cu.Profiler=a,Cu.StrictMode=o,Cu.Suspense=u,Cu.SuspenseList=d,Cu.isAsyncMode=function(){return!1},Cu.isConcurrentMode=function(){return!1},Cu.isContextConsumer=function(e){return g(e)===l},Cu.isContextProvider=function(e){return g(e)===i},Cu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Cu.isForwardRef=function(e){return g(e)===c},Cu.isFragment=function(e){return g(e)===r},Cu.isLazy=function(e){return g(e)===f},Cu.isMemo=function(e){return g(e)===p},Cu.isPortal=function(e){return g(e)===n},Cu.isProfiler=function(e){return g(e)===a},Cu.isStrictMode=function(e){return g(e)===o},Cu.isSuspense=function(e){return g(e)===u},Cu.isSuspenseList=function(e){return g(e)===d},Cu.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Cu.typeOf=g,Cu}():Su.exports=(ku||(ku=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var g=e.type;switch(g){case r:case a:case o:case u:case d:return g;default:var h=g&&g.$$typeof;switch(h){case s:case l:case c:case f:case p:case i:return h;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var h=l,v=i,b=t,y=c,x=r,w=f,S=p,C=n,k=a,O=o,I=u,E=d,P=!1,N=!1;Ou.ContextConsumer=h,Ou.ContextProvider=v,Ou.Element=b,Ou.ForwardRef=y,Ou.Fragment=x,Ou.Lazy=w,Ou.Memo=S,Ou.Portal=C,Ou.Profiler=k,Ou.StrictMode=O,Ou.Suspense=I,Ou.SuspenseList=E,Ou.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Ou.isConcurrentMode=function(e){return N||(N=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Ou.isContextConsumer=function(e){return g(e)===l},Ou.isContextProvider=function(e){return g(e)===i},Ou.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ou.isForwardRef=function(e){return g(e)===c},Ou.isFragment=function(e){return g(e)===r},Ou.isLazy=function(e){return g(e)===f},Ou.isMemo=function(e){return g(e)===p},Ou.isPortal=function(e){return g(e)===n},Ou.isProfiler=function(e){return g(e)===a},Ou.isStrictMode=function(e){return g(e)===o},Ou.isSuspense=function(e){return g(e)===u},Ou.isSuspenseList=function(e){return g(e)===d},Ou.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Ou.typeOf=g}()),Ou);var Iu=Su.exports;const Eu=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Pu(e,t=""){return e.displayName||e.name||function(e){const t=`${e}`.match(Eu);return t&&t[1]||""}(e)||t}function Nu(e,t,n){const r=Pu(t);return e.displayName||(""!==r?`${n}(${r})`:n)}const $u=["ownerState"],zu=["variants"],Ru=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Du(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Tu=iu(),ju=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Mu({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Au(e){return e?(t,n)=>n[e]:null}function Vu(e,t){let{ownerState:n}=t,r=Xs(t,$u);const o="function"==typeof e?e(Di({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Vu(e,Di({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Xs(o,zu);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Di({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Di({ownerState:n},r,n)):e.style))})),t}return o}function _u(e={}){const{themeId:t,defaultTheme:n=Tu,rootShouldForwardProp:r=Du,slotShouldForwardProp:o=Du}=e,a=e=>ru(Di({},e,{theme:Mu(Di({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Au(ju(s))}=i,p=Xs(i,Ru),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,m=u||!1;let g;"production"!==process.env.NODE_ENV&&l&&(g=`${l}-${ju(s||"Root")}`);let h=Du;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const v=Js(e,Di({shouldForwardProp:h,label:g},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||Qs(e)?r=>Vu(e,Di({},r,{theme:Mu({theme:r.theme,defaultTheme:n,themeId:t})})):e,y=(r,...o)=>{let i=b(r);const c=o?o.map(b):[];l&&d&&c.push((e=>{const r=Mu(Di({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=Vu(n,Di({},e,{theme:r}))})),d(e,a)})),l&&!f&&c.push((e=>{var r;const o=Mu(Di({},e,{defaultTheme:n,themeId:t}));return Vu({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Di({},e,{theme:o}))})),m||c.push(a);const u=c.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const p=v(i,...c);if("production"!==process.env.NODE_ENV){let t;l&&(t=`${l}${uc(s||"")}`),void 0===t&&(t=`Styled(${function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Pu(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Iu.ForwardRef:return Nu(e,e.render,"ForwardRef");case Iu.Memo:return Nu(e,e.type,"memo");default:return}}}(e)})`),p.displayName=t}return e.muiName&&(p.muiName=e.muiName),p};return v.withConfig&&(y.withConfig=v.withConfig),y}}const Lu=_u();function Fu(e,t){const n=Di({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Di({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?o&&Object.keys(o)?(n[r]=Di({},a),Object.keys(o).forEach((e=>{n[r][e]=Fu(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Bu(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Fu(t.components[n].defaultProps,r):r}function Hu({props:e,name:t,defaultTheme:n,themeId:r}){let o=cu(n);r&&(o=o[r]||o);return Bu({theme:o,name:t,props:e})}const Wu="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function Gu(e){if(e.type)return e;if("#"===e.charAt(0))return Gu(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ri(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${r}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ri(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const qu=e=>{const t=Gu(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function Uu(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function Yu(e,t,n,r,o){const a=e[t],i=o||t;if(null==a||"undefined"==typeof window)return null;let l;const s=a.type;return"function"!=typeof s||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(s)||(l="Did you accidentally use a plain function component for an element instead?"),void 0!==l?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ku=Uu(Ga.element,Yu);Ku.isRequired=Uu(Ga.element.isRequired,Yu);const Ju="exact-prop: ";function Xu(e){return"production"===process.env.NODE_ENV?e:Di({},e,{[Ju]:t=>{const n=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return n.length>0?new Error(`The following props are not supported: ${n.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}function Qu(e,t,n,r,o){if("production"===process.env.NODE_ENV)return null;const a=e[t],i=o||t;return null==a?null:a&&1!==a.nodeType?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const Zu=Ga.oneOfType([Ga.func,Ga.object]);function ed(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function td(e,t){var n,r;return o.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}function nd(e){return e&&e.ownerDocument||document}function rd(e){return nd(e).defaultView||window}function od(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let ad=0;const id=o["useId".toString()];function ld(e){if(void 0!==id){const t=id();return null!=e?e:t}return function(e){const[t,n]=o.useState(e),r=e||t;return o.useEffect((()=>{null==t&&(ad+=1,n(`mui-${ad}`))}),[t]),r}(e)}function sd({controlled:e,default:t,name:n,state:r="value"}){const{current:a}=o.useRef(void 0!==e),[i,l]=o.useState(t),s=a?e:i;if("production"!==process.env.NODE_ENV){o.useEffect((()=>{a!==(void 0!==e)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${r} state of ${n} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[r,n,e]);const{current:i}=o.useRef(t);o.useEffect((()=>{a||Object.is(i,t)||console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join("\n"))}),[JSON.stringify(t)])}return[s,o.useCallback((e=>{a||l(e)}),[])]}function cd(e){const t=o.useRef(e);return Wu((()=>{t.current=e})),o.useRef(((...e)=>(0,t.current)(...e))).current}function ud(...e){return o.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{od(e,t)}))}),e)}class dd{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new dd}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}let pd=!0,fd=!1;const md=new dd,gd={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function hd(e){e.metaKey||e.altKey||e.ctrlKey||(pd=!0)}function vd(){pd=!1}function bd(){"hidden"===this.visibilityState&&fd&&(pd=!0)}function yd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return pd||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!gd[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function xd(){const e=o.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",hd,!0),t.addEventListener("mousedown",vd,!0),t.addEventListener("pointerdown",vd,!0),t.addEventListener("touchstart",vd,!0),t.addEventListener("visibilitychange",bd,!0))}),[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!yd(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(fd=!0,md.start(100,(()=>{fd=!1})),t.current=!1,!0)},ref:e}}const wd=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function Sd(e,t,n,r){const o=e[t];if(null==o||!wd(o)){const e=function(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return null===e?"null":e.constructor.name;default:return t}}(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${e}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Cd(e,t,...n){return void 0===e[t]?null:Sd(e,t,...n)}function kd(){return null}Cd.isRequired=Sd,kd.isRequired=kd;var Od="production"===process.env.NODE_ENV?kd:Cd;function Id(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const Ed=o.createContext(null);function Pd(){const e=o.useContext(Ed);return"production"!==process.env.NODE_ENV&&o.useDebugValue(e),e}"production"!==process.env.NODE_ENV&&(Ed.displayName="ThemeContext");var Nd="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function $d(t){const{children:n,theme:r}=t,a=Pd();"production"!==process.env.NODE_ENV&&null===a&&"function"==typeof r&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const i=o.useMemo((()=>{const e=null===a?r:function(e,t){if("function"==typeof t){const n=t(e);return"production"!==process.env.NODE_ENV&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join("\n"))),n}return Di({},e,t)}(a,r);return null!=e&&(e[Nd]=null!==a),e}),[r,a]);return e.jsx(Ed.Provider,{value:i,children:n})}"production"!==process.env.NODE_ENV&&($d.propTypes={children:Ga.node,theme:Ga.oneOfType([Ga.object,Ga.func]).isRequired}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&($d.propTypes=Xu($d.propTypes));const zd=["value"],Rd=o.createContext();function Dd(t){let{value:n}=t,r=Xs(t,zd);return e.jsx(Rd.Provider,Di({value:null==n||n},r))}"production"!==process.env.NODE_ENV&&(Dd.propTypes={children:Ga.node,value:Ga.bool});const Td=o.createContext(void 0);function jd({value:t,children:n}){return e.jsx(Td.Provider,{value:t,children:n})}"production"!==process.env.NODE_ENV&&(jd.propTypes={children:Ga.node,value:Ga.object});const Md={};function Ad(e,t,n,r=!1){return o.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),i=e?Di({},t,{[e]:a}):a;return r?()=>i:i}return Di({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Vd(t){const{children:n,theme:r,themeId:o}=t,a=lu(Md),i=Pd()||Md;"production"!==process.env.NODE_ENV&&(null===a&&"function"==typeof r||o&&a&&!a[o]&&"function"==typeof r)&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const l=Ad(o,a,r),s=Ad(o,i,r,!0),c="rtl"===l.direction;return e.jsx($d,{theme:s,children:e.jsx(Is.Provider,{value:l,children:e.jsx(Dd,{value:c,children:e.jsx(jd,{value:null==l?void 0:l.components,children:n})})})})}"production"!==process.env.NODE_ENV&&(Vd.propTypes={children:Ga.node,theme:Ga.oneOfType([Ga.func,Ga.object]).isRequired,themeId:Ga.string}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(Vd.propTypes=Xu(Vd.propTypes));const _d="mode",Ld="color-scheme",Fd="data-color-scheme";function Bd(e){if("undefined"!=typeof window&&"system"===e){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}function Hd(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function Wd(e,t){if("undefined"==typeof window)return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch(e){}return n||t}function Gd(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:a=[],modeStorageKey:i=_d,colorSchemeStorageKey:l=Ld,storageWindow:s=("undefined"==typeof window?void 0:window)}=e,c=a.join(","),[u,d]=o.useState((()=>{const e=Wd(i,t),o=Wd(`${l}-light`,n),a=Wd(`${l}-dark`,r);return{mode:e,systemMode:Bd(e),lightColorScheme:o,darkColorScheme:a}})),p=function(e){return Hd(e,(t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0))}(u),f=o.useCallback((e=>{d((n=>{if(e===n.mode)return n;const r=null!=e?e:t;try{localStorage.setItem(i,r)}catch(e){}return Di({},n,{mode:r,systemMode:Bd(r)})}))}),[i,t]),m=o.useCallback((e=>{e?"string"==typeof e?e&&!c.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):d((t=>{const n=Di({},t);return Hd(t,(t=>{try{localStorage.setItem(`${l}-${t}`,e)}catch(e){}"light"===t&&(n.lightColorScheme=e),"dark"===t&&(n.darkColorScheme=e)})),n})):d((t=>{const o=Di({},t),a=null===e.light?n:e.light,i=null===e.dark?r:e.dark;if(a)if(c.includes(a)){o.lightColorScheme=a;try{localStorage.setItem(`${l}-light`,a)}catch(e){}}else console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`);if(i)if(c.includes(i)){o.darkColorScheme=i;try{localStorage.setItem(`${l}-dark`,i)}catch(e){}}else console.error(`\`${i}\` does not exist in \`theme.colorSchemes\`.`);return o})):d((e=>{try{localStorage.setItem(`${l}-light`,n),localStorage.setItem(`${l}-dark`,r)}catch(e){}return Di({},e,{lightColorScheme:n,darkColorScheme:r})}))}),[c,l,n,r]),g=o.useCallback((e=>{"system"===u.mode&&d((t=>{const n=null!=e&&e.matches?"dark":"light";return t.systemMode===n?t:Di({},t,{systemMode:n})}))}),[u.mode]),h=o.useRef(g);return h.current=g,o.useEffect((()=>{const e=(...e)=>h.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}}),[]),o.useEffect((()=>{if(s){const e=e=>{const n=e.newValue;"string"!=typeof e.key||!e.key.startsWith(l)||n&&!c.match(n)||(e.key.endsWith("light")&&m({light:n}),e.key.endsWith("dark")&&m({dark:n})),e.key!==i||n&&!["light","dark","system"].includes(n)||f(n||t)};return s.addEventListener("storage",e),()=>{s.removeEventListener("storage",e)}}}),[m,f,i,l,c,t,s]),Di({},u,{colorScheme:p,setMode:f,setColorScheme:m})}const qd=["colorSchemes","components","generateCssVars","cssVarPrefix"];function Ud(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Yd=(e,t,n,r=[])=>{let o=e;t.forEach(((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])}))},Kd=(e,t,n)=>{!function e(r,o=[],a=[]){Object.entries(r).forEach((([r,i])=>{(!n||n&&!n([...o,r]))&&null!=i&&("object"==typeof i&&Object.keys(i).length>0?e(i,[...o,r],Array.isArray(i)?[...a,r]:a):t([...o,r],i,a))}))}(e)},Jd=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some((t=>e.includes(t))))return t;return e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function Xd(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return Kd(e,((e,t,l)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`;Object.assign(o,{[r]:Jd(e,t)}),Yd(a,e,`var(${r})`,l),Yd(i,e,`var(${r}, ${t})`,l)}}),(e=>"vars"===e[0])),{css:o,vars:a,varsWithDefaults:i}}function Qd(e){return Qd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qd(e)}function Zd(e){var t=function(e,t){if("object"!=Qd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Qd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Qd(t)?t:t+""}const ep=["colorSchemes","components","defaultColorScheme"];const tp=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach(((t,r)=>{n(((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)}),t)}));else if(t&&"object"==typeof t){(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,a=Object.keys(t),o.filter((e=>a.includes(e))))).forEach((o=>{if(-1!==e.keys.indexOf(o)){const a=t[o];void 0!==a&&n(((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n}),a)}}))}else"number"!=typeof t&&"string"!=typeof t||n(((e,t)=>{Object.assign(e,t)}),t);var o,a};function np(e){return e?`Level${e}`:""}function rp(e){return e.unstable_level>0&&e.container}function op(e){return function(t){return`var(--Grid-${t}Spacing${np(e.unstable_level)})`}}function ap(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${np(e.unstable_level-1)})`}}function ip(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${np(e.unstable_level-1)})`}const lp=({theme:e,ownerState:t})=>{const n=op(t),r={};return tp(e.breakpoints,t.gridSize,((e,o)=>{let a={};!0===o&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===o&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof o&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / ${ip(t)}${rp(t)?` + ${n("column")}`:""})`}),e(r,a)})),r},sp=({theme:e,ownerState:t})=>{const n={};return tp(e.breakpoints,t.gridOffset,((e,r)=>{let o={};"auto"===r&&(o={marginLeft:"auto"}),"number"==typeof r&&(o={marginLeft:0===r?"0px":`calc(100% * ${r} / ${ip(t)})`}),e(n,o)})),n},cp=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=rp(t)?{[`--Grid-columns${np(t.unstable_level)}`]:ip(t)}:{"--Grid-columns":12};return tp(e.breakpoints,t.columns,((e,r)=>{e(n,{[`--Grid-columns${np(t.unstable_level)}`]:r})})),n},up=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=ap(t),r=rp(t)?{[`--Grid-rowSpacing${np(t.unstable_level)}`]:n("row")}:{};return tp(e.breakpoints,t.rowSpacing,((n,o)=>{var a;n(r,{[`--Grid-rowSpacing${np(t.unstable_level)}`]:"string"==typeof o?o:null==(a=e.spacing)?void 0:a.call(e,o)})})),r},dp=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=ap(t),r=rp(t)?{[`--Grid-columnSpacing${np(t.unstable_level)}`]:n("column")}:{};return tp(e.breakpoints,t.columnSpacing,((n,o)=>{var a;n(r,{[`--Grid-columnSpacing${np(t.unstable_level)}`]:"string"==typeof o?o:null==(a=e.spacing)?void 0:a.call(e,o)})})),r},pp=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return tp(e.breakpoints,t.direction,((e,t)=>{e(n,{flexDirection:t})})),n},fp=({ownerState:e})=>{const t=op(e),n=ap(e);return Di({minWidth:0,boxSizing:"border-box"},e.container&&Di({display:"flex",flexWrap:"wrap"},e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||rp(e))&&Di({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},mp=e=>{const t=[];return Object.entries(e).forEach((([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)})),t},gp=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)})),t}return[]},hp=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map((([e,t])=>`direction-${e}-${t}`)):[`direction-xs-${String(e)}`],vp=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],bp=iu(),yp=Lu("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function xp(e){return Hu({props:e,name:"MuiGrid",defaultTheme:bp})}const wp=Di({},nu,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});function Sp(e){var t;return!!e[0].match(/^(typography|variants|breakpoints)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!(null==(t=e[1])||!t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}const Cp=(e,t)=>yu(e,t,"Mui"),kp=(e,t)=>xu(e,t,"Mui"),Op=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},Ip=(e,t,n)=>{const r={};return Object.entries(t||{}).forEach((([t,o])=>{if(t.match(new RegExp(`${e}(color|bg|border)`,"i"))&&o){const e=n?n(t):o;t.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default",r["--Icon-color"]="currentColor"),t.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),t.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),Op(r,t,e)}})),r},Ep=(e,t)=>{let n={};if(t){const{getCssVar:r,palette:o}=t;Object.entries(o).forEach((t=>{const[a,i]=t;(e=>e&&"object"==typeof e&&Object.keys(e).some((e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)})))(i)&&"object"==typeof i&&(n=Di({},n,{[a]:Ip(e,i,(e=>`var(--variant-${e}, ${r(`palette-${a}-${e}`,o[a][e])})`))}))}))}return n.context=Ip(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),n},Pp=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],Np=["colorSchemes"];function $p(e){var t,n,r,o,a,i,l,s,c,u;const d=e||{},{cssVarPrefix:p="joy",breakpoints:f,spacing:m,components:g,variants:h,shouldSkipGeneratingVar:v=Sp}=d,b=Xs(d,Pp),y=((e="joy")=>Ud(e))(p),x={primary:$i.blue,neutral:$i.grey,danger:$i.red,success:$i.green,warning:$i.yellow,common:{white:"#FFF",black:"#000"}},w=e=>{var t;const n=e.split("-"),r=n[1],o=n[2];return y(e,null==(t=x[r])?void 0:t[o])},S=e=>({plainColor:w(`palette-${e}-500`),plainHoverBg:w(`palette-${e}-100`),plainActiveBg:w(`palette-${e}-200`),plainDisabledColor:w("palette-neutral-400"),outlinedColor:w(`palette-${e}-500`),outlinedBorder:w(`palette-${e}-300`),outlinedHoverBg:w(`palette-${e}-100`),outlinedActiveBg:w(`palette-${e}-200`),outlinedDisabledColor:w("palette-neutral-400"),outlinedDisabledBorder:w("palette-neutral-200"),softColor:w(`palette-${e}-700`),softBg:w(`palette-${e}-100`),softHoverBg:w(`palette-${e}-200`),softActiveColor:w(`palette-${e}-800`),softActiveBg:w(`palette-${e}-300`),softDisabledColor:w("palette-neutral-400"),softDisabledBg:w("palette-neutral-50"),solidColor:w("palette-common-white"),solidBg:w(`palette-${e}-500`),solidHoverBg:w(`palette-${e}-600`),solidActiveBg:w(`palette-${e}-700`),solidDisabledColor:w("palette-neutral-400"),solidDisabledBg:w("palette-neutral-100")}),C=e=>({plainColor:w(`palette-${e}-300`),plainHoverBg:w(`palette-${e}-800`),plainActiveBg:w(`palette-${e}-700`),plainDisabledColor:w("palette-neutral-500"),outlinedColor:w(`palette-${e}-200`),outlinedBorder:w(`palette-${e}-700`),outlinedHoverBg:w(`palette-${e}-800`),outlinedActiveBg:w(`palette-${e}-700`),outlinedDisabledColor:w("palette-neutral-500"),outlinedDisabledBorder:w("palette-neutral-800"),softColor:w(`palette-${e}-200`),softBg:w(`palette-${e}-800`),softHoverBg:w(`palette-${e}-700`),softActiveColor:w(`palette-${e}-100`),softActiveBg:w(`palette-${e}-600`),softDisabledColor:w("palette-neutral-500"),softDisabledBg:w("palette-neutral-800"),solidColor:w("palette-common-white"),solidBg:w(`palette-${e}-500`),solidHoverBg:w(`palette-${e}-600`),solidActiveBg:w(`palette-${e}-700`),solidDisabledColor:w("palette-neutral-500"),solidDisabledBg:w("palette-neutral-800")}),k={palette:{mode:"light",primary:Di({},x.primary,S("primary")),neutral:Di({},x.neutral,S("neutral"),{plainColor:w("palette-neutral-700"),plainHoverColor:w("palette-neutral-900"),outlinedColor:w("palette-neutral-700")}),danger:Di({},x.danger,S("danger")),success:Di({},x.success,S("success")),warning:Di({},x.warning,S("warning")),common:{white:"#FFF",black:"#000"},text:{primary:w("palette-neutral-800"),secondary:w("palette-neutral-700"),tertiary:w("palette-neutral-600"),icon:w("palette-neutral-500")},background:{body:w("palette-common-white"),surface:w("palette-neutral-50"),popup:w("palette-common-white"),level1:w("palette-neutral-100"),level2:w("palette-neutral-200"),level3:w("palette-neutral-300"),tooltip:w("palette-neutral-500"),backdrop:`rgba(${y("palette-neutral-darkChannel",qu(x.neutral[900]))} / 0.25)`},divider:`rgba(${y("palette-neutral-mainChannel",qu(x.neutral[500]))} / 0.2)`,focusVisible:w("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},O={palette:{mode:"dark",primary:Di({},x.primary,C("primary")),neutral:Di({},x.neutral,C("neutral"),{plainColor:w("palette-neutral-300"),plainHoverColor:w("palette-neutral-300")}),danger:Di({},x.danger,C("danger")),success:Di({},x.success,C("success")),warning:Di({},x.warning,C("warning")),common:{white:"#FFF",black:"#000"},text:{primary:w("palette-neutral-100"),secondary:w("palette-neutral-300"),tertiary:w("palette-neutral-400"),icon:w("palette-neutral-400")},background:{body:w("palette-common-black"),surface:w("palette-neutral-900"),popup:w("palette-common-black"),level1:w("palette-neutral-800"),level2:w("palette-neutral-700"),level3:w("palette-neutral-600"),tooltip:w("palette-neutral-600"),backdrop:`rgba(${y("palette-neutral-darkChannel",qu(x.neutral[50]))} / 0.25)`},divider:`rgba(${y("palette-neutral-mainChannel",qu(x.neutral[500]))} / 0.16)`,focusVisible:w("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},I='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',E=Di({body:`"Inter", ${y(`fontFamily-fallback, ${I}`)}`,display:`"Inter", ${y(`fontFamily-fallback, ${I}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:I},b.fontFamily),P=Di({sm:300,md:500,lg:600,xl:700},b.fontWeight),N=Di({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},b.fontSize),$=Di({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},b.lineHeight),z=null!=(t=null==(n=b.colorSchemes)||null==(n=n.light)?void 0:n.shadowRing)?t:k.shadowRing,R=null!=(r=null==(o=b.colorSchemes)||null==(o=o.light)?void 0:o.shadowChannel)?r:k.shadowChannel,D=null!=(a=null==(i=b.colorSchemes)||null==(i=i.light)?void 0:i.shadowOpacity)?a:k.shadowOpacity,T={colorSchemes:{light:k,dark:O},fontSize:N,fontFamily:E,fontWeight:P,focus:{thickness:"2px",selector:`&.${Cp("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${y("focus-thickness",null!=(l=null==(s=b.focus)?void 0:s.thickness)?l:"2px")})`,outline:`${y("focus-thickness",null!=(c=null==(u=b.focus)?void 0:u.thickness)?c:"2px")} solid ${y("palette-focusVisible",x.primary[500])}`}},lineHeight:$,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${y("shadowRing",z)}, 0px 1px 2px 0px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,sm:`${y("shadowRing",z)}, 0px 1px 2px 0px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 2px 4px 0px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,md:`${y("shadowRing",z)}, 0px 2px 8px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 6px 12px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,lg:`${y("shadowRing",z)}, 0px 2px 8px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 12px 16px -4px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,xl:`${y("shadowRing",z)}, 0px 2px 8px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 20px 24px -4px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-xl, ${P.xl}`),fontSize:y(`fontSize-xl4, ${N.xl4}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},h2:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-xl, ${P.xl}`),fontSize:y(`fontSize-xl3, ${N.xl3}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},h3:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-lg, ${P.lg}`),fontSize:y(`fontSize-xl2, ${N.xl2}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},h4:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-lg, ${P.lg}`),fontSize:y(`fontSize-xl, ${N.xl}`),lineHeight:y(`lineHeight-md, ${$.md}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},"title-lg":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-lg, ${P.lg}`),fontSize:y(`fontSize-lg, ${N.lg}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),color:y(`palette-text-primary, ${k.palette.text.primary}`)},"title-md":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-md, ${P.md}`),fontSize:y(`fontSize-md, ${N.md}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-primary, ${k.palette.text.primary}`)},"title-sm":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-md, ${P.md}`),fontSize:y(`fontSize-sm, ${N.sm}`),lineHeight:y(`lineHeight-sm, ${$.sm}`),color:y(`palette-text-primary, ${k.palette.text.primary}`)},"body-lg":{fontFamily:y(`fontFamily-body, ${E.body}`),fontSize:y(`fontSize-lg, ${N.lg}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-secondary, ${k.palette.text.secondary}`)},"body-md":{fontFamily:y(`fontFamily-body, ${E.body}`),fontSize:y(`fontSize-md, ${N.md}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-secondary, ${k.palette.text.secondary}`)},"body-sm":{fontFamily:y(`fontFamily-body, ${E.body}`),fontSize:y(`fontSize-sm, ${N.sm}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-tertiary, ${k.palette.text.tertiary}`)},"body-xs":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-md, ${P.md}`),fontSize:y(`fontSize-xs, ${N.xs}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-tertiary, ${k.palette.text.tertiary}`)}}},j=b?ec(T,b):T,{colorSchemes:M}=j,A=Xs(j,Np),V=Di({colorSchemes:M},A,{breakpoints:rc(null!=f?f:{}),components:ec({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:e,theme:t})=>{var n;const r=e.instanceFontSize;return Di({margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},!e.htmlColor&&Di({color:`var(--Icon-color, ${V.vars.palette.text.icon})`},e.color&&"inherit"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(n=t.vars.palette[e.color])?void 0:n.mainChannel} / 1)`}),r&&"inherit"!==r&&{"--Icon-fontSize":t.vars.fontSize[r]})}}}},g),cssVarPrefix:p,getCssVar:y,spacing:Pc(m)});Object.entries(V.colorSchemes).forEach((([e,t])=>{!function(e,t){Object.keys(t).forEach((n=>{const r={main:"500",light:"200",dark:"700"};"dark"===e&&(r.main=400),!t[n].mainChannel&&t[n][r.main]&&(t[n].mainChannel=qu(t[n][r.main])),!t[n].lightChannel&&t[n][r.light]&&(t[n].lightChannel=qu(t[n][r.light])),!t[n].darkChannel&&t[n][r.dark]&&(t[n].darkChannel=qu(t[n][r.dark]))}))}(e,t.palette)}));const _={prefix:p,shouldSkipGeneratingVar:v},{vars:L,generateCssVars:F}=function(e,t){const{colorSchemes:n={},defaultColorScheme:r="light"}=e,o=Xs(e,ep),{vars:a,css:i,varsWithDefaults:l}=Xd(o,t);let s=l;const c={},{[r]:u}=n,d=Xs(n,[r].map(Zd));if(Object.entries(d||{}).forEach((([e,n])=>{const{vars:r,css:o,varsWithDefaults:a}=Xd(n,t);s=ec(s,a),c[e]={css:o,vars:r}})),u){const{css:e,vars:n,varsWithDefaults:o}=Xd(u,t);s=ec(s,o),c[r]={css:e,vars:n}}return{vars:s,generateCssVars:e=>{var n;if(!e){var r;const n=Di({},i);return{css:n,vars:a,selector:(null==t||null==(r=t.getSelector)?void 0:r.call(t,e,n))||":root"}}const o=Di({},c[e].css);return{css:o,vars:c[e].vars,selector:(null==t||null==(n=t.getSelector)?void 0:n.call(t,e,o))||":root"}}}}(Di({colorSchemes:M},A),_);V.vars=L,V.generateCssVars=F,V.unstable_sxConfig=Di({},wp,null==e?void 0:e.unstable_sxConfig),V.unstable_sx=function(e){return ru({sx:e,theme:this})},V.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;const B={getCssVar:y,palette:V.colorSchemes.light.palette};return V.variants=ec({plain:Ep("plain",B),plainHover:Ep("plainHover",B),plainActive:Ep("plainActive",B),plainDisabled:Ep("plainDisabled",B),outlined:Ep("outlined",B),outlinedHover:Ep("outlinedHover",B),outlinedActive:Ep("outlinedActive",B),outlinedDisabled:Ep("outlinedDisabled",B),soft:Ep("soft",B),softHover:Ep("softHover",B),softActive:Ep("softActive",B),softDisabled:Ep("softDisabled",B),solid:Ep("solid",B),solidHover:Ep("solidHover",B),solidActive:Ep("solidActive",B),solidDisabled:Ep("solidDisabled",B)},h),V.palette=Di({},V.colorSchemes.light.palette,{colorScheme:"light"}),V.shouldSkipGeneratingVar=v,V.applyStyles=ou,V}const zp=$p(),Rp="data-joy-color-scheme",Dp="joy-color-scheme",Tp="light",jp="dark",Mp="joy-mode",{CssVarsProvider:Ap,useColorScheme:Vp,getInitColorSchemeScript:_p}=function(t){const{themeId:n,theme:r={},attribute:a=Fd,modeStorageKey:i=_d,colorSchemeStorageKey:l=Ld,defaultMode:s="light",defaultColorScheme:c,disableTransitionOnChange:u=!1,resolveTheme:d,excludeVariablesFromRoot:p}=t;(!r.colorSchemes||"string"==typeof c&&!r.colorSchemes[c]||"object"==typeof c&&!r.colorSchemes[null==c?void 0:c.light]||"object"==typeof c&&!r.colorSchemes[null==c?void 0:c.dark])&&console.error(`MUI: \`${c}\` does not exist in \`theme.colorSchemes\`.`);const f=o.createContext(void 0);function m(t){const{children:m,theme:g=r,modeStorageKey:h=i,colorSchemeStorageKey:v=l,attribute:b=a,defaultMode:y=s,defaultColorScheme:x=c,disableTransitionOnChange:w=u,storageWindow:S=("undefined"==typeof window?void 0:window),documentNode:C=("undefined"==typeof document?void 0:document),colorSchemeNode:k=("undefined"==typeof document?void 0:document.documentElement),colorSchemeSelector:O=":root",disableNestedContext:I=!1,disableStyleSheetGeneration:E=!1}=t,P=o.useRef(!1),N=Pd(),$=o.useContext(f),z=!!$&&!I,R=g[n],D=R||g,{colorSchemes:T={},components:j={},generateCssVars:M=(()=>({vars:{},css:{}})),cssVarPrefix:A}=D,V=Xs(D,qd),_=Object.keys(T),L="string"==typeof x?x:x.light,F="string"==typeof x?x:x.dark,{mode:B,setMode:H,systemMode:W,lightColorScheme:G,darkColorScheme:q,colorScheme:U,setColorScheme:Y}=Gd({supportedColorSchemes:_,defaultLightColorScheme:L,defaultDarkColorScheme:F,modeStorageKey:h,colorSchemeStorageKey:v,defaultMode:y,storageWindow:S});let K=B,J=U;z&&(K=$.mode,J=$.colorScheme);const X=J||("dark"===(K||("system"===y?s:y))?F:L),{css:Q,vars:Z}=M(),ee=Di({},V,{components:j,colorSchemes:T,cssVarPrefix:A,vars:Z,getColorSchemeSelector:e=>`[${b}="${e}"] &`}),te={},ne={};Object.entries(T).forEach((([e,t])=>{const{css:n,vars:r}=M(e);ee.vars=ec(ee.vars,r),e===X&&(Object.keys(t).forEach((e=>{t[e]&&"object"==typeof t[e]?ee[e]=Di({},ee[e],t[e]):ee[e]=t[e]})),ee.palette&&(ee.palette.colorScheme=e));if(e===("string"==typeof x?x:"dark"===y?x.dark:x.light)){if(p){const t={};p(A).forEach((e=>{t[e]=n[e],delete n[e]})),te[`[${b}="${e}"]`]=t}te[`${O}, [${b}="${e}"]`]=n}else ne[`${":root"===O?"":O}[${b}="${e}"]`]=n})),ee.vars=ec(ee.vars,Z),o.useEffect((()=>{J&&k&&k.setAttribute(b,J)}),[J,b,k]),o.useEffect((()=>{let e;if(w&&P.current&&C){const t=C.createElement("style");t.appendChild(C.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),C.head.appendChild(t),window.getComputedStyle(C.body),e=setTimeout((()=>{C.head.removeChild(t)}),1)}return()=>{clearTimeout(e)}}),[J,w,C]),o.useEffect((()=>(P.current=!0,()=>{P.current=!1})),[]);const re=o.useMemo((()=>({allColorSchemes:_,colorScheme:J,darkColorScheme:q,lightColorScheme:G,mode:K,setColorScheme:Y,setMode:H,systemMode:W})),[_,J,q,G,K,Y,H,W]);let oe=!0;(E||z&&(null==N?void 0:N.cssVarPrefix)===A)&&(oe=!1);const ae=e.jsxs(o.Fragment,{children:[oe&&e.jsxs(o.Fragment,{children:[e.jsx(Ks,{styles:{[O]:Q}}),e.jsx(Ks,{styles:te}),e.jsx(Ks,{styles:ne})]}),e.jsx(Vd,{themeId:R?n:void 0,theme:d?d(ee):ee,children:m})]});return z?ae:e.jsx(f.Provider,{value:re,children:ae})}"production"!==process.env.NODE_ENV&&(f.displayName="ColorSchemeContext"),"production"!==process.env.NODE_ENV&&(m.propTypes={attribute:Ga.string,children:Ga.node,colorSchemeNode:Ga.any,colorSchemeSelector:Ga.string,colorSchemeStorageKey:Ga.string,defaultColorScheme:Ga.oneOfType([Ga.string,Ga.object]),defaultMode:Ga.string,disableNestedContext:Ga.bool,disableStyleSheetGeneration:Ga.bool,disableTransitionOnChange:Ga.bool,documentNode:Ga.any,modeStorageKey:Ga.string,storageWindow:Ga.any,theme:Ga.object});const g="string"==typeof c?c:c.light,h="string"==typeof c?c:c.dark;return{CssVarsProvider:m,useColorScheme:()=>{const e=o.useContext(f);if(!e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `useColorScheme` must be called under <CssVarsProvider />":Ri(19));return e},getInitColorSchemeScript:t=>function(t){const{defaultMode:n="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:o="dark",modeStorageKey:a=_d,colorSchemeStorageKey:i=Ld,attribute:l=Fd,colorSchemeNode:s="document.documentElement",nonce:c}=t||{};return e.jsx("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?c:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n var mode = localStorage.getItem('${a}') || '${n}';\n var colorScheme = '';\n if (mode === 'system') {\n // handle system mode\n var mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = localStorage.getItem('${i}-dark') || '${o}';\n } else {\n colorScheme = localStorage.getItem('${i}-light') || '${r}';\n }\n }\n if (mode === 'light') {\n colorScheme = localStorage.getItem('${i}-light') || '${r}';\n }\n if (mode === 'dark') {\n colorScheme = localStorage.getItem('${i}-dark') || '${o}';\n }\n if (colorScheme) {\n ${s}.setAttribute('${l}', colorScheme);\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}(Di({attribute:a,colorSchemeStorageKey:l,defaultMode:s,defaultLightColorScheme:g,defaultDarkColorScheme:h,modeStorageKey:i},t))}}({themeId:zi,theme:zp,attribute:Rp,modeStorageKey:Mp,colorSchemeStorageKey:Dp,defaultColorScheme:{light:Tp,dark:jp}}),Lp=_u({defaultTheme:zp,themeId:zi});function Fp({props:e,name:t}){return Hu({props:e,name:t,defaultTheme:Di({},zp,{components:{}}),themeId:zi})}function Bp(e,t,n){return void 0===e||"string"==typeof e?t:Di({},t,{ownerState:Di({},t.ownerState,n)})}function Hp(e,t,n=((e,t)=>e===t)){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}const Wp={disableDefaultClasses:!1},Gp=o.createContext(Wp);function qp(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function Up(e,t,n){return"function"==typeof e?e(t,n):e}function Yp(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Kp(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=hu(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=Di({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=Di({},n,o,r);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=qp(Di({},o,r)),l=Yp(r),s=Yp(o),c=t(i),u=hu(null==c?void 0:c.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),d=Di({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Di({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}"production"!==process.env.NODE_ENV&&(Gp.displayName="ClassNameConfiguratorContext");const Jp=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Xp(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Xs(e,Jp),l=a?{}:Up(r,o),{props:s,internalRef:c}=Kp(Di({},i,{externalSlotProps:l}));return Bp(n,Di({},s,{ref:ud(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const Qp="base";function Zp(e,t){const n=bu[t];return n?`${Qp}--${n}`:function(e,t){return`${Qp}-${e}-${t}`}(e,t)}function ef(e={}){const{disabled:t=!1,focusableWhenDisabled:n,href:r,rootRef:a,tabIndex:i,to:l,type:s,rootElementName:c}=e,u=o.useRef(),[d,p]=o.useState(!1),{isFocusVisibleRef:f,onFocus:m,onBlur:g,ref:h}=xd(),[v,b]=o.useState(!1);t&&!n&&v&&b(!1),o.useEffect((()=>{f.current=v}),[v,f]);const[y,x]=function(e){const{rootElementName:t="",componentName:n}=e,[r,a]=o.useState(t.toUpperCase());"production"!==process.env.NODE_ENV&&o.useEffect((()=>{t&&r!==t.toUpperCase()&&console.error(`useRootElementName: the \`rootElementName\` prop of ${n?`the ${n} component`:"a component"} expected the '${t}' element, but a '${r.toLowerCase()}' was rendered instead`,"This may cause hydration issues in an SSR context, for example in a Next.js app")}),[t,r,n]);const i=o.useCallback((e=>{var t;a(null!=(t=null==e?void 0:e.tagName)?t:"")}),[]);return[r,i]}({rootElementName:null!=c?c:r||l?"a":void 0,componentName:"Button"}),w=e=>t=>{var n;v&&t.preventDefault(),null==(n=e.onMouseLeave)||n.call(e,t)},S=e=>t=>{var n,r;(u.current||(u.current=t.currentTarget),m(t),!0===f.current)&&(b(!0),null==(r=e.onFocusVisible)||r.call(e,t));null==(n=e.onFocus)||n.call(e,t)},C=()=>{const e=u.current;return"BUTTON"===y||"INPUT"===y&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===y&&(null==e?void 0:e.href)},k=e=>n=>{var r;t||(null==(r=e.onClick)||r.call(e,n))},O=e=>n=>{var r;t||(p(!0),document.addEventListener("mouseup",(()=>{p(!1)}),{once:!0})),null==(r=e.onMouseDown)||r.call(e,n)},I=e=>n=>{var r,o;(null==(r=e.onKeyDown)||r.call(e,n),n.defaultMuiPrevented)||(n.target!==n.currentTarget||C()||" "!==n.key||n.preventDefault(),n.target!==n.currentTarget||" "!==n.key||t||p(!0),n.target!==n.currentTarget||C()||"Enter"!==n.key||t||(null==(o=e.onClick)||o.call(e,n),n.preventDefault()))},E=e=>n=>{var r,o;(n.target===n.currentTarget&&p(!1),null==(r=e.onKeyUp)||r.call(e,n),n.target!==n.currentTarget||C()||t||" "!==n.key||n.defaultMuiPrevented)||(null==(o=e.onClick)||o.call(e,n))},P=ud(x,a,h,u),N={};void 0!==i&&(N.tabIndex=i),"BUTTON"===y?(N.type=null!=s?s:"button",n?N["aria-disabled"]=t:N.disabled=t):"INPUT"===y?s&&["button","submit","reset"].includes(s)&&(n?N["aria-disabled"]=t:N.disabled=t):""!==y&&(r||l||(N.role="button",N.tabIndex=null!=i?i:0),t&&(N["aria-disabled"]=t,N.tabIndex=n?null!=i?i:0:-1));return{getRootProps:(t={})=>{const n=Di({},qp(e),qp(t)),r=Di({type:s},n,N,t,{onBlur:(o=n,e=>{var t;g(e),!1===f.current&&b(!1),null==(t=o.onBlur)||t.call(o,e)}),onClick:k(n),onFocus:S(n),onKeyDown:I(n),onKeyUp:E(n),onMouseDown:O(n),onMouseLeave:w(n),ref:P});var o;return delete r.onFocusVisible,r},focusVisible:v,setFocusVisible:b,active:d,rootRef:P}}const tf=o.createContext(null);function nf(e,t){return e===t}"production"!==process.env.NODE_ENV&&(tf.displayName="DropdownContext");const rf={},of=()=>{};function af(e,t){const n=Di({},e);return Object.keys(t).forEach((e=>{void 0!==t[e]&&(n[e]=t[e])})),n}function lf(e){const t=o.useRef(null),{reducer:n,initialState:r,controlledProps:a=rf,stateComparers:i=rf,onStateChange:l=of,actionContext:s,componentName:c=""}=e,u=o.useRef(a);"production"!==process.env.NODE_ENV&&o.useEffect((()=>{Object.keys(a).forEach((e=>{void 0!==u.current[e]&&void 0===a[e]&&console.error(`useControllableReducer: ${c?`The ${c} component`:"A component"} is changing a controlled prop to be uncontrolled: ${e}`),void 0===u.current[e]&&void 0!==a[e]&&console.error(`useControllableReducer: ${c?`The ${c} component`:"A component"} is changing an uncontrolled prop to be controlled: ${e}`)}))}),[a,c]);const d=o.useCallback(((e,r)=>{t.current=r;const o=af(e,a);return n(o,r)}),[a,n]),[p,f]=o.useReducer(d,r),m=o.useCallback((e=>{f(Di({},e,{context:s}))}),[s]);return function(e){const{nextState:t,initialState:n,stateComparers:r,onStateChange:a,controlledProps:i,lastActionRef:l}=e,s=o.useRef(n);o.useEffect((()=>{if(null===l.current)return;const e=af(s.current,i);Object.keys(t).forEach((n=>{var o;const i=null!=(o=r[n])?o:nf,s=t[n],c=e[n];var u,d;(null==c&&null!=s||null!=c&&null==s||null!=c&&null!=s&&!i(s,c))&&(null==a||a(null!=(u=l.current.event)?u:null,n,s,null!=(d=l.current.type)?d:"",t))})),s.current=t,l.current=null}),[s,t,l,a,r,i])}({nextState:p,initialState:r,stateComparers:null!=i?i:rf,onStateChange:null!=l?l:of,controlledProps:a,lastActionRef:t}),[af(p,a),m]}const sf={blur:"dropdown:blur",escapeKeyDown:"dropdown:escapeKeyDown",toggle:"dropdown:toggle",open:"dropdown:open",close:"dropdown:close"};function cf(e,t){switch(t.type){case sf.blur:case sf.escapeKeyDown:return{open:!1,changeReason:t.event};case sf.toggle:return{open:!e.open,changeReason:t.event};case sf.open:return{open:!0,changeReason:t.event};case sf.close:return{open:!1,changeReason:t.event};default:throw new Error("Unhandled action")}}function uf(t){const{children:n,open:r,defaultOpen:a,onOpenChange:i}=t,{contextValue:l}=function(e={}){const{defaultOpen:t,onOpenChange:n,open:r,componentName:a="useDropdown"}=e,[i,l]=o.useState(""),[s,c]=o.useState(null),u=o.useRef(null),d=o.useCallback(((e,t,r,o)=>{"open"===t&&(null==n||n(e,r)),u.current=o}),[n]),p=o.useMemo((()=>void 0!==r?{open:r}:{}),[r]),[f,m]=lf({controlledProps:p,initialState:t?{open:!0,changeReason:null}:{open:!1,changeReason:null},onStateChange:d,reducer:cf,componentName:a});return o.useEffect((()=>{f.open||null===u.current||u.current===sf.blur||null==s||s.focus()}),[f.open,s]),{contextValue:{state:f,dispatch:m,popupId:i,registerPopup:l,registerTrigger:c,triggerElement:s},open:f.open}}({defaultOpen:a,onOpenChange:i,open:r});return e.jsx(tf.Provider,{value:l,children:n})}"production"!==process.env.NODE_ENV&&(uf.propTypes={children:Ga.node,defaultOpen:Ga.bool,onOpenChange:Ga.func,open:Ga.bool}),"production"!==process.env.NODE_ENV&&(uf.propTypes=Xu(uf.propTypes));const df=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function pf(e){const t=[],n=[];return Array.from(e.querySelectorAll(df)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function ff(){return!0}function mf(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:a=!1,disableRestoreFocus:i=!1,getTabbable:l=pf,isEnabled:s=ff,open:c}=t,u=o.useRef(!1),d=o.useRef(null),p=o.useRef(null),f=o.useRef(null),m=o.useRef(null),g=o.useRef(!1),h=o.useRef(null),v=ud(n.ref,h),b=o.useRef(null);o.useEffect((()=>{c&&h.current&&(g.current=!r)}),[r,c]),o.useEffect((()=>{if(!c||!h.current)return;const e=nd(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||("production"!==process.env.NODE_ENV&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join("\n")),h.current.setAttribute("tabIndex","-1")),g.current&&h.current.focus()),()=>{i||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}}),[c]),o.useEffect((()=>{if(!c||!h.current)return;const e=nd(h.current),t=t=>{b.current=t,!a&&s()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,p.current&&p.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(a&&e.activeElement!==d.current&&e.activeElement!==p.current)return;if(e.activeElement!==m.current)m.current=null;else if(null!==m.current)return;if(!g.current)return;let n=[];if(e.activeElement!==d.current&&e.activeElement!==p.current||(n=l(h.current)),n.length>0){var r,o;const e=Boolean((null==(r=b.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=b.current)?void 0:o.key)),t=n[0],a=n[n.length-1];"string"!=typeof t&&"string"!=typeof a&&(e?a.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[r,a,i,s,c,l]);const y=e=>{null===f.current&&(f.current=e.relatedTarget),g.current=!0};return e.jsxs(o.Fragment,{children:[e.jsx("div",{tabIndex:c?0:-1,onFocus:y,ref:d,"data-testid":"sentinelStart"}),o.cloneElement(n,{ref:v,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),g.current=!0,m.current=e.target;const t=n.props.onFocus;t&&t(e)}}),e.jsx("div",{tabIndex:c?0:-1,onFocus:y,ref:p,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(mf.propTypes={children:Ku,disableAutoFocus:Ga.bool,disableEnforceFocus:Ga.bool,disableRestoreFocus:Ga.bool,getTabbable:Ga.func,isEnabled:Ga.func,open:Ga.bool.isRequired}),"production"!==process.env.NODE_ENV&&(mf.propTypes=Xu(mf.propTypes));const gf=o.createContext(void 0);function hf(e={}){const{defaultValue:t,disabled:n=!1,error:r=!1,onBlur:a,onChange:i,onFocus:l,required:s=!1,value:c,inputRef:u}=e,d=o.useContext(gf);let p,f,m,g,h;var v,b,y;if(d){if(p=void 0,f=null!=(v=d.disabled)&&v,m=null!=(b=d.error)&&b,g=null!=(y=d.required)&&y,h=d.value,"production"!==process.env.NODE_ENV){const t=["defaultValue","disabled","error","required","value"].filter((t=>void 0!==e[t]));t.length>0&&console.warn(["MUI: You have set props on an input that is inside a FormControl.","Set these props on a FormControl instead. Otherwise they will be ignored.",`Ignored props: ${t.join(", ")}`].join("\n"))}}else p=t,f=n,m=r,g=s,h=c;const{current:x}=o.useRef(null!=h),w=o.useCallback((e=>{"production"!==process.env.NODE_ENV&&e&&"INPUT"!==e.nodeName&&!e.focus&&console.error(["MUI: You have provided a `slots.input` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join("\n"))}),[]),S=o.useRef(null),C=ud(S,u,w),[k,O]=o.useState(!1);o.useEffect((()=>{!d&&f&&k&&(O(!1),null==a||a())}),[d,f,k,a]);const I=e=>t=>{var n,r;null!=d&&d.disabled?t.stopPropagation():(null==(n=e.onFocus)||n.call(e,t),d&&d.onFocus?null==d||null==(r=d.onFocus)||r.call(d):O(!0))},E=e=>(t,...n)=>{var r,o;if(!x){if(null==(t.target||S.current))throw new Error("production"!==process.env.NODE_ENV?"MUI: Expected valid input target. Did you use a custom `slots.input` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Ri(17))}null==d||null==(r=d.onChange)||r.call(d,t),null==(o=e.onChange)||o.call(e,t,...n)};return{disabled:f,error:m,focused:k,formControlContext:d,getInputProps:(e={})=>{const t=Di({},{onBlur:a,onChange:i,onFocus:l},qp(e)),n=Di({},t,{onBlur:(r=t,e=>{var t;null==(t=r.onBlur)||t.call(r,e),d&&d.onBlur?d.onBlur():O(!1)}),onChange:E(t),onFocus:I(t)});var r;return Di({},n,{"aria-invalid":m||void 0,defaultValue:p,value:h,required:g,disabled:f},e,{ref:C},n)},getRootProps:(t={})=>{const n=Di({},qp(e,["onBlur","onChange","onFocus"]),qp(t));return Di({},t,n,{onClick:(r=n,e=>{var t;S.current&&e.currentTarget===e.target&&S.current.focus(),null==(t=r.onClick)||t.call(r,e)})});var r},inputRef:C,required:g,value:h}}"production"!==process.env.NODE_ENV&&(gf.displayName="FormControlContext");const vf={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function bf(e,t,n){var r;const{items:o,isItemDisabled:a,disableListWrap:i,disabledItemsFocusable:l,itemComparer:s,focusManagement:c}=n,u="DOM"===c?0:-1,d=o.length-1,p=null==e?-1:o.findIndex((t=>s(t,e)));let f,m,g=!i;switch(t){case"reset":if(-1===u)return null;f=0,m="next",g=!1;break;case"start":f=0,m="next",g=!1;break;case"end":f=d,m="previous",g=!1;break;default:{const e=p+t;e<0?!g&&-1!==p||Math.abs(t)>1?(f=0,m="next"):(f=d,m="previous"):e>d?!g||Math.abs(t)>1?(f=d,m="previous"):(f=0,m="next"):(f=e,m=t>=0?"next":"previous")}}const h=function(e,t,n,r,o,a){if(0===n.length||!r&&n.every(((e,t)=>o(e,t))))return-1;let i=e;for(;;){if(!a&&"next"===t&&i===n.length||!a&&"previous"===t&&-1===i)return-1;if(r||!o(n[i],i))return i;i+="next"===t?1:-1,a&&(i=(i+n.length)%n.length)}}(f,m,o,l,a,g);return-1!==h||null===e||a(e,p)?null!=(r=o[h])?r:null:e}function yf(e,t,n){const{itemComparer:r,isItemDisabled:o,selectionMode:a,items:i}=n,{selectedValues:l}=t,s=i.findIndex((t=>r(e,t)));if(o(e,s))return t;const c=function(e,t,n,r){return"none"===n?[]:"single"===n?r(t[0],e)?t:[e]:t.some((t=>r(t,e)))?t.filter((t=>!r(t,e))):[...t,e]}(e,l,a,r);return Di({},t,{selectedValues:c,highlightedValue:e})}function xf(e,t,n){var r;const o=null==(r=n(e))?void 0:r.trim().toLowerCase();return!(!o||0===o.length)&&0===o.indexOf(t)}function wf(e,t){const{type:n,context:r}=t;switch(n){case vf.keyDown:return function(e,t,n){const r=t.highlightedValue,{orientation:o,pageSize:a}=n;switch(e){case"Home":return Di({},t,{highlightedValue:bf(r,"start",n)});case"End":return Di({},t,{highlightedValue:bf(r,"end",n)});case"PageUp":return Di({},t,{highlightedValue:bf(r,-a,n)});case"PageDown":return Di({},t,{highlightedValue:bf(r,a,n)});case"ArrowUp":if("vertical"!==o)break;return Di({},t,{highlightedValue:bf(r,-1,n)});case"ArrowDown":if("vertical"!==o)break;return Di({},t,{highlightedValue:bf(r,1,n)});case"ArrowLeft":if("vertical"===o)break;return Di({},t,{highlightedValue:bf(r,"horizontal-ltr"===o?-1:1,n)});case"ArrowRight":if("vertical"===o)break;return Di({},t,{highlightedValue:bf(r,"horizontal-ltr"===o?1:-1,n)});case"Enter":case" ":return null===t.highlightedValue?t:yf(t.highlightedValue,t,n)}return t}(t.key,e,r);case vf.itemClick:return yf(t.item,e,r);case vf.blur:return function(e,t){return"DOM"===t.focusManagement?e:Di({},e,{highlightedValue:null})}(e,r);case vf.textNavigation:return function(e,t,n){const{items:r,isItemDisabled:o,disabledItemsFocusable:a,getItemAsString:i}=n,l=t.length>1;let s=l?e.highlightedValue:bf(e.highlightedValue,1,n);for(let c=0;c<r.length;c+=1){if(!s||!l&&e.highlightedValue===s)return e;if(xf(s,t,i)&&(!o(s,r.indexOf(s))||a))return Di({},e,{highlightedValue:s});s=bf(s,1,n)}return e}(e,t.searchString,r);case vf.itemsChange:return function(e,t,n,r){var o;const{itemComparer:a,focusManagement:i}=r;let l=null;var s;null!=n.highlightedValue?l=null!=(s=e.find((e=>a(e,n.highlightedValue))))?s:null:"DOM"===i&&0===t.length&&(l=bf(null,"reset",r));const c=(null!=(o=n.selectedValues)?o:[]).filter((t=>e.some((e=>a(e,t)))));return Di({},n,{highlightedValue:l,selectedValues:c})}(t.items,t.previousItems,e,r);case vf.resetHighlight:return function(e,t){return Di({},e,{highlightedValue:bf(null,"reset",t)})}(e,r);case vf.highlightLast:return function(e,t){return Di({},e,{highlightedValue:bf(null,"end",t)})}(e,r);case vf.clearSelection:return function(e,t){return Di({},e,{selectedValues:[],highlightedValue:bf(null,"reset",t)})}(e,r);default:return e}}const Sf=500;const Cf={},kf=()=>{},Of=(e,t)=>e===t,If=()=>!1,Ef=e=>"string"==typeof e?e:String(e),Pf=()=>({highlightedValue:null,selectedValues:[]});function Nf(e){const{controlledProps:t=Cf,disabledItemsFocusable:n=!1,disableListWrap:r=!1,focusManagement:a="activeDescendant",getInitialState:i=Pf,getItemDomElement:l,getItemId:s,isItemDisabled:c=If,rootRef:u,onStateChange:d=kf,items:p,itemComparer:f=Of,getItemAsString:m=Ef,onChange:g,onHighlightChange:h,onItemsChange:v,orientation:b="vertical",pageSize:y=5,reducerActionContext:x=Cf,selectionMode:w="single",stateReducer:S,componentName:C="useList"}=e;if("production"!==process.env.NODE_ENV){if("DOM"===a&&null==l)throw new Error("useList: The `getItemDomElement` prop is required when using the `DOM` focus management.");if("activeDescendant"===a&&null==s)throw new Error("useList: The `getItemId` prop is required when using the `activeDescendant` focus management.")}const k=o.useRef(null),O=ud(u,k),I=o.useCallback(((e,t,n)=>{var r;(null==h||h(e,t,n),"DOM"!==a||null==t||n!==vf.itemClick&&n!==vf.keyDown&&n!==vf.textNavigation)||(null==l||null==(r=l(t))||r.focus())}),[l,h,a]),E=o.useMemo((()=>({highlightedValue:f,selectedValues:(e,t)=>Hp(e,t,f)})),[f]),P=o.useCallback(((e,t,n,r,o)=>{switch(null==d||d(e,t,n,r,o),t){case"highlightedValue":I(e,n,r);break;case"selectedValues":null==g||g(e,n,r)}}),[I,g,d]),N=o.useMemo((()=>({disabledItemsFocusable:n,disableListWrap:r,focusManagement:a,isItemDisabled:c,itemComparer:f,items:p,getItemAsString:m,onHighlightChange:I,orientation:b,pageSize:y,selectionMode:w,stateComparers:E})),[n,r,a,c,f,p,m,I,b,y,w,E]),$=i(),z=null!=S?S:wf,R=o.useMemo((()=>Di({},x,N)),[x,N]),[D,T]=lf({reducer:z,actionContext:R,initialState:$,controlledProps:t,stateComparers:E,onStateChange:P,componentName:C}),{highlightedValue:j,selectedValues:M}=D,A=function(e){const t=o.useRef({searchString:"",lastTime:null});return o.useCallback((n=>{if(1===n.key.length&&" "!==n.key){const r=t.current,o=n.key.toLowerCase(),a=performance.now();r.searchString.length>0&&r.lastTime&&a-r.lastTime>Sf?r.searchString=o:1===r.searchString.length&&o===r.searchString||(r.searchString+=o),r.lastTime=a,e(r.searchString,n)}}),[e])}(((e,t)=>T({type:vf.textNavigation,event:t,searchString:e}))),V=o.useRef([]);o.useEffect((()=>{Hp(V.current,p,f)||(T({type:vf.itemsChange,event:null,items:p,previousItems:V.current}),V.current=p,null==v||v(p))}),[p,f,T,v]);const _=e=>t=>{var n;if(null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented)return;const r=["Home","End","PageUp","PageDown"];"vertical"===b?r.push("ArrowUp","ArrowDown"):r.push("ArrowLeft","ArrowRight"),"activeDescendant"===a&&r.push(" ","Enter"),r.includes(t.key)&&t.preventDefault(),T({type:vf.keyDown,key:t.key,event:t}),A(t)},L=o.useCallback((e=>{const t=(null!=M?M:[]).some((t=>null!=t&&f(e,t))),n=null!=j&&f(e,j);return{focusable:"DOM"===a,highlighted:n,selected:t}}),[f,M,j,a]),F=o.useMemo((()=>({dispatch:T,getItemState:L})),[T,L]);return o.useDebugValue({state:D}),{contextValue:F,dispatch:T,getRootProps:(e={})=>{const t=qp(e);return Di({},e,{"aria-activedescendant":"activeDescendant"===a&&null!=j?s(j):void 0,tabIndex:"DOM"===a?-1:0,ref:O},t,{onBlur:(n=t,e=>{var t,r;null==(t=n.onBlur)||t.call(n,e),e.defaultMuiPrevented||null!=(r=k.current)&&r.contains(e.relatedTarget)||T({type:vf.blur,event:e})}),onKeyDown:_(t)});var n},rootRef:O,state:D}}const $f=o.createContext(null);function zf(e,t){if(t.type===vf.itemHover)return Di({},e,{highlightedValue:t.item});const n=wf(e,t);if(null===n.highlightedValue&&t.context.items.length>0)return Di({},n,{highlightedValue:t.context.items[0]});if(t.type===vf.keyDown&&"Escape"===t.event.key)return Di({},n,{open:!1});var r;if(t.type===vf.blur&&(null==(r=t.context.listboxRef.current)||!r.contains(t.event.relatedTarget))){var o,a;const e=null==(o=t.context.listboxRef.current)?void 0:o.getAttribute("id"),r=null==(a=t.event.relatedTarget)?void 0:a.getAttribute("aria-controls");return e&&r&&e===r?n:Di({},n,{open:!1,highlightedValue:t.context.items[0]})}return n}"production"!==process.env.NODE_ENV&&($f.displayName="ListContext");const Rf=o.createContext(null);function Df(){const[e,t]=o.useState(new Map),n=o.useRef(new Set),r=o.useCallback((function(e){n.current.delete(e),t((t=>{const n=new Map(t);return n.delete(e),n}))}),[]),a=o.useCallback((function(e,o){let a;return a="function"==typeof e?e(n.current):e,n.current.add(a),t((e=>{const t=new Map(e);return t.set(a,o),t})),{id:a,deregister:()=>r(a)}}),[r]),i=o.useMemo((()=>function(e){const t=Array.from(e.keys()).map((t=>({key:t,subitem:e.get(t)})));return t.sort(((e,t)=>{const n=e.subitem.ref.current,r=t.subitem.ref.current;return null===n||null===r||n===r?0:n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING?1:-1})),new Map(t.map((e=>[e.key,e.subitem])))}(e)),[e]),l=o.useCallback((function(e){return Array.from(i.keys()).indexOf(e)}),[i]);return{contextValue:o.useMemo((()=>({getItemIndex:l,registerItem:a,totalSubitemCount:e.size})),[l,a,e.size]),subitems:i}}function Tf(e,t){return function(n={}){const r=Di({},n,e(n));return Di({},r,t(r))}}"production"!==process.env.NODE_ENV&&(Rf.displayName="CompoundComponentContext");const jf={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0,changeReason:null},triggerElement:null};function Mf(t){const{value:n,children:r}=t,{dispatch:a,getItemIndex:i,getItemState:l,registerItem:s,totalSubitemCount:c}=n,u=o.useMemo((()=>({dispatch:a,getItemState:l,getItemIndex:i})),[a,i,l]),d=o.useMemo((()=>({getItemIndex:i,registerItem:s,totalSubitemCount:c})),[s,i,c]);return e.jsx(Rf.Provider,{value:d,children:e.jsx($f.Provider,{value:u,children:r})})}const Af=o.forwardRef((function(t,n){const{children:r,container:i,disablePortal:l=!1}=t,[s,c]=o.useState(null),u=ud(o.isValidElement(r)?r.ref:null,n);if(Wu((()=>{l||c(function(e){return"function"==typeof e?e():e}(i)||document.body)}),[i,l]),Wu((()=>{if(s&&!l)return od(n,s),()=>{od(n,null)}}),[n,s,l]),l){if(o.isValidElement(r)){const e={ref:u};return o.cloneElement(r,e)}return e.jsx(o.Fragment,{children:r})}return e.jsx(o.Fragment,{children:s?a.createPortal(r,s):s})}));function Vf(e){return`menu-item-${e.size}`}"production"!==process.env.NODE_ENV&&(Af.propTypes={children:Ga.node,container:Ga.oneOfType([Qu,Ga.func]),disablePortal:Ga.bool}),"production"!==process.env.NODE_ENV&&(Af.propTypes=Xu(Af.propTypes));const _f={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0,changeReason:null},triggerElement:null};function Lf(e){var t;const{disabled:n=!1,id:r,rootRef:a,label:i,disableFocusOnHover:l=!1}=e,s=ld(r),c=o.useRef(null),u=o.useMemo((()=>({disabled:n,id:null!=s?s:"",label:i,ref:c})),[n,s,i]),{dispatch:d}=null!=(t=o.useContext(tf))?t:_f,{getRootProps:p,highlighted:f}=function(e){const{handlePointerOverEvents:t=!1,item:n}=e,r=o.useContext($f);if(!r)throw new Error("useListItem must be used within a ListProvider");const{dispatch:a,getItemState:i}=r,{highlighted:l,selected:s,focusable:c}=i(n),u=o.useCallback((e=>t=>{var r;if(null==(r=e.onClick)||r.call(e,t),!t.defaultPrevented){if("production"!==process.env.NODE_ENV&&void 0===n)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join("\n"));a({type:vf.itemClick,item:n,event:t})}}),[a,n]),d=o.useCallback((e=>t=>{var r;if(null==(r=e.onMouseOver)||r.call(e,t),!t.defaultPrevented){if("production"!==process.env.NODE_ENV&&void 0===n)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join("\n"));a({type:vf.itemHover,item:n,event:t})}}),[a,n]);let p;return c&&(p=l?0:-1),{getRootProps:(e={})=>{const n=qp(e);return Di({},e,{onClick:u(n),onPointerOver:t?d(n):void 0,tabIndex:p})},highlighted:l,selected:s}}({item:s,handlePointerOverEvents:!l}),{index:m,totalItemCount:g}=function(e,t){const n=o.useContext(Rf);if(null===n)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:r}=n,[a,i]=o.useState("function"==typeof e?void 0:e);return Wu((()=>{const{id:n,deregister:o}=r(e,t);return i(n),o}),[r,t,e]),{id:a,index:void 0!==a?n.getItemIndex(a):-1,totalItemCount:n.totalSubitemCount}}(null!=s?s:Vf,u),{getRootProps:h,focusVisible:v,rootRef:b}=ef({disabled:n,focusableWhenDisabled:!0}),y=ud(b,a,c);o.useDebugValue({id:s,highlighted:f,disabled:n,label:i});const x=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||d({type:sf.close,event:t})},w=(e={})=>Di({},e,{onClick:x(e)});function S(e={}){const t=qp(e);return Di({},e,t,Tf(w,Tf(h,p))(t),{id:s,ref:y,role:"menuitem"})}return void 0===s?{getRootProps:S,disabled:!1,focusVisible:v,highlighted:!1,index:-1,totalItemCount:0,rootRef:y}:{getRootProps:S,disabled:n,focusVisible:v,highlighted:f,index:m,totalItemCount:g,rootRef:y}}function Ff(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Bf(e){return parseInt(rd(e).getComputedStyle(e).paddingRight,10)||0}function Hf(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Ff(e,o)}))}function Wf(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Gf(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=nd(e);return t.body===e?rd(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(nd(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Bf(r)+e}px`;const t=nd(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Bf(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=nd(r).body;else{const t=r.parentElement,n=rd(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const qf=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ff(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Hf(t,e.mount,e.modalRef,r,!0);const o=Wf(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Wf(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Gf(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Wf(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Ff(e.modalRef,t),Hf(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Ff(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Uf(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:a=qf,closeAfterTransition:i=!1,onTransitionEnter:l,onTransitionExited:s,children:c,onClose:u,open:d,rootRef:p}=e,f=o.useRef({}),m=o.useRef(null),g=o.useRef(null),h=ud(g,p),[v,b]=o.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const w=()=>(f.current.modalRef=g.current,f.current.mount=m.current,f.current),S=()=>{a.mount(w(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},C=cd((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||nd(m.current).body;a.add(w(),e),g.current&&S()})),k=o.useCallback((()=>a.isTopModal(w())),[a]),O=cd((e=>{m.current=e,e&&(d&&k()?S():g.current&&Ff(g.current,x))})),I=o.useCallback((()=>{a.remove(w(),x)}),[x,a]);o.useEffect((()=>()=>{I()}),[I]),o.useEffect((()=>{d?C():y&&i||I()}),[d,I,y,i,C]);const E=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},P=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=qp(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Di({},n,t);return Di({role:"presentation"},r,{onKeyDown:E(r),ref:h})},getBackdropProps:(e={})=>Di({"aria-hidden":!0},e,{onClick:P(e),open:d}),getTransitionProps:()=>({onEnter:ed((()=>{b(!1),l&&l()}),null==c?void 0:c.props.onEnter),onExited:ed((()=>{b(!0),s&&s(),i&&I()}),null==c?void 0:c.props.onExited)}),rootRef:h,portalRef:O,isTopModal:k,exited:v,hasTransition:y}}var Yf="top",Kf="bottom",Jf="right",Xf="left",Qf="auto",Zf=[Yf,Kf,Jf,Xf],em="start",tm="end",nm="clippingParents",rm="viewport",om="popper",am="reference",im=Zf.reduce((function(e,t){return e.concat([t+"-"+em,t+"-"+tm])}),[]),lm=[].concat(Zf,[Qf]).reduce((function(e,t){return e.concat([t,t+"-"+em,t+"-"+tm])}),[]),sm=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function cm(e){return e?(e.nodeName||"").toLowerCase():null}function um(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dm(e){return e instanceof um(e).Element||e instanceof Element}function pm(e){return e instanceof um(e).HTMLElement||e instanceof HTMLElement}function fm(e){return"undefined"!=typeof ShadowRoot&&(e instanceof um(e).ShadowRoot||e instanceof ShadowRoot)}var mm={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];pm(o)&&cm(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(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(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});pm(r)&&cm(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function gm(e){return e.split("-")[0]}var hm=Math.max,vm=Math.min,bm=Math.round;function ym(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function xm(){return!/^((?!chrome|android).)*safari/i.test(ym())}function wm(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&pm(e)&&(o=e.offsetWidth>0&&bm(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&bm(r.height)/e.offsetHeight||1);var i=(dm(e)?um(e):window).visualViewport,l=!xm()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Sm(e){var t=wm(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Cm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&fm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function km(e){return um(e).getComputedStyle(e)}function Om(e){return["table","td","th"].indexOf(cm(e))>=0}function Im(e){return((dm(e)?e.ownerDocument:e.document)||window.document).documentElement}function Em(e){return"html"===cm(e)?e:e.assignedSlot||e.parentNode||(fm(e)?e.host:null)||Im(e)}function Pm(e){return pm(e)&&"fixed"!==km(e).position?e.offsetParent:null}function Nm(e){for(var t=um(e),n=Pm(e);n&&Om(n)&&"static"===km(n).position;)n=Pm(n);return n&&("html"===cm(n)||"body"===cm(n)&&"static"===km(n).position)?t:n||function(e){var t=/firefox/i.test(ym());if(/Trident/i.test(ym())&&pm(e)&&"fixed"===km(e).position)return null;var n=Em(e);for(fm(n)&&(n=n.host);pm(n)&&["html","body"].indexOf(cm(n))<0;){var r=km(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function $m(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zm(e,t,n){return hm(e,vm(t,n))}function Rm(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Dm(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Tm={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=gm(n.placement),s=$m(l),c=[Xf,Jf].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return Rm("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Dm(e,Zf))}(o.padding,n),d=Sm(a),p="y"===s?Yf:Xf,f="y"===s?Kf:Jf,m=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],g=i[s]-n.rects.reference[s],h=Nm(a),v=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,b=m/2-g/2,y=u[p],x=v-d[c]-u[f],w=v/2-d[c]/2+b,S=zm(y,w,x),C=s;n.modifiersData[r]=((t={})[C]=S,t.centerOffset=S-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Cm(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jm(e){return e.split("-")[1]}var Mm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Am(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,g=void 0===m?0:m,h="function"==typeof u?u({x:f,y:g}):{x:f,y:g};f=h.x,g=h.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=Xf,x=Yf,w=window;if(c){var S=Nm(n),C="clientHeight",k="clientWidth";if(S===um(n)&&"static"!==km(S=Im(n)).position&&"absolute"===l&&(C="scrollHeight",k="scrollWidth"),o===Yf||(o===Xf||o===Jf)&&a===tm)x=Kf,g-=(d&&S===w&&w.visualViewport?w.visualViewport.height:S[C])-r.height,g*=s?1:-1;if(o===Xf||(o===Yf||o===Kf)&&a===tm)y=Jf,f-=(d&&S===w&&w.visualViewport?w.visualViewport.width:S[k])-r.width,f*=s?1:-1}var O,I=Object.assign({position:l},c&&Mm),E=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:bm(n*o)/o||0,y:bm(r*o)/o||0}}({x:f,y:g},um(n)):{x:f,y:g};return f=E.x,g=E.y,s?Object.assign({},I,((O={})[x]=b?"0":"",O[y]=v?"0":"",O.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",O)):Object.assign({},I,((t={})[x]=b?g+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var Vm={passive:!0};var _m={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=um(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,Vm)})),l&&s.addEventListener("resize",n.update,Vm),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Vm)})),l&&s.removeEventListener("resize",n.update,Vm)}},data:{}},Lm={left:"right",right:"left",bottom:"top",top:"bottom"};function Fm(e){return e.replace(/left|right|bottom|top/g,(function(e){return Lm[e]}))}var Bm={start:"end",end:"start"};function Hm(e){return e.replace(/start|end/g,(function(e){return Bm[e]}))}function Wm(e){var t=um(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Gm(e){return wm(Im(e)).left+Wm(e).scrollLeft}function qm(e){var t=km(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Um(e){return["html","body","#document"].indexOf(cm(e))>=0?e.ownerDocument.body:pm(e)&&qm(e)?e:Um(Em(e))}function Ym(e,t){var n;void 0===t&&(t=[]);var r=Um(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=um(r),i=o?[a].concat(a.visualViewport||[],qm(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Ym(Em(i)))}function Km(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Jm(e,t,n){return t===rm?Km(function(e,t){var n=um(e),r=Im(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=xm();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+Gm(e),y:s}}(e,n)):dm(t)?function(e,t){var n=wm(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Km(function(e){var t,n=Im(e),r=Wm(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=hm(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=hm(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Gm(e),s=-r.scrollTop;return"rtl"===km(o||n).direction&&(l+=hm(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(Im(e)))}function Xm(e,t,n,r){var o="clippingParents"===t?function(e){var t=Ym(Em(e)),n=["absolute","fixed"].indexOf(km(e).position)>=0&&pm(e)?Nm(e):e;return dm(n)?t.filter((function(e){return dm(e)&&Cm(e,n)&&"body"!==cm(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=Jm(e,n,r);return t.top=hm(o.top,t.top),t.right=vm(o.right,t.right),t.bottom=vm(o.bottom,t.bottom),t.left=hm(o.left,t.left),t}),Jm(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Qm(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?gm(o):null,i=o?jm(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case Yf:t={x:l,y:n.y-r.height};break;case Kf:t={x:l,y:n.y+n.height};break;case Jf:t={x:n.x+n.width,y:s};break;case Xf:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?$m(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case em:t[c]=t[c]-(n[u]/2-r[u]/2);break;case tm:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Zm(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?nm:l,c=n.rootBoundary,u=void 0===c?rm:c,d=n.elementContext,p=void 0===d?om:d,f=n.altBoundary,m=void 0!==f&&f,g=n.padding,h=void 0===g?0:g,v=Rm("number"!=typeof h?h:Dm(h,Zf)),b=p===om?am:om,y=e.rects.popper,x=e.elements[m?b:p],w=Xm(dm(x)?x:x.contextElement||Im(e.elements.popper),s,u,i),S=wm(e.elements.reference),C=Qm({reference:S,element:y,strategy:"absolute",placement:o}),k=Km(Object.assign({},y,C)),O=p===om?k:S,I={top:w.top-O.top+v.top,bottom:O.bottom-w.bottom+v.bottom,left:w.left-O.left+v.left,right:O.right-w.right+v.right},E=e.modifiersData.offset;if(p===om&&E){var P=E[o];Object.keys(I).forEach((function(e){var t=[Jf,Kf].indexOf(e)>=0?1:-1,n=[Yf,Kf].indexOf(e)>=0?"y":"x";I[e]+=P[n]*t}))}return I}function eg(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?lm:s,u=jm(r),d=u?l?im:im.filter((function(e){return jm(e)===u})):Zf,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Zm(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[gm(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var tg={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,g=n.allowedAutoPlacements,h=t.options.placement,v=gm(h),b=s||(v===h||!m?[Fm(h)]:function(e){if(gm(e)===Qf)return[];var t=Fm(e);return[Hm(e),t,Hm(t)]}(h)),y=[h].concat(b).reduce((function(e,n){return e.concat(gm(n)===Qf?eg(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:g}):n)}),[]),x=t.rects.reference,w=t.rects.popper,S=new Map,C=!0,k=y[0],O=0;O<y.length;O++){var I=y[O],E=gm(I),P=jm(I)===em,N=[Yf,Kf].indexOf(E)>=0,$=N?"width":"height",z=Zm(t,{placement:I,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),R=N?P?Jf:Xf:P?Kf:Yf;x[$]>w[$]&&(R=Fm(R));var D=Fm(R),T=[];if(a&&T.push(z[E]<=0),l&&T.push(z[R]<=0,z[D]<=0),T.every((function(e){return e}))){k=I,C=!1;break}S.set(I,T)}if(C)for(var j=function(e){var t=y.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},M=m?3:1;M>0;M--){if("break"===j(M))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ng(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function rg(e){return[Yf,Jf,Kf,Xf].some((function(t){return e[t]>=0}))}var og={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Zm(t,{elementContext:"reference"}),l=Zm(t,{altBoundary:!0}),s=ng(i,r),c=ng(l,o,a),u=rg(s),d=rg(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var ag={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=lm.reduce((function(e,n){return e[n]=function(e,t,n){var r=gm(e),o=[Xf,Yf].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Xf,Jf].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}};var ig={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Qm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var lg={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,m=n.tetherOffset,g=void 0===m?0:m,h=Zm(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=gm(t.placement),b=jm(t.placement),y=!b,x=$m(v),w="x"===x?"y":"x",S=t.modifiersData.popperOffsets,C=t.rects.reference,k=t.rects.popper,O="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,I="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(S){if(a){var N,$="y"===x?Yf:Xf,z="y"===x?Kf:Jf,R="y"===x?"height":"width",D=S[x],T=D+h[$],j=D-h[z],M=f?-k[R]/2:0,A=b===em?C[R]:k[R],V=b===em?-k[R]:-C[R],_=t.elements.arrow,L=f&&_?Sm(_):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[$],H=F[z],W=zm(0,C[R],L[R]),G=y?C[R]/2-M-W-B-I.mainAxis:A-W-B-I.mainAxis,q=y?-C[R]/2+M+W+H+I.mainAxis:V+W+H+I.mainAxis,U=t.elements.arrow&&Nm(t.elements.arrow),Y=U?"y"===x?U.clientTop||0:U.clientLeft||0:0,K=null!=(N=null==E?void 0:E[x])?N:0,J=D+q-K,X=zm(f?vm(T,D+G-K-Y):T,D,f?hm(j,J):j);S[x]=X,P[x]=X-D}if(l){var Q,Z="x"===x?Yf:Xf,ee="x"===x?Kf:Jf,te=S[w],ne="y"===w?"height":"width",re=te+h[Z],oe=te-h[ee],ae=-1!==[Yf,Xf].indexOf(v),ie=null!=(Q=null==E?void 0:E[w])?Q:0,le=ae?re:te-C[ne]-k[ne]-ie+I.altAxis,se=ae?te+C[ne]+k[ne]-ie-I.altAxis:oe,ce=f&&ae?function(e,t,n){var r=zm(e,t,n);return r>n?n:r}(le,te,se):zm(f?le:re,te,f?se:oe);S[w]=ce,P[w]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function sg(e,t,n){void 0===n&&(n=!1);var r=pm(t),o=pm(t)&&function(e){var t=e.getBoundingClientRect(),n=bm(t.width)/e.offsetWidth||1,r=bm(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Im(t),i=wm(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==cm(t)||qm(a))&&(l=function(e){return e!==um(e)&&pm(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Wm(e);var t}(t)),pm(t)?((s=wm(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Gm(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function cg(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ug={placement:"bottom",modifiers:[],strategy:"absolute"};function dg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function pg(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?ug:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},ug,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:dm(e)?Ym(e):e.contextElement?Ym(e.contextElement):[],popper:Ym(t)};var i,c,p=function(e){var t=cg(e);return sm.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:u,options:r}),i=function(){};s.push(a||i)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(dg(t,n)){l.rects={reference:sg(t,Nm(n),"fixed"===l.options.strategy),popper:Sm(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!dg(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var fg=pg({defaultModifiers:[_m,ig,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:gm(t.placement),variation:jm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Am(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Am(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},mm,ag,tg,lg,Tm,og]});const mg="Popper";function gg(e){return Zp(mg,e)}!function(e,t){const n={};t.forEach((t=>{n[t]=Zp(e,t)}))}(mg,["root"]);const hg=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],vg=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function bg(e){return"function"==typeof e?e():e}function yg(e){return void 0!==e.nodeType}const xg=()=>Id({root:["root"]},function(e){const{disableDefaultClasses:t}=o.useContext(Gp);return n=>t?"":e(n)}(gg)),wg={},Sg=o.forwardRef((function(t,n){var r;const{anchorEl:a,children:i,direction:l,disablePortal:s,modifiers:c,open:u,placement:d,popperOptions:p,popperRef:f,slotProps:m={},slots:g={},TransitionProps:h}=t,v=Xs(t,hg),b=o.useRef(null),y=ud(b,n),x=o.useRef(null),w=ud(x,f),S=o.useRef(w);Wu((()=>{S.current=w}),[w]),o.useImperativeHandle(f,(()=>x.current),[]);const C=function(e,t){if("ltr"===t)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}}(d,l),[k,O]=o.useState(C),[I,E]=o.useState(bg(a));o.useEffect((()=>{x.current&&x.current.forceUpdate()})),o.useEffect((()=>{a&&E(bg(a))}),[a]),Wu((()=>{if(!I||!u)return;if("production"!==process.env.NODE_ENV&&I&&yg(I)&&1===I.nodeType){const e=I.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{O(e.placement)}}];null!=c&&(e=e.concat(c)),p&&null!=p.modifiers&&(e=e.concat(p.modifiers));const t=fg(I,b.current,Di({placement:C},p,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[I,s,c,u,p,C]);const P={placement:k};null!==h&&(P.TransitionProps=h);const N=xg(),$=null!=(r=g.root)?r:"div",z=Xp({elementType:$,externalSlotProps:m.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:N.root});return e.jsx($,Di({},z,{children:"function"==typeof i?i(P):i}))})),Cg=o.forwardRef((function(t,n){const{anchorEl:r,children:a,container:i,direction:l="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:f=wg,popperRef:m,style:g,transition:h=!1,slotProps:v={},slots:b={}}=t,y=Xs(t,vg),[x,w]=o.useState(!0);if(!c&&!d&&(!h||x))return null;let S;if(i)S=i;else if(r){const e=bg(r);S=e&&yg(e)?nd(e).body:nd(null).body}const C=d||!c||h&&!x?void 0:"none",k=h?{in:d,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return e.jsx(Af,{disablePortal:s,container:S,children:e.jsx(Sg,Di({anchorEl:r,direction:l,disablePortal:s,modifiers:u,ref:n,open:h?!x:d,placement:p,popperOptions:f,popperRef:m,slotProps:v,slots:b},y,{style:Di({position:"fixed",top:0,left:0,display:C},g),TransitionProps:k,children:a}))})}));function kg(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Og(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}"production"!==process.env.NODE_ENV&&(Cg.propTypes={anchorEl:Uu(Ga.oneOfType([Qu,Ga.object,Ga.func]),(e=>{if(e.open){const t=bg(e.anchorEl);if(t&&yg(t)&&1===t.nodeType){const e=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}else if(!t||"function"!=typeof t.getBoundingClientRect||!yg(t)&&null!=t.contextElement&&1!==t.contextElement.nodeType)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join("\n"))}return null})),children:Ga.oneOfType([Ga.node,Ga.func]),container:Ga.oneOfType([Qu,Ga.func]),direction:Ga.oneOf(["ltr","rtl"]),disablePortal:Ga.bool,keepMounted:Ga.bool,modifiers:Ga.arrayOf(Ga.shape({data:Ga.object,effect:Ga.func,enabled:Ga.bool,fn:Ga.func,name:Ga.any,options:Ga.object,phase:Ga.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:Ga.arrayOf(Ga.string),requiresIfExists:Ga.arrayOf(Ga.string)})),open:Ga.bool.isRequired,placement:Ga.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:Ga.shape({modifiers:Ga.array,onFirstUpdate:Ga.func,placement:Ga.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:Ga.oneOf(["absolute","fixed"])}),popperRef:Zu,slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),transition:Ga.bool});const Ig=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let c=i?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=kg(c));const u=c?e.filter((e=>{let r=(a||s)(e);return n&&(r=r.toLowerCase()),t&&(r=kg(r)),"start"===o?0===r.indexOf(c):r.indexOf(c)>-1})):e;return"number"==typeof r?u.slice(0,r):u}}(),Eg=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function Pg(e){const{unstable_isActiveElementInListbox:t=Eg,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:a=!1,autoSelect:i=!1,blurOnSelect:l=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:m,disabledItemsFocusable:g=!1,disableListWrap:h=!1,filterOptions:v=Ig,filterSelectedOptions:b=!1,freeSolo:y=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:S=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:C,handleHomeEndKeys:k=!e.freeSolo,id:O,includeInputInList:I=!1,inputValue:E,isOptionEqualToValue:P=((e,t)=>e===t),multiple:N=!1,onChange:$,onClose:z,onHighlightChange:R,onInputChange:D,onOpen:T,open:j,openOnFocus:M=!1,options:A,readOnly:V=!1,selectOnFocus:_=!e.freeSolo,value:L}=e,F=ld(O);let B=S;B=e=>{const t=S(e);if("string"!=typeof t){if("production"!==process.env.NODE_ENV){const n=void 0===t?"undefined":`${typeof t} (${t})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${n} instead of a string for ${JSON.stringify(e)}.`)}return String(t)}return t};const H=o.useRef(!1),W=o.useRef(!0),G=o.useRef(null),q=o.useRef(null),[U,Y]=o.useState(null),[K,J]=o.useState(-1),X=a?0:-1,Q=o.useRef(X),[Z,ee]=sd({controlled:L,default:d,name:u}),[te,ne]=sd({controlled:E,default:"",name:u,state:"inputValue"}),[re,oe]=o.useState(!1),ae=o.useCallback(((e,t)=>{if(!(N?Z.length<t.length:null!==t)&&!s)return;let n;if(N)n="";else if(null==t)n="";else{const e=B(t);n="string"==typeof e?e:""}te!==n&&(ne(n),D&&D(e,n,"reset"))}),[B,te,N,D,ne,s,Z]),[ie,le]=sd({controlled:j,default:!1,name:u,state:"open"}),[se,ce]=o.useState(!0),ue=!N&&null!=Z&&te===B(Z),de=ie&&!V,pe=de?v(A.filter((e=>!b||!(N?Z:[Z]).some((t=>null!==t&&P(e,t))))),{inputValue:ue&&se?"":te,getOptionLabel:B}):[],fe=(e=>{const t=o.useRef({});return o.useEffect((()=>{t.current=e})),t.current})({filteredOptions:pe,value:Z,inputValue:te});o.useEffect((()=>{const e=Z!==fe.value;re&&!e||y&&!e||ae(null,Z)}),[Z,ae,re,fe.value,y]);const me=ie&&pe.length>0&&!V;if("production"!==process.env.NODE_ENV&&null!==Z&&!y&&A.length>0){const e=(N?Z:[Z]).filter((e=>!A.some((t=>P(t,e)))));e.length>0&&console.warn([`MUI: The value provided to ${u} is invalid.`,`None of the options match with \`${e.length>1?JSON.stringify(e):JSON.stringify(e[0])}\`.`,"You can use the `isOptionEqualToValue` prop to customize the equality test."].join("\n"))}const ge=cd((e=>{-1===e?G.current.focus():U.querySelector(`[data-tag-index="${e}"]`).focus()}));o.useEffect((()=>{N&&K>Z.length-1&&(J(-1),ge(-1))}),[Z,N,K,ge]);const he=cd((({event:e,index:t,reason:r="auto"})=>{if(Q.current=t,-1===t?G.current.removeAttribute("aria-activedescendant"):G.current.setAttribute("aria-activedescendant",`${F}-option-${t}`),R&&R(e,-1===t?null:pe[t],r),!q.current)return;const o=q.current.querySelector(`[role="option"].${n}-focused`);o&&(o.classList.remove(`${n}-focused`),o.classList.remove(`${n}-focusVisible`));let a=q.current;if("listbox"!==q.current.getAttribute("role")&&(a=q.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===t)return void(a.scrollTop=0);const i=q.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add(`${n}-focused`),"keyboard"===r&&i.classList.add(`${n}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=i,t=a.clientHeight+a.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?a.scrollTop=n-a.clientHeight:e.offsetTop-e.offsetHeight*(C?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(C?1.3:0))}})),ve=cd((({event:e,diff:t,direction:n="next",reason:o="auto"})=>{if(!de)return;const a=function(e,t){if(!q.current||e<0||e>=pe.length)return-1;let n=e;for(;;){const r=q.current.querySelector(`[data-option-index="${n}"]`),o=!g&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%pe.length:(n-1+pe.length)%pe.length,n===e)return-1}}((()=>{const e=pe.length-1;if("reset"===t)return X;if("start"===t)return 0;if("end"===t)return e;const n=Q.current+t;return n<0?-1===n&&I?-1:h&&-1!==Q.current||Math.abs(t)>1?0:e:n>e?n===e+1&&I?-1:h||Math.abs(t)>1?e:0:n})(),n);if(he({index:a,reason:o,event:e}),r&&"reset"!==t)if(-1===a)G.current.value=te;else{const e=B(pe[a]);G.current.value=e;0===e.toLowerCase().indexOf(te.toLowerCase())&&te.length>0&&G.current.setSelectionRange(te.length,e.length)}})),be=o.useCallback((()=>{if(!de)return;const e=(()=>{if(-1!==Q.current&&fe.filteredOptions&&fe.filteredOptions.length!==pe.length&&fe.inputValue===te&&(N?Z.length===fe.value.length&&fe.value.every(((e,t)=>B(Z[t])===B(e))):(e=fe.value,t=Z,(e?B(e):"")===(t?B(t):"")))){const e=fe.filteredOptions[Q.current];if(e)return Og(pe,(t=>B(t)===B(e)))}var e,t;return-1})();if(-1!==e)return void(Q.current=e);const t=N?Z[0]:Z;if(0!==pe.length&&null!=t){if(q.current)if(null==t)Q.current>=pe.length-1?he({index:pe.length-1}):he({index:Q.current});else{const e=pe[Q.current];if(N&&e&&-1!==Og(Z,(t=>P(e,t))))return;const n=Og(pe,(e=>P(e,t)));-1===n?ve({diff:"reset"}):he({index:n})}}else ve({diff:"reset"})}),[pe.length,!N&&Z,b,ve,he,de,te,N]),ye=cd((e=>{od(q,e),e&&be()}));"production"!==process.env.NODE_ENV&&o.useEffect((()=>{G.current&&"INPUT"===G.current.nodeName||(G.current&&"TEXTAREA"===G.current.nodeName?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join("\n")):console.error([`MUI: Unable to find the input element. It was resolved to ${G.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"","useAutocomplete"===u?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join("\n")))}),[u]),o.useEffect((()=>{be()}),[be]);const xe=e=>{ie||(le(!0),ce(!0),T&&T(e))},we=(e,t)=>{ie&&(le(!1),z&&z(e,t))},Se=(e,t,n,r)=>{if(N){if(Z.length===t.length&&Z.every(((e,n)=>e===t[n])))return}else if(Z===t)return;$&&$(e,t,n,r),ee(t)},Ce=o.useRef(!1),ke=(e,t,n="selectOption",r="options")=>{let o=n,a=t;if(N){if(a=Array.isArray(Z)?Z.slice():[],"production"!==process.env.NODE_ENV){const e=a.filter((e=>P(t,e)));e.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${e.length} matches.`].join("\n"))}const e=Og(a,(e=>P(t,e)));-1===e?a.push(t):"freeSolo"!==r&&(a.splice(e,1),o="removeOption")}ae(e,a),Se(e,a,o,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||we(e,o),(!0===l||"touch"===l&&Ce.current||"mouse"===l&&!Ce.current)&&G.current.blur()};const Oe=(e,t)=>{if(!N)return;""===te&&we(e,"toggleInput");let n=K;-1===K?""===te&&"previous"===t&&(n=Z.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===Z.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===Z.length||"previous"===t&&-1===n)return-1;const e=U.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),J(n),ge(n)},Ie=e=>{H.current=!0,ne(""),D&&D(e,"","clear"),Se(e,N?[]:null,"clear")},Ee=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(J(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":de&&k&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":de&&k&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"ArrowLeft":Oe(t,"previous");break;case"ArrowRight":Oe(t,"next");break;case"Enter":if(-1!==Q.current&&de){const e=pe[Q.current],n=!!x&&x(e);if(t.preventDefault(),n)return;ke(t,e,"selectOption"),r&&G.current.setSelectionRange(G.current.value.length,G.current.value.length)}else y&&""!==te&&!1===ue&&(N&&t.preventDefault(),ke(t,te,"createOption","freeSolo"));break;case"Escape":de?(t.preventDefault(),t.stopPropagation(),we(t,"escape")):c&&(""!==te||N&&Z.length>0)&&(t.preventDefault(),t.stopPropagation(),Ie(t));break;case"Backspace":if(N&&!V&&""===te&&Z.length>0){const e=-1===K?Z.length-1:K,n=Z.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Z[e]})}break;case"Delete":if(N&&!V&&""===te&&Z.length>0&&-1!==K){const e=K,n=Z.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Z[e]})}}},Pe=e=>{oe(!0),M&&!H.current&&xe(e)},Ne=e=>{t(q)?G.current.focus():(oe(!1),W.current=!0,H.current=!1,i&&-1!==Q.current&&de?ke(e,pe[Q.current],"blur"):i&&y&&""!==te?ke(e,te,"blur","freeSolo"):s&&ae(e,Z),we(e,"blur"))},$e=e=>{const t=e.target.value;te!==t&&(ne(t),ce(!1),D&&D(e,t,"input")),""===t?p||N||Se(e,null,"clear"):xe(e)},ze=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Q.current!==t&&he({event:e,index:t,reason:"mouse"})},Re=e=>{he({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ce.current=!0},De=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));ke(e,pe[t],"selectOption"),Ce.current=!1},Te=e=>t=>{const n=Z.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Z[e]})},je=e=>{ie?we(e,"toggleInput"):xe(e)},Me=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==F&&e.preventDefault()},Ae=e=>{e.currentTarget.contains(e.target)&&(G.current.focus(),_&&W.current&&G.current.selectionEnd-G.current.selectionStart==0&&G.current.select(),W.current=!1)},Ve=e=>{m||""!==te&&ie||je(e)};let _e=y&&te.length>0;_e=_e||(N?Z.length>0:null!==Z);let Le=pe;if(C){const e=new Map;let t=!1;Le=pe.reduce(((n,r,o)=>{const a=C(r);return n.length>0&&n[n.length-1].group===a?n[n.length-1].options.push(r):("production"!==process.env.NODE_ENV&&(e.get(a)&&!t&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),t=!0),e.set(a,!0)),n.push({key:o,index:o,group:a,options:[r]})),n}),[])}return m&&re&&Ne(),{getRootProps:(e={})=>Di({"aria-owns":me?`${F}-listbox`:null},e,{onKeyDown:Ee(e),onMouseDown:Me,onClick:Ae}),getInputLabelProps:()=>({id:`${F}-label`,htmlFor:F}),getInputProps:()=>({id:F,value:te,onBlur:Ne,onFocus:Pe,onChange:$e,onMouseDown:Ve,"aria-activedescendant":de?"":null,"aria-autocomplete":r?"both":"list","aria-controls":me?`${F}-listbox`:void 0,"aria-expanded":me,autoComplete:"off",ref:G,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ie}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:je}),getTagProps:({index:e})=>Di({key:e,"data-tag-index":e,tabIndex:-1},!V&&{onDelete:Te(e)}),getListboxProps:()=>({role:"listbox",id:`${F}-listbox`,"aria-labelledby":`${F}-label`,ref:ye,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var n;const r=(N?Z:[Z]).some((e=>null!=e&&P(t,e))),o=!!x&&x(t);return{key:null!=(n=null==w?void 0:w(t))?n:B(t),tabIndex:-1,role:"option",id:`${F}-option-${e}`,onMouseMove:ze,onClick:De,onTouchStart:Re,"data-option-index":e,"aria-disabled":o,"aria-selected":r}},id:F,inputValue:te,value:Z,dirty:_e,expanded:de&&U,popupOpen:de,focused:re||-1!==K,anchorEl:U,setAnchorEl:Y,focusedTag:K,groupedOptions:Le}}const Ng=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],$g=["component","slots","slotProps"],zg=["component"];function Rg(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:l}=t,s=Xs(t,Ng),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=a,p=Xs(a,$g),f=u[e]||r,m=Up(d[e],o),g=Kp(Di({className:n},s,{externalForwardedProps:"root"===e?p:void 0,externalSlotProps:m})),{props:{component:h},internalRef:v}=g,b=Xs(g.props,zg),y=ud(v,null==m?void 0:m.ref,t.ref),x=i?i(b):{},w=Di({},o,x),S="root"===e?h||c:h,C=Bp(f,Di({},"root"===e&&!c&&!u[e]&&l,"root"!==e&&!u[e]&&l,b,S&&{as:S},{ref:y}),w);return Object.keys(x).forEach((e=>{delete C[e]})),[f,C]}function Dg(e){return Cp("MuiListItem",e)}const Tg=kp("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]),jg=o.createContext(!1);"production"!==process.env.NODE_ENV&&(jg.displayName="NestedListContext");const Mg=o.createContext(!1);"production"!==process.env.NODE_ENV&&(Mg.displayName="RowListContext");const Ag=o.createContext(!1);"production"!==process.env.NODE_ENV&&(Ag.displayName="WrapListContext");const Vg=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(Vg.displayName="ComponentListContext");const _g=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(_g.displayName="ListSubheaderContext");const Lg=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(Lg.displayName="GroupListContext");const Fg=["component","className","children","nested","sticky","variant","color","startAction","endAction","role","slots","slotProps"],Bg=Lp("li")((({theme:e,ownerState:t})=>{var n;return[!t.nested&&{"--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItemButton-marginBlock":"calc(-1 * var(--ListItem-paddingY))",alignItems:"center",gap:"var(--ListItem-gap)",marginInline:"var(--ListItem-marginInline)"},t.nested&&{"--NestedList-marginRight":"calc(-1 * var(--ListItem-paddingRight))","--NestedList-marginLeft":"calc(-1 * var(--ListItem-paddingLeft))","--NestedListItem-paddingLeft":"calc(var(--ListItem-paddingLeft) + var(--List-nestedInsetStart))","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItem-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))",flexDirection:"column"},Di({"--unstable_actionRadius":"calc(var(--ListItem-radius) - var(--variant-borderWidth, 0px))"},t.startAction&&{"--unstable_startActionWidth":"2rem"},t.endAction&&{"--unstable_endActionWidth":"2.5rem"},{boxSizing:"border-box",borderRadius:"var(--ListItem-radius)",display:"var(--_ListItem-display)","&:not([hidden])":{"--_ListItem-display":"var(--_List-markerDisplay, flex)"},flex:"none",listStyleType:"var(--_List-markerType, disc)",position:"relative",paddingBlockStart:t.nested?0:"var(--ListItem-paddingY)",paddingBlockEnd:t.nested?0:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)"},void 0===t["data-first-child"]&&Di({},t.row?{marginInlineStart:"var(--List-gap)"}:{marginBlockStart:"var(--List-gap)"}),t.row&&t.wrap&&{marginInlineStart:"var(--List-gap)",marginBlockStart:"var(--List-gap)"},{minBlockSize:"var(--ListItem-minHeight)"},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:`var(--ListItem-stickyBackground, ${e.vars.palette.background.body})`},{[`.${Tg.nested} > &`]:{"--_ListItem-display":"flex"}}),null==(n=e.variants[t.variant])?void 0:n[t.color]]})),Hg=Lp(Bg,{name:"JoyListItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Wg=Lp("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})((({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",left:0,transform:"translate(var(--ListItem-startActionTranslateX), -50%)",zIndex:1}))),Gg=Lp("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})((({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",right:0,transform:"translate(var(--ListItem-endActionTranslateX), -50%)"}))),qg=o.forwardRef((function(t,n){const r=Fp({props:t,name:"JoyListItem"}),a=o.useContext(Lg),i=o.useContext(Vg),l=o.useContext(Mg),s=o.useContext(Ag),c=o.useContext(jg),{component:u,className:d,children:p,nested:f=!1,sticky:m=!1,variant:g="plain",color:h="neutral",startAction:v,endAction:b,role:y,slots:x={},slotProps:w={}}=r,S=Xs(r,Fg),[C,k]=o.useState(""),[O,I]=(null==i?void 0:i.split(":"))||["",""],E=u||(O&&!O.match(/^(ul|ol|menu)$/)?"div":void 0);let P="menu"===a?"none":void 0;i&&(P={menu:"none",menubar:"none",group:"presentation"}[I]),y&&(P=y);const N=Di({},r,{sticky:m,startAction:v,endAction:b,row:l,wrap:s,variant:g,color:h,nesting:c,nested:f,component:E,role:P}),$=(e=>{const{sticky:t,nested:n,nesting:r,variant:o,color:a}=e;return Id({root:["root",n&&"nested",r&&"nesting",t&&"sticky",a&&`color${uc(a)}`,o&&`variant${uc(o)}`],startAction:["startAction"],endAction:["endAction"]},Dg,{})})(N),z=Di({},S,{component:E,slots:x,slotProps:w}),[R,D]=Rg("root",{additionalProps:{role:P},ref:n,className:hu($.root,d),elementType:Hg,externalForwardedProps:z,ownerState:N}),[T,j]=Rg("startAction",{className:$.startAction,elementType:Wg,externalForwardedProps:z,ownerState:N}),[M,A]=Rg("endAction",{className:$.endAction,elementType:Gg,externalForwardedProps:z,ownerState:N});return e.jsx(_g.Provider,{value:k,children:e.jsx(jg.Provider,{value:!!f&&(C||!0),children:e.jsxs(R,Di({},D,{children:[v&&e.jsx(T,Di({},j,{children:v})),o.Children.map(p,((e,t)=>o.isValidElement(e)?o.cloneElement(e,Di({},0===t&&{"data-first-child":""},td(e,["ListItem"])&&{component:e.props.component||"div"})):e)),b&&e.jsx(M,Di({},A,{children:b}))]}))})})}));"production"!==process.env.NODE_ENV&&(qg.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,endAction:Ga.node,nested:Ga.bool,role:Ga.string,slotProps:Ga.shape({endAction:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object]),startAction:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({endAction:Ga.elementType,root:Ga.elementType,startAction:Ga.elementType}),startAction:Ga.node,sticky:Ga.bool,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])}),qg.muiName="ListItem";const Ug={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};function Yg(t){const{children:n,nested:r,row:a=!1,wrap:i=!1}=t,l=e.jsx(Mg.Provider,{value:a,children:e.jsx(Ag.Provider,{value:i,children:o.Children.map(n,((e,t)=>o.isValidElement(e)?o.cloneElement(e,Di({},0===t&&{"data-first-child":""},t===o.Children.count(n)-1&&{"data-last-child":""})):e))})});return void 0===r?l:e.jsx(jg.Provider,{value:r,children:l})}const Kg=({theme:e,ownerState:t},n)=>{let r={};return t.sx&&(!function t(n){"function"==typeof n?t(n(e)):Array.isArray(n)?n.forEach((e=>{"boolean"!=typeof e&&t(e)})):"object"==typeof n&&(r=Di({},r,n))}(t.sx),n.forEach((t=>{const n=r[t];var o;"string"==typeof n||"number"==typeof n?"borderRadius"===t?r[t]="number"==typeof n?`${n}px`:(null==(o=e.vars)?void 0:o.radius[n])||n:-1!==["p","padding","m","margin"].indexOf(t)&&"number"==typeof n?r[t]=e.spacing(n):r[t]=n:r[t]="function"==typeof n?n(e):void 0}))),r};function Jg(e){return Cp("MuiList",e)}var Xg=kp("MuiList",["root","nesting","scoped","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","horizontal","vertical"]);const Qg=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(Qg.displayName="RadioGroupContext");const Zg=["component","className","children","size","orientation","wrap","variant","color","role","slots","slotProps"],eh=Lp("ul")((({theme:e,ownerState:t})=>{var n;const{p:r,padding:o,borderRadius:a}=Kg({theme:e,ownerState:t},["p","padding","borderRadius"]);function i(n){return"sm"===n?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"3px","--ListItem-paddingX":t.marker?"3px":"0.5rem","--ListItem-gap":"0.5rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.5rem":"2rem","--Icon-fontSize":e.vars.fontSize.lg}:"md"===n?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.25rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":t.marker?"0.25rem":"0.75rem","--ListItem-gap":"0.625rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.75rem":"2.5rem","--Icon-fontSize":e.vars.fontSize.xl}:"lg"===n?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"2.75rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":t.marker?"0.5rem":"1rem","--ListItem-gap":"0.75rem","--ListItemDecorator-size":"horizontal"===t.orientation?"2.25rem":"3rem","--Icon-fontSize":e.vars.fontSize.xl2}:{}}return[t.nesting&&Di({},i(t.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0},t.marker&&{paddingInlineStart:"calc(3ch - var(--_List-markerDeduct, 0px))"},{marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&Di({},i(t.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)"},t.marker&&{"--_List-markerDeduct":"1ch"},{"--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},e.typography[`body-${t.size}`],"horizontal"===t.orientation?Di({},t.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"},t.marker&&{paddingInlineStart:"3ch"}),Di({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},t.wrap&&{flexWrap:"wrap"},t.marker&&{"--_List-markerDisplay":"list-item","--_List-markerType":t.marker,lineHeight:"calc(var(--ListItem-minHeight) - 2 * var(--ListItem-paddingY))"},{flexGrow:1,position:"relative"},null==(n=e.variants[t.variant])?void 0:n[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},void 0!==a&&{"--List-radius":a},void 0!==r&&{"--List-padding":r},void 0!==o&&{"--List-padding":o})]})),th=Lp(eh,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nh=o.forwardRef((function(t,n){var r;const a=o.useContext(jg),i=o.useContext(Lg),l=o.useContext(Qg),s=Fp({props:t,name:"JoyList"}),{component:c,className:u,children:d,size:p,orientation:f="vertical",wrap:m=!1,variant:g="plain",color:h="neutral",role:v,slots:b={},slotProps:y={}}=s,x=Xs(s,Zg),w=p||(null!=(r=t.size)?r:"md");let S;i&&(S="group"),l&&(S="presentation"),v&&(S=v);const C=Di({},s,{instanceSize:t.size,size:w,nesting:a,orientation:f,wrap:m,variant:g,color:h,role:S}),k=(e=>{const{variant:t,color:n,size:r,nesting:o,orientation:a,instanceSize:i}=e;return Id({root:["root",a,t&&`variant${uc(t)}`,n&&`color${uc(n)}`,!i&&!o&&r&&`size${uc(r)}`,i&&`size${uc(i)}`,o&&"nesting"]},Jg,{})})(C),O=Di({},x,{component:c,slots:b,slotProps:y}),[I,E]=Rg("root",{ref:n,className:hu(k.root,u),elementType:th,externalForwardedProps:O,ownerState:C,additionalProps:{as:c,role:S,"aria-labelledby":"string"==typeof a?a:void 0}});return e.jsx(I,Di({},E,{children:e.jsx(Vg.Provider,{value:`${"string"==typeof c?c:""}:${S||""}`,children:e.jsx(Yg,{row:"horizontal"===f,wrap:m,children:d})})}))}));function rh(e){return Cp("MuiListItemButton",e)}"production"!==process.env.NODE_ENV&&(nh.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,marker:Ga.string,orientation:Ga.oneOf(["horizontal","vertical"]),role:Ga.string,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string]),wrap:Ga.bool});const oh=kp("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]),ah=o.createContext("horizontal");"production"!==process.env.NODE_ENV&&(ah.displayName="ListItemButtonOrientationContext");const ih=["children","className","action","component","orientation","role","selected","color","variant","slots","slotProps"],lh=Lp("div")((({theme:e,ownerState:t})=>{var n,r,o,a,i,l;return Di({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",font:"inherit",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch",gap:"var(--ListItem-gap)"},"vertical"===t.orientation&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},void 0===t["data-first-child"]&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"1px solid transparent",borderRadius:"var(--ListItem-radius)",flex:"var(--unstable_ListItem-flex, none)",fontSize:"inherit",lineHeight:"inherit",minInlineSize:0,[e.focus.selector]:Di({},e.focus.default,{zIndex:1})},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:active":null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color],[`.${Tg.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${oh.selected}`]:Di({},null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${oh.selected}, [aria-selected="true"])`]:{"&:hover":null==(a=e.variants[`${t.variant}Hover`])?void 0:a[t.color],"&:active":null==(i=e.variants[`${t.variant}Active`])?void 0:i[t.color]},[`&.${oh.disabled}`]:Di({},null==(l=e.variants[`${t.variant}Disabled`])?void 0:l[t.color])})})),sh=Lp(lh,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e,theme:t})=>Di({},!e.row&&{[`&.${oh.selected}`]:{fontWeight:t.vars.fontWeight.md}}))),ch=o.forwardRef((function(t,n){const r=Fp({props:t,name:"JoyListItemButton"}),a=o.useContext(Mg),{children:i,className:l,action:s,component:c="div",orientation:u="horizontal",role:d,selected:p=!1,color:f="neutral",variant:m="plain",slots:g={},slotProps:h={}}=r,v=Xs(r,ih),b=o.useRef(null),y=ud(b,n),{focusVisible:x,setFocusVisible:w,getRootProps:S}=ef(Di({},r,{rootRef:y}));o.useImperativeHandle(s,(()=>({focusVisible:()=>{var e;w(!0),null==(e=b.current)||e.focus()}})),[w]);const C=Di({},r,{component:c,color:f,focusVisible:x,orientation:u,row:a,selected:p,variant:m}),k=(e=>{const{color:t,disabled:n,focusVisible:r,focusVisibleClassName:o,selected:a,variant:i}=e,l=Id({root:["root",n&&"disabled",r&&"focusVisible",t&&`color${uc(t)}`,a&&"selected",i&&`variant${uc(i)}`]},rh,{});return r&&o&&(l.root+=` ${o}`),l})(C),O=Di({},v,{component:c,slots:g,slotProps:h}),[I,E]=Rg("root",{ref:n,className:hu(k.root,l),elementType:sh,externalForwardedProps:O,ownerState:C,getSlotProps:S});return e.jsx(ah.Provider,{value:u,children:e.jsx(I,Di({},E,{role:null!=d?d:E.role,children:i}))})}));function uh(e){return Cp("MuiSvgIcon",e)}"production"!==process.env.NODE_ENV&&(ch.propTypes={action:Ga.oneOfType([Ga.func,Ga.shape({current:Ga.shape({focusVisible:Ga.func.isRequired})})]),autoFocus:Ga.bool,children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,disabled:Ga.bool,focusVisibleClassName:Ga.string,orientation:Ga.oneOf(["horizontal","vertical"]),role:Ga.string,selected:Ga.bool,slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),tabIndex:Ga.number,variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])}),kp("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);const dh=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],ph={sm:"xl",md:"xl2",lg:"xl3"},fh=Lp("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n;return Di({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[ph[t.instanceSize]]},t.instanceFontSize&&"inherit"!==t.instanceFontSize&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[ph[t.size]]||"unset"})`},t.fontSize&&"inherit"!==t.fontSize&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&Di({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&e.vars.palette[t.color]&&{color:`rgba(${null==(n=e.vars.palette[t.color])?void 0:n.mainChannel} / 1)`}))})),mh=o.forwardRef((function(t,n){const r=Fp({props:t,name:"JoySvgIcon"}),{children:a,className:i,color:l,component:s="svg",fontSize:c,htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:f="0 0 24 24",size:m="md",slots:g={},slotProps:h={}}=r,v=Xs(r,dh),b=o.isValidElement(a)&&"svg"===a.type,y=Di({},r,{color:l,component:s,size:m,instanceSize:t.size,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:b}),x=(e=>{const{color:t,size:n,fontSize:r}=e;return Id({root:["root",t&&"inherit"!==t&&`color${uc(t)}`,n&&`size${uc(n)}`,r&&`fontSize${uc(r)}`]},uh,{})})(y),w=Di({},v,{component:s,slots:g,slotProps:h}),[S,C]=Rg("root",{ref:n,className:hu(x.root,i),elementType:fh,externalForwardedProps:w,ownerState:y,additionalProps:Di({color:u,focusable:!1},p&&{role:"img"},!p&&{"aria-hidden":!0},!d&&{viewBox:f},b&&a.props)});return e.jsxs(S,Di({},C,{children:[b?a.props.children:a,p?e.jsx("title",{children:p}):null]}))}));function gh(t,n){function r(r,o){return e.jsx(mh,Di({"data-testid":`${n}Icon`,ref:o},r,{children:t}))}return"production"!==process.env.NODE_ENV&&(r.displayName=`${n}Icon`),r.muiName=mh.muiName,o.memo(o.forwardRef(r))}"production"!==process.env.NODE_ENV&&(mh.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","inherit","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,fontSize:Ga.oneOfType([Ga.oneOf(["inherit","lg","md","sm","xl","xl2","xl3","xl4","xs"]),Ga.string]),htmlColor:Ga.string,inheritViewBox:Ga.bool,shapeRendering:Ga.string,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),titleAccess:Ga.string,viewBox:Ga.string});const hh=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,vh="data-skip-inverted-colors",bh=`& :not([${vh}], [${vh}] *)`,yh=e=>{var t,n,r,o,a,i,l,s,c,u,d,p,f,m,g,h,v,b,y,x,w,S;const C=hh(e.cssVarPrefix);return{"--variant-plainColor":"var(--variant-plainColor) !important","--variant-plainHoverColor":"var(--variant-plainHoverColor) !important","--variant-plainHoverBg":"var(--variant-plainHoverBg) !important","--variant-plainActiveBg":"var(--variant-plainActiveBg) !important","--variant-plainDisabledColor":"var(--variant-plainDisabledColor) !important","--variant-outlinedColor":"var(--variant-outlinedColor) !important","--variant-outlinedBorder":"var(--variant-outlinedBorder) !important","--variant-outlinedHoverColor":"var(--variant-outlinedHoverColor) !important","--variant-outlinedHoverBorder":"var(--variant-outlinedHoverBorder) !important","--variant-outlinedHoverBg":"var(--variant-outlinedHoverBg) !important","--variant-outlinedActiveBg":"var(--variant-outlinedActiveBg) !important","--variant-outlinedDisabledColor":"var(--variant-outlinedDisabledColor) !important","--variant-outlinedDisabledBorder":"var(--variant-outlinedDisabledBorder) !important","--variant-softColor":"var(--variant-softColor) !important","--variant-softHoverColor":"var(--variant-softHoverColor) !important","--variant-softBg":"var(--variant-softBg) !important","--variant-softHoverBg":"var(--variant-softHoverBg) !important","--variant-softActiveBg":"var(--variant-softActiveBg) !important","--variant-softActiveColor":"var(--variant-softActiveColor) !important","--variant-softDisabledColor":"var(--variant-softDisabledColor) !important","--variant-softDisabledBg":"var(--variant-softDisabledBg) !important","--variant-solidColor":"var(--variant-solidColor) !important","--variant-solidBg":"var(--variant-solidBg) !important","--variant-solidHoverBg":"var(--variant-solidHoverBg) !important","--variant-solidActiveBg":"var(--variant-solidActiveBg) !important","--variant-solidDisabledColor":"var(--variant-solidDisabledColor) !important","--variant-solidDisabledBg":"var(--variant-solidDisabledBg) !important","--Badge-ringColor":"var(--Badge-ringColor) !important",colorScheme:"unset",[e.getColorSchemeSelector("light")]:{[C("--palette-focusVisible")]:`${null==(t=e.colorSchemes.light)?void 0:t.palette.focusVisible} !important`,[C("--palette-background-body")]:`${null==(n=e.colorSchemes.light)?void 0:n.palette.background.body} !important`,[C("--palette-background-surface")]:`${null==(r=e.colorSchemes.light)?void 0:r.palette.background.surface} !important`,[C("--palette-background-popup")]:`${null==(o=e.colorSchemes.light)?void 0:o.palette.background.popup} !important`,[C("--palette-background-level1")]:`${null==(a=e.colorSchemes.light)?void 0:a.palette.background.level1} !important`,[C("--palette-background-level2")]:`${null==(i=e.colorSchemes.light)?void 0:i.palette.background.level2} !important`,[C("--palette-background-level3")]:`${null==(l=e.colorSchemes.light)?void 0:l.palette.background.level3} !important`,[C("--palette-text-primary")]:`${null==(s=e.colorSchemes.light)?void 0:s.palette.text.primary} !important`,[C("--palette-text-secondary")]:`${null==(c=e.colorSchemes.light)?void 0:c.palette.text.secondary} !important`,[C("--palette-text-tertiary")]:`${null==(u=e.colorSchemes.light)?void 0:u.palette.text.tertiary} !important`,[C("--palette-divider")]:`${null==(d=e.colorSchemes.light)?void 0:d.palette.divider} !important`},[e.getColorSchemeSelector("dark")]:{[C("--palette-focusVisible")]:`${null==(p=e.colorSchemes.dark)?void 0:p.palette.focusVisible} !important`,[C("--palette-background-body")]:`${null==(f=e.colorSchemes.dark)?void 0:f.palette.background.body} !important`,[C("--palette-background-surface")]:`${null==(m=e.colorSchemes.dark)?void 0:m.palette.background.surface} !important`,[C("--palette-background-popup")]:`${null==(g=e.colorSchemes.dark)?void 0:g.palette.background.popup} !important`,[C("--palette-background-level1")]:`${null==(h=e.colorSchemes.dark)?void 0:h.palette.background.level1} !important`,[C("--palette-background-level2")]:`${null==(v=e.colorSchemes.dark)?void 0:v.palette.background.level2} !important`,[C("--palette-background-level3")]:`${null==(b=e.colorSchemes.dark)?void 0:b.palette.background.level3} !important`,[C("--palette-text-primary")]:`${null==(y=e.colorSchemes.dark)?void 0:y.palette.text.primary} !important`,[C("--palette-text-secondary")]:`${null==(x=e.colorSchemes.dark)?void 0:x.palette.text.secondary} !important`,[C("--palette-text-tertiary")]:`${null==(w=e.colorSchemes.dark)?void 0:w.palette.text.tertiary} !important`,[C("--palette-divider")]:`${null==(S=e.colorSchemes.dark)?void 0:S.palette.divider} !important`}}};const xh=e=>t=>{const n=void 0!==t.theme?t.theme:t;const r=Ud(n.cssVarPrefix),o=hh(n.cssVarPrefix),a=e=>{const t=e.split("-");return r(e,n.palette[t[1]][t[2]])};return{[bh]:{"--Badge-ringColor":a(`palette-${e}-solidBg`),"--Icon-color":"currentColor",[`${n.getColorSchemeSelector("light")}, ${n.getColorSchemeSelector("dark")}`]:{colorScheme:"dark",[o("--palette-focusVisible")]:a(`palette-${e}-200`),[o("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[o("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[o("--palette-background-popup")]:a(`palette-${e}-700`),[o("--palette-background-level1")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.36)`,[o("--palette-background-level3")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.6)`,[o("--palette-text-primary")]:a("palette-common-white"),[o("--palette-text-secondary")]:a(`palette-${e}-200`),[o("--palette-text-tertiary")]:a(`palette-${e}-300`),[o("--palette-text-icon")]:a(`palette-${e}-200`),[o("--palette-divider")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainColor":a(`palette-${e}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":a(`palette-${e}-50`),"--variant-outlinedBorder":`rgba(${a(`palette-${e}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":a(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":a("palette-common-white"),"--variant-softHoverColor":a("palette-common-white"),"--variant-softBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.16)`,"--variant-softActiveColor":"#fff","--variant-softDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.1)`,"--variant-solidColor":a(`palette-${e}-${"neutral"===e?"600":"500"}`),"--variant-solidBg":a("palette-common-white"),"--variant-solidHoverBg":a("palette-common-white"),"--variant-solidActiveBg":a(`palette-${e}-100`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.1)`}},[`&, & [${vh}]`]:yh(n)}},wh=e=>t=>{const{theme:n=t}=t,r=Ud(n.cssVarPrefix),o=hh(n.cssVarPrefix),a=e=>{const t=e.split("-");return r(e,n.palette[t[1]][t[2]])};return{[bh]:{"--Badge-ringColor":a(`palette-${e}-softBg`),"--Icon-color":"currentColor",[n.getColorSchemeSelector("dark")]:{[o("--palette-focusVisible")]:a(`palette-${e}-300`),[o("--palette-background-body")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.1)`,[o("--palette-background-surface")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`,[o("--palette-background-level1")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.4)`,[o("--palette-background-level3")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,[o("--palette-text-primary")]:a(`palette-${e}-100`),[o("--palette-text-secondary")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,[o("--palette-text-tertiary")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.6)`,[o("--palette-text-icon")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.6)`,[o("--palette-divider")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${a(`palette-${e}-lightChannel`)} / 1)`,"--variant-plainHoverColor":a(`palette-${e}-50`),"--variant-plainHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${a(`palette-${e}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":a(`palette-${e}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":a(`palette-${e}-600`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.2)`,"--variant-softColor":a(`palette-${e}-200`),"--variant-softBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":a(`palette-${e}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":a(`palette-${e}-600`),"--variant-solidActiveBg":a(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`},[n.getColorSchemeSelector("light")]:{[o("--palette-focusVisible")]:a(`palette-${e}-500`),[o("--palette-background-body")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.1)`,[o("--palette-background-surface")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`,[o("--palette-background-level1")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,[o("--palette-background-level3")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.48)`,[o("--palette-text-primary")]:a(`palette-${e}-700`),[o("--palette-text-secondary")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.8)`,[o("--palette-text-tertiary")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.68)`,[o("--palette-text-icon")]:a(`palette-${e}-500`),[o("--palette-divider")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${a(`palette-${e}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${a(`palette-${e}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${a(`palette-${e}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":a(`palette-${e}-600`),"--variant-outlinedHoverBorder":a(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-softColor":a(`palette-${e}-600`),"--variant-softBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":a(`palette-${e}-700`),"--variant-softHoverBg":a(`palette-${e}-200`),"--variant-softActiveBg":a(`palette-${e}-300`),"--variant-softDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`,"--variant-solidColor":a("palette-common-white"),"--variant-solidBg":a(`palette-${e}-${"neutral"===e?"700":"500"}`),"--variant-solidHoverColor":a("palette-common-white"),"--variant-solidHoverBg":a(`palette-${e}-600`),"--variant-solidActiveBg":a(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`}},[`&, & [${vh}]`]:yh(n)}};var Sh=gh(e.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Ch=gh(e.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const kh=o.createContext(void 0);function Oh(e,t){let n=t,r=e;return"outlined"===e&&(n="neutral",r="plain"),"plain"===e&&(n="neutral"),{variant:r,color:n}}function Ih(e,t,n=!1){const r=o.useContext(kh),[a,i]="string"==typeof r?r.split(":"):[],l=Oh(a||void 0,i||void 0);return l.variant=e||l.variant,l.color=t||(n?i:l.color),l}function Eh({children:t,color:n,variant:r}){return e.jsx(kh.Provider,{value:`${r||""}:${n||""}`,children:t})}function Ph(e){return Cp("MuiIconButton",e)}"production"!==process.env.NODE_ENV&&(kh.displayName="VariantColorContext"),kp("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","loading","loadingIndicator"]);const Nh=o.createContext({});"production"!==process.env.NODE_ENV&&(Nh.displayName="ButtonGroupContext");const $h=o.createContext(void 0);function zh(e){return Cp("MuiCircularProgress",e)}"production"!==process.env.NODE_ENV&&($h.displayName="ToggleButtonGroupContext"),kp("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);let Rh,Dh=e=>e;const Th=["color","backgroundColor"],jh=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],Mh=function(){var e=Ds.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}});function Ah(e,t){return`var(--CircularProgress-${e}Thickness, var(--CircularProgress-thickness, ${t}))`}const Vh=Lp("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e,theme:t})=>{var n,r,o,a;const i=(null==(n=t.variants[e.variant])?void 0:n[e.color])||{},{color:l,backgroundColor:s}=i,c=Xs(i,Th);return Di({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":s,"--CircularProgress-progressColor":l,"--CircularProgress-percent":e.value,"--CircularProgress-linecap":"round"},"sm"===e.size&&{"--_root-size":"var(--CircularProgress-size, 24px)","--_track-thickness":Ah("track","3px"),"--_progress-thickness":Ah("progress","3px")},"sm"===e.instanceSize&&{"--CircularProgress-size":"24px"},"md"===e.size&&{"--_track-thickness":Ah("track","6px"),"--_progress-thickness":Ah("progress","6px"),"--_root-size":"var(--CircularProgress-size, 40px)"},"md"===e.instanceSize&&{"--CircularProgress-size":"40px"},"lg"===e.size&&{"--_track-thickness":Ah("track","8px"),"--_progress-thickness":Ah("progress","8px"),"--_root-size":"var(--CircularProgress-size, 64px)"},"lg"===e.instanceSize&&{"--CircularProgress-size":"64px"},e.thickness&&{"--_track-thickness":`${e.thickness}px`,"--_progress-thickness":`${e.thickness}px`},{"--_thickness-diff":"calc(var(--_track-thickness) - var(--_progress-thickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--_track-thickness), var(--_progress-thickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:l},e.children&&{fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},c,"outlined"===e.variant&&{"&::before":Di({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},c)},"soft"===e.variant&&{"--CircularProgress-trackColor":t.variants.soft.neutral.backgroundColor,"--CircularProgress-progressColor":null==(r=t.variants.solid)?void 0:r[e.color].backgroundColor},"solid"===e.variant&&{"--CircularProgress-trackColor":null==(o=t.variants.softHover)?void 0:o[e.color].backgroundColor,"--CircularProgress-progressColor":null==(a=t.variants.solid)?void 0:a[e.color].backgroundColor})})),_h=Lp("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),Lh=Lp("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(e,t)=>t.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--_track-thickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--_track-thickness)",stroke:"var(--CircularProgress-trackColor)"}),Fh=Lp("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(e,t)=>t.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--_progress-thickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--_progress-thickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},(({ownerState:e})=>!e.determinate&&Ds(Rh||(Rh=Dh`
|
|
141
|
+
animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running)
|
|
142
|
+
${0};
|
|
143
|
+
`),Mh))),Bh=o.forwardRef((function(t,n){const r=Fp({props:t,name:"JoyCircularProgress"}),{children:o,className:a,color:i="primary",size:l="md",variant:s="soft",thickness:c,determinate:u=!1,value:d=(u?0:25),component:p,slots:f={},slotProps:m={}}=r,g=Xs(r,jh),h=Di({},r,{color:i,size:l,variant:s,thickness:c,value:d,determinate:u,instanceSize:t.size}),v=(e=>{const{determinate:t,color:n,variant:r,size:o}=e;return Id({root:["root",t&&"determinate",n&&`color${uc(n)}`,r&&`variant${uc(r)}`,o&&`size${uc(o)}`],svg:["svg"],track:["track"],progress:["progress"]},zh,{})})(h),b=Di({},g,{component:p,slots:f,slotProps:m}),[y,x]=Rg("root",{ref:n,className:hu(v.root,a),elementType:Vh,externalForwardedProps:b,ownerState:h,additionalProps:Di({role:"progressbar",style:{"--CircularProgress-percent":d}},d&&u&&{"aria-valuenow":"number"==typeof d?Math.round(d):Math.round(Number(d||0))})}),[w,S]=Rg("svg",{className:v.svg,elementType:_h,externalForwardedProps:b,ownerState:h}),[C,k]=Rg("track",{className:v.track,elementType:Lh,externalForwardedProps:b,ownerState:h}),[O,I]=Rg("progress",{className:v.progress,elementType:Fh,externalForwardedProps:b,ownerState:h});return e.jsxs(y,Di({},x,{children:[e.jsxs(w,Di({},S,{children:[e.jsx(C,Di({},k)),e.jsx(O,Di({},I))]})),o]}))}));"production"!==process.env.NODE_ENV&&(Bh.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,determinate:Ga.bool,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({progress:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object]),svg:Ga.oneOfType([Ga.func,Ga.object]),track:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({progress:Ga.elementType,root:Ga.elementType,svg:Ga.elementType,track:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),thickness:Ga.number,value:Ga.number,variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])});const Hh=["children","action","component","color","disabled","variant","loading","loadingIndicator","size","slots","slotProps"],Wh=Lp("button")((({theme:e,ownerState:t})=>{var n,r,o,a;return[Di({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon},t.instanceSize&&{"--IconButton-size":{sm:"2rem",md:"2.25rem",lg:"2.75rem"}[t.instanceSize]},"sm"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px"},"md"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.25rem) / 1.5)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2.25rem)",minHeight:"var(--IconButton-size, 2.25rem)",fontSize:e.vars.fontSize.md,paddingInline:"0.25rem"},"lg"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.75rem) / 1.571)","--CircularProgress-size":"28px","--CircularProgress-thickness":"4px",minWidth:"var(--IconButton-size, 2.75rem)",minHeight:"var(--IconButton-size, 2.75rem)",fontSize:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:Di({"--Icon-color":"currentColor"},e.focus.default)}),Di({},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:hover":{"@media (hover: hover)":Di({"--Icon-color":"currentColor"},null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color])},'&:active, &[aria-pressed="true"]':Di({"--Icon-color":"currentColor"},null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color]),"&:disabled":null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]})]})),Gh=Lp(Wh,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qh=Lp("span",{name:"JoyIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})((({theme:e,ownerState:t})=>{var n,r;return Di({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color},t.disabled&&{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color})})),Uh=o.forwardRef((function(t,n){var r;const a=Fp({props:t,name:"JoyIconButton"}),{children:i,action:l,component:s="button",color:c="neutral",disabled:u,variant:d="plain",loading:p=!1,loadingIndicator:f,size:m="md",slots:g={},slotProps:h={}}=a,v=Xs(a,Hh),b=o.useContext(Nh),y=o.useContext($h),x=t.variant||b.variant||d,w=t.size||b.size||m,S=t.color||b.color||c,C=null!=(r=t.loading||t.disabled)?r:b.disabled||p||u,k=o.useRef(null),O=ud(k,n),{focusVisible:I,setFocusVisible:E,getRootProps:P}=ef(Di({},a,{disabled:C,rootRef:O})),N=null!=f?f:e.jsx(Bh,{color:S,thickness:{sm:2,md:3,lg:4}[w]||3});o.useImperativeHandle(l,(()=>({focusVisible:()=>{var e;E(!0),null==(e=k.current)||e.focus()}})),[E]);const $=Di({},a,{component:s,color:S,disabled:C,variant:x,loading:p,size:w,focusVisible:I,instanceSize:t.size}),z=(e=>{const{color:t,disabled:n,focusVisible:r,focusVisibleClassName:o,size:a,variant:i,loading:l}=e,s=Id({root:["root",n&&"disabled",r&&"focusVisible",i&&`variant${uc(i)}`,t&&`color${uc(t)}`,a&&`size${uc(a)}`,l&&"loading"],loadingIndicator:["loadingIndicator"]},Ph,{});return r&&o&&(s.root+=` ${o}`),s})($);let R=a["aria-pressed"];"function"==typeof h.root?R=h.root($)["aria-pressed"]:h.root&&(R=h.root["aria-pressed"]),null!=y&&y.value&&(R=Array.isArray(y.value)?-1!==y.value.indexOf(a.value):y.value===a.value);const D=Di({},v,{component:s,slots:g,slotProps:h}),[T,j]=Rg("root",{ref:n,className:z.root,elementType:Gh,getSlotProps:P,externalForwardedProps:D,ownerState:$,additionalProps:{onClick:e=>{var t;let n=a.onClick;var r;("function"==typeof h.root?n=h.root($).onClick:h.root&&(n=h.root.onClick),null==(t=n)||t(e),y)&&(null==(r=y.onClick)||r.call(y,e,a.value))},"aria-pressed":R}}),[M,A]=Rg("loadingIndicator",{className:z.loadingIndicator,elementType:qh,externalForwardedProps:D,ownerState:$});return e.jsx(T,Di({},j,{children:p?e.jsx(M,Di({},A,{children:N})):i}))}));function Yh(e){return Cp("MuiChip",e)}"production"!==process.env.NODE_ENV&&(Uh.propTypes={action:Ga.oneOfType([Ga.func,Ga.shape({current:Ga.shape({focusVisible:Ga.func.isRequired})})]),children:Ga.node,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,disabled:Ga.bool,focusVisibleClassName:Ga.string,loading:Ga.bool,loadingIndicator:Ga.node,onClick:Ga.func,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({loadingIndicator:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({loadingIndicator:Ga.elementType,root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),tabIndex:Ga.number,value:Ga.oneOfType([Ga.arrayOf(Ga.string),Ga.number,Ga.string]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])}),Uh.muiName="IconButton";const Kh=kp("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),Jh=o.createContext({disabled:void 0,variant:void 0,color:void 0});"production"!==process.env.NODE_ENV&&(Jh.displayName="ChipColorContext");const Xh=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],Qh=Lp("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n,r,o;const a=null==(n=e.variants[t.variant])?void 0:n[t.color],{borderRadius:i}=Kg({theme:e,ownerState:t},["borderRadius"]);return[Di({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--Icon-color":"currentColor","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-paddingInline":"0.375rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 2 * var(--variant-borderWidth))","--Icon-fontSize":e.vars.fontSize.sm,"--_Chip-minHeight":"var(--Chip-minHeight, 1.25rem)",gap:"3px"},"md"===t.size&&{"--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 0.25rem - 2 * var(--variant-borderWidth))","--Icon-fontSize":e.vars.fontSize.md,"--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",gap:"0.25rem"},"lg"===t.size&&{"--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 0.375rem - 2 * var(--variant-borderWidth))","--Icon-fontSize":e.vars.fontSize.lg,"--_Chip-minHeight":"var(--Chip-minHeight, 1.75rem)",gap:"0.375rem"},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",maxWidth:"max-content",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box"},e.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[t.size]}`],{fontWeight:e.vars.fontWeight.md,[`&.${Kh.disabled}`]:{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==a?void 0:a.color}]:[Di({backgroundColor:e.vars.palette.background.surface},a,{[`&.${Kh.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]})],void 0!==i&&{"--_Chip-radius":i}]})),Zh=Lp("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})((({ownerState:e})=>Di({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"}))),ev=Lp("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})((({theme:e,ownerState:t})=>{var n,r,o,a;return[{"--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},Di({backgroundColor:e.vars.palette.background.surface},null==(n=e.variants[t.variant])?void 0:n[t.color]),{"&:hover":{"@media (hover: hover)":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color]}},{"&:active":null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color]},{[`&.${Kh.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]}]})),tv=Lp("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--IconButton-margin":"0 calc(-1 * var(--Chip-paddingInline) / 3) 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",order:0,zIndex:1,pointerEvents:"none"}),nv=Lp("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--IconButton-margin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 calc(-1 * var(--Chip-paddingInline) / 3)","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",order:2,zIndex:1,pointerEvents:"none"}),rv=o.forwardRef((function(t,n){const r=Fp({props:t,name:"JoyChip"}),{children:a,className:i,color:l="neutral",onClick:s,disabled:c=!1,size:u="md",variant:d="soft",startDecorator:p,endDecorator:f,component:m,slots:g={},slotProps:h={}}=r,v=Xs(r,Xh),b=!!s||!!h.action,y=Di({},r,{disabled:c,size:u,color:l,variant:d,clickable:b,focusVisible:!1}),x="function"==typeof h.action?h.action(y):h.action,w=o.useRef(null),{focusVisible:S,getRootProps:C}=ef(Di({},x,{disabled:c,rootRef:w}));y.focusVisible=S;const k=(e=>{const{disabled:t,size:n,color:r,clickable:o,variant:a,focusVisible:i}=e;return Id({root:["root",t&&"disabled",r&&`color${uc(r)}`,n&&`size${uc(n)}`,a&&`variant${uc(a)}`,o&&"clickable"],action:["action",t&&"disabled",i&&"focusVisible"],label:["label",n&&`label${uc(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]},Yh,{})})(y),O=Di({},v,{component:m,slots:g,slotProps:h}),[I,E]=Rg("root",{ref:n,className:hu(k.root,i),elementType:Qh,externalForwardedProps:O,ownerState:y}),[P,N]=Rg("label",{className:k.label,elementType:Zh,externalForwardedProps:O,ownerState:y}),$=ld(N.id),[z,R]=Rg("action",{className:k.action,elementType:ev,externalForwardedProps:O,ownerState:y,getSlotProps:C,additionalProps:{"aria-labelledby":$,as:null==x?void 0:x.component,onClick:s}}),[D,T]=Rg("startDecorator",{className:k.startDecorator,elementType:tv,externalForwardedProps:O,ownerState:y}),[j,M]=Rg("endDecorator",{className:k.endDecorator,elementType:nv,externalForwardedProps:O,ownerState:y}),A=o.useMemo((()=>({disabled:c})),[c]);return e.jsx(Jh.Provider,{value:A,children:e.jsx(Eh,{variant:d,color:l,children:e.jsxs(I,Di({},E,{children:[b&&e.jsx(z,Di({},R)),e.jsx(P,Di({},N,{id:$,children:a})),p&&e.jsx(D,Di({},T,{children:p})),f&&e.jsx(j,Di({},M,{children:f}))]}))})})}));"production"!==process.env.NODE_ENV&&(rv.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,disabled:Ga.bool,endDecorator:Ga.node,onClick:Ga.func,size:Ga.oneOfType([Ga.oneOf(["lg","md","sm"]),Ga.string]),slotProps:Ga.shape({action:Ga.oneOfType([Ga.func,Ga.object]),endDecorator:Ga.oneOfType([Ga.func,Ga.object]),label:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object]),startDecorator:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({action:Ga.elementType,endDecorator:Ga.elementType,label:Ga.elementType,root:Ga.elementType,startDecorator:Ga.elementType}),startDecorator:Ga.node,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])});var ov,av=gh(e.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"}),"Cancel");function iv(e){return Cp("MuiChipDelete",e)}kp("MuiChipDelete",["root","disabled","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSolid","variantSoft","variantOutlined"]);const lv=["children","variant","color","disabled","onKeyDown","onDelete","onClick","component","slots","slotProps"],sv=["onDelete"],cv=Lp(Wh,{name:"JoyChipDelete",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({"--IconButton-size":"var(--Chip-deleteSize, 2rem)","--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.3)",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px",pointerEvents:"visible",borderRadius:"var(--Chip-deleteRadius, 50%)",zIndex:1,padding:0}))),uv=o.forwardRef((function(t,n){const r=Fp({props:t,name:"JoyChipDelete"}),{children:a,variant:i="plain",color:l="neutral",disabled:s,onKeyDown:c,onDelete:u,onClick:d,component:p,slots:f={},slotProps:m={}}=r,g=Xs(r,lv),h=o.useContext(Jh),{variant:v=i,color:b=l}=Ih(t.variant,t.color,!0),y=t.color||b,x=null!=s?s:h.disabled,w=ud(o.useRef(null),n),{focusVisible:S,getRootProps:C}=ef(Di({},r,{disabled:x,rootRef:w})),k=Di({},r,{disabled:x,variant:v,color:y,focusVisible:S}),O=(e=>{const{focusVisible:t,variant:n,color:r,disabled:o}=e;return Id({root:["root",o&&"disabled",t&&"focusVisible",n&&`variant${uc(n)}`,r&&`color${uc(r)}`]},iv,{})})(k),I=Di({},g,{component:p,slots:f,slotProps:m}),[E,P]=Rg("root",{ref:n,elementType:cv,getSlotProps:C,externalForwardedProps:I,ownerState:k,additionalProps:{as:p,onKeyDown:e=>{["Backspace","Enter","Delete"].includes(e.key)&&(e.preventDefault(),!x&&u&&u(e)),c&&c(e)},onClick:e=>{!x&&u&&u(e),d&&d(e)}},className:O.root}),N=Xs(P,sv);return e.jsx(E,Di({},N,{children:null!=a?a:ov||(ov=e.jsx(av,{}))}))}));function dv(e){return Cp("MuiInput",e)}"production"!==process.env.NODE_ENV&&(uv.propTypes={children:Ga.node,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,disabled:Ga.bool,onClick:Ga.func,onDelete:Ga.func,onKeyDown:Ga.func,slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])});const pv=kp("MuiInput",["root","input","formControl","focused","disabled","error","adornedStart","adornedEnd","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid","fullWidth","startDecorator","endDecorator"]),fv=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(fv.displayName="FormControlContext");const mv=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoFocus","className","defaultValue","disabled","disabledInProp","error","id","name","onClick","onChange","onKeyDown","onKeyUp","onFocus","onBlur","placeholder","readOnly","required","type","value"];const gv=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","fullWidth","size","color","variant","startDecorator","endDecorator","component","slots","slotProps"],hv=Lp("div")((({theme:e,ownerState:t})=>{var n,r,o,a,i,l;const s=null==(n=e.variants[`${t.variant}`])?void 0:n[t.color];return[Di({"--Input-radius":e.vars.radius.sm,"--Input-gap":"0.5rem","--Input-placeholderColor":"inherit","--Input-placeholderOpacity":.64,"--Input-decoratorColor":e.vars.palette.text.icon,"--Input-focused":"0","--Input-focusedThickness":e.vars.focus.thickness,"--Input-focusedHighlight":null==(r=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:r[500],[`&:not([${vh}])`]:Di({},t.instanceColor&&{"--_Input-focusedHighlight":null==(o=e.vars.palette["neutral"===t.instanceColor?"primary":t.instanceColor])?void 0:o[500]},{"--Input-focusedHighlight":`var(--_Input-focusedHighlight, ${e.vars.palette.focusVisible})`})},"sm"===t.size&&{"--Input-minHeight":"2rem","--Input-paddingInline":"0.5rem","--Input-decoratorChildHeight":"min(1.5rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},"md"===t.size&&{"--Input-minHeight":"2.25rem","--Input-paddingInline":"0.75rem","--Input-decoratorChildHeight":"min(1.75rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},"lg"===t.size&&{"--Input-minHeight":"2.75rem","--Input-paddingInline":"1rem","--Input-gap":"0.75rem","--Input-decoratorChildHeight":"min(2.25rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--Input-decoratorChildOffset":"min(calc(var(--Input-paddingInline) - (var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2), var(--Input-paddingInline))","--_Input-paddingBlock":"max((var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2, 0px)","--Input-decoratorChildRadius":"max(var(--Input-radius) - var(--variant-borderWidth, 0px) - var(--_Input-paddingBlock), min(var(--_Input-paddingBlock) + var(--variant-borderWidth, 0px), var(--Input-radius) / 2))","--Button-minHeight":"var(--Input-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Input-decoratorChildHeight)","--Button-radius":"var(--Input-decoratorChildRadius)","--IconButton-radius":"var(--Input-decoratorChildRadius)",boxSizing:"border-box"},"plain"!==t.variant&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Input-minHeight)"},t.fullWidth&&{width:"100%"},{cursor:"text",position:"relative",display:"flex",paddingInline:"var(--Input-paddingInline)",borderRadius:"var(--Input-radius)"},e.typography[`body-${t.size}`],s,{backgroundColor:null!=(a=null==s?void 0:s.backgroundColor)?a:e.vars.palette.background.surface,"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Input-focusedInset, inset) 0 0 0 calc(var(--Input-focused) * var(--Input-focusedThickness)) var(--Input-focusedHighlight)"}}),{"&:hover":Di({},null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color],{backgroundColor:null}),[`&.${pv.disabled}`]:null==(l=e.variants[`${t.variant}Disabled`])?void 0:l[t.color],"&:focus-within::before":{"--Input-focused":"1"}}]})),vv=Lp("input")((({ownerState:e})=>({border:"none",minWidth:0,outline:0,padding:0,flex:1,color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit",textOverflow:"ellipsis","&:-webkit-autofill":Di({paddingInline:"var(--Input-paddingInline)"},!e.startDecorator&&{marginInlineStart:"calc(-1 * var(--Input-paddingInline))",paddingInlineStart:"var(--Input-paddingInline)",borderTopLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"},!e.endDecorator&&{marginInlineEnd:"calc(-1 * var(--Input-paddingInline))",paddingInlineEnd:"var(--Input-paddingInline)",borderTopRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"}),"&::-webkit-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"}}))),bv=Lp("div")({"--Button-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Input-paddingInline) / -4)",display:"inherit",alignItems:"center",paddingBlock:"var(--unstable_InputPaddingBlock)",flexWrap:"wrap",marginInlineEnd:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),yv=Lp("div")({"--Button-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Input-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",marginInlineStart:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),xv=Lp(hv,{name:"JoyInput",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wv=Lp(vv,{name:"JoyInput",slot:"Input",overridesResolver:(e,t)=>t.input})({}),Sv=Lp(bv,{name:"JoyInput",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({}),Cv=Lp(yv,{name:"JoyInput",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({}),kv=o.forwardRef((function(t,n){var r,a,i,l,s,c;const u=Fp({props:t,name:"JoyInput"}),d=function(e,t){var n;const r=o.useContext(fv),{"aria-describedby":a,"aria-label":i,"aria-labelledby":l,autoComplete:s,autoFocus:c,className:u,defaultValue:d,disabled:p,disabledInProp:f,error:m,id:g,name:h,onClick:v,onChange:b,onKeyDown:y,onKeyUp:x,onFocus:w,onBlur:S,placeholder:C,readOnly:k,required:O,type:I,value:E}=e,P=Xs(e,mv),{getRootProps:N,getInputProps:$,focused:z,error:R,disabled:D}=hf({disabled:null!=(n=null!=f?f:null==r?void 0:r.disabled)?n:p,defaultValue:d,error:m,onBlur:S,onClick:v,onChange:b,onFocus:w,required:null!=O?O:null==r?void 0:r.required,value:E});return Di({formControl:r,propsToForward:{"aria-describedby":a,"aria-label":i,"aria-labelledby":l,autoComplete:s,autoFocus:c,disabled:D,id:g,onKeyDown:y,onKeyUp:x,name:h,placeholder:C,readOnly:k,type:I},rootStateClasses:{[t.disabled]:D,[t.error]:R,[t.focused]:z,[t.formControl]:Boolean(r),[u]:u},inputStateClasses:{[t.disabled]:D},getRootProps:N,getInputProps:$,focused:z,error:R,disabled:D},P)}(Di({},u,{disabledInProp:t.disabled}),pv),{propsToForward:p,rootStateClasses:f,inputStateClasses:m,getRootProps:g,getInputProps:h,formControl:v,focused:b,error:y=!1,disabled:x,fullWidth:w=!1,size:S="md",color:C="neutral",variant:k="outlined",startDecorator:O,endDecorator:I,component:E,slots:P={},slotProps:N={}}=d,$=Xs(d,gv);if("production"!==process.env.NODE_ENV){const e=null==v?void 0:v.registerEffect;o.useEffect((()=>{if(e)return e()}),[e])}const z=null!=(r=null!=(a=t.error)?a:null==v?void 0:v.error)?r:y,R=null!=(i=null!=(l=t.size)?l:null==v?void 0:v.size)?i:S,D=null!=(s=t.color)?s:z?"danger":null!=(c=null==v?void 0:v.color)?c:C,T=Di({instanceColor:z?"danger":t.color},u,{fullWidth:w,color:D,disabled:x,error:z,focused:b,size:R,variant:k}),j=(e=>{const{disabled:t,fullWidth:n,variant:r,color:o,size:a}=e;return Id({root:["root",t&&"disabled",n&&"fullWidth",r&&`variant${uc(r)}`,o&&`color${uc(o)}`,a&&`size${uc(a)}`],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]},dv,{})})(T),M=Di({},$,{component:E,slots:P,slotProps:N}),[A,V]=Rg("root",{ref:n,className:[j.root,f],elementType:xv,getSlotProps:g,externalForwardedProps:M,ownerState:T}),[_,L]=Rg("input",Di({},v&&{additionalProps:{id:v.htmlFor,"aria-describedby":v["aria-describedby"]}},{className:[j.input,m],elementType:wv,getSlotProps:h,internalForwardedProps:p,externalForwardedProps:M,ownerState:T})),[F,B]=Rg("startDecorator",{className:j.startDecorator,elementType:Sv,externalForwardedProps:M,ownerState:T}),[H,W]=Rg("endDecorator",{className:j.endDecorator,elementType:Cv,externalForwardedProps:M,ownerState:T});return e.jsxs(A,Di({},V,{children:[O&&e.jsx(F,Di({},B,{children:O})),e.jsx(_,Di({},L)),I&&e.jsx(H,Di({},W,{children:I}))]}))}));function Ov(e){return Cp("MuiListSubheader",e)}"production"!==process.env.NODE_ENV&&(kv.propTypes={autoComplete:Ga.string,autoFocus:Ga.bool,children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),defaultValue:Ga.oneOfType([Ga.arrayOf(Ga.string),Ga.number,Ga.string]),disabled:Ga.bool,endDecorator:Ga.node,error:Ga.bool,fullWidth:Ga.bool,id:Ga.string,name:Ga.string,onChange:Ga.func,placeholder:Ga.string,readOnly:Ga.bool,required:Ga.bool,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),startDecorator:Ga.node,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),value:Ga.oneOfType([Ga.arrayOf(Ga.string),Ga.number,Ga.string]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])}),kp("MuiListSubheader",["root","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const Iv=["component","className","children","id","sticky","variant","color","slots","slotProps"],Ev=Lp("div",{name:"JoyListSubheader",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n,r;return Di({boxSizing:"border-box",display:"flex",alignItems:"center",marginInline:"var(--ListItem-marginInline)",paddingBlock:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)",minBlockSize:"var(--ListItem-minHeight)"},e.typography["body-xs"],{fontSize:"max(0.75em, 0.625rem)",textTransform:"uppercase",letterSpacing:"0.1em"},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackground)"},{color:t.color?`var(--_Link-color, rgba(${null==(n=e.vars.palette[t.color])?void 0:n.mainChannel} / 1))`:e.vars.palette.text.tertiary},t.instanceColor&&{[`&:not([${vh}])`]:{"--_Link-color":e.vars.palette.text.secondary}},null==(r=e.variants[t.variant])?void 0:r[t.color])})),Pv=o.forwardRef((function(t,n){const r=Fp({props:t,name:"JoyListSubheader"}),{component:a,className:i,children:l,id:s,sticky:c=!1,variant:u,color:d,slots:p={},slotProps:f={}}=r,m=Xs(r,Iv),g=ld(s),h=o.useContext(_g);o.useEffect((()=>{h&&h(g||"")}),[h,g]);const v=Di({instanceColor:t.color},r,{id:g,sticky:c,variant:u,color:u?null!=d?d:"neutral":d}),b=(e=>{const{variant:t,color:n,sticky:r}=e;return Id({root:["root",r&&"sticky",n&&`color${uc(n)}`,t&&`variant${uc(t)}`]},Ov,{})})(v),y=Di({},m,{component:a,slots:p,slotProps:f}),[x,w]=Rg("root",{ref:n,className:hu(b.root,i),elementType:Ev,externalForwardedProps:y,ownerState:v,additionalProps:{as:a,id:g}});return e.jsx(x,Di({},w,{children:l}))}));function Nv(e){return Cp("MuiAutocomplete",e)}"production"!==process.env.NODE_ENV&&(Pv.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,id:Ga.string,slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sticky:Ga.bool,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])});const $v=kp("MuiAutocomplete",["root","wrapper","input","startDecorator","endDecorator","formControl","focused","disabled","error","multiple","limitTag","hasPopupIcon","hasClearIcon","clearIndicator","popupIndicator","popupIndicatorOpen","listbox","option","loading","noOptions","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);function zv(e){return Cp("MuiAutocompleteListbox",e)}kp("MuiAutocompleteListbox",["root","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const Rv=["anchorEl","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","TransitionProps"],Dv=["children","className","component","color","variant","size","slots","slotProps"],Tv=Lp(eh)((({theme:e,ownerState:t})=>{var n;const r=null==(n=e.variants[t.variant])?void 0:n[t.color];return Di({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==r?void 0:r.backgroundColor)||(null==r?void 0:r.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},Ug,{boxShadow:e.shadow.md,borderRadius:`var(--List-radius, ${e.vars.radius.sm})`},!(null!=r&&r.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup},{zIndex:e.vars.zIndex.popup,overflow:"auto",maxHeight:"40vh",position:"relative","&:empty":{visibility:"hidden"},[`& .${Tg.nested}, & .${Tg.nested} .${Xg.root}`]:{position:"initial"}})})),jv=Lp(Tv,{name:"JoyAutocompleteListbox",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mv=o.forwardRef((function(t,n){const r=Fp({props:t,name:"JoyAutocompleteListbox"}),{children:o,className:a,component:i,color:l="neutral",variant:s="outlined",size:c="md",slots:u={},slotProps:d={}}=r,p=Xs(r,Dv),f=Di({},r,{size:c,color:l,variant:s,nesting:!1,row:!1,wrap:!1}),m=(e=>Xs(e,Rv))(p),g=(e=>{const{variant:t,color:n,size:r}=e;return Id({root:["root",t&&`variant${uc(t)}`,n&&`color${uc(n)}`,r&&`size${uc(r)}`]},zv,{})})(f),h=Di({},m,{component:i,slots:u,slotProps:d}),[v,b]=Rg("root",{ref:n,className:hu(g.root,a),elementType:jv,externalForwardedProps:h,ownerState:f,additionalProps:{role:"listbox"}});return e.jsx(Eh,{variant:s,color:l,children:e.jsx(v,Di({},b,{children:o}))})}));function Av(e){return Cp("MuiAutocompleteOption",e)}"production"!==process.env.NODE_ENV&&(Mv.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,size:Ga.oneOf(["sm","md","lg"]),slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["contained","light","outlined","text"]),Ga.string])}),kp("MuiAutocompleteOption",["root","focused","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const Vv=["children","component","color","variant","className","slots","slotProps"],_v=Lp(lh)((({theme:e,ownerState:t})=>{var n,r;return{'&[aria-disabled="true"]':null==(n=e.variants[`${t.variant}Disabled`])?void 0:n[t.color],'&[aria-selected="true"]':Di({},null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color],{fontWeight:e.vars.fontWeight.md})}})),Lv=Lp(_v,{name:"JoyAutocompleteOption",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fv=o.forwardRef((function(t,n){const r=Fp({props:t,name:"JoyAutocompleteOption"}),{children:o,component:a="li",color:i="neutral",variant:l="plain",className:s,slots:c={},slotProps:u={}}=r,d=Xs(r,Vv),{variant:p=l,color:f=i}=Ih(t.variant,t.color),m=Di({},r,{component:a,color:f,variant:p}),g=(e=>{const{color:t,variant:n}=e;return Id({root:["root",t&&`color${uc(t)}`,n&&`variant${uc(n)}`]},Av,{})})(m),h=Di({},d,{component:a,slots:c,slotProps:u}),[v,b]=Rg("root",{ref:n,className:hu(g.root,s),elementType:Lv,externalForwardedProps:h,ownerState:m,additionalProps:{as:a,role:"option"}});return e.jsx(v,Di({},b,{children:o}))}));var Bv,Hv;"production"!==process.env.NODE_ENV&&(Fv.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["contained","light","outlined","text"]),Ga.string])});const Wv=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoHighlight","autoSelect","autoFocus","blurOnSelect","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","defaultValue","disableCloseOnSelect","disabledItemsFocusable","disableListWrap","disableClearable","disabled","endDecorator","error","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","handleHomeEndKeys","includeInputInList","isOptionEqualToValue","groupBy","id","inputValue","limitTags","loading","loadingText","multiple","name","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","placeholder","popupIcon","readOnly","renderGroup","renderOption","renderTags","required","type","startDecorator","size","color","variant","value","component","selectOnFocus","slots","slotProps"],Gv=["onDelete"],qv=["onBlur","onFocus","onMouseDown"],Uv=e=>null!==e.current&&e.current.contains(document.activeElement),Yv=e=>{var t;return null!=(t=e.label)?t:e},Kv=e=>`+${e}`,Jv=t=>e.jsxs(qg,{nested:!0,children:[e.jsx(Pv,{sticky:!0,children:t.group}),e.jsx(nh,{children:t.children})]},t.key),Xv=Lp(hv,{name:"JoyAutocomplete",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>Di({},"sm"===e.size&&{"--Autocomplete-wrapperGap":"3px"},"md"===e.size&&{"--Autocomplete-wrapperGap":"3px"},"lg"===e.size&&{"--Autocomplete-wrapperGap":"4px"},{"@media (pointer: fine)":{[`&:hover .${$v.clearIndicator}`]:{visibility:"visible"}}},e.multiple&&!e.startDecorator&&{paddingInlineStart:0}))),Qv=Lp("div",{name:"JoyAutocomplete",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>({flex:1,minWidth:0,display:"flex",alignItems:"center",flexWrap:"wrap",gap:"var(--Autocomplete-wrapperGap)",[`&.${$v.multiple}`]:Di({paddingBlock:"var(--Autocomplete-wrapperGap)"},!e.startDecorator&&{paddingInlineStart:"var(--Autocomplete-wrapperGap)"},!e.endDecorator&&{paddingInlineEnd:"var(--Autocomplete-wrapperGap)"})}))),Zv=Lp(vv,{name:"JoyAutocomplete",slot:"Input",overridesResolver:(e,t)=>t.input})((({ownerState:e})=>Di({minWidth:30,minHeight:"var(--Chip-minHeight)"},e.multiple&&{marginInlineStart:"calc(var(--Autocomplete-wrapperGap) * 2.5)"}))),eb=Lp(bv,{name:"JoyAutocomplete",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({}),tb=Lp(yv,{name:"JoyAutocomplete",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})((({ownerState:e})=>Di({},(e.hasClearIcon||e.hasPopupIcon)&&{"--Button-margin":"0px","--IconButton-margin":"0px","--Icon-margin":"0px"}))),nb=Lp(Wh,{name:"JoyAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})((({ownerState:e})=>Di({alignSelf:"center"},!e.hasPopupIcon&&{marginInlineEnd:"calc(var(--Input-decoratorChildOffset) * -1)"},{marginInlineStart:"calc(var(--_Input-paddingBlock) / 2)",visibility:e.focused?"visible":"hidden"}))),rb=Lp(Wh,{name:"JoyAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>t.popupIndicator})({alignSelf:"center",marginInlineStart:"calc(var(--_Input-paddingBlock) / 2)",marginInlineEnd:"calc(var(--Input-decoratorChildOffset) * -1)",[`&.${$v.popupIndicatorOpen}`]:{transform:"rotate(180deg)","--Icon-color":"currentColor"}}),ob=Lp(Tv,{name:"JoyAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`}))),ab=Lp(_v,{name:"JoyAutocomplete",slot:"Option",overridesResolver:(e,t)=>t.option})({}),ib=Lp(qg,{name:"JoyAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary}))),lb=Lp(qg,{name:"JoyAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary}))),sb=Lp("div",{name:"JoyAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})({marginInlineStart:"calc(var(--Input-paddingInline) / 2)",marginBlockStart:"var(--_Input-paddingBlock)"}),cb=o.forwardRef((function(t,n){var r,a,i,l,s,c,u;const d=Fp({props:t,name:"JoyAutocomplete"}),{"aria-describedby":p,"aria-label":f,"aria-labelledby":m,autoFocus:g,clearIcon:h=Bv||(Bv=e.jsx(Sh,{fontSize:"md"})),clearText:v="Clear",closeText:b="Close",disableClearable:y=!1,disabled:x,endDecorator:w,error:S=!1,forcePopupIcon:C="auto",freeSolo:k=!1,getLimitTagsText:O=Kv,getOptionLabel:I=Yv,groupBy:E,id:P,limitTags:N=-1,loading:$=!1,loadingText:z="Loading…",multiple:R=!1,name:D,noOptionsText:T="No options",openText:j="Open",placeholder:M,popupIcon:A=Hv||(Hv=e.jsx(Ch,{})),readOnly:V=!1,renderGroup:_=Jv,renderOption:L,renderTags:F,required:B,type:H,startDecorator:W,size:G="md",color:q="neutral",variant:U="outlined",component:Y,slots:K={},slotProps:J={}}=d,X=Xs(d,Wv),Q=o.useContext(fv),Z=null!=(r=null!=(a=t.error)?a:null==Q?void 0:Q.error)?r:S,ee=null!=(i=null!=(l=t.size)?l:null==Q?void 0:Q.size)?i:G,te=null!=(s=t.color)?s:Z?"danger":null!=(c=null==Q?void 0:Q.color)?c:q,ne=null!=(u=null!=x?x:null==Q?void 0:Q.disabled)&&u,{getRootProps:re,getInputProps:oe,getPopupIndicatorProps:ae,getClearProps:ie,getTagProps:le,getListboxProps:se,getOptionProps:ce,value:ue,dirty:de,popupOpen:pe,focused:fe,focusedTag:me,anchorEl:ge,setAnchorEl:he,inputValue:ve,groupedOptions:be}=Pg(Di({},d,{id:null!=P?P:null==Q?void 0:Q.htmlFor,componentName:"Autocomplete",unstable_classNamePrefix:"Mui",unstable_isActiveElementInListbox:Uv})),{onMouseDown:ye}=oe(),{onClick:xe}=re(),we=!y&&!ne&&de&&!V,Se=(!k||!0===C)&&!1!==C,Ce=Di({instanceColor:t.color},d,{value:ue,disabled:ne,focused:fe,getOptionLabel:I,hasOptions:!!be.length,hasClearIcon:we,hasPopupIcon:Se,inputFocused:-1===me,popupOpen:pe,size:ee,color:te,variant:U}),ke=(e=>{const{disabled:t,focused:n,hasClearIcon:r,hasPopupIcon:o,popupOpen:a,variant:i,color:l,size:s,multiple:c}=e;return Id({root:["root",n&&"focused",r&&"hasClearIcon",o&&"hasPopupIcon",i&&`variant${uc(i)}`,l&&`color${uc(l)}`,s&&`size${uc(s)}`],wrapper:["wrapper",c&&"multiple"],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",a&&"popupIndicatorOpen",t&&"disabled"],listbox:["listbox"],option:["option"],loading:["loading"],noOptions:["noOptions"],limitTag:["limitTag"]},Nv,{})})(Ce),Oe=Di({},X,{component:Y,slots:K,slotProps:J});let Ie;if(R&&ue.length>0){const t=e=>{const t=le(e),{onDelete:n}=t,r=Xs(t,Gv);return Di({disabled:ne,size:ee,onClick:n},r)};Ie=F?F(ue,t,Ce):ue.map(((n,r)=>e.jsx(rv,{size:ee,variant:"soft",color:"neutral",endDecorator:e.jsx(uv,Di({},t({index:r}))),sx:{minWidth:0},children:I(n)},r)))}const Ee=ud(n,he),Pe={[$v.disabled]:ne,[$v.error]:Z,[$v.focused]:fe,[$v.formControl]:Boolean(Q)},[Ne,$e]=Rg("root",{ref:Ee,className:[ke.root,Pe],elementType:Xv,externalForwardedProps:Oe,ownerState:Ce,getSlotProps:re,additionalProps:{onClick:e=>{xe&&xe(e),e.currentTarget===e.target&&ye&&ye(e)}}}),[ze,Re]=Rg("wrapper",{className:ke.wrapper,elementType:Qv,externalForwardedProps:Oe,ownerState:Ce}),De={[$v.disabled]:ne},[Te,je]=Rg("input",{className:[ke.input,De],elementType:Zv,getSlotProps:e=>{const t=oe(),{onBlur:n,onFocus:r,onMouseDown:o}=t;return Di({},Xs(t,qv),{onBlur:t=>{var r;null==n||n(t),null==(r=e.onBlur)||r.call(e,t)},onFocus:t=>{var n;null==r||r(t),null==(n=e.onFocus)||n.call(e,t)},onMouseDown:t=>{var n;null==o||o(t),null==(n=e.onMouseDown)||n.call(e,t)}})},externalForwardedProps:Oe,ownerState:Ce,additionalProps:{autoFocus:g,placeholder:M,name:D,readOnly:V,disabled:ne,required:null!=B?B:null==Q?void 0:Q.required,type:H,"aria-invalid":Z||void 0,"aria-label":f,"aria-labelledby":m,"aria-describedby":null!=p?p:null==Q?void 0:Q["aria-describedby"]}}),[Me,Ae]=Rg("startDecorator",{className:ke.startDecorator,elementType:eb,externalForwardedProps:Oe,ownerState:Ce}),[Ve,_e]=Rg("endDecorator",{className:ke.endDecorator,elementType:tb,externalForwardedProps:Oe,ownerState:Ce}),[Le,Fe]=Rg("clearIndicator",{className:ke.clearIndicator,elementType:nb,getSlotProps:ie,externalForwardedProps:Oe,ownerState:Ce,getSlotOwnerState:e=>({size:e.size||ee,variant:e.variant||Oh(U,te).variant||"plain",color:e.color||Oh(U,te).color||"neutral",disableColorInversion:!!t.color}),additionalProps:{"aria-label":v,title:v}}),[Be,He]=Rg("popupIndicator",{className:ke.popupIndicator,elementType:rb,getSlotProps:ae,externalForwardedProps:Oe,ownerState:Ce,getSlotOwnerState:e=>({size:e.size||ee,variant:e.variant||Oh(U,te).variant||"plain",color:e.color||Oh(U,te).color||"neutral",disableColorInversion:!!t.color}),additionalProps:{disabled:ne,"aria-label":pe?b:j,title:pe?b:j,type:"button"}}),[We,Ge]=Rg("listbox",{className:ke.listbox,elementType:ob,getSlotProps:se,externalForwardedProps:Oe,ownerState:Ce,getSlotOwnerState:e=>({size:e.size||ee,variant:e.variant||U,color:e.color||te,disableColorInversion:!e.disablePortal}),additionalProps:{anchorEl:ge,open:pe,style:ge?{width:ge.clientWidth}:{}}}),[qe,Ue]=Rg("loading",{className:ke.loading,elementType:ib,externalForwardedProps:Oe,ownerState:Ce}),[Ye,Ke]=Rg("noOptions",{className:ke.noOptions,elementType:lb,externalForwardedProps:Oe,ownerState:Ce,additionalProps:{role:"presentation",onMouseDown:e=>{e.preventDefault()}}}),[Je,Xe]=Rg("limitTag",{className:ke.limitTag,elementType:sb,externalForwardedProps:Oe,ownerState:Ce});if(N>-1&&Array.isArray(Ie)){const t=Ie.length-N;!fe&&t>0&&(Ie=Ie.splice(0,N),Ie.push(e.jsx(Je,Di({},Xe,{children:O(t)}),Ie.length)))}const[Qe,Ze]=Rg("option",{className:ke.option,elementType:ab,externalForwardedProps:Oe,ownerState:Ce,getSlotOwnerState:e=>({variant:e.variant||Oh(U,te).variant||"plain",color:e.color||Oh(U,te).color||"neutral",disableColorInversion:!Ge.disablePortal}),additionalProps:{as:"li"}}),et=L||((t,n)=>e.jsx(Qe,Di({},t,{children:I(n)}))),tt=(e,t)=>{const n=ce({option:e,index:t});return et(Di({},Ze,n),e,{selected:!!n["aria-selected"],inputValue:ve,ownerState:Ce})},nt=o.useMemo((()=>[{name:"offset",options:{offset:[0,4]}},...Ge.modifiers||[]]),[Ge.modifiers]);let rt=null;var ot;ge&&(rt=e.jsx(Eh,{variant:U,color:te,children:e.jsx(Yg,{nested:!0,children:e.jsxs(We,Di({},Ge,{className:hu(Ge.className),modifiers:nt},!(null!=(ot=d.slots)&&ot.listbox)&&{as:Cg,slots:{root:Ge.as||"ul"}},{children:[be.map(((e,t)=>{if(E){const t=e;return _({key:String(t.key),group:t.group,children:t.options.map(((e,n)=>tt(e,t.index+n)))})}return tt(e,t)})),$&&0===be.length?e.jsx(qe,Di({},Ue,{children:z})):null,0!==be.length||k||$?null:e.jsx(Ye,Di({},Ke,{children:T}))]}))})}));return e.jsxs(o.Fragment,{children:[e.jsxs(Ne,Di({},$e,{children:[W&&e.jsx(Me,Di({},Ae,{children:W})),e.jsxs(ze,Di({},Re,{children:[Ie,e.jsx(Te,Di({},je))]})),w&&e.jsx(Ve,Di({},_e,{children:w})),we?e.jsx(Le,Di({},Fe,{children:h})):null,Se?e.jsx(Be,Di({},He,{children:A})):null]})),rt]})}));"production"!==process.env.NODE_ENV&&(cb.propTypes={"aria-describedby":Ga.string,"aria-label":Ga.string,"aria-labelledby":Ga.string,autoComplete:Ga.bool,autoFocus:Ga.bool,autoHighlight:Ga.bool,autoSelect:Ga.bool,blurOnSelect:Ga.oneOfType([Ga.oneOf(["mouse","touch"]),Ga.bool]),clearIcon:Ga.node,clearOnBlur:Ga.bool,clearOnEscape:Ga.bool,clearText:Ga.string,closeText:Ga.string,color:Ga.oneOf(["danger","neutral","primary","success","warning"]),defaultValue:Uu(Ga.any,(e=>e.multiple&&void 0!==e.defaultValue&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join("\n")):null)),disableClearable:Ga.bool,disableCloseOnSelect:Ga.bool,disabled:Ga.bool,disabledItemsFocusable:Ga.bool,disableListWrap:Ga.bool,endDecorator:Ga.node,error:Ga.bool,filterOptions:Ga.func,filterSelectedOptions:Ga.bool,forcePopupIcon:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.bool]),freeSolo:Ga.bool,getLimitTagsText:Ga.func,getOptionDisabled:Ga.func,getOptionKey:Ga.func,getOptionLabel:Ga.func,groupBy:Ga.func,handleHomeEndKeys:Ga.bool,id:Ga.string,includeInputInList:Ga.bool,inputValue:Ga.string,isOptionEqualToValue:Ga.func,limitTags:Od,loading:Ga.bool,loadingText:Ga.node,multiple:Ga.bool,name:Ga.string,noOptionsText:Ga.node,onChange:Ga.func,onClose:Ga.func,onHighlightChange:Ga.func,onInputChange:Ga.func,onKeyDown:Ga.func,onOpen:Ga.func,open:Ga.bool,openOnFocus:Ga.bool,openText:Ga.string,options:Ga.array.isRequired,placeholder:Ga.string,popupIcon:Ga.node,readOnly:Ga.bool,renderGroup:Ga.func,renderOption:Ga.func,renderTags:Ga.func,required:Ga.bool,selectOnFocus:Ga.bool,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({clearIndicator:Ga.oneOfType([Ga.func,Ga.object]),endDecorator:Ga.oneOfType([Ga.func,Ga.object]),input:Ga.oneOfType([Ga.func,Ga.object]),limitTag:Ga.oneOfType([Ga.func,Ga.object]),listbox:Ga.oneOfType([Ga.func,Ga.object]),loading:Ga.oneOfType([Ga.func,Ga.object]),noOptions:Ga.oneOfType([Ga.func,Ga.object]),option:Ga.oneOfType([Ga.func,Ga.object]),popupIndicator:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object]),startDecorator:Ga.oneOfType([Ga.func,Ga.object]),wrapper:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({clearIndicator:Ga.elementType,endDecorator:Ga.elementType,input:Ga.elementType,limitTag:Ga.elementType,listbox:Ga.elementType,loading:Ga.elementType,noOptions:Ga.elementType,option:Ga.elementType,popupIndicator:Ga.elementType,root:Ga.elementType,startDecorator:Ga.elementType,wrapper:Ga.elementType}),startDecorator:Ga.node,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),type:Ga.string,value:Uu(Ga.any,(e=>e.multiple&&void 0!==e.value&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join("\n")):null)),variant:Ga.oneOf(["outlined","plain","soft","solid"])});const ub=xu("MuiBox",["root"]),db=function(t={}){const{themeId:n,defaultTheme:r,defaultClassName:a="MuiBox-root",generateClassName:i}=t,l=Js("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ru);return o.forwardRef((function(t,o){const s=cu(r),c=pu(t),{className:u,component:d="div"}=c,p=Xs(c,vu);return e.jsx(l,Di({as:d,ref:o,className:hu(u,i?i(a):a),theme:n&&s[n]||s},p))}))}({themeId:zi,defaultTheme:zp,defaultClassName:ub.root,generateClassName:mu.generate});function pb(e){return Cp("MuiButton",e)}"production"!==process.env.NODE_ENV&&(db.propTypes={children:Ga.node,component:Ga.elementType,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object])});const fb=kp("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]),mb=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],gb=Lp("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),hb=Lp("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),vb=Lp("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})((({theme:e,ownerState:t})=>{var n,r;return Di({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color},t.disabled&&{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color})})),bb=({theme:e,ownerState:t})=>{var n,r,o,a;return[Di({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon},"sm"===t.size&&{"--Icon-fontSize":e.vars.fontSize.lg,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.25rem)",paddingInline:"0.75rem"},"md"===t.size&&{"--Icon-fontSize":e.vars.fontSize.xl,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.25rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.375rem)",paddingInline:"1rem"},"lg"===t.size&&{"--Icon-fontSize":e.vars.fontSize.xl2,"--CircularProgress-size":"28px","--CircularProgress-thickness":"4px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 2.75rem)",fontSize:e.vars.fontSize.md,paddingBlock:"var(--Button-paddingBlock, 0.5rem)",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",boxSizing:"border-box",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",userSelect:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:e.vars.lineHeight.md},t.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),Di({},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:hover":{"@media (hover: hover)":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color]},'&:active, &[aria-pressed="true"]':null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color],[`&.${fb.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]},"center"===t.loadingPosition&&{[`&.${fb.loading}`]:{color:"transparent"}})]},yb=Lp("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,t)=>t.root})(bb),xb=o.forwardRef((function(t,n){var r;const a=Fp({props:t,name:"JoyButton"}),{children:i,action:l,color:s="primary",variant:c="solid",size:u="md",fullWidth:d=!1,startDecorator:p,endDecorator:f,loading:m=!1,loadingPosition:g="center",loadingIndicator:h,disabled:v,component:b,slots:y={},slotProps:x={}}=a,w=Xs(a,mb),S=o.useContext(Nh),C=o.useContext($h),k=t.variant||S.variant||c,O=t.size||S.size||u,I=t.color||S.color||s,E=null!=(r=t.loading||t.disabled)?r:S.disabled||m||v,P=o.useRef(null),N=ud(P,n),{focusVisible:$,setFocusVisible:z,getRootProps:R}=ef(Di({},a,{disabled:E,rootRef:N})),D=null!=h?h:e.jsx(Bh,{color:I,thickness:{sm:2,md:3,lg:4}[O]||3});o.useImperativeHandle(l,(()=>({focusVisible:()=>{var e;z(!0),null==(e=P.current)||e.focus()}})),[z]);const T=Di({},a,{color:I,fullWidth:d,variant:k,size:O,focusVisible:$,loading:m,loadingPosition:g,disabled:E}),j=(e=>{const{color:t,disabled:n,focusVisible:r,focusVisibleClassName:o,fullWidth:a,size:i,variant:l,loading:s}=e,c=Id({root:["root",n&&"disabled",r&&"focusVisible",a&&"fullWidth",l&&`variant${uc(l)}`,t&&`color${uc(t)}`,i&&`size${uc(i)}`,s&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},pb,{});return r&&o&&(c.root+=` ${o}`),c})(T);let M=a["aria-pressed"];"function"==typeof x.root?M=x.root(T)["aria-pressed"]:x.root&&(M=x.root["aria-pressed"]),null!=C&&C.value&&(M=Array.isArray(C.value)?-1!==C.value.indexOf(a.value):C.value===a.value);const A=Di({},w,{component:b,slots:y,slotProps:x}),[V,_]=Rg("root",{ref:n,className:j.root,elementType:yb,externalForwardedProps:A,getSlotProps:R,ownerState:T,additionalProps:{onClick:e=>{var t;let n=a.onClick;var r;("function"==typeof x.root?n=x.root(T).onClick:x.root&&(n=x.root.onClick),null==(t=n)||t(e),C)&&(null==(r=C.onClick)||r.call(C,e,a.value))},"aria-pressed":M}}),[L,F]=Rg("startDecorator",{className:j.startDecorator,elementType:gb,externalForwardedProps:A,ownerState:T}),[B,H]=Rg("endDecorator",{className:j.endDecorator,elementType:hb,externalForwardedProps:A,ownerState:T}),[W,G]=Rg("loadingIndicatorCenter",{className:j.loadingIndicatorCenter,elementType:vb,externalForwardedProps:A,ownerState:T});return e.jsxs(V,Di({},_,{children:[(p||m&&"start"===g)&&e.jsx(L,Di({},F,{children:m&&"start"===g?D:p})),i,m&&"center"===g&&e.jsx(W,Di({},G,{children:D})),(f||m&&"end"===g)&&e.jsx(B,Di({},H,{children:m&&"end"===g?D:f}))]}))}));"production"!==process.env.NODE_ENV&&(xb.propTypes={action:Ga.oneOfType([Ga.func,Ga.shape({current:Ga.shape({focusVisible:Ga.func.isRequired})})]),children:Ga.node,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,disabled:Ga.bool,endDecorator:Ga.node,focusVisibleClassName:Ga.string,fullWidth:Ga.bool,loading:Ga.bool,loadingIndicator:Ga.node,loadingPosition:Ga.oneOf(["center","end","start"]),onClick:Ga.func,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({endDecorator:Ga.oneOfType([Ga.func,Ga.object]),loadingIndicatorCenter:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object]),startDecorator:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({endDecorator:Ga.elementType,loadingIndicatorCenter:Ga.elementType,root:Ga.elementType,startDecorator:Ga.elementType}),startDecorator:Ga.node,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),tabIndex:Ga.number,value:Ga.oneOfType([Ga.arrayOf(Ga.string),Ga.number,Ga.string]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])}),xb.muiName="Button";const wb=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(wb.displayName="ModalDialogVariantColorContext");const Sb=kp("MuiDialogTitle",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]),Cb=o.createContext(void 0);function kb(e){return Cp("MuiModal",e)}"production"!==process.env.NODE_ENV&&(Cb.displayName="ModalDialogSizeContext"),kp("MuiModal",["root","hidden","backdrop"]);const Ob=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(Ob.displayName="CloseModalContext");const Ib=["children","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onClose","onKeyDown","open","component","slots","slotProps"],Eb=Lp("div")((({ownerState:e,theme:t})=>Di({"--unstable_popup-zIndex":`calc(${t.vars.zIndex.modal} + 1)`,'& ~ [role="listbox"]':{"--unstable_popup-zIndex":`calc(${t.vars.zIndex.modal} + 1)`},position:"fixed",zIndex:t.vars.zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&{visibility:"hidden"}))),Pb=Lp(Eb,{name:"JoyModal",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nb=Lp("div")((({theme:e})=>({zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:e.vars.palette.background.backdrop,WebkitTapHighlightColor:"transparent",backdropFilter:"blur(8px)"}))),$b=Lp(Nb,{name:"JoyModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({}),zb=o.forwardRef((function(t,n){const r=Fp({props:t,name:"JoyModal"}),{children:a,container:i,disableAutoFocus:l=!1,disableEnforceFocus:s=!1,disableEscapeKeyDown:c=!1,disablePortal:u=!1,disableRestoreFocus:d=!1,disableScrollLock:p=!1,hideBackdrop:f=!1,keepMounted:m=!1,onClose:g,open:h,component:v,slots:b={},slotProps:y={}}=r,x=Xs(r,Ib),w=Di({},r,{disableAutoFocus:l,disableEnforceFocus:s,disableEscapeKeyDown:c,disablePortal:u,disableRestoreFocus:d,disableScrollLock:p,hideBackdrop:f,keepMounted:m}),{getRootProps:S,getBackdropProps:C,rootRef:k,portalRef:O,isTopModal:I}=Uf(Di({},w,{rootRef:n})),E=(e=>{const{open:t}=e;return Id({root:["root",!t&&"hidden"],backdrop:["backdrop"]},kb,{})})(w),P=Di({},x,{component:v,slots:b,slotProps:y}),[N,$]=Rg("root",{ref:k,className:E.root,elementType:Pb,externalForwardedProps:P,getSlotProps:S,ownerState:w}),[z,R]=Rg("backdrop",{className:E.backdrop,elementType:$b,externalForwardedProps:P,getSlotProps:C,ownerState:w});return m||h?e.jsx(Ob.Provider,{value:g,children:e.jsx(Af,{ref:O,container:i,disablePortal:u,children:e.jsxs(N,Di({},$,{children:[f?null:e.jsx(z,Di({},R)),e.jsx(mf,{disableEnforceFocus:s,disableAutoFocus:l,disableRestoreFocus:d,isEnabled:I,open:h,children:o.Children.only(a)&&o.cloneElement(a,Di({},void 0===a.props.tabIndex&&{tabIndex:-1}))})]}))})}):null}));function Rb(e){return Cp("MuiDrawer",e)}"production"!==process.env.NODE_ENV&&(zb.propTypes={children:Ku.isRequired,component:Ga.elementType,container:Ga.oneOfType([Qu,Ga.func]),disableAutoFocus:Ga.bool,disableEnforceFocus:Ga.bool,disableEscapeKeyDown:Ga.bool,disablePortal:Ga.bool,disableRestoreFocus:Ga.bool,disableScrollLock:Ga.bool,hideBackdrop:Ga.bool,keepMounted:Ga.bool,onClose:Ga.func,onKeyDown:Ga.func,open:Ga.bool.isRequired,slotProps:Ga.shape({backdrop:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({backdrop:Ga.elementType,root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object])}),kp("MuiDrawer",["root","hidden","backdrop","content","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const Db=["children","anchor","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","color","variant","invertedColors","size","onClose","onKeyDown","open","component","slots","slotProps"],Tb=Lp(Eb,{name:"JoyDrawer",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>Di({"--Drawer-transitionDuration":"0.3s","--Drawer-transitionFunction":"ease","--ModalClose-radius":"max((var(--Drawer-contentRadius) - var(--variant-borderWidth, 0px)) - var(--ModalClose-inset), min(var(--ModalClose-inset) / 2, (var(--Drawer-contentRadius) - var(--variant-borderWidth, 0px)) / 2))"},"sm"===e.size&&{"--ModalClose-inset":"0.5rem","--Drawer-verticalSize":"clamp(350px, 30%, 100%)","--Drawer-horizontalSize":"clamp(256px, 20%, 100%)","--Drawer-titleMargin":"0.625rem 0.75rem calc(0.625rem / 2)"},"md"===e.size&&{"--ModalClose-inset":"0.5rem","--Drawer-verticalSize":"clamp(400px, 45%, 100%)","--Drawer-horizontalSize":"clamp(300px, 30%, 100%)","--Drawer-titleMargin":"0.75rem 0.75rem calc(0.75rem / 2)"},"lg"===e.size&&{"--ModalClose-inset":"0.75rem","--Drawer-verticalSize":"clamp(500px, 60%, 100%)","--Drawer-horizontalSize":"clamp(440px, 60%, 100%)","--Drawer-titleMargin":"1rem 1rem calc(1rem / 2)"},{transitionProperty:"visibility",transitionDelay:e.open?"0s":"var(--Drawer-transitionDuration)"},!e.open&&{visibility:"hidden"}))),jb=Lp(Nb,{name:"JoyDrawer",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})((({ownerState:e})=>({opacity:e.open?1:0,transition:"opacity var(--Drawer-transitionDuration) ease-in-out"}))),Mb=Lp("div",{name:"JoyDrawer",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>{var n;return Di({},e.typography[`body-${t.size}`],{boxShadow:e.shadow.md,backgroundColor:e.vars.palette.background.surface,outline:0,display:"flex",flexDirection:"column",position:"fixed",boxSizing:"border-box",overflow:"auto"},"left"===t.anchor&&{top:0,left:0,transform:t.open?"translateX(0)":"translateX(-100%)"},"right"===t.anchor&&{top:0,right:0,transform:t.open?"translateX(0)":"translateX(100%)"},"top"===t.anchor&&{top:0,transform:t.open?"translateY(0)":"translateY(-100%)"},"bottom"===t.anchor&&{bottom:0,transform:t.open?"translateY(0)":"translateY(100%)"},{height:t.anchor.match(/(left|right)/)?"100%":"min(100vh, var(--Drawer-verticalSize))",width:t.anchor.match(/(top|bottom)/)?"100vw":"min(100vw, var(--Drawer-horizontalSize))",transition:"transform var(--Drawer-transitionDuration) var(--Drawer-transitionFunction)"},"solid"===t.variant&&t.color&&t.invertedColors&&xh(t.color)(e),"soft"===t.variant&&t.color&&t.invertedColors&&wh(t.color)(e),null==(n=e.variants[t.variant])?void 0:n[t.color],{[`& > .${Sb.root}`]:{"--unstable_DialogTitle-margin":"var(--Drawer-titleMargin)"}})})),Ab=o.forwardRef((function(t,n){const r=Fp({props:t,name:"JoyDrawer"}),{children:a,anchor:i="left",container:l,disableAutoFocus:s=!1,disableEnforceFocus:c=!1,disableEscapeKeyDown:u=!1,disablePortal:d=!1,disableRestoreFocus:p=!1,disableScrollLock:f=!1,hideBackdrop:m=!1,color:g="neutral",variant:h="plain",invertedColors:v=!1,size:b="md",onClose:y,open:x,component:w,slots:S={},slotProps:C={}}=r,k=Xs(r,Db),O=Di({},r,{anchor:i,disableAutoFocus:s,disableEnforceFocus:c,disableEscapeKeyDown:u,disablePortal:d,disableRestoreFocus:p,disableScrollLock:f,hideBackdrop:m,invertedColors:v,color:g,variant:h,size:b}),{getRootProps:I,getBackdropProps:E,rootRef:P,portalRef:N,isTopModal:$}=Uf(Di({},O,{rootRef:n,children:null})),z=(e=>{const{open:t,variant:n,color:r,size:o}=e;return Id({root:["root",!t&&"hidden",n&&`variant${uc(n)}`,r&&`color${uc(r)}`,o&&`size${uc(o)}`],backdrop:["backdrop"],content:["content"]},Rb,{})})(O),R=Di({},k,{component:w,slots:S,slotProps:C}),D=ld(),T=ld(),j=o.useMemo((()=>({variant:h,color:g,labelledBy:D,describedBy:T})),[g,h,D,T]),[M,A]=Rg("root",{ref:P,className:z.root,elementType:Tb,externalForwardedProps:R,getSlotProps:I,ownerState:O}),[V,_]=Rg("backdrop",{className:z.backdrop,elementType:jb,externalForwardedProps:R,getSlotProps:E,ownerState:O}),[L,F]=Rg("content",{className:z.content,elementType:Mb,additionalProps:{tabIndex:-1,role:"dialog","aria-modal":"true","aria-labelledby":D,"aria-describedby":T},externalForwardedProps:R,ownerState:O});return e.jsx(Ob.Provider,{value:y,children:e.jsx(Cb.Provider,{value:b,children:e.jsx(wb.Provider,{value:j,children:e.jsx(Af,{ref:N,container:l,disablePortal:d,children:e.jsxs(M,Di({},A,{children:[m?null:e.jsx(V,Di({},_)),e.jsx(mf,{disableEnforceFocus:c,disableAutoFocus:s,disableRestoreFocus:p,isEnabled:$,open:x,children:e.jsx(L,Di({},F,{children:a}))})]}))})})})})}));"production"!==process.env.NODE_ENV&&(Ab.propTypes={anchor:Ga.oneOf(["bottom","left","right","top"]),children:Ga.node,color:Ga.oneOf(["danger","neutral","primary","success","warning"]),component:Ga.elementType,container:Ga.oneOfType([Qu,Ga.func]),disableAutoFocus:Ga.bool,disableEnforceFocus:Ga.bool,disableEscapeKeyDown:Ga.bool,disablePortal:Ga.bool,disableRestoreFocus:Ga.bool,disableScrollLock:Ga.bool,hideBackdrop:Ga.bool,invertedColors:Ga.bool,onClose:Ga.func,onKeyDown:Ga.func,open:Ga.bool.isRequired,size:Ga.oneOf(["sm","md","lg"]),slotProps:Ga.shape({backdrop:Ga.oneOfType([Ga.func,Ga.object]),content:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({backdrop:Ga.elementType,content:Ga.elementType,root:Ga.elementType}),variant:Ga.oneOf(["outlined","plain","soft","solid"])});const Vb=function(t={}){const{createStyledComponent:n=yp,useThemeProps:r=xp,componentName:a="MuiGrid"}=t,i=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(i.displayName="GridOverflowContext");const l=n(cp,dp,up,lp,pp,fp,sp),s=o.forwardRef((function(t,n){var s,c,u,d,p,f,m,g;const h=cu(),v=pu(r(t)),b=o.useContext(i),{className:y,children:x,columns:w=12,container:S=!1,component:C="div",direction:k="row",wrap:O="wrap",spacing:I=0,rowSpacing:E=I,columnSpacing:P=I,disableEqualOverflow:N,unstable_level:$=0}=v,z=Xs(v,vp);let R=N;$&&void 0!==N&&(R=t.disableEqualOverflow);const D={},T={},j={};Object.entries(z).forEach((([e,t])=>{void 0!==h.breakpoints.values[e]?D[e]=t:void 0!==h.breakpoints.values[e.replace("Offset","")]?T[e.replace("Offset","")]=t:j[e]=t}));const M=null!=(s=t.columns)?s:$?void 0:w,A=null!=(c=t.spacing)?c:$?void 0:I,V=null!=(u=null!=(d=t.rowSpacing)?d:t.spacing)?u:$?void 0:E,_=null!=(p=null!=(f=t.columnSpacing)?f:t.spacing)?p:$?void 0:P,L=Di({},v,{level:$,columns:M,container:S,direction:k,wrap:O,spacing:A,rowSpacing:V,columnSpacing:_,gridSize:D,gridOffset:T,disableEqualOverflow:null!=(m=null!=(g=R)?g:b)&&m,parentDisableEqualOverflow:b}),F=((e,t)=>{const{container:n,direction:r,spacing:o,wrap:i,gridSize:l}=e;return Id({root:["root",n&&"container","wrap"!==i&&`wrap-xs-${String(i)}`,...hp(r),...mp(l),...n?gp(o,t.breakpoints.keys[0]):[]]},(e=>yu(a,e)),{})})(L,h);let B=e.jsx(l,Di({ref:n,as:C,ownerState:L,className:hu(F.root,y)},j,{children:o.Children.map(x,(e=>{var t;return o.isValidElement(e)&&td(e,["Grid"])?o.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:$+1}):e}))}));return void 0!==R&&R!==(null!=b&&b)&&(B=e.jsx(i.Provider,{value:R,children:B})),B}));return"production"!==process.env.NODE_ENV&&(s.propTypes={children:Ga.node,className:Ga.string,columns:Ga.oneOfType([Ga.arrayOf(Ga.number),Ga.number,Ga.object]),columnSpacing:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.number,Ga.string])),Ga.number,Ga.object,Ga.string]),component:Ga.elementType,container:Ga.bool,direction:Ga.oneOfType([Ga.oneOf(["column-reverse","column","row-reverse","row"]),Ga.arrayOf(Ga.oneOf(["column-reverse","column","row-reverse","row"])),Ga.object]),disableEqualOverflow:Ga.bool,lg:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number,Ga.bool]),lgOffset:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number]),md:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number,Ga.bool]),mdOffset:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number]),rowSpacing:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.number,Ga.string])),Ga.number,Ga.object,Ga.string]),sm:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number,Ga.bool]),smOffset:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number]),spacing:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.number,Ga.string])),Ga.number,Ga.object,Ga.string]),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),wrap:Ga.oneOf(["nowrap","wrap-reverse","wrap"]),xl:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number,Ga.bool]),xlOffset:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number]),xs:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number,Ga.bool]),xsOffset:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number])}),s.muiName="Grid",s}({createStyledComponent:Lp("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Fp({props:e,name:"JoyGrid"})});function _b(e){return Cp("MuiListItemDecorator",e)}"production"!==process.env.NODE_ENV&&(Vb.propTypes={children:Ga.node,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object])}),kp("MuiListItemDecorator",["root"]);const Lb=["component","className","children","slots","slotProps"],Fb=Lp("span",{name:"JoyListItemDecorator",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>Di({boxSizing:"border-box",display:"inline-flex",alignItems:`var(--unstable_ListItemDecorator-alignItems, ${"horizontal"===e.parentOrientation?"center":"initial"})`},"horizontal"===e.parentOrientation?{minInlineSize:"var(--ListItemDecorator-size)",marginInlineEnd:"calc(-1 * var(--ListItem-gap))"}:{minBlockSize:"var(--ListItemDecorator-size)",justifyContent:"center",marginBlockEnd:"calc(-1 * var(--ListItem-gap))"}))),Bb=o.forwardRef((function(t,n){const r=Fp({props:t,name:"JoyListItemDecorator"}),{component:a,className:i,children:l,slots:s={},slotProps:c={}}=r,u=Xs(r,Lb),d=Di({parentOrientation:o.useContext(ah)},r),p=Id({root:["root"]},_b,{}),f=Di({},u,{component:a,slots:s,slotProps:c}),[m,g]=Rg("root",{ref:n,className:hu(p.root,i),elementType:Fb,externalForwardedProps:f,ownerState:d});return e.jsx(m,Di({},g,{children:l}))}));function Hb(e){return Cp("MuiMenu",e)}"production"!==process.env.NODE_ENV&&(Bb.propTypes={children:Ga.node,className:Ga.string,component:Ga.elementType,slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object])}),kp("MuiMenu",["root","listbox","expanded","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const Wb=["actions","children","color","component","disablePortal","keepMounted","id","invertedColors","onItemsChange","modifiers","variant","size","slots","slotProps"],Gb=Lp(eh,{name:"JoyMenu",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n,r;const o=null==(n=e.variants[t.variant])?void 0:n[t.color];return[Di({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==o?void 0:o.backgroundColor)||(null==o?void 0:o.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},Ug,{borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,boxShadow:e.shadow.md,overflow:"auto",zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=o&&o.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup},"solid"===t.variant&&t.color&&t.invertedColors&&xh(t.color)(e),"soft"===t.variant&&t.color&&t.invertedColors&&wh(t.color)(e),null==(r=e.variants[t.variant])?void 0:r[t.color])]})),qb=o.forwardRef((function(t,n){var r;const a=Fp({props:t,name:"JoyMenu"}),{actions:i,children:l,color:s="neutral",component:c,disablePortal:u=!1,keepMounted:d=!1,id:p,invertedColors:f=!1,onItemsChange:m,modifiers:g,variant:h="outlined",size:v="md",slots:b={},slotProps:y={}}=a,x=Xs(a,Wb),{contextValue:w,getListboxProps:S,dispatch:C,open:k,triggerElement:O}=function(e={}){var t,n;const{listboxRef:r,onItemsChange:a,id:i,disabledItemsFocusable:l=!0,disableListWrap:s=!1,autoFocus:c=!0,componentName:u="useMenu"}=e,d=o.useRef(null),p=ud(d,r),f=null!=(t=ld(i))?t:"",{state:{open:m,changeReason:g},dispatch:h,triggerElement:v,registerPopup:b}=null!=(n=o.useContext(tf))?n:jf,y=o.useRef(m),{subitems:x,contextValue:w}=Df(),S=o.useMemo((()=>Array.from(x.keys())),[x]),C=o.useCallback((e=>{var t,n;return null==e?null:null!=(t=null==(n=x.get(e))?void 0:n.ref.current)?t:null}),[x]),k=o.useCallback((e=>{var t;return(null==x||null==(t=x.get(e))?void 0:t.disabled)||!1}),[x]),O=o.useCallback((e=>{var t,n;return(null==(t=x.get(e))?void 0:t.label)||(null==(n=x.get(e))||null==(n=n.ref.current)?void 0:n.innerText)}),[x]),I=o.useMemo((()=>({listboxRef:d})),[d]),{dispatch:E,getRootProps:P,contextValue:N,state:{highlightedValue:$},rootRef:z}=Nf({disabledItemsFocusable:l,disableListWrap:s,focusManagement:"DOM",getItemDomElement:C,getInitialState:()=>({selectedValues:[],highlightedValue:null}),isItemDisabled:k,items:S,getItemAsString:O,rootRef:p,onItemsChange:a,reducerActionContext:I,selectionMode:"none",stateReducer:zf,componentName:u});Wu((()=>{b(f)}),[f,b]),Wu((()=>{m&&"keydown"===(null==g?void 0:g.type)&&"ArrowUp"===g.key&&E({type:vf.highlightLast,event:g})}),[m,g,E]),o.useEffect((()=>{var e;m&&c&&$&&!y.current&&(null==(e=x.get($))||null==(e=e.ref)||null==(e=e.current)||e.focus())}),[m,c,$,x,S]),o.useEffect((()=>{var e,t;null!=(e=d.current)&&e.contains(document.activeElement)&&null!==$&&(null==x||null==(t=x.get($))||null==(t=t.ref.current)||t.focus())}),[$,x]);const R=e=>t=>{var n,r;null==(n=e.onBlur)||n.call(e,t),t.defaultMuiPrevented||null!=(r=d.current)&&r.contains(t.relatedTarget)||t.relatedTarget===v||h({type:sf.blur,event:t})},D=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"Escape"===t.key&&h({type:sf.escapeKeyDown,event:t})},T=(e={})=>({onBlur:R(e),onKeyDown:D(e)});return o.useDebugValue({subitems:x,highlightedValue:$}),{contextValue:Di({},w,N),dispatch:E,getListboxProps:(e={})=>{const t=Tf(T,P),n=qp(e);return Di({},e,n,t(n),{id:f,role:"menu"})},highlightedValue:$,listboxRef:z,menuItems:x,open:m,triggerElement:v}}({onItemsChange:m,id:p,listboxRef:n});o.useImperativeHandle(i,(()=>({dispatch:C,resetHighlight:()=>C({type:vf.resetHighlight,event:null})})),[C]);const I=Di({},a,{disablePortal:u,invertedColors:f,color:s,variant:h,size:v,open:k,nesting:!1,row:!1}),E=(e=>{const{open:t,variant:n,color:r,size:o}=e;return Id({root:["root",t&&"expanded",n&&`variant${uc(n)}`,r&&`color${uc(r)}`,o&&`size${uc(o)}`],listbox:["listbox"]},Hb,{})})(I),P=Di({},x,{component:c,slots:b,slotProps:y}),N=o.useMemo((()=>[{name:"offset",options:{offset:[0,4]}},...g||[]]),[g]),$=Xp({elementType:Gb,getSlotProps:S,externalForwardedProps:P,externalSlotProps:{},ownerState:I,additionalProps:{anchorEl:O,open:k&&null!==O,disablePortal:u,keepMounted:d,modifiers:N},className:E.root});return e.jsx(Gb,Di({},$,!(null!=(r=a.slots)&&r.root)&&{as:Cg,slots:{root:c||"ul"}},{children:e.jsx(Mf,{value:w,children:e.jsx(Eh,{variant:f?void 0:h,color:s,children:e.jsx(Lg.Provider,{value:"menu",children:e.jsx(Yg,{nested:!0,children:l})})})})}))}));function Ub(e){return Cp("MuiMenuButton",e)}"production"!==process.env.NODE_ENV&&(qb.propTypes={actions:Zu,children:Ga.node,color:Ga.oneOf(["danger","neutral","primary","success","warning"]),component:Ga.elementType,disablePortal:Ga.bool,id:Ga.string,invertedColors:Ga.bool,keepMounted:Ga.bool,modifiers:Ga.arrayOf(Ga.shape({data:Ga.object,effect:Ga.func,enabled:Ga.bool,fn:Ga.func,name:Ga.any,options:Ga.object,phase:Ga.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:Ga.arrayOf(Ga.string),requiresIfExists:Ga.arrayOf(Ga.string)})),onClose:Ga.func,onItemsChange:Ga.func,open:Ga.bool,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])}),kp("MuiMenuButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);const Yb=["children","color","component","disabled","endDecorator","loading","loadingPosition","loadingIndicator","size","slotProps","slots","startDecorator","variant"],Kb=Lp("button",{name:"JoyMenuButton",slot:"Root",overridesResolver:(e,t)=>t.root})(bb),Jb=Lp("span",{name:"JoyMenuButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),Xb=Lp("span",{name:"JoyMenuButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),Qb=Lp("span",{name:"JoyMenuButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})((({theme:e,ownerState:t})=>{var n,r;return Di({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color},t.disabled&&{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color})})),Zb=o.forwardRef((function(t,n){var r;const a=Fp({props:t,name:"JoyMenuButton"}),{children:i,color:l="neutral",component:s,disabled:c=!1,endDecorator:u,loading:d=!1,loadingPosition:p="center",loadingIndicator:f,size:m="md",slotProps:g={},slots:h={},startDecorator:v,variant:b="outlined"}=a,y=Xs(a,Yb),x=o.useContext(Nh),w=t.variant||x.variant||b,S=t.size||x.size||m,C=null!=(r=t.disabled)?r:x.disabled||c||d,{getRootProps:k,open:O,active:I}=function(e={}){const{disabled:t=!1,focusableWhenDisabled:n,rootRef:r}=e,a=o.useContext(tf);if(null===a)throw new Error("useMenuButton: no menu context available.");const{state:i,dispatch:l,registerTrigger:s,popupId:c}=a,{getRootProps:u,rootRef:d,active:p}=ef({disabled:t,focusableWhenDisabled:n,rootRef:r}),f=ud(d,s),m=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||l({type:sf.toggle,event:t})},g=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),l({type:sf.open,event:t}))},h=(e={})=>({onClick:m(e),onKeyDown:g(e)});return{active:p,getRootProps:(e={})=>{const t=qp(e),n=Tf(h,u);return Di({"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":c},e,t,n(t),{tabIndex:0,ref:f})},open:i.open,rootRef:f}}({rootRef:n,disabled:C}),E=null!=f?f:e.jsx(Bh,{color:l,thickness:{sm:2,md:3,lg:4}[S]||3}),P=Di({},a,{active:I,color:l,disabled:C,open:O,size:S,variant:w}),N=(e=>{const{color:t,disabled:n,fullWidth:r,size:o,variant:a,loading:i}=e;return Id({root:["root",n&&"disabled",r&&"fullWidth",a&&`variant${uc(a)}`,t&&`color${uc(t)}`,o&&`size${uc(o)}`,i&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},Ub,{})})(P),$=Di({},y,{component:s,slots:h,slotProps:g}),[z,R]=Rg("root",{elementType:Kb,getSlotProps:k,externalForwardedProps:$,ref:n,ownerState:P,className:N.root}),[D,T]=Rg("startDecorator",{className:N.startDecorator,elementType:Jb,externalForwardedProps:$,ownerState:P}),[j,M]=Rg("endDecorator",{className:N.endDecorator,elementType:Xb,externalForwardedProps:$,ownerState:P}),[A,V]=Rg("loadingIndicatorCenter",{className:N.loadingIndicatorCenter,elementType:Qb,externalForwardedProps:$,ownerState:P});return e.jsxs(z,Di({},R,{children:[(v||d&&"start"===p)&&e.jsx(D,Di({},T,{children:d&&"start"===p?E:v})),i,d&&"center"===p&&e.jsx(A,Di({},V,{children:E})),(u||d&&"end"===p)&&e.jsx(j,Di({},M,{children:d&&"end"===p?E:u}))]}))}));function ey(e){return Cp("MuiMenuItem",e)}"production"!==process.env.NODE_ENV&&(Zb.propTypes={children:Ga.node,color:Ga.oneOfType([Ga.oneOf(["danger","info","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,disabled:Ga.bool,endDecorator:Ga.node,fullWidth:Ga.bool,loading:Ga.bool,loadingIndicator:Ga.node,loadingPosition:Ga.oneOf(["center","end","start"]),size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({endDecorator:Ga.oneOfType([Ga.func,Ga.object]),loadingIndicatorCenter:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object]),startDecorator:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({endDecorator:Ga.elementType,loadingIndicatorCenter:Ga.elementType,root:Ga.elementType,startDecorator:Ga.elementType}),startDecorator:Ga.node,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),tabIndex:Ga.number,variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])}),kp("MuiMenuItem",["root","focusVisible","disabled","selected","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const ty=["children","disabled","component","selected","color","orientation","variant","slots","slotProps","id"],ny=Lp(lh,{name:"JoyMenuItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ry=o.memo(o.forwardRef((function(t,n){const r=Fp({props:t,name:"JoyMenuItem"}),a=o.useContext(Mg),{children:i,disabled:l=!1,component:s="li",selected:c=!1,color:u="neutral",orientation:d="horizontal",variant:p="plain",slots:f={},slotProps:m={},id:g}=r,h=Xs(r,ty),{variant:v=p,color:b=u}=Ih(t.variant,t.color),{getRootProps:y,disabled:x,focusVisible:w}=Lf({id:g,disabled:l,rootRef:n}),S=Di({},r,{component:s,color:b,disabled:x,focusVisible:w,orientation:d,selected:c,row:a,variant:v}),C=(e=>{const{focusVisible:t,disabled:n,selected:r,color:o,variant:a}=e;return Id({root:["root",t&&"focusVisible",n&&"disabled",r&&"selected",o&&`color${uc(o)}`,a&&`variant${uc(a)}`]},ey,{})})(S),k=Di({},h,{component:s,slots:f,slotProps:m}),[O,I]=Rg("root",{ref:n,elementType:ny,getSlotProps:y,externalForwardedProps:k,className:C.root,ownerState:S});return e.jsx(ah.Provider,{value:d,children:e.jsx(O,Di({},I,{children:i}))})}))),oy=o.forwardRef((function(t,n){const{contextValue:r,id:a}=function(e){const t=o.useContext($f);if(!t)throw new Error("MenuItem: ListContext was not found.");const n=ld(e),{getItemState:r,dispatch:a}=t;let i;i=null!=n?r(n):{focusable:!0,highlighted:!1,selected:!1};const{highlighted:l,selected:s,focusable:c}=i,u=o.useCallback((e=>{if(e!==n)throw new Error(["Base UI MenuItem: Tried to access the state of another MenuItem.",`itemValue: ${e} | id: ${n}`,"This is unsupported when the MenuItem uses the MenuItemContextStabilizer as a performance optimization."].join("/n"));return{highlighted:l,selected:s,focusable:c}}),[l,s,c,n]);return{contextValue:o.useMemo((()=>({dispatch:a,getItemState:u})),[a,u]),id:n}}(t.id);return e.jsx($f.Provider,{value:r,children:e.jsx(ry,Di({},t,{id:a,ref:n}))})}));"production"!==process.env.NODE_ENV&&(oy.propTypes={children:Ga.node,id:Ga.string});function ay({size:t=80,strokeWidth:n=8,color:r="#4c3fdd"}){return e.jsxs("svg",{width:t,height:t,viewBox:"0 0 200 200",color:r,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"spinner-secondHalf",children:[e.jsx("stop",{offset:"0%",stopOpacity:"0",stopColor:"currentColor"}),e.jsx("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]}),e.jsxs("linearGradient",{id:"spinner-firstHalf",children:[e.jsx("stop",{offset:"0%",stopOpacity:"1",stopColor:"currentColor"}),e.jsx("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]})]}),e.jsxs("g",{strokeWidth:n,children:[e.jsx("path",{stroke:"url(#spinner-secondHalf)",d:`M ${n/2} 100 A ${100-n/2} ${100-n/2} 0 0 1 ${200-n/2} 100`}),e.jsx("path",{stroke:"url(#spinner-firstHalf)",d:`M ${200-n/2} 100 A ${100-n/2} ${100-n/2} 0 0 1 ${n/2} 100`}),e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",d:`M ${n/2} 100 A ${100-n/2} ${100-n/2} 0 0 1 ${n/2} ${100-n/4}`})]}),e.jsx("animateTransform",{from:"0 0 0",to:"360 0 0",attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1300ms"})]})}const iy=Kt.div`
|
|
174
144
|
position: absolute;
|
|
175
145
|
left: calc(50% - 40px);
|
|
176
146
|
top: calc(50% - 40px);
|
|
177
|
-
`,
|
|
147
|
+
`,ly=Kt.div`
|
|
178
148
|
position: absolute;
|
|
179
149
|
top: 28px;
|
|
180
150
|
font-size: var(---font-size--small);
|
|
181
151
|
color: black;
|
|
182
152
|
width: 80px;
|
|
183
153
|
text-align: center;
|
|
184
|
-
`;const
|
|
154
|
+
`;const sy=qt`
|
|
185
155
|
position: relative;
|
|
186
156
|
transition:
|
|
187
157
|
background-color 0.1s ease,
|
|
@@ -210,15 +180,15 @@ object-assign
|
|
|
210
180
|
width: 90%;
|
|
211
181
|
max-height: 90%;
|
|
212
182
|
}
|
|
213
|
-
`,
|
|
183
|
+
`,cy=qt`
|
|
214
184
|
padding: var(--spacing--small) var(--spacing--medium);
|
|
215
185
|
font-size: 0.9rem;
|
|
216
186
|
font-weight: 600;
|
|
217
|
-
`,
|
|
187
|
+
`,uy=qt`
|
|
218
188
|
padding: var(--spacing--xsmall) var(--spacing--small);
|
|
219
189
|
font-size: 0.8rem;
|
|
220
190
|
font-weight: 500;
|
|
221
|
-
`,
|
|
191
|
+
`,dy=qt`
|
|
222
192
|
background-color: var(--color--primary);
|
|
223
193
|
color: var(--color--white);
|
|
224
194
|
border: none;
|
|
@@ -230,7 +200,7 @@ object-assign
|
|
|
230
200
|
&:disabled {
|
|
231
201
|
background-color: #767676;
|
|
232
202
|
}
|
|
233
|
-
`,
|
|
203
|
+
`,py=qt`
|
|
234
204
|
background-color: var(--color--white);
|
|
235
205
|
color: var(--color--primary);
|
|
236
206
|
border: 1px solid var(--color--primary);
|
|
@@ -245,7 +215,7 @@ object-assign
|
|
|
245
215
|
color: #767676;
|
|
246
216
|
border-color: #767676;
|
|
247
217
|
}
|
|
248
|
-
`,
|
|
218
|
+
`,fy=qt`
|
|
249
219
|
background-color: var(--color--red);
|
|
250
220
|
color: white;
|
|
251
221
|
border: none;
|
|
@@ -257,7 +227,7 @@ object-assign
|
|
|
257
227
|
&:disabled {
|
|
258
228
|
background-color: #767676;
|
|
259
229
|
}
|
|
260
|
-
`,
|
|
230
|
+
`,my=qt`
|
|
261
231
|
background-color: transparent;
|
|
262
232
|
color: var(--color--primary-light);
|
|
263
233
|
border: none;
|
|
@@ -272,7 +242,7 @@ object-assign
|
|
|
272
242
|
color: #767676;
|
|
273
243
|
border-color: #767676;
|
|
274
244
|
}
|
|
275
|
-
`,
|
|
245
|
+
`,gy=qt`
|
|
276
246
|
background-color: var(--color--debug);
|
|
277
247
|
color: var(--color--white);
|
|
278
248
|
border: none;
|
|
@@ -284,24 +254,24 @@ object-assign
|
|
|
284
254
|
&:disabled {
|
|
285
255
|
background-color: var(--color--debug-very-light);
|
|
286
256
|
}
|
|
287
|
-
`,
|
|
288
|
-
${
|
|
257
|
+
`,hy=Kt.a`
|
|
258
|
+
${sy}
|
|
289
259
|
|
|
290
|
-
${({size:e})=>"small"===e?
|
|
260
|
+
${({size:e})=>"small"===e?uy:cy}
|
|
291
261
|
|
|
292
|
-
${({kind:e})=>"secondary"===e?
|
|
293
|
-
`,
|
|
294
|
-
${
|
|
262
|
+
${({kind:e})=>"secondary"===e?py:"danger"===e?fy:"basic"===e?my:"debug"===e?gy:dy}
|
|
263
|
+
`,vy=Kt.button`
|
|
264
|
+
${sy}
|
|
295
265
|
|
|
296
|
-
${({size:e})=>"small"===e?
|
|
266
|
+
${({size:e})=>"small"===e?uy:cy}
|
|
297
267
|
|
|
298
|
-
${({kind:e})=>"secondary"===e?
|
|
268
|
+
${({kind:e})=>"secondary"===e?py:"danger"===e?fy:"basic"===e?my:"debug"===e?gy:dy}
|
|
299
269
|
|
|
300
270
|
${({$isSubmitting:e})=>e?qt`
|
|
301
271
|
padding-left: 33px;
|
|
302
272
|
pointer-events: none;
|
|
303
273
|
`:qt``}
|
|
304
|
-
`,
|
|
274
|
+
`,by=Kt.span`
|
|
305
275
|
position: absolute;
|
|
306
276
|
left: 10px;
|
|
307
277
|
top: calc(50% - 8px);
|
|
@@ -311,461 +281,426 @@ object-assign
|
|
|
311
281
|
width: 16px;
|
|
312
282
|
height: 16px;
|
|
313
283
|
}
|
|
314
|
-
`;function Ki({children:t,...n}){const{type:r,kind:o}=n;if("link"===r)return e.jsx(qi,{...n,children:t});if("submit"===r){const{hideSpinner:r=!1,isSubmitting:a}=n;return e.jsxs(Ui,{$isSubmitting:a,...n,children:[a&&!r&&e.jsx(Yi,{children:e.jsx(ji,{strokeWidth:32,color:"primary"===o?"var(--color--white)":"inherit"})}),t]})}return e.jsx(Ui,{...n,children:t})}const Ji=Kt.div`
|
|
284
|
+
`;function yy({children:t,...n}){const{type:r,kind:o}=n;if("link"===r)return e.jsx(hy,{...n,children:t});if("submit"===r){const{hideSpinner:r=!1,isSubmitting:a}=n;return e.jsxs(vy,{$isSubmitting:a,...n,children:[a&&!r&&e.jsx(by,{children:e.jsx(ay,{strokeWidth:32,color:"primary"===o?"var(--color--white)":"inherit"})}),t]})}return e.jsx(vy,{...n,children:t})}function xy(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"209",height:"20","aria-labelledby":"HarperCollinsLogo",role:"img",children:[e.jsx("title",{id:"HarperCollinsLogo",children:"HarperCollins Publishers Logo"}),e.jsx("use",{fill:"#FFF",xlinkHref:"#path0_fill"}),e.jsx("defs",{children:e.jsx("path",{id:"path0_fill",fillRule:"evenodd",d:"M7.432 1.26C7.617.744 7.4.184 7.141.011V0c.873.182 1.656 1.272 1.657 2.512.001.81-.466 1.546-.919 2.257-.437.687-.86 1.352-.83 2.039h.012c.181-.814.857-1.488 1.523-2.153.903-.9 1.789-1.783 1.408-2.976l.007-.002c.897.557 1.332 2.066 1.454 3.23h.008c.207-.633.795-1.14 1.347-1.615.215-.186.425-.367.604-.548.227-.23.404-.46.48-.703h.008v6.01H0v-3.08c.01-.916.857-1.365 1.67-1.797.822-.435 1.609-.853 1.472-1.714l.006-.012c.61.922.278 1.768-.012 2.507l-.003.007-.009.024a9.85 9.85 0 0 0-.137.364l-.035.105-.028.093-.016.06c-.008.03-.014.06-.02.091-.042.2-.048.387.01.564h.01c.455-1.64 1.612-2.113 2.658-2.54.82-.336 1.572-.643 1.866-1.463zM2.405 8.421c-.813.741-1.647 1.084-2.405.8v5.51h13.899V8.92c-1.177 1.305-2.604.743-2.461-.348l-.008-.002c-2.165 2.348-3.396 1.03-3.055.07l-.005-.007c-1.967 2.21-3.206.915-2.622-.188L5.74 8.44c-2.489 2.766-4.06 1.75-3.327-.016l-.008-.003zm16.114-5.714c1.728.017 1.866.637 1.866 1.495v9.171c0 .931-.864 1.004-1.787 1.004l-.138.09v.402c.098.11.274.11.413.11.089 0 .178-.002.268-.004l.158-.005.19-.008.285-.015.228-.014.208-.012c.309-.018.617-.033.92-.033.342 0 .683.016 1.024.035l.188.01.3.017.28.013c.208.01.416.016.623.016.434 0 .63-.019.63-.128v-.273c0-.164-.06-.201-.276-.201-1.452 0-1.747-.255-1.747-1.296V8.47h8.423v4.267c0 1.276-.039 1.64-1.924 1.64l-.1.091v.401c0 .074.1.11.61.11.237 0 1.453-.09 2.179-.09.34 0 .679.017 1.017.036.448.025.894.054 1.34.054.53 0 .61-.055.61-.127v-.123a1.107 1.107 0 0 0-.033-.301c-.01-.031-.026-.05-.046-.05-1.12 0-1.885-.11-1.885-1.422V3.928c0-1.057.51-1.221 1.53-1.221.17 0 .302 0 .382-.029.058-.02.09-.057.09-.118v-.347l-.078-.108c-.57.054-1.08.09-2.337.09a60.75 60.75 0 0 1-3.102-.09l-.098.09v.22c0 .111.01.18.048.223.037.042.1.06.206.069 1.591.108 1.591.381 1.591 1.64v3.41h-8.423V3.655c0-.894.805-.948 1.608-.948l.152-.002.085-.003.068-.005.036-.004a.884.884 0 0 0 .091-.014c.076-.017.12-.043.12-.082v-.292c0-.2-.099-.2-.51-.2-.23 0-.454.007-.674.016-.204.009-.404.02-.603.031-.392.022-.774.044-1.158.044-.473 0-1.035-.027-1.543-.052l-.317-.015a17.76 17.76 0 0 0-.752-.024c-.157 0-.334.017-.334.144v.31l.098.148zm21.3 10.407l-.177.164-.099.088c-.48.43-1.104.988-1.747.988-.648 0-.904-.93-.904-1.42 0-.477.707-.821.983-.932l1.944-.822v1.934zM37.266 11.6l2.572-.929v-.876c0-1.003-.137-1.768-1.57-1.768-.532 0-1.513.145-1.513.674 0 .128.04.311.099.42l-1.237.656a1.407 1.407 0 0 1-.119-.547c0-.582.629-1.039 1.041-1.259l1.768-.947c.235-.128.335-.182.411-.182 1.63 0 2.475.73 2.475 2.224v3.867c0 .382 0 1.148.63 1.148.371 0 .45-.146.705-.529l.373.128c-.236.876-.727 1.585-1.57 1.585-1.334 0-1.474-1.147-1.454-1.603-.746.71-1.729 1.603-2.887 1.603-1.138 0-1.727-1.366-1.727-2.188 0-.309.373-.892 2.003-1.477zm10.855 2.9c-1.492 0-1.492-.692-1.492-1.422V9.632l.295-.345c.393-.457 1.001-1.077 1.474-1.077.302 0 .5.087.694.17.075.033.15.066.228.093.115.038.24.065.391.065.413 0 .807-.328.807-.711 0-.675-.413-.985-1.12-.985-1.046 0-1.869 1.017-2.479 1.772a15.78 15.78 0 0 1-.25.306l-.04-.036.04-1.878c0-.055-.04-.164-.156-.164a.906.906 0 0 0-.194.064c-.108.042-.252.102-.42.173l-.032.014-.022.01-.009.003-.149.063-1.453.623c-.216.09-.275.144-.275.253 0 .257.51.383.59.401.413.11.59.329.59.675v4.05c0 .983-.158 1.256-1.024 1.313-.392.017-.43.035-.43.217v.225a.127.127 0 0 0 .01.054c.01.022.028.031.066.031.374 0 .758-.022 1.14-.045l.522-.029a15.439 15.439 0 0 1 .617-.016c.188 0 .375.007.563.016l.468.03c.344.022.687.044 1.03.044a.19.19 0 0 0 .099-.02.09.09 0 0 0 .031-.031.236.236 0 0 0 .027-.116v-.087c0-.164-.018-.256-.137-.256zm5.548-5.779c.667-.438 1.296-.583 2.081-.583 1.884 0 2.906 1.659 2.906 3.262 0 1.861-1.041 3.157-3.043 3.157-.944 0-1.944-.31-1.944-1.259V8.721zm-3.083 10.705c1.492-.13 1.59-.146 1.59-1.624V9.688c0-.803-.039-.967-.451-1.132l-.707-.291c-.017 0-.027-.007-.033-.023-.006-.02-.006-.053-.006-.104 0-.137.016-.146.132-.207l.025-.013 2.395-1.076c.063.02.093.067.106.12a.569.569 0 0 1 .01.135c0 .347-.038.712.022 1.058.647-.31 2.277-1.203 2.945-1.203 2.14 0 3.671 1.987 3.671 3.83 0 3.5-3.827 4.594-5.34 4.594-.193 0-.383-.025-.572-.057l-.188-.033a5.572 5.572 0 0 0-.516-.074v2.825c0 1.242.333 1.316 1.747 1.389.052 0 .094.023.118.054.012.016.02.035.02.055v.182a.433.433 0 0 1-.02.132c-.018.052-.045.088-.08.088-.414 0-.825-.023-1.243-.046a23.9 23.9 0 0 0-1.328-.047c-.864 0-1.65.093-2.161.093-.176 0-.196-.073-.196-.257v-.11c0-.054.02-.144.06-.144zM64.862 7.444c-1.177 0-1.984 1.258-2.18 2.278L66 9.631c.254 0 .55-.344.55-.655 0-.894-.727-1.532-1.689-1.532zm3.32 2.699v-.565c0-1.515-1.239-2.736-2.987-2.736-2.572 0-4.142 2.462-4.142 4.614 0 2.024 1.628 3.81 3.633 3.81 1.57 0 2.75-.839 3.535-2.023l-.355-.238c-.982.821-1.493 1.077-2.219 1.077-1.786 0-3.102-1.587-3.102-3.174 0-.255 0-.51.04-.765h5.596zm3.713 2.935c0 .73 0 1.423 1.491 1.423.118 0 .138.092.138.256v.058l-.002.036a.273.273 0 0 1-.019.096c-.02.042-.06.064-.137.064l-.233-.003-.181-.006a26.08 26.08 0 0 1-.616-.036l-.296-.019-.197-.01c-.18-.01-.36-.016-.539-.016-.372 0-.755.023-1.138.045a19.608 19.608 0 0 1-1.168.043.075.075 0 0 1-.019-.006c-.015-.007-.023-.02-.027-.039l-.003-.026c-.002-.02-.002-.043-.002-.072V14.7c0-.182.04-.2.434-.217.864-.057 1.02-.33 1.02-1.313V9.12c0-.346-.176-.565-.59-.675-.077-.018-.587-.144-.587-.4 0-.11.059-.164.274-.254l1.453-.623.422-.178c.216-.09.366-.149.403-.149.118 0 .157.109.157.164l-.039 1.878.04.036c.079-.094.163-.198.25-.307.61-.755 1.433-1.77 2.48-1.77.705 0 1.118.31 1.118.984 0 .383-.393.711-.805.711-.258 0-.437-.077-.62-.157l-.094-.04-.073-.03-.064-.023a1.38 1.38 0 0 0-.465-.078c-.47 0-1.079.62-1.474 1.077l-.293.345v3.446zm13.057 1.884c1.786 0 3.377-.382 4.693-.985l.451-2.406c.058-.257-.235-.274-.393-.274h-.074l-.036.002c-.061.003-.113.012-.126.036-.235.674-.49 1.494-1.1 1.95-.785.582-2.277.968-3.436.968-3.3 0-5.891-2.829-5.891-5.818 0-3.282 2.141-6.147 5.891-6.147 1.729 0 3.456.876 4.025 2.134.142.31.258.537.347.685.085.14.146.21.184.21.08 0 .393 0 .393-.128l-.001-.034-.002-.028a2.015 2.015 0 0 0-.017-.123l-.015-.094-.012-.077-.012-.083-.255-2.114c-1.14-.638-3.397-1.057-4.713-1.057-4.024 0-8.01 2.662-8.01 6.655 0 4.195 4.26 6.728 8.11 6.728zm13.503-3.452c0 1.568-.766 3.154-2.69 3.154-2.021 0-2.945-2.133-2.945-3.737 0-1.75.588-3.483 2.572-3.483 2.395 0 3.063 2.243 3.063 4.066zm-3.14 3.755c-2.377 0-4.262-1.858-4.262-4.083 0-2.443 2.178-4.34 4.79-4.34 2.338 0 4.38 1.897 4.38 4.085 0 2.626-2.336 4.338-4.909 4.338zm9.57-.99c-1.354 0-1.354-.472-1.354-.874V3.463c0-.438.01-.88.019-1.323l.009-.406c.005-.307.01-.612.01-.915l-.001-.053-.001-.036a.539.539 0 0 0-.011-.08c-.015-.069-.05-.124-.125-.124a.296.296 0 0 0-.064.012 1.957 1.957 0 0 0-.207.07l-.023.01-1.434.493-.228.082c-.615.222-.773.279-.773.41 0 .137.244.227.519.327l.051.019c.766.292.766.365.766 1.514v9.846c0 .857-.315.967-1.178.967h-.125c-.074.003-.124.01-.156.034-.04.029-.053.083-.053.184v.165c0 .072.039.127.176.127.196 0 .392-.007.589-.017l.272-.015.199-.013c.354-.022.707-.045 1.061-.045.174 0 .429.016.724.035l.414.025c.295.017.607.03.904.03.039 0 .059-.09.059-.253l-.001-.072-.001-.054a.635.635 0 0 0-.007-.088c-.006-.027-.015-.043-.03-.043zm3.384-.874c0 .402 0 .875 1.355.875.039 0 .039.11.039.257l-.001.068-.004.058c-.009.083-.028.127-.055.127-.441 0-.915-.03-1.316-.055h-.004a13.313 13.313 0 0 0-.722-.035c-.353 0-.706.023-1.059.045-.138.01-.275.018-.413.025a14.44 14.44 0 0 1-.426.018h-.06l-.163.002c-.137 0-.177-.055-.177-.126v-.166c0-.056.004-.098.015-.129a.107.107 0 0 1 .034-.051c.046-.038.132-.038.286-.038.864 0 1.178-.11 1.178-.967V3.463c0-1.149 0-1.222-.766-1.514l-.054-.02c-.273-.1-.516-.19-.516-.326 0-.146.197-.2 1.003-.492l1.432-.493a1.627 1.627 0 0 1 .295-.092c.138 0 .138.183.138.293 0 .875-.039 1.768-.039 2.644v9.938zm6.616 1.251c-1.356 0-1.356-.473-1.356-.875V9.93c0-.439.01-.881.02-1.324.011-.442.021-.884.021-1.32 0-.11 0-.292-.138-.292-.058 0-.256.073-.294.092l-1.434.49-.216.079c-.626.225-.786.283-.786.415 0 .134.236.222.504.322l.065.025c.766.291.766.364.766 1.513v3.755c0 .857-.314.967-1.177.967-.276 0-.334 0-.334.219v.165c0 .071.039.127.176.127.173 0 .346-.006.52-.014l.201-.01.34-.021c.354-.023.707-.045 1.06-.045.174 0 .429.016.724.034.402.026.876.056 1.318.056.027 0 .045-.044.053-.125.004-.036.006-.08.006-.129 0-.076 0-.142-.005-.188-.005-.043-.015-.069-.034-.069zM112.726 1.58c.607 0 1.098.456 1.098 1.02 0 .565-.491 1.02-1.098 1.02-.609 0-1.101-.455-1.101-1.02 0-.564.492-1.02 1.101-1.02zm4.728 6.722c.197.036.374.254.374.6v4.632c0 .857-.314.967-1.178.967-.275 0-.334 0-.334.218v.166c0 .071.04.127.176.127.288 0 .577-.015.865-.033l.197-.012a16.59 16.59 0 0 1 1.059-.045c.175 0 .431.016.727.035.401.025.875.055 1.317.055.037 0 .057-.09.057-.255 0-.052 0-.1-.002-.139-.002-.049-.006-.086-.018-.104-.005-.009-.011-.013-.019-.013-1.355 0-1.355-.473-1.355-.874V8.883c.57-.529 1.59-.982 2.415-.982 1.374 0 1.748.637 1.748 1.766v4.287c0 .546-.903.546-1.217.546-.117 0-.196.056-.196.11 0 .017 0 .048.002.086.001.02.002.044.005.068.011.115.043.247.13.247.353 0 .701-.022 1.049-.045s.697-.045 1.051-.045c.648 0 1.159.09 1.944.09.06 0 .099-.018.099-.056v-.328c0-.09-.039-.127-.08-.127-.646 0-1.296 0-1.296-.784v-4.45c0-1.532-.725-2.424-2.433-2.424-1.206 0-2.212.737-3.106 1.393l-.115.083V7.06c0-.022 0-.052-.002-.082-.006-.067-.022-.135-.076-.135a.909.909 0 0 0-.191.067l-.165.07-.133.057c-.228.098-.515.222-.821.343-.128.051-.26.101-.392.149-.25.09-.501.17-.733.226-.099.018-.119.147-.119.2 0 .076.021.126.051.158.02.022.044.035.068.042l.647.147zm14.886.802h-.492c-.235-.802-.686-1.66-1.727-1.66-.903 0-1.61.401-1.61 1.258 0 .633.822 1.05 1.721 1.504l.031.016.31.158c1.04.547 2.062 1.186 2.062 2.316 0 1.585-1.572 2.57-3.162 2.57-1.277 0-2.513-.528-2.533-.819l-.098-1.66.569-.053c.08.09.099.218.138.344.217.748 1.098 1.587 1.963 1.587 1.002 0 1.631-.565 1.631-1.513 0-.601-.903-1.24-1.394-1.477l-.174-.083c-1.107-.528-2.42-1.154-2.42-2.47 0-1.514 1.492-2.279 2.985-2.279.785 0 1.572.2 2.318.564l-.118 1.697zm5.53-5.668c0 .13-.197.893-.432 1.733l-2.356 8.206c-.234.857-.531 1.003-1.748 1.003a.098.098 0 0 0-.071.034.2.2 0 0 0-.03.043c-.05.09-.075.248-.075.415 0 .073.018.109.098.109.119.008.357-.008.663-.029.399-.026.915-.061 1.437-.061.615 0 1.26.035 1.744.062.177.01.333.018.457.023l.109.004h.086c.139 0 .335 0 .373-.072l.037-.075.029-.06.017-.036.018-.042a.422.422 0 0 0 .036-.151c0-.127-.057-.164-.175-.164h-.276c-.589 0-1.216-.02-1.216-.474 0-.128.137-.565.176-.693l2.866-9.956c.118-.383.352-.438.942-.438 1.65 0 2.75.875 2.75 2.387 0 1.46-1.218 3.611-2.787 3.611-.61 0-1.082-.146-1.336-.328l-.314.42c.372.348 1.177.51 2.021.51 2.416 0 4.243-2.042 4.243-4.193 0-2.262-2.101-3.118-4.301-3.118-1.571 0-2.475.053-4.241.182-.315.019-.373.092-.373.382 0 .165.019.22.078.22l.022-.002.043-.008.052-.01a2.93 2.93 0 0 1 .57-.072c.471 0 .864.147.864.638zm6.365 5.358c.152-.132.324-.304.512-.492.64-.64 1.459-1.459 2.218-1.459.393 0 .687.145.687.565 0 .193-.167.593-.283.872l-.046.11-.024.058-.021.056-1.275 2.989-.237.55c-.225.514-.391.894-.391 1.019 0 .182.118.327.351.327.595 0 2.704-2.422 3.878-3.772l.017-.018c.295-.338.528-.608.663-.75.285-.298.531-.675.776-1.05.125-.192.25-.383.379-.562l.068-.092.049-.065.043-.054c.118-.147.295-.183.471-.183.085 0 .168.03.242.08a.623.623 0 0 1 .229.295c.013.04.021.08.021.117 0 .119-.333.921-.742 1.91l-.004.013c-.658 1.59-1.513 3.656-1.513 4.15 0 .2.177.31.294.31.662 0 1.611-1.266 2.028-1.823l.014-.019c.119 0 .355.182.355.274-.59.984-2.476 3.116-3.711 3.116-.335 0-.611-.327-.611-.691 0-.359.745-2.162 1.277-3.452l.015-.035.186-.453.177-.434c.048-.122.088-.223.113-.295h-.038c-.806.895-5.146 5.36-6.069 5.36-.333 0-.649-.327-.649-.637 0-.78.82-2.57 1.472-3.995.431-.942.789-1.724.789-1.949 0-.181-.179-.291-.276-.291-.256 0-.924.564-1.119.765l-.315-.365zm12.001 5.429c1.768 0 5.125-4.085 5.125-5.69 0-.694-.334-1.003-.923-1.003-1.413 0-5.28 4.175-5.28 5.962 0 .513.608.73 1.078.73zM159.1.53c-.038-.004-.077-.004-.114-.004-.194 0-.823.099-1.489.203l-.737.114-.341.05c-.155.021-.297.04-.419.053l-.038.42c.747.053 1.217.163 1.217.691 0 .749-1.726 6.237-1.826 6.585-.054.194-.183.585-.347 1.07l-.26.766-.016.047-.01.03-.009.025c-.474 1.392-1.027 3.018-1.027 3.276 0 .874 1.021 1.184 1.788 1.184 2.828 0 7.462-3.791 7.462-6.545 0-1.04-.648-1.878-1.788-1.878-1.896 0-3.864 2.363-5.024 3.756l-.122.145-.038-.036 3.28-9.883-.005-.007-.004-.007-.01-.01c-.005-.006-.012-.01-.018-.015a.25.25 0 0 0-.105-.03zm6.781 2.9c.05-.188.098-.391.139-.574a5.11 5.11 0 0 0 .106-.58c0-.583-.647-.747-1.14-.82l.14-.42c.575-.063 1.405-.227 2.039-.352h.004l.013-.003c.281-.056.522-.103.682-.13a1.47 1.47 0 0 1 .188-.025.17.17 0 0 1 .041.005.1.1 0 0 1 .049.025.112.112 0 0 1 .026.08c0 .072-.098.4-.314 1.057l-3.022 9.573-.109.338-.005.013c-.218.674-.418 1.295-.418 1.638 0 .235.197.42.452.42.447 0 1.011-.552 1.466-.996l.007-.007.019-.02c.155-.15.295-.286.413-.382h.077l.295.274v.054c-.667.876-2.335 2.443-3.553 2.443-.453 0-.845-.345-.845-.802 0-.091.118-.51.276-1.076l2.885-9.427a6.77 6.77 0 0 0 .089-.307zm4.96 3.108c-.766.018-2.298 1.186-2.63 1.769l.411.272c.294-.308.865-.764 1.197-.764a.37.37 0 0 1 .205.053c.084.055.128.15.128.274 0 .4-.585 1.757-1.159 3.09-.554 1.287-1.098 2.552-1.098 2.91 0 .583.413.82 1.002.82 1.334 0 2.868-1.694 3.535-2.663 0-.072-.275-.272-.354-.272-.118.105-.27.269-.441.453-.482.52-1.117 1.206-1.581 1.206-.296 0-.491-.164-.491-.364 0-.267.536-1.537 1.085-2.839l.003-.008c.578-1.369 1.17-2.772 1.17-3.08 0-.583-.334-.857-.982-.857zM172 1.578c.51 0 .922.364.922.839 0 .473-.412.857-.922.857-.511 0-.904-.384-.904-.857 0-.475.393-.838.904-.838zm6.463 6.156c0-.71-.981-.892-1.57-.892-1.649 0-2.985 1.35-2.985 2.862 0 .41.565 1.005 1.141 1.612.602.632 1.216 1.279 1.216 1.744 0 .638-.61 1.149-1.277 1.149-.586 0-.849-.237-1.078-.444-.179-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.471 0 3.239-1.55 3.239-2.9 0-.574-.739-1.34-1.428-2.055-.601-.624-1.165-1.209-1.165-1.592 0-.527.591-1.166 1.22-1.166.531 0 .763.28.97.529.168.201.319.383.599.383.335 0 .629-.347.629-.73zm2.354 3.187l.039.035.134-.18c1.064-1.43 3.094-4.159 5.089-4.159 1.296 0 1.611.966 1.611 1.987 0 1.879-2.219 6.437-4.616 6.437-.353 0-.843-.218-.843-.602 0-.436.255-.856.726-.856a.708.708 0 0 1 .278.055c.052.02.103.045.155.072a2.963 2.963 0 0 0 .201.098.624.624 0 0 0 .23.048c1.256 0 2.297-4.14 2.297-5.088 0-.527-.138-1.056-.826-1.056-1.432 0-3.24 2.57-4.495 4.484a10.28 10.28 0 0 0-1.05 2.056c-.093.233-.171.432-.266.607-.079.146-.255.182-.413.182-.175 0-.647-.164-.647-.474 0-.247.773-2.528 1.471-4.588.485-1.43.934-2.753 1.063-3.217l.065-.226c.274-.945 1.112-3.83 1.112-4.278 0-.6-.354-.691-1.217-.783l.119-.42c.169-.031.339-.058.51-.084l.176-.026c.463-.07.927-.139 1.374-.272.255-.074.511-.147.766-.147.099 0 .295.019.295.128 0 .201-1.335 4.377-1.63 5.233l-1.708 5.034zm9.471-.195c1.374-.11 3.965-.674 3.965-2.389 0-.546-.295-.983-.943-.983-1.59 0-2.63 2.15-3.022 3.372zm-1.867 1.788c0 1.53.746 2.752 2.571 2.752 1.416 0 2.592-.673 3.379-1.785-.039-.166-.275-.293-.374-.31-.706.672-1.335 1.037-2.335 1.037-1.122 0-1.671-.874-1.671-1.822 0-.3.05-.59.101-.884.02-.118.041-.236.058-.356 1.726-.074 5.476-.674 5.476-2.79 0-1.205-1.119-1.514-2.238-1.514-2.925 0-4.967 3.264-4.967 5.672zm11.596-4.24c0 .474-.156 1.24-.393 2.096h.041l.123-.195c.729-1.15 2.118-3.342 3.154-3.342.512 0 1.082.291 1.082.821 0 .547-.394.875-1.003.875a.75.75 0 0 1-.471-.183 2.554 2.554 0 0 1-.11-.097 1.562 1.562 0 0 0-.07-.062c-.055-.046-.104-.078-.153-.078-.649 0-2.239 3.046-2.672 3.974-.073.157-.177.435-.3.764-.366.98-.898 2.409-1.31 2.409-.255 0-.805-.108-.805-.364 0-.06.087-.313.226-.696l.157-.427c.176-.48.395-1.076.618-1.721.375-1.076.747-2.152.747-2.753 0-.42-.078-1.003-.786-1.003-.393 0-.883.692-1.138 1.076a1.692 1.692 0 0 1-.412-.255c.373-.75 1.355-2.28 2.297-2.28.844 0 1.178.857 1.178 1.44zm8.922-.549c0-.71-.982-.892-1.571-.892-1.648 0-2.984 1.35-2.984 2.862 0 .41.565 1.005 1.141 1.612.601.633 1.216 1.279 1.216 1.744 0 .639-.61 1.149-1.277 1.149-.586 0-.848-.237-1.078-.444-.178-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.47 0 3.24-1.55 3.24-2.9 0-.574-.739-1.34-1.428-2.055-.602-.624-1.165-1.209-1.165-1.591 0-.528.59-1.167 1.219-1.167.531 0 .762.279.97.528.167.202.319.384.6.384.335 0 .628-.347.628-.73z"})})]})}function wy(){return e.jsx(xy,{})}const Sy=Kt.header`
|
|
315
285
|
display: flex;
|
|
316
|
-
flex-
|
|
317
|
-
align-items:
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
overflow: hidden;
|
|
324
|
-
|
|
325
|
-
@media print {
|
|
326
|
-
-webkit-line-clamp: unset;
|
|
327
|
-
}
|
|
328
|
-
`,Qi=Kt(Ki)`
|
|
329
|
-
margin: auto;
|
|
286
|
+
flex-flow: row;
|
|
287
|
+
align-items: center;
|
|
288
|
+
background-color: var(--color--primary);
|
|
289
|
+
width: 100%;
|
|
290
|
+
height: 70px;
|
|
291
|
+
padding: 1rem;
|
|
292
|
+
gap: 1rem;
|
|
330
293
|
|
|
331
294
|
@media print {
|
|
332
295
|
display: none;
|
|
333
296
|
}
|
|
334
|
-
`;const Zi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var el=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},tl="undefined"!=typeof window&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect,nl="top",rl="bottom",ol="right",al="left",il="auto",ll=[nl,rl,ol,al],sl="start",cl="end",ul="clippingParents",dl="viewport",pl="popper",fl="reference",ml=ll.reduce((function(e,t){return e.concat([t+"-"+sl,t+"-"+cl])}),[]),gl=[].concat(ll,[il]).reduce((function(e,t){return e.concat([t,t+"-"+sl,t+"-"+cl])}),[]),hl=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function vl(e){return e?(e.nodeName||"").toLowerCase():null}function bl(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yl(e){return e instanceof bl(e).Element||e instanceof Element}function xl(e){return e instanceof bl(e).HTMLElement||e instanceof HTMLElement}function wl(e){return"undefined"!=typeof ShadowRoot&&(e instanceof bl(e).ShadowRoot||e instanceof ShadowRoot)}var Sl={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];xl(o)&&vl(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(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(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});xl(r)&&vl(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Cl(e){return e.split("-")[0]}var kl=Math.max,Ol=Math.min,Il=Math.round;function El(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Pl(){return!/^((?!chrome|android).)*safari/i.test(El())}function Nl(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&xl(e)&&(o=e.offsetWidth>0&&Il(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Il(r.height)/e.offsetHeight||1);var i=(yl(e)?bl(e):window).visualViewport,l=!Pl()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function $l(e){var t=Nl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zl(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wl(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Rl(e){return bl(e).getComputedStyle(e)}function Dl(e){return["table","td","th"].indexOf(vl(e))>=0}function Tl(e){return((yl(e)?e.ownerDocument:e.document)||window.document).documentElement}function jl(e){return"html"===vl(e)?e:e.assignedSlot||e.parentNode||(wl(e)?e.host:null)||Tl(e)}function Ml(e){return xl(e)&&"fixed"!==Rl(e).position?e.offsetParent:null}function Al(e){for(var t=bl(e),n=Ml(e);n&&Dl(n)&&"static"===Rl(n).position;)n=Ml(n);return n&&("html"===vl(n)||"body"===vl(n)&&"static"===Rl(n).position)?t:n||function(e){var t=/firefox/i.test(El());if(/Trident/i.test(El())&&xl(e)&&"fixed"===Rl(e).position)return null;var n=jl(e);for(wl(n)&&(n=n.host);xl(n)&&["html","body"].indexOf(vl(n))<0;){var r=Rl(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Vl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _l(e,t,n){return kl(e,Ol(t,n))}function Ll(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Fl(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Bl={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Cl(n.placement),s=Vl(l),c=[al,ol].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return Ll("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Fl(e,ll))}(o.padding,n),d=$l(a),p="y"===s?nl:al,f="y"===s?rl:ol,m=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],g=i[s]-n.rects.reference[s],h=Al(a),v=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,b=m/2-g/2,y=u[p],x=v-d[c]-u[f],w=v/2-d[c]/2+b,S=_l(y,w,x),C=s;n.modifiersData[r]=((t={})[C]=S,t.centerOffset=S-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&zl(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hl(e){return e.split("-")[1]}var Wl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gl(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,g=void 0===m?0:m,h="function"==typeof u?u({x:f,y:g}):{x:f,y:g};f=h.x,g=h.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=al,x=nl,w=window;if(c){var S=Al(n),C="clientHeight",k="clientWidth";if(S===bl(n)&&"static"!==Rl(S=Tl(n)).position&&"absolute"===l&&(C="scrollHeight",k="scrollWidth"),o===nl||(o===al||o===ol)&&a===cl)x=rl,g-=(d&&S===w&&w.visualViewport?w.visualViewport.height:S[C])-r.height,g*=s?1:-1;if(o===al||(o===nl||o===rl)&&a===cl)y=ol,f-=(d&&S===w&&w.visualViewport?w.visualViewport.width:S[k])-r.width,f*=s?1:-1}var O,I=Object.assign({position:l},c&&Wl),E=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Il(n*o)/o||0,y:Il(r*o)/o||0}}({x:f,y:g},bl(n)):{x:f,y:g};return f=E.x,g=E.y,s?Object.assign({},I,((O={})[x]=b?"0":"",O[y]=v?"0":"",O.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",O)):Object.assign({},I,((t={})[x]=b?g+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var ql={passive:!0};var Ul={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=bl(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,ql)})),l&&s.addEventListener("resize",n.update,ql),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ql)})),l&&s.removeEventListener("resize",n.update,ql)}},data:{}},Yl={left:"right",right:"left",bottom:"top",top:"bottom"};function Kl(e){return e.replace(/left|right|bottom|top/g,(function(e){return Yl[e]}))}var Jl={start:"end",end:"start"};function Xl(e){return e.replace(/start|end/g,(function(e){return Jl[e]}))}function Ql(e){var t=bl(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Zl(e){return Nl(Tl(e)).left+Ql(e).scrollLeft}function es(e){var t=Rl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ts(e){return["html","body","#document"].indexOf(vl(e))>=0?e.ownerDocument.body:xl(e)&&es(e)?e:ts(jl(e))}function ns(e,t){var n;void 0===t&&(t=[]);var r=ts(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=bl(r),i=o?[a].concat(a.visualViewport||[],es(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(ns(jl(i)))}function rs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function os(e,t,n){return t===dl?rs(function(e,t){var n=bl(e),r=Tl(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=Pl();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+Zl(e),y:s}}(e,n)):yl(t)?function(e,t){var n=Nl(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):rs(function(e){var t,n=Tl(e),r=Ql(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=kl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=kl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Zl(e),s=-r.scrollTop;return"rtl"===Rl(o||n).direction&&(l+=kl(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(Tl(e)))}function as(e,t,n,r){var o="clippingParents"===t?function(e){var t=ns(jl(e)),n=["absolute","fixed"].indexOf(Rl(e).position)>=0&&xl(e)?Al(e):e;return yl(n)?t.filter((function(e){return yl(e)&&zl(e,n)&&"body"!==vl(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=os(e,n,r);return t.top=kl(o.top,t.top),t.right=Ol(o.right,t.right),t.bottom=Ol(o.bottom,t.bottom),t.left=kl(o.left,t.left),t}),os(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function is(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Cl(o):null,i=o?Hl(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case nl:t={x:l,y:n.y-r.height};break;case rl:t={x:l,y:n.y+n.height};break;case ol:t={x:n.x+n.width,y:s};break;case al:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?Vl(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case sl:t[c]=t[c]-(n[u]/2-r[u]/2);break;case cl:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function ls(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?ul:l,c=n.rootBoundary,u=void 0===c?dl:c,d=n.elementContext,p=void 0===d?pl:d,f=n.altBoundary,m=void 0!==f&&f,g=n.padding,h=void 0===g?0:g,v=Ll("number"!=typeof h?h:Fl(h,ll)),b=p===pl?fl:pl,y=e.rects.popper,x=e.elements[m?b:p],w=as(yl(x)?x:x.contextElement||Tl(e.elements.popper),s,u,i),S=Nl(e.elements.reference),C=is({reference:S,element:y,strategy:"absolute",placement:o}),k=rs(Object.assign({},y,C)),O=p===pl?k:S,I={top:w.top-O.top+v.top,bottom:O.bottom-w.bottom+v.bottom,left:w.left-O.left+v.left,right:O.right-w.right+v.right},E=e.modifiersData.offset;if(p===pl&&E){var P=E[o];Object.keys(I).forEach((function(e){var t=[ol,rl].indexOf(e)>=0?1:-1,n=[nl,rl].indexOf(e)>=0?"y":"x";I[e]+=P[n]*t}))}return I}function ss(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?gl:s,u=Hl(r),d=u?l?ml:ml.filter((function(e){return Hl(e)===u})):ll,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=ls(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Cl(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var cs={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,g=n.allowedAutoPlacements,h=t.options.placement,v=Cl(h),b=s||(v===h||!m?[Kl(h)]:function(e){if(Cl(e)===il)return[];var t=Kl(e);return[Xl(e),t,Xl(t)]}(h)),y=[h].concat(b).reduce((function(e,n){return e.concat(Cl(n)===il?ss(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:g}):n)}),[]),x=t.rects.reference,w=t.rects.popper,S=new Map,C=!0,k=y[0],O=0;O<y.length;O++){var I=y[O],E=Cl(I),P=Hl(I)===sl,N=[nl,rl].indexOf(E)>=0,$=N?"width":"height",z=ls(t,{placement:I,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),R=N?P?ol:al:P?rl:nl;x[$]>w[$]&&(R=Kl(R));var D=Kl(R),T=[];if(a&&T.push(z[E]<=0),l&&T.push(z[R]<=0,z[D]<=0),T.every((function(e){return e}))){k=I,C=!1;break}S.set(I,T)}if(C)for(var j=function(e){var t=y.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},M=m?3:1;M>0;M--){if("break"===j(M))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function us(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ds(e){return[nl,ol,rl,al].some((function(t){return e[t]>=0}))}var ps={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=ls(t,{elementContext:"reference"}),l=ls(t,{altBoundary:!0}),s=us(i,r),c=us(l,o,a),u=ds(s),d=ds(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var fs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=gl.reduce((function(e,n){return e[n]=function(e,t,n){var r=Cl(e),o=[al,nl].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[al,ol].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}};var ms={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=is({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var gs={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,m=n.tetherOffset,g=void 0===m?0:m,h=ls(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=Cl(t.placement),b=Hl(t.placement),y=!b,x=Vl(v),w="x"===x?"y":"x",S=t.modifiersData.popperOffsets,C=t.rects.reference,k=t.rects.popper,O="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,I="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(S){if(a){var N,$="y"===x?nl:al,z="y"===x?rl:ol,R="y"===x?"height":"width",D=S[x],T=D+h[$],j=D-h[z],M=f?-k[R]/2:0,A=b===sl?C[R]:k[R],V=b===sl?-k[R]:-C[R],_=t.elements.arrow,L=f&&_?$l(_):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[$],H=F[z],W=_l(0,C[R],L[R]),G=y?C[R]/2-M-W-B-I.mainAxis:A-W-B-I.mainAxis,q=y?-C[R]/2+M+W+H+I.mainAxis:V+W+H+I.mainAxis,U=t.elements.arrow&&Al(t.elements.arrow),Y=U?"y"===x?U.clientTop||0:U.clientLeft||0:0,K=null!=(N=null==E?void 0:E[x])?N:0,J=D+q-K,X=_l(f?Ol(T,D+G-K-Y):T,D,f?kl(j,J):j);S[x]=X,P[x]=X-D}if(l){var Q,Z="x"===x?nl:al,ee="x"===x?rl:ol,te=S[w],ne="y"===w?"height":"width",re=te+h[Z],oe=te-h[ee],ae=-1!==[nl,al].indexOf(v),ie=null!=(Q=null==E?void 0:E[w])?Q:0,le=ae?re:te-C[ne]-k[ne]-ie+I.altAxis,se=ae?te+C[ne]+k[ne]-ie-I.altAxis:oe,ce=f&&ae?function(e,t,n){var r=_l(e,t,n);return r>n?n:r}(le,te,se):_l(f?le:re,te,f?se:oe);S[w]=ce,P[w]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function hs(e,t,n){void 0===n&&(n=!1);var r=xl(t),o=xl(t)&&function(e){var t=e.getBoundingClientRect(),n=Il(t.width)/e.offsetWidth||1,r=Il(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Tl(t),i=Nl(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==vl(t)||es(a))&&(l=function(e){return e!==bl(e)&&xl(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Ql(e);var t}(t)),xl(t)?((s=Nl(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Zl(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function vs(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var bs={placement:"bottom",modifiers:[],strategy:"absolute"};function ys(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function xs(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?bs:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},bs,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:yl(e)?ns(e):e.contextElement?ns(e.contextElement):[],popper:ns(t)};var i,c,p=function(e){var t=vs(e);return hl.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:u,options:r}),i=function(){};s.push(a||i)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(ys(t,n)){l.rects={reference:hs(t,Al(n),"fixed"===l.options.strategy),popper:$l(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!ys(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var ws=xs({defaultModifiers:[Ul,ms,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:Cl(t.placement),variation:Hl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Gl(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Gl(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Sl,fs,cs,gs,Bl,ps]}),Ss="undefined"!=typeof Element,Cs="function"==typeof Map,ks="function"==typeof Set,Os="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Is(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Is(e[r],t[r]))return!1;return!0}if(Cs&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!Is(r.value[1],t.get(r.value[0])))return!1;return!0}if(ks&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Os&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Ss&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Is(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var Es=d((function(e,t){try{return Is(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}})),Ps=[],Ns=function(e,t,n){void 0===n&&(n={});var r=o.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Ps},l=o.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=l[0],c=l[1],u=o.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);a.flushSync((function(){c({styles:el(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:el(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),d=o.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Es(r.current,e)?r.current||e:(r.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),p=o.useRef();return tl((function(){p.current&&p.current.setOptions(d)}),[d]),tl((function(){if(null!=e&&null!=t){var r=(n.createPopper||ws)(e,t,d);return p.current=r,function(){r.destroy(),p.current=null}}}),[e,t,n.createPopper]),{state:p.current?p.current.state:null,styles:s.styles,attributes:s.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const $s=Kt.div`
|
|
297
|
+
`,Cy=Kt.a`
|
|
298
|
+
flex-shrink: 0;
|
|
335
299
|
display: inline-flex;
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
300
|
+
`,ky=Kt.div`
|
|
301
|
+
margin-left: auto;
|
|
302
|
+
display: flex;
|
|
303
|
+
flex-flow: row;
|
|
304
|
+
align-items: center;
|
|
305
|
+
height: 100%;
|
|
306
|
+
gap: var(--spacing--small);
|
|
307
|
+
`,Oy=qt`
|
|
308
|
+
&& {
|
|
309
|
+
color: white;
|
|
310
|
+
opacity: 0.9;
|
|
311
|
+
font-size: var(--font-size--small);
|
|
312
|
+
white-space: nowrap;
|
|
313
|
+
padding: var(--spacing--xsmall) var(--spacing--small);
|
|
314
|
+
transition: background-color 0.2s;
|
|
315
|
+
display: flex;
|
|
316
|
+
align-items: center;
|
|
317
|
+
border-radius: var(--border-radius--medium);
|
|
318
|
+
user-select: none;
|
|
319
|
+
font-weight: var(--font-weight--medium);
|
|
320
|
+
border: none;
|
|
321
|
+
text-decoration: none;
|
|
322
|
+
&:hover {
|
|
323
|
+
background-color: rgb(255, 255, 255, 0.1);
|
|
324
|
+
cursor: pointer;
|
|
325
|
+
opacity: 1;
|
|
326
|
+
text-decoration: none;
|
|
327
|
+
}
|
|
360
328
|
}
|
|
329
|
+
`,Iy=Kt(yy)`
|
|
330
|
+
${Oy}
|
|
331
|
+
gap: var(--spacing--small);
|
|
332
|
+
`,Ey=Kt(Zb)`
|
|
333
|
+
${Oy}
|
|
361
334
|
|
|
362
|
-
|
|
363
|
-
|
|
335
|
+
svg {
|
|
336
|
+
width: 1rem;
|
|
364
337
|
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
left 0.3s ease-in,
|
|
376
|
-
right 0.3s ease-in;
|
|
338
|
+
`,Py=Kt.div``,Ny=Kt.div`
|
|
339
|
+
display: flex;
|
|
340
|
+
align-items: center;
|
|
341
|
+
`;function $y({currentApp:t,apps:n}){const r=e.jsx("svg",{viewBox:"0 0 32 32",children:e.jsxs("g",{children:[e.jsx("path",{d:"M10.246,4.228c0-0.547-0.443-0.991-0.99-0.991H3.914c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e.jsx("path",{d:"M19.453,4.228c0-0.547-0.443-0.991-0.991-0.991h-5.343c-0.546,0-0.99,0.443-0.99,0.991V9.57 c0,0.546,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.444,0.991-0.99V4.228z",fill:"currentColor"}),e.jsx("path",{d:"M28.868,4.228c0-0.547-0.443-0.991-0.99-0.991h-5.342c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e.jsx("path",{d:"M10.246,13.224c0-0.547-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e.jsx("path",{d:"M19.453,13.224c0-0.547-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.443-0.99,0.99v5.342 c0,0.549,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.441,0.991-0.99V13.224z",fill:"currentColor"}),e.jsx("path",{d:"M28.868,13.224c0-0.547-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e.jsx("path",{d:"M10.246,22.43c0-0.545-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"}),e.jsx("path",{d:"M19.453,22.43c0-0.545-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.445-0.99,0.99v5.344 c0,0.547,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.443,0.991-0.99V22.43z",fill:"currentColor"}),e.jsx("path",{d:"M28.868,22.43c0-0.545-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"})]})});return e.jsxs(uf,{children:[e.jsx(Ey,{size:"sm",startDecorator:r,children:t&&e.jsx(Ny,{children:t})}),n]})}const zy=Kt.div`
|
|
342
|
+
.MuiAutocomplete-root {
|
|
343
|
+
background-color: #f5f5f5;
|
|
344
|
+
border-radius: 8px;
|
|
345
|
+
padding: 6px var(--spacing--medium);
|
|
346
|
+
box-shadow: none;
|
|
347
|
+
border: 1px solid var(--color--grey-line);
|
|
377
348
|
}
|
|
378
349
|
|
|
379
|
-
.
|
|
380
|
-
|
|
350
|
+
.field-has-error & {
|
|
351
|
+
border: 1px solid var(--color--red);
|
|
381
352
|
}
|
|
382
|
-
|
|
383
|
-
.
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
353
|
+
`;function Ry(t){return e.jsx(nh,{...t})}const Dy=Kt.div`
|
|
354
|
+
.MuiAutocomplete-root {
|
|
355
|
+
background-color: #f5f5f5;
|
|
356
|
+
border-radius: 8px;
|
|
357
|
+
padding: 6px var(--spacing--small);
|
|
358
|
+
box-shadow: none;
|
|
359
|
+
border: 1px solid var(--color--grey-line);
|
|
387
360
|
}
|
|
388
361
|
|
|
389
|
-
|
|
390
|
-
|
|
362
|
+
.field-has-error & .MuiAutocomplete-root {
|
|
363
|
+
border: 1px solid var(--color--red);
|
|
391
364
|
}
|
|
365
|
+
`,Ty=Kt.button`
|
|
366
|
+
float: right;
|
|
367
|
+
border: none;
|
|
368
|
+
background: none;
|
|
369
|
+
color: var(--color--grey-light);
|
|
370
|
+
cursor: pointer;
|
|
371
|
+
margin-left: auto;
|
|
392
372
|
|
|
393
|
-
|
|
394
|
-
|
|
373
|
+
&:hover {
|
|
374
|
+
color: var(--color--grey);
|
|
395
375
|
}
|
|
376
|
+
`;const jy=qt`
|
|
377
|
+
position: relative;
|
|
378
|
+
display: inline-flex;
|
|
379
|
+
flex-flow: row nowrap;
|
|
380
|
+
gap: 0.4rem;
|
|
381
|
+
align-items: center;
|
|
382
|
+
justify-content: center;
|
|
383
|
+
border-radius: var(--border-radius--medium);
|
|
384
|
+
text-decoration: none;
|
|
385
|
+
white-space: nowrap;
|
|
386
|
+
`,My={medium:qt`
|
|
387
|
+
padding: var(--spacing--small) var(--spacing--medium);
|
|
388
|
+
font-size: var(--font-size--medium);
|
|
389
|
+
font-weight: 600;
|
|
390
|
+
`,small:qt`
|
|
391
|
+
padding: var(--spacing--xsmall) var(--spacing--small);
|
|
392
|
+
font-size: var(--font-size--small);
|
|
393
|
+
font-weight: 500;
|
|
394
|
+
`,xsmall:qt`
|
|
395
|
+
padding: var(--spacing--xxsmall) var(--spacing--xsmall);
|
|
396
|
+
font-size: var(--font-size--xsmall);
|
|
397
|
+
font-weight: 500;
|
|
398
|
+
`,xxsmall:qt`
|
|
399
|
+
padding: var(--spacing--xxxsmall) var(--spacing--xxsmall);
|
|
400
|
+
font-size: var(--font-size--xxsmall);
|
|
401
|
+
font-weight: 500;
|
|
402
|
+
`},Ay={default:qt`
|
|
403
|
+
background-color: transaprent;
|
|
404
|
+
color: var(--color--body);
|
|
405
|
+
border: 1px solid var(--color--grey-line);
|
|
406
|
+
`,danger:qt`
|
|
407
|
+
background-color: var(--color--white);
|
|
408
|
+
color: var(--color--danger);
|
|
409
|
+
border: 1px solid var(--color--danger-light);
|
|
410
|
+
`,warning:qt`
|
|
411
|
+
background-color: var(--color--white);
|
|
412
|
+
color: var(--color--warning);
|
|
413
|
+
border: 1px solid var(--color--warning-light);
|
|
414
|
+
`,grey:qt`
|
|
415
|
+
background-color: var(--color--grey-line);
|
|
416
|
+
color: var(--color--grey-dark);
|
|
417
|
+
border: 1px solid var(--color--grey-line);
|
|
418
|
+
`},Vy=Kt.div`
|
|
419
|
+
${jy}
|
|
396
420
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
421
|
+
${({size:e})=>My[e||"medium"]}
|
|
422
|
+
${({kind:e})=>Ay[e||"default"]}
|
|
423
|
+
`;const _y=Kt.div`
|
|
424
|
+
display: flex;
|
|
425
|
+
flex-flow: wrap;
|
|
426
|
+
justify-content: space-between;
|
|
427
|
+
width: 100%;
|
|
400
428
|
|
|
401
|
-
|
|
402
|
-
|
|
429
|
+
@media print {
|
|
430
|
+
display: none;
|
|
403
431
|
}
|
|
432
|
+
`,Ly=Kt.ul`
|
|
433
|
+
display: flex;
|
|
434
|
+
flex-flow: row;
|
|
435
|
+
width: 100%;
|
|
436
|
+
flex-wrap: wrap;
|
|
437
|
+
`,Fy=Kt.li`
|
|
438
|
+
display: inline-block;
|
|
439
|
+
color: var(--color--grey);
|
|
440
|
+
overflow: hidden;
|
|
441
|
+
text-overflow: ellipsis;
|
|
442
|
+
white-space: nowrap;
|
|
443
|
+
max-width: 400px;
|
|
404
444
|
|
|
405
|
-
|
|
406
|
-
|
|
445
|
+
&:not(:last-child) {
|
|
446
|
+
&:after {
|
|
447
|
+
content: "/";
|
|
448
|
+
margin-left: 5px;
|
|
449
|
+
margin-right: 5px;
|
|
450
|
+
color: var(--color--grey-borders);
|
|
451
|
+
}
|
|
452
|
+
a {
|
|
453
|
+
font-weight: 600;
|
|
454
|
+
}
|
|
407
455
|
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
display: flex;
|
|
415
|
-
align-items: center;
|
|
416
|
-
justify-content: center;
|
|
417
|
-
svg {
|
|
418
|
-
outline: 2px solid var(--color--white);
|
|
419
|
-
background-color: var(--color--white);
|
|
420
|
-
border-radius: 50%;
|
|
456
|
+
`;function By({children:t}){return e.jsx(_y,{children:e.jsx(Ly,{children:t})})}By.Item=Fy;const Hy=Kt.hr`
|
|
457
|
+
border: 0;
|
|
458
|
+
border-bottom: 1px solid var(--color--grey-line);
|
|
459
|
+
`,Wy=Kt(Ab)`
|
|
460
|
+
&.MuiDrawer-root {
|
|
461
|
+
--Drawer-horizontalSize: clamp(305px, 38%, 100%);
|
|
421
462
|
}
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
*
|
|
428
|
-
* This source code is licensed under the MIT license found in the
|
|
429
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
430
|
-
*
|
|
431
|
-
* @license MIT
|
|
432
|
-
*/
|
|
433
|
-
function Ls(e,t){return"function"==typeof e?e(t):e}function Fs(e,t){return n=>{t.setState((t=>({...t,[e]:Ls(n,t[e])})))}}function Bs(e){return e instanceof Function}function Hs(e,t,n){let r,o=[];return a=>{let i;n.key&&n.debug&&(i=Date.now());const l=e(a);if(!(l.length!==o.length||l.some(((e,t)=>o[t]!==e))))return r;let s;if(o=l,n.key&&n.debug&&(s=Date.now()),r=t(...l),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-s))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function Ws(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:"development"===process.env.NODE_ENV&&n,onChange:r}}const Gs="debugHeaders";function qs(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const Us={createTable:e=>{e.getHeaderGroups=Hs((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>{var a,i;const l=null!=(a=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[],s=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],c=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))));return Ys(t,[...l,...c,...s],e)}),Ws(e.options,Gs,"getHeaderGroups")),e.getCenterHeaderGroups=Hs((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>(n=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),Ys(t,n,e,"center"))),Ws(e.options,Gs,"getCenterHeaderGroups")),e.getLeftHeaderGroups=Hs((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,r)=>{var o;const a=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[];return Ys(t,a,e,"left")}),Ws(e.options,Gs,"getLeftHeaderGroups")),e.getRightHeaderGroups=Hs((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,r)=>{var o;const a=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[];return Ys(t,a,e,"right")}),Ws(e.options,Gs,"getRightHeaderGroups")),e.getFooterGroups=Hs((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),Ws(e.options,Gs,"getFooterGroups")),e.getLeftFooterGroups=Hs((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),Ws(e.options,Gs,"getLeftFooterGroups")),e.getCenterFooterGroups=Hs((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),Ws(e.options,Gs,"getCenterFooterGroups")),e.getRightFooterGroups=Hs((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),Ws(e.options,Gs,"getRightFooterGroups")),e.getFlatHeaders=Hs((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),Ws(e.options,Gs,"getFlatHeaders")),e.getLeftFlatHeaders=Hs((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),Ws(e.options,Gs,"getLeftFlatHeaders")),e.getCenterFlatHeaders=Hs((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),Ws(e.options,Gs,"getCenterFlatHeaders")),e.getRightFlatHeaders=Hs((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),Ws(e.options,Gs,"getRightFlatHeaders")),e.getCenterLeafHeaders=Hs((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),Ws(e.options,Gs,"getCenterLeafHeaders")),e.getLeftLeafHeaders=Hs((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),Ws(e.options,Gs,"getLeftLeafHeaders")),e.getRightLeafHeaders=Hs((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),Ws(e.options,Gs,"getRightLeafHeaders")),e.getLeafHeaders=Hs((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var r,o,a,i,l,s;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(a=null==(i=t[0])?void 0:i.headers)?a:[],...null!=(l=null==(s=n[0])?void 0:s.headers)?l:[]].map((e=>e.getLeafHeaders())).flat()}),Ws(e.options,Gs,"getLeafHeaders"))}};function Ys(e,t,n,r){var o,a;let i=0;const l=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&l(e.columns,t+1)}),0)};l(e);let s=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},a=[];e.forEach((e=>{const i=[...a].reverse()[0];let l,s=!1;if(e.column.depth===o.depth&&e.column.parent?l=e.column.parent:(l=e.column,s=!0),i&&(null==i?void 0:i.column)===l)i.subHeaders.push(e);else{const o=qs(n,l,{id:[r,t,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${a.filter((e=>e.column===l)).length}`:void 0,depth:t,index:a.length});o.subHeaders.push(e),a.push(o)}o.headers.push(e),e.headerGroup=o})),s.push(o),t>0&&c(a,t-1)},u=t.map(((e,t)=>qs(n,e,{depth:i,index:t})));c(u,i-1),s.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)}))):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(o=null==(a=s[0])?void 0:a.headers)?o:[]),s}const Ks=(e,t,n,r,o,a,i)=>{let l={id:t,index:r,original:n,depth:o,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(l._valuesCache.hasOwnProperty(t))return l._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(l._valuesCache[t]=n.accessorFn(l.original,r),l._valuesCache[t]):void 0},getUniqueValues:t=>{if(l._uniqueValuesCache.hasOwnProperty(t))return l._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(l._uniqueValuesCache[t]=n.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[t]):(l._uniqueValuesCache[t]=[l.getValue(t)],l._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=l.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)}))};return r(e),n}(l.subRows,(e=>e.subRows)),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let e=[],t=l;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Hs((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:Hs((()=>[e,n,t,o]),((e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue})),Ws(e.options,"debugCells","cell.getContext"))};return e._features.forEach((r=>{null==r.createCell||r.createCell(o,n,t,e)}),{}),o}(e,l,t,t.id)))),Ws(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:Hs((()=>[l.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),Ws(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(l,e)}return l},Js={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Xs=(e,t,n)=>{var r;const o=n.toLowerCase();return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(o))};Xs.autoRemove=e=>lc(e);const Qs=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};Qs.autoRemove=e=>lc(e);const Zs=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};Zs.autoRemove=e=>lc(e);const ec=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};ec.autoRemove=e=>lc(e)||!(null!=e&&e.length);const tc=(e,t,n)=>!n.some((n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))}));tc.autoRemove=e=>lc(e)||!(null!=e&&e.length);const nc=(e,t,n)=>n.some((n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)}));nc.autoRemove=e=>lc(e)||!(null!=e&&e.length);const rc=(e,t,n)=>e.getValue(t)===n;rc.autoRemove=e=>lc(e);const oc=(e,t,n)=>e.getValue(t)==n;oc.autoRemove=e=>lc(e);const ac=(e,t,n)=>{let[r,o]=n;const a=e.getValue(t);return a>=r&&a<=o};ac.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,a=null===t||Number.isNaN(r)?-1/0:r,i=null===n||Number.isNaN(o)?1/0:o;if(a>i){const e=a;a=i,i=e}return[a,i]},ac.autoRemove=e=>lc(e)||lc(e[0])&&lc(e[1]);const ic={includesString:Xs,includesStringSensitive:Qs,equalsString:Zs,arrIncludes:ec,arrIncludesAll:tc,arrIncludesSome:nc,equals:rc,weakEquals:oc,inNumberRange:ac};function lc(e){return null==e||""===e}const sc={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Fs("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?ic.includesString:"number"==typeof r?ic.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?ic.equals:Array.isArray(r)?ic.arrIncludes:ic.weakEquals},e.getFilterFn=()=>{var n,r;return Bs(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:ic[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find((t=>t.id===e.id)),a=Ls(n,o?o.value:void 0);var i;if(cc(r,a,e))return null!=(i=null==t?void 0:t.filter((t=>t.id!==e.id)))?i:[];const l={id:e.id,value:a};var s;return o?null!=(s=null==t?void 0:t.map((t=>t.id===e.id?l:t)))?s:[]:null!=t&&t.length?[...t,l]:[l]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var r;return null==(r=Ls(t,e))?void 0:r.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(cc(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function cc(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const uc={sum:(e,t,n)=>n.reduce(((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)}),0),min:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)})),r},max:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)})),r},extent:(e,t,n)=>{let r,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))})),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach((t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)})),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(!function(e){return Array.isArray(e)&&e.every((e=>"number"==typeof e))}(n))return;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort(((e,t)=>e-t));return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},dc={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Fs("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?uc.sum:"[object Date]"===Object.prototype.toString.call(r)?uc.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Bs(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:uc[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const pc={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Fs("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Hs((e=>[yc(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),Ws(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return(null==(r=yc(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=yc(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=Hs((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex((t=>t.id===e));r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter((e=>!t.includes(e.id)));if("remove"===n)return r;const o=t.map((t=>e.find((e=>e.id===t)))).filter(Boolean);return[...o,...r]}(o,t,n)}),Ws(e.options,"debugTable","_getOrderColumnsFn"))}},fc={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Fs("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,a,i,l,s;return"right"===n?{left:(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=r&&r.includes(e)))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter((e=>!(null!=r&&r.includes(e)))),...r]}:"left"===n?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter((e=>!(null!=r&&r.includes(e)))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=r&&r.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=r&&r.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=r&&r.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:r,right:o}=t.getState().columnPinning,a=n.some((e=>null==r?void 0:r.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return a?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Hs((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.column.id)))}),Ws(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=Hs((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>{const n=(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})));return n}),Ws(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=Hs((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>{const n=(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})));return n}),Ws(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,a;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(a=r.right)?void 0:a.length))},e.getLeftLeafColumns=Hs((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),Ws(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=Hs((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),Ws(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=Hs((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.id)))}),Ws(e.options,"debugColumns","getCenterLeafColumns"))}},mc={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},gc={getDefaultColumnDef:()=>mc,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Fs("columnSizing",e),onColumnSizingInfoChange:Fs("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const a=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:mc.minSize,null!=(r=null!=a?a:e.columnDef.size)?r:mc.size),null!=(o=e.columnDef.maxSize)?o:mc.maxSize)},e.getStart=Hs((e=>[e,yc(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),Ws(t.options,"debugColumns","getStart")),e.getAfter=Hs((e=>[e,yc(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),Ws(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...r}=t;return r}))},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return a=>{if(!r||!o)return;if(null==a.persist||a.persist(),vc(a)&&a.touches&&a.touches.length>1)return;const i=e.getSize(),l=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[r.id,r.getSize()]],s=vc(a)?Math.round(a.touches[0].clientX):a.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var r,o;const a="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*a,l=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*l,0))/100})),{...e,deltaOffset:i,deltaPercentage:l}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...c}))))},d=e=>u("move",e),p=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},f=n||"undefined"!=typeof document?document:null,m={moveHandler:e=>d(e.clientX),upHandler:e=>{null==f||f.removeEventListener("mousemove",m.moveHandler),null==f||f.removeEventListener("mouseup",m.upHandler),p(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==f||f.removeEventListener("touchmove",g.moveHandler),null==f||f.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),p(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"==typeof hc)return hc;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return hc=e,hc}()&&{passive:!1};vc(a)?(null==f||f.addEventListener("touchmove",g.moveHandler,h),null==f||f.addEventListener("touchend",g.upHandler,h)):(null==f||f.addEventListener("mousemove",m.moveHandler,h),null==f||f.addEventListener("mouseup",m.upHandler,h)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:r.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let hc=null;function vc(e){return"touchstart"===e.type}const bc={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Fs("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,r;const o=e.columns;return null==(n=o.length?o.some((e=>e.getIsVisible())):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Hs((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),Ws(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=Hs((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),Ws(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(t,n)=>Hs((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),Ws(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function yc(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const xc={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Fs("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,a;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(a=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||a)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>ic.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Bs(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:ic[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},wc={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Fs("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((r=>{var o;const a=!0===r||!(null==r||!r[e.id]);let i={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach((e=>{i[e]=!0})):i=r,n=null!=(o=n)?o:!a,!a&&n)return{...i,[e.id]:!0};if(a&&!n){const{[e.id]:t,...n}=i;return n}return r}))},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Sc={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Fs("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>Ls(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let r=Ls(t,n.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}}))},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,Ls(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var r;let o=Ls(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}})),e.getPageOptions=Hs((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),Ws(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},Cc={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:Fs("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const a=r?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],i=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],l=new Set([...i,e.id,...a]);t.setRowPinning((e=>{var t,r,o,a,i,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:[...(null!=(a=null==e?void 0:e.bottom)?a:[]).filter((e=>!(null!=l&&l.has(e)))),...Array.from(l)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter((e=>!(null!=l&&l.has(e)))),...Array.from(l)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=l&&l.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=l&&l.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,a=n.some((e=>null==r?void 0:r.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return a?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const a=null==(n=t._getPinnedRows(o))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(r=null==a?void 0:a.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,a;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(a=r.bottom)?void 0:a.length))},e._getPinnedRows=Hs((t=>[e.getRowModel().rows,e.getState().rowPinning[t],t]),((t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:r})))}),Ws(e.options,"debugRows","_getPinnedRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=Hs((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!r.has(e.id)))}),Ws(e.options,"debugRows","getCenterRows"))}},kc={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Fs("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach((e=>{e.getCanSelect()&&(r[e.id]=!0)})):o.forEach((e=>{delete r[e.id]})),r}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{Oc(o,t.id,r,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Hs((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?Ic(e,n):{rows:[],flatRows:[],rowsById:{}}),Ws(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=Hs((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?Ic(e,n):{rows:[],flatRows:[],rowsById:{}}),Ws(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=Hs((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?Ic(e,n):{rows:[],flatRows:[],rowsById:{}}),Ws(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some((e=>!n[e.id]))&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection((a=>{var i;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return a;const l={...a};return Oc(l,e.id,n,null==(i=null==r?void 0:r.selectChildren)||i,t),l}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Ec(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Pc(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Pc(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},Oc=(e,t,n,r,o)=>{var a;const i=o.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(a=i.subRows)&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>Oc(e,t.id,n,r,o)))};function Ic(e,t){const n=e.getState().rowSelection,r=[],o={},a=function(e,t){return e.map((e=>{var t;const i=Ec(e,n);if(i&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:a(e.subRows)}),i)return e})).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:o}}function Ec(e,t){var n;return null!=(n=t[e.id])&&n}function Pc(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,a=!1;return e.subRows.forEach((e=>{if((!a||o)&&(e.getCanSelect()&&(Ec(e,t)?a=!0:o=!1),e.subRows&&e.subRows.length)){const n=Pc(e,t);"all"===n?a=!0:"some"===n?(a=!0,o=!1):o=!1}})),o?"all":!!a&&"some"}const Nc=/([0-9]+)/gm;function $c(e,t){return e===t?0:e>t?1:-1}function zc(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Rc(e,t){const n=e.split(Nc).filter(Boolean),r=t.split(Nc).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),a=parseInt(t,10),i=[o,a].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>a)return 1;if(a>o)return-1}}return n.length-r.length}const Dc={alphanumeric:(e,t,n)=>Rc(zc(e.getValue(n)).toLowerCase(),zc(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Rc(zc(e.getValue(n)),zc(t.getValue(n))),text:(e,t,n)=>$c(zc(e.getValue(n)).toLowerCase(),zc(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>$c(zc(e.getValue(n)),zc(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>$c(e.getValue(n),t.getValue(n))},Tc={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Fs("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return Dc.datetime;if("string"==typeof n&&(r=!0,n.split(Nc).length>1))return Dc.alphanumeric}return r?Dc.text:Dc.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Bs(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:Dc[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),a=null!=n;t.setSorting((i=>{const l=null==i?void 0:i.find((t=>t.id===e.id)),s=null==i?void 0:i.findIndex((t=>t.id===e.id));let c,u=[],d=a?n:"desc"===o;var p;(c=null!=i&&i.length&&e.getCanMultiSort()&&r?l?"toggle":"add":null!=i&&i.length&&s!==i.length-1?"replace":l?"toggle":"replace","toggle"===c&&(a||o||(c="remove")),"add"===c)?(u=[...i,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))):u="toggle"===c?i.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===c?i.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return u}))},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const a=e.getFirstSortDir(),i=e.getIsSorted();return i?!!(i===a||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):a},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},jc=[Us,bc,pc,fc,Js,sc,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},xc,Tc,dc,wc,Sc,Cc,kc,gc];function Mc(e){var t,n;"production"!==process.env.NODE_ENV&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...jc,...null!=(t=e._features)?t:[]];let o={_features:r};const a=o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o))),{});let i={...null!=(n=e.initialState)?n:{}};o._features.forEach((e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i}));const l=[];let s=!1;const c={_features:r,options:{...a,...e},initialState:i,_queue:e=>{l.push(e),s||(s=!0,Promise.resolve().then((()=>{for(;l.length;)l.shift()();s=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=Ls(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(a,e):{...a,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n)){if("production"!==process.env.NODE_ENV)throw new Error(`getRow could not find row with ID: ${e}`);throw new Error}return n},_getDefaultColumnDef:Hs((()=>[o.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),Ws(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:Hs((()=>[o._getColumnDefs()]),(e=>{const t=function(e,n,r){return void 0===r&&(r=0),e.map((e=>{const a=function(e,t,n,r){var o,a;const i={...e._getDefaultColumnDef(),...t},l=i.accessorKey;let s,c=null!=(o=null!=(a=i.id)?a:l?l.replace(".","_"):void 0)?o:"string"==typeof i.header?i.header:void 0;if(i.accessorFn?s=i.accessorFn:l&&(s=l.includes(".")?e=>{let t=e;for(const e of l.split(".")){var n;t=null==(n=t)?void 0:n[e],"production"!==process.env.NODE_ENV&&void 0===t&&console.warn(`"${e}" in deeply nested key "${l}" returned undefined.`)}return t}:e=>e[i.accessorKey]),!c){if("production"!==process.env.NODE_ENV)throw new Error(i.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header");throw new Error}let u={id:`${String(c)}`,accessorFn:s,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:Hs((()=>[!0]),(()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),Ws(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:Hs((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[u]}),Ws(e.options,"debugColumns","column.getLeafColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(o,e,r,n),i=e;return a.columns=i.columns?t(i.columns,a,r+1):[],a}))};return t(e)}),Ws(e,"debugColumns","getAllColumns")),getAllFlatColumns:Hs((()=>[o.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),Ws(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:Hs((()=>[o.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),Ws(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:Hs((()=>[o.getAllColumns(),o._getOrderColumnsFn()]),((e,t)=>{let n=e.flatMap((e=>e.getLeafColumns()));return t(n)}),Ws(e,"debugColumns","getAllLeafColumns")),getColumn:e=>{const t=o._getAllFlatColumnsById()[e];return"production"===process.env.NODE_ENV||t||console.error(`[Table] Column with id '${e}' does not exist.`),t}};Object.assign(o,c);for(let e=0;e<o._features.length;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}
|
|
434
|
-
/**
|
|
435
|
-
* react-table
|
|
436
|
-
*
|
|
437
|
-
* Copyright (c) TanStack
|
|
438
|
-
*
|
|
439
|
-
* This source code is licensed under the MIT license found in the
|
|
440
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
441
|
-
*
|
|
442
|
-
* @license MIT
|
|
443
|
-
*/
|
|
444
|
-
function Ac(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?o.createElement(e,t):e:null;var n}function Vc(e,n){const[r,o]=t.useState((()=>{if("undefined"==typeof window)return n;try{const t=window.localStorage.getItem(e);return t?JSON.parse(t):n}catch(e){return console.log(e),n}}));return[r,t=>{try{const n=t instanceof Function?t(r):t;o(n),"undefined"!=typeof window&&window.localStorage.setItem(e,JSON.stringify(n))}catch(e){console.log(e)}}]}const _c=Kt.div`
|
|
445
|
-
overflow-x: auto;
|
|
446
|
-
width: 100%;
|
|
447
|
-
max-height: 90vh;
|
|
448
|
-
`,Lc=Kt.table`
|
|
449
|
-
border-collapse: collapse;
|
|
450
|
-
position: relative;
|
|
463
|
+
`,Gy=Kt.div`
|
|
464
|
+
min-height: 100%;
|
|
465
|
+
padding-left: 60px;
|
|
466
|
+
padding-right: 60px;
|
|
467
|
+
padding-top: 40px;
|
|
451
468
|
|
|
452
|
-
|
|
453
|
-
|
|
469
|
+
@media only screen and (max-width: 600px) {
|
|
470
|
+
padding-left: 30px;
|
|
471
|
+
padding-right: 30px;
|
|
454
472
|
}
|
|
455
473
|
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
table-layout: fixed;
|
|
461
|
-
background-color: white;
|
|
474
|
+
h2 {
|
|
475
|
+
font-size: var(--font-size--xlarge);
|
|
476
|
+
font-weight: 600;
|
|
477
|
+
color: var(--color--grey-dark);
|
|
462
478
|
}
|
|
479
|
+
`,qy=Jt`
|
|
480
|
+
from {
|
|
481
|
+
transform: translate(-100%, 0);
|
|
482
|
+
}
|
|
463
483
|
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
484
|
+
to {
|
|
485
|
+
transform: none;
|
|
486
|
+
}
|
|
487
|
+
`,Uy=Jt`
|
|
488
|
+
from {
|
|
489
|
+
transform: none;
|
|
490
|
+
}
|
|
470
491
|
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
position: relative;
|
|
492
|
+
to {
|
|
493
|
+
transform: translate(-100%, 0);
|
|
494
|
+
}
|
|
495
|
+
`,Yy=Jt`
|
|
496
|
+
from {
|
|
497
|
+
transform: translate(100%, 0);
|
|
498
|
+
}
|
|
479
499
|
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
cursor: pointer;
|
|
488
|
-
padding: 0;
|
|
489
|
-
text-align: left;
|
|
500
|
+
to {
|
|
501
|
+
transform: none;
|
|
502
|
+
}
|
|
503
|
+
`,Ky=Jt`
|
|
504
|
+
from {
|
|
505
|
+
transform: none;
|
|
506
|
+
}
|
|
490
507
|
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
508
|
+
to {
|
|
509
|
+
transform: translate(100%, 0);
|
|
510
|
+
}
|
|
511
|
+
`,Jy=Jt`
|
|
512
|
+
from {
|
|
513
|
+
transform: translate(0, 100%);
|
|
514
|
+
}
|
|
495
515
|
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
516
|
+
to {
|
|
517
|
+
transform: none;
|
|
518
|
+
}
|
|
519
|
+
`,Xy=Jt`
|
|
520
|
+
from {
|
|
521
|
+
transform: none;
|
|
522
|
+
}
|
|
500
523
|
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
}
|
|
524
|
+
to {
|
|
525
|
+
transform: translate(0, 100%);
|
|
504
526
|
}
|
|
527
|
+
`,Qy=Kt.div`
|
|
528
|
+
position: fixed;
|
|
529
|
+
top: 0;
|
|
530
|
+
right: 0;
|
|
531
|
+
bottom: 0;
|
|
532
|
+
left: 0;
|
|
533
|
+
z-index: 1001;
|
|
534
|
+
overflow: hidden;
|
|
535
|
+
|
|
536
|
+
&.left {
|
|
537
|
+
animation: ${qy} 0.2s ease;
|
|
505
538
|
}
|
|
506
539
|
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
540
|
+
&.left.closing {
|
|
541
|
+
animation: ${Uy} 0.2s ease;
|
|
542
|
+
transform: translate(-100%, 0);
|
|
510
543
|
}
|
|
511
544
|
|
|
512
|
-
|
|
513
|
-
|
|
545
|
+
&.right {
|
|
546
|
+
animation: ${Yy} 0.2s ease;
|
|
514
547
|
}
|
|
515
548
|
|
|
516
|
-
|
|
517
|
-
|
|
549
|
+
&.right.closing {
|
|
550
|
+
animation: ${Ky} 0.2s ease;
|
|
551
|
+
transform: translate(100%, 0);
|
|
518
552
|
}
|
|
519
553
|
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
line-height: 1.5;
|
|
524
|
-
color: var(--color--grey-dark);
|
|
525
|
-
text-align: left;
|
|
526
|
-
padding: var(--spacing--small);
|
|
527
|
-
display: table-cell;
|
|
528
|
-
vertical-align: middle;
|
|
529
|
-
overflow: hidden;
|
|
530
|
-
text-overflow: ellipsis;
|
|
554
|
+
&.center {
|
|
555
|
+
animation: ${Jy} 0.2s ease;
|
|
556
|
+
}
|
|
531
557
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
558
|
+
&.center.closing {
|
|
559
|
+
animation: ${Xy} 0.2s ease;
|
|
560
|
+
transform: translate(0, 100%);
|
|
535
561
|
}
|
|
562
|
+
`,Zy=Kt.div`
|
|
563
|
+
z-index: 1010;
|
|
564
|
+
height: 100vh;
|
|
565
|
+
background-color: #fff;
|
|
566
|
+
display: flex;
|
|
567
|
+
flex-direction: column;
|
|
568
|
+
overflow: auto;
|
|
569
|
+
width: 100%;
|
|
536
570
|
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
th:last-child,
|
|
540
|
-
td:last-child {
|
|
541
|
-
padding-left: var(--spacing--medium);
|
|
571
|
+
${Qy}.left & {
|
|
572
|
+
margin-right: auto;
|
|
542
573
|
}
|
|
543
574
|
|
|
544
|
-
.
|
|
545
|
-
|
|
575
|
+
${Qy}.right & {
|
|
576
|
+
margin-left: auto;
|
|
546
577
|
}
|
|
547
578
|
|
|
548
|
-
.
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
display: flex;
|
|
552
|
-
gap: var(--spacing--small);
|
|
553
|
-
align-items: center;
|
|
554
|
-
}
|
|
579
|
+
${Qy}.center & {
|
|
580
|
+
margin: auto;
|
|
581
|
+
height: 95vh;
|
|
555
582
|
}
|
|
583
|
+
`,ex=Kt.div`
|
|
584
|
+
display: flex;
|
|
556
585
|
|
|
557
|
-
.
|
|
558
|
-
|
|
559
|
-
flex-direction: column;
|
|
586
|
+
${Qy}.left & {
|
|
587
|
+
flex-flow: row-reverse nowrap;
|
|
560
588
|
}
|
|
561
589
|
|
|
562
|
-
.
|
|
563
|
-
|
|
590
|
+
${Qy}.right & {
|
|
591
|
+
flex-flow: row nowrap;
|
|
564
592
|
}
|
|
565
593
|
|
|
566
|
-
.
|
|
567
|
-
|
|
568
|
-
right: 0;
|
|
569
|
-
top: 0;
|
|
570
|
-
height: 100%;
|
|
571
|
-
width: 3px;
|
|
572
|
-
background: var(--color--grey-line);
|
|
573
|
-
cursor: col-resize;
|
|
574
|
-
user-select: none;
|
|
575
|
-
touch-action: none;
|
|
576
|
-
z-index: 1;
|
|
594
|
+
${Qy}.center & {
|
|
595
|
+
flex-flow: row nowrap;
|
|
577
596
|
}
|
|
597
|
+
`,tx=Kt.div`
|
|
598
|
+
display: flex;
|
|
599
|
+
flex-flow: row nowrap;
|
|
600
|
+
align-items: center;
|
|
601
|
+
gap: 20px;
|
|
602
|
+
padding: 15px 20px;
|
|
603
|
+
color: var(--color--indigo);
|
|
604
|
+
font-size: 15px;
|
|
605
|
+
font-weight: 400;
|
|
606
|
+
margin-top: 0;
|
|
578
607
|
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
transition: opacity 0.2s ease-in-out;
|
|
608
|
+
svg {
|
|
609
|
+
height: 18px;
|
|
610
|
+
flex-shrink: 0;
|
|
583
611
|
}
|
|
584
612
|
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
613
|
+
p {
|
|
614
|
+
margin: 0;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
strong {
|
|
618
|
+
font-weight: 700;
|
|
619
|
+
}
|
|
620
|
+
`,nx=Jt`
|
|
621
|
+
from {
|
|
622
|
+
margin-top: -50px;
|
|
588
623
|
}
|
|
589
624
|
|
|
590
|
-
|
|
591
|
-
|
|
625
|
+
to {
|
|
626
|
+
margin-top: 0
|
|
592
627
|
}
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
gap: var(--spacing--medium);
|
|
628
|
+
`,rx=Kt(tx)`
|
|
629
|
+
background-color: #ffdadd;
|
|
630
|
+
animation: ${nx} 0.5s ease;
|
|
597
631
|
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
display: inline-flex;
|
|
601
|
-
align-items: center;
|
|
602
|
-
justify-content: center;
|
|
603
|
-
padding: var(--spacing--small);
|
|
604
|
-
line-height: 1.5;
|
|
605
|
-
text-decoration: none;
|
|
606
|
-
cursor: pointer;
|
|
607
|
-
color: var(--color--grey-dark);
|
|
608
|
-
border: none;
|
|
609
|
-
background-color: var(--color--white);
|
|
610
|
-
font-size: var(--font-size--small);
|
|
611
|
-
font-weight: var(--font-weight--bold);
|
|
612
|
-
transition: background-color 0.2s ease-in-out;
|
|
613
|
-
border-radius: 50%;
|
|
614
|
-
width: 2rem;
|
|
615
|
-
height: 2rem;
|
|
616
|
-
|
|
617
|
-
&:hover {
|
|
618
|
-
background-color: var(--color--grey-lightest);
|
|
619
|
-
}
|
|
620
|
-
&[disabled] {
|
|
621
|
-
color: var(--color--grey-light);
|
|
622
|
-
cursor: not-allowed;
|
|
623
|
-
pointer-events: none;
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
`;const Bc=Kt.div`
|
|
627
|
-
background-color: transparent;
|
|
628
|
-
border-bottom: 2px solid transparent;
|
|
629
|
-
color: var(--color--grey-dark);
|
|
630
|
-
font-weight: 500;
|
|
631
|
-
transition: border-bottom 0.2s ease-in-out;
|
|
632
|
-
margin-top: var(--spacing--medium);
|
|
633
|
-
margin-bottom: var(--spacing--medium);
|
|
634
|
-
`,Hc=Kt.div`
|
|
635
|
-
display: flex;
|
|
636
|
-
border-bottom: 3px solid var(--color--grey-borders);
|
|
637
|
-
@media print {
|
|
638
|
-
display: none;
|
|
639
|
-
}
|
|
640
|
-
`,Wc=Kt.div`
|
|
641
|
-
display: flex;
|
|
642
|
-
width: 100%;
|
|
643
|
-
overflow: auto;
|
|
644
|
-
margin-bottom: -3px;
|
|
645
|
-
|
|
646
|
-
&::-webkit-scrollbar {
|
|
647
|
-
display: none;
|
|
632
|
+
svg {
|
|
633
|
+
color: var(--color--red);
|
|
648
634
|
}
|
|
649
|
-
`,
|
|
635
|
+
`,ox=Kt.div`
|
|
650
636
|
position: relative;
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
border-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
&[aria-selected="true"] {
|
|
673
|
-
border-bottom: 3px solid var(--color--primary);
|
|
674
|
-
color: var(--color--black);
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
@media print {
|
|
678
|
-
display: none;
|
|
679
|
-
}
|
|
680
|
-
`,qc=Kt.button`
|
|
681
|
-
background: transparent;
|
|
682
|
-
border: 0;
|
|
683
|
-
cursor: pointer;
|
|
684
|
-
transition: color 0.2s ease-in-out;
|
|
685
|
-
|
|
686
|
-
i {
|
|
687
|
-
color: var(--color--grey-borders);
|
|
688
|
-
&:hover,
|
|
689
|
-
&:focus,
|
|
690
|
-
&:active,
|
|
691
|
-
&:focus {
|
|
692
|
-
color: var(--color--grey);
|
|
637
|
+
`;let ax=1;const ix=t.forwardRef((({children:n,side:r,size:o="md",open:a=!1,closeBlocked:i,onClose:l=(()=>{}),onCloseCompleted:s=(()=>{}),closeRequested:c=!1,...u},d)=>{const p=t.useRef(null);p.current||(p.current=`overlay-${ax}`,ax+=1);const f=t.useRef(null),[m,g]=t.useState(!1);t.useEffect((()=>{if(m){const e=setTimeout(s,200);return()=>{clearTimeout(e)}}return()=>{}})),t.useEffect((()=>{c&&g(!0)}),[c]),p.current||(p.current=`modal-${ax}`,ax+=1),t.useEffect((()=>{document.body.style.overflow=a?"hidden":"auto"}),[a]),t.useEffect((()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),l())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[l]);const h=a?"open":"closing";return e.jsx(Wy,{open:a&&!m,anchor:r,className:`${r} ${h}`,size:o,...u,children:e.jsx(ex,{children:e.jsxs(Zy,{ref:f,children:[i&&e.jsxs(rx,{role:"alert","aria-live":"assertive",children:[e.jsx(Oi,{name:["fas","exclamation-triangle"]}),e.jsxs("p",{children:[e.jsx("strong",{children:"You have unsaved changes."})," Please save or cancel before closing."]})]}),e.jsx(ox,{ref:d,children:e.jsx(Gy,{children:n})})]})})})}));const lx=Kt(kv)`
|
|
638
|
+
&& .MuiInput-input {
|
|
639
|
+
background-color: var(--color--grey-hover);
|
|
640
|
+
padding: var(--spacing--small) var(--spacing--small);
|
|
641
|
+
border-color: var(--color--grey-line);
|
|
642
|
+
border-radius: var(--border-radius--medium);
|
|
643
|
+
& fieldset {
|
|
644
|
+
top: 0;
|
|
645
|
+
border-color: var(--color--grey-line);
|
|
646
|
+
& legend span {
|
|
647
|
+
display: none;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
&:hover fieldset {
|
|
651
|
+
border-color: var(--color--grey-light);
|
|
652
|
+
}
|
|
653
|
+
&.Mui-focused fieldset {
|
|
654
|
+
border-color: var(--color--primary);
|
|
655
|
+
}
|
|
656
|
+
& .MuiInputBase-input {
|
|
657
|
+
padding: 0;
|
|
693
658
|
}
|
|
694
659
|
}
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
margin-top: var(--spacing--medium);
|
|
705
|
-
background-color: var(--color--white);
|
|
706
|
-
padding: var(--spacing--large);
|
|
707
|
-
border-radius: var(--border-radius--medium);
|
|
708
|
-
box-shadow: var(--box-shadow--medium);
|
|
709
|
-
text-align: left;
|
|
710
|
-
font-weight: 400;
|
|
711
|
-
|
|
712
|
-
@media print {
|
|
660
|
+
& .MuiInputLabel-root {
|
|
661
|
+
color: var(--color--grey);
|
|
662
|
+
font-weight: var(--font-weight--bold);
|
|
663
|
+
font-size: var(--font-size--small);
|
|
664
|
+
position: relative;
|
|
665
|
+
margin-bottom: 0.2rem;
|
|
666
|
+
top: 0;
|
|
667
|
+
left: 0;
|
|
668
|
+
background-color: transparent;
|
|
713
669
|
padding: 0;
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
`,Yc=Kt.section`
|
|
718
|
-
display: ${({$show:e})=>e?"flex":"none"};
|
|
719
|
-
flex-direction: column;
|
|
720
|
-
|
|
721
|
-
// display on print
|
|
722
|
-
@media print {
|
|
723
|
-
display: flex;
|
|
724
|
-
page-break-after: always;
|
|
725
|
-
&:last-child {
|
|
726
|
-
page-break-after: avoid;
|
|
670
|
+
transform: translate(0, 0) scale(1);
|
|
671
|
+
&.MuiInputLabel-shrink {
|
|
672
|
+
color: var(--color--grey);
|
|
727
673
|
}
|
|
728
674
|
}
|
|
729
|
-
`;
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
675
|
+
`;function sx(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}sx('/* http://meyerweb.com/eric/tools/css/reset/\n v2.0 | 20110126\n License: none (public domain)\n*/\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\nsection {\n display: block;\n}\nbody {\n line-height: 1;\n}\nol,\nul {\n list-style: none;\n}\nblockquote,\nq {\n quotes: none;\n}\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: "";\n content: none;\n}\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n');const cx=$p({colorSchemes:{light:{palette:{primary:{50:"#dbd9f8",100:"#b7b2f1",200:"#a69fee",300:"#8279e7",400:"#7065e4",500:"#4c3fdd",600:"#3d32b1",700:"#2e2685",800:"#1e1958",900:"#0f0d2c"},neutral:{50:"#fafbfd",100:"#f4f7fb",200:"#dbdde1",300:"#aaacaf",400:"#929496",500:"#7a7b7d",600:"#616264",700:"#494a4b",800:"#313132",900:"#181919"}}}},components:{}});sx(':root {\n --color--black: #000000;\n --color--grey-dark: #262626;\n --color--grey: #5c5c5c;\n --color--grey-light: #a8aab7;\n --color--grey-lighter: #f5f5f5;\n --color--grey-lightest: #f3f6fa;\n --color--grey-borders: #d7d7d7;\n --color--grey-line: #e0e0e0;\n --color--grey-hover: #f9f9f9;\n --color--white: #fff;\n\n --color--teal: #007d7e;\n --color--teal-light: #00b0b1;\n --color--teal-tint: #f2fcfc;\n\n --color--red: #d9303e;\n --color--red-dark: #c02330;\n --color--red-light: #f7dbdd;\n --color--red-tint: #ffdddf;\n\n --color--amber: #e9b04d;\n --color--amber-tint: #faecd5;\n --color--orange: #f5a623;\n --color--orange-dark: #eb6f00;\n --color--orange-light: #f2c06f;\n\n --color--green: #29c889;\n --color--green-dark: #1c874c;\n --color--green-light: #afe7d0;\n --color--indigo: #2e1f5e;\n --color--lemon: #ffe60b;\n --color--focus-outline: #fcc726;\n\n --color--dark-blue: #192a3c;\n\n --color--primary: #4c3fdd;\n --color--primary-light: #4c3fdddb;\n --color--primary-verylight: #a8a0f7;\n --color--body: var(--color--dark-blue);\n\n --color--danger: var(--color--red);\n --color--danger-light: var(--color--red-light);\n --color--warning: var(--color--orange);\n --color--warning-light: var(--color--orange-light);\n --color--success: var(--color--green);\n\n --color--dark-blue: #192a3c;\n\n --color--debug: #663399;\n --color--debug-light: #663399db;\n --color--debug-very-light: #6633991a;\n\n /* Fonts */\n --font-family--sans-serif: system-ui, -apple-system, BlinkMacSystemFont,\n "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Oxygen, Cantarell, sans-serif;\n\n --font-family--monospace: source-code-pro, Menlo, Monaco, Consolas,\n "Courier New", monospace;\n\n /* Spacing */\n --spacing--xxxsmall: 0.1rem;\n --spacing--xxsmall: 0.2rem;\n --spacing--xsmall: 0.3rem;\n --spacing--small: 0.5rem;\n --spacing--medium: 1rem;\n --spacing--large: 2rem;\n --spacing--xlarge: 4rem;\n\n /* Font sizes */\n --font-size--xxsmall: 0.6rem;\n --font-size--xsmall: 0.75rem;\n --font-size--small: 0.875rem;\n --font-size--medium: 1rem;\n --font-size--large: 1.25rem;\n --font-size--xlarge: 1.5rem;\n --font-size--xxlarge: 2rem;\n --font-size--xxxlarge: 3rem;\n\n /* Line heights */\n --line-height--small: 1.2rem;\n --line-height--medium: 1.4rem;\n --line-height--large: 1.4rem;\n\n /* Font weights */\n --font-weight--thin: 200;\n --font-weight--light: 300;\n --font-weight--regular: 400;\n --font-weight--medium: 500;\n --font-weight--bold: 700;\n\n /* Border radius */\n --border-radius--small: 0.25rem;\n --border-radius--medium: 0.5rem;\n --border-radius--large: 1rem;\n --border-radius--xlarge: 2rem;\n\n /* Box shadows */\n --box-shadow--medium: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);\n\n /* Breakpoints */\n --breakpoint--small: 480px;\n --breakpoint--medium: 768px;\n --breakpoint--large: 1024px;\n --breakpoint--xlarge: 1200px;\n --breakpoint--xxlarge: 1440px;\n --breakpoint--xxxlarge: 1920px;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n* {\n margin: 0;\n}\n\na {\n color: var(--color--primary);\n text-decoration: none;\n\n &:hover,\n &:focus {\n text-decoration: underline;\n }\n}\n\nbody,\nbutton {\n font-family: var(--font-family--sans-serif);\n font-weight: var(--font-weight--regular);\n font-style: normal;\n}\n\nbody {\n background-color: var(--color--grey-lightest);\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n color: var(--color--grey-dark);\n -webkit-print-color-adjust: exact !important;\n print-color-adjust: exact !important;\n}\n\nb {\n font-weight: var(--font-weight--bold);\n}\n\n*:focus-visible {\n outline: 3px solid var(--color--focus-outline);\n}\n\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\ntextarea {\n border: 1px solid var(--color--grey-borders);\n border-radius: var(--border-radius--small);\n background-color: var(--color--grey-lighter);\n padding: var(--spacing--medium);\n}\n\np,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n overflow-wrap: break-word;\n}\n\np {\n font-size: var(--font-size--medium);\n margin-bottom: var(--spacing--medium);\n}\n\nol,\nul {\n margin-bottom: 1rem;\n margin-left: 2rem;\n}\n\nul {\n list-style-type: disc;\n}\n\nol {\n list-style-type: decimal;\n}\n\n#root,\n#__next {\n isolation: isolate;\n}\n\nsmall {\n font-size: 80%;\n color: var(--color--grey);\n}\n');const ux=Kt.div`
|
|
676
|
+
height: 100%;
|
|
677
|
+
position: absolute;
|
|
678
|
+
width: 100%;
|
|
679
|
+
top: 0;
|
|
680
|
+
left: 0;
|
|
681
|
+
`,dx=Kt.main`
|
|
682
|
+
width: 100%;
|
|
683
|
+
height: calc(100% - 136px); // TODO: calculate the height of the header
|
|
684
|
+
position: relative;
|
|
685
|
+
`;const px=Kt(qg)`
|
|
686
|
+
text-transform: uppercase;
|
|
687
|
+
font-size: var(--font-size--xsmall);
|
|
739
688
|
font-weight: var(--font-weight--bold);
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
${({$size:e})=>Kc[e||"medium"]}
|
|
743
|
-
`,Xc=Kt.div`
|
|
744
|
-
font-weight: 400;
|
|
745
|
-
${({$size:e})=>Kc[e||"medium"]}
|
|
746
|
-
`,Qc=Kt.div`
|
|
747
|
-
grid-gap: var(--spacing--medium);
|
|
748
|
-
${({$inline:e})=>e?qt`
|
|
749
|
-
display: grid;
|
|
750
|
-
grid-template-columns: 1fr 3fr;
|
|
751
|
-
@media (max-width: 768px) {
|
|
752
|
-
grid-template-columns: 1fr;
|
|
753
|
-
}
|
|
754
|
-
`:""}
|
|
755
|
-
`;const Zc=Jt`
|
|
689
|
+
margin: 0;
|
|
690
|
+
`,fx=Kt(oy)``,mx=Jt`
|
|
756
691
|
0% {
|
|
757
692
|
background-position: 0% 50%;
|
|
758
693
|
}
|
|
759
694
|
100% {
|
|
760
695
|
background-position: 200% 50%;
|
|
761
696
|
}
|
|
762
|
-
`,
|
|
697
|
+
`,gx=Kt.div`
|
|
763
698
|
position: relative;
|
|
764
699
|
width: 100%;
|
|
765
700
|
height: 6px;
|
|
766
701
|
background-color: #d7d7d7;
|
|
767
702
|
border-radius: 3px;
|
|
768
|
-
`,
|
|
703
|
+
`,hx=Kt.div`
|
|
769
704
|
position: absolute;
|
|
770
705
|
left: 0;
|
|
771
706
|
top: 0;
|
|
@@ -778,447 +713,517 @@ function Ac(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=
|
|
|
778
713
|
background-size: 200% 200%;
|
|
779
714
|
border-radius: 3px;
|
|
780
715
|
transition: width 1s ease;
|
|
781
|
-
animation: ${
|
|
716
|
+
animation: ${mx} 3s ease infinite;
|
|
782
717
|
transform: rotate(180deg);
|
|
783
|
-
`;const
|
|
784
|
-
position: fixed;
|
|
785
|
-
bottom: 2rem;
|
|
786
|
-
width: 100%;
|
|
787
|
-
z-index: 2000;
|
|
788
|
-
pointer-events: none;
|
|
789
|
-
`,ru=Kt.div`
|
|
790
|
-
position: absolute;
|
|
791
|
-
top: 0;
|
|
792
|
-
width: 100%;
|
|
718
|
+
`;const vx=Kt.div`
|
|
793
719
|
display: flex;
|
|
794
720
|
flex-direction: column;
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
border-radius: var(--border-radius--medium);
|
|
803
|
-
box-sizing: border-box;
|
|
804
|
-
font-size: var(--font-size--small);
|
|
805
|
-
font-weight: var(--font-weight--bold);
|
|
806
|
-
display: flex;
|
|
807
|
-
align-items: center;
|
|
808
|
-
justify-content: center;
|
|
721
|
+
align-items: flex-start;
|
|
722
|
+
padding: var(--spacing--medium);
|
|
723
|
+
`,bx=Kt.div`
|
|
724
|
+
display: -webkit-box;
|
|
725
|
+
-webkit-line-clamp: ${e=>e.$maxLines};
|
|
726
|
+
-webkit-box-orient: vertical;
|
|
727
|
+
overflow: hidden;
|
|
809
728
|
|
|
810
|
-
|
|
811
|
-
|
|
729
|
+
@media print {
|
|
730
|
+
-webkit-line-clamp: unset;
|
|
812
731
|
}
|
|
732
|
+
`,yx=Kt(yy)`
|
|
733
|
+
margin: auto;
|
|
813
734
|
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
735
|
+
@media print {
|
|
736
|
+
display: none;
|
|
737
|
+
}
|
|
738
|
+
`;const xx=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var wx=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},Sx="undefined"!=typeof window&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect,Cx="undefined"!=typeof Element,kx="function"==typeof Map,Ox="function"==typeof Set,Ix="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Ex(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Ex(e[r],t[r]))return!1;return!0}if(kx&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!Ex(r.value[1],t.get(r.value[0])))return!1;return!0}if(Ox&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Ix&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Cx&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Ex(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var Px=d((function(e,t){try{return Ex(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}})),Nx=[],$x=function(e,t,n){void 0===n&&(n={});var r=o.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Nx},l=o.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=l[0],c=l[1],u=o.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);a.flushSync((function(){c({styles:wx(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:wx(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),d=o.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Px(r.current,e)?r.current||e:(r.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),p=o.useRef();return Sx((function(){p.current&&p.current.setOptions(d)}),[d]),Sx((function(){if(null!=e&&null!=t){var r=(n.createPopper||fg)(e,t,d);return p.current=r,function(){r.destroy(),p.current=null}}}),[e,t,n.createPopper]),{state:p.current?p.current.state:null,styles:s.styles,attributes:s.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const zx=Kt.div`
|
|
739
|
+
display: inline-flex;
|
|
740
|
+
position: relative;
|
|
817
741
|
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
742
|
+
@media print {
|
|
743
|
+
display: none;
|
|
744
|
+
}
|
|
745
|
+
`,Rx=Kt.div`
|
|
746
|
+
text-align: left;
|
|
747
|
+
position: relative;
|
|
748
|
+
font-size: var(--font-size--xsmall);
|
|
749
|
+
max-width: 300px;
|
|
750
|
+
width: max-content;
|
|
751
|
+
visibility: hidden;
|
|
752
|
+
border-radius: var(--border-radius--small);
|
|
753
|
+
padding: var(--spacing--small) var(--spacing--medium);
|
|
754
|
+
color: ${"var(--color--grey-dark)"};
|
|
755
|
+
background: ${"var(--color--white)"};
|
|
756
|
+
box-shadow: var(--box-shadow--medium);
|
|
757
|
+
border: 1px solid var(--color--grey-borders);
|
|
758
|
+
font-weight: 400;
|
|
759
|
+
line-height: 1.4;
|
|
760
|
+
z-index: 9;
|
|
824
761
|
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
`:"error"===e.level?qt`
|
|
829
|
-
background-color: #ffdadd;
|
|
830
|
-
color: var(--color--dark-blue);
|
|
762
|
+
> div {
|
|
763
|
+
white-space: initial;
|
|
764
|
+
}
|
|
831
765
|
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
`:qt``}
|
|
766
|
+
&[data-show="true"] {
|
|
767
|
+
visibility: visible;
|
|
768
|
+
}
|
|
836
769
|
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
`}
|
|
852
|
-
`;function au({message:t}){const n="success"===t.level?e.jsx(Oi,{name:["fas","check-circle"]}):e.jsx(Oi,{name:["fas","exclamation-triangle"]});return"html"in t?e.jsxs(ou,{level:t.level,noFade:t.noFade,role:"alert","aria-live":"error"===t.level?"assertive":"polite",children:[n,e.jsx("span",{dangerouslySetInnerHTML:{__html:t.html}})]}):e.jsxs(ou,{level:t.level,noFade:t.noFade,role:"alert","aria-live":"error"===t.level?"assertive":"polite",children:[n,t.text]})}const iu={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}};var lu="$$joy";function su(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function cu(){return cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cu.apply(null,arguments)}var uu=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),du="-ms-",pu="-moz-",fu="-webkit-",mu="comm",gu="rule",hu="decl",vu="@keyframes",bu=Math.abs,yu=String.fromCharCode,xu=Object.assign;function wu(e){return e.trim()}function Su(e,t,n){return e.replace(t,n)}function Cu(e,t){return e.indexOf(t)}function ku(e,t){return 0|e.charCodeAt(t)}function Ou(e,t,n){return e.slice(t,n)}function Iu(e){return e.length}function Eu(e){return e.length}function Pu(e,t){return t.push(e),e}var Nu=1,$u=1,zu=0,Ru=0,Du=0,Tu="";function ju(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Nu,column:$u,length:i,return:""}}function Mu(e,t){return xu(ju("",null,null,"",null,null,0),e,{length:-e.length},t)}function Au(){return Du=Ru>0?ku(Tu,--Ru):0,$u--,10===Du&&($u=1,Nu--),Du}function Vu(){return Du=Ru<zu?ku(Tu,Ru++):0,$u++,10===Du&&($u=1,Nu++),Du}function _u(){return ku(Tu,Ru)}function Lu(){return Ru}function Fu(e,t){return Ou(Tu,e,t)}function Bu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Hu(e){return Nu=$u=1,zu=Iu(Tu=e),Ru=0,[]}function Wu(e){return Tu="",e}function Gu(e){return wu(Fu(Ru-1,Yu(91===e?e+2:40===e?e+1:e)))}function qu(e){for(;(Du=_u())&&Du<33;)Vu();return Bu(e)>2||Bu(Du)>3?"":" "}function Uu(e,t){for(;--t&&Vu()&&!(Du<48||Du>102||Du>57&&Du<65||Du>70&&Du<97););return Fu(e,Lu()+(t<6&&32==_u()&&32==Vu()))}function Yu(e){for(;Vu();)switch(Du){case e:return Ru;case 34:case 39:34!==e&&39!==e&&Yu(Du);break;case 40:41===e&&Yu(e);break;case 92:Vu()}return Ru}function Ku(e,t){for(;Vu()&&e+Du!==57&&(e+Du!==84||47!==_u()););return"/*"+Fu(t,Ru-1)+"*"+yu(47===e?e:Vu())}function Ju(e){for(;!Bu(_u());)Vu();return Fu(e,Ru)}function Xu(e){return Wu(Qu("",null,null,null,[""],e=Hu(e),0,[0],e))}function Qu(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,p=0,f=0,m=0,g=1,h=1,v=1,b=0,y="",x=o,w=a,S=r,C=y;h;)switch(m=b,b=Vu()){case 40:if(108!=m&&58==ku(C,d-1)){-1!=Cu(C+=Su(Gu(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=Gu(b);break;case 9:case 10:case 13:case 32:C+=qu(m);break;case 92:C+=Uu(Lu()-1,7);continue;case 47:switch(_u()){case 42:case 47:Pu(ed(Ku(Vu(),Lu()),t,n),s);break;default:C+="/"}break;case 123*g:l[c++]=Iu(C)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==v&&(C=Su(C,/\f/g,"")),f>0&&Iu(C)-d&&Pu(f>32?td(C+";",r,n,d-1):td(Su(C," ","")+";",r,n,d-2),s);break;case 59:C+=";";default:if(Pu(S=Zu(C,t,n,c,u,o,l,y,x=[],w=[],d),a),123===b)if(0===u)Qu(C,t,S,S,x,a,d,l,w);else switch(99===p&&110===ku(C,3)?100:p){case 100:case 108:case 109:case 115:Qu(e,S,S,r&&Pu(Zu(e,S,S,0,0,o,l,y,o,x=[],d),w),o,w,d,l,r?x:w);break;default:Qu(C,S,S,S,[""],w,0,l,w)}}c=u=f=0,g=v=1,y=C="",d=i;break;case 58:d=1+Iu(C),f=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Au())continue;switch(C+=yu(b),b*g){case 38:v=u>0?1:(C+="\f",-1);break;case 44:l[c++]=(Iu(C)-1)*v,v=1;break;case 64:45===_u()&&(C+=Gu(Vu())),p=_u(),u=d=Iu(y=C+=Ju(Lu())),b++;break;case 45:45===m&&2==Iu(C)&&(g=0)}}return a}function Zu(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=Eu(p),m=0,g=0,h=0;m<r;++m)for(var v=0,b=Ou(e,d+1,d=bu(g=i[m])),y=e;v<f;++v)(y=wu(g>0?p[v]+" "+b:Su(b,/&\f/g,p[v])))&&(s[h++]=y);return ju(e,t,n,0===o?gu:l,s,c,u)}function ed(e,t,n){return ju(e,t,n,mu,yu(Du),Ou(e,2,-2),0)}function td(e,t,n,r){return ju(e,t,n,hu,Ou(e,0,r),Ou(e,r+1,-1),r)}function nd(e,t){for(var n="",r=Eu(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function rd(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case hu:return e.return=e.return||e.value;case mu:return"";case vu:return e.return=e.value+"{"+nd(e.children,r)+"}";case gu:e.value=e.props.join(",")}return Iu(n=nd(e.children,r))?e.return=e.value+"{"+n+"}":""}function od(e){var t=Eu(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}var ad=function(e,t,n){for(var r=0,o=0;r=o,o=_u(),38===r&&12===o&&(t[n]=1),!Bu(o);)Vu();return Fu(e,Ru)},id=function(e,t){return Wu(function(e,t){var n=-1,r=44;do{switch(Bu(r)){case 0:38===r&&12===_u()&&(t[n]=1),e[n]+=ad(Ru-1,t,n);break;case 2:e[n]+=Gu(r);break;case 4:if(44===r){e[++n]=58===_u()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=yu(r)}}while(r=Vu());return e}(Hu(e),t))},ld=new WeakMap,sd=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ld.get(n))&&!r){ld.set(e,!0);for(var o=[],a=id(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},cd=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ud=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},dd=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},pd=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},fd=function(e,t,n){dd(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),pd(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!dd(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),pd(e)))};function md(e,t){switch(function(e,t){return 45^ku(e,0)?(((t<<2^ku(e,0))<<2^ku(e,1))<<2^ku(e,2))<<2^ku(e,3):0}(e,t)){case 5103:return fu+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return fu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fu+e+pu+e+du+e+e;case 6828:case 4268:return fu+e+du+e+e;case 6165:return fu+e+du+"flex-"+e+e;case 5187:return fu+e+Su(e,/(\w+).+(:[^]+)/,fu+"box-$1$2"+du+"flex-$1$2")+e;case 5443:return fu+e+du+"flex-item-"+Su(e,/flex-|-self/,"")+e;case 4675:return fu+e+du+"flex-line-pack"+Su(e,/align-content|flex-|-self/,"")+e;case 5548:return fu+e+du+Su(e,"shrink","negative")+e;case 5292:return fu+e+du+Su(e,"basis","preferred-size")+e;case 6060:return fu+"box-"+Su(e,"-grow","")+fu+e+du+Su(e,"grow","positive")+e;case 4554:return fu+Su(e,/([^-])(transform)/g,"$1"+fu+"$2")+e;case 6187:return Su(Su(Su(e,/(zoom-|grab)/,fu+"$1"),/(image-set)/,fu+"$1"),e,"")+e;case 5495:case 3959:return Su(e,/(image-set\([^]*)/,fu+"$1$`$1");case 4968:return Su(Su(e,/(.+:)(flex-)?(.*)/,fu+"box-pack:$3"+du+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fu+e+e;case 4095:case 3583:case 4068:case 2532:return Su(e,/(.+)-inline(.+)/,fu+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Iu(e)-1-t>6)switch(ku(e,t+1)){case 109:if(45!==ku(e,t+4))break;case 102:return Su(e,/(.+:)(.+)-([^]+)/,"$1"+fu+"$2-$3$1"+pu+(108==ku(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Cu(e,"stretch")?md(Su(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ku(e,t+1))break;case 6444:switch(ku(e,Iu(e)-3-(~Cu(e,"!important")&&10))){case 107:return Su(e,":",":"+fu)+e;case 101:return Su(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fu+(45===ku(e,14)?"inline-":"")+"box$3$1"+fu+"$2$3$1"+du+"$2box$3")+e}break;case 5936:switch(ku(e,t+11)){case 114:return fu+e+du+Su(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fu+e+du+Su(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fu+e+du+Su(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fu+e+du+e+e}return e}var gd,hd,vd="undefined"!=typeof document,bd=vd?void 0:(gd=function(){return s((function(){var e={};return function(t){return e[t]}}))},hd=new WeakMap,function(e){if(hd.has(e))return hd.get(e);var t=gd(e);return hd.set(e,t),t}),yd=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case hu:e.return=md(e.value,e.length);break;case vu:return nd([Mu(e,{value:Su(e.value,"@","@"+fu)})],r);case gu:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return nd([Mu(e,{props:[Su(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return nd([Mu(e,{props:[Su(t,/:(plac\w+)/,":"+fu+"input-$1")]}),Mu(e,{props:[Su(t,/:(plac\w+)/,":-moz-$1")]}),Mu(e,{props:[Su(t,/:(plac\w+)/,du+"input-$1")]})],r)}return""}))}}],xd=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(vd&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||yd;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,a,i={},l=[];vd&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s,c=[sd,cd];if("production"!==process.env.NODE_ENV&&c.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=t.parent?t.parent.children:r,i=a.length-1;i>=0;i--){var l=a[i];if(l.line<t.line)break;if(l.column<t.column){if(ud(l))return;break}}o.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return v.compat}}),fd),vd){var u,d=[rd,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==mu&&u.insert(e.value+"{}"))}:(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=od(c.concat(r,d));a=function(e,t,n,r){u=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(u={insert:function(e){n.insert(e+t.map)}}),function(e){nd(Xu(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[rd],m=od(c.concat(r,f)),g=bd(r)(t),h=function(e,t){var n=t.name;return void 0===g[n]&&(g[n]=function(e){return nd(Xu(e),m)}(e?e+"{"+t.styles+"}":t.styles)),g[n]};a=function(e,t,n,r){var o=t.name,a=h(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?a+t.map:a):r?void(v.inserted[o]=a):a}}var v={key:t,sheet:new uu({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return v.sheet.hydrate(l),v},wd=La(),Sd={};Sd[wd.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Sd[wd.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Cd="undefined"!=typeof document;function kd(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Od=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Cd&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Id=function(e,t,n){Od(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",a=t;do{var i=e.insert(t===a?"."+r:"",a,e.sheet,!0);Cd||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!Cd&&0!==o.length)return o}};var Ed="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Pd="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Nd=/[A-Z]|^ms/g,$d=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zd=function(e){return 45===e.charCodeAt(1)},Rd=function(e){return null!=e&&"boolean"!=typeof e},Dd=s((function(e){return zd(e)?e:e.replace(Nd,"-$&").toLowerCase()})),Td=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace($d,(function(e,t,n){return Wd={name:t,styles:n,next:Wd},t}))}return 1===ce[e]||zd(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var jd=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Md=["normal","none","initial","inherit","unset"],Ad=Td,Vd=/^-ms-/,_d=/-(.)/g,Ld={};Td=function(e,t){if("content"===e&&("string"!=typeof t||-1===Md.indexOf(t)&&!jd.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Ad(e,t);return""===n||zd(e)||-1===e.indexOf("-")||void 0!==Ld[e]||(Ld[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Vd,"ms-").replace(_d,(function(e,t){return t.toUpperCase()}))+"?")),n}}var Fd="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Bd(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(Fd);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Wd={name:n.name,styles:n.styles,next:Wd},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Wd={name:r.name,styles:r.styles,next:Wd},r=r.next;var o=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(o+=n.map),o}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Bd(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":Rd(i)&&(r+=Dd(a)+":"+Td(a,i)+";");else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error(Fd);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=Bd(e,t,i);switch(a){case"animation":case"animationName":r+=Dd(a)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error(Pd),r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)Rd(i[s])&&(r+=Dd(a)+":"+Td(a,i[s])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=Wd,i=n(e);return Wd=a,Bd(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],s=n.replace($d,(function(e,t,n){var r="animation"+l.length;return l.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}}if(null==t)return n;var c=t[n];return void 0!==c?c:n}var Hd,Wd,Gd=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Hd=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var qd=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Wd=void 0;var a,i=e[0];null==i||void 0===i.raw?(r=!1,o+=Bd(n,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(Ed),o+=i[0]);for(var l=1;l<e.length;l++)o+=Bd(n,t,e[l]),r&&("production"!==process.env.NODE_ENV&&void 0===i[l]&&console.error(Ed),o+=i[l]);"production"!==process.env.NODE_ENV&&(o=o.replace(Hd,(function(e){return a=e,""}))),Gd.lastIndex=0;for(var s,c="";null!==(s=Gd.exec(o));)c+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:o,map:a,next:Wd,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:o,next:Wd}},Ud="undefined"!=typeof document,Yd=function(e){return e()},Kd=!!o.useInsertionEffect&&o.useInsertionEffect,Jd=Ud&&Kd||Yd,Xd=Kd||o.useLayoutEffect,Qd="undefined"!=typeof document,Zd={}.hasOwnProperty,ep=o.createContext("undefined"!=typeof HTMLElement?xd({key:"css"}):null);"production"!==process.env.NODE_ENV&&(ep.displayName="EmotionCacheContext"),ep.Provider;var tp=function(e){return t.forwardRef((function(n,r){var o=t.useContext(ep);return e(n,o,r)}))};Qd||(tp=function(e){return function(n){var r=t.useContext(ep);return null===r?(r=xd({key:"css"}),o.createElement(ep.Provider,{value:r},e(n,r))):e(n,r)}});var np=o.createContext({});"production"!==process.env.NODE_ENV&&(np.displayName="EmotionThemeContext");var rp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",op="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",ap=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Od(t,n,r);var a=Jd((function(){return Id(t,n,r)}));if(!Qd&&void 0!==a){for(var i,l=n.name,s=n.next;void 0!==s;)l+=" "+s.name,s=s.next;return o.createElement("style",((i={})["data-emotion"]=t.key+" "+l,i.dangerouslySetInnerHTML={__html:a},i.nonce=t.sheet.nonce,i))}return null},ip=tp((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var a=e[rp],i=[r],l="";"string"==typeof e.className?l=kd(t.registered,i,e.className):null!=e.className&&(l=e.className+" ");var s=qd(i,void 0,o.useContext(np));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var c=e[op];c&&(s=qd([s,"label:"+c+";"]))}l+=t.key+"-"+s.name;var u={};for(var d in e)!Zd.call(e,d)||"css"===d||d===rp||"production"!==process.env.NODE_ENV&&d===op||(u[d]=e[d]);return u.ref=n,u.className=l,o.createElement(o.Fragment,null,o.createElement(ap,{cache:t,serialized:s,isStringTag:"string"==typeof a}),o.createElement(a,u))}));"production"!==process.env.NODE_ENV&&(ip.displayName="EmotionCssPropInternal");var lp=!1,sp=tp((function(e,t){"production"===process.env.NODE_ENV||lp||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),lp=!0);var n=e.styles,r=qd([n],void 0,o.useContext(np));if(!Qd){for(var a,i=r.name,l=r.styles,s=r.next;void 0!==s;)i+=" "+s.name,l+=s.styles,s=s.next;var c=!0===t.compat,u=t.insert("",{name:i,styles:l},t.sheet,c);return c?null:o.createElement("style",((a={})["data-emotion"]=t.key+"-global "+i,a.dangerouslySetInnerHTML={__html:u},a.nonce=t.sheet.nonce,a))}var d=o.useRef();return Xd((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),d.current=[n,o],function(){n.flush()}}),[t]),Xd((function(){var e=d.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Id(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function cp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return qd(t)}"production"!==process.env.NODE_ENV&&(sp.displayName="EmotionGlobal");var up=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var l in"production"!==process.env.NODE_ENV&&void 0!==a.styles&&void 0!==a.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="",a)a[l]&&l&&(i&&(i+=" "),i+=l);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};var dp=function(e){var t,n=e.cache,r=e.serializedArr,a=Jd((function(){for(var e="",t=0;t<r.length;t++){var o=Id(n,r[t],!1);Qd||void 0===o||(e+=o)}if(!Qd)return e}));return Qd||0===a.length?null:o.createElement("style",((t={})["data-emotion"]=n.key+" "+r.map((function(e){return e.name})).join(" "),t.dangerouslySetInnerHTML={__html:a},t.nonce=n.sheet.nonce,t))},pp=tp((function(e,t){var n=!1,r=[],a=function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];var i=qd(o,t.registered);return r.push(i),Od(t,i,!1),t.key+"-"+i.name},i={css:a,cx:function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(e,t,n){var r=[],o=kd(e,r,n);return r.length<2?n:o+t(r)}(t.registered,a,up(r))},theme:o.useContext(np)},l=e.children(i);return n=!0,o.createElement(o.Fragment,null,o.createElement(dp,{cache:t,serializedArr:r}),l)}));if("production"!==process.env.NODE_ENV&&(pp.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var fp="undefined"!=typeof document,mp="undefined"!=typeof jest||"undefined"!=typeof vi;if(fp&&!mp){var gp="undefined"!=typeof globalThis?globalThis:fp?window:global,hp="__EMOTION_REACT_"+"11.11.4".split(".")[0]+"__";gp[hp]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),gp[hp]=!0}}var vp=u,bp=function(e){return"theme"!==e},yp=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?vp:bp},xp=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},wp="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Sp="undefined"!=typeof document,Cp=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Od(t,n,r);var a=Jd((function(){return Id(t,n,r)}));if(!Sp&&void 0!==a){for(var i,l=n.name,s=n.next;void 0!==s;)l+=" "+s.name,s=s.next;return o.createElement("style",((i={})["data-emotion"]=t.key+" "+l,i.dangerouslySetInnerHTML={__html:a},i.nonce=t.sheet.nonce,i))}return null},kp=function e(t,n){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var r,a,i=t.__emotion_real===t,l=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,a=n.target);var s=xp(t,n,i),c=s||yp(l),u=!c("as");return function(){var d=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{"production"!==process.env.NODE_ENV&&void 0===d[0][0]&&console.error(wp),p.push(d[0][0]);for(var f=d.length,m=1;m<f;m++)"production"!==process.env.NODE_ENV&&void 0===d[0][m]&&console.error(wp),p.push(d[m],d[0][m])}var g=tp((function(e,t,n){var r=u&&e.as||l,i="",d=[],f=e;if(null==e.theme){for(var m in f={},e)f[m]=e[m];f.theme=o.useContext(np)}"string"==typeof e.className?i=kd(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var g=qd(p.concat(d),t.registered,f);i+=t.key+"-"+g.name,void 0!==a&&(i+=" "+a);var h=u&&void 0===s?yp(r):c,v={};for(var b in e)u&&"as"===b||h(b)&&(v[b]=e[b]);return v.className=i,v.ref=n,o.createElement(o.Fragment,null,o.createElement(Cp,{cache:t,serialized:g,isStringTag:"string"==typeof r}),o.createElement(r,v))}));return g.displayName=void 0!==r?r:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=l,g.__emotion_styles=p,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),g.withComponent=function(t,r){return e(t,cu({},n,r,{shouldForwardProp:xp(g,r,!0)})).apply(void 0,p)},g}}.bind();function Op(t){const{styles:n,defaultTheme:r={}}=t,o="function"==typeof n?e=>{return n(null==(t=e)||0===Object.keys(t).length?r:e);var t}:n;return e.jsx(sp,{styles:o})}
|
|
853
|
-
/**
|
|
854
|
-
* @mui/styled-engine v5.15.14
|
|
855
|
-
*
|
|
856
|
-
* @license MIT
|
|
857
|
-
* This source code is licensed under the MIT license found in the
|
|
858
|
-
* LICENSE file in the root directory of this source tree.
|
|
859
|
-
*/
|
|
860
|
-
function Ip(e,t){const n=kp(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const r="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...t)}:n}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){kp[e]=kp(e)})),"production"!==process.env.NODE_ENV&&(Op.propTypes={defaultTheme:Ga.object,styles:Ga.oneOfType([Ga.array,Ga.string,Ga.object,Ga.func])});function Ep(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Pp(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Np(e){if(!Pp(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Np(e[n])})),t}function $p(e,t,n={clone:!0}){const r=n.clone?cu({},e):e;return Pp(e)&&Pp(t)&&Object.keys(t).forEach((o=>{Pp(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Pp(e[o])?r[o]=$p(e[o],t[o],n):n.clone?r[o]=Pp(t[o])?Np(t[o]):t[o]:r[o]=t[o]})),r}const zp=["values","unit","step"],Rp=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>cu({},e,{[t.key]:t.val})),{})};function Dp(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ep(e,zp),a=Rp(t),i=Object.keys(a);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return cu({keys:i,values:a,up:l,down:s,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Tp={borderRadius:4},jp="production"!==process.env.NODE_ENV?Ga.oneOfType([Ga.number,Ga.string,Ga.object,Ga.array]):{};function Mp(e,t){return t?$p(e,t,{clone:!1}):e}const Ap={xs:0,sm:600,md:900,lg:1200,xl:1536},Vp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ap[e]}px)`};function _p(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Vp;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Vp;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Ap).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Lp(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":su(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Fp(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Bp(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Fp(e,n)||r,t&&(o=t(o,r,e)),o}function Hp(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=Fp(e.theme,r)||{};return _p(e,a,(e=>{let r=Bp(i,o,e);return e===r&&"string"==typeof e&&(r=Bp(i,o,`${t}${"default"===e?"":Lp(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes="production"!==process.env.NODE_ENV?{[t]:jp}:{},a.filterProps=[t],a}const Wp={m:"margin",p:"padding"},Gp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Up=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!qp[e])return[e];e=qp[e]}const[t,n]=e.split(""),r=Wp[t],o=Gp[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Yp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Kp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Jp=[...Yp,...Kp];function Xp(e,t,n,r){var o;const a=null!=(o=Fp(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),a*e):Array.isArray(a)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>a.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${e} > ${a.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),a[e]):"function"==typeof a?a:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Qp(e){return Xp(e,"spacing",8,"spacing")}function Zp(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function ef(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Zp(t,n),e)),{})}(Up(n),r);return _p(e,e[n],o)}function tf(e,t){const n=Qp(e.theme);return Object.keys(e).map((r=>ef(e,t,r,n))).reduce(Mp,{})}function nf(e){return tf(e,Yp)}function rf(e){return tf(e,Kp)}function of(e=8){if(e.mui)return e;const t=Qp({spacing:e}),n=(...e)=>{"production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`));return(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}function af(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Mp(n,t[r](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function lf(e){return"number"!=typeof e?e:`${e}px solid`}function sf(e,t){return Hp({prop:e,themeKey:"borders",transform:t})}nf.propTypes="production"!==process.env.NODE_ENV?Yp.reduce(((e,t)=>(e[t]=jp,e)),{}):{},nf.filterProps=Yp,rf.propTypes="production"!==process.env.NODE_ENV?Kp.reduce(((e,t)=>(e[t]=jp,e)),{}):{},rf.filterProps=Kp,"production"===process.env.NODE_ENV||Jp.reduce(((e,t)=>(e[t]=jp,e)),{});const cf=sf("border",lf),uf=sf("borderTop",lf),df=sf("borderRight",lf),pf=sf("borderBottom",lf),ff=sf("borderLeft",lf),mf=sf("borderColor"),gf=sf("borderTopColor"),hf=sf("borderRightColor"),vf=sf("borderBottomColor"),bf=sf("borderLeftColor"),yf=sf("outline",lf),xf=sf("outlineColor"),wf=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Xp(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:Zp(t,e)});return _p(e,e.borderRadius,n)}return null};wf.propTypes="production"!==process.env.NODE_ENV?{borderRadius:jp}:{},wf.filterProps=["borderRadius"],af(cf,uf,df,pf,ff,mf,gf,hf,vf,bf,wf,yf,xf);const Sf=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Xp(e.theme,"spacing",8,"gap"),n=e=>({gap:Zp(t,e)});return _p(e,e.gap,n)}return null};Sf.propTypes="production"!==process.env.NODE_ENV?{gap:jp}:{},Sf.filterProps=["gap"];const Cf=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Xp(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:Zp(t,e)});return _p(e,e.columnGap,n)}return null};Cf.propTypes="production"!==process.env.NODE_ENV?{columnGap:jp}:{},Cf.filterProps=["columnGap"];const kf=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Xp(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:Zp(t,e)});return _p(e,e.rowGap,n)}return null};kf.propTypes="production"!==process.env.NODE_ENV?{rowGap:jp}:{},kf.filterProps=["rowGap"];function Of(e,t){return"grey"===t?t:e}af(Sf,Cf,kf,Hp({prop:"gridColumn"}),Hp({prop:"gridRow"}),Hp({prop:"gridAutoFlow"}),Hp({prop:"gridAutoColumns"}),Hp({prop:"gridAutoRows"}),Hp({prop:"gridTemplateColumns"}),Hp({prop:"gridTemplateRows"}),Hp({prop:"gridTemplateAreas"}),Hp({prop:"gridArea"}));function If(e){return e<=1&&0!==e?100*e+"%":e}af(Hp({prop:"color",themeKey:"palette",transform:Of}),Hp({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Of}),Hp({prop:"backgroundColor",themeKey:"palette",transform:Of}));const Ef=Hp({prop:"width",transform:If}),Pf=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Ap[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:If(t)}};return _p(e,e.maxWidth,t)}return null};Pf.filterProps=["maxWidth"];const Nf=Hp({prop:"minWidth",transform:If}),$f=Hp({prop:"height",transform:If}),zf=Hp({prop:"maxHeight",transform:If}),Rf=Hp({prop:"minHeight",transform:If});Hp({prop:"size",cssProperty:"width",transform:If}),Hp({prop:"size",cssProperty:"height",transform:If});af(Ef,Pf,Nf,$f,zf,Rf,Hp({prop:"boxSizing"}));const Df={border:{themeKey:"borders",transform:lf},borderTop:{themeKey:"borders",transform:lf},borderRight:{themeKey:"borders",transform:lf},borderBottom:{themeKey:"borders",transform:lf},borderLeft:{themeKey:"borders",transform:lf},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:lf},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:wf},color:{themeKey:"palette",transform:Of},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Of},backgroundColor:{themeKey:"palette",transform:Of},p:{style:rf},pt:{style:rf},pr:{style:rf},pb:{style:rf},pl:{style:rf},px:{style:rf},py:{style:rf},padding:{style:rf},paddingTop:{style:rf},paddingRight:{style:rf},paddingBottom:{style:rf},paddingLeft:{style:rf},paddingX:{style:rf},paddingY:{style:rf},paddingInline:{style:rf},paddingInlineStart:{style:rf},paddingInlineEnd:{style:rf},paddingBlock:{style:rf},paddingBlockStart:{style:rf},paddingBlockEnd:{style:rf},m:{style:nf},mt:{style:nf},mr:{style:nf},mb:{style:nf},ml:{style:nf},mx:{style:nf},my:{style:nf},margin:{style:nf},marginTop:{style:nf},marginRight:{style:nf},marginBottom:{style:nf},marginLeft:{style:nf},marginX:{style:nf},marginY:{style:nf},marginInline:{style:nf},marginInlineStart:{style:nf},marginInlineEnd:{style:nf},marginBlock:{style:nf},marginBlockStart:{style:nf},marginBlockEnd:{style:nf},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Sf},rowGap:{style:kf},columnGap:{style:Cf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:If},maxWidth:{style:Pf},minWidth:{transform:If},height:{transform:If},maxHeight:{transform:If},minHeight:{transform:If},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Tf=function(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:s,style:c}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=Fp(n,l)||{};if(c)return c(o);return _p(o,t,(t=>{let n=Bp(u,s,t);return t===n&&"string"==typeof t&&(n=Bp(u,s,`${e}${"default"===t?"":Lp(t)}`,t)),!1===i?n:{[i]:n}}))}return function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=null!=(r=a.unstable_sxConfig)?r:Df;function l(n){let r=n;if("function"==typeof n)r=n(a);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(a.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],c=a,"function"==typeof l?l(c):l);var l,c;if(null!=o)if("object"==typeof o)if(i[n])s=Mp(s,e(n,o,a,i));else{const e=_p({theme:a},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Mp(s,e):s[n]=t({sx:o,theme:a})}else s=Mp(s,e(n,o,a,i))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();function jf(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}Tf.filterProps=["sx"];const Mf=["breakpoints","palette","spacing","shape"];function Af(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Ep(e,Mf),l=Dp(n),s=of(o);let c=$p({breakpoints:l,direction:"ltr",components:{},palette:cu({mode:"light"},r),spacing:s,shape:cu({},Tp,a)},i);return c.applyStyles=jf,c=t.reduce(((e,t)=>$p(e,t)),c),c.unstable_sxConfig=cu({},Df,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Tf({sx:e,theme:this})},c}function Vf(e=null){const t=o.useContext(np);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const _f=Af();function Lf(e=_f){return Vf(e)}const Ff=["sx"],Bf=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Df;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Hf(e){const{sx:t}=e,n=Ep(e,Ff),{systemProps:r,otherProps:o}=Bf(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Pp(n)?cu({},r,n):r}:cu({},r,t),cu({},o,{sx:a})}const Wf=e=>e,Gf=(()=>{let e=Wf;return{configure(t){e=t},generate:t=>e(t),reset(){e=Wf}}})();function qf(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=qf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Uf(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=qf(e))&&(r&&(r+=" "),r+=t);return r}const Yf=["className","component"];const Kf={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 Jf(e,t,n="Mui"){const r=Kf[t];return r?`${n}-${r}`:`${Gf.generate(e)}-${t}`}function Xf(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Jf(e,t,n)})),r}var Qf,Zf={exports:{}},em={};var tm,nm={};
|
|
861
|
-
/**
|
|
862
|
-
* @license React
|
|
863
|
-
* react-is.development.js
|
|
864
|
-
*
|
|
865
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
866
|
-
*
|
|
867
|
-
* This source code is licensed under the MIT license found in the
|
|
868
|
-
* LICENSE file in the root directory of this source tree.
|
|
869
|
-
*/"production"===process.env.NODE_ENV?Zf.exports=function(){if(Qf)return em;Qf=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case a:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case c:case f:case p:case i:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),em.ContextConsumer=l,em.ContextProvider=i,em.Element=t,em.ForwardRef=c,em.Fragment=r,em.Lazy=f,em.Memo=p,em.Portal=n,em.Profiler=a,em.StrictMode=o,em.Suspense=u,em.SuspenseList=d,em.isAsyncMode=function(){return!1},em.isConcurrentMode=function(){return!1},em.isContextConsumer=function(e){return g(e)===l},em.isContextProvider=function(e){return g(e)===i},em.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},em.isForwardRef=function(e){return g(e)===c},em.isFragment=function(e){return g(e)===r},em.isLazy=function(e){return g(e)===f},em.isMemo=function(e){return g(e)===p},em.isPortal=function(e){return g(e)===n},em.isProfiler=function(e){return g(e)===a},em.isStrictMode=function(e){return g(e)===o},em.isSuspense=function(e){return g(e)===u},em.isSuspenseList=function(e){return g(e)===d},em.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},em.typeOf=g,em}():Zf.exports=(tm||(tm=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var g=e.type;switch(g){case r:case a:case o:case u:case d:return g;default:var h=g&&g.$$typeof;switch(h){case s:case l:case c:case f:case p:case i:return h;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var h=l,v=i,b=t,y=c,x=r,w=f,S=p,C=n,k=a,O=o,I=u,E=d,P=!1,N=!1;nm.ContextConsumer=h,nm.ContextProvider=v,nm.Element=b,nm.ForwardRef=y,nm.Fragment=x,nm.Lazy=w,nm.Memo=S,nm.Portal=C,nm.Profiler=k,nm.StrictMode=O,nm.Suspense=I,nm.SuspenseList=E,nm.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},nm.isConcurrentMode=function(e){return N||(N=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},nm.isContextConsumer=function(e){return g(e)===l},nm.isContextProvider=function(e){return g(e)===i},nm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},nm.isForwardRef=function(e){return g(e)===c},nm.isFragment=function(e){return g(e)===r},nm.isLazy=function(e){return g(e)===f},nm.isMemo=function(e){return g(e)===p},nm.isPortal=function(e){return g(e)===n},nm.isProfiler=function(e){return g(e)===a},nm.isStrictMode=function(e){return g(e)===o},nm.isSuspense=function(e){return g(e)===u},nm.isSuspenseList=function(e){return g(e)===d},nm.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},nm.typeOf=g}()),nm);var rm=Zf.exports;const om=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function am(e,t=""){return e.displayName||e.name||function(e){const t=`${e}`.match(om);return t&&t[1]||""}(e)||t}function im(e,t,n){const r=am(t);return e.displayName||(""!==r?`${n}(${r})`:n)}const lm=["ownerState"],sm=["variants"],cm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function um(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const dm=Af(),pm=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function fm({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function mm(e){return e?(t,n)=>n[e]:null}function gm(e,t){let{ownerState:n}=t,r=Ep(t,lm);const o="function"==typeof e?e(cu({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>gm(e,cu({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Ep(o,sm);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(cu({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(cu({ownerState:n},r,n)):e.style))})),t}return o}function hm(e={}){const{themeId:t,defaultTheme:n=dm,rootShouldForwardProp:r=um,slotShouldForwardProp:o=um}=e,a=e=>Tf(cu({},e,{theme:fm(cu({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=mm(pm(s))}=i,p=Ep(i,cm),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,m=u||!1;let g;"production"!==process.env.NODE_ENV&&l&&(g=`${l}-${pm(s||"Root")}`);let h=um;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const v=Ip(e,cu({shouldForwardProp:h,label:g},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||Pp(e)?r=>gm(e,cu({},r,{theme:fm({theme:r.theme,defaultTheme:n,themeId:t})})):e,y=(r,...o)=>{let i=b(r);const c=o?o.map(b):[];l&&d&&c.push((e=>{const r=fm(cu({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=gm(n,cu({},e,{theme:r}))})),d(e,a)})),l&&!f&&c.push((e=>{var r;const o=fm(cu({},e,{defaultTheme:n,themeId:t}));return gm({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},cu({},e,{theme:o}))})),m||c.push(a);const u=c.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const p=v(i,...c);if("production"!==process.env.NODE_ENV){let t;l&&(t=`${l}${Lp(s||"")}`),void 0===t&&(t=`Styled(${function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return am(e,"Component");if("object"==typeof e)switch(e.$$typeof){case rm.ForwardRef:return im(e,e.render,"ForwardRef");case rm.Memo:return im(e,e.type,"memo");default:return}}}(e)})`),p.displayName=t}return e.muiName&&(p.muiName=e.muiName),p};return v.withConfig&&(y.withConfig=v.withConfig),y}}const vm=hm();function bm(e,t){const n=cu({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=cu({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?o&&Object.keys(o)?(n[r]=cu({},a),Object.keys(o).forEach((e=>{n[r][e]=bm(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function ym(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?bm(t.components[n].defaultProps,r):r}function xm({props:e,name:t,defaultTheme:n,themeId:r}){let o=Lf(n);r&&(o=o[r]||o);return ym({theme:o,name:t,props:e})}const wm="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function Sm(e){if(e.type)return e;if("#"===e.charAt(0))return Sm(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:su(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${r}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:su(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Cm=e=>{const t=Sm(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function km(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function Om(e,t,n,r,o){const a=e[t],i=o||t;if(null==a||"undefined"==typeof window)return null;let l;const s=a.type;return"function"!=typeof s||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(s)||(l="Did you accidentally use a plain function component for an element instead?"),void 0!==l?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Im=km(Ga.element,Om);Im.isRequired=km(Ga.element.isRequired,Om);const Em="exact-prop: ";function Pm(e){return"production"===process.env.NODE_ENV?e:cu({},e,{[Em]:t=>{const n=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return n.length>0?new Error(`The following props are not supported: ${n.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}function Nm(e,t,n,r,o){if("production"===process.env.NODE_ENV)return null;const a=e[t],i=o||t;return null==a?null:a&&1!==a.nodeType?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const $m=Ga.oneOfType([Ga.func,Ga.object]);function zm(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Rm(e,t){var n,r;return o.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}function Dm(e){return e&&e.ownerDocument||document}function Tm(e){return Dm(e).defaultView||window}function jm(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Mm=0;const Am=o["useId".toString()];function Vm(e){if(void 0!==Am){const t=Am();return null!=e?e:t}return function(e){const[t,n]=o.useState(e),r=e||t;return o.useEffect((()=>{null==t&&(Mm+=1,n(`mui-${Mm}`))}),[t]),r}(e)}function _m({controlled:e,default:t,name:n,state:r="value"}){const{current:a}=o.useRef(void 0!==e),[i,l]=o.useState(t),s=a?e:i;if("production"!==process.env.NODE_ENV){o.useEffect((()=>{a!==(void 0!==e)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${r} state of ${n} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[r,n,e]);const{current:i}=o.useRef(t);o.useEffect((()=>{a||Object.is(i,t)||console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join("\n"))}),[JSON.stringify(t)])}return[s,o.useCallback((e=>{a||l(e)}),[])]}function Lm(e){const t=o.useRef(e);return wm((()=>{t.current=e})),o.useRef(((...e)=>(0,t.current)(...e))).current}function Fm(...e){return o.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{jm(e,t)}))}),e)}class Bm{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Bm}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}let Hm=!0,Wm=!1;const Gm=new Bm,qm={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Um(e){e.metaKey||e.altKey||e.ctrlKey||(Hm=!0)}function Ym(){Hm=!1}function Km(){"hidden"===this.visibilityState&&Wm&&(Hm=!0)}function Jm(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Hm||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!qm[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Xm(){const e=o.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Um,!0),t.addEventListener("mousedown",Ym,!0),t.addEventListener("pointerdown",Ym,!0),t.addEventListener("touchstart",Ym,!0),t.addEventListener("visibilitychange",Km,!0))}),[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Jm(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Wm=!0,Gm.start(100,(()=>{Wm=!1})),t.current=!1,!0)},ref:e}}const Qm=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function Zm(e,t,n,r){const o=e[t];if(null==o||!Qm(o)){const e=function(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return null===e?"null":e.constructor.name;default:return t}}(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${e}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function eg(e,t,...n){return void 0===e[t]?null:Zm(e,t,...n)}function tg(){return null}eg.isRequired=Zm,tg.isRequired=tg;var ng="production"===process.env.NODE_ENV?tg:eg;function rg(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const og=o.createContext(null);function ag(){const e=o.useContext(og);return"production"!==process.env.NODE_ENV&&o.useDebugValue(e),e}"production"!==process.env.NODE_ENV&&(og.displayName="ThemeContext");var ig="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function lg(t){const{children:n,theme:r}=t,a=ag();"production"!==process.env.NODE_ENV&&null===a&&"function"==typeof r&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const i=o.useMemo((()=>{const e=null===a?r:function(e,t){if("function"==typeof t){const n=t(e);return"production"!==process.env.NODE_ENV&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join("\n"))),n}return cu({},e,t)}(a,r);return null!=e&&(e[ig]=null!==a),e}),[r,a]);return e.jsx(og.Provider,{value:i,children:n})}"production"!==process.env.NODE_ENV&&(lg.propTypes={children:Ga.node,theme:Ga.oneOfType([Ga.object,Ga.func]).isRequired}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(lg.propTypes=Pm(lg.propTypes));const sg=["value"],cg=o.createContext();function ug(t){let{value:n}=t,r=Ep(t,sg);return e.jsx(cg.Provider,cu({value:null==n||n},r))}"production"!==process.env.NODE_ENV&&(ug.propTypes={children:Ga.node,value:Ga.bool});const dg=o.createContext(void 0);function pg({value:t,children:n}){return e.jsx(dg.Provider,{value:t,children:n})}"production"!==process.env.NODE_ENV&&(pg.propTypes={children:Ga.node,value:Ga.object});const fg={};function mg(e,t,n,r=!1){return o.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),i=e?cu({},t,{[e]:a}):a;return r?()=>i:i}return cu({},t,e?{[e]:n}:n)}),[e,t,n,r])}function gg(t){const{children:n,theme:r,themeId:o}=t,a=Vf(fg),i=ag()||fg;"production"!==process.env.NODE_ENV&&(null===a&&"function"==typeof r||o&&a&&!a[o]&&"function"==typeof r)&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const l=mg(o,a,r),s=mg(o,i,r,!0),c="rtl"===l.direction;return e.jsx(lg,{theme:s,children:e.jsx(np.Provider,{value:l,children:e.jsx(ug,{value:c,children:e.jsx(pg,{value:null==l?void 0:l.components,children:n})})})})}"production"!==process.env.NODE_ENV&&(gg.propTypes={children:Ga.node,theme:Ga.oneOfType([Ga.func,Ga.object]).isRequired,themeId:Ga.string}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(gg.propTypes=Pm(gg.propTypes));const hg="mode",vg="color-scheme",bg="data-color-scheme";function yg(e){if("undefined"!=typeof window&&"system"===e){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}function xg(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function wg(e,t){if("undefined"==typeof window)return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch(e){}return n||t}function Sg(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:a=[],modeStorageKey:i=hg,colorSchemeStorageKey:l=vg,storageWindow:s=("undefined"==typeof window?void 0:window)}=e,c=a.join(","),[u,d]=o.useState((()=>{const e=wg(i,t),o=wg(`${l}-light`,n),a=wg(`${l}-dark`,r);return{mode:e,systemMode:yg(e),lightColorScheme:o,darkColorScheme:a}})),p=function(e){return xg(e,(t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0))}(u),f=o.useCallback((e=>{d((n=>{if(e===n.mode)return n;const r=null!=e?e:t;try{localStorage.setItem(i,r)}catch(e){}return cu({},n,{mode:r,systemMode:yg(r)})}))}),[i,t]),m=o.useCallback((e=>{e?"string"==typeof e?e&&!c.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):d((t=>{const n=cu({},t);return xg(t,(t=>{try{localStorage.setItem(`${l}-${t}`,e)}catch(e){}"light"===t&&(n.lightColorScheme=e),"dark"===t&&(n.darkColorScheme=e)})),n})):d((t=>{const o=cu({},t),a=null===e.light?n:e.light,i=null===e.dark?r:e.dark;if(a)if(c.includes(a)){o.lightColorScheme=a;try{localStorage.setItem(`${l}-light`,a)}catch(e){}}else console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`);if(i)if(c.includes(i)){o.darkColorScheme=i;try{localStorage.setItem(`${l}-dark`,i)}catch(e){}}else console.error(`\`${i}\` does not exist in \`theme.colorSchemes\`.`);return o})):d((e=>{try{localStorage.setItem(`${l}-light`,n),localStorage.setItem(`${l}-dark`,r)}catch(e){}return cu({},e,{lightColorScheme:n,darkColorScheme:r})}))}),[c,l,n,r]),g=o.useCallback((e=>{"system"===u.mode&&d((t=>{const n=null!=e&&e.matches?"dark":"light";return t.systemMode===n?t:cu({},t,{systemMode:n})}))}),[u.mode]),h=o.useRef(g);return h.current=g,o.useEffect((()=>{const e=(...e)=>h.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}}),[]),o.useEffect((()=>{if(s){const e=e=>{const n=e.newValue;"string"!=typeof e.key||!e.key.startsWith(l)||n&&!c.match(n)||(e.key.endsWith("light")&&m({light:n}),e.key.endsWith("dark")&&m({dark:n})),e.key!==i||n&&!["light","dark","system"].includes(n)||f(n||t)};return s.addEventListener("storage",e),()=>{s.removeEventListener("storage",e)}}}),[m,f,i,l,c,t,s]),cu({},u,{colorScheme:p,setMode:f,setColorScheme:m})}const Cg=["colorSchemes","components","generateCssVars","cssVarPrefix"];function kg(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Og=(e,t,n,r=[])=>{let o=e;t.forEach(((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])}))},Ig=(e,t,n)=>{!function e(r,o=[],a=[]){Object.entries(r).forEach((([r,i])=>{(!n||n&&!n([...o,r]))&&null!=i&&("object"==typeof i&&Object.keys(i).length>0?e(i,[...o,r],Array.isArray(i)?[...a,r]:a):t([...o,r],i,a))}))}(e)},Eg=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some((t=>e.includes(t))))return t;return e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function Pg(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return Ig(e,((e,t,l)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`;Object.assign(o,{[r]:Eg(e,t)}),Og(a,e,`var(${r})`,l),Og(i,e,`var(${r}, ${t})`,l)}}),(e=>"vars"===e[0])),{css:o,vars:a,varsWithDefaults:i}}function Ng(e){return Ng="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ng(e)}function $g(e){var t=function(e,t){if("object"!=Ng(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Ng(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Ng(t)?t:t+""}const zg=["colorSchemes","components","defaultColorScheme"];const Rg=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach(((t,r)=>{n(((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)}),t)}));else if(t&&"object"==typeof t){(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,a=Object.keys(t),o.filter((e=>a.includes(e))))).forEach((o=>{if(-1!==e.keys.indexOf(o)){const a=t[o];void 0!==a&&n(((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n}),a)}}))}else"number"!=typeof t&&"string"!=typeof t||n(((e,t)=>{Object.assign(e,t)}),t);var o,a};function Dg(e){return e?`Level${e}`:""}function Tg(e){return e.unstable_level>0&&e.container}function jg(e){return function(t){return`var(--Grid-${t}Spacing${Dg(e.unstable_level)})`}}function Mg(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${Dg(e.unstable_level-1)})`}}function Ag(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${Dg(e.unstable_level-1)})`}const Vg=({theme:e,ownerState:t})=>{const n=jg(t),r={};return Rg(e.breakpoints,t.gridSize,((e,o)=>{let a={};!0===o&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===o&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof o&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / ${Ag(t)}${Tg(t)?` + ${n("column")}`:""})`}),e(r,a)})),r},_g=({theme:e,ownerState:t})=>{const n={};return Rg(e.breakpoints,t.gridOffset,((e,r)=>{let o={};"auto"===r&&(o={marginLeft:"auto"}),"number"==typeof r&&(o={marginLeft:0===r?"0px":`calc(100% * ${r} / ${Ag(t)})`}),e(n,o)})),n},Lg=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=Tg(t)?{[`--Grid-columns${Dg(t.unstable_level)}`]:Ag(t)}:{"--Grid-columns":12};return Rg(e.breakpoints,t.columns,((e,r)=>{e(n,{[`--Grid-columns${Dg(t.unstable_level)}`]:r})})),n},Fg=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=Mg(t),r=Tg(t)?{[`--Grid-rowSpacing${Dg(t.unstable_level)}`]:n("row")}:{};return Rg(e.breakpoints,t.rowSpacing,((n,o)=>{var a;n(r,{[`--Grid-rowSpacing${Dg(t.unstable_level)}`]:"string"==typeof o?o:null==(a=e.spacing)?void 0:a.call(e,o)})})),r},Bg=({theme:e,ownerState:t})=>{if(!t.container)return{};const n=Mg(t),r=Tg(t)?{[`--Grid-columnSpacing${Dg(t.unstable_level)}`]:n("column")}:{};return Rg(e.breakpoints,t.columnSpacing,((n,o)=>{var a;n(r,{[`--Grid-columnSpacing${Dg(t.unstable_level)}`]:"string"==typeof o?o:null==(a=e.spacing)?void 0:a.call(e,o)})})),r},Hg=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Rg(e.breakpoints,t.direction,((e,t)=>{e(n,{flexDirection:t})})),n},Wg=({ownerState:e})=>{const t=jg(e),n=Mg(e);return cu({minWidth:0,boxSizing:"border-box"},e.container&&cu({display:"flex",flexWrap:"wrap"},e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||Tg(e))&&cu({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},Gg=e=>{const t=[];return Object.entries(e).forEach((([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)})),t},qg=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)})),t}return[]},Ug=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map((([e,t])=>`direction-${e}-${t}`)):[`direction-xs-${String(e)}`],Yg=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Kg=Af(),Jg=vm("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Xg(e){return xm({props:e,name:"MuiGrid",defaultTheme:Kg})}const Qg=cu({},Df,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});function Zg(e){var t;return!!e[0].match(/^(typography|variants|breakpoints)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!(null==(t=e[1])||!t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}const eh=(e,t)=>Jf(e,t,"Mui"),th=(e,t)=>Xf(e,t,"Mui"),nh=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},rh=(e,t,n)=>{const r={};return Object.entries(t||{}).forEach((([t,o])=>{if(t.match(new RegExp(`${e}(color|bg|border)`,"i"))&&o){const e=n?n(t):o;t.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default",r["--Icon-color"]="currentColor"),t.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),t.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),nh(r,t,e)}})),r},oh=(e,t)=>{let n={};if(t){const{getCssVar:r,palette:o}=t;Object.entries(o).forEach((t=>{const[a,i]=t;(e=>e&&"object"==typeof e&&Object.keys(e).some((e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)})))(i)&&"object"==typeof i&&(n=cu({},n,{[a]:rh(e,i,(e=>`var(--variant-${e}, ${r(`palette-${a}-${e}`,o[a][e])})`))}))}))}return n.context=rh(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),n},ah=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],ih=["colorSchemes"];function lh(e){var t,n,r,o,a,i,l,s,c,u;const d=e||{},{cssVarPrefix:p="joy",breakpoints:f,spacing:m,components:g,variants:h,shouldSkipGeneratingVar:v=Zg}=d,b=Ep(d,ah),y=((e="joy")=>kg(e))(p),x={primary:iu.blue,neutral:iu.grey,danger:iu.red,success:iu.green,warning:iu.yellow,common:{white:"#FFF",black:"#000"}},w=e=>{var t;const n=e.split("-"),r=n[1],o=n[2];return y(e,null==(t=x[r])?void 0:t[o])},S=e=>({plainColor:w(`palette-${e}-500`),plainHoverBg:w(`palette-${e}-100`),plainActiveBg:w(`palette-${e}-200`),plainDisabledColor:w("palette-neutral-400"),outlinedColor:w(`palette-${e}-500`),outlinedBorder:w(`palette-${e}-300`),outlinedHoverBg:w(`palette-${e}-100`),outlinedActiveBg:w(`palette-${e}-200`),outlinedDisabledColor:w("palette-neutral-400"),outlinedDisabledBorder:w("palette-neutral-200"),softColor:w(`palette-${e}-700`),softBg:w(`palette-${e}-100`),softHoverBg:w(`palette-${e}-200`),softActiveColor:w(`palette-${e}-800`),softActiveBg:w(`palette-${e}-300`),softDisabledColor:w("palette-neutral-400"),softDisabledBg:w("palette-neutral-50"),solidColor:w("palette-common-white"),solidBg:w(`palette-${e}-500`),solidHoverBg:w(`palette-${e}-600`),solidActiveBg:w(`palette-${e}-700`),solidDisabledColor:w("palette-neutral-400"),solidDisabledBg:w("palette-neutral-100")}),C=e=>({plainColor:w(`palette-${e}-300`),plainHoverBg:w(`palette-${e}-800`),plainActiveBg:w(`palette-${e}-700`),plainDisabledColor:w("palette-neutral-500"),outlinedColor:w(`palette-${e}-200`),outlinedBorder:w(`palette-${e}-700`),outlinedHoverBg:w(`palette-${e}-800`),outlinedActiveBg:w(`palette-${e}-700`),outlinedDisabledColor:w("palette-neutral-500"),outlinedDisabledBorder:w("palette-neutral-800"),softColor:w(`palette-${e}-200`),softBg:w(`palette-${e}-800`),softHoverBg:w(`palette-${e}-700`),softActiveColor:w(`palette-${e}-100`),softActiveBg:w(`palette-${e}-600`),softDisabledColor:w("palette-neutral-500"),softDisabledBg:w("palette-neutral-800"),solidColor:w("palette-common-white"),solidBg:w(`palette-${e}-500`),solidHoverBg:w(`palette-${e}-600`),solidActiveBg:w(`palette-${e}-700`),solidDisabledColor:w("palette-neutral-500"),solidDisabledBg:w("palette-neutral-800")}),k={palette:{mode:"light",primary:cu({},x.primary,S("primary")),neutral:cu({},x.neutral,S("neutral"),{plainColor:w("palette-neutral-700"),plainHoverColor:w("palette-neutral-900"),outlinedColor:w("palette-neutral-700")}),danger:cu({},x.danger,S("danger")),success:cu({},x.success,S("success")),warning:cu({},x.warning,S("warning")),common:{white:"#FFF",black:"#000"},text:{primary:w("palette-neutral-800"),secondary:w("palette-neutral-700"),tertiary:w("palette-neutral-600"),icon:w("palette-neutral-500")},background:{body:w("palette-common-white"),surface:w("palette-neutral-50"),popup:w("palette-common-white"),level1:w("palette-neutral-100"),level2:w("palette-neutral-200"),level3:w("palette-neutral-300"),tooltip:w("palette-neutral-500"),backdrop:`rgba(${y("palette-neutral-darkChannel",Cm(x.neutral[900]))} / 0.25)`},divider:`rgba(${y("palette-neutral-mainChannel",Cm(x.neutral[500]))} / 0.2)`,focusVisible:w("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},O={palette:{mode:"dark",primary:cu({},x.primary,C("primary")),neutral:cu({},x.neutral,C("neutral"),{plainColor:w("palette-neutral-300"),plainHoverColor:w("palette-neutral-300")}),danger:cu({},x.danger,C("danger")),success:cu({},x.success,C("success")),warning:cu({},x.warning,C("warning")),common:{white:"#FFF",black:"#000"},text:{primary:w("palette-neutral-100"),secondary:w("palette-neutral-300"),tertiary:w("palette-neutral-400"),icon:w("palette-neutral-400")},background:{body:w("palette-common-black"),surface:w("palette-neutral-900"),popup:w("palette-common-black"),level1:w("palette-neutral-800"),level2:w("palette-neutral-700"),level3:w("palette-neutral-600"),tooltip:w("palette-neutral-600"),backdrop:`rgba(${y("palette-neutral-darkChannel",Cm(x.neutral[50]))} / 0.25)`},divider:`rgba(${y("palette-neutral-mainChannel",Cm(x.neutral[500]))} / 0.16)`,focusVisible:w("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},I='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',E=cu({body:`"Inter", ${y(`fontFamily-fallback, ${I}`)}`,display:`"Inter", ${y(`fontFamily-fallback, ${I}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:I},b.fontFamily),P=cu({sm:300,md:500,lg:600,xl:700},b.fontWeight),N=cu({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},b.fontSize),$=cu({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},b.lineHeight),z=null!=(t=null==(n=b.colorSchemes)||null==(n=n.light)?void 0:n.shadowRing)?t:k.shadowRing,R=null!=(r=null==(o=b.colorSchemes)||null==(o=o.light)?void 0:o.shadowChannel)?r:k.shadowChannel,D=null!=(a=null==(i=b.colorSchemes)||null==(i=i.light)?void 0:i.shadowOpacity)?a:k.shadowOpacity,T={colorSchemes:{light:k,dark:O},fontSize:N,fontFamily:E,fontWeight:P,focus:{thickness:"2px",selector:`&.${eh("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${y("focus-thickness",null!=(l=null==(s=b.focus)?void 0:s.thickness)?l:"2px")})`,outline:`${y("focus-thickness",null!=(c=null==(u=b.focus)?void 0:u.thickness)?c:"2px")} solid ${y("palette-focusVisible",x.primary[500])}`}},lineHeight:$,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${y("shadowRing",z)}, 0px 1px 2px 0px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,sm:`${y("shadowRing",z)}, 0px 1px 2px 0px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 2px 4px 0px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,md:`${y("shadowRing",z)}, 0px 2px 8px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 6px 12px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,lg:`${y("shadowRing",z)}, 0px 2px 8px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 12px 16px -4px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`,xl:`${y("shadowRing",z)}, 0px 2px 8px -2px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)}), 0px 20px 24px -4px rgba(${y("shadowChannel",R)} / ${y("shadowOpacity",D)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-xl, ${P.xl}`),fontSize:y(`fontSize-xl4, ${N.xl4}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},h2:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-xl, ${P.xl}`),fontSize:y(`fontSize-xl3, ${N.xl3}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},h3:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-lg, ${P.lg}`),fontSize:y(`fontSize-xl2, ${N.xl2}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},h4:{fontFamily:y(`fontFamily-display, ${E.display}`),fontWeight:y(`fontWeight-lg, ${P.lg}`),fontSize:y(`fontSize-xl, ${N.xl}`),lineHeight:y(`lineHeight-md, ${$.md}`),letterSpacing:"-0.025em",color:y(`palette-text-primary, ${k.palette.text.primary}`)},"title-lg":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-lg, ${P.lg}`),fontSize:y(`fontSize-lg, ${N.lg}`),lineHeight:y(`lineHeight-xs, ${$.xs}`),color:y(`palette-text-primary, ${k.palette.text.primary}`)},"title-md":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-md, ${P.md}`),fontSize:y(`fontSize-md, ${N.md}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-primary, ${k.palette.text.primary}`)},"title-sm":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-md, ${P.md}`),fontSize:y(`fontSize-sm, ${N.sm}`),lineHeight:y(`lineHeight-sm, ${$.sm}`),color:y(`palette-text-primary, ${k.palette.text.primary}`)},"body-lg":{fontFamily:y(`fontFamily-body, ${E.body}`),fontSize:y(`fontSize-lg, ${N.lg}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-secondary, ${k.palette.text.secondary}`)},"body-md":{fontFamily:y(`fontFamily-body, ${E.body}`),fontSize:y(`fontSize-md, ${N.md}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-secondary, ${k.palette.text.secondary}`)},"body-sm":{fontFamily:y(`fontFamily-body, ${E.body}`),fontSize:y(`fontSize-sm, ${N.sm}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-tertiary, ${k.palette.text.tertiary}`)},"body-xs":{fontFamily:y(`fontFamily-body, ${E.body}`),fontWeight:y(`fontWeight-md, ${P.md}`),fontSize:y(`fontSize-xs, ${N.xs}`),lineHeight:y(`lineHeight-md, ${$.md}`),color:y(`palette-text-tertiary, ${k.palette.text.tertiary}`)}}},j=b?$p(T,b):T,{colorSchemes:M}=j,A=Ep(j,ih),V=cu({colorSchemes:M},A,{breakpoints:Dp(null!=f?f:{}),components:$p({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:e,theme:t})=>{var n;const r=e.instanceFontSize;return cu({margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},!e.htmlColor&&cu({color:`var(--Icon-color, ${V.vars.palette.text.icon})`},e.color&&"inherit"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(n=t.vars.palette[e.color])?void 0:n.mainChannel} / 1)`}),r&&"inherit"!==r&&{"--Icon-fontSize":t.vars.fontSize[r]})}}}},g),cssVarPrefix:p,getCssVar:y,spacing:of(m)});Object.entries(V.colorSchemes).forEach((([e,t])=>{!function(e,t){Object.keys(t).forEach((n=>{const r={main:"500",light:"200",dark:"700"};"dark"===e&&(r.main=400),!t[n].mainChannel&&t[n][r.main]&&(t[n].mainChannel=Cm(t[n][r.main])),!t[n].lightChannel&&t[n][r.light]&&(t[n].lightChannel=Cm(t[n][r.light])),!t[n].darkChannel&&t[n][r.dark]&&(t[n].darkChannel=Cm(t[n][r.dark]))}))}(e,t.palette)}));const _={prefix:p,shouldSkipGeneratingVar:v},{vars:L,generateCssVars:F}=function(e,t){const{colorSchemes:n={},defaultColorScheme:r="light"}=e,o=Ep(e,zg),{vars:a,css:i,varsWithDefaults:l}=Pg(o,t);let s=l;const c={},{[r]:u}=n,d=Ep(n,[r].map($g));if(Object.entries(d||{}).forEach((([e,n])=>{const{vars:r,css:o,varsWithDefaults:a}=Pg(n,t);s=$p(s,a),c[e]={css:o,vars:r}})),u){const{css:e,vars:n,varsWithDefaults:o}=Pg(u,t);s=$p(s,o),c[r]={css:e,vars:n}}return{vars:s,generateCssVars:e=>{var n;if(!e){var r;const n=cu({},i);return{css:n,vars:a,selector:(null==t||null==(r=t.getSelector)?void 0:r.call(t,e,n))||":root"}}const o=cu({},c[e].css);return{css:o,vars:c[e].vars,selector:(null==t||null==(n=t.getSelector)?void 0:n.call(t,e,o))||":root"}}}}(cu({colorSchemes:M},A),_);V.vars=L,V.generateCssVars=F,V.unstable_sxConfig=cu({},Qg,null==e?void 0:e.unstable_sxConfig),V.unstable_sx=function(e){return Tf({sx:e,theme:this})},V.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;const B={getCssVar:y,palette:V.colorSchemes.light.palette};return V.variants=$p({plain:oh("plain",B),plainHover:oh("plainHover",B),plainActive:oh("plainActive",B),plainDisabled:oh("plainDisabled",B),outlined:oh("outlined",B),outlinedHover:oh("outlinedHover",B),outlinedActive:oh("outlinedActive",B),outlinedDisabled:oh("outlinedDisabled",B),soft:oh("soft",B),softHover:oh("softHover",B),softActive:oh("softActive",B),softDisabled:oh("softDisabled",B),solid:oh("solid",B),solidHover:oh("solidHover",B),solidActive:oh("solidActive",B),solidDisabled:oh("solidDisabled",B)},h),V.palette=cu({},V.colorSchemes.light.palette,{colorScheme:"light"}),V.shouldSkipGeneratingVar=v,V.applyStyles=jf,V}const sh=lh(),ch="data-joy-color-scheme",uh="joy-color-scheme",dh="light",ph="dark",fh="joy-mode",{CssVarsProvider:mh,useColorScheme:gh,getInitColorSchemeScript:hh}=function(t){const{themeId:n,theme:r={},attribute:a=bg,modeStorageKey:i=hg,colorSchemeStorageKey:l=vg,defaultMode:s="light",defaultColorScheme:c,disableTransitionOnChange:u=!1,resolveTheme:d,excludeVariablesFromRoot:p}=t;(!r.colorSchemes||"string"==typeof c&&!r.colorSchemes[c]||"object"==typeof c&&!r.colorSchemes[null==c?void 0:c.light]||"object"==typeof c&&!r.colorSchemes[null==c?void 0:c.dark])&&console.error(`MUI: \`${c}\` does not exist in \`theme.colorSchemes\`.`);const f=o.createContext(void 0);function m(t){const{children:m,theme:g=r,modeStorageKey:h=i,colorSchemeStorageKey:v=l,attribute:b=a,defaultMode:y=s,defaultColorScheme:x=c,disableTransitionOnChange:w=u,storageWindow:S=("undefined"==typeof window?void 0:window),documentNode:C=("undefined"==typeof document?void 0:document),colorSchemeNode:k=("undefined"==typeof document?void 0:document.documentElement),colorSchemeSelector:O=":root",disableNestedContext:I=!1,disableStyleSheetGeneration:E=!1}=t,P=o.useRef(!1),N=ag(),$=o.useContext(f),z=!!$&&!I,R=g[n],D=R||g,{colorSchemes:T={},components:j={},generateCssVars:M=(()=>({vars:{},css:{}})),cssVarPrefix:A}=D,V=Ep(D,Cg),_=Object.keys(T),L="string"==typeof x?x:x.light,F="string"==typeof x?x:x.dark,{mode:B,setMode:H,systemMode:W,lightColorScheme:G,darkColorScheme:q,colorScheme:U,setColorScheme:Y}=Sg({supportedColorSchemes:_,defaultLightColorScheme:L,defaultDarkColorScheme:F,modeStorageKey:h,colorSchemeStorageKey:v,defaultMode:y,storageWindow:S});let K=B,J=U;z&&(K=$.mode,J=$.colorScheme);const X=J||("dark"===(K||("system"===y?s:y))?F:L),{css:Q,vars:Z}=M(),ee=cu({},V,{components:j,colorSchemes:T,cssVarPrefix:A,vars:Z,getColorSchemeSelector:e=>`[${b}="${e}"] &`}),te={},ne={};Object.entries(T).forEach((([e,t])=>{const{css:n,vars:r}=M(e);ee.vars=$p(ee.vars,r),e===X&&(Object.keys(t).forEach((e=>{t[e]&&"object"==typeof t[e]?ee[e]=cu({},ee[e],t[e]):ee[e]=t[e]})),ee.palette&&(ee.palette.colorScheme=e));if(e===("string"==typeof x?x:"dark"===y?x.dark:x.light)){if(p){const t={};p(A).forEach((e=>{t[e]=n[e],delete n[e]})),te[`[${b}="${e}"]`]=t}te[`${O}, [${b}="${e}"]`]=n}else ne[`${":root"===O?"":O}[${b}="${e}"]`]=n})),ee.vars=$p(ee.vars,Z),o.useEffect((()=>{J&&k&&k.setAttribute(b,J)}),[J,b,k]),o.useEffect((()=>{let e;if(w&&P.current&&C){const t=C.createElement("style");t.appendChild(C.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),C.head.appendChild(t),window.getComputedStyle(C.body),e=setTimeout((()=>{C.head.removeChild(t)}),1)}return()=>{clearTimeout(e)}}),[J,w,C]),o.useEffect((()=>(P.current=!0,()=>{P.current=!1})),[]);const re=o.useMemo((()=>({allColorSchemes:_,colorScheme:J,darkColorScheme:q,lightColorScheme:G,mode:K,setColorScheme:Y,setMode:H,systemMode:W})),[_,J,q,G,K,Y,H,W]);let oe=!0;(E||z&&(null==N?void 0:N.cssVarPrefix)===A)&&(oe=!1);const ae=e.jsxs(o.Fragment,{children:[oe&&e.jsxs(o.Fragment,{children:[e.jsx(Op,{styles:{[O]:Q}}),e.jsx(Op,{styles:te}),e.jsx(Op,{styles:ne})]}),e.jsx(gg,{themeId:R?n:void 0,theme:d?d(ee):ee,children:m})]});return z?ae:e.jsx(f.Provider,{value:re,children:ae})}"production"!==process.env.NODE_ENV&&(f.displayName="ColorSchemeContext"),"production"!==process.env.NODE_ENV&&(m.propTypes={attribute:Ga.string,children:Ga.node,colorSchemeNode:Ga.any,colorSchemeSelector:Ga.string,colorSchemeStorageKey:Ga.string,defaultColorScheme:Ga.oneOfType([Ga.string,Ga.object]),defaultMode:Ga.string,disableNestedContext:Ga.bool,disableStyleSheetGeneration:Ga.bool,disableTransitionOnChange:Ga.bool,documentNode:Ga.any,modeStorageKey:Ga.string,storageWindow:Ga.any,theme:Ga.object});const g="string"==typeof c?c:c.light,h="string"==typeof c?c:c.dark;return{CssVarsProvider:m,useColorScheme:()=>{const e=o.useContext(f);if(!e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `useColorScheme` must be called under <CssVarsProvider />":su(19));return e},getInitColorSchemeScript:t=>function(t){const{defaultMode:n="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:o="dark",modeStorageKey:a=hg,colorSchemeStorageKey:i=vg,attribute:l=bg,colorSchemeNode:s="document.documentElement",nonce:c}=t||{};return e.jsx("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?c:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n var mode = localStorage.getItem('${a}') || '${n}';\n var colorScheme = '';\n if (mode === 'system') {\n // handle system mode\n var mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = localStorage.getItem('${i}-dark') || '${o}';\n } else {\n colorScheme = localStorage.getItem('${i}-light') || '${r}';\n }\n }\n if (mode === 'light') {\n colorScheme = localStorage.getItem('${i}-light') || '${r}';\n }\n if (mode === 'dark') {\n colorScheme = localStorage.getItem('${i}-dark') || '${o}';\n }\n if (colorScheme) {\n ${s}.setAttribute('${l}', colorScheme);\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}(cu({attribute:a,colorSchemeStorageKey:l,defaultMode:s,defaultLightColorScheme:g,defaultDarkColorScheme:h,modeStorageKey:i},t))}}({themeId:lu,theme:sh,attribute:ch,modeStorageKey:fh,colorSchemeStorageKey:uh,defaultColorScheme:{light:dh,dark:ph}}),vh=hm({defaultTheme:sh,themeId:lu});function bh({props:e,name:t}){return xm({props:e,name:t,defaultTheme:cu({},sh,{components:{}}),themeId:lu})}function yh(e,t,n){return void 0===e||"string"==typeof e?t:cu({},t,{ownerState:cu({},t.ownerState,n)})}function xh(e,t,n=((e,t)=>e===t)){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}const wh={disableDefaultClasses:!1},Sh=o.createContext(wh);function Ch(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function kh(e,t,n){return"function"==typeof e?e(t,n):e}function Oh(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Ih(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=Uf(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=cu({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=cu({},n,o,r);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=Ch(cu({},o,r)),l=Oh(r),s=Oh(o),c=t(i),u=Uf(null==c?void 0:c.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),d=cu({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=cu({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}"production"!==process.env.NODE_ENV&&(Sh.displayName="ClassNameConfiguratorContext");const Eh=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ph(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Ep(e,Eh),l=a?{}:kh(r,o),{props:s,internalRef:c}=Ih(cu({},i,{externalSlotProps:l}));return yh(n,cu({},s,{ref:Fm(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const Nh="base";function $h(e,t){const n=Kf[t];return n?`${Nh}--${n}`:function(e,t){return`${Nh}-${e}-${t}`}(e,t)}function zh(e={}){const{disabled:t=!1,focusableWhenDisabled:n,href:r,rootRef:a,tabIndex:i,to:l,type:s,rootElementName:c}=e,u=o.useRef(),[d,p]=o.useState(!1),{isFocusVisibleRef:f,onFocus:m,onBlur:g,ref:h}=Xm(),[v,b]=o.useState(!1);t&&!n&&v&&b(!1),o.useEffect((()=>{f.current=v}),[v,f]);const[y,x]=function(e){const{rootElementName:t="",componentName:n}=e,[r,a]=o.useState(t.toUpperCase());"production"!==process.env.NODE_ENV&&o.useEffect((()=>{t&&r!==t.toUpperCase()&&console.error(`useRootElementName: the \`rootElementName\` prop of ${n?`the ${n} component`:"a component"} expected the '${t}' element, but a '${r.toLowerCase()}' was rendered instead`,"This may cause hydration issues in an SSR context, for example in a Next.js app")}),[t,r,n]);const i=o.useCallback((e=>{var t;a(null!=(t=null==e?void 0:e.tagName)?t:"")}),[]);return[r,i]}({rootElementName:null!=c?c:r||l?"a":void 0,componentName:"Button"}),w=e=>t=>{var n;v&&t.preventDefault(),null==(n=e.onMouseLeave)||n.call(e,t)},S=e=>t=>{var n,r;(u.current||(u.current=t.currentTarget),m(t),!0===f.current)&&(b(!0),null==(r=e.onFocusVisible)||r.call(e,t));null==(n=e.onFocus)||n.call(e,t)},C=()=>{const e=u.current;return"BUTTON"===y||"INPUT"===y&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===y&&(null==e?void 0:e.href)},k=e=>n=>{var r;t||(null==(r=e.onClick)||r.call(e,n))},O=e=>n=>{var r;t||(p(!0),document.addEventListener("mouseup",(()=>{p(!1)}),{once:!0})),null==(r=e.onMouseDown)||r.call(e,n)},I=e=>n=>{var r,o;(null==(r=e.onKeyDown)||r.call(e,n),n.defaultMuiPrevented)||(n.target!==n.currentTarget||C()||" "!==n.key||n.preventDefault(),n.target!==n.currentTarget||" "!==n.key||t||p(!0),n.target!==n.currentTarget||C()||"Enter"!==n.key||t||(null==(o=e.onClick)||o.call(e,n),n.preventDefault()))},E=e=>n=>{var r,o;(n.target===n.currentTarget&&p(!1),null==(r=e.onKeyUp)||r.call(e,n),n.target!==n.currentTarget||C()||t||" "!==n.key||n.defaultMuiPrevented)||(null==(o=e.onClick)||o.call(e,n))},P=Fm(x,a,h,u),N={};void 0!==i&&(N.tabIndex=i),"BUTTON"===y?(N.type=null!=s?s:"button",n?N["aria-disabled"]=t:N.disabled=t):"INPUT"===y?s&&["button","submit","reset"].includes(s)&&(n?N["aria-disabled"]=t:N.disabled=t):""!==y&&(r||l||(N.role="button",N.tabIndex=null!=i?i:0),t&&(N["aria-disabled"]=t,N.tabIndex=n?null!=i?i:0:-1));return{getRootProps:(t={})=>{const n=cu({},Ch(e),Ch(t)),r=cu({type:s},n,N,t,{onBlur:(o=n,e=>{var t;g(e),!1===f.current&&b(!1),null==(t=o.onBlur)||t.call(o,e)}),onClick:k(n),onFocus:S(n),onKeyDown:I(n),onKeyUp:E(n),onMouseDown:O(n),onMouseLeave:w(n),ref:P});var o;return delete r.onFocusVisible,r},focusVisible:v,setFocusVisible:b,active:d,rootRef:P}}const Rh=o.createContext(null);function Dh(e,t){return e===t}"production"!==process.env.NODE_ENV&&(Rh.displayName="DropdownContext");const Th={},jh=()=>{};function Mh(e,t){const n=cu({},e);return Object.keys(t).forEach((e=>{void 0!==t[e]&&(n[e]=t[e])})),n}function Ah(e){const t=o.useRef(null),{reducer:n,initialState:r,controlledProps:a=Th,stateComparers:i=Th,onStateChange:l=jh,actionContext:s,componentName:c=""}=e,u=o.useRef(a);"production"!==process.env.NODE_ENV&&o.useEffect((()=>{Object.keys(a).forEach((e=>{void 0!==u.current[e]&&void 0===a[e]&&console.error(`useControllableReducer: ${c?`The ${c} component`:"A component"} is changing a controlled prop to be uncontrolled: ${e}`),void 0===u.current[e]&&void 0!==a[e]&&console.error(`useControllableReducer: ${c?`The ${c} component`:"A component"} is changing an uncontrolled prop to be controlled: ${e}`)}))}),[a,c]);const d=o.useCallback(((e,r)=>{t.current=r;const o=Mh(e,a);return n(o,r)}),[a,n]),[p,f]=o.useReducer(d,r),m=o.useCallback((e=>{f(cu({},e,{context:s}))}),[s]);return function(e){const{nextState:t,initialState:n,stateComparers:r,onStateChange:a,controlledProps:i,lastActionRef:l}=e,s=o.useRef(n);o.useEffect((()=>{if(null===l.current)return;const e=Mh(s.current,i);Object.keys(t).forEach((n=>{var o;const i=null!=(o=r[n])?o:Dh,s=t[n],c=e[n];var u,d;(null==c&&null!=s||null!=c&&null==s||null!=c&&null!=s&&!i(s,c))&&(null==a||a(null!=(u=l.current.event)?u:null,n,s,null!=(d=l.current.type)?d:"",t))})),s.current=t,l.current=null}),[s,t,l,a,r,i])}({nextState:p,initialState:r,stateComparers:null!=i?i:Th,onStateChange:null!=l?l:jh,controlledProps:a,lastActionRef:t}),[Mh(p,a),m]}const Vh={blur:"dropdown:blur",escapeKeyDown:"dropdown:escapeKeyDown",toggle:"dropdown:toggle",open:"dropdown:open",close:"dropdown:close"};function _h(e,t){switch(t.type){case Vh.blur:case Vh.escapeKeyDown:return{open:!1,changeReason:t.event};case Vh.toggle:return{open:!e.open,changeReason:t.event};case Vh.open:return{open:!0,changeReason:t.event};case Vh.close:return{open:!1,changeReason:t.event};default:throw new Error("Unhandled action")}}function Lh(t){const{children:n,open:r,defaultOpen:a,onOpenChange:i}=t,{contextValue:l}=function(e={}){const{defaultOpen:t,onOpenChange:n,open:r,componentName:a="useDropdown"}=e,[i,l]=o.useState(""),[s,c]=o.useState(null),u=o.useRef(null),d=o.useCallback(((e,t,r,o)=>{"open"===t&&(null==n||n(e,r)),u.current=o}),[n]),p=o.useMemo((()=>void 0!==r?{open:r}:{}),[r]),[f,m]=Ah({controlledProps:p,initialState:t?{open:!0,changeReason:null}:{open:!1,changeReason:null},onStateChange:d,reducer:_h,componentName:a});return o.useEffect((()=>{f.open||null===u.current||u.current===Vh.blur||null==s||s.focus()}),[f.open,s]),{contextValue:{state:f,dispatch:m,popupId:i,registerPopup:l,registerTrigger:c,triggerElement:s},open:f.open}}({defaultOpen:a,onOpenChange:i,open:r});return e.jsx(Rh.Provider,{value:l,children:n})}"production"!==process.env.NODE_ENV&&(Lh.propTypes={children:Ga.node,defaultOpen:Ga.bool,onOpenChange:Ga.func,open:Ga.bool}),"production"!==process.env.NODE_ENV&&(Lh.propTypes=Pm(Lh.propTypes));const Fh=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Bh(e){const t=[],n=[];return Array.from(e.querySelectorAll(Fh)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Hh(){return!0}function Wh(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:a=!1,disableRestoreFocus:i=!1,getTabbable:l=Bh,isEnabled:s=Hh,open:c}=t,u=o.useRef(!1),d=o.useRef(null),p=o.useRef(null),f=o.useRef(null),m=o.useRef(null),g=o.useRef(!1),h=o.useRef(null),v=Fm(n.ref,h),b=o.useRef(null);o.useEffect((()=>{c&&h.current&&(g.current=!r)}),[r,c]),o.useEffect((()=>{if(!c||!h.current)return;const e=Dm(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||("production"!==process.env.NODE_ENV&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join("\n")),h.current.setAttribute("tabIndex","-1")),g.current&&h.current.focus()),()=>{i||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}}),[c]),o.useEffect((()=>{if(!c||!h.current)return;const e=Dm(h.current),t=t=>{b.current=t,!a&&s()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,p.current&&p.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(a&&e.activeElement!==d.current&&e.activeElement!==p.current)return;if(e.activeElement!==m.current)m.current=null;else if(null!==m.current)return;if(!g.current)return;let n=[];if(e.activeElement!==d.current&&e.activeElement!==p.current||(n=l(h.current)),n.length>0){var r,o;const e=Boolean((null==(r=b.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=b.current)?void 0:o.key)),t=n[0],a=n[n.length-1];"string"!=typeof t&&"string"!=typeof a&&(e?a.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[r,a,i,s,c,l]);const y=e=>{null===f.current&&(f.current=e.relatedTarget),g.current=!0};return e.jsxs(o.Fragment,{children:[e.jsx("div",{tabIndex:c?0:-1,onFocus:y,ref:d,"data-testid":"sentinelStart"}),o.cloneElement(n,{ref:v,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),g.current=!0,m.current=e.target;const t=n.props.onFocus;t&&t(e)}}),e.jsx("div",{tabIndex:c?0:-1,onFocus:y,ref:p,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(Wh.propTypes={children:Im,disableAutoFocus:Ga.bool,disableEnforceFocus:Ga.bool,disableRestoreFocus:Ga.bool,getTabbable:Ga.func,isEnabled:Ga.func,open:Ga.bool.isRequired}),"production"!==process.env.NODE_ENV&&(Wh.propTypes=Pm(Wh.propTypes));const Gh=o.createContext(void 0);function qh(e={}){const{defaultValue:t,disabled:n=!1,error:r=!1,onBlur:a,onChange:i,onFocus:l,required:s=!1,value:c,inputRef:u}=e,d=o.useContext(Gh);let p,f,m,g,h;var v,b,y;if(d){if(p=void 0,f=null!=(v=d.disabled)&&v,m=null!=(b=d.error)&&b,g=null!=(y=d.required)&&y,h=d.value,"production"!==process.env.NODE_ENV){const t=["defaultValue","disabled","error","required","value"].filter((t=>void 0!==e[t]));t.length>0&&console.warn(["MUI: You have set props on an input that is inside a FormControl.","Set these props on a FormControl instead. Otherwise they will be ignored.",`Ignored props: ${t.join(", ")}`].join("\n"))}}else p=t,f=n,m=r,g=s,h=c;const{current:x}=o.useRef(null!=h),w=o.useCallback((e=>{"production"!==process.env.NODE_ENV&&e&&"INPUT"!==e.nodeName&&!e.focus&&console.error(["MUI: You have provided a `slots.input` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join("\n"))}),[]),S=o.useRef(null),C=Fm(S,u,w),[k,O]=o.useState(!1);o.useEffect((()=>{!d&&f&&k&&(O(!1),null==a||a())}),[d,f,k,a]);const I=e=>t=>{var n,r;null!=d&&d.disabled?t.stopPropagation():(null==(n=e.onFocus)||n.call(e,t),d&&d.onFocus?null==d||null==(r=d.onFocus)||r.call(d):O(!0))},E=e=>(t,...n)=>{var r,o;if(!x){if(null==(t.target||S.current))throw new Error("production"!==process.env.NODE_ENV?"MUI: Expected valid input target. Did you use a custom `slots.input` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":su(17))}null==d||null==(r=d.onChange)||r.call(d,t),null==(o=e.onChange)||o.call(e,t,...n)};return{disabled:f,error:m,focused:k,formControlContext:d,getInputProps:(e={})=>{const t=cu({},{onBlur:a,onChange:i,onFocus:l},Ch(e)),n=cu({},t,{onBlur:(r=t,e=>{var t;null==(t=r.onBlur)||t.call(r,e),d&&d.onBlur?d.onBlur():O(!1)}),onChange:E(t),onFocus:I(t)});var r;return cu({},n,{"aria-invalid":m||void 0,defaultValue:p,value:h,required:g,disabled:f},e,{ref:C},n)},getRootProps:(t={})=>{const n=cu({},Ch(e,["onBlur","onChange","onFocus"]),Ch(t));return cu({},t,n,{onClick:(r=n,e=>{var t;S.current&&e.currentTarget===e.target&&S.current.focus(),null==(t=r.onClick)||t.call(r,e)})});var r},inputRef:C,required:g,value:h}}"production"!==process.env.NODE_ENV&&(Gh.displayName="FormControlContext");const Uh={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function Yh(e,t,n){var r;const{items:o,isItemDisabled:a,disableListWrap:i,disabledItemsFocusable:l,itemComparer:s,focusManagement:c}=n,u="DOM"===c?0:-1,d=o.length-1,p=null==e?-1:o.findIndex((t=>s(t,e)));let f,m,g=!i;switch(t){case"reset":if(-1===u)return null;f=0,m="next",g=!1;break;case"start":f=0,m="next",g=!1;break;case"end":f=d,m="previous",g=!1;break;default:{const e=p+t;e<0?!g&&-1!==p||Math.abs(t)>1?(f=0,m="next"):(f=d,m="previous"):e>d?!g||Math.abs(t)>1?(f=d,m="previous"):(f=0,m="next"):(f=e,m=t>=0?"next":"previous")}}const h=function(e,t,n,r,o,a){if(0===n.length||!r&&n.every(((e,t)=>o(e,t))))return-1;let i=e;for(;;){if(!a&&"next"===t&&i===n.length||!a&&"previous"===t&&-1===i)return-1;if(r||!o(n[i],i))return i;i+="next"===t?1:-1,a&&(i=(i+n.length)%n.length)}}(f,m,o,l,a,g);return-1!==h||null===e||a(e,p)?null!=(r=o[h])?r:null:e}function Kh(e,t,n){const{itemComparer:r,isItemDisabled:o,selectionMode:a,items:i}=n,{selectedValues:l}=t,s=i.findIndex((t=>r(e,t)));if(o(e,s))return t;const c=function(e,t,n,r){return"none"===n?[]:"single"===n?r(t[0],e)?t:[e]:t.some((t=>r(t,e)))?t.filter((t=>!r(t,e))):[...t,e]}(e,l,a,r);return cu({},t,{selectedValues:c,highlightedValue:e})}function Jh(e,t,n){var r;const o=null==(r=n(e))?void 0:r.trim().toLowerCase();return!(!o||0===o.length)&&0===o.indexOf(t)}function Xh(e,t){const{type:n,context:r}=t;switch(n){case Uh.keyDown:return function(e,t,n){const r=t.highlightedValue,{orientation:o,pageSize:a}=n;switch(e){case"Home":return cu({},t,{highlightedValue:Yh(r,"start",n)});case"End":return cu({},t,{highlightedValue:Yh(r,"end",n)});case"PageUp":return cu({},t,{highlightedValue:Yh(r,-a,n)});case"PageDown":return cu({},t,{highlightedValue:Yh(r,a,n)});case"ArrowUp":if("vertical"!==o)break;return cu({},t,{highlightedValue:Yh(r,-1,n)});case"ArrowDown":if("vertical"!==o)break;return cu({},t,{highlightedValue:Yh(r,1,n)});case"ArrowLeft":if("vertical"===o)break;return cu({},t,{highlightedValue:Yh(r,"horizontal-ltr"===o?-1:1,n)});case"ArrowRight":if("vertical"===o)break;return cu({},t,{highlightedValue:Yh(r,"horizontal-ltr"===o?1:-1,n)});case"Enter":case" ":return null===t.highlightedValue?t:Kh(t.highlightedValue,t,n)}return t}(t.key,e,r);case Uh.itemClick:return Kh(t.item,e,r);case Uh.blur:return function(e,t){return"DOM"===t.focusManagement?e:cu({},e,{highlightedValue:null})}(e,r);case Uh.textNavigation:return function(e,t,n){const{items:r,isItemDisabled:o,disabledItemsFocusable:a,getItemAsString:i}=n,l=t.length>1;let s=l?e.highlightedValue:Yh(e.highlightedValue,1,n);for(let c=0;c<r.length;c+=1){if(!s||!l&&e.highlightedValue===s)return e;if(Jh(s,t,i)&&(!o(s,r.indexOf(s))||a))return cu({},e,{highlightedValue:s});s=Yh(s,1,n)}return e}(e,t.searchString,r);case Uh.itemsChange:return function(e,t,n,r){var o;const{itemComparer:a,focusManagement:i}=r;let l=null;var s;null!=n.highlightedValue?l=null!=(s=e.find((e=>a(e,n.highlightedValue))))?s:null:"DOM"===i&&0===t.length&&(l=Yh(null,"reset",r));const c=(null!=(o=n.selectedValues)?o:[]).filter((t=>e.some((e=>a(e,t)))));return cu({},n,{highlightedValue:l,selectedValues:c})}(t.items,t.previousItems,e,r);case Uh.resetHighlight:return function(e,t){return cu({},e,{highlightedValue:Yh(null,"reset",t)})}(e,r);case Uh.highlightLast:return function(e,t){return cu({},e,{highlightedValue:Yh(null,"end",t)})}(e,r);case Uh.clearSelection:return function(e,t){return cu({},e,{selectedValues:[],highlightedValue:Yh(null,"reset",t)})}(e,r);default:return e}}const Qh=500;const Zh={},ev=()=>{},tv=(e,t)=>e===t,nv=()=>!1,rv=e=>"string"==typeof e?e:String(e),ov=()=>({highlightedValue:null,selectedValues:[]});function av(e){const{controlledProps:t=Zh,disabledItemsFocusable:n=!1,disableListWrap:r=!1,focusManagement:a="activeDescendant",getInitialState:i=ov,getItemDomElement:l,getItemId:s,isItemDisabled:c=nv,rootRef:u,onStateChange:d=ev,items:p,itemComparer:f=tv,getItemAsString:m=rv,onChange:g,onHighlightChange:h,onItemsChange:v,orientation:b="vertical",pageSize:y=5,reducerActionContext:x=Zh,selectionMode:w="single",stateReducer:S,componentName:C="useList"}=e;if("production"!==process.env.NODE_ENV){if("DOM"===a&&null==l)throw new Error("useList: The `getItemDomElement` prop is required when using the `DOM` focus management.");if("activeDescendant"===a&&null==s)throw new Error("useList: The `getItemId` prop is required when using the `activeDescendant` focus management.")}const k=o.useRef(null),O=Fm(u,k),I=o.useCallback(((e,t,n)=>{var r;(null==h||h(e,t,n),"DOM"!==a||null==t||n!==Uh.itemClick&&n!==Uh.keyDown&&n!==Uh.textNavigation)||(null==l||null==(r=l(t))||r.focus())}),[l,h,a]),E=o.useMemo((()=>({highlightedValue:f,selectedValues:(e,t)=>xh(e,t,f)})),[f]),P=o.useCallback(((e,t,n,r,o)=>{switch(null==d||d(e,t,n,r,o),t){case"highlightedValue":I(e,n,r);break;case"selectedValues":null==g||g(e,n,r)}}),[I,g,d]),N=o.useMemo((()=>({disabledItemsFocusable:n,disableListWrap:r,focusManagement:a,isItemDisabled:c,itemComparer:f,items:p,getItemAsString:m,onHighlightChange:I,orientation:b,pageSize:y,selectionMode:w,stateComparers:E})),[n,r,a,c,f,p,m,I,b,y,w,E]),$=i(),z=null!=S?S:Xh,R=o.useMemo((()=>cu({},x,N)),[x,N]),[D,T]=Ah({reducer:z,actionContext:R,initialState:$,controlledProps:t,stateComparers:E,onStateChange:P,componentName:C}),{highlightedValue:j,selectedValues:M}=D,A=function(e){const t=o.useRef({searchString:"",lastTime:null});return o.useCallback((n=>{if(1===n.key.length&&" "!==n.key){const r=t.current,o=n.key.toLowerCase(),a=performance.now();r.searchString.length>0&&r.lastTime&&a-r.lastTime>Qh?r.searchString=o:1===r.searchString.length&&o===r.searchString||(r.searchString+=o),r.lastTime=a,e(r.searchString,n)}}),[e])}(((e,t)=>T({type:Uh.textNavigation,event:t,searchString:e}))),V=o.useRef([]);o.useEffect((()=>{xh(V.current,p,f)||(T({type:Uh.itemsChange,event:null,items:p,previousItems:V.current}),V.current=p,null==v||v(p))}),[p,f,T,v]);const _=e=>t=>{var n;if(null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented)return;const r=["Home","End","PageUp","PageDown"];"vertical"===b?r.push("ArrowUp","ArrowDown"):r.push("ArrowLeft","ArrowRight"),"activeDescendant"===a&&r.push(" ","Enter"),r.includes(t.key)&&t.preventDefault(),T({type:Uh.keyDown,key:t.key,event:t}),A(t)},L=o.useCallback((e=>{const t=(null!=M?M:[]).some((t=>null!=t&&f(e,t))),n=null!=j&&f(e,j);return{focusable:"DOM"===a,highlighted:n,selected:t}}),[f,M,j,a]),F=o.useMemo((()=>({dispatch:T,getItemState:L})),[T,L]);return o.useDebugValue({state:D}),{contextValue:F,dispatch:T,getRootProps:(e={})=>{const t=Ch(e);return cu({},e,{"aria-activedescendant":"activeDescendant"===a&&null!=j?s(j):void 0,tabIndex:"DOM"===a?-1:0,ref:O},t,{onBlur:(n=t,e=>{var t,r;null==(t=n.onBlur)||t.call(n,e),e.defaultMuiPrevented||null!=(r=k.current)&&r.contains(e.relatedTarget)||T({type:Uh.blur,event:e})}),onKeyDown:_(t)});var n},rootRef:O,state:D}}const iv=o.createContext(null);function lv(e,t){if(t.type===Uh.itemHover)return cu({},e,{highlightedValue:t.item});const n=Xh(e,t);if(null===n.highlightedValue&&t.context.items.length>0)return cu({},n,{highlightedValue:t.context.items[0]});if(t.type===Uh.keyDown&&"Escape"===t.event.key)return cu({},n,{open:!1});var r;if(t.type===Uh.blur&&(null==(r=t.context.listboxRef.current)||!r.contains(t.event.relatedTarget))){var o,a;const e=null==(o=t.context.listboxRef.current)?void 0:o.getAttribute("id"),r=null==(a=t.event.relatedTarget)?void 0:a.getAttribute("aria-controls");return e&&r&&e===r?n:cu({},n,{open:!1,highlightedValue:t.context.items[0]})}return n}"production"!==process.env.NODE_ENV&&(iv.displayName="ListContext");const sv=o.createContext(null);function cv(){const[e,t]=o.useState(new Map),n=o.useRef(new Set),r=o.useCallback((function(e){n.current.delete(e),t((t=>{const n=new Map(t);return n.delete(e),n}))}),[]),a=o.useCallback((function(e,o){let a;return a="function"==typeof e?e(n.current):e,n.current.add(a),t((e=>{const t=new Map(e);return t.set(a,o),t})),{id:a,deregister:()=>r(a)}}),[r]),i=o.useMemo((()=>function(e){const t=Array.from(e.keys()).map((t=>({key:t,subitem:e.get(t)})));return t.sort(((e,t)=>{const n=e.subitem.ref.current,r=t.subitem.ref.current;return null===n||null===r||n===r?0:n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING?1:-1})),new Map(t.map((e=>[e.key,e.subitem])))}(e)),[e]),l=o.useCallback((function(e){return Array.from(i.keys()).indexOf(e)}),[i]);return{contextValue:o.useMemo((()=>({getItemIndex:l,registerItem:a,totalSubitemCount:e.size})),[l,a,e.size]),subitems:i}}function uv(e,t){return function(n={}){const r=cu({},n,e(n));return cu({},r,t(r))}}"production"!==process.env.NODE_ENV&&(sv.displayName="CompoundComponentContext");const dv={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0,changeReason:null},triggerElement:null};function pv(t){const{value:n,children:r}=t,{dispatch:a,getItemIndex:i,getItemState:l,registerItem:s,totalSubitemCount:c}=n,u=o.useMemo((()=>({dispatch:a,getItemState:l,getItemIndex:i})),[a,i,l]),d=o.useMemo((()=>({getItemIndex:i,registerItem:s,totalSubitemCount:c})),[s,i,c]);return e.jsx(sv.Provider,{value:d,children:e.jsx(iv.Provider,{value:u,children:r})})}const fv=o.forwardRef((function(t,n){const{children:r,container:i,disablePortal:l=!1}=t,[s,c]=o.useState(null),u=Fm(o.isValidElement(r)?r.ref:null,n);if(wm((()=>{l||c(function(e){return"function"==typeof e?e():e}(i)||document.body)}),[i,l]),wm((()=>{if(s&&!l)return jm(n,s),()=>{jm(n,null)}}),[n,s,l]),l){if(o.isValidElement(r)){const e={ref:u};return o.cloneElement(r,e)}return e.jsx(o.Fragment,{children:r})}return e.jsx(o.Fragment,{children:s?a.createPortal(r,s):s})}));function mv(e){return`menu-item-${e.size}`}"production"!==process.env.NODE_ENV&&(fv.propTypes={children:Ga.node,container:Ga.oneOfType([Nm,Ga.func]),disablePortal:Ga.bool}),"production"!==process.env.NODE_ENV&&(fv.propTypes=Pm(fv.propTypes));const gv={dispatch:()=>{},popupId:"",registerPopup:()=>{},registerTrigger:()=>{},state:{open:!0,changeReason:null},triggerElement:null};function hv(e){var t;const{disabled:n=!1,id:r,rootRef:a,label:i,disableFocusOnHover:l=!1}=e,s=Vm(r),c=o.useRef(null),u=o.useMemo((()=>({disabled:n,id:null!=s?s:"",label:i,ref:c})),[n,s,i]),{dispatch:d}=null!=(t=o.useContext(Rh))?t:gv,{getRootProps:p,highlighted:f}=function(e){const{handlePointerOverEvents:t=!1,item:n}=e,r=o.useContext(iv);if(!r)throw new Error("useListItem must be used within a ListProvider");const{dispatch:a,getItemState:i}=r,{highlighted:l,selected:s,focusable:c}=i(n),u=o.useCallback((e=>t=>{var r;if(null==(r=e.onClick)||r.call(e,t),!t.defaultPrevented){if("production"!==process.env.NODE_ENV&&void 0===n)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join("\n"));a({type:Uh.itemClick,item:n,event:t})}}),[a,n]),d=o.useCallback((e=>t=>{var r;if(null==(r=e.onMouseOver)||r.call(e,t),!t.defaultPrevented){if("production"!==process.env.NODE_ENV&&void 0===n)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join("\n"));a({type:Uh.itemHover,item:n,event:t})}}),[a,n]);let p;return c&&(p=l?0:-1),{getRootProps:(e={})=>{const n=Ch(e);return cu({},e,{onClick:u(n),onPointerOver:t?d(n):void 0,tabIndex:p})},highlighted:l,selected:s}}({item:s,handlePointerOverEvents:!l}),{index:m,totalItemCount:g}=function(e,t){const n=o.useContext(sv);if(null===n)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:r}=n,[a,i]=o.useState("function"==typeof e?void 0:e);return wm((()=>{const{id:n,deregister:o}=r(e,t);return i(n),o}),[r,t,e]),{id:a,index:void 0!==a?n.getItemIndex(a):-1,totalItemCount:n.totalSubitemCount}}(null!=s?s:mv,u),{getRootProps:h,focusVisible:v,rootRef:b}=zh({disabled:n,focusableWhenDisabled:!0}),y=Fm(b,a,c);o.useDebugValue({id:s,highlighted:f,disabled:n,label:i});const x=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||d({type:Vh.close,event:t})},w=(e={})=>cu({},e,{onClick:x(e)});function S(e={}){const t=Ch(e);return cu({},e,t,uv(w,uv(h,p))(t),{id:s,ref:y,role:"menuitem"})}return void 0===s?{getRootProps:S,disabled:!1,focusVisible:v,highlighted:!1,index:-1,totalItemCount:0,rootRef:y}:{getRootProps:S,disabled:n,focusVisible:v,highlighted:f,index:m,totalItemCount:g,rootRef:y}}function vv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function bv(e){return parseInt(Tm(e).getComputedStyle(e).paddingRight,10)||0}function yv(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&vv(e,o)}))}function xv(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function wv(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Dm(e);return t.body===e?Tm(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Dm(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${bv(r)+e}px`;const t=Dm(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${bv(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Dm(r).body;else{const t=r.parentElement,n=Tm(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const Sv=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&vv(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);yv(t,e.mount,e.modalRef,r,!0);const o=xv(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=xv(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=wv(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=xv(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&vv(e.modalRef,t),yv(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&vv(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Cv(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:a=Sv,closeAfterTransition:i=!1,onTransitionEnter:l,onTransitionExited:s,children:c,onClose:u,open:d,rootRef:p}=e,f=o.useRef({}),m=o.useRef(null),g=o.useRef(null),h=Fm(g,p),[v,b]=o.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const w=()=>(f.current.modalRef=g.current,f.current.mount=m.current,f.current),S=()=>{a.mount(w(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},C=Lm((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Dm(m.current).body;a.add(w(),e),g.current&&S()})),k=o.useCallback((()=>a.isTopModal(w())),[a]),O=Lm((e=>{m.current=e,e&&(d&&k()?S():g.current&&vv(g.current,x))})),I=o.useCallback((()=>{a.remove(w(),x)}),[x,a]);o.useEffect((()=>()=>{I()}),[I]),o.useEffect((()=>{d?C():y&&i||I()}),[d,I,y,i,C]);const E=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},P=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Ch(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=cu({},n,t);return cu({role:"presentation"},r,{onKeyDown:E(r),ref:h})},getBackdropProps:(e={})=>cu({"aria-hidden":!0},e,{onClick:P(e),open:d}),getTransitionProps:()=>({onEnter:zm((()=>{b(!1),l&&l()}),null==c?void 0:c.props.onEnter),onExited:zm((()=>{b(!0),s&&s(),i&&I()}),null==c?void 0:c.props.onExited)}),rootRef:h,portalRef:O,isTopModal:k,exited:v,hasTransition:y}}const kv="Popper";function Ov(e){return $h(kv,e)}!function(e,t){const n={};t.forEach((t=>{n[t]=$h(e,t)}))}(kv,["root"]);const Iv=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ev=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Pv(e){return"function"==typeof e?e():e}function Nv(e){return void 0!==e.nodeType}const $v=()=>rg({root:["root"]},function(e){const{disableDefaultClasses:t}=o.useContext(Sh);return n=>t?"":e(n)}(Ov)),zv={},Rv=o.forwardRef((function(t,n){var r;const{anchorEl:a,children:i,direction:l,disablePortal:s,modifiers:c,open:u,placement:d,popperOptions:p,popperRef:f,slotProps:m={},slots:g={},TransitionProps:h}=t,v=Ep(t,Iv),b=o.useRef(null),y=Fm(b,n),x=o.useRef(null),w=Fm(x,f),S=o.useRef(w);wm((()=>{S.current=w}),[w]),o.useImperativeHandle(f,(()=>x.current),[]);const C=function(e,t){if("ltr"===t)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}}(d,l),[k,O]=o.useState(C),[I,E]=o.useState(Pv(a));o.useEffect((()=>{x.current&&x.current.forceUpdate()})),o.useEffect((()=>{a&&E(Pv(a))}),[a]),wm((()=>{if(!I||!u)return;if("production"!==process.env.NODE_ENV&&I&&Nv(I)&&1===I.nodeType){const e=I.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{O(e.placement)}}];null!=c&&(e=e.concat(c)),p&&null!=p.modifiers&&(e=e.concat(p.modifiers));const t=ws(I,b.current,cu({placement:C},p,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[I,s,c,u,p,C]);const P={placement:k};null!==h&&(P.TransitionProps=h);const N=$v(),$=null!=(r=g.root)?r:"div",z=Ph({elementType:$,externalSlotProps:m.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:N.root});return e.jsx($,cu({},z,{children:"function"==typeof i?i(P):i}))})),Dv=o.forwardRef((function(t,n){const{anchorEl:r,children:a,container:i,direction:l="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:f=zv,popperRef:m,style:g,transition:h=!1,slotProps:v={},slots:b={}}=t,y=Ep(t,Ev),[x,w]=o.useState(!0);if(!c&&!d&&(!h||x))return null;let S;if(i)S=i;else if(r){const e=Pv(r);S=e&&Nv(e)?Dm(e).body:Dm(null).body}const C=d||!c||h&&!x?void 0:"none",k=h?{in:d,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return e.jsx(fv,{disablePortal:s,container:S,children:e.jsx(Rv,cu({anchorEl:r,direction:l,disablePortal:s,modifiers:u,ref:n,open:h?!x:d,placement:p,popperOptions:f,popperRef:m,slotProps:v,slots:b},y,{style:cu({position:"fixed",top:0,left:0,display:C},g),TransitionProps:k,children:a}))})}));function Tv(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function jv(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}"production"!==process.env.NODE_ENV&&(Dv.propTypes={anchorEl:km(Ga.oneOfType([Nm,Ga.object,Ga.func]),(e=>{if(e.open){const t=Pv(e.anchorEl);if(t&&Nv(t)&&1===t.nodeType){const e=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}else if(!t||"function"!=typeof t.getBoundingClientRect||!Nv(t)&&null!=t.contextElement&&1!==t.contextElement.nodeType)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join("\n"))}return null})),children:Ga.oneOfType([Ga.node,Ga.func]),container:Ga.oneOfType([Nm,Ga.func]),direction:Ga.oneOf(["ltr","rtl"]),disablePortal:Ga.bool,keepMounted:Ga.bool,modifiers:Ga.arrayOf(Ga.shape({data:Ga.object,effect:Ga.func,enabled:Ga.bool,fn:Ga.func,name:Ga.any,options:Ga.object,phase:Ga.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:Ga.arrayOf(Ga.string),requiresIfExists:Ga.arrayOf(Ga.string)})),open:Ga.bool.isRequired,placement:Ga.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:Ga.shape({modifiers:Ga.array,onFirstUpdate:Ga.func,placement:Ga.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:Ga.oneOf(["absolute","fixed"])}),popperRef:$m,slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),transition:Ga.bool});const Mv=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let c=i?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=Tv(c));const u=c?e.filter((e=>{let r=(a||s)(e);return n&&(r=r.toLowerCase()),t&&(r=Tv(r)),"start"===o?0===r.indexOf(c):r.indexOf(c)>-1})):e;return"number"==typeof r?u.slice(0,r):u}}(),Av=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function Vv(e){const{unstable_isActiveElementInListbox:t=Av,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:a=!1,autoSelect:i=!1,blurOnSelect:l=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:m,disabledItemsFocusable:g=!1,disableListWrap:h=!1,filterOptions:v=Mv,filterSelectedOptions:b=!1,freeSolo:y=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:S=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:C,handleHomeEndKeys:k=!e.freeSolo,id:O,includeInputInList:I=!1,inputValue:E,isOptionEqualToValue:P=((e,t)=>e===t),multiple:N=!1,onChange:$,onClose:z,onHighlightChange:R,onInputChange:D,onOpen:T,open:j,openOnFocus:M=!1,options:A,readOnly:V=!1,selectOnFocus:_=!e.freeSolo,value:L}=e,F=Vm(O);let B=S;B=e=>{const t=S(e);if("string"!=typeof t){if("production"!==process.env.NODE_ENV){const n=void 0===t?"undefined":`${typeof t} (${t})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${n} instead of a string for ${JSON.stringify(e)}.`)}return String(t)}return t};const H=o.useRef(!1),W=o.useRef(!0),G=o.useRef(null),q=o.useRef(null),[U,Y]=o.useState(null),[K,J]=o.useState(-1),X=a?0:-1,Q=o.useRef(X),[Z,ee]=_m({controlled:L,default:d,name:u}),[te,ne]=_m({controlled:E,default:"",name:u,state:"inputValue"}),[re,oe]=o.useState(!1),ae=o.useCallback(((e,t)=>{if(!(N?Z.length<t.length:null!==t)&&!s)return;let n;if(N)n="";else if(null==t)n="";else{const e=B(t);n="string"==typeof e?e:""}te!==n&&(ne(n),D&&D(e,n,"reset"))}),[B,te,N,D,ne,s,Z]),[ie,le]=_m({controlled:j,default:!1,name:u,state:"open"}),[se,ce]=o.useState(!0),ue=!N&&null!=Z&&te===B(Z),de=ie&&!V,pe=de?v(A.filter((e=>!b||!(N?Z:[Z]).some((t=>null!==t&&P(e,t))))),{inputValue:ue&&se?"":te,getOptionLabel:B}):[],fe=(e=>{const t=o.useRef({});return o.useEffect((()=>{t.current=e})),t.current})({filteredOptions:pe,value:Z,inputValue:te});o.useEffect((()=>{const e=Z!==fe.value;re&&!e||y&&!e||ae(null,Z)}),[Z,ae,re,fe.value,y]);const me=ie&&pe.length>0&&!V;if("production"!==process.env.NODE_ENV&&null!==Z&&!y&&A.length>0){const e=(N?Z:[Z]).filter((e=>!A.some((t=>P(t,e)))));e.length>0&&console.warn([`MUI: The value provided to ${u} is invalid.`,`None of the options match with \`${e.length>1?JSON.stringify(e):JSON.stringify(e[0])}\`.`,"You can use the `isOptionEqualToValue` prop to customize the equality test."].join("\n"))}const ge=Lm((e=>{-1===e?G.current.focus():U.querySelector(`[data-tag-index="${e}"]`).focus()}));o.useEffect((()=>{N&&K>Z.length-1&&(J(-1),ge(-1))}),[Z,N,K,ge]);const he=Lm((({event:e,index:t,reason:r="auto"})=>{if(Q.current=t,-1===t?G.current.removeAttribute("aria-activedescendant"):G.current.setAttribute("aria-activedescendant",`${F}-option-${t}`),R&&R(e,-1===t?null:pe[t],r),!q.current)return;const o=q.current.querySelector(`[role="option"].${n}-focused`);o&&(o.classList.remove(`${n}-focused`),o.classList.remove(`${n}-focusVisible`));let a=q.current;if("listbox"!==q.current.getAttribute("role")&&(a=q.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===t)return void(a.scrollTop=0);const i=q.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add(`${n}-focused`),"keyboard"===r&&i.classList.add(`${n}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=i,t=a.clientHeight+a.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?a.scrollTop=n-a.clientHeight:e.offsetTop-e.offsetHeight*(C?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(C?1.3:0))}})),ve=Lm((({event:e,diff:t,direction:n="next",reason:o="auto"})=>{if(!de)return;const a=function(e,t){if(!q.current||e<0||e>=pe.length)return-1;let n=e;for(;;){const r=q.current.querySelector(`[data-option-index="${n}"]`),o=!g&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%pe.length:(n-1+pe.length)%pe.length,n===e)return-1}}((()=>{const e=pe.length-1;if("reset"===t)return X;if("start"===t)return 0;if("end"===t)return e;const n=Q.current+t;return n<0?-1===n&&I?-1:h&&-1!==Q.current||Math.abs(t)>1?0:e:n>e?n===e+1&&I?-1:h||Math.abs(t)>1?e:0:n})(),n);if(he({index:a,reason:o,event:e}),r&&"reset"!==t)if(-1===a)G.current.value=te;else{const e=B(pe[a]);G.current.value=e;0===e.toLowerCase().indexOf(te.toLowerCase())&&te.length>0&&G.current.setSelectionRange(te.length,e.length)}})),be=o.useCallback((()=>{if(!de)return;const e=(()=>{if(-1!==Q.current&&fe.filteredOptions&&fe.filteredOptions.length!==pe.length&&fe.inputValue===te&&(N?Z.length===fe.value.length&&fe.value.every(((e,t)=>B(Z[t])===B(e))):(e=fe.value,t=Z,(e?B(e):"")===(t?B(t):"")))){const e=fe.filteredOptions[Q.current];if(e)return jv(pe,(t=>B(t)===B(e)))}var e,t;return-1})();if(-1!==e)return void(Q.current=e);const t=N?Z[0]:Z;if(0!==pe.length&&null!=t){if(q.current)if(null==t)Q.current>=pe.length-1?he({index:pe.length-1}):he({index:Q.current});else{const e=pe[Q.current];if(N&&e&&-1!==jv(Z,(t=>P(e,t))))return;const n=jv(pe,(e=>P(e,t)));-1===n?ve({diff:"reset"}):he({index:n})}}else ve({diff:"reset"})}),[pe.length,!N&&Z,b,ve,he,de,te,N]),ye=Lm((e=>{jm(q,e),e&&be()}));"production"!==process.env.NODE_ENV&&o.useEffect((()=>{G.current&&"INPUT"===G.current.nodeName||(G.current&&"TEXTAREA"===G.current.nodeName?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join("\n")):console.error([`MUI: Unable to find the input element. It was resolved to ${G.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"","useAutocomplete"===u?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join("\n")))}),[u]),o.useEffect((()=>{be()}),[be]);const xe=e=>{ie||(le(!0),ce(!0),T&&T(e))},we=(e,t)=>{ie&&(le(!1),z&&z(e,t))},Se=(e,t,n,r)=>{if(N){if(Z.length===t.length&&Z.every(((e,n)=>e===t[n])))return}else if(Z===t)return;$&&$(e,t,n,r),ee(t)},Ce=o.useRef(!1),ke=(e,t,n="selectOption",r="options")=>{let o=n,a=t;if(N){if(a=Array.isArray(Z)?Z.slice():[],"production"!==process.env.NODE_ENV){const e=a.filter((e=>P(t,e)));e.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${e.length} matches.`].join("\n"))}const e=jv(a,(e=>P(t,e)));-1===e?a.push(t):"freeSolo"!==r&&(a.splice(e,1),o="removeOption")}ae(e,a),Se(e,a,o,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||we(e,o),(!0===l||"touch"===l&&Ce.current||"mouse"===l&&!Ce.current)&&G.current.blur()};const Oe=(e,t)=>{if(!N)return;""===te&&we(e,"toggleInput");let n=K;-1===K?""===te&&"previous"===t&&(n=Z.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===Z.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===Z.length||"previous"===t&&-1===n)return-1;const e=U.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),J(n),ge(n)},Ie=e=>{H.current=!0,ne(""),D&&D(e,"","clear"),Se(e,N?[]:null,"clear")},Ee=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(J(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":de&&k&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":de&&k&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"ArrowLeft":Oe(t,"previous");break;case"ArrowRight":Oe(t,"next");break;case"Enter":if(-1!==Q.current&&de){const e=pe[Q.current],n=!!x&&x(e);if(t.preventDefault(),n)return;ke(t,e,"selectOption"),r&&G.current.setSelectionRange(G.current.value.length,G.current.value.length)}else y&&""!==te&&!1===ue&&(N&&t.preventDefault(),ke(t,te,"createOption","freeSolo"));break;case"Escape":de?(t.preventDefault(),t.stopPropagation(),we(t,"escape")):c&&(""!==te||N&&Z.length>0)&&(t.preventDefault(),t.stopPropagation(),Ie(t));break;case"Backspace":if(N&&!V&&""===te&&Z.length>0){const e=-1===K?Z.length-1:K,n=Z.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Z[e]})}break;case"Delete":if(N&&!V&&""===te&&Z.length>0&&-1!==K){const e=K,n=Z.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Z[e]})}}},Pe=e=>{oe(!0),M&&!H.current&&xe(e)},Ne=e=>{t(q)?G.current.focus():(oe(!1),W.current=!0,H.current=!1,i&&-1!==Q.current&&de?ke(e,pe[Q.current],"blur"):i&&y&&""!==te?ke(e,te,"blur","freeSolo"):s&&ae(e,Z),we(e,"blur"))},$e=e=>{const t=e.target.value;te!==t&&(ne(t),ce(!1),D&&D(e,t,"input")),""===t?p||N||Se(e,null,"clear"):xe(e)},ze=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Q.current!==t&&he({event:e,index:t,reason:"mouse"})},Re=e=>{he({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ce.current=!0},De=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));ke(e,pe[t],"selectOption"),Ce.current=!1},Te=e=>t=>{const n=Z.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Z[e]})},je=e=>{ie?we(e,"toggleInput"):xe(e)},Me=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==F&&e.preventDefault()},Ae=e=>{e.currentTarget.contains(e.target)&&(G.current.focus(),_&&W.current&&G.current.selectionEnd-G.current.selectionStart==0&&G.current.select(),W.current=!1)},Ve=e=>{m||""!==te&&ie||je(e)};let _e=y&&te.length>0;_e=_e||(N?Z.length>0:null!==Z);let Le=pe;if(C){const e=new Map;let t=!1;Le=pe.reduce(((n,r,o)=>{const a=C(r);return n.length>0&&n[n.length-1].group===a?n[n.length-1].options.push(r):("production"!==process.env.NODE_ENV&&(e.get(a)&&!t&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),t=!0),e.set(a,!0)),n.push({key:o,index:o,group:a,options:[r]})),n}),[])}return m&&re&&Ne(),{getRootProps:(e={})=>cu({"aria-owns":me?`${F}-listbox`:null},e,{onKeyDown:Ee(e),onMouseDown:Me,onClick:Ae}),getInputLabelProps:()=>({id:`${F}-label`,htmlFor:F}),getInputProps:()=>({id:F,value:te,onBlur:Ne,onFocus:Pe,onChange:$e,onMouseDown:Ve,"aria-activedescendant":de?"":null,"aria-autocomplete":r?"both":"list","aria-controls":me?`${F}-listbox`:void 0,"aria-expanded":me,autoComplete:"off",ref:G,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ie}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:je}),getTagProps:({index:e})=>cu({key:e,"data-tag-index":e,tabIndex:-1},!V&&{onDelete:Te(e)}),getListboxProps:()=>({role:"listbox",id:`${F}-listbox`,"aria-labelledby":`${F}-label`,ref:ye,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var n;const r=(N?Z:[Z]).some((e=>null!=e&&P(t,e))),o=!!x&&x(t);return{key:null!=(n=null==w?void 0:w(t))?n:B(t),tabIndex:-1,role:"option",id:`${F}-option-${e}`,onMouseMove:ze,onClick:De,onTouchStart:Re,"data-option-index":e,"aria-disabled":o,"aria-selected":r}},id:F,inputValue:te,value:Z,dirty:_e,expanded:de&&U,popupOpen:de,focused:re||-1!==K,anchorEl:U,setAnchorEl:Y,focusedTag:K,groupedOptions:Le}}const _v=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Lv=["component","slots","slotProps"],Fv=["component"];function Bv(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:l}=t,s=Ep(t,_v),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=a,p=Ep(a,Lv),f=u[e]||r,m=kh(d[e],o),g=Ih(cu({className:n},s,{externalForwardedProps:"root"===e?p:void 0,externalSlotProps:m})),{props:{component:h},internalRef:v}=g,b=Ep(g.props,Fv),y=Fm(v,null==m?void 0:m.ref,t.ref),x=i?i(b):{},w=cu({},o,x),S="root"===e?h||c:h,C=yh(f,cu({},"root"===e&&!c&&!u[e]&&l,"root"!==e&&!u[e]&&l,b,S&&{as:S},{ref:y}),w);return Object.keys(x).forEach((e=>{delete C[e]})),[f,C]}function Hv(e){return eh("MuiListItem",e)}const Wv=th("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]),Gv=o.createContext(!1);"production"!==process.env.NODE_ENV&&(Gv.displayName="NestedListContext");const qv=o.createContext(!1);"production"!==process.env.NODE_ENV&&(qv.displayName="RowListContext");const Uv=o.createContext(!1);"production"!==process.env.NODE_ENV&&(Uv.displayName="WrapListContext");const Yv=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(Yv.displayName="ComponentListContext");const Kv=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(Kv.displayName="ListSubheaderContext");const Jv=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(Jv.displayName="GroupListContext");const Xv=["component","className","children","nested","sticky","variant","color","startAction","endAction","role","slots","slotProps"],Qv=vh("li")((({theme:e,ownerState:t})=>{var n;return[!t.nested&&{"--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItemButton-marginBlock":"calc(-1 * var(--ListItem-paddingY))",alignItems:"center",gap:"var(--ListItem-gap)",marginInline:"var(--ListItem-marginInline)"},t.nested&&{"--NestedList-marginRight":"calc(-1 * var(--ListItem-paddingRight))","--NestedList-marginLeft":"calc(-1 * var(--ListItem-paddingLeft))","--NestedListItem-paddingLeft":"calc(var(--ListItem-paddingLeft) + var(--List-nestedInsetStart))","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItem-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))",flexDirection:"column"},cu({"--unstable_actionRadius":"calc(var(--ListItem-radius) - var(--variant-borderWidth, 0px))"},t.startAction&&{"--unstable_startActionWidth":"2rem"},t.endAction&&{"--unstable_endActionWidth":"2.5rem"},{boxSizing:"border-box",borderRadius:"var(--ListItem-radius)",display:"var(--_ListItem-display)","&:not([hidden])":{"--_ListItem-display":"var(--_List-markerDisplay, flex)"},flex:"none",listStyleType:"var(--_List-markerType, disc)",position:"relative",paddingBlockStart:t.nested?0:"var(--ListItem-paddingY)",paddingBlockEnd:t.nested?0:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)"},void 0===t["data-first-child"]&&cu({},t.row?{marginInlineStart:"var(--List-gap)"}:{marginBlockStart:"var(--List-gap)"}),t.row&&t.wrap&&{marginInlineStart:"var(--List-gap)",marginBlockStart:"var(--List-gap)"},{minBlockSize:"var(--ListItem-minHeight)"},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:`var(--ListItem-stickyBackground, ${e.vars.palette.background.body})`},{[`.${Wv.nested} > &`]:{"--_ListItem-display":"flex"}}),null==(n=e.variants[t.variant])?void 0:n[t.color]]})),Zv=vh(Qv,{name:"JoyListItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eb=vh("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})((({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",left:0,transform:"translate(var(--ListItem-startActionTranslateX), -50%)",zIndex:1}))),tb=vh("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})((({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",right:0,transform:"translate(var(--ListItem-endActionTranslateX), -50%)"}))),nb=o.forwardRef((function(t,n){const r=bh({props:t,name:"JoyListItem"}),a=o.useContext(Jv),i=o.useContext(Yv),l=o.useContext(qv),s=o.useContext(Uv),c=o.useContext(Gv),{component:u,className:d,children:p,nested:f=!1,sticky:m=!1,variant:g="plain",color:h="neutral",startAction:v,endAction:b,role:y,slots:x={},slotProps:w={}}=r,S=Ep(r,Xv),[C,k]=o.useState(""),[O,I]=(null==i?void 0:i.split(":"))||["",""],E=u||(O&&!O.match(/^(ul|ol|menu)$/)?"div":void 0);let P="menu"===a?"none":void 0;i&&(P={menu:"none",menubar:"none",group:"presentation"}[I]),y&&(P=y);const N=cu({},r,{sticky:m,startAction:v,endAction:b,row:l,wrap:s,variant:g,color:h,nesting:c,nested:f,component:E,role:P}),$=(e=>{const{sticky:t,nested:n,nesting:r,variant:o,color:a}=e;return rg({root:["root",n&&"nested",r&&"nesting",t&&"sticky",a&&`color${Lp(a)}`,o&&`variant${Lp(o)}`],startAction:["startAction"],endAction:["endAction"]},Hv,{})})(N),z=cu({},S,{component:E,slots:x,slotProps:w}),[R,D]=Bv("root",{additionalProps:{role:P},ref:n,className:Uf($.root,d),elementType:Zv,externalForwardedProps:z,ownerState:N}),[T,j]=Bv("startAction",{className:$.startAction,elementType:eb,externalForwardedProps:z,ownerState:N}),[M,A]=Bv("endAction",{className:$.endAction,elementType:tb,externalForwardedProps:z,ownerState:N});return e.jsx(Kv.Provider,{value:k,children:e.jsx(Gv.Provider,{value:!!f&&(C||!0),children:e.jsxs(R,cu({},D,{children:[v&&e.jsx(T,cu({},j,{children:v})),o.Children.map(p,((e,t)=>o.isValidElement(e)?o.cloneElement(e,cu({},0===t&&{"data-first-child":""},Rm(e,["ListItem"])&&{component:e.props.component||"div"})):e)),b&&e.jsx(M,cu({},A,{children:b}))]}))})})}));"production"!==process.env.NODE_ENV&&(nb.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,endAction:Ga.node,nested:Ga.bool,role:Ga.string,slotProps:Ga.shape({endAction:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object]),startAction:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({endAction:Ga.elementType,root:Ga.elementType,startAction:Ga.elementType}),startAction:Ga.node,sticky:Ga.bool,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])}),nb.muiName="ListItem";const rb={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};function ob(t){const{children:n,nested:r,row:a=!1,wrap:i=!1}=t,l=e.jsx(qv.Provider,{value:a,children:e.jsx(Uv.Provider,{value:i,children:o.Children.map(n,((e,t)=>o.isValidElement(e)?o.cloneElement(e,cu({},0===t&&{"data-first-child":""},t===o.Children.count(n)-1&&{"data-last-child":""})):e))})});return void 0===r?l:e.jsx(Gv.Provider,{value:r,children:l})}const ab=({theme:e,ownerState:t},n)=>{let r={};return t.sx&&(!function t(n){"function"==typeof n?t(n(e)):Array.isArray(n)?n.forEach((e=>{"boolean"!=typeof e&&t(e)})):"object"==typeof n&&(r=cu({},r,n))}(t.sx),n.forEach((t=>{const n=r[t];var o;"string"==typeof n||"number"==typeof n?"borderRadius"===t?r[t]="number"==typeof n?`${n}px`:(null==(o=e.vars)?void 0:o.radius[n])||n:-1!==["p","padding","m","margin"].indexOf(t)&&"number"==typeof n?r[t]=e.spacing(n):r[t]=n:r[t]="function"==typeof n?n(e):void 0}))),r};function ib(e){return eh("MuiList",e)}var lb=th("MuiList",["root","nesting","scoped","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","horizontal","vertical"]);const sb=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(sb.displayName="RadioGroupContext");const cb=["component","className","children","size","orientation","wrap","variant","color","role","slots","slotProps"],ub=vh("ul")((({theme:e,ownerState:t})=>{var n;const{p:r,padding:o,borderRadius:a}=ab({theme:e,ownerState:t},["p","padding","borderRadius"]);function i(n){return"sm"===n?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"3px","--ListItem-paddingX":t.marker?"3px":"0.5rem","--ListItem-gap":"0.5rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.5rem":"2rem","--Icon-fontSize":e.vars.fontSize.lg}:"md"===n?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.25rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":t.marker?"0.25rem":"0.75rem","--ListItem-gap":"0.625rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.75rem":"2.5rem","--Icon-fontSize":e.vars.fontSize.xl}:"lg"===n?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"2.75rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":t.marker?"0.5rem":"1rem","--ListItem-gap":"0.75rem","--ListItemDecorator-size":"horizontal"===t.orientation?"2.25rem":"3rem","--Icon-fontSize":e.vars.fontSize.xl2}:{}}return[t.nesting&&cu({},i(t.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0},t.marker&&{paddingInlineStart:"calc(3ch - var(--_List-markerDeduct, 0px))"},{marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&cu({},i(t.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)"},t.marker&&{"--_List-markerDeduct":"1ch"},{"--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},e.typography[`body-${t.size}`],"horizontal"===t.orientation?cu({},t.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"},t.marker&&{paddingInlineStart:"3ch"}),cu({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},t.wrap&&{flexWrap:"wrap"},t.marker&&{"--_List-markerDisplay":"list-item","--_List-markerType":t.marker,lineHeight:"calc(var(--ListItem-minHeight) - 2 * var(--ListItem-paddingY))"},{flexGrow:1,position:"relative"},null==(n=e.variants[t.variant])?void 0:n[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},void 0!==a&&{"--List-radius":a},void 0!==r&&{"--List-padding":r},void 0!==o&&{"--List-padding":o})]})),db=vh(ub,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pb=o.forwardRef((function(t,n){var r;const a=o.useContext(Gv),i=o.useContext(Jv),l=o.useContext(sb),s=bh({props:t,name:"JoyList"}),{component:c,className:u,children:d,size:p,orientation:f="vertical",wrap:m=!1,variant:g="plain",color:h="neutral",role:v,slots:b={},slotProps:y={}}=s,x=Ep(s,cb),w=p||(null!=(r=t.size)?r:"md");let S;i&&(S="group"),l&&(S="presentation"),v&&(S=v);const C=cu({},s,{instanceSize:t.size,size:w,nesting:a,orientation:f,wrap:m,variant:g,color:h,role:S}),k=(e=>{const{variant:t,color:n,size:r,nesting:o,orientation:a,instanceSize:i}=e;return rg({root:["root",a,t&&`variant${Lp(t)}`,n&&`color${Lp(n)}`,!i&&!o&&r&&`size${Lp(r)}`,i&&`size${Lp(i)}`,o&&"nesting"]},ib,{})})(C),O=cu({},x,{component:c,slots:b,slotProps:y}),[I,E]=Bv("root",{ref:n,className:Uf(k.root,u),elementType:db,externalForwardedProps:O,ownerState:C,additionalProps:{as:c,role:S,"aria-labelledby":"string"==typeof a?a:void 0}});return e.jsx(I,cu({},E,{children:e.jsx(Yv.Provider,{value:`${"string"==typeof c?c:""}:${S||""}`,children:e.jsx(ob,{row:"horizontal"===f,wrap:m,children:d})})}))}));function fb(e){return eh("MuiListItemButton",e)}"production"!==process.env.NODE_ENV&&(pb.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,marker:Ga.string,orientation:Ga.oneOf(["horizontal","vertical"]),role:Ga.string,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string]),wrap:Ga.bool});const mb=th("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]),gb=o.createContext("horizontal");"production"!==process.env.NODE_ENV&&(gb.displayName="ListItemButtonOrientationContext");const hb=["children","className","action","component","orientation","role","selected","color","variant","slots","slotProps"],vb=vh("div")((({theme:e,ownerState:t})=>{var n,r,o,a,i,l;return cu({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",font:"inherit",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch",gap:"var(--ListItem-gap)"},"vertical"===t.orientation&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},void 0===t["data-first-child"]&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"1px solid transparent",borderRadius:"var(--ListItem-radius)",flex:"var(--unstable_ListItem-flex, none)",fontSize:"inherit",lineHeight:"inherit",minInlineSize:0,[e.focus.selector]:cu({},e.focus.default,{zIndex:1})},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:active":null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color],[`.${Wv.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${mb.selected}`]:cu({},null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${mb.selected}, [aria-selected="true"])`]:{"&:hover":null==(a=e.variants[`${t.variant}Hover`])?void 0:a[t.color],"&:active":null==(i=e.variants[`${t.variant}Active`])?void 0:i[t.color]},[`&.${mb.disabled}`]:cu({},null==(l=e.variants[`${t.variant}Disabled`])?void 0:l[t.color])})})),bb=vh(vb,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e,theme:t})=>cu({},!e.row&&{[`&.${mb.selected}`]:{fontWeight:t.vars.fontWeight.md}}))),yb=o.forwardRef((function(t,n){const r=bh({props:t,name:"JoyListItemButton"}),a=o.useContext(qv),{children:i,className:l,action:s,component:c="div",orientation:u="horizontal",role:d,selected:p=!1,color:f="neutral",variant:m="plain",slots:g={},slotProps:h={}}=r,v=Ep(r,hb),b=o.useRef(null),y=Fm(b,n),{focusVisible:x,setFocusVisible:w,getRootProps:S}=zh(cu({},r,{rootRef:y}));o.useImperativeHandle(s,(()=>({focusVisible:()=>{var e;w(!0),null==(e=b.current)||e.focus()}})),[w]);const C=cu({},r,{component:c,color:f,focusVisible:x,orientation:u,row:a,selected:p,variant:m}),k=(e=>{const{color:t,disabled:n,focusVisible:r,focusVisibleClassName:o,selected:a,variant:i}=e,l=rg({root:["root",n&&"disabled",r&&"focusVisible",t&&`color${Lp(t)}`,a&&"selected",i&&`variant${Lp(i)}`]},fb,{});return r&&o&&(l.root+=` ${o}`),l})(C),O=cu({},v,{component:c,slots:g,slotProps:h}),[I,E]=Bv("root",{ref:n,className:Uf(k.root,l),elementType:bb,externalForwardedProps:O,ownerState:C,getSlotProps:S});return e.jsx(gb.Provider,{value:u,children:e.jsx(I,cu({},E,{role:null!=d?d:E.role,children:i}))})}));function xb(e){return eh("MuiSvgIcon",e)}"production"!==process.env.NODE_ENV&&(yb.propTypes={action:Ga.oneOfType([Ga.func,Ga.shape({current:Ga.shape({focusVisible:Ga.func.isRequired})})]),autoFocus:Ga.bool,children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,disabled:Ga.bool,focusVisibleClassName:Ga.string,orientation:Ga.oneOf(["horizontal","vertical"]),role:Ga.string,selected:Ga.bool,slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),tabIndex:Ga.number,variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])}),th("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);const wb=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],Sb={sm:"xl",md:"xl2",lg:"xl3"},Cb=vh("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n;return cu({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[Sb[t.instanceSize]]},t.instanceFontSize&&"inherit"!==t.instanceFontSize&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[Sb[t.size]]||"unset"})`},t.fontSize&&"inherit"!==t.fontSize&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&cu({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&e.vars.palette[t.color]&&{color:`rgba(${null==(n=e.vars.palette[t.color])?void 0:n.mainChannel} / 1)`}))})),kb=o.forwardRef((function(t,n){const r=bh({props:t,name:"JoySvgIcon"}),{children:a,className:i,color:l,component:s="svg",fontSize:c,htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:f="0 0 24 24",size:m="md",slots:g={},slotProps:h={}}=r,v=Ep(r,wb),b=o.isValidElement(a)&&"svg"===a.type,y=cu({},r,{color:l,component:s,size:m,instanceSize:t.size,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:b}),x=(e=>{const{color:t,size:n,fontSize:r}=e;return rg({root:["root",t&&"inherit"!==t&&`color${Lp(t)}`,n&&`size${Lp(n)}`,r&&`fontSize${Lp(r)}`]},xb,{})})(y),w=cu({},v,{component:s,slots:g,slotProps:h}),[S,C]=Bv("root",{ref:n,className:Uf(x.root,i),elementType:Cb,externalForwardedProps:w,ownerState:y,additionalProps:cu({color:u,focusable:!1},p&&{role:"img"},!p&&{"aria-hidden":!0},!d&&{viewBox:f},b&&a.props)});return e.jsxs(S,cu({},C,{children:[b?a.props.children:a,p?e.jsx("title",{children:p}):null]}))}));function Ob(t,n){function r(r,o){return e.jsx(kb,cu({"data-testid":`${n}Icon`,ref:o},r,{children:t}))}return"production"!==process.env.NODE_ENV&&(r.displayName=`${n}Icon`),r.muiName=kb.muiName,o.memo(o.forwardRef(r))}"production"!==process.env.NODE_ENV&&(kb.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","inherit","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,fontSize:Ga.oneOfType([Ga.oneOf(["inherit","lg","md","sm","xl","xl2","xl3","xl4","xs"]),Ga.string]),htmlColor:Ga.string,inheritViewBox:Ga.bool,shapeRendering:Ga.string,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),titleAccess:Ga.string,viewBox:Ga.string});const Ib=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,Eb="data-skip-inverted-colors",Pb=`& :not([${Eb}], [${Eb}] *)`,Nb=e=>{var t,n,r,o,a,i,l,s,c,u,d,p,f,m,g,h,v,b,y,x,w,S;const C=Ib(e.cssVarPrefix);return{"--variant-plainColor":"var(--variant-plainColor) !important","--variant-plainHoverColor":"var(--variant-plainHoverColor) !important","--variant-plainHoverBg":"var(--variant-plainHoverBg) !important","--variant-plainActiveBg":"var(--variant-plainActiveBg) !important","--variant-plainDisabledColor":"var(--variant-plainDisabledColor) !important","--variant-outlinedColor":"var(--variant-outlinedColor) !important","--variant-outlinedBorder":"var(--variant-outlinedBorder) !important","--variant-outlinedHoverColor":"var(--variant-outlinedHoverColor) !important","--variant-outlinedHoverBorder":"var(--variant-outlinedHoverBorder) !important","--variant-outlinedHoverBg":"var(--variant-outlinedHoverBg) !important","--variant-outlinedActiveBg":"var(--variant-outlinedActiveBg) !important","--variant-outlinedDisabledColor":"var(--variant-outlinedDisabledColor) !important","--variant-outlinedDisabledBorder":"var(--variant-outlinedDisabledBorder) !important","--variant-softColor":"var(--variant-softColor) !important","--variant-softHoverColor":"var(--variant-softHoverColor) !important","--variant-softBg":"var(--variant-softBg) !important","--variant-softHoverBg":"var(--variant-softHoverBg) !important","--variant-softActiveBg":"var(--variant-softActiveBg) !important","--variant-softActiveColor":"var(--variant-softActiveColor) !important","--variant-softDisabledColor":"var(--variant-softDisabledColor) !important","--variant-softDisabledBg":"var(--variant-softDisabledBg) !important","--variant-solidColor":"var(--variant-solidColor) !important","--variant-solidBg":"var(--variant-solidBg) !important","--variant-solidHoverBg":"var(--variant-solidHoverBg) !important","--variant-solidActiveBg":"var(--variant-solidActiveBg) !important","--variant-solidDisabledColor":"var(--variant-solidDisabledColor) !important","--variant-solidDisabledBg":"var(--variant-solidDisabledBg) !important","--Badge-ringColor":"var(--Badge-ringColor) !important",colorScheme:"unset",[e.getColorSchemeSelector("light")]:{[C("--palette-focusVisible")]:`${null==(t=e.colorSchemes.light)?void 0:t.palette.focusVisible} !important`,[C("--palette-background-body")]:`${null==(n=e.colorSchemes.light)?void 0:n.palette.background.body} !important`,[C("--palette-background-surface")]:`${null==(r=e.colorSchemes.light)?void 0:r.palette.background.surface} !important`,[C("--palette-background-popup")]:`${null==(o=e.colorSchemes.light)?void 0:o.palette.background.popup} !important`,[C("--palette-background-level1")]:`${null==(a=e.colorSchemes.light)?void 0:a.palette.background.level1} !important`,[C("--palette-background-level2")]:`${null==(i=e.colorSchemes.light)?void 0:i.palette.background.level2} !important`,[C("--palette-background-level3")]:`${null==(l=e.colorSchemes.light)?void 0:l.palette.background.level3} !important`,[C("--palette-text-primary")]:`${null==(s=e.colorSchemes.light)?void 0:s.palette.text.primary} !important`,[C("--palette-text-secondary")]:`${null==(c=e.colorSchemes.light)?void 0:c.palette.text.secondary} !important`,[C("--palette-text-tertiary")]:`${null==(u=e.colorSchemes.light)?void 0:u.palette.text.tertiary} !important`,[C("--palette-divider")]:`${null==(d=e.colorSchemes.light)?void 0:d.palette.divider} !important`},[e.getColorSchemeSelector("dark")]:{[C("--palette-focusVisible")]:`${null==(p=e.colorSchemes.dark)?void 0:p.palette.focusVisible} !important`,[C("--palette-background-body")]:`${null==(f=e.colorSchemes.dark)?void 0:f.palette.background.body} !important`,[C("--palette-background-surface")]:`${null==(m=e.colorSchemes.dark)?void 0:m.palette.background.surface} !important`,[C("--palette-background-popup")]:`${null==(g=e.colorSchemes.dark)?void 0:g.palette.background.popup} !important`,[C("--palette-background-level1")]:`${null==(h=e.colorSchemes.dark)?void 0:h.palette.background.level1} !important`,[C("--palette-background-level2")]:`${null==(v=e.colorSchemes.dark)?void 0:v.palette.background.level2} !important`,[C("--palette-background-level3")]:`${null==(b=e.colorSchemes.dark)?void 0:b.palette.background.level3} !important`,[C("--palette-text-primary")]:`${null==(y=e.colorSchemes.dark)?void 0:y.palette.text.primary} !important`,[C("--palette-text-secondary")]:`${null==(x=e.colorSchemes.dark)?void 0:x.palette.text.secondary} !important`,[C("--palette-text-tertiary")]:`${null==(w=e.colorSchemes.dark)?void 0:w.palette.text.tertiary} !important`,[C("--palette-divider")]:`${null==(S=e.colorSchemes.dark)?void 0:S.palette.divider} !important`}}};const $b=e=>t=>{const n=void 0!==t.theme?t.theme:t;const r=kg(n.cssVarPrefix),o=Ib(n.cssVarPrefix),a=e=>{const t=e.split("-");return r(e,n.palette[t[1]][t[2]])};return{[Pb]:{"--Badge-ringColor":a(`palette-${e}-solidBg`),"--Icon-color":"currentColor",[`${n.getColorSchemeSelector("light")}, ${n.getColorSchemeSelector("dark")}`]:{colorScheme:"dark",[o("--palette-focusVisible")]:a(`palette-${e}-200`),[o("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[o("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[o("--palette-background-popup")]:a(`palette-${e}-700`),[o("--palette-background-level1")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.36)`,[o("--palette-background-level3")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.6)`,[o("--palette-text-primary")]:a("palette-common-white"),[o("--palette-text-secondary")]:a(`palette-${e}-200`),[o("--palette-text-tertiary")]:a(`palette-${e}-300`),[o("--palette-text-icon")]:a(`palette-${e}-200`),[o("--palette-divider")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainColor":a(`palette-${e}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":a(`palette-${e}-50`),"--variant-outlinedBorder":`rgba(${a(`palette-${e}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":a(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":a("palette-common-white"),"--variant-softHoverColor":a("palette-common-white"),"--variant-softBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.16)`,"--variant-softActiveColor":"#fff","--variant-softDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.1)`,"--variant-solidColor":a(`palette-${e}-${"neutral"===e?"600":"500"}`),"--variant-solidBg":a("palette-common-white"),"--variant-solidHoverBg":a("palette-common-white"),"--variant-solidActiveBg":a(`palette-${e}-100`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.1)`}},[`&, & [${Eb}]`]:Nb(n)}},zb=e=>t=>{const{theme:n=t}=t,r=kg(n.cssVarPrefix),o=Ib(n.cssVarPrefix),a=e=>{const t=e.split("-");return r(e,n.palette[t[1]][t[2]])};return{[Pb]:{"--Badge-ringColor":a(`palette-${e}-softBg`),"--Icon-color":"currentColor",[n.getColorSchemeSelector("dark")]:{[o("--palette-focusVisible")]:a(`palette-${e}-300`),[o("--palette-background-body")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.1)`,[o("--palette-background-surface")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`,[o("--palette-background-level1")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.4)`,[o("--palette-background-level3")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,[o("--palette-text-primary")]:a(`palette-${e}-100`),[o("--palette-text-secondary")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.72)`,[o("--palette-text-tertiary")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.6)`,[o("--palette-text-icon")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.6)`,[o("--palette-divider")]:`rgba(${a(`palette-${e}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${a(`palette-${e}-lightChannel`)} / 1)`,"--variant-plainHoverColor":a(`palette-${e}-50`),"--variant-plainHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${a(`palette-${e}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":a(`palette-${e}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":a(`palette-${e}-600`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.2)`,"--variant-softColor":a(`palette-${e}-200`),"--variant-softBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":a(`palette-${e}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":a(`palette-${e}-600`),"--variant-solidActiveBg":a(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`},[n.getColorSchemeSelector("light")]:{[o("--palette-focusVisible")]:a(`palette-${e}-500`),[o("--palette-background-body")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.1)`,[o("--palette-background-surface")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`,[o("--palette-background-level1")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.2)`,[o("--palette-background-level2")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,[o("--palette-background-level3")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.48)`,[o("--palette-text-primary")]:a(`palette-${e}-700`),[o("--palette-text-secondary")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.8)`,[o("--palette-text-tertiary")]:`rgba(${a(`palette-${e}-darkChannel`)} / 0.68)`,[o("--palette-text-icon")]:a(`palette-${e}-500`),[o("--palette-divider")]:`rgba(${a(`palette-${e}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${a(`palette-${e}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${a(`palette-${e}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${a(`palette-${e}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":a(`palette-${e}-600`),"--variant-outlinedHoverBorder":a(`palette-${e}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${e}-mainChannel`)} / 0.12)`,"--variant-softColor":a(`palette-${e}-600`),"--variant-softBg":`rgba(${a(`palette-${e}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":a(`palette-${e}-700`),"--variant-softHoverBg":a(`palette-${e}-200`),"--variant-softActiveBg":a(`palette-${e}-300`),"--variant-softDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`,"--variant-solidColor":a("palette-common-white"),"--variant-solidBg":a(`palette-${e}-${"neutral"===e?"700":"500"}`),"--variant-solidHoverColor":a("palette-common-white"),"--variant-solidHoverBg":a(`palette-${e}-600`),"--variant-solidActiveBg":a(`palette-${e}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${e}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${e}-mainChannel`)} / 0.08)`}},[`&, & [${Eb}]`]:Nb(n)}};var Rb=Ob(e.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Db=Ob(e.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Tb=o.createContext(void 0);function jb(e,t){let n=t,r=e;return"outlined"===e&&(n="neutral",r="plain"),"plain"===e&&(n="neutral"),{variant:r,color:n}}function Mb(e,t,n=!1){const r=o.useContext(Tb),[a,i]="string"==typeof r?r.split(":"):[],l=jb(a||void 0,i||void 0);return l.variant=e||l.variant,l.color=t||(n?i:l.color),l}function Ab({children:t,color:n,variant:r}){return e.jsx(Tb.Provider,{value:`${r||""}:${n||""}`,children:t})}function Vb(e){return eh("MuiIconButton",e)}"production"!==process.env.NODE_ENV&&(Tb.displayName="VariantColorContext"),th("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","loading","loadingIndicator"]);const _b=o.createContext({});"production"!==process.env.NODE_ENV&&(_b.displayName="ButtonGroupContext");const Lb=o.createContext(void 0);function Fb(e){return eh("MuiCircularProgress",e)}"production"!==process.env.NODE_ENV&&(Lb.displayName="ToggleButtonGroupContext"),th("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);let Bb,Hb=e=>e;const Wb=["color","backgroundColor"],Gb=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],qb=function(){var e=cp.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}});function Ub(e,t){return`var(--CircularProgress-${e}Thickness, var(--CircularProgress-thickness, ${t}))`}const Yb=vh("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e,theme:t})=>{var n,r,o,a;const i=(null==(n=t.variants[e.variant])?void 0:n[e.color])||{},{color:l,backgroundColor:s}=i,c=Ep(i,Wb);return cu({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":s,"--CircularProgress-progressColor":l,"--CircularProgress-percent":e.value,"--CircularProgress-linecap":"round"},"sm"===e.size&&{"--_root-size":"var(--CircularProgress-size, 24px)","--_track-thickness":Ub("track","3px"),"--_progress-thickness":Ub("progress","3px")},"sm"===e.instanceSize&&{"--CircularProgress-size":"24px"},"md"===e.size&&{"--_track-thickness":Ub("track","6px"),"--_progress-thickness":Ub("progress","6px"),"--_root-size":"var(--CircularProgress-size, 40px)"},"md"===e.instanceSize&&{"--CircularProgress-size":"40px"},"lg"===e.size&&{"--_track-thickness":Ub("track","8px"),"--_progress-thickness":Ub("progress","8px"),"--_root-size":"var(--CircularProgress-size, 64px)"},"lg"===e.instanceSize&&{"--CircularProgress-size":"64px"},e.thickness&&{"--_track-thickness":`${e.thickness}px`,"--_progress-thickness":`${e.thickness}px`},{"--_thickness-diff":"calc(var(--_track-thickness) - var(--_progress-thickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--_track-thickness), var(--_progress-thickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:l},e.children&&{fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},c,"outlined"===e.variant&&{"&::before":cu({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},c)},"soft"===e.variant&&{"--CircularProgress-trackColor":t.variants.soft.neutral.backgroundColor,"--CircularProgress-progressColor":null==(r=t.variants.solid)?void 0:r[e.color].backgroundColor},"solid"===e.variant&&{"--CircularProgress-trackColor":null==(o=t.variants.softHover)?void 0:o[e.color].backgroundColor,"--CircularProgress-progressColor":null==(a=t.variants.solid)?void 0:a[e.color].backgroundColor})})),Kb=vh("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),Jb=vh("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(e,t)=>t.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--_track-thickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--_track-thickness)",stroke:"var(--CircularProgress-trackColor)"}),Xb=vh("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(e,t)=>t.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--_progress-thickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--_progress-thickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},(({ownerState:e})=>!e.determinate&&cp(Bb||(Bb=Hb`
|
|
870
|
-
animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running)
|
|
871
|
-
${0};
|
|
872
|
-
`),qb))),Qb=o.forwardRef((function(t,n){const r=bh({props:t,name:"JoyCircularProgress"}),{children:o,className:a,color:i="primary",size:l="md",variant:s="soft",thickness:c,determinate:u=!1,value:d=(u?0:25),component:p,slots:f={},slotProps:m={}}=r,g=Ep(r,Gb),h=cu({},r,{color:i,size:l,variant:s,thickness:c,value:d,determinate:u,instanceSize:t.size}),v=(e=>{const{determinate:t,color:n,variant:r,size:o}=e;return rg({root:["root",t&&"determinate",n&&`color${Lp(n)}`,r&&`variant${Lp(r)}`,o&&`size${Lp(o)}`],svg:["svg"],track:["track"],progress:["progress"]},Fb,{})})(h),b=cu({},g,{component:p,slots:f,slotProps:m}),[y,x]=Bv("root",{ref:n,className:Uf(v.root,a),elementType:Yb,externalForwardedProps:b,ownerState:h,additionalProps:cu({role:"progressbar",style:{"--CircularProgress-percent":d}},d&&u&&{"aria-valuenow":"number"==typeof d?Math.round(d):Math.round(Number(d||0))})}),[w,S]=Bv("svg",{className:v.svg,elementType:Kb,externalForwardedProps:b,ownerState:h}),[C,k]=Bv("track",{className:v.track,elementType:Jb,externalForwardedProps:b,ownerState:h}),[O,I]=Bv("progress",{className:v.progress,elementType:Xb,externalForwardedProps:b,ownerState:h});return e.jsxs(y,cu({},x,{children:[e.jsxs(w,cu({},S,{children:[e.jsx(C,cu({},k)),e.jsx(O,cu({},I))]})),o]}))}));"production"!==process.env.NODE_ENV&&(Qb.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,determinate:Ga.bool,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({progress:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object]),svg:Ga.oneOfType([Ga.func,Ga.object]),track:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({progress:Ga.elementType,root:Ga.elementType,svg:Ga.elementType,track:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),thickness:Ga.number,value:Ga.number,variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])});const Zb=["children","action","component","color","disabled","variant","loading","loadingIndicator","size","slots","slotProps"],ey=vh("button")((({theme:e,ownerState:t})=>{var n,r,o,a;return[cu({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon},t.instanceSize&&{"--IconButton-size":{sm:"2rem",md:"2.25rem",lg:"2.75rem"}[t.instanceSize]},"sm"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px"},"md"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.25rem) / 1.5)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2.25rem)",minHeight:"var(--IconButton-size, 2.25rem)",fontSize:e.vars.fontSize.md,paddingInline:"0.25rem"},"lg"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.75rem) / 1.571)","--CircularProgress-size":"28px","--CircularProgress-thickness":"4px",minWidth:"var(--IconButton-size, 2.75rem)",minHeight:"var(--IconButton-size, 2.75rem)",fontSize:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:cu({"--Icon-color":"currentColor"},e.focus.default)}),cu({},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:hover":{"@media (hover: hover)":cu({"--Icon-color":"currentColor"},null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color])},'&:active, &[aria-pressed="true"]':cu({"--Icon-color":"currentColor"},null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color]),"&:disabled":null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]})]})),ty=vh(ey,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ny=vh("span",{name:"JoyIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})((({theme:e,ownerState:t})=>{var n,r;return cu({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color},t.disabled&&{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color})})),ry=o.forwardRef((function(t,n){var r;const a=bh({props:t,name:"JoyIconButton"}),{children:i,action:l,component:s="button",color:c="neutral",disabled:u,variant:d="plain",loading:p=!1,loadingIndicator:f,size:m="md",slots:g={},slotProps:h={}}=a,v=Ep(a,Zb),b=o.useContext(_b),y=o.useContext(Lb),x=t.variant||b.variant||d,w=t.size||b.size||m,S=t.color||b.color||c,C=null!=(r=t.loading||t.disabled)?r:b.disabled||p||u,k=o.useRef(null),O=Fm(k,n),{focusVisible:I,setFocusVisible:E,getRootProps:P}=zh(cu({},a,{disabled:C,rootRef:O})),N=null!=f?f:e.jsx(Qb,{color:S,thickness:{sm:2,md:3,lg:4}[w]||3});o.useImperativeHandle(l,(()=>({focusVisible:()=>{var e;E(!0),null==(e=k.current)||e.focus()}})),[E]);const $=cu({},a,{component:s,color:S,disabled:C,variant:x,loading:p,size:w,focusVisible:I,instanceSize:t.size}),z=(e=>{const{color:t,disabled:n,focusVisible:r,focusVisibleClassName:o,size:a,variant:i,loading:l}=e,s=rg({root:["root",n&&"disabled",r&&"focusVisible",i&&`variant${Lp(i)}`,t&&`color${Lp(t)}`,a&&`size${Lp(a)}`,l&&"loading"],loadingIndicator:["loadingIndicator"]},Vb,{});return r&&o&&(s.root+=` ${o}`),s})($);let R=a["aria-pressed"];"function"==typeof h.root?R=h.root($)["aria-pressed"]:h.root&&(R=h.root["aria-pressed"]),null!=y&&y.value&&(R=Array.isArray(y.value)?-1!==y.value.indexOf(a.value):y.value===a.value);const D=cu({},v,{component:s,slots:g,slotProps:h}),[T,j]=Bv("root",{ref:n,className:z.root,elementType:ty,getSlotProps:P,externalForwardedProps:D,ownerState:$,additionalProps:{onClick:e=>{var t;let n=a.onClick;var r;("function"==typeof h.root?n=h.root($).onClick:h.root&&(n=h.root.onClick),null==(t=n)||t(e),y)&&(null==(r=y.onClick)||r.call(y,e,a.value))},"aria-pressed":R}}),[M,A]=Bv("loadingIndicator",{className:z.loadingIndicator,elementType:ny,externalForwardedProps:D,ownerState:$});return e.jsx(T,cu({},j,{children:p?e.jsx(M,cu({},A,{children:N})):i}))}));function oy(e){return eh("MuiChip",e)}"production"!==process.env.NODE_ENV&&(ry.propTypes={action:Ga.oneOfType([Ga.func,Ga.shape({current:Ga.shape({focusVisible:Ga.func.isRequired})})]),children:Ga.node,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,disabled:Ga.bool,focusVisibleClassName:Ga.string,loading:Ga.bool,loadingIndicator:Ga.node,onClick:Ga.func,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({loadingIndicator:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({loadingIndicator:Ga.elementType,root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),tabIndex:Ga.number,value:Ga.oneOfType([Ga.arrayOf(Ga.string),Ga.number,Ga.string]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])}),ry.muiName="IconButton";const ay=th("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),iy=o.createContext({disabled:void 0,variant:void 0,color:void 0});"production"!==process.env.NODE_ENV&&(iy.displayName="ChipColorContext");const ly=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],sy=vh("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n,r,o;const a=null==(n=e.variants[t.variant])?void 0:n[t.color],{borderRadius:i}=ab({theme:e,ownerState:t},["borderRadius"]);return[cu({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--Icon-color":"currentColor","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-paddingInline":"0.375rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 2 * var(--variant-borderWidth))","--Icon-fontSize":e.vars.fontSize.sm,"--_Chip-minHeight":"var(--Chip-minHeight, 1.25rem)",gap:"3px"},"md"===t.size&&{"--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 0.25rem - 2 * var(--variant-borderWidth))","--Icon-fontSize":e.vars.fontSize.md,"--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",gap:"0.25rem"},"lg"===t.size&&{"--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 0.375rem - 2 * var(--variant-borderWidth))","--Icon-fontSize":e.vars.fontSize.lg,"--_Chip-minHeight":"var(--Chip-minHeight, 1.75rem)",gap:"0.375rem"},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",maxWidth:"max-content",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box"},e.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[t.size]}`],{fontWeight:e.vars.fontWeight.md,[`&.${ay.disabled}`]:{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==a?void 0:a.color}]:[cu({backgroundColor:e.vars.palette.background.surface},a,{[`&.${ay.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]})],void 0!==i&&{"--_Chip-radius":i}]})),cy=vh("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})((({ownerState:e})=>cu({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"}))),uy=vh("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})((({theme:e,ownerState:t})=>{var n,r,o,a;return[{"--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},cu({backgroundColor:e.vars.palette.background.surface},null==(n=e.variants[t.variant])?void 0:n[t.color]),{"&:hover":{"@media (hover: hover)":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color]}},{"&:active":null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color]},{[`&.${ay.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]}]})),dy=vh("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--IconButton-margin":"0 calc(-1 * var(--Chip-paddingInline) / 3) 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",order:0,zIndex:1,pointerEvents:"none"}),py=vh("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--IconButton-margin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 calc(-1 * var(--Chip-paddingInline) / 3)","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",order:2,zIndex:1,pointerEvents:"none"}),fy=o.forwardRef((function(t,n){const r=bh({props:t,name:"JoyChip"}),{children:a,className:i,color:l="neutral",onClick:s,disabled:c=!1,size:u="md",variant:d="soft",startDecorator:p,endDecorator:f,component:m,slots:g={},slotProps:h={}}=r,v=Ep(r,ly),b=!!s||!!h.action,y=cu({},r,{disabled:c,size:u,color:l,variant:d,clickable:b,focusVisible:!1}),x="function"==typeof h.action?h.action(y):h.action,w=o.useRef(null),{focusVisible:S,getRootProps:C}=zh(cu({},x,{disabled:c,rootRef:w}));y.focusVisible=S;const k=(e=>{const{disabled:t,size:n,color:r,clickable:o,variant:a,focusVisible:i}=e;return rg({root:["root",t&&"disabled",r&&`color${Lp(r)}`,n&&`size${Lp(n)}`,a&&`variant${Lp(a)}`,o&&"clickable"],action:["action",t&&"disabled",i&&"focusVisible"],label:["label",n&&`label${Lp(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]},oy,{})})(y),O=cu({},v,{component:m,slots:g,slotProps:h}),[I,E]=Bv("root",{ref:n,className:Uf(k.root,i),elementType:sy,externalForwardedProps:O,ownerState:y}),[P,N]=Bv("label",{className:k.label,elementType:cy,externalForwardedProps:O,ownerState:y}),$=Vm(N.id),[z,R]=Bv("action",{className:k.action,elementType:uy,externalForwardedProps:O,ownerState:y,getSlotProps:C,additionalProps:{"aria-labelledby":$,as:null==x?void 0:x.component,onClick:s}}),[D,T]=Bv("startDecorator",{className:k.startDecorator,elementType:dy,externalForwardedProps:O,ownerState:y}),[j,M]=Bv("endDecorator",{className:k.endDecorator,elementType:py,externalForwardedProps:O,ownerState:y}),A=o.useMemo((()=>({disabled:c})),[c]);return e.jsx(iy.Provider,{value:A,children:e.jsx(Ab,{variant:d,color:l,children:e.jsxs(I,cu({},E,{children:[b&&e.jsx(z,cu({},R)),e.jsx(P,cu({},N,{id:$,children:a})),p&&e.jsx(D,cu({},T,{children:p})),f&&e.jsx(j,cu({},M,{children:f}))]}))})})}));"production"!==process.env.NODE_ENV&&(fy.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,disabled:Ga.bool,endDecorator:Ga.node,onClick:Ga.func,size:Ga.oneOfType([Ga.oneOf(["lg","md","sm"]),Ga.string]),slotProps:Ga.shape({action:Ga.oneOfType([Ga.func,Ga.object]),endDecorator:Ga.oneOfType([Ga.func,Ga.object]),label:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object]),startDecorator:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({action:Ga.elementType,endDecorator:Ga.elementType,label:Ga.elementType,root:Ga.elementType,startDecorator:Ga.elementType}),startDecorator:Ga.node,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])});var my,gy=Ob(e.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"}),"Cancel");function hy(e){return eh("MuiChipDelete",e)}th("MuiChipDelete",["root","disabled","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSolid","variantSoft","variantOutlined"]);const vy=["children","variant","color","disabled","onKeyDown","onDelete","onClick","component","slots","slotProps"],by=["onDelete"],yy=vh(ey,{name:"JoyChipDelete",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({"--IconButton-size":"var(--Chip-deleteSize, 2rem)","--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.3)",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px",pointerEvents:"visible",borderRadius:"var(--Chip-deleteRadius, 50%)",zIndex:1,padding:0}))),xy=o.forwardRef((function(t,n){const r=bh({props:t,name:"JoyChipDelete"}),{children:a,variant:i="plain",color:l="neutral",disabled:s,onKeyDown:c,onDelete:u,onClick:d,component:p,slots:f={},slotProps:m={}}=r,g=Ep(r,vy),h=o.useContext(iy),{variant:v=i,color:b=l}=Mb(t.variant,t.color,!0),y=t.color||b,x=null!=s?s:h.disabled,w=Fm(o.useRef(null),n),{focusVisible:S,getRootProps:C}=zh(cu({},r,{disabled:x,rootRef:w})),k=cu({},r,{disabled:x,variant:v,color:y,focusVisible:S}),O=(e=>{const{focusVisible:t,variant:n,color:r,disabled:o}=e;return rg({root:["root",o&&"disabled",t&&"focusVisible",n&&`variant${Lp(n)}`,r&&`color${Lp(r)}`]},hy,{})})(k),I=cu({},g,{component:p,slots:f,slotProps:m}),[E,P]=Bv("root",{ref:n,elementType:yy,getSlotProps:C,externalForwardedProps:I,ownerState:k,additionalProps:{as:p,onKeyDown:e=>{["Backspace","Enter","Delete"].includes(e.key)&&(e.preventDefault(),!x&&u&&u(e)),c&&c(e)},onClick:e=>{!x&&u&&u(e),d&&d(e)}},className:O.root}),N=Ep(P,by);return e.jsx(E,cu({},N,{children:null!=a?a:my||(my=e.jsx(gy,{}))}))}));function wy(e){return eh("MuiInput",e)}"production"!==process.env.NODE_ENV&&(xy.propTypes={children:Ga.node,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,disabled:Ga.bool,onClick:Ga.func,onDelete:Ga.func,onKeyDown:Ga.func,slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])});const Sy=th("MuiInput",["root","input","formControl","focused","disabled","error","adornedStart","adornedEnd","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid","fullWidth","startDecorator","endDecorator"]),Cy=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(Cy.displayName="FormControlContext");const ky=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoFocus","className","defaultValue","disabled","disabledInProp","error","id","name","onClick","onChange","onKeyDown","onKeyUp","onFocus","onBlur","placeholder","readOnly","required","type","value"];const Oy=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","fullWidth","size","color","variant","startDecorator","endDecorator","component","slots","slotProps"],Iy=vh("div")((({theme:e,ownerState:t})=>{var n,r,o,a,i,l;const s=null==(n=e.variants[`${t.variant}`])?void 0:n[t.color];return[cu({"--Input-radius":e.vars.radius.sm,"--Input-gap":"0.5rem","--Input-placeholderColor":"inherit","--Input-placeholderOpacity":.64,"--Input-decoratorColor":e.vars.palette.text.icon,"--Input-focused":"0","--Input-focusedThickness":e.vars.focus.thickness,"--Input-focusedHighlight":null==(r=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:r[500],[`&:not([${Eb}])`]:cu({},t.instanceColor&&{"--_Input-focusedHighlight":null==(o=e.vars.palette["neutral"===t.instanceColor?"primary":t.instanceColor])?void 0:o[500]},{"--Input-focusedHighlight":`var(--_Input-focusedHighlight, ${e.vars.palette.focusVisible})`})},"sm"===t.size&&{"--Input-minHeight":"2rem","--Input-paddingInline":"0.5rem","--Input-decoratorChildHeight":"min(1.5rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},"md"===t.size&&{"--Input-minHeight":"2.25rem","--Input-paddingInline":"0.75rem","--Input-decoratorChildHeight":"min(1.75rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},"lg"===t.size&&{"--Input-minHeight":"2.75rem","--Input-paddingInline":"1rem","--Input-gap":"0.75rem","--Input-decoratorChildHeight":"min(2.25rem, var(--Input-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--Input-decoratorChildOffset":"min(calc(var(--Input-paddingInline) - (var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2), var(--Input-paddingInline))","--_Input-paddingBlock":"max((var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2, 0px)","--Input-decoratorChildRadius":"max(var(--Input-radius) - var(--variant-borderWidth, 0px) - var(--_Input-paddingBlock), min(var(--_Input-paddingBlock) + var(--variant-borderWidth, 0px), var(--Input-radius) / 2))","--Button-minHeight":"var(--Input-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Input-decoratorChildHeight)","--Button-radius":"var(--Input-decoratorChildRadius)","--IconButton-radius":"var(--Input-decoratorChildRadius)",boxSizing:"border-box"},"plain"!==t.variant&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Input-minHeight)"},t.fullWidth&&{width:"100%"},{cursor:"text",position:"relative",display:"flex",paddingInline:"var(--Input-paddingInline)",borderRadius:"var(--Input-radius)"},e.typography[`body-${t.size}`],s,{backgroundColor:null!=(a=null==s?void 0:s.backgroundColor)?a:e.vars.palette.background.surface,"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Input-focusedInset, inset) 0 0 0 calc(var(--Input-focused) * var(--Input-focusedThickness)) var(--Input-focusedHighlight)"}}),{"&:hover":cu({},null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color],{backgroundColor:null}),[`&.${Sy.disabled}`]:null==(l=e.variants[`${t.variant}Disabled`])?void 0:l[t.color],"&:focus-within::before":{"--Input-focused":"1"}}]})),Ey=vh("input")((({ownerState:e})=>({border:"none",minWidth:0,outline:0,padding:0,flex:1,color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit",textOverflow:"ellipsis","&:-webkit-autofill":cu({paddingInline:"var(--Input-paddingInline)"},!e.startDecorator&&{marginInlineStart:"calc(-1 * var(--Input-paddingInline))",paddingInlineStart:"var(--Input-paddingInline)",borderTopLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"},!e.endDecorator&&{marginInlineEnd:"calc(-1 * var(--Input-paddingInline))",paddingInlineEnd:"var(--Input-paddingInline)",borderTopRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"}),"&::-webkit-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"}}))),Py=vh("div")({"--Button-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Input-paddingInline) / -4)",display:"inherit",alignItems:"center",paddingBlock:"var(--unstable_InputPaddingBlock)",flexWrap:"wrap",marginInlineEnd:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),Ny=vh("div")({"--Button-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Input-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",marginInlineStart:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),$y=vh(Iy,{name:"JoyInput",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zy=vh(Ey,{name:"JoyInput",slot:"Input",overridesResolver:(e,t)=>t.input})({}),Ry=vh(Py,{name:"JoyInput",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({}),Dy=vh(Ny,{name:"JoyInput",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({}),Ty=o.forwardRef((function(t,n){var r,a,i,l,s,c;const u=bh({props:t,name:"JoyInput"}),d=function(e,t){var n;const r=o.useContext(Cy),{"aria-describedby":a,"aria-label":i,"aria-labelledby":l,autoComplete:s,autoFocus:c,className:u,defaultValue:d,disabled:p,disabledInProp:f,error:m,id:g,name:h,onClick:v,onChange:b,onKeyDown:y,onKeyUp:x,onFocus:w,onBlur:S,placeholder:C,readOnly:k,required:O,type:I,value:E}=e,P=Ep(e,ky),{getRootProps:N,getInputProps:$,focused:z,error:R,disabled:D}=qh({disabled:null!=(n=null!=f?f:null==r?void 0:r.disabled)?n:p,defaultValue:d,error:m,onBlur:S,onClick:v,onChange:b,onFocus:w,required:null!=O?O:null==r?void 0:r.required,value:E});return cu({formControl:r,propsToForward:{"aria-describedby":a,"aria-label":i,"aria-labelledby":l,autoComplete:s,autoFocus:c,disabled:D,id:g,onKeyDown:y,onKeyUp:x,name:h,placeholder:C,readOnly:k,type:I},rootStateClasses:{[t.disabled]:D,[t.error]:R,[t.focused]:z,[t.formControl]:Boolean(r),[u]:u},inputStateClasses:{[t.disabled]:D},getRootProps:N,getInputProps:$,focused:z,error:R,disabled:D},P)}(cu({},u,{disabledInProp:t.disabled}),Sy),{propsToForward:p,rootStateClasses:f,inputStateClasses:m,getRootProps:g,getInputProps:h,formControl:v,focused:b,error:y=!1,disabled:x,fullWidth:w=!1,size:S="md",color:C="neutral",variant:k="outlined",startDecorator:O,endDecorator:I,component:E,slots:P={},slotProps:N={}}=d,$=Ep(d,Oy);if("production"!==process.env.NODE_ENV){const e=null==v?void 0:v.registerEffect;o.useEffect((()=>{if(e)return e()}),[e])}const z=null!=(r=null!=(a=t.error)?a:null==v?void 0:v.error)?r:y,R=null!=(i=null!=(l=t.size)?l:null==v?void 0:v.size)?i:S,D=null!=(s=t.color)?s:z?"danger":null!=(c=null==v?void 0:v.color)?c:C,T=cu({instanceColor:z?"danger":t.color},u,{fullWidth:w,color:D,disabled:x,error:z,focused:b,size:R,variant:k}),j=(e=>{const{disabled:t,fullWidth:n,variant:r,color:o,size:a}=e;return rg({root:["root",t&&"disabled",n&&"fullWidth",r&&`variant${Lp(r)}`,o&&`color${Lp(o)}`,a&&`size${Lp(a)}`],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]},wy,{})})(T),M=cu({},$,{component:E,slots:P,slotProps:N}),[A,V]=Bv("root",{ref:n,className:[j.root,f],elementType:$y,getSlotProps:g,externalForwardedProps:M,ownerState:T}),[_,L]=Bv("input",cu({},v&&{additionalProps:{id:v.htmlFor,"aria-describedby":v["aria-describedby"]}},{className:[j.input,m],elementType:zy,getSlotProps:h,internalForwardedProps:p,externalForwardedProps:M,ownerState:T})),[F,B]=Bv("startDecorator",{className:j.startDecorator,elementType:Ry,externalForwardedProps:M,ownerState:T}),[H,W]=Bv("endDecorator",{className:j.endDecorator,elementType:Dy,externalForwardedProps:M,ownerState:T});return e.jsxs(A,cu({},V,{children:[O&&e.jsx(F,cu({},B,{children:O})),e.jsx(_,cu({},L)),I&&e.jsx(H,cu({},W,{children:I}))]}))}));function jy(e){return eh("MuiListSubheader",e)}"production"!==process.env.NODE_ENV&&(Ty.propTypes={autoComplete:Ga.string,autoFocus:Ga.bool,children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),defaultValue:Ga.oneOfType([Ga.arrayOf(Ga.string),Ga.number,Ga.string]),disabled:Ga.bool,endDecorator:Ga.node,error:Ga.bool,fullWidth:Ga.bool,id:Ga.string,name:Ga.string,onChange:Ga.func,placeholder:Ga.string,readOnly:Ga.bool,required:Ga.bool,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),startDecorator:Ga.node,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),value:Ga.oneOfType([Ga.arrayOf(Ga.string),Ga.number,Ga.string]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])}),th("MuiListSubheader",["root","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const My=["component","className","children","id","sticky","variant","color","slots","slotProps"],Ay=vh("div",{name:"JoyListSubheader",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n,r;return cu({boxSizing:"border-box",display:"flex",alignItems:"center",marginInline:"var(--ListItem-marginInline)",paddingBlock:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)",minBlockSize:"var(--ListItem-minHeight)"},e.typography["body-xs"],{fontSize:"max(0.75em, 0.625rem)",textTransform:"uppercase",letterSpacing:"0.1em"},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackground)"},{color:t.color?`var(--_Link-color, rgba(${null==(n=e.vars.palette[t.color])?void 0:n.mainChannel} / 1))`:e.vars.palette.text.tertiary},t.instanceColor&&{[`&:not([${Eb}])`]:{"--_Link-color":e.vars.palette.text.secondary}},null==(r=e.variants[t.variant])?void 0:r[t.color])})),Vy=o.forwardRef((function(t,n){const r=bh({props:t,name:"JoyListSubheader"}),{component:a,className:i,children:l,id:s,sticky:c=!1,variant:u,color:d,slots:p={},slotProps:f={}}=r,m=Ep(r,My),g=Vm(s),h=o.useContext(Kv);o.useEffect((()=>{h&&h(g||"")}),[h,g]);const v=cu({instanceColor:t.color},r,{id:g,sticky:c,variant:u,color:u?null!=d?d:"neutral":d}),b=(e=>{const{variant:t,color:n,sticky:r}=e;return rg({root:["root",r&&"sticky",n&&`color${Lp(n)}`,t&&`variant${Lp(t)}`]},jy,{})})(v),y=cu({},m,{component:a,slots:p,slotProps:f}),[x,w]=Bv("root",{ref:n,className:Uf(b.root,i),elementType:Ay,externalForwardedProps:y,ownerState:v,additionalProps:{as:a,id:g}});return e.jsx(x,cu({},w,{children:l}))}));function _y(e){return eh("MuiAutocomplete",e)}"production"!==process.env.NODE_ENV&&(Vy.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,id:Ga.string,slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sticky:Ga.bool,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])});const Ly=th("MuiAutocomplete",["root","wrapper","input","startDecorator","endDecorator","formControl","focused","disabled","error","multiple","limitTag","hasPopupIcon","hasClearIcon","clearIndicator","popupIndicator","popupIndicatorOpen","listbox","option","loading","noOptions","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);function Fy(e){return eh("MuiAutocompleteListbox",e)}th("MuiAutocompleteListbox",["root","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const By=["anchorEl","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","TransitionProps"],Hy=["children","className","component","color","variant","size","slots","slotProps"],Wy=vh(ub)((({theme:e,ownerState:t})=>{var n;const r=null==(n=e.variants[t.variant])?void 0:n[t.color];return cu({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==r?void 0:r.backgroundColor)||(null==r?void 0:r.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},rb,{boxShadow:e.shadow.md,borderRadius:`var(--List-radius, ${e.vars.radius.sm})`},!(null!=r&&r.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup},{zIndex:e.vars.zIndex.popup,overflow:"auto",maxHeight:"40vh",position:"relative","&:empty":{visibility:"hidden"},[`& .${Wv.nested}, & .${Wv.nested} .${lb.root}`]:{position:"initial"}})})),Gy=vh(Wy,{name:"JoyAutocompleteListbox",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qy=o.forwardRef((function(t,n){const r=bh({props:t,name:"JoyAutocompleteListbox"}),{children:o,className:a,component:i,color:l="neutral",variant:s="outlined",size:c="md",slots:u={},slotProps:d={}}=r,p=Ep(r,Hy),f=cu({},r,{size:c,color:l,variant:s,nesting:!1,row:!1,wrap:!1}),m=(e=>Ep(e,By))(p),g=(e=>{const{variant:t,color:n,size:r}=e;return rg({root:["root",t&&`variant${Lp(t)}`,n&&`color${Lp(n)}`,r&&`size${Lp(r)}`]},Fy,{})})(f),h=cu({},m,{component:i,slots:u,slotProps:d}),[v,b]=Bv("root",{ref:n,className:Uf(g.root,a),elementType:Gy,externalForwardedProps:h,ownerState:f,additionalProps:{role:"listbox"}});return e.jsx(Ab,{variant:s,color:l,children:e.jsx(v,cu({},b,{children:o}))})}));function Uy(e){return eh("MuiAutocompleteOption",e)}"production"!==process.env.NODE_ENV&&(qy.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,size:Ga.oneOf(["sm","md","lg"]),slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["contained","light","outlined","text"]),Ga.string])}),th("MuiAutocompleteOption",["root","focused","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const Yy=["children","component","color","variant","className","slots","slotProps"],Ky=vh(vb)((({theme:e,ownerState:t})=>{var n,r;return{'&[aria-disabled="true"]':null==(n=e.variants[`${t.variant}Disabled`])?void 0:n[t.color],'&[aria-selected="true"]':cu({},null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color],{fontWeight:e.vars.fontWeight.md})}})),Jy=vh(Ky,{name:"JoyAutocompleteOption",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xy=o.forwardRef((function(t,n){const r=bh({props:t,name:"JoyAutocompleteOption"}),{children:o,component:a="li",color:i="neutral",variant:l="plain",className:s,slots:c={},slotProps:u={}}=r,d=Ep(r,Yy),{variant:p=l,color:f=i}=Mb(t.variant,t.color),m=cu({},r,{component:a,color:f,variant:p}),g=(e=>{const{color:t,variant:n}=e;return rg({root:["root",t&&`color${Lp(t)}`,n&&`variant${Lp(n)}`]},Uy,{})})(m),h=cu({},d,{component:a,slots:c,slotProps:u}),[v,b]=Bv("root",{ref:n,className:Uf(g.root,s),elementType:Jy,externalForwardedProps:h,ownerState:m,additionalProps:{as:a,role:"option"}});return e.jsx(v,cu({},b,{children:o}))}));var Qy,Zy;"production"!==process.env.NODE_ENV&&(Xy.propTypes={children:Ga.node,className:Ga.string,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["contained","light","outlined","text"]),Ga.string])});const ex=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoHighlight","autoSelect","autoFocus","blurOnSelect","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","defaultValue","disableCloseOnSelect","disabledItemsFocusable","disableListWrap","disableClearable","disabled","endDecorator","error","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","handleHomeEndKeys","includeInputInList","isOptionEqualToValue","groupBy","id","inputValue","limitTags","loading","loadingText","multiple","name","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","placeholder","popupIcon","readOnly","renderGroup","renderOption","renderTags","required","type","startDecorator","size","color","variant","value","component","selectOnFocus","slots","slotProps"],tx=["onDelete"],nx=["onBlur","onFocus","onMouseDown"],rx=e=>null!==e.current&&e.current.contains(document.activeElement),ox=e=>{var t;return null!=(t=e.label)?t:e},ax=e=>`+${e}`,ix=t=>e.jsxs(nb,{nested:!0,children:[e.jsx(Vy,{sticky:!0,children:t.group}),e.jsx(pb,{children:t.children})]},t.key),lx=vh(Iy,{name:"JoyAutocomplete",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>cu({},"sm"===e.size&&{"--Autocomplete-wrapperGap":"3px"},"md"===e.size&&{"--Autocomplete-wrapperGap":"3px"},"lg"===e.size&&{"--Autocomplete-wrapperGap":"4px"},{"@media (pointer: fine)":{[`&:hover .${Ly.clearIndicator}`]:{visibility:"visible"}}},e.multiple&&!e.startDecorator&&{paddingInlineStart:0}))),sx=vh("div",{name:"JoyAutocomplete",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>({flex:1,minWidth:0,display:"flex",alignItems:"center",flexWrap:"wrap",gap:"var(--Autocomplete-wrapperGap)",[`&.${Ly.multiple}`]:cu({paddingBlock:"var(--Autocomplete-wrapperGap)"},!e.startDecorator&&{paddingInlineStart:"var(--Autocomplete-wrapperGap)"},!e.endDecorator&&{paddingInlineEnd:"var(--Autocomplete-wrapperGap)"})}))),cx=vh(Ey,{name:"JoyAutocomplete",slot:"Input",overridesResolver:(e,t)=>t.input})((({ownerState:e})=>cu({minWidth:30,minHeight:"var(--Chip-minHeight)"},e.multiple&&{marginInlineStart:"calc(var(--Autocomplete-wrapperGap) * 2.5)"}))),ux=vh(Py,{name:"JoyAutocomplete",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({}),dx=vh(Ny,{name:"JoyAutocomplete",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})((({ownerState:e})=>cu({},(e.hasClearIcon||e.hasPopupIcon)&&{"--Button-margin":"0px","--IconButton-margin":"0px","--Icon-margin":"0px"}))),px=vh(ey,{name:"JoyAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})((({ownerState:e})=>cu({alignSelf:"center"},!e.hasPopupIcon&&{marginInlineEnd:"calc(var(--Input-decoratorChildOffset) * -1)"},{marginInlineStart:"calc(var(--_Input-paddingBlock) / 2)",visibility:e.focused?"visible":"hidden"}))),fx=vh(ey,{name:"JoyAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>t.popupIndicator})({alignSelf:"center",marginInlineStart:"calc(var(--_Input-paddingBlock) / 2)",marginInlineEnd:"calc(var(--Input-decoratorChildOffset) * -1)",[`&.${Ly.popupIndicatorOpen}`]:{transform:"rotate(180deg)","--Icon-color":"currentColor"}}),mx=vh(Wy,{name:"JoyAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`}))),gx=vh(Ky,{name:"JoyAutocomplete",slot:"Option",overridesResolver:(e,t)=>t.option})({}),hx=vh(nb,{name:"JoyAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary}))),vx=vh(nb,{name:"JoyAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary}))),bx=vh("div",{name:"JoyAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})({marginInlineStart:"calc(var(--Input-paddingInline) / 2)",marginBlockStart:"var(--_Input-paddingBlock)"}),yx=o.forwardRef((function(t,n){var r,a,i,l,s,c,u;const d=bh({props:t,name:"JoyAutocomplete"}),{"aria-describedby":p,"aria-label":f,"aria-labelledby":m,autoFocus:g,clearIcon:h=Qy||(Qy=e.jsx(Rb,{fontSize:"md"})),clearText:v="Clear",closeText:b="Close",disableClearable:y=!1,disabled:x,endDecorator:w,error:S=!1,forcePopupIcon:C="auto",freeSolo:k=!1,getLimitTagsText:O=ax,getOptionLabel:I=ox,groupBy:E,id:P,limitTags:N=-1,loading:$=!1,loadingText:z="Loading…",multiple:R=!1,name:D,noOptionsText:T="No options",openText:j="Open",placeholder:M,popupIcon:A=Zy||(Zy=e.jsx(Db,{})),readOnly:V=!1,renderGroup:_=ix,renderOption:L,renderTags:F,required:B,type:H,startDecorator:W,size:G="md",color:q="neutral",variant:U="outlined",component:Y,slots:K={},slotProps:J={}}=d,X=Ep(d,ex),Q=o.useContext(Cy),Z=null!=(r=null!=(a=t.error)?a:null==Q?void 0:Q.error)?r:S,ee=null!=(i=null!=(l=t.size)?l:null==Q?void 0:Q.size)?i:G,te=null!=(s=t.color)?s:Z?"danger":null!=(c=null==Q?void 0:Q.color)?c:q,ne=null!=(u=null!=x?x:null==Q?void 0:Q.disabled)&&u,{getRootProps:re,getInputProps:oe,getPopupIndicatorProps:ae,getClearProps:ie,getTagProps:le,getListboxProps:se,getOptionProps:ce,value:ue,dirty:de,popupOpen:pe,focused:fe,focusedTag:me,anchorEl:ge,setAnchorEl:he,inputValue:ve,groupedOptions:be}=Vv(cu({},d,{id:null!=P?P:null==Q?void 0:Q.htmlFor,componentName:"Autocomplete",unstable_classNamePrefix:"Mui",unstable_isActiveElementInListbox:rx})),{onMouseDown:ye}=oe(),{onClick:xe}=re(),we=!y&&!ne&&de&&!V,Se=(!k||!0===C)&&!1!==C,Ce=cu({instanceColor:t.color},d,{value:ue,disabled:ne,focused:fe,getOptionLabel:I,hasOptions:!!be.length,hasClearIcon:we,hasPopupIcon:Se,inputFocused:-1===me,popupOpen:pe,size:ee,color:te,variant:U}),ke=(e=>{const{disabled:t,focused:n,hasClearIcon:r,hasPopupIcon:o,popupOpen:a,variant:i,color:l,size:s,multiple:c}=e;return rg({root:["root",n&&"focused",r&&"hasClearIcon",o&&"hasPopupIcon",i&&`variant${Lp(i)}`,l&&`color${Lp(l)}`,s&&`size${Lp(s)}`],wrapper:["wrapper",c&&"multiple"],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",a&&"popupIndicatorOpen",t&&"disabled"],listbox:["listbox"],option:["option"],loading:["loading"],noOptions:["noOptions"],limitTag:["limitTag"]},_y,{})})(Ce),Oe=cu({},X,{component:Y,slots:K,slotProps:J});let Ie;if(R&&ue.length>0){const t=e=>{const t=le(e),{onDelete:n}=t,r=Ep(t,tx);return cu({disabled:ne,size:ee,onClick:n},r)};Ie=F?F(ue,t,Ce):ue.map(((n,r)=>e.jsx(fy,{size:ee,variant:"soft",color:"neutral",endDecorator:e.jsx(xy,cu({},t({index:r}))),sx:{minWidth:0},children:I(n)},r)))}const Ee=Fm(n,he),Pe={[Ly.disabled]:ne,[Ly.error]:Z,[Ly.focused]:fe,[Ly.formControl]:Boolean(Q)},[Ne,$e]=Bv("root",{ref:Ee,className:[ke.root,Pe],elementType:lx,externalForwardedProps:Oe,ownerState:Ce,getSlotProps:re,additionalProps:{onClick:e=>{xe&&xe(e),e.currentTarget===e.target&&ye&&ye(e)}}}),[ze,Re]=Bv("wrapper",{className:ke.wrapper,elementType:sx,externalForwardedProps:Oe,ownerState:Ce}),De={[Ly.disabled]:ne},[Te,je]=Bv("input",{className:[ke.input,De],elementType:cx,getSlotProps:e=>{const t=oe(),{onBlur:n,onFocus:r,onMouseDown:o}=t;return cu({},Ep(t,nx),{onBlur:t=>{var r;null==n||n(t),null==(r=e.onBlur)||r.call(e,t)},onFocus:t=>{var n;null==r||r(t),null==(n=e.onFocus)||n.call(e,t)},onMouseDown:t=>{var n;null==o||o(t),null==(n=e.onMouseDown)||n.call(e,t)}})},externalForwardedProps:Oe,ownerState:Ce,additionalProps:{autoFocus:g,placeholder:M,name:D,readOnly:V,disabled:ne,required:null!=B?B:null==Q?void 0:Q.required,type:H,"aria-invalid":Z||void 0,"aria-label":f,"aria-labelledby":m,"aria-describedby":null!=p?p:null==Q?void 0:Q["aria-describedby"]}}),[Me,Ae]=Bv("startDecorator",{className:ke.startDecorator,elementType:ux,externalForwardedProps:Oe,ownerState:Ce}),[Ve,_e]=Bv("endDecorator",{className:ke.endDecorator,elementType:dx,externalForwardedProps:Oe,ownerState:Ce}),[Le,Fe]=Bv("clearIndicator",{className:ke.clearIndicator,elementType:px,getSlotProps:ie,externalForwardedProps:Oe,ownerState:Ce,getSlotOwnerState:e=>({size:e.size||ee,variant:e.variant||jb(U,te).variant||"plain",color:e.color||jb(U,te).color||"neutral",disableColorInversion:!!t.color}),additionalProps:{"aria-label":v,title:v}}),[Be,He]=Bv("popupIndicator",{className:ke.popupIndicator,elementType:fx,getSlotProps:ae,externalForwardedProps:Oe,ownerState:Ce,getSlotOwnerState:e=>({size:e.size||ee,variant:e.variant||jb(U,te).variant||"plain",color:e.color||jb(U,te).color||"neutral",disableColorInversion:!!t.color}),additionalProps:{disabled:ne,"aria-label":pe?b:j,title:pe?b:j,type:"button"}}),[We,Ge]=Bv("listbox",{className:ke.listbox,elementType:mx,getSlotProps:se,externalForwardedProps:Oe,ownerState:Ce,getSlotOwnerState:e=>({size:e.size||ee,variant:e.variant||U,color:e.color||te,disableColorInversion:!e.disablePortal}),additionalProps:{anchorEl:ge,open:pe,style:ge?{width:ge.clientWidth}:{}}}),[qe,Ue]=Bv("loading",{className:ke.loading,elementType:hx,externalForwardedProps:Oe,ownerState:Ce}),[Ye,Ke]=Bv("noOptions",{className:ke.noOptions,elementType:vx,externalForwardedProps:Oe,ownerState:Ce,additionalProps:{role:"presentation",onMouseDown:e=>{e.preventDefault()}}}),[Je,Xe]=Bv("limitTag",{className:ke.limitTag,elementType:bx,externalForwardedProps:Oe,ownerState:Ce});if(N>-1&&Array.isArray(Ie)){const t=Ie.length-N;!fe&&t>0&&(Ie=Ie.splice(0,N),Ie.push(e.jsx(Je,cu({},Xe,{children:O(t)}),Ie.length)))}const[Qe,Ze]=Bv("option",{className:ke.option,elementType:gx,externalForwardedProps:Oe,ownerState:Ce,getSlotOwnerState:e=>({variant:e.variant||jb(U,te).variant||"plain",color:e.color||jb(U,te).color||"neutral",disableColorInversion:!Ge.disablePortal}),additionalProps:{as:"li"}}),et=L||((t,n)=>e.jsx(Qe,cu({},t,{children:I(n)}))),tt=(e,t)=>{const n=ce({option:e,index:t});return et(cu({},Ze,n),e,{selected:!!n["aria-selected"],inputValue:ve,ownerState:Ce})},nt=o.useMemo((()=>[{name:"offset",options:{offset:[0,4]}},...Ge.modifiers||[]]),[Ge.modifiers]);let rt=null;var ot;ge&&(rt=e.jsx(Ab,{variant:U,color:te,children:e.jsx(ob,{nested:!0,children:e.jsxs(We,cu({},Ge,{className:Uf(Ge.className),modifiers:nt},!(null!=(ot=d.slots)&&ot.listbox)&&{as:Dv,slots:{root:Ge.as||"ul"}},{children:[be.map(((e,t)=>{if(E){const t=e;return _({key:String(t.key),group:t.group,children:t.options.map(((e,n)=>tt(e,t.index+n)))})}return tt(e,t)})),$&&0===be.length?e.jsx(qe,cu({},Ue,{children:z})):null,0!==be.length||k||$?null:e.jsx(Ye,cu({},Ke,{children:T}))]}))})}));return e.jsxs(o.Fragment,{children:[e.jsxs(Ne,cu({},$e,{children:[W&&e.jsx(Me,cu({},Ae,{children:W})),e.jsxs(ze,cu({},Re,{children:[Ie,e.jsx(Te,cu({},je))]})),w&&e.jsx(Ve,cu({},_e,{children:w})),we?e.jsx(Le,cu({},Fe,{children:h})):null,Se?e.jsx(Be,cu({},He,{children:A})):null]})),rt]})}));"production"!==process.env.NODE_ENV&&(yx.propTypes={"aria-describedby":Ga.string,"aria-label":Ga.string,"aria-labelledby":Ga.string,autoComplete:Ga.bool,autoFocus:Ga.bool,autoHighlight:Ga.bool,autoSelect:Ga.bool,blurOnSelect:Ga.oneOfType([Ga.oneOf(["mouse","touch"]),Ga.bool]),clearIcon:Ga.node,clearOnBlur:Ga.bool,clearOnEscape:Ga.bool,clearText:Ga.string,closeText:Ga.string,color:Ga.oneOf(["danger","neutral","primary","success","warning"]),defaultValue:km(Ga.any,(e=>e.multiple&&void 0!==e.defaultValue&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join("\n")):null)),disableClearable:Ga.bool,disableCloseOnSelect:Ga.bool,disabled:Ga.bool,disabledItemsFocusable:Ga.bool,disableListWrap:Ga.bool,endDecorator:Ga.node,error:Ga.bool,filterOptions:Ga.func,filterSelectedOptions:Ga.bool,forcePopupIcon:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.bool]),freeSolo:Ga.bool,getLimitTagsText:Ga.func,getOptionDisabled:Ga.func,getOptionKey:Ga.func,getOptionLabel:Ga.func,groupBy:Ga.func,handleHomeEndKeys:Ga.bool,id:Ga.string,includeInputInList:Ga.bool,inputValue:Ga.string,isOptionEqualToValue:Ga.func,limitTags:ng,loading:Ga.bool,loadingText:Ga.node,multiple:Ga.bool,name:Ga.string,noOptionsText:Ga.node,onChange:Ga.func,onClose:Ga.func,onHighlightChange:Ga.func,onInputChange:Ga.func,onKeyDown:Ga.func,onOpen:Ga.func,open:Ga.bool,openOnFocus:Ga.bool,openText:Ga.string,options:Ga.array.isRequired,placeholder:Ga.string,popupIcon:Ga.node,readOnly:Ga.bool,renderGroup:Ga.func,renderOption:Ga.func,renderTags:Ga.func,required:Ga.bool,selectOnFocus:Ga.bool,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({clearIndicator:Ga.oneOfType([Ga.func,Ga.object]),endDecorator:Ga.oneOfType([Ga.func,Ga.object]),input:Ga.oneOfType([Ga.func,Ga.object]),limitTag:Ga.oneOfType([Ga.func,Ga.object]),listbox:Ga.oneOfType([Ga.func,Ga.object]),loading:Ga.oneOfType([Ga.func,Ga.object]),noOptions:Ga.oneOfType([Ga.func,Ga.object]),option:Ga.oneOfType([Ga.func,Ga.object]),popupIndicator:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object]),startDecorator:Ga.oneOfType([Ga.func,Ga.object]),wrapper:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({clearIndicator:Ga.elementType,endDecorator:Ga.elementType,input:Ga.elementType,limitTag:Ga.elementType,listbox:Ga.elementType,loading:Ga.elementType,noOptions:Ga.elementType,option:Ga.elementType,popupIndicator:Ga.elementType,root:Ga.elementType,startDecorator:Ga.elementType,wrapper:Ga.elementType}),startDecorator:Ga.node,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),type:Ga.string,value:km(Ga.any,(e=>e.multiple&&void 0!==e.value&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join("\n")):null)),variant:Ga.oneOf(["outlined","plain","soft","solid"])});const xx=Xf("MuiBox",["root"]),wx=function(t={}){const{themeId:n,defaultTheme:r,defaultClassName:a="MuiBox-root",generateClassName:i}=t,l=Ip("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Tf);return o.forwardRef((function(t,o){const s=Lf(r),c=Hf(t),{className:u,component:d="div"}=c,p=Ep(c,Yf);return e.jsx(l,cu({as:d,ref:o,className:Uf(u,i?i(a):a),theme:n&&s[n]||s},p))}))}({themeId:lu,defaultTheme:sh,defaultClassName:xx.root,generateClassName:Gf.generate});function Sx(e){return eh("MuiButton",e)}"production"!==process.env.NODE_ENV&&(wx.propTypes={children:Ga.node,component:Ga.elementType,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object])});const Cx=th("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]),kx=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],Ox=vh("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),Ix=vh("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),Ex=vh("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})((({theme:e,ownerState:t})=>{var n,r;return cu({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color},t.disabled&&{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color})})),Px=({theme:e,ownerState:t})=>{var n,r,o,a;return[cu({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon},"sm"===t.size&&{"--Icon-fontSize":e.vars.fontSize.lg,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.25rem)",paddingInline:"0.75rem"},"md"===t.size&&{"--Icon-fontSize":e.vars.fontSize.xl,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.25rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.375rem)",paddingInline:"1rem"},"lg"===t.size&&{"--Icon-fontSize":e.vars.fontSize.xl2,"--CircularProgress-size":"28px","--CircularProgress-thickness":"4px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 2.75rem)",fontSize:e.vars.fontSize.md,paddingBlock:"var(--Button-paddingBlock, 0.5rem)",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",boxSizing:"border-box",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",userSelect:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:e.vars.lineHeight.md},t.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),cu({},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:hover":{"@media (hover: hover)":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color]},'&:active, &[aria-pressed="true"]':null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color],[`&.${Cx.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]},"center"===t.loadingPosition&&{[`&.${Cx.loading}`]:{color:"transparent"}})]},Nx=vh("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,t)=>t.root})(Px),$x=o.forwardRef((function(t,n){var r;const a=bh({props:t,name:"JoyButton"}),{children:i,action:l,color:s="primary",variant:c="solid",size:u="md",fullWidth:d=!1,startDecorator:p,endDecorator:f,loading:m=!1,loadingPosition:g="center",loadingIndicator:h,disabled:v,component:b,slots:y={},slotProps:x={}}=a,w=Ep(a,kx),S=o.useContext(_b),C=o.useContext(Lb),k=t.variant||S.variant||c,O=t.size||S.size||u,I=t.color||S.color||s,E=null!=(r=t.loading||t.disabled)?r:S.disabled||m||v,P=o.useRef(null),N=Fm(P,n),{focusVisible:$,setFocusVisible:z,getRootProps:R}=zh(cu({},a,{disabled:E,rootRef:N})),D=null!=h?h:e.jsx(Qb,{color:I,thickness:{sm:2,md:3,lg:4}[O]||3});o.useImperativeHandle(l,(()=>({focusVisible:()=>{var e;z(!0),null==(e=P.current)||e.focus()}})),[z]);const T=cu({},a,{color:I,fullWidth:d,variant:k,size:O,focusVisible:$,loading:m,loadingPosition:g,disabled:E}),j=(e=>{const{color:t,disabled:n,focusVisible:r,focusVisibleClassName:o,fullWidth:a,size:i,variant:l,loading:s}=e,c=rg({root:["root",n&&"disabled",r&&"focusVisible",a&&"fullWidth",l&&`variant${Lp(l)}`,t&&`color${Lp(t)}`,i&&`size${Lp(i)}`,s&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},Sx,{});return r&&o&&(c.root+=` ${o}`),c})(T);let M=a["aria-pressed"];"function"==typeof x.root?M=x.root(T)["aria-pressed"]:x.root&&(M=x.root["aria-pressed"]),null!=C&&C.value&&(M=Array.isArray(C.value)?-1!==C.value.indexOf(a.value):C.value===a.value);const A=cu({},w,{component:b,slots:y,slotProps:x}),[V,_]=Bv("root",{ref:n,className:j.root,elementType:Nx,externalForwardedProps:A,getSlotProps:R,ownerState:T,additionalProps:{onClick:e=>{var t;let n=a.onClick;var r;("function"==typeof x.root?n=x.root(T).onClick:x.root&&(n=x.root.onClick),null==(t=n)||t(e),C)&&(null==(r=C.onClick)||r.call(C,e,a.value))},"aria-pressed":M}}),[L,F]=Bv("startDecorator",{className:j.startDecorator,elementType:Ox,externalForwardedProps:A,ownerState:T}),[B,H]=Bv("endDecorator",{className:j.endDecorator,elementType:Ix,externalForwardedProps:A,ownerState:T}),[W,G]=Bv("loadingIndicatorCenter",{className:j.loadingIndicatorCenter,elementType:Ex,externalForwardedProps:A,ownerState:T});return e.jsxs(V,cu({},_,{children:[(p||m&&"start"===g)&&e.jsx(L,cu({},F,{children:m&&"start"===g?D:p})),i,m&&"center"===g&&e.jsx(W,cu({},G,{children:D})),(f||m&&"end"===g)&&e.jsx(B,cu({},H,{children:m&&"end"===g?D:f}))]}))}));"production"!==process.env.NODE_ENV&&($x.propTypes={action:Ga.oneOfType([Ga.func,Ga.shape({current:Ga.shape({focusVisible:Ga.func.isRequired})})]),children:Ga.node,color:Ga.oneOfType([Ga.oneOf(["danger","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,disabled:Ga.bool,endDecorator:Ga.node,focusVisibleClassName:Ga.string,fullWidth:Ga.bool,loading:Ga.bool,loadingIndicator:Ga.node,loadingPosition:Ga.oneOf(["center","end","start"]),onClick:Ga.func,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({endDecorator:Ga.oneOfType([Ga.func,Ga.object]),loadingIndicatorCenter:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object]),startDecorator:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({endDecorator:Ga.elementType,loadingIndicatorCenter:Ga.elementType,root:Ga.elementType,startDecorator:Ga.elementType}),startDecorator:Ga.node,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),tabIndex:Ga.number,value:Ga.oneOfType([Ga.arrayOf(Ga.string),Ga.number,Ga.string]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])}),$x.muiName="Button";const zx=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(zx.displayName="ModalDialogVariantColorContext");const Rx=th("MuiDialogTitle",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]),Dx=o.createContext(void 0);function Tx(e){return eh("MuiModal",e)}"production"!==process.env.NODE_ENV&&(Dx.displayName="ModalDialogSizeContext"),th("MuiModal",["root","hidden","backdrop"]);const jx=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(jx.displayName="CloseModalContext");const Mx=["children","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onClose","onKeyDown","open","component","slots","slotProps"],Ax=vh("div")((({ownerState:e,theme:t})=>cu({"--unstable_popup-zIndex":`calc(${t.vars.zIndex.modal} + 1)`,'& ~ [role="listbox"]':{"--unstable_popup-zIndex":`calc(${t.vars.zIndex.modal} + 1)`},position:"fixed",zIndex:t.vars.zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&{visibility:"hidden"}))),Vx=vh(Ax,{name:"JoyModal",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_x=vh("div")((({theme:e})=>({zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:e.vars.palette.background.backdrop,WebkitTapHighlightColor:"transparent",backdropFilter:"blur(8px)"}))),Lx=vh(_x,{name:"JoyModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({}),Fx=o.forwardRef((function(t,n){const r=bh({props:t,name:"JoyModal"}),{children:a,container:i,disableAutoFocus:l=!1,disableEnforceFocus:s=!1,disableEscapeKeyDown:c=!1,disablePortal:u=!1,disableRestoreFocus:d=!1,disableScrollLock:p=!1,hideBackdrop:f=!1,keepMounted:m=!1,onClose:g,open:h,component:v,slots:b={},slotProps:y={}}=r,x=Ep(r,Mx),w=cu({},r,{disableAutoFocus:l,disableEnforceFocus:s,disableEscapeKeyDown:c,disablePortal:u,disableRestoreFocus:d,disableScrollLock:p,hideBackdrop:f,keepMounted:m}),{getRootProps:S,getBackdropProps:C,rootRef:k,portalRef:O,isTopModal:I}=Cv(cu({},w,{rootRef:n})),E=(e=>{const{open:t}=e;return rg({root:["root",!t&&"hidden"],backdrop:["backdrop"]},Tx,{})})(w),P=cu({},x,{component:v,slots:b,slotProps:y}),[N,$]=Bv("root",{ref:k,className:E.root,elementType:Vx,externalForwardedProps:P,getSlotProps:S,ownerState:w}),[z,R]=Bv("backdrop",{className:E.backdrop,elementType:Lx,externalForwardedProps:P,getSlotProps:C,ownerState:w});return m||h?e.jsx(jx.Provider,{value:g,children:e.jsx(fv,{ref:O,container:i,disablePortal:u,children:e.jsxs(N,cu({},$,{children:[f?null:e.jsx(z,cu({},R)),e.jsx(Wh,{disableEnforceFocus:s,disableAutoFocus:l,disableRestoreFocus:d,isEnabled:I,open:h,children:o.Children.only(a)&&o.cloneElement(a,cu({},void 0===a.props.tabIndex&&{tabIndex:-1}))})]}))})}):null}));function Bx(e){return eh("MuiDrawer",e)}"production"!==process.env.NODE_ENV&&(Fx.propTypes={children:Im.isRequired,component:Ga.elementType,container:Ga.oneOfType([Nm,Ga.func]),disableAutoFocus:Ga.bool,disableEnforceFocus:Ga.bool,disableEscapeKeyDown:Ga.bool,disablePortal:Ga.bool,disableRestoreFocus:Ga.bool,disableScrollLock:Ga.bool,hideBackdrop:Ga.bool,keepMounted:Ga.bool,onClose:Ga.func,onKeyDown:Ga.func,open:Ga.bool.isRequired,slotProps:Ga.shape({backdrop:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({backdrop:Ga.elementType,root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object])}),th("MuiDrawer",["root","hidden","backdrop","content","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const Hx=["children","anchor","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","color","variant","invertedColors","size","onClose","onKeyDown","open","component","slots","slotProps"],Wx=vh(Ax,{name:"JoyDrawer",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>cu({"--Drawer-transitionDuration":"0.3s","--Drawer-transitionFunction":"ease","--ModalClose-radius":"max((var(--Drawer-contentRadius) - var(--variant-borderWidth, 0px)) - var(--ModalClose-inset), min(var(--ModalClose-inset) / 2, (var(--Drawer-contentRadius) - var(--variant-borderWidth, 0px)) / 2))"},"sm"===e.size&&{"--ModalClose-inset":"0.5rem","--Drawer-verticalSize":"clamp(350px, 30%, 100%)","--Drawer-horizontalSize":"clamp(256px, 20%, 100%)","--Drawer-titleMargin":"0.625rem 0.75rem calc(0.625rem / 2)"},"md"===e.size&&{"--ModalClose-inset":"0.5rem","--Drawer-verticalSize":"clamp(400px, 45%, 100%)","--Drawer-horizontalSize":"clamp(300px, 30%, 100%)","--Drawer-titleMargin":"0.75rem 0.75rem calc(0.75rem / 2)"},"lg"===e.size&&{"--ModalClose-inset":"0.75rem","--Drawer-verticalSize":"clamp(500px, 60%, 100%)","--Drawer-horizontalSize":"clamp(440px, 60%, 100%)","--Drawer-titleMargin":"1rem 1rem calc(1rem / 2)"},{transitionProperty:"visibility",transitionDelay:e.open?"0s":"var(--Drawer-transitionDuration)"},!e.open&&{visibility:"hidden"}))),Gx=vh(_x,{name:"JoyDrawer",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})((({ownerState:e})=>({opacity:e.open?1:0,transition:"opacity var(--Drawer-transitionDuration) ease-in-out"}))),qx=vh("div",{name:"JoyDrawer",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>{var n;return cu({},e.typography[`body-${t.size}`],{boxShadow:e.shadow.md,backgroundColor:e.vars.palette.background.surface,outline:0,display:"flex",flexDirection:"column",position:"fixed",boxSizing:"border-box",overflow:"auto"},"left"===t.anchor&&{top:0,left:0,transform:t.open?"translateX(0)":"translateX(-100%)"},"right"===t.anchor&&{top:0,right:0,transform:t.open?"translateX(0)":"translateX(100%)"},"top"===t.anchor&&{top:0,transform:t.open?"translateY(0)":"translateY(-100%)"},"bottom"===t.anchor&&{bottom:0,transform:t.open?"translateY(0)":"translateY(100%)"},{height:t.anchor.match(/(left|right)/)?"100%":"min(100vh, var(--Drawer-verticalSize))",width:t.anchor.match(/(top|bottom)/)?"100vw":"min(100vw, var(--Drawer-horizontalSize))",transition:"transform var(--Drawer-transitionDuration) var(--Drawer-transitionFunction)"},"solid"===t.variant&&t.color&&t.invertedColors&&$b(t.color)(e),"soft"===t.variant&&t.color&&t.invertedColors&&zb(t.color)(e),null==(n=e.variants[t.variant])?void 0:n[t.color],{[`& > .${Rx.root}`]:{"--unstable_DialogTitle-margin":"var(--Drawer-titleMargin)"}})})),Ux=o.forwardRef((function(t,n){const r=bh({props:t,name:"JoyDrawer"}),{children:a,anchor:i="left",container:l,disableAutoFocus:s=!1,disableEnforceFocus:c=!1,disableEscapeKeyDown:u=!1,disablePortal:d=!1,disableRestoreFocus:p=!1,disableScrollLock:f=!1,hideBackdrop:m=!1,color:g="neutral",variant:h="plain",invertedColors:v=!1,size:b="md",onClose:y,open:x,component:w,slots:S={},slotProps:C={}}=r,k=Ep(r,Hx),O=cu({},r,{anchor:i,disableAutoFocus:s,disableEnforceFocus:c,disableEscapeKeyDown:u,disablePortal:d,disableRestoreFocus:p,disableScrollLock:f,hideBackdrop:m,invertedColors:v,color:g,variant:h,size:b}),{getRootProps:I,getBackdropProps:E,rootRef:P,portalRef:N,isTopModal:$}=Cv(cu({},O,{rootRef:n,children:null})),z=(e=>{const{open:t,variant:n,color:r,size:o}=e;return rg({root:["root",!t&&"hidden",n&&`variant${Lp(n)}`,r&&`color${Lp(r)}`,o&&`size${Lp(o)}`],backdrop:["backdrop"],content:["content"]},Bx,{})})(O),R=cu({},k,{component:w,slots:S,slotProps:C}),D=Vm(),T=Vm(),j=o.useMemo((()=>({variant:h,color:g,labelledBy:D,describedBy:T})),[g,h,D,T]),[M,A]=Bv("root",{ref:P,className:z.root,elementType:Wx,externalForwardedProps:R,getSlotProps:I,ownerState:O}),[V,_]=Bv("backdrop",{className:z.backdrop,elementType:Gx,externalForwardedProps:R,getSlotProps:E,ownerState:O}),[L,F]=Bv("content",{className:z.content,elementType:qx,additionalProps:{tabIndex:-1,role:"dialog","aria-modal":"true","aria-labelledby":D,"aria-describedby":T},externalForwardedProps:R,ownerState:O});return e.jsx(jx.Provider,{value:y,children:e.jsx(Dx.Provider,{value:b,children:e.jsx(zx.Provider,{value:j,children:e.jsx(fv,{ref:N,container:l,disablePortal:d,children:e.jsxs(M,cu({},A,{children:[m?null:e.jsx(V,cu({},_)),e.jsx(Wh,{disableEnforceFocus:c,disableAutoFocus:s,disableRestoreFocus:p,isEnabled:$,open:x,children:e.jsx(L,cu({},F,{children:a}))})]}))})})})})}));"production"!==process.env.NODE_ENV&&(Ux.propTypes={anchor:Ga.oneOf(["bottom","left","right","top"]),children:Ga.node,color:Ga.oneOf(["danger","neutral","primary","success","warning"]),component:Ga.elementType,container:Ga.oneOfType([Nm,Ga.func]),disableAutoFocus:Ga.bool,disableEnforceFocus:Ga.bool,disableEscapeKeyDown:Ga.bool,disablePortal:Ga.bool,disableRestoreFocus:Ga.bool,disableScrollLock:Ga.bool,hideBackdrop:Ga.bool,invertedColors:Ga.bool,onClose:Ga.func,onKeyDown:Ga.func,open:Ga.bool.isRequired,size:Ga.oneOf(["sm","md","lg"]),slotProps:Ga.shape({backdrop:Ga.oneOfType([Ga.func,Ga.object]),content:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({backdrop:Ga.elementType,content:Ga.elementType,root:Ga.elementType}),variant:Ga.oneOf(["outlined","plain","soft","solid"])});const Yx=function(t={}){const{createStyledComponent:n=Jg,useThemeProps:r=Xg,componentName:a="MuiGrid"}=t,i=o.createContext(void 0);"production"!==process.env.NODE_ENV&&(i.displayName="GridOverflowContext");const l=n(Lg,Bg,Fg,Vg,Hg,Wg,_g),s=o.forwardRef((function(t,n){var s,c,u,d,p,f,m,g;const h=Lf(),v=Hf(r(t)),b=o.useContext(i),{className:y,children:x,columns:w=12,container:S=!1,component:C="div",direction:k="row",wrap:O="wrap",spacing:I=0,rowSpacing:E=I,columnSpacing:P=I,disableEqualOverflow:N,unstable_level:$=0}=v,z=Ep(v,Yg);let R=N;$&&void 0!==N&&(R=t.disableEqualOverflow);const D={},T={},j={};Object.entries(z).forEach((([e,t])=>{void 0!==h.breakpoints.values[e]?D[e]=t:void 0!==h.breakpoints.values[e.replace("Offset","")]?T[e.replace("Offset","")]=t:j[e]=t}));const M=null!=(s=t.columns)?s:$?void 0:w,A=null!=(c=t.spacing)?c:$?void 0:I,V=null!=(u=null!=(d=t.rowSpacing)?d:t.spacing)?u:$?void 0:E,_=null!=(p=null!=(f=t.columnSpacing)?f:t.spacing)?p:$?void 0:P,L=cu({},v,{level:$,columns:M,container:S,direction:k,wrap:O,spacing:A,rowSpacing:V,columnSpacing:_,gridSize:D,gridOffset:T,disableEqualOverflow:null!=(m=null!=(g=R)?g:b)&&m,parentDisableEqualOverflow:b}),F=((e,t)=>{const{container:n,direction:r,spacing:o,wrap:i,gridSize:l}=e;return rg({root:["root",n&&"container","wrap"!==i&&`wrap-xs-${String(i)}`,...Ug(r),...Gg(l),...n?qg(o,t.breakpoints.keys[0]):[]]},(e=>Jf(a,e)),{})})(L,h);let B=e.jsx(l,cu({ref:n,as:C,ownerState:L,className:Uf(F.root,y)},j,{children:o.Children.map(x,(e=>{var t;return o.isValidElement(e)&&Rm(e,["Grid"])?o.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:$+1}):e}))}));return void 0!==R&&R!==(null!=b&&b)&&(B=e.jsx(i.Provider,{value:R,children:B})),B}));return"production"!==process.env.NODE_ENV&&(s.propTypes={children:Ga.node,className:Ga.string,columns:Ga.oneOfType([Ga.arrayOf(Ga.number),Ga.number,Ga.object]),columnSpacing:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.number,Ga.string])),Ga.number,Ga.object,Ga.string]),component:Ga.elementType,container:Ga.bool,direction:Ga.oneOfType([Ga.oneOf(["column-reverse","column","row-reverse","row"]),Ga.arrayOf(Ga.oneOf(["column-reverse","column","row-reverse","row"])),Ga.object]),disableEqualOverflow:Ga.bool,lg:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number,Ga.bool]),lgOffset:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number]),md:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number,Ga.bool]),mdOffset:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number]),rowSpacing:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.number,Ga.string])),Ga.number,Ga.object,Ga.string]),sm:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number,Ga.bool]),smOffset:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number]),spacing:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.number,Ga.string])),Ga.number,Ga.object,Ga.string]),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),wrap:Ga.oneOf(["nowrap","wrap-reverse","wrap"]),xl:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number,Ga.bool]),xlOffset:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number]),xs:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number,Ga.bool]),xsOffset:Ga.oneOfType([Ga.oneOf(["auto"]),Ga.number])}),s.muiName="Grid",s}({createStyledComponent:vh("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>bh({props:e,name:"JoyGrid"})});function Kx(e){return eh("MuiListItemDecorator",e)}"production"!==process.env.NODE_ENV&&(Yx.propTypes={children:Ga.node,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object])}),th("MuiListItemDecorator",["root"]);const Jx=["component","className","children","slots","slotProps"],Xx=vh("span",{name:"JoyListItemDecorator",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>cu({boxSizing:"border-box",display:"inline-flex",alignItems:`var(--unstable_ListItemDecorator-alignItems, ${"horizontal"===e.parentOrientation?"center":"initial"})`},"horizontal"===e.parentOrientation?{minInlineSize:"var(--ListItemDecorator-size)",marginInlineEnd:"calc(-1 * var(--ListItem-gap))"}:{minBlockSize:"var(--ListItemDecorator-size)",justifyContent:"center",marginBlockEnd:"calc(-1 * var(--ListItem-gap))"}))),Qx=o.forwardRef((function(t,n){const r=bh({props:t,name:"JoyListItemDecorator"}),{component:a,className:i,children:l,slots:s={},slotProps:c={}}=r,u=Ep(r,Jx),d=cu({parentOrientation:o.useContext(gb)},r),p=rg({root:["root"]},Kx,{}),f=cu({},u,{component:a,slots:s,slotProps:c}),[m,g]=Bv("root",{ref:n,className:Uf(p.root,i),elementType:Xx,externalForwardedProps:f,ownerState:d});return e.jsx(m,cu({},g,{children:l}))}));function Zx(e){return eh("MuiMenu",e)}"production"!==process.env.NODE_ENV&&(Qx.propTypes={children:Ga.node,className:Ga.string,component:Ga.elementType,slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object])}),th("MuiMenu",["root","listbox","expanded","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const ew=["actions","children","color","component","disablePortal","keepMounted","id","invertedColors","onItemsChange","modifiers","variant","size","slots","slotProps"],tw=vh(ub,{name:"JoyMenu",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{var n,r;const o=null==(n=e.variants[t.variant])?void 0:n[t.color];return[cu({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==o?void 0:o.backgroundColor)||(null==o?void 0:o.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},rb,{borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,boxShadow:e.shadow.md,overflow:"auto",zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=o&&o.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup},"solid"===t.variant&&t.color&&t.invertedColors&&$b(t.color)(e),"soft"===t.variant&&t.color&&t.invertedColors&&zb(t.color)(e),null==(r=e.variants[t.variant])?void 0:r[t.color])]})),nw=o.forwardRef((function(t,n){var r;const a=bh({props:t,name:"JoyMenu"}),{actions:i,children:l,color:s="neutral",component:c,disablePortal:u=!1,keepMounted:d=!1,id:p,invertedColors:f=!1,onItemsChange:m,modifiers:g,variant:h="outlined",size:v="md",slots:b={},slotProps:y={}}=a,x=Ep(a,ew),{contextValue:w,getListboxProps:S,dispatch:C,open:k,triggerElement:O}=function(e={}){var t,n;const{listboxRef:r,onItemsChange:a,id:i,disabledItemsFocusable:l=!0,disableListWrap:s=!1,autoFocus:c=!0,componentName:u="useMenu"}=e,d=o.useRef(null),p=Fm(d,r),f=null!=(t=Vm(i))?t:"",{state:{open:m,changeReason:g},dispatch:h,triggerElement:v,registerPopup:b}=null!=(n=o.useContext(Rh))?n:dv,y=o.useRef(m),{subitems:x,contextValue:w}=cv(),S=o.useMemo((()=>Array.from(x.keys())),[x]),C=o.useCallback((e=>{var t,n;return null==e?null:null!=(t=null==(n=x.get(e))?void 0:n.ref.current)?t:null}),[x]),k=o.useCallback((e=>{var t;return(null==x||null==(t=x.get(e))?void 0:t.disabled)||!1}),[x]),O=o.useCallback((e=>{var t,n;return(null==(t=x.get(e))?void 0:t.label)||(null==(n=x.get(e))||null==(n=n.ref.current)?void 0:n.innerText)}),[x]),I=o.useMemo((()=>({listboxRef:d})),[d]),{dispatch:E,getRootProps:P,contextValue:N,state:{highlightedValue:$},rootRef:z}=av({disabledItemsFocusable:l,disableListWrap:s,focusManagement:"DOM",getItemDomElement:C,getInitialState:()=>({selectedValues:[],highlightedValue:null}),isItemDisabled:k,items:S,getItemAsString:O,rootRef:p,onItemsChange:a,reducerActionContext:I,selectionMode:"none",stateReducer:lv,componentName:u});wm((()=>{b(f)}),[f,b]),wm((()=>{m&&"keydown"===(null==g?void 0:g.type)&&"ArrowUp"===g.key&&E({type:Uh.highlightLast,event:g})}),[m,g,E]),o.useEffect((()=>{var e;m&&c&&$&&!y.current&&(null==(e=x.get($))||null==(e=e.ref)||null==(e=e.current)||e.focus())}),[m,c,$,x,S]),o.useEffect((()=>{var e,t;null!=(e=d.current)&&e.contains(document.activeElement)&&null!==$&&(null==x||null==(t=x.get($))||null==(t=t.ref.current)||t.focus())}),[$,x]);const R=e=>t=>{var n,r;null==(n=e.onBlur)||n.call(e,t),t.defaultMuiPrevented||null!=(r=d.current)&&r.contains(t.relatedTarget)||t.relatedTarget===v||h({type:Vh.blur,event:t})},D=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"Escape"===t.key&&h({type:Vh.escapeKeyDown,event:t})},T=(e={})=>({onBlur:R(e),onKeyDown:D(e)});return o.useDebugValue({subitems:x,highlightedValue:$}),{contextValue:cu({},w,N),dispatch:E,getListboxProps:(e={})=>{const t=uv(T,P),n=Ch(e);return cu({},e,n,t(n),{id:f,role:"menu"})},highlightedValue:$,listboxRef:z,menuItems:x,open:m,triggerElement:v}}({onItemsChange:m,id:p,listboxRef:n});o.useImperativeHandle(i,(()=>({dispatch:C,resetHighlight:()=>C({type:Uh.resetHighlight,event:null})})),[C]);const I=cu({},a,{disablePortal:u,invertedColors:f,color:s,variant:h,size:v,open:k,nesting:!1,row:!1}),E=(e=>{const{open:t,variant:n,color:r,size:o}=e;return rg({root:["root",t&&"expanded",n&&`variant${Lp(n)}`,r&&`color${Lp(r)}`,o&&`size${Lp(o)}`],listbox:["listbox"]},Zx,{})})(I),P=cu({},x,{component:c,slots:b,slotProps:y}),N=o.useMemo((()=>[{name:"offset",options:{offset:[0,4]}},...g||[]]),[g]),$=Ph({elementType:tw,getSlotProps:S,externalForwardedProps:P,externalSlotProps:{},ownerState:I,additionalProps:{anchorEl:O,open:k&&null!==O,disablePortal:u,keepMounted:d,modifiers:N},className:E.root});return e.jsx(tw,cu({},$,!(null!=(r=a.slots)&&r.root)&&{as:Dv,slots:{root:c||"ul"}},{children:e.jsx(pv,{value:w,children:e.jsx(Ab,{variant:f?void 0:h,color:s,children:e.jsx(Jv.Provider,{value:"menu",children:e.jsx(ob,{nested:!0,children:l})})})})}))}));function rw(e){return eh("MuiMenuButton",e)}"production"!==process.env.NODE_ENV&&(nw.propTypes={actions:$m,children:Ga.node,color:Ga.oneOf(["danger","neutral","primary","success","warning"]),component:Ga.elementType,disablePortal:Ga.bool,id:Ga.string,invertedColors:Ga.bool,keepMounted:Ga.bool,modifiers:Ga.arrayOf(Ga.shape({data:Ga.object,effect:Ga.func,enabled:Ga.bool,fn:Ga.func,name:Ga.any,options:Ga.object,phase:Ga.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:Ga.arrayOf(Ga.string),requiresIfExists:Ga.arrayOf(Ga.string)})),onClose:Ga.func,onItemsChange:Ga.func,open:Ga.bool,size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({root:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({root:Ga.elementType}),sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])}),th("MuiMenuButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);const ow=["children","color","component","disabled","endDecorator","loading","loadingPosition","loadingIndicator","size","slotProps","slots","startDecorator","variant"],aw=vh("button",{name:"JoyMenuButton",slot:"Root",overridesResolver:(e,t)=>t.root})(Px),iw=vh("span",{name:"JoyMenuButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),lw=vh("span",{name:"JoyMenuButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),sw=vh("span",{name:"JoyMenuButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})((({theme:e,ownerState:t})=>{var n,r;return cu({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color},t.disabled&&{color:null==(r=e.variants[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color})})),cw=o.forwardRef((function(t,n){var r;const a=bh({props:t,name:"JoyMenuButton"}),{children:i,color:l="neutral",component:s,disabled:c=!1,endDecorator:u,loading:d=!1,loadingPosition:p="center",loadingIndicator:f,size:m="md",slotProps:g={},slots:h={},startDecorator:v,variant:b="outlined"}=a,y=Ep(a,ow),x=o.useContext(_b),w=t.variant||x.variant||b,S=t.size||x.size||m,C=null!=(r=t.disabled)?r:x.disabled||c||d,{getRootProps:k,open:O,active:I}=function(e={}){const{disabled:t=!1,focusableWhenDisabled:n,rootRef:r}=e,a=o.useContext(Rh);if(null===a)throw new Error("useMenuButton: no menu context available.");const{state:i,dispatch:l,registerTrigger:s,popupId:c}=a,{getRootProps:u,rootRef:d,active:p}=zh({disabled:t,focusableWhenDisabled:n,rootRef:r}),f=Fm(d,s),m=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultMuiPrevented||l({type:Vh.toggle,event:t})},g=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),l({type:Vh.open,event:t}))},h=(e={})=>({onClick:m(e),onKeyDown:g(e)});return{active:p,getRootProps:(e={})=>{const t=Ch(e),n=uv(h,u);return cu({"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":c},e,t,n(t),{tabIndex:0,ref:f})},open:i.open,rootRef:f}}({rootRef:n,disabled:C}),E=null!=f?f:e.jsx(Qb,{color:l,thickness:{sm:2,md:3,lg:4}[S]||3}),P=cu({},a,{active:I,color:l,disabled:C,open:O,size:S,variant:w}),N=(e=>{const{color:t,disabled:n,fullWidth:r,size:o,variant:a,loading:i}=e;return rg({root:["root",n&&"disabled",r&&"fullWidth",a&&`variant${Lp(a)}`,t&&`color${Lp(t)}`,o&&`size${Lp(o)}`,i&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},rw,{})})(P),$=cu({},y,{component:s,slots:h,slotProps:g}),[z,R]=Bv("root",{elementType:aw,getSlotProps:k,externalForwardedProps:$,ref:n,ownerState:P,className:N.root}),[D,T]=Bv("startDecorator",{className:N.startDecorator,elementType:iw,externalForwardedProps:$,ownerState:P}),[j,M]=Bv("endDecorator",{className:N.endDecorator,elementType:lw,externalForwardedProps:$,ownerState:P}),[A,V]=Bv("loadingIndicatorCenter",{className:N.loadingIndicatorCenter,elementType:sw,externalForwardedProps:$,ownerState:P});return e.jsxs(z,cu({},R,{children:[(v||d&&"start"===p)&&e.jsx(D,cu({},T,{children:d&&"start"===p?E:v})),i,d&&"center"===p&&e.jsx(A,cu({},V,{children:E})),(u||d&&"end"===p)&&e.jsx(j,cu({},M,{children:d&&"end"===p?E:u}))]}))}));function uw(e){return eh("MuiMenuItem",e)}"production"!==process.env.NODE_ENV&&(cw.propTypes={children:Ga.node,color:Ga.oneOfType([Ga.oneOf(["danger","info","neutral","primary","success","warning"]),Ga.string]),component:Ga.elementType,disabled:Ga.bool,endDecorator:Ga.node,fullWidth:Ga.bool,loading:Ga.bool,loadingIndicator:Ga.node,loadingPosition:Ga.oneOf(["center","end","start"]),size:Ga.oneOfType([Ga.oneOf(["sm","md","lg"]),Ga.string]),slotProps:Ga.shape({endDecorator:Ga.oneOfType([Ga.func,Ga.object]),loadingIndicatorCenter:Ga.oneOfType([Ga.func,Ga.object]),root:Ga.oneOfType([Ga.func,Ga.object]),startDecorator:Ga.oneOfType([Ga.func,Ga.object])}),slots:Ga.shape({endDecorator:Ga.elementType,loadingIndicatorCenter:Ga.elementType,root:Ga.elementType,startDecorator:Ga.elementType}),startDecorator:Ga.node,sx:Ga.oneOfType([Ga.arrayOf(Ga.oneOfType([Ga.func,Ga.object,Ga.bool])),Ga.func,Ga.object]),tabIndex:Ga.number,variant:Ga.oneOfType([Ga.oneOf(["outlined","plain","soft","solid"]),Ga.string])}),th("MuiMenuItem",["root","focusVisible","disabled","selected","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const dw=["children","disabled","component","selected","color","orientation","variant","slots","slotProps","id"],pw=vh(vb,{name:"JoyMenuItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fw=o.memo(o.forwardRef((function(t,n){const r=bh({props:t,name:"JoyMenuItem"}),a=o.useContext(qv),{children:i,disabled:l=!1,component:s="li",selected:c=!1,color:u="neutral",orientation:d="horizontal",variant:p="plain",slots:f={},slotProps:m={},id:g}=r,h=Ep(r,dw),{variant:v=p,color:b=u}=Mb(t.variant,t.color),{getRootProps:y,disabled:x,focusVisible:w}=hv({id:g,disabled:l,rootRef:n}),S=cu({},r,{component:s,color:b,disabled:x,focusVisible:w,orientation:d,selected:c,row:a,variant:v}),C=(e=>{const{focusVisible:t,disabled:n,selected:r,color:o,variant:a}=e;return rg({root:["root",t&&"focusVisible",n&&"disabled",r&&"selected",o&&`color${Lp(o)}`,a&&`variant${Lp(a)}`]},uw,{})})(S),k=cu({},h,{component:s,slots:f,slotProps:m}),[O,I]=Bv("root",{ref:n,elementType:pw,getSlotProps:y,externalForwardedProps:k,className:C.root,ownerState:S});return e.jsx(gb.Provider,{value:d,children:e.jsx(O,cu({},I,{children:i}))})}))),mw=o.forwardRef((function(t,n){const{contextValue:r,id:a}=function(e){const t=o.useContext(iv);if(!t)throw new Error("MenuItem: ListContext was not found.");const n=Vm(e),{getItemState:r,dispatch:a}=t;let i;i=null!=n?r(n):{focusable:!0,highlighted:!1,selected:!1};const{highlighted:l,selected:s,focusable:c}=i,u=o.useCallback((e=>{if(e!==n)throw new Error(["Base UI MenuItem: Tried to access the state of another MenuItem.",`itemValue: ${e} | id: ${n}`,"This is unsupported when the MenuItem uses the MenuItemContextStabilizer as a performance optimization."].join("/n"));return{highlighted:l,selected:s,focusable:c}}),[l,s,c,n]);return{contextValue:o.useMemo((()=>({dispatch:a,getItemState:u})),[a,u]),id:n}}(t.id);return e.jsx(iv.Provider,{value:r,children:e.jsx(fw,cu({},t,{id:a,ref:n}))})}));"production"!==process.env.NODE_ENV&&(mw.propTypes={children:Ga.node,id:Ga.string});function gw(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"209",height:"20","aria-labelledby":"HarperCollinsLogo",role:"img",children:[e.jsx("title",{id:"HarperCollinsLogo",children:"HarperCollins Publishers Logo"}),e.jsx("use",{fill:"#FFF",xlinkHref:"#path0_fill"}),e.jsx("defs",{children:e.jsx("path",{id:"path0_fill",fillRule:"evenodd",d:"M7.432 1.26C7.617.744 7.4.184 7.141.011V0c.873.182 1.656 1.272 1.657 2.512.001.81-.466 1.546-.919 2.257-.437.687-.86 1.352-.83 2.039h.012c.181-.814.857-1.488 1.523-2.153.903-.9 1.789-1.783 1.408-2.976l.007-.002c.897.557 1.332 2.066 1.454 3.23h.008c.207-.633.795-1.14 1.347-1.615.215-.186.425-.367.604-.548.227-.23.404-.46.48-.703h.008v6.01H0v-3.08c.01-.916.857-1.365 1.67-1.797.822-.435 1.609-.853 1.472-1.714l.006-.012c.61.922.278 1.768-.012 2.507l-.003.007-.009.024a9.85 9.85 0 0 0-.137.364l-.035.105-.028.093-.016.06c-.008.03-.014.06-.02.091-.042.2-.048.387.01.564h.01c.455-1.64 1.612-2.113 2.658-2.54.82-.336 1.572-.643 1.866-1.463zM2.405 8.421c-.813.741-1.647 1.084-2.405.8v5.51h13.899V8.92c-1.177 1.305-2.604.743-2.461-.348l-.008-.002c-2.165 2.348-3.396 1.03-3.055.07l-.005-.007c-1.967 2.21-3.206.915-2.622-.188L5.74 8.44c-2.489 2.766-4.06 1.75-3.327-.016l-.008-.003zm16.114-5.714c1.728.017 1.866.637 1.866 1.495v9.171c0 .931-.864 1.004-1.787 1.004l-.138.09v.402c.098.11.274.11.413.11.089 0 .178-.002.268-.004l.158-.005.19-.008.285-.015.228-.014.208-.012c.309-.018.617-.033.92-.033.342 0 .683.016 1.024.035l.188.01.3.017.28.013c.208.01.416.016.623.016.434 0 .63-.019.63-.128v-.273c0-.164-.06-.201-.276-.201-1.452 0-1.747-.255-1.747-1.296V8.47h8.423v4.267c0 1.276-.039 1.64-1.924 1.64l-.1.091v.401c0 .074.1.11.61.11.237 0 1.453-.09 2.179-.09.34 0 .679.017 1.017.036.448.025.894.054 1.34.054.53 0 .61-.055.61-.127v-.123a1.107 1.107 0 0 0-.033-.301c-.01-.031-.026-.05-.046-.05-1.12 0-1.885-.11-1.885-1.422V3.928c0-1.057.51-1.221 1.53-1.221.17 0 .302 0 .382-.029.058-.02.09-.057.09-.118v-.347l-.078-.108c-.57.054-1.08.09-2.337.09a60.75 60.75 0 0 1-3.102-.09l-.098.09v.22c0 .111.01.18.048.223.037.042.1.06.206.069 1.591.108 1.591.381 1.591 1.64v3.41h-8.423V3.655c0-.894.805-.948 1.608-.948l.152-.002.085-.003.068-.005.036-.004a.884.884 0 0 0 .091-.014c.076-.017.12-.043.12-.082v-.292c0-.2-.099-.2-.51-.2-.23 0-.454.007-.674.016-.204.009-.404.02-.603.031-.392.022-.774.044-1.158.044-.473 0-1.035-.027-1.543-.052l-.317-.015a17.76 17.76 0 0 0-.752-.024c-.157 0-.334.017-.334.144v.31l.098.148zm21.3 10.407l-.177.164-.099.088c-.48.43-1.104.988-1.747.988-.648 0-.904-.93-.904-1.42 0-.477.707-.821.983-.932l1.944-.822v1.934zM37.266 11.6l2.572-.929v-.876c0-1.003-.137-1.768-1.57-1.768-.532 0-1.513.145-1.513.674 0 .128.04.311.099.42l-1.237.656a1.407 1.407 0 0 1-.119-.547c0-.582.629-1.039 1.041-1.259l1.768-.947c.235-.128.335-.182.411-.182 1.63 0 2.475.73 2.475 2.224v3.867c0 .382 0 1.148.63 1.148.371 0 .45-.146.705-.529l.373.128c-.236.876-.727 1.585-1.57 1.585-1.334 0-1.474-1.147-1.454-1.603-.746.71-1.729 1.603-2.887 1.603-1.138 0-1.727-1.366-1.727-2.188 0-.309.373-.892 2.003-1.477zm10.855 2.9c-1.492 0-1.492-.692-1.492-1.422V9.632l.295-.345c.393-.457 1.001-1.077 1.474-1.077.302 0 .5.087.694.17.075.033.15.066.228.093.115.038.24.065.391.065.413 0 .807-.328.807-.711 0-.675-.413-.985-1.12-.985-1.046 0-1.869 1.017-2.479 1.772a15.78 15.78 0 0 1-.25.306l-.04-.036.04-1.878c0-.055-.04-.164-.156-.164a.906.906 0 0 0-.194.064c-.108.042-.252.102-.42.173l-.032.014-.022.01-.009.003-.149.063-1.453.623c-.216.09-.275.144-.275.253 0 .257.51.383.59.401.413.11.59.329.59.675v4.05c0 .983-.158 1.256-1.024 1.313-.392.017-.43.035-.43.217v.225a.127.127 0 0 0 .01.054c.01.022.028.031.066.031.374 0 .758-.022 1.14-.045l.522-.029a15.439 15.439 0 0 1 .617-.016c.188 0 .375.007.563.016l.468.03c.344.022.687.044 1.03.044a.19.19 0 0 0 .099-.02.09.09 0 0 0 .031-.031.236.236 0 0 0 .027-.116v-.087c0-.164-.018-.256-.137-.256zm5.548-5.779c.667-.438 1.296-.583 2.081-.583 1.884 0 2.906 1.659 2.906 3.262 0 1.861-1.041 3.157-3.043 3.157-.944 0-1.944-.31-1.944-1.259V8.721zm-3.083 10.705c1.492-.13 1.59-.146 1.59-1.624V9.688c0-.803-.039-.967-.451-1.132l-.707-.291c-.017 0-.027-.007-.033-.023-.006-.02-.006-.053-.006-.104 0-.137.016-.146.132-.207l.025-.013 2.395-1.076c.063.02.093.067.106.12a.569.569 0 0 1 .01.135c0 .347-.038.712.022 1.058.647-.31 2.277-1.203 2.945-1.203 2.14 0 3.671 1.987 3.671 3.83 0 3.5-3.827 4.594-5.34 4.594-.193 0-.383-.025-.572-.057l-.188-.033a5.572 5.572 0 0 0-.516-.074v2.825c0 1.242.333 1.316 1.747 1.389.052 0 .094.023.118.054.012.016.02.035.02.055v.182a.433.433 0 0 1-.02.132c-.018.052-.045.088-.08.088-.414 0-.825-.023-1.243-.046a23.9 23.9 0 0 0-1.328-.047c-.864 0-1.65.093-2.161.093-.176 0-.196-.073-.196-.257v-.11c0-.054.02-.144.06-.144zM64.862 7.444c-1.177 0-1.984 1.258-2.18 2.278L66 9.631c.254 0 .55-.344.55-.655 0-.894-.727-1.532-1.689-1.532zm3.32 2.699v-.565c0-1.515-1.239-2.736-2.987-2.736-2.572 0-4.142 2.462-4.142 4.614 0 2.024 1.628 3.81 3.633 3.81 1.57 0 2.75-.839 3.535-2.023l-.355-.238c-.982.821-1.493 1.077-2.219 1.077-1.786 0-3.102-1.587-3.102-3.174 0-.255 0-.51.04-.765h5.596zm3.713 2.935c0 .73 0 1.423 1.491 1.423.118 0 .138.092.138.256v.058l-.002.036a.273.273 0 0 1-.019.096c-.02.042-.06.064-.137.064l-.233-.003-.181-.006a26.08 26.08 0 0 1-.616-.036l-.296-.019-.197-.01c-.18-.01-.36-.016-.539-.016-.372 0-.755.023-1.138.045a19.608 19.608 0 0 1-1.168.043.075.075 0 0 1-.019-.006c-.015-.007-.023-.02-.027-.039l-.003-.026c-.002-.02-.002-.043-.002-.072V14.7c0-.182.04-.2.434-.217.864-.057 1.02-.33 1.02-1.313V9.12c0-.346-.176-.565-.59-.675-.077-.018-.587-.144-.587-.4 0-.11.059-.164.274-.254l1.453-.623.422-.178c.216-.09.366-.149.403-.149.118 0 .157.109.157.164l-.039 1.878.04.036c.079-.094.163-.198.25-.307.61-.755 1.433-1.77 2.48-1.77.705 0 1.118.31 1.118.984 0 .383-.393.711-.805.711-.258 0-.437-.077-.62-.157l-.094-.04-.073-.03-.064-.023a1.38 1.38 0 0 0-.465-.078c-.47 0-1.079.62-1.474 1.077l-.293.345v3.446zm13.057 1.884c1.786 0 3.377-.382 4.693-.985l.451-2.406c.058-.257-.235-.274-.393-.274h-.074l-.036.002c-.061.003-.113.012-.126.036-.235.674-.49 1.494-1.1 1.95-.785.582-2.277.968-3.436.968-3.3 0-5.891-2.829-5.891-5.818 0-3.282 2.141-6.147 5.891-6.147 1.729 0 3.456.876 4.025 2.134.142.31.258.537.347.685.085.14.146.21.184.21.08 0 .393 0 .393-.128l-.001-.034-.002-.028a2.015 2.015 0 0 0-.017-.123l-.015-.094-.012-.077-.012-.083-.255-2.114c-1.14-.638-3.397-1.057-4.713-1.057-4.024 0-8.01 2.662-8.01 6.655 0 4.195 4.26 6.728 8.11 6.728zm13.503-3.452c0 1.568-.766 3.154-2.69 3.154-2.021 0-2.945-2.133-2.945-3.737 0-1.75.588-3.483 2.572-3.483 2.395 0 3.063 2.243 3.063 4.066zm-3.14 3.755c-2.377 0-4.262-1.858-4.262-4.083 0-2.443 2.178-4.34 4.79-4.34 2.338 0 4.38 1.897 4.38 4.085 0 2.626-2.336 4.338-4.909 4.338zm9.57-.99c-1.354 0-1.354-.472-1.354-.874V3.463c0-.438.01-.88.019-1.323l.009-.406c.005-.307.01-.612.01-.915l-.001-.053-.001-.036a.539.539 0 0 0-.011-.08c-.015-.069-.05-.124-.125-.124a.296.296 0 0 0-.064.012 1.957 1.957 0 0 0-.207.07l-.023.01-1.434.493-.228.082c-.615.222-.773.279-.773.41 0 .137.244.227.519.327l.051.019c.766.292.766.365.766 1.514v9.846c0 .857-.315.967-1.178.967h-.125c-.074.003-.124.01-.156.034-.04.029-.053.083-.053.184v.165c0 .072.039.127.176.127.196 0 .392-.007.589-.017l.272-.015.199-.013c.354-.022.707-.045 1.061-.045.174 0 .429.016.724.035l.414.025c.295.017.607.03.904.03.039 0 .059-.09.059-.253l-.001-.072-.001-.054a.635.635 0 0 0-.007-.088c-.006-.027-.015-.043-.03-.043zm3.384-.874c0 .402 0 .875 1.355.875.039 0 .039.11.039.257l-.001.068-.004.058c-.009.083-.028.127-.055.127-.441 0-.915-.03-1.316-.055h-.004a13.313 13.313 0 0 0-.722-.035c-.353 0-.706.023-1.059.045-.138.01-.275.018-.413.025a14.44 14.44 0 0 1-.426.018h-.06l-.163.002c-.137 0-.177-.055-.177-.126v-.166c0-.056.004-.098.015-.129a.107.107 0 0 1 .034-.051c.046-.038.132-.038.286-.038.864 0 1.178-.11 1.178-.967V3.463c0-1.149 0-1.222-.766-1.514l-.054-.02c-.273-.1-.516-.19-.516-.326 0-.146.197-.2 1.003-.492l1.432-.493a1.627 1.627 0 0 1 .295-.092c.138 0 .138.183.138.293 0 .875-.039 1.768-.039 2.644v9.938zm6.616 1.251c-1.356 0-1.356-.473-1.356-.875V9.93c0-.439.01-.881.02-1.324.011-.442.021-.884.021-1.32 0-.11 0-.292-.138-.292-.058 0-.256.073-.294.092l-1.434.49-.216.079c-.626.225-.786.283-.786.415 0 .134.236.222.504.322l.065.025c.766.291.766.364.766 1.513v3.755c0 .857-.314.967-1.177.967-.276 0-.334 0-.334.219v.165c0 .071.039.127.176.127.173 0 .346-.006.52-.014l.201-.01.34-.021c.354-.023.707-.045 1.06-.045.174 0 .429.016.724.034.402.026.876.056 1.318.056.027 0 .045-.044.053-.125.004-.036.006-.08.006-.129 0-.076 0-.142-.005-.188-.005-.043-.015-.069-.034-.069zM112.726 1.58c.607 0 1.098.456 1.098 1.02 0 .565-.491 1.02-1.098 1.02-.609 0-1.101-.455-1.101-1.02 0-.564.492-1.02 1.101-1.02zm4.728 6.722c.197.036.374.254.374.6v4.632c0 .857-.314.967-1.178.967-.275 0-.334 0-.334.218v.166c0 .071.04.127.176.127.288 0 .577-.015.865-.033l.197-.012a16.59 16.59 0 0 1 1.059-.045c.175 0 .431.016.727.035.401.025.875.055 1.317.055.037 0 .057-.09.057-.255 0-.052 0-.1-.002-.139-.002-.049-.006-.086-.018-.104-.005-.009-.011-.013-.019-.013-1.355 0-1.355-.473-1.355-.874V8.883c.57-.529 1.59-.982 2.415-.982 1.374 0 1.748.637 1.748 1.766v4.287c0 .546-.903.546-1.217.546-.117 0-.196.056-.196.11 0 .017 0 .048.002.086.001.02.002.044.005.068.011.115.043.247.13.247.353 0 .701-.022 1.049-.045s.697-.045 1.051-.045c.648 0 1.159.09 1.944.09.06 0 .099-.018.099-.056v-.328c0-.09-.039-.127-.08-.127-.646 0-1.296 0-1.296-.784v-4.45c0-1.532-.725-2.424-2.433-2.424-1.206 0-2.212.737-3.106 1.393l-.115.083V7.06c0-.022 0-.052-.002-.082-.006-.067-.022-.135-.076-.135a.909.909 0 0 0-.191.067l-.165.07-.133.057c-.228.098-.515.222-.821.343-.128.051-.26.101-.392.149-.25.09-.501.17-.733.226-.099.018-.119.147-.119.2 0 .076.021.126.051.158.02.022.044.035.068.042l.647.147zm14.886.802h-.492c-.235-.802-.686-1.66-1.727-1.66-.903 0-1.61.401-1.61 1.258 0 .633.822 1.05 1.721 1.504l.031.016.31.158c1.04.547 2.062 1.186 2.062 2.316 0 1.585-1.572 2.57-3.162 2.57-1.277 0-2.513-.528-2.533-.819l-.098-1.66.569-.053c.08.09.099.218.138.344.217.748 1.098 1.587 1.963 1.587 1.002 0 1.631-.565 1.631-1.513 0-.601-.903-1.24-1.394-1.477l-.174-.083c-1.107-.528-2.42-1.154-2.42-2.47 0-1.514 1.492-2.279 2.985-2.279.785 0 1.572.2 2.318.564l-.118 1.697zm5.53-5.668c0 .13-.197.893-.432 1.733l-2.356 8.206c-.234.857-.531 1.003-1.748 1.003a.098.098 0 0 0-.071.034.2.2 0 0 0-.03.043c-.05.09-.075.248-.075.415 0 .073.018.109.098.109.119.008.357-.008.663-.029.399-.026.915-.061 1.437-.061.615 0 1.26.035 1.744.062.177.01.333.018.457.023l.109.004h.086c.139 0 .335 0 .373-.072l.037-.075.029-.06.017-.036.018-.042a.422.422 0 0 0 .036-.151c0-.127-.057-.164-.175-.164h-.276c-.589 0-1.216-.02-1.216-.474 0-.128.137-.565.176-.693l2.866-9.956c.118-.383.352-.438.942-.438 1.65 0 2.75.875 2.75 2.387 0 1.46-1.218 3.611-2.787 3.611-.61 0-1.082-.146-1.336-.328l-.314.42c.372.348 1.177.51 2.021.51 2.416 0 4.243-2.042 4.243-4.193 0-2.262-2.101-3.118-4.301-3.118-1.571 0-2.475.053-4.241.182-.315.019-.373.092-.373.382 0 .165.019.22.078.22l.022-.002.043-.008.052-.01a2.93 2.93 0 0 1 .57-.072c.471 0 .864.147.864.638zm6.365 5.358c.152-.132.324-.304.512-.492.64-.64 1.459-1.459 2.218-1.459.393 0 .687.145.687.565 0 .193-.167.593-.283.872l-.046.11-.024.058-.021.056-1.275 2.989-.237.55c-.225.514-.391.894-.391 1.019 0 .182.118.327.351.327.595 0 2.704-2.422 3.878-3.772l.017-.018c.295-.338.528-.608.663-.75.285-.298.531-.675.776-1.05.125-.192.25-.383.379-.562l.068-.092.049-.065.043-.054c.118-.147.295-.183.471-.183.085 0 .168.03.242.08a.623.623 0 0 1 .229.295c.013.04.021.08.021.117 0 .119-.333.921-.742 1.91l-.004.013c-.658 1.59-1.513 3.656-1.513 4.15 0 .2.177.31.294.31.662 0 1.611-1.266 2.028-1.823l.014-.019c.119 0 .355.182.355.274-.59.984-2.476 3.116-3.711 3.116-.335 0-.611-.327-.611-.691 0-.359.745-2.162 1.277-3.452l.015-.035.186-.453.177-.434c.048-.122.088-.223.113-.295h-.038c-.806.895-5.146 5.36-6.069 5.36-.333 0-.649-.327-.649-.637 0-.78.82-2.57 1.472-3.995.431-.942.789-1.724.789-1.949 0-.181-.179-.291-.276-.291-.256 0-.924.564-1.119.765l-.315-.365zm12.001 5.429c1.768 0 5.125-4.085 5.125-5.69 0-.694-.334-1.003-.923-1.003-1.413 0-5.28 4.175-5.28 5.962 0 .513.608.73 1.078.73zM159.1.53c-.038-.004-.077-.004-.114-.004-.194 0-.823.099-1.489.203l-.737.114-.341.05c-.155.021-.297.04-.419.053l-.038.42c.747.053 1.217.163 1.217.691 0 .749-1.726 6.237-1.826 6.585-.054.194-.183.585-.347 1.07l-.26.766-.016.047-.01.03-.009.025c-.474 1.392-1.027 3.018-1.027 3.276 0 .874 1.021 1.184 1.788 1.184 2.828 0 7.462-3.791 7.462-6.545 0-1.04-.648-1.878-1.788-1.878-1.896 0-3.864 2.363-5.024 3.756l-.122.145-.038-.036 3.28-9.883-.005-.007-.004-.007-.01-.01c-.005-.006-.012-.01-.018-.015a.25.25 0 0 0-.105-.03zm6.781 2.9c.05-.188.098-.391.139-.574a5.11 5.11 0 0 0 .106-.58c0-.583-.647-.747-1.14-.82l.14-.42c.575-.063 1.405-.227 2.039-.352h.004l.013-.003c.281-.056.522-.103.682-.13a1.47 1.47 0 0 1 .188-.025.17.17 0 0 1 .041.005.1.1 0 0 1 .049.025.112.112 0 0 1 .026.08c0 .072-.098.4-.314 1.057l-3.022 9.573-.109.338-.005.013c-.218.674-.418 1.295-.418 1.638 0 .235.197.42.452.42.447 0 1.011-.552 1.466-.996l.007-.007.019-.02c.155-.15.295-.286.413-.382h.077l.295.274v.054c-.667.876-2.335 2.443-3.553 2.443-.453 0-.845-.345-.845-.802 0-.091.118-.51.276-1.076l2.885-9.427a6.77 6.77 0 0 0 .089-.307zm4.96 3.108c-.766.018-2.298 1.186-2.63 1.769l.411.272c.294-.308.865-.764 1.197-.764a.37.37 0 0 1 .205.053c.084.055.128.15.128.274 0 .4-.585 1.757-1.159 3.09-.554 1.287-1.098 2.552-1.098 2.91 0 .583.413.82 1.002.82 1.334 0 2.868-1.694 3.535-2.663 0-.072-.275-.272-.354-.272-.118.105-.27.269-.441.453-.482.52-1.117 1.206-1.581 1.206-.296 0-.491-.164-.491-.364 0-.267.536-1.537 1.085-2.839l.003-.008c.578-1.369 1.17-2.772 1.17-3.08 0-.583-.334-.857-.982-.857zM172 1.578c.51 0 .922.364.922.839 0 .473-.412.857-.922.857-.511 0-.904-.384-.904-.857 0-.475.393-.838.904-.838zm6.463 6.156c0-.71-.981-.892-1.57-.892-1.649 0-2.985 1.35-2.985 2.862 0 .41.565 1.005 1.141 1.612.602.632 1.216 1.279 1.216 1.744 0 .638-.61 1.149-1.277 1.149-.586 0-.849-.237-1.078-.444-.179-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.471 0 3.239-1.55 3.239-2.9 0-.574-.739-1.34-1.428-2.055-.601-.624-1.165-1.209-1.165-1.592 0-.527.591-1.166 1.22-1.166.531 0 .763.28.97.529.168.201.319.383.599.383.335 0 .629-.347.629-.73zm2.354 3.187l.039.035.134-.18c1.064-1.43 3.094-4.159 5.089-4.159 1.296 0 1.611.966 1.611 1.987 0 1.879-2.219 6.437-4.616 6.437-.353 0-.843-.218-.843-.602 0-.436.255-.856.726-.856a.708.708 0 0 1 .278.055c.052.02.103.045.155.072a2.963 2.963 0 0 0 .201.098.624.624 0 0 0 .23.048c1.256 0 2.297-4.14 2.297-5.088 0-.527-.138-1.056-.826-1.056-1.432 0-3.24 2.57-4.495 4.484a10.28 10.28 0 0 0-1.05 2.056c-.093.233-.171.432-.266.607-.079.146-.255.182-.413.182-.175 0-.647-.164-.647-.474 0-.247.773-2.528 1.471-4.588.485-1.43.934-2.753 1.063-3.217l.065-.226c.274-.945 1.112-3.83 1.112-4.278 0-.6-.354-.691-1.217-.783l.119-.42c.169-.031.339-.058.51-.084l.176-.026c.463-.07.927-.139 1.374-.272.255-.074.511-.147.766-.147.099 0 .295.019.295.128 0 .201-1.335 4.377-1.63 5.233l-1.708 5.034zm9.471-.195c1.374-.11 3.965-.674 3.965-2.389 0-.546-.295-.983-.943-.983-1.59 0-2.63 2.15-3.022 3.372zm-1.867 1.788c0 1.53.746 2.752 2.571 2.752 1.416 0 2.592-.673 3.379-1.785-.039-.166-.275-.293-.374-.31-.706.672-1.335 1.037-2.335 1.037-1.122 0-1.671-.874-1.671-1.822 0-.3.05-.59.101-.884.02-.118.041-.236.058-.356 1.726-.074 5.476-.674 5.476-2.79 0-1.205-1.119-1.514-2.238-1.514-2.925 0-4.967 3.264-4.967 5.672zm11.596-4.24c0 .474-.156 1.24-.393 2.096h.041l.123-.195c.729-1.15 2.118-3.342 3.154-3.342.512 0 1.082.291 1.082.821 0 .547-.394.875-1.003.875a.75.75 0 0 1-.471-.183 2.554 2.554 0 0 1-.11-.097 1.562 1.562 0 0 0-.07-.062c-.055-.046-.104-.078-.153-.078-.649 0-2.239 3.046-2.672 3.974-.073.157-.177.435-.3.764-.366.98-.898 2.409-1.31 2.409-.255 0-.805-.108-.805-.364 0-.06.087-.313.226-.696l.157-.427c.176-.48.395-1.076.618-1.721.375-1.076.747-2.152.747-2.753 0-.42-.078-1.003-.786-1.003-.393 0-.883.692-1.138 1.076a1.692 1.692 0 0 1-.412-.255c.373-.75 1.355-2.28 2.297-2.28.844 0 1.178.857 1.178 1.44zm8.922-.549c0-.71-.982-.892-1.571-.892-1.648 0-2.984 1.35-2.984 2.862 0 .41.565 1.005 1.141 1.612.601.633 1.216 1.279 1.216 1.744 0 .639-.61 1.149-1.277 1.149-.586 0-.848-.237-1.078-.444-.178-.161-.337-.304-.611-.304-.334 0-.668.291-.668.657 0 1.02.845 1.148 1.768 1.148 1.47 0 3.24-1.55 3.24-2.9 0-.574-.739-1.34-1.428-2.055-.602-.624-1.165-1.209-1.165-1.591 0-.528.59-1.167 1.219-1.167.531 0 .762.279.97.528.167.202.319.384.6.384.335 0 .628-.347.628-.73z"})})]})}function hw(){return e.jsx(gw,{})}const vw=Kt.header`
|
|
873
|
-
display: flex;
|
|
874
|
-
flex-flow: row;
|
|
875
|
-
align-items: center;
|
|
876
|
-
background-color: var(--color--primary);
|
|
877
|
-
width: 100%;
|
|
878
|
-
height: 70px;
|
|
879
|
-
padding: 1rem;
|
|
880
|
-
gap: 1rem;
|
|
770
|
+
.arrow,
|
|
771
|
+
.arrow::before {
|
|
772
|
+
position: absolute;
|
|
773
|
+
width: 8px;
|
|
774
|
+
height: 8px;
|
|
775
|
+
background: inherit;
|
|
776
|
+
transition:
|
|
777
|
+
top 0.3s ease-in,
|
|
778
|
+
bottom 0.3s ease-in,
|
|
779
|
+
left 0.3s ease-in,
|
|
780
|
+
right 0.3s ease-in;
|
|
781
|
+
}
|
|
881
782
|
|
|
882
|
-
|
|
883
|
-
|
|
783
|
+
.arrow {
|
|
784
|
+
visibility: hidden;
|
|
884
785
|
}
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
display: flex;
|
|
891
|
-
flex-flow: row;
|
|
892
|
-
align-items: center;
|
|
893
|
-
height: 100%;
|
|
894
|
-
gap: var(--spacing--small);
|
|
895
|
-
`,xw=qt`
|
|
896
|
-
&& {
|
|
897
|
-
color: white;
|
|
898
|
-
opacity: 0.9;
|
|
899
|
-
font-size: var(--font-size--small);
|
|
900
|
-
white-space: nowrap;
|
|
901
|
-
padding: var(--spacing--xsmall) var(--spacing--small);
|
|
902
|
-
transition: background-color 0.2s;
|
|
903
|
-
display: flex;
|
|
904
|
-
align-items: center;
|
|
905
|
-
border-radius: var(--border-radius--medium);
|
|
906
|
-
user-select: none;
|
|
907
|
-
font-weight: var(--font-weight--medium);
|
|
908
|
-
border: none;
|
|
909
|
-
text-decoration: none;
|
|
910
|
-
&:hover {
|
|
911
|
-
background-color: rgb(255, 255, 255, 0.1);
|
|
912
|
-
cursor: pointer;
|
|
913
|
-
opacity: 1;
|
|
914
|
-
text-decoration: none;
|
|
915
|
-
}
|
|
786
|
+
|
|
787
|
+
.arrow::before {
|
|
788
|
+
visibility: hidden;
|
|
789
|
+
content: "";
|
|
790
|
+
transform: rotate(45deg);
|
|
916
791
|
}
|
|
917
|
-
`,ww=Kt(Ki)`
|
|
918
|
-
${xw}
|
|
919
|
-
gap: var(--spacing--small);
|
|
920
|
-
`,Sw=Kt(cw)`
|
|
921
|
-
${xw}
|
|
922
792
|
|
|
923
|
-
|
|
924
|
-
|
|
793
|
+
&[data-popper-placement^="top"] > .arrow {
|
|
794
|
+
bottom: -4px;
|
|
925
795
|
}
|
|
926
|
-
`,Cw=Kt.div``,kw=Kt.div`
|
|
927
|
-
display: flex;
|
|
928
|
-
align-items: center;
|
|
929
|
-
`;function Ow({currentApp:t,apps:n}){const r=e.jsx("svg",{viewBox:"0 0 32 32",children:e.jsxs("g",{children:[e.jsx("path",{d:"M10.246,4.228c0-0.547-0.443-0.991-0.99-0.991H3.914c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e.jsx("path",{d:"M19.453,4.228c0-0.547-0.443-0.991-0.991-0.991h-5.343c-0.546,0-0.99,0.443-0.99,0.991V9.57 c0,0.546,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.444,0.991-0.99V4.228z",fill:"currentColor"}),e.jsx("path",{d:"M28.868,4.228c0-0.547-0.443-0.991-0.99-0.991h-5.342c-0.548,0-0.991,0.443-0.991,0.991V9.57 c0,0.546,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.444,0.99-0.99V4.228z",fill:"currentColor"}),e.jsx("path",{d:"M10.246,13.224c0-0.547-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e.jsx("path",{d:"M19.453,13.224c0-0.547-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.443-0.99,0.99v5.342 c0,0.549,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.441,0.991-0.99V13.224z",fill:"currentColor"}),e.jsx("path",{d:"M28.868,13.224c0-0.547-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.443-0.991,0.99v5.342 c0,0.549,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.441,0.99-0.99V13.224z",fill:"currentColor"}),e.jsx("path",{d:"M10.246,22.43c0-0.545-0.443-0.99-0.99-0.99H3.914c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"}),e.jsx("path",{d:"M19.453,22.43c0-0.545-0.443-0.99-0.991-0.99h-5.343c-0.546,0-0.99,0.445-0.99,0.99v5.344 c0,0.547,0.444,0.99,0.99,0.99h5.343c0.548,0,0.991-0.443,0.991-0.99V22.43z",fill:"currentColor"}),e.jsx("path",{d:"M28.868,22.43c0-0.545-0.443-0.99-0.99-0.99h-5.342c-0.548,0-0.991,0.445-0.991,0.99v5.344 c0,0.547,0.443,0.99,0.991,0.99h5.342c0.547,0,0.99-0.443,0.99-0.99V22.43z",fill:"currentColor"})]})});return e.jsxs(Lh,{children:[e.jsx(Sw,{size:"sm",startDecorator:r,children:t&&e.jsx(kw,{children:t})}),n]})}function Iw(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Iw('/* http://meyerweb.com/eric/tools/css/reset/\n v2.0 | 20110126\n License: none (public domain)\n*/\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\nsection {\n display: block;\n}\nbody {\n line-height: 1;\n}\nol,\nul {\n list-style: none;\n}\nblockquote,\nq {\n quotes: none;\n}\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: "";\n content: none;\n}\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n');const Ew=lh({colorSchemes:{light:{palette:{primary:{50:"#dbd9f8",100:"#b7b2f1",200:"#a69fee",300:"#8279e7",400:"#7065e4",500:"#4c3fdd",600:"#3d32b1",700:"#2e2685",800:"#1e1958",900:"#0f0d2c"},neutral:{50:"#fafbfd",100:"#f4f7fb",200:"#dbdde1",300:"#aaacaf",400:"#929496",500:"#7a7b7d",600:"#616264",700:"#494a4b",800:"#313132",900:"#181919"}}}},components:{}});Iw(':root {\n --color--black: #000000;\n --color--grey-dark: #262626;\n --color--grey: #5c5c5c;\n --color--grey-light: #a8aab7;\n --color--grey-lighter: #f5f5f5;\n --color--grey-lightest: #f3f6fa;\n --color--grey-borders: #d7d7d7;\n --color--grey-line: #e0e0e0;\n --color--grey-hover: #f9f9f9;\n --color--white: #fff;\n\n --color--teal: #007d7e;\n --color--teal-light: #00b0b1;\n --color--teal-tint: #f2fcfc;\n\n --color--red: #d9303e;\n --color--red-dark: #c02330;\n --color--red-light: #f7dbdd;\n --color--red-tint: #ffdddf;\n\n --color--amber: #e9b04d;\n --color--amber-tint: #faecd5;\n --color--orange: #f5a623;\n --color--orange-dark: #eb6f00;\n --color--orange-light: #f2c06f;\n\n --color--green: #29c889;\n --color--green-dark: #1c874c;\n --color--green-light: #afe7d0;\n --color--indigo: #2e1f5e;\n --color--lemon: #ffe60b;\n --color--focus-outline: #fcc726;\n\n --color--dark-blue: #192a3c;\n\n --color--primary: #4c3fdd;\n --color--primary-light: #4c3fdddb;\n --color--primary-verylight: #a8a0f7;\n --color--body: var(--color--dark-blue);\n\n --color--danger: var(--color--red);\n --color--danger-light: var(--color--red-light);\n --color--warning: var(--color--orange);\n --color--warning-light: var(--color--orange-light);\n --color--success: var(--color--green);\n\n --color--dark-blue: #192a3c;\n\n --color--debug: #663399;\n --color--debug-light: #663399db;\n --color--debug-very-light: #6633991a;\n\n /* Fonts */\n --font-family--sans-serif: system-ui, -apple-system, BlinkMacSystemFont,\n "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Oxygen, Cantarell, sans-serif;\n\n --font-family--monospace: source-code-pro, Menlo, Monaco, Consolas,\n "Courier New", monospace;\n\n /* Spacing */\n --spacing--xxxsmall: 0.1rem;\n --spacing--xxsmall: 0.2rem;\n --spacing--xsmall: 0.3rem;\n --spacing--small: 0.5rem;\n --spacing--medium: 1rem;\n --spacing--large: 2rem;\n --spacing--xlarge: 4rem;\n\n /* Font sizes */\n --font-size--xxsmall: 0.6rem;\n --font-size--xsmall: 0.75rem;\n --font-size--small: 0.875rem;\n --font-size--medium: 1rem;\n --font-size--large: 1.25rem;\n --font-size--xlarge: 1.5rem;\n --font-size--xxlarge: 2rem;\n --font-size--xxxlarge: 3rem;\n\n /* Line heights */\n --line-height--small: 1.2rem;\n --line-height--medium: 1.4rem;\n --line-height--large: 1.4rem;\n\n /* Font weights */\n --font-weight--thin: 200;\n --font-weight--light: 300;\n --font-weight--regular: 400;\n --font-weight--medium: 500;\n --font-weight--bold: 700;\n\n /* Border radius */\n --border-radius--small: 0.25rem;\n --border-radius--medium: 0.5rem;\n --border-radius--large: 1rem;\n --border-radius--xlarge: 2rem;\n\n /* Box shadows */\n --box-shadow--medium: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);\n\n /* Breakpoints */\n --breakpoint--small: 480px;\n --breakpoint--medium: 768px;\n --breakpoint--large: 1024px;\n --breakpoint--xlarge: 1200px;\n --breakpoint--xxlarge: 1440px;\n --breakpoint--xxxlarge: 1920px;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n* {\n margin: 0;\n}\n\na {\n color: var(--color--primary);\n text-decoration: none;\n\n &:hover,\n &:focus {\n text-decoration: underline;\n }\n}\n\nbody,\nbutton {\n font-family: var(--font-family--sans-serif);\n font-weight: var(--font-weight--regular);\n font-style: normal;\n}\n\nbody {\n background-color: var(--color--grey-lightest);\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n color: var(--color--grey-dark);\n -webkit-print-color-adjust: exact !important;\n print-color-adjust: exact !important;\n}\n\nb {\n font-weight: var(--font-weight--bold);\n}\n\n*:focus-visible {\n outline: 3px solid var(--color--focus-outline);\n}\n\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\ntextarea {\n border: 1px solid var(--color--grey-borders);\n border-radius: var(--border-radius--small);\n background-color: var(--color--grey-lighter);\n padding: var(--spacing--medium);\n}\n\np,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n overflow-wrap: break-word;\n}\n\np {\n font-size: var(--font-size--medium);\n margin-bottom: var(--spacing--medium);\n}\n\nol,\nul {\n margin-bottom: 1rem;\n margin-left: 2rem;\n}\n\nul {\n list-style-type: disc;\n}\n\nol {\n list-style-type: decimal;\n}\n\n#root,\n#__next {\n isolation: isolate;\n}\n\nsmall {\n font-size: 80%;\n color: var(--color--grey);\n}\n');const Pw=Kt.div`
|
|
930
|
-
height: 100%;
|
|
931
|
-
position: absolute;
|
|
932
|
-
width: 100%;
|
|
933
|
-
top: 0;
|
|
934
|
-
left: 0;
|
|
935
|
-
`,Nw=Kt.main`
|
|
936
|
-
width: 100%;
|
|
937
|
-
height: calc(100% - 136px); // TODO: calculate the height of the header
|
|
938
|
-
position: relative;
|
|
939
|
-
`;const $w=Kt.div`
|
|
940
|
-
display: flex;
|
|
941
|
-
flex-flow: wrap;
|
|
942
|
-
justify-content: space-between;
|
|
943
|
-
width: 100%;
|
|
944
796
|
|
|
945
|
-
|
|
946
|
-
|
|
797
|
+
&[data-popper-placement^="bottom"] > .arrow {
|
|
798
|
+
top: -4px;
|
|
947
799
|
}
|
|
948
|
-
`,zw=Kt.ul`
|
|
949
|
-
display: flex;
|
|
950
|
-
flex-flow: row;
|
|
951
|
-
width: 100%;
|
|
952
|
-
flex-wrap: wrap;
|
|
953
|
-
`,Rw=Kt.li`
|
|
954
|
-
display: inline-block;
|
|
955
|
-
color: var(--color--grey);
|
|
956
|
-
overflow: hidden;
|
|
957
|
-
text-overflow: ellipsis;
|
|
958
|
-
white-space: nowrap;
|
|
959
|
-
max-width: 400px;
|
|
960
800
|
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
content: "/";
|
|
964
|
-
margin-left: 5px;
|
|
965
|
-
margin-right: 5px;
|
|
966
|
-
color: var(--color--grey-borders);
|
|
967
|
-
}
|
|
968
|
-
a {
|
|
969
|
-
font-weight: 600;
|
|
970
|
-
}
|
|
801
|
+
&[data-popper-placement^="left"] > .arrow {
|
|
802
|
+
right: -4px;
|
|
971
803
|
}
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
border-radius: 8px;
|
|
976
|
-
padding: 6px var(--spacing--medium);
|
|
977
|
-
box-shadow: none;
|
|
978
|
-
border: 1px solid var(--color--grey-line);
|
|
804
|
+
|
|
805
|
+
&[data-popper-placement^="right"] > .arrow {
|
|
806
|
+
left: -4px;
|
|
979
807
|
}
|
|
980
808
|
|
|
981
|
-
.
|
|
982
|
-
|
|
809
|
+
.arrow[data-hide="true"]::before {
|
|
810
|
+
visibility: hidden !important;
|
|
983
811
|
}
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
812
|
+
|
|
813
|
+
&[data-show] > .arrow::before {
|
|
814
|
+
visibility: visible;
|
|
815
|
+
}
|
|
816
|
+
`;function Dx({children:n,content:r,placement:o="top"}){const[a,i]=t.useState(!1),[l,s]=t.useState(null),[c,u]=t.useState(null),[d,p]=t.useState(null),{styles:f,attributes:m}=$x(l,c,{placement:o,modifiers:[{name:"arrow",options:{element:d}},{name:"offset",options:{offset:[0,5]}}]});let g=null;const h=()=>{g=setTimeout((()=>{i(!0)}),300)},v=()=>{g&&clearTimeout(g),i(!1)};return t.useEffect((()=>()=>{g&&clearTimeout(g)})),e.jsxs(zx,{onMouseEnter:h,onMouseLeave:v,onFocus:h,onBlur:v,tabIndex:0,children:[e.jsx("div",{ref:s,children:n}),a&&e.jsxs(Rx,{style:f.popper,"data-show":a,...m.popper,ref:u,children:[e.jsx("div",{children:r}),e.jsx("span",{ref:p,style:f.arrow,...m.arrow,className:"arrow"})]})]})}function Tx({size:t}){return e.jsx(Oi,{colour:"green",name:["fas","check-circle"],size:t})}function jx({size:t}){return e.jsx(Oi,{colour:"grey",name:["fas","circle"],size:t})}function Mx({size:t}){return e.jsx(Oi,{colour:"primary",name:["fas","circle"],size:t})}function Ax({size:t}){return e.jsx(Oi,{colour:"primary",name:["fas","circle-notch"],size:t,spin:!0})}function Vx({size:t}){return e.jsx(Oi,{colour:"warning",name:["fas","circle-exclamation"],size:t})}function _x({size:t}){return e.jsx(Oi,{colour:"danger",name:["fas","circle-exclamation"],size:t})}const Lx=Kt.div`
|
|
817
|
+
flex-shrink: 0;
|
|
818
|
+
display: flex;
|
|
819
|
+
align-items: center;
|
|
820
|
+
justify-content: center;
|
|
821
|
+
svg {
|
|
822
|
+
outline: 2px solid var(--color--white);
|
|
823
|
+
background-color: var(--color--white);
|
|
824
|
+
border-radius: 50%;
|
|
991
825
|
}
|
|
826
|
+
`;
|
|
827
|
+
/**
|
|
828
|
+
* table-core
|
|
829
|
+
*
|
|
830
|
+
* Copyright (c) TanStack
|
|
831
|
+
*
|
|
832
|
+
* This source code is licensed under the MIT license found in the
|
|
833
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
834
|
+
*
|
|
835
|
+
* @license MIT
|
|
836
|
+
*/
|
|
837
|
+
function Fx(e,t){return"function"==typeof e?e(t):e}function Bx(e,t){return n=>{t.setState((t=>({...t,[e]:Fx(n,t[e])})))}}function Hx(e){return e instanceof Function}function Wx(e,t,n){let r,o=[];return a=>{let i;n.key&&n.debug&&(i=Date.now());const l=e(a);if(!(l.length!==o.length||l.some(((e,t)=>o[t]!==e))))return r;let s;if(o=l,n.key&&n.debug&&(s=Date.now()),r=t(...l),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-s))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function Gx(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:"development"===process.env.NODE_ENV&&n,onChange:r}}const qx="debugHeaders";function Ux(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const Yx={createTable:e=>{e.getHeaderGroups=Wx((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>{var a,i;const l=null!=(a=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[],s=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],c=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))));return Kx(t,[...l,...c,...s],e)}),Gx(e.options,qx,"getHeaderGroups")),e.getCenterHeaderGroups=Wx((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>(n=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),Kx(t,n,e,"center"))),Gx(e.options,qx,"getCenterHeaderGroups")),e.getLeftHeaderGroups=Wx((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,r)=>{var o;const a=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[];return Kx(t,a,e,"left")}),Gx(e.options,qx,"getLeftHeaderGroups")),e.getRightHeaderGroups=Wx((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,r)=>{var o;const a=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[];return Kx(t,a,e,"right")}),Gx(e.options,qx,"getRightHeaderGroups")),e.getFooterGroups=Wx((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),Gx(e.options,qx,"getFooterGroups")),e.getLeftFooterGroups=Wx((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),Gx(e.options,qx,"getLeftFooterGroups")),e.getCenterFooterGroups=Wx((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),Gx(e.options,qx,"getCenterFooterGroups")),e.getRightFooterGroups=Wx((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),Gx(e.options,qx,"getRightFooterGroups")),e.getFlatHeaders=Wx((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),Gx(e.options,qx,"getFlatHeaders")),e.getLeftFlatHeaders=Wx((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),Gx(e.options,qx,"getLeftFlatHeaders")),e.getCenterFlatHeaders=Wx((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),Gx(e.options,qx,"getCenterFlatHeaders")),e.getRightFlatHeaders=Wx((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),Gx(e.options,qx,"getRightFlatHeaders")),e.getCenterLeafHeaders=Wx((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),Gx(e.options,qx,"getCenterLeafHeaders")),e.getLeftLeafHeaders=Wx((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),Gx(e.options,qx,"getLeftLeafHeaders")),e.getRightLeafHeaders=Wx((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),Gx(e.options,qx,"getRightLeafHeaders")),e.getLeafHeaders=Wx((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var r,o,a,i,l,s;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(a=null==(i=t[0])?void 0:i.headers)?a:[],...null!=(l=null==(s=n[0])?void 0:s.headers)?l:[]].map((e=>e.getLeafHeaders())).flat()}),Gx(e.options,qx,"getLeafHeaders"))}};function Kx(e,t,n,r){var o,a;let i=0;const l=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&l(e.columns,t+1)}),0)};l(e);let s=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},a=[];e.forEach((e=>{const i=[...a].reverse()[0];let l,s=!1;if(e.column.depth===o.depth&&e.column.parent?l=e.column.parent:(l=e.column,s=!0),i&&(null==i?void 0:i.column)===l)i.subHeaders.push(e);else{const o=Ux(n,l,{id:[r,t,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${a.filter((e=>e.column===l)).length}`:void 0,depth:t,index:a.length});o.subHeaders.push(e),a.push(o)}o.headers.push(e),e.headerGroup=o})),s.push(o),t>0&&c(a,t-1)},u=t.map(((e,t)=>Ux(n,e,{depth:i,index:t})));c(u,i-1),s.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)}))):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(o=null==(a=s[0])?void 0:a.headers)?o:[]),s}const Jx=(e,t,n,r,o,a,i)=>{let l={id:t,index:r,original:n,depth:o,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(l._valuesCache.hasOwnProperty(t))return l._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(l._valuesCache[t]=n.accessorFn(l.original,r),l._valuesCache[t]):void 0},getUniqueValues:t=>{if(l._uniqueValuesCache.hasOwnProperty(t))return l._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(l._uniqueValuesCache[t]=n.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[t]):(l._uniqueValuesCache[t]=[l.getValue(t)],l._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=l.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)}))};return r(e),n}(l.subRows,(e=>e.subRows)),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let e=[],t=l;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Wx((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:Wx((()=>[e,n,t,o]),((e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue})),Gx(e.options,"debugCells","cell.getContext"))};return e._features.forEach((r=>{null==r.createCell||r.createCell(o,n,t,e)}),{}),o}(e,l,t,t.id)))),Gx(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:Wx((()=>[l.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),Gx(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(l,e)}return l},Xx={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Qx=(e,t,n)=>{var r;const o=n.toLowerCase();return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(o))};Qx.autoRemove=e=>sw(e);const Zx=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};Zx.autoRemove=e=>sw(e);const ew=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};ew.autoRemove=e=>sw(e);const tw=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};tw.autoRemove=e=>sw(e)||!(null!=e&&e.length);const nw=(e,t,n)=>!n.some((n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))}));nw.autoRemove=e=>sw(e)||!(null!=e&&e.length);const rw=(e,t,n)=>n.some((n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)}));rw.autoRemove=e=>sw(e)||!(null!=e&&e.length);const ow=(e,t,n)=>e.getValue(t)===n;ow.autoRemove=e=>sw(e);const aw=(e,t,n)=>e.getValue(t)==n;aw.autoRemove=e=>sw(e);const iw=(e,t,n)=>{let[r,o]=n;const a=e.getValue(t);return a>=r&&a<=o};iw.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,a=null===t||Number.isNaN(r)?-1/0:r,i=null===n||Number.isNaN(o)?1/0:o;if(a>i){const e=a;a=i,i=e}return[a,i]},iw.autoRemove=e=>sw(e)||sw(e[0])&&sw(e[1]);const lw={includesString:Qx,includesStringSensitive:Zx,equalsString:ew,arrIncludes:tw,arrIncludesAll:nw,arrIncludesSome:rw,equals:ow,weakEquals:aw,inNumberRange:iw};function sw(e){return null==e||""===e}const cw={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Bx("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?lw.includesString:"number"==typeof r?lw.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?lw.equals:Array.isArray(r)?lw.arrIncludes:lw.weakEquals},e.getFilterFn=()=>{var n,r;return Hx(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:lw[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find((t=>t.id===e.id)),a=Fx(n,o?o.value:void 0);var i;if(uw(r,a,e))return null!=(i=null==t?void 0:t.filter((t=>t.id!==e.id)))?i:[];const l={id:e.id,value:a};var s;return o?null!=(s=null==t?void 0:t.map((t=>t.id===e.id?l:t)))?s:[]:null!=t&&t.length?[...t,l]:[l]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var r;return null==(r=Fx(t,e))?void 0:r.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(uw(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function uw(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const dw={sum:(e,t,n)=>n.reduce(((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)}),0),min:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)})),r},max:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)})),r},extent:(e,t,n)=>{let r,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))})),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach((t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)})),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(!function(e){return Array.isArray(e)&&e.every((e=>"number"==typeof e))}(n))return;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort(((e,t)=>e-t));return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},pw={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Bx("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?dw.sum:"[object Date]"===Object.prototype.toString.call(r)?dw.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Hx(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:dw[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const fw={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Bx("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Wx((e=>[xw(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),Gx(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return(null==(r=xw(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=xw(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=Wx((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex((t=>t.id===e));r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter((e=>!t.includes(e.id)));if("remove"===n)return r;const o=t.map((t=>e.find((e=>e.id===t)))).filter(Boolean);return[...o,...r]}(o,t,n)}),Gx(e.options,"debugTable","_getOrderColumnsFn"))}},mw={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Bx("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,a,i,l,s;return"right"===n?{left:(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=r&&r.includes(e)))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter((e=>!(null!=r&&r.includes(e)))),...r]}:"left"===n?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter((e=>!(null!=r&&r.includes(e)))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=r&&r.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=r&&r.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=r&&r.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:r,right:o}=t.getState().columnPinning,a=n.some((e=>null==r?void 0:r.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return a?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Wx((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.column.id)))}),Gx(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=Wx((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>{const n=(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})));return n}),Gx(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=Wx((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>{const n=(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})));return n}),Gx(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,a;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(a=r.right)?void 0:a.length))},e.getLeftLeafColumns=Wx((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),Gx(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=Wx((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),Gx(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=Wx((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.id)))}),Gx(e.options,"debugColumns","getCenterLeafColumns"))}},gw={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},hw={getDefaultColumnDef:()=>gw,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Bx("columnSizing",e),onColumnSizingInfoChange:Bx("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const a=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:gw.minSize,null!=(r=null!=a?a:e.columnDef.size)?r:gw.size),null!=(o=e.columnDef.maxSize)?o:gw.maxSize)},e.getStart=Wx((e=>[e,xw(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),Gx(t.options,"debugColumns","getStart")),e.getAfter=Wx((e=>[e,xw(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),Gx(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...r}=t;return r}))},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return a=>{if(!r||!o)return;if(null==a.persist||a.persist(),bw(a)&&a.touches&&a.touches.length>1)return;const i=e.getSize(),l=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[r.id,r.getSize()]],s=bw(a)?Math.round(a.touches[0].clientX):a.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var r,o;const a="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*a,l=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*l,0))/100})),{...e,deltaOffset:i,deltaPercentage:l}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...c}))))},d=e=>u("move",e),p=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},f=n||"undefined"!=typeof document?document:null,m={moveHandler:e=>d(e.clientX),upHandler:e=>{null==f||f.removeEventListener("mousemove",m.moveHandler),null==f||f.removeEventListener("mouseup",m.upHandler),p(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==f||f.removeEventListener("touchmove",g.moveHandler),null==f||f.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),p(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"==typeof vw)return vw;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return vw=e,vw}()&&{passive:!1};bw(a)?(null==f||f.addEventListener("touchmove",g.moveHandler,h),null==f||f.addEventListener("touchend",g.upHandler,h)):(null==f||f.addEventListener("mousemove",m.moveHandler,h),null==f||f.addEventListener("mouseup",m.upHandler,h)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:r.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let vw=null;function bw(e){return"touchstart"===e.type}const yw={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Bx("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,r;const o=e.columns;return null==(n=o.length?o.some((e=>e.getIsVisible())):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Wx((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),Gx(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=Wx((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),Gx(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(t,n)=>Wx((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),Gx(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function xw(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const ww={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Bx("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,a;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(a=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||a)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>lw.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Hx(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:lw[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Sw={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Bx("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((r=>{var o;const a=!0===r||!(null==r||!r[e.id]);let i={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach((e=>{i[e]=!0})):i=r,n=null!=(o=n)?o:!a,!a&&n)return{...i,[e.id]:!0};if(a&&!n){const{[e.id]:t,...n}=i;return n}return r}))},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Cw={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Bx("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>Fx(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let r=Fx(t,n.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}}))},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,Fx(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var r;let o=Fx(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}})),e.getPageOptions=Wx((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),Gx(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},kw={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:Bx("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const a=r?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],i=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],l=new Set([...i,e.id,...a]);t.setRowPinning((e=>{var t,r,o,a,i,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:[...(null!=(a=null==e?void 0:e.bottom)?a:[]).filter((e=>!(null!=l&&l.has(e)))),...Array.from(l)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter((e=>!(null!=l&&l.has(e)))),...Array.from(l)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=l&&l.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=l&&l.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,a=n.some((e=>null==r?void 0:r.includes(e))),i=n.some((e=>null==o?void 0:o.includes(e)));return a?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const a=null==(n=t._getPinnedRows(o))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(r=null==a?void 0:a.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,a;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(a=r.bottom)?void 0:a.length))},e._getPinnedRows=Wx((t=>[e.getRowModel().rows,e.getState().rowPinning[t],t]),((t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:r})))}),Gx(e.options,"debugRows","_getPinnedRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=Wx((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!r.has(e.id)))}),Gx(e.options,"debugRows","getCenterRows"))}},Ow={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Bx("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach((e=>{e.getCanSelect()&&(r[e.id]=!0)})):o.forEach((e=>{delete r[e.id]})),r}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{Iw(o,t.id,r,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Wx((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?Ew(e,n):{rows:[],flatRows:[],rowsById:{}}),Gx(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=Wx((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?Ew(e,n):{rows:[],flatRows:[],rowsById:{}}),Gx(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=Wx((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?Ew(e,n):{rows:[],flatRows:[],rowsById:{}}),Gx(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some((e=>!n[e.id]))&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection((a=>{var i;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return a;const l={...a};return Iw(l,e.id,n,null==(i=null==r?void 0:r.selectChildren)||i,t),l}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Pw(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Nw(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Nw(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},Iw=(e,t,n,r,o)=>{var a;const i=o.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(a=i.subRows)&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>Iw(e,t.id,n,r,o)))};function Ew(e,t){const n=e.getState().rowSelection,r=[],o={},a=function(e,t){return e.map((e=>{var t;const i=Pw(e,n);if(i&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:a(e.subRows)}),i)return e})).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:o}}function Pw(e,t){var n;return null!=(n=t[e.id])&&n}function Nw(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,a=!1;return e.subRows.forEach((e=>{if((!a||o)&&(e.getCanSelect()&&(Pw(e,t)?a=!0:o=!1),e.subRows&&e.subRows.length)){const n=Nw(e,t);"all"===n?a=!0:"some"===n?(a=!0,o=!1):o=!1}})),o?"all":!!a&&"some"}const $w=/([0-9]+)/gm;function zw(e,t){return e===t?0:e>t?1:-1}function Rw(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Dw(e,t){const n=e.split($w).filter(Boolean),r=t.split($w).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),a=parseInt(t,10),i=[o,a].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>a)return 1;if(a>o)return-1}}return n.length-r.length}const Tw={alphanumeric:(e,t,n)=>Dw(Rw(e.getValue(n)).toLowerCase(),Rw(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Dw(Rw(e.getValue(n)),Rw(t.getValue(n))),text:(e,t,n)=>zw(Rw(e.getValue(n)).toLowerCase(),Rw(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>zw(Rw(e.getValue(n)),Rw(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>zw(e.getValue(n),t.getValue(n))},jw={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Bx("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return Tw.datetime;if("string"==typeof n&&(r=!0,n.split($w).length>1))return Tw.alphanumeric}return r?Tw.text:Tw.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Hx(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:Tw[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),a=null!=n;t.setSorting((i=>{const l=null==i?void 0:i.find((t=>t.id===e.id)),s=null==i?void 0:i.findIndex((t=>t.id===e.id));let c,u=[],d=a?n:"desc"===o;var p;(c=null!=i&&i.length&&e.getCanMultiSort()&&r?l?"toggle":"add":null!=i&&i.length&&s!==i.length-1?"replace":l?"toggle":"replace","toggle"===c&&(a||o||(c="remove")),"add"===c)?(u=[...i,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))):u="toggle"===c?i.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===c?i.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return u}))},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const a=e.getFirstSortDir(),i=e.getIsSorted();return i?!!(i===a||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):a},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},Mw=[Yx,yw,fw,mw,Xx,cw,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},ww,jw,pw,Sw,Cw,kw,Ow,hw];function Aw(e){var t,n;"production"!==process.env.NODE_ENV&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...Mw,...null!=(t=e._features)?t:[]];let o={_features:r};const a=o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o))),{});let i={...null!=(n=e.initialState)?n:{}};o._features.forEach((e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i}));const l=[];let s=!1;const c={_features:r,options:{...a,...e},initialState:i,_queue:e=>{l.push(e),s||(s=!0,Promise.resolve().then((()=>{for(;l.length;)l.shift()();s=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=Fx(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(a,e):{...a,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n)){if("production"!==process.env.NODE_ENV)throw new Error(`getRow could not find row with ID: ${e}`);throw new Error}return n},_getDefaultColumnDef:Wx((()=>[o.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),Gx(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:Wx((()=>[o._getColumnDefs()]),(e=>{const t=function(e,n,r){return void 0===r&&(r=0),e.map((e=>{const a=function(e,t,n,r){var o,a;const i={...e._getDefaultColumnDef(),...t},l=i.accessorKey;let s,c=null!=(o=null!=(a=i.id)?a:l?l.replace(".","_"):void 0)?o:"string"==typeof i.header?i.header:void 0;if(i.accessorFn?s=i.accessorFn:l&&(s=l.includes(".")?e=>{let t=e;for(const e of l.split(".")){var n;t=null==(n=t)?void 0:n[e],"production"!==process.env.NODE_ENV&&void 0===t&&console.warn(`"${e}" in deeply nested key "${l}" returned undefined.`)}return t}:e=>e[i.accessorKey]),!c){if("production"!==process.env.NODE_ENV)throw new Error(i.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header");throw new Error}let u={id:`${String(c)}`,accessorFn:s,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:Wx((()=>[!0]),(()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),Gx(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:Wx((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[u]}),Gx(e.options,"debugColumns","column.getLeafColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(o,e,r,n),i=e;return a.columns=i.columns?t(i.columns,a,r+1):[],a}))};return t(e)}),Gx(e,"debugColumns","getAllColumns")),getAllFlatColumns:Wx((()=>[o.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),Gx(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:Wx((()=>[o.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),Gx(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:Wx((()=>[o.getAllColumns(),o._getOrderColumnsFn()]),((e,t)=>{let n=e.flatMap((e=>e.getLeafColumns()));return t(n)}),Gx(e,"debugColumns","getAllLeafColumns")),getColumn:e=>{const t=o._getAllFlatColumnsById()[e];return"production"===process.env.NODE_ENV||t||console.error(`[Table] Column with id '${e}' does not exist.`),t}};Object.assign(o,c);for(let e=0;e<o._features.length;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}
|
|
838
|
+
/**
|
|
839
|
+
* react-table
|
|
840
|
+
*
|
|
841
|
+
* Copyright (c) TanStack
|
|
842
|
+
*
|
|
843
|
+
* This source code is licensed under the MIT license found in the
|
|
844
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
845
|
+
*
|
|
846
|
+
* @license MIT
|
|
847
|
+
*/
|
|
848
|
+
function Vw(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?o.createElement(e,t):e:null;var n}function _w(e,n){const[r,o]=t.useState((()=>{if("undefined"==typeof window)return n;try{const t=window.localStorage.getItem(e);return t?JSON.parse(t):n}catch(e){return console.log(e),n}}));return[r,t=>{try{const n=t instanceof Function?t(r):t;o(n),"undefined"!=typeof window&&window.localStorage.setItem(e,JSON.stringify(n))}catch(e){console.log(e)}}]}const Lw=Kt.div`
|
|
849
|
+
overflow-x: auto;
|
|
850
|
+
width: 100%;
|
|
851
|
+
max-height: 90vh;
|
|
852
|
+
`,Fw=Kt.table`
|
|
853
|
+
border-collapse: collapse;
|
|
854
|
+
position: relative;
|
|
992
855
|
|
|
993
|
-
|
|
994
|
-
|
|
856
|
+
thead {
|
|
857
|
+
background-color: white;
|
|
995
858
|
}
|
|
996
|
-
`,Aw=Kt.button`
|
|
997
|
-
float: right;
|
|
998
|
-
border: none;
|
|
999
|
-
background: none;
|
|
1000
|
-
color: var(--color--grey-light);
|
|
1001
|
-
cursor: pointer;
|
|
1002
|
-
margin-left: auto;
|
|
1003
859
|
|
|
1004
|
-
|
|
1005
|
-
|
|
860
|
+
thead,
|
|
861
|
+
tbody {
|
|
862
|
+
display: table;
|
|
863
|
+
width: 100%;
|
|
864
|
+
table-layout: fixed;
|
|
865
|
+
background-color: white;
|
|
1006
866
|
}
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
border-
|
|
1012
|
-
|
|
1013
|
-
& fieldset {
|
|
1014
|
-
top: 0;
|
|
1015
|
-
border-color: var(--color--grey-line);
|
|
1016
|
-
& legend span {
|
|
1017
|
-
display: none;
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
&:hover fieldset {
|
|
1021
|
-
border-color: var(--color--grey-light);
|
|
1022
|
-
}
|
|
1023
|
-
&.Mui-focused fieldset {
|
|
1024
|
-
border-color: var(--color--primary);
|
|
1025
|
-
}
|
|
1026
|
-
& .MuiInputBase-input {
|
|
1027
|
-
padding: 0;
|
|
1028
|
-
}
|
|
867
|
+
|
|
868
|
+
thead:last-of-type {
|
|
869
|
+
position: sticky;
|
|
870
|
+
top: 0;
|
|
871
|
+
border-bottom: 2px solid var(--color--grey-line);
|
|
872
|
+
z-index: 1;
|
|
1029
873
|
}
|
|
1030
|
-
|
|
1031
|
-
|
|
874
|
+
|
|
875
|
+
th {
|
|
1032
876
|
font-weight: var(--font-weight--bold);
|
|
1033
|
-
|
|
877
|
+
color: var(--color--grey);
|
|
878
|
+
text-align: left;
|
|
879
|
+
font-size: var(--font-size--xsmall);
|
|
880
|
+
padding: var(--spacing--small);
|
|
881
|
+
vertical-align: middle;
|
|
1034
882
|
position: relative;
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
883
|
+
|
|
884
|
+
> button {
|
|
885
|
+
display: flex;
|
|
886
|
+
align-items: center;
|
|
887
|
+
position: relative;
|
|
888
|
+
// remove default button styles
|
|
889
|
+
background: none;
|
|
890
|
+
border: none;
|
|
891
|
+
cursor: pointer;
|
|
892
|
+
padding: 0;
|
|
893
|
+
text-align: left;
|
|
894
|
+
|
|
895
|
+
i {
|
|
896
|
+
position: absolute;
|
|
897
|
+
left: -12px;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
i.fade {
|
|
901
|
+
opacity: 0;
|
|
902
|
+
transition: opacity 0.2s ease-in-out;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
&:hover i.fade {
|
|
906
|
+
opacity: 1;
|
|
907
|
+
}
|
|
1043
908
|
}
|
|
1044
909
|
}
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
910
|
+
|
|
911
|
+
th tr {
|
|
912
|
+
border-bottom: 1px solid #ddd;
|
|
913
|
+
background-color: var(--color--white);
|
|
1048
914
|
}
|
|
1049
|
-
`,Lw=Kt.div`
|
|
1050
|
-
min-height: 100%;
|
|
1051
|
-
padding-left: 60px;
|
|
1052
|
-
padding-right: 60px;
|
|
1053
|
-
padding-top: 40px;
|
|
1054
915
|
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
padding-right: 30px;
|
|
916
|
+
tbody > tr:hover {
|
|
917
|
+
background-color: #f5f5f5;
|
|
1058
918
|
}
|
|
1059
919
|
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
font-weight: 600;
|
|
1063
|
-
color: var(--color--grey-dark);
|
|
920
|
+
tr {
|
|
921
|
+
border-bottom: 1px solid var(--color--grey-line);
|
|
1064
922
|
}
|
|
1065
|
-
`,Fw=Jt`
|
|
1066
|
-
from {
|
|
1067
|
-
transform: translate(-100%, 0);
|
|
1068
|
-
}
|
|
1069
923
|
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
924
|
+
td {
|
|
925
|
+
font-size: var(--font-size--small);
|
|
926
|
+
font-weight: var(--font-weight--regular);
|
|
927
|
+
line-height: 1.5;
|
|
928
|
+
color: var(--color--grey-dark);
|
|
929
|
+
text-align: left;
|
|
930
|
+
padding: var(--spacing--small);
|
|
931
|
+
display: table-cell;
|
|
932
|
+
vertical-align: middle;
|
|
933
|
+
overflow: hidden;
|
|
934
|
+
text-overflow: ellipsis;
|
|
1077
935
|
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
}
|
|
1081
|
-
`,Hw=Jt`
|
|
1082
|
-
from {
|
|
1083
|
-
transform: translate(100%, 0);
|
|
936
|
+
&.name {
|
|
937
|
+
font-weight: 500;
|
|
1084
938
|
}
|
|
939
|
+
}
|
|
1085
940
|
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
}
|
|
941
|
+
th:first-child,
|
|
942
|
+
td:first-child,
|
|
943
|
+
th:last-child,
|
|
944
|
+
td:last-child {
|
|
945
|
+
padding-left: var(--spacing--medium);
|
|
946
|
+
}
|
|
1093
947
|
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
`,Gw=Jt`
|
|
1098
|
-
from {
|
|
1099
|
-
transform: translate(0, 100%);
|
|
1100
|
-
}
|
|
948
|
+
.cursor-pointer {
|
|
949
|
+
cursor: pointer;
|
|
950
|
+
}
|
|
1101
951
|
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
952
|
+
.command-buttons {
|
|
953
|
+
width: 200px;
|
|
954
|
+
> div {
|
|
955
|
+
display: flex;
|
|
956
|
+
gap: var(--spacing--small);
|
|
957
|
+
align-items: center;
|
|
1108
958
|
}
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
.flex--column {
|
|
962
|
+
display: flex;
|
|
963
|
+
flex-direction: column;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.heading {
|
|
967
|
+
font-size: var(--font-size--medium);
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
.resizer {
|
|
971
|
+
position: absolute;
|
|
972
|
+
right: 0;
|
|
973
|
+
top: 0;
|
|
974
|
+
height: 100%;
|
|
975
|
+
width: 3px;
|
|
976
|
+
background: var(--color--grey-line);
|
|
977
|
+
cursor: col-resize;
|
|
978
|
+
user-select: none;
|
|
979
|
+
touch-action: none;
|
|
980
|
+
z-index: 1;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
.resizer.isResizing {
|
|
984
|
+
background: var(--color--primary);
|
|
985
|
+
opacity: 9;
|
|
986
|
+
transition: opacity 0.2s ease-in-out;
|
|
987
|
+
}
|
|
1109
988
|
|
|
1110
|
-
|
|
1111
|
-
|
|
989
|
+
@media (hover: hover) {
|
|
990
|
+
.resizer {
|
|
991
|
+
opacity: 0;
|
|
1112
992
|
}
|
|
1113
|
-
`,Uw=Kt.div`
|
|
1114
|
-
position: fixed;
|
|
1115
|
-
top: 0;
|
|
1116
|
-
right: 0;
|
|
1117
|
-
bottom: 0;
|
|
1118
|
-
left: 0;
|
|
1119
|
-
z-index: 1001;
|
|
1120
|
-
overflow: hidden;
|
|
1121
993
|
|
|
1122
|
-
|
|
1123
|
-
|
|
994
|
+
*:hover > .resizer {
|
|
995
|
+
opacity: 1;
|
|
996
|
+
}
|
|
1124
997
|
}
|
|
998
|
+
`,Bw=Kt.div`
|
|
999
|
+
display: flex;
|
|
1000
|
+
gap: var(--spacing--medium);
|
|
1125
1001
|
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1002
|
+
a,
|
|
1003
|
+
button {
|
|
1004
|
+
display: inline-flex;
|
|
1005
|
+
align-items: center;
|
|
1006
|
+
justify-content: center;
|
|
1007
|
+
padding: var(--spacing--small);
|
|
1008
|
+
line-height: 1.5;
|
|
1009
|
+
text-decoration: none;
|
|
1010
|
+
cursor: pointer;
|
|
1011
|
+
color: var(--color--grey-dark);
|
|
1012
|
+
border: none;
|
|
1013
|
+
background-color: var(--color--white);
|
|
1014
|
+
font-size: var(--font-size--small);
|
|
1015
|
+
font-weight: var(--font-weight--bold);
|
|
1016
|
+
transition: background-color 0.2s ease-in-out;
|
|
1017
|
+
border-radius: 50%;
|
|
1018
|
+
width: 2rem;
|
|
1019
|
+
height: 2rem;
|
|
1130
1020
|
|
|
1131
|
-
|
|
1132
|
-
|
|
1021
|
+
&:hover {
|
|
1022
|
+
background-color: var(--color--grey-lightest);
|
|
1023
|
+
}
|
|
1024
|
+
&[disabled] {
|
|
1025
|
+
color: var(--color--grey-light);
|
|
1026
|
+
cursor: not-allowed;
|
|
1027
|
+
pointer-events: none;
|
|
1028
|
+
}
|
|
1133
1029
|
}
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1030
|
+
`;const Hw=Kt.div`
|
|
1031
|
+
background-color: transparent;
|
|
1032
|
+
border-bottom: 2px solid transparent;
|
|
1033
|
+
color: var(--color--grey-dark);
|
|
1034
|
+
font-weight: 500;
|
|
1035
|
+
transition: border-bottom 0.2s ease-in-out;
|
|
1036
|
+
margin-top: var(--spacing--medium);
|
|
1037
|
+
margin-bottom: var(--spacing--medium);
|
|
1038
|
+
`,Ww=Kt.div`
|
|
1039
|
+
display: flex;
|
|
1040
|
+
border-bottom: 3px solid var(--color--grey-borders);
|
|
1041
|
+
@media print {
|
|
1042
|
+
display: none;
|
|
1138
1043
|
}
|
|
1044
|
+
`,Gw=Kt.div`
|
|
1045
|
+
display: flex;
|
|
1046
|
+
width: 100%;
|
|
1047
|
+
overflow: auto;
|
|
1048
|
+
margin-bottom: -3px;
|
|
1139
1049
|
|
|
1140
|
-
|
|
1141
|
-
|
|
1050
|
+
&::-webkit-scrollbar {
|
|
1051
|
+
display: none;
|
|
1142
1052
|
}
|
|
1053
|
+
`,qw=Kt.button`
|
|
1054
|
+
position: relative;
|
|
1055
|
+
background-color: transparent;
|
|
1056
|
+
border: none;
|
|
1057
|
+
border-bottom: 3px solid transparent;
|
|
1058
|
+
padding: var(--spacing--medium) var(--spacing--large);
|
|
1059
|
+
transition:
|
|
1060
|
+
border-bottom 0.2s ease-in-out,
|
|
1061
|
+
color 0.2s ease-in-out;
|
|
1062
|
+
color: var(--color--grey);
|
|
1063
|
+
font-weight: 600;
|
|
1064
|
+
font-size: var(--font-size--large);
|
|
1065
|
+
white-space: nowrap;
|
|
1066
|
+
text-overflow: ellipsis;
|
|
1143
1067
|
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1068
|
+
&:hover,
|
|
1069
|
+
&:focus,
|
|
1070
|
+
&:active,
|
|
1071
|
+
&:focus {
|
|
1072
|
+
border-bottom: 3px solid var(--color--primary);
|
|
1073
|
+
cursor: pointer;
|
|
1147
1074
|
}
|
|
1148
|
-
`,Yw=Kt.div`
|
|
1149
|
-
z-index: 1010;
|
|
1150
|
-
height: 100vh;
|
|
1151
|
-
background-color: #fff;
|
|
1152
|
-
display: flex;
|
|
1153
|
-
flex-direction: column;
|
|
1154
|
-
overflow: auto;
|
|
1155
|
-
width: 100%;
|
|
1156
1075
|
|
|
1157
|
-
|
|
1158
|
-
|
|
1076
|
+
&[aria-selected="true"] {
|
|
1077
|
+
border-bottom: 3px solid var(--color--primary);
|
|
1078
|
+
color: var(--color--black);
|
|
1159
1079
|
}
|
|
1160
1080
|
|
|
1161
|
-
|
|
1162
|
-
|
|
1081
|
+
@media print {
|
|
1082
|
+
display: none;
|
|
1163
1083
|
}
|
|
1084
|
+
`,Uw=Kt.button`
|
|
1085
|
+
background: transparent;
|
|
1086
|
+
border: 0;
|
|
1087
|
+
cursor: pointer;
|
|
1088
|
+
transition: color 0.2s ease-in-out;
|
|
1164
1089
|
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1090
|
+
i {
|
|
1091
|
+
color: var(--color--grey-borders);
|
|
1092
|
+
&:hover,
|
|
1093
|
+
&:focus,
|
|
1094
|
+
&:active,
|
|
1095
|
+
&:focus {
|
|
1096
|
+
color: var(--color--grey);
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
// disable hover when disabled
|
|
1100
|
+
&[disabled] {
|
|
1101
|
+
visibility: hidden;
|
|
1168
1102
|
}
|
|
1169
|
-
`,Kw=Kt.div`
|
|
1170
|
-
display: flex;
|
|
1171
1103
|
|
|
1172
|
-
|
|
1173
|
-
|
|
1104
|
+
&.left-arrow[disabled] {
|
|
1105
|
+
display: none;
|
|
1174
1106
|
}
|
|
1107
|
+
`,Yw=Kt.div`
|
|
1108
|
+
margin-top: var(--spacing--medium);
|
|
1109
|
+
background-color: var(--color--white);
|
|
1110
|
+
padding: var(--spacing--large);
|
|
1111
|
+
border-radius: var(--border-radius--medium);
|
|
1112
|
+
box-shadow: var(--box-shadow--medium);
|
|
1113
|
+
text-align: left;
|
|
1114
|
+
font-weight: 400;
|
|
1175
1115
|
|
|
1176
|
-
|
|
1177
|
-
|
|
1116
|
+
@media print {
|
|
1117
|
+
padding: 0;
|
|
1118
|
+
border-radius: 0;
|
|
1119
|
+
box-shadow: none;
|
|
1178
1120
|
}
|
|
1121
|
+
`,Kw=Kt.section`
|
|
1122
|
+
display: ${({$show:e})=>e?"flex":"none"};
|
|
1123
|
+
flex-direction: column;
|
|
1179
1124
|
|
|
1180
|
-
|
|
1181
|
-
|
|
1125
|
+
// display on print
|
|
1126
|
+
@media print {
|
|
1127
|
+
display: flex;
|
|
1128
|
+
page-break-after: always;
|
|
1129
|
+
&:last-child {
|
|
1130
|
+
page-break-after: avoid;
|
|
1131
|
+
}
|
|
1182
1132
|
}
|
|
1183
|
-
|
|
1133
|
+
`;const Jw={small:qt`
|
|
1134
|
+
font-size: var(--font-size--small);
|
|
1135
|
+
line-height: var(--line-height--small);
|
|
1136
|
+
`,medium:qt`
|
|
1137
|
+
font-size: var(--font-size--medium);
|
|
1138
|
+
line-height: var(--line-height--medium);
|
|
1139
|
+
`,large:qt`
|
|
1140
|
+
font-size: var(--font-size--large);
|
|
1141
|
+
line-height: var(--line-height--large);
|
|
1142
|
+
`},Xw=Kt.div`
|
|
1143
|
+
font-weight: var(--font-weight--bold);
|
|
1144
|
+
color: var(--color--grey-dark);
|
|
1145
|
+
margin-bottom: var(--spacing--xsmall);
|
|
1146
|
+
${({$size:e})=>Jw[e||"medium"]}
|
|
1147
|
+
`,Qw=Kt.div`
|
|
1148
|
+
font-weight: 400;
|
|
1149
|
+
${({$size:e})=>Jw[e||"medium"]}
|
|
1150
|
+
`,Zw=Kt.div`
|
|
1151
|
+
grid-gap: var(--spacing--medium);
|
|
1152
|
+
${({$inline:e})=>e?qt`
|
|
1153
|
+
display: grid;
|
|
1154
|
+
grid-template-columns: 1fr 3fr;
|
|
1155
|
+
@media (max-width: 768px) {
|
|
1156
|
+
grid-template-columns: 1fr;
|
|
1157
|
+
}
|
|
1158
|
+
`:""}
|
|
1159
|
+
`;const eS=Kt.div`
|
|
1160
|
+
position: fixed;
|
|
1161
|
+
bottom: 2rem;
|
|
1162
|
+
width: 100%;
|
|
1163
|
+
z-index: 2000;
|
|
1164
|
+
pointer-events: none;
|
|
1165
|
+
`,tS=Kt.div`
|
|
1166
|
+
position: absolute;
|
|
1167
|
+
top: 0;
|
|
1168
|
+
width: 100%;
|
|
1184
1169
|
display: flex;
|
|
1185
|
-
flex-
|
|
1170
|
+
flex-direction: column;
|
|
1171
|
+
gap: var(--spacing--medium);
|
|
1186
1172
|
align-items: center;
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1173
|
+
margin-top: var(--spacing--small);
|
|
1174
|
+
transition: top 0.1s ease;
|
|
1175
|
+
`,nS=Kt.div`
|
|
1176
|
+
padding: var(--spacing--small) var(--spacing--medium);
|
|
1177
|
+
text-align: center;
|
|
1178
|
+
border-radius: var(--border-radius--medium);
|
|
1179
|
+
box-sizing: border-box;
|
|
1180
|
+
font-size: var(--font-size--small);
|
|
1181
|
+
font-weight: var(--font-weight--bold);
|
|
1182
|
+
display: flex;
|
|
1183
|
+
align-items: center;
|
|
1184
|
+
justify-content: center;
|
|
1193
1185
|
|
|
1194
1186
|
svg {
|
|
1195
|
-
|
|
1196
|
-
flex-shrink: 0;
|
|
1187
|
+
margin-right: var(--spacing--small);
|
|
1197
1188
|
}
|
|
1198
1189
|
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1190
|
+
${e=>"success"===e.level?qt`
|
|
1191
|
+
background-color: var(--color--green-light);
|
|
1192
|
+
color: var(--color--dark-blue);
|
|
1202
1193
|
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
}
|
|
1194
|
+
svg {
|
|
1195
|
+
color: var(--color--dark-blue);
|
|
1196
|
+
}
|
|
1197
|
+
`:"warning"===e.level?qt`
|
|
1198
|
+
background-color: var(--color--amber-tint);
|
|
1199
|
+
color: var(--color--dark-blue);
|
|
1210
1200
|
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1201
|
+
svg {
|
|
1202
|
+
color: var(--color--amber);
|
|
1203
|
+
}
|
|
1204
|
+
`:"error"===e.level?qt`
|
|
1205
|
+
background-color: #ffdadd;
|
|
1206
|
+
color: var(--color--dark-blue);
|
|
1217
1207
|
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
`;let eS=1;const tS=t.forwardRef((({children:n,side:r,size:o="md",open:a=!1,closeBlocked:i,onClose:l=(()=>{}),onCloseCompleted:s=(()=>{}),closeRequested:c=!1,...u},d)=>{const p=t.useRef(null);p.current||(p.current=`overlay-${eS}`,eS+=1);const f=t.useRef(null),[m,g]=t.useState(!1);t.useEffect((()=>{if(m){const e=setTimeout(s,200);return()=>{clearTimeout(e)}}return()=>{}})),t.useEffect((()=>{c&&g(!0)}),[c]),p.current||(p.current=`modal-${eS}`,eS+=1),t.useEffect((()=>{document.body.style.overflow=a?"hidden":"auto"}),[a]),t.useEffect((()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),l())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[l]);const h=a?"open":"closing";return e.jsx(_w,{open:a&&!m,anchor:r,className:`${r} ${h}`,size:o,...u,children:e.jsx(Kw,{children:e.jsxs(Yw,{ref:f,children:[i&&e.jsxs(Qw,{role:"alert","aria-live":"assertive",children:[e.jsx(Oi,{name:["fas","exclamation-triangle"]}),e.jsxs("p",{children:[e.jsx("strong",{children:"You have unsaved changes."})," Please save or cancel before closing."]})]}),e.jsx(Zw,{ref:d,children:e.jsx(Lw,{children:n})})]})})})}));const nS=Kt(mw)``;function rS(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function oS(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const aS=6048e5,iS=864e5,lS=6e4,sS=36e5;let cS={};function uS(){return cS}function dS(e,t){const n=uS(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=rS(e),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function pS(e){return dS(e,{weekStartsOn:1})}function fS(e){const t=rS(e),n=t.getFullYear(),r=oS(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=pS(r),a=oS(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=pS(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function mS(e){const t=rS(e);return t.setHours(0,0,0,0),t}function gS(e){const t=rS(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function hS(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=rS(e);return!isNaN(Number(n))}const vS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function bS(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const yS={date:bS({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:bS({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:bS({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},xS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function wS(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function SS(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(l,(e=>e.test(i)));let c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}var CS;const kS={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=vS[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:yS,formatRelative:(e,t,n,r)=>xS[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:wS({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:wS({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:wS({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:wS({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:wS({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(CS={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(CS.matchPattern);if(!n)return null;const r=n[0],o=e.match(CS.parsePattern);if(!o)return null;let a=CS.valueCallback?CS.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:SS({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:SS({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:SS({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:SS({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:SS({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function OS(e){const t=rS(e),n=function(e,t){const n=mS(e),r=mS(t),o=+n-gS(n),a=+r-gS(r);return Math.round((o-a)/iS)}(t,function(e){const t=rS(e),n=oS(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function IS(e){const t=rS(e),n=+pS(t)-+function(e){const t=fS(e),n=oS(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),pS(n)}(t);return Math.round(n/aS)+1}function ES(e,t){const n=rS(e),r=n.getFullYear(),o=uS(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=oS(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=dS(i,t),s=oS(e,0);s.setFullYear(r,0,a),s.setHours(0,0,0,0);const c=dS(s,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function PS(e,t){const n=rS(e),r=+dS(n,t)-+function(e,t){const n=uS(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=ES(e,t),a=oS(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),dS(a,t)}(n,t);return Math.round(r/aS)+1}function NS(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const $S={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return NS("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):NS(n+1,2)},d:(e,t)=>NS(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>NS(e.getHours()%12||12,t.length),H:(e,t)=>NS(e.getHours(),t.length),m:(e,t)=>NS(e.getMinutes(),t.length),s:(e,t)=>NS(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return NS(Math.trunc(r*Math.pow(10,n-3)),t.length)}},zS="midnight",RS="noon",DS="morning",TS="afternoon",jS="evening",MS="night",AS={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return $S.y(e,t)},Y:function(e,t,n,r){const o=ES(e,r),a=o>0?o:1-o;if("YY"===t){return NS(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):NS(a,t.length)},R:function(e,t){return NS(fS(e),t.length)},u:function(e,t){return NS(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return NS(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return NS(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return $S.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return NS(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=PS(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):NS(o,t.length)},I:function(e,t,n){const r=IS(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):NS(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):$S.d(e,t)},D:function(e,t,n){const r=OS(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):NS(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return NS(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return NS(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return NS(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?RS:0===r?zS:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?jS:r>=12?TS:r>=4?DS:MS,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return $S.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):$S.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):NS(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):NS(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):$S.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):$S.s(e,t)},S:function(e,t){return $S.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return _S(r);case"XXXX":case"XX":return LS(r);default:return LS(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return _S(r);case"xxxx":case"xx":return LS(r);default:return LS(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+VS(r,":");default:return"GMT"+LS(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+VS(r,":");default:return"GMT"+LS(r,":")}},t:function(e,t,n){return NS(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return NS(e.getTime(),t.length)}};function VS(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+NS(a,2)}function _S(e,t){if(e%60==0){return(e>0?"-":"+")+NS(Math.abs(e)/60,2)}return LS(e,t)}function LS(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+NS(Math.trunc(r/60),2)+t+NS(r%60,2)}const FS=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},BS=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},HS={p:BS,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return FS(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",FS(r,t)).replace("{{time}}",BS(o,t))}},WS=/^D+$/,GS=/^Y+$/,qS=["D","DD","YY","YYYY"];const US=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,YS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,KS=/^'([^]*?)'?$/,JS=/''/g,XS=/[a-zA-Z]/;function QS(e,t,n){const r=uS(),o=r.locale??kS,a=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=rS(e);if(!hS(l))throw new RangeError("Invalid time value");let s=t.match(YS).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,HS[t])(e,o.formatLong)}return e})).join("").match(US).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ZS(e)};if(AS[t])return{isToken:!0,value:e};if(t.match(XS))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(s=o.localize.preprocessor(l,s));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return s.map((n=>{if(!n.isToken)return n.value;const r=n.value;(function(e){return GS.test(e)}(r)||function(e){return WS.test(e)}(r))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),qS.includes(e))throw new RangeError(r)}(r,t,String(e));return(0,AS[r[0]])(l,r,o.localize,c)})).join("")}function ZS(e){const t=e.match(KS);return t?t[1].replace(JS,"'"):e}function eC(e,t){const n=function(e){const t={},n=e.split(tC.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],tC.timeZoneDelimiter.test(t.date)&&(t.date=e.split(tC.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=tC.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let r;if(n.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(n.date,2);r=function(e,t){if(null===t)return new Date(NaN);const n=e.match(nC);if(!n)return new Date(NaN);const r=!!n[4],o=aC(n[1]),a=aC(n[2])-1,i=aC(n[3]),l=aC(n[4]),s=aC(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,l,s)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,l,s):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(lC[t]||(sC(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(sC(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);const o=r.getTime();let a,i=0;if(n.time&&(i=function(e){const t=e.match(rC);if(!t)return NaN;const n=iC(t[1]),r=iC(t[2]),o=iC(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*sS+r*lS+1e3*o}(n.time),isNaN(i)))return new Date(NaN);if(!n.timezone){const e=new Date(o+i),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return a=function(e){if("Z"===e)return 0;const t=e.match(oC);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*sS+o*lS)}(n.timezone),isNaN(a)?new Date(NaN):new Date(o+i+a)}const tC={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},nC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,rC=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,oC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function aC(e){return e?parseInt(e):1}function iC(e){return e&&parseFloat(e.replace(",","."))||0}const lC=[31,null,31,30,31,30,31,31,30,31,30,31];function sC(e){return e%400==0||e%4==0&&e%100!=0}const cC="-",uC={style:"currency",currency:"GBP",minimumFractionDigits:0,maximumFractionDigits:0};exports.Accordion=function({title:n,children:r,open:o=!1}){const[a,i]=t.useState(o),l=t.useRef(null);return t.useEffect((()=>{a&&l.current?l.current.style.maxHeight=`${l.current.scrollHeight}px`:l.current&&(l.current.style.maxHeight="0px")}),[a]),e.jsxs(Ii,{children:[e.jsx(Ei,{children:e.jsx(Zt,{as:"h3",children:e.jsxs(Ni,{type:"button","aria-expanded":a,onClick:()=>i(!a),"aria-controls":"accordion-content",role:"button",isOpen:a,children:[n,e.jsx("span",{children:e.jsx(Oi,{name:["fas","chevron-up"]})})]})})}),e.jsx(Pi,{ref:l,"aria-labelledby":"accordion-button",isOpen:a,role:"region",children:r})]})},exports.AppBar=function({apps:t,currentApp:n,leftSide:r,rightSide:o,myAccountMenu:a,helpButton:i}){return e.jsxs(vw,{children:[e.jsx(bw,{href:"/",children:e.jsx(hw,{})}),e.jsx(Ow,{apps:t,currentApp:n}),e.jsx(Cw,{children:r}),e.jsxs(yw,{children:[o,i?e.jsxs(ww,{type:"link",as:i.as,href:i.href,children:[e.jsx(Oi,{name:["far","circle-question"],size:"small"})," ",i.text||"Help"]}):null,a?e.jsxs(Lh,{children:[e.jsx(Sw,{size:"sm",startDecorator:e.jsx(Oi,{name:["far","user"],size:"small"}),children:"My Account"}),a]}):null]})]})},exports.Autocomplete=function({id:n,options:r,onChange:o,name:a,...i}){const[l,s]=t.useState(i.defaultValue),[c,u]=t.useState(i.defaultValue?.value);return e.jsxs(Tw,{children:[e.jsx(yx,{...i,id:n,options:r,onChange:(e,t,n)=>{s(t),u(t?t?.value:""),o&&o(e,t,n)},getOptionLabel:e=>e.label,isOptionEqualToValue:(e,t)=>e.value===t.value,value:l,renderOption:i.renderOption,name:""}),e.jsx(Ty,{name:a,value:c,type:"hidden",sx:{display:"none"}})]})},exports.AutocompleteSelectMultiple=function({defaultValue:n,id:r,name:o,inline:a,onChange:i,SelectedOption:l,...s}){const[c,u]=t.useState((()=>(n||[]).map((e=>{const t=s.options.find((t=>String(t.value)===String(e)));return t?{label:t.label,value:t.value}:null})).filter((e=>null!==e))));return e.jsxs(Mw,{children:[e.jsx(yx,{...s,multiple:!0,value:c,onChange:(e,t,n)=>{u(t),i&&i(e,t,n)},renderTags:(n,r)=>a?n.map(((n,o)=>t.createElement(fy,{component:"div",...r({index:o}),key:n.label,endDecorator:e.jsx(Oi,{size:"small",name:["fas","times"]})},n.label))):null,isOptionEqualToValue:(e,t)=>e.value===t.value,name:""}),Array.isArray(c)&&c.map((t=>e.jsx(Ty,{name:o,value:t.value,type:"hidden",sx:{display:"none"}},t.value))),!a&&e.jsx(jw,{children:Array.isArray(c)&&c.length>0?c.map((t=>e.jsxs(nb,{children:[l?e.jsx(l,{option:t}):t.label,e.jsx(Aw,{type:"button",onClick:()=>{u(c.filter((e=>e.value!==t.value)))},children:e.jsx(Oi,{name:["fas","xmark"]})})]},t.value))):null})]})},exports.Badge=function({children:t,...n}){return e.jsx(Di,{...n,children:t})},exports.Box=wx,exports.Breadcrumb=Dw,exports.Button=Ki,exports.Chip=function(t){return e.jsx(fy,{...t})},exports.Divider=Ti,exports.Drawer=tS,exports.Grid=function({label:t,...n}){return e.jsx(Yx,{...n,children:t})},exports.Heading=Zt,exports.Icon=Oi,exports.IconButton=ry,exports.Input=Vw,exports.Layout=function({children:t,header:n,footer:r}){return e.jsx(mh,{theme:Ew,children:e.jsxs(Pw,{children:[n,e.jsx(Nw,{children:t}),r]})})},exports.List=jw,exports.ListItem=nb,exports.ListItemButton=yb,exports.ListItemDecorator=Qx,exports.LoadingSpinner=function(t){return e.jsxs(Mi,{children:[e.jsx(ji,{...t}),e.jsx(Ai,{children:"Loading"})]})},exports.Logo=hw,exports.Menu=function(t){return e.jsx(nw,{...t})},exports.MenuItem=nS,exports.ProgressBar=function({ariaLabel:t,percentage:n}){return e.jsx(eu,{role:"progressbar","aria-label":t,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,children:e.jsx(tu,{style:{width:`${n}%`}})})},exports.ProgressCircle=function({size:n="medium",value:r=0,kind:o="default",trafficLightRanges:a={red:{min:0,max:20,text:""},redLow:{min:20,max:40,text:""},orange:{min:40,max:60,text:""},green:{min:60,max:80,text:""},greenHigh:{min:80,max:100,text:""}}}){const i={mini:"0.8rem",tiny:"1rem",small:"1.2rem",medium:"1.6rem",large:"2rem"}[n],l={mini:50,tiny:75,small:100,medium:150,large:200}[n],s=(({kind:e,percentage:t,trafficLightRanges:n})=>{const r="var(--color--primary)",o="var(--color--danger)",a="var(--color--green-dark)",i="var(--color--red)",l="var(--color--orange-dark)",s="var(--color--green-dark)";return(()=>{if("traffic-light"===e){const e=Object.entries(n).find((([,e])=>t>=e.min&&t<=e.max))?.[0];return"red"===e||"redLow"===e?i:"orange"===e?l:"green"===e||"greenHigh"===e?s:"#d7d7d7"}return"danger"===e?o:"success"===e?a:"default"===e?r:"#d7d7d7"})()})({kind:o,percentage:Math.round(r),trafficLightRanges:a}),c=l/7,[u,d]=t.useState(0);t.useEffect((()=>{d(r)}),[r]);const p=(l-c)/2,f=p*Math.PI*2,m=u*f/100,g=`0 0 ${l} ${l}`;return e.jsxs("svg",{width:l,height:l,viewBox:g,children:[e.jsx("circle",{fill:"white",stroke:"#d7d7d7",cx:l/2,cy:l/2,r:p,strokeWidth:`${c}px`}),e.jsx("circle",{fill:"none",stroke:s,cx:l/2,cy:l/2,r:p,strokeWidth:`${c}px`,transform:`rotate(-90 ${l/2} ${l/2})`,strokeDasharray:`${m}, ${f-m}`,strokeLinecap:"round",style:{transition:"all 0.5s"}}),e.jsx("text",{fill:"black",fontSize:i,fontWeight:"bold",x:"50%",y:"50%",dy:"6%",textAnchor:"middle",children:(h=r,h>=0&&h<=100?`${r}%`:"-")})]});var h},exports.ReadMore=function({children:n,maxLines:r=3}){const[o,a]=t.useState(!1),i=t.useRef(null),[l,s]=t.useState(!1),c=()=>{const{offsetHeight:e,scrollHeight:t}=i.current||{};s(!!(e&&t&&e<t))};return t.useLayoutEffect((()=>(window.addEventListener("resize",c),()=>window.removeEventListener("resize",c))),[i]),t.useEffect((()=>{c()}),[]),e.jsxs(Ji,{children:[e.jsx(Xi,{$maxLines:o?void 0:r,ref:i,children:n}),r&&l&&e.jsx(Qi,{type:"button",kind:"basic",onClick:()=>a(!o),children:o?"Read less":"Read more"})]})},exports.RelativeTime=function({time:n}){const[r,o]=t.useState((()=>new Date)),a=t.useMemo((()=>new Date(n)),[n]);t.useEffect((()=>{o(new Date)}),[n]),t.useEffect((()=>{if(Math.abs(a.getTime()/1e3-r.getTime()/1e3)<86400){const e=setTimeout((()=>{o(new Date)}),1e4);return()=>{clearTimeout(e)}}return()=>{}}),[r,a]);const i=t.useMemo((()=>{const e=Math.abs(a.getTime()/1e3-r.getTime()/1e3),t=a>r;if(e<60&&!t)return"just now";if(e>604800)return`${a.getDate()} ${Zi[a.getMonth()]} ${a.getFullYear()}`;let n;return n=e<120?"a minute":e<2700?`${Math.ceil(e/60).toString()} minutes`:e<5400?"an hour":e<86400?`${Math.ceil(e/3600).toString()} hours`:e<172800?"one day":`${Math.ceil(e/86400).toString()} days`,t?`in ${n}`:`${n} ago`}),[a,r]);return e.jsx("time",{dateTime:a.toISOString(),title:a.toLocaleString(),children:i})},exports.StatusIcon=function({status:t="uploaded",size:n="medium"}){const r=t.charAt(0).toUpperCase()+t.slice(1),o={uploaded:e.jsx(Ts,{size:n}),running:e.jsx(Ms,{size:n}),processed:e.jsx(js,{size:n}),reviewed:e.jsx(Ds,{size:n}),warning:e.jsx(As,{size:n}),failed:e.jsx(Vs,{size:n})};return e.jsx(Rs,{content:r,children:e.jsx(_s,{status:t,"aria-label":r,children:o[t]})})},exports.Table=function({id:n,data:r,columns:a,pageCount:i,totalCount:l,next:s,previous:c,page:u,pageable:d,pageSize:p}){const[f,m]=t.useState((()=>[...r])),[g,h]=t.useState([]),[v,b]=t.useState({pageIndex:0,pageSize:p||10}),[y,x]=Vc(`table.${n}.columnSizing`,{}),w=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=o.useState((()=>({current:Mc(t)}))),[r,a]=o.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}({columns:a,data:f,getCoreRowModel:e=>Hs((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[];for(let s=0;s<t.length;s++){const c=Ks(e,e._getRowId(t[s],s,a),t[s],s,o,void 0,null==a?void 0:a.id);var l;n.flatRows.push(c),n.rowsById[c.id]=c,i.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(l=c.originalSubRows)&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return i};return n.rows=r(t),n}),Ws(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),getSortedRowModel:e=>Hs((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,o=[],a=r.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),i={};a.forEach((t=>{const n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const l=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let r=0;r<a.length;r+=1){var n;const o=a[r],l=i[o.id],s=l.sortUndefined,c=null!=(n=null==o?void 0:o.desc)&&n;let u=0;if(s){const n=void 0===e.getValue(o.id),r=void 0===t.getValue(o.id);if(n||r){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;u=n&&r?0:n?s:-s}}if(0===u&&(u=l.sortingFn(e,t,o.id)),0!==u)return c&&(u*=-1),l.invertSorting&&(u*=-1),u}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=l(e.subRows))})),t};return{rows:l(n.rows),flatRows:o,rowsById:n.rowsById}}),Ws(e.options,"debugTable","getSortedRowModel",(()=>e._autoResetPageIndex()))),onSortingChange:h,pageCount:i,state:{pagination:t.useMemo((()=>({pageIndex:v.pageIndex,pageSize:v.pageSize})),[v.pageIndex,v.pageSize]),sorting:g,columnSizing:y},onPaginationChange:b,manualPagination:!0,enableColumnResizing:!0,columnResizeMode:"onChange",defaultColumn:{size:200,minSize:50,maxSize:500},onColumnSizingChange:x});return t.useEffect((()=>{void 0!==u&&w.setPageIndex(Number(u-1))}),[u,w]),t.useEffect((()=>{m(r)}),[r]),e.jsxs(_c,{children:[e.jsxs(Lc,{children:[w.getHeaderGroups().map((t=>e.jsx("thead",{children:e.jsx("tr",{children:t.headers.map((t=>e.jsxs("th",{colSpan:t.colSpan,style:{width:t.getSize()},children:[t.isPlaceholder?null:e.jsxs("button",{type:"button",className:t.column.getCanSort()?"cursor-pointer select-none":"",onClick:t.column.getToggleSortingHandler(),onKeyDown:t.column.getToggleSortingHandler(),title:t.column.getCanSort()?"asc"===t.column.getNextSortingOrder()?"Sort ascending":"desc"===t.column.getNextSortingOrder()?"Sort descending":"Clear sort":void 0,children:[{asc:e.jsx(Oi,{name:["fas","arrow-up"],size:"small"}),desc:e.jsx(Oi,{name:["fas","arrow-down"],size:"small"})}[t.column.getIsSorted()]??(t.column.getCanSort()&&e.jsx(Oi,{name:["fas","arrow-up"],size:"small",className:"fade"})),Ac(t.column.columnDef.header,t.getContext())]}),t.column.getCanResize()&&e.jsx("button",{type:"button","aria-label":"Resize column",onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),className:"resizer "+(t.column.getIsResizing()?"isResizing":"")})]},t.id)))})},t.id))),e.jsx("tbody",{children:w.getRowModel().rows.length>0?w.getRowModel().rows.map((t=>e.jsx("tr",{children:t.getVisibleCells().map((t=>e.jsx("td",{style:{width:t.column.getSize()},children:Ac(t.column.columnDef.cell,t.getContext())},t.id)))},t.id))):e.jsx("tr",{children:e.jsx("td",{colSpan:a.length,style:{textAlign:"center"},children:"No data"})})})]}),e.jsxs("div",{children:[void 0!==l?e.jsxs("div",{children:["Total: ",l]}):null,d?e.jsxs(Fc,{children:[e.jsx(Ki,{type:"link",href:w.getCanPreviousPage()?window.location.href:"",disabled:!w.getCanPreviousPage(),children:"<<"}),e.jsx(Ki,{type:"link",href:w.getCanPreviousPage()&&c?c:"",disabled:!w.getCanPreviousPage(),children:"<"}),e.jsx(Ki,{type:"link",href:w.getCanNextPage()&&s?s:"",disabled:!w.getCanNextPage(),children:">"}),e.jsx(Ki,{href:w.getCanNextPage()?`${window.location.href}?page=${String(i)}`:"",type:"link",disabled:!w.getCanNextPage(),children:">>"}),e.jsxs("span",{children:[e.jsx("div",{children:"Page"}),e.jsxs("strong",{children:[w.getState().pagination.pageIndex+1," of"," ",w.getPageCount()]})]})]}):null]})]})},exports.Tabs=function({tabsConfig:n=[],defaultId:r}){const o=new URLSearchParams(window.location.search).get("tab")||r,a=n.findIndex((e=>e.id===o)),[i,l]=t.useState(a>=0?a:0),s=t.useRef(null),c=t.useRef({}),[u,d]=t.useState(!1),[p,f]=t.useState({right:!1,left:!0}),m=e=>{if(!s.current)return;const t=c.current[e];t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})},g=e=>{const t=new URL(window.location.href);t.searchParams.set("tab",e),window.history.pushState({},"",t.toString())},h=e=>{const t=n[e].id,r=c.current[t];r&&r.focus(),m(t),g(t)},v=e=>{const t=n.length,r={ArrowRight:()=>h((i+1)%t),ArrowLeft:()=>h((i-1+t)%t),Home:()=>h(0),End:()=>h(t-1)}[e.key];r&&(e.preventDefault(),r())},b=(e,t)=>{if(!e)return;let n=0;const r=setInterval((()=>{e.scrollLeft+=t,n+=Math.abs(t),n>=100&&clearInterval(r)}),20);f({left:e.scrollLeft<=0,right:e.scrollLeft+e.offsetWidth>=e.scrollWidth})};return t.useEffect((()=>{s.current&&d(s.current.offsetWidth<s.current.scrollWidth)}),[]),t.useEffect((()=>{m(n[i].id),g(n[i].id)}),[n,i]),t.useLayoutEffect((()=>{const e=()=>{if(!s.current)return;const{offsetWidth:e,scrollWidth:t}=s.current;d(e<t)};return window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e)}}),[]),e.jsxs(Bc,{children:[e.jsxs(Hc,{role:"tablist","aria-orientation":"horizontal",children:[u&&e.jsxs(qc,{onClick:()=>s.current&&b(s.current,-30),className:"left-arrow","aria-label":"Left arrow",disabled:p.left,children:[e.jsx(Oi,{name:["fas","chevron-left"],size:"large"})," "]}),e.jsx(Wc,{ref:s,children:n.length>0?n.map((t=>e.jsx(Gc,{type:"button",onClick:()=>(e=>{const t=n.findIndex((t=>t.id===e));m(e),l(t),g(e)})(t.id),role:"tab",ref:e=>{c.current[t.id]=e},"aria-controls":`panel-${t.id}`,"aria-selected":n[i].id===t.id,id:`tab-${t.id}`,onKeyDown:v,onFocus:()=>l(n.findIndex((e=>e.id===t.id))),tabIndex:n[i].id===t.id?0:-1,children:t.label},`tab-${t.id}`))):e.jsx("div",{children:"No tab content to display"})}),u&&e.jsx(qc,{onClick:()=>s.current&&b(s.current,30),className:"right-arrow","aria-label":"Right arrow",disabled:p.right,children:e.jsx(Oi,{name:"chevron-right",size:"large"})})]}),e.jsx(Uc,{children:n.map((t=>e.jsxs(Yc,{role:"tabpanel","aria-labelledby":`tab-${t.id}`,id:`panel-${t.id}`,$show:n[i].id===t.id,tabIndex:0,children:[t.label?e.jsx(Zt,{as:"h2",children:t.label}):null,t.content]},`tabpanel-${t.id}`)))})]})},exports.TextBlock=function({label:t,content:n,size:r,inline:o=!1}){return e.jsxs(Qc,{$inline:o,children:[t?e.jsx(Jc,{$size:r,children:t}):null,n?e.jsx(Xc,{$size:r,children:n}):null]})},exports.TextField=function(){throw new Error(["MUI: `TextField` component has been removed in favor of Input composition.","","To migrate, run `npx @mui/codemod@latest v5.0.0/joy-text-field-to-input <path>`.","For the codemod detail, visit https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md#joy-text-field-to-input\n\nTo learn more why it has been removed, visit the RFC https://github.com/mui/material-ui/issues/34176"].join("\n"))},exports.ToastMessages=function({messages:t}){return e.jsx(nu,{children:e.jsx(ru,{style:{top:`-${55*t.length}px`},children:t.map((t=>e.jsx(au,{message:t},String(t))))})})},exports.Tooltip=Rs,exports.formatCurrency=(e,t="en-GB",n=uC)=>{let r=e;if(""===r||null==r)return cC;"string"==typeof e&&(r=Number(e));return new Intl.NumberFormat(t,{...uC,...n}).format(r)},exports.formatDate=(e,t="dd MMM yyyy")=>{if(""===e||null==e)return cC;const n=eC(e);return hS(n)?QS(n,t):cC},exports.formatNumber=e=>""===e||null==e?cC:e.toLocaleString(),exports.formatText=e=>""===e||null==e?cC:e,exports.useFetch=(e,n,r)=>{const[o,a]=t.useState(null),[i,l]=t.useState(!1),[s,c]=t.useState(null),u=t.useRef(null);return t.useEffect((()=>{if(!e)return()=>{};let t=!0;l(!0);return u.current&&clearTimeout(u.current),u.current=setTimeout((()=>{(async()=>{try{const r=await fetch(e,n);if(!r.ok)throw new Error(`Error: ${r.statusText}`);const o=await r.json();t&&(a(o),l(!1))}catch(e){t&&(c(e),l(!1))}})()}),r||0),()=>{t=!1,u.current&&clearTimeout(u.current)}}),[e,n,r]),{data:o,loading:i,error:s}},exports.useLocalStorage=Vc,exports.useToggle=function(e){const[n,r]=t.useState(e);return{value:n,toggle:t.useCallback((()=>r((e=>!e))),[]),setTrue:t.useCallback((()=>r(!0)),[]),setFalse:t.useCallback((()=>r(!1)),[])}};
|
|
1208
|
+
svg {
|
|
1209
|
+
color: var(--color--red-dark);
|
|
1210
|
+
}
|
|
1211
|
+
`:qt``}
|
|
1212
|
+
|
|
1213
|
+
// Fadeout animation
|
|
1214
|
+
${({noFade:e})=>e?qt``:qt`
|
|
1215
|
+
animation: 5s ease 0s normal forwards 1 fadeout;
|
|
1216
|
+
@keyframes fadeout {
|
|
1217
|
+
0% {
|
|
1218
|
+
opacity: 1;
|
|
1219
|
+
}
|
|
1220
|
+
66% {
|
|
1221
|
+
opacity: 1;
|
|
1222
|
+
}
|
|
1223
|
+
100% {
|
|
1224
|
+
opacity: 0;
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
`}
|
|
1228
|
+
`;function rS({message:t}){const n="success"===t.level?e.jsx(Oi,{name:["fas","check-circle"]}):e.jsx(Oi,{name:["fas","exclamation-triangle"]});return"html"in t?e.jsxs(nS,{level:t.level,noFade:t.noFade,role:"alert","aria-live":"error"===t.level?"assertive":"polite",children:[n,e.jsx("span",{dangerouslySetInnerHTML:{__html:t.html}})]}):e.jsxs(nS,{level:t.level,noFade:t.noFade,role:"alert","aria-live":"error"===t.level?"assertive":"polite",children:[n,t.text]})}function oS(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function aS(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const iS=6048e5,lS=864e5,sS=6e4,cS=36e5;let uS={};function dS(){return uS}function pS(e,t){const n=dS(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=oS(e),a=o.getDay(),i=(a<r?7:0)+a-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function fS(e){return pS(e,{weekStartsOn:1})}function mS(e){const t=oS(e),n=t.getFullYear(),r=aS(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=fS(r),a=aS(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=fS(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function gS(e){const t=oS(e);return t.setHours(0,0,0,0),t}function hS(e){const t=oS(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function vS(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=oS(e);return!isNaN(Number(n))}const bS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function yS(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const xS={date:yS({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:yS({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:yS({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},wS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function SS(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function CS(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(l,(e=>e.test(i)));let c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}var kS;const OS={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=bS[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:xS,formatRelative:(e,t,n,r)=>wS[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:SS({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:SS({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:SS({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:SS({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:SS({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(kS={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(kS.matchPattern);if(!n)return null;const r=n[0],o=e.match(kS.parsePattern);if(!o)return null;let a=kS.valueCallback?kS.valueCallback(o[0]):o[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(r.length)}}),era:CS({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:CS({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:CS({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:CS({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:CS({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function IS(e){const t=oS(e),n=function(e,t){const n=gS(e),r=gS(t),o=+n-hS(n),a=+r-hS(r);return Math.round((o-a)/lS)}(t,function(e){const t=oS(e),n=aS(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function ES(e){const t=oS(e),n=+fS(t)-+function(e){const t=mS(e),n=aS(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),fS(n)}(t);return Math.round(n/iS)+1}function PS(e,t){const n=oS(e),r=n.getFullYear(),o=dS(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=aS(e,0);i.setFullYear(r+1,0,a),i.setHours(0,0,0,0);const l=pS(i,t),s=aS(e,0);s.setFullYear(r,0,a),s.setHours(0,0,0,0);const c=pS(s,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function NS(e,t){const n=oS(e),r=+pS(n,t)-+function(e,t){const n=dS(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=PS(e,t),a=aS(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),pS(a,t)}(n,t);return Math.round(r/iS)+1}function $S(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const zS={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return $S("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):$S(n+1,2)},d:(e,t)=>$S(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>$S(e.getHours()%12||12,t.length),H:(e,t)=>$S(e.getHours(),t.length),m:(e,t)=>$S(e.getMinutes(),t.length),s:(e,t)=>$S(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return $S(Math.trunc(r*Math.pow(10,n-3)),t.length)}},RS="midnight",DS="noon",TS="morning",jS="afternoon",MS="evening",AS="night",VS={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return zS.y(e,t)},Y:function(e,t,n,r){const o=PS(e,r),a=o>0?o:1-o;if("YY"===t){return $S(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):$S(a,t.length)},R:function(e,t){return $S(mS(e),t.length)},u:function(e,t){return $S(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return $S(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return $S(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return zS.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return $S(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=NS(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):$S(o,t.length)},I:function(e,t,n){const r=ES(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):$S(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):zS.d(e,t)},D:function(e,t,n){const r=IS(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):$S(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return $S(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return $S(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return $S(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?DS:0===r?RS:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?MS:r>=12?jS:r>=4?TS:AS,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return zS.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):zS.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):$S(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):$S(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):zS.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):zS.s(e,t)},S:function(e,t){return zS.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return LS(r);case"XXXX":case"XX":return FS(r);default:return FS(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return LS(r);case"xxxx":case"xx":return FS(r);default:return FS(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_S(r,":");default:return"GMT"+FS(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_S(r,":");default:return"GMT"+FS(r,":")}},t:function(e,t,n){return $S(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return $S(e.getTime(),t.length)}};function _S(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+$S(a,2)}function LS(e,t){if(e%60==0){return(e>0?"-":"+")+$S(Math.abs(e)/60,2)}return FS(e,t)}function FS(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+$S(Math.trunc(r/60),2)+t+$S(r%60,2)}const BS=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},HS=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},WS={p:HS,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return BS(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",BS(r,t)).replace("{{time}}",HS(o,t))}},GS=/^D+$/,qS=/^Y+$/,US=["D","DD","YY","YYYY"];const YS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,KS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,JS=/^'([^]*?)'?$/,XS=/''/g,QS=/[a-zA-Z]/;function ZS(e,t,n){const r=dS(),o=r.locale??OS,a=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=oS(e);if(!vS(l))throw new RangeError("Invalid time value");let s=t.match(KS).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,WS[t])(e,o.formatLong)}return e})).join("").match(YS).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:eC(e)};if(VS[t])return{isToken:!0,value:e};if(t.match(QS))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(s=o.localize.preprocessor(l,s));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return s.map((n=>{if(!n.isToken)return n.value;const r=n.value;(function(e){return qS.test(e)}(r)||function(e){return GS.test(e)}(r))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),US.includes(e))throw new RangeError(r)}(r,t,String(e));return(0,VS[r[0]])(l,r,o.localize,c)})).join("")}function eC(e){const t=e.match(JS);return t?t[1].replace(XS,"'"):e}function tC(e,t){const n=function(e){const t={},n=e.split(nC.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],nC.timeZoneDelimiter.test(t.date)&&(t.date=e.split(nC.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=nC.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let r;if(n.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(n.date,2);r=function(e,t){if(null===t)return new Date(NaN);const n=e.match(rC);if(!n)return new Date(NaN);const r=!!n[4],o=iC(n[1]),a=iC(n[2])-1,i=iC(n[3]),l=iC(n[4]),s=iC(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,l,s)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,l,s):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(sC[t]||(cC(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(cC(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,i)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);const o=r.getTime();let a,i=0;if(n.time&&(i=function(e){const t=e.match(oC);if(!t)return NaN;const n=lC(t[1]),r=lC(t[2]),o=lC(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o))return NaN;return n*cS+r*sS+1e3*o}(n.time),isNaN(i)))return new Date(NaN);if(!n.timezone){const e=new Date(o+i),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return a=function(e){if("Z"===e)return 0;const t=e.match(aC);if(!t)return 0;const n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return n*(r*cS+o*sS)}(n.timezone),isNaN(a)?new Date(NaN):new Date(o+i+a)}const nC={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},rC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,oC=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,aC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function iC(e){return e?parseInt(e):1}function lC(e){return e&&parseFloat(e.replace(",","."))||0}const sC=[31,null,31,30,31,30,31,31,30,31,30,31];function cC(e){return e%400==0||e%4==0&&e%100!=0}const uC="-",dC={style:"currency",currency:"GBP",minimumFractionDigits:0,maximumFractionDigits:0};exports.Accordion=function({title:n,children:r,open:o=!1}){const[a,i]=t.useState(o),l=t.useRef(null);return t.useEffect((()=>{a&&l.current?l.current.style.maxHeight=`${l.current.scrollHeight}px`:l.current&&(l.current.style.maxHeight="0px")}),[a]),e.jsxs(Ii,{children:[e.jsx(Ei,{children:e.jsx(Zt,{as:"h3",children:e.jsxs(Ni,{type:"button","aria-expanded":a,onClick:()=>i(!a),"aria-controls":"accordion-content",role:"button",isOpen:a,children:[n,e.jsx("span",{children:e.jsx(Oi,{name:["fas","chevron-up"]})})]})})}),e.jsx(Pi,{ref:l,"aria-labelledby":"accordion-button",isOpen:a,role:"region",children:r})]})},exports.AppBar=function({apps:t,currentApp:n,leftSide:r,rightSide:o,myAccountMenu:a,helpButton:i}){return e.jsxs(Sy,{children:[e.jsx(Cy,{href:"/",children:e.jsx(wy,{})}),e.jsx($y,{apps:t,currentApp:n}),e.jsx(Py,{children:r}),e.jsxs(ky,{children:[o,i?e.jsxs(Iy,{type:"link",as:i.as,href:i.href,children:[e.jsx(Oi,{name:["far","circle-question"],size:"small"})," ",i.text||"Help"]}):null,a?e.jsxs(uf,{children:[e.jsx(Ey,{size:"sm",startDecorator:e.jsx(Oi,{name:["far","user"],size:"small"}),children:"My Account"}),a]}):null]})]})},exports.Autocomplete=function({id:n,options:r,onChange:o,name:a,...i}){const[l,s]=t.useState(i.defaultValue),[c,u]=t.useState(i.defaultValue?.value);return e.jsxs(zy,{children:[e.jsx(cb,{...i,id:n,options:r,onChange:(e,t,n)=>{s(t),u(t?t?.value:""),o&&o(e,t,n)},getOptionLabel:e=>e.label,isOptionEqualToValue:(e,t)=>e.value===t.value,value:l,renderOption:i.renderOption,name:""}),e.jsx(kv,{name:a,value:c,type:"hidden",sx:{display:"none"}})]})},exports.AutocompleteSelectMultiple=function({defaultValue:n,id:r,name:o,inline:a,onChange:i,SelectedOption:l,...s}){const[c,u]=t.useState((()=>(n||[]).map((e=>{const t=s.options.find((t=>String(t.value)===String(e)));return t?{label:t.label,value:t.value}:null})).filter((e=>null!==e))));return e.jsxs(Dy,{children:[e.jsx(cb,{...s,multiple:!0,value:c,onChange:(e,t,n)=>{u(t),i&&i(e,t,n)},renderTags:(n,r)=>a?n.map(((n,o)=>t.createElement(rv,{component:"div",...r({index:o}),key:n.label,endDecorator:e.jsx(Oi,{size:"small",name:["fas","times"]})},n.label))):null,isOptionEqualToValue:(e,t)=>e.value===t.value,name:""}),Array.isArray(c)&&c.map((t=>e.jsx(kv,{name:o,value:t.value,type:"hidden",sx:{display:"none"}},t.value))),!a&&e.jsx(Ry,{children:Array.isArray(c)&&c.length>0?c.map((t=>e.jsxs(qg,{children:[l?e.jsx(l,{option:t}):t.label,e.jsx(Ty,{type:"button",onClick:()=>{u(c.filter((e=>e.value!==t.value)))},children:e.jsx(Oi,{name:["fas","xmark"]})})]},t.value))):null})]})},exports.Badge=function({children:t,...n}){return e.jsx(Vy,{...n,children:t})},exports.Box=db,exports.Breadcrumb=By,exports.Button=yy,exports.Chip=function(t){return e.jsx(rv,{...t})},exports.Divider=Hy,exports.Drawer=ix,exports.Dropdown=function(t){return e.jsx(uf,{...t})},exports.Grid=function({label:t,...n}){return e.jsx(Vb,{...n,children:t})},exports.Heading=Zt,exports.Icon=Oi,exports.IconButton=Uh,exports.Input=lx,exports.Layout=function({children:t,header:n,footer:r}){return e.jsx(Ap,{theme:cx,children:e.jsxs(ux,{children:[n,e.jsx(dx,{children:t}),r]})})},exports.List=Ry,exports.ListItem=qg,exports.ListItemButton=ch,exports.ListItemDecorator=Bb,exports.LoadingSpinner=function(t){return e.jsxs(iy,{children:[e.jsx(ay,{...t}),e.jsx(ly,{children:"Loading"})]})},exports.Logo=wy,exports.Menu=function(t){return e.jsx(qb,{...t})},exports.MenuButton=Zb,exports.MenuHeading=px,exports.MenuItem=fx,exports.ProgressBar=function({ariaLabel:t,percentage:n}){return e.jsx(gx,{role:"progressbar","aria-label":t,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,children:e.jsx(hx,{style:{width:`${n}%`}})})},exports.ProgressCircle=function({size:n="medium",value:r=0,kind:o="default",trafficLightRanges:a={red:{min:0,max:20,text:""},redLow:{min:20,max:40,text:""},orange:{min:40,max:60,text:""},green:{min:60,max:80,text:""},greenHigh:{min:80,max:100,text:""}}}){const i={mini:"0.8rem",tiny:"1rem",small:"1.2rem",medium:"1.6rem",large:"2rem"}[n],l={mini:50,tiny:75,small:100,medium:150,large:200}[n],s=(({kind:e,percentage:t,trafficLightRanges:n})=>{const r="var(--color--primary)",o="var(--color--danger)",a="var(--color--green-dark)",i="var(--color--red)",l="var(--color--orange-dark)",s="var(--color--green-dark)";return(()=>{if("traffic-light"===e){const e=Object.entries(n).find((([,e])=>t>=e.min&&t<=e.max))?.[0];return"red"===e||"redLow"===e?i:"orange"===e?l:"green"===e||"greenHigh"===e?s:"#d7d7d7"}return"danger"===e?o:"success"===e?a:"default"===e?r:"#d7d7d7"})()})({kind:o,percentage:Math.round(r),trafficLightRanges:a}),c=l/7,[u,d]=t.useState(0);t.useEffect((()=>{d(r)}),[r]);const p=(l-c)/2,f=p*Math.PI*2,m=u*f/100,g=`0 0 ${l} ${l}`;return e.jsxs("svg",{width:l,height:l,viewBox:g,children:[e.jsx("circle",{fill:"white",stroke:"#d7d7d7",cx:l/2,cy:l/2,r:p,strokeWidth:`${c}px`}),e.jsx("circle",{fill:"none",stroke:s,cx:l/2,cy:l/2,r:p,strokeWidth:`${c}px`,transform:`rotate(-90 ${l/2} ${l/2})`,strokeDasharray:`${m}, ${f-m}`,strokeLinecap:"round",style:{transition:"all 0.5s"}}),e.jsx("text",{fill:"black",fontSize:i,fontWeight:"bold",x:"50%",y:"50%",dy:"6%",textAnchor:"middle",children:(h=r,h>=0&&h<=100?`${r}%`:"-")})]});var h},exports.ReadMore=function({children:n,maxLines:r=3}){const[o,a]=t.useState(!1),i=t.useRef(null),[l,s]=t.useState(!1),c=()=>{const{offsetHeight:e,scrollHeight:t}=i.current||{};s(!!(e&&t&&e<t))};return t.useLayoutEffect((()=>(window.addEventListener("resize",c),()=>window.removeEventListener("resize",c))),[i]),t.useEffect((()=>{c()}),[]),e.jsxs(vx,{children:[e.jsx(bx,{$maxLines:o?void 0:r,ref:i,children:n}),r&&l&&e.jsx(yx,{type:"button",kind:"basic",onClick:()=>a(!o),children:o?"Read less":"Read more"})]})},exports.RelativeTime=function({time:n}){const[r,o]=t.useState((()=>new Date)),a=t.useMemo((()=>new Date(n)),[n]);t.useEffect((()=>{o(new Date)}),[n]),t.useEffect((()=>{if(Math.abs(a.getTime()/1e3-r.getTime()/1e3)<86400){const e=setTimeout((()=>{o(new Date)}),1e4);return()=>{clearTimeout(e)}}return()=>{}}),[r,a]);const i=t.useMemo((()=>{const e=Math.abs(a.getTime()/1e3-r.getTime()/1e3),t=a>r;if(e<60&&!t)return"just now";if(e>604800)return`${a.getDate()} ${xx[a.getMonth()]} ${a.getFullYear()}`;let n;return n=e<120?"a minute":e<2700?`${Math.ceil(e/60).toString()} minutes`:e<5400?"an hour":e<86400?`${Math.ceil(e/3600).toString()} hours`:e<172800?"one day":`${Math.ceil(e/86400).toString()} days`,t?`in ${n}`:`${n} ago`}),[a,r]);return e.jsx("time",{dateTime:a.toISOString(),title:a.toLocaleString(),children:i})},exports.StatusIcon=function({status:t="uploaded",size:n="medium"}){const r=t.charAt(0).toUpperCase()+t.slice(1),o={uploaded:e.jsx(jx,{size:n}),running:e.jsx(Ax,{size:n}),processed:e.jsx(Mx,{size:n}),reviewed:e.jsx(Tx,{size:n}),warning:e.jsx(Vx,{size:n}),failed:e.jsx(_x,{size:n})};return e.jsx(Dx,{content:r,children:e.jsx(Lx,{status:t,"aria-label":r,children:o[t]})})},exports.Table=function({id:n,data:r,columns:a,pageCount:i,totalCount:l,next:s,previous:c,page:u,pageable:d,pageSize:p}){const[f,m]=t.useState((()=>[...r])),[g,h]=t.useState([]),[v,b]=t.useState({pageIndex:0,pageSize:p||10}),[y,x]=_w(`table.${n}.columnSizing`,{}),w=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=o.useState((()=>({current:Aw(t)}))),[r,a]=o.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}({columns:a,data:f,getCoreRowModel:e=>Wx((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[];for(let s=0;s<t.length;s++){const c=Jx(e,e._getRowId(t[s],s,a),t[s],s,o,void 0,null==a?void 0:a.id);var l;n.flatRows.push(c),n.rowsById[c.id]=c,i.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(l=c.originalSubRows)&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return i};return n.rows=r(t),n}),Gx(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),getSortedRowModel:e=>Wx((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,o=[],a=r.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),i={};a.forEach((t=>{const n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const l=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let r=0;r<a.length;r+=1){var n;const o=a[r],l=i[o.id],s=l.sortUndefined,c=null!=(n=null==o?void 0:o.desc)&&n;let u=0;if(s){const n=void 0===e.getValue(o.id),r=void 0===t.getValue(o.id);if(n||r){if("first"===s)return n?-1:1;if("last"===s)return n?1:-1;u=n&&r?0:n?s:-s}}if(0===u&&(u=l.sortingFn(e,t,o.id)),0!==u)return c&&(u*=-1),l.invertSorting&&(u*=-1),u}return e.index-t.index})),t.forEach((e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=l(e.subRows))})),t};return{rows:l(n.rows),flatRows:o,rowsById:n.rowsById}}),Gx(e.options,"debugTable","getSortedRowModel",(()=>e._autoResetPageIndex()))),onSortingChange:h,pageCount:i,state:{pagination:t.useMemo((()=>({pageIndex:v.pageIndex,pageSize:v.pageSize})),[v.pageIndex,v.pageSize]),sorting:g,columnSizing:y},onPaginationChange:b,manualPagination:!0,enableColumnResizing:!0,columnResizeMode:"onChange",defaultColumn:{size:200,minSize:50,maxSize:500},onColumnSizingChange:x});return t.useEffect((()=>{void 0!==u&&w.setPageIndex(Number(u-1))}),[u,w]),t.useEffect((()=>{m(r)}),[r]),e.jsxs(Lw,{children:[e.jsxs(Fw,{children:[w.getHeaderGroups().map((t=>e.jsx("thead",{children:e.jsx("tr",{children:t.headers.map((t=>e.jsxs("th",{colSpan:t.colSpan,style:{width:t.getSize()},children:[t.isPlaceholder?null:e.jsxs("button",{type:"button",className:t.column.getCanSort()?"cursor-pointer select-none":"",onClick:t.column.getToggleSortingHandler(),onKeyDown:t.column.getToggleSortingHandler(),title:t.column.getCanSort()?"asc"===t.column.getNextSortingOrder()?"Sort ascending":"desc"===t.column.getNextSortingOrder()?"Sort descending":"Clear sort":void 0,children:[{asc:e.jsx(Oi,{name:["fas","arrow-up"],size:"small"}),desc:e.jsx(Oi,{name:["fas","arrow-down"],size:"small"})}[t.column.getIsSorted()]??(t.column.getCanSort()&&e.jsx(Oi,{name:["fas","arrow-up"],size:"small",className:"fade"})),Vw(t.column.columnDef.header,t.getContext())]}),t.column.getCanResize()&&e.jsx("button",{type:"button","aria-label":"Resize column",onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),className:"resizer "+(t.column.getIsResizing()?"isResizing":"")})]},t.id)))})},t.id))),e.jsx("tbody",{children:w.getRowModel().rows.length>0?w.getRowModel().rows.map((t=>e.jsx("tr",{children:t.getVisibleCells().map((t=>e.jsx("td",{style:{width:t.column.getSize()},children:Vw(t.column.columnDef.cell,t.getContext())},t.id)))},t.id))):e.jsx("tr",{children:e.jsx("td",{colSpan:a.length,style:{textAlign:"center"},children:"No data"})})})]}),e.jsxs("div",{children:[void 0!==l?e.jsxs("div",{children:["Total: ",l]}):null,d?e.jsxs(Bw,{children:[e.jsx(yy,{type:"link",href:w.getCanPreviousPage()?window.location.href:"",disabled:!w.getCanPreviousPage(),children:"<<"}),e.jsx(yy,{type:"link",href:w.getCanPreviousPage()&&c?c:"",disabled:!w.getCanPreviousPage(),children:"<"}),e.jsx(yy,{type:"link",href:w.getCanNextPage()&&s?s:"",disabled:!w.getCanNextPage(),children:">"}),e.jsx(yy,{href:w.getCanNextPage()?`${window.location.href}?page=${String(i)}`:"",type:"link",disabled:!w.getCanNextPage(),children:">>"}),e.jsxs("span",{children:[e.jsx("div",{children:"Page"}),e.jsxs("strong",{children:[w.getState().pagination.pageIndex+1," of"," ",w.getPageCount()]})]})]}):null]})]})},exports.Tabs=function({tabsConfig:n=[],defaultId:r}){const o=new URLSearchParams(window.location.search).get("tab")||r,a=n.findIndex((e=>e.id===o)),[i,l]=t.useState(a>=0?a:0),s=t.useRef(null),c=t.useRef({}),[u,d]=t.useState(!1),[p,f]=t.useState({right:!1,left:!0}),m=e=>{if(!s.current)return;const t=c.current[e];t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})},g=e=>{const t=new URL(window.location.href);t.searchParams.set("tab",e),window.history.pushState({},"",t.toString())},h=e=>{const t=n[e].id,r=c.current[t];r&&r.focus(),m(t),g(t)},v=e=>{const t=n.length,r={ArrowRight:()=>h((i+1)%t),ArrowLeft:()=>h((i-1+t)%t),Home:()=>h(0),End:()=>h(t-1)}[e.key];r&&(e.preventDefault(),r())},b=(e,t)=>{if(!e)return;let n=0;const r=setInterval((()=>{e.scrollLeft+=t,n+=Math.abs(t),n>=100&&clearInterval(r)}),20);f({left:e.scrollLeft<=0,right:e.scrollLeft+e.offsetWidth>=e.scrollWidth})};return t.useEffect((()=>{s.current&&d(s.current.offsetWidth<s.current.scrollWidth)}),[]),t.useEffect((()=>{m(n[i].id),g(n[i].id)}),[n,i]),t.useLayoutEffect((()=>{const e=()=>{if(!s.current)return;const{offsetWidth:e,scrollWidth:t}=s.current;d(e<t)};return window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e)}}),[]),e.jsxs(Hw,{children:[e.jsxs(Ww,{role:"tablist","aria-orientation":"horizontal",children:[u&&e.jsxs(Uw,{onClick:()=>s.current&&b(s.current,-30),className:"left-arrow","aria-label":"Left arrow",disabled:p.left,children:[e.jsx(Oi,{name:["fas","chevron-left"],size:"large"})," "]}),e.jsx(Gw,{ref:s,children:n.length>0?n.map((t=>e.jsx(qw,{type:"button",onClick:()=>(e=>{const t=n.findIndex((t=>t.id===e));m(e),l(t),g(e)})(t.id),role:"tab",ref:e=>{c.current[t.id]=e},"aria-controls":`panel-${t.id}`,"aria-selected":n[i].id===t.id,id:`tab-${t.id}`,onKeyDown:v,onFocus:()=>l(n.findIndex((e=>e.id===t.id))),tabIndex:n[i].id===t.id?0:-1,children:t.label},`tab-${t.id}`))):e.jsx("div",{children:"No tab content to display"})}),u&&e.jsx(Uw,{onClick:()=>s.current&&b(s.current,30),className:"right-arrow","aria-label":"Right arrow",disabled:p.right,children:e.jsx(Oi,{name:"chevron-right",size:"large"})})]}),e.jsx(Yw,{children:n.map((t=>e.jsxs(Kw,{role:"tabpanel","aria-labelledby":`tab-${t.id}`,id:`panel-${t.id}`,$show:n[i].id===t.id,tabIndex:0,children:[t.label?e.jsx(Zt,{as:"h2",children:t.label}):null,t.content]},`tabpanel-${t.id}`)))})]})},exports.TextBlock=function({label:t,content:n,size:r,inline:o=!1}){return e.jsxs(Zw,{$inline:o,children:[t?e.jsx(Xw,{$size:r,children:t}):null,n?e.jsx(Qw,{$size:r,children:n}):null]})},exports.TextField=function(){throw new Error(["MUI: `TextField` component has been removed in favor of Input composition.","","To migrate, run `npx @mui/codemod@latest v5.0.0/joy-text-field-to-input <path>`.","For the codemod detail, visit https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md#joy-text-field-to-input\n\nTo learn more why it has been removed, visit the RFC https://github.com/mui/material-ui/issues/34176"].join("\n"))},exports.ToastMessages=function({messages:t}){return e.jsx(eS,{children:e.jsx(tS,{style:{top:`-${55*t.length}px`},children:t.map((t=>e.jsx(rS,{message:t},String(t))))})})},exports.Tooltip=Dx,exports.formatCurrency=(e,t="en-GB",n=dC)=>{let r=e;if(""===r||null==r)return uC;"string"==typeof e&&(r=Number(e));return new Intl.NumberFormat(t,{...dC,...n}).format(r)},exports.formatDate=(e,t="dd MMM yyyy")=>{if(""===e||null==e)return uC;const n=tC(e);return vS(n)?ZS(n,t):uC},exports.formatNumber=e=>""===e||null==e?uC:e.toLocaleString(),exports.formatText=e=>""===e||null==e?uC:e,exports.useFetch=(e,n,r)=>{const[o,a]=t.useState(null),[i,l]=t.useState(!1),[s,c]=t.useState(null),u=t.useRef(null);return t.useEffect((()=>{if(!e)return()=>{};let t=!0;l(!0);return u.current&&clearTimeout(u.current),u.current=setTimeout((()=>{(async()=>{try{const r=await fetch(e,n);if(!r.ok)throw new Error(`Error: ${r.statusText}`);const o=await r.json();t&&(a(o),l(!1))}catch(e){t&&(c(e),l(!1))}})()}),r||0),()=>{t=!1,u.current&&clearTimeout(u.current)}}),[e,n,r]),{data:o,loading:i,error:s}},exports.useLocalStorage=_w,exports.useToggle=function(e){const[n,r]=t.useState(e);return{value:n,toggle:t.useCallback((()=>r((e=>!e))),[]),setTrue:t.useCallback((()=>r(!0)),[]),setFalse:t.useCallback((()=>r(!1)),[])}};
|
|
1224
1229
|
//# sourceMappingURL=index.cjs.map
|